diff --git a/frontend/dist/frontend/index.html b/frontend/dist/frontend/index.html index c7c8883..2b72d28 100644 --- a/frontend/dist/frontend/index.html +++ b/frontend/dist/frontend/index.html @@ -44,6 +44,6 @@ }); - + \ No newline at end of file diff --git a/frontend/dist/frontend/main.115c0c7fdccf5539.js b/frontend/dist/frontend/main.115c0c7fdccf5539.js deleted file mode 100644 index b85355c..0000000 --- a/frontend/dist/frontend/main.115c0c7fdccf5539.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunkfrontend=self.webpackChunkfrontend||[]).push([[179],{731:function(ci,Bi){!function(yn){"use strict";var Be=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function at(P){return P&&P.__esModule&&Object.prototype.hasOwnProperty.call(P,"default")?P.default:P}function lt(P,M){return P(M={exports:{}},M.exports),M.exports}var zt=lt(function(P,M){var ae;Object.defineProperty(M,"__esModule",{value:!0}),(ae=M.Orientation||(M.Orientation={})).VerticalReverse="vertical-reverse",ae.Horizontal="horizontal",ae.HorizontalReverse="horizontal-reverse"});at(zt);var Ie=lt(function(P,M){function x(b,X){return Object.assign({},X.reduce((pe,fe)=>Object.assign({},pe,{[fe]:b[fe]}),{}))}function T(b){return void 0===b}Object.defineProperty(M,"__esModule",{value:!0}),M.booleanOptionOr=function J(b,X){return"boolean"==typeof b?b:X},M.numberOptionOr=function ae(b,X){return"number"==typeof b?b:X},M.pick=x,M.debug=function I(b,X){console.log(JSON.stringify(b.map(pe=>x(pe,X)),null,2))},M.isUndefined=T,M.withoutUndefinedKeys=function V(b={}){return Object.keys(b).reduce((X,pe)=>T(b[pe])?X:Object.assign({},X,{[pe]:b[pe]}),{})},M.arrowSvgPath=function z(b,X,pe){const Ne=b.template.arrow.size,rt=pe.style.dot.size+b.template.arrow.offset,Rt=Math.PI/7,dt=function R(b,X,pe){const fe=X.x-pe.x,Ne=X.y-pe.y,rt=b.template.commit.spacing;let Rt,dt;switch(b.orientation){case zt.Orientation.Horizontal:Rt=Ne,dt=-rt;break;case zt.Orientation.HorizontalReverse:Rt=Ne,dt=rt;break;case zt.Orientation.VerticalReverse:Rt=-rt,dt=fe;break;default:Rt=rt,dt=fe}return b.isVertical?Math.abs(Ne)>rt&&(dt=0):Math.abs(fe)>rt&&(Rt=0),b.reverseArrow&&(Rt*=-1,dt*=-1),Math.atan2(Rt,dt)}(b,X,pe),Ps=rt*Math.cos(dt),bo=rt*Math.sin(dt),Ls=(rt+Ne)*Math.cos(dt-Rt),Vs=(rt+Ne)*Math.sin(dt-Rt),ot=(rt+Ne/2)*Math.cos(dt),Bs=(rt+Ne/2)*Math.sin(dt),_i=(rt+Ne)*Math.cos(dt+Rt),vi=(rt+Ne)*Math.sin(dt+Rt);return`M${Ps},${bo} L${Ls},${Vs} Q${ot},${Bs} ${_i},${vi} L${_i},${vi}`}});at(Ie);var ct=lt(function(P,M){Object.defineProperty(M,"__esModule",{value:!0});var J=(()=>{return(R=J||(J={})).Bezier="bezier",R.Straight="straight",J;var R})();M.MergeStyle=J,M.DEFAULT_FONT="normal 12pt Calibri";class ae{constructor(b){b.branch=b.branch||{},b.branch.label=b.branch.label||{},b.arrow=b.arrow||{},b.commit=b.commit||{},b.commit.dot=b.commit.dot||{},b.commit.message=b.commit.message||{},this.colors=b.colors||["#000000"],this.branch={color:b.branch.color,lineWidth:b.branch.lineWidth||2,mergeStyle:b.branch.mergeStyle||J.Bezier,spacing:Ie.numberOptionOr(b.branch.spacing,20),label:{display:Ie.booleanOptionOr(b.branch.label.display,!0),color:b.branch.label.color||b.commit.color,strokeColor:b.branch.label.strokeColor||b.commit.color,bgColor:b.branch.label.bgColor||"white",font:b.branch.label.font||b.commit.message.font||M.DEFAULT_FONT,borderRadius:Ie.numberOptionOr(b.branch.label.borderRadius,10)}},this.arrow={size:b.arrow.size||null,color:b.arrow.color||null,offset:b.arrow.offset||2},this.commit={color:b.commit.color,spacing:Ie.numberOptionOr(b.commit.spacing,25),hasTooltipInCompactMode:Ie.booleanOptionOr(b.commit.hasTooltipInCompactMode,!0),dot:{color:b.commit.dot.color||b.commit.color,size:b.commit.dot.size||3,strokeWidth:Ie.numberOptionOr(b.commit.dot.strokeWidth,0),strokeColor:b.commit.dot.strokeColor,font:b.commit.dot.font||b.commit.message.font||"normal 10pt Calibri"},message:{display:Ie.booleanOptionOr(b.commit.message.display,!0),displayAuthor:Ie.booleanOptionOr(b.commit.message.displayAuthor,!0),displayHash:Ie.booleanOptionOr(b.commit.message.displayHash,!0),color:b.commit.message.color||b.commit.color,font:b.commit.message.font||M.DEFAULT_FONT}},this.tag=b.tag||{}}}M.Template=ae;const x=new ae({colors:["#6963FF","#47E8D4","#6BDB52","#E84BA5","#FFA657"],branch:{color:"#000000",lineWidth:4,spacing:50,mergeStyle:J.Straight},commit:{spacing:60,dot:{size:16,strokeColor:"#000000",strokeWidth:4},message:{color:"black"}},arrow:{size:16,offset:-1.5}});M.blackArrowTemplate=x;const I=new ae({colors:["#979797","#008fb5","#f1c109"],branch:{lineWidth:10,spacing:50},commit:{spacing:80,dot:{size:14},message:{font:"normal 14pt Arial"}}});M.metroTemplate=I;var T=(()=>{return(R=T||(T={})).Metro="metro",R.BlackArrow="blackarrow",T;var R})();function z(R){return R?"string"==typeof R?{[T.BlackArrow]:x,[T.Metro]:I}[R]:R:I}M.TemplateName=T,M.templateExtend=function V(R,b){const X=z(R);return b.branch||(b.branch={}),b.commit||(b.commit={}),{colors:b.colors||X.colors,arrow:Object.assign({},X.arrow,b.arrow),branch:Object.assign({},X.branch,b.branch,{label:Object.assign({},X.branch.label,b.branch.label)}),commit:Object.assign({},X.commit,b.commit,{dot:Object.assign({},X.commit.dot,b.commit.dot),message:Object.assign({},X.commit.message,b.commit.message)}),tag:Object.assign({},X.tag,b.tag)}},M.getTemplate=z});at(ct);var fi=lt(function(P,M){Object.defineProperty(M,"__esModule",{value:!0});M.Tag=class J{constructor(x,I,T,V){this.name=x,this.tagStyle=I,this.commitStyle=V,this.render=T}get style(){return{strokeColor:this.tagStyle.strokeColor||this.commitStyle.color,bgColor:this.tagStyle.bgColor||this.commitStyle.color,color:this.tagStyle.color||"white",font:this.tagStyle.font||this.commitStyle.message.font||ct.DEFAULT_FONT,borderRadius:Ie.numberOptionOr(this.tagStyle.borderRadius,10),pointerWidth:Ie.numberOptionOr(this.tagStyle.pointerWidth,12)}}}});at(fi);var yr=lt(function(P,M){Object.defineProperty(M,"__esModule",{value:!0});class ae{constructor(I){let T,V;this.refs=[],this.x=0,this.y=0;try{[,T,V]=I.author.match(/(.*) <(.*)>/)}catch{[T,V]=[I.author,""]}this.author={name:T,email:V,timestamp:Date.now()},this.committer={name:T,email:V,timestamp:Date.now()},this.subject=I.subject,this.body=I.body||"",this.hash=I.hash||(Math.random().toString(16).substring(3)+Math.random().toString(16).substring(3)+Math.random().toString(16).substring(3)+Math.random().toString(16).substring(3)).substring(0,40),this.hashAbbrev=this.hash.substring(0,7),this.parents=I.parents?I.parents:[],this.parentsAbbrev=this.parents.map(z=>z.substring(0,7)),this.style=Object.assign({},I.style,{message:Object.assign({},I.style.message),dot:Object.assign({},I.style.dot)}),this.dotText=I.dotText,this.onClick=()=>I.onClick?I.onClick(this):void 0,this.onMessageClick=()=>I.onMessageClick?I.onMessageClick(this):void 0,this.onMouseOver=()=>I.onMouseOver?I.onMouseOver(this):void 0,this.onMouseOut=()=>I.onMouseOut?I.onMouseOut(this):void 0,this.renderDot=I.renderDot,this.renderMessage=I.renderMessage,this.renderTooltip=I.renderTooltip}get message(){let I="";return this.style.message.displayHash&&(I+=`${this.hashAbbrev} `),I+=this.subject,this.style.message.displayAuthor&&(I+=` - ${this.author.name} <${this.author.email}>`),I}get branchToDisplay(){return this.branches?this.branches[0]:""}setRefs(I){return this.refs=I.getNames(this.hash),this}setTags(I,T,V){return this.tags=I.getNames(this.hash).map(z=>new fi.Tag(z,T(z),V(z),this.style)),this}setBranches(I){return this.branches=I,this}setPosition({x:I,y:T}){return this.x=I,this.y=T,this}withDefaultColor(I){const T=Object.assign({},this.style,{dot:Object.assign({},this.style.dot),message:Object.assign({},this.style.message)});T.color||(T.color=I),T.dot.color||(T.dot.color=I),T.message.color||(T.message.color=I);const V=this.cloneCommit();return V.style=T,V}cloneCommit(){const I=new ae({author:`${this.author.name} <${this.author.email}>`,subject:this.subject,style:this.style,body:this.body,hash:this.hash,parents:this.parents,dotText:this.dotText,onClick:this.onClick,onMessageClick:this.onMessageClick,onMouseOver:this.onMouseOver,onMouseOut:this.onMouseOut,renderDot:this.renderDot,renderMessage:this.renderMessage,renderTooltip:this.renderTooltip});return I.refs=this.refs,I.branches=this.branches,I.tags=this.tags,I.x=this.x,I.y=this.y,I}}M.Commit=ae});at(yr);var ln=lt(function(P,M){var J=Be&&Be.__rest||function(I,T){var V={};for(var z in I)Object.prototype.hasOwnProperty.call(I,z)&&T.indexOf(z)<0&&(V[z]=I[z]);if(null!=I&&"function"==typeof Object.getOwnPropertySymbols){var R=0;for(z=Object.getOwnPropertySymbols(I);RX.commits.find(({hash:fe})=>fe===pe);let b=R(V,V.refs.getCommit(z.name));for(;b&&b.hash!==z.parentCommitHash;)yield b,b=R(V,b.parents[0])}(this._graph,this._branch)].forEach(V=>{V.refs=V.refs.filter(z=>z!==this.name)}),this._graph.refs.delete(this.name),this._graph.branches.delete(this.name),this._branch=cn.createDeletedBranch(this._graph,this._branch.style,()=>{}),this._onGraphUpdate(),this}merge(...T){if(this._branch.isDeleted()&&!this._isReferenced())throw new Error(`Cannot merge to the deleted branch "${this.name}"`);let V=T[0];(function x(I){return"object"==typeof I&&!(I instanceof ae)})(V)||(V={branch:T[0],fastForward:!1,commitOptions:{subject:T[1]}});const{branch:z,fastForward:R,commitOptions:b}=V,X="string"==typeof z?z:z.name,pe=this._graph.refs.getCommit(X);if(!pe)throw new Error(`The branch called "${X}" is unknown`);let fe=!1;if(R){const Ne=this._graph.refs.getCommit(this._branch.name);Ne&&(fe=this._areCommitsConnected(Ne,pe))}return R&&fe?this._fastForwardTo(pe):this._commitWithParents(Object.assign({},b,{subject:b&&b.subject||`Merge branch ${X}`}),[pe]),this._onGraphUpdate(),this}tag(T){if(this._branch.isDeleted()&&!this._isReferenced())throw new Error(`Cannot tag on the deleted branch "${this.name}"`);return"string"==typeof T?this._graph.getUserApi().tag({name:T,ref:this._branch.name}):this._graph.getUserApi().tag(Object.assign({},T,{ref:this._branch.name})),this}checkout(){if(this._branch.isDeleted()&&!this._isReferenced())throw new Error(`Cannot checkout the deleted branch "${this.name}"`);const T=this._branch,V=this._graph.refs.getCommit(T.name);return this._graph.currentBranch=T,V&&this._graph.refs.set("HEAD",V),this}_commitWithParents(T,V){const z=this._graph.refs.getCommit(this._branch.name);z?V.unshift(z):this._branch.parentCommitHash&&V.unshift(this._branch.parentCommitHash);const{tag:R}=T,b=J(T,["tag"]),X=new yr.Commit(Object.assign({hash:this._graph.generateCommitHash(),author:this._branch.commitDefaultOptions.author||this._graph.author,subject:this._branch.commitDefaultOptions.subject||this._graph.commitMessage},b,{parents:V,style:this._getCommitStyle(T.style)}));z?this._graph.refs.getNames(z).forEach(fe=>this._graph.refs.set(fe,X.hash)):this._graph.refs.set(this._branch.name,X.hash),this._graph.commits.push(X),this.checkout(),R&&this.tag(R)}_areCommitsConnected(T,V){const z=this._graph.commits.find(({hash:b})=>V===b);return!(!z||0===z.parents.length)&&(!!z.parents.includes(T)||z.parents.some(b=>this._areCommitsConnected(T,b)))}_fastForwardTo(T){this._graph.refs.set(this._branch.name,T)}_getCommitStyle(T={}){return Object.assign({},Ie.withoutUndefinedKeys(this._graph.template.commit),Ie.withoutUndefinedKeys(this._branch.commitDefaultOptions.style),T,{message:Object.assign({},Ie.withoutUndefinedKeys(this._graph.template.commit.message),Ie.withoutUndefinedKeys(this._branch.commitDefaultOptions.style.message),T.message,Ie.withoutUndefinedKeys({display:this._graph.shouldDisplayCommitMessage&&void 0})),dot:Object.assign({},Ie.withoutUndefinedKeys(this._graph.template.commit.dot),Ie.withoutUndefinedKeys(this._branch.commitDefaultOptions.style.dot),T.dot)})}_isReferenced(){return this._graph.branches.has(this.name)||this._graph.refs.hasName(this.name)||this._graph.commits.reduce((T,{refs:V})=>[...T,...V],[]).includes(this.name)}}M.BranchUserApi=ae});at(ln);var cn=lt(function(P,M){Object.defineProperty(M,"__esModule",{value:!0});const J="";M.DELETED_BRANCH_NAME=J;class ae{constructor(T){this.gitgraph=T.gitgraph,this.name=T.name,this.style=T.style,this.parentCommitHash=T.parentCommitHash,this.commitDefaultOptions=T.commitDefaultOptions||{style:{}},this.onGraphUpdate=T.onGraphUpdate,this.renderLabel=T.renderLabel}getUserApi(){return new ln.BranchUserApi(this,this.gitgraph,this.onGraphUpdate)}isDeleted(){return this.name===J}}M.Branch=ae,M.createDeletedBranch=function x(I,T,V){return new ae({name:J,gitgraph:I,style:T,onGraphUpdate:V})}});at(cn);var Ur=lt(function(P,M){Object.defineProperty(M,"__esModule",{value:!0});var J=(()=>((J||(J={})).Compact="compact",J))();M.Mode=J});at(Ur);var qt=lt(function(P,M){Object.defineProperty(M,"__esModule",{value:!0});M.RegularGraphRows=class J{constructor(I){this.rows=new Map,this.maxRowCache=void 0,this.computeRowsFromCommits(I)}getRowOf(I){return this.rows.get(I)||0}getMaxRow(){return void 0===this.maxRowCache&&(this.maxRowCache=function ae(x){const I=new Set;return x.forEach(T=>I.add(T)),Array.from(I)}(Array.from(this.rows.values())).length-1),this.maxRowCache}computeRowsFromCommits(I){I.forEach((T,V)=>{this.rows.set(T.hash,V)}),this.maxRowCache=void 0}}});at(qt);var hi=lt(function(P,M){Object.defineProperty(M,"__esModule",{value:!0});M.CompactGraphRows=class J extends qt.RegularGraphRows{computeRowsFromCommits(x){x.forEach((I,T)=>{let V=T;if(0!==T){const R=this.getRowOf(I.parents[0]);V=Math.max(R+1,this.getRowOf(x[T-1].hash)),I.parents.length>1&&Rthis.branches.add(V.branchToDisplay)),T&&(this.branches=new Set(Array.from(this.branches).sort(T)))}get(x){return Array.from(this.branches).findIndex(I=>I===x)}getColorOf(x){return this.colors[this.get(x)%this.colors.length]}}});at($r);var Hn=lt(function(P,M){Object.defineProperty(M,"__esModule",{value:!0});M.Refs=class J{constructor(){this.commitPerName=new Map,this.namesPerCommit=new Map}set(x,I){const T=this.commitPerName.get(x);return T&&this.removeNameFrom(T,x),this.addNameTo(I,x),this.addCommitTo(x,I),this}delete(x){return this.hasName(x)&&(this.removeNameFrom(this.getCommit(x),x),this.commitPerName.delete(x)),this}getCommit(x){return this.commitPerName.get(x)}getNames(x){return this.namesPerCommit.get(x)||[]}getAllNames(){return Array.from(this.commitPerName.keys())}hasCommit(x){return this.namesPerCommit.has(x)}hasName(x){return this.commitPerName.has(x)}removeNameFrom(x,I){const T=this.namesPerCommit.get(x)||[];this.namesPerCommit.set(x,T.filter(V=>V!==I))}addNameTo(x,I){const T=this.namesPerCommit.get(x)||[];this.namesPerCommit.set(x,[...T,I])}addCommitTo(x,I){this.commitPerName.set(x,I)}}});at(Hn);var br=lt(function(P,M){Object.defineProperty(M,"__esModule",{value:!0});M.BranchesPathsCalculator=class J{constructor(I,T,V,z,R,b){this.branchesPaths=new Map,this.commits=I,this.branches=T,this.commitSpacing=V,this.isGraphVertical=z,this.isGraphReverse=R,this.createDeletedBranch=b}execute(){return this.fromCommits(),this.withMergeCommits(),this.smoothBranchesPaths()}fromCommits(){this.commits.forEach(I=>{let T=this.branches.get(I.branchToDisplay);T||(T=this.getDeletedBranchInPath()||this.createDeletedBranch());const V=[],z=this.branchesPaths.get(T),R=this.commits.find(({hash:b})=>b===I.parents[0]);z?V.push(...z):R&&V.push({x:R.x,y:R.y}),V.push({x:I.x,y:I.y}),this.branchesPaths.set(T,V)})}withMergeCommits(){this.commits.filter(({parents:T})=>T.length>1).forEach(T=>{const V=this.commits.find(({hash:X})=>X===T.parents[1]);if(!V)return;let R=this.branches.get(V.branches?V.branches[0]:"");if(!R&&(R=this.getDeletedBranchInPath(),!R))return;const b=[...this.branchesPaths.get(R)||[]];this.branchesPaths.set(R,[...b,{x:T.x,y:T.y,mergeCommit:!0}])})}getDeletedBranchInPath(){return Array.from(this.branchesPaths.keys()).find(I=>I.isDeleted())}smoothBranchesPaths(){const I=new Map;return this.branchesPaths.forEach((T,V)=>{if(T.length<=1)return void I.set(V,[T]);T=T.sort(this.isGraphVertical?(R,b)=>R.y>b.y?-1:1:(R,b)=>R.x>b.x?1:-1),this.isGraphReverse&&(T=T.reverse());const z=T.reduce((R,b,X)=>{if(b.mergeCommit){R[R.length-1].push(Ie.pick(b,["x","y"]));let pe=X-1,fe=T[pe];for(;pe>=0&&fe.mergeCommit;)pe--,fe=T[pe];pe>=0&&R.push([fe])}else R[R.length-1].push(b);return R},[[]]);this.isGraphReverse&&z.forEach(R=>R.reverse()),z.forEach(this.isGraphVertical?R=>{if(R.length<=1)return;const b=R[0],X=R[R.length-1],pe=R[1].x,fe=Math.round(Math.abs(b.y-X.y)/this.commitSpacing)-1,Ne=fe>0?new Array(fe).fill(0).map((Rt,dt)=>({x:pe,y:R[0].y-this.commitSpacing*(dt+1)})):[],rt=I.get(V)||[];I.set(V,[...rt,[b,...Ne,X]])}:R=>{if(R.length<=1)return;const b=R[0],X=R[R.length-1],pe=R[1].y,fe=Math.round(Math.abs(b.x-X.x)/this.commitSpacing)-1,Ne=fe>0?new Array(fe).fill(0).map((Rt,dt)=>({y:pe,x:R[0].x+this.commitSpacing*(dt+1)})):[],rt=I.get(V)||[];I.set(V,[...rt,[b,...Ne,X]])})}),I}},M.toSvgPath=function ae(x,I,T){return x.map(V=>"M"+V.map(({x:z,y:R},b,X)=>{if(I&&X.length>1&&(1===b||b===X.length-1)){const pe=X[b-1];if(T){const fe=(pe.y+R)/2;return`C ${pe.x} ${fe} ${z} ${fe} ${z} ${R}`}{const fe=(pe.x+z)/2;return`C ${fe} ${pe.y} ${fe} ${R} ${z} ${R}`}}return`L ${z} ${R}`}).join(" ").slice(1)).join(" ")}});at(br);var F=lt(function(P,M){Object.defineProperty(M,"__esModule",{value:!0});M.GitgraphUserApi=class J{constructor(x,I){this._graph=x,this._onGraphUpdate=I}clear(){return this._graph.refs=new Hn.Refs,this._graph.tags=new Hn.Refs,this._graph.commits=[],this._graph.branches=new Map,this._graph.currentBranch=this._graph.createBranch("master"),this._onGraphUpdate(),this}commit(x){return this._graph.currentBranch.getUserApi().commit(x),this}branch(x){return this._graph.createBranch(x).getUserApi()}tag(...x){let I,T,V,z,R;if("string"==typeof x[0]?(I=x[0],T=x[1]):(I=x[0].name,T=x[0].ref,V=x[0].style,z=x[0].render),!T){const b=this._graph.refs.getCommit("HEAD");if(!b)return this;T=b}if(this._graph.refs.hasCommit(T)&&(R=T),this._graph.refs.hasName(T)&&(R=this._graph.refs.getCommit(T)),!R)throw new Error(`The ref "${T}" does not exist`);return this._graph.tags.set(I,R),this._graph.tagStyles[I]=V,this._graph.tagRenders[I]=z,this._onGraphUpdate(),this}import(x){const I=new Error("Only `git2json` format is supported for imported data.");if(!Array.isArray(x)||!x.every(R=>"object"==typeof R&&"object"==typeof R.author&&Array.isArray(R.refs)))throw I;const V=x.map(R=>Object.assign({},R,{style:Object.assign({},this._graph.template.commit,{message:Object.assign({},this._graph.template.commit.message,{display:this._graph.shouldDisplayCommitMessage})}),author:`${R.author.name} <${R.author.email}>`})).reverse();this.clear(),this._graph.commits=V.map(R=>new yr.Commit(R)),V.forEach(({refs:R,hash:b})=>{if(!R||!b)return;const X="tag: ";R.map(fe=>fe.split(X)).map(([fe,Ne])=>Ne).filter(fe=>"string"==typeof fe).forEach(fe=>this._graph.tags.set(fe,b)),R.filter(fe=>!fe.startsWith(X)).forEach(fe=>this._graph.refs.set(fe,b))});const z=this._getBranches();return this._graph.commits.map(R=>this._withBranches(z,R)).reduce((R,b)=>(b.branches&&b.branches.forEach(X=>R.add(X)),R),new Set).forEach(R=>this.branch(R)),this._onGraphUpdate(),this}_withBranches(x,I){let T=Array.from((x.get(I.hash)||new Set).values());return 0===T.length&&(T=[cn.DELETED_BRANCH_NAME]),I.setBranches(T)}_getBranches(){const x=new Map,I=[];return this._graph.refs.getAllNames().filter(V=>"HEAD"!==V).forEach(V=>{const z=this._graph.refs.getCommit(V);for(z&&I.push(z);I.length>0;){const R=I.pop(),b=this._graph.commits.find(({hash:pe})=>pe===R),X=x.get(R)||new Set;X.add(V),x.set(R,X),b&&b.parents&&b.parents.length>0&&I.push(b.parents[0])}}),x}}});at(F);var L=lt(function(P,M){Object.defineProperty(M,"__esModule",{value:!0});M.GitgraphCore=class J{constructor(x={}){this.refs=new Hn.Refs,this.tags=new Hn.Refs,this.tagStyles={},this.tagRenders={},this.commits=[],this.branches=new Map,this.listeners=[],this.nextTimeoutId=null,this.template=ct.getTemplate(x.template),this.currentBranch=this.createBranch("master"),this.orientation=x.orientation,this.reverseArrow=Ie.booleanOptionOr(x.reverseArrow,!1),this.initCommitOffsetX=Ie.numberOptionOr(x.initCommitOffsetX,0),this.initCommitOffsetY=Ie.numberOptionOr(x.initCommitOffsetY,0),this.mode=x.mode,this.author=x.author||"Sergio Flores ",this.commitMessage=x.commitMessage||"He doesn't like George Michael! Boooo!",this.generateCommitHash="function"==typeof x.generateCommitHash?x.generateCommitHash:()=>{},this.branchesOrderFunction="function"==typeof x.compareBranchesOrder?x.compareBranchesOrder:void 0,this.branchLabelOnEveryCommit=Ie.booleanOptionOr(x.branchLabelOnEveryCommit,!1)}get isHorizontal(){return this.orientation===zt.Orientation.Horizontal||this.orientation===zt.Orientation.HorizontalReverse}get isVertical(){return!this.isHorizontal}get isReverse(){return this.orientation===zt.Orientation.HorizontalReverse||this.orientation===zt.Orientation.VerticalReverse}get shouldDisplayCommitMessage(){return!this.isHorizontal&&this.mode!==Ur.Mode.Compact}getUserApi(){return new F.GitgraphUserApi(this,()=>this.next())}subscribe(x){this.listeners.push(x);let I=!0;return()=>{if(!I)return;I=!1;const T=this.listeners.indexOf(x);this.listeners.splice(T,1)}}getRenderedData(){const x=this.computeRenderedCommits(),I=this.computeRenderedBranchesPaths(x),T=this.computeCommitMessagesX(I);return this.computeBranchesColor(x,I),{commits:x,branchesPaths:I,commitMessagesX:T}}createBranch(x){const I="HEAD";let T={gitgraph:this,name:"",parentCommitHash:this.refs.getCommit(I),style:this.template.branch,onGraphUpdate:()=>this.next()};if("string"==typeof x)T.name=x,T.parentCommitHash=this.refs.getCommit(I);else{const R=this.refs.getCommit(x.from?x.from.name:I)||(this.refs.hasCommit(x.from)?x.from:void 0);x.style=x.style||{},T=Object.assign({},T,x,{parentCommitHash:R,style:Object.assign({},T.style,x.style,{label:Object.assign({},T.style.label,x.style.label)})})}const V=new cn.Branch(T);return this.branches.set(V.name,V),V}computeRenderedCommits(){const x=this.getBranches(),I=(()=>{const b=new Set(this.commits.reduce((fe,{hash:Ne})=>x.has(Ne)?fe:[...fe,Ne],[])),X=this.commits.reduce((fe,Ne)=>Ne.parents.length>1?[...fe,...Ne.parents.slice(1).map(rt=>this.commits.find(({hash:Rt})=>rt===Rt))]:fe,[]),pe=new Set;return X.forEach(fe=>{let Ne=fe;for(;Ne&&b.has(Ne.hash);)pe.add(Ne.hash),Ne=Ne.parents.length>0?this.commits.find(({hash:rt})=>Ne.parents[0]===rt):void 0}),pe})(),T=this.commits.filter(({hash:b})=>x.has(b)||I.has(b)),V=T.map(b=>this.withBranches(x,b)),z=ut.createGraphRows(this.mode,T),R=new $r.BranchesOrder(V,this.template.colors,this.branchesOrderFunction);return V.map(b=>b.setRefs(this.refs)).map(b=>this.withPosition(z,R,b)).map(b=>b.withDefaultColor(this.getBranchDefaultColor(R,b.branchToDisplay))).map(b=>b.setTags(this.tags,X=>Object.assign({},this.tagStyles[X],this.template.tag),X=>this.tagRenders[X]))}computeRenderedBranchesPaths(x){return new br.BranchesPathsCalculator(x,this.branches,this.template.commit.spacing,this.isVertical,this.isReverse,()=>cn.createDeletedBranch(this,this.template.branch,()=>this.next())).execute()}computeBranchesColor(x,I){const T=new $r.BranchesOrder(x,this.template.colors,this.branchesOrderFunction);Array.from(I).forEach(([V])=>{V.computedColor=V.style.color||this.getBranchDefaultColor(T,V.name)})}computeCommitMessagesX(x){return Array.from(x).length*this.template.branch.spacing}withBranches(x,I){let T=Array.from((x.get(I.hash)||new Set).values());return 0===T.length&&(T=[cn.DELETED_BRANCH_NAME]),I.setBranches(T)}getBranches(){const x=new Map,I=[];return this.refs.getAllNames().filter(V=>"HEAD"!==V).forEach(V=>{const z=this.refs.getCommit(V);for(z&&I.push(z);I.length>0;){const R=I.pop(),b=this.commits.find(({hash:pe})=>pe===R),X=x.get(R)||new Set;X.add(V),x.set(R,X),b&&b.parents&&b.parents.length>0&&I.push(b.parents[0])}}),x}withPosition(x,I,T){const V=x.getRowOf(T.hash),z=x.getMaxRow(),R=I.get(T.branchToDisplay);switch(this.orientation){default:return T.setPosition({x:this.initCommitOffsetX+this.template.branch.spacing*R,y:this.initCommitOffsetY+this.template.commit.spacing*(z-V)});case zt.Orientation.VerticalReverse:return T.setPosition({x:this.initCommitOffsetX+this.template.branch.spacing*R,y:this.initCommitOffsetY+this.template.commit.spacing*V});case zt.Orientation.Horizontal:return T.setPosition({x:this.initCommitOffsetX+this.template.commit.spacing*V,y:this.initCommitOffsetY+this.template.branch.spacing*R});case zt.Orientation.HorizontalReverse:return T.setPosition({x:this.initCommitOffsetX+this.template.commit.spacing*(z-V),y:this.initCommitOffsetY+this.template.branch.spacing*R})}}getBranchDefaultColor(x,I){return x.getColorOf(I)}next(){this.nextTimeoutId&&window.clearTimeout(this.nextTimeoutId),this.nextTimeoutId=window.setTimeout(()=>{this.listeners.forEach(x=>x(this.getRenderedData()))},0)}}});at(L);var W=lt(function(P,M){Object.defineProperty(M,"__esModule",{value:!0}),M.GitgraphCore=L.GitgraphCore,M.Mode=Ur.Mode,M.GitgraphUserApi=F.GitgraphUserApi,M.BranchUserApi=ln.BranchUserApi,M.Branch=cn.Branch,M.Commit=yr.Commit,M.Tag=fi.Tag,M.Refs=Hn.Refs,M.MergeStyle=ct.MergeStyle,M.TemplateName=ct.TemplateName,M.templateExtend=ct.templateExtend,M.Orientation=zt.Orientation,M.toSvgPath=br.toSvgPath,M.arrowSvgPath=Ie.arrowSvgPath});at(W);var le=W.GitgraphCore,mt=W.Mode,bn=W.MergeStyle,un=W.TemplateName,Hi=W.templateExtend,_t=W.Orientation,gi=W.toSvgPath,Rs=W.arrowSvgPath,kn="http://www.w3.org/2000/svg";function Yt(P){var M=document.createElementNS(kn,"g");return P.children.forEach(function(J){return J&&M.appendChild(J)}),P.translate&&M.setAttribute("transform","translate("+P.translate.x+", "+P.translate.y+")"),P.fill&&M.setAttribute("fill",P.fill),P.stroke&&M.setAttribute("stroke",P.stroke),P.strokeWidth&&M.setAttribute("stroke-width",P.strokeWidth.toString()),P.onClick&&M.addEventListener("click",P.onClick),P.onMouseOver&&M.addEventListener("mouseover",P.onMouseOver),P.onMouseOut&&M.addEventListener("mouseout",P.onMouseOut),M}function vo(P){var M=document.createElementNS(kn,"text");return M.setAttribute("alignment-baseline","central"),M.setAttribute("dominant-baseline","central"),M.textContent=P.content,P.fill&&M.setAttribute("fill",P.fill),P.font&&M.setAttribute("style","font: "+P.font),P.anchor&&M.setAttribute("text-anchor",P.anchor),P.translate&&(M.setAttribute("x",P.translate.x.toString()),M.setAttribute("y",P.translate.y.toString())),P.onClick&&M.addEventListener("click",P.onClick),M}function Gi(P){var M=document.createElementNS(kn,"path");return M.setAttribute("d",P.d),P.fill&&M.setAttribute("fill",P.fill),P.stroke&&M.setAttribute("stroke",P.stroke),P.strokeWidth&&M.setAttribute("stroke-width",P.strokeWidth.toString()),P.translate&&M.setAttribute("transform","translate("+P.translate.x+", "+P.translate.y+")"),M}function Os(P){var M=document.createElementNS(kn,"use");return M.setAttribute("href","#"+P),M.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href","#"+P),M}function Dl(P){var M=document.createElementNS(kn,"defs");return P.forEach(function(J){return M.appendChild(J)}),M}var mi=10,Ns=5;function El(P,M){var J=function Cl(P){var M=document.createElementNS(kn,"rect");return M.setAttribute("width",P.width.toString()),M.setAttribute("height",P.height.toString()),P.borderRadius&&M.setAttribute("rx",P.borderRadius.toString()),P.fill&&M.setAttribute("fill",P.fill||"none"),P.stroke&&M.setAttribute("stroke",P.stroke),M}({width:0,height:0,borderRadius:P.style.label.borderRadius,stroke:P.style.label.strokeColor||M.style.color,fill:P.style.label.bgColor}),ae=vo({content:P.name,translate:{x:mi,y:0},font:P.style.label.font,fill:P.style.label.color||M.style.color}),x=Yt({children:[J]});return new MutationObserver(function(){var T=ae.getBBox(),b=T.height+2*Ns;J.setAttribute("width",(T.width+2*mi).toString()),J.setAttribute("height",b.toString()),ae.setAttribute("y",(b/2).toString())}).observe(x,{attributes:!1,subtree:!1,childList:!0}),x.appendChild(ae),x}var yo=10,Cn=5;var zi=10,Gn=10;function Tl(P){var M=0;if(P){var J=P.getBoundingClientRect().height,ae=window.getComputedStyle(P).marginTop||"0px";M=J+parseInt(ae.replace("px",""),10)}return M}yn.MergeStyle=bn,yn.Mode=mt,yn.Orientation=_t,yn.TemplateName=un,yn.createGitgraph=function Sl(P,M){var I,T,J={},ae={},x=!1,V=0,z=null,R=function bl(P){var M=document.createElementNS(kn,"svg");return P&&(P.children&&P.children.forEach(function(J){return M.appendChild(J)}),P.viewBox&&M.setAttribute("viewBox",P.viewBox),P.height&&M.setAttribute("height",P.height.toString()),P.width&&M.setAttribute("width",P.width.toString())),M}();(function pe(Y){new MutationObserver(function(){x?(x=!1,function Ge(){var Z=Array.from(T.children),pt=0,Ot=b.orientation===_t.VerticalReverse?Z:Z.reverse();ae=Ot.reduce(function(zn,qn){var q=parseInt(qn.getAttribute("transform").split(",")[1].slice(0,-1),10),Zt=qn.getElementsByTagName("foreignObject")[0],me=Zt&&Zt.firstElementChild;return zn[q]=q+pt,pt+=Tl(me),zn},{})}(),X(I)):(function Le(){b.isHorizontal||Object.keys(J).forEach(function(pt){var Ot=J[pt],zn=Ot.branchLabel,qn=Ot.tags,q=Ot.message,Zt=V;if(zn){fe(zn,Zt);var me=zn.getBBox().width+2*mi;Zt+=me+10}qn.forEach(function(je){fe(je,Zt);var Qu=parseFloat(je.getAttribute("data-offset")||"0"),cg=je.getBBox().width+2*yo+Qu;Zt+=cg+10}),q&&fe(q,Zt)})}(),function ge(Z){var pt=R.getBBox(),Ot=pt.height,zn=pt.width,Zt=b.isHorizontal?50:mi+zi,me=b.isHorizontal?50:Ns+zi+20;Z?(R.setAttribute("preserveAspectRatio","xMinYMin meet"),R.setAttribute("viewBox","0 0 "+(zn+Zt)+" "+(Ot+me))):(R.setAttribute("width",(zn+Zt).toString()),R.setAttribute("height",(Ot+me).toString()))}(Y))}).observe(R,{attributes:!1,subtree:!0,childList:!0})})(Boolean(M&&M.responsive)),P.appendChild(R),M&&M.responsive&&P.setAttribute("style","display:inline-block; position: relative; width:100%; padding-bottom:100%; vertical-align:middle; overflow:hidden;");var b=new le(M);return b.subscribe(function(Y){x=!0,X(Y)}),b.getUserApi();function X(Y){J={};var Ge=Y.branchesPaths;V=Y.commitMessagesX,I=Y,T=function rt(Y){return Yt({children:Y.map(ne)});function ne(Le){var ge=ot(Le),Z=ge.x;return Yt({translate:{x:Z,y:ge.y},children:[Ls(Le)].concat(Ge(Le),[Yt({translate:{x:-Z,y:0},children:[Rt(Le)].concat(Ps(Le),bo(Le))})])})}function Ge(Le){if(!b.template.arrow.size)return[null];var ge=Le.style.dot.size;return Le.parents.map(function(Z){var pt=Y.find(function(qn){return qn.hash===Z});return pt?Yt({translate:b.reverseArrow?{x:ge+(pt.x-Le.x),y:ge+(pt.y-Le.y)}:{x:ge,y:ge},children:[Gi({d:Rs(b,pt,Le),fill:b.template.arrow.color||""})]}):null})}}(Y.commits),R.innerHTML="",R.appendChild(Yt({translate:{x:mi,y:zi},children:[Ne(Ge),T]}))}function fe(Y,ne){var Ge=Y.getAttribute("transform")||"translate(0, 0)";Y.setAttribute("transform",Ge.replace(/translate\(([\d\.]+),/,"translate("+ne+","))}function Ne(Y){var ne=b.template.commit.dot.size,Ge=b.template.branch.mergeStyle===bn.Bezier;return Yt({children:Array.from(Y).map(function(ge){var Z=ge[0];return Gi({d:gi(ge[1].map(function(Ot){return Ot.map(ot)}),Ge,b.isVertical),fill:"none",stroke:Z.computedColor||"",strokeWidth:Z.style.lineWidth,translate:{x:ne,y:ne}})})})}function Rt(Y){if(!Y.style.message.display)return null;var ne;if(Y.renderMessage)return dt(ne=Yt({children:[]})),ne.appendChild(Y.renderMessage(Y)),_i(Y,ne),ne;var Ge=vo({content:Y.message,fill:Y.style.message.color||"",font:Y.style.message.font,onClick:Y.onMessageClick});if(ne=Yt({translate:{x:0,y:Y.style.dot.size},children:[Ge]}),Y.body){var Le=function Wu(P){var M=document.createElementNS(kn,"foreignObject");M.setAttribute("width",P.width.toString()),P.translate&&(M.setAttribute("x",P.translate.x.toString()),M.setAttribute("y",P.translate.y.toString()));var J=document.createElement("p");return J.textContent=P.content,M.appendChild(J),M}({width:600,translate:{x:10,y:0},content:Y.body});dt(ne),ne.appendChild(Le)}return _i(Y,ne),ne}function dt(Y){function Ge(Le){if("foreignObject"===Le.nodeName){var ge=Le.firstChild&&Le.firstChild.parentElement;if(!ge)return;ge.setAttribute("height",Tl(ge.firstElementChild).toString())}Le.childNodes.forEach(Ge)}new MutationObserver(function(Le){Le.forEach(function(ge){return Ge(ge.target)})}).observe(Y,{attributes:!1,subtree:!1,childList:!0})}function Ps(Y){return Array.from(b.branches.values()).map(function(Ge){if(!Ge.style.label.display)return null;if(!b.branchLabelOnEveryCommit){var Le=b.refs.getCommit(Ge.name);if(Y.hash!==Le)return null}if(Y.branchToDisplay!==Ge.name)return null;var Z,ge=Ge.renderLabel?Ge.renderLabel(Ge):El(Ge,Y);return Z=Yt(b.isVertical?{children:[ge]}:{translate:{x:Y.x,y:2*Y.style.dot.size+10},children:[ge]}),function Bs(Y,ne){J[Y.hashAbbrev]||Ye(Y),J[Y.hashAbbrev].branchLabel=ne}(Y,Z),Z})}function bo(Y){return Y.tags?b.isHorizontal?[]:Y.tags.map(function(ne){var Ge=ne.render?ne.render(ne.name,ne.style):function Yu(P){var M=Gi({d:"",fill:P.style.bgColor,stroke:P.style.strokeColor}),J=vo({content:P.name,fill:P.style.color,font:P.style.font,translate:{x:0,y:0}}),ae=Yt({children:[M]}),x=P.style.pointerWidth;return new MutationObserver(function(){var T=J.getBBox(),V=T.height,z=T.width;if(0!==V&&0!==z){var R=P.style.borderRadius,b=x+z+2*yo,X=V+2*Cn,pe=["M 0,0","L "+x+","+X/2,"V "+X/2,"Q "+x+","+X/2+" "+(x+R)+","+X/2,"H "+(b-R),"Q "+b+","+X/2+" "+b+","+(X/2-R),"V -"+(X/2-R),"Q "+b+",-"+X/2+" "+(b-R)+",-"+X/2,"H "+(x+R),"Q "+x+",-"+X/2+" "+x+",-"+X/2,"V -"+X/2,"z"].join(" ");M.setAttribute("d",pe.toString()),J.setAttribute("x",(x+yo).toString())}}).observe(ae,{attributes:!1,subtree:!1,childList:!0}),ae.appendChild(J),ae}(ne),Le=Yt({translate:{x:0,y:Y.style.dot.size},children:[Ge]});return Le.setAttribute("data-offset",ne.style.pointerWidth.toString()),function vi(Y,ne){J[Y.hashAbbrev]||Ye(Y),J[Y.hashAbbrev].tags.push(ne)}(Y,Le),Le}):[]}function Ls(Y){if(Y.renderDot)return Y.renderDot(Y);var ne=Y.hash,Ge=function lg(P){var M=document.createElementNS(kn,"circle");return M.setAttribute("cx",P.radius.toString()),M.setAttribute("cy",P.radius.toString()),M.setAttribute("r",P.radius.toString()),P.id&&M.setAttribute("id",P.id),P.fill&&M.setAttribute("fill",P.fill),M}({id:ne,radius:Y.style.dot.size,fill:Y.style.dot.color||""}),Le="clip-"+Y.hash,ge=function wl(){return document.createElementNS(kn,"clipPath")}();ge.setAttribute("id",Le),ge.appendChild(Os(ne));var Z=Os(ne);Z.setAttribute("clip-path","url(#"+Le+")"),Z.setAttribute("stroke",Y.style.dot.strokeColor||""),Z.setAttribute("stroke-width",(Y.style.dot.strokeWidth?2*Y.style.dot.strokeWidth:0).toString());var Ot=Y.dotText?vo({content:Y.dotText,font:Y.style.dot.font,anchor:"middle",translate:{x:Y.style.dot.size,y:Y.style.dot.size}}):null;return Yt({onClick:Y.onClick,onMouseOver:function(){(function Vs(Y){if(R.firstChild&&(!b.isVertical||b.mode===mt.Compact)&&(!b.isVertical||Y.style.hasTooltipInCompactMode)){var ne=Y.renderTooltip?Y.renderTooltip(Y):function Ku(P){var M=Gi({d:"",fill:"#EEE"}),J=vo({translate:{x:Gn+zi,y:0},content:P.hashAbbrev+" - "+P.subject,fill:"#333"}),ae=2*P.style.dot.size,x=Yt({translate:{x:ae,y:ae/2},children:[M]});return new MutationObserver(function(){var T=J.getBBox().width,R=Gn+T+2*zi,b=["M 0,0","L "+Gn+","+Gn,"V 20","Q "+Gn+",25 "+(Gn+5)+",25","H "+(R-5),"Q "+R+",25 "+R+",20","V -20","Q "+R+",-25 "+(R-5)+",-25","H "+(Gn+5),"Q "+Gn+",-25 "+Gn+",-20","V -"+Gn,"z"].join(" ");M.setAttribute("d",b.toString())}).observe(x,{attributes:!1,subtree:!1,childList:!0}),x.appendChild(J),x}(Y);z=Yt({translate:ot(Y),children:[ne]}),R.firstChild.appendChild(z)}})(Y),Y.onMouseOver()},onMouseOut:function(){z&&z.remove(),Y.onMouseOut()},children:[Dl([Ge,ge]),Z,Ot]})}function ot(Y){var Ge=Y.y;return{x:Y.x,y:ae[Ge]||Ge}}function _i(Y,ne){J[Y.hashAbbrev]||Ye(Y),J[Y.hashAbbrev].message=ne}function Ye(Y){J[Y.hashAbbrev]={branchLabel:null,tags:[],message:null}}},yn.templateExtend=Hi,Object.defineProperty(yn,"__esModule",{value:!0})}(Bi)},34:(ci,Bi,yn)=>{"use strict";function Be(e){return"function"==typeof e}function $n(e){const t=e(r=>{Error.call(r),r.stack=(new Error).stack});return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}const at=$n(e=>function(t){e(this),this.message=t?`${t.length} errors occurred during unsubscription:\n${t.map((r,i)=>`${i+1}) ${r.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=t});function lt(e,n){if(e){const t=e.indexOf(n);0<=t&&e.splice(t,1)}}class Ct{constructor(n){this.initialTeardown=n,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let n;if(!this.closed){this.closed=!0;const{_parentage:t}=this;if(t)if(this._parentage=null,Array.isArray(t))for(const o of t)o.remove(this);else t.remove(this);const{initialTeardown:r}=this;if(Be(r))try{r()}catch(o){n=o instanceof at?o.errors:[o]}const{_finalizers:i}=this;if(i){this._finalizers=null;for(const o of i)try{pl(o)}catch(s){n=n??[],s instanceof at?n=[...n,...s.errors]:n.push(s)}}if(n)throw new at(n)}}add(n){var t;if(n&&n!==this)if(this.closed)pl(n);else{if(n instanceof Ct){if(n.closed||n._hasParent(this))return;n._addParent(this)}(this._finalizers=null!==(t=this._finalizers)&&void 0!==t?t:[]).push(n)}}_hasParent(n){const{_parentage:t}=this;return t===n||Array.isArray(t)&&t.includes(n)}_addParent(n){const{_parentage:t}=this;this._parentage=Array.isArray(t)?(t.push(n),t):t?[t,n]:n}_removeParent(n){const{_parentage:t}=this;t===n?this._parentage=null:Array.isArray(t)&<(t,n)}remove(n){const{_finalizers:t}=this;t&<(t,n),n instanceof Ct&&n._removeParent(this)}}Ct.EMPTY=(()=>{const e=new Ct;return e.closed=!0,e})();const hl=Ct.EMPTY;function zt(e){return e instanceof Ct||e&&"closed"in e&&Be(e.remove)&&Be(e.add)&&Be(e.unsubscribe)}function pl(e){Be(e)?e():e.unsubscribe()}const Ie={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},ji={setTimeout(e,n,...t){const{delegate:r}=ji;return r?.setTimeout?r.setTimeout(e,n,...t):setTimeout(e,n,...t)},clearTimeout(e){const{delegate:n}=ji;return(n?.clearTimeout||clearTimeout)(e)},delegate:void 0};function Es(e){ji.setTimeout(()=>{const{onUnhandledError:n}=Ie;if(!n)throw e;n(e)})}function Ss(){}const gl=po("C",void 0,void 0);function po(e,n,t){return{kind:e,value:n,error:t}}let ct=null;function di(e){if(Ie.useDeprecatedSynchronousErrorHandling){const n=!ct;if(n&&(ct={errorThrown:!1,error:null}),e(),n){const{errorThrown:t,error:r}=ct;if(ct=null,t)throw r}}else e()}class Ui extends Ct{constructor(n){super(),this.isStopped=!1,n?(this.destination=n,zt(n)&&n.add(this)):this.destination=yr}static create(n,t,r){return new Br(n,t,r)}next(n){this.isStopped?go(function ui(e){return po("N",e,void 0)}(n),this):this._next(n)}error(n){this.isStopped?go(function ml(e){return po("E",void 0,e)}(n),this):(this.isStopped=!0,this._error(n))}complete(){this.isStopped?go(gl,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(n){this.destination.next(n)}_error(n){try{this.destination.error(n)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const Is=Function.prototype.bind;function xn(e,n){return Is.call(e,n)}class Ms{constructor(n){this.partialObserver=n}next(n){const{partialObserver:t}=this;if(t.next)try{t.next(n)}catch(r){jr(r)}}error(n){const{partialObserver:t}=this;if(t.error)try{t.error(n)}catch(r){jr(r)}else jr(n)}complete(){const{partialObserver:n}=this;if(n.complete)try{n.complete()}catch(t){jr(t)}}}class Br extends Ui{constructor(n,t,r){let i;if(super(),Be(n)||!n)i={next:n??void 0,error:t??void 0,complete:r??void 0};else{let o;this&&Ie.useDeprecatedNextContext?(o=Object.create(n),o.unsubscribe=()=>this.unsubscribe(),i={next:n.next&&xn(n.next,o),error:n.error&&xn(n.error,o),complete:n.complete&&xn(n.complete,o)}):i=n}this.destination=new Ms(i)}}function jr(e){Ie.useDeprecatedSynchronousErrorHandling?function Ts(e){Ie.useDeprecatedSynchronousErrorHandling&&ct&&(ct.errorThrown=!0,ct.error=e)}(e):Es(e)}function go(e,n){const{onStoppedNotification:t}=Ie;t&&ji.setTimeout(()=>t(e,n))}const yr={closed:!0,next:Ss,error:function fi(e){throw e},complete:Ss},mo="function"==typeof Symbol&&Symbol.observable||"@@observable";function ln(e){return e}function cn(e){return 0===e.length?ln:1===e.length?e[0]:function(t){return e.reduce((r,i)=>i(r),t)}}let qe=(()=>{class e{constructor(t){t&&(this._subscribe=t)}lift(t){const r=new e;return r.source=this,r.operator=t,r}subscribe(t,r,i){const o=function Ur(e){return e&&e instanceof Ui||function xs(e){return e&&Be(e.next)&&Be(e.error)&&Be(e.complete)}(e)&&zt(e)}(t)?t:new Br(t,r,i);return di(()=>{const{operator:s,source:a}=this;o.add(s?s.call(o,a):a?this._subscribe(o):this._trySubscribe(o))}),o}_trySubscribe(t){try{return this._subscribe(t)}catch(r){t.error(r)}}forEach(t,r){return new(r=As(r))((i,o)=>{const s=new Br({next:a=>{try{t(a)}catch(l){o(l),s.unsubscribe()}},error:o,complete:i});this.subscribe(s)})}_subscribe(t){var r;return null===(r=this.source)||void 0===r?void 0:r.subscribe(t)}[mo](){return this}pipe(...t){return cn(t)(this)}toPromise(t){return new(t=As(t))((r,i)=>{let o;this.subscribe(s=>o=s,s=>i(s),()=>r(o))})}}return e.create=n=>new e(n),e})();function As(e){var n;return null!==(n=e??Ie.Promise)&&void 0!==n?n:Promise}const ks=$n(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});let qt=(()=>{class e extends qe{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(t){const r=new vl(this,this);return r.operator=t,r}_throwIfClosed(){if(this.closed)throw new ks}next(t){di(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const r of this.currentObservers)r.next(t)}})}error(t){di(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=t;const{observers:r}=this;for(;r.length;)r.shift().error(t)}})}complete(){di(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:t}=this;for(;t.length;)t.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var t;return(null===(t=this.observers)||void 0===t?void 0:t.length)>0}_trySubscribe(t){return this._throwIfClosed(),super._trySubscribe(t)}_subscribe(t){return this._throwIfClosed(),this._checkFinalizedStatuses(t),this._innerSubscribe(t)}_innerSubscribe(t){const{hasError:r,isStopped:i,observers:o}=this;return r||i?hl:(this.currentObservers=null,o.push(t),new Ct(()=>{this.currentObservers=null,lt(o,t)}))}_checkFinalizedStatuses(t){const{hasError:r,thrownError:i,isStopped:o}=this;r?t.error(i):o&&t.complete()}asObservable(){const t=new qe;return t.source=this,t}}return e.create=(n,t)=>new vl(n,t),e})();class vl extends qt{constructor(n,t){super(),this.destination=n,this.source=t}next(n){var t,r;null===(r=null===(t=this.destination)||void 0===t?void 0:t.next)||void 0===r||r.call(t,n)}error(n){var t,r;null===(r=null===(t=this.destination)||void 0===t?void 0:t.error)||void 0===r||r.call(t,n)}complete(){var n,t;null===(t=null===(n=this.destination)||void 0===n?void 0:n.complete)||void 0===t||t.call(n)}_subscribe(n){var t,r;return null!==(r=null===(t=this.source)||void 0===t?void 0:t.subscribe(n))&&void 0!==r?r:hl}}function hi(e){return Be(e?.lift)}function St(e){return n=>{if(hi(n))return n.lift(function(t){try{return e(t,this)}catch(r){this.error(r)}});throw new TypeError("Unable to lift unknown Observable type")}}function ut(e,n,t,r,i){return new Fs(e,n,t,r,i)}class Fs extends Ui{constructor(n,t,r,i,o,s){super(n),this.onFinalize=o,this.shouldUnsubscribe=s,this._next=t?function(a){try{t(a)}catch(l){n.error(l)}}:super._next,this._error=i?function(a){try{i(a)}catch(l){n.error(l)}finally{this.unsubscribe()}}:super._error,this._complete=r?function(){try{r()}catch(a){n.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var n;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:t}=this;super.unsubscribe(),!t&&(null===(n=this.onFinalize)||void 0===n||n.call(this))}}}function we(e,n){return St((t,r)=>{let i=0;t.subscribe(ut(r,o=>{r.next(e.call(n,o,i++))}))})}function bn(e){return this instanceof bn?(this.v=e,this):new bn(e)}function _t(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=function We(e){var n="function"==typeof Symbol&&Symbol.iterator,t=n&&e[n],r=0;if(t)return t.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")}(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(o){t[o]=e[o]&&function(s){return new Promise(function(a,l){!function i(o,s,a,l){Promise.resolve(l).then(function(c){o({value:c,done:a})},s)}(a,l,(s=e[o](s)).done,s.value)})}}}const Cl=e=>e&&"number"==typeof e.length&&"function"!=typeof e;function Gi(e){return Be(e?.then)}function Os(e){return Be(e[mo])}function wl(e){return Symbol.asyncIterator&&Be(e?.[Symbol.asyncIterator])}function Dl(e){return new TypeError(`You provided ${null!==e&&"object"==typeof e?"an invalid object":`'${e}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}const mi=function Wu(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}();function Ns(e){return Be(e?.[mi])}function El(e){return function un(e,n,t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i,r=t.apply(e,n||[]),o=[];return i={},s("next"),s("throw"),s("return"),i[Symbol.asyncIterator]=function(){return this},i;function s(m){r[m]&&(i[m]=function(_){return new Promise(function(E,N){o.push([m,_,E,N])>1||a(m,_)})})}function a(m,_){try{!function l(m){m.value instanceof bn?Promise.resolve(m.value.v).then(c,u):p(o[0][2],m)}(r[m](_))}catch(E){p(o[0][3],E)}}function c(m){a("next",m)}function u(m){a("throw",m)}function p(m,_){m(_),o.shift(),o.length&&a(o[0][0],o[0][1])}}(this,arguments,function*(){const t=e.getReader();try{for(;;){const{value:r,done:i}=yield bn(t.read());if(i)return yield bn(void 0);yield yield bn(r)}}finally{t.releaseLock()}})}function yo(e){return Be(e?.getReader)}function Cn(e){if(e instanceof qe)return e;if(null!=e){if(Os(e))return function Yu(e){return new qe(n=>{const t=e[mo]();if(Be(t.subscribe))return t.subscribe(n);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(e);if(Cl(e))return function zi(e){return new qe(n=>{for(let t=0;t{e.then(t=>{n.closed||(n.next(t),n.complete())},t=>n.error(t)).then(null,Es)})}(e);if(wl(e))return Sl(e);if(Ns(e))return function Ku(e){return new qe(n=>{for(const t of e)if(n.next(t),n.closed)return;n.complete()})}(e);if(yo(e))return function Tl(e){return Sl(El(e))}(e)}throw Dl(e)}function Sl(e){return new qe(n=>{(function P(e,n){var t,r,i,o;return function W(e,n,t,r){return new(t||(t=Promise))(function(o,s){function a(u){try{c(r.next(u))}catch(p){s(p)}}function l(u){try{c(r.throw(u))}catch(p){s(p)}}function c(u){u.done?o(u.value):function i(o){return o instanceof t?o:new t(function(s){s(o)})}(u.value).then(a,l)}c((r=r.apply(e,n||[])).next())})}(this,void 0,void 0,function*(){try{for(t=_t(e);!(r=yield t.next()).done;)if(n.next(r.value),n.closed)return}catch(s){i={error:s}}finally{try{r&&!r.done&&(o=t.return)&&(yield o.call(t))}finally{if(i)throw i.error}}n.complete()})})(e,n).catch(t=>n.error(t))})}function M(e,n,t,r=0,i=!1){const o=n.schedule(function(){t(),i?e.add(this.schedule(null,r)):this.unsubscribe()},r);if(e.add(o),!i)return o}function ae(e,n,t=1/0){return Be(n)?ae((r,i)=>we((o,s)=>n(r,o,i,s))(Cn(e(r,i))),t):("number"==typeof n&&(t=n),St((r,i)=>function J(e,n,t,r,i,o,s,a){const l=[];let c=0,u=0,p=!1;const m=()=>{p&&!l.length&&!c&&n.complete()},_=N=>c{o&&n.next(N),c++;let B=!1;Cn(t(N,u++)).subscribe(ut(n,U=>{i?.(U),o?_(U):n.next(U)},()=>{B=!0},void 0,()=>{if(B)try{for(c--;l.length&&cE(U)):E(U)}m()}catch(U){n.error(U)}}))};return e.subscribe(ut(n,_,()=>{p=!0,m()})),()=>{a?.()}}(r,i,e,t)))}function x(e=1/0){return ae(ln,e)}const I=new qe(e=>e.complete());function z(e){return e&&Be(e.schedule)}function R(e){return e[e.length-1]}function b(e){return Be(R(e))?e.pop():void 0}function X(e){return z(R(e))?e.pop():void 0}function fe(e,n=0){return St((t,r)=>{t.subscribe(ut(r,i=>M(r,e,()=>r.next(i),n),()=>M(r,e,()=>r.complete(),n),i=>M(r,e,()=>r.error(i),n)))})}function Ne(e,n=0){return St((t,r)=>{r.add(e.schedule(()=>t.subscribe(r),n))})}function bo(e,n){if(!e)throw new Error("Iterable cannot be null");return new qe(t=>{M(t,n,()=>{const r=e[Symbol.asyncIterator]();M(t,n,()=>{r.next().then(i=>{i.done?t.complete():t.next(i.value)})},0,!0)})})}function ot(e,n){return n?function Vs(e,n){if(null!=e){if(Os(e))return function rt(e,n){return Cn(e).pipe(Ne(n),fe(n))}(e,n);if(Cl(e))return function dt(e,n){return new qe(t=>{let r=0;return n.schedule(function(){r===e.length?t.complete():(t.next(e[r++]),t.closed||this.schedule())})})}(e,n);if(Gi(e))return function Rt(e,n){return Cn(e).pipe(Ne(n),fe(n))}(e,n);if(wl(e))return bo(e,n);if(Ns(e))return function Ps(e,n){return new qe(t=>{let r;return M(t,n,()=>{r=e[mi](),M(t,n,()=>{let i,o;try{({value:i,done:o}=r.next())}catch(s){return void t.error(s)}o?t.complete():t.next(i)},0,!0)}),()=>Be(r?.return)&&r.return()})}(e,n);if(yo(e))return function Ls(e,n){return bo(El(e),n)}(e,n)}throw Dl(e)}(e,n):Cn(e)}function _i(e={}){const{connector:n=(()=>new qt),resetOnError:t=!0,resetOnComplete:r=!0,resetOnRefCountZero:i=!0}=e;return o=>{let s,a,l,c=0,u=!1,p=!1;const m=()=>{a?.unsubscribe(),a=void 0},_=()=>{m(),s=l=void 0,u=p=!1},E=()=>{const N=s;_(),N?.unsubscribe()};return St((N,B)=>{c++,!p&&!u&&m();const U=l=l??n();B.add(()=>{c--,0===c&&!p&&!u&&(a=vi(E,i))}),U.subscribe(B),!s&&c>0&&(s=new Br({next:re=>U.next(re),error:re=>{p=!0,m(),a=vi(_,t,re),U.error(re)},complete:()=>{u=!0,m(),a=vi(_,r),U.complete()}}),Cn(N).subscribe(s))})(o)}}function vi(e,n,...t){if(!0===n)return void e();if(!1===n)return;const r=new Br({next:()=>{r.unsubscribe(),e()}});return Cn(n(...t)).subscribe(r)}function Ye(e){for(let n in e)if(e[n]===Ye)return n;throw Error("Could not find renamed property on target object.")}function Y(e,n){for(const t in n)n.hasOwnProperty(t)&&!e.hasOwnProperty(t)&&(e[t]=n[t])}function ne(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(ne).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return`${e.overriddenName}`;if(e.name)return`${e.name}`;const n=e.toString();if(null==n)return""+n;const t=n.indexOf("\n");return-1===t?n:n.substring(0,t)}function Ge(e,n){return null==e||""===e?null===n?"":n:null==n||""===n?e:e+" "+n}const Le=Ye({__forward_ref__:Ye});function ge(e){return e.__forward_ref__=ge,e.toString=function(){return ne(this())},e}function Z(e){return pt(e)?e():e}function pt(e){return"function"==typeof e&&e.hasOwnProperty(Le)&&e.__forward_ref__===ge}function Ot(e){return e&&!!e.\u0275providers}const qn="https://g.co/ng/security#xss";class q extends Error{constructor(n,t){super(Zt(n,t)),this.code=n}}function Zt(e,n){return`NG0${Math.abs(e)}${n?": "+n.trim():""}`}function me(e){return"string"==typeof e?e:null==e?"":String(e)}function Il(e,n){throw new q(-201,!1)}function Wn(e,n){null==e&&function Ze(e,n,t,r){throw new Error(`ASSERTION ERROR: ${e}`+(null==r?"":` [Expected=> ${t} ${r} ${n} <=Actual]`))}(n,e,null,"!=")}function ee(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function Rn(e){return{providers:e.providers||[],imports:e.imports||[]}}function Ml(e){return ug(e,Al)||ug(e,fg)}function ug(e,n){return e.hasOwnProperty(n)?e[n]:null}function dg(e){return e&&(e.hasOwnProperty(Xu)||e.hasOwnProperty(HD))?e[Xu]:null}const Al=Ye({\u0275prov:Ye}),Xu=Ye({\u0275inj:Ye}),fg=Ye({ngInjectableDef:Ye}),HD=Ye({ngInjectorDef:Ye});var ye=(()=>((ye=ye||{})[ye.Default=0]="Default",ye[ye.Host=1]="Host",ye[ye.Self=2]="Self",ye[ye.SkipSelf=4]="SkipSelf",ye[ye.Optional=8]="Optional",ye))();let Zu;function Yn(e){const n=Zu;return Zu=e,n}function hg(e,n,t){const r=Ml(e);return r&&"root"==r.providedIn?void 0===r.value?r.value=r.factory():r.value:t&ye.Optional?null:void 0!==n?n:void Il(ne(e))}const ft=(()=>typeof globalThis<"u"&&globalThis||typeof global<"u"&&global||typeof window<"u"&&window||typeof self<"u"&&typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&self)(),js={},Ju="__NG_DI_FLAG__",xl="ngTempTokenPath",zD="ngTokenPath",qD=/\n/gm,WD="\u0275",pg="__source";let Us;function Co(e){const n=Us;return Us=e,n}function YD(e,n=ye.Default){if(void 0===Us)throw new q(-203,!1);return null===Us?hg(e,void 0,n):Us.get(e,n&ye.Optional?null:void 0,n)}function te(e,n=ye.Default){return(function GD(){return Zu}()||YD)(Z(e),n)}function Fe(e,n=ye.Default){return te(e,kl(n))}function kl(e){return typeof e>"u"||"number"==typeof e?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function ed(e){const n=[];for(let t=0;t((Cr=Cr||{})[Cr.OnPush=0]="OnPush",Cr[Cr.Default=1]="Default",Cr))(),wr=(()=>{return(e=wr||(wr={}))[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",wr;var e})();const Gr={},Ke=[],Fl=Ye({\u0275cmp:Ye}),td=Ye({\u0275dir:Ye}),nd=Ye({\u0275pipe:Ye}),mg=Ye({\u0275mod:Ye}),zr=Ye({\u0275fac:Ye}),Hs=Ye({__NG_ELEMENT_ID__:Ye});let ZD=0;function De(e){return Hr(()=>{const n=vg(e),t={...n,decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===Cr.OnPush,directiveDefs:null,pipeDefs:null,dependencies:n.standalone&&e.dependencies||null,getStandaloneInjector:null,data:e.data||{},encapsulation:e.encapsulation||wr.Emulated,id:"c"+ZD++,styles:e.styles||Ke,_:null,schemas:e.schemas||null,tView:null};yg(t);const r=e.dependencies;return t.directiveDefs=Rl(r,!1),t.pipeDefs=Rl(r,!0),t})}function e0(e){return Je(e)||Jt(e)}function t0(e){return null!==e}function Kn(e){return Hr(()=>({type:e.type,bootstrap:e.bootstrap||Ke,declarations:e.declarations||Ke,imports:e.imports||Ke,exports:e.exports||Ke,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function _g(e,n){if(null==e)return Gr;const t={};for(const r in e)if(e.hasOwnProperty(r)){let i=e[r],o=i;Array.isArray(i)&&(o=i[1],i=i[0]),t[i]=r,n&&(n[i]=o)}return t}function Ce(e){return Hr(()=>{const n=vg(e);return yg(n),n})}function dn(e){return{type:e.type,name:e.name,factory:null,pure:!1!==e.pure,standalone:!0===e.standalone,onDestroy:e.type.prototype.ngOnDestroy||null}}function Je(e){return e[Fl]||null}function Jt(e){return e[td]||null}function wn(e){return e[nd]||null}function On(e,n){const t=e[mg]||null;if(!t&&!0===n)throw new Error(`Type ${ne(e)} does not have '\u0275mod' property.`);return t}function vg(e){const n={};return{type:e.type,providersResolver:null,factory:null,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:n,exportAs:e.exportAs||null,standalone:!0===e.standalone,selectors:e.selectors||Ke,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:_g(e.inputs,n),outputs:_g(e.outputs)}}function yg(e){e.features?.forEach(n=>n(e))}function Rl(e,n){if(!e)return null;const t=n?wn:e0;return()=>("function"==typeof e?e():e).map(r=>t(r)).filter(t0)}const qr=0,se=1,Me=2,wt=3,ar=4,qi=5,en=6,Do=7,Tt=8,Ol=9,Nl=10,Re=11,rd=12,Gs=13,bg=14,Eo=15,tn=16,zs=17,So=18,Dr=19,qs=20,Cg=21,ht=22,id=1,wg=2,Pl=7,Ll=8,To=9,fn=10;function Nn(e){return Array.isArray(e)&&"object"==typeof e[id]}function lr(e){return Array.isArray(e)&&!0===e[id]}function od(e){return 0!=(4&e.flags)}function Ws(e){return e.componentOffset>-1}function Vl(e){return 1==(1&e.flags)}function cr(e){return!!e.template}function r0(e){return 0!=(256&e[Me])}function Wi(e,n){return e.hasOwnProperty(zr)?e[zr]:null}class a0{constructor(n,t,r){this.previousValue=n,this.currentValue=t,this.firstChange=r}isFirstChange(){return this.firstChange}}function Dn(){return Sg}function Sg(e){return e.type.prototype.ngOnChanges&&(e.setInput=c0),l0}function l0(){const e=Ig(this),n=e?.current;if(n){const t=e.previous;if(t===Gr)e.previous=n;else for(let r in n)t[r]=n[r];e.current=null,this.ngOnChanges(n)}}function c0(e,n,t,r){const i=this.declaredInputs[t],o=Ig(e)||function u0(e,n){return e[Tg]=n}(e,{previous:Gr,current:null}),s=o.current||(o.current={}),a=o.previous,l=a[i];s[i]=new a0(l&&l.currentValue,n,a===Gr),e[r]=n}Dn.ngInherit=!0;const Tg="__ngSimpleChanges__";function Ig(e){return e[Tg]||null}const Qn=function(e,n,t){},Mg="svg";function Kt(e){for(;Array.isArray(e);)e=e[qr];return e}function Bl(e,n){return Kt(n[e])}function Pn(e,n){return Kt(n[e.index])}function xg(e,n){return e.data[n]}function Io(e,n){return e[n]}function Ln(e,n){const t=n[e];return Nn(t)?t:t[qr]}function jl(e){return 64==(64&e[Me])}function bi(e,n){return null==n?null:e[n]}function kg(e){e[So]=0}function ad(e,n){e[qi]+=n;let t=e,r=e[wt];for(;null!==r&&(1===n&&1===t[qi]||-1===n&&0===t[qi]);)r[qi]+=n,t=r,r=r[wt]}const Ee={lFrame:Ug(null),bindingsEnabled:!0};function Rg(){return Ee.bindingsEnabled}function H(){return Ee.lFrame.lView}function Ue(){return Ee.lFrame.tView}function K(e){return Ee.lFrame.contextLView=e,e[Tt]}function Q(e){return Ee.lFrame.contextLView=null,e}function Qt(){let e=Og();for(;null!==e&&64===e.type;)e=e.parent;return e}function Og(){return Ee.lFrame.currentTNode}function Er(e,n){const t=Ee.lFrame;t.currentTNode=e,t.isParent=n}function ld(){return Ee.lFrame.isParent}function cd(){Ee.lFrame.isParent=!1}function hn(){const e=Ee.lFrame;let n=e.bindingRootIndex;return-1===n&&(n=e.bindingRootIndex=e.tView.bindingStartIndex),n}function Mo(){return Ee.lFrame.bindingIndex++}function Yr(e){const n=Ee.lFrame,t=n.bindingIndex;return n.bindingIndex=n.bindingIndex+e,t}function D0(e,n){const t=Ee.lFrame;t.bindingIndex=t.bindingRootIndex=e,ud(n)}function ud(e){Ee.lFrame.currentDirectiveIndex=e}function Vg(){return Ee.lFrame.currentQueryIndex}function fd(e){Ee.lFrame.currentQueryIndex=e}function S0(e){const n=e[se];return 2===n.type?n.declTNode:1===n.type?e[en]:null}function Bg(e,n,t){if(t&ye.SkipSelf){let i=n,o=e;for(;!(i=i.parent,null!==i||t&ye.Host||(i=S0(o),null===i||(o=o[Eo],10&i.type))););if(null===i)return!1;n=i,e=o}const r=Ee.lFrame=jg();return r.currentTNode=n,r.lView=e,!0}function hd(e){const n=jg(),t=e[se];Ee.lFrame=n,n.currentTNode=t.firstChild,n.lView=e,n.tView=t,n.contextLView=e,n.bindingIndex=t.bindingStartIndex,n.inI18n=!1}function jg(){const e=Ee.lFrame,n=null===e?null:e.child;return null===n?Ug(e):n}function Ug(e){const n={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:e,child:null,inI18n:!1};return null!==e&&(e.child=n),n}function $g(){const e=Ee.lFrame;return Ee.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const Hg=$g;function pd(){const e=$g();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function pn(){return Ee.lFrame.selectedIndex}function Yi(e){Ee.lFrame.selectedIndex=e}function vt(){const e=Ee.lFrame;return xg(e.tView,e.selectedIndex)}function gd(){Ee.lFrame.currentNamespace=Mg}function md(){!function A0(){Ee.lFrame.currentNamespace=null}()}function Ul(e,n){for(let t=n.directiveStart,r=n.directiveEnd;t=r)break}else n[l]<0&&(e[So]+=65536),(a>11>16&&(3&e[Me])===n){e[Me]+=2048,Qn(4,a,o);try{o.call(a)}finally{Qn(5,a,o)}}}else{Qn(4,a,o);try{o.call(a)}finally{Qn(5,a,o)}}}const Ao=-1;class Ks{constructor(n,t,r){this.factory=n,this.resolving=!1,this.canSeeViewProviders=t,this.injectImpl=r}}function yd(e,n,t){let r=0;for(;rn){s=o-1;break}}}for(;o>16}(e),r=n;for(;t>0;)r=r[Eo],t--;return r}let bd=!0;function ql(e){const n=bd;return bd=e,n}const Kg=255,Qg=5;let L0=0;const Sr={};function Wl(e,n){const t=Xg(e,n);if(-1!==t)return t;const r=n[se];r.firstCreatePass&&(e.injectorIndex=n.length,Cd(r.data,e),Cd(n,null),Cd(r.blueprint,null));const i=wd(e,n),o=e.injectorIndex;if(Yg(i)){const s=Gl(i),a=zl(i,n),l=a[se].data;for(let c=0;c<8;c++)n[o+c]=a[s+c]|l[s+c]}return n[o+8]=i,o}function Cd(e,n){e.push(0,0,0,0,0,0,0,0,n)}function Xg(e,n){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===n[e.injectorIndex+8]?-1:e.injectorIndex}function wd(e,n){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;let t=0,r=null,i=n;for(;null!==i;){if(r=im(i),null===r)return Ao;if(t++,i=i[Eo],-1!==r.injectorIndex)return r.injectorIndex|t<<16}return Ao}function Dd(e,n,t){!function V0(e,n,t){let r;"string"==typeof t?r=t.charCodeAt(0)||0:t.hasOwnProperty(Hs)&&(r=t[Hs]),null==r&&(r=t[Hs]=L0++);const i=r&Kg;n.data[e+(i>>Qg)]|=1<=0?n&Kg:$0:n}(t);if("function"==typeof o){if(!Bg(n,e,r))return r&ye.Host?Zg(i,0,r):Jg(n,t,r,i);try{const s=o(r);if(null!=s||r&ye.Optional)return s;Il()}finally{Hg()}}else if("number"==typeof o){let s=null,a=Xg(e,n),l=Ao,c=r&ye.Host?n[tn][en]:null;for((-1===a||r&ye.SkipSelf)&&(l=-1===a?wd(e,n):n[a+8],l!==Ao&&rm(r,!1)?(s=n[se],a=Gl(l),n=zl(l,n)):a=-1);-1!==a;){const u=n[se];if(nm(o,a,u.data)){const p=j0(a,n,t,s,r,c);if(p!==Sr)return p}l=n[a+8],l!==Ao&&rm(r,n[se].data[a+8]===c)&&nm(o,a,n)?(s=u,a=Gl(l),n=zl(l,n)):a=-1}}return i}function j0(e,n,t,r,i,o){const s=n[se],a=s.data[e+8],u=Yl(a,s,t,null==r?Ws(a)&&bd:r!=s&&0!=(3&a.type),i&ye.Host&&o===a);return null!==u?Ki(n,s,u,a):Sr}function Yl(e,n,t,r,i){const o=e.providerIndexes,s=n.data,a=1048575&o,l=e.directiveStart,u=o>>20,m=i?a+u:e.directiveEnd;for(let _=r?a:a+u;_=l&&E.type===t)return _}if(i){const _=s[l];if(_&&cr(_)&&_.type===t)return l}return null}function Ki(e,n,t,r){let i=e[t];const o=n.data;if(function R0(e){return e instanceof Ks}(i)){const s=i;s.resolving&&function Qu(e,n){const t=n?`. Dependency path: ${n.join(" > ")} > ${e}`:"";throw new q(-200,`Circular dependency in DI detected for ${e}${t}`)}(function je(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():me(e)}(o[t]));const a=ql(s.canSeeViewProviders);s.resolving=!0;const l=s.injectImpl?Yn(s.injectImpl):null;Bg(e,r,ye.Default);try{i=e[t]=s.factory(void 0,o,e,r),n.firstCreatePass&&t>=r.directiveStart&&function k0(e,n,t){const{ngOnChanges:r,ngOnInit:i,ngDoCheck:o}=n.type.prototype;if(r){const s=Sg(n);(t.preOrderHooks||(t.preOrderHooks=[])).push(e,s),(t.preOrderCheckHooks||(t.preOrderCheckHooks=[])).push(e,s)}i&&(t.preOrderHooks||(t.preOrderHooks=[])).push(0-e,i),o&&((t.preOrderHooks||(t.preOrderHooks=[])).push(e,o),(t.preOrderCheckHooks||(t.preOrderCheckHooks=[])).push(e,o))}(t,o[t],n)}finally{null!==l&&Yn(l),ql(a),s.resolving=!1,Hg()}}return i}function nm(e,n,t){return!!(t[n+(e>>Qg)]&1<{const n=e.prototype.constructor,t=n[zr]||Ed(n),r=Object.prototype;let i=Object.getPrototypeOf(e.prototype).constructor;for(;i&&i!==r;){const o=i[zr]||Ed(i);if(o&&o!==t)return o;i=Object.getPrototypeOf(i)}return o=>new o})}function Ed(e){return pt(e)?()=>{const n=Ed(Z(e));return n&&n()}:Wi(e)}function im(e){const n=e[se],t=n.type;return 2===t?n.declTNode:1===t?e[en]:null}const Fo="__parameters__";function Oo(e,n,t){return Hr(()=>{const r=function Sd(e){return function(...t){if(e){const r=e(...t);for(const i in r)this[i]=r[i]}}}(n);function i(...o){if(this instanceof i)return r.apply(this,o),this;const s=new i(...o);return a.annotation=s,a;function a(l,c,u){const p=l.hasOwnProperty(Fo)?l[Fo]:Object.defineProperty(l,Fo,{value:[]})[Fo];for(;p.length<=u;)p.push(null);return(p[u]=p[u]||[]).push(s),l}}return t&&(i.prototype=Object.create(t.prototype)),i.prototype.ngMetadataName=e,i.annotationCls=i,i})}class ce{constructor(n,t){this._desc=n,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof t?this.__NG_ELEMENT_ID__=t:void 0!==t&&(this.\u0275prov=ee({token:this,providedIn:t.providedIn||"root",factory:t.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function Qi(e,n){e.forEach(t=>Array.isArray(t)?Qi(t,n):n(t))}function sm(e,n,t){n>=e.length?e.push(t):e.splice(n,0,t)}function Ql(e,n){return n>=e.length-1?e.pop():e.splice(n,1)[0]}function Vn(e,n,t){let r=No(e,n);return r>=0?e[1|r]=t:(r=~r,function W0(e,n,t,r){let i=e.length;if(i==n)e.push(t,r);else if(1===i)e.push(r,e[0]),e[0]=t;else{for(i--,e.push(e[i-1],e[i]);i>n;)e[i]=e[i-2],i--;e[n]=t,e[n+1]=r}}(e,r,n,t)),r}function Id(e,n){const t=No(e,n);if(t>=0)return e[1|t]}function No(e,n){return function am(e,n,t){let r=0,i=e.length>>t;for(;i!==r;){const o=r+(i-r>>1),s=e[o<n?i=o:r=o+1}return~(i<((En=En||{})[En.Important=1]="Important",En[En.DashCase=2]="DashCase",En))();const Rd=new Map;let gE=0;const Nd="__ngContext__";function nn(e,n){Nn(n)?(e[Nd]=n[qs],function _E(e){Rd.set(e[qs],e)}(n)):e[Nd]=n}let Pd;function Ld(e,n){return Pd(e,n)}function oa(e){const n=e[wt];return lr(n)?n[wt]:n}function Vd(e){return Im(e[Gs])}function Bd(e){return Im(e[ar])}function Im(e){for(;null!==e&&!lr(e);)e=e[ar];return e}function Lo(e,n,t,r,i){if(null!=r){let o,s=!1;lr(r)?o=r:Nn(r)&&(s=!0,r=r[qr]);const a=Kt(r);0===e&&null!==t?null==i?Rm(n,t,a):Xi(n,t,a,i||null,!0):1===e&&null!==t?Xi(n,t,a,i||null,!0):2===e?function qd(e,n,t){const r=ec(e,n);r&&function LE(e,n,t,r){e.removeChild(n,t,r)}(e,r,n,t)}(n,a,s):3===e&&n.destroyNode(a),null!=o&&function jE(e,n,t,r,i){const o=t[Pl];o!==Kt(t)&&Lo(n,e,r,o,i);for(let a=fn;a0&&(e[t-1][ar]=r[ar]);const o=Ql(e,fn+n);!function AE(e,n){sa(e,n,n[Re],2,null,null),n[qr]=null,n[en]=null}(r[se],r);const s=o[Dr];null!==s&&s.detachView(o[se]),r[wt]=null,r[ar]=null,r[Me]&=-65}return r}function xm(e,n){if(!(128&n[Me])){const t=n[Re];t.destroyNode&&sa(e,n,t,3,null,null),function FE(e){let n=e[Gs];if(!n)return Hd(e[se],e);for(;n;){let t=null;if(Nn(n))t=n[Gs];else{const r=n[fn];r&&(t=r)}if(!t){for(;n&&!n[ar]&&n!==e;)Nn(n)&&Hd(n[se],n),n=n[wt];null===n&&(n=e),Nn(n)&&Hd(n[se],n),t=n&&n[ar]}n=t}}(n)}}function Hd(e,n){if(!(128&n[Me])){n[Me]&=-65,n[Me]|=128,function PE(e,n){let t;if(null!=e&&null!=(t=e.destroyHooks))for(let r=0;r=0?r[i=s]():r[i=-s].unsubscribe(),o+=2}else{const s=r[i=t[o+1]];t[o].call(s)}if(null!==r){for(let o=i+1;o-1){const{encapsulation:o}=e.data[r.directiveStart+i];if(o===wr.None||o===wr.Emulated)return null}return Pn(r,t)}}(e,n.parent,t)}function Xi(e,n,t,r,i){e.insertBefore(n,t,r,i)}function Rm(e,n,t){e.appendChild(n,t)}function Om(e,n,t,r,i){null!==r?Xi(e,n,t,r,i):Rm(e,n,t)}function ec(e,n){return e.parentNode(n)}let Gd,Kd,ic,Lm=function Pm(e,n,t){return 40&e.type?Pn(e,t):null};function tc(e,n,t,r){const i=km(e,r,n),o=n[Re],a=function Nm(e,n,t){return Lm(e,n,t)}(r.parent||n[en],r,n);if(null!=i)if(Array.isArray(t))for(let l=0;le,createScript:e=>e,createScriptURL:e=>e})}catch{}return ic}()?.createScriptURL(e)||e}class Wm{constructor(n){this.changingThisBreaksApplicationSecurity=n}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${qn})`}}function Ci(e){return e instanceof Wm?e.changingThisBreaksApplicationSecurity:e}function aa(e,n){const t=function ZE(e){return e instanceof Wm&&e.getTypeName()||null}(e);if(null!=t&&t!==n){if("ResourceURL"===t&&"URL"===n)return!0;throw new Error(`Required a safe ${n}, got a ${t} (see ${qn})`)}return t===n}const nS=/^(?:(?:https?|mailto|data|ftp|tel|file|sms):|[^&:/?#]*(?:[/?#]|$))/gi;var Nt=(()=>((Nt=Nt||{})[Nt.NONE=0]="NONE",Nt[Nt.HTML=1]="HTML",Nt[Nt.STYLE=2]="STYLE",Nt[Nt.SCRIPT=3]="SCRIPT",Nt[Nt.URL=4]="URL",Nt[Nt.RESOURCE_URL=5]="RESOURCE_URL",Nt))();function e_(e){const n=ca();return n?n.sanitize(Nt.URL,e)||"":aa(e,"URL")?Ci(e):function Xd(e){return(e=String(e)).match(nS)?e:"unsafe:"+e}(me(e))}function t_(e){const n=ca();if(n)return qm(n.sanitize(Nt.RESOURCE_URL,e)||"");if(aa(e,"ResourceURL"))return qm(Ci(e));throw new q(904,!1)}function ca(){const e=H();return e&&e[rd]}const sc=new ce("ENVIRONMENT_INITIALIZER"),r_=new ce("INJECTOR",-1),i_=new ce("INJECTOR_DEF_TYPES");class o_{get(n,t=js){if(t===js){const r=new Error(`NullInjectorError: No provider for ${ne(n)}!`);throw r.name="NullInjectorError",r}return t}}function mS(...e){return{\u0275providers:s_(0,e),\u0275fromNgModule:!0}}function s_(e,...n){const t=[],r=new Set;let i;return Qi(n,o=>{const s=o;tf(s,t,[],r)&&(i||(i=[]),i.push(s))}),void 0!==i&&a_(i,t),t}function a_(e,n){for(let t=0;t{n.push(o)})}}function tf(e,n,t,r){if(!(e=Z(e)))return!1;let i=null,o=dg(e);const s=!o&&Je(e);if(o||s){if(s&&!s.standalone)return!1;i=e}else{const l=e.ngModule;if(o=dg(l),!o)return!1;i=l}const a=r.has(i);if(s){if(a)return!1;if(r.add(i),s.dependencies){const l="function"==typeof s.dependencies?s.dependencies():s.dependencies;for(const c of l)tf(c,n,t,r)}}else{if(!o)return!1;{if(null!=o.imports&&!a){let c;r.add(i);try{Qi(o.imports,u=>{tf(u,n,t,r)&&(c||(c=[]),c.push(u))})}finally{}void 0!==c&&a_(c,n)}if(!a){const c=Wi(i)||(()=>new i);n.push({provide:i,useFactory:c,deps:Ke},{provide:i_,useValue:i,multi:!0},{provide:sc,useValue:()=>te(i),multi:!0})}const l=o.providers;null==l||a||nf(l,u=>{n.push(u)})}}return i!==e&&void 0!==e.providers}function nf(e,n){for(let t of e)Ot(t)&&(t=t.\u0275providers),Array.isArray(t)?nf(t,n):n(t)}const _S=Ye({provide:String,useValue:Ye});function rf(e){return null!==e&&"object"==typeof e&&_S in e}function Zi(e){return"function"==typeof e}const sf=new ce("Set Injector scope."),ac={},yS={};let af;function lc(){return void 0===af&&(af=new o_),af}class Tr{}class u_ extends Tr{get destroyed(){return this._destroyed}constructor(n,t,r,i){super(),this.parent=t,this.source=r,this.scopes=i,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,cf(n,s=>this.processProvider(s)),this.records.set(r_,Bo(void 0,this)),i.has("environment")&&this.records.set(Tr,Bo(void 0,this));const o=this.records.get(sf);null!=o&&"string"==typeof o.value&&this.scopes.add(o.value),this.injectorDefTypes=new Set(this.get(i_.multi,Ke,ye.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const n of this._ngOnDestroyHooks)n.ngOnDestroy();for(const n of this._onDestroyHooks)n()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),this._onDestroyHooks.length=0}}onDestroy(n){this._onDestroyHooks.push(n)}runInContext(n){this.assertNotDestroyed();const t=Co(this),r=Yn(void 0);try{return n()}finally{Co(t),Yn(r)}}get(n,t=js,r=ye.Default){this.assertNotDestroyed(),r=kl(r);const i=Co(this),o=Yn(void 0);try{if(!(r&ye.SkipSelf)){let a=this.records.get(n);if(void 0===a){const l=function ES(e){return"function"==typeof e||"object"==typeof e&&e instanceof ce}(n)&&Ml(n);a=l&&this.injectableDefInScope(l)?Bo(lf(n),ac):null,this.records.set(n,a)}if(null!=a)return this.hydrate(n,a)}return(r&ye.Self?lc():this.parent).get(n,t=r&ye.Optional&&t===js?null:t)}catch(s){if("NullInjectorError"===s.name){if((s[xl]=s[xl]||[]).unshift(ne(n)),i)throw s;return function QD(e,n,t,r){const i=e[xl];throw n[pg]&&i.unshift(n[pg]),e.message=function XD(e,n,t,r=null){e=e&&"\n"===e.charAt(0)&&e.charAt(1)==WD?e.slice(2):e;let i=ne(n);if(Array.isArray(n))i=n.map(ne).join(" -> ");else if("object"==typeof n){let o=[];for(let s in n)if(n.hasOwnProperty(s)){let a=n[s];o.push(s+":"+("string"==typeof a?JSON.stringify(a):ne(a)))}i=`{${o.join(", ")}}`}return`${t}${r?"("+r+")":""}[${i}]: ${e.replace(qD,"\n ")}`}("\n"+e.message,i,t,r),e[zD]=i,e[xl]=null,e}(s,n,"R3InjectorError",this.source)}throw s}finally{Yn(o),Co(i)}}resolveInjectorInitializers(){const n=Co(this),t=Yn(void 0);try{const r=this.get(sc.multi,Ke,ye.Self);for(const i of r)i()}finally{Co(n),Yn(t)}}toString(){const n=[],t=this.records;for(const r of t.keys())n.push(ne(r));return`R3Injector[${n.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new q(205,!1)}processProvider(n){let t=Zi(n=Z(n))?n:Z(n&&n.provide);const r=function CS(e){return rf(e)?Bo(void 0,e.useValue):Bo(d_(e),ac)}(n);if(Zi(n)||!0!==n.multi)this.records.get(t);else{let i=this.records.get(t);i||(i=Bo(void 0,ac,!0),i.factory=()=>ed(i.multi),this.records.set(t,i)),t=n,i.multi.push(n)}this.records.set(t,r)}hydrate(n,t){return t.value===ac&&(t.value=yS,t.value=t.factory()),"object"==typeof t.value&&t.value&&function DS(e){return null!==e&&"object"==typeof e&&"function"==typeof e.ngOnDestroy}(t.value)&&this._ngOnDestroyHooks.add(t.value),t.value}injectableDefInScope(n){if(!n.providedIn)return!1;const t=Z(n.providedIn);return"string"==typeof t?"any"===t||this.scopes.has(t):this.injectorDefTypes.has(t)}}function lf(e){const n=Ml(e),t=null!==n?n.factory:Wi(e);if(null!==t)return t;if(e instanceof ce)throw new q(204,!1);if(e instanceof Function)return function bS(e){const n=e.length;if(n>0)throw function Js(e,n){const t=[];for(let r=0;rt.factory(e):()=>new e}(e);throw new q(204,!1)}function d_(e,n,t){let r;if(Zi(e)){const i=Z(e);return Wi(i)||lf(i)}if(rf(e))r=()=>Z(e.useValue);else if(function c_(e){return!(!e||!e.useFactory)}(e))r=()=>e.useFactory(...ed(e.deps||[]));else if(function l_(e){return!(!e||!e.useExisting)}(e))r=()=>te(Z(e.useExisting));else{const i=Z(e&&(e.useClass||e.provide));if(!function wS(e){return!!e.deps}(e))return Wi(i)||lf(i);r=()=>new i(...ed(e.deps))}return r}function Bo(e,n,t=!1){return{factory:e,value:n,multi:t?[]:void 0}}function cf(e,n){for(const t of e)Array.isArray(t)?cf(t,n):t&&Ot(t)?cf(t.\u0275providers,n):n(t)}class SS{}class f_{}class IS{resolveComponentFactory(n){throw function TS(e){const n=Error(`No component factory found for ${ne(e)}. Did you add it to @NgModule.entryComponents?`);return n.ngComponent=e,n}(n)}}let ua=(()=>{class e{}return e.NULL=new IS,e})();function MS(){return jo(Qt(),H())}function jo(e,n){return new Tn(Pn(e,n))}let Tn=(()=>{class e{constructor(t){this.nativeElement=t}}return e.__NG_ELEMENT_ID__=MS,e})();function AS(e){return e instanceof Tn?e.nativeElement:e}class p_{}let Qr=(()=>{class e{}return e.__NG_ELEMENT_ID__=()=>function xS(){const e=H(),t=Ln(Qt().index,e);return(Nn(t)?t:e)[Re]}(),e})(),kS=(()=>{class e{}return e.\u0275prov=ee({token:e,providedIn:"root",factory:()=>null}),e})();class da{constructor(n){this.full=n,this.major=n.split(".")[0],this.minor=n.split(".")[1],this.patch=n.split(".").slice(2).join(".")}}const FS=new da("15.2.5"),uf={},df="ngOriginalError";function ff(e){return e[df]}class Uo{constructor(){this._console=console}handleError(n){const t=this._findOriginalError(n);this._console.error("ERROR",n),t&&this._console.error("ORIGINAL ERROR",t)}_findOriginalError(n){let t=n&&ff(n);for(;t&&ff(t);)t=ff(t);return t||null}}function Xr(e){return e instanceof Function?e():e}function m_(e,n,t){let r=e.length;for(;;){const i=e.indexOf(n,t);if(-1===i)return i;if(0===i||e.charCodeAt(i-1)<=32){const o=n.length;if(i+o===r||e.charCodeAt(i+o)<=32)return i}t=i+1}}const __="ng-template";function HS(e,n,t){let r=0,i=!0;for(;ro?"":i[p+1].toLowerCase();const _=8&r?m:null;if(_&&-1!==m_(_,c,0)||2&r&&c!==m){if(ur(r))return!1;s=!0}}}}else{if(!s&&!ur(r)&&!ur(l))return!1;if(s&&ur(l))continue;s=!1,r=l|1&r}}return ur(r)||s}function ur(e){return 0==(1&e)}function qS(e,n,t,r){if(null===n)return-1;let i=0;if(r||!t){let o=!1;for(;i-1)for(t++;t0?'="'+a+'"':"")+"]"}else 8&r?i+="."+s:4&r&&(i+=" "+s);else""!==i&&!ur(s)&&(n+=b_(o,i),i=""),r=s,o=o||!ur(r);t++}return""!==i&&(n+=b_(o,i)),n}const Se={};function d(e){C_(Ue(),H(),pn()+e,!1)}function C_(e,n,t,r){if(!r)if(3==(3&n[Me])){const o=e.preOrderCheckHooks;null!==o&&$l(n,o,t)}else{const o=e.preOrderHooks;null!==o&&Hl(n,o,0,t)}Yi(t)}function S_(e,n=null,t=null,r){const i=T_(e,n,t,r);return i.resolveInjectorInitializers(),i}function T_(e,n=null,t=null,r,i=new Set){const o=[t||Ke,mS(e)];return r=r||("object"==typeof e?void 0:ne(e)),new u_(o,n||lc(),r||null,i)}let Ir=(()=>{class e{static create(t,r){if(Array.isArray(t))return S_({name:""},r,t,"");{const i=t.name??"";return S_({name:i},t.parent,t.providers,i)}}}return e.THROW_IF_NOT_FOUND=js,e.NULL=new o_,e.\u0275prov=ee({token:e,providedIn:"any",factory:()=>te(r_)}),e.__NG_ELEMENT_ID__=-1,e})();function O(e,n=ye.Default){const t=H();return null===t?te(e,n):em(Qt(),t,Z(e),n)}function O_(e,n){const t=e.contentQueries;if(null!==t)for(let r=0;rht&&C_(e,n,ht,!1),Qn(s?2:0,i),t(r,i)}finally{Yi(o),Qn(s?3:1,i)}}function yf(e,n,t){if(od(n)){const i=n.directiveEnd;for(let o=n.directiveStart;o0;){const t=e[--n];if("number"==typeof t&&t<0)return t}return 0})(s)!=a&&s.push(a),s.push(t,r,o)}}(e,n,r,fa(e,t,i.hostVars,Se),i)}function Mr(e,n,t,r,i,o){const s=Pn(e,n);!function Sf(e,n,t,r,i,o,s){if(null==o)e.removeAttribute(n,i,t);else{const a=null==s?me(o):s(o,r||"",i);e.setAttribute(n,i,a,t)}}(n[Re],s,o,e.value,t,r,i)}function LT(e,n,t,r,i,o){const s=o[n];if(null!==s){const a=r.setInput;for(let l=0;l0&&Tf(t)}}function Tf(e){for(let r=Vd(e);null!==r;r=Bd(r))for(let i=fn;i0&&Tf(o)}const t=e[se].components;if(null!==t)for(let r=0;r0&&Tf(i)}}function $T(e,n){const t=Ln(n,e),r=t[se];(function HT(e,n){for(let t=n.length;t-1&&($d(n,r),Ql(t,r))}this._attachedToViewContainer=!1}xm(this._lView[se],this._lView)}onDestroy(n){L_(this._lView[se],this._lView,null,n)}markForCheck(){If(this._cdRefInjectingView||this._lView)}detach(){this._lView[Me]&=-65}reattach(){this._lView[Me]|=64}detectChanges(){hc(this._lView[se],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new q(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function kE(e,n){sa(e,n,n[Re],2,null,null)}(this._lView[se],this._lView)}attachToAppRef(n){if(this._attachedToViewContainer)throw new q(902,!1);this._appRef=n}}class GT extends ha{constructor(n){super(n),this._view=n}detectChanges(){const n=this._view;hc(n[se],n,n[Tt],!1)}checkNoChanges(){}get context(){return null}}class Y_ extends ua{constructor(n){super(),this.ngModule=n}resolveComponentFactory(n){const t=Je(n);return new pa(t,this.ngModule)}}function K_(e){const n=[];for(let t in e)e.hasOwnProperty(t)&&n.push({propName:e[t],templateName:t});return n}class qT{constructor(n,t){this.injector=n,this.parentInjector=t}get(n,t,r){r=kl(r);const i=this.injector.get(n,uf,r);return i!==uf||t===uf?i:this.parentInjector.get(n,t,r)}}class pa extends f_{get inputs(){return K_(this.componentDef.inputs)}get outputs(){return K_(this.componentDef.outputs)}constructor(n,t){super(),this.componentDef=n,this.ngModule=t,this.componentType=n.type,this.selector=function ZS(e){return e.map(XS).join(",")}(n.selectors),this.ngContentSelectors=n.ngContentSelectors?n.ngContentSelectors:[],this.isBoundToModule=!!t}create(n,t,r,i){let o=(i=i||this.ngModule)instanceof Tr?i:i?.injector;o&&null!==this.componentDef.getStandaloneInjector&&(o=this.componentDef.getStandaloneInjector(o)||o);const s=o?new qT(n,o):n,a=s.get(p_,null);if(null===a)throw new q(407,!1);const l=s.get(kS,null),c=a.createRenderer(null,this.componentDef),u=this.componentDef.selectors[0][0]||"div",p=r?function wT(e,n,t){return e.selectRootElement(n,t===wr.ShadowDom)}(c,r,this.componentDef.encapsulation):Ud(c,u,function zT(e){const n=e.toLowerCase();return"svg"===n?Mg:"math"===n?"math":null}(u)),m=this.componentDef.onPush?288:272,_=wf(0,null,null,1,0,null,null,null,null,null),E=uc(null,_,null,m,null,null,a,c,l,s,null);let N,B;hd(E);try{const U=this.componentDef;let re,j=null;U.findHostDirectiveDefs?(re=[],j=new Map,U.findHostDirectiveDefs(U,re,j),re.push(U)):re=[U];const ve=function YT(e,n){const t=e[se],r=ht;return e[r]=n,Go(t,r,2,"#host",null)}(E,p),it=function KT(e,n,t,r,i,o,s,a){const l=i[se];!function QT(e,n,t,r){for(const i of e)n.mergedAttrs=Qs(n.mergedAttrs,i.hostAttrs);null!==n.mergedAttrs&&(pc(n,n.mergedAttrs,!0),null!==t&&$m(r,t,n))}(r,e,n,s);const c=o.createRenderer(n,t),u=uc(i,P_(t),null,t.onPush?32:16,i[e.index],e,o,c,a||null,null,null);return l.firstCreatePass&&Ef(l,e,r.length-1),fc(i,u),i[e.index]=u}(ve,p,U,re,E,a,c);B=xg(_,ht),p&&function ZT(e,n,t,r){if(r)yd(e,t,["ng-version",FS.full]);else{const{attrs:i,classes:o}=function JS(e){const n=[],t=[];let r=1,i=2;for(;r0&&Um(e,t,o.join(" "))}}(c,U,p,r),void 0!==t&&function JT(e,n,t){const r=e.projection=[];for(let i=0;i=0;r--){const i=e[r];i.hostVars=n+=i.hostVars,i.hostAttrs=Qs(i.hostAttrs,t=Qs(t,i.hostAttrs))}}(r)}function xf(e){return e===Gr?{}:e===Ke?[]:e}function nI(e,n){const t=e.viewQuery;e.viewQuery=t?(r,i)=>{n(r,i),t(r,i)}:n}function rI(e,n){const t=e.contentQueries;e.contentQueries=t?(r,i,o)=>{n(r,i,o),t(r,i,o)}:n}function iI(e,n){const t=e.hostBindings;e.hostBindings=t?(r,i)=>{n(r,i),t(r,i)}:n}function mc(e){return!!kf(e)&&(Array.isArray(e)||!(e instanceof Map)&&Symbol.iterator in e)}function kf(e){return null!==e&&("function"==typeof e||"object"==typeof e)}function Ar(e,n,t){return e[n]=t}function rn(e,n,t){return!Object.is(e[n],t)&&(e[n]=t,!0)}function Ji(e,n,t,r){const i=rn(e,n,t);return rn(e,n+1,r)||i}function Ve(e,n,t,r){const i=H();return rn(i,Mo(),n)&&(Ue(),Mr(vt(),i,e,n,t,r)),Ve}function qo(e,n,t,r){return rn(e,Mo(),t)?n+me(t)+r:Se}function Wo(e,n,t,r,i,o){const a=Ji(e,function Wr(){return Ee.lFrame.bindingIndex}(),t,i);return Yr(2),a?n+me(t)+r+me(i)+o:Se}function k(e,n,t,r,i,o,s,a){const l=H(),c=Ue(),u=e+ht,p=c.firstCreatePass?function pI(e,n,t,r,i,o,s,a,l){const c=n.consts,u=Go(n,e,4,s||null,bi(c,a));Df(n,t,u,bi(c,l)),Ul(n,u);const p=u.tView=wf(2,u,r,i,o,n.directiveRegistry,n.pipeRegistry,null,n.schemas,c);return null!==n.queries&&(n.queries.template(n,u),p.queries=n.queries.embeddedTView(u)),u}(u,c,l,n,t,r,i,o,s):c.data[u];Er(p,!1);const m=l[Re].createComment("");tc(c,l,m,p),nn(m,l),fc(l,l[u]=H_(m,l,m,p)),Vl(p)&&bf(c,l,p),null!=s&&Cf(l,p,a)}function ze(e){return Io(function C0(){return Ee.lFrame.contextLView}(),ht+e)}function g(e,n,t){const r=H();return rn(r,Mo(),n)&&Bn(Ue(),vt(),r,e,n,r[Re],t,!1),g}function Ff(e,n,t,r,i){const s=i?"class":"style";Af(e,t,n.inputs[s],s,r)}function f(e,n,t,r){const i=H(),o=Ue(),s=ht+e,a=i[Re],l=o.firstCreatePass?function mI(e,n,t,r,i,o){const s=n.consts,l=Go(n,e,2,r,bi(s,i));return Df(n,t,l,bi(s,o)),null!==l.attrs&&pc(l,l.attrs,!1),null!==l.mergedAttrs&&pc(l,l.mergedAttrs,!0),null!==n.queries&&n.queries.elementStart(n,l),l}(s,o,i,n,t,r):o.data[s],c=i[s]=Ud(a,n,function x0(){return Ee.lFrame.currentNamespace}()),u=Vl(l);return Er(l,!0),$m(a,c,l),32!=(32&l.flags)&&tc(o,i,c,l),0===function m0(){return Ee.lFrame.elementDepthCount}()&&nn(c,i),function _0(){Ee.lFrame.elementDepthCount++}(),u&&(bf(o,i,l),yf(o,l,i)),null!==r&&Cf(i,l),f}function h(){let e=Qt();ld()?cd():(e=e.parent,Er(e,!1));const n=e;!function v0(){Ee.lFrame.elementDepthCount--}();const t=Ue();return t.firstCreatePass&&(Ul(t,e),od(e)&&t.queries.elementEnd(e)),null!=n.classesWithoutHost&&function O0(e){return 0!=(8&e.flags)}(n)&&Ff(t,n,H(),n.classesWithoutHost,!0),null!=n.stylesWithoutHost&&function N0(e){return 0!=(16&e.flags)}(n)&&Ff(t,n,H(),n.stylesWithoutHost,!1),h}function S(e,n,t,r){return f(e,n,t,r),h(),S}function Ae(e,n,t){const r=H(),i=Ue(),o=e+ht,s=i.firstCreatePass?function _I(e,n,t,r,i){const o=n.consts,s=bi(o,r),a=Go(n,e,8,"ng-container",s);return null!==s&&pc(a,s,!0),Df(n,t,a,bi(o,i)),null!==n.queries&&n.queries.elementStart(n,a),a}(o,i,r,n,t):i.data[o];Er(s,!0);const a=r[o]=r[Re].createComment("");return tc(i,r,a,s),nn(a,r),Vl(s)&&(bf(i,r,s),yf(i,s,r)),null!=t&&Cf(r,s),Ae}function xe(){let e=Qt();const n=Ue();return ld()?cd():(e=e.parent,Er(e,!1)),n.firstCreatePass&&(Ul(n,e),od(e)&&n.queries.elementEnd(e)),xe}function he(){return H()}function ma(e){return!!e&&"function"==typeof e.then}function uv(e){return!!e&&"function"==typeof e.subscribe}const Rf=uv;function $(e,n,t,r){const i=H(),o=Ue(),s=Qt();return function fv(e,n,t,r,i,o,s){const a=Vl(r),c=e.firstCreatePass&&z_(e),u=n[Tt],p=G_(n);let m=!0;if(3&r.type||s){const N=Pn(r,n),B=s?s(N):N,U=p.length,re=s?ve=>s(Kt(ve[r.index])):r.index;let j=null;if(!s&&a&&(j=function vI(e,n,t,r){const i=e.cleanup;if(null!=i)for(let o=0;ol?a[l]:null}"string"==typeof s&&(o+=2)}return null}(e,n,i,r.index)),null!==j)(j.__ngLastListenerFn__||j).__ngNextListenerFn__=o,j.__ngLastListenerFn__=o,m=!1;else{o=pv(r,n,u,o,!1);const ve=t.listen(B,i,o);p.push(o,ve),c&&c.push(i,re,U,U+1)}}else o=pv(r,n,u,o,!1);const _=r.outputs;let E;if(m&&null!==_&&(E=_[i])){const N=E.length;if(N)for(let B=0;B-1?Ln(e.index,n):n);let l=hv(n,t,r,s),c=o.__ngNextListenerFn__;for(;c;)l=hv(n,t,c,s)&&l,c=c.__ngNextListenerFn__;return i&&!1===l&&(s.preventDefault(),s.returnValue=!1),l}}function C(e=1){return function T0(e){return(Ee.lFrame.contextLView=function I0(e,n){for(;e>0;)n=n[Eo],e--;return n}(e,Ee.lFrame.contextLView))[Tt]}(e)}function on(e,n,t){return Of(e,"",n,"",t),on}function Of(e,n,t,r,i){const o=H(),s=qo(o,n,t,r);return s!==Se&&Bn(Ue(),vt(),o,e,s,o[Re],i,!1),Of}function vc(e,n){return e<<17|n<<2}function wi(e){return e>>17&32767}function Nf(e){return 2|e}function eo(e){return(131068&e)>>2}function Pf(e,n){return-131069&e|n<<2}function Lf(e){return 1|e}function Dv(e,n,t,r,i){const o=e[t+1],s=null===n;let a=r?wi(o):eo(o),l=!1;for(;0!==a&&(!1===l||s);){const u=e[a+1];II(e[a],n)&&(l=!0,e[a+1]=r?Lf(u):Nf(u)),a=r?wi(u):eo(u)}l&&(e[t+1]=r?Nf(o):Lf(o))}function II(e,n){return null===e||null==n||(Array.isArray(e)?e[1]:e)===n||!(!Array.isArray(e)||"string"!=typeof n)&&No(e,n)>=0}const $t={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function Ev(e){return e.substring($t.key,$t.keyEnd)}function Sv(e,n){const t=$t.textEnd;return t===n?-1:(n=$t.keyEnd=function kI(e,n,t){for(;n32;)n++;return n}(e,$t.key=n,t),es(e,n,t))}function es(e,n,t){for(;n=0;t=Sv(n,t))Vn(e,Ev(n),!0)}function dr(e,n,t,r){const i=H(),o=Ue(),s=Yr(2);o.firstUpdatePass&&Fv(o,e,s,r),n!==Se&&rn(i,s,n)&&Ov(o,o.data[pn()],i,i[Re],e,i[s+1]=function UI(e,n){return null==e||""===e||("string"==typeof n?e+=n:"object"==typeof e&&(e=ne(Ci(e)))),e}(n,t),r,s)}function kv(e,n){return n>=e.expandoStartIndex}function Fv(e,n,t,r){const i=e.data;if(null===i[t+1]){const o=i[pn()],s=kv(e,t);Pv(o,r)&&null===n&&!s&&(n=!1),n=function NI(e,n,t,r){const i=function dd(e){const n=Ee.lFrame.currentDirectiveIndex;return-1===n?null:e[n]}(e);let o=r?n.residualClasses:n.residualStyles;if(null===i)0===(r?n.classBindings:n.styleBindings)&&(t=_a(t=Vf(null,e,n,t,r),n.attrs,r),o=null);else{const s=n.directiveStylingLast;if(-1===s||e[s]!==i)if(t=Vf(i,e,n,t,r),null===o){let l=function PI(e,n,t){const r=t?n.classBindings:n.styleBindings;if(0!==eo(r))return e[wi(r)]}(e,n,r);void 0!==l&&Array.isArray(l)&&(l=Vf(null,e,n,l[1],r),l=_a(l,n.attrs,r),function LI(e,n,t,r){e[wi(t?n.classBindings:n.styleBindings)]=r}(e,n,r,l))}else o=function VI(e,n,t){let r;const i=n.directiveEnd;for(let o=1+n.directiveStylingLast;o0)&&(c=!0)):u=t,i)if(0!==l){const m=wi(e[a+1]);e[r+1]=vc(m,a),0!==m&&(e[m+1]=Pf(e[m+1],r)),e[a+1]=function DI(e,n){return 131071&e|n<<17}(e[a+1],r)}else e[r+1]=vc(a,0),0!==a&&(e[a+1]=Pf(e[a+1],r)),a=r;else e[r+1]=vc(l,0),0===a?a=r:e[l+1]=Pf(e[l+1],r),l=r;c&&(e[r+1]=Nf(e[r+1])),Dv(e,u,r,!0),Dv(e,u,r,!1),function TI(e,n,t,r,i){const o=i?e.residualClasses:e.residualStyles;null!=o&&"string"==typeof n&&No(o,n)>=0&&(t[r+1]=Lf(t[r+1]))}(n,u,e,r,o),s=vc(a,l),o?n.classBindings=s:n.styleBindings=s}(i,o,n,t,s,r)}}function Vf(e,n,t,r,i){let o=null;const s=t.directiveEnd;let a=t.directiveStylingLast;for(-1===a?a=t.directiveStart:a++;a0;){const l=e[i],c=Array.isArray(l),u=c?l[1]:l,p=null===u;let m=t[i+1];m===Se&&(m=p?Ke:void 0);let _=p?Id(m,r):u===r?m:void 0;if(c&&!yc(_)&&(_=Id(l,r)),yc(_)&&(a=_,s))return a;const E=e[i+1];i=s?wi(E):eo(E)}if(null!==n){let l=o?n.residualClasses:n.residualStyles;null!=l&&(a=Id(l,r))}return a}function yc(e){return void 0!==e}function Pv(e,n){return 0!=(e.flags&(n?8:16))}function v(e,n=""){const t=H(),r=Ue(),i=e+ht,o=r.firstCreatePass?Go(r,i,1,n,null):r.data[i],s=t[i]=function jd(e,n){return e.createText(n)}(t[Re],n);tc(r,t,s,o),Er(o,!1)}function Fr(e){return y("",e,""),Fr}function y(e,n,t){const r=H(),i=qo(r,e,n,t);return i!==Se&&Zr(r,pn(),i),y}function va(e,n,t,r,i){const o=H(),s=Wo(o,e,n,t,r,i);return s!==Se&&Zr(o,pn(),s),va}const to=void 0;var aM=["en",[["a","p"],["AM","PM"],to],[["AM","PM"],to,to],[["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"]],to,[["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"]],to,[["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}",to,"{1} 'at' {0}",to],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function sM(e){const t=Math.floor(Math.abs(e)),r=e.toString().replace(/^[^.]*\.?/,"").length;return 1===t&&0===r?1:5}];let ns={};function gn(e){const n=function lM(e){return e.toLowerCase().replace(/_/g,"-")}(e);let t=ny(n);if(t)return t;const r=n.split("-")[0];if(t=ny(r),t)return t;if("en"===r)return aM;throw new q(701,!1)}function ny(e){return e in ns||(ns[e]=ft.ng&&ft.ng.common&&ft.ng.common.locales&&ft.ng.common.locales[e]),ns[e]}var ie=(()=>((ie=ie||{})[ie.LocaleId=0]="LocaleId",ie[ie.DayPeriodsFormat=1]="DayPeriodsFormat",ie[ie.DayPeriodsStandalone=2]="DayPeriodsStandalone",ie[ie.DaysFormat=3]="DaysFormat",ie[ie.DaysStandalone=4]="DaysStandalone",ie[ie.MonthsFormat=5]="MonthsFormat",ie[ie.MonthsStandalone=6]="MonthsStandalone",ie[ie.Eras=7]="Eras",ie[ie.FirstDayOfWeek=8]="FirstDayOfWeek",ie[ie.WeekendRange=9]="WeekendRange",ie[ie.DateFormat=10]="DateFormat",ie[ie.TimeFormat=11]="TimeFormat",ie[ie.DateTimeFormat=12]="DateTimeFormat",ie[ie.NumberSymbols=13]="NumberSymbols",ie[ie.NumberFormats=14]="NumberFormats",ie[ie.CurrencyCode=15]="CurrencyCode",ie[ie.CurrencySymbol=16]="CurrencySymbol",ie[ie.CurrencyName=17]="CurrencyName",ie[ie.Currencies=18]="Currencies",ie[ie.Directionality=19]="Directionality",ie[ie.PluralCase=20]="PluralCase",ie[ie.ExtraData=21]="ExtraData",ie))();const rs="en-US";let ry=rs;function Uf(e,n,t,r,i){if(e=Z(e),Array.isArray(e))for(let o=0;o>20;if(Zi(e)||!e.multi){const _=new Ks(l,i,O),E=Hf(a,n,i?u:u+m,p);-1===E?(Dd(Wl(c,s),o,a),$f(o,e,n.length),n.push(a),c.directiveStart++,c.directiveEnd++,i&&(c.providerIndexes+=1048576),t.push(_),s.push(_)):(t[E]=_,s[E]=_)}else{const _=Hf(a,n,u+m,p),E=Hf(a,n,u,u+m),B=E>=0&&t[E];if(i&&!B||!i&&!(_>=0&&t[_])){Dd(Wl(c,s),o,a);const U=function oA(e,n,t,r,i){const o=new Ks(e,t,O);return o.multi=[],o.index=n,o.componentProviders=0,My(o,i,r&&!t),o}(i?iA:rA,t.length,i,r,l);!i&&B&&(t[E].providerFactory=U),$f(o,e,n.length,0),n.push(a),c.directiveStart++,c.directiveEnd++,i&&(c.providerIndexes+=1048576),t.push(U),s.push(U)}else $f(o,e,_>-1?_:E,My(t[i?E:_],l,!i&&r));!i&&r&&B&&t[E].componentProviders++}}}function $f(e,n,t,r){const i=Zi(n),o=function vS(e){return!!e.useClass}(n);if(i||o){const l=(o?Z(n.useClass):n).prototype.ngOnDestroy;if(l){const c=e.destroyHooks||(e.destroyHooks=[]);if(!i&&n.multi){const u=c.indexOf(t);-1===u?c.push(t,[r,l]):c[u+1].push(r,l)}else c.push(t,l)}}}function My(e,n,t){return t&&e.componentProviders++,e.multi.push(n)-1}function Hf(e,n,t,r){for(let i=t;i{t.providersResolver=(r,i)=>function nA(e,n,t){const r=Ue();if(r.firstCreatePass){const i=cr(e);Uf(t,r.data,r.blueprint,i,!0),Uf(n,r.data,r.blueprint,i,!1)}}(r,i?i(e):e,n)}}class is{}class Ay{}class xy extends is{constructor(n,t){super(),this._parent=t,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new Y_(this);const r=On(n);this._bootstrapComponents=Xr(r.bootstrap),this._r3Injector=T_(n,t,[{provide:is,useValue:this},{provide:ua,useValue:this.componentFactoryResolver}],ne(n),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(n)}get injector(){return this._r3Injector}destroy(){const n=this._r3Injector;!n.destroyed&&n.destroy(),this.destroyCbs.forEach(t=>t()),this.destroyCbs=null}onDestroy(n){this.destroyCbs.push(n)}}class zf extends Ay{constructor(n){super(),this.moduleType=n}create(n){return new xy(this.moduleType,n)}}class aA extends is{constructor(n,t,r){super(),this.componentFactoryResolver=new Y_(this),this.instance=null;const i=new u_([...n,{provide:is,useValue:this},{provide:ua,useValue:this.componentFactoryResolver}],t||lc(),r,new Set(["environment"]));this.injector=i,i.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(n){this.injector.onDestroy(n)}}function Ec(e,n,t=null){return new aA(e,n,t).injector}let lA=(()=>{class e{constructor(t){this._injector=t,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(t){if(!t.standalone)return null;if(!this.cachedInjectors.has(t.id)){const r=s_(0,t.type),i=r.length>0?Ec([r],this._injector,`Standalone[${t.type.name}]`):null;this.cachedInjectors.set(t.id,i)}return this.cachedInjectors.get(t.id)}ngOnDestroy(){try{for(const t of this.cachedInjectors.values())null!==t&&t.destroy()}finally{this.cachedInjectors.clear()}}}return e.\u0275prov=ee({token:e,providedIn:"environment",factory:()=>new e(te(Tr))}),e})();function ky(e){e.getStandaloneInjector=n=>n.get(lA).getOrCreateStandaloneInjector(e)}function It(e,n,t){const r=hn()+e,i=H();return i[r]===Se?Ar(i,r,t?n.call(t):n()):function ga(e,n){return e[n]}(i,r)}function Ea(e,n){const t=e[n];return t===Se?void 0:t}function jy(e,n,t,r,i,o){const s=n+t;return rn(e,s,i)?Ar(e,s+1,o?r.call(o,i):r(i)):Ea(e,s+1)}function Uy(e,n,t,r,i,o,s){const a=n+t;return Ji(e,a,i,o)?Ar(e,a+2,s?r.call(s,i,o):r(i,o)):Ea(e,a+2)}function w(e,n){const t=Ue();let r;const i=e+ht;t.firstCreatePass?(r=function EA(e,n){if(n)for(let t=n.length-1;t>=0;t--){const r=n[t];if(e===r.name)return r}}(n,t.pipeRegistry),t.data[i]=r,r.onDestroy&&(t.destroyHooks||(t.destroyHooks=[])).push(i,r.onDestroy)):r=t.data[i];const o=r.factory||(r.factory=Wi(r.type)),s=Yn(O);try{const a=ql(!1),l=o();return ql(a),function gI(e,n,t,r){t>=e.data.length&&(e.data[t]=null,e.blueprint[t]=null),n[t]=r}(t,H(),i,l),l}finally{Yn(s)}}function D(e,n,t){const r=e+ht,i=H(),o=Io(i,r);return Sa(i,r)?jy(i,hn(),n,o.transform,t,o):o.transform(t)}function Sc(e,n,t,r){const i=e+ht,o=H(),s=Io(o,i);return Sa(o,i)?Uy(o,hn(),n,s.transform,t,r,s):s.transform(t,r)}function Sa(e,n){return e[se].data[n].pure}function Wf(e){return n=>{setTimeout(e,void 0,n)}}const ue=class MA extends qt{constructor(n=!1){super(),this.__isAsync=n}emit(n){super.next(n)}subscribe(n,t,r){let i=n,o=t||(()=>null),s=r;if(n&&"object"==typeof n){const l=n;i=l.next?.bind(l),o=l.error?.bind(l),s=l.complete?.bind(l)}this.__isAsync&&(o=Wf(o),i&&(i=Wf(i)),s&&(s=Wf(s)));const a=super.subscribe({next:i,error:o,complete:s});return n instanceof Ct&&n.add(a),a}};function AA(){return this._results[Symbol.iterator]()}class Yf{get changes(){return this._changes||(this._changes=new ue)}constructor(n=!1){this._emitDistinctChangesOnly=n,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const t=Yf.prototype;t[Symbol.iterator]||(t[Symbol.iterator]=AA)}get(n){return this._results[n]}map(n){return this._results.map(n)}filter(n){return this._results.filter(n)}find(n){return this._results.find(n)}reduce(n,t){return this._results.reduce(n,t)}forEach(n){this._results.forEach(n)}some(n){return this._results.some(n)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(n,t){const r=this;r.dirty=!1;const i=function Xn(e){return e.flat(Number.POSITIVE_INFINITY)}(n);(this._changesDetected=!function z0(e,n,t){if(e.length!==n.length)return!1;for(let r=0;r{class e{}return e.__NG_ELEMENT_ID__=FA,e})();const xA=Jr,kA=class extends xA{constructor(n,t,r){super(),this._declarationLView=n,this._declarationTContainer=t,this.elementRef=r}createEmbeddedView(n,t){const r=this._declarationTContainer.tView,i=uc(this._declarationLView,r,n,16,null,r.declTNode,null,null,null,null,t||null);i[zs]=this._declarationLView[this._declarationTContainer.index];const s=this._declarationLView[Dr];return null!==s&&(i[Dr]=s.createEmbeddedView(r)),vf(r,i,n),new ha(i)}};function FA(){return Tc(Qt(),H())}function Tc(e,n){return 4&e.type?new kA(n,e,jo(e,n)):null}let hr=(()=>{class e{}return e.__NG_ELEMENT_ID__=RA,e})();function RA(){return Wy(Qt(),H())}const OA=hr,zy=class extends OA{constructor(n,t,r){super(),this._lContainer=n,this._hostTNode=t,this._hostLView=r}get element(){return jo(this._hostTNode,this._hostLView)}get injector(){return new xo(this._hostTNode,this._hostLView)}get parentInjector(){const n=wd(this._hostTNode,this._hostLView);if(Yg(n)){const t=zl(n,this._hostLView),r=Gl(n);return new xo(t[se].data[r+8],t)}return new xo(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(n){const t=qy(this._lContainer);return null!==t&&t[n]||null}get length(){return this._lContainer.length-fn}createEmbeddedView(n,t,r){let i,o;"number"==typeof r?i=r:null!=r&&(i=r.index,o=r.injector);const s=n.createEmbeddedView(t||{},o);return this.insert(s,i),s}createComponent(n,t,r,i,o){const s=n&&!function Zs(e){return"function"==typeof e}(n);let a;if(s)a=t;else{const p=t||{};a=p.index,r=p.injector,i=p.projectableNodes,o=p.environmentInjector||p.ngModuleRef}const l=s?n:new pa(Je(n)),c=r||this.parentInjector;if(!o&&null==l.ngModule){const m=(s?c:this.parentInjector).get(Tr,null);m&&(o=m)}const u=l.create(c,i,void 0,o);return this.insert(u.hostView,a),u}insert(n,t){const r=n._lView,i=r[se];if(function g0(e){return lr(e[wt])}(r)){const u=this.indexOf(n);if(-1!==u)this.detach(u);else{const p=r[wt],m=new zy(p,p[en],p[wt]);m.detach(m.indexOf(n))}}const o=this._adjustIndex(t),s=this._lContainer;!function RE(e,n,t,r){const i=fn+r,o=t.length;r>0&&(t[i-1][ar]=n),r0)r.push(s[a/2]);else{const c=o[a+1],u=n[-l];for(let p=fn;p{class e{constructor(t){this.appInits=t,this.resolve=Mc,this.reject=Mc,this.initialized=!1,this.done=!1,this.donePromise=new Promise((r,i)=>{this.resolve=r,this.reject=i})}runInitializers(){if(this.initialized)return;const t=[],r=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let i=0;i{o.subscribe({complete:a,error:l})});t.push(s)}}Promise.all(t).then(()=>{r()}).catch(i=>{this.reject(i)}),0===t.length&&r(),this.initialized=!0}}return e.\u0275fac=function(t){return new(t||e)(te(Ac,8))},e.\u0275prov=ee({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const Ma=new ce("AppId",{providedIn:"root",factory:function _b(){return`${sh()}${sh()}${sh()}`}});function sh(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const vb=new ce("Platform Initializer"),ah=new ce("Platform ID",{providedIn:"platform",factory:()=>"unknown"});let sx=(()=>{class e{log(t){console.log(t)}warn(t){console.warn(t)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=ee({token:e,factory:e.\u0275fac,providedIn:"platform"}),e})();const ei=new ce("LocaleId",{providedIn:"root",factory:()=>Fe(ei,ye.Optional|ye.SkipSelf)||function ax(){return typeof $localize<"u"&&$localize.locale||rs}()});class cx{constructor(n,t){this.ngModuleFactory=n,this.componentFactories=t}}let yb=(()=>{class e{compileModuleSync(t){return new zf(t)}compileModuleAsync(t){return Promise.resolve(this.compileModuleSync(t))}compileModuleAndAllComponentsSync(t){const r=this.compileModuleSync(t),o=Xr(On(t).declarations).reduce((s,a)=>{const l=Je(a);return l&&s.push(new pa(l)),s},[]);return new cx(r,o)}compileModuleAndAllComponentsAsync(t){return Promise.resolve(this.compileModuleAndAllComponentsSync(t))}clearCache(){}clearCacheFor(t){}getModuleId(t){}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=ee({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const fx=(()=>Promise.resolve(0))();function lh(e){typeof Zone>"u"?fx.then(()=>{e&&e.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",e)}class Mt{constructor({enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:t=!1,shouldCoalesceRunChangeDetection:r=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new ue(!1),this.onMicrotaskEmpty=new ue(!1),this.onStable=new ue(!1),this.onError=new ue(!1),typeof Zone>"u")throw new q(908,!1);Zone.assertZonePatched();const i=this;i._nesting=0,i._outer=i._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(i._inner=i._inner.fork(new Zone.TaskTrackingZoneSpec)),n&&Zone.longStackTraceZoneSpec&&(i._inner=i._inner.fork(Zone.longStackTraceZoneSpec)),i.shouldCoalesceEventChangeDetection=!r&&t,i.shouldCoalesceRunChangeDetection=r,i.lastRequestAnimationFrameId=-1,i.nativeRequestAnimationFrame=function hx(){let e=ft.requestAnimationFrame,n=ft.cancelAnimationFrame;if(typeof Zone<"u"&&e&&n){const t=e[Zone.__symbol__("OriginalDelegate")];t&&(e=t);const r=n[Zone.__symbol__("OriginalDelegate")];r&&(n=r)}return{nativeRequestAnimationFrame:e,nativeCancelAnimationFrame:n}}().nativeRequestAnimationFrame,function mx(e){const n=()=>{!function gx(e){e.isCheckStableRunning||-1!==e.lastRequestAnimationFrameId||(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(ft,()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{e.lastRequestAnimationFrameId=-1,uh(e),e.isCheckStableRunning=!0,ch(e),e.isCheckStableRunning=!1},void 0,()=>{},()=>{})),e.fakeTopEventTask.invoke()}),uh(e))}(e)};e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(t,r,i,o,s,a)=>{try{return wb(e),t.invokeTask(i,o,s,a)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===o.type||e.shouldCoalesceRunChangeDetection)&&n(),Db(e)}},onInvoke:(t,r,i,o,s,a,l)=>{try{return wb(e),t.invoke(i,o,s,a,l)}finally{e.shouldCoalesceRunChangeDetection&&n(),Db(e)}},onHasTask:(t,r,i,o)=>{t.hasTask(i,o),r===i&&("microTask"==o.change?(e._hasPendingMicrotasks=o.microTask,uh(e),ch(e)):"macroTask"==o.change&&(e.hasPendingMacrotasks=o.macroTask))},onHandleError:(t,r,i,o)=>(t.handleError(i,o),e.runOutsideAngular(()=>e.onError.emit(o)),!1)})}(i)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Mt.isInAngularZone())throw new q(909,!1)}static assertNotInAngularZone(){if(Mt.isInAngularZone())throw new q(909,!1)}run(n,t,r){return this._inner.run(n,t,r)}runTask(n,t,r,i){const o=this._inner,s=o.scheduleEventTask("NgZoneEvent: "+i,n,px,Mc,Mc);try{return o.runTask(s,t,r)}finally{o.cancelTask(s)}}runGuarded(n,t,r){return this._inner.runGuarded(n,t,r)}runOutsideAngular(n){return this._outer.run(n)}}const px={};function ch(e){if(0==e._nesting&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function uh(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&-1!==e.lastRequestAnimationFrameId)}function wb(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function Db(e){e._nesting--,ch(e)}class _x{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new ue,this.onMicrotaskEmpty=new ue,this.onStable=new ue,this.onError=new ue}run(n,t,r){return n.apply(t,r)}runGuarded(n,t,r){return n.apply(t,r)}runOutsideAngular(n){return n()}runTask(n,t,r,i){return n.apply(t,r)}}const Eb=new ce(""),kc=new ce("");let hh,dh=(()=>{class e{constructor(t,r,i){this._ngZone=t,this.registry=r,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,hh||(function vx(e){hh=e}(i),i.addToWindow(r)),this._watchAngularEvents(),t.run(()=>{this.taskTrackingZone=typeof Zone>"u"?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:()=>{Mt.assertNotInAngularZone(),lh(()=>{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())lh(()=>{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(r=>!r.updateCb||!r.updateCb(t)||(clearTimeout(r.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,r,i){let o=-1;r&&r>0&&(o=setTimeout(()=>{this._callbacks=this._callbacks.filter(s=>s.timeoutId!==o),t(this._didWork,this.getPendingTasks())},r)),this._callbacks.push({doneCb:t,timeoutId:o,updateCb:i})}whenStable(t,r,i){if(i&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(t,r,i),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(t){this.registry.registerApplication(t,this)}unregisterApplication(t){this.registry.unregisterApplication(t)}findProviders(t,r,i){return[]}}return e.\u0275fac=function(t){return new(t||e)(te(Mt),te(fh),te(kc))},e.\u0275prov=ee({token:e,factory:e.\u0275fac}),e})(),fh=(()=>{class e{constructor(){this._applications=new Map}registerApplication(t,r){this._applications.set(t,r)}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,r=!0){return hh?.findTestabilityInTree(this,t,r)??null}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=ee({token:e,factory:e.\u0275fac,providedIn:"platform"}),e})();const ti=!1;let Di=null;const Sb=new ce("AllowMultipleToken"),ph=new ce("PlatformDestroyListeners"),Tb=new ce("appBootstrapListener");class Ib{constructor(n,t){this.name=n,this.token=t}}function Ab(e,n,t=[]){const r=`Platform: ${n}`,i=new ce(r);return(o=[])=>{let s=gh();if(!s||s.injector.get(Sb,!1)){const a=[...t,...o,{provide:i,useValue:!0}];e?e(a):function Cx(e){if(Di&&!Di.get(Sb,!1))throw new q(400,!1);Di=e;const n=e.get(kb);(function Mb(e){const n=e.get(vb,null);n&&n.forEach(t=>t())})(e)}(function xb(e=[],n){return Ir.create({name:n,providers:[{provide:sf,useValue:"platform"},{provide:ph,useValue:new Set([()=>Di=null])},...e]})}(a,r))}return function Dx(e){const n=gh();if(!n)throw new q(401,!1);return n}()}}function gh(){return Di?.get(kb)??null}let kb=(()=>{class e{constructor(t){this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(t,r){const i=function Rb(e,n){let t;return t="noop"===e?new _x:("zone.js"===e?void 0:e)||new Mt(n),t}(r?.ngZone,function Fb(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!(!e||!e.ngZoneEventCoalescing)||!1,shouldCoalesceRunChangeDetection:!(!e||!e.ngZoneRunCoalescing)||!1}}(r)),o=[{provide:Mt,useValue:i}];return i.run(()=>{const s=Ir.create({providers:o,parent:this.injector,name:t.moduleType.name}),a=t.create(s),l=a.injector.get(Uo,null);if(!l)throw new q(402,!1);return i.runOutsideAngular(()=>{const c=i.onError.subscribe({next:u=>{l.handleError(u)}});a.onDestroy(()=>{Rc(this._modules,a),c.unsubscribe()})}),function Ob(e,n,t){try{const r=t();return ma(r)?r.catch(i=>{throw n.runOutsideAngular(()=>e.handleError(i)),i}):r}catch(r){throw n.runOutsideAngular(()=>e.handleError(r)),r}}(l,i,()=>{const c=a.injector.get(xc);return c.runInitializers(),c.donePromise.then(()=>(function iy(e){Wn(e,"Expected localeId to be defined"),"string"==typeof e&&(ry=e.toLowerCase().replace(/_/g,"-"))}(a.injector.get(ei,rs)||rs),this._moduleDoBootstrap(a),a))})})}bootstrapModule(t,r=[]){const i=Nb({},r);return function yx(e,n,t){const r=new zf(t);return Promise.resolve(r)}(0,0,t).then(o=>this.bootstrapModuleFactory(o,i))}_moduleDoBootstrap(t){const r=t.injector.get(Fc);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(i=>r.bootstrap(i));else{if(!t.instance.ngDoBootstrap)throw new q(-403,!1);t.instance.ngDoBootstrap(r)}this._modules.push(t)}onDestroy(t){this._destroyListeners.push(t)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new q(404,!1);this._modules.slice().forEach(r=>r.destroy()),this._destroyListeners.forEach(r=>r());const t=this._injector.get(ph,null);t&&(t.forEach(r=>r()),t.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}}return e.\u0275fac=function(t){return new(t||e)(te(Ir))},e.\u0275prov=ee({token:e,factory:e.\u0275fac,providedIn:"platform"}),e})();function Nb(e,n){return Array.isArray(n)?n.reduce(Nb,e):{...e,...n}}let Fc=(()=>{class e{get destroyed(){return this._destroyed}get injector(){return this._injector}constructor(t,r,i){this._zone=t,this._injector=r,this._exceptionHandler=i,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this._destroyed=!1,this._destroyListeners=[],this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const o=new qe(a=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{a.next(this._stable),a.complete()})}),s=new qe(a=>{let l;this._zone.runOutsideAngular(()=>{l=this._zone.onStable.subscribe(()=>{Mt.assertNotInAngularZone(),lh(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,a.next(!0))})})});const c=this._zone.onUnstable.subscribe(()=>{Mt.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{a.next(!1)}))});return()=>{l.unsubscribe(),c.unsubscribe()}});this.isStable=function Bs(...e){const n=X(e),t=function pe(e,n){return"number"==typeof R(e)?e.pop():n}(e,1/0),r=e;return r.length?1===r.length?Cn(r[0]):x(t)(ot(r,n)):I}(o,s.pipe(_i()))}bootstrap(t,r){const i=t instanceof f_;if(!this._injector.get(xc).done){!i&&function wo(e){const n=Je(e)||Jt(e)||wn(e);return null!==n&&n.standalone}(t);throw new q(405,ti)}let s;s=i?t:this._injector.get(ua).resolveComponentFactory(t),this.componentTypes.push(s.componentType);const a=function bx(e){return e.isBoundToModule}(s)?void 0:this._injector.get(is),c=s.create(Ir.NULL,[],r||s.selector,a),u=c.location.nativeElement,p=c.injector.get(Eb,null);return p?.registerApplication(u),c.onDestroy(()=>{this.detachView(c.hostView),Rc(this.components,c),p?.unregisterApplication(u)}),this._loadComponent(c),c}tick(){if(this._runningTick)throw new q(101,!1);try{this._runningTick=!0;for(let t of this._views)t.detectChanges()}catch(t){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(t))}finally{this._runningTick=!1}}attachView(t){const r=t;this._views.push(r),r.attachToAppRef(this)}detachView(t){const r=t;Rc(this._views,r),r.detachFromAppRef()}_loadComponent(t){this.attachView(t.hostView),this.tick(),this.components.push(t);const r=this._injector.get(Tb,[]);r.push(...this._bootstrapListeners),r.forEach(i=>i(t))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(t=>t()),this._views.slice().forEach(t=>t.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(t){return this._destroyListeners.push(t),()=>Rc(this._destroyListeners,t)}destroy(){if(this._destroyed)throw new q(406,!1);const t=this._injector;t.destroy&&!t.destroyed&&t.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}}return e.\u0275fac=function(t){return new(t||e)(te(Mt),te(Tr),te(Uo))},e.\u0275prov=ee({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function Rc(e,n){const t=e.indexOf(n);t>-1&&e.splice(t,1)}let Aa=(()=>{class e{}return e.__NG_ELEMENT_ID__=Sx,e})();function Sx(e){return function Tx(e,n,t){if(Ws(e)&&!t){const r=Ln(e.index,n);return new ha(r,r)}return 47&e.type?new ha(n[tn],n):null}(Qt(),H(),16==(16&e))}class jb{constructor(){}supports(n){return mc(n)}create(n){return new Fx(n)}}const kx=(e,n)=>n;class Fx{constructor(n){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=n||kx}forEachItem(n){let t;for(t=this._itHead;null!==t;t=t._next)n(t)}forEachOperation(n){let t=this._itHead,r=this._removalsHead,i=0,o=null;for(;t||r;){const s=!r||t&&t.currentIndex<$b(r,i,o)?t:r,a=$b(s,i,o),l=s.currentIndex;if(s===r)i--,r=r._nextRemoved;else if(t=t._next,null==s.previousIndex)i++;else{o||(o=[]);const c=a-i,u=l-i;if(c!=u){for(let m=0;m{s=this._trackByFn(i,a),null!==t&&Object.is(t.trackById,s)?(r&&(t=this._verifyReinsertion(t,a,s,i)),Object.is(t.item,a)||this._addIdentityChange(t,a)):(t=this._mismatch(t,a,s,i),r=!0),t=t._next,i++}),this.length=i;return this._truncate(t),this.collection=n,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let n;for(n=this._previousItHead=this._itHead;null!==n;n=n._next)n._nextPrevious=n._next;for(n=this._additionsHead;null!==n;n=n._nextAdded)n.previousIndex=n.currentIndex;for(this._additionsHead=this._additionsTail=null,n=this._movesHead;null!==n;n=n._nextMoved)n.previousIndex=n.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(n,t,r,i){let o;return null===n?o=this._itTail:(o=n._prev,this._remove(n)),null!==(n=null===this._unlinkedRecords?null:this._unlinkedRecords.get(r,null))?(Object.is(n.item,t)||this._addIdentityChange(n,t),this._reinsertAfter(n,o,i)):null!==(n=null===this._linkedRecords?null:this._linkedRecords.get(r,i))?(Object.is(n.item,t)||this._addIdentityChange(n,t),this._moveAfter(n,o,i)):n=this._addAfter(new Rx(t,r),o,i),n}_verifyReinsertion(n,t,r,i){let o=null===this._unlinkedRecords?null:this._unlinkedRecords.get(r,null);return null!==o?n=this._reinsertAfter(o,n._prev,i):n.currentIndex!=i&&(n.currentIndex=i,this._addToMoves(n,i)),n}_truncate(n){for(;null!==n;){const t=n._next;this._addToRemovals(this._unlink(n)),n=t}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(n,t,r){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(n);const i=n._prevRemoved,o=n._nextRemoved;return null===i?this._removalsHead=o:i._nextRemoved=o,null===o?this._removalsTail=i:o._prevRemoved=i,this._insertAfter(n,t,r),this._addToMoves(n,r),n}_moveAfter(n,t,r){return this._unlink(n),this._insertAfter(n,t,r),this._addToMoves(n,r),n}_addAfter(n,t,r){return this._insertAfter(n,t,r),this._additionsTail=null===this._additionsTail?this._additionsHead=n:this._additionsTail._nextAdded=n,n}_insertAfter(n,t,r){const i=null===t?this._itHead:t._next;return n._next=i,n._prev=t,null===i?this._itTail=n:i._prev=n,null===t?this._itHead=n:t._next=n,null===this._linkedRecords&&(this._linkedRecords=new Ub),this._linkedRecords.put(n),n.currentIndex=r,n}_remove(n){return this._addToRemovals(this._unlink(n))}_unlink(n){null!==this._linkedRecords&&this._linkedRecords.remove(n);const t=n._prev,r=n._next;return null===t?this._itHead=r:t._next=r,null===r?this._itTail=t:r._prev=t,n}_addToMoves(n,t){return n.previousIndex===t||(this._movesTail=null===this._movesTail?this._movesHead=n:this._movesTail._nextMoved=n),n}_addToRemovals(n){return null===this._unlinkedRecords&&(this._unlinkedRecords=new Ub),this._unlinkedRecords.put(n),n.currentIndex=null,n._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=n,n._prevRemoved=null):(n._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=n),n}_addIdentityChange(n,t){return n.item=t,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=n:this._identityChangesTail._nextIdentityChange=n,n}}class Rx{constructor(n,t){this.item=n,this.trackById=t,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class Ox{constructor(){this._head=null,this._tail=null}add(n){null===this._head?(this._head=this._tail=n,n._nextDup=null,n._prevDup=null):(this._tail._nextDup=n,n._prevDup=this._tail,n._nextDup=null,this._tail=n)}get(n,t){let r;for(r=this._head;null!==r;r=r._nextDup)if((null===t||t<=r.currentIndex)&&Object.is(r.trackById,n))return r;return null}remove(n){const t=n._prevDup,r=n._nextDup;return null===t?this._head=r:t._nextDup=r,null===r?this._tail=t:r._prevDup=t,null===this._head}}class Ub{constructor(){this.map=new Map}put(n){const t=n.trackById;let r=this.map.get(t);r||(r=new Ox,this.map.set(t,r)),r.add(n)}get(n,t){const i=this.map.get(n);return i?i.get(n,t):null}remove(n){const t=n.trackById;return this.map.get(t).remove(n)&&this.map.delete(t),n}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function $b(e,n,t){const r=e.previousIndex;if(null===r)return r;let i=0;return t&&r{if(t&&t.key===i)this._maybeAddToChanges(t,r),this._appendAfter=t,t=t._next;else{const o=this._getOrCreateRecordForKey(i,r);t=this._insertBeforeOrAppend(t,o)}}),t){t._prev&&(t._prev._next=null),this._removalsHead=t;for(let r=t;null!==r;r=r._nextRemoved)r===this._mapHead&&(this._mapHead=null),this._records.delete(r.key),r._nextRemoved=r._next,r.previousValue=r.currentValue,r.currentValue=null,r._prev=null,r._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(n,t){if(n){const r=n._prev;return t._next=n,t._prev=r,n._prev=t,r&&(r._next=t),n===this._mapHead&&(this._mapHead=t),this._appendAfter=n,n}return this._appendAfter?(this._appendAfter._next=t,t._prev=this._appendAfter):this._mapHead=t,this._appendAfter=t,null}_getOrCreateRecordForKey(n,t){if(this._records.has(n)){const i=this._records.get(n);this._maybeAddToChanges(i,t);const o=i._prev,s=i._next;return o&&(o._next=s),s&&(s._prev=o),i._next=null,i._prev=null,i}const r=new Px(n);return this._records.set(n,r),r.currentValue=t,this._addToAdditions(r),r}_reset(){if(this.isDirty){let n;for(this._previousMapHead=this._mapHead,n=this._previousMapHead;null!==n;n=n._next)n._nextPrevious=n._next;for(n=this._changesHead;null!==n;n=n._nextChanged)n.previousValue=n.currentValue;for(n=this._additionsHead;null!=n;n=n._nextAdded)n.previousValue=n.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(n,t){Object.is(t,n.currentValue)||(n.previousValue=n.currentValue,n.currentValue=t,this._addToChanges(n))}_addToAdditions(n){null===this._additionsHead?this._additionsHead=this._additionsTail=n:(this._additionsTail._nextAdded=n,this._additionsTail=n)}_addToChanges(n){null===this._changesHead?this._changesHead=this._changesTail=n:(this._changesTail._nextChanged=n,this._changesTail=n)}_forEach(n,t){n instanceof Map?n.forEach(t):Object.keys(n).forEach(r=>t(n[r],r))}}class Px{constructor(n){this.key=n,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function Gb(){return new Pc([new jb])}let Pc=(()=>{class e{constructor(t){this.factories=t}static create(t,r){if(null!=r){const i=r.factories.slice();t=t.concat(i)}return new e(t)}static extend(t){return{provide:e,useFactory:r=>e.create(t,r||Gb()),deps:[[e,new ta,new ea]]}}find(t){const r=this.factories.find(i=>i.supports(t));if(null!=r)return r;throw new q(901,!1)}}return e.\u0275prov=ee({token:e,providedIn:"root",factory:Gb}),e})();function zb(){return new xa([new Hb])}let xa=(()=>{class e{constructor(t){this.factories=t}static create(t,r){if(r){const i=r.factories.slice();t=t.concat(i)}return new e(t)}static extend(t){return{provide:e,useFactory:r=>e.create(t,r||zb()),deps:[[e,new ta,new ea]]}}find(t){const r=this.factories.find(i=>i.supports(t));if(r)return r;throw new q(901,!1)}}return e.\u0275prov=ee({token:e,providedIn:"root",factory:zb}),e})();const Bx=Ab(null,"core",[]);let jx=(()=>{class e{constructor(t){}}return e.\u0275fac=function(t){return new(t||e)(te(Fc))},e.\u0275mod=Kn({type:e}),e.\u0275inj=Rn({}),e})();function cs(e){return"boolean"==typeof e?e:null!=e&&"false"!==e}let bh=null;function ni(){return bh}class Hx{}const _n=new ce("DocumentToken");let Ch=(()=>{class e{historyGo(t){throw new Error("Not implemented")}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=ee({token:e,factory:function(){return function Gx(){return te(qb)}()},providedIn:"platform"}),e})();const zx=new ce("Location Initialized");let qb=(()=>{class e extends Ch{constructor(t){super(),this._doc=t,this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return ni().getBaseHref(this._doc)}onPopState(t){const r=ni().getGlobalEventTarget(this._doc,"window");return r.addEventListener("popstate",t,!1),()=>r.removeEventListener("popstate",t)}onHashChange(t){const r=ni().getGlobalEventTarget(this._doc,"window");return r.addEventListener("hashchange",t,!1),()=>r.removeEventListener("hashchange",t)}get href(){return this._location.href}get protocol(){return this._location.protocol}get hostname(){return this._location.hostname}get port(){return this._location.port}get pathname(){return this._location.pathname}get search(){return this._location.search}get hash(){return this._location.hash}set pathname(t){this._location.pathname=t}pushState(t,r,i){Wb()?this._history.pushState(t,r,i):this._location.hash=i}replaceState(t,r,i){Wb()?this._history.replaceState(t,r,i):this._location.hash=i}forward(){this._history.forward()}back(){this._history.back()}historyGo(t=0){this._history.go(t)}getState(){return this._history.state}}return e.\u0275fac=function(t){return new(t||e)(te(_n))},e.\u0275prov=ee({token:e,factory:function(){return function qx(){return new qb(te(_n))}()},providedIn:"platform"}),e})();function Wb(){return!!window.history.pushState}function wh(e,n){if(0==e.length)return n;if(0==n.length)return e;let t=0;return e.endsWith("/")&&t++,n.startsWith("/")&&t++,2==t?e+n.substring(1):1==t?e+n:e+"/"+n}function Yb(e){const n=e.match(/#|\?|$/),t=n&&n.index||e.length;return e.slice(0,t-("/"===e[t-1]?1:0))+e.slice(t)}function ri(e){return e&&"?"!==e[0]?"?"+e:e}let ro=(()=>{class e{historyGo(t){throw new Error("Not implemented")}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=ee({token:e,factory:function(){return Fe(Qb)},providedIn:"root"}),e})();const Kb=new ce("appBaseHref");let Qb=(()=>{class e extends ro{constructor(t,r){super(),this._platformLocation=t,this._removeListenerFns=[],this._baseHref=r??this._platformLocation.getBaseHrefFromDOM()??Fe(_n).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(t){this._removeListenerFns.push(this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t))}getBaseHref(){return this._baseHref}prepareExternalUrl(t){return wh(this._baseHref,t)}path(t=!1){const r=this._platformLocation.pathname+ri(this._platformLocation.search),i=this._platformLocation.hash;return i&&t?`${r}${i}`:r}pushState(t,r,i,o){const s=this.prepareExternalUrl(i+ri(o));this._platformLocation.pushState(t,r,s)}replaceState(t,r,i,o){const s=this.prepareExternalUrl(i+ri(o));this._platformLocation.replaceState(t,r,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(t=0){this._platformLocation.historyGo?.(t)}}return e.\u0275fac=function(t){return new(t||e)(te(Ch),te(Kb,8))},e.\u0275prov=ee({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),Wx=(()=>{class e extends ro{constructor(t,r){super(),this._platformLocation=t,this._baseHref="",this._removeListenerFns=[],null!=r&&(this._baseHref=r)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(t){this._removeListenerFns.push(this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t))}getBaseHref(){return this._baseHref}path(t=!1){let r=this._platformLocation.hash;return null==r&&(r="#"),r.length>0?r.substring(1):r}prepareExternalUrl(t){const r=wh(this._baseHref,t);return r.length>0?"#"+r:r}pushState(t,r,i,o){let s=this.prepareExternalUrl(i+ri(o));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.pushState(t,r,s)}replaceState(t,r,i,o){let s=this.prepareExternalUrl(i+ri(o));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.replaceState(t,r,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(t=0){this._platformLocation.historyGo?.(t)}}return e.\u0275fac=function(t){return new(t||e)(te(Ch),te(Kb,8))},e.\u0275prov=ee({token:e,factory:e.\u0275fac}),e})(),Dh=(()=>{class e{constructor(t){this._subject=new ue,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=t;const r=this._locationStrategy.getBaseHref();this._basePath=function Qx(e){if(new RegExp("^(https?:)?//").test(e)){const[,t]=e.split(/\/\/[^\/]+/);return t}return e}(Yb(Xb(r))),this._locationStrategy.onPopState(i=>{this._subject.emit({url:this.path(!0),pop:!0,state:i.state,type:i.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(t=!1){return this.normalize(this._locationStrategy.path(t))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(t,r=""){return this.path()==this.normalize(t+ri(r))}normalize(t){return e.stripTrailingSlash(function Kx(e,n){if(!e||!n.startsWith(e))return n;const t=n.substring(e.length);return""===t||["/",";","?","#"].includes(t[0])?t:n}(this._basePath,Xb(t)))}prepareExternalUrl(t){return t&&"/"!==t[0]&&(t="/"+t),this._locationStrategy.prepareExternalUrl(t)}go(t,r="",i=null){this._locationStrategy.pushState(i,"",t,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+ri(r)),i)}replaceState(t,r="",i=null){this._locationStrategy.replaceState(i,"",t,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+ri(r)),i)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(t=0){this._locationStrategy.historyGo?.(t)}onUrlChange(t){return this._urlChangeListeners.push(t),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(r=>{this._notifyUrlChangeListeners(r.url,r.state)})),()=>{const r=this._urlChangeListeners.indexOf(t);this._urlChangeListeners.splice(r,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(t="",r){this._urlChangeListeners.forEach(i=>i(t,r))}subscribe(t,r,i){return this._subject.subscribe({next:t,error:r,complete:i})}}return e.normalizeQueryParams=ri,e.joinWithSlash=wh,e.stripTrailingSlash=Yb,e.\u0275fac=function(t){return new(t||e)(te(ro))},e.\u0275prov=ee({token:e,factory:function(){return function Yx(){return new Dh(te(ro))}()},providedIn:"root"}),e})();function Xb(e){return e.replace(/\/index.html$/,"")}var At=(()=>((At=At||{})[At.Format=0]="Format",At[At.Standalone=1]="Standalone",At))(),Pe=(()=>((Pe=Pe||{})[Pe.Narrow=0]="Narrow",Pe[Pe.Abbreviated=1]="Abbreviated",Pe[Pe.Wide=2]="Wide",Pe[Pe.Short=3]="Short",Pe))(),yt=(()=>((yt=yt||{})[yt.Short=0]="Short",yt[yt.Medium=1]="Medium",yt[yt.Long=2]="Long",yt[yt.Full=3]="Full",yt))(),_e=(()=>((_e=_e||{})[_e.Decimal=0]="Decimal",_e[_e.Group=1]="Group",_e[_e.List=2]="List",_e[_e.PercentSign=3]="PercentSign",_e[_e.PlusSign=4]="PlusSign",_e[_e.MinusSign=5]="MinusSign",_e[_e.Exponential=6]="Exponential",_e[_e.SuperscriptingExponent=7]="SuperscriptingExponent",_e[_e.PerMille=8]="PerMille",_e[_e.Infinity=9]="Infinity",_e[_e.NaN=10]="NaN",_e[_e.TimeSeparator=11]="TimeSeparator",_e[_e.CurrencyDecimal=12]="CurrencyDecimal",_e[_e.CurrencyGroup=13]="CurrencyGroup",_e))();function Lc(e,n){return er(gn(e)[ie.DateFormat],n)}function Vc(e,n){return er(gn(e)[ie.TimeFormat],n)}function Bc(e,n){return er(gn(e)[ie.DateTimeFormat],n)}function Jn(e,n){const t=gn(e),r=t[ie.NumberSymbols][n];if(typeof r>"u"){if(n===_e.CurrencyDecimal)return t[ie.NumberSymbols][_e.Decimal];if(n===_e.CurrencyGroup)return t[ie.NumberSymbols][_e.Group]}return r}function Jb(e){if(!e[ie.ExtraData])throw new Error(`Missing extra locale data for the locale "${e[ie.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function er(e,n){for(let t=n;t>-1;t--)if(typeof e[t]<"u")return e[t];throw new Error("Locale data API: locale data undefined")}function Sh(e){const[n,t]=e.split(":");return{hours:+n,minutes:+t}}const ck=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,ka={},uk=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/;var Ht=(()=>((Ht=Ht||{})[Ht.Short=0]="Short",Ht[Ht.ShortGMT=1]="ShortGMT",Ht[Ht.Long=2]="Long",Ht[Ht.Extended=3]="Extended",Ht))(),be=(()=>((be=be||{})[be.FullYear=0]="FullYear",be[be.Month=1]="Month",be[be.Date=2]="Date",be[be.Hours=3]="Hours",be[be.Minutes=4]="Minutes",be[be.Seconds=5]="Seconds",be[be.FractionalSeconds=6]="FractionalSeconds",be[be.Day=7]="Day",be))(),ke=(()=>((ke=ke||{})[ke.DayPeriods=0]="DayPeriods",ke[ke.Days=1]="Days",ke[ke.Months=2]="Months",ke[ke.Eras=3]="Eras",ke))();function dk(e,n,t,r){let i=function bk(e){if(n1(e))return e;if("number"==typeof e&&!isNaN(e))return new Date(e);if("string"==typeof e){if(e=e.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(e)){const[i,o=1,s=1]=e.split("-").map(a=>+a);return jc(i,o-1,s)}const t=parseFloat(e);if(!isNaN(e-t))return new Date(t);let r;if(r=e.match(ck))return function Ck(e){const n=new Date(0);let t=0,r=0;const i=e[8]?n.setUTCFullYear:n.setFullYear,o=e[8]?n.setUTCHours:n.setHours;e[9]&&(t=Number(e[9]+e[10]),r=Number(e[9]+e[11])),i.call(n,Number(e[1]),Number(e[2])-1,Number(e[3]));const s=Number(e[4]||0)-t,a=Number(e[5]||0)-r,l=Number(e[6]||0),c=Math.floor(1e3*parseFloat("0."+(e[7]||0)));return o.call(n,s,a,l,c),n}(r)}const n=new Date(e);if(!n1(n))throw new Error(`Unable to convert "${e}" into a date`);return n}(e);n=ii(t,n)||n;let a,s=[];for(;n;){if(a=uk.exec(n),!a){s.push(n);break}{s=s.concat(a.slice(1));const u=s.pop();if(!u)break;n=u}}let l=i.getTimezoneOffset();r&&(l=t1(r,l),i=function yk(e,n,t){const r=t?-1:1,i=e.getTimezoneOffset();return function vk(e,n){return(e=new Date(e.getTime())).setMinutes(e.getMinutes()+n),e}(e,r*(t1(n,i)-i))}(i,r,!0));let c="";return s.forEach(u=>{const p=function _k(e){if(Ih[e])return Ih[e];let n;switch(e){case"G":case"GG":case"GGG":n=st(ke.Eras,Pe.Abbreviated);break;case"GGGG":n=st(ke.Eras,Pe.Wide);break;case"GGGGG":n=st(ke.Eras,Pe.Narrow);break;case"y":n=Lt(be.FullYear,1,0,!1,!0);break;case"yy":n=Lt(be.FullYear,2,0,!0,!0);break;case"yyy":n=Lt(be.FullYear,3,0,!1,!0);break;case"yyyy":n=Lt(be.FullYear,4,0,!1,!0);break;case"Y":n=Gc(1);break;case"YY":n=Gc(2,!0);break;case"YYY":n=Gc(3);break;case"YYYY":n=Gc(4);break;case"M":case"L":n=Lt(be.Month,1,1);break;case"MM":case"LL":n=Lt(be.Month,2,1);break;case"MMM":n=st(ke.Months,Pe.Abbreviated);break;case"MMMM":n=st(ke.Months,Pe.Wide);break;case"MMMMM":n=st(ke.Months,Pe.Narrow);break;case"LLL":n=st(ke.Months,Pe.Abbreviated,At.Standalone);break;case"LLLL":n=st(ke.Months,Pe.Wide,At.Standalone);break;case"LLLLL":n=st(ke.Months,Pe.Narrow,At.Standalone);break;case"w":n=Th(1);break;case"ww":n=Th(2);break;case"W":n=Th(1,!0);break;case"d":n=Lt(be.Date,1);break;case"dd":n=Lt(be.Date,2);break;case"c":case"cc":n=Lt(be.Day,1);break;case"ccc":n=st(ke.Days,Pe.Abbreviated,At.Standalone);break;case"cccc":n=st(ke.Days,Pe.Wide,At.Standalone);break;case"ccccc":n=st(ke.Days,Pe.Narrow,At.Standalone);break;case"cccccc":n=st(ke.Days,Pe.Short,At.Standalone);break;case"E":case"EE":case"EEE":n=st(ke.Days,Pe.Abbreviated);break;case"EEEE":n=st(ke.Days,Pe.Wide);break;case"EEEEE":n=st(ke.Days,Pe.Narrow);break;case"EEEEEE":n=st(ke.Days,Pe.Short);break;case"a":case"aa":case"aaa":n=st(ke.DayPeriods,Pe.Abbreviated);break;case"aaaa":n=st(ke.DayPeriods,Pe.Wide);break;case"aaaaa":n=st(ke.DayPeriods,Pe.Narrow);break;case"b":case"bb":case"bbb":n=st(ke.DayPeriods,Pe.Abbreviated,At.Standalone,!0);break;case"bbbb":n=st(ke.DayPeriods,Pe.Wide,At.Standalone,!0);break;case"bbbbb":n=st(ke.DayPeriods,Pe.Narrow,At.Standalone,!0);break;case"B":case"BB":case"BBB":n=st(ke.DayPeriods,Pe.Abbreviated,At.Format,!0);break;case"BBBB":n=st(ke.DayPeriods,Pe.Wide,At.Format,!0);break;case"BBBBB":n=st(ke.DayPeriods,Pe.Narrow,At.Format,!0);break;case"h":n=Lt(be.Hours,1,-12);break;case"hh":n=Lt(be.Hours,2,-12);break;case"H":n=Lt(be.Hours,1);break;case"HH":n=Lt(be.Hours,2);break;case"m":n=Lt(be.Minutes,1);break;case"mm":n=Lt(be.Minutes,2);break;case"s":n=Lt(be.Seconds,1);break;case"ss":n=Lt(be.Seconds,2);break;case"S":n=Lt(be.FractionalSeconds,1);break;case"SS":n=Lt(be.FractionalSeconds,2);break;case"SSS":n=Lt(be.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":n=$c(Ht.Short);break;case"ZZZZZ":n=$c(Ht.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":n=$c(Ht.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":n=$c(Ht.Long);break;default:return null}return Ih[e]=n,n}(u);c+=p?p(i,t,l):"''"===u?"'":u.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),c}function jc(e,n,t){const r=new Date(0);return r.setFullYear(e,n,t),r.setHours(0,0,0),r}function ii(e,n){const t=function Xx(e){return gn(e)[ie.LocaleId]}(e);if(ka[t]=ka[t]||{},ka[t][n])return ka[t][n];let r="";switch(n){case"shortDate":r=Lc(e,yt.Short);break;case"mediumDate":r=Lc(e,yt.Medium);break;case"longDate":r=Lc(e,yt.Long);break;case"fullDate":r=Lc(e,yt.Full);break;case"shortTime":r=Vc(e,yt.Short);break;case"mediumTime":r=Vc(e,yt.Medium);break;case"longTime":r=Vc(e,yt.Long);break;case"fullTime":r=Vc(e,yt.Full);break;case"short":const i=ii(e,"shortTime"),o=ii(e,"shortDate");r=Uc(Bc(e,yt.Short),[i,o]);break;case"medium":const s=ii(e,"mediumTime"),a=ii(e,"mediumDate");r=Uc(Bc(e,yt.Medium),[s,a]);break;case"long":const l=ii(e,"longTime"),c=ii(e,"longDate");r=Uc(Bc(e,yt.Long),[l,c]);break;case"full":const u=ii(e,"fullTime"),p=ii(e,"fullDate");r=Uc(Bc(e,yt.Full),[u,p])}return r&&(ka[t][n]=r),r}function Uc(e,n){return n&&(e=e.replace(/\{([^}]+)}/g,function(t,r){return null!=n&&r in n?n[r]:t})),e}function gr(e,n,t="-",r,i){let o="";(e<0||i&&e<=0)&&(i?e=1-e:(e=-e,o=t));let s=String(e);for(;s.length0||a>-t)&&(a+=t),e===be.Hours)0===a&&-12===t&&(a=12);else if(e===be.FractionalSeconds)return function fk(e,n){return gr(e,3).substring(0,n)}(a,n);const l=Jn(s,_e.MinusSign);return gr(a,n,l,r,i)}}function st(e,n,t=At.Format,r=!1){return function(i,o){return function pk(e,n,t,r,i,o){switch(t){case ke.Months:return function ek(e,n,t){const r=gn(e),o=er([r[ie.MonthsFormat],r[ie.MonthsStandalone]],n);return er(o,t)}(n,i,r)[e.getMonth()];case ke.Days:return function Jx(e,n,t){const r=gn(e),o=er([r[ie.DaysFormat],r[ie.DaysStandalone]],n);return er(o,t)}(n,i,r)[e.getDay()];case ke.DayPeriods:const s=e.getHours(),a=e.getMinutes();if(o){const c=function ik(e){const n=gn(e);return Jb(n),(n[ie.ExtraData][2]||[]).map(r=>"string"==typeof r?Sh(r):[Sh(r[0]),Sh(r[1])])}(n),u=function ok(e,n,t){const r=gn(e);Jb(r);const o=er([r[ie.ExtraData][0],r[ie.ExtraData][1]],n)||[];return er(o,t)||[]}(n,i,r),p=c.findIndex(m=>{if(Array.isArray(m)){const[_,E]=m,N=s>=_.hours&&a>=_.minutes,B=s0?Math.floor(i/60):Math.ceil(i/60);switch(e){case Ht.Short:return(i>=0?"+":"")+gr(s,2,o)+gr(Math.abs(i%60),2,o);case Ht.ShortGMT:return"GMT"+(i>=0?"+":"")+gr(s,1,o);case Ht.Long:return"GMT"+(i>=0?"+":"")+gr(s,2,o)+":"+gr(Math.abs(i%60),2,o);case Ht.Extended:return 0===r?"Z":(i>=0?"+":"")+gr(s,2,o)+":"+gr(Math.abs(i%60),2,o);default:throw new Error(`Unknown zone width "${e}"`)}}}const gk=0,Hc=4;function e1(e){return jc(e.getFullYear(),e.getMonth(),e.getDate()+(Hc-e.getDay()))}function Th(e,n=!1){return function(t,r){let i;if(n){const o=new Date(t.getFullYear(),t.getMonth(),1).getDay()-1,s=t.getDate();i=1+Math.floor((s+o)/7)}else{const o=e1(t),s=function mk(e){const n=jc(e,gk,1).getDay();return jc(e,0,1+(n<=Hc?Hc:Hc+7)-n)}(o.getFullYear()),a=o.getTime()-s.getTime();i=1+Math.round(a/6048e5)}return gr(i,e,Jn(r,_e.MinusSign))}}function Gc(e,n=!1){return function(t,r){return gr(e1(t).getFullYear(),e,Jn(r,_e.MinusSign),n)}}const Ih={};function t1(e,n){e=e.replace(/:/g,"");const t=Date.parse("Jan 01, 1970 00:00:00 "+e)/6e4;return isNaN(t)?n:t}function n1(e){return e instanceof Date&&!isNaN(e.valueOf())}function s1(e,n){n=encodeURIComponent(n);for(const t of e.split(";")){const r=t.indexOf("="),[i,o]=-1==r?[t,""]:[t.slice(0,r),t.slice(r+1)];if(i.trim()===n)return decodeURIComponent(o)}return null}const Rh=/\s+/,a1=[];let l1=(()=>{class e{constructor(t,r,i,o){this._iterableDiffers=t,this._keyValueDiffers=r,this._ngEl=i,this._renderer=o,this.initialClasses=a1,this.stateMap=new Map}set klass(t){this.initialClasses=null!=t?t.trim().split(Rh):a1}set ngClass(t){this.rawClass="string"==typeof t?t.trim().split(Rh):t}ngDoCheck(){for(const r of this.initialClasses)this._updateState(r,!0);const t=this.rawClass;if(Array.isArray(t)||t instanceof Set)for(const r of t)this._updateState(r,!0);else if(null!=t)for(const r of Object.keys(t))this._updateState(r,Boolean(t[r]));this._applyStateDiff()}_updateState(t,r){const i=this.stateMap.get(t);void 0!==i?(i.enabled!==r&&(i.changed=!0,i.enabled=r),i.touched=!0):this.stateMap.set(t,{enabled:r,changed:!0,touched:!0})}_applyStateDiff(){for(const t of this.stateMap){const r=t[0],i=t[1];i.changed?(this._toggleClass(r,i.enabled),i.changed=!1):i.touched||(i.enabled&&this._toggleClass(r,!1),this.stateMap.delete(r)),i.touched=!1}}_toggleClass(t,r){(t=t.trim()).length>0&&t.split(Rh).forEach(i=>{r?this._renderer.addClass(this._ngEl.nativeElement,i):this._renderer.removeClass(this._ngEl.nativeElement,i)})}}return e.\u0275fac=function(t){return new(t||e)(O(Pc),O(xa),O(Tn),O(Qr))},e.\u0275dir=Ce({type:e,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"},standalone:!0}),e})();class Ok{constructor(n,t,r,i){this.$implicit=n,this.ngForOf=t,this.index=r,this.count=i}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 Mn=(()=>{class e{set ngForOf(t){this._ngForOf=t,this._ngForOfDirty=!0}set ngForTrackBy(t){this._trackByFn=t}get ngForTrackBy(){return this._trackByFn}constructor(t,r,i){this._viewContainer=t,this._template=r,this._differs=i,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(t){t&&(this._template=t)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const t=this._ngForOf;!this._differ&&t&&(this._differ=this._differs.find(t).create(this.ngForTrackBy))}if(this._differ){const t=this._differ.diff(this._ngForOf);t&&this._applyChanges(t)}}_applyChanges(t){const r=this._viewContainer;t.forEachOperation((i,o,s)=>{if(null==i.previousIndex)r.createEmbeddedView(this._template,new Ok(i.item,this._ngForOf,-1,-1),null===s?void 0:s);else if(null==s)r.remove(null===o?void 0:o);else if(null!==o){const a=r.get(o);r.move(a,s),d1(a,i)}});for(let i=0,o=r.length;i{d1(r.get(i.currentIndex),i)})}static ngTemplateContextGuard(t,r){return!0}}return e.\u0275fac=function(t){return new(t||e)(O(hr),O(Jr),O(Pc))},e.\u0275dir=Ce({type:e,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0}),e})();function d1(e,n){e.context.$implicit=n.item}let $e=(()=>{class e{constructor(t,r){this._viewContainer=t,this._context=new Pk,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=r}set ngIf(t){this._context.$implicit=this._context.ngIf=t,this._updateView()}set ngIfThen(t){f1("ngIfThen",t),this._thenTemplateRef=t,this._thenViewRef=null,this._updateView()}set ngIfElse(t){f1("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,r){return!0}}return e.\u0275fac=function(t){return new(t||e)(O(hr),O(Jr))},e.\u0275dir=Ce({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0}),e})();class Pk{constructor(){this.$implicit=null,this.ngIf=null}}function f1(e,n){if(n&&!n.createEmbeddedView)throw new Error(`${e} must be a TemplateRef, but received '${ne(n)}'.`)}function mr(e,n){return new q(2100,!1)}class Bk{createSubscription(n,t){return n.subscribe({next:t,error:r=>{throw r}})}dispose(n){n.unsubscribe()}}class jk{createSubscription(n,t){return n.then(t,r=>{throw r})}dispose(n){}}const Uk=new jk,$k=new Bk;let p1=(()=>{class e{constructor(t){this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null,this._ref=t}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}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,r=>this._updateLatestValue(t,r))}_selectStrategy(t){if(ma(t))return Uk;if(uv(t))return $k;throw mr()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(t,r){t===this._obj&&(this._latestValue=r,this._ref.markForCheck())}}return e.\u0275fac=function(t){return new(t||e)(O(Aa,16))},e.\u0275pipe=dn({name:"async",type:e,pure:!1,standalone:!0}),e})();const Yk=new ce("DATE_PIPE_DEFAULT_TIMEZONE"),Kk=new ce("DATE_PIPE_DEFAULT_OPTIONS");let Ph=(()=>{class e{constructor(t,r,i){this.locale=t,this.defaultTimezone=r,this.defaultOptions=i}transform(t,r,i,o){if(null==t||""===t||t!=t)return null;try{return dk(t,r??this.defaultOptions?.dateFormat??"mediumDate",o||this.locale,i??this.defaultOptions?.timezone??this.defaultTimezone??void 0)}catch(s){throw mr()}}}return e.\u0275fac=function(t){return new(t||e)(O(ei,16),O(Yk,24),O(Kk,24))},e.\u0275pipe=dn({name:"date",type:e,pure:!0,standalone:!0}),e})(),o2=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Kn({type:e}),e.\u0275inj=Rn({}),e})();let c2=(()=>{class e{}return e.\u0275prov=ee({token:e,providedIn:"root",factory:()=>new u2(te(_n),window)}),e})();class u2{constructor(n,t){this.document=n,this.window=t,this.offset=()=>[0,0]}setOffset(n){this.offset=Array.isArray(n)?()=>n:n}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(n){this.supportsScrolling()&&this.window.scrollTo(n[0],n[1])}scrollToAnchor(n){if(!this.supportsScrolling())return;const t=function d2(e,n){const t=e.getElementById(n)||e.getElementsByName(n)[0];if(t)return t;if("function"==typeof e.createTreeWalker&&e.body&&(e.body.createShadowRoot||e.body.attachShadow)){const r=e.createTreeWalker(e.body,NodeFilter.SHOW_ELEMENT);let i=r.currentNode;for(;i;){const o=i.shadowRoot;if(o){const s=o.getElementById(n)||o.querySelector(`[name="${n}"]`);if(s)return s}i=r.nextNode()}}return null}(this.document,n);t&&(this.scrollToElement(t),t.focus())}setHistoryScrollRestoration(n){if(this.supportScrollRestoration()){const t=this.window.history;t&&t.scrollRestoration&&(t.scrollRestoration=n)}}scrollToElement(n){const t=n.getBoundingClientRect(),r=t.left+this.window.pageXOffset,i=t.top+this.window.pageYOffset,o=this.offset();this.window.scrollTo(r-o[0],i-o[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const n=_1(this.window.history)||_1(Object.getPrototypeOf(this.window.history));return!(!n||!n.writable&&!n.set)}catch{return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch{return!1}}}function _1(e){return Object.getOwnPropertyDescriptor(e,"scrollRestoration")}class v1{}class V2 extends Hx{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class Uh extends V2{static makeCurrent(){!function $x(e){bh||(bh=e)}(new Uh)}onAndCancel(n,t,r){return n.addEventListener(t,r,!1),()=>{n.removeEventListener(t,r,!1)}}dispatchEvent(n,t){n.dispatchEvent(t)}remove(n){n.parentNode&&n.parentNode.removeChild(n)}createElement(n,t){return(t=t||this.getDefaultDocument()).createElement(n)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(n){return n.nodeType===Node.ELEMENT_NODE}isShadowRoot(n){return n instanceof DocumentFragment}getGlobalEventTarget(n,t){return"window"===t?window:"document"===t?n:"body"===t?n.body:null}getBaseHref(n){const t=function B2(){return Oa=Oa||document.querySelector("base"),Oa?Oa.getAttribute("href"):null}();return null==t?null:function j2(e){Yc=Yc||document.createElement("a"),Yc.setAttribute("href",e);const n=Yc.pathname;return"/"===n.charAt(0)?n:`/${n}`}(t)}resetBaseElement(){Oa=null}getUserAgent(){return window.navigator.userAgent}getCookie(n){return s1(document.cookie,n)}}let Yc,Oa=null;const D1=new ce("TRANSITION_ID"),$2=[{provide:Ac,useFactory:function U2(e,n,t){return()=>{t.get(xc).donePromise.then(()=>{const r=ni(),i=n.querySelectorAll(`style[ng-transition="${e}"]`);for(let o=0;o{class e{build(){return new XMLHttpRequest}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=ee({token:e,factory:e.\u0275fac}),e})();const Kc=new ce("EventManagerPlugins");let Qc=(()=>{class e{constructor(t,r){this._zone=r,this._eventNameToPlugin=new Map,t.forEach(i=>{i.manager=this}),this._plugins=t.slice().reverse()}addEventListener(t,r,i){return this._findPluginFor(r).addEventListener(t,r,i)}addGlobalEventListener(t,r,i){return this._findPluginFor(r).addGlobalEventListener(t,r,i)}getZone(){return this._zone}_findPluginFor(t){const r=this._eventNameToPlugin.get(t);if(r)return r;const i=this._plugins;for(let o=0;o{class e{constructor(){this.usageCount=new Map}addStyles(t){for(const r of t)1===this.changeUsageCount(r,1)&&this.onStyleAdded(r)}removeStyles(t){for(const r of t)0===this.changeUsageCount(r,-1)&&this.onStyleRemoved(r)}onStyleRemoved(t){}onStyleAdded(t){}getAllStyles(){return this.usageCount.keys()}changeUsageCount(t,r){const i=this.usageCount;let o=i.get(t)??0;return o+=r,o>0?i.set(t,o):i.delete(t),o}ngOnDestroy(){for(const t of this.getAllStyles())this.onStyleRemoved(t);this.usageCount.clear()}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=ee({token:e,factory:e.\u0275fac}),e})(),Na=(()=>{class e extends S1{constructor(t){super(),this.doc=t,this.styleRef=new Map,this.hostNodes=new Set,this.resetHostNodes()}onStyleAdded(t){for(const r of this.hostNodes)this.addStyleToHost(r,t)}onStyleRemoved(t){const r=this.styleRef;r.get(t)?.forEach(o=>o.remove()),r.delete(t)}ngOnDestroy(){super.ngOnDestroy(),this.styleRef.clear(),this.resetHostNodes()}addHost(t){this.hostNodes.add(t);for(const r of this.getAllStyles())this.addStyleToHost(t,r)}removeHost(t){this.hostNodes.delete(t)}addStyleToHost(t,r){const i=this.doc.createElement("style");i.textContent=r,t.appendChild(i);const o=this.styleRef.get(r);o?o.push(i):this.styleRef.set(r,[i])}resetHostNodes(){const t=this.hostNodes;t.clear(),t.add(this.doc.head)}}return e.\u0275fac=function(t){return new(t||e)(te(_n))},e.\u0275prov=ee({token:e,factory:e.\u0275fac}),e})();const $h={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/",math:"http://www.w3.org/1998/MathML/"},Hh=/%COMP%/g,M1=new ce("RemoveStylesOnCompDestory",{providedIn:"root",factory:()=>!1});function A1(e,n){return n.flat(100).map(t=>t.replace(Hh,e))}function x1(e){return n=>{if("__ngUnwrap__"===n)return e;!1===e(n)&&(n.preventDefault(),n.returnValue=!1)}}let Gh=(()=>{class e{constructor(t,r,i,o){this.eventManager=t,this.sharedStylesHost=r,this.appId=i,this.removeStylesOnCompDestory=o,this.rendererByCompId=new Map,this.defaultRenderer=new zh(t)}createRenderer(t,r){if(!t||!r)return this.defaultRenderer;const i=this.getOrCreateRenderer(t,r);return i instanceof R1?i.applyToHost(t):i instanceof qh&&i.applyStyles(),i}getOrCreateRenderer(t,r){const i=this.rendererByCompId;let o=i.get(r.id);if(!o){const s=this.eventManager,a=this.sharedStylesHost,l=this.removeStylesOnCompDestory;switch(r.encapsulation){case wr.Emulated:o=new R1(s,a,r,this.appId,l);break;case wr.ShadowDom:return new X2(s,a,t,r);default:o=new qh(s,a,r,l)}o.onDestroy=()=>i.delete(r.id),i.set(r.id,o)}return o}ngOnDestroy(){this.rendererByCompId.clear()}begin(){}end(){}}return e.\u0275fac=function(t){return new(t||e)(te(Qc),te(Na),te(Ma),te(M1))},e.\u0275prov=ee({token:e,factory:e.\u0275fac}),e})();class zh{constructor(n){this.eventManager=n,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(n,t){return t?document.createElementNS($h[t]||t,n):document.createElement(n)}createComment(n){return document.createComment(n)}createText(n){return document.createTextNode(n)}appendChild(n,t){(F1(n)?n.content:n).appendChild(t)}insertBefore(n,t,r){n&&(F1(n)?n.content:n).insertBefore(t,r)}removeChild(n,t){n&&n.removeChild(t)}selectRootElement(n,t){let r="string"==typeof n?document.querySelector(n):n;if(!r)throw new Error(`The selector "${n}" did not match any elements`);return t||(r.textContent=""),r}parentNode(n){return n.parentNode}nextSibling(n){return n.nextSibling}setAttribute(n,t,r,i){if(i){t=i+":"+t;const o=$h[i];o?n.setAttributeNS(o,t,r):n.setAttribute(t,r)}else n.setAttribute(t,r)}removeAttribute(n,t,r){if(r){const i=$h[r];i?n.removeAttributeNS(i,t):n.removeAttribute(`${r}:${t}`)}else n.removeAttribute(t)}addClass(n,t){n.classList.add(t)}removeClass(n,t){n.classList.remove(t)}setStyle(n,t,r,i){i&(En.DashCase|En.Important)?n.style.setProperty(t,r,i&En.Important?"important":""):n.style[t]=r}removeStyle(n,t,r){r&En.DashCase?n.style.removeProperty(t):n.style[t]=""}setProperty(n,t,r){n[t]=r}setValue(n,t){n.nodeValue=t}listen(n,t,r){return"string"==typeof n?this.eventManager.addGlobalEventListener(n,t,x1(r)):this.eventManager.addEventListener(n,t,x1(r))}}function F1(e){return"TEMPLATE"===e.tagName&&void 0!==e.content}class X2 extends zh{constructor(n,t,r,i){super(n),this.sharedStylesHost=t,this.hostEl=r,this.shadowRoot=r.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const o=A1(i.id,i.styles);for(const s of o){const a=document.createElement("style");a.textContent=s,this.shadowRoot.appendChild(a)}}nodeOrShadowRoot(n){return n===this.hostEl?this.shadowRoot:n}appendChild(n,t){return super.appendChild(this.nodeOrShadowRoot(n),t)}insertBefore(n,t,r){return super.insertBefore(this.nodeOrShadowRoot(n),t,r)}removeChild(n,t){return super.removeChild(this.nodeOrShadowRoot(n),t)}parentNode(n){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(n)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class qh extends zh{constructor(n,t,r,i,o=r.id){super(n),this.sharedStylesHost=t,this.removeStylesOnCompDestory=i,this.rendererUsageCount=0,this.styles=A1(o,r.styles)}applyStyles(){this.sharedStylesHost.addStyles(this.styles),this.rendererUsageCount++}destroy(){this.removeStylesOnCompDestory&&(this.sharedStylesHost.removeStyles(this.styles),this.rendererUsageCount--,0===this.rendererUsageCount&&this.onDestroy?.())}}class R1 extends qh{constructor(n,t,r,i,o){const s=i+"-"+r.id;super(n,t,r,o,s),this.contentAttr=function Y2(e){return"_ngcontent-%COMP%".replace(Hh,e)}(s),this.hostAttr=function K2(e){return"_nghost-%COMP%".replace(Hh,e)}(s)}applyToHost(n){this.applyStyles(),this.setAttribute(n,this.hostAttr,"")}createElement(n,t){const r=super.createElement(n,t);return super.setAttribute(r,this.contentAttr,""),r}}let Z2=(()=>{class e extends E1{constructor(t){super(t)}supports(t){return!0}addEventListener(t,r,i){return t.addEventListener(r,i,!1),()=>this.removeEventListener(t,r,i)}removeEventListener(t,r,i){return t.removeEventListener(r,i)}}return e.\u0275fac=function(t){return new(t||e)(te(_n))},e.\u0275prov=ee({token:e,factory:e.\u0275fac}),e})();const O1=["alt","control","meta","shift"],J2={"\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"},eF={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey};let tF=(()=>{class e extends E1{constructor(t){super(t)}supports(t){return null!=e.parseEventName(t)}addEventListener(t,r,i){const o=e.parseEventName(r),s=e.eventCallback(o.fullKey,i,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>ni().onAndCancel(t,o.domEventName,s))}static parseEventName(t){const r=t.toLowerCase().split("."),i=r.shift();if(0===r.length||"keydown"!==i&&"keyup"!==i)return null;const o=e._normalizeKey(r.pop());let s="",a=r.indexOf("code");if(a>-1&&(r.splice(a,1),s="code."),O1.forEach(c=>{const u=r.indexOf(c);u>-1&&(r.splice(u,1),s+=c+".")}),s+=o,0!=r.length||0===o.length)return null;const l={};return l.domEventName=i,l.fullKey=s,l}static matchEventFullKeyCode(t,r){let i=J2[t.key]||t.key,o="";return r.indexOf("code.")>-1&&(i=t.code,o="code."),!(null==i||!i)&&(i=i.toLowerCase()," "===i?i="space":"."===i&&(i="dot"),O1.forEach(s=>{s!==i&&(0,eF[s])(t)&&(o+=s+".")}),o+=i,o===r)}static eventCallback(t,r,i){return o=>{e.matchEventFullKeyCode(o,t)&&i.runGuarded(()=>r(o))}}static _normalizeKey(t){return"esc"===t?"escape":t}}return e.\u0275fac=function(t){return new(t||e)(te(_n))},e.\u0275prov=ee({token:e,factory:e.\u0275fac}),e})();const oF=Ab(Bx,"browser",[{provide:ah,useValue:"browser"},{provide:vb,useValue:function nF(){Uh.makeCurrent()},multi:!0},{provide:_n,useFactory:function iF(){return function qE(e){Kd=e}(document),document},deps:[]}]),L1=new ce(""),V1=[{provide:kc,useClass:class H2{addToWindow(n){ft.getAngularTestability=(r,i=!0)=>{const o=n.findTestabilityInTree(r,i);if(null==o)throw new Error("Could not find testability for element.");return o},ft.getAllAngularTestabilities=()=>n.getAllTestabilities(),ft.getAllAngularRootElements=()=>n.getAllRootElements(),ft.frameworkStabilizers||(ft.frameworkStabilizers=[]),ft.frameworkStabilizers.push(r=>{const i=ft.getAllAngularTestabilities();let o=i.length,s=!1;const a=function(l){s=s||l,o--,0==o&&r(s)};i.forEach(function(l){l.whenStable(a)})})}findTestabilityInTree(n,t,r){return null==t?null:n.getTestability(t)??(r?ni().isShadowRoot(t)?this.findTestabilityInTree(n,t.host,!0):this.findTestabilityInTree(n,t.parentElement,!0):null)}},deps:[]},{provide:Eb,useClass:dh,deps:[Mt,fh,kc]},{provide:dh,useClass:dh,deps:[Mt,fh,kc]}],B1=[{provide:sf,useValue:"root"},{provide:Uo,useFactory:function rF(){return new Uo},deps:[]},{provide:Kc,useClass:Z2,multi:!0,deps:[_n,Mt,ah]},{provide:Kc,useClass:tF,multi:!0,deps:[_n]},{provide:Gh,useClass:Gh,deps:[Qc,Na,Ma,M1]},{provide:p_,useExisting:Gh},{provide:S1,useExisting:Na},{provide:Na,useClass:Na,deps:[_n]},{provide:Qc,useClass:Qc,deps:[Kc,Mt]},{provide:v1,useClass:G2,deps:[]},[]];let sF=(()=>{class e{constructor(t){}static withServerTransition(t){return{ngModule:e,providers:[{provide:Ma,useValue:t.appId},{provide:D1,useExisting:Ma},$2]}}}return e.\u0275fac=function(t){return new(t||e)(te(L1,12))},e.\u0275mod=Kn({type:e}),e.\u0275inj=Rn({providers:[...B1,...V1],imports:[o2,jx]}),e})(),j1=(()=>{class e{constructor(t){this._doc=t}getTitle(){return this._doc.title}setTitle(t){this._doc.title=t||""}}return e.\u0275fac=function(t){return new(t||e)(te(_n))},e.\u0275prov=ee({token:e,factory:function(t){let r=null;return r=t?new t:function lF(){return new j1(te(_n))}(),r},providedIn:"root"}),e})();function de(...e){return ot(e,X(e))}function oi(e,n){return Be(n)?ae(e,n,1):ae(e,1)}function tr(e,n){return St((t,r)=>{let i=0;t.subscribe(ut(r,o=>e.call(n,o,i++)&&r.next(o)))})}typeof window<"u"&&window;class Xc{}class Kh{}class si{constructor(n){this.normalizedNames=new Map,this.lazyUpdate=null,n?this.lazyInit="string"==typeof n?()=>{this.headers=new Map,n.split("\n").forEach(t=>{const r=t.indexOf(":");if(r>0){const i=t.slice(0,r),o=i.toLowerCase(),s=t.slice(r+1).trim();this.maybeSetNormalizedName(i,o),this.headers.has(o)?this.headers.get(o).push(s):this.headers.set(o,[s])}})}:()=>{this.headers=new Map,Object.keys(n).forEach(t=>{let r=n[t];const i=t.toLowerCase();"string"==typeof r&&(r=[r]),r.length>0&&(this.headers.set(i,r),this.maybeSetNormalizedName(t,i))})}:this.headers=new Map}has(n){return this.init(),this.headers.has(n.toLowerCase())}get(n){this.init();const t=this.headers.get(n.toLowerCase());return t&&t.length>0?t[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(n){return this.init(),this.headers.get(n.toLowerCase())||null}append(n,t){return this.clone({name:n,value:t,op:"a"})}set(n,t){return this.clone({name:n,value:t,op:"s"})}delete(n,t){return this.clone({name:n,value:t,op:"d"})}maybeSetNormalizedName(n,t){this.normalizedNames.has(t)||this.normalizedNames.set(t,n)}init(){this.lazyInit&&(this.lazyInit instanceof si?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(n=>this.applyUpdate(n)),this.lazyUpdate=null))}copyFrom(n){n.init(),Array.from(n.headers.keys()).forEach(t=>{this.headers.set(t,n.headers.get(t)),this.normalizedNames.set(t,n.normalizedNames.get(t))})}clone(n){const t=new si;return t.lazyInit=this.lazyInit&&this.lazyInit instanceof si?this.lazyInit:this,t.lazyUpdate=(this.lazyUpdate||[]).concat([n]),t}applyUpdate(n){const t=n.name.toLowerCase();switch(n.op){case"a":case"s":let r=n.value;if("string"==typeof r&&(r=[r]),0===r.length)return;this.maybeSetNormalizedName(n.name,t);const i=("a"===n.op?this.headers.get(t):void 0)||[];i.push(...r),this.headers.set(t,i);break;case"d":const o=n.value;if(o){let s=this.headers.get(t);if(!s)return;s=s.filter(a=>-1===o.indexOf(a)),0===s.length?(this.headers.delete(t),this.normalizedNames.delete(t)):this.headers.set(t,s)}else this.headers.delete(t),this.normalizedNames.delete(t)}}forEach(n){this.init(),Array.from(this.normalizedNames.keys()).forEach(t=>n(this.normalizedNames.get(t),this.headers.get(t)))}}class pF{encodeKey(n){return H1(n)}encodeValue(n){return H1(n)}decodeKey(n){return decodeURIComponent(n)}decodeValue(n){return decodeURIComponent(n)}}const mF=/%(\d[a-f0-9])/gi,_F={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function H1(e){return encodeURIComponent(e).replace(mF,(n,t)=>_F[t]??n)}function Zc(e){return`${e}`}class Si{constructor(n={}){if(this.updates=null,this.cloneFrom=null,this.encoder=n.encoder||new pF,n.fromString){if(n.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function gF(e,n){const t=new Map;return e.length>0&&e.replace(/^\?/,"").split("&").forEach(i=>{const o=i.indexOf("="),[s,a]=-1==o?[n.decodeKey(i),""]:[n.decodeKey(i.slice(0,o)),n.decodeValue(i.slice(o+1))],l=t.get(s)||[];l.push(a),t.set(s,l)}),t}(n.fromString,this.encoder)}else n.fromObject?(this.map=new Map,Object.keys(n.fromObject).forEach(t=>{const r=n.fromObject[t],i=Array.isArray(r)?r.map(Zc):[Zc(r)];this.map.set(t,i)})):this.map=null}has(n){return this.init(),this.map.has(n)}get(n){this.init();const t=this.map.get(n);return t?t[0]:null}getAll(n){return this.init(),this.map.get(n)||null}keys(){return this.init(),Array.from(this.map.keys())}append(n,t){return this.clone({param:n,value:t,op:"a"})}appendAll(n){const t=[];return Object.keys(n).forEach(r=>{const i=n[r];Array.isArray(i)?i.forEach(o=>{t.push({param:r,value:o,op:"a"})}):t.push({param:r,value:i,op:"a"})}),this.clone(t)}set(n,t){return this.clone({param:n,value:t,op:"s"})}delete(n,t){return this.clone({param:n,value:t,op:"d"})}toString(){return this.init(),this.keys().map(n=>{const t=this.encoder.encodeKey(n);return this.map.get(n).map(r=>t+"="+this.encoder.encodeValue(r)).join("&")}).filter(n=>""!==n).join("&")}clone(n){const t=new Si({encoder:this.encoder});return t.cloneFrom=this.cloneFrom||this,t.updates=(this.updates||[]).concat(n),t}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(n=>this.map.set(n,this.cloneFrom.map.get(n))),this.updates.forEach(n=>{switch(n.op){case"a":case"s":const t=("a"===n.op?this.map.get(n.param):void 0)||[];t.push(Zc(n.value)),this.map.set(n.param,t);break;case"d":if(void 0===n.value){this.map.delete(n.param);break}{let r=this.map.get(n.param)||[];const i=r.indexOf(Zc(n.value));-1!==i&&r.splice(i,1),r.length>0?this.map.set(n.param,r):this.map.delete(n.param)}}}),this.cloneFrom=this.updates=null)}}class vF{constructor(){this.map=new Map}set(n,t){return this.map.set(n,t),this}get(n){return this.map.has(n)||this.map.set(n,n.defaultValue()),this.map.get(n)}delete(n){return this.map.delete(n),this}has(n){return this.map.has(n)}keys(){return this.map.keys()}}function G1(e){return typeof ArrayBuffer<"u"&&e instanceof ArrayBuffer}function z1(e){return typeof Blob<"u"&&e instanceof Blob}function q1(e){return typeof FormData<"u"&&e instanceof FormData}class Pa{constructor(n,t,r,i){let o;if(this.url=t,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=n.toUpperCase(),function yF(e){switch(e){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||i?(this.body=void 0!==r?r:null,o=i):o=r,o&&(this.reportProgress=!!o.reportProgress,this.withCredentials=!!o.withCredentials,o.responseType&&(this.responseType=o.responseType),o.headers&&(this.headers=o.headers),o.context&&(this.context=o.context),o.params&&(this.params=o.params)),this.headers||(this.headers=new si),this.context||(this.context=new vF),this.params){const s=this.params.toString();if(0===s.length)this.urlWithParams=t;else{const a=t.indexOf("?");this.urlWithParams=t+(-1===a?"?":ap.set(m,n.setHeaders[m]),l)),n.setParams&&(c=Object.keys(n.setParams).reduce((p,m)=>p.set(m,n.setParams[m]),c)),new Pa(t,r,o,{params:c,headers:l,context:u,reportProgress:a,responseType:i,withCredentials:s})}}var Vt=(()=>((Vt=Vt||{})[Vt.Sent=0]="Sent",Vt[Vt.UploadProgress=1]="UploadProgress",Vt[Vt.ResponseHeader=2]="ResponseHeader",Vt[Vt.DownloadProgress=3]="DownloadProgress",Vt[Vt.Response=4]="Response",Vt[Vt.User=5]="User",Vt))();class Qh{constructor(n,t=200,r="OK"){this.headers=n.headers||new si,this.status=void 0!==n.status?n.status:t,this.statusText=n.statusText||r,this.url=n.url||null,this.ok=this.status>=200&&this.status<300}}class Xh extends Qh{constructor(n={}){super(n),this.type=Vt.ResponseHeader}clone(n={}){return new Xh({headers:n.headers||this.headers,status:void 0!==n.status?n.status:this.status,statusText:n.statusText||this.statusText,url:n.url||this.url||void 0})}}class Jc extends Qh{constructor(n={}){super(n),this.type=Vt.Response,this.body=void 0!==n.body?n.body:null}clone(n={}){return new Jc({body:void 0!==n.body?n.body:this.body,headers:n.headers||this.headers,status:void 0!==n.status?n.status:this.status,statusText:n.statusText||this.statusText,url:n.url||this.url||void 0})}}class W1 extends Qh{constructor(n){super(n,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${n.url||"(unknown url)"}`:`Http failure response for ${n.url||"(unknown url)"}: ${n.status} ${n.statusText}`,this.error=n.error||null}}function Zh(e,n){return{body:n,headers:e.headers,context:e.context,observe:e.observe,params:e.params,reportProgress:e.reportProgress,responseType:e.responseType,withCredentials:e.withCredentials}}let Y1=(()=>{class e{constructor(t){this.handler=t}request(t,r,i={}){let o;if(t instanceof Pa)o=t;else{let l,c;l=i.headers instanceof si?i.headers:new si(i.headers),i.params&&(c=i.params instanceof Si?i.params:new Si({fromObject:i.params})),o=new Pa(t,r,void 0!==i.body?i.body:null,{headers:l,context:i.context,params:c,reportProgress:i.reportProgress,responseType:i.responseType||"json",withCredentials:i.withCredentials})}const s=de(o).pipe(oi(l=>this.handler.handle(l)));if(t instanceof Pa||"events"===i.observe)return s;const a=s.pipe(tr(l=>l instanceof Jc));switch(i.observe||"body"){case"body":switch(o.responseType){case"arraybuffer":return a.pipe(we(l=>{if(null!==l.body&&!(l.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return l.body}));case"blob":return a.pipe(we(l=>{if(null!==l.body&&!(l.body instanceof Blob))throw new Error("Response is not a Blob.");return l.body}));case"text":return a.pipe(we(l=>{if(null!==l.body&&"string"!=typeof l.body)throw new Error("Response is not a string.");return l.body}));default:return a.pipe(we(l=>l.body))}case"response":return a;default:throw new Error(`Unreachable: unhandled observe type ${i.observe}}`)}}delete(t,r={}){return this.request("DELETE",t,r)}get(t,r={}){return this.request("GET",t,r)}head(t,r={}){return this.request("HEAD",t,r)}jsonp(t,r){return this.request("JSONP",t,{params:(new Si).append(r,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(t,r={}){return this.request("OPTIONS",t,r)}patch(t,r,i={}){return this.request("PATCH",t,Zh(i,r))}post(t,r,i={}){return this.request("POST",t,Zh(i,r))}put(t,r,i={}){return this.request("PUT",t,Zh(i,r))}}return e.\u0275fac=function(t){return new(t||e)(te(Xc))},e.\u0275prov=ee({token:e,factory:e.\u0275fac}),e})();function K1(e,n){return n(e)}function CF(e,n){return(t,r)=>n.intercept(t,{handle:i=>e(i,r)})}const DF=new ce("HTTP_INTERCEPTORS"),La=new ce("HTTP_INTERCEPTOR_FNS");function EF(){let e=null;return(n,t)=>(null===e&&(e=(Fe(DF,{optional:!0})??[]).reduceRight(CF,K1)),e(n,t))}let Q1=(()=>{class e extends Xc{constructor(t,r){super(),this.backend=t,this.injector=r,this.chain=null}handle(t){if(null===this.chain){const r=Array.from(new Set(this.injector.get(La)));this.chain=r.reduceRight((i,o)=>function wF(e,n,t){return(r,i)=>t.runInContext(()=>n(r,o=>e(o,i)))}(i,o,this.injector),K1)}return this.chain(t,r=>this.backend.handle(r))}}return e.\u0275fac=function(t){return new(t||e)(te(Kh),te(Tr))},e.\u0275prov=ee({token:e,factory:e.\u0275fac}),e})();const MF=/^\)\]\}',?\n/;let Z1=(()=>{class e{constructor(t){this.xhrFactory=t}handle(t){if("JSONP"===t.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new qe(r=>{const i=this.xhrFactory.build();if(i.open(t.method,t.urlWithParams),t.withCredentials&&(i.withCredentials=!0),t.headers.forEach((_,E)=>i.setRequestHeader(_,E.join(","))),t.headers.has("Accept")||i.setRequestHeader("Accept","application/json, text/plain, */*"),!t.headers.has("Content-Type")){const _=t.detectContentTypeHeader();null!==_&&i.setRequestHeader("Content-Type",_)}if(t.responseType){const _=t.responseType.toLowerCase();i.responseType="json"!==_?_:"text"}const o=t.serializeBody();let s=null;const a=()=>{if(null!==s)return s;const _=i.statusText||"OK",E=new si(i.getAllResponseHeaders()),N=function AF(e){return"responseURL"in e&&e.responseURL?e.responseURL:/^X-Request-URL:/m.test(e.getAllResponseHeaders())?e.getResponseHeader("X-Request-URL"):null}(i)||t.url;return s=new Xh({headers:E,status:i.status,statusText:_,url:N}),s},l=()=>{let{headers:_,status:E,statusText:N,url:B}=a(),U=null;204!==E&&(U=typeof i.response>"u"?i.responseText:i.response),0===E&&(E=U?200:0);let re=E>=200&&E<300;if("json"===t.responseType&&"string"==typeof U){const j=U;U=U.replace(MF,"");try{U=""!==U?JSON.parse(U):null}catch(ve){U=j,re&&(re=!1,U={error:ve,text:U})}}re?(r.next(new Jc({body:U,headers:_,status:E,statusText:N,url:B||void 0})),r.complete()):r.error(new W1({error:U,headers:_,status:E,statusText:N,url:B||void 0}))},c=_=>{const{url:E}=a(),N=new W1({error:_,status:i.status||0,statusText:i.statusText||"Unknown Error",url:E||void 0});r.error(N)};let u=!1;const p=_=>{u||(r.next(a()),u=!0);let E={type:Vt.DownloadProgress,loaded:_.loaded};_.lengthComputable&&(E.total=_.total),"text"===t.responseType&&i.responseText&&(E.partialText=i.responseText),r.next(E)},m=_=>{let E={type:Vt.UploadProgress,loaded:_.loaded};_.lengthComputable&&(E.total=_.total),r.next(E)};return i.addEventListener("load",l),i.addEventListener("error",c),i.addEventListener("timeout",c),i.addEventListener("abort",c),t.reportProgress&&(i.addEventListener("progress",p),null!==o&&i.upload&&i.upload.addEventListener("progress",m)),i.send(o),r.next({type:Vt.Sent}),()=>{i.removeEventListener("error",c),i.removeEventListener("abort",c),i.removeEventListener("load",l),i.removeEventListener("timeout",c),t.reportProgress&&(i.removeEventListener("progress",p),null!==o&&i.upload&&i.upload.removeEventListener("progress",m)),i.readyState!==i.DONE&&i.abort()}})}}return e.\u0275fac=function(t){return new(t||e)(te(v1))},e.\u0275prov=ee({token:e,factory:e.\u0275fac}),e})();const Jh=new ce("XSRF_ENABLED"),J1=new ce("XSRF_COOKIE_NAME",{providedIn:"root",factory:()=>"XSRF-TOKEN"}),eC=new ce("XSRF_HEADER_NAME",{providedIn:"root",factory:()=>"X-XSRF-TOKEN"});class tC{}let FF=(()=>{class e{constructor(t,r,i){this.doc=t,this.platform=r,this.cookieName=i,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=s1(t,this.cookieName),this.lastCookieString=t),this.lastToken}}return e.\u0275fac=function(t){return new(t||e)(te(_n),te(ah),te(J1))},e.\u0275prov=ee({token:e,factory:e.\u0275fac}),e})();function RF(e,n){const t=e.url.toLowerCase();if(!Fe(Jh)||"GET"===e.method||"HEAD"===e.method||t.startsWith("http://")||t.startsWith("https://"))return n(e);const r=Fe(tC).getToken(),i=Fe(eC);return null!=r&&!e.headers.has(i)&&(e=e.clone({headers:e.headers.set(i,r)})),n(e)}var kt=(()=>((kt=kt||{})[kt.Interceptors=0]="Interceptors",kt[kt.LegacyInterceptors=1]="LegacyInterceptors",kt[kt.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",kt[kt.NoXsrfProtection=3]="NoXsrfProtection",kt[kt.JsonpSupport=4]="JsonpSupport",kt[kt.RequestsMadeViaParent=5]="RequestsMadeViaParent",kt))();function us(e,n){return{\u0275kind:e,\u0275providers:n}}function OF(...e){const n=[Y1,Z1,Q1,{provide:Xc,useExisting:Q1},{provide:Kh,useExisting:Z1},{provide:La,useValue:RF,multi:!0},{provide:Jh,useValue:!0},{provide:tC,useClass:FF}];for(const t of e)n.push(...t.\u0275providers);return function gS(e){return{\u0275providers:e}}(n)}const nC=new ce("LEGACY_INTERCEPTOR_FN");let PF=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Kn({type:e}),e.\u0275inj=Rn({providers:[OF(us(kt.LegacyInterceptors,[{provide:nC,useFactory:EF},{provide:La,useExisting:nC,multi:!0}]))]}),e})();class nr extends qt{constructor(n){super(),this._value=n}get value(){return this.getValue()}_subscribe(n){const t=super._subscribe(n);return!t.closed&&n.next(this._value),t}getValue(){const{hasError:n,thrownError:t,_value:r}=this;if(n)throw t;return this._throwIfClosed(),r}next(n){super.next(this._value=n)}}const Va=$n(e=>function(){e(this),this.name="EmptyError",this.message="no elements in sequence"}),{isArray:LF}=Array,{getPrototypeOf:VF,prototype:BF,keys:jF}=Object;function rC(e){if(1===e.length){const n=e[0];if(LF(n))return{args:n,keys:null};if(function UF(e){return e&&"object"==typeof e&&VF(e)===BF}(n)){const t=jF(n);return{args:t.map(r=>n[r]),keys:t}}}return{args:e,keys:null}}const{isArray:$F}=Array;function iC(e){return we(n=>function HF(e,n){return $F(n)?e(...n):e(n)}(e,n))}function oC(e,n){return e.reduce((t,r,i)=>(t[r]=n[i],t),{})}function sC(...e){const n=X(e),t=b(e),{args:r,keys:i}=rC(e);if(0===r.length)return ot([],n);const o=new qe(function GF(e,n,t=ln){return r=>{aC(n,()=>{const{length:i}=e,o=new Array(i);let s=i,a=i;for(let l=0;l{const c=ot(e[l],n);let u=!1;c.subscribe(ut(r,p=>{o[l]=p,u||(u=!0,a--),a||r.next(t(o.slice()))},()=>{--s||r.complete()}))},r)},r)}}(r,n,i?s=>oC(i,s):ln));return t?o.pipe(iC(t)):o}function aC(e,n,t){e?M(t,e,n):n()}function Ba(...e){return function zF(){return x(1)}()(ot(e,X(e)))}function eu(e){return new qe(n=>{Cn(e()).subscribe(n)})}function ja(e,n){const t=Be(e)?e:()=>e,r=i=>i.error(t());return new qe(n?i=>n.schedule(r,0,i):r)}function ep(){return St((e,n)=>{let t=null;e._refCount++;const r=ut(n,void 0,void 0,void 0,()=>{if(!e||e._refCount<=0||0<--e._refCount)return void(t=null);const i=e._connection,o=t;t=null,i&&(!o||i===o)&&i.unsubscribe(),n.unsubscribe()});e.subscribe(r),r.closed||(t=e.connect())})}class lC extends qe{constructor(n,t){super(),this.source=n,this.subjectFactory=t,this._subject=null,this._refCount=0,this._connection=null,hi(n)&&(this.lift=n.lift)}_subscribe(n){return this.getSubject().subscribe(n)}getSubject(){const n=this._subject;return(!n||n.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:n}=this;this._subject=this._connection=null,n?.unsubscribe()}connect(){let n=this._connection;if(!n){n=this._connection=new Ct;const t=this.getSubject();n.add(this.source.subscribe(ut(t,void 0,()=>{this._teardown(),t.complete()},r=>{this._teardown(),t.error(r)},()=>this._teardown()))),n.closed&&(this._connection=null,n=Ct.EMPTY)}return n}refCount(){return ep()(this)}}function rr(e,n){return St((t,r)=>{let i=null,o=0,s=!1;const a=()=>s&&!i&&r.complete();t.subscribe(ut(r,l=>{i?.unsubscribe();let c=0;const u=o++;Cn(e(l,u)).subscribe(i=ut(r,p=>r.next(n?n(l,p,u,c++):p),()=>{i=null,a()}))},()=>{s=!0,a()}))})}function _r(e){return e<=0?()=>I:St((n,t)=>{let r=0;n.subscribe(ut(t,i=>{++r<=e&&(t.next(i),e<=r&&t.complete())}))})}function tu(e){return St((n,t)=>{let r=!1;n.subscribe(ut(t,i=>{r=!0,t.next(i)},()=>{r||t.next(e),t.complete()}))})}function cC(e=WF){return St((n,t)=>{let r=!1;n.subscribe(ut(t,i=>{r=!0,t.next(i)},()=>r?t.complete():t.error(e())))})}function WF(){return new Va}function Ti(e,n){const t=arguments.length>=2;return r=>r.pipe(e?tr((i,o)=>e(i,o,r)):ln,_r(1),t?tu(n):cC(()=>new Va))}function sn(e,n,t){const r=Be(e)||n||t?{next:e,error:n,complete:t}:e;return r?St((i,o)=>{var s;null===(s=r.subscribe)||void 0===s||s.call(r);let a=!0;i.subscribe(ut(o,l=>{var c;null===(c=r.next)||void 0===c||c.call(r,l),o.next(l)},()=>{var l;a=!1,null===(l=r.complete)||void 0===l||l.call(r),o.complete()},l=>{var c;a=!1,null===(c=r.error)||void 0===c||c.call(r,l),o.error(l)},()=>{var l,c;a&&(null===(l=r.unsubscribe)||void 0===l||l.call(r)),null===(c=r.finalize)||void 0===c||c.call(r)}))}):ln}function Ii(e){return St((n,t)=>{let o,r=null,i=!1;r=n.subscribe(ut(t,void 0,void 0,s=>{o=Cn(e(s,Ii(e)(n))),r?(r.unsubscribe(),r=null,o.subscribe(t)):i=!0})),i&&(r.unsubscribe(),r=null,o.subscribe(t))})}function uC(e,n){return St(function YF(e,n,t,r,i){return(o,s)=>{let a=t,l=n,c=0;o.subscribe(ut(s,u=>{const p=c++;l=a?e(l,u,p):(a=!0,u),r&&s.next(l)},i&&(()=>{a&&s.next(l),s.complete()})))}}(e,n,arguments.length>=2,!0))}function tp(e){return e<=0?()=>I:St((n,t)=>{let r=[];n.subscribe(ut(t,i=>{r.push(i),e{for(const i of r)t.next(i);t.complete()},void 0,()=>{r=null}))})}function dC(e,n){const t=arguments.length>=2;return r=>r.pipe(e?tr((i,o)=>e(i,o,r)):ln,tp(1),t?tu(n):cC(()=>new Va))}function np(e){return St((n,t)=>{try{n.subscribe(t)}finally{t.add(e)}})}const Te="primary",Ua=Symbol("RouteTitle");class XF{constructor(n){this.params=n||{}}has(n){return Object.prototype.hasOwnProperty.call(this.params,n)}get(n){if(this.has(n)){const t=this.params[n];return Array.isArray(t)?t[0]:t}return null}getAll(n){if(this.has(n)){const t=this.params[n];return Array.isArray(t)?t:[t]}return[]}get keys(){return Object.keys(this.params)}}function ds(e){return new XF(e)}function ZF(e,n,t){const r=t.path.split("/");if(r.length>e.length||"full"===t.pathMatch&&(n.hasChildren()||r.lengthr[o]===i)}return e===n}function hC(e){return Array.prototype.concat.apply([],e)}function pC(e){return e.length>0?e[e.length-1]:null}function Xt(e,n){for(const t in e)e.hasOwnProperty(t)&&n(e[t],t)}function Mi(e){return Rf(e)?e:ma(e)?ot(Promise.resolve(e)):de(e)}const nu=!1,eR={exact:function _C(e,n,t){if(!io(e.segments,n.segments)||!ru(e.segments,n.segments,t)||e.numberOfChildren!==n.numberOfChildren)return!1;for(const r in n.children)if(!e.children[r]||!_C(e.children[r],n.children[r],t))return!1;return!0},subset:vC},gC={exact:function tR(e,n){return Rr(e,n)},subset:function nR(e,n){return Object.keys(n).length<=Object.keys(e).length&&Object.keys(n).every(t=>fC(e[t],n[t]))},ignored:()=>!0};function mC(e,n,t){return eR[t.paths](e.root,n.root,t.matrixParams)&&gC[t.queryParams](e.queryParams,n.queryParams)&&!("exact"===t.fragment&&e.fragment!==n.fragment)}function vC(e,n,t){return yC(e,n,n.segments,t)}function yC(e,n,t,r){if(e.segments.length>t.length){const i=e.segments.slice(0,t.length);return!(!io(i,t)||n.hasChildren()||!ru(i,t,r))}if(e.segments.length===t.length){if(!io(e.segments,t)||!ru(e.segments,t,r))return!1;for(const i in n.children)if(!e.children[i]||!vC(e.children[i],n.children[i],r))return!1;return!0}{const i=t.slice(0,e.segments.length),o=t.slice(e.segments.length);return!!(io(e.segments,i)&&ru(e.segments,i,r)&&e.children[Te])&&yC(e.children[Te],n,o,r)}}function ru(e,n,t){return n.every((r,i)=>gC[t](e[i].parameters,r.parameters))}class Ai{constructor(n=new Oe([],{}),t={},r=null){this.root=n,this.queryParams=t,this.fragment=r}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=ds(this.queryParams)),this._queryParamMap}toString(){return oR.serialize(this)}}class Oe{constructor(n,t){this.segments=n,this.children=t,this.parent=null,Xt(t,(r,i)=>r.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return iu(this)}}class $a{constructor(n,t){this.path=n,this.parameters=t}get parameterMap(){return this._parameterMap||(this._parameterMap=ds(this.parameters)),this._parameterMap}toString(){return wC(this)}}function io(e,n){return e.length===n.length&&e.every((t,r)=>t.path===n[r].path)}let Ha=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=ee({token:e,factory:function(){return new rp},providedIn:"root"}),e})();class rp{parse(n){const t=new pR(n);return new Ai(t.parseRootSegment(),t.parseQueryParams(),t.parseFragment())}serialize(n){const t=`/${Ga(n.root,!0)}`,r=function lR(e){const n=Object.keys(e).map(t=>{const r=e[t];return Array.isArray(r)?r.map(i=>`${ou(t)}=${ou(i)}`).join("&"):`${ou(t)}=${ou(r)}`}).filter(t=>!!t);return n.length?`?${n.join("&")}`:""}(n.queryParams);return`${t}${r}${"string"==typeof n.fragment?`#${function sR(e){return encodeURI(e)}(n.fragment)}`:""}`}}const oR=new rp;function iu(e){return e.segments.map(n=>wC(n)).join("/")}function Ga(e,n){if(!e.hasChildren())return iu(e);if(n){const t=e.children[Te]?Ga(e.children[Te],!1):"",r=[];return Xt(e.children,(i,o)=>{o!==Te&&r.push(`${o}:${Ga(i,!1)}`)}),r.length>0?`${t}(${r.join("//")})`:t}{const t=function iR(e,n){let t=[];return Xt(e.children,(r,i)=>{i===Te&&(t=t.concat(n(r,i)))}),Xt(e.children,(r,i)=>{i!==Te&&(t=t.concat(n(r,i)))}),t}(e,(r,i)=>i===Te?[Ga(e.children[Te],!1)]:[`${i}:${Ga(r,!1)}`]);return 1===Object.keys(e.children).length&&null!=e.children[Te]?`${iu(e)}/${t[0]}`:`${iu(e)}/(${t.join("//")})`}}function bC(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function ou(e){return bC(e).replace(/%3B/gi,";")}function ip(e){return bC(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function su(e){return decodeURIComponent(e)}function CC(e){return su(e.replace(/\+/g,"%20"))}function wC(e){return`${ip(e.path)}${function aR(e){return Object.keys(e).map(n=>`;${ip(n)}=${ip(e[n])}`).join("")}(e.parameters)}`}const cR=/^[^\/()?;=#]+/;function au(e){const n=e.match(cR);return n?n[0]:""}const uR=/^[^=?&#]+/,fR=/^[^&#]+/;class pR{constructor(n){this.url=n,this.remaining=n}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Oe([],{}):new Oe([],this.parseChildren())}parseQueryParams(){const n={};if(this.consumeOptional("?"))do{this.parseQueryParam(n)}while(this.consumeOptional("&"));return n}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const n=[];for(this.peekStartsWith("(")||n.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),n.push(this.parseSegment());let t={};this.peekStartsWith("/(")&&(this.capture("/"),t=this.parseParens(!0));let r={};return this.peekStartsWith("(")&&(r=this.parseParens(!1)),(n.length>0||Object.keys(t).length>0)&&(r[Te]=new Oe(n,t)),r}parseSegment(){const n=au(this.remaining);if(""===n&&this.peekStartsWith(";"))throw new q(4009,nu);return this.capture(n),new $a(su(n),this.parseMatrixParams())}parseMatrixParams(){const n={};for(;this.consumeOptional(";");)this.parseParam(n);return n}parseParam(n){const t=au(this.remaining);if(!t)return;this.capture(t);let r="";if(this.consumeOptional("=")){const i=au(this.remaining);i&&(r=i,this.capture(r))}n[su(t)]=su(r)}parseQueryParam(n){const t=function dR(e){const n=e.match(uR);return n?n[0]:""}(this.remaining);if(!t)return;this.capture(t);let r="";if(this.consumeOptional("=")){const s=function hR(e){const n=e.match(fR);return n?n[0]:""}(this.remaining);s&&(r=s,this.capture(r))}const i=CC(t),o=CC(r);if(n.hasOwnProperty(i)){let s=n[i];Array.isArray(s)||(s=[s],n[i]=s),s.push(o)}else n[i]=o}parseParens(n){const t={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const r=au(this.remaining),i=this.remaining[r.length];if("/"!==i&&")"!==i&&";"!==i)throw new q(4010,nu);let o;r.indexOf(":")>-1?(o=r.slice(0,r.indexOf(":")),this.capture(o),this.capture(":")):n&&(o=Te);const s=this.parseChildren();t[o]=1===Object.keys(s).length?s[Te]:new Oe([],s),this.consumeOptional("//")}return t}peekStartsWith(n){return this.remaining.startsWith(n)}consumeOptional(n){return!!this.peekStartsWith(n)&&(this.remaining=this.remaining.substring(n.length),!0)}capture(n){if(!this.consumeOptional(n))throw new q(4011,nu)}}function op(e){return e.segments.length>0?new Oe([],{[Te]:e}):e}function lu(e){const n={};for(const r of Object.keys(e.children)){const o=lu(e.children[r]);(o.segments.length>0||o.hasChildren())&&(n[r]=o)}return function gR(e){if(1===e.numberOfChildren&&e.children[Te]){const n=e.children[Te];return new Oe(e.segments.concat(n.segments),n.children)}return e}(new Oe(e.segments,n))}function oo(e){return e instanceof Ai}const sp=!1;function mR(e,n,t,r,i){if(0===t.length)return fs(n.root,n.root,n.root,r,i);const o=function IC(e){if("string"==typeof e[0]&&1===e.length&&"/"===e[0])return new TC(!0,0,e);let n=0,t=!1;const r=e.reduce((i,o,s)=>{if("object"==typeof o&&null!=o){if(o.outlets){const a={};return Xt(o.outlets,(l,c)=>{a[c]="string"==typeof l?l.split("/"):l}),[...i,{outlets:a}]}if(o.segmentPath)return[...i,o.segmentPath]}return"string"!=typeof o?[...i,o]:0===s?(o.split("/").forEach((a,l)=>{0==l&&"."===a||(0==l&&""===a?t=!0:".."===a?n++:""!=a&&i.push(a))}),i):[...i,o]},[]);return new TC(t,n,r)}(t);return o.toRoot()?fs(n.root,n.root,new Oe([],{}),r,i):function s(l){const c=function vR(e,n,t,r){if(e.isAbsolute)return new hs(n.root,!0,0);if(-1===r)return new hs(t,t===n.root,0);return function MC(e,n,t){let r=e,i=n,o=t;for(;o>i;){if(o-=i,r=r.parent,!r)throw new q(4005,sp&&"Invalid number of '../'");i=r.segments.length}return new hs(r,!1,i-o)}(t,r+(za(e.commands[0])?0:1),e.numberOfDoubleDots)}(o,n,e.snapshot?._urlSegment,l),u=c.processChildren?ps(c.segmentGroup,c.index,o.commands):ap(c.segmentGroup,c.index,o.commands);return fs(n.root,c.segmentGroup,u,r,i)}(e.snapshot?._lastPathIndex)}function za(e){return"object"==typeof e&&null!=e&&!e.outlets&&!e.segmentPath}function qa(e){return"object"==typeof e&&null!=e&&e.outlets}function fs(e,n,t,r,i){let s,o={};r&&Xt(r,(l,c)=>{o[c]=Array.isArray(l)?l.map(u=>`${u}`):`${l}`}),s=e===n?t:SC(e,n,t);const a=op(lu(s));return new Ai(a,o,i)}function SC(e,n,t){const r={};return Xt(e.children,(i,o)=>{r[o]=i===n?t:SC(i,n,t)}),new Oe(e.segments,r)}class TC{constructor(n,t,r){if(this.isAbsolute=n,this.numberOfDoubleDots=t,this.commands=r,n&&r.length>0&&za(r[0]))throw new q(4003,sp&&"Root segment cannot have matrix parameters");const i=r.find(qa);if(i&&i!==pC(r))throw new q(4004,sp&&"{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class hs{constructor(n,t,r){this.segmentGroup=n,this.processChildren=t,this.index=r}}function ap(e,n,t){if(e||(e=new Oe([],{})),0===e.segments.length&&e.hasChildren())return ps(e,n,t);const r=function bR(e,n,t){let r=0,i=n;const o={match:!1,pathIndex:0,commandIndex:0};for(;i=t.length)return o;const s=e.segments[i],a=t[r];if(qa(a))break;const l=`${a}`,c=r0&&void 0===l)break;if(l&&c&&"object"==typeof c&&void 0===c.outlets){if(!xC(l,c,s))return o;r+=2}else{if(!xC(l,{},s))return o;r++}i++}return{match:!0,pathIndex:i,commandIndex:r}}(e,n,t),i=t.slice(r.commandIndex);if(r.match&&r.pathIndex{"string"==typeof o&&(o=[o]),null!==o&&(i[s]=ap(e.children[s],n,o))}),Xt(e.children,(o,s)=>{void 0===r[s]&&(i[s]=o)}),new Oe(e.segments,i))}}function lp(e,n,t){const r=e.segments.slice(0,n);let i=0;for(;i{"string"==typeof t&&(t=[t]),null!==t&&(n[r]=lp(new Oe([],{}),0,t))}),n}function AC(e){const n={};return Xt(e,(t,r)=>n[r]=`${t}`),n}function xC(e,n,t){return e==t.path&&Rr(n,t.parameters)}const Wa="imperative";class Or{constructor(n,t){this.id=n,this.url=t}}class cp extends Or{constructor(n,t,r="imperative",i=null){super(n,t),this.type=0,this.navigationTrigger=r,this.restoredState=i}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class so extends Or{constructor(n,t,r){super(n,t),this.urlAfterRedirects=r,this.type=1}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class cu extends Or{constructor(n,t,r,i){super(n,t),this.reason=r,this.code=i,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class uu extends Or{constructor(n,t,r,i){super(n,t),this.reason=r,this.code=i,this.type=16}}class up extends Or{constructor(n,t,r,i){super(n,t),this.error=r,this.target=i,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class wR extends Or{constructor(n,t,r,i){super(n,t),this.urlAfterRedirects=r,this.state=i,this.type=4}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class DR extends Or{constructor(n,t,r,i){super(n,t),this.urlAfterRedirects=r,this.state=i,this.type=7}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class ER extends Or{constructor(n,t,r,i,o){super(n,t),this.urlAfterRedirects=r,this.state=i,this.shouldActivate=o,this.type=8}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class SR extends Or{constructor(n,t,r,i){super(n,t),this.urlAfterRedirects=r,this.state=i,this.type=5}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class TR extends Or{constructor(n,t,r,i){super(n,t),this.urlAfterRedirects=r,this.state=i,this.type=6}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class IR{constructor(n){this.route=n,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class MR{constructor(n){this.route=n,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class AR{constructor(n){this.snapshot=n,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class xR{constructor(n){this.snapshot=n,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class kR{constructor(n){this.snapshot=n,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class FR{constructor(n){this.snapshot=n,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class kC{constructor(n,t,r){this.routerEvent=n,this.position=t,this.anchor=r,this.type=15}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}let NR=(()=>{class e{createUrlTree(t,r,i,o,s,a){return mR(t||r.root,i,o,s,a)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=ee({token:e,factory:e.\u0275fac}),e})(),LR=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=ee({token:e,factory:function(n){return NR.\u0275fac(n)},providedIn:"root"}),e})();class FC{constructor(n){this._root=n}get root(){return this._root.value}parent(n){const t=this.pathFromRoot(n);return t.length>1?t[t.length-2]:null}children(n){const t=dp(n,this._root);return t?t.children.map(r=>r.value):[]}firstChild(n){const t=dp(n,this._root);return t&&t.children.length>0?t.children[0].value:null}siblings(n){const t=fp(n,this._root);return t.length<2?[]:t[t.length-2].children.map(i=>i.value).filter(i=>i!==n)}pathFromRoot(n){return fp(n,this._root).map(t=>t.value)}}function dp(e,n){if(e===n.value)return n;for(const t of n.children){const r=dp(e,t);if(r)return r}return null}function fp(e,n){if(e===n.value)return[n];for(const t of n.children){const r=fp(e,t);if(r.length)return r.unshift(n),r}return[]}class ai{constructor(n,t){this.value=n,this.children=t}toString(){return`TreeNode(${this.value})`}}function gs(e){const n={};return e&&e.children.forEach(t=>n[t.value.outlet]=t),n}class RC extends FC{constructor(n,t){super(n),this.snapshot=t,hp(this,n)}toString(){return this.snapshot.toString()}}function OC(e,n){const t=function VR(e,n){const s=new du([],{},{},"",{},Te,n,null,e.root,-1,{});return new PC("",new ai(s,[]))}(e,n),r=new nr([new $a("",{})]),i=new nr({}),o=new nr({}),s=new nr({}),a=new nr(""),l=new ao(r,i,s,a,o,Te,n,t.root);return l.snapshot=t.root,new RC(new ai(l,[]),t)}class ao{constructor(n,t,r,i,o,s,a,l){this.url=n,this.params=t,this.queryParams=r,this.fragment=i,this.data=o,this.outlet=s,this.component=a,this.title=this.data?.pipe(we(c=>c[Ua]))??de(void 0),this._futureSnapshot=l}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(we(n=>ds(n)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(we(n=>ds(n)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function NC(e,n="emptyOnly"){const t=e.pathFromRoot;let r=0;if("always"!==n)for(r=t.length-1;r>=1;){const i=t[r],o=t[r-1];if(i.routeConfig&&""===i.routeConfig.path)r--;else{if(o.component)break;r--}}return function BR(e){return e.reduce((n,t)=>({params:{...n.params,...t.params},data:{...n.data,...t.data},resolve:{...t.data,...n.resolve,...t.routeConfig?.data,...t._resolvedData}}),{params:{},data:{},resolve:{}})}(t.slice(r))}class du{get title(){return this.data?.[Ua]}constructor(n,t,r,i,o,s,a,l,c,u,p){this.url=n,this.params=t,this.queryParams=r,this.fragment=i,this.data=o,this.outlet=s,this.component=a,this.routeConfig=l,this._urlSegment=c,this._lastPathIndex=u,this._resolve=p}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=ds(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=ds(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(r=>r.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class PC extends FC{constructor(n,t){super(t),this.url=n,hp(this,t)}toString(){return LC(this._root)}}function hp(e,n){n.value._routerState=e,n.children.forEach(t=>hp(e,t))}function LC(e){const n=e.children.length>0?` { ${e.children.map(LC).join(", ")} } `:"";return`${e.value}${n}`}function pp(e){if(e.snapshot){const n=e.snapshot,t=e._futureSnapshot;e.snapshot=t,Rr(n.queryParams,t.queryParams)||e.queryParams.next(t.queryParams),n.fragment!==t.fragment&&e.fragment.next(t.fragment),Rr(n.params,t.params)||e.params.next(t.params),function JF(e,n){if(e.length!==n.length)return!1;for(let t=0;tRr(t.parameters,n[r].parameters))}(e.url,n.url);return t&&!(!e.parent!=!n.parent)&&(!e.parent||gp(e.parent,n.parent))}function Ya(e,n,t){if(t&&e.shouldReuseRoute(n.value,t.value.snapshot)){const r=t.value;r._futureSnapshot=n.value;const i=function UR(e,n,t){return n.children.map(r=>{for(const i of t.children)if(e.shouldReuseRoute(r.value,i.value.snapshot))return Ya(e,r,i);return Ya(e,r)})}(e,n,t);return new ai(r,i)}{if(e.shouldAttach(n.value)){const o=e.retrieve(n.value);if(null!==o){const s=o.route;return s.value._futureSnapshot=n.value,s.children=n.children.map(a=>Ya(e,a)),s}}const r=function $R(e){return new ao(new nr(e.url),new nr(e.params),new nr(e.queryParams),new nr(e.fragment),new nr(e.data),e.outlet,e.component,e)}(n.value),i=n.children.map(o=>Ya(e,o));return new ai(r,i)}}const mp="ngNavigationCancelingError";function VC(e,n){const{redirectTo:t,navigationBehaviorOptions:r}=oo(n)?{redirectTo:n,navigationBehaviorOptions:void 0}:n,i=BC(!1,0,n);return i.url=t,i.navigationBehaviorOptions=r,i}function BC(e,n,t){const r=new Error("NavigationCancelingError: "+(e||""));return r[mp]=!0,r.cancellationCode=n,t&&(r.url=t),r}function jC(e){return UC(e)&&oo(e.url)}function UC(e){return e&&e[mp]}class HR{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.injector=null,this.children=new Ka,this.attachRef=null}}let Ka=(()=>{class e{constructor(){this.contexts=new Map}onChildOutletCreated(t,r){const i=this.getOrCreateContext(t);i.outlet=r,this.contexts.set(t,i)}onChildOutletDestroyed(t){const r=this.getContext(t);r&&(r.outlet=null,r.attachRef=null)}onOutletDeactivated(){const t=this.contexts;return this.contexts=new Map,t}onOutletReAttached(t){this.contexts=t}getOrCreateContext(t){let r=this.getContext(t);return r||(r=new HR,this.contexts.set(t,r)),r}getContext(t){return this.contexts.get(t)||null}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=ee({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const fu=!1;let _p=(()=>{class e{constructor(){this.activated=null,this._activatedRoute=null,this.name=Te,this.activateEvents=new ue,this.deactivateEvents=new ue,this.attachEvents=new ue,this.detachEvents=new ue,this.parentContexts=Fe(Ka),this.location=Fe(hr),this.changeDetector=Fe(Aa),this.environmentInjector=Fe(Tr)}ngOnChanges(t){if(t.name){const{firstChange:r,previousValue:i}=t.name;if(r)return;this.isTrackedInParentContexts(i)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(i)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name)}isTrackedInParentContexts(t){return this.parentContexts.getContext(t)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;const t=this.parentContexts.getContext(this.name);t?.route&&(t.attachRef?this.attach(t.attachRef,t.route):this.activateWith(t.route,t.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new q(4012,fu);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new q(4012,fu);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new q(4012,fu);this.location.detach();const t=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(t.instance),t}attach(t,r){this.activated=t,this._activatedRoute=r,this.location.insert(t.hostView),this.attachEvents.emit(t.instance)}deactivate(){if(this.activated){const t=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(t)}}activateWith(t,r){if(this.isActivated)throw new q(4013,fu);this._activatedRoute=t;const i=this.location,s=t.snapshot.component,a=this.parentContexts.getOrCreateContext(this.name).children,l=new GR(t,a,i.injector);if(r&&function zR(e){return!!e.resolveComponentFactory}(r)){const c=r.resolveComponentFactory(s);this.activated=i.createComponent(c,i.length,l)}else this.activated=i.createComponent(s,{index:i.length,injector:l,environmentInjector:r??this.environmentInjector});this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Ce({type:e,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[Dn]}),e})();class GR{constructor(n,t,r){this.route=n,this.childContexts=t,this.parent=r}get(n,t){return n===ao?this.route:n===Ka?this.childContexts:this.parent.get(n,t)}}let vp=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=De({type:e,selectors:[["ng-component"]],standalone:!0,features:[ky],decls:1,vars:0,template:function(t,r){1&t&&S(0,"router-outlet")},dependencies:[_p],encapsulation:2}),e})();function $C(e,n){return e.providers&&!e._injector&&(e._injector=Ec(e.providers,n,`Route: ${e.path}`)),e._injector??n}function bp(e){const n=e.children&&e.children.map(bp),t=n?{...e,children:n}:{...e};return!t.component&&!t.loadComponent&&(n||t.loadChildren)&&t.outlet&&t.outlet!==Te&&(t.component=vp),t}function ir(e){return e.outlet||Te}function HC(e,n){const t=e.filter(r=>ir(r)===n);return t.push(...e.filter(r=>ir(r)!==n)),t}function Qa(e){if(!e)return null;if(e.routeConfig?._injector)return e.routeConfig._injector;for(let n=e.parent;n;n=n.parent){const t=n.routeConfig;if(t?._loadedInjector)return t._loadedInjector;if(t?._injector)return t._injector}return null}class QR{constructor(n,t,r,i){this.routeReuseStrategy=n,this.futureState=t,this.currState=r,this.forwardEvent=i}activate(n){const t=this.futureState._root,r=this.currState?this.currState._root:null;this.deactivateChildRoutes(t,r,n),pp(this.futureState.root),this.activateChildRoutes(t,r,n)}deactivateChildRoutes(n,t,r){const i=gs(t);n.children.forEach(o=>{const s=o.value.outlet;this.deactivateRoutes(o,i[s],r),delete i[s]}),Xt(i,(o,s)=>{this.deactivateRouteAndItsChildren(o,r)})}deactivateRoutes(n,t,r){const i=n.value,o=t?t.value:null;if(i===o)if(i.component){const s=r.getContext(i.outlet);s&&this.deactivateChildRoutes(n,t,s.children)}else this.deactivateChildRoutes(n,t,r);else o&&this.deactivateRouteAndItsChildren(t,r)}deactivateRouteAndItsChildren(n,t){n.value.component&&this.routeReuseStrategy.shouldDetach(n.value.snapshot)?this.detachAndStoreRouteSubtree(n,t):this.deactivateRouteAndOutlet(n,t)}detachAndStoreRouteSubtree(n,t){const r=t.getContext(n.value.outlet),i=r&&n.value.component?r.children:t,o=gs(n);for(const s of Object.keys(o))this.deactivateRouteAndItsChildren(o[s],i);if(r&&r.outlet){const s=r.outlet.detach(),a=r.children.onOutletDeactivated();this.routeReuseStrategy.store(n.value.snapshot,{componentRef:s,route:n,contexts:a})}}deactivateRouteAndOutlet(n,t){const r=t.getContext(n.value.outlet),i=r&&n.value.component?r.children:t,o=gs(n);for(const s of Object.keys(o))this.deactivateRouteAndItsChildren(o[s],i);r&&(r.outlet&&(r.outlet.deactivate(),r.children.onOutletDeactivated()),r.attachRef=null,r.resolver=null,r.route=null)}activateChildRoutes(n,t,r){const i=gs(t);n.children.forEach(o=>{this.activateRoutes(o,i[o.value.outlet],r),this.forwardEvent(new FR(o.value.snapshot))}),n.children.length&&this.forwardEvent(new xR(n.value.snapshot))}activateRoutes(n,t,r){const i=n.value,o=t?t.value:null;if(pp(i),i===o)if(i.component){const s=r.getOrCreateContext(i.outlet);this.activateChildRoutes(n,t,s.children)}else this.activateChildRoutes(n,t,r);else if(i.component){const s=r.getOrCreateContext(i.outlet);if(this.routeReuseStrategy.shouldAttach(i.snapshot)){const a=this.routeReuseStrategy.retrieve(i.snapshot);this.routeReuseStrategy.store(i.snapshot,null),s.children.onOutletReAttached(a.contexts),s.attachRef=a.componentRef,s.route=a.route.value,s.outlet&&s.outlet.attach(a.componentRef,a.route.value),pp(a.route.value),this.activateChildRoutes(n,null,s.children)}else{const a=Qa(i.snapshot),l=a?.get(ua)??null;s.attachRef=null,s.route=i,s.resolver=l,s.injector=a,s.outlet&&s.outlet.activateWith(i,s.injector),this.activateChildRoutes(n,null,s.children)}}else this.activateChildRoutes(n,null,r)}}class GC{constructor(n){this.path=n,this.route=this.path[this.path.length-1]}}class hu{constructor(n,t){this.component=n,this.route=t}}function XR(e,n,t){const r=e._root;return Xa(r,n?n._root:null,t,[r.value])}function ms(e,n){const t=Symbol(),r=n.get(e,t);return r===t?"function"!=typeof e||function jD(e){return null!==Ml(e)}(e)?n.get(e):e:r}function Xa(e,n,t,r,i={canDeactivateChecks:[],canActivateChecks:[]}){const o=gs(n);return e.children.forEach(s=>{(function JR(e,n,t,r,i={canDeactivateChecks:[],canActivateChecks:[]}){const o=e.value,s=n?n.value:null,a=t?t.getContext(e.value.outlet):null;if(s&&o.routeConfig===s.routeConfig){const l=function eO(e,n,t){if("function"==typeof t)return t(e,n);switch(t){case"pathParamsChange":return!io(e.url,n.url);case"pathParamsOrQueryParamsChange":return!io(e.url,n.url)||!Rr(e.queryParams,n.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!gp(e,n)||!Rr(e.queryParams,n.queryParams);default:return!gp(e,n)}}(s,o,o.routeConfig.runGuardsAndResolvers);l?i.canActivateChecks.push(new GC(r)):(o.data=s.data,o._resolvedData=s._resolvedData),Xa(e,n,o.component?a?a.children:null:t,r,i),l&&a&&a.outlet&&a.outlet.isActivated&&i.canDeactivateChecks.push(new hu(a.outlet.component,s))}else s&&Za(n,a,i),i.canActivateChecks.push(new GC(r)),Xa(e,null,o.component?a?a.children:null:t,r,i)})(s,o[s.value.outlet],t,r.concat([s.value]),i),delete o[s.value.outlet]}),Xt(o,(s,a)=>Za(s,t.getContext(a),i)),i}function Za(e,n,t){const r=gs(e),i=e.value;Xt(r,(o,s)=>{Za(o,i.component?n?n.children.getContext(s):null:n,t)}),t.canDeactivateChecks.push(new hu(i.component&&n&&n.outlet&&n.outlet.isActivated?n.outlet.component:null,i))}function Ja(e){return"function"==typeof e}function Cp(e){return e instanceof Va||"EmptyError"===e?.name}const pu=Symbol("INITIAL_VALUE");function _s(){return rr(e=>sC(e.map(n=>n.pipe(_r(1),function qF(...e){const n=X(e);return St((t,r)=>{(n?Ba(e,t,n):Ba(e,t)).subscribe(r)})}(pu)))).pipe(we(n=>{for(const t of n)if(!0!==t){if(t===pu)return pu;if(!1===t||t instanceof Ai)return t}return!0}),tr(n=>n!==pu),_r(1)))}function zC(e){return function _l(...e){return cn(e)}(sn(n=>{if(oo(n))throw VC(0,n)}),we(n=>!0===n))}const wp={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function qC(e,n,t,r,i){const o=Dp(e,n,t);return o.matched?function _O(e,n,t,r){const i=n.canMatch;return i&&0!==i.length?de(i.map(s=>{const a=ms(s,e);return Mi(function sO(e){return e&&Ja(e.canMatch)}(a)?a.canMatch(n,t):e.runInContext(()=>a(n,t)))})).pipe(_s(),zC()):de(!0)}(r=$C(n,r),n,t).pipe(we(s=>!0===s?o:{...wp})):de(o)}function Dp(e,n,t){if(""===n.path)return"full"===n.pathMatch&&(e.hasChildren()||t.length>0)?{...wp}:{matched:!0,consumedSegments:[],remainingSegments:t,parameters:{},positionalParamSegments:{}};const i=(n.matcher||ZF)(t,e,n);if(!i)return{...wp};const o={};Xt(i.posParams,(a,l)=>{o[l]=a.path});const s=i.consumed.length>0?{...o,...i.consumed[i.consumed.length-1].parameters}:o;return{matched:!0,consumedSegments:i.consumed,remainingSegments:t.slice(i.consumed.length),parameters:s,positionalParamSegments:i.posParams??{}}}function gu(e,n,t,r){if(t.length>0&&function bO(e,n,t){return t.some(r=>mu(e,n,r)&&ir(r)!==Te)}(e,t,r)){const o=new Oe(n,function yO(e,n,t,r){const i={};i[Te]=r,r._sourceSegment=e,r._segmentIndexShift=n.length;for(const o of t)if(""===o.path&&ir(o)!==Te){const s=new Oe([],{});s._sourceSegment=e,s._segmentIndexShift=n.length,i[ir(o)]=s}return i}(e,n,r,new Oe(t,e.children)));return o._sourceSegment=e,o._segmentIndexShift=n.length,{segmentGroup:o,slicedSegments:[]}}if(0===t.length&&function CO(e,n,t){return t.some(r=>mu(e,n,r))}(e,t,r)){const o=new Oe(e.segments,function vO(e,n,t,r,i){const o={};for(const s of r)if(mu(e,t,s)&&!i[ir(s)]){const a=new Oe([],{});a._sourceSegment=e,a._segmentIndexShift=n.length,o[ir(s)]=a}return{...i,...o}}(e,n,t,r,e.children));return o._sourceSegment=e,o._segmentIndexShift=n.length,{segmentGroup:o,slicedSegments:t}}const i=new Oe(e.segments,e.children);return i._sourceSegment=e,i._segmentIndexShift=n.length,{segmentGroup:i,slicedSegments:t}}function mu(e,n,t){return(!(e.hasChildren()||n.length>0)||"full"!==t.pathMatch)&&""===t.path}function WC(e,n,t,r){return!!(ir(e)===r||r!==Te&&mu(n,t,e))&&("**"===e.path||Dp(n,e,t).matched)}function YC(e,n,t){return 0===n.length&&!e.children[t]}const _u=!1;class vu{constructor(n){this.segmentGroup=n||null}}class KC{constructor(n){this.urlTree=n}}function el(e){return ja(new vu(e))}function QC(e){return ja(new KC(e))}class SO{constructor(n,t,r,i,o){this.injector=n,this.configLoader=t,this.urlSerializer=r,this.urlTree=i,this.config=o,this.allowRedirects=!0}apply(){const n=gu(this.urlTree.root,[],[],this.config).segmentGroup,t=new Oe(n.segments,n.children);return this.expandSegmentGroup(this.injector,this.config,t,Te).pipe(we(o=>this.createUrlTree(lu(o),this.urlTree.queryParams,this.urlTree.fragment))).pipe(Ii(o=>{if(o instanceof KC)return this.allowRedirects=!1,this.match(o.urlTree);throw o instanceof vu?this.noMatchError(o):o}))}match(n){return this.expandSegmentGroup(this.injector,this.config,n.root,Te).pipe(we(i=>this.createUrlTree(lu(i),n.queryParams,n.fragment))).pipe(Ii(i=>{throw i instanceof vu?this.noMatchError(i):i}))}noMatchError(n){return new q(4002,_u)}createUrlTree(n,t,r){const i=op(n);return new Ai(i,t,r)}expandSegmentGroup(n,t,r,i){return 0===r.segments.length&&r.hasChildren()?this.expandChildren(n,t,r).pipe(we(o=>new Oe([],o))):this.expandSegment(n,r,t,r.segments,i,!0)}expandChildren(n,t,r){const i=[];for(const o of Object.keys(r.children))"primary"===o?i.unshift(o):i.push(o);return ot(i).pipe(oi(o=>{const s=r.children[o],a=HC(t,o);return this.expandSegmentGroup(n,a,s,o).pipe(we(l=>({segment:l,outlet:o})))}),uC((o,s)=>(o[s.outlet]=s.segment,o),{}),dC())}expandSegment(n,t,r,i,o,s){return ot(r).pipe(oi(a=>this.expandSegmentAgainstRoute(n,t,r,a,i,o,s).pipe(Ii(c=>{if(c instanceof vu)return de(null);throw c}))),Ti(a=>!!a),Ii((a,l)=>{if(Cp(a))return YC(t,i,o)?de(new Oe([],{})):el(t);throw a}))}expandSegmentAgainstRoute(n,t,r,i,o,s,a){return WC(i,t,o,s)?void 0===i.redirectTo?this.matchSegmentAgainstRoute(n,t,i,o,s):a&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(n,t,r,i,o,s):el(t):el(t)}expandSegmentAgainstRouteUsingRedirect(n,t,r,i,o,s){return"**"===i.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(n,r,i,s):this.expandRegularSegmentAgainstRouteUsingRedirect(n,t,r,i,o,s)}expandWildCardWithParamsAgainstRouteUsingRedirect(n,t,r,i){const o=this.applyRedirectCommands([],r.redirectTo,{});return r.redirectTo.startsWith("/")?QC(o):this.lineralizeSegments(r,o).pipe(ae(s=>{const a=new Oe(s,{});return this.expandSegment(n,a,t,s,i,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(n,t,r,i,o,s){const{matched:a,consumedSegments:l,remainingSegments:c,positionalParamSegments:u}=Dp(t,i,o);if(!a)return el(t);const p=this.applyRedirectCommands(l,i.redirectTo,u);return i.redirectTo.startsWith("/")?QC(p):this.lineralizeSegments(i,p).pipe(ae(m=>this.expandSegment(n,t,r,m.concat(c),s,!1)))}matchSegmentAgainstRoute(n,t,r,i,o){return"**"===r.path?(n=$C(r,n),r.loadChildren?(r._loadedRoutes?de({routes:r._loadedRoutes,injector:r._loadedInjector}):this.configLoader.loadChildren(n,r)).pipe(we(a=>(r._loadedRoutes=a.routes,r._loadedInjector=a.injector,new Oe(i,{})))):de(new Oe(i,{}))):qC(t,r,i,n).pipe(rr(({matched:s,consumedSegments:a,remainingSegments:l})=>s?this.getChildConfig(n=r._injector??n,r,i).pipe(ae(u=>{const p=u.injector??n,m=u.routes,{segmentGroup:_,slicedSegments:E}=gu(t,a,l,m),N=new Oe(_.segments,_.children);if(0===E.length&&N.hasChildren())return this.expandChildren(p,m,N).pipe(we(j=>new Oe(a,j)));if(0===m.length&&0===E.length)return de(new Oe(a,{}));const B=ir(r)===o;return this.expandSegment(p,N,m,E,B?Te:o,!0).pipe(we(re=>new Oe(a.concat(re.segments),re.children)))})):el(t)))}getChildConfig(n,t,r){return t.children?de({routes:t.children,injector:n}):t.loadChildren?void 0!==t._loadedRoutes?de({routes:t._loadedRoutes,injector:t._loadedInjector}):function mO(e,n,t,r){const i=n.canLoad;return void 0===i||0===i.length?de(!0):de(i.map(s=>{const a=ms(s,e);return Mi(function nO(e){return e&&Ja(e.canLoad)}(a)?a.canLoad(n,t):e.runInContext(()=>a(n,t)))})).pipe(_s(),zC())}(n,t,r).pipe(ae(i=>i?this.configLoader.loadChildren(n,t).pipe(sn(o=>{t._loadedRoutes=o.routes,t._loadedInjector=o.injector})):function DO(e){return ja(BC(_u,3))}())):de({routes:[],injector:n})}lineralizeSegments(n,t){let r=[],i=t.root;for(;;){if(r=r.concat(i.segments),0===i.numberOfChildren)return de(r);if(i.numberOfChildren>1||!i.children[Te])return n.redirectTo,ja(new q(4e3,_u));i=i.children[Te]}}applyRedirectCommands(n,t,r){return this.applyRedirectCreateUrlTree(t,this.urlSerializer.parse(t),n,r)}applyRedirectCreateUrlTree(n,t,r,i){const o=this.createSegmentGroup(n,t.root,r,i);return new Ai(o,this.createQueryParams(t.queryParams,this.urlTree.queryParams),t.fragment)}createQueryParams(n,t){const r={};return Xt(n,(i,o)=>{if("string"==typeof i&&i.startsWith(":")){const a=i.substring(1);r[o]=t[a]}else r[o]=i}),r}createSegmentGroup(n,t,r,i){const o=this.createSegments(n,t.segments,r,i);let s={};return Xt(t.children,(a,l)=>{s[l]=this.createSegmentGroup(n,a,r,i)}),new Oe(o,s)}createSegments(n,t,r,i){return t.map(o=>o.path.startsWith(":")?this.findPosParam(n,o,i):this.findOrReturn(o,r))}findPosParam(n,t,r){const i=r[t.path.substring(1)];if(!i)throw new q(4001,_u);return i}findOrReturn(n,t){let r=0;for(const i of t){if(i.path===n.path)return t.splice(r),i;r++}return n}}class IO{}class xO{constructor(n,t,r,i,o,s,a){this.injector=n,this.rootComponentType=t,this.config=r,this.urlTree=i,this.url=o,this.paramsInheritanceStrategy=s,this.urlSerializer=a}recognize(){const n=gu(this.urlTree.root,[],[],this.config.filter(t=>void 0===t.redirectTo)).segmentGroup;return this.processSegmentGroup(this.injector,this.config,n,Te).pipe(we(t=>{if(null===t)return null;const r=new du([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},Te,this.rootComponentType,null,this.urlTree.root,-1,{}),i=new ai(r,t),o=new PC(this.url,i);return this.inheritParamsAndData(o._root),o}))}inheritParamsAndData(n){const t=n.value,r=NC(t,this.paramsInheritanceStrategy);t.params=Object.freeze(r.params),t.data=Object.freeze(r.data),n.children.forEach(i=>this.inheritParamsAndData(i))}processSegmentGroup(n,t,r,i){return 0===r.segments.length&&r.hasChildren()?this.processChildren(n,t,r):this.processSegment(n,t,r,r.segments,i)}processChildren(n,t,r){return ot(Object.keys(r.children)).pipe(oi(i=>{const o=r.children[i],s=HC(t,i);return this.processSegmentGroup(n,s,o,i)}),uC((i,o)=>i&&o?(i.push(...o),i):null),function KF(e,n=!1){return St((t,r)=>{let i=0;t.subscribe(ut(r,o=>{const s=e(o,i++);(s||n)&&r.next(o),!s&&r.complete()}))})}(i=>null!==i),tu(null),dC(),we(i=>{if(null===i)return null;const o=ZC(i);return function kO(e){e.sort((n,t)=>n.value.outlet===Te?-1:t.value.outlet===Te?1:n.value.outlet.localeCompare(t.value.outlet))}(o),o}))}processSegment(n,t,r,i,o){return ot(t).pipe(oi(s=>this.processSegmentAgainstRoute(s._injector??n,s,r,i,o)),Ti(s=>!!s),Ii(s=>{if(Cp(s))return YC(r,i,o)?de([]):de(null);throw s}))}processSegmentAgainstRoute(n,t,r,i,o){if(t.redirectTo||!WC(t,r,i,o))return de(null);let s;if("**"===t.path){const a=i.length>0?pC(i).parameters:{},l=ew(r)+i.length;s=de({snapshot:new du(i,a,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,tw(t),ir(t),t.component??t._loadedComponent??null,t,JC(r),l,nw(t)),consumedSegments:[],remainingSegments:[]})}else s=qC(r,t,i,n).pipe(we(({matched:a,consumedSegments:l,remainingSegments:c,parameters:u})=>{if(!a)return null;const p=ew(r)+l.length;return{snapshot:new du(l,u,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,tw(t),ir(t),t.component??t._loadedComponent??null,t,JC(r),p,nw(t)),consumedSegments:l,remainingSegments:c}}));return s.pipe(rr(a=>{if(null===a)return de(null);const{snapshot:l,consumedSegments:c,remainingSegments:u}=a;n=t._injector??n;const p=t._loadedInjector??n,m=function FO(e){return e.children?e.children:e.loadChildren?e._loadedRoutes:[]}(t),{segmentGroup:_,slicedSegments:E}=gu(r,c,u,m.filter(B=>void 0===B.redirectTo));if(0===E.length&&_.hasChildren())return this.processChildren(p,m,_).pipe(we(B=>null===B?null:[new ai(l,B)]));if(0===m.length&&0===E.length)return de([new ai(l,[])]);const N=ir(t)===o;return this.processSegment(p,m,_,E,N?Te:o).pipe(we(B=>null===B?null:[new ai(l,B)]))}))}}function RO(e){const n=e.value.routeConfig;return n&&""===n.path&&void 0===n.redirectTo}function ZC(e){const n=[],t=new Set;for(const r of e){if(!RO(r)){n.push(r);continue}const i=n.find(o=>r.value.routeConfig===o.value.routeConfig);void 0!==i?(i.children.push(...r.children),t.add(i)):n.push(r)}for(const r of t){const i=ZC(r.children);n.push(new ai(r.value,i))}return n.filter(r=>!t.has(r))}function JC(e){let n=e;for(;n._sourceSegment;)n=n._sourceSegment;return n}function ew(e){let n=e,t=n._segmentIndexShift??0;for(;n._sourceSegment;)n=n._sourceSegment,t+=n._segmentIndexShift??0;return t-1}function tw(e){return e.data||{}}function nw(e){return e.resolve||{}}function rw(e){return"string"==typeof e.title||null===e.title}function Ep(e){return rr(n=>{const t=e(n);return t?ot(t).pipe(we(()=>n)):de(n)})}const vs=new ce("ROUTES");let Sp=(()=>{class e{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=Fe(yb)}loadComponent(t){if(this.componentLoaders.get(t))return this.componentLoaders.get(t);if(t._loadedComponent)return de(t._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(t);const r=Mi(t.loadComponent()).pipe(we(ow),sn(o=>{this.onLoadEndListener&&this.onLoadEndListener(t),t._loadedComponent=o}),np(()=>{this.componentLoaders.delete(t)})),i=new lC(r,()=>new qt).pipe(ep());return this.componentLoaders.set(t,i),i}loadChildren(t,r){if(this.childrenLoaders.get(r))return this.childrenLoaders.get(r);if(r._loadedRoutes)return de({routes:r._loadedRoutes,injector:r._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(r);const o=this.loadModuleFactoryOrRoutes(r.loadChildren).pipe(we(a=>{this.onLoadEndListener&&this.onLoadEndListener(r);let l,c,u=!1;Array.isArray(a)?c=a:(l=a.create(t).injector,c=hC(l.get(vs,[],ye.Self|ye.Optional)));return{routes:c.map(bp),injector:l}}),np(()=>{this.childrenLoaders.delete(r)})),s=new lC(o,()=>new qt).pipe(ep());return this.childrenLoaders.set(r,s),s}loadModuleFactoryOrRoutes(t){return Mi(t()).pipe(we(ow),ae(r=>r instanceof Ay||Array.isArray(r)?de(r):ot(this.compiler.compileModuleAsync(r))))}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=ee({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function ow(e){return function UO(e){return e&&"object"==typeof e&&"default"in e}(e)?e.default:e}let bu=(()=>{class e{get hasRequestedNavigation(){return 0!==this.navigationId}constructor(){this.currentNavigation=null,this.lastSuccessfulNavigation=null,this.events=new qt,this.configLoader=Fe(Sp),this.environmentInjector=Fe(Tr),this.urlSerializer=Fe(Ha),this.rootContexts=Fe(Ka),this.navigationId=0,this.afterPreactivation=()=>de(void 0),this.rootComponentType=null,this.configLoader.onLoadEndListener=i=>this.events.next(new MR(i)),this.configLoader.onLoadStartListener=i=>this.events.next(new IR(i))}complete(){this.transitions?.complete()}handleNavigationRequest(t){const r=++this.navigationId;this.transitions?.next({...this.transitions.value,...t,id:r})}setupNavigations(t){return this.transitions=new nr({id:0,targetPageId:0,currentUrlTree:t.currentUrlTree,currentRawUrl:t.currentUrlTree,extractedUrl:t.urlHandlingStrategy.extract(t.currentUrlTree),urlAfterRedirects:t.urlHandlingStrategy.extract(t.currentUrlTree),rawUrl:t.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:Wa,restoredState:null,currentSnapshot:t.routerState.snapshot,targetSnapshot:null,currentRouterState:t.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(tr(r=>0!==r.id),we(r=>({...r,extractedUrl:t.urlHandlingStrategy.extract(r.rawUrl)})),rr(r=>{let i=!1,o=!1;return de(r).pipe(sn(s=>{this.currentNavigation={id:s.id,initialUrl:s.rawUrl,extractedUrl:s.extractedUrl,trigger:s.source,extras:s.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null}}),rr(s=>{const a=t.browserUrlTree.toString(),l=!t.navigated||s.extractedUrl.toString()!==a||a!==t.currentUrlTree.toString();if(!l&&"reload"!==(s.extras.onSameUrlNavigation??t.onSameUrlNavigation)){const u="";return this.events.next(new uu(s.id,t.serializeUrl(r.rawUrl),u,0)),t.rawUrlTree=s.rawUrl,s.resolve(null),I}if(t.urlHandlingStrategy.shouldProcessUrl(s.rawUrl))return sw(s.source)&&(t.browserUrlTree=s.extractedUrl),de(s).pipe(rr(u=>{const p=this.transitions?.getValue();return this.events.next(new cp(u.id,this.urlSerializer.serialize(u.extractedUrl),u.source,u.restoredState)),p!==this.transitions?.getValue()?I:Promise.resolve(u)}),function TO(e,n,t,r){return rr(i=>function EO(e,n,t,r,i){return new SO(e,n,t,r,i).apply()}(e,n,t,i.extractedUrl,r).pipe(we(o=>({...i,urlAfterRedirects:o}))))}(this.environmentInjector,this.configLoader,this.urlSerializer,t.config),sn(u=>{this.currentNavigation={...this.currentNavigation,finalUrl:u.urlAfterRedirects},r.urlAfterRedirects=u.urlAfterRedirects}),function NO(e,n,t,r,i){return ae(o=>function AO(e,n,t,r,i,o,s="emptyOnly"){return new xO(e,n,t,r,i,s,o).recognize().pipe(rr(a=>null===a?function MO(e){return new qe(n=>n.error(e))}(new IO):de(a)))}(e,n,t,o.urlAfterRedirects,r.serialize(o.urlAfterRedirects),r,i).pipe(we(s=>({...o,targetSnapshot:s}))))}(this.environmentInjector,this.rootComponentType,t.config,this.urlSerializer,t.paramsInheritanceStrategy),sn(u=>{if(r.targetSnapshot=u.targetSnapshot,"eager"===t.urlUpdateStrategy){if(!u.extras.skipLocationChange){const m=t.urlHandlingStrategy.merge(u.urlAfterRedirects,u.rawUrl);t.setBrowserUrl(m,u)}t.browserUrlTree=u.urlAfterRedirects}const p=new wR(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot);this.events.next(p)}));if(l&&t.urlHandlingStrategy.shouldProcessUrl(t.rawUrlTree)){const{id:u,extractedUrl:p,source:m,restoredState:_,extras:E}=s,N=new cp(u,this.urlSerializer.serialize(p),m,_);this.events.next(N);const B=OC(p,this.rootComponentType).snapshot;return de(r={...s,targetSnapshot:B,urlAfterRedirects:p,extras:{...E,skipLocationChange:!1,replaceUrl:!1}})}{const u="";return this.events.next(new uu(s.id,t.serializeUrl(r.extractedUrl),u,1)),t.rawUrlTree=s.rawUrl,s.resolve(null),I}}),sn(s=>{const a=new DR(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);this.events.next(a)}),we(s=>r={...s,guards:XR(s.targetSnapshot,s.currentSnapshot,this.rootContexts)}),function lO(e,n){return ae(t=>{const{targetSnapshot:r,currentSnapshot:i,guards:{canActivateChecks:o,canDeactivateChecks:s}}=t;return 0===s.length&&0===o.length?de({...t,guardsResult:!0}):function cO(e,n,t,r){return ot(e).pipe(ae(i=>function gO(e,n,t,r,i){const o=n&&n.routeConfig?n.routeConfig.canDeactivate:null;return o&&0!==o.length?de(o.map(a=>{const l=Qa(n)??i,c=ms(a,l);return Mi(function oO(e){return e&&Ja(e.canDeactivate)}(c)?c.canDeactivate(e,n,t,r):l.runInContext(()=>c(e,n,t,r))).pipe(Ti())})).pipe(_s()):de(!0)}(i.component,i.route,t,n,r)),Ti(i=>!0!==i,!0))}(s,r,i,e).pipe(ae(a=>a&&function tO(e){return"boolean"==typeof e}(a)?function uO(e,n,t,r){return ot(n).pipe(oi(i=>Ba(function fO(e,n){return null!==e&&n&&n(new AR(e)),de(!0)}(i.route.parent,r),function dO(e,n){return null!==e&&n&&n(new kR(e)),de(!0)}(i.route,r),function pO(e,n,t){const r=n[n.length-1],o=n.slice(0,n.length-1).reverse().map(s=>function ZR(e){const n=e.routeConfig?e.routeConfig.canActivateChild:null;return n&&0!==n.length?{node:e,guards:n}:null}(s)).filter(s=>null!==s).map(s=>eu(()=>de(s.guards.map(l=>{const c=Qa(s.node)??t,u=ms(l,c);return Mi(function iO(e){return e&&Ja(e.canActivateChild)}(u)?u.canActivateChild(r,e):c.runInContext(()=>u(r,e))).pipe(Ti())})).pipe(_s())));return de(o).pipe(_s())}(e,i.path,t),function hO(e,n,t){const r=n.routeConfig?n.routeConfig.canActivate:null;if(!r||0===r.length)return de(!0);const i=r.map(o=>eu(()=>{const s=Qa(n)??t,a=ms(o,s);return Mi(function rO(e){return e&&Ja(e.canActivate)}(a)?a.canActivate(n,e):s.runInContext(()=>a(n,e))).pipe(Ti())}));return de(i).pipe(_s())}(e,i.route,t))),Ti(i=>!0!==i,!0))}(r,o,e,n):de(a)),we(a=>({...t,guardsResult:a})))})}(this.environmentInjector,s=>this.events.next(s)),sn(s=>{if(r.guardsResult=s.guardsResult,oo(s.guardsResult))throw VC(0,s.guardsResult);const a=new ER(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot,!!s.guardsResult);this.events.next(a)}),tr(s=>!!s.guardsResult||(t.restoreHistory(s),this.cancelNavigationTransition(s,"",3),!1)),Ep(s=>{if(s.guards.canActivateChecks.length)return de(s).pipe(sn(a=>{const l=new SR(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(l)}),rr(a=>{let l=!1;return de(a).pipe(function PO(e,n){return ae(t=>{const{targetSnapshot:r,guards:{canActivateChecks:i}}=t;if(!i.length)return de(t);let o=0;return ot(i).pipe(oi(s=>function LO(e,n,t,r){const i=e.routeConfig,o=e._resolve;return void 0!==i?.title&&!rw(i)&&(o[Ua]=i.title),function VO(e,n,t,r){const i=function BO(e){return[...Object.keys(e),...Object.getOwnPropertySymbols(e)]}(e);if(0===i.length)return de({});const o={};return ot(i).pipe(ae(s=>function jO(e,n,t,r){const i=Qa(n)??r,o=ms(e,i);return Mi(o.resolve?o.resolve(n,t):i.runInContext(()=>o(n,t)))}(e[s],n,t,r).pipe(Ti(),sn(a=>{o[s]=a}))),tp(1),function QF(e){return we(()=>e)}(o),Ii(s=>Cp(s)?I:ja(s)))}(o,e,n,r).pipe(we(s=>(e._resolvedData=s,e.data=NC(e,t).resolve,i&&rw(i)&&(e.data[Ua]=i.title),null)))}(s.route,r,e,n)),sn(()=>o++),tp(1),ae(s=>o===i.length?de(t):I))})}(t.paramsInheritanceStrategy,this.environmentInjector),sn({next:()=>l=!0,complete:()=>{l||(t.restoreHistory(a),this.cancelNavigationTransition(a,"",2))}}))}),sn(a=>{const l=new TR(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(l)}))}),Ep(s=>{const a=l=>{const c=[];l.routeConfig?.loadComponent&&!l.routeConfig._loadedComponent&&c.push(this.configLoader.loadComponent(l.routeConfig).pipe(sn(u=>{l.component=u}),we(()=>{})));for(const u of l.children)c.push(...a(u));return c};return sC(a(s.targetSnapshot.root)).pipe(tu(),_r(1))}),Ep(()=>this.afterPreactivation()),we(s=>{const a=function jR(e,n,t){const r=Ya(e,n._root,t?t._root:void 0);return new RC(r,n)}(t.routeReuseStrategy,s.targetSnapshot,s.currentRouterState);return r={...s,targetRouterState:a}}),sn(s=>{t.currentUrlTree=s.urlAfterRedirects,t.rawUrlTree=t.urlHandlingStrategy.merge(s.urlAfterRedirects,s.rawUrl),t.routerState=s.targetRouterState,"deferred"===t.urlUpdateStrategy&&(s.extras.skipLocationChange||t.setBrowserUrl(t.rawUrlTree,s),t.browserUrlTree=s.urlAfterRedirects)}),((e,n,t)=>we(r=>(new QR(n,r.targetRouterState,r.currentRouterState,t).activate(e),r)))(this.rootContexts,t.routeReuseStrategy,s=>this.events.next(s)),sn({next:s=>{i=!0,this.lastSuccessfulNavigation=this.currentNavigation,t.navigated=!0,this.events.next(new so(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(t.currentUrlTree))),t.titleStrategy?.updateTitle(s.targetRouterState.snapshot),s.resolve(!0)},complete:()=>{i=!0}}),np(()=>{i||o||this.cancelNavigationTransition(r,"",1),this.currentNavigation?.id===r.id&&(this.currentNavigation=null)}),Ii(s=>{if(o=!0,UC(s)){jC(s)||(t.navigated=!0,t.restoreHistory(r,!0));const a=new cu(r.id,this.urlSerializer.serialize(r.extractedUrl),s.message,s.cancellationCode);if(this.events.next(a),jC(s)){const l=t.urlHandlingStrategy.merge(s.url,t.rawUrlTree),c={skipLocationChange:r.extras.skipLocationChange,replaceUrl:"eager"===t.urlUpdateStrategy||sw(r.source)};t.scheduleNavigation(l,Wa,null,c,{resolve:r.resolve,reject:r.reject,promise:r.promise})}else r.resolve(!1)}else{t.restoreHistory(r,!0);const a=new up(r.id,this.urlSerializer.serialize(r.extractedUrl),s,r.targetSnapshot??void 0);this.events.next(a);try{r.resolve(t.errorHandler(s))}catch(l){r.reject(l)}}return I}))}))}cancelNavigationTransition(t,r,i){const o=new cu(t.id,this.urlSerializer.serialize(t.extractedUrl),r,i);this.events.next(o),t.resolve(!1)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=ee({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function sw(e){return e!==Wa}let aw=(()=>{class e{buildTitle(t){let r,i=t.root;for(;void 0!==i;)r=this.getResolvedTitleForRoute(i)??r,i=i.children.find(o=>o.outlet===Te);return r}getResolvedTitleForRoute(t){return t.data[Ua]}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=ee({token:e,factory:function(){return Fe($O)},providedIn:"root"}),e})(),$O=(()=>{class e extends aw{constructor(t){super(),this.title=t}updateTitle(t){const r=this.buildTitle(t);void 0!==r&&this.title.setTitle(r)}}return e.\u0275fac=function(t){return new(t||e)(te(j1))},e.\u0275prov=ee({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),HO=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=ee({token:e,factory:function(){return Fe(zO)},providedIn:"root"}),e})();class GO{shouldDetach(n){return!1}store(n,t){}shouldAttach(n){return!1}retrieve(n){return null}shouldReuseRoute(n,t){return n.routeConfig===t.routeConfig}}let zO=(()=>{class e extends GO{}return e.\u0275fac=function(){let n;return function(r){return(n||(n=et(e)))(r||e)}}(),e.\u0275prov=ee({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const Cu=new ce("",{providedIn:"root",factory:()=>({})});let WO=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=ee({token:e,factory:function(){return Fe(YO)},providedIn:"root"}),e})(),YO=(()=>{class e{shouldProcessUrl(t){return!0}extract(t){return t}merge(t,r){return t}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=ee({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function KO(e){throw e}function QO(e,n,t){return n.parse("/")}const XO={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},ZO={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let Bt=(()=>{class e{get navigationId(){return this.navigationTransitions.navigationId}get browserPageId(){return this.location.getState()?.\u0275routerPageId}get events(){return this.navigationTransitions.events}constructor(){this.disposed=!1,this.currentPageId=0,this.console=Fe(sx),this.isNgZoneEnabled=!1,this.options=Fe(Cu,{optional:!0})||{},this.errorHandler=this.options.errorHandler||KO,this.malformedUriErrorHandler=this.options.malformedUriErrorHandler||QO,this.navigated=!1,this.lastSuccessfulId=-1,this.urlHandlingStrategy=Fe(WO),this.routeReuseStrategy=Fe(HO),this.urlCreationStrategy=Fe(LR),this.titleStrategy=Fe(aw),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.config=hC(Fe(vs,{optional:!0})??[]),this.navigationTransitions=Fe(bu),this.urlSerializer=Fe(Ha),this.location=Fe(Dh),this.isNgZoneEnabled=Fe(Mt)instanceof Mt&&Mt.isInAngularZone(),this.resetConfig(this.config),this.currentUrlTree=new Ai,this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=OC(this.currentUrlTree,null),this.navigationTransitions.setupNavigations(this).subscribe(t=>{this.lastSuccessfulId=t.id,this.currentPageId=t.targetPageId},t=>{this.console.warn(`Unhandled Navigation Error: ${t}`)})}resetRootComponentType(t){this.routerState.root.component=t,this.navigationTransitions.rootComponentType=t}initialNavigation(){if(this.setUpLocationChangeListener(),!this.navigationTransitions.hasRequestedNavigation){const t=this.location.getState();this.navigateToSyncWithBrowser(this.location.path(!0),Wa,t)}}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(t=>{const r="popstate"===t.type?"popstate":"hashchange";"popstate"===r&&setTimeout(()=>{this.navigateToSyncWithBrowser(t.url,r,t.state)},0)}))}navigateToSyncWithBrowser(t,r,i){const o={replaceUrl:!0},s=i?.navigationId?i:null;if(i){const l={...i};delete l.navigationId,delete l.\u0275routerPageId,0!==Object.keys(l).length&&(o.state=l)}const a=this.parseUrl(t);this.scheduleNavigation(a,r,s,o)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}resetConfig(t){this.config=t.map(bp),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(t,r={}){const{relativeTo:i,queryParams:o,fragment:s,queryParamsHandling:a,preserveFragment:l}=r,c=l?this.currentUrlTree.fragment:s;let u=null;switch(a){case"merge":u={...this.currentUrlTree.queryParams,...o};break;case"preserve":u=this.currentUrlTree.queryParams;break;default:u=o||null}return null!==u&&(u=this.removeEmptyProps(u)),this.urlCreationStrategy.createUrlTree(i,this.routerState,this.currentUrlTree,t,u,c??null)}navigateByUrl(t,r={skipLocationChange:!1}){const i=oo(t)?t:this.parseUrl(t),o=this.urlHandlingStrategy.merge(i,this.rawUrlTree);return this.scheduleNavigation(o,Wa,null,r)}navigate(t,r={skipLocationChange:!1}){return function JO(e){for(let n=0;n{const o=t[i];return null!=o&&(r[i]=o),r},{})}scheduleNavigation(t,r,i,o,s){if(this.disposed)return Promise.resolve(!1);let a,l,c,u;return s?(a=s.resolve,l=s.reject,c=s.promise):c=new Promise((p,m)=>{a=p,l=m}),u="computed"===this.canceledNavigationResolution?i&&i.\u0275routerPageId?i.\u0275routerPageId:o.replaceUrl||o.skipLocationChange?this.browserPageId??0:(this.browserPageId??0)+1:0,this.navigationTransitions.handleNavigationRequest({targetPageId:u,source:r,restoredState:i,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:t,extras:o,resolve:a,reject:l,promise:c,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),c.catch(p=>Promise.reject(p))}setBrowserUrl(t,r){const i=this.urlSerializer.serialize(t),o={...r.extras.state,...this.generateNgRouterState(r.id,r.targetPageId)};this.location.isCurrentPathEqualTo(i)||r.extras.replaceUrl?this.location.replaceState(i,"",o):this.location.go(i,"",o)}restoreHistory(t,r=!1){if("computed"===this.canceledNavigationResolution){const i=this.currentPageId-t.targetPageId;"popstate"!==t.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==this.getCurrentNavigation()?.finalUrl||0===i?this.currentUrlTree===this.getCurrentNavigation()?.finalUrl&&0===i&&(this.resetState(t),this.browserUrlTree=t.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(i)}else"replace"===this.canceledNavigationResolution&&(r&&this.resetState(t),this.resetUrlToCurrentUrlTree())}resetState(t){this.routerState=t.currentRouterState,this.currentUrlTree=t.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,t.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(t,r){return"computed"===this.canceledNavigationResolution?{navigationId:t,\u0275routerPageId:r}:{navigationId:t}}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=ee({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),tl=(()=>{class e{constructor(t,r,i,o,s,a){this.router=t,this.route=r,this.tabIndexAttribute=i,this.renderer=o,this.el=s,this.locationStrategy=a,this._preserveFragment=!1,this._skipLocationChange=!1,this._replaceUrl=!1,this.href=null,this.commands=null,this.onChanges=new qt;const l=s.nativeElement.tagName?.toLowerCase();this.isAnchorElement="a"===l||"area"===l,this.isAnchorElement?this.subscription=t.events.subscribe(c=>{c instanceof so&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}set preserveFragment(t){this._preserveFragment=cs(t)}get preserveFragment(){return this._preserveFragment}set skipLocationChange(t){this._skipLocationChange=cs(t)}get skipLocationChange(){return this._skipLocationChange}set replaceUrl(t){this._replaceUrl=cs(t)}get replaceUrl(){return this._replaceUrl}setTabIndexIfNotOnNativeEl(t){null!=this.tabIndexAttribute||this.isAnchorElement||this.applyAttributeValue("tabindex",t)}ngOnChanges(t){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}set routerLink(t){null!=t?(this.commands=Array.isArray(t)?t:[t],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(t,r,i,o,s){return!!(null===this.urlTree||this.isAnchorElement&&(0!==t||r||i||o||s||"string"==typeof this.target&&"_self"!=this.target))||(this.router.navigateByUrl(this.urlTree,{skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state}),!this.isAnchorElement)}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){this.href=null!==this.urlTree&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(this.urlTree)):null;const t=null===this.href?null:function n_(e,n,t){return function pS(e,n){return"src"===n&&("embed"===e||"frame"===e||"iframe"===e||"media"===e||"script"===e)||"href"===n&&("base"===e||"link"===e)?t_:e_}(n,t)(e)}(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",t)}applyAttributeValue(t,r){const i=this.renderer,o=this.el.nativeElement;null!==r?i.setAttribute(o,t,r):i.removeAttribute(o,t)}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}}return e.\u0275fac=function(t){return new(t||e)(O(Bt),O(ao),function Kl(e){return function B0(e,n){if("class"===n)return e.classes;if("style"===n)return e.styles;const t=e.attrs;if(t){const r=t.length;let i=0;for(;i{class e{get isActive(){return this._isActive}constructor(t,r,i,o,s){this.router=t,this.element=r,this.renderer=i,this.cdr=o,this.link=s,this.classes=[],this._isActive=!1,this.routerLinkActiveOptions={exact:!1},this.isActiveChange=new ue,this.routerEventsSubscription=t.events.subscribe(a=>{a instanceof so&&this.update()})}ngAfterContentInit(){de(this.links.changes,de(null)).pipe(x()).subscribe(t=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();const t=[...this.links.toArray(),this.link].filter(r=>!!r).map(r=>r.onChanges);this.linkInputChangesSubscription=ot(t).pipe(x()).subscribe(r=>{this._isActive!==this.isLinkActive(this.router)(r)&&this.update()})}set routerLinkActive(t){const r=Array.isArray(t)?t:t.split(" ");this.classes=r.filter(i=>!!i)}ngOnChanges(t){this.update()}ngOnDestroy(){this.routerEventsSubscription.unsubscribe(),this.linkInputChangesSubscription?.unsubscribe()}update(){!this.links||!this.router.navigated||Promise.resolve().then(()=>{const t=this.hasActiveLinks();this._isActive!==t&&(this._isActive=t,this.cdr.markForCheck(),this.classes.forEach(r=>{t?this.renderer.addClass(this.element.nativeElement,r):this.renderer.removeClass(this.element.nativeElement,r)}),t&&void 0!==this.ariaCurrentWhenActive?this.renderer.setAttribute(this.element.nativeElement,"aria-current",this.ariaCurrentWhenActive.toString()):this.renderer.removeAttribute(this.element.nativeElement,"aria-current"),this.isActiveChange.emit(t))})}isLinkActive(t){const r=function eN(e){return!!e.paths}(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return i=>!!i.urlTree&&t.isActive(i.urlTree,r)}hasActiveLinks(){const t=this.isLinkActive(this.router);return this.link&&t(this.link)||this.links.some(t)}}return e.\u0275fac=function(t){return new(t||e)(O(Bt),O(Tn),O(Qr),O(Aa),O(tl,8))},e.\u0275dir=Ce({type:e,selectors:[["","routerLinkActive",""]],contentQueries:function(t,r,i){if(1&t&&function Qy(e,n,t,r){const i=Ue();if(i.firstCreatePass){const o=Qt();Zy(i,new Yy(n,t,r),o.index),function jA(e,n){const t=e.contentQueries||(e.contentQueries=[]);n!==(t.length?t[t.length-1]:-1)&&t.push(e.queries.length-1,n)}(i,e),2==(2&t)&&(i.staticContentQueries=!0)}Xy(i,H(),t)}(i,tl,5),2&t){let o;os(o=ss())&&(r.links=o)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],standalone:!0,features:[Dn]}),e})();class lw{}let tN=(()=>{class e{constructor(t,r,i,o,s){this.router=t,this.injector=i,this.preloadingStrategy=o,this.loader=s}setUpPreloading(){this.subscription=this.router.events.pipe(tr(t=>t instanceof so),oi(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(t,r){const i=[];for(const o of r){o.providers&&!o._injector&&(o._injector=Ec(o.providers,t,`Route: ${o.path}`));const s=o._injector??t,a=o._loadedInjector??s;(o.loadChildren&&!o._loadedRoutes&&void 0===o.canLoad||o.loadComponent&&!o._loadedComponent)&&i.push(this.preloadConfig(s,o)),(o.children||o._loadedRoutes)&&i.push(this.processRoutes(a,o.children??o._loadedRoutes))}return ot(i).pipe(x())}preloadConfig(t,r){return this.preloadingStrategy.preload(r,()=>{let i;i=r.loadChildren&&void 0===r.canLoad?this.loader.loadChildren(t,r):de(null);const o=i.pipe(ae(s=>null===s?de(void 0):(r._loadedRoutes=s.routes,r._loadedInjector=s.injector,this.processRoutes(s.injector??t,s.routes))));return r.loadComponent&&!r._loadedComponent?ot([o,this.loader.loadComponent(r)]).pipe(x()):o})}}return e.\u0275fac=function(t){return new(t||e)(te(Bt),te(yb),te(Tr),te(lw),te(Sp))},e.\u0275prov=ee({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const Mp=new ce("");let cw=(()=>{class e{constructor(t,r,i,o,s={}){this.urlSerializer=t,this.transitions=r,this.viewportScroller=i,this.zone=o,this.options=s,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},s.scrollPositionRestoration=s.scrollPositionRestoration||"disabled",s.anchorScrolling=s.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(t=>{t instanceof cp?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=t.navigationTrigger,this.restoredId=t.restoredState?t.restoredState.navigationId:0):t instanceof so&&(this.lastId=t.id,this.scheduleScrollEvent(t,this.urlSerializer.parse(t.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(t=>{t instanceof kC&&(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,r){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new kC(t,"popstate"===this.lastSource?this.store[this.restoredId]:null,r))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}}return e.\u0275fac=function(t){!function R_(){throw new Error("invalid")}()},e.\u0275prov=ee({token:e,factory:e.\u0275fac}),e})();var jn=(()=>((jn=jn||{})[jn.COMPLETE=0]="COMPLETE",jn[jn.FAILED=1]="FAILED",jn[jn.REDIRECTING=2]="REDIRECTING",jn))();const ys=!1;function xi(e,n){return{\u0275kind:e,\u0275providers:n}}const Ap=new ce("",{providedIn:"root",factory:()=>!1});function dw(){const e=Fe(Ir);return n=>{const t=e.get(Fc);if(n!==t.components[0])return;const r=e.get(Bt),i=e.get(fw);1===e.get(xp)&&r.initialNavigation(),e.get(hw,null,ye.Optional)?.setUpPreloading(),e.get(Mp,null,ye.Optional)?.init(),r.resetRootComponentType(t.componentTypes[0]),i.closed||(i.next(),i.unsubscribe())}}const fw=new ce(ys?"bootstrap done indicator":"",{factory:()=>new qt}),xp=new ce(ys?"initial navigation":"",{providedIn:"root",factory:()=>1});function sN(){let e=[];return e=ys?[{provide:sc,multi:!0,useFactory:()=>{const n=Fe(Bt);return()=>n.events.subscribe(t=>{console.group?.(`Router Event: ${t.constructor.name}`),console.log(function RR(e){if(!("type"in e))return`Unknown Router Event: ${e.constructor.name}`;switch(e.type){case 14:return`ActivationEnd(path: '${e.snapshot.routeConfig?.path||""}')`;case 13:return`ActivationStart(path: '${e.snapshot.routeConfig?.path||""}')`;case 12:return`ChildActivationEnd(path: '${e.snapshot.routeConfig?.path||""}')`;case 11:return`ChildActivationStart(path: '${e.snapshot.routeConfig?.path||""}')`;case 8:return`GuardsCheckEnd(id: ${e.id}, url: '${e.url}', urlAfterRedirects: '${e.urlAfterRedirects}', state: ${e.state}, shouldActivate: ${e.shouldActivate})`;case 7:return`GuardsCheckStart(id: ${e.id}, url: '${e.url}', urlAfterRedirects: '${e.urlAfterRedirects}', state: ${e.state})`;case 2:return`NavigationCancel(id: ${e.id}, url: '${e.url}')`;case 16:return`NavigationSkipped(id: ${e.id}, url: '${e.url}')`;case 1:return`NavigationEnd(id: ${e.id}, url: '${e.url}', urlAfterRedirects: '${e.urlAfterRedirects}')`;case 3:return`NavigationError(id: ${e.id}, url: '${e.url}', error: ${e.error})`;case 0:return`NavigationStart(id: ${e.id}, url: '${e.url}')`;case 6:return`ResolveEnd(id: ${e.id}, url: '${e.url}', urlAfterRedirects: '${e.urlAfterRedirects}', state: ${e.state})`;case 5:return`ResolveStart(id: ${e.id}, url: '${e.url}', urlAfterRedirects: '${e.urlAfterRedirects}', state: ${e.state})`;case 10:return`RouteConfigLoadEnd(path: ${e.route.path})`;case 9:return`RouteConfigLoadStart(path: ${e.route.path})`;case 4:return`RoutesRecognized(id: ${e.id}, url: '${e.url}', urlAfterRedirects: '${e.urlAfterRedirects}', state: ${e.state})`;case 15:return`Scroll(anchor: '${e.anchor}', position: '${e.position?`${e.position[0]}, ${e.position[1]}`:null}')`}}(t)),console.log(t),console.groupEnd?.()})}}]:[],xi(1,e)}const hw=new ce(ys?"router preloader":"");function aN(e){return xi(0,[{provide:hw,useExisting:tN},{provide:lw,useExisting:e}])}const nl=!1,pw=new ce(nl?"router duplicate forRoot guard":"ROUTER_FORROOT_GUARD"),lN=[Dh,{provide:Ha,useClass:rp},Bt,Ka,{provide:ao,useFactory:function uw(e){return e.routerState.root},deps:[Bt]},Sp,nl?{provide:Ap,useValue:!0}:[]];function cN(){return new Ib("Router",Bt)}let gw=(()=>{class e{constructor(t){}static forRoot(t,r){return{ngModule:e,providers:[lN,nl&&r?.enableTracing?sN().\u0275providers:[],{provide:vs,multi:!0,useValue:t},{provide:pw,useFactory:hN,deps:[[Bt,new ea,new ta]]},{provide:Cu,useValue:r||{}},r?.useHash?{provide:ro,useClass:Wx}:{provide:ro,useClass:Qb},{provide:Mp,useFactory:()=>{const e=Fe(c2),n=Fe(Mt),t=Fe(Cu),r=Fe(bu),i=Fe(Ha);return t.scrollOffset&&e.setOffset(t.scrollOffset),new cw(i,r,e,n,t)}},r?.preloadingStrategy?aN(r.preloadingStrategy).\u0275providers:[],{provide:Ib,multi:!0,useFactory:cN},r?.initialNavigation?pN(r):[],[{provide:mw,useFactory:dw},{provide:Tb,multi:!0,useExisting:mw}]]}}static forChild(t){return{ngModule:e,providers:[{provide:vs,multi:!0,useValue:t}]}}}return e.\u0275fac=function(t){return new(t||e)(te(pw,8))},e.\u0275mod=Kn({type:e}),e.\u0275inj=Rn({imports:[vp]}),e})();function hN(e){if(nl&&e)throw new q(4007,"The Router was provided more than once. This can happen if 'forRoot' is used outside of the root injector. Lazy loaded modules should use RouterModule.forChild() instead.");return"guarded"}function pN(e){return["disabled"===e.initialNavigation?xi(3,[{provide:Ac,multi:!0,useFactory:()=>{const n=Fe(Bt);return()=>{n.setUpLocationChangeListener()}}},{provide:xp,useValue:2}]).\u0275providers:[],"enabledBlocking"===e.initialNavigation?xi(2,[{provide:xp,useValue:0},{provide:Ac,multi:!0,deps:[Ir],useFactory:n=>{const t=n.get(zx,Promise.resolve());return()=>t.then(()=>new Promise(r=>{const i=n.get(Bt),o=n.get(fw);(function nN(e,n){e.events.pipe(tr(t=>t instanceof so||t instanceof cu||t instanceof up||t instanceof uu),we(t=>t instanceof so||t instanceof uu?jn.COMPLETE:t instanceof cu&&(0===t.code||1===t.code)?jn.REDIRECTING:jn.FAILED),tr(t=>t!==jn.REDIRECTING),_r(1)).subscribe(()=>{n()})})(i,()=>{r(!0)}),n.get(bu).afterPreactivation=()=>(r(!0),o.closed?de(void 0):o),i.initialNavigation()}))}}]).\u0275providers:[]]}const mw=new ce(nl?"Router Initializer":"");function lo(e){return!!e&&(e instanceof qe||Be(e.lift)&&Be(e.subscribe))}function _w(...e){const n=b(e),{args:t,keys:r}=rC(e),i=new qe(o=>{const{length:s}=t;if(!s)return void o.complete();const a=new Array(s);let l=s,c=s;for(let u=0;u{p||(p=!0,c--),a[u]=m},()=>l--,void 0,()=>{(!l||!p)&&(c||o.next(r?oC(r,a):a),o.complete())}))}});return n?i.pipe(iC(n)):i}const kp={now:()=>(kp.delegate||Date).now(),delegate:void 0};class mN extends qt{constructor(n=1/0,t=1/0,r=kp){super(),this._bufferSize=n,this._windowTime=t,this._timestampProvider=r,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=t===1/0,this._bufferSize=Math.max(1,n),this._windowTime=Math.max(1,t)}next(n){const{isStopped:t,_buffer:r,_infiniteTimeWindow:i,_timestampProvider:o,_windowTime:s}=this;t||(r.push(n),!i&&r.push(o.now()+s)),this._trimBuffer(),super.next(n)}_subscribe(n){this._throwIfClosed(),this._trimBuffer();const t=this._innerSubscribe(n),{_infiniteTimeWindow:r,_buffer:i}=this,o=i.slice();for(let s=0;snew mN(r,n,t),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:i})}class rl{}let yw=(()=>{class e extends rl{getTranslation(t){return de({})}}return e.\u0275fac=function(){let n;return function(r){return(n||(n=et(e)))(r||e)}}(),e.\u0275prov=ee({token:e,factory:e.\u0275fac}),e})();class Fp{}let bw=(()=>{class e{handle(t){return t.key}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=ee({token:e,factory:e.\u0275fac}),e})();function wu(e,n){if(e===n)return!0;if(null===e||null===n)return!1;if(e!=e&&n!=n)return!0;let i,o,s,t=typeof e;if(t==typeof n&&"object"==t){if(!Array.isArray(e)){if(Array.isArray(n))return!1;for(o in s=Object.create(null),e){if(!wu(e[o],n[o]))return!1;s[o]=!0}for(o in n)if(!(o in s)&&typeof n[o]<"u")return!1;return!0}if(!Array.isArray(n))return!1;if((i=e.length)==n.length){for(o=0;o{Rp(n[r])?r in e?t[r]=Cw(e[r],n[r]):Object.assign(t,{[r]:n[r]}):Object.assign(t,{[r]:n[r]})}),t}class Du{}let ww=(()=>{class e extends Du{constructor(){super(...arguments),this.templateMatcher=/{{\s?([^{}\s]*)\s?}}/g}interpolate(t,r){let i;return i="string"==typeof t?this.interpolateString(t,r):"function"==typeof t?this.interpolateFunction(t,r):t,i}getValue(t,r){let i="string"==typeof r?r.split("."):[r];r="";do{r+=i.shift(),!ki(t)||!ki(t[r])||"object"!=typeof t[r]&&i.length?i.length?r+=".":t=void 0:(t=t[r],r="")}while(i.length);return t}interpolateFunction(t,r){return t(r)}interpolateString(t,r){return r?t.replace(this.templateMatcher,(i,o)=>{let s=this.getValue(r,o);return ki(s)?s:i}):t}}return e.\u0275fac=function(){let n;return function(r){return(n||(n=et(e)))(r||e)}}(),e.\u0275prov=ee({token:e,factory:e.\u0275fac}),e})();class Eu{}let Dw=(()=>{class e extends Eu{compile(t,r){return t}compileTranslations(t,r){return t}}return e.\u0275fac=function(){let n;return function(r){return(n||(n=et(e)))(r||e)}}(),e.\u0275prov=ee({token:e,factory:e.\u0275fac}),e})();class Ew{constructor(){this.currentLang=this.defaultLang,this.translations={},this.langs=[],this.onTranslationChange=new ue,this.onLangChange=new ue,this.onDefaultLangChange=new ue}}const Op=new ce("USE_STORE"),Np=new ce("USE_DEFAULT_LANG"),Pp=new ce("DEFAULT_LANGUAGE"),Lp=new ce("USE_EXTEND");let Su=(()=>{class e{constructor(t,r,i,o,s,a=!0,l=!1,c=!1,u){this.store=t,this.currentLoader=r,this.compiler=i,this.parser=o,this.missingTranslationHandler=s,this.useDefaultLang=a,this.isolate=l,this.extend=c,this.pending=!1,this._onTranslationChange=new ue,this._onLangChange=new ue,this._onDefaultLangChange=new ue,this._langs=[],this._translations={},this._translationRequests={},u&&this.setDefaultLang(u)}get onTranslationChange(){return this.isolate?this._onTranslationChange:this.store.onTranslationChange}get onLangChange(){return this.isolate?this._onLangChange:this.store.onLangChange}get onDefaultLangChange(){return this.isolate?this._onDefaultLangChange:this.store.onDefaultLangChange}get defaultLang(){return this.isolate?this._defaultLang:this.store.defaultLang}set defaultLang(t){this.isolate?this._defaultLang=t:this.store.defaultLang=t}get currentLang(){return this.isolate?this._currentLang:this.store.currentLang}set currentLang(t){this.isolate?this._currentLang=t:this.store.currentLang=t}get langs(){return this.isolate?this._langs:this.store.langs}set langs(t){this.isolate?this._langs=t:this.store.langs=t}get translations(){return this.isolate?this._translations:this.store.translations}set translations(t){this.isolate?this._translations=t:this.store.translations=t}setDefaultLang(t){if(t===this.defaultLang)return;let r=this.retrieveTranslations(t);typeof r<"u"?(null==this.defaultLang&&(this.defaultLang=t),r.pipe(_r(1)).subscribe(i=>{this.changeDefaultLang(t)})):this.changeDefaultLang(t)}getDefaultLang(){return this.defaultLang}use(t){if(t===this.currentLang)return de(this.translations[t]);let r=this.retrieveTranslations(t);return typeof r<"u"?(this.currentLang||(this.currentLang=t),r.pipe(_r(1)).subscribe(i=>{this.changeLang(t)}),r):(this.changeLang(t),de(this.translations[t]))}retrieveTranslations(t){let r;return(typeof this.translations[t]>"u"||this.extend)&&(this._translationRequests[t]=this._translationRequests[t]||this.getTranslation(t),r=this._translationRequests[t]),r}getTranslation(t){this.pending=!0;const r=this.currentLoader.getTranslation(t).pipe(vw(1),_r(1));return this.loadingTranslations=r.pipe(we(i=>this.compiler.compileTranslations(i,t)),vw(1),_r(1)),this.loadingTranslations.subscribe({next:i=>{this.translations[t]=this.extend&&this.translations[t]?{...i,...this.translations[t]}:i,this.updateLangs(),this.pending=!1},error:i=>{this.pending=!1}}),r}setTranslation(t,r,i=!1){r=this.compiler.compileTranslations(r,t),this.translations[t]=(i||this.extend)&&this.translations[t]?Cw(this.translations[t],r):r,this.updateLangs(),this.onTranslationChange.emit({lang:t,translations:this.translations[t]})}getLangs(){return this.langs}addLangs(t){t.forEach(r=>{-1===this.langs.indexOf(r)&&this.langs.push(r)})}updateLangs(){this.addLangs(Object.keys(this.translations))}getParsedResult(t,r,i){let o;if(r instanceof Array){let s={},a=!1;for(let l of r)s[l]=this.getParsedResult(t,l,i),lo(s[l])&&(a=!0);return a?_w(r.map(c=>lo(s[c])?s[c]:de(s[c]))).pipe(we(c=>{let u={};return c.forEach((p,m)=>{u[r[m]]=p}),u})):s}if(t&&(o=this.parser.interpolate(this.parser.getValue(t,r),i)),typeof o>"u"&&null!=this.defaultLang&&this.defaultLang!==this.currentLang&&this.useDefaultLang&&(o=this.parser.interpolate(this.parser.getValue(this.translations[this.defaultLang],r),i)),typeof o>"u"){let s={key:r,translateService:this};typeof i<"u"&&(s.interpolateParams=i),o=this.missingTranslationHandler.handle(s)}return typeof o<"u"?o:r}get(t,r){if(!ki(t)||!t.length)throw new Error('Parameter "key" required');if(this.pending)return this.loadingTranslations.pipe(oi(i=>lo(i=this.getParsedResult(i,t,r))?i:de(i)));{let i=this.getParsedResult(this.translations[this.currentLang],t,r);return lo(i)?i:de(i)}}getStreamOnTranslationChange(t,r){if(!ki(t)||!t.length)throw new Error('Parameter "key" required');return Ba(eu(()=>this.get(t,r)),this.onTranslationChange.pipe(rr(i=>{const o=this.getParsedResult(i.translations,t,r);return"function"==typeof o.subscribe?o:de(o)})))}stream(t,r){if(!ki(t)||!t.length)throw new Error('Parameter "key" required');return Ba(eu(()=>this.get(t,r)),this.onLangChange.pipe(rr(i=>{const o=this.getParsedResult(i.translations,t,r);return lo(o)?o:de(o)})))}instant(t,r){if(!ki(t)||!t.length)throw new Error('Parameter "key" required');let i=this.getParsedResult(this.translations[this.currentLang],t,r);if(lo(i)){if(t instanceof Array){let o={};return t.forEach((s,a)=>{o[t[a]]=t[a]}),o}return t}return i}set(t,r,i=this.currentLang){this.translations[i][t]=this.compiler.compile(r,i),this.updateLangs(),this.onTranslationChange.emit({lang:i,translations:this.translations[i]})}changeLang(t){this.currentLang=t,this.onLangChange.emit({lang:t,translations:this.translations[t]}),null==this.defaultLang&&this.changeDefaultLang(t)}changeDefaultLang(t){this.defaultLang=t,this.onDefaultLangChange.emit({lang:t,translations:this.translations[t]})}reloadLang(t){return this.resetLang(t),this.getTranslation(t)}resetLang(t){this._translationRequests[t]=void 0,this.translations[t]=void 0}getBrowserLang(){if(typeof window>"u"||typeof window.navigator>"u")return;let t=window.navigator.languages?window.navigator.languages[0]:null;return t=t||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,typeof t>"u"?void 0:(-1!==t.indexOf("-")&&(t=t.split("-")[0]),-1!==t.indexOf("_")&&(t=t.split("_")[0]),t)}getBrowserCultureLang(){if(typeof window>"u"||typeof window.navigator>"u")return;let t=window.navigator.languages?window.navigator.languages[0]:null;return t=t||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,t}}return e.\u0275fac=function(t){return new(t||e)(te(Ew),te(rl),te(Eu),te(Du),te(Fp),te(Np),te(Op),te(Lp),te(Pp))},e.\u0275prov=ee({token:e,factory:e.\u0275fac}),e})(),Xe=(()=>{class e{constructor(t,r){this.translate=t,this._ref=r,this.value="",this.lastKey=null,this.lastParams=[]}updateValue(t,r,i){let o=s=>{this.value=void 0!==s?s:t,this.lastKey=t,this._ref.markForCheck()};if(i){let s=this.translate.getParsedResult(i,t,r);lo(s.subscribe)?s.subscribe(o):o(s)}this.translate.get(t,r).subscribe(o)}transform(t,...r){if(!t||!t.length)return t;if(wu(t,this.lastKey)&&wu(r,this.lastParams))return this.value;let i;if(ki(r[0])&&r.length)if("string"==typeof r[0]&&r[0].length){let o=r[0].replace(/(\')?([a-zA-Z0-9_]+)(\')?(\s)?:/g,'"$2":').replace(/:(\s)?(\')(.*?)(\')/g,':"$3"');try{i=JSON.parse(o)}catch{throw new SyntaxError(`Wrong parameter in TranslatePipe. Expected a valid Object, received: ${r[0]}`)}}else"object"==typeof r[0]&&!Array.isArray(r[0])&&(i=r[0]);return this.lastKey=t,this.lastParams=r,this.updateValue(t,i),this._dispose(),this.onTranslationChange||(this.onTranslationChange=this.translate.onTranslationChange.subscribe(o=>{this.lastKey&&o.lang===this.translate.currentLang&&(this.lastKey=null,this.updateValue(t,i,o.translations))})),this.onLangChange||(this.onLangChange=this.translate.onLangChange.subscribe(o=>{this.lastKey&&(this.lastKey=null,this.updateValue(t,i,o.translations))})),this.onDefaultLangChange||(this.onDefaultLangChange=this.translate.onDefaultLangChange.subscribe(()=>{this.lastKey&&(this.lastKey=null,this.updateValue(t,i))})),this.value}_dispose(){typeof this.onTranslationChange<"u"&&(this.onTranslationChange.unsubscribe(),this.onTranslationChange=void 0),typeof this.onLangChange<"u"&&(this.onLangChange.unsubscribe(),this.onLangChange=void 0),typeof this.onDefaultLangChange<"u"&&(this.onDefaultLangChange.unsubscribe(),this.onDefaultLangChange=void 0)}ngOnDestroy(){this._dispose()}}return e.\u0275fac=function(t){return new(t||e)(O(Su,16),O(Aa,16))},e.\u0275pipe=dn({name:"translate",type:e,pure:!1}),e.\u0275prov=ee({token:e,factory:e.\u0275fac}),e})(),_N=(()=>{class e{static forRoot(t={}){return{ngModule:e,providers:[t.loader||{provide:rl,useClass:yw},t.compiler||{provide:Eu,useClass:Dw},t.parser||{provide:Du,useClass:ww},t.missingTranslationHandler||{provide:Fp,useClass:bw},Ew,{provide:Op,useValue:t.isolate},{provide:Np,useValue:t.useDefaultLang},{provide:Lp,useValue:t.extend},{provide:Pp,useValue:t.defaultLanguage},Su]}}static forChild(t={}){return{ngModule:e,providers:[t.loader||{provide:rl,useClass:yw},t.compiler||{provide:Eu,useClass:Dw},t.parser||{provide:Du,useClass:ww},t.missingTranslationHandler||{provide:Fp,useClass:bw},{provide:Op,useValue:t.isolate},{provide:Np,useValue:t.useDefaultLang},{provide:Lp,useValue:t.extend},{provide:Pp,useValue:t.defaultLanguage},Su]}}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Kn({type:e}),e.\u0275inj=Rn({}),e})(),vN=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=De({type:e,selectors:[["app-page-not-found"]],decls:14,vars:9,consts:[["id","error"],[1,"error-page","container"],[1,"col-md-8","col-12","offset-md-2"],[1,"text-center"],["src","./assets/svg/error-404.svg","alt","Not Found",1,"img-error"],[1,"error-title"],[1,"fs-5","text-gray-600"],["href","index.html",1,"btn","btn-lg","btn-outline-primary","mt-3"]],template:function(t,r){1&t&&(f(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),S(4,"img",4),f(5,"h1",5),v(6),w(7,"translate"),h(),f(8,"p",6),v(9),w(10,"translate"),h(),f(11,"a",7),v(12),w(13,"translate"),h()()()()()),2&t&&(d(6),y(" ",D(7,3,"page-not-found")," "),d(3),y(" ",D(10,5,"page-not-found-description")," "),d(3),y(" ",D(13,7,"go-home")," "))},dependencies:[Xe]}),e})(),Sw=(()=>{class e{constructor(t,r){this._renderer=t,this._elementRef=r,this.onChange=i=>{},this.onTouched=()=>{}}setProperty(t,r){this._renderer.setProperty(this._elementRef.nativeElement,t,r)}registerOnTouched(t){this.onTouched=t}registerOnChange(t){this.onChange=t}setDisabledState(t){this.setProperty("disabled",t)}}return e.\u0275fac=function(t){return new(t||e)(O(Qr),O(Tn))},e.\u0275dir=Ce({type:e}),e})(),co=(()=>{class e extends Sw{}return e.\u0275fac=function(){let n;return function(r){return(n||(n=et(e)))(r||e)}}(),e.\u0275dir=Ce({type:e,features:[tt]}),e})();const Nr=new ce("NgValueAccessor"),yN={provide:Nr,useExisting:ge(()=>uo),multi:!0};let uo=(()=>{class e extends co{writeValue(t){this.setProperty("checked",t)}}return e.\u0275fac=function(){let n;return function(r){return(n||(n=et(e)))(r||e)}}(),e.\u0275dir=Ce({type:e,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(t,r){1&t&&$("change",function(o){return r.onChange(o.target.checked)})("blur",function(){return r.onTouched()})},features:[gt([yN]),tt]}),e})();const bN={provide:Nr,useExisting:ge(()=>or),multi:!0},wN=new ce("CompositionEventMode");let or=(()=>{class e extends Sw{constructor(t,r,i){super(t,r),this._compositionMode=i,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function CN(){const e=ni()?ni().getUserAgent():"";return/android (\d+)/.test(e.toLowerCase())}())}writeValue(t){this.setProperty("value",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 e.\u0275fac=function(t){return new(t||e)(O(Qr),O(Tn),O(wN,8))},e.\u0275dir=Ce({type:e,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,r){1&t&&$("input",function(o){return r._handleInput(o.target.value)})("blur",function(){return r.onTouched()})("compositionstart",function(){return r._compositionStart()})("compositionend",function(o){return r._compositionEnd(o.target.value)})},features:[gt([bN]),tt]}),e})();const DN=!1;function Fi(e){return null==e||("string"==typeof e||Array.isArray(e))&&0===e.length}function Tw(e){return null!=e&&"number"==typeof e.length}const an=new ce("NgValidators"),Ri=new ce("NgAsyncValidators"),EN=/^(?=.{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 He{static min(n){return function Iw(e){return n=>{if(Fi(n.value)||Fi(e))return null;const t=parseFloat(n.value);return!isNaN(t)&&t{if(Fi(n.value)||Fi(e))return null;const t=parseFloat(n.value);return!isNaN(t)&&t>e?{max:{max:e,actual:n.value}}:null}}(n)}static required(n){return function Aw(e){return Fi(e.value)?{required:!0}:null}(n)}static requiredTrue(n){return function xw(e){return!0===e.value?null:{required:!0}}(n)}static email(n){return function kw(e){return Fi(e.value)||EN.test(e.value)?null:{email:!0}}(n)}static minLength(n){return function Fw(e){return n=>Fi(n.value)||!Tw(n.value)?null:n.value.lengthTw(n.value)&&n.value.length>e?{maxlength:{requiredLength:e,actualLength:n.value.length}}:null}(n)}static pattern(n){return function Ow(e){if(!e)return Tu;let n,t;return"string"==typeof e?(t="","^"!==e.charAt(0)&&(t+="^"),t+=e,"$"!==e.charAt(e.length-1)&&(t+="$"),n=new RegExp(t)):(t=e.toString(),n=e),r=>{if(Fi(r.value))return null;const i=r.value;return n.test(i)?null:{pattern:{requiredPattern:t,actualValue:i}}}}(n)}static nullValidator(n){return null}static compose(n){return jw(n)}static composeAsync(n){return Uw(n)}}function Tu(e){return null}function Nw(e){return null!=e}function Pw(e){const n=ma(e)?ot(e):e;if(DN&&!Rf(n)){let t="Expected async validator to return Promise or Observable.";throw"object"==typeof e&&(t+=" Are you using a synchronous validator where an async validator is expected?"),new q(-1101,t)}return n}function Lw(e){let n={};return e.forEach(t=>{n=null!=t?{...n,...t}:n}),0===Object.keys(n).length?null:n}function Vw(e,n){return n.map(t=>t(e))}function Bw(e){return e.map(n=>function SN(e){return!e.validate}(n)?n:t=>n.validate(t))}function jw(e){if(!e)return null;const n=e.filter(Nw);return 0==n.length?null:function(t){return Lw(Vw(t,n))}}function Vp(e){return null!=e?jw(Bw(e)):null}function Uw(e){if(!e)return null;const n=e.filter(Nw);return 0==n.length?null:function(t){return _w(Vw(t,n).map(Pw)).pipe(we(Lw))}}function Bp(e){return null!=e?Uw(Bw(e)):null}function $w(e,n){return null===e?[n]:Array.isArray(e)?[...e,n]:[e,n]}function Hw(e){return e._rawValidators}function Gw(e){return e._rawAsyncValidators}function jp(e){return e?Array.isArray(e)?e:[e]:[]}function Iu(e,n){return Array.isArray(e)?e.includes(n):e===n}function zw(e,n){const t=jp(n);return jp(e).forEach(i=>{Iu(t,i)||t.push(i)}),t}function qw(e,n){return jp(n).filter(t=>!Iu(e,t))}class Ww{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(n){this._rawValidators=n||[],this._composedValidatorFn=Vp(this._rawValidators)}_setAsyncValidators(n){this._rawAsyncValidators=n||[],this._composedAsyncValidatorFn=Bp(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(n){this._onDestroyCallbacks.push(n)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(n=>n()),this._onDestroyCallbacks=[]}reset(n){this.control&&this.control.reset(n)}hasError(n,t){return!!this.control&&this.control.hasError(n,t)}getError(n,t){return this.control?this.control.getError(n,t):null}}class vn extends Ww{get formDirective(){return null}get path(){return null}}class Oi extends Ww{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class Yw{constructor(n){this._cd=n}get isTouched(){return!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return!!this._cd?.submitted}}let Pr=(()=>{class e extends Yw{constructor(t){super(t)}}return e.\u0275fac=function(t){return new(t||e)(O(Oi,2))},e.\u0275dir=Ce({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(t,r){2&t&&Qe("ng-untouched",r.isUntouched)("ng-touched",r.isTouched)("ng-pristine",r.isPristine)("ng-dirty",r.isDirty)("ng-valid",r.isValid)("ng-invalid",r.isInvalid)("ng-pending",r.isPending)},features:[tt]}),e})(),Lr=(()=>{class e extends Yw{constructor(t){super(t)}}return e.\u0275fac=function(t){return new(t||e)(O(vn,10))},e.\u0275dir=Ce({type:e,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(t,r){2&t&&Qe("ng-untouched",r.isUntouched)("ng-touched",r.isTouched)("ng-pristine",r.isPristine)("ng-dirty",r.isDirty)("ng-valid",r.isValid)("ng-invalid",r.isInvalid)("ng-pending",r.isPending)("ng-submitted",r.isSubmitted)},features:[tt]}),e})();function Kw(e,n){return e?`with name: '${n}'`:`at index: ${n}`}const Hp=!1,il="VALID",Au="INVALID",bs="PENDING",ol="DISABLED";function Gp(e){return(xu(e)?e.validators:e)||null}function zp(e,n){return(xu(n)?n.asyncValidators:e)||null}function xu(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}class Zw{constructor(n,t){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._assignValidators(n),this._assignAsyncValidators(t)}get validator(){return this._composedValidatorFn}set validator(n){this._rawValidators=this._composedValidatorFn=n}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(n){this._rawAsyncValidators=this._composedAsyncValidatorFn=n}get parent(){return this._parent}get valid(){return this.status===il}get invalid(){return this.status===Au}get pending(){return this.status==bs}get disabled(){return this.status===ol}get enabled(){return this.status!==ol}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(n){this._assignValidators(n)}setAsyncValidators(n){this._assignAsyncValidators(n)}addValidators(n){this.setValidators(zw(n,this._rawValidators))}addAsyncValidators(n){this.setAsyncValidators(zw(n,this._rawAsyncValidators))}removeValidators(n){this.setValidators(qw(n,this._rawValidators))}removeAsyncValidators(n){this.setAsyncValidators(qw(n,this._rawAsyncValidators))}hasValidator(n){return Iu(this._rawValidators,n)}hasAsyncValidator(n){return Iu(this._rawAsyncValidators,n)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(n={}){this.touched=!0,this._parent&&!n.onlySelf&&this._parent.markAsTouched(n)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(n=>n.markAllAsTouched())}markAsUntouched(n={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(t=>{t.markAsUntouched({onlySelf:!0})}),this._parent&&!n.onlySelf&&this._parent._updateTouched(n)}markAsDirty(n={}){this.pristine=!1,this._parent&&!n.onlySelf&&this._parent.markAsDirty(n)}markAsPristine(n={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(t=>{t.markAsPristine({onlySelf:!0})}),this._parent&&!n.onlySelf&&this._parent._updatePristine(n)}markAsPending(n={}){this.status=bs,!1!==n.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!n.onlySelf&&this._parent.markAsPending(n)}disable(n={}){const t=this._parentMarkedDirty(n.onlySelf);this.status=ol,this.errors=null,this._forEachChild(r=>{r.disable({...n,onlySelf:!0})}),this._updateValue(),!1!==n.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...n,skipPristineCheck:t}),this._onDisabledChange.forEach(r=>r(!0))}enable(n={}){const t=this._parentMarkedDirty(n.onlySelf);this.status=il,this._forEachChild(r=>{r.enable({...n,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:n.emitEvent}),this._updateAncestors({...n,skipPristineCheck:t}),this._onDisabledChange.forEach(r=>r(!1))}_updateAncestors(n){this._parent&&!n.onlySelf&&(this._parent.updateValueAndValidity(n),n.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(n){this._parent=n}getRawValue(){return this.value}updateValueAndValidity(n={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===il||this.status===bs)&&this._runAsyncValidator(n.emitEvent)),!1!==n.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!n.onlySelf&&this._parent.updateValueAndValidity(n)}_updateTreeValidity(n={emitEvent:!0}){this._forEachChild(t=>t._updateTreeValidity(n)),this.updateValueAndValidity({onlySelf:!0,emitEvent:n.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?ol:il}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(n){if(this.asyncValidator){this.status=bs,this._hasOwnPendingAsyncValidator=!0;const t=Pw(this.asyncValidator(this));this._asyncValidationSubscription=t.subscribe(r=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(r,{emitEvent:n})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(n,t={}){this.errors=n,this._updateControlsErrors(!1!==t.emitEvent)}get(n){let t=n;return null==t||(Array.isArray(t)||(t=t.split(".")),0===t.length)?null:t.reduce((r,i)=>r&&r._find(i),this)}getError(n,t){const r=t?this.get(t):this;return r&&r.errors?r.errors[n]:null}hasError(n,t){return!!this.getError(n,t)}get root(){let n=this;for(;n._parent;)n=n._parent;return n}_updateControlsErrors(n){this.status=this._calculateStatus(),n&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(n)}_initObservables(){this.valueChanges=new ue,this.statusChanges=new ue}_calculateStatus(){return this._allControlsDisabled()?ol:this.errors?Au:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(bs)?bs:this._anyControlsHaveStatus(Au)?Au:il}_anyControlsHaveStatus(n){return this._anyControls(t=>t.status===n)}_anyControlsDirty(){return this._anyControls(n=>n.dirty)}_anyControlsTouched(){return this._anyControls(n=>n.touched)}_updatePristine(n={}){this.pristine=!this._anyControlsDirty(),this._parent&&!n.onlySelf&&this._parent._updatePristine(n)}_updateTouched(n={}){this.touched=this._anyControlsTouched(),this._parent&&!n.onlySelf&&this._parent._updateTouched(n)}_registerOnCollectionChange(n){this._onCollectionChange=n}_setUpdateStrategy(n){xu(n)&&null!=n.updateOn&&(this._updateOn=n.updateOn)}_parentMarkedDirty(n){return!n&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(n){return null}_assignValidators(n){this._rawValidators=Array.isArray(n)?n.slice():n,this._composedValidatorFn=function FN(e){return Array.isArray(e)?Vp(e):e||null}(this._rawValidators)}_assignAsyncValidators(n){this._rawAsyncValidators=Array.isArray(n)?n.slice():n,this._composedAsyncValidatorFn=function RN(e){return Array.isArray(e)?Bp(e):e||null}(this._rawAsyncValidators)}}class An extends Zw{constructor(n,t,r){super(Gp(t),zp(r,t)),this.controls=n,this._initObservables(),this._setUpdateStrategy(t),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(n,t){return this.controls[n]?this.controls[n]:(this.controls[n]=t,t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange),t)}addControl(n,t,r={}){this.registerControl(n,t),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}removeControl(n,t={}){this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),delete this.controls[n],this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}setControl(n,t,r={}){this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),delete this.controls[n],t&&this.registerControl(n,t),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}contains(n){return this.controls.hasOwnProperty(n)&&this.controls[n].enabled}setValue(n,t={}){(function Xw(e,n,t){e._forEachChild((r,i)=>{if(void 0===t[i])throw new q(1002,Hp?function kN(e,n){return`Must supply a value for form control ${Kw(e,n)}`}(n,i):"")})})(this,!0,n),Object.keys(n).forEach(r=>{(function Qw(e,n,t){const r=e.controls;if(!(n?Object.keys(r):r).length)throw new q(1e3,Hp?function AN(e){return`\n There are no form controls registered with this ${e?"group":"array"} yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n `}(n):"");if(!r[t])throw new q(1001,Hp?function xN(e,n){return`Cannot find form control ${Kw(e,n)}`}(n,t):"")})(this,!0,r),this.controls[r].setValue(n[r],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)}patchValue(n,t={}){null!=n&&(Object.keys(n).forEach(r=>{const i=this.controls[r];i&&i.patchValue(n[r],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t))}reset(n={},t={}){this._forEachChild((r,i)=>{r.reset(n[i],{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t),this._updateTouched(t),this.updateValueAndValidity(t)}getRawValue(){return this._reduceChildren({},(n,t,r)=>(n[r]=t.getRawValue(),n))}_syncPendingControls(){let n=this._reduceChildren(!1,(t,r)=>!!r._syncPendingControls()||t);return n&&this.updateValueAndValidity({onlySelf:!0}),n}_forEachChild(n){Object.keys(this.controls).forEach(t=>{const r=this.controls[t];r&&n(r,t)})}_setUpControls(){this._forEachChild(n=>{n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(n){for(const[t,r]of Object.entries(this.controls))if(this.contains(t)&&n(r))return!0;return!1}_reduceValue(){return this._reduceChildren({},(t,r,i)=>((r.enabled||this.disabled)&&(t[i]=r.value),t))}_reduceChildren(n,t){let r=n;return this._forEachChild((i,o)=>{r=t(r,i,o)}),r}_allControlsDisabled(){for(const n of Object.keys(this.controls))if(this.controls[n].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(n){return this.controls.hasOwnProperty(n)?this.controls[n]:null}}const Cs=new ce("CallSetDisabledState",{providedIn:"root",factory:()=>ku}),ku="always";function sl(e,n,t=ku){qp(e,n),n.valueAccessor.writeValue(e.value),(e.disabled||"always"===t)&&n.valueAccessor.setDisabledState?.(e.disabled),function PN(e,n){n.valueAccessor.registerOnChange(t=>{e._pendingValue=t,e._pendingChange=!0,e._pendingDirty=!0,"change"===e.updateOn&&Jw(e,n)})}(e,n),function VN(e,n){const t=(r,i)=>{n.valueAccessor.writeValue(r),i&&n.viewToModelUpdate(r)};e.registerOnChange(t),n._registerOnDestroy(()=>{e._unregisterOnChange(t)})}(e,n),function LN(e,n){n.valueAccessor.registerOnTouched(()=>{e._pendingTouched=!0,"blur"===e.updateOn&&e._pendingChange&&Jw(e,n),"submit"!==e.updateOn&&e.markAsTouched()})}(e,n),function NN(e,n){if(n.valueAccessor.setDisabledState){const t=r=>{n.valueAccessor.setDisabledState(r)};e.registerOnDisabledChange(t),n._registerOnDestroy(()=>{e._unregisterOnDisabledChange(t)})}}(e,n)}function Ru(e,n,t=!0){const r=()=>{};n.valueAccessor&&(n.valueAccessor.registerOnChange(r),n.valueAccessor.registerOnTouched(r)),Nu(e,n),e&&(n._invokeOnDestroyCallbacks(),e._registerOnCollectionChange(()=>{}))}function Ou(e,n){e.forEach(t=>{t.registerOnValidatorChange&&t.registerOnValidatorChange(n)})}function qp(e,n){const t=Hw(e);null!==n.validator?e.setValidators($w(t,n.validator)):"function"==typeof t&&e.setValidators([t]);const r=Gw(e);null!==n.asyncValidator?e.setAsyncValidators($w(r,n.asyncValidator)):"function"==typeof r&&e.setAsyncValidators([r]);const i=()=>e.updateValueAndValidity();Ou(n._rawValidators,i),Ou(n._rawAsyncValidators,i)}function Nu(e,n){let t=!1;if(null!==e){if(null!==n.validator){const i=Hw(e);if(Array.isArray(i)&&i.length>0){const o=i.filter(s=>s!==n.validator);o.length!==i.length&&(t=!0,e.setValidators(o))}}if(null!==n.asyncValidator){const i=Gw(e);if(Array.isArray(i)&&i.length>0){const o=i.filter(s=>s!==n.asyncValidator);o.length!==i.length&&(t=!0,e.setAsyncValidators(o))}}}const r=()=>{};return Ou(n._rawValidators,r),Ou(n._rawAsyncValidators,r),t}function Jw(e,n){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),n.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}function nD(e,n){const t=e.indexOf(n);t>-1&&e.splice(t,1)}function rD(e){return"object"==typeof e&&null!==e&&2===Object.keys(e).length&&"value"in e&&"disabled"in e}const oe=class extends Zw{constructor(n=null,t,r){super(Gp(t),zp(r,t)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(n),this._setUpdateStrategy(t),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),xu(t)&&(t.nonNullable||t.initialValueIsDefault)&&(this.defaultValue=rD(n)?n.value:n)}setValue(n,t={}){this.value=this._pendingValue=n,this._onChange.length&&!1!==t.emitModelToViewChange&&this._onChange.forEach(r=>r(this.value,!1!==t.emitViewToModelChange)),this.updateValueAndValidity(t)}patchValue(n,t={}){this.setValue(n,t)}reset(n=this.defaultValue,t={}){this._applyFormState(n),this.markAsPristine(t),this.markAsUntouched(t),this.setValue(this.value,t),this._pendingChange=!1}_updateValue(){}_anyControls(n){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(n){this._onChange.push(n)}_unregisterOnChange(n){nD(this._onChange,n)}registerOnDisabledChange(n){this._onDisabledChange.push(n)}_unregisterOnDisabledChange(n){nD(this._onDisabledChange,n)}_forEachChild(n){}_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(n){rD(n)?(this.value=this._pendingValue=n.value,n.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=n}};let Vr=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Ce({type:e,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),e})();const WN={provide:Nr,useExisting:ge(()=>Xp),multi:!0};let Xp=(()=>{class e extends co{writeValue(t){this.setProperty("value",t??"")}registerOnChange(t){this.onChange=r=>{t(""==r?null:parseFloat(r))}}}return e.\u0275fac=function(){let n;return function(r){return(n||(n=et(e)))(r||e)}}(),e.\u0275dir=Ce({type:e,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(t,r){1&t&&$("input",function(o){return r.onChange(o.target.value)})("blur",function(){return r.onTouched()})},features:[gt([WN]),tt]}),e})(),lD=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Kn({type:e}),e.\u0275inj=Rn({}),e})();const Zp=new ce("NgModelWithFormControlWarning"),ZN={provide:vn,useExisting:ge(()=>sr)};let sr=(()=>{class e extends vn{constructor(t,r,i){super(),this.callSetDisabledState=i,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new ue,this._setValidators(t),this._setAsyncValidators(r)}ngOnChanges(t){this._checkFormPresent(),t.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(Nu(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(t){const r=this.form.get(t.path);return sl(r,t,this.callSetDisabledState),r.updateValueAndValidity({emitEvent:!1}),this.directives.push(t),r}getControl(t){return this.form.get(t.path)}removeControl(t){Ru(t.control||null,t,!1),function $N(e,n){const t=e.indexOf(n);t>-1&&e.splice(t,1)}(this.directives,t)}addFormGroup(t){this._setUpFormContainer(t)}removeFormGroup(t){this._cleanUpFormContainer(t)}getFormGroup(t){return this.form.get(t.path)}addFormArray(t){this._setUpFormContainer(t)}removeFormArray(t){this._cleanUpFormContainer(t)}getFormArray(t){return this.form.get(t.path)}updateModel(t,r){this.form.get(t.path).setValue(r)}onSubmit(t){return this.submitted=!0,function tD(e,n){e._syncPendingControls(),n.forEach(t=>{const r=t.control;"submit"===r.updateOn&&r._pendingChange&&(t.viewToModelUpdate(r._pendingValue),r._pendingChange=!1)})}(this.form,this.directives),this.ngSubmit.emit(t),"dialog"===t?.target?.method}onReset(){this.resetForm()}resetForm(t){this.form.reset(t),this.submitted=!1}_updateDomValue(){this.directives.forEach(t=>{const r=t.control,i=this.form.get(t.path);r!==i&&(Ru(r||null,t),(e=>e instanceof oe)(i)&&(sl(i,t,this.callSetDisabledState),t.control=i))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(t){const r=this.form.get(t.path);(function eD(e,n){qp(e,n)})(r,t),r.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(t){if(this.form){const r=this.form.get(t.path);r&&function BN(e,n){return Nu(e,n)}(r,t)&&r.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){qp(this.form,this),this._oldForm&&Nu(this._oldForm,this)}_checkFormPresent(){}}return e.\u0275fac=function(t){return new(t||e)(O(an,10),O(Ri,10),O(Cs,8))},e.\u0275dir=Ce({type:e,selectors:[["","formGroup",""]],hostBindings:function(t,r){1&t&&$("submit",function(o){return r.onSubmit(o)})("reset",function(){return r.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[gt([ZN]),tt,Dn]}),e})();const tP={provide:Oi,useExisting:ge(()=>vr)};let vr=(()=>{class e extends Oi{set isDisabled(t){}constructor(t,r,i,o,s){super(),this._ngModelWarningConfig=s,this._added=!1,this.update=new ue,this._ngModelWarningSent=!1,this._parent=t,this._setValidators(r),this._setAsyncValidators(i),this.valueAccessor=function Kp(e,n){if(!n)return null;let t,r,i;return Array.isArray(n),n.forEach(o=>{o.constructor===or?t=o:function UN(e){return Object.getPrototypeOf(e.constructor)===co}(o)?r=o:i=o}),i||r||t||null}(0,o)}ngOnChanges(t){this._added||this._setUpControl(),function Yp(e,n){if(!e.hasOwnProperty("model"))return!1;const t=e.model;return!!t.isFirstChange()||!Object.is(n,t.currentValue)}(t,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}get path(){return function Fu(e,n){return[...n.path,e]}(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this._added=!0}}return e._ngModelWarningSentOnce=!1,e.\u0275fac=function(t){return new(t||e)(O(vn,13),O(an,10),O(Ri,10),O(Nr,10),O(Zp,8))},e.\u0275dir=Ce({type:e,selectors:[["","formControlName",""]],inputs:{name:["formControlName","name"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[gt([tP]),tt,Dn]}),e})();const nP={provide:Nr,useExisting:ge(()=>ll),multi:!0};function hD(e,n){return null==e?`${n}`:(n&&"object"==typeof n&&(n="Object"),`${e}: ${n}`.slice(0,50))}let ll=(()=>{class e extends co{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(t){this._compareWith=t}writeValue(t){this.value=t;const i=hD(this._getOptionId(t),t);this.setProperty("value",i)}registerOnChange(t){this.onChange=r=>{this.value=this._getOptionValue(r),t(this.value)}}_registerOption(){return(this._idCounter++).toString()}_getOptionId(t){for(const r of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(r),t))return r;return null}_getOptionValue(t){const r=function rP(e){return e.split(":")[0]}(t);return this._optionMap.has(r)?this._optionMap.get(r):t}}return e.\u0275fac=function(){let n;return function(r){return(n||(n=et(e)))(r||e)}}(),e.\u0275dir=Ce({type:e,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(t,r){1&t&&$("change",function(o){return r.onChange(o.target.value)})("blur",function(){return r.onTouched()})},inputs:{compareWith:"compareWith"},features:[gt([nP]),tt]}),e})(),Pu=(()=>{class e{constructor(t,r,i){this._element=t,this._renderer=r,this._select=i,this._select&&(this.id=this._select._registerOption())}set ngValue(t){null!=this._select&&(this._select._optionMap.set(this.id,t),this._setElementValue(hD(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 e.\u0275fac=function(t){return new(t||e)(O(Tn),O(Qr),O(ll,9))},e.\u0275dir=Ce({type:e,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),e})();const iP={provide:Nr,useExisting:ge(()=>tg),multi:!0};function pD(e,n){return null==e?`${n}`:("string"==typeof n&&(n=`'${n}'`),n&&"object"==typeof n&&(n="Object"),`${e}: ${n}`.slice(0,50))}let tg=(()=>{class e extends co{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(t){this._compareWith=t}writeValue(t){let r;if(this.value=t,Array.isArray(t)){const i=t.map(o=>this._getOptionId(o));r=(o,s)=>{o._setSelected(i.indexOf(s.toString())>-1)}}else r=(i,o)=>{i._setSelected(!1)};this._optionMap.forEach(r)}registerOnChange(t){this.onChange=r=>{const i=[],o=r.selectedOptions;if(void 0!==o){const s=o;for(let a=0;a{class e{constructor(t,r,i){this._element=t,this._renderer=r,this._select=i,this._select&&(this.id=this._select._registerOption(this))}set ngValue(t){null!=this._select&&(this._value=t,this._setElementValue(pD(this.id,t)),this._select.writeValue(this._select.value))}set value(t){this._select?(this._value=t,this._setElementValue(pD(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 e.\u0275fac=function(t){return new(t||e)(O(Tn),O(Qr),O(tg,9))},e.\u0275dir=Ce({type:e,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),e})(),pP=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Kn({type:e}),e.\u0275inj=Rn({imports:[lD]}),e})(),mP=(()=>{class e{static withConfig(t){return{ngModule:e,providers:[{provide:Zp,useValue:t.warnOnNgModelWithFormControl??"always"},{provide:Cs,useValue:t.callSetDisabledState??ku}]}}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Kn({type:e}),e.\u0275inj=Rn({imports:[pP]}),e})();const Gt=Object.assign({verbose:!0,production:!1},{eelCallRefreshInterval:1e3,fullDateFormat:"H:mm dd/MM/yyyy ",dateFormat:"dd/MM/yyyy",timeFormat:"H:mm",warningDateDayBefore:7,dangerDateDayBefore:3,alertTimeout:5e3,updateLastVisitInterval:6e4,authRequiredRedirectRoute:"/login",basePriorityValue:10,appName:"Taskup",timeBeforeClose:1e3});function ED(e,n,t,r,i,o,s){try{var a=e[o](s),l=a.value}catch(c){return void t(c)}a.done?n(l):Promise.resolve(l).then(r,i)}function bt(e){return function(){var n=this,t=arguments;return new Promise(function(r,i){var o=e.apply(n,t);function s(l){ED(o,r,i,s,a,"next",l)}function a(l){ED(o,r,i,s,a,"throw",l)}s(void 0)})}}class vP extends Ct{constructor(n,t){super()}schedule(n,t=0){return this}}const Vu={setInterval(e,n,...t){const{delegate:r}=Vu;return r?.setInterval?r.setInterval(e,n,...t):setInterval(e,n,...t)},clearInterval(e){const{delegate:n}=Vu;return(n?.clearInterval||clearInterval)(e)},delegate:void 0};class cl{constructor(n,t=cl.now){this.schedulerActionCtor=n,this.now=t}schedule(n,t=0,r){return new this.schedulerActionCtor(this,n).schedule(r,t)}}cl.now=kp.now;const SD=new class bP extends cl{constructor(n,t=cl.now){super(n,t),this.actions=[],this._active=!1}flush(n){const{actions:t}=this;if(this._active)return void t.push(n);let r;this._active=!0;do{if(r=n.execute(n.state,n.delay))break}while(n=t.shift());if(this._active=!1,r){for(;n=t.shift();)n.unsubscribe();throw r}}}(class yP extends vP{constructor(n,t){super(n,t),this.scheduler=n,this.work=t,this.pending=!1}schedule(n,t=0){var r;if(this.closed)return this;this.state=n;const i=this.id,o=this.scheduler;return null!=i&&(this.id=this.recycleAsyncId(o,i,t)),this.pending=!0,this.delay=t,this.id=null!==(r=this.id)&&void 0!==r?r:this.requestAsyncId(o,this.id,t),this}requestAsyncId(n,t,r=0){return Vu.setInterval(n.flush.bind(n,this),r)}recycleAsyncId(n,t,r=0){if(null!=r&&this.delay===r&&!1===this.pending)return t;null!=t&&Vu.clearInterval(t)}execute(n,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const r=this._execute(n,t);if(r)return r;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(n,t){let i,r=!1;try{this.work(n)}catch(o){r=!0,i=o||new Error("Scheduled action threw falsy error")}if(r)return this.unsubscribe(),i}unsubscribe(){if(!this.closed){const{id:n,scheduler:t}=this,{actions:r}=t;this.work=this.state=this.scheduler=null,this.pending=!1,lt(r,this),null!=n&&(this.id=this.recycleAsyncId(t,n,null)),this.delay=null,super.unsubscribe()}}}),CP=SD;function rg(e=0,n=SD){return e<0&&(e=0),function DP(e=0,n,t=CP){let r=-1;return null!=n&&(z(n)?t=n:r=n),new qe(i=>{let o=function wP(e){return e instanceof Date&&!isNaN(e)}(e)?+e-t.now():e;o<0&&(o=0);let s=0;return t.schedule(function(){i.closed||(i.next(s++),0<=r?this.schedule(void 0,r):i.complete())},o)})}(e,e,n)}let Et=(()=>{class e{constructor(){}static logError(...t){Gt.verbose&&console.error("E:",...t)}static logInfo(...t){Gt.verbose&&console.info("I:",...t)}static logWarning(...t){Gt.verbose&&console.warn("W:",...t)}static logSuccess(...t){Gt.verbose&&console.log("S:",...t)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=ee({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),ws=(()=>{class e{constructor(t){this.router=t,this.max_attempt=3,this.interval=10,this.logger_except=["auth_is_logged"]}callWithOptions(t,r,...i){var o=this;return bt(function*(){return new qe(null===t.take?a=>{let l=rg(t.interval).pipe(tr(()=>eel&&eel._websocket.readyState===WebSocket.OPEN)).subscribe(o.get_observable_body(a,r,...i));t.obs?.subscribe({next:c=>{c&&l.unsubscribe()}})}:a=>{rg(t.interval).pipe(tr(()=>eel&&eel._websocket.readyState===WebSocket.OPEN),_r(t.take)).subscribe(o.get_observable_body(a,r,...i))})})()}call(t,...r){var i=this;return bt(function*(){return new qe(s=>{rg(10).pipe(tr(()=>eel&&eel._websocket.readyState===WebSocket.OPEN),_r(1)).subscribe(i.get_observable_body(s,t,...r))})})()}get_observable_body(t,r,...i){var s,o=this;return{next:(s=bt(function*(){o.logger_except.includes(r)||Et.logSuccess("WebSocket Connection is OPEN!");let a=0;const l=function(){var c=bt(function*(){a+=1;try{o.logger_except.includes(r)||Et.logInfo("Eel Call:",r);let u=yield eel[r](...i)();o.logger_except.includes(r)||Et.logInfo("Eel Result:",u),t.next(u)}catch(u){Et.logError(String(u)),t.error(u),a<=o.max_attempt&&setTimeout(l,1e3)}});return function(){return c.apply(this,arguments)}}();return yield l()}),function(){return s.apply(this,arguments)}),error:s=>{Et.logError(s),t.error(s),this.router.navigate(["/server-error"])}}}}return e.\u0275fac=function(t){return new(t||e)(te(Bt))},e.\u0275prov=ee({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),EP=(()=>{class e{constructor(t){this.eelService=t,this.GET_DATA="dashboard_get_data"}getData(){return this.eelService.call(this.GET_DATA)}}return e.\u0275fac=function(t){return new(t||e)(te(ws))},e.\u0275prov=ee({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),Un=(()=>{class e{get loggedUser(){return this._loggedUser}constructor(t){this.eelService=t,this.LOGIN="auth_login",this.LOGOUT="auth_logout",this.ME="auth_me",this.IS_LOGGED="auth_is_logged",this.REFRESH_ME="auth_refresh_me",this.UPDATE_LAST_VISIT="auth_update_last_visit",this._loggedUser=null,this.emitMeChangeSource=new nr(null)}login(t,r,i=!1,o=!0){return new Promise((a,l)=>{this.eelService.call(this.LOGIN,t,r,i).then(c=>{c.subscribe({next:u=>{u||l(),o&&this.refreshMe(),a(!0)},error:()=>l()})}).catch(c=>{l()})})}logout(t=!0){return new Promise((i,o)=>{this.eelService.call(this.LOGOUT).then(s=>{s.subscribe({next:a=>{t&&this.refreshMe(),i(!0)},error:()=>o()})}).catch(s=>{o()})})}me(){return this.eelService.call(this.ME)}observeMe(){return this.emitMeChangeSource.asObservable()}refreshMe(){this.eelService.call(this.REFRESH_ME).then(t=>{t.subscribe({next:r=>{this.me().then(i=>{i.subscribe({next:o=>{this._loggedUser=o,this.emitMeChangeSource.next(o)},error:o=>{Et.logError(o)}})}).catch(i=>{Et.logError(i)})}})})}isLogged(){return this.eelService.call(this.IS_LOGGED)}observeIsLogged(t=!1){let r=!1,i={take:null,interval:Gt.eelCallRefreshInterval,obs:new qe(s=>{setInterval(()=>{s.next(r)},Gt.eelCallRefreshInterval+1)})};return new Promise((s,a)=>{this.eelService.callWithOptions(i,this.IS_LOGGED).then(l=>{l.subscribe({next:c=>{r=c&&t}}),s(l)}).catch(l=>{a()})})}updateLastVisit(){this.eelService.call(this.UPDATE_LAST_VISIT).then(t=>{t.subscribe({next:r=>{Et.logInfo("Updated last visit of logged user"),this.refreshMe()}})})}}return e.\u0275fac=function(t){return new(t||e)(te(ws))},e.\u0275prov=ee({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),ho=(()=>{class e{constructor(t){this.eelService=t}all(){var t=this;return bt(function*(){return t.eelService.call(t.ALL)})()}find(t){var r=this;return bt(function*(){return r.eelService.call(r.FIND,t)})()}deleteById(t){var r=this;return bt(function*(){return r.eelService.call(r.DELETE_BY_ID,t)})()}update(t,r){var i=this;return bt(function*(){return i.eelService.call(i.UPDATE,t,r)})()}create(t){var r=this;return bt(function*(){return r.eelService.call(r.CREATE,t)})()}filter(t,r="="){var i=this;return bt(function*(){return i.eelService.call(i.FILTER,t,r)})()}checkAlreadyUsed(t,r){var i=this;return bt(function*(){return i.eelService.call(i.CHECK_ALREADY_USED,t,r)})()}}return e.\u0275fac=function(t){return new(t||e)(te(ws))},e.\u0275prov=ee({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),ul=(()=>{class e extends ho{constructor(){super(...arguments),this.ALL="task_all",this.FIND="task_find",this.DELETE_BY_ID="task_delete_by_id",this.UPDATE="task_update",this.REMOVE_ASSIGNMENT="task_remove_assignment",this.ADD_ASSIGNMENT="task_add_assignment",this.ADD_LABEL="task_add_label",this.REMOVE_LABEL="task_remove_label",this.CREATE="task_create",this.CHECK_ALREADY_USED="task_check_already_used",this.FILTER="task_filter"}removeAssignment(t,r){var i=this;return bt(function*(){return i.eelService.call(i.REMOVE_ASSIGNMENT,t,r)})()}addAssignment(t,r){var i=this;return bt(function*(){return i.eelService.call(i.ADD_ASSIGNMENT,t,r)})()}addLabel(t,r){var i=this;return bt(function*(){return i.eelService.call(i.ADD_LABEL,t,r)})()}removeLabel(t,r){var i=this;return bt(function*(){return i.eelService.call(i.REMOVE_LABEL,t,r)})()}}return e.\u0275fac=function(){let n;return function(r){return(n||(n=et(e)))(r||e)}}(),e.\u0275prov=ee({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),Ni=(()=>{class e{constructor(t){this.authService=t}getAvatarText(t){return t?.name&&t?.surname?t.name.substring(0,1)+t.surname.substring(0,1):t?t.username.substring(0,2):"-"}canDelete(t){let r=this.authService.loggedUser;return!!r&&!!(r.role?.permission_delete_all||t==r.id&&r.role?.permission_delete_own)}canModify(t){let r=this.authService.loggedUser;return!!r&&!!(r.role?.permission_edit_all||t==r.id&&r.role?.permission_edit_own)}createPasswordStrengthValidator(t){return r=>{const i=r.value;if(!i)return null;const o=/[A-Z]+/.test(i),s=/[a-z]+/.test(i),a=/[0-9]+/.test(i);return o&&s&&a&&i.length>=t?null:{passwordStrength:!0}}}datetimeNow(){const t=new Date;return`${t.getFullYear()}-${String(t.getMonth()+1).padStart(2,"0")}-${String(t.getDate()).padStart(2,"0")} ${String(t.getHours()).padStart(2,"0")}:${String(t.getMinutes()).padStart(2,"0")}:${String(t.getSeconds()).padStart(2,"0")}`}dateNow(){const t=new Date;return`${t.getFullYear()}-${String(t.getMonth()+1).padStart(2,"0")}-${String(t.getDate()).padStart(2,"0")}`}reload(){window.location.reload()}}return e.\u0275fac=function(t){return new(t||e)(te(Un))},e.\u0275prov=ee({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function TD(e,n){return t=>{if(t.parent&&n){const r=t.parent?.controls[e];return r&&r.updateValueAndValidity(),null}return t.parent&&t.parent.value&&t.value===t.parent?.controls[e].value?null:{matching:!0}}}let ID=(()=>{class e extends ho{constructor(){super(...arguments),this.ALL="task_status_all",this.FIND="task_status_find",this.DELETE_BY_ID="task_status_delete_by_id",this.UPDATE="task_status_update",this.CREATE="task_status_create",this.CHECK_ALREADY_USED="task_status_check_already_used",this.FILTER="task_status_filter"}getTaskById(t){var r=this;return bt(function*(){let i=yield r.find(t);return yield function SP(e,n){const t="object"==typeof n;return new Promise((r,i)=>{const o=new Br({next:s=>{r(s),o.unsubscribe()},error:i,complete:()=>{t?r(n.defaultValue):i(new Va)}});e.subscribe(o)})}(i)})()}getAll(){var t=this;return bt(function*(){return new Promise((r,i)=>{t.all().then(o=>{o.subscribe({next:s=>{r(s)},error:s=>{i(s)}})})})})()}}return e.\u0275fac=function(){let n;return function(r){return(n||(n=et(e)))(r||e)}}(),e.\u0275prov=ee({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),TP=(()=>{class e extends ho{constructor(){super(...arguments),this.ALL="task_assignment_all",this.FIND="task_assignment_find",this.DELETE_BY_ID="task_assignment_delete_by_id",this.FILTER="task_assignment_filter",this.UPDATE="task_assignment_update",this.REMOVE_ASSIGNMENT="task_assignment_remove_assignment",this.ADD_ASSIGNMENT="task_assignment_add_assignment",this.ADD_LABEL="task_assignment_add_label",this.REMOVE_LABEL="task_assignment_remove_label",this.CREATE="task_assignment_create",this.CHECK_ALREADY_USED="task_assignment_check_already_used",this.UPDATE_BY_TASK_USER_ID_FROM_DICT="task_assignment_update_by_task_user_id_from_dict"}updateByTaskUserId(t,r,i){return this.eelService.call(this.UPDATE_BY_TASK_USER_ID_FROM_DICT,t,r,i)}}return e.\u0275fac=function(){let n;return function(r){return(n||(n=et(e)))(r||e)}}(),e.\u0275prov=ee({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function IP(e,n){if(1&e&&(Ae(0),f(1,"div",1)(2,"span",2),v(3),w(4,"translate"),h()(),xe()),2&e){const t=C();d(1),ts("background-color",t.color),g("title",t.tooltip),d(2),y(" ",D(4,4,t.text)," ")}}let Bu=(()=>{class e{constructor(){this.tooltip=""}darkTxt(){return!!this.color&&parseInt(this.color,16)>.75*parseInt("ffffff",16)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=De({type:e,selectors:[["app-text-avatar"]],inputs:{color:"color",text:"text",tooltip:"tooltip"},decls:1,vars:1,consts:[[4,"ngIf"],["data-bs-toggle","tooltip","data-bs-placement","top",1,"avatar",3,"title"],[1,"avatar-content","text-uppercase"]],template:function(t,r){1&t&&k(0,IP,5,6,"ng-container",0),2&t&&g("ngIf",r.text&&r.color)},dependencies:[$e,Xe],styles:[".dark-txt[_ngcontent-%COMP%]{color:#7e848f}"]}),e})(),Pi=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=De({type:e,selectors:[["app-close-btn"]],decls:6,vars:3,consts:[["type","button","data-bs-dismiss","modal",1,"btn"],["closeBtn",""],[1,"bx","bx-x","d-block","d-sm-none"],[1,"d-none","d-sm-block"]],template:function(t,r){1&t&&(f(0,"button",0,1),S(2,"i",2),f(3,"span",3),v(4),w(5,"translate"),h()()),2&t&&(d(4),y(" ",D(5,1,"close")," "))},dependencies:[Xe]}),e})(),li=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=De({type:e,selectors:[["app-x-btn"]],decls:2,vars:0,consts:[["type","button","data-bs-dismiss","modal","aria-label","Close",1,"close","rounded-pill"],[1,"bi","bi-x"]],template:function(t,r){1&t&&(f(0,"button",0),S(1,"i",1),h())}}),e})();function MP(e,n){if(1&e&&(f(0,"div",9)(1,"p"),v(2),w(3,"translate"),h()()),2&e){const t=C(2);d(2),y(" ",D(3,1,t.body)," ")}}function AP(e,n){if(1&e){const t=he();f(0,"button",10),$("click",function(){return K(t),Q(C(2).onConfirm.emit())}),S(1,"i",11),f(2,"span",12),v(3),w(4,"translate"),h()()}if(2&e){const t=C(2);d(3),y(" ",D(4,1,t.confirmBtnTxt)," ")}}function xP(e,n){if(1&e&&(f(0,"div",1)(1,"div",2)(2,"div",3)(3,"div",4)(4,"h5",5),v(5),w(6,"translate"),h(),S(7,"app-x-btn"),h(),k(8,MP,4,3,"div",6),f(9,"div",7),S(10,"app-close-btn"),k(11,AP,5,3,"button",8),h()()()()),2&e){const t=C();Qe("modal-borderless",t.borderless),g("id",t.target),Ve("aria-labelledby",t.target),d(1),Qe("modal-dialog-centered",t.centered),d(4),y(" ",D(6,9,t.title)," "),d(3),g("ngIf",t.body),d(3),g("ngIf",t.confirmBtn)}}let dl=(()=>{class e{constructor(){this.target="dialog",this.centered=!1,this.confirmBtn=!1,this.confirmBtnTxt="submit",this.borderless=!1,this.onConfirm=new ue}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=De({type:e,selectors:[["app-dialog-modal"]],inputs:{body:"body",title:"title",target:"target",centered:"centered",confirmBtn:"confirmBtn",confirmBtnTxt:"confirmBtnTxt",borderless:"borderless"},outputs:{onConfirm:"onConfirm"},decls:1,vars:1,consts:[["class","modal fade text-left","tabindex","-1","role","dialog","aria-hidden","true",3,"id","modal-borderless",4,"ngIf"],["tabindex","-1","role","dialog","aria-hidden","true",1,"modal","fade","text-left",3,"id"],["role","document",1,"modal-dialog","modal-dialog-scrollable"],[1,"modal-content"],[1,"modal-header"],[1,"modal-title"],["class","modal-body",4,"ngIf"],[1,"modal-footer"],["type","button","class","btn btn-primary ml-1","data-bs-dismiss","modal",3,"click",4,"ngIf"],[1,"modal-body"],["type","button","data-bs-dismiss","modal",1,"btn","btn-primary","ml-1",3,"click"],[1,"bx","bx-check","d-block","d-sm-none"],[1,"d-none","d-sm-block"]],template:function(t,r){1&t&&k(0,xP,12,11,"div",0),2&t&&g("ngIf",r.title&&r.target)},dependencies:[$e,Pi,li,Xe]}),e})(),ig=(()=>{class e extends ho{constructor(){super(...arguments),this.ALL="role_all",this.FIND="role_find",this.DELETE_BY_ID="role_delete_by_id",this.UPDATE="role_update",this.CREATE="role_create",this.CHECK_ALREADY_USED="role_check_already_used",this.FILTER="role_filter"}}return e.\u0275fac=function(){let n;return function(r){return(n||(n=et(e)))(r||e)}}(),e.\u0275prov=ee({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function kP(e,n){if(1&e&&(f(0,"div",14),v(1),w(2,"translate"),f(3,"strong"),v(4),h()()),2&e){const t=C(2);d(1),y(" ",D(2,2,"role"),": "),d(3),Fr(t.role.name)}}const FP=function(e){return{date:e}};function RP(e,n){if(1&e&&(f(0,"div",15),v(1),w(2,"translate"),h()),2&e){const t=C(2);d(1),y(" ",Sc(2,1,"assignment-date",function Vy(e,n,t,r){return jy(H(),hn(),e,n,t,r)}(4,FP,t.assignmentDate))," ")}}function OP(e,n){if(1&e){const t=he();f(0,"button",16),$("click",function(){return K(t),Q(C(2).onRemoveFromTask.emit())}),v(1),w(2,"translate"),h()}2&e&&(d(1),y(" ",D(2,1,"remove-from-task")," "))}function NP(e,n){if(1&e&&(f(0,"div",1)(1,"div",2)(2,"div",3)(3,"div",4)(4,"h5",5),v(5),h(),S(6,"app-x-btn"),h(),f(7,"div",6),S(8,"p"),f(9,"div")(10,"span",7),v(11),h(),f(12,"span",7),v(13),h(),v(14),f(15,"strong",7),v(16),h(),v(17),h(),k(18,kP,5,4,"div",8),k(19,RP,3,6,"div",9),h(),f(20,"div",10)(21,"div",11)(22,"div",12),S(23,"app-close-btn"),h(),f(24,"div",12),k(25,OP,3,3,"button",13),h()()()()()()),2&e){const t=C();g("id",t.target),Ve("aria-labelledby",t.target),d(4),g("id",t.target),d(1),y(" ",t.user.username," "),d(6),Fr(t.user.name?t.user.name+" ":""),d(2),Fr(t.user.surname?t.user.surname+" ":""),d(1),y(" ",t.user.name||t.user.surname?" aka ":""," "),d(2),y(" ",t.user.username," "),d(1),y(" (",t.user.email,") "),d(1),g("ngIf",t.role),d(1),g("ngIf",t.assignmentDate),d(6),g("ngIf",t.editable)}}let PP=(()=>{class e{constructor(t){this.roleService=t,this.editable=!1,this.onRemoveFromTask=new ue}ngOnInit(){const t=this.user?.role_id;t&&this.roleService.find(t).then(r=>{r.subscribe({next:i=>{this.role=i}})})}}return e.\u0275fac=function(t){return new(t||e)(O(ig))},e.\u0275cmp=De({type:e,selectors:[["app-manage-assigned-user-modal"]],inputs:{user:"user",target:"target",assignmentDate:"assignmentDate",editable:"editable"},outputs:{onRemoveFromTask:"onRemoveFromTask"},decls:1,vars:1,consts:[["class","modal fade text-left","tabindex","-1","role","dialog","aria-hidden","true",3,"id",4,"ngIf"],["tabindex","-1","role","dialog","aria-hidden","true",1,"modal","fade","text-left",3,"id"],["role","document",1,"modal-dialog","modal-dialog-scrollable"],[1,"modal-content"],[1,"modal-header"],[1,"modal-title","text-capitalize",3,"id"],[1,"modal-body"],[1,"text-capitalize"],["class","mt-1",4,"ngIf"],["class","mt-5",4,"ngIf"],[1,"modal-footer"],[1,"row","justify-content-between"],[1,"col-auto"],["class","btn btn-outline-primary","data-bs-dismiss","modal",3,"click",4,"ngIf"],[1,"mt-1"],[1,"mt-5"],["data-bs-dismiss","modal",1,"btn","btn-outline-primary",3,"click"]],template:function(t,r){1&t&&k(0,NP,26,12,"div",0),2&t&&g("ngIf",r.user)},dependencies:[$e,Pi,li,Xe]}),e})();function LP(e,n){if(1&e&&(Ae(0),f(1,"div",1),w(2,"translate"),f(3,"span",2),S(4,"i"),h()(),xe()),2&e){const t=C();d(1),ts("background-color",t.color),Qe("shiny",t.shiny),g("title",D(2,7,t.tooltip)),d(3),xv(t.iconClass)}}let VP=(()=>{class e{constructor(){this.tooltip="",this.shiny=!1}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=De({type:e,selectors:[["app-icon-avatar"]],inputs:{color:"color",iconClass:"iconClass",tooltip:"tooltip",shiny:"shiny"},decls:1,vars:1,consts:[[4,"ngIf"],["data-bs-toggle","tooltip","data-bs-placement","top",1,"avatar","me-3",3,"title"],[1,"avatar-content","text-uppercase"]],template:function(t,r){1&t&&k(0,LP,5,9,"ng-container",0),2&t&&g("ngIf",r.iconClass&&r.color)},dependencies:[$e,Xe],styles:[".shiny[_ngcontent-%COMP%]{box-shadow:#ffee004d 0 0 0 3px}"]}),e})(),ju=(()=>{class e extends ho{constructor(){super(...arguments),this.ALL="user_all",this.FIND="user_find",this.DELETE_BY_ID="user_delete_by_id",this.UPDATE="user_update",this.CREATE="user_create",this.CHECK_ALREADY_USED="user_check_already_used",this.FILTER="user_filter",this.FIND_BY_EMAIL="user_find_by_email"}findByEmail(t){var r=this;return bt(function*(){return r.eelService.call(r.FIND_BY_EMAIL,t)})()}}return e.\u0275fac=function(){let n;return function(r){return(n||(n=et(e)))(r||e)}}(),e.\u0275prov=ee({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function BP(e,n){1&e&&(f(0,"span",16),v(1),w(2,"translate"),h()),2&e&&(d(1),y(" ",D(2,1,"select")," "))}function jP(e,n){if(1&e&&(f(0,"span",16),v(1),h()),2&e){const t=C();d(1),y(" ",null==t.userSelected?null:t.userSelected.username," ")}}function UP(e,n){if(1&e){const t=he();f(0,"button",17),$("click",function(){const o=K(t).$implicit;return Q(C().selectUser(o))}),v(1),h()}if(2&e){const t=n.$implicit;d(1),y(" ",t.username," ")}}function $P(e,n){1&e&&(Ae(0),f(1,"div",18)(2,"p"),v(3),w(4,"translate"),h()(),xe()),2&e&&(d(3),y(" ",D(4,1,"no-users")," "))}let HP=(()=>{class e{constructor(t){this.userService=t,this.alreadyAssignedUsers=[],this.noUsers=!1,this.onAddAssignment=new ue,this.onClose=new ue}ngOnInit(){}ngOnDestroy(){this.onClose.emit()}selectUser(t){this.userSelected=t}setUsersCanBeAssign(){this.noUsers=!1,this.userService.all().then(t=>{t.subscribe({next:r=>{this.usersCanBeAssign=r.filter(i=>!this.alreadyAssignedUsers.map(o=>o.id).includes(i.id)),(!this.usersCanBeAssign||0==this.usersCanBeAssign.length)&&(this.noUsers=!0)}})})}}return e.\u0275fac=function(t){return new(t||e)(O(ju))},e.\u0275cmp=De({type:e,selectors:[["app-new-assignment-modal"]],inputs:{target:"target",alreadyAssignedUsers:"alreadyAssignedUsers"},outputs:{onAddAssignment:"onAddAssignment",onClose:"onClose"},decls:26,vars:16,consts:[["tabindex","-1","role","dialog","aria-hidden","true",1,"modal","fade","text-left",3,"id"],["role","document",1,"modal-dialog","modal-dialog-scrollable"],[1,"modal-content"],[1,"modal-header"],[1,"modal-title",3,"id"],[1,"modal-body"],[1,"d-flex","justify-content-center",2,"padding-bottom","20vh"],[1,"btn-group","dropdown","me-1","mb-1"],["type","button","data-bs-toggle","dropdown","aria-haspopup","true","aria-expanded","false","data-reference","parent",1,"btn","btn-primary","dropdown-toggle","dropdown-toggle-split",3,"click"],["class","sr-only",4,"ngIf","ngIfElse"],["selected",""],[1,"dropdown-menu"],["class","dropdown-item",3,"click",4,"ngFor","ngForOf"],["type","button",1,"btn","btn-outline-primary",3,"click"],[4,"ngIf"],[1,"modal-footer"],[1,"sr-only"],[1,"dropdown-item",3,"click"],[1,"alert","alert-light-warning"]],template:function(t,r){if(1&t&&(f(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"h5",4),v(5),w(6,"translate"),h(),S(7,"app-x-btn"),h(),f(8,"div",5)(9,"p"),v(10),w(11,"translate"),h(),f(12,"div",6)(13,"div",7)(14,"button",8),$("click",function(){return r.setUsersCanBeAssign()}),k(15,BP,3,3,"span",9),k(16,jP,2,1,"ng-template",null,10,Wt),h(),f(18,"div",11),k(19,UP,2,1,"button",12),h(),f(20,"button",13),$("click",function(){return r.onAddAssignment.emit(r.userSelected),r.userSelected=void 0}),v(21),w(22,"translate"),h()()(),k(23,$P,5,3,"ng-container",14),h(),f(24,"div",15),S(25,"app-close-btn"),h()()()()),2&t){const i=ze(17);g("id",r.target),Ve("aria-labelledby",r.target),d(4),g("id",r.target),d(1),y(" ",D(6,10,"add-new-assignment")," "),d(5),y(" ",D(11,12,"add-new-assignment-description")," "),d(5),g("ngIf",void 0===r.userSelected)("ngIfElse",i),d(4),g("ngForOf",r.usersCanBeAssign),d(2),y(" ",D(22,14,"add")," "),d(2),g("ngIf",r.noUsers)}},dependencies:[Mn,$e,Pi,li,Xe]}),e})(),MD=(()=>{class e extends ho{constructor(){super(...arguments),this.ALL="todo_all",this.FIND="todo_find",this.DELETE_BY_ID="todo_delete_by_id",this.ALL_OF="todo_all_of",this.UPDATE="todo_update",this.CREATE="todo_create",this.FILTER="todo_filter",this.CHECK_ALREADY_USED="todo_already_used"}allOf(t){var r=this;return bt(function*(){return r.eelService.call(r.ALL_OF,t)})()}}return e.\u0275fac=function(){let n;return function(r){return(n||(n=et(e)))(r||e)}}(),e.\u0275prov=ee({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function GP(e,n){if(1&e){const t=he();f(0,"div",1)(1,"div",2)(2,"div",3)(3,"div",4)(4,"h5",5),v(5),w(6,"translate"),h(),S(7,"app-x-btn"),h(),f(8,"div",6)(9,"form",7),S(10,"input",8),h()(),f(11,"div",9),S(12,"app-close-btn"),f(13,"button",10),$("click",function(){return K(t),Q(C().manageDeadlineForm.reset())}),v(14),w(15,"translate"),h(),f(16,"button",11),$("click",function(){return K(t),Q(C()._onSubmit())}),S(17,"i",12),f(18,"span",13),v(19),w(20,"translate"),h()()()()()()}if(2&e){const t=C();g("id",t.target),Ve("aria-labelledby",t.target),d(4),g("id",t.target),d(1),y(" ",D(6,9,"deadline")," "),d(4),g("formGroup",t.manageDeadlineForm),d(1),g("id",t.target+"-input"),d(4),y(" ",D(15,11,"reset")," "),d(2),g("disabled",t.manageDeadlineForm.invalid),d(3),y(" ",D(20,13,"confirm")," ")}}let zP=(()=>{class e{constructor(){this.value=null,this.onSubmit=new ue,this.manageDeadlineForm=new An({deadline:new oe(null)})}ngAfterContentInit(){this.manageDeadlineForm.controls.deadline.setValue(this.value??null)}_onSubmit(){this.manageDeadlineForm.valid&&(this.onSubmit.emit(this.manageDeadlineForm.controls.deadline.value),this.value=null,this.manageDeadlineForm.reset())}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=De({type:e,selectors:[["app-manage-deadline"]],inputs:{value:"value",target:"target"},outputs:{onSubmit:"onSubmit"},decls:1,vars:1,consts:[["class","modal fade text-left","tabindex","-1","role","dialog","aria-hidden","true",3,"id",4,"ngIf"],["tabindex","-1","role","dialog","aria-hidden","true",1,"modal","fade","text-left",3,"id"],["role","document",1,"modal-dialog","modal-dialog-scrollable"],[1,"modal-content"],[1,"modal-header"],[1,"modal-title",3,"id"],[1,"modal-body"],[3,"formGroup"],["type","datetime-local","placeholder","dd/mm/yyyy HH:mm","formControlName","deadline",1,"form-control","flatpickr-time-picker-24h","mt-2",3,"id"],[1,"modal-footer"],["type","button",1,"btn","btn-outline-secondary","ml-1",3,"click"],["type","button","data-bs-dismiss","modal",1,"btn","btn-primary","ml-1",3,"disabled","click"],[1,"bx","bx-check","d-block","d-sm-none"],[1,"d-none","d-sm-block"]],template:function(t,r){1&t&&k(0,GP,21,15,"div",0),2&t&&g("ngIf",r.target)},dependencies:[$e,Vr,or,Pr,Lr,sr,vr,Pi,li,Xe]}),e})();function qP(e,n){if(1&e&&(f(0,"span",4),v(1),w(2,"date"),h()),2&e){const t=C(2);Qe("bg-light-primary",t.getDeadlineStatus()===t.DeadlineStatus.PRIMARY)("bg-light-warning",t.getDeadlineStatus()===t.DeadlineStatus.WARNING)("bg-light-danger",t.getDeadlineStatus()===t.DeadlineStatus.DANGER)("bg-light-success",t.getDeadlineStatus()===t.DeadlineStatus.DONE)("done",!!t.done)("cursor-pointer",t.editable),Ve("data-bs-toggle",t.editable?"modal":"")("data-bs-target",t.editable?"#modify-deadline"+t.id+"-modal":""),d(1),y(" ",Sc(2,15,t.deadline,t.dateFormat)," ")}}function WP(e,n){if(1&e){const t=he();f(0,"app-manage-deadline",5),$("onSubmit",function(i){return K(t),Q(C(2).onDeadlineModified.emit(i))}),h()}if(2&e){const t=C(2);g("value",t.deadline)("target","modify-deadline"+t.id+"-modal")}}function YP(e,n){if(1&e){const t=he();f(0,"span",6),v(1),w(2,"translate"),h(),f(3,"app-manage-deadline",5),$("onSubmit",function(i){return K(t),Q(C(2).onDeadlineModified.emit(i))}),h()}if(2&e){const t=C(2);Ve("data-bs-toggle",t.editable?"modal":"")("data-bs-target",t.editable?"#add-deadline"+t.id+"-modal":""),d(1),y(" ",D(2,5,"add-deadline")," "),d(2),g("value",t.deadline)("target","add-deadline"+t.id+"-modal")}}function KP(e,n){if(1&e&&(Ae(0),k(1,qP,3,18,"span",1),k(2,WP,1,2,"app-manage-deadline",2),k(3,YP,4,7,"ng-template",null,3,Wt),xe()),2&e){const t=ze(4),r=C();d(1),g("ngIf",!!r.deadline)("ngIfElse",t),d(1),g("ngIf",!!r.deadline)}}var Li=(()=>{return(e=Li||(Li={}))[e.PRIMARY=0]="PRIMARY",e[e.WARNING=1]="WARNING",e[e.DANGER=2]="DANGER",e[e.DONE=3]="DONE",Li;var e})();let AD=(()=>{class e{constructor(){this.dateFormat=Gt.fullDateFormat,this.DeadlineStatus=Li,this.deadline=null,this.done=!1,this.editable=!1,this.creable=!1,this.onDeadlineModified=new ue}getDeadlineStatus(){if(!this.deadline)return null;if(this.done)return Li.DONE;const t=new Date(Date.now()),r=new Date(this.deadline),i=new Date(r);if(i.setDate(i.getDate()-Gt.dangerDateDayBefore),t>i)return Li.DANGER;const o=new Date(r);return o.setDate(o.getDate()-Gt.warningDateDayBefore),t>o?Li.WARNING:Li.PRIMARY}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=De({type:e,selectors:[["app-deadline-badge"]],inputs:{deadline:"deadline",done:"done",editable:"editable",id:"id",creable:"creable"},outputs:{onDeadlineModified:"onDeadlineModified"},decls:1,vars:1,consts:[[4,"ngIf"],["class","badge",3,"bg-light-primary","bg-light-warning","bg-light-danger","bg-light-success","done","cursor-pointer",4,"ngIf","ngIfElse"],[3,"value","target","onSubmit",4,"ngIf"],["newDeadline",""],[1,"badge"],[3,"value","target","onSubmit"],[1,"badge","bg-light-secondary","cursor-pointer"]],template:function(t,r){1&t&&k(0,KP,5,3,"ng-container",0),2&t&&g("ngIf",r.id)},dependencies:[$e,zP,Ph,Xe],styles:[".done[_ngcontent-%COMP%]{text-decoration:line-through!important}"]}),e})();function QP(e,n){if(1&e){const t=he();f(0,"div",1)(1,"div",2)(2,"div",3)(3,"div",4)(4,"h5",5),v(5),w(6,"translate"),h(),S(7,"app-x-btn"),h(),f(8,"div",6)(9,"form",7)(10,"label",8),v(11),w(12,"translate"),h(),f(13,"textarea",9),v(14," "),h(),S(15,"input",10),h()(),f(16,"div",11),S(17,"app-close-btn"),f(18,"button",12),$("click",function(){return K(t),Q(C()._onSubmit())}),S(19,"i",13),f(20,"span",14),v(21),w(22,"translate"),h()()()()()()}if(2&e){const t=C();g("id",t.target),Ve("aria-labelledby",t.target),d(4),g("id",t.target),d(1),y(" ",D(6,8,"add-new-todo")," "),d(4),g("formGroup",t.newItemForm),d(2),y(" ",D(12,10,"description")," "),d(7),g("disabled",t.newItemForm.invalid),d(3),y(" ",D(22,12,"confirm")," ")}}let xD=(()=>{class e{constructor(){this.onClose=new ue,this.onSubmit=new ue,this.newItemForm=new An({description:new oe(null,[He.required]),deadline:new oe(null)})}ngAfterContentInit(){this.newItemForm.setValue({description:this.baseData?.description??null,deadline:this.baseData?.deadline??null})}_onSubmit(){this.newItemForm.valid&&(this.onSubmit.emit({description:this.newItemForm.controls.description.value,deadline:this.newItemForm.controls.deadline.value}),this.baseData=void 0,this.newItemForm.reset())}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=De({type:e,selectors:[["app-new-todo-item-modal"]],inputs:{target:"target",baseData:"baseData"},outputs:{onClose:"onClose",onSubmit:"onSubmit"},decls:1,vars:1,consts:[["class","modal fade text-left","tabindex","-1","role","dialog","aria-hidden","true",3,"id",4,"ngIf"],["tabindex","-1","role","dialog","aria-hidden","true",1,"modal","fade","text-left",3,"id"],["role","document",1,"modal-dialog","modal-dialog-scrollable"],[1,"modal-content"],[1,"modal-header"],[1,"modal-title",3,"id"],[1,"modal-body"],[3,"formGroup"],["for","description",1,"form-label"],["placeholder","Description","aria-label","Description","aria-describedby","description-icon","formControlName","description","id","description","rows","6",1,"form-control"],["type","datetime-local","placeholder","Deadline","formControlName","deadline",1,"form-control","flatpickr-time-picker-24h","mt-2"],[1,"modal-footer"],["type","button","data-bs-dismiss","modal",1,"btn","btn-primary","ml-1",3,"disabled","click"],[1,"bx","bx-check","d-block","d-sm-none"],[1,"d-none","d-sm-block"]],template:function(t,r){1&t&&k(0,QP,23,14,"div",0),2&t&&g("ngIf",r.target)},dependencies:[$e,Vr,or,Pr,Lr,sr,vr,Pi,li,Xe]}),e})();function XP(e,n){if(1&e&&S(0,"app-deadline-badge",19),2&e){const t=C(2);g("deadline",t.item.deadline)("done",!!t.item.done)("editable",t.utilsService.canModify(t.item.author_id))("id","deadline-todo-"+t.item.id)}}function ZP(e,n){if(1&e&&S(0,"app-text-avatar",20),2&e){const t=C(2);g("color",t.item.author.avatar_hex_color)("text",t.utilsService.getAvatarText(t.item.author))("tooltip",t.item.author.username)}}function JP(e,n){1&e&&(f(0,"button",21),S(1,"i",22),h()),2&e&&Ve("data-bs-target","#modify-todo-item-"+C(2).item.id)}function eL(e,n){1&e&&(f(0,"button",23),S(1,"i",24),h()),2&e&&Ve("data-bs-target","#delete-todo-item-"+C(2).item.id)}const tL=function(e,n){return{description:e,deadline:n}};function nL(e,n){if(1&e){const t=he();f(0,"li",1)(1,"div",2)(2,"div",3)(3,"div",4)(4,"input",5),$("click",function(){return K(t),Q(C().done())}),h()()(),f(5,"div",6)(6,"span",7),v(7),h()(),f(8,"div",8)(9,"div",9)(10,"div",10),k(11,XP,1,4,"app-deadline-badge",11),h(),f(12,"div",12),k(13,ZP,1,3,"app-text-avatar",13),h(),f(14,"div",14),k(15,JP,2,1,"button",15),f(16,"app-new-todo-item-modal",16),$("onSubmit",function(i){return K(t),Q(C().modify(i))}),h(),k(17,eL,2,1,"button",17),f(18,"app-dialog-modal",18),$("onConfirm",function(){return K(t),Q(C().delete())}),h()()()()()()}if(2&e){const t=C();d(4),g("id","checkbox-todo-"+t.item.id)("checked",!!t.item.done),d(2),Qe("done",!!t.item.done),d(1),y(" ",t.item.description," "),d(4),g("ngIf",t.item.deadline),d(2),g("ngIf",t.item.author),d(2),g("ngIf",t.utilsService.canModify(t.item.author_id)),d(1),g("target","modify-todo-item-"+t.item.id)("baseData",function By(e,n,t,r,i){return Uy(H(),hn(),e,n,t,r,i)}(16,tL,t.item.description,t.item.deadline)),d(1),g("ngIf",t.utilsService.canDelete(t.item.author_id)),d(1),g("target","delete-todo-item-"+t.item.id)("centered",!0)("confirmBtn",!0)("confirmBtnTxt","confirm")("borderless",!0)}}let rL=(()=>{class e{constructor(t,r){this.utilsService=t,this.todoService=r,this.refreshRequest=new ue}done(){this.item&&this.todoService.update(this.item.id,{done:!this.item.done}).then(t=>{t.subscribe({next:r=>{this.refreshRequest.emit()}})})}delete(){this.item&&this.todoService.deleteById(this.item.id).then(t=>{t.subscribe({next:r=>{this.refreshRequest.emit()}})})}modify(t){this.item&&this.todoService.update(this.item.id,t).then(r=>{r.subscribe({next:i=>{this.refreshRequest.emit()}})})}}return e.\u0275fac=function(t){return new(t||e)(O(Ni),O(MD))},e.\u0275cmp=De({type:e,selectors:[["app-task-todo-item"]],inputs:{item:"item"},outputs:{refreshRequest:"refreshRequest"},decls:1,vars:1,consts:[["class","widget-todo-item",4,"ngIf"],[1,"widget-todo-item"],[1,"row"],[1,"col-1"],[1,"checkbox","checkbox-shadow"],["type","checkbox",1,"form-check-input",3,"id","checked","click"],[1,"col-8"],[1,"widget-todo-title","ml-50"],[1,"col-xxl-3"],[1,"row","justify-content-between"],[1,"col-6","d-flex","justify-content-center"],["style","margin-right: 1vw;",3,"deadline","done","editable","id",4,"ngIf"],[1,"col-2","d-flex","justify-content-center"],["class","cursor-arrow",3,"color","text","tooltip",4,"ngIf"],[1,"col-4","d-flex","justify-content-center"],["class","btn btn-sm icon btn-light mr-1","data-bs-toggle","modal",4,"ngIf"],[3,"target","baseData","onSubmit"],["class","btn btn-sm icon btn-light","data-bs-toggle","modal",4,"ngIf"],["title","delete-request",3,"target","centered","confirmBtn","confirmBtnTxt","borderless","onConfirm"],[2,"margin-right","1vw",3,"deadline","done","editable","id"],[1,"cursor-arrow",3,"color","text","tooltip"],["data-bs-toggle","modal",1,"btn","btn-sm","icon","btn-light","mr-1"],[1,"bi","bi-pencil"],["data-bs-toggle","modal",1,"btn","btn-sm","icon","btn-light"],[1,"bi","bi-trash"]],template:function(t,r){1&t&&k(0,nL,19,19,"li",0),2&t&&g("ngIf",r.item)},dependencies:[$e,Bu,dl,AD,xD],styles:[".done[_ngcontent-%COMP%]{text-decoration:line-through!important;opacity:.8;filter:grayscale(1)}"]}),e})();const iL=["showTodoBtn"];function oL(e,n){if(1&e){const t=he();f(0,"app-task-todo-item",27),$("refreshRequest",function(){K(t);const i=C(2);return i.loadTodoItems(),Q(i.onRefresh.emit())}),h()}2&e&&g("item",n.$implicit)}function sL(e,n){if(1&e&&(Ae(0),f(1,"div",17)(2,"div",18)(3,"span",19),v(4),w(5,"translate"),h()(),f(6,"div",20)(7,"div",21)(8,"div",22)(9,"span",19),v(10),w(11,"translate"),h()(),f(12,"div",23)(13,"span",19),v(14),w(15,"translate"),h()(),f(16,"div",24)(17,"span",19),v(18),w(19,"translate"),h()()()()(),f(20,"ul",25),k(21,oL,1,1,"app-task-todo-item",26),h(),xe()),2&e){const t=C();d(4),y(" ",D(5,5,"description")," "),d(6),y(" ",D(11,7,"deadline")," "),d(4),y(" ",D(15,9,"author")," "),d(4),y(" ",D(19,11,"actions")," "),d(3),g("ngForOf",t.todoItems)}}function aL(e,n){1&e&&(f(0,"p",28)(1,"span",19),v(2),w(3,"translate"),h()()),2&e&&(d(2),y(" ",D(3,1,"no-todo-items")," "))}function lL(e,n){if(1&e){const t=he();Ae(0),f(1,"div",29)(2,"a",30),$("click",function(){return K(t),C(),Q(ze(12).click())}),v(3),w(4,"translate"),h()(),xe()}2&e&&(d(3),y(" ",D(4,1,"show-list")," "))}let cL=(()=>{class e{constructor(t,r){this.todoService=t,this.authService=r,this.todoCollapseStatus=!1,this.onRefresh=new ue,this.todoItems=[]}ngOnInit(){this.loadTodoItems()}ngAfterViewInit(){this.todoCollapseStatus&&(this.showTodoBtn?.nativeElement.click(),this.todoCollapseStatus=!0)}loadTodoItems(){this.taskId&&this.todoService.allOf(this.taskId).then(t=>{t.subscribe({next:r=>{r&&(this.todoItems=r)}})})}newTodo(t){!this.taskId||!this.authService.loggedUser||this.todoService.create({description:t.description,deadline:t.deadline,task_id:this.taskId,author_id:this.authService.loggedUser.id}).then(r=>{r.subscribe({next:i=>{this.loadTodoItems()}})})}}return e.\u0275fac=function(t){return new(t||e)(O(MD),O(Un))},e.\u0275cmp=De({type:e,selectors:[["app-task-todo-list"]],viewQuery:function(t,r){if(1&t&&Ta(iL,5),2&t){let i;os(i=ss())&&(r.showTodoBtn=i.first)}},inputs:{taskId:"taskId",todoCollapseStatus:"todoCollapseStatus"},outputs:{onRefresh:"onRefresh"},decls:21,vars:15,consts:[[1,"card","widget-todo"],[1,"card-header","border-bottom"],[1,"row","justify-content-between"],[1,"col-auto"],[1,"card-title","d-flex"],[1,"bx","bx-check","font-medium-5","pl-25","pr-75"],["data-bs-toggle","modal",1,"btn","icon","btn-light"],[1,"bi","bi-plus"],["type","button","data-bs-toggle","collapse","aria-expanded","false",1,"btn","icon","btn-light",3,"click"],["showTodoBtn",""],[1,"bi","bi-eye"],[1,"card-body","px-0","py-1"],[1,"collapse",3,"id"],[4,"ngIf","ngIfElse"],["noTodo",""],[4,"ngIf"],[3,"target","onSubmit"],[1,"row","justify-content-between","widget-todo-item"],[1,"col-8","offset-1","d-flex","justify-content-start"],[1,"badge","bg-light-secondary"],[1,"col-3","d-none","d-xxl-block"],[1,"row"],[1,"col-6","d-flex","justify-content-center"],[1,"col-2","d-flex","justify-content-center"],[1,"col-4","d-flex","justify-content-center"],["id","widget-todo-list",1,"widget-todo-list-wrapper"],[3,"item","refreshRequest",4,"ngFor","ngForOf"],[3,"item","refreshRequest"],[1,"text-center"],[1,"d-flex","justify-content-center"],["href","javascript:void(0)",1,"text-center",3,"click"]],template:function(t,r){if(1&t&&(f(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"h4",4),S(5,"i",5),v(6),w(7,"translate"),h()(),f(8,"div",3)(9,"button",6),S(10,"i",7),h(),f(11,"button",8,9),$("click",function(){return r.todoCollapseStatus=!r.todoCollapseStatus}),S(13,"i",10),h()()()(),f(14,"div",11)(15,"div",12),k(16,sL,22,13,"ng-container",13),k(17,aL,4,3,"ng-template",null,14,Wt),h(),k(19,lL,5,3,"ng-container",15),h(),f(20,"app-new-todo-item-modal",16),$("onSubmit",function(o){return r.newTodo(o)}),h()()),2&t){const i=ze(18);d(6),y(" ",D(7,13,"sub-task")," "),d(3),Ve("data-bs-target","#new-todo-"+r.taskId),d(2),Ve("data-bs-target","#show-todo-"+r.taskId)("aria-controls","show-todo-"+r.taskId),d(2),Qe("bi-eye",!r.todoCollapseStatus)("bi-eye-slash",r.todoCollapseStatus),d(2),g("id","show-todo-"+r.taskId),d(1),g("ngIf",r.todoItems.length>0)("ngIfElse",i),d(3),g("ngIf",!r.todoCollapseStatus),d(1),g("target","new-todo-"+r.taskId)}},dependencies:[Mn,$e,rL,xD,Xe]}),e})();function uL(e,n){1&e&&S(0,"i",3),2&e&&g("ngClass",C(2).icon)}function dL(e,n){if(1&e&&(f(0,"span",1),k(1,uL,1,1,"i",2),v(2),w(3,"translate"),h()),2&e){const t=C();let r;ts("background-color",t.color+" !important")("color",t.textColor+" !important"),d(1),g("ngIf",t.icon),d(1),y(" ",D(3,6,null!==(r=t.text)&&void 0!==r?r:""),"\n")}}let fL=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=De({type:e,selectors:[["app-badge"]],inputs:{text:"text",icon:"icon",color:"color",textColor:"textColor"},decls:1,vars:1,consts:[["class","badge bg-secondary m-1",3,"background-color","color",4,"ngIf"],[1,"badge","bg-secondary","m-1"],["class","bi",3,"ngClass",4,"ngIf"],[1,"bi",3,"ngClass"]],template:function(t,r){1&t&&k(0,dL,4,8,"span",0),2&t&&g("ngIf",r.text||r.icon)},dependencies:[l1,$e,Xe]}),e})();function hL(e,n){if(1&e&&(f(0,"p"),v(1),h()),2&e){const t=C(2);d(1),y(" ",t.label.description," ")}}function pL(e,n){if(1&e){const t=he();f(0,"div",1)(1,"div",2)(2,"div",3)(3,"div",4)(4,"h5",5),v(5),h(),S(6,"app-x-btn"),h(),f(7,"div",6),k(8,hL,2,1,"p",7),h(),f(9,"div",8)(10,"div",9)(11,"div",10),S(12,"app-close-btn"),h(),f(13,"div",10)(14,"button",11),$("click",function(){return K(t),Q(C().onRemoveFromTask.emit())}),v(15),w(16,"translate"),h()()()()()()()}if(2&e){const t=C();g("id",t.target),Ve("aria-labelledby",t.target),d(4),g("id",t.target),d(1),y(" ",t.label.name," "),d(3),g("ngIf",t.label.description),d(7),y(" ",D(16,6,"remove-from-task")," ")}}let gL=(()=>{class e{constructor(){this.onRemoveFromTask=new ue}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=De({type:e,selectors:[["app-manage-task-label-modal"]],inputs:{target:"target",label:"label"},outputs:{onRemoveFromTask:"onRemoveFromTask"},decls:1,vars:1,consts:[["class","modal fade text-left","tabindex","-1","role","dialog","aria-hidden","true",3,"id",4,"ngIf"],["tabindex","-1","role","dialog","aria-hidden","true",1,"modal","fade","text-left",3,"id"],["role","document",1,"modal-dialog","modal-dialog-scrollable"],[1,"modal-content"],[1,"modal-header"],[1,"modal-title","text-capitalize",3,"id"],[1,"modal-body"],[4,"ngIf"],[1,"modal-footer"],[1,"row","justify-content-between"],[1,"col-auto"],["data-bs-dismiss","modal",1,"btn","btn-outline-primary",3,"click"]],template:function(t,r){1&t&&k(0,pL,17,8,"div",0),2&t&&g("ngIf",r.label)},dependencies:[$e,Pi,li,Xe]}),e})(),kD=(()=>{class e extends ho{constructor(){super(...arguments),this.ALL="task_label_all",this.FIND="task_label_find",this.DELETE_BY_ID="task_label_delete_by_id",this.UPDATE="task_label_update",this.CREATE="task_label_create",this.CHECK_ALREADY_USED="task_label_check_already_used",this.FILTER="task_label_filter"}}return e.\u0275fac=function(){let n;return function(r){return(n||(n=et(e)))(r||e)}}(),e.\u0275prov=ee({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function mL(e,n){1&e&&(f(0,"span",16),v(1),w(2,"translate"),h()),2&e&&(d(1),y(" ",D(2,1,"select")," "))}function _L(e,n){if(1&e&&(f(0,"span",16),v(1),h()),2&e){const t=C();d(1),y(" ",null==t.labelSelected?null:t.labelSelected.name," ")}}function vL(e,n){if(1&e){const t=he();f(0,"button",17),$("click",function(){const o=K(t).$implicit;return Q(C().select(o))}),v(1),h()}if(2&e){const t=n.$implicit;d(1),y(" ",t.name," ")}}function yL(e,n){1&e&&(Ae(0),f(1,"div",18)(2,"p"),v(3),w(4,"translate"),h()(),xe()),2&e&&(d(3),y(" ",D(4,1,"no-labels")," "))}let bL=(()=>{class e{constructor(t,r){this.taskService=t,this.taskLabelService=r,this.alreadyAssignedLabels=[],this.noLabels=!1,this.onAdd=new ue,this.onClose=new ue}ngOnDestroy(){this.onClose.emit()}select(t){this.labelSelected=t}setLabelsCanBeAssign(){this.noLabels=!1,this.taskLabelService.all().then(t=>{t.subscribe({next:r=>{this.labelsCanBeAssign=r.filter(i=>!this.alreadyAssignedLabels.map(o=>o.id).includes(i.id)),(!this.labelsCanBeAssign||0==this.labelsCanBeAssign.length)&&(this.noLabels=!0)}})})}}return e.\u0275fac=function(t){return new(t||e)(O(ul),O(kD))},e.\u0275cmp=De({type:e,selectors:[["app-add-task-label-modal"]],inputs:{target:"target",alreadyAssignedLabels:"alreadyAssignedLabels"},outputs:{onAdd:"onAdd",onClose:"onClose"},decls:26,vars:16,consts:[["tabindex","-1","role","dialog","aria-hidden","true",1,"modal","fade","text-left",3,"id"],["role","document",1,"modal-dialog","modal-dialog-scrollable"],[1,"modal-content"],[1,"modal-header"],[1,"modal-title",3,"id"],[1,"modal-body"],[1,"d-flex","justify-content-center",2,"padding-bottom","20vh"],[1,"btn-group","dropdown","me-1","mb-1"],["type","button","data-bs-toggle","dropdown","aria-haspopup","true","aria-expanded","false","data-reference","parent",1,"btn","btn-primary","dropdown-toggle","dropdown-toggle-split",3,"click"],["class","sr-only",4,"ngIf","ngIfElse"],["selected",""],[1,"dropdown-menu"],["class","dropdown-item",3,"click",4,"ngFor","ngForOf"],["type","button",1,"btn","btn-outline-primary",3,"click"],[4,"ngIf"],[1,"modal-footer"],[1,"sr-only"],[1,"dropdown-item",3,"click"],[1,"alert","alert-light-warning"]],template:function(t,r){if(1&t&&(f(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"h5",4),v(5),w(6,"translate"),h(),S(7,"app-x-btn"),h(),f(8,"div",5)(9,"p"),v(10),w(11,"translate"),h(),f(12,"div",6)(13,"div",7)(14,"button",8),$("click",function(){return r.setLabelsCanBeAssign()}),k(15,mL,3,3,"span",9),k(16,_L,2,1,"ng-template",null,10,Wt),h(),f(18,"div",11),k(19,vL,2,1,"button",12),h(),f(20,"button",13),$("click",function(){return r.onAdd.emit(r.labelSelected),r.labelSelected=void 0}),v(21),w(22,"translate"),h()()(),k(23,yL,5,3,"ng-container",14),h(),f(24,"div",15),S(25,"app-close-btn"),h()()()()),2&t){const i=ze(17);g("id",r.target),Ve("aria-labelledby",r.target),d(4),g("id",r.target),d(1),y(" ",D(6,10,"add-new-label")," "),d(5),y(" ",D(11,12,"add-new-label-description")," "),d(5),g("ngIf",void 0===r.labelSelected)("ngIfElse",i),d(4),g("ngForOf",r.labelsCanBeAssign),d(2),y(" ",D(22,14,"add")," "),d(2),g("ngIf",r.noLabels)}},dependencies:[Mn,$e,Pi,li,Xe]}),e})(),CL=(()=>{class e{constructor(t){this.el=t,this.offset=20,this.base=10}ngAfterViewInit(){this.refreshHeight()}onChange(t){this.refreshHeight()}refreshHeight(){const t=this.el.nativeElement;let r=this.base;t.scrollHeight&&(r=t.scrollHeight+0),t.style.height=r+"px",t.style.overflowY="hidden"}}return e.\u0275fac=function(t){return new(t||e)(O(Tn))},e.\u0275dir=Ce({type:e,selectors:[["","appAutoHeight",""]],hostBindings:function(t,r){1&t&&$("input",function(){return r.onChange()})},inputs:{offset:"offset",base:"base"}}),e})();const wL=["closeBtn"];function DL(e,n){if(1&e&&(f(0,"div",18)(1,"h5",19),v(2),w(3,"translate"),h(),S(4,"app-x-btn"),h()),2&e){const t=C(2);d(1),g("id",t.target),d(1),y(" ",D(3,2,t.title)," ")}}function EL(e,n){if(1&e&&(f(0,"p"),v(1),w(2,"translate"),h()),2&e){const t=C(2);d(1),y(" ",D(2,1,t.description)," ")}}function SL(e,n){1&e&&(f(0,"span",20),v(1),w(2,"translate"),h()),2&e&&(d(1),y(" ",D(2,1,"select")," "))}function TL(e,n){if(1&e&&(f(0,"span",20),v(1),h()),2&e){const t=C(2);d(1),y(" ",t.showMaskFn(t.selectedItem)," ")}}function IL(e,n){if(1&e){const t=he();f(0,"button",21),$("click",function(){const o=K(t).$implicit;return Q(C(2).select(o))}),v(1),h()}if(2&e){const t=n.$implicit,r=C(2);g("disabled",r.disableCurrent&&r.comparatorFn(t,r.currentValue)),d(1),y(" ",r.showMaskFn(t)," ")}}function ML(e,n){1&e&&(Ae(0),f(1,"div",22)(2,"p"),v(3),w(4,"translate"),h()(),xe()),2&e&&(d(3),y(" ",D(4,1,"no-items")," "))}const AL=function(){return[]};function xL(e,n){if(1&e){const t=he();f(0,"div",1)(1,"div",2)(2,"div",3),k(3,DL,5,4,"div",4),f(4,"div",5),k(5,EL,3,3,"p",6),f(6,"div",7)(7,"div",8)(8,"button",9),k(9,SL,3,3,"span",10),k(10,TL,2,1,"ng-template",null,11,Wt),h(),f(12,"button",12),$("click",function(){K(t);const i=C();return i.onSelect.emit(i.selectedItem),Q(i.selectedItem=void 0)}),v(13),w(14,"translate"),h(),f(15,"div",13),k(16,IL,2,2,"button",14),h()()(),k(17,ML,5,3,"ng-container",6),h(),f(18,"div",15),S(19,"app-close-btn")(20,"button",16,17),h()()()()}if(2&e){const t=ze(11),r=C();g("id",r.target),Ve("aria-labelledby",r.target),d(3),g("ngIf",r.title),d(2),g("ngIf",r.description),d(4),g("ngIf",void 0===r.selectedItem)("ngIfElse",t),d(4),y(" ",D(14,9,r.confirmBtnText)," "),d(3),g("ngForOf",r.getItems()),d(1),g("ngIf",r.getItems()==It(11,AL))}}let kL=(()=>{class e{constructor(){this.options=[],this.selectOne=!0,this.confirmBtnText="add",this.showMaskFn=t=>t,this.comparatorFn=(t,r)=>t==r,this.showCurrentInList=!1,this.disableCurrent=!0,this.onClose=new ue,this.onSelect=new ue}ngOnInit(){}getItems(){if(!this.options)return[];let t=this.options;return!this.showCurrentInList&&this.currentValue&&(t=this.options.filter(r=>!this.comparatorFn(r,this.currentValue))),t}select(t){this.onSelect.emit(t),this.selectOne&&this.closeBtn&&(this.closeBtn.nativeElement.click(),this.onClose.emit())}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=De({type:e,selectors:[["app-dropdown-modal"]],viewQuery:function(t,r){if(1&t&&Ta(wL,5),2&t){let i;os(i=ss())&&(r.closeBtn=i.first)}},inputs:{target:"target",options:"options",currentValue:"currentValue",title:"title",description:"description",selectOne:"selectOne",confirmBtnText:"confirmBtnText",showMaskFn:"showMaskFn",comparatorFn:"comparatorFn",showCurrentInList:"showCurrentInList",disableCurrent:"disableCurrent"},outputs:{onClose:"onClose",onSelect:"onSelect"},decls:1,vars:1,consts:[["class","modal fade text-left","tabindex","-1","role","dialog","aria-hidden","true",3,"id",4,"ngIf"],["tabindex","-1","role","dialog","aria-hidden","true",1,"modal","fade","text-left",3,"id"],["role","document",1,"modal-dialog","modal-dialog-scrollable"],[1,"modal-content"],["class","modal-header",4,"ngIf"],[1,"modal-body"],[4,"ngIf"],[1,"d-flex","justify-content-center",2,"padding-bottom","20vh"],[1,"btn-group","dropdown","me-1","mb-1"],["type","button","data-bs-toggle","dropdown","aria-haspopup","true","aria-expanded","false","data-reference","parent",1,"btn","btn-primary","dropdown-toggle","dropdown-toggle-split"],["class","sr-only",4,"ngIf","ngIfElse"],["selected",""],["type","button",1,"btn","btn-outline-primary",3,"click"],[1,"dropdown-menu"],["class","dropdown-item",3,"disabled","click",4,"ngFor","ngForOf"],[1,"modal-footer"],["type","button","data-bs-dismiss","modal",1,"d-none"],["closeBtn",""],[1,"modal-header"],[1,"modal-title",3,"id"],[1,"sr-only"],[1,"dropdown-item",3,"disabled","click"],[1,"alert","alert-light-warning"]],template:function(t,r){1&t&&k(0,xL,22,12,"div",0),2&t&&g("ngIf",r.target)},dependencies:[Mn,$e,Pi,li,Xe]}),e})();function FL(e,n){if(1&e){const t=he();f(0,"app-badge",58),$("click",function(){return K(t),Q(C(3).updateLastWatched())}),h()}2&e&&g("icon","bi-bell-fill")("color","#db5c5c")("text","news")}function RL(e,n){if(1&e&&(Ae(0),f(1,"div",54),S(2,"app-badge",55),f(3,"span",56),v(4),h(),k(5,FL,1,3,"app-badge",57),h(),xe()),2&e){const t=C(2);d(2),g("text",t.task.priority.toString())("color","#e2d3f2")("textColor","#181e24"),d(2),y(" ",t.task.name," "),d(1),g("ngIf",t.hasNews)}}function OL(e,n){if(1&e){const t=he();f(0,"div",29)(1,"div",59)(2,"input",60,61),$("input",function(){K(t);const i=ze(3);return Q(C(2).blueprintModificateTask.priority=+i.value)}),w(4,"translate"),h()(),f(5,"div",6)(6,"div",62)(7,"textarea",63,64),$("input",function(){K(t);const i=ze(8);return Q(C(2).blueprintModificateTask.name=i.value)}),w(9,"translate"),v(10," "),h()()()()}if(2&e){const t=C(2);d(2),on("placeholder",D(4,6,"priority")),g("value",t.task.priority),d(5),on("placeholder",D(9,8,"name")),g("value",null==t.blueprintModificateTask?null:t.blueprintModificateTask.name)("base",0)("offset",10)}}function NL(e,n){1&e&&(S(0,"i",65),w(1,"translate")),2&e&&Ve("title",D(1,1,"not-assigned"))}function PL(e,n){1&e&&(f(0,"button",74),S(1,"i",75),v(2),w(3,"translate"),h()),2&e&&(Ve("data-bs-target","#move-task-"+C(3).task.id),d(2),y(" ",D(3,2,"move-task")," "))}function LL(e,n){if(1&e){const t=he();f(0,"button",73),$("click",function(){K(t),C(2);const i=ze(30);return C().inModify=!0,Q(i.click())}),S(1,"i",76),v(2),w(3,"translate"),h()}2&e&&(d(2),y(" ",D(3,1,"modify")," "))}function VL(e,n){1&e&&(f(0,"button",74),S(1,"i",77),v(2),w(3,"translate"),h()),2&e&&(Ve("data-bs-target","#delete-request-"+C(3).task.id),d(2),y(" ",D(3,2,"delete")," "))}function BL(e,n){if(1&e){const t=he();f(0,"div",66)(1,"div",67)(2,"button",68),S(3,"i",69),h(),f(4,"div",70),k(5,PL,4,4,"button",71),k(6,LL,4,3,"button",72),k(7,VL,4,4,"button",71),f(8,"button",73),$("click",function(){return K(t),Q(C(2).refreshTask())}),S(9,"i",42),v(10),w(11,"translate"),h()()()()}if(2&e){const t=C(2);d(5),g("ngIf",null==t.authService.loggedUser.role?null:t.authService.loggedUser.role.permission_move),d(1),g("ngIf",t.utilsService.canModify(t.task.author_id)),d(1),g("ngIf",t.utilsService.canDelete(t.task.author_id)),d(3),y(" ",D(11,4,"refresh")," ")}}function jL(e,n){if(1&e){const t=he();f(0,"div")(1,"button",78),$("click",function(){return K(t),Q(C(2).initBlueprintTask())}),v(2),w(3,"translate"),h(),f(4,"button",79),$("click",function(){K(t);const i=C(2);return Q(i.modify(i.blueprintModificateTask))}),v(5),w(6,"translate"),S(7,"i",80),h()()}2&e&&(d(2),y(" ",D(3,2,"reset")," "),d(3),y(" ",D(6,4,"submit")," "))}function UL(e,n){if(1&e){const t=he();Ae(0),S(1,"app-badge",81),f(2,"app-manage-task-label-modal",82),$("onRemoveFromTask",function(){const o=K(t).$implicit;return Q(C(2).removeLabelFromTask(o))}),h(),xe()}if(2&e){const t=n.$implicit,r=C(2);d(1),g("text",t.name)("color",t.hex_color),Ve("data-bs-target","#label-"+t.id+"-task-"+r.task.id+"-modal"),d(1),g("target","label-"+t.id+"-task-"+r.task.id+"-modal")("label",t)}}function $L(e,n){if(1&e&&(Ae(0),v(1),xe()),2&e){const t=C(2);d(1),y(" ",t.task.description," ")}}function HL(e,n){if(1&e){const t=he();f(0,"div",62)(1,"textarea",83,84),$("input",function(){K(t);const i=ze(2);return Q(C(2).blueprintModificateTask.description=i.value)}),w(3,"translate"),v(4," "),h()()}if(2&e){const t=C(2);d(1),on("placeholder",D(3,2,"description")),g("value",null==t.blueprintModificateTask?null:t.blueprintModificateTask.description)}}function GL(e,n){if(1&e&&S(0,"app-text-avatar",85),2&e){const t=C(2);g("color",t.task.author.avatar_hex_color)("text",t.utilsService.getAvatarText(t.task.author))("tooltip",t.task.author.username)}}function zL(e,n){if(1&e&&(f(0,"div",31)(1,"div",32)(2,"label"),v(3),w(4,"translate"),h()(),f(5,"div",32)(6,"div",33)(7,"div",34),S(8,"input",35),f(9,"div",36),S(10,"i",86),h()()()()()),2&e){const t=C(2);d(3),y(" ",D(4,2,"task-status")," "),d(5),g("value",t.task.task_status.name)}}function qL(e,n){if(1&e){const t=he();f(0,"button",87),$("click",function(){K(t);const i=C(2);return Q(i.modify({task_status_id:null==i.task.task_status?null:i.task.task_status.default_prev_task_status_id}))}),S(1,"i",88),v(2),w(3,"async"),h()}if(2&e){const t=C(2);let r;d(2),y(" ",null==(r=D(3,1,t.prevStatus))?null:r.name," ")}}function WL(e,n){if(1&e){const t=he();Ae(0),S(1,"app-text-avatar",89),f(2,"app-manage-assigned-user-modal",90),$("onRemoveFromTask",function(){const o=K(t).$implicit;return Q(C(2).removeUserFromTask(o.user.id))}),h(),xe()}if(2&e){const t=n.$implicit,r=C(2);d(1),g("color",t.user.avatar_hex_color)("text",r.utilsService.getAvatarText(t.user))("tooltip",t.user.username),Ve("data-bs-target","#manage-assignment-user-"+t.user.id+"-modal"),d(1),g("user",t.user)("target","manage-assignment-user-"+t.user.id+"-modal")("assignmentDate",t.assigned_at)("editable",!(null==r.authService.loggedUser.role||!r.authService.loggedUser.role.permission_change_assignment))}}function YL(e,n){if(1&e){const t=he();Ae(0),S(1,"app-icon-avatar",91),f(2,"app-new-assignment-modal",92),$("onAddAssignment",function(i){return K(t),Q(C(2).addAssignment(i))})("onClose",function(){K(t);const i=C(2);return Q(i.onAddAssignment.emit({target:i.task.id,new:i.task}))}),h(),xe()}if(2&e){const t=C(2);d(1),Ve("data-bs-target","#new-assignment-modal-"+t.task.id),d(1),g("target","new-assignment-modal-"+t.task.id)("alreadyAssignedUsers",t.getAssignedUsers())}}function KL(e,n){if(1&e){const t=he();f(0,"button",93),$("click",function(){K(t);const i=C(2);return Q(i.modify({task_status_id:null==i.task.task_status?null:i.task.task_status.default_next_task_status_id}))}),v(1),w(2,"async"),S(3,"i",94),h()}if(2&e){const t=C(2);let r;d(1),y(" ",null==(r=D(2,1,t.nextStatus))?null:r.name," ")}}const FD=function(){return[]};function QL(e,n){if(1&e){const t=he();f(0,"div",1)(1,"div",2)(2,"div",3)(3,"h4",4)(4,"div",5)(5,"div",6),k(6,RL,6,5,"ng-container",7),k(7,OL,11,10,"ng-template",null,8,Wt),h(),f(9,"div",9)(10,"div",10),k(11,NL,2,3,"i",11),h(),k(12,BL,12,6,"div",12),k(13,jL,8,6,"ng-template",null,13,Wt),h()()(),f(15,"div",14)(16,"app-deadline-badge",15),$("onDeadlineModified",function(i){return K(t),Q(C().modify({deadline:i}))}),h(),f(17,"span",16),v(18," | "),h(),k(19,UL,3,5,"ng-container",17),S(20,"app-badge",18),f(21,"app-add-task-label-modal",19),$("onAdd",function(i){return K(t),Q(C().addLabelToTask(i))})("onClose",function(){K(t);const i=C();return Q(i.onAddLabel.emit({target:i.task.id,new:i.task}))}),h()(),f(22,"p",20),k(23,$L,2,1,"ng-container",7),h(),k(24,HL,5,4,"ng-template",null,21,Wt),f(26,"div",22)(27,"div",23)(28,"h2",24)(29,"button",25,26),v(31),w(32,"translate"),h()(),f(33,"div",27)(34,"div",28)(35,"div",29)(36,"div",30)(37,"div",1)(38,"div",2)(39,"div",3)(40,"div",29)(41,"div",31)(42,"div",32)(43,"label"),v(44),w(45,"translate"),h()(),f(46,"div",32)(47,"div",33)(48,"div",34),S(49,"input",35),f(50,"div",36),S(51,"i",37),h()()()()(),f(52,"div",31)(53,"div",32)(54,"label"),v(55),w(56,"translate"),h()(),f(57,"div",32)(58,"div",29)(59,"div",38)(60,"div",33)(61,"div",34),S(62,"input",35),f(63,"div",36),S(64,"i",39),h()()()(),f(65,"div",38),k(66,GL,1,3,"app-text-avatar",40),h()()()(),f(67,"div",31)(68,"div",32)(69,"label"),v(70),w(71,"translate"),h()(),f(72,"div",32)(73,"div",33)(74,"div",34),S(75,"input",35),f(76,"div",36),S(77,"i",41),h()()()()(),f(78,"div",31)(79,"div",32)(80,"label"),v(81),w(82,"translate"),h()(),f(83,"div",32)(84,"div",33)(85,"div",34),S(86,"input",35),f(87,"div",36),S(88,"i",42),h()()()()(),k(89,zL,11,4,"div",43),f(90,"div",31)(91,"div",32)(92,"label"),v(93),w(94,"translate"),h()(),f(95,"div",32)(96,"div",33)(97,"div",34)(98,"input",44,45),$("input",function(){K(t);const i=ze(99);return Q(C().blueprintModificateTask.git_branch=i.value)}),h(),f(100,"div",36),S(101,"i",46),h()()()()()()()()()()()()()()(),f(102,"app-task-todo-list",47),$("onRefresh",function(){return K(t),Q(C().refreshTask())}),h()()(),f(103,"div",48)(104,"div",32),k(105,qL,4,3,"button",49),h(),f(106,"div",32),k(107,WL,3,8,"ng-container",17),k(108,YL,3,3,"ng-container",50),h(),f(109,"div",32),k(110,KL,4,3,"button",51),h()(),f(111,"app-dialog-modal",52),$("onConfirm",function(){return K(t),Q(C().delete())}),h(),f(112,"app-dropdown-modal",53),$("onSelect",function(i){return K(t),Q(C().changeStatus(i))}),h()()}if(2&e){const t=ze(8),r=ze(14),i=ze(25),o=C();let s,a,l;d(6),g("ngIf",!o.inModify)("ngIfElse",t),d(5),g("ngIf",!o.userAssignedToTask(o.authService.loggedUser.id)&&!o.inModify),d(1),g("ngIf",!o.inModify)("ngIfElse",r),d(4),g("deadline",o.task.deadline)("done",!(null==o.task.task_status||!o.task.task_status.final))("editable",null!==(s=o.authService.loggedUser&&o.authService.loggedUser.role&&o.authService.loggedUser.role.permission_edit_task_deadline)&&void 0!==s&&s)("id","deadline-tas-"+o.task.id),d(3),g("ngForOf",o.task.labels),d(1),g("text","+"),Ve("data-bs-target","#add-label-task-"+o.task.id+"-modal"),d(1),g("target","add-label-task-"+o.task.id+"-modal")("alreadyAssignedLabels",null!==(a=o.task.labels)&&void 0!==a?a:It(66,FD)),d(2),g("ngIf",!o.inModify)("ngIfElse",i),d(3),g("id","moreDeatilsAccordion-"+o.task.id),d(3),Ve("data-bs-target","#flush-collapseDetails-"+o.task.id),d(2),y(" ",D(32,54,"more-details")," "),d(2),g("id","flush-collapseDetails-"+o.task.id),Ve("data-bs-parent","#moreDeatilsAccordion-"+o.task.id),d(11),y(" ",D(45,56,"id-code")," "),d(5),g("value",o.task.id),d(6),y(" ",D(56,58,"author")," "),d(7),g("value",null==o.task.author?null:o.task.author.email),d(4),g("ngIf",o.task.author),d(4),y(" ",D(71,60,"created-at")," "),d(5),g("value",o.task.created_at),d(6),y(" ",D(82,62,"updated-at")," "),d(5),g("value",o.task.updated_at),d(3),g("ngIf",o.task.task_status),d(4),y(" ",D(94,64,"git_branch")," "),d(5),g("value",o.task.git_branch)("readonly",!o.inModify),d(4),g("taskId",o.task.id)("todoCollapseStatus",o.todoCollapseStatus),d(3),g("ngIf",null==o.task.task_status?null:o.task.task_status.default_prev_task_status_id),d(2),g("ngForOf",o.task.assigned_users),d(1),g("ngIf",!(null==o.authService.loggedUser.role||!o.authService.loggedUser.role.permission_change_assignment)),d(2),g("ngIf",null==o.task.task_status?null:o.task.task_status.default_next_task_status_id),d(1),g("target","delete-request-"+o.task.id)("centered",!0)("confirmBtn",!0)("confirmBtnTxt","confirm")("borderless",!0),d(1),g("target","move-task-"+o.task.id)("title","move-task")("currentValue",o.task.task_status)("options",null!==(l=o.taskStatus)&&void 0!==l?l:It(67,FD))("confirmBtnText","move")("showMaskFn",o.taskStatusMaskFn)("comparatorFn",o.compareTaskStatusFn)("showCurrentInList",!0)("disableCurrent",!0)}}let RD=(()=>{class e{taskStatusMaskFn(t){return t.name}compareTaskStatusFn(t,r){return t.id==r.id}constructor(t,r,i,o,s){this.taskService=t,this.authService=r,this.utilsService=i,this.taskStatusService=o,this.taskAssignmentService=s,this.todoCollapseStatus=!1,this.taskStatus=null,this.onDeletion=new ue,this.onModify=new ue,this.onRemoveAssignment=new ue,this.onAddAssignment=new ue,this.onRemoveLabel=new ue,this.onAddLabel=new ue,this._hasNews=!1,this._inModify=!1}get hasNews(){return this._hasNews}set hasNews(t){this._hasNews=t}ngOnInit(){this.task&&this.task.task_status&&(this.task.task_status.default_next_task_status_id&&(this.nextStatus=this.taskStatusService.getTaskById(this.task.task_status.default_next_task_status_id)),this.task.task_status.default_prev_task_status_id&&(this.prevStatus=this.taskStatusService.getTaskById(this.task.task_status.default_prev_task_status_id))),this.refreshHasNews(),this.loadTaskStatus()}get inModify(){return this._inModify}set inModify(t){this._inModify=t,this.task&&t&&this.initBlueprintTask()}loadTaskStatus(){this.taskStatus||(Et.logWarning("force load task status"),this.taskStatusService.all().then(t=>{t.subscribe({next:r=>{r&&(this.taskStatus=r)}})}))}initBlueprintTask(){this.task&&(this.blueprintModificateTask={id:this.task.id,name:this.task.name,description:this.task.description,priority:this.task.priority,git_branch:this.task.git_branch})}userAssignedToTask(t){if(!t||!this.task)return!1;let r=this.task.assigned_users?.map(i=>i.user.id).includes(t);return r||!1}getAssignedUsers(){return this.task?.assigned_users?.map(t=>t.user)??[]}removeUserFromTask(t){var r=this;return bt(function*(){if(!r.task)return;Et.logInfo(`Removing user with id ${t} from task: ${r.task.id} - ${r.task.name}`);const i=r.task.id;r.taskService.removeAssignment(i,t).then(o=>{o.subscribe({next:s=>{r.refreshTask(()=>{r.onRemoveAssignment.emit({target:i,new:r.task})})}})})})()}addAssignment(t){var r=this;return bt(function*(){r.task&&(Et.logInfo(`Add user ${t.username} to task: ${r.task.id} - ${r.task.name}`),r.taskService.addAssignment(r.task.id,t.id).then(o=>{o.subscribe({next:s=>{r.refreshTask()}})}))})()}delete(){if(!this.task)return;Et.logInfo("Remove task "+this.task?.name);const t=this.task.id;this.taskService.deleteById(t).then(r=>{r.subscribe({next:i=>{this.onDeletion.emit(t)}})})}removeLabelFromTask(t){if(!this.task)return;Et.logInfo("Remove label");const r=this.task.id;this.taskService.removeLabel(r,t.id).then(i=>{i.subscribe({next:o=>{this.refreshTask(()=>{this.onRemoveLabel.emit({target:r,new:this.task})})}})})}addLabelToTask(t){this.task&&(Et.logInfo("Add label"),this.taskService.addLabel(this.task.id,t.id).then(i=>{i.subscribe({next:o=>{this.refreshTask()}})}))}modify(t){if(!this.task)return;Et.logInfo("Modify task "+this.task?.name);const r=this.task.id;this.taskService.update(r,t).then(i=>{i.subscribe({next:o=>{this.refreshTask(()=>{this.onModify.emit({target:r,new:this.task})})}})})}refreshHasNews(){if(!this.authService.loggedUser||!this.task)return this.hasNews=!1,this.hasNews;if(this.userAssignedToTask(this.authService.loggedUser.id)){const t=this.task.assigned_users?.find(r=>r.user.id==this.authService.loggedUser.id);return t?null==t.last_watched_at?(this.hasNews=!0,this.hasNews):(this.hasNews=this.task.updated_at>t.last_watched_at,this.hasNews):(this.hasNews=!1,this.hasNews)}return null==this.authService.loggedUser.last_visit_at?(this.hasNews=!0,this.hasNews):(this.hasNews=this.task.updated_at>this.authService.loggedUser.last_visit_at,this.hasNews)}updateLastWatched(){!this.authService.loggedUser||!this.task||(this.userAssignedToTask(this.authService.loggedUser.id)?this.taskAssignmentService.updateByTaskUserId(this.task.id,this.authService.loggedUser.id,{last_watched_at:this.utilsService.datetimeNow()}).then(t=>{t.subscribe({next:r=>{Et.logInfo("Updated last watched"),this.refreshTask(()=>{this.refreshHasNews()})}})}):(this.hasNews=!1,this.authService.updateLastVisit()))}refreshTask(t=(()=>{})){this.task&&this.taskService.find(this.task.id).then(r=>{r.subscribe({next:i=>{this.task=i,t()}})})}changeStatus(t){!this.task||!t||this.modify({task_status_id:t.id})}}return e.\u0275fac=function(t){return new(t||e)(O(ul),O(Un),O(Ni),O(ID),O(TP))},e.\u0275cmp=De({type:e,selectors:[["app-task-preview"]],inputs:{task:"task",todoCollapseStatus:"todoCollapseStatus",taskStatus:"taskStatus"},outputs:{onDeletion:"onDeletion",onModify:"onModify",onRemoveAssignment:"onRemoveAssignment",onAddAssignment:"onAddAssignment",onRemoveLabel:"onRemoveLabel",onAddLabel:"onAddLabel"},decls:1,vars:1,consts:[["class","card",4,"ngIf"],[1,"card"],[1,"card-content"],[1,"card-body"],[1,"card-title"],[1,"row","justify-content-between"],[1,"col-md-10"],[4,"ngIf","ngIfElse"],["titleModification",""],[1,"col-md-2","d-flex","justify-content-end"],[1,"mr-3"],["class","bi bi-clipboard2-x-fill not-assigned-task","data-bs-toggle","tooltip","data-bs-placement","top",4,"ngIf"],["class","btn-group mb-1",4,"ngIf","ngIfElse"],["confirmModifyBtn",""],[1,"d-flex","justify-content-start"],[3,"deadline","done","editable","id","onDeadlineModified"],[1,"separator"],[4,"ngFor","ngForOf"],["data-bs-toggle","modal",1,"cursor-pointer",3,"text"],[3,"target","alreadyAssignedLabels","onAdd","onClose"],[1,"card-text","mt-2"],["descriptionModification",""],[1,"accordion","accordion-flush","mb-1",3,"id"],[1,"accordion-item","rounded"],[1,"accordion-header"],["type","button","data-bs-toggle","collapse","aria-expanded","false","aria-controls","flush-collapseOne",1,"accordion-button","collapsed","rounded"],["openMoreDetailsBtn",""],[1,"accordion-collapse","collapse","rounded",3,"id"],[1,"accordion-body"],[1,"row"],[1,"col-12"],[1,"col-md-6"],[1,"col-md-auto"],[1,"form-group","has-icon-left"],[1,"position-relative"],["type","text","readonly","",1,"form-control",3,"value"],[1,"form-control-icon"],[1,"bi","bi-fingerprint"],[1,"col-auto"],[1,"bi","bi-person"],["class","cursor-arrow",3,"color","text","tooltip",4,"ngIf"],[1,"bi","bi-hourglass-top"],[1,"bi","bi-arrow-clockwise"],["class","col-md-6",4,"ngIf"],["type","text",1,"form-control",3,"value","readonly","input"],["gitBranch",""],[1,"bi","bi-git"],[3,"taskId","todoCollapseStatus","onRefresh"],[1,"card-footer","d-flex","justify-content-between"],["class","btn btn-lg icon icon-left btn-outline-primary",3,"click",4,"ngIf"],[4,"ngIf"],["class","btn btn-lg icon icon-right btn-outline-primary",3,"click",4,"ngIf"],["title","delete-request",3,"target","centered","confirmBtn","confirmBtnTxt","borderless","onConfirm"],[3,"target","title","currentValue","options","confirmBtnText","showMaskFn","comparatorFn","showCurrentInList","disableCurrent","onSelect"],[1,"d-flex"],["data-bs-toggle","tooltip","data-bs-placement","top","title","Priority",1,"cursor-arrow",2,"font-size","small",3,"text","color","textColor"],[1,"text-break"],["class","cursor-pointer","style","font-size: medium;",3,"icon","color","text","click",4,"ngIf"],[1,"cursor-pointer",2,"font-size","medium",3,"icon","color","text","click"],[1,"col-md-2"],["type","number",1,"form-control","form-control-sm",3,"placeholder","value","input"],["priorityInput",""],[1,"form-group"],["id","task-title","appAutoHeight","",1,"form-control",3,"placeholder","value","base","offset","input"],["titleTA",""],["data-bs-toggle","tooltip","data-bs-placement","top",1,"bi","bi-clipboard2-x-fill","not-assigned-task"],[1,"btn-group","mb-1"],[1,"dropdown","icon-left"],["type","button","data-bs-toggle","dropdown","aria-haspopup","true","aria-expanded","false",1,"btn","icon","btn-sm","btn-light","me-1"],[1,"bi","bi-three-dots-vertical"],[1,"dropdown-menu"],["class","dropdown-item","data-bs-toggle","modal",4,"ngIf"],["class","dropdown-item",3,"click",4,"ngIf"],[1,"dropdown-item",3,"click"],["data-bs-toggle","modal",1,"dropdown-item"],[1,"bi","bi-arrow-left-right","me-50"],[1,"bi","bi-pencil","me-50"],[1,"bi","bi-trash","me-50"],[1,"btn","icon","icon-right","btn-light",3,"click"],[1,"btn","icon","icon-right","btn-primary",3,"click"],[1,"bi","bi-check-lg"],["data-bs-toggle","modal",1,"cursor-pointer",3,"text","color"],[3,"target","label","onRemoveFromTask"],["id","task-description","appAutoHeight","",1,"form-control",3,"placeholder","value","input"],["descriptionTA",""],[1,"cursor-arrow",3,"color","text","tooltip"],[1,"bi","bi-kanban-fill"],[1,"btn","btn-lg","icon","icon-left","btn-outline-primary",3,"click"],[1,"bi","bi-arrow-left"],["data-bs-toggle","modal",1,"cursor-pointer","me-3",3,"color","text","tooltip"],[3,"user","target","assignmentDate","editable","onRemoveFromTask"],["color","#5b6370","iconClass","bi bi-plus","tooltip","add-new-user","data-bs-toggle","modal",1,"cursor-pointer"],[3,"target","alreadyAssignedUsers","onAddAssignment","onClose"],[1,"btn","btn-lg","icon","icon-right","btn-outline-primary",3,"click"],[1,"bi","bi-arrow-right"]],template:function(t,r){1&t&&k(0,QL,113,68,"div",0),2&t&&g("ngIf",r.task&&r.authService.loggedUser)},dependencies:[Mn,$e,Bu,dl,PP,VP,HP,cL,fL,gL,bL,AD,CL,kL,p1,Xe],styles:[".not-assigned-task[_ngcontent-%COMP%]{color:#de8c2f}.rounded[_ngcontent-%COMP%]{border-radius:15px}.separator[_ngcontent-%COMP%]{margin-left:.5vw;margin-right:.5vw}"]}),e})();function XL(e,n){if(1&e){const t=he();f(0,"app-task-preview",3),$("onDeletion",function(i){return K(t),Q(C(2).onDeletion.emit(i))})("onAddAssignment",function(i){return K(t),Q(C(2).onAddAssignment.emit(i))})("onRemoveAssignment",function(i){return K(t),Q(C(2).onRemoveAssignment.emit(i))})("onModify",function(i){return K(t),Q(C(2).onModify.emit(i))}),h()}if(2&e){const t=n.$implicit,r=n.index,i=C(2);g("todoCollapseStatus",0==r)("task",t)("taskStatus",i.taskStatus)}}function ZL(e,n){if(1&e){const t=he();f(0,"div",4)(1,"div",5)(2,"button",6),$("click",function(){return K(t),Q(C(2).scrollTop())}),S(3,"i",7),h()()()}}function JL(e,n){if(1&e&&(Ae(0),k(1,XL,1,3,"app-task-preview",1),k(2,ZL,4,0,"div",2),xe()),2&e){const t=C();d(1),g("ngForOf",t.tasks),d(1),g("ngIf",t.tasks.length>1)}}let e3=(()=>{class e{constructor(t){this.authService=t,this.tasks=null,this.taskStatus=null,this.nextTaskStatus=null,this.prevTaskStatus=null,this.onTop=[],this.onDeletion=new ue,this.onModify=new ue,this.onRemoveAssignment=new ue,this.onAddAssignment=new ue,this.onRemoveLabel=new ue,this.onAddLabel=new ue,this.authService.refreshMe()}ngOnInit(){this.setOnTop()}setOnTop(){if(!this.tasks)return;const t=[],r=[];for(const i of this.tasks)this.onTop.includes(i.id)?t.push(i):r.push(i);this.tasks=[...t,...r]}scrollTop(){window.scroll(0,0)}}return e.\u0275fac=function(t){return new(t||e)(O(Un))},e.\u0275cmp=De({type:e,selectors:[["app-task-preview-list"]],inputs:{tasks:"tasks",taskStatus:"taskStatus",nextTaskStatus:"nextTaskStatus",prevTaskStatus:"prevTaskStatus",onTop:"onTop"},outputs:{onDeletion:"onDeletion",onModify:"onModify",onRemoveAssignment:"onRemoveAssignment",onAddAssignment:"onAddAssignment",onRemoveLabel:"onRemoveLabel",onAddLabel:"onAddLabel"},decls:1,vars:1,consts:[[4,"ngIf"],[3,"todoCollapseStatus","task","taskStatus","onDeletion","onAddAssignment","onRemoveAssignment","onModify",4,"ngFor","ngForOf"],["class","row justify-content-center",4,"ngIf"],[3,"todoCollapseStatus","task","taskStatus","onDeletion","onAddAssignment","onRemoveAssignment","onModify"],[1,"row","justify-content-center"],[1,"col-auto"],[1,"btn","icon","btn-light",3,"click"],[1,"bi","bi-arrow-up-square"]],template:function(t,r){1&t&&k(0,JL,3,2,"ng-container",0),2&t&&g("ngIf",r.tasks)},dependencies:[Mn,$e,RD]}),e})(),og=(()=>{class e{constructor(){this.title=""}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=De({type:e,selectors:[["app-page-heading"]],inputs:{title:"title"},decls:4,vars:3,consts:[[1,"page-heading"]],template:function(t,r){1&t&&(f(0,"div",0)(1,"h3"),v(2),w(3,"translate"),h()()),2&t&&(d(2),y(" ",D(3,1,r.title)," "))},dependencies:[Xe]}),e})(),OD=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=De({type:e,selectors:[["app-loader"]],decls:3,vars:0,consts:[[1,"row","justify-content-center"],[1,"col-auto"],["src","./assets/svg/grid.svg","alt","loader",1,"me-4"]],template:function(t,r){1&t&&(f(0,"div",0)(1,"div",1),S(2,"img",2),h()())}}),e})();function t3(e,n){1&e&&S(0,"button",3)}function n3(e,n){if(1&e&&(f(0,"div",1),v(1),w(2,"translate"),k(3,t3,1,0,"button",2),h()),2&e){const t=C();d(1),y(" ",D(2,2,t.title)," "),d(2),g("ngIf",t.dismissable)}}let Ds=(()=>{class e{constructor(){this.dismissable=!0}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=De({type:e,selectors:[["app-error-alert"]],inputs:{title:"title",dismissable:"dismissable"},decls:1,vars:1,consts:[["class","alert alert-light-danger alert-dismissible show fade",4,"ngIf"],[1,"alert","alert-light-danger","alert-dismissible","show","fade"],["type","button","class","btn-close","data-bs-dismiss","alert","aria-label","Close",4,"ngIf"],["type","button","data-bs-dismiss","alert","aria-label","Close",1,"btn-close"]],template:function(t,r){1&t&&k(0,n3,4,4,"div",0),2&t&&g("ngIf",r.title)},dependencies:[$e,Xe]}),e})();function r3(e,n){if(1&e&&(f(0,"div",9)(1,"h4",10),v(2),w(3,"translate"),h()()),2&e){const t=C(2);d(2),y(" ",D(3,1,t.title)," ")}}function i3(e,n){if(1&e){const t=he();f(0,"div",26)(1,"div",27)(2,"label",28),v(3),w(4,"translate"),h(),f(5,"input",29),$("input",function(){return K(t),Q(C(3).filter())}),h()()()}if(2&e){const t=n.$implicit;d(3),y(" ",D(4,4,t)," "),d(2),g("name",t)("placeholder",t)("formControlName",t)}}function o3(e,n){if(1&e){const t=he();f(0,"form",11)(1,"div",12)(2,"div",13)(3,"h5",14),v(4),w(5,"translate"),h()(),f(6,"div",13)(7,"div",15)(8,"input",16,17),$("change",function(){K(t);const i=ze(9),o=C(2);return o.filterMode=i.checked,Q(o.filter())}),h(),f(10,"label",18),S(11,"i",19),v(12," / "),S(13,"i",20),h()()()(),f(14,"div",21),k(15,i3,6,6,"div",22),h(),f(16,"div",23)(17,"button",24),$("click",function(){return K(t),Q(C(2).reset())}),v(18),w(19,"translate"),h(),f(20,"button",25),$("click",function(){return K(t),Q(C(2).filter())}),v(21),w(22,"translate"),h()()()}if(2&e){const t=C(2);g("formGroup",t.filterForm),d(4),y(" ",D(5,6,"filters")," "),d(4),g("checked",t.filterMode),d(7),g("ngForOf",t.filterFields),d(3),y(" ",D(19,8,"reset")," "),d(3),y(" ",D(22,10,"submit")," ")}}function s3(e,n){if(1&e&&(f(0,"section",1)(1,"div",2)(2,"div",3)(3,"div",4),k(4,r3,4,3,"div",5),f(5,"div",6)(6,"div",7),k(7,o3,23,12,"form",8),h()()()()()()),2&e){const t=C();d(4),g("ngIf",t.title),d(3),g("ngIf",t.filterForm)}}let ND=(()=>{class e{constructor(){this.entities=[],this.entitiesChange=new ue,this.onFilter=new ue,this.onReset=new ue,this._filterMode=!1}get filterMode(){return this._filterMode}set filterMode(t){this._filterMode=t,this.onFilter.emit()}ngOnInit(){if(this.filterFields){this.filterForm=new An({});for(let t=0;t{for(let o=0;o{for(let o=0;o{return(e=Uu||(Uu={})).PRIORITY="priority",e.DEADLINE="deadline",e.CREATION="created_at",Uu;var e})();let _3=(()=>{class e{constructor(t,r,i){this.dashboardService=t,this.authService=r,this.taskService=i,this.OrderBy=Uu,this._orderBy=this.OrderBy.PRIORITY,this.loadingError=!1,this.dashboard=null,this.tasks=[],this.onTopTaskIdList=[],this.creationForm=new An({name:new oe("",[He.required]),description:new oe(""),priority:new oe("",[He.required]),selfAssigned:new oe(!1)}),this._orderReverse=!0,this.authService.refreshMe(),this.authService.updateLastVisit(),this.updateLastVisitInterval=setInterval(()=>{this.authService.updateLastVisit()},Gt.updateLastVisitInterval)}ngOnDestroy(){clearInterval(this.updateLastVisitInterval),this.authService.updateLastVisit()}get taskStatusIdIndex(){return this._taskStatusIdIndex}set taskStatusIdIndex(t){this._taskStatusIdIndex=t}get orderBy(){return this._orderBy}set orderBy(t){this._orderBy=t}get orderReverse(){return this._orderReverse}set orderReverse(t){this._orderReverse=t}ngOnInit(){this.loadDashboard()}loadDashboard(){this.dashboard=null,this.dashboardService.getData().then(t=>{t.subscribe({next:r=>{r?(this.dashboard=r,this.tasks=[...this.dashboard.tasks],this.taskStatusIdIndex||(this.taskStatusIdIndex=this.dashboard.default_task_status_id),this.loadingError=!1):this.loadingError=!0}})})}getTaskStatusById(t){this.taskStatusIdIndex||(this.taskStatusIdIndex=this.dashboard?.default_task_status_id);const r=this.dashboard?.task_status?.filter(i=>i.id==t);return r?r[0]:null}getCurrentTaskStatus(){return this.taskStatusIdIndex?this.getTaskStatusById(this.taskStatusIdIndex):null}getNextTaskStatus(){let t=this.getCurrentTaskStatus();return t?t.default_next_task_status:null}getPrevTaskStatus(){let t=this.getCurrentTaskStatus();return t?t.default_prev_task_status:null}getAllTaskBasedOnStatusId(t){if(!this.tasks||!t)return null;let r=this.tasks.filter(i=>void 0!==i&&i.task_status_id===t);return r?(r?.sort((i,o)=>{const s=i[this.orderBy],a=o[this.orderBy];let l=0;return s>a&&(l=1),sr.id!=t))}updateTask(t){if(this.tasks)for(let r=0;r{i.subscribe({next:o=>{o&&this.creationForm.reset(),r?this.taskService.addAssignment(o.id,this.authService.loggedUser.id).then(s=>{s.subscribe({next:a=>{this.taskService.find(o.id).then(l=>{l.subscribe({next:c=>{this.tasks.push(c)}})})}})}):this.tasks.push(o)}})})}}return e.\u0275fac=function(t){return new(t||e)(O(EP),O(Un),O(ul))},e.\u0275cmp=De({type:e,selectors:[["app-dashboard"]],decls:94,vars:38,consts:[[1,"row","justify-content-between"],[1,"col-auto"],[3,"title"],["heading",""],["data-bs-toggle","collapse","data-bs-target","#dashboard-operations","aria-expanded","false","aria-controls","dashboard-operations",1,"btn","icon","btn-light"],[1,"bi","bi-toggles2"],["id","dashboard-operations",1,"collapse","mb-5"],[3,"filterFields","entities","entitiesChange",4,"ngIf"],[1,"row","justify-content-center"],[1,"btn-group","mb-1"],[1,"dropdown"],["type","button","id","dropdownMenuButton","data-bs-toggle","dropdown","aria-haspopup","true","aria-expanded","false",1,"btn","btn-primary","dropdown-toggle","me-1"],["aria-labelledby","dropdownMenuButton",1,"dropdown-menu"],["class","dropdown-item",3,"click",4,"ngFor","ngForOf"],["class","card sticky-top","style","z-index: 1; box-shadow: rgba(0, 0, 0, 0.16) 0px 3px 6px, rgba(0, 0, 0, 0.23) 0px 3px 6px;",3,"background-color",4,"ngIf"],[1,"row","justify-content-between","mb-1"],[4,"ngIf"],[1,"btn","icon","btn-light",3,"click"],[1,"bi","bi-arrow-clockwise"],[1,"fab-container","pos-fixed"],[1,"fab","shadow"],[1,"fab-content"],["data-bs-toggle","modal","data-bs-target","#create-new-task",1,"material-icons","cursor-pointer"],[1,"bi","bi-plus"],["id","create-new-task","tabindex","-1","role","dialog","aria-labelledby","create-new-task-title","aria-hidden","true",1,"modal","fade"],["role","document",1,"modal-dialog","modal-dialog-centered","modal-dialog-centered","modal-dialog-scrollable"],[1,"modal-content"],[1,"modal-header"],["id","create-new-task-title",1,"modal-title"],["type","button","data-bs-dismiss","modal","aria-label","Close",1,"close"],[1,"bi","bi-x"],[1,"modal-body"],["id","basic-vertical-layouts"],[1,"row","match-height"],[1,"col-12"],[1,"card"],[1,"card-content"],[1,"card-body"],[1,"form-body"],[3,"formGroup"],[1,"row"],[1,"form-group"],[1,"form-floating"],["placeholder","Leave a name here","formControlName","name",1,"form-control",2,"height","15vh"],["for","floatingTextarea"],[1,"row","align-items-center","justify-content-center"],[1,"col-md-9"],["type","number","formControlName","priority",1,"form-control",3,"placeholder"],[1,"row","mt-2"],["placeholder","Leave a description here","formControlName","description",1,"form-control",2,"height","30vh"],[1,"form-check"],[1,"checkbox"],["type","checkbox","id","self-assigned","formControlName","selfAssigned",1,"form-check-input",3,"checked"],["for","self-assigned"],[1,"modal-footer"],["type","button","data-bs-dismiss","modal",1,"btn","btn-light-secondary"],[1,"bx","bx-x","d-block","d-sm-none"],[1,"d-none","d-sm-block"],["type","button","data-bs-dismiss","modal",1,"btn","btn-primary","ml-1",3,"disabled","click"],[1,"bx","bx-check","d-block","d-sm-none"],[3,"filterFields","entities","entitiesChange"],[1,"dropdown-item",3,"click"],[1,"card","sticky-top",2,"z-index","1","box-shadow","rgba(0, 0, 0, 0.16) 0px 3px 6px, rgba(0, 0, 0, 0.23) 0px 3px 6px"],[1,"row","justify-content-between","align-items-center"],[1,"col-sm-auto"],["class","btn btn-lg icon icon-left btn-outline-primary",3,"click",4,"ngIf"],[1,"col-sm-8"],[1,"text-center"],["class","btn btn-lg icon icon-right btn-outline-primary",3,"click",4,"ngIf"],[1,"btn","btn-lg","icon","icon-left","btn-outline-primary",3,"click"],[1,"bi","bi-arrow-left"],[1,"btn","btn-lg","icon","icon-right","btn-outline-primary",3,"click"],[1,"bi","bi-arrow-right"],[1,"btn-group","dropdown","me-1","mb-1"],["type","button",1,"btn","btn-light",3,"click"],["type","button","data-bs-toggle","dropdown","aria-haspopup","true","aria-expanded","false","data-reference","parent",1,"btn","btn-light","dropdown-toggle","dropdown-toggle-split"],[1,"sr-only"],[1,"dropdown-menu"],[3,"tasks","taskStatus","onTop","onDeletion","onAddAssignment","onRemoveAssignment","onModify"]],template:function(t,r){1&t&&(f(0,"div",0)(1,"div",1),S(2,"app-page-heading",2,3),h(),f(4,"div",1)(5,"button",4),S(6,"i",5),h()()(),f(7,"div",6),k(8,l3,1,3,"app-filter",7),f(9,"div",8)(10,"div",1)(11,"div",9)(12,"div",10)(13,"button",11),v(14),w(15,"translate"),h(),f(16,"div",12),k(17,c3,2,1,"button",13),h()()()()()(),k(18,f3,13,7,"div",14),f(19,"div",15)(20,"div",1),k(21,h3,19,15,"ng-container",16),h(),f(22,"div",1)(23,"button",17),$("click",function(){return r.loadDashboard()}),S(24,"i",18),h()()(),k(25,p3,4,3,"ng-container",16),k(26,g3,2,0,"ng-container",16),k(27,m3,2,1,"ng-container",16),f(28,"div",19)(29,"div",20)(30,"div",21)(31,"span",22),S(32,"i",23),h()()()(),f(33,"div",24)(34,"div",25)(35,"div",26)(36,"div",27)(37,"h5",28),v(38),w(39,"translate"),h(),f(40,"button",29),S(41,"i",30),h()(),f(42,"div",31)(43,"section",32)(44,"div",33)(45,"div",34)(46,"div",35)(47,"div",36)(48,"div",37)(49,"div",38)(50,"form",39)(51,"div",40)(52,"div",34)(53,"div",41)(54,"div",42),S(55,"textarea",43),f(56,"label",44),v(57),w(58,"translate"),h()()()()(),f(59,"div",45)(60,"div",1)(61,"label"),v(62),w(63,"translate"),h()(),f(64,"div",46),S(65,"input",47),w(66,"translate"),h()(),f(67,"div",48)(68,"div",34)(69,"div",41)(70,"div",42),S(71,"textarea",49),f(72,"label",44),v(73),w(74,"translate"),h()()()()(),f(75,"div",8)(76,"div",1)(77,"div",50)(78,"div",51),S(79,"input",52),f(80,"label",53),v(81),w(82,"translate"),h()()()()()()()()()()()()()(),f(83,"div",54)(84,"button",55),S(85,"i",56),f(86,"span",57),v(87),w(88,"translate"),h()(),f(89,"button",58),$("click",function(){return r.newTask(),r.orderBy=r.OrderBy.CREATION,r.orderReverse=!0}),S(90,"i",59),f(91,"span",57),v(92),w(93,"translate"),h()()()()()()),2&t&&(d(2),g("title","dashboard"),d(6),g("ngIf",r.dashboard&&(null==r.dashboard?null:r.dashboard.tasks)),d(6),y(" ",D(15,20,"task-status")," "),d(3),g("ngForOf",null==r.dashboard?null:r.dashboard.task_status),d(1),g("ngIf",r.getCurrentTaskStatus()),d(3),g("ngIf",r.dashboard&&!r.loadingError),d(4),g("ngIf",r.dashboard&&!r.loadingError),d(1),g("ngIf",!r.dashboard&&!r.loadingError),d(1),g("ngIf",r.loadingError),d(11),y(" ",D(39,22,"add-task")," "),d(12),g("formGroup",r.creationForm),d(7),y(" ",D(58,24,"name")," "),d(5),y(" ",D(63,26,"priority"),": "),d(3),on("placeholder",D(66,28,"priority")),d(8),y(" ",D(74,30,"description")," "),d(6),g("checked",r.creationForm.controls.selfAssigned.value),d(2),y(" ",D(82,32,"assign-yourself")," "),d(6),y(" ",D(88,34,"close")," "),d(2),g("disabled",r.creationForm.invalid),d(3),y(" ",D(93,36,"confirm")," "))},dependencies:[Mn,$e,Vr,or,Xp,uo,Pr,Lr,sr,vr,e3,og,OD,Ds,ND,Xe],styles:['.pos-fixed[_ngcontent-%COMP%]{position:fixed!important}.fab-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:flex-end;align-items:center;-webkit-user-select:none;user-select:none;position:absolute;bottom:30px;right:30px}.fab-container[_ngcontent-%COMP%]:hover{height:100%}.fab-container[_ngcontent-%COMP%]:hover .sub-button[_ngcontent-%COMP%]:nth-child(2){transform:translateY(-80px)}.fab-container[_ngcontent-%COMP%]:hover .sub-button[_ngcontent-%COMP%]:nth-child(3){transform:translateY(-140px)}.fab-container[_ngcontent-%COMP%]:hover .sub-button[_ngcontent-%COMP%]:nth-child(4){transform:translateY(-200px)}.fab-container[_ngcontent-%COMP%]:hover .sub-button[_ngcontent-%COMP%]:nth-child(5){transform:translateY(-260px)}.fab-container[_ngcontent-%COMP%]:hover .sub-button[_ngcontent-%COMP%]:nth-child(6){transform:translateY(-320px)}.fab-container[_ngcontent-%COMP%] .fab[_ngcontent-%COMP%]{position:relative;height:70px;width:70px;background-color:#4ba2ff;border-radius:50%;z-index:2}.fab-container[_ngcontent-%COMP%] .fab[_ngcontent-%COMP%]:before{content:" ";position:absolute;bottom:0;right:0;height:35px;width:35px;background-color:inherit;border-radius:0 0 10px;z-index:-1}.fab-container[_ngcontent-%COMP%] .fab[_ngcontent-%COMP%] .fab-content[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;height:100%;width:100%;border-radius:50%}.fab-container[_ngcontent-%COMP%] .fab[_ngcontent-%COMP%] .fab-content[_ngcontent-%COMP%] .material-icons[_ngcontent-%COMP%]{color:#fff;font-size:48px}.fab-container[_ngcontent-%COMP%] .sub-button[_ngcontent-%COMP%]{position:absolute;display:flex;align-items:center;justify-content:center;bottom:10px;right:10px;height:50px;width:50px;background-color:#4ba2ff;border-radius:50%;transition:all .3s ease}.fab-container[_ngcontent-%COMP%] .sub-button[_ngcontent-%COMP%]:hover{cursor:pointer}.fab-container[_ngcontent-%COMP%] .sub-button[_ngcontent-%COMP%] .material-icons[_ngcontent-%COMP%]{color:#fff;padding-top:6px}']}),e})();function v3(e,n){1&e&&(f(0,"small",23),v(1),w(2,"translate"),h()),2&e&&(d(1),y(" ",D(2,1,"invalid-email")," "))}function y3(e,n){1&e&&(f(0,"button",24),v(1),w(2,"translate"),h()),2&e&&(g("disabled",!C().loginForm.valid),d(1),y(" ",D(2,2,"login")," "))}function b3(e,n){1&e&&(f(0,"button",25),S(1,"span",26),v(2),w(3,"translate"),h()),2&e&&(d(2),y(" ",D(3,1,"loading+dots")," "))}function C3(e,n){1&e&&(f(0,"div",27),S(1,"app-error-alert",28),h()),2&e&&(d(1),g("title","login-error"))}let w3=(()=>{class e{constructor(t,r){this.authService=t,this.router=r,this.loginForm=new An({email:new oe("",[He.required,He.email]),password:new oe("",[He.required]),keep:new oe(!1)}),this.loading=!1,this.loginError=!1,this.showPsw=!1}ngOnInit(){this.authService.isLogged().then(t=>{t.subscribe({next:r=>{r&&this.router.navigate(["/home"])}})})}onSubmit(){if(Et.logInfo("try to login..."),this.loginForm.valid){this.loading=!0,this.loginError=!1;const{email:t,password:r,keep:i}=this.loginForm.value;this.authService.login(t,r,i).then(o=>{o&&(this.router.navigate(["/home"]),this.loading=!1)}).catch(o=>{this.loginError=!0})}}}return e.\u0275fac=function(t){return new(t||e)(O(Un),O(Bt))},e.\u0275cmp=De({type:e,selectors:[["app-login"]],decls:34,vars:21,consts:[["id","auth"],[1,"row","h-100","justify-content-center"],[1,"col-lg-5","col-12"],[1,"auth-title"],[1,"auth-subtitle","mb-5"],[3,"formGroup","submit"],[1,"form-group","position-relative","has-icon-left","mb-4"],["type","email","placeholder","Email","formControlName","email",1,"form-control","form-control-xl"],[1,"form-control-icon"],[1,"bi","bi-envelope"],["style","color: #eb4b4b;",4,"ngIf"],["placeholder","Password","formControlName","password",1,"form-control","form-control-xl",3,"type"],[1,"bi","bi-shield-lock"],[1,"form-check","form-switch"],["type","checkbox","id","showPsw",1,"form-check-input",3,"checked","change"],["showPswCheckbox",""],["for","showPsw",1,"form-check-label"],[1,"form-check","form-check-lg","d-flex","align-items-end"],["type","checkbox","value","","id","keepCheck","formControlName","keep",1,"form-check-input","me-2"],["for","keepCheck",1,"form-check-label","text-gray-600"],["class","btn btn-primary btn-block btn-lg shadow-lg mt-5","type","submit",3,"disabled",4,"ngIf","ngIfElse"],["loadingBtn",""],["class","mt-3",4,"ngIf"],[2,"color","#eb4b4b"],["type","submit",1,"btn","btn-primary","btn-block","btn-lg","shadow-lg","mt-5",3,"disabled"],["type","button","disabled","",1,"btn","btn-primary","btn-block","btn-lg","shadow-lg","mt-5"],["role","status","aria-hidden","true",1,"spinner-border","spinner-border-sm"],[1,"mt-3"],[3,"title"]],template:function(t,r){if(1&t){const i=he();f(0,"div",0)(1,"div",1)(2,"div",2)(3,"h1",3),v(4),w(5,"translate"),h(),f(6,"p",4),v(7),w(8,"translate"),h(),f(9,"form",5),$("submit",function(){return r.onSubmit()}),f(10,"div",6),S(11,"input",7),f(12,"div",8),S(13,"i",9),h(),k(14,v3,3,3,"small",10),h(),f(15,"div",6),S(16,"input",11),f(17,"div",8),S(18,"i",12),h()(),f(19,"div",13)(20,"input",14,15),$("change",function(){K(i);const s=ze(21);return Q(r.showPsw=s.checked)}),h(),f(22,"label",16),v(23),w(24,"translate"),h()(),f(25,"div",17),S(26,"input",18),f(27,"label",19),v(28),w(29,"translate"),h()(),k(30,y3,3,4,"button",20),k(31,b3,4,3,"ng-template",null,21,Wt),k(33,C3,2,1,"div",22),h()()()()}if(2&t){const i=ze(32);d(4),y(" ",D(5,13,"login")," "),d(3),y(" ",D(8,15,"login-description")," "),d(2),g("formGroup",r.loginForm),d(2),Qe("is-invalid",r.loginForm.controls.email.dirty&&!r.loginForm.controls.email.valid),d(3),g("ngIf",r.loginForm.controls.email.dirty&&!r.loginForm.controls.email.valid),d(2),g("type",r.showPsw?"text":"password"),d(4),g("checked",r.showPsw),d(3),y(" ",D(24,17,"show-password")," "),d(5),y(" ",D(29,19,"keep-me")," "),d(2),g("ngIf",!r.loading||r.loginError)("ngIfElse",i),d(3),g("ngIf",r.loginError)}},dependencies:[$e,Vr,or,uo,Pr,Lr,sr,vr,Ds,Xe]}),e})(),D3=(()=>{class e extends ws{constructor(){super(...arguments),this.PROJECT_INFORMATION="project_project_information"}getProjectInformation(){return this.call(this.PROJECT_INFORMATION)}}return e.\u0275fac=function(){let n;return function(r){return(n||(n=et(e)))(r||e)}}(),e.\u0275prov=ee({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),$u=(()=>{class e extends ws{constructor(){super(...arguments),this.OPEN_SETTINGS="app_open_settings",this.OPEN_PROJECT="app_open_project",this.VERSION="app_version",this.CLOSE="app_close",this.INIT_PROJECT="app_init_project",this.PATHS_STORED="app_get_projects_paths_stored",this.REMOVE_WORK_DIR="app_remove_work_dir",this.GET_SETTINGS="app_get_settings",this.UPDATE_SETTINGS="app_update_settings"}openSettings(){this.call(this.OPEN_SETTINGS).then(t=>{t.subscribe({next:()=>{}})})}removeWorkDir(){this.call(this.REMOVE_WORK_DIR).then(t=>{t.subscribe({next:()=>{window.location.reload()}})})}version(){return this.call(this.VERSION)}openProject(t){return this.call(this.OPEN_PROJECT,t)}close(){return new Promise((t,r)=>{this.call(this.CLOSE).then(i=>{i.subscribe({next:()=>{}}),setTimeout(()=>{t()},Gt.timeBeforeClose)})})}initProject(t,r,i,o){return this.call(this.INIT_PROJECT,t,r,i,o)}projectsPathsStored(){return this.call(this.PATHS_STORED)}getSettings(){return this.call(this.GET_SETTINGS)}updateSettings(t){return this.call(this.UPDATE_SETTINGS,t)}}return e.\u0275fac=function(){let n;return function(r){return(n||(n=et(e)))(r||e)}}(),e.\u0275prov=ee({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function E3(e,n){1&e&&S(0,"button",3)}function S3(e,n){if(1&e&&(f(0,"div",1),v(1),w(2,"translate"),k(3,E3,1,0,"button",2),h()),2&e){const t=C();d(1),y(" ",D(2,2,t.title)," "),d(2),g("ngIf",t.dismissable)}}let sg=(()=>{class e{constructor(){this.dismissable=!0}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=De({type:e,selectors:[["app-success-alert"]],inputs:{title:"title",dismissable:"dismissable"},decls:1,vars:1,consts:[["class","alert alert-light-success alert-dismissible show fade",4,"ngIf"],[1,"alert","alert-light-success","alert-dismissible","show","fade"],["type","button","class","btn-close","data-bs-dismiss","alert","aria-label","Close",4,"ngIf"],["type","button","data-bs-dismiss","alert","aria-label","Close",1,"btn-close"]],template:function(t,r){1&t&&k(0,S3,4,4,"div",0),2&t&&g("ngIf",r.title)},dependencies:[$e,Xe]}),e})();function T3(e,n){1&e&&S(0,"button",3)}function I3(e,n){if(1&e&&(f(0,"div",1),v(1),w(2,"translate"),k(3,T3,1,0,"button",2),h()),2&e){const t=C();d(1),y(" ",D(2,2,t.title)," "),d(2),g("ngIf",t.dismissable)}}let Hu=(()=>{class e{constructor(){this.dismissable=!0}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=De({type:e,selectors:[["app-warning-alert"]],inputs:{title:"title",dismissable:"dismissable"},decls:1,vars:1,consts:[["class","alert alert-light-warning alert-dismissible show fade",4,"ngIf"],[1,"alert","alert-light-warning","alert-dismissible","show","fade"],["type","button","class","btn-close","data-bs-dismiss","alert","aria-label","Close",4,"ngIf"],["type","button","data-bs-dismiss","alert","aria-label","Close",1,"btn-close"]],template:function(t,r){1&t&&k(0,I3,4,4,"div",0),2&t&&g("ngIf",r.title)},dependencies:[$e,Xe]}),e})();function M3(e,n){1&e&&(f(0,"div",80)(1,"div",1)(2,"span",81),v(3),w(4,"translate"),h()()()),2&e&&(d(3),y(" ",D(4,1,"remove-work")," "))}function A3(e,n){if(1&e){const t=he();Ae(0),f(1,"div",5)(2,"div",35)(3,"label"),v(4),w(5,"translate"),h()(),f(6,"div",70)(7,"div",71)(8,"div",72),S(9,"input",73),f(10,"div",74),S(11,"i",75),h()()()()(),f(12,"div",5)(13,"div",35)(14,"label"),v(15),w(16,"translate"),h()(),f(17,"div",70)(18,"div",71)(19,"div",72),S(20,"input",76),f(21,"div",74),S(22,"i",77),h()()()()(),k(23,M3,5,3,"div",78),f(24,"app-dialog-modal",79),$("onConfirm",function(){return K(t),Q(C(2).appService.removeWorkDir())}),h(),xe()}if(2&e){const t=C(2);d(4),y(" ",D(5,11,"path")," "),d(5),g("value",t.projectInformation.path),d(6),y(" ",D(16,13,"database-path")," "),d(5),g("value",t.projectInformation.database_path),d(3),g("ngIf",!(null==t.authService.loggedUser||null==t.authService.loggedUser.role||!t.authService.loggedUser.role.permission_remove_work)),d(1),g("centered",!0)("target","remove-work-dir-modal")("title","delete-request")("confirmBtn",!0)("confirmBtnTxt","confirm")("borderless",!0)}}function x3(e,n){1&e&&S(0,"app-warning-alert",82),2&e&&g("dismissable",!1)}function k3(e,n){if(1&e&&(f(0,"div",20)(1,"div",8)(2,"form",33)(3,"div",34),k(4,A3,25,15,"ng-container",68),k(5,x3,1,1,"ng-template",null,69,Wt),h()()()()),2&e){const t=ze(6),r=C();d(4),g("ngIf",null!==r.projectInformation)("ngIfElse",t)}}function F3(e,n){1&e&&S(0,"app-error-alert",85),2&e&&g("dismissable",!0)("title","init-project-error")}function R3(e,n){1&e&&S(0,"app-success-alert",85),2&e&&g("dismissable",!0)("title","init-project-success")}function O3(e,n){if(1&e&&(f(0,"div",83)(1,"div",1),k(2,F3,1,2,"app-error-alert",84),h(),f(3,"div",1),k(4,R3,1,2,"app-success-alert",84),h()()),2&e){const t=C();d(2),g("ngIf",!1===t.showInitResult),d(2),g("ngIf",!0===t.showInitResult)}}function N3(e,n){if(1&e&&(f(0,"option",86),v(1),h()),2&e){const t=n.$implicit;g("value",t),d(1),y(" ",t," ")}}function P3(e,n){1&e&&(f(0,"div",83)(1,"div",1),S(2,"app-error-alert",85),h()()),2&e&&(d(2),g("dismissable",!0)("title","opening-error"))}let L3=(()=>{class e{constructor(t,r,i,o,s){this.projectService=t,this.appService=r,this.userService=i,this.authService=o,this.utilsService=s,this.differentUser=!1,this.projectsPaths=[],this.showOpenError=!1,this.initProjectForm=new An({path:new oe("",[He.required]),openOnInit:new oe(!0,[He.required]),forceInit:new oe(!1,[He.required]),username:new oe("",[He.required]),email:new oe("",[He.required,He.email]),password:new oe("",[He.required,this.utilsService.createPasswordStrengthValidator(8)]),repassword:new oe("",[He.required,TD("password")])}),this.showPMPassword=!1,this.openProjectForm=new An({path:new oe("",[He.required])}),this.authService.refreshMe()}ngOnInit(){this.loadProjectsPaths(),this.loadProjectInformation()}loadProjectsPaths(){this.appService.projectsPathsStored().then(t=>{t.subscribe({next:r=>{r&&(this.projectsPaths=r)}})})}loadProjectInformation(){this.projectService.getProjectInformation().then(t=>{t.subscribe({next:r=>{this.projectInformation=r}})})}updatePath(t){this.openProjectForm.controls.path.setValue(t),this.openProjectForm.controls.path.updateValueAndValidity()}open(){this.showOpenError=!1,this.openProjectForm.valid&&this.appService.openProject(this.openProjectForm.controls.path.value).then(t=>{t.subscribe({next:r=>{r?window.location.reload():this.showOpenError=!0},error:r=>this.showOpenError=!0})})}fillInitForm(){this.initProjectForm.controls.username.setValue(this.authService.loggedUser?.username),this.initProjectForm.controls.email.setValue(this.authService.loggedUser?.email)}init(){if(this.initProjectForm.valid){this.showInitResult=void 0;const t=this.initProjectForm.controls.openOnInit.value;this.appService.initProject(this.initProjectForm.controls.path.value,{email:this.initProjectForm.controls.email.value,username:this.initProjectForm.controls.username.value,password:this.initProjectForm.controls.password.value},t,!!this.initProjectForm.controls.forceInit.value).then(s=>{s.subscribe({next:a=>{this.showInitResult=!!a,a&&t&&setTimeout(()=>{window.location.reload()},500)},error:a=>this.showInitResult=!0})})}}}return e.\u0275fac=function(t){return new(t||e)(O(D3),O($u),O(ju),O(Un),O(Ni))},e.\u0275cmp=De({type:e,selectors:[["app-home"]],decls:167,vars:115,consts:[[1,"row","justify-content-between"],[1,"col-auto"],[3,"title"],["heading",""],[1,"section"],[1,"row"],[1,"col-12"],[1,"card"],[1,"card-body"],["role","tablist",1,"nav","nav-tabs"],["role","presentation",1,"nav-item"],["id","info-tab","data-bs-toggle","tab","href","#info","role","tab","aria-controls","info","aria-selected","true",1,"nav-link","active"],["id","new-tab","data-bs-toggle","tab","href","#new","role","tab","aria-controls","new","aria-selected","false",1,"nav-link"],["id","open-tab","data-bs-toggle","tab","href","#open","role","tab","aria-controls","open","aria-selected","false",1,"nav-link"],[1,"tab-content"],["id","info","role","tabpanel","aria-labelledby","info-tab",1,"tab-pane","fade","show","active"],[1,"card-header"],[1,"card-title"],["class","card-content",4,"ngIf"],["id","new","role","tabpanel","aria-labelledby","new-tab",1,"tab-pane","fade"],[1,"card-content"],[3,"formGroup"],[1,"col-md-9","mb-4"],["type","text","formControlName","path",1,"form-control",3,"placeholder"],["path",""],[1,"col-md-3","align-self-center"],[1,"form-check"],[1,"checkbox"],["type","checkbox","id","force-init","formControlName","forceInit",1,"form-check-input"],["for","force-init"],[1,"mt-2"],["id","basic-horizontal-layouts"],[1,"row","match-height"],[1,"form","form-horizontal"],[1,"form-body"],[1,"col-md-4"],[1,"col-md-8","form-group"],["type","text","name","username","formControlName","username",1,"form-control",3,"placeholder"],["type","email","formControlName","email",1,"form-control",3,"placeholder"],["formControlName","password",1,"form-control",3,"type","placeholder","input"],["formControlName","repassword",1,"form-control",3,"type","placeholder"],[2,"color","#b8a244"],[1,"form-check","form-switch"],["type","checkbox","id","showPsw",1,"form-check-input",3,"checked","change"],["showPswCheckbox",""],["for","showPsw",1,"form-check-label"],[1,"col-sm-12","d-flex","justify-content-between"],["type","button",1,"btn","icon","btn-light",3,"click"],[1,"bi","bi-box-arrow-down"],["type","reset",1,"btn","btn-light-secondary","me-1","mb-1"],[1,"row","justify-content-between","mt-2"],["type","checkbox","id","open-on-init","formControlName","openOnInit",1,"form-check-input"],["for","open-on-init"],[1,"btn","icon","icon-right","btn-primary",3,"disabled","click"],[1,"bi","bi-folder-plus"],["class","row justify-content-center mt-2",4,"ngIf"],["id","open","role","tabpanel","aria-labelledby","open-tab",1,"tab-pane","fade"],[1,"col-md-6","mb-4"],[1,"input-group","mb-3"],["for","inputGroupSelect01",1,"input-group-text"],["id","inputGroupSelect01",1,"form-select",3,"change"],["select",""],["value","","selected",""],[3,"value",4,"ngFor","ngForOf"],[1,"row","justify-content-end"],[1,"btn","icon","btn-light",3,"click"],[1,"bi","bi-arrow-clockwise"],[1,"bi","bi-box-arrow-up-right"],[4,"ngIf","ngIfElse"],["noProject",""],[1,"col-md-8"],[1,"form-group","has-icon-left"],[1,"position-relative"],["type","text","placeholder","Path","id","path","readonly","",1,"form-control",3,"value"],[1,"form-control-icon"],[1,"bi","bi-folder-fill"],["type","text","placeholder","Database","id","database","readonly","",1,"form-control",3,"value"],[1,"bi","bi-database-fill"],["class","row justify-content-center mt-5",4,"ngIf"],[3,"centered","target","title","confirmBtn","confirmBtnTxt","borderless","onConfirm"],[1,"row","justify-content-center","mt-5"],["data-bs-toggle","modal","data-bs-target","#remove-work-dir-modal",1,"red-underling","cursor-pointer"],["title","no-project",3,"dismissable"],[1,"row","justify-content-center","mt-2"],[3,"dismissable","title",4,"ngIf"],[3,"dismissable","title"],[3,"value"]],template:function(t,r){if(1&t){const i=he();f(0,"div",0)(1,"div",1),S(2,"app-page-heading",2,3),h()(),f(4,"section",4)(5,"div",5)(6,"div",6)(7,"div",7)(8,"div",8)(9,"ul",9)(10,"li",10)(11,"a",11),v(12),w(13,"translate"),h()(),f(14,"li",10)(15,"a",12),v(16),w(17,"translate"),h()(),f(18,"li",10)(19,"a",13),v(20),w(21,"translate"),h()()(),f(22,"div",14)(23,"div",15),S(24,"p"),f(25,"div",7)(26,"div",16)(27,"h4",17),v(28),w(29,"translate"),h()(),k(30,k3,7,2,"div",18),h()(),f(31,"div",19),S(32,"p"),f(33,"div",7)(34,"div",16)(35,"h4",17),v(36),w(37,"translate"),h()(),f(38,"div",20)(39,"div",8)(40,"form",21)(41,"div",5)(42,"div",22)(43,"h6"),v(44),w(45,"translate"),h(),S(46,"input",23,24),w(48,"translate"),h(),f(49,"div",25)(50,"div",26)(51,"div",27),S(52,"input",28),f(53,"label",29),v(54),w(55,"translate"),h()()()()(),f(56,"h6",30),v(57),w(58,"translate"),h(),f(59,"section",31)(60,"div",32)(61,"div",6)(62,"div",7)(63,"div",20)(64,"div",8)(65,"form",33)(66,"div",34)(67,"div",5)(68,"div",35)(69,"label"),v(70),w(71,"translate"),h()(),f(72,"div",36),S(73,"input",37),w(74,"translate"),h(),f(75,"div",35)(76,"label"),v(77),w(78,"translate"),h()(),f(79,"div",36),S(80,"input",38),w(81,"translate"),h(),f(82,"div",35)(83,"label"),v(84),w(85,"translate"),h()(),f(86,"div",36)(87,"input",39),$("input",function(){return r.initProjectForm.controls.repassword.markAsTouched(),r.initProjectForm.controls.repassword.updateValueAndValidity()}),w(88,"translate"),h()(),f(89,"div",35)(90,"label"),v(91),w(92,"translate"),h()(),f(93,"div",36),S(94,"input",40),w(95,"translate"),f(96,"small",41),v(97),w(98,"translate"),h(),f(99,"div",42)(100,"input",43,44),$("change",function(){K(i);const s=ze(101);return Q(r.showPMPassword=s.checked)}),h(),f(102,"label",45),v(103),w(104,"translate"),h()()(),f(105,"div",46)(106,"button",47),$("click",function(){return r.fillInitForm()}),S(107,"i",48),h(),f(108,"button",49),v(109),w(110,"translate"),h()()()()()()()()()()(),f(111,"div",50)(112,"div",1)(113,"div",26)(114,"div",27),S(115,"input",51),f(116,"label",52),v(117),w(118,"translate"),h()()()(),f(119,"div",1)(120,"button",53),$("click",function(){return r.init()}),v(121),w(122,"translate"),S(123,"i",54),h()()(),k(124,O3,5,2,"div",55),h()()()()(),f(125,"div",56),S(126,"p"),f(127,"div",7)(128,"div",16)(129,"h4",17),v(130),w(131,"translate"),h()(),f(132,"div",20)(133,"div",8)(134,"form",21)(135,"div",5)(136,"div",57)(137,"h6"),v(138),w(139,"translate"),h(),f(140,"div",58)(141,"label",59),v(142),w(143,"translate"),h(),f(144,"select",60,61),$("change",function(){K(i);const s=ze(145);return Q(s.value?r.updatePath(s.value):"")}),f(146,"option",62),v(147),w(148,"translate"),h(),k(149,N3,2,2,"option",63),h()()(),f(150,"div",57)(151,"h6"),v(152),w(153,"translate"),h(),S(154,"input",23,24),w(156,"translate"),h()(),f(157,"div",64)(158,"div",1)(159,"button",65),$("click",function(){return r.loadProjectsPaths()}),S(160,"i",66),h()(),f(161,"div",1)(162,"button",53),$("click",function(){return r.open()}),v(163),w(164,"translate"),S(165,"i",67),h()()(),k(166,P3,3,2,"div",55),h()()()()()()()()()()()}2&t&&(d(2),g("title","home"),d(10),y(" ",D(13,57,"project-information")," "),d(4),y(" ",D(17,59,"init-project")," "),d(4),y(" ",D(21,61,"open-project")," "),d(8),y(" ",D(29,63,"project-information")," "),d(2),g("ngIf",void 0!==r.projectInformation),d(6),y(" ",D(37,65,"init-project")," "),d(4),g("formGroup",r.initProjectForm),d(4),y(" ",D(45,67,"insert-path")," "),d(2),on("placeholder",D(48,69,"path")),d(8),y(" ",D(55,71,"force-init")," "),d(3),y(" ",D(58,73,"insert-pm-data")," "),d(13),y(" ",D(71,75,"username")," "),d(3),Qe("is-valid",r.initProjectForm.controls.username.dirty&&r.initProjectForm.controls.username.valid)("is-invalid",r.initProjectForm.controls.username.dirty&&!r.initProjectForm.controls.username.valid),on("placeholder",D(74,77,"username")),d(4),y(" ",D(78,79,"email")," "),d(3),Qe("is-valid",r.initProjectForm.controls.email.dirty&&r.initProjectForm.controls.email.valid)("is-invalid",r.initProjectForm.controls.email.dirty&&!r.initProjectForm.controls.email.valid),on("placeholder",D(81,81,"email")),d(4),y(" ",D(85,83,"password")," "),d(3),Qe("is-valid",r.initProjectForm.controls.password.dirty&&r.initProjectForm.controls.password.valid)("is-invalid",r.initProjectForm.controls.password.dirty&&!r.initProjectForm.controls.password.valid),on("placeholder",D(88,85,"password")),g("type",r.showPMPassword?"text":"password"),d(4),y(" ",D(92,87,"repassword")," "),d(3),Qe("is-valid",r.initProjectForm.controls.repassword.dirty&&r.initProjectForm.controls.repassword.valid)("is-invalid",r.initProjectForm.controls.repassword.dirty&&!r.initProjectForm.controls.repassword.valid),on("placeholder",D(95,89,"repassword")),g("type",r.showPMPassword?"text":"password"),d(3),y(" ",D(98,91,"password-warning")," "),d(3),g("checked",r.showPMPassword),d(3),y(" ",D(104,93,"show-password")," "),d(6),y(" ",D(110,95,"reset")," "),d(8),y(" ",D(118,97,"open-at-end")," "),d(3),g("disabled",r.initProjectForm.invalid),d(1),y(" ",D(122,99,"init")," "),d(3),g("ngIf",void 0!==r.showInitResult),d(6),y(" ",D(131,101,"open-project")," "),d(4),g("formGroup",r.openProjectForm),d(4),y(" ",D(139,103,"select-project")," "),d(4),y(" ",D(143,105,"projects")," "),d(5),y(" ",D(148,107,"select")," "),d(2),g("ngForOf",r.projectsPaths),d(3),y(" ",D(153,109,"insert-path")," "),d(2),on("placeholder",D(156,111,"path")),d(8),g("disabled",r.openProjectForm.invalid),d(1),y(" ",D(164,113,"open")," "),d(3),g("ngIf",r.showOpenError))},dependencies:[Mn,$e,Vr,Pu,Lu,or,uo,Pr,Lr,sr,vr,og,Ds,dl,sg,Hu,Xe],styles:[".red-underling[_ngcontent-%COMP%]{text-decoration:underline;color:#f75e66}"]}),e})();function V3(e,n){if(1&e){const t=he();f(0,"div",45)(1,"button",46),$("click",function(){return K(t),Q(C(2).submitMasterData())}),v(2),w(3,"translate"),h(),f(4,"button",48),$("click",function(){K(t);const i=C(2);return Q(i.loadDefaultValues(i.blueprintMasterDataUserForm))}),v(5),w(6,"translate"),h()()}if(2&e){const t=C(2);d(1),g("disabled",t.blueprintMasterDataUserForm.invalid),d(1),y(" ",D(3,3,"confirm")," "),d(3),y(" ",D(6,5,"reset")," ")}}function B3(e,n){if(1&e){const t=he();f(0,"div",1)(1,"div",2)(2,"div",3)(3,"div",4)(4,"h4",5),v(5),w(6,"translate"),h(),f(7,"p"),v(8),w(9,"translate"),h()(),f(10,"div",6)(11,"div",7)(12,"div",8)(13,"div",9)(14,"a",10),v(15),w(16,"translate"),h(),f(17,"a",11),v(18),w(19,"translate"),h(),f(20,"a",12),v(21),w(22,"translate"),h()()(),f(23,"div",13)(24,"div",14)(25,"div",15)(26,"section",16)(27,"div",17)(28,"div",2)(29,"div",3)(30,"div",4)(31,"h4",5),v(32),w(33,"translate"),h()(),f(34,"div",18)(35,"div",6)(36,"form",19)(37,"div",20)(38,"div",7)(39,"div",21)(40,"label"),v(41),w(42,"translate"),h()(),f(43,"div",22),S(44,"input",23),h(),f(45,"div",21)(46,"label"),v(47),w(48,"translate"),h()(),f(49,"div",22),S(50,"input",24),h(),f(51,"div",21)(52,"label"),v(53),w(54,"translate"),h()(),f(55,"div",22),S(56,"input",25),h(),f(57,"div",21)(58,"label"),v(59),w(60,"translate"),h()(),f(61,"div",22),S(62,"input",26),h(),f(63,"div",21)(64,"label"),v(65),w(66,"translate"),h()(),f(67,"div",22),S(68,"input",27),h(),k(69,V3,7,7,"div",28),h()()()()()()()()()(),f(70,"div",29)(71,"div",1)(72,"div",30)(73,"div",31)(74,"label",32),v(75),w(76,"translate"),h(),f(77,"input",33,34),$("input",function(){K(t);const i=ze(78);return Q(C().colorPicked=i.value)}),h()()(),f(79,"div",30),S(80,"app-text-avatar",35),h()(),f(81,"div",1)(82,"div",30)(83,"button",36),$("click",function(){K(t);const i=ze(78),o=C();return Q(i.value=o.colorPicked=o.loggedUser.avatar_hex_color)}),v(84),w(85,"translate"),h()(),f(86,"div",30)(87,"button",37),$("click",function(){K(t);const i=C();return Q(i.modify({avatar_hex_color:i.colorPicked},!0))}),v(88),w(89,"translate"),h()()()(),f(90,"div",38)(91,"section",16)(92,"div",17)(93,"div",2)(94,"div",3)(95,"div",4)(96,"h4",5),v(97),w(98,"translate"),h(),f(99,"p"),v(100),w(101,"translate"),h()(),f(102,"div",18)(103,"div",6)(104,"form",19)(105,"div",20)(106,"div",7)(107,"div",21)(108,"label"),v(109),w(110,"translate"),h()(),f(111,"div",22)(112,"input",39),$("input",function(){K(t);const i=C();return i.blueprintPasswordUserForm.controls.repassword.markAsTouched(),Q(i.blueprintPasswordUserForm.controls.repassword.updateValueAndValidity())}),h()(),f(113,"div",21)(114,"label"),v(115),w(116,"translate"),h()(),f(117,"div",22),S(118,"input",40),h(),f(119,"div",2)(120,"div",41)(121,"input",42,43),$("change",function(){K(t);const i=ze(122);return Q(C().showPassword=i.checked)}),h(),f(123,"label",44),v(124),w(125,"translate"),h()()(),f(126,"div",45)(127,"button",46),$("click",function(){return K(t),Q(C().submitPasswordData())}),v(128),w(129,"translate"),h(),f(130,"button",47),v(131),w(132,"translate"),h()()()()()()()()()()()()()()()()()()()}if(2&e){const t=C();d(5),y(" ",D(6,47,"my-profile")," "),d(3),y(" ",D(9,49,"logout-after-update")," "),d(7),y(" ",D(16,51,"master-data")," "),d(3),y(" ",D(19,53,"avatar")," "),d(3),y(" ",D(22,55,"password")," "),d(11),y(" ",D(33,57,"master-data")," "),d(4),g("formGroup",t.blueprintMasterDataUserForm),d(5),y(" ",D(42,59,"username")," "),d(3),Qe("is-valid",t.blueprintMasterDataUserForm.controls.username.dirty&&!t.blueprintMasterDataUserForm.controls.username.errors)("is-invalid",t.blueprintMasterDataUserForm.controls.username.dirty&&t.blueprintMasterDataUserForm.controls.username.errors),d(3),y(" ",D(48,61,"email")," "),d(3),Qe("is-valid",t.blueprintMasterDataUserForm.controls.email.dirty&&!t.blueprintMasterDataUserForm.controls.email.errors)("is-invalid",t.blueprintMasterDataUserForm.controls.email.dirty&&t.blueprintMasterDataUserForm.controls.email.errors),d(3),y(" ",D(54,63,"name")," "),d(6),y(" ",D(60,65,"surname")," "),d(6),y(" ",D(66,67,"phone")," "),d(4),g("ngIf",t.blueprintMasterDataUserForm.dirty),d(6),y(" ",D(76,69,"pick-color-for-avatar")," "),d(2),g("value",t.loggedUser.avatar_hex_color),d(3),g("color",t.colorPicked?t.colorPicked:t.loggedUser.avatar_hex_color)("text",t.utilsService.getAvatarText(t.loggedUser)),d(4),y(" ",D(85,71,"reset")," "),d(4),y(" ",D(89,73,"update")," "),d(9),y(" ",D(98,75,"password")," "),d(3),y(" ",D(101,77,"password-requirements")," "),d(4),g("formGroup",t.blueprintPasswordUserForm),d(5),y(" ",D(110,79,"password")," "),d(3),Qe("is-valid",t.blueprintPasswordUserForm.controls.password.dirty&&!t.blueprintPasswordUserForm.controls.password.errors)("is-invalid",t.blueprintPasswordUserForm.controls.password.dirty&&t.blueprintPasswordUserForm.controls.password.errors),g("type",t.showPassword?"text":"password"),d(3),y(" ",D(116,81,"repassword")," "),d(3),Qe("is-valid",t.blueprintPasswordUserForm.controls.repassword.dirty&&!t.blueprintPasswordUserForm.controls.repassword.errors)("is-invalid",t.blueprintPasswordUserForm.controls.repassword.dirty&&t.blueprintPasswordUserForm.controls.repassword.errors),g("type",t.showPassword?"text":"password"),d(3),g("checked",t.showPassword),d(3),y(" ",D(125,83,"show-password")," "),d(3),g("disabled",t.blueprintPasswordUserForm.invalid),d(1),y(" ",D(129,85,"submit")," "),d(3),y(" ",D(132,87,"reset")," ")}}let j3=(()=>{class e{constructor(t,r,i){this.authService=t,this.utilsService=r,this.userService=i,this.blueprintMasterDataUserForm=new An({username:new oe("",[He.required],this.checkUnique("username")),name:new oe(null),surname:new oe(null),email:new oe("",[He.required],this.checkUnique("email")),phone:new oe(null)}),this.blueprintPasswordUserForm=new An({password:new oe("",[He.required,this.utilsService.createPasswordStrengthValidator(8)]),repassword:new oe("",[He.required,TD("password")])}),this.showPassword=!1,this.loadLoggedUser()}ngOnInit(){}loadLoggedUser(){this.authService.me().then(t=>{t.subscribe({next:r=>{this.loggedUser=r,this.loadDefaultValues(this.blueprintMasterDataUserForm)}})})}loadDefaultValues(t){if(!this.loggedUser)return;const r=Object.keys(t.controls);for(let i=0;i{o.subscribe({next:s=>{r&&window.location.reload()},error:s=>{}})}))}submitMasterData(){this.blueprintMasterDataUserForm.valid&&this.modify(this.blueprintMasterDataUserForm.value,!0)}submitPasswordData(){this.blueprintPasswordUserForm.valid&&this.modify({password:this.blueprintPasswordUserForm.controls.password.value},!0)}checkUnique(t){return r=>new qe(i=>{this.userService.checkAlreadyUsed(t,r.value).then(o=>{o.subscribe({next:s=>{i.next(r.value!=this.loggedUser[t]&&s),i.complete()}})})}).pipe(we(i=>i?{uniqueError:!0}:null))}}return e.\u0275fac=function(t){return new(t||e)(O(Un),O(Ni),O(ju))},e.\u0275cmp=De({type:e,selectors:[["app-my-profile"]],decls:1,vars:1,consts:[["class","row justify-content-center",4,"ngIf"],[1,"row","justify-content-center"],[1,"col-12"],[1,"card"],[1,"card-header"],[1,"card-title"],[1,"card-body"],[1,"row"],[1,"col-3"],["id","v-pills-tab","role","tablist","aria-orientation","vertical",1,"nav","flex-column","nav-pills"],["id","v-pills-master-data-tab","data-bs-toggle","pill","href","#v-pills-master-data","role","tab","aria-controls","v-pills-master-data","aria-selected","true",1,"nav-link","active"],["id","v-pills-avatar-tab","data-bs-toggle","pill","href","#v-pills-avatar","role","tab","aria-controls","v-pills-avatar","aria-selected","false",1,"nav-link"],["id","v-pills-password-tab","data-bs-toggle","pill","href","#v-pills-password","role","tab","aria-controls","v-pills-password","aria-selected","false",1,"nav-link"],[1,"col-9"],["id","v-pills-tabContent",1,"tab-content"],["id","v-pills-master-data","role","tabpanel","aria-labelledby","v-pills-master-data-tab",1,"tab-pane","fade","show","active"],["id","basic-horizontal-layouts"],[1,"row","match-height"],[1,"card-content"],[1,"form","form-horizontal",3,"formGroup"],[1,"form-body"],[1,"col-md-4"],[1,"col-md-8","form-group"],["type","text","id","username","name","username","placeholder","Username","formControlName","username",1,"form-control"],["type","email","id","email","name","email","placeholder","Email","formControlName","email",1,"form-control"],["type","text","id","name","name","name","placeholder","Name","formControlName","name",1,"form-control"],["type","text","id","surname","name","surname","placeholder","Surname","formControlName","surname",1,"form-control"],["type","text","id","phone","name","phone","placeholder","Phone","formControlName","phone",1,"form-control"],["class","col-sm-12 d-flex justify-content-end",4,"ngIf"],["id","v-pills-avatar","role","tabpanel","aria-labelledby","v-pills-avatar-tab",1,"tab-pane","fade"],[1,"col-auto"],[1,"form-group"],["for","color-picker"],["type","color","id","color-picker",1,"form-control",3,"value","input"],["colorPicker",""],[3,"color","text"],[1,"btn","btn-outline-secondary",3,"click"],[1,"btn","btn-outline-primary",3,"click"],["id","v-pills-password","role","tabpanel","aria-labelledby","v-pills-password-tab",1,"tab-pane","fade"],["id","password","name","password","placeholder","Password","formControlName","password",1,"form-control",3,"type","input"],["id","repassword","name","repassword","placeholder","Re-password","formControlName","repassword",1,"form-control",3,"type"],[1,"form-check","form-switch"],["type","checkbox","id","showPsw",1,"form-check-input",3,"checked","change"],["showPswCheckbox",""],["for","showPsw",1,"form-check-label"],[1,"col-sm-12","d-flex","justify-content-end"],["type","button",1,"btn","btn-primary","me-1","mb-1",3,"disabled","click"],["type","reset",1,"btn","btn-light-secondary","me-1","mb-1"],["type","button",1,"btn","btn-light-secondary","me-1","mb-1",3,"click"]],template:function(t,r){1&t&&k(0,B3,133,89,"div",0),2&t&&g("ngIf",r.loggedUser)},dependencies:[$e,Vr,or,Pr,Lr,sr,vr,Bu,Xe]}),e})();function U3(e,n){if(1&e){const t=he();f(0,"div",4)(1,"div",5)(2,"div",6)(3,"h5",7),v(4),w(5,"translate"),h()(),f(6,"div",6)(7,"button",8),$("click",function(){K(t);const i=C(2);return Q(i.collapseStatus=!i.collapseStatus)}),S(8,"i",9),h()()()()}if(2&e){const t=C(2);d(4),y(" ",D(5,1,t.title)," ")}}function $3(e,n){1&e&&(S(0,"i",26),w(1,"translate")),2&e&&on("title",D(1,1,"unique"))}function H3(e,n){if(1&e){const t=he();f(0,"div",30)(1,"input",31),$("change",function(){K(t),C();const i=ze(2);return Q(i.type="password"==i.type?"text":"password")}),h(),f(2,"label",32),v(3),w(4,"translate"),h()()}2&e&&(d(3),y(" ",D(4,1,"show-password")," "))}function G3(e,n){if(1&e&&(Ae(0),S(1,"input",27,28),w(3,"translate"),k(4,H3,5,3,"div",29),xe()),2&e){const t=C().$implicit,r=C(3);let i;d(1),Qe("is-valid",r.form.controls[t.name].dirty&&r.form.controls[t.name].valid)("is-invalid",r.form.controls[t.name].dirty&&!r.form.controls[t.name].valid),on("placeholder",D(3,9,null!==(i=t.placeholder)&&void 0!==i?i:"")),g("type",t.type)("name",t.name)("formControlName",t.name),d(3),g("ngIf","password"==t.type)}}function z3(e,n){if(1&e&&(Ae(0),f(1,"div",33),S(2,"textarea",34),h(),xe()),2&e){const t=C(2).$implicit,r=C(3);d(2),Qe("is-valid",r.form.controls[t.name].dirty&&r.form.controls[t.name].valid)("is-invalid",r.form.controls[t.name].dirty&&!r.form.controls[t.name].valid),g("formControlName",t.name)}}function q3(e,n){if(1&e&&(Ae(0),f(1,"div",35)(2,"div",36),S(3,"input",37),h()(),xe()),2&e){const t=C(2).$implicit;d(3),g("name",t.name)("placeholder",t.placeholder)("formControlName",t.name)}}function W3(e,n){if(1&e&&(f(0,"option",43),v(1),w(2,"translate"),h()),2&e){const t=n.$implicit;g("ngValue",t.value),d(1),y(" ",D(2,2,t.text)," ")}}function Y3(e,n){if(1&e&&(Ae(0),f(1,"div",38)(2,"label",39),v(3),w(4,"translate"),h(),f(5,"select",40)(6,"option",41),v(7),w(8,"translate"),h(),k(9,W3,3,4,"option",42),h()(),xe()),2&e){const t=C(2).$implicit;let r;d(3),y(" ",D(4,4,null!==(r=t.placeholder)&&void 0!==r?r:t.name)," "),d(2),g("formControlName",t.name),d(2),y(" ",D(8,6,"choose")," "),d(2),g("ngForOf",t.selectOptions)}}function K3(e,n){if(1&e&&(k(0,z3,3,5,"ng-container",0),k(1,q3,4,3,"ng-container",0),k(2,Y3,10,8,"ng-container",0)),2&e){const t=C().$implicit;g("ngIf","textarea"==t.type),d(1),g("ngIf","checkbox"==t.type),d(1),g("ngIf","selectbox"==t.type)}}function Q3(e,n){if(1&e&&(f(0,"div",20)(1,"div",21)(2,"div",5)(3,"div",6)(4,"label"),v(5),w(6,"translate"),h()(),f(7,"div",6),k(8,$3,2,3,"i",22),h()()(),f(9,"div",23),k(10,G3,5,11,"ng-container",24),k(11,K3,3,3,"ng-template",null,25,Wt),h()()),2&e){const t=n.$implicit,r=ze(12);let i;d(5),y(" ",D(6,4,null!==(i=t.title)&&void 0!==i?i:t.name)," "),d(3),g("ngIf",!0===t.unique),d(2),g("ngIf","textarea"!==t.type&&"checkbox"!==t.type&&"selectbox"!==t.type)("ngIfElse",r)}}function X3(e,n){1&e&&(f(0,"button",44),S(1,"i",45),h()),2&e&&Ve("data-bs-target","#delete-request-"+C(3).entity.id)}function Z3(e,n){if(1&e){const t=he();f(0,"app-dialog-modal",46),$("onConfirm",function(){return K(t),Q(C(3).delete())}),h()}2&e&&g("target","delete-request-"+C(3).entity.id)("centered",!0)("confirmBtn",!0)("confirmBtnTxt","confirm")("borderless",!0)}function J3(e,n){1&e&&S(0,"app-error-alert",48),2&e&&g("title","operation-error")}function eV(e,n){1&e&&S(0,"app-success-alert",48),2&e&&g("title","operation-successful")}function tV(e,n){if(1&e&&(Ae(0),k(1,J3,1,1,"app-error-alert",47),k(2,eV,1,1,"app-success-alert",47),xe()),2&e){const t=C(3);d(1),g("ngIf",!t.submitResult),d(1),g("ngIf",!!t.submitResult)}}function nV(e,n){if(1&e){const t=he();f(0,"div",10)(1,"div",11)(2,"form",12)(3,"div",13),k(4,Q3,13,6,"div",14),f(5,"div",5)(6,"div",6),k(7,X3,2,1,"button",15),h(),f(8,"div",16)(9,"button",17),$("click",function(){return K(t),Q(C(2).setFormDefaultValue())}),v(10),w(11,"translate"),h(),f(12,"button",18),$("click",function(){return K(t),Q(C(2).submit())}),v(13),w(14,"translate"),h(),k(15,Z3,1,5,"app-dialog-modal",19),h()(),k(16,tV,3,2,"ng-container",0),h()()()()}if(2&e){const t=C(2);d(2),g("formGroup",t.form),d(2),g("ngForOf",t.editableFields),d(3),g("ngIf",t.entity),d(3),y(" ",D(11,8,"reset")," "),d(2),g("disabled",t.form.invalid),d(1),y(" ",D(14,10,t.confirmBtnTxt)," "),d(2),g("ngIf",t.entity),d(1),g("ngIf",void 0!==t.submitResult)}}function rV(e,n){if(1&e&&(Ae(0),f(1,"div",1),k(2,U3,9,3,"div",2),k(3,nV,17,12,"div",3),h(),xe()),2&e){const t=C();d(2),g("ngIf",t.title),d(1),g("ngIf",!t.collapseStatus)}}let iV=(()=>{class e{constructor(){this.DEFAULT_COLOR="#000000",this.editableFields=[],this.confirmBtnTxt="modify",this.collapseStatus=!1,this.refreshRequest=new ue,this.onConfirm=new ue}ngOnInit(){this.createForm()}createForm(){this.form=new An({});for(let t=0;t{setTimeout(()=>{this.submitResult=void 0},Gt.alertTimeout)};this.onConfirm.emit(t),this.manager&&this.manager.update(r,t).then(o=>{o.subscribe({next:s=>{s&&(this.entity=s,this.form?.markAsPristine()),!r&&s&&(this.entity=void 0,this.form?.reset(),this.refreshRequest.emit()),this.submitResult=!!s,i()},error:s=>{this.submitResult=!1,i()}})}).catch(o=>{this.submitResult=!1,i()})}delete(){if(!this.entity)return;const r=()=>{setTimeout(()=>{this.submitResult=void 0},Gt.alertTimeout)};this.manager&&this.manager?.deleteById(this.entity.id).then(i=>{i.subscribe({next:o=>{this.submitResult=o=!!o,o&&(this.entity=void 0,this.refreshRequest.emit()),r()},error:o=>{this.submitResult=!1,r()}})}).catch(i=>{this.submitResult=!1,r()})}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=De({type:e,selectors:[["app-manage-entity"]],inputs:{manager:"manager",entity:"entity",title:"title",editableFields:"editableFields",confirmBtnTxt:"confirmBtnTxt",collapseStatus:"collapseStatus"},outputs:{refreshRequest:"refreshRequest",onConfirm:"onConfirm"},decls:1,vars:1,consts:[[4,"ngIf"],[1,"card"],["class","card-header",4,"ngIf"],["class","card-content",4,"ngIf"],[1,"card-header"],[1,"row","justify-content-between"],[1,"col-auto"],[1,"card-title"],[1,"btn","icon","btn-light",3,"click"],[1,"bi","bi-plus"],[1,"card-content"],[1,"card-body"],[1,"form","form-horizontal",3,"formGroup"],[1,"form-body"],["class","row",4,"ngFor","ngForOf"],["type","button","class","btn icon btn-light","data-bs-toggle","modal",4,"ngIf"],[1,"col-sm-auto","d-flex","justify-content-end"],["type","button",1,"btn","btn-light-secondary","me-1","mb-1",3,"click"],["type","button",1,"btn","btn-primary","me-1","mb-1",3,"disabled","click"],["title","delete-request",3,"target","centered","confirmBtn","confirmBtnTxt","borderless","onConfirm",4,"ngIf"],[1,"row"],[1,"col-md-4"],["class","bi bi-1-square-fill","data-bs-toggle","tooltip","data-bs-placement","top",3,"title",4,"ngIf"],[1,"col-md-8","form-group"],[4,"ngIf","ngIfElse"],["otherTypes",""],["data-bs-toggle","tooltip","data-bs-placement","top",1,"bi","bi-1-square-fill",3,"title"],[1,"form-control",3,"type","name","placeholder","formControlName"],["input",""],["class","form-check form-switch",4,"ngIf"],[1,"form-check","form-switch"],["type","checkbox",1,"form-check-input",3,"change"],[1,"form-check-label"],[1,"form-group","mb-3"],["rows","5",1,"form-control",3,"formControlName"],[1,"form-check"],[1,"checkbox"],["type","checkbox",1,"form-check-input","cursor-pointer",3,"name","placeholder","formControlName"],[1,"input-group","mb-3"],[1,"input-group-text"],[1,"form-select",3,"formControlName"],["selected","","value",""],[3,"ngValue",4,"ngFor","ngForOf"],[3,"ngValue"],["type","button","data-bs-toggle","modal",1,"btn","icon","btn-light"],[1,"bi","bi-trash"],["title","delete-request",3,"target","centered","confirmBtn","confirmBtnTxt","borderless","onConfirm"],[3,"title",4,"ngIf"],[3,"title"]],template:function(t,r){1&t&&k(0,rV,4,2,"ng-container",0),2&t&&g("ngIf",!!r.form&&!!r.editableFields)},dependencies:[Mn,$e,Vr,Pu,Lu,or,uo,ll,Pr,Lr,sr,vr,Ds,dl,sg,Xe]}),e})();function oV(e,n){if(1&e){const t=he();Ae(0),f(1,"app-manage-entity",4),$("refreshRequest",function(){return K(t),Q(C(2).loadEntities())}),h(),xe()}if(2&e){const t=n.$implicit,r=C(2);d(1),g("entity",t)("editableFields",r.editableFields)("manager",r.manager)}}function sV(e,n){if(1&e){const t=he();Ae(0),f(1,"app-filter",1),$("entitiesChange",function(i){return K(t),Q(C().entitiesFiltered=i)}),h(),f(2,"app-manage-entity",2),$("refreshRequest",function(){return K(t),Q(C().loadEntities())}),h(),k(3,oV,2,3,"ng-container",3),xe()}if(2&e){const t=C();d(1),g("filterFields",t.filterFields)("entities",t.entities),d(1),g("editableFields",t.editableFields.concat(t.additionalFieldOnCreation))("manager",t.manager)("title","create-new")("confirmBtnTxt","confirm")("collapseStatus",!0),d(1),g("ngForOf",t.entitiesFiltered)}}let Gu=(()=>{class e{constructor(t){this.utilsService=t,this.editableFields=[],this.additionalFieldOnCreation=[],this.entitiesFiltered=[]}ngOnInit(){this.loadEntities()}loadEntities(){this.manager?.all().then(t=>{t.subscribe({next:r=>{r&&(this.entities=r,this.entitiesFiltered=[...this.entities])}})})}}return e.\u0275fac=function(t){return new(t||e)(O(Ni))},e.\u0275cmp=De({type:e,selectors:[["app-manage-entities"]],inputs:{title:"title",editableFields:"editableFields",filterFields:"filterFields",entityTitleField:"entityTitleField",manager:"manager",additionalFieldOnCreation:"additionalFieldOnCreation"},decls:1,vars:1,consts:[[4,"ngIf"],[3,"filterFields","entities","entitiesChange"],[3,"editableFields","manager","title","confirmBtnTxt","collapseStatus","refreshRequest"],[4,"ngFor","ngForOf"],[3,"entity","editableFields","manager","refreshRequest"]],template:function(t,r){1&t&&k(0,sV,4,8,"ng-container",0),2&t&&g("ngIf",!!r.title&&!!r.entities)},dependencies:[Mn,$e,iV,ND]}),e})();const aV=function(){return["name"]};let lV=(()=>{class e{constructor(t){this.taskStatusService=t,this.fields=[{name:"name",type:"text",placeholder:"name",blueprintFormControl:new oe("",[He.required]),unique:!0},{name:"description",type:"textarea",placeholder:"description",blueprintFormControl:new oe("")},{name:"hex_color",type:"color",placeholder:"color",blueprintFormControl:new oe("",[He.required])},{name:"final",type:"checkbox",placeholder:"final",blueprintFormControl:new oe("")}]}ngOnInit(){this.appendDefaultStatus()}appendDefaultStatus(){this.taskStatusService.all().then(t=>{t.subscribe({next:r=>{if(r){let i=r.map(o=>({value:o.id,text:o.name}));i.push({value:null,text:"null"}),this.fields.push({title:"prev-task-status",name:"default_prev_task_status_id",type:"selectbox",placeholder:"prev-task-status",blueprintFormControl:new oe(null),selectOptions:i}),this.fields.push({title:"next-task-status",name:"default_next_task_status_id",type:"selectbox",placeholder:"next-task-status",blueprintFormControl:new oe(null),selectOptions:i})}}})})}}return e.\u0275fac=function(t){return new(t||e)(O(ID))},e.\u0275cmp=De({type:e,selectors:[["app-manage-task-status"]],decls:1,vars:5,consts:[[3,"editableFields","title","filterFields","manager"]],template:function(t,r){1&t&&S(0,"app-manage-entities",0),2&t&&g("editableFields",r.fields)("title","manage-task-status")("filterFields",It(4,aV))("manager",r.taskStatusService)},dependencies:[Gu]}),e})();const cV=function(){return["name"]};let uV=(()=>{class e{constructor(t){this.taskLabelService=t,this.fields=[{name:"name",type:"text",placeholder:"Name",blueprintFormControl:new oe("",[He.required]),unique:!0},{name:"description",type:"textarea",placeholder:"Description",blueprintFormControl:new oe("")},{name:"hex_color",type:"color",placeholder:"Color",blueprintFormControl:new oe("",[He.required])}]}}return e.\u0275fac=function(t){return new(t||e)(O(kD))},e.\u0275cmp=De({type:e,selectors:[["app-manage-task-labels"]],decls:1,vars:5,consts:[[3,"editableFields","title","filterFields","manager"]],template:function(t,r){1&t&&S(0,"app-manage-entities",0),2&t&&g("editableFields",r.fields)("title","manage-task-labels")("filterFields",It(4,cV))("manager",r.taskLabelService)},dependencies:[Gu]}),e})();const dV=function(){return["username","name","surname","email","phone"]};let fV=(()=>{class e{constructor(t,r,i){this.userService=t,this.roleSerivice=r,this.utilsService=i,this.fields=[{name:"username",type:"text",placeholder:"Username",blueprintFormControl:new oe("",[He.required]),unique:!0},{name:"name",type:"text",placeholder:"Name",blueprintFormControl:new oe(null)},{name:"surname",type:"text",placeholder:"Surname",blueprintFormControl:new oe(null)},{name:"avatar_hex_color",type:"color",placeholder:"Color",blueprintFormControl:new oe("",[He.required])},{name:"email",type:"email",placeholder:"Email",blueprintFormControl:new oe("",[He.required,He.email]),unique:!0},{name:"phone",type:"text",placeholder:"Phone",blueprintFormControl:new oe("")},{name:"password",type:"password",placeholder:"Password",blueprintFormControl:new oe("",[this.utilsService.createPasswordStrengthValidator(8)])}]}ngOnInit(){this.appendRoleOptions()}appendRoleOptions(){this.roleSerivice.all().then(t=>{t.subscribe({next:r=>{r&&this.fields.push({title:"role",name:"role_id",type:"selectbox",placeholder:"role",blueprintFormControl:new oe("",[He.required]),selectOptions:r.map(i=>({value:i.id,text:i.name}))})}})})}}return e.\u0275fac=function(t){return new(t||e)(O(ju),O(ig),O(Ni))},e.\u0275cmp=De({type:e,selectors:[["app-manage-users"]],decls:1,vars:5,consts:[[3,"editableFields","title","filterFields","manager"]],template:function(t,r){1&t&&S(0,"app-manage-entities",0),2&t&&g("editableFields",r.fields)("title","manage-task-labels")("filterFields",It(4,dV))("manager",r.userService)},dependencies:[Gu]}),e})();const hV=function(){return["name"]};let pV=(()=>{class e{constructor(t){this.roleService=t,this.fields=[{name:"name",type:"text",placeholder:"name",blueprintFormControl:new oe(""),unique:!0},{name:"permission_create",type:"checkbox",placeholder:"permission_create",blueprintFormControl:new oe("")},{name:"permission_read_all",type:"checkbox",placeholder:"permission_read_all",blueprintFormControl:new oe("")},{name:"permission_move_backward",type:"checkbox",placeholder:"permission_move_backward",blueprintFormControl:new oe("")},{name:"permission_move_forward",type:"checkbox",placeholder:"permission_move_forward",blueprintFormControl:new oe("")},{name:"permission_move",type:"checkbox",placeholder:"permission_move",blueprintFormControl:new oe("")},{name:"permission_edit_own",type:"checkbox",placeholder:"permission_edit_own",blueprintFormControl:new oe("")},{name:"permission_edit_all",type:"checkbox",placeholder:"permission_edit_all",blueprintFormControl:new oe("")},{name:"permission_change_role",type:"checkbox",placeholder:"permission_change_role",blueprintFormControl:new oe("")},{name:"permission_change_assignment",type:"checkbox",placeholder:"permission_change_assignment",blueprintFormControl:new oe("")},{name:"permission_delete_own",type:"checkbox",placeholder:"permission_delete_own",blueprintFormControl:new oe("")},{name:"permission_delete_all",type:"checkbox",placeholder:"permission_delete_all",blueprintFormControl:new oe("")},{name:"permission_manage_task_status",type:"checkbox",placeholder:"permission_manage_task_status",blueprintFormControl:new oe("")},{name:"permission_manage_task_labels",type:"checkbox",placeholder:"permission_manage_task_labels",blueprintFormControl:new oe("")},{name:"permission_manage_users",type:"checkbox",placeholder:"permission_manage_users",blueprintFormControl:new oe("")},{name:"permission_edit_task_deadline",type:"checkbox",placeholder:"permission_edit_task_deadline",blueprintFormControl:new oe("")},{name:"permission_manage_roles",type:"checkbox",placeholder:"permission_manage_roles",blueprintFormControl:new oe("")},{name:"permission_remove_work",type:"checkbox",placeholder:"permission_remove_work",blueprintFormControl:new oe("")}]}}return e.\u0275fac=function(t){return new(t||e)(O(ig))},e.\u0275cmp=De({type:e,selectors:[["app-manage-roles"]],decls:1,vars:5,consts:[[3,"editableFields","title","filterFields","manager"]],template:function(t,r){1&t&&S(0,"app-manage-entities",0),2&t&&g("editableFields",r.fields)("title","manage-task-labels")("filterFields",It(4,hV))("manager",r.roleService)},dependencies:[Gu]}),e})(),Vi=(()=>{class e{constructor(t,r){this.authService=t,this.router=r}canActivate(){var t=this;return bt(function*(){return new Promise((r,i)=>{t.authService.isLogged().then(o=>{o.subscribe({next:s=>{s||(t.router.navigate([Gt.authRequiredRedirectRoute]),i()),r(s)}})})})})()}}return e.\u0275fac=function(t){return new(t||e)(te(Un),te(Bt))},e.\u0275prov=ee({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),fl=(()=>{class e{constructor(t,r){this.authService=t,this.router=r}canActivate(t){var r=this;return bt(function*(){return new Promise((i,o)=>{"roleRequired"in t.data||i(!0);const s=t.data.roleRequired;r.authService.emitMeChangeSource.asObservable().subscribe({next:a=>{if(!a||!a.role)return r.router.navigate(["/home"]),void o();s in a.role&&(Boolean(a.role[s])?i(!0):(r.router.navigate(["/home"]),o()))}}),r.authService.refreshMe()})})()}}return e.\u0275fac=function(t){return new(t||e)(te(Un),te(Bt))},e.\u0275prov=ee({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();var gV=yn(731);let mV=(()=>{class e extends ws{constructor(){super(...arguments),this.TREE="repo_tree",this.COMMITS="repo_commits"}getTree(){return this.call(this.TREE)}getCommits(){return this.call(this.COMMITS)}}return e.\u0275fac=function(){let n;return function(r){return(n||(n=et(e)))(r||e)}}(),e.\u0275prov=ee({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function _V(e,n){if(1&e&&(Ae(0),f(1,"strong"),v(2),w(3,"translate"),h(),v(4),xe()),2&e){const t=C(2);d(2),Fr(D(3,2,"hash")),d(2),y(": ",t.node.hexsha," ")}}function vV(e,n){if(1&e&&(Ae(0),f(1,"strong"),v(2),w(3,"translate"),h(),v(4,": "),f(5,"span",16),v(6),h(),xe()),2&e){const t=C(2);d(2),Fr(D(3,2,"branch")),d(4),y(" ",t.node.of_branch," ")}}function yV(e,n){if(1&e&&(Ae(0),f(1,"strong"),v(2),w(3,"translate"),h(),v(4),xe()),2&e){const t=C(2);d(2),Fr(D(3,2,"message")),d(2),y(': "',t.node.message,'" ')}}function bV(e,n){if(1&e&&(Ae(0),f(1,"strong"),v(2),w(3,"translate"),h(),v(4),w(5,"date"),xe()),2&e){const t=C(2);d(2),Fr(D(3,2,"committed-at")),d(2),y(": ",Sc(5,4,t.node.committed_at,t.dateFormat)," ")}}function CV(e,n){if(1&e&&(Ae(0),v(1),xe()),2&e){const t=C(2);d(1),va(" ",t.node.author.name+" - "," ",t.node.author.email," ")}}function wV(e,n){1&e&&S(0,"app-warning-alert",17),2&e&&g("title","no-commiter")("dismissable",!1)}function DV(e,n){if(1&e&&(f(0,"span"),v(1),h()),2&e){const t=C().$implicit;d(1),y(" (",t.task_status.name,") ")}}function EV(e,n){if(1&e){const t=he();f(0,"li")(1,"a",19),$("click",function(){const o=K(t).$implicit;return Q(C(3).navigateToTask(o.id))}),f(2,"strong"),v(3),h()(),k(4,DV,2,1,"span",9),h()}if(2&e){const t=n.$implicit;d(3),y(" ",t.name," "),d(1),g("ngIf",!!t.task_status)}}function SV(e,n){if(1&e&&(f(0,"ul"),k(1,EV,5,2,"li",18),h()),2&e){const t=C(2);d(1),g("ngForOf",t.tasksAssociated)}}function TV(e,n){1&e&&S(0,"app-warning-alert",17),2&e&&g("title","no-task")("dismissable",!1)}function IV(e,n){if(1&e&&(f(0,"div",1)(1,"div",2)(2,"div",3)(3,"div",4)(4,"h5",5),v(5),w(6,"translate"),h(),S(7,"app-x-btn"),h(),f(8,"div",6)(9,"div",7)(10,"div",8),k(11,_V,5,4,"ng-container",9),h(),f(12,"div",8),k(13,vV,7,4,"ng-container",9),h(),f(14,"div",8),k(15,yV,5,4,"ng-container",9),h(),f(16,"div",8),k(17,bV,6,7,"ng-container",9),h(),f(18,"div",8)(19,"div",10)(20,"div",11),v(21),w(22,"translate"),h()()(),f(23,"div",8)(24,"div",12),k(25,CV,2,2,"ng-container",13),h(),k(26,wV,1,2,"ng-template",null,14,Wt),h(),f(28,"div",8)(29,"div",10)(30,"div",11),v(31),w(32,"translate"),h()()(),f(33,"div",8),k(34,SV,2,1,"ul",13),k(35,TV,1,2,"ng-template",null,15,Wt),h()()()()()()),2&e){const t=ze(27),r=ze(36),i=C();g("id",i.target),Ve("aria-labelledby",i.target),d(4),g("id",i.target),d(1),y(" ",D(6,14,"commit-info")," "),d(6),g("ngIf",!!i.node&&!!i.node.hexsha),d(2),g("ngIf",!!i.node&&!!i.node.of_branch),d(2),g("ngIf",!!i.node&&!!i.node.message),d(2),g("ngIf",!!i.node&&!!i.node.committed_at),d(4),y(" ",D(22,16,"author")," "),d(4),g("ngIf",!(!i.node||!i.node.author.email&&!i.node.author.name))("ngIfElse",t),d(6),y(" ",D(32,18,"tasks")," "),d(3),g("ngIf",!!i.tasksAssociated&&i.tasksAssociated.length>0)("ngIfElse",r)}}let MV=(()=>{class e{constructor(t,r){this.taskService=t,this.router=r,this.dateFormat=Gt.fullDateFormat,this.tasksAssociated=[]}loadTasksAssociated(){this.node?.of_branch&&(this.tasksAssociated=[],this.taskService.filter({git_branch:this.node.of_branch},"like").then(t=>{t.subscribe({next:r=>{r&&(this.tasksAssociated=this.tasksAssociated.concat(r),this.tasksAssociated.sort((i,o)=>i.priority-o.priority))}})}))}ngOnChanges(){this.loadTasksAssociated()}navigateToTask(t){setTimeout(()=>{this.router.navigate(["/task/"+new String(t)])},500)}}return e.\u0275fac=function(t){return new(t||e)(O(ul),O(Bt))},e.\u0275cmp=De({type:e,selectors:[["app-show-info-of-commit-modal"]],inputs:{target:"target",node:"node"},features:[Dn],decls:1,vars:1,consts:[["class","modal fade text-left","tabindex","-1","role","dialog","aria-hidden","true",3,"id",4,"ngIf"],["tabindex","-1","role","dialog","aria-hidden","true",1,"modal","fade","text-left",3,"id"],["role","document",1,"modal-dialog","modal-dialog-scrollable","modal-dialog-centered"],[1,"modal-content"],[1,"modal-header"],[1,"modal-title",3,"id"],[1,"modal-body"],[1,"row"],[1,"col-12"],[4,"ngIf"],[1,"divider"],[1,"divider-text"],[1,"d-flex","justify-content-center"],[4,"ngIf","ngIfElse"],["noCommitter",""],["noTasks",""],[1,"badge","bg-light-secondary"],[3,"title","dismissable"],[4,"ngFor","ngForOf"],["data-bs-dismiss","modal","href","javascript:void(0)",3,"click"]],template:function(t,r){1&t&&k(0,IV,37,20,"div",0),2&t&&g("ngIf",r.target)},dependencies:[Mn,$e,li,Hu,Ph,Xe]}),e})();const AV=["showCommitInfoBtn"];function xV(e,n){1&e&&S(0,"app-error-alert",8),2&e&&g("title","operation-error")("dismissable",!1)}function kV(e,n){if(1&e&&(Ae(0),S(1,"div",9),f(2,"button",10,11),S(4,"i",12),h(),S(5,"app-show-info-of-commit-modal",13),xe()),2&e){const t=C();d(2),Ve("data-bs-target","#show-commit-info"),d(3),g("target","show-commit-info")("node",t.nodeSelected)}}function FV(e,n){1&e&&S(0,"app-warning-alert",8),2&e&&g("title","invalid-repo")("dismissable",!1)}function RV(e,n){1&e&&S(0,"app-loader")}let OV=(()=>{class e{constructor(t,r){this.repoService=t,this.authService=r,this.branches={},this.generationError=!1,r.refreshMe()}ngOnInit(){this.loadGraph()}loadGraph(){this.repoService.getCommits().then(t=>{this.validRepo=void 0,this.gitgraph=void 0,this.branches={},t.subscribe({next:r=>{r?(setTimeout(()=>{this.loadGitGraph(),this.generateGraphFromCommits(r)},250),this.validRepo=!0):this.validRepo=!1}})})}generateGraphFromCommits(t){this.generationError=!1;try{const r=i=>{if(this.showCommitInfoBtn&&this.authService.loggedUser)try{this.nodeSelected=t.find(o=>o.hexsha==i.hash),this.showCommitInfoBtn.nativeElement.click()}catch{Et.logError("error during showCommitInfo")}};for(let i=0;i1){const s=o.of_branch;o.parents.forEach(a=>{a.of_branch!=s&&this.branches[s].merge({commitOptions:{hash:o.hexsha,subject:o.message,author:`${o.author.name} <${o.author.email}>`,onMessageClick(c){r(c)},onClick(c){r(c)}},branch:this.branches[a.of_branch]})})}else this.branches[o.of_branch].commit({hash:o.hexsha,subject:o.message,author:`${o.author.name} <${o.author.email}>`,onMessageClick(s){r(s)},onClick(s){r(s)}}),o.tag&&this.branches[o.of_branch].tag(o.tag);o.children&&o.children.forEach(s=>{if(s.of_branch!=o.of_branch){const a=this.branches[o.of_branch].branch(s.of_branch);this.branches[s.of_branch]=a}})}}catch(r){this.generationError=!0,console.log(r)}}loadGitGraph(){let t=document.getElementById("graph-container");t?this.gitgraph=(0,gV.createGitgraph)(t):Et.logError("graph container not found")}}return e.\u0275fac=function(t){return new(t||e)(O(mV),O(Un))},e.\u0275cmp=De({type:e,selectors:[["app-repo"]],viewQuery:function(t,r){if(1&t&&Ta(AV,5),2&t){let i;os(i=ss())&&(r.showCommitInfoBtn=i.first)}},decls:11,vars:5,consts:[[3,"title","dismissable",4,"ngIf"],[1,"row","justify-content-between"],[1,"col-auto"],[3,"title"],["heading",""],["type","button",1,"btn","icon","btn-light",3,"click"],[1,"bi","bi-arrow-clockwise"],[4,"ngIf"],[3,"title","dismissable"],["id","graph-container"],["type","button","data-bs-toggle","modal",1,"btn","icon","btn-light","d-none"],["showCommitInfoBtn",""],[1,"bi","bi-trash"],[3,"target","node"]],template:function(t,r){1&t&&(k(0,xV,1,2,"app-error-alert",0),f(1,"div",1)(2,"div",2),S(3,"app-page-heading",3,4),h(),f(5,"div",2)(6,"button",5),$("click",function(){return r.loadGraph()}),S(7,"i",6),h()()(),k(8,kV,6,3,"ng-container",7),k(9,FV,1,2,"app-warning-alert",0),k(10,RV,1,0,"app-loader",7)),2&t&&(g("ngIf",!!r.generationError),d(3),g("title","repo"),d(5),g("ngIf",!0===r.validRepo&&!r.generationError),d(1),g("ngIf",!1===r.validRepo),d(1),g("ngIf",void 0===r.validRepo))},dependencies:[$e,og,OD,Ds,Hu,MV]}),e})();function NV(e,n){1&e&&(S(0,"i",24),w(1,"translate")),2&e&&on("title",D(1,1,"unique"))}function PV(e,n){if(1&e){const t=he();f(0,"div",28)(1,"input",29),$("change",function(){K(t),C();const i=ze(2);return Q(i.type="password"==i.type?"text":"password")}),h(),f(2,"label",30),v(3),w(4,"translate"),h()()}2&e&&(d(3),y(" ",D(4,1,"show-password")," "))}function LV(e,n){if(1&e&&(Ae(0),S(1,"input",25,26),w(3,"translate"),k(4,PV,5,3,"div",27),xe()),2&e){const t=C().$implicit,r=C(2);let i;d(1),Qe("is-valid",r.settingsForm.controls[t.name].dirty&&r.settingsForm.controls[t.name].valid)("is-invalid",r.settingsForm.controls[t.name].dirty&&!r.settingsForm.controls[t.name].valid),on("placeholder",D(3,9,null!==(i=t.placeholder)&&void 0!==i?i:"")),g("type",t.type)("name",t.name)("formControlName",t.name),d(3),g("ngIf","password"==t.type)}}function VV(e,n){if(1&e&&(Ae(0),f(1,"div",32),S(2,"textarea",33),h(),xe()),2&e){const t=C(2).$implicit,r=C(2);d(2),Qe("is-valid",r.settingsForm.controls[t.name].dirty&&r.settingsForm.controls[t.name].valid)("is-invalid",r.settingsForm.controls[t.name].dirty&&!r.settingsForm.controls[t.name].valid),g("formControlName",t.name)}}function BV(e,n){if(1&e&&(Ae(0),f(1,"div",34)(2,"div",35),S(3,"input",36),h()(),xe()),2&e){const t=C(2).$implicit;d(3),g("name",t.name)("placeholder",t.placeholder)("formControlName",t.name)}}function jV(e,n){if(1&e&&(f(0,"option",42),v(1),w(2,"translate"),h()),2&e){const t=n.$implicit;g("ngValue",t.value),d(1),y(" ",D(2,2,t.text)," ")}}function UV(e,n){if(1&e&&(Ae(0),f(1,"div",37)(2,"label",38),v(3),w(4,"translate"),h(),f(5,"select",39)(6,"option",40),v(7),w(8,"translate"),h(),k(9,jV,3,4,"option",41),h()(),xe()),2&e){const t=C(2).$implicit;let r;d(3),y(" ",D(4,4,null!==(r=t.placeholder)&&void 0!==r?r:t.name)," "),d(2),g("formControlName",t.name),d(2),y(" ",D(8,6,"choose")," "),d(2),g("ngForOf",t.selectOptions)}}function $V(e,n){if(1&e&&(k(0,VV,3,5,"ng-container",31),k(1,BV,4,3,"ng-container",31),k(2,UV,10,8,"ng-container",31)),2&e){const t=C().$implicit;g("ngIf","textarea"==t.type),d(1),g("ngIf","checkbox"==t.type),d(1),g("ngIf","selectbox"==t.type)}}function HV(e,n){if(1&e&&(f(0,"div",18)(1,"div",19)(2,"div",5)(3,"div",6)(4,"label"),v(5),w(6,"translate"),h()(),f(7,"div",6),k(8,NV,2,3,"i",20),h()()(),f(9,"div",21),k(10,LV,5,11,"ng-container",22),k(11,$V,3,3,"ng-template",null,23,Wt),h()()),2&e){const t=n.$implicit,r=ze(12);let i;d(5),y(" ",D(6,4,null!==(i=t.title)&&void 0!==i?i:t.name)," "),d(3),g("ngIf",!0===t.unique),d(2),g("ngIf","textarea"!==t.type&&"checkbox"!==t.type&&"selectbox"!==t.type)("ngIfElse",r)}}function GV(e,n){if(1&e){const t=he();f(0,"div",18)(1,"div",43)(2,"button",44),$("click",function(){return K(t),Q(C(2).submit())}),v(3),w(4,"translate"),h(),f(5,"button",45),$("click",function(){return K(t),Q(C(2).loadSettings())}),v(6),w(7,"translate"),h()()()}2&e&&(d(3),y(" ",D(4,2,"submit")," "),d(3),y(" ",D(7,4,"reset")," "))}function zV(e,n){1&e&&S(0,"app-success-alert",47),2&e&&g("title","operation-successful")("dismissable",!1)}function qV(e,n){1&e&&S(0,"app-error-alert",47),2&e&&g("title","operation-error")("dismissable",!1)}function WV(e,n){if(1&e&&(k(0,zV,1,2,"app-success-alert",46),k(1,qV,1,2,"app-error-alert",46)),2&e){const t=C(2);g("ngIf",!0===t.submitResult),d(1),g("ngIf",!1===t.submitResult)}}function YV(e,n){if(1&e&&(f(0,"div",12)(1,"form",13)(2,"div",14),k(3,HV,13,6,"div",15),k(4,GV,8,6,"div",16),k(5,WV,2,2,"ng-template",null,17,Wt),h()()()),2&e){const t=ze(6),r=C();d(1),g("formGroup",r.settingsForm),d(2),g("ngForOf",r.SETTINGS_FIELD),d(1),g("ngIf",void 0===r.submitResult)("ngIfElse",t)}}let KV=(()=>{class e{constructor(t){this.appService=t,this.SETTINGS_FIELD=[{name:"app_mode",title:"app_mode",type:"text",blueprintFormControl:new oe("",[He.required])},{name:"backup",title:"backup",type:"checkbox",blueprintFormControl:new oe("",[He.required])},{name:"current_project_path",title:"current_project_path",type:"text",blueprintFormControl:new oe("",[He.required])},{name:"use_localtime",title:"use_localtime",type:"checkbox",blueprintFormControl:new oe("",[He.required])},{name:"vault_path",title:"vault_path",type:"text",blueprintFormControl:new oe("",[He.required])},{name:"verbose",title:"verbose",type:"checkbox",blueprintFormControl:new oe("",[He.required])}]}ngOnInit(){this.loadSettings()}loadSettings(){this.appService.getSettings().then(t=>{t.subscribe({next:r=>{this.createForm(r)}})})}createForm(t){this.settingsForm=new An({}),this.SETTINGS_FIELD.forEach(r=>{const i=new oe(t[r.name],r.blueprintFormControl.validator,r.blueprintFormControl.asyncValidator);this.settingsForm.addControl(r.name,i)})}submit(){this.settingsForm&&this.settingsForm.valid&&(this.submitResult=void 0,this.appService.updateSettings(this.settingsForm.value).then(t=>{t.subscribe({next:r=>{this.submitResult=!!r,this.settingsForm?.markAsPristine(),setTimeout(()=>{this.submitResult=void 0},Gt.alertTimeout)}})}))}}return e.\u0275fac=function(t){return new(t||e)(O($u))},e.\u0275cmp=De({type:e,selectors:[["app-settings"]],decls:15,vars:4,consts:[["id","basic-horizontal-layouts"],[1,"row","match-height"],[1,"col-12"],[1,"card"],[1,"card-header"],[1,"row","justify-content-between"],[1,"col-auto"],[1,"card-title"],[1,"btn","icon","btn-light",3,"click"],[1,"bi","bi-box-arrow-up-right"],[1,"card-content"],["class","card-body",4,"ngIf"],[1,"card-body"],[1,"form","form-horizontal",3,"formGroup"],[1,"form-body"],["class","row",4,"ngFor","ngForOf"],["class","row",4,"ngIf","ngIfElse"],["showSubmitResult",""],[1,"row"],[1,"col-md-4"],["class","bi bi-1-square-fill","data-bs-toggle","tooltip","data-bs-placement","top",3,"title",4,"ngIf"],[1,"col-md-8","form-group"],[4,"ngIf","ngIfElse"],["otherTypes",""],["data-bs-toggle","tooltip","data-bs-placement","top",1,"bi","bi-1-square-fill",3,"title"],[1,"form-control",3,"type","name","placeholder","formControlName"],["input",""],["class","form-check form-switch",4,"ngIf"],[1,"form-check","form-switch"],["type","checkbox",1,"form-check-input",3,"change"],[1,"form-check-label"],[4,"ngIf"],[1,"form-group","mb-3"],["rows","5",1,"form-control",3,"formControlName"],[1,"form-check"],[1,"checkbox"],["type","checkbox",1,"form-check-input","cursor-pointer",3,"name","placeholder","formControlName"],[1,"input-group","mb-3"],[1,"input-group-text"],[1,"form-select",3,"formControlName"],["selected","","value",""],[3,"ngValue",4,"ngFor","ngForOf"],[3,"ngValue"],[1,"col-sm-12","d-flex","justify-content-end"],["type","button",1,"btn","btn-primary","me-1","mb-1",3,"click"],["type","button",1,"btn","btn-light-secondary","me-1","mb-1",3,"click"],[3,"title","dismissable",4,"ngIf"],[3,"title","dismissable"]],template:function(t,r){1&t&&(f(0,"section",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"div",5)(6,"div",6)(7,"h4",7),v(8),w(9,"translate"),h()(),f(10,"div",6)(11,"button",8),$("click",function(){return r.appService.openSettings()}),S(12,"i",9),h()()()(),f(13,"div",10),k(14,YV,7,4,"div",11),h()()()()()),2&t&&(d(8),y(" ",D(9,2,"settings")," "),d(6),g("ngIf",r.settingsForm))},dependencies:[Mn,$e,Vr,Pu,Lu,or,uo,ll,Pr,Lr,sr,vr,Ds,sg,Xe]}),e})(),QV=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=De({type:e,selectors:[["app-server-error"]],decls:11,vars:6,consts:[["id","error"],[1,"error-page","container"],[1,"col-md-8","col-12","offset-md-2"],[1,"text-center"],["src","./assets/svg/error-500.svg","alt","Server error",1,"img-error"],[1,"error-title"],["href","index.html",1,"btn","btn-lg","btn-outline-primary","mt-3"]],template:function(t,r){1&t&&(f(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),S(4,"img",4),f(5,"h1",5),v(6),w(7,"translate"),h(),f(8,"a",6),v(9),w(10,"translate"),h()()()()()),2&t&&(d(6),y(" ",D(7,2,"server-error")," "),d(3),y(" ",D(10,4,"go-home")," "))},dependencies:[Xe]}),e})();function XV(e,n){if(1&e){const t=he();Ae(0),f(1,"app-task-preview",2),$("onAddAssignment",function(){K(t);const i=C();return Q(i.loadTaskById(i.task.id))})("onAddLabel",function(){K(t);const i=C();return Q(i.loadTaskById(i.task.id))})("onDeletion",function(){K(t);const i=C();return Q(i.loadTaskById(i.task.id))})("onModify",function(){K(t);const i=C();return Q(i.loadTaskById(i.task.id))})("onRemoveAssignment",function(){K(t);const i=C();return Q(i.loadTaskById(i.task.id))})("onRemoveLabel",function(){K(t);const i=C();return Q(i.loadTaskById(i.task.id))}),h(),xe()}if(2&e){const t=C();d(1),g("task",t.task)("todoCollapseStatus",!0)}}function ZV(e,n){1&e&&S(0,"app-warning-alert",3),2&e&&g("dismissable",!1)}const JV=[{path:"",redirectTo:"/home",pathMatch:"full"},{path:"home",component:L3},{path:"dashboard",component:_3,canActivate:[Vi]},{path:"task/:id",component:(()=>{class e{constructor(t,r){this.taskService=t,this.activatedRoute=r}ngOnInit(){this.paramsSubscription=this.activatedRoute.paramMap.subscribe({next:t=>{const r=t.get("id");r&&this.loadTaskById(+r)}})}loadTaskById(t){this.task=void 0,this.taskService.find(t).then(r=>{r.subscribe({next:i=>{i&&(this.task=i)}})})}ngOnDestroy(){this.paramsSubscription?.unsubscribe()}}return e.\u0275fac=function(t){return new(t||e)(O(ul),O(ao))},e.\u0275cmp=De({type:e,selectors:[["app-task"]],decls:3,vars:2,consts:[[4,"ngIf","ngIfElse"],["noTask",""],[3,"task","todoCollapseStatus","onAddAssignment","onAddLabel","onDeletion","onModify","onRemoveAssignment","onRemoveLabel"],["title","no-task",3,"dismissable"]],template:function(t,r){if(1&t&&(k(0,XV,2,2,"ng-container",0),k(1,ZV,1,1,"ng-template",null,1,Wt)),2&t){const i=ze(2);g("ngIf",!!r.task)("ngIfElse",i)}},dependencies:[$e,RD,Hu]}),e})(),canActivate:[Vi]},{path:"login",component:w3},{path:"settings",component:KV},{path:"my-profile",component:j3,canActivate:[Vi]},{path:"manage-task-status",component:lV,canActivate:[Vi,fl],data:{roleRequired:"permission_manage_task_status"}},{path:"manage-task-labels",component:uV,canActivate:[Vi,fl],data:{roleRequired:"permission_manage_task_labels"}},{path:"manage-users",component:fV,canActivate:[Vi,fl],data:{roleRequired:"permission_manage_users"}},{path:"manage-roles",component:pV,canActivate:[Vi,fl],data:{roleRequired:"permission_manage_roles"}},{path:"repo",component:OV},{path:"server-error",component:QV},{path:"**",component:vN}];let e4=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Kn({type:e}),e.\u0275inj=Rn({providers:[Vi,fl],imports:[gw.forRoot(JV,{useHash:!0}),gw]}),e})();function t4(e,n){if(1&e&&(f(0,"span"),v(1),h()),2&e){const t=C();d(1),y(" (v",t.version,") ")}}let n4=(()=>{class e{constructor(t,r){this.appService=t,this.utilsService=r,this.appName=Gt.appName}ngOnInit(){this.loadVersion()}close(){this.appService.close().then(()=>{window.close()})}loadVersion(){this.appService.version().then(t=>{t.subscribe({next:r=>{this.version=r}})})}}return e.\u0275fac=function(t){return new(t||e)(O($u),O(Ni))},e.\u0275cmp=De({type:e,selectors:[["app-footer"]],decls:13,vars:8,consts:[[2,"margin","0 10vw 5vh 10vw"],[1,"footer","clearfix","mb-0","text-muted"],[1,"float-start"],[4,"ngIf"],[1,"float-end"],["type","button",1,"btn","icon","btn-light",3,"click"],[1,"bi","bi-arrow-clockwise"],[3,"centered","target","title","confirmBtn","confirmBtnTxt","borderless","onConfirm"]],template:function(t,r){1&t&&(f(0,"footer",0)(1,"div",1)(2,"div",2)(3,"p"),v(4," 2023 \xa9 "),f(5,"strong"),v(6),h(),k(7,t4,2,1,"span",3),v(8," developed by Nicola Ricciardi "),h()(),f(9,"div",4)(10,"button",5),$("click",function(){return r.utilsService.reload()}),S(11,"i",6),h(),f(12,"app-dialog-modal",7),$("onConfirm",function(){return r.close()}),h()()()()),2&t&&(d(6),Fr(r.appName),d(1),g("ngIf",!!r.version),d(5),g("centered",!0)("target","close-app-modal")("title","close-app-request")("confirmBtn",!0)("confirmBtnTxt","confirm")("borderless",!0))},dependencies:[$e,dl]}),e})();const r4=function(){return["/manage-task-status"]};function i4(e,n){1&e&&(f(0,"li",25)(1,"a",26),S(2,"i",34),f(3,"span"),v(4),w(5,"translate"),h()()()),2&e&&(Qe("active",C().urlIncludes("manage-task-status")),d(1),g("routerLink",It(6,r4)),d(3),y(" ",D(5,4,"manage-task-status")," "))}const o4=function(){return["/manage-task-labels"]};function s4(e,n){1&e&&(f(0,"li",25)(1,"a",26),S(2,"i",35),f(3,"span"),v(4),w(5,"translate"),h()()()),2&e&&(Qe("active",C().urlIncludes("manage-task-labels")),d(1),g("routerLink",It(6,o4)),d(3),y(" ",D(5,4,"manage-task-labels")," "))}const a4=function(){return["/manage-users"]};function l4(e,n){1&e&&(f(0,"li",25)(1,"a",26),S(2,"i",36),f(3,"span"),v(4),w(5,"translate"),h()()()),2&e&&(Qe("active",C().urlIncludes("manage-users")),d(1),g("routerLink",It(6,a4)),d(3),y(" ",D(5,4,"manage-users")," "))}const c4=function(){return["/manage-roles"]};function u4(e,n){1&e&&(f(0,"li",25)(1,"a",26),S(2,"i",37),f(3,"span"),v(4),w(5,"translate"),h()()()),2&e&&(Qe("active",C().urlIncludes("manage-roles")),d(1),g("routerLink",It(6,c4)),d(3),y(" ",D(5,4,"manage-roles")," "))}const d4=function(){return["/"]},f4=function(){return["/home"]},h4=function(){return["/dashboard"]},p4=function(){return["/repo"]},g4=function(){return["/settings"]};let m4=(()=>{class e{constructor(t,r){this.router=t,this.authService=r,this.appName=Gt.appName,this.authService.refreshMe()}urlIncludes(t){return this.router.url.includes(t)}}return e.\u0275fac=function(t){return new(t||e)(O(Bt),O(Un))},e.\u0275cmp=De({type:e,selectors:[["app-sidebar"]],decls:65,vars:44,consts:[[1,"sidebar-wrapper","active"],[1,"sidebar-header","position-relative"],[1,"d-flex","justify-content-between","align-items-center"],[1,"logo"],["routerLinkActive","router-link-active",3,"routerLink"],[1,"text-capitalized"],[1,"theme-toggle","d-flex","gap-2","align-items-center","mt-2"],["xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/1999/xlink","aria-hidden","true","role","img","width","20","height","20","preserveAspectRatio","xMidYMid meet","viewBox","0 0 21 21",1,"iconify","iconify--system-uicons"],["fill","none","fill-rule","evenodd","stroke","currentColor","stroke-linecap","round","stroke-linejoin","round"],["d","M10.5 14.5c2.219 0 4-1.763 4-3.982a4.003 4.003 0 0 0-4-4.018c-2.219 0-4 1.781-4 4c0 2.219 1.781 4 4 4zM4.136 4.136L5.55 5.55m9.9 9.9l1.414 1.414M1.5 10.5h2m14 0h2M4.135 16.863L5.55 15.45m9.899-9.9l1.414-1.415M10.5 19.5v-2m0-14v-2","opacity",".3"],["transform","translate(-210 -1)"],["d","M220.5 2.5v2m6.5.5l-1.5 1.5"],["cx","220.5","cy","11.5","r","4"],["d","m214 5l1.5 1.5m5 14v-2m6.5-.5l-1.5-1.5M214 18l1.5-1.5m-4-5h2m14 0h2"],[1,"form-check","form-switch","fs-6"],["type","checkbox","id","toggle-dark",1,"form-check-input","me-0",2,"cursor","pointer"],[1,"form-check-label"],["xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/1999/xlink","aria-hidden","true","role","img","width","20","height","20","preserveAspectRatio","xMidYMid meet","viewBox","0 0 24 24",1,"iconify","iconify--mdi"],["fill","currentColor","d","m17.75 4.09l-2.53 1.94l.91 3.06l-2.63-1.81l-2.63 1.81l.91-3.06l-2.53-1.94L12.44 4l1.06-3l1.06 3l3.19.09m3.5 6.91l-1.64 1.25l.59 1.98l-1.7-1.17l-1.7 1.17l.59-1.98L15.75 11l2.06-.05L18.5 9l.69 1.95l2.06.05m-2.28 4.95c.83-.08 1.72 1.1 1.19 1.85c-.32.45-.66.87-1.08 1.27C15.17 23 8.84 23 4.94 19.07c-3.91-3.9-3.91-10.24 0-14.14c.4-.4.82-.76 1.27-1.08c.75-.53 1.93.36 1.85 1.19c-.27 2.86.69 5.83 2.89 8.02a9.96 9.96 0 0 0 8.02 2.89m-1.64 2.02a12.08 12.08 0 0 1-7.8-3.47c-2.17-2.19-3.33-5-3.49-7.82c-2.81 3.14-2.7 7.96.31 10.98c3.02 3.01 7.84 3.12 10.98.31Z"],[1,"sidebar-toggler","x"],["href","javascript:void(0)",1,"sidebar-hide","d-xl-none","d-block"],[1,"bi","bi-x","bi-middle"],[1,"sidebar-menu"],[1,"menu"],[1,"sidebar-title"],[1,"sidebar-item"],["routerLinkActive","router-link-active",1,"sidebar-link",3,"routerLink"],[1,"bi","bi-house-fill"],[1,"bi","bi-grid-fill"],[1,"bi","bi-git"],["class","sidebar-item",3,"active",4,"ngIf"],[1,"bi","bi-gear-fill"],["href","https://github.com/nricciardi/taskup","target","_blank",1,"sidebar-link"],[1,"bi","bi-life-preserver"],[1,"bi","bi-kanban-fill"],[1,"bi","bi-bookmarks-fill"],[1,"bi","bi-people-fill"],[1,"bi","bi-diagram-3-fill"]],template:function(t,r){1&t&&(f(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"a",4)(5,"span",5),v(6),h()()(),f(7,"div",6),gd(),f(8,"svg",7)(9,"g",8),S(10,"path",9),f(11,"g",10),S(12,"path",11)(13,"circle",12)(14,"path",13),h()()(),md(),f(15,"div",14),S(16,"input",15)(17,"label",16),h(),gd(),f(18,"svg",17),S(19,"path",18),h()(),md(),f(20,"div",19)(21,"a",20),S(22,"i",21),h()()()(),f(23,"div",22)(24,"ul",23)(25,"li",24),v(26),w(27,"translate"),h(),f(28,"li",25)(29,"a",26),S(30,"i",27),f(31,"span"),v(32),w(33,"translate"),h()()(),f(34,"li",25)(35,"a",26),S(36,"i",28),f(37,"span"),v(38),w(39,"translate"),h()()(),f(40,"li",25)(41,"a",26),S(42,"i",29),f(43,"span"),v(44),w(45,"translate"),h()()(),k(46,i4,6,7,"li",30),k(47,s4,6,7,"li",30),k(48,l4,6,7,"li",30),k(49,u4,6,7,"li",30),f(50,"li",25)(51,"a",26),S(52,"i",31),f(53,"span"),v(54),w(55,"translate"),h()()(),f(56,"li",24),v(57),w(58,"translate"),h(),f(59,"li",25)(60,"a",32),S(61,"i",33),f(62,"span"),v(63),w(64,"translate"),h()()()()()()),2&t&&(d(4),g("routerLink",It(39,d4)),d(2),y(" ",r.appName," "),d(20),y(" ",D(27,25,"menu")," "),d(2),Qe("active",r.urlIncludes("home")),d(1),g("routerLink",It(40,f4)),d(3),y(" ",D(33,27,"home")," "),d(2),Qe("active",r.urlIncludes("dashboard")),d(1),g("routerLink",It(41,h4)),d(3),y(" ",D(39,29,"dashboard")," "),d(2),Qe("active",r.urlIncludes("repo")),d(1),g("routerLink",It(42,p4)),d(3),y(" ",D(45,31,"repo")," "),d(2),g("ngIf",r.authService.loggedUser&&(null==r.authService.loggedUser.role?null:r.authService.loggedUser.role.permission_manage_task_status)),d(1),g("ngIf",r.authService.loggedUser&&(null==r.authService.loggedUser.role?null:r.authService.loggedUser.role.permission_manage_task_labels)),d(1),g("ngIf",r.authService.loggedUser&&(null==r.authService.loggedUser.role?null:r.authService.loggedUser.role.permission_manage_users)),d(1),g("ngIf",r.authService.loggedUser&&(null==r.authService.loggedUser.role?null:r.authService.loggedUser.role.permission_manage_roles)),d(1),Qe("active",r.urlIncludes("settings")),d(1),g("routerLink",It(43,g4)),d(3),y(" ",D(55,33,"settings")," "),d(3),y(" ",D(58,35,"raise-support")," "),d(6),y(" ",D(64,37,"documentation")," "))},dependencies:[$e,tl,Ip,Xe]}),e})();const _4=["throwErrorLogoutModal"];function v4(e,n){1&e&&(f(0,"li",37)(1,"a",38),S(2,"i",39),h(),f(3,"ul",40)(4,"li")(5,"h6",41),v(6,"Mail"),h()(),f(7,"li")(8,"a",42),v(9,"No new mail"),h()()()())}function y4(e,n){1&e&&(f(0,"li",43)(1,"a",44),S(2,"i",45),f(3,"span",46),v(4,"7"),h()(),f(5,"ul",47)(6,"li",41)(7,"h6"),v(8,"Notifications"),h()(),f(9,"li",48)(10,"a",49)(11,"div",50),S(12,"i",51),h(),f(13,"div",52)(14,"p",53),v(15," Successfully check out "),h(),f(16,"p",54),v(17," Order ID #256 "),h()()()(),f(18,"li",48)(19,"a",49)(20,"div",55),S(21,"i",56),h(),f(22,"div",52)(23,"p",53),v(24," Homework submitted "),h(),f(25,"p",54),v(26," Algebra math homework "),h()()()(),f(27,"li")(28,"p",57)(29,"a",58),v(30,"See all notification"),h()()()()())}function b4(e,n){if(1&e&&S(0,"app-text-avatar",59),2&e){const t=C(2);g("color",t.userLogged.avatar_hex_color)("text",t.utilsService.getAvatarText(t.userLogged))("tooltip",t.userLogged.username)}}function C4(e,n){if(1&e&&(f(0,"li")(1,"h6",41),v(2),w(3,"translate"),h()()),2&e){const t=C(2);d(2),va("",D(3,2,"hello"),", ",t.userLogged.name,"!")}}const w4=function(){return["/my-profile"]},D4=function(){return["/settings"]};function E4(e,n){if(1&e){const t=he();f(0,"div",17)(1,"ul",18),k(2,v4,10,0,"li",19),k(3,y4,31,0,"li",20),h(),f(4,"div",21)(5,"a",22)(6,"div",23)(7,"div",24)(8,"h6",25),v(9),h(),f(10,"p",26),v(11),h()(),f(12,"div",27),k(13,b4,1,3,"app-text-avatar",28),h()()(),f(14,"ul",29),k(15,C4,4,4,"li",30),f(16,"li")(17,"a",31),S(18,"i",32),v(19),w(20,"translate"),h()(),f(21,"li")(22,"button",31),S(23,"i",33),v(24),w(25,"translate"),h()(),f(26,"li"),S(27,"hr",34),h(),f(28,"li")(29,"button",35),$("click",function(){return K(t),Q(C().logout())}),S(30,"i",36),v(31),w(32,"translate"),h()()()()()}if(2&e){const t=C();d(2),g("ngIf",!1),d(1),g("ngIf",!1),d(6),y(" ",t.userLogged.username," "),d(2),y(" ",null==t.userLogged.role?null:t.userLogged.role.name," "),d(2),g("ngIf",t.userLogged),d(2),g("ngIf",t.userLogged.name),d(2),g("routerLink",It(17,w4)),d(2),y(" ",D(20,11,"my-profile")," "),d(3),g("routerLink",It(18,D4)),d(2),y(" ",D(25,13,"settings")," "),d(7),y(" ",D(32,15,"logout")," ")}}const S4=function(){return["/login"]};function T4(e,n){1&e&&(f(0,"a",60),v(1),w(2,"translate"),h()),2&e&&(g("routerLink",It(4,S4)),d(1),y(" ",D(2,2,"login")," "))}let I4=(()=>{class e{constructor(t,r,i,o){this.authService=t,this.router=r,this.utilsService=i,this.appService=o,this.userLogged=null}ngOnInit(){this.authService.observeMe().subscribe({next:t=>{this.userLogged=t},error:t=>{Et.logError(t)}}),this.authService.refreshMe()}logout(){this.authService.logout().then(t=>{this.router.navigate(["/login"])}).catch(t=>{this.throwErrorLogoutModal?.nativeElement.click()})}}return e.\u0275fac=function(t){return new(t||e)(O(Un),O(Bt),O(Ni),O($u))},e.\u0275cmp=De({type:e,selectors:[["app-header"]],viewQuery:function(t,r){if(1&t&&Ta(_4,5),2&t){let i;os(i=ss())&&(r.throwErrorLogoutModal=i.first)}},decls:21,vars:5,consts:[[1,"navbar","navbar-expand","navbar-light","navbar-top"],[1,"container-fluid"],["href","javascript:void(0)",1,"burger-btn","d-block"],[1,"bi","bi-justify","fs-3"],["type","button","data-bs-toggle","collapse","data-bs-target","#navbarSupportedContent","aria-controls","navbarSupportedContent","aria-expanded","false","aria-label","Toggle navigation",1,"navbar-toggler"],[1,"navbar-toggler-icon"],["class","collapse navbar-collapse","id","navbarSupportedContent",4,"ngIf","ngIfElse"],["loginBtn",""],["type","button","data-bs-toggle","modal","data-bs-target","#logoutErrorModal",1,"btn","btn-outline-danger",2,"display","none"],["throwErrorLogoutModal",""],["id","logoutErrorModal","tabindex","-1","role","dialog","aria-labelledby","myModalLabel120","aria-hidden","true",1,"modal","fade","text-left"],["role","document",1,"modal-dialog","modal-dialog-centered","modal-dialog-scrollable"],[1,"modal-content"],[1,"modal-header","bg-danger"],["id","myModalLabel120",1,"modal-title","white"],["type","button","data-bs-dismiss","modal","aria-label","Close",1,"close"],["data-feather","x"],["id","navbarSupportedContent",1,"collapse","navbar-collapse"],[1,"navbar-nav","ms-auto","mb-lg-0"],["class","nav-item dropdown me-1",4,"ngIf"],["class","nav-item dropdown me-3",4,"ngIf"],[1,"dropdown"],["href","#","data-bs-toggle","dropdown","aria-expanded","false"],[1,"user-menu","d-flex"],[1,"user-name","text-end","me-3"],[1,"mb-0","text-gray-600"],[1,"mb-0","text-sm","text-gray-600"],[1,"user-img","d-flex","align-items-center"],["class","cursor-arrow",3,"color","text","tooltip",4,"ngIf"],["aria-labelledby","dropdownMenuButton",1,"dropdown-menu","dropdown-menu-end",2,"min-width","11rem"],[4,"ngIf"],["routerLinkActive","router-link-active",1,"dropdown-item",3,"routerLink"],[1,"icon-mid","bi","bi-person","me-2"],[1,"icon-mid","bi","bi-gear","me-2"],[1,"dropdown-divider"],[1,"dropdown-item",3,"click"],[1,"icon-mid","bi","bi-box-arrow-left","me-2"],[1,"nav-item","dropdown","me-1"],["href","#","data-bs-toggle","dropdown","aria-expanded","false",1,"nav-link","active","dropdown-toggle","text-gray-600"],[1,"bi","bi-envelope","bi-sub","fs-4"],["aria-labelledby","dropdownMenuButton",1,"dropdown-menu","dropdown-menu-end"],[1,"dropdown-header"],["href","#",1,"dropdown-item"],[1,"nav-item","dropdown","me-3"],["href","#","data-bs-toggle","dropdown","data-bs-display","static","aria-expanded","false",1,"nav-link","active","dropdown-toggle","text-gray-600"],[1,"bi","bi-bell","bi-sub","fs-4"],[1,"badge","badge-notification","bg-danger"],["aria-labelledby","dropdownMenuButton",1,"dropdown-menu","dropdown-menu-end","notification-dropdown"],[1,"dropdown-item","notification-item"],["href","#",1,"d-flex","align-items-center"],[1,"notification-icon","bg-primary"],[1,"bi","bi-cart-check"],[1,"notification-text","ms-4"],[1,"notification-title","font-bold"],[1,"notification-subtitle","font-thin","text-sm"],[1,"notification-icon","bg-success"],[1,"bi","bi-file-earmark-check"],[1,"text-center","py-2","mb-0"],["href","#"],[1,"cursor-arrow",3,"color","text","tooltip"],["routerLinkActive","router-link-active",1,"btn","btn-outline-primary",3,"routerLink"]],template:function(t,r){if(1&t&&(f(0,"header")(1,"nav",0)(2,"div",1)(3,"a",2),S(4,"i",3),h(),f(5,"button",4),S(6,"span",5),h(),k(7,E4,33,19,"div",6),k(8,T4,3,5,"ng-template",null,7,Wt),h()()(),S(10,"button",8,9),f(12,"div",10)(13,"div",11)(14,"div",12)(15,"div",13)(16,"h5",14),v(17),w(18,"translate"),h(),f(19,"button",15),S(20,"i",16),h()()()()()),2&t){const i=ze(9);d(7),g("ngIf",r.userLogged)("ngIfElse",i),d(10),y(" ",D(18,3,"logout-error")," ")}},dependencies:[$e,tl,Ip,Bu,Xe]}),e})(),M4=(()=>{class e{constructor(t){this.translate=t,this.title="frontend",t.addLangs(["en","it"]),this.setBrowserDefaultLanguage()}switchLanguage(t){this.translate.use(t)}setBrowserDefaultLanguage(){const t=this.translate.getBrowserLang();t&&this.translate.setDefaultLang(t)}}return e.\u0275fac=function(t){return new(t||e)(O(Su))},e.\u0275cmp=De({type:e,selectors:[["app-root"]],decls:8,vars:0,consts:[["id","app"],["id","sidebar"],["id","main",1,"layout-navbar","navbar-fixed"],["id","main-content"]],template:function(t,r){1&t&&(f(0,"div",0)(1,"div",1),S(2,"app-sidebar"),h(),f(3,"div",2),S(4,"app-header"),f(5,"div",3),S(6,"router-outlet"),h(),S(7,"app-footer"),h()())},dependencies:[_p,n4,m4,I4]}),e})();class A4{constructor(n,t="/assets/i18n/",r=".json"){this.http=n,this.prefix=t,this.suffix=r}getTranslation(n){return this.http.get(`${this.prefix}${n}${this.suffix}`)}}let x4=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Kn({type:e,bootstrap:[M4]}),e.\u0275inj=Rn({imports:[sF,e4,PF,mP,_N.forRoot({defaultLanguage:"en",useDefaultLang:!0,loader:{provide:rl,useFactory:n=>new A4(n,"./assets/i18n/",".json"),deps:[Y1]}})]}),e})();oF().bootstrapModule(x4).catch(e=>console.error(e))},321:()=>{"use strict";const ci=":";class qt extends Error{constructor(A){super(`No translation found for ${we(A)}.`),this.parsedMessage=A,this.type="MissingTranslationError"}}const br=function(F,...A){if(br.translate){const G=br.translate(F,A);F=G[0],A=G[1]}let L=yl(F[0],F.raw[0]);for(let G=1;Gtypeof globalThis<"u"&&globalThis||typeof global<"u"&&global||typeof window<"u"&&window||typeof self<"u"&&typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&self)().$localize=br}},ci=>{var Bi=Be=>ci(ci.s=Be);Bi(321),Bi(34)}]); \ No newline at end of file diff --git a/frontend/dist/frontend/main.32248341c8c39a0b.js b/frontend/dist/frontend/main.32248341c8c39a0b.js new file mode 100644 index 0000000..520b5b0 --- /dev/null +++ b/frontend/dist/frontend/main.32248341c8c39a0b.js @@ -0,0 +1 @@ +(self.webpackChunkfrontend=self.webpackChunkfrontend||[]).push([[179],{731:function(ci,Bi){!function(yn){"use strict";var Be=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function at(P){return P&&P.__esModule&&Object.prototype.hasOwnProperty.call(P,"default")?P.default:P}function lt(P,M){return P(M={exports:{}},M.exports),M.exports}var qt=lt(function(P,M){var ae;Object.defineProperty(M,"__esModule",{value:!0}),(ae=M.Orientation||(M.Orientation={})).VerticalReverse="vertical-reverse",ae.Horizontal="horizontal",ae.HorizontalReverse="horizontal-reverse"});at(qt);var Ie=lt(function(P,M){function x(w,X){return Object.assign({},X.reduce((pe,fe)=>Object.assign({},pe,{[fe]:w[fe]}),{}))}function T(w){return void 0===w}Object.defineProperty(M,"__esModule",{value:!0}),M.booleanOptionOr=function J(w,X){return"boolean"==typeof w?w:X},M.numberOptionOr=function ae(w,X){return"number"==typeof w?w:X},M.pick=x,M.debug=function I(w,X){console.log(JSON.stringify(w.map(pe=>x(pe,X)),null,2))},M.isUndefined=T,M.withoutUndefinedKeys=function V(w={}){return Object.keys(w).reduce((X,pe)=>T(w[pe])?X:Object.assign({},X,{[pe]:w[pe]}),{})},M.arrowSvgPath=function z(w,X,pe){const Ne=w.template.arrow.size,rt=pe.style.dot.size+w.template.arrow.offset,Rt=Math.PI/7,dt=function R(w,X,pe){const fe=X.x-pe.x,Ne=X.y-pe.y,rt=w.template.commit.spacing;let Rt,dt;switch(w.orientation){case qt.Orientation.Horizontal:Rt=Ne,dt=-rt;break;case qt.Orientation.HorizontalReverse:Rt=Ne,dt=rt;break;case qt.Orientation.VerticalReverse:Rt=-rt,dt=fe;break;default:Rt=rt,dt=fe}return w.isVertical?Math.abs(Ne)>rt&&(dt=0):Math.abs(fe)>rt&&(Rt=0),w.reverseArrow&&(Rt*=-1,dt*=-1),Math.atan2(Rt,dt)}(w,X,pe),Ls=rt*Math.cos(dt),bo=rt*Math.sin(dt),Vs=(rt+Ne)*Math.cos(dt-Rt),Bs=(rt+Ne)*Math.sin(dt-Rt),ot=(rt+Ne/2)*Math.cos(dt),js=(rt+Ne/2)*Math.sin(dt),_i=(rt+Ne)*Math.cos(dt+Rt),vi=(rt+Ne)*Math.sin(dt+Rt);return`M${Ls},${bo} L${Vs},${Bs} Q${ot},${js} ${_i},${vi} L${_i},${vi}`}});at(Ie);var ct=lt(function(P,M){Object.defineProperty(M,"__esModule",{value:!0});var J=(()=>{return(R=J||(J={})).Bezier="bezier",R.Straight="straight",J;var R})();M.MergeStyle=J,M.DEFAULT_FONT="normal 12pt Calibri";class ae{constructor(w){w.branch=w.branch||{},w.branch.label=w.branch.label||{},w.arrow=w.arrow||{},w.commit=w.commit||{},w.commit.dot=w.commit.dot||{},w.commit.message=w.commit.message||{},this.colors=w.colors||["#000000"],this.branch={color:w.branch.color,lineWidth:w.branch.lineWidth||2,mergeStyle:w.branch.mergeStyle||J.Bezier,spacing:Ie.numberOptionOr(w.branch.spacing,20),label:{display:Ie.booleanOptionOr(w.branch.label.display,!0),color:w.branch.label.color||w.commit.color,strokeColor:w.branch.label.strokeColor||w.commit.color,bgColor:w.branch.label.bgColor||"white",font:w.branch.label.font||w.commit.message.font||M.DEFAULT_FONT,borderRadius:Ie.numberOptionOr(w.branch.label.borderRadius,10)}},this.arrow={size:w.arrow.size||null,color:w.arrow.color||null,offset:w.arrow.offset||2},this.commit={color:w.commit.color,spacing:Ie.numberOptionOr(w.commit.spacing,25),hasTooltipInCompactMode:Ie.booleanOptionOr(w.commit.hasTooltipInCompactMode,!0),dot:{color:w.commit.dot.color||w.commit.color,size:w.commit.dot.size||3,strokeWidth:Ie.numberOptionOr(w.commit.dot.strokeWidth,0),strokeColor:w.commit.dot.strokeColor,font:w.commit.dot.font||w.commit.message.font||"normal 10pt Calibri"},message:{display:Ie.booleanOptionOr(w.commit.message.display,!0),displayAuthor:Ie.booleanOptionOr(w.commit.message.displayAuthor,!0),displayHash:Ie.booleanOptionOr(w.commit.message.displayHash,!0),color:w.commit.message.color||w.commit.color,font:w.commit.message.font||M.DEFAULT_FONT}},this.tag=w.tag||{}}}M.Template=ae;const x=new ae({colors:["#6963FF","#47E8D4","#6BDB52","#E84BA5","#FFA657"],branch:{color:"#000000",lineWidth:4,spacing:50,mergeStyle:J.Straight},commit:{spacing:60,dot:{size:16,strokeColor:"#000000",strokeWidth:4},message:{color:"black"}},arrow:{size:16,offset:-1.5}});M.blackArrowTemplate=x;const I=new ae({colors:["#979797","#008fb5","#f1c109"],branch:{lineWidth:10,spacing:50},commit:{spacing:80,dot:{size:14},message:{font:"normal 14pt Arial"}}});M.metroTemplate=I;var T=(()=>{return(R=T||(T={})).Metro="metro",R.BlackArrow="blackarrow",T;var R})();function z(R){return R?"string"==typeof R?{[T.BlackArrow]:x,[T.Metro]:I}[R]:R:I}M.TemplateName=T,M.templateExtend=function V(R,w){const X=z(R);return w.branch||(w.branch={}),w.commit||(w.commit={}),{colors:w.colors||X.colors,arrow:Object.assign({},X.arrow,w.arrow),branch:Object.assign({},X.branch,w.branch,{label:Object.assign({},X.branch.label,w.branch.label)}),commit:Object.assign({},X.commit,w.commit,{dot:Object.assign({},X.commit.dot,w.commit.dot),message:Object.assign({},X.commit.message,w.commit.message)}),tag:Object.assign({},X.tag,w.tag)}},M.getTemplate=z});at(ct);var fi=lt(function(P,M){Object.defineProperty(M,"__esModule",{value:!0});M.Tag=class J{constructor(x,I,T,V){this.name=x,this.tagStyle=I,this.commitStyle=V,this.render=T}get style(){return{strokeColor:this.tagStyle.strokeColor||this.commitStyle.color,bgColor:this.tagStyle.bgColor||this.commitStyle.color,color:this.tagStyle.color||"white",font:this.tagStyle.font||this.commitStyle.message.font||ct.DEFAULT_FONT,borderRadius:Ie.numberOptionOr(this.tagStyle.borderRadius,10),pointerWidth:Ie.numberOptionOr(this.tagStyle.pointerWidth,12)}}}});at(fi);var yr=lt(function(P,M){Object.defineProperty(M,"__esModule",{value:!0});class ae{constructor(I){let T,V;this.refs=[],this.x=0,this.y=0;try{[,T,V]=I.author.match(/(.*) <(.*)>/)}catch{[T,V]=[I.author,""]}this.author={name:T,email:V,timestamp:Date.now()},this.committer={name:T,email:V,timestamp:Date.now()},this.subject=I.subject,this.body=I.body||"",this.hash=I.hash||(Math.random().toString(16).substring(3)+Math.random().toString(16).substring(3)+Math.random().toString(16).substring(3)+Math.random().toString(16).substring(3)).substring(0,40),this.hashAbbrev=this.hash.substring(0,7),this.parents=I.parents?I.parents:[],this.parentsAbbrev=this.parents.map(z=>z.substring(0,7)),this.style=Object.assign({},I.style,{message:Object.assign({},I.style.message),dot:Object.assign({},I.style.dot)}),this.dotText=I.dotText,this.onClick=()=>I.onClick?I.onClick(this):void 0,this.onMessageClick=()=>I.onMessageClick?I.onMessageClick(this):void 0,this.onMouseOver=()=>I.onMouseOver?I.onMouseOver(this):void 0,this.onMouseOut=()=>I.onMouseOut?I.onMouseOut(this):void 0,this.renderDot=I.renderDot,this.renderMessage=I.renderMessage,this.renderTooltip=I.renderTooltip}get message(){let I="";return this.style.message.displayHash&&(I+=`${this.hashAbbrev} `),I+=this.subject,this.style.message.displayAuthor&&(I+=` - ${this.author.name} <${this.author.email}>`),I}get branchToDisplay(){return this.branches?this.branches[0]:""}setRefs(I){return this.refs=I.getNames(this.hash),this}setTags(I,T,V){return this.tags=I.getNames(this.hash).map(z=>new fi.Tag(z,T(z),V(z),this.style)),this}setBranches(I){return this.branches=I,this}setPosition({x:I,y:T}){return this.x=I,this.y=T,this}withDefaultColor(I){const T=Object.assign({},this.style,{dot:Object.assign({},this.style.dot),message:Object.assign({},this.style.message)});T.color||(T.color=I),T.dot.color||(T.dot.color=I),T.message.color||(T.message.color=I);const V=this.cloneCommit();return V.style=T,V}cloneCommit(){const I=new ae({author:`${this.author.name} <${this.author.email}>`,subject:this.subject,style:this.style,body:this.body,hash:this.hash,parents:this.parents,dotText:this.dotText,onClick:this.onClick,onMessageClick:this.onMessageClick,onMouseOver:this.onMouseOver,onMouseOut:this.onMouseOut,renderDot:this.renderDot,renderMessage:this.renderMessage,renderTooltip:this.renderTooltip});return I.refs=this.refs,I.branches=this.branches,I.tags=this.tags,I.x=this.x,I.y=this.y,I}}M.Commit=ae});at(yr);var ln=lt(function(P,M){var J=Be&&Be.__rest||function(I,T){var V={};for(var z in I)Object.prototype.hasOwnProperty.call(I,z)&&T.indexOf(z)<0&&(V[z]=I[z]);if(null!=I&&"function"==typeof Object.getOwnPropertySymbols){var R=0;for(z=Object.getOwnPropertySymbols(I);RX.commits.find(({hash:fe})=>fe===pe);let w=R(V,V.refs.getCommit(z.name));for(;w&&w.hash!==z.parentCommitHash;)yield w,w=R(V,w.parents[0])}(this._graph,this._branch)].forEach(V=>{V.refs=V.refs.filter(z=>z!==this.name)}),this._graph.refs.delete(this.name),this._graph.branches.delete(this.name),this._branch=cn.createDeletedBranch(this._graph,this._branch.style,()=>{}),this._onGraphUpdate(),this}merge(...T){if(this._branch.isDeleted()&&!this._isReferenced())throw new Error(`Cannot merge to the deleted branch "${this.name}"`);let V=T[0];(function x(I){return"object"==typeof I&&!(I instanceof ae)})(V)||(V={branch:T[0],fastForward:!1,commitOptions:{subject:T[1]}});const{branch:z,fastForward:R,commitOptions:w}=V,X="string"==typeof z?z:z.name,pe=this._graph.refs.getCommit(X);if(!pe)throw new Error(`The branch called "${X}" is unknown`);let fe=!1;if(R){const Ne=this._graph.refs.getCommit(this._branch.name);Ne&&(fe=this._areCommitsConnected(Ne,pe))}return R&&fe?this._fastForwardTo(pe):this._commitWithParents(Object.assign({},w,{subject:w&&w.subject||`Merge branch ${X}`}),[pe]),this._onGraphUpdate(),this}tag(T){if(this._branch.isDeleted()&&!this._isReferenced())throw new Error(`Cannot tag on the deleted branch "${this.name}"`);return"string"==typeof T?this._graph.getUserApi().tag({name:T,ref:this._branch.name}):this._graph.getUserApi().tag(Object.assign({},T,{ref:this._branch.name})),this}checkout(){if(this._branch.isDeleted()&&!this._isReferenced())throw new Error(`Cannot checkout the deleted branch "${this.name}"`);const T=this._branch,V=this._graph.refs.getCommit(T.name);return this._graph.currentBranch=T,V&&this._graph.refs.set("HEAD",V),this}_commitWithParents(T,V){const z=this._graph.refs.getCommit(this._branch.name);z?V.unshift(z):this._branch.parentCommitHash&&V.unshift(this._branch.parentCommitHash);const{tag:R}=T,w=J(T,["tag"]),X=new yr.Commit(Object.assign({hash:this._graph.generateCommitHash(),author:this._branch.commitDefaultOptions.author||this._graph.author,subject:this._branch.commitDefaultOptions.subject||this._graph.commitMessage},w,{parents:V,style:this._getCommitStyle(T.style)}));z?this._graph.refs.getNames(z).forEach(fe=>this._graph.refs.set(fe,X.hash)):this._graph.refs.set(this._branch.name,X.hash),this._graph.commits.push(X),this.checkout(),R&&this.tag(R)}_areCommitsConnected(T,V){const z=this._graph.commits.find(({hash:w})=>V===w);return!(!z||0===z.parents.length)&&(!!z.parents.includes(T)||z.parents.some(w=>this._areCommitsConnected(T,w)))}_fastForwardTo(T){this._graph.refs.set(this._branch.name,T)}_getCommitStyle(T={}){return Object.assign({},Ie.withoutUndefinedKeys(this._graph.template.commit),Ie.withoutUndefinedKeys(this._branch.commitDefaultOptions.style),T,{message:Object.assign({},Ie.withoutUndefinedKeys(this._graph.template.commit.message),Ie.withoutUndefinedKeys(this._branch.commitDefaultOptions.style.message),T.message,Ie.withoutUndefinedKeys({display:this._graph.shouldDisplayCommitMessage&&void 0})),dot:Object.assign({},Ie.withoutUndefinedKeys(this._graph.template.commit.dot),Ie.withoutUndefinedKeys(this._branch.commitDefaultOptions.style.dot),T.dot)})}_isReferenced(){return this._graph.branches.has(this.name)||this._graph.refs.hasName(this.name)||this._graph.commits.reduce((T,{refs:V})=>[...T,...V],[]).includes(this.name)}}M.BranchUserApi=ae});at(ln);var cn=lt(function(P,M){Object.defineProperty(M,"__esModule",{value:!0});const J="";M.DELETED_BRANCH_NAME=J;class ae{constructor(T){this.gitgraph=T.gitgraph,this.name=T.name,this.style=T.style,this.parentCommitHash=T.parentCommitHash,this.commitDefaultOptions=T.commitDefaultOptions||{style:{}},this.onGraphUpdate=T.onGraphUpdate,this.renderLabel=T.renderLabel}getUserApi(){return new ln.BranchUserApi(this,this.gitgraph,this.onGraphUpdate)}isDeleted(){return this.name===J}}M.Branch=ae,M.createDeletedBranch=function x(I,T,V){return new ae({name:J,gitgraph:I,style:T,onGraphUpdate:V})}});at(cn);var Ur=lt(function(P,M){Object.defineProperty(M,"__esModule",{value:!0});var J=(()=>((J||(J={})).Compact="compact",J))();M.Mode=J});at(Ur);var Wt=lt(function(P,M){Object.defineProperty(M,"__esModule",{value:!0});M.RegularGraphRows=class J{constructor(I){this.rows=new Map,this.maxRowCache=void 0,this.computeRowsFromCommits(I)}getRowOf(I){return this.rows.get(I)||0}getMaxRow(){return void 0===this.maxRowCache&&(this.maxRowCache=function ae(x){const I=new Set;return x.forEach(T=>I.add(T)),Array.from(I)}(Array.from(this.rows.values())).length-1),this.maxRowCache}computeRowsFromCommits(I){I.forEach((T,V)=>{this.rows.set(T.hash,V)}),this.maxRowCache=void 0}}});at(Wt);var hi=lt(function(P,M){Object.defineProperty(M,"__esModule",{value:!0});M.CompactGraphRows=class J extends Wt.RegularGraphRows{computeRowsFromCommits(x){x.forEach((I,T)=>{let V=T;if(0!==T){const R=this.getRowOf(I.parents[0]);V=Math.max(R+1,this.getRowOf(x[T-1].hash)),I.parents.length>1&&Rthis.branches.add(V.branchToDisplay)),T&&(this.branches=new Set(Array.from(this.branches).sort(T)))}get(x){return Array.from(this.branches).findIndex(I=>I===x)}getColorOf(x){return this.colors[this.get(x)%this.colors.length]}}});at($r);var Hn=lt(function(P,M){Object.defineProperty(M,"__esModule",{value:!0});M.Refs=class J{constructor(){this.commitPerName=new Map,this.namesPerCommit=new Map}set(x,I){const T=this.commitPerName.get(x);return T&&this.removeNameFrom(T,x),this.addNameTo(I,x),this.addCommitTo(x,I),this}delete(x){return this.hasName(x)&&(this.removeNameFrom(this.getCommit(x),x),this.commitPerName.delete(x)),this}getCommit(x){return this.commitPerName.get(x)}getNames(x){return this.namesPerCommit.get(x)||[]}getAllNames(){return Array.from(this.commitPerName.keys())}hasCommit(x){return this.namesPerCommit.has(x)}hasName(x){return this.commitPerName.has(x)}removeNameFrom(x,I){const T=this.namesPerCommit.get(x)||[];this.namesPerCommit.set(x,T.filter(V=>V!==I))}addNameTo(x,I){const T=this.namesPerCommit.get(x)||[];this.namesPerCommit.set(x,[...T,I])}addCommitTo(x,I){this.commitPerName.set(x,I)}}});at(Hn);var br=lt(function(P,M){Object.defineProperty(M,"__esModule",{value:!0});M.BranchesPathsCalculator=class J{constructor(I,T,V,z,R,w){this.branchesPaths=new Map,this.commits=I,this.branches=T,this.commitSpacing=V,this.isGraphVertical=z,this.isGraphReverse=R,this.createDeletedBranch=w}execute(){return this.fromCommits(),this.withMergeCommits(),this.smoothBranchesPaths()}fromCommits(){this.commits.forEach(I=>{let T=this.branches.get(I.branchToDisplay);T||(T=this.getDeletedBranchInPath()||this.createDeletedBranch());const V=[],z=this.branchesPaths.get(T),R=this.commits.find(({hash:w})=>w===I.parents[0]);z?V.push(...z):R&&V.push({x:R.x,y:R.y}),V.push({x:I.x,y:I.y}),this.branchesPaths.set(T,V)})}withMergeCommits(){this.commits.filter(({parents:T})=>T.length>1).forEach(T=>{const V=this.commits.find(({hash:X})=>X===T.parents[1]);if(!V)return;let R=this.branches.get(V.branches?V.branches[0]:"");if(!R&&(R=this.getDeletedBranchInPath(),!R))return;const w=[...this.branchesPaths.get(R)||[]];this.branchesPaths.set(R,[...w,{x:T.x,y:T.y,mergeCommit:!0}])})}getDeletedBranchInPath(){return Array.from(this.branchesPaths.keys()).find(I=>I.isDeleted())}smoothBranchesPaths(){const I=new Map;return this.branchesPaths.forEach((T,V)=>{if(T.length<=1)return void I.set(V,[T]);T=T.sort(this.isGraphVertical?(R,w)=>R.y>w.y?-1:1:(R,w)=>R.x>w.x?1:-1),this.isGraphReverse&&(T=T.reverse());const z=T.reduce((R,w,X)=>{if(w.mergeCommit){R[R.length-1].push(Ie.pick(w,["x","y"]));let pe=X-1,fe=T[pe];for(;pe>=0&&fe.mergeCommit;)pe--,fe=T[pe];pe>=0&&R.push([fe])}else R[R.length-1].push(w);return R},[[]]);this.isGraphReverse&&z.forEach(R=>R.reverse()),z.forEach(this.isGraphVertical?R=>{if(R.length<=1)return;const w=R[0],X=R[R.length-1],pe=R[1].x,fe=Math.round(Math.abs(w.y-X.y)/this.commitSpacing)-1,Ne=fe>0?new Array(fe).fill(0).map((Rt,dt)=>({x:pe,y:R[0].y-this.commitSpacing*(dt+1)})):[],rt=I.get(V)||[];I.set(V,[...rt,[w,...Ne,X]])}:R=>{if(R.length<=1)return;const w=R[0],X=R[R.length-1],pe=R[1].y,fe=Math.round(Math.abs(w.x-X.x)/this.commitSpacing)-1,Ne=fe>0?new Array(fe).fill(0).map((Rt,dt)=>({y:pe,x:R[0].x+this.commitSpacing*(dt+1)})):[],rt=I.get(V)||[];I.set(V,[...rt,[w,...Ne,X]])})}),I}},M.toSvgPath=function ae(x,I,T){return x.map(V=>"M"+V.map(({x:z,y:R},w,X)=>{if(I&&X.length>1&&(1===w||w===X.length-1)){const pe=X[w-1];if(T){const fe=(pe.y+R)/2;return`C ${pe.x} ${fe} ${z} ${fe} ${z} ${R}`}{const fe=(pe.x+z)/2;return`C ${fe} ${pe.y} ${fe} ${R} ${z} ${R}`}}return`L ${z} ${R}`}).join(" ").slice(1)).join(" ")}});at(br);var F=lt(function(P,M){Object.defineProperty(M,"__esModule",{value:!0});M.GitgraphUserApi=class J{constructor(x,I){this._graph=x,this._onGraphUpdate=I}clear(){return this._graph.refs=new Hn.Refs,this._graph.tags=new Hn.Refs,this._graph.commits=[],this._graph.branches=new Map,this._graph.currentBranch=this._graph.createBranch("master"),this._onGraphUpdate(),this}commit(x){return this._graph.currentBranch.getUserApi().commit(x),this}branch(x){return this._graph.createBranch(x).getUserApi()}tag(...x){let I,T,V,z,R;if("string"==typeof x[0]?(I=x[0],T=x[1]):(I=x[0].name,T=x[0].ref,V=x[0].style,z=x[0].render),!T){const w=this._graph.refs.getCommit("HEAD");if(!w)return this;T=w}if(this._graph.refs.hasCommit(T)&&(R=T),this._graph.refs.hasName(T)&&(R=this._graph.refs.getCommit(T)),!R)throw new Error(`The ref "${T}" does not exist`);return this._graph.tags.set(I,R),this._graph.tagStyles[I]=V,this._graph.tagRenders[I]=z,this._onGraphUpdate(),this}import(x){const I=new Error("Only `git2json` format is supported for imported data.");if(!Array.isArray(x)||!x.every(R=>"object"==typeof R&&"object"==typeof R.author&&Array.isArray(R.refs)))throw I;const V=x.map(R=>Object.assign({},R,{style:Object.assign({},this._graph.template.commit,{message:Object.assign({},this._graph.template.commit.message,{display:this._graph.shouldDisplayCommitMessage})}),author:`${R.author.name} <${R.author.email}>`})).reverse();this.clear(),this._graph.commits=V.map(R=>new yr.Commit(R)),V.forEach(({refs:R,hash:w})=>{if(!R||!w)return;const X="tag: ";R.map(fe=>fe.split(X)).map(([fe,Ne])=>Ne).filter(fe=>"string"==typeof fe).forEach(fe=>this._graph.tags.set(fe,w)),R.filter(fe=>!fe.startsWith(X)).forEach(fe=>this._graph.refs.set(fe,w))});const z=this._getBranches();return this._graph.commits.map(R=>this._withBranches(z,R)).reduce((R,w)=>(w.branches&&w.branches.forEach(X=>R.add(X)),R),new Set).forEach(R=>this.branch(R)),this._onGraphUpdate(),this}_withBranches(x,I){let T=Array.from((x.get(I.hash)||new Set).values());return 0===T.length&&(T=[cn.DELETED_BRANCH_NAME]),I.setBranches(T)}_getBranches(){const x=new Map,I=[];return this._graph.refs.getAllNames().filter(V=>"HEAD"!==V).forEach(V=>{const z=this._graph.refs.getCommit(V);for(z&&I.push(z);I.length>0;){const R=I.pop(),w=this._graph.commits.find(({hash:pe})=>pe===R),X=x.get(R)||new Set;X.add(V),x.set(R,X),w&&w.parents&&w.parents.length>0&&I.push(w.parents[0])}}),x}}});at(F);var L=lt(function(P,M){Object.defineProperty(M,"__esModule",{value:!0});M.GitgraphCore=class J{constructor(x={}){this.refs=new Hn.Refs,this.tags=new Hn.Refs,this.tagStyles={},this.tagRenders={},this.commits=[],this.branches=new Map,this.listeners=[],this.nextTimeoutId=null,this.template=ct.getTemplate(x.template),this.currentBranch=this.createBranch("master"),this.orientation=x.orientation,this.reverseArrow=Ie.booleanOptionOr(x.reverseArrow,!1),this.initCommitOffsetX=Ie.numberOptionOr(x.initCommitOffsetX,0),this.initCommitOffsetY=Ie.numberOptionOr(x.initCommitOffsetY,0),this.mode=x.mode,this.author=x.author||"Sergio Flores ",this.commitMessage=x.commitMessage||"He doesn't like George Michael! Boooo!",this.generateCommitHash="function"==typeof x.generateCommitHash?x.generateCommitHash:()=>{},this.branchesOrderFunction="function"==typeof x.compareBranchesOrder?x.compareBranchesOrder:void 0,this.branchLabelOnEveryCommit=Ie.booleanOptionOr(x.branchLabelOnEveryCommit,!1)}get isHorizontal(){return this.orientation===qt.Orientation.Horizontal||this.orientation===qt.Orientation.HorizontalReverse}get isVertical(){return!this.isHorizontal}get isReverse(){return this.orientation===qt.Orientation.HorizontalReverse||this.orientation===qt.Orientation.VerticalReverse}get shouldDisplayCommitMessage(){return!this.isHorizontal&&this.mode!==Ur.Mode.Compact}getUserApi(){return new F.GitgraphUserApi(this,()=>this.next())}subscribe(x){this.listeners.push(x);let I=!0;return()=>{if(!I)return;I=!1;const T=this.listeners.indexOf(x);this.listeners.splice(T,1)}}getRenderedData(){const x=this.computeRenderedCommits(),I=this.computeRenderedBranchesPaths(x),T=this.computeCommitMessagesX(I);return this.computeBranchesColor(x,I),{commits:x,branchesPaths:I,commitMessagesX:T}}createBranch(x){const I="HEAD";let T={gitgraph:this,name:"",parentCommitHash:this.refs.getCommit(I),style:this.template.branch,onGraphUpdate:()=>this.next()};if("string"==typeof x)T.name=x,T.parentCommitHash=this.refs.getCommit(I);else{const R=this.refs.getCommit(x.from?x.from.name:I)||(this.refs.hasCommit(x.from)?x.from:void 0);x.style=x.style||{},T=Object.assign({},T,x,{parentCommitHash:R,style:Object.assign({},T.style,x.style,{label:Object.assign({},T.style.label,x.style.label)})})}const V=new cn.Branch(T);return this.branches.set(V.name,V),V}computeRenderedCommits(){const x=this.getBranches(),I=(()=>{const w=new Set(this.commits.reduce((fe,{hash:Ne})=>x.has(Ne)?fe:[...fe,Ne],[])),X=this.commits.reduce((fe,Ne)=>Ne.parents.length>1?[...fe,...Ne.parents.slice(1).map(rt=>this.commits.find(({hash:Rt})=>rt===Rt))]:fe,[]),pe=new Set;return X.forEach(fe=>{let Ne=fe;for(;Ne&&w.has(Ne.hash);)pe.add(Ne.hash),Ne=Ne.parents.length>0?this.commits.find(({hash:rt})=>Ne.parents[0]===rt):void 0}),pe})(),T=this.commits.filter(({hash:w})=>x.has(w)||I.has(w)),V=T.map(w=>this.withBranches(x,w)),z=ut.createGraphRows(this.mode,T),R=new $r.BranchesOrder(V,this.template.colors,this.branchesOrderFunction);return V.map(w=>w.setRefs(this.refs)).map(w=>this.withPosition(z,R,w)).map(w=>w.withDefaultColor(this.getBranchDefaultColor(R,w.branchToDisplay))).map(w=>w.setTags(this.tags,X=>Object.assign({},this.tagStyles[X],this.template.tag),X=>this.tagRenders[X]))}computeRenderedBranchesPaths(x){return new br.BranchesPathsCalculator(x,this.branches,this.template.commit.spacing,this.isVertical,this.isReverse,()=>cn.createDeletedBranch(this,this.template.branch,()=>this.next())).execute()}computeBranchesColor(x,I){const T=new $r.BranchesOrder(x,this.template.colors,this.branchesOrderFunction);Array.from(I).forEach(([V])=>{V.computedColor=V.style.color||this.getBranchDefaultColor(T,V.name)})}computeCommitMessagesX(x){return Array.from(x).length*this.template.branch.spacing}withBranches(x,I){let T=Array.from((x.get(I.hash)||new Set).values());return 0===T.length&&(T=[cn.DELETED_BRANCH_NAME]),I.setBranches(T)}getBranches(){const x=new Map,I=[];return this.refs.getAllNames().filter(V=>"HEAD"!==V).forEach(V=>{const z=this.refs.getCommit(V);for(z&&I.push(z);I.length>0;){const R=I.pop(),w=this.commits.find(({hash:pe})=>pe===R),X=x.get(R)||new Set;X.add(V),x.set(R,X),w&&w.parents&&w.parents.length>0&&I.push(w.parents[0])}}),x}withPosition(x,I,T){const V=x.getRowOf(T.hash),z=x.getMaxRow(),R=I.get(T.branchToDisplay);switch(this.orientation){default:return T.setPosition({x:this.initCommitOffsetX+this.template.branch.spacing*R,y:this.initCommitOffsetY+this.template.commit.spacing*(z-V)});case qt.Orientation.VerticalReverse:return T.setPosition({x:this.initCommitOffsetX+this.template.branch.spacing*R,y:this.initCommitOffsetY+this.template.commit.spacing*V});case qt.Orientation.Horizontal:return T.setPosition({x:this.initCommitOffsetX+this.template.commit.spacing*V,y:this.initCommitOffsetY+this.template.branch.spacing*R});case qt.Orientation.HorizontalReverse:return T.setPosition({x:this.initCommitOffsetX+this.template.commit.spacing*(z-V),y:this.initCommitOffsetY+this.template.branch.spacing*R})}}getBranchDefaultColor(x,I){return x.getColorOf(I)}next(){this.nextTimeoutId&&window.clearTimeout(this.nextTimeoutId),this.nextTimeoutId=window.setTimeout(()=>{this.listeners.forEach(x=>x(this.getRenderedData()))},0)}}});at(L);var W=lt(function(P,M){Object.defineProperty(M,"__esModule",{value:!0}),M.GitgraphCore=L.GitgraphCore,M.Mode=Ur.Mode,M.GitgraphUserApi=F.GitgraphUserApi,M.BranchUserApi=ln.BranchUserApi,M.Branch=cn.Branch,M.Commit=yr.Commit,M.Tag=fi.Tag,M.Refs=Hn.Refs,M.MergeStyle=ct.MergeStyle,M.TemplateName=ct.TemplateName,M.templateExtend=ct.templateExtend,M.Orientation=qt.Orientation,M.toSvgPath=br.toSvgPath,M.arrowSvgPath=Ie.arrowSvgPath});at(W);var le=W.GitgraphCore,mt=W.Mode,bn=W.MergeStyle,un=W.TemplateName,Hi=W.templateExtend,_t=W.Orientation,gi=W.toSvgPath,Os=W.arrowSvgPath,kn="http://www.w3.org/2000/svg";function Kt(P){var M=document.createElementNS(kn,"g");return P.children.forEach(function(J){return J&&M.appendChild(J)}),P.translate&&M.setAttribute("transform","translate("+P.translate.x+", "+P.translate.y+")"),P.fill&&M.setAttribute("fill",P.fill),P.stroke&&M.setAttribute("stroke",P.stroke),P.strokeWidth&&M.setAttribute("stroke-width",P.strokeWidth.toString()),P.onClick&&M.addEventListener("click",P.onClick),P.onMouseOver&&M.addEventListener("mouseover",P.onMouseOver),P.onMouseOut&&M.addEventListener("mouseout",P.onMouseOut),M}function vo(P){var M=document.createElementNS(kn,"text");return M.setAttribute("alignment-baseline","central"),M.setAttribute("dominant-baseline","central"),M.textContent=P.content,P.fill&&M.setAttribute("fill",P.fill),P.font&&M.setAttribute("style","font: "+P.font),P.anchor&&M.setAttribute("text-anchor",P.anchor),P.translate&&(M.setAttribute("x",P.translate.x.toString()),M.setAttribute("y",P.translate.y.toString())),P.onClick&&M.addEventListener("click",P.onClick),M}function Gi(P){var M=document.createElementNS(kn,"path");return M.setAttribute("d",P.d),P.fill&&M.setAttribute("fill",P.fill),P.stroke&&M.setAttribute("stroke",P.stroke),P.strokeWidth&&M.setAttribute("stroke-width",P.strokeWidth.toString()),P.translate&&M.setAttribute("transform","translate("+P.translate.x+", "+P.translate.y+")"),M}function Ns(P){var M=document.createElementNS(kn,"use");return M.setAttribute("href","#"+P),M.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href","#"+P),M}function Sl(P){var M=document.createElementNS(kn,"defs");return P.forEach(function(J){return M.appendChild(J)}),M}var mi=10,Ps=5;function Tl(P,M){var J=function Dl(P){var M=document.createElementNS(kn,"rect");return M.setAttribute("width",P.width.toString()),M.setAttribute("height",P.height.toString()),P.borderRadius&&M.setAttribute("rx",P.borderRadius.toString()),P.fill&&M.setAttribute("fill",P.fill||"none"),P.stroke&&M.setAttribute("stroke",P.stroke),M}({width:0,height:0,borderRadius:P.style.label.borderRadius,stroke:P.style.label.strokeColor||M.style.color,fill:P.style.label.bgColor}),ae=vo({content:P.name,translate:{x:mi,y:0},font:P.style.label.font,fill:P.style.label.color||M.style.color}),x=Kt({children:[J]});return new MutationObserver(function(){var T=ae.getBBox(),w=T.height+2*Ps;J.setAttribute("width",(T.width+2*mi).toString()),J.setAttribute("height",w.toString()),ae.setAttribute("y",(w/2).toString())}).observe(x,{attributes:!1,subtree:!1,childList:!0}),x.appendChild(ae),x}var yo=10,Cn=5;var zi=10,Gn=10;function Ml(P){var M=0;if(P){var J=P.getBoundingClientRect().height,ae=window.getComputedStyle(P).marginTop||"0px";M=J+parseInt(ae.replace("px",""),10)}return M}yn.MergeStyle=bn,yn.Mode=mt,yn.Orientation=_t,yn.TemplateName=un,yn.createGitgraph=function Il(P,M){var I,T,J={},ae={},x=!1,V=0,z=null,R=function wl(P){var M=document.createElementNS(kn,"svg");return P&&(P.children&&P.children.forEach(function(J){return M.appendChild(J)}),P.viewBox&&M.setAttribute("viewBox",P.viewBox),P.height&&M.setAttribute("height",P.height.toString()),P.width&&M.setAttribute("width",P.width.toString())),M}();(function pe(Y){new MutationObserver(function(){x?(x=!1,function ze(){var Z=Array.from(T.children),pt=0,Ot=w.orientation===_t.VerticalReverse?Z:Z.reverse();ae=Ot.reduce(function(zn,qn){var q=parseInt(qn.getAttribute("transform").split(",")[1].slice(0,-1),10),Jt=qn.getElementsByTagName("foreignObject")[0],me=Jt&&Jt.firstElementChild;return zn[q]=q+pt,pt+=Ml(me),zn},{})}(),X(I)):(function Le(){w.isHorizontal||Object.keys(J).forEach(function(pt){var Ot=J[pt],zn=Ot.branchLabel,qn=Ot.tags,q=Ot.message,Jt=V;if(zn){fe(zn,Jt);var me=zn.getBBox().width+2*mi;Jt+=me+10}qn.forEach(function(je){fe(je,Jt);var Xu=parseFloat(je.getAttribute("data-offset")||"0"),cg=je.getBBox().width+2*yo+Xu;Jt+=cg+10}),q&&fe(q,Jt)})}(),function ge(Z){var pt=R.getBBox(),Ot=pt.height,zn=pt.width,Jt=w.isHorizontal?50:mi+zi,me=w.isHorizontal?50:Ps+zi+20;Z?(R.setAttribute("preserveAspectRatio","xMinYMin meet"),R.setAttribute("viewBox","0 0 "+(zn+Jt)+" "+(Ot+me))):(R.setAttribute("width",(zn+Jt).toString()),R.setAttribute("height",(Ot+me).toString()))}(Y))}).observe(R,{attributes:!1,subtree:!0,childList:!0})})(Boolean(M&&M.responsive)),P.appendChild(R),M&&M.responsive&&P.setAttribute("style","display:inline-block; position: relative; width:100%; padding-bottom:100%; vertical-align:middle; overflow:hidden;");var w=new le(M);return w.subscribe(function(Y){x=!0,X(Y)}),w.getUserApi();function X(Y){J={};var ze=Y.branchesPaths;V=Y.commitMessagesX,I=Y,T=function rt(Y){return Kt({children:Y.map(ne)});function ne(Le){var ge=ot(Le),Z=ge.x;return Kt({translate:{x:Z,y:ge.y},children:[Vs(Le)].concat(ze(Le),[Kt({translate:{x:-Z,y:0},children:[Rt(Le)].concat(Ls(Le),bo(Le))})])})}function ze(Le){if(!w.template.arrow.size)return[null];var ge=Le.style.dot.size;return Le.parents.map(function(Z){var pt=Y.find(function(qn){return qn.hash===Z});return pt?Kt({translate:w.reverseArrow?{x:ge+(pt.x-Le.x),y:ge+(pt.y-Le.y)}:{x:ge,y:ge},children:[Gi({d:Os(w,pt,Le),fill:w.template.arrow.color||""})]}):null})}}(Y.commits),R.innerHTML="",R.appendChild(Kt({translate:{x:mi,y:zi},children:[Ne(ze),T]}))}function fe(Y,ne){var ze=Y.getAttribute("transform")||"translate(0, 0)";Y.setAttribute("transform",ze.replace(/translate\(([\d\.]+),/,"translate("+ne+","))}function Ne(Y){var ne=w.template.commit.dot.size,ze=w.template.branch.mergeStyle===bn.Bezier;return Kt({children:Array.from(Y).map(function(ge){var Z=ge[0];return Gi({d:gi(ge[1].map(function(Ot){return Ot.map(ot)}),ze,w.isVertical),fill:"none",stroke:Z.computedColor||"",strokeWidth:Z.style.lineWidth,translate:{x:ne,y:ne}})})})}function Rt(Y){if(!Y.style.message.display)return null;var ne;if(Y.renderMessage)return dt(ne=Kt({children:[]})),ne.appendChild(Y.renderMessage(Y)),_i(Y,ne),ne;var ze=vo({content:Y.message,fill:Y.style.message.color||"",font:Y.style.message.font,onClick:Y.onMessageClick});if(ne=Kt({translate:{x:0,y:Y.style.dot.size},children:[ze]}),Y.body){var Le=function Yu(P){var M=document.createElementNS(kn,"foreignObject");M.setAttribute("width",P.width.toString()),P.translate&&(M.setAttribute("x",P.translate.x.toString()),M.setAttribute("y",P.translate.y.toString()));var J=document.createElement("p");return J.textContent=P.content,M.appendChild(J),M}({width:600,translate:{x:10,y:0},content:Y.body});dt(ne),ne.appendChild(Le)}return _i(Y,ne),ne}function dt(Y){function ze(Le){if("foreignObject"===Le.nodeName){var ge=Le.firstChild&&Le.firstChild.parentElement;if(!ge)return;ge.setAttribute("height",Ml(ge.firstElementChild).toString())}Le.childNodes.forEach(ze)}new MutationObserver(function(Le){Le.forEach(function(ge){return ze(ge.target)})}).observe(Y,{attributes:!1,subtree:!1,childList:!0})}function Ls(Y){return Array.from(w.branches.values()).map(function(ze){if(!ze.style.label.display)return null;if(!w.branchLabelOnEveryCommit){var Le=w.refs.getCommit(ze.name);if(Y.hash!==Le)return null}if(Y.branchToDisplay!==ze.name)return null;var Z,ge=ze.renderLabel?ze.renderLabel(ze):Tl(ze,Y);return Z=Kt(w.isVertical?{children:[ge]}:{translate:{x:Y.x,y:2*Y.style.dot.size+10},children:[ge]}),function js(Y,ne){J[Y.hashAbbrev]||Ye(Y),J[Y.hashAbbrev].branchLabel=ne}(Y,Z),Z})}function bo(Y){return Y.tags?w.isHorizontal?[]:Y.tags.map(function(ne){var ze=ne.render?ne.render(ne.name,ne.style):function Ku(P){var M=Gi({d:"",fill:P.style.bgColor,stroke:P.style.strokeColor}),J=vo({content:P.name,fill:P.style.color,font:P.style.font,translate:{x:0,y:0}}),ae=Kt({children:[M]}),x=P.style.pointerWidth;return new MutationObserver(function(){var T=J.getBBox(),V=T.height,z=T.width;if(0!==V&&0!==z){var R=P.style.borderRadius,w=x+z+2*yo,X=V+2*Cn,pe=["M 0,0","L "+x+","+X/2,"V "+X/2,"Q "+x+","+X/2+" "+(x+R)+","+X/2,"H "+(w-R),"Q "+w+","+X/2+" "+w+","+(X/2-R),"V -"+(X/2-R),"Q "+w+",-"+X/2+" "+(w-R)+",-"+X/2,"H "+(x+R),"Q "+x+",-"+X/2+" "+x+",-"+X/2,"V -"+X/2,"z"].join(" ");M.setAttribute("d",pe.toString()),J.setAttribute("x",(x+yo).toString())}}).observe(ae,{attributes:!1,subtree:!1,childList:!0}),ae.appendChild(J),ae}(ne),Le=Kt({translate:{x:0,y:Y.style.dot.size},children:[ze]});return Le.setAttribute("data-offset",ne.style.pointerWidth.toString()),function vi(Y,ne){J[Y.hashAbbrev]||Ye(Y),J[Y.hashAbbrev].tags.push(ne)}(Y,Le),Le}):[]}function Vs(Y){if(Y.renderDot)return Y.renderDot(Y);var ne=Y.hash,ze=function lg(P){var M=document.createElementNS(kn,"circle");return M.setAttribute("cx",P.radius.toString()),M.setAttribute("cy",P.radius.toString()),M.setAttribute("r",P.radius.toString()),P.id&&M.setAttribute("id",P.id),P.fill&&M.setAttribute("fill",P.fill),M}({id:ne,radius:Y.style.dot.size,fill:Y.style.dot.color||""}),Le="clip-"+Y.hash,ge=function El(){return document.createElementNS(kn,"clipPath")}();ge.setAttribute("id",Le),ge.appendChild(Ns(ne));var Z=Ns(ne);Z.setAttribute("clip-path","url(#"+Le+")"),Z.setAttribute("stroke",Y.style.dot.strokeColor||""),Z.setAttribute("stroke-width",(Y.style.dot.strokeWidth?2*Y.style.dot.strokeWidth:0).toString());var Ot=Y.dotText?vo({content:Y.dotText,font:Y.style.dot.font,anchor:"middle",translate:{x:Y.style.dot.size,y:Y.style.dot.size}}):null;return Kt({onClick:Y.onClick,onMouseOver:function(){(function Bs(Y){if(R.firstChild&&(!w.isVertical||w.mode===mt.Compact)&&(!w.isVertical||Y.style.hasTooltipInCompactMode)){var ne=Y.renderTooltip?Y.renderTooltip(Y):function Qu(P){var M=Gi({d:"",fill:"#EEE"}),J=vo({translate:{x:Gn+zi,y:0},content:P.hashAbbrev+" - "+P.subject,fill:"#333"}),ae=2*P.style.dot.size,x=Kt({translate:{x:ae,y:ae/2},children:[M]});return new MutationObserver(function(){var T=J.getBBox().width,R=Gn+T+2*zi,w=["M 0,0","L "+Gn+","+Gn,"V 20","Q "+Gn+",25 "+(Gn+5)+",25","H "+(R-5),"Q "+R+",25 "+R+",20","V -20","Q "+R+",-25 "+(R-5)+",-25","H "+(Gn+5),"Q "+Gn+",-25 "+Gn+",-20","V -"+Gn,"z"].join(" ");M.setAttribute("d",w.toString())}).observe(x,{attributes:!1,subtree:!1,childList:!0}),x.appendChild(J),x}(Y);z=Kt({translate:ot(Y),children:[ne]}),R.firstChild.appendChild(z)}})(Y),Y.onMouseOver()},onMouseOut:function(){z&&z.remove(),Y.onMouseOut()},children:[Sl([ze,ge]),Z,Ot]})}function ot(Y){var ze=Y.y;return{x:Y.x,y:ae[ze]||ze}}function _i(Y,ne){J[Y.hashAbbrev]||Ye(Y),J[Y.hashAbbrev].message=ne}function Ye(Y){J[Y.hashAbbrev]={branchLabel:null,tags:[],message:null}}},yn.templateExtend=Hi,Object.defineProperty(yn,"__esModule",{value:!0})}(Bi)},34:(ci,Bi,yn)=>{"use strict";function Be(e){return"function"==typeof e}function $n(e){const t=e(r=>{Error.call(r),r.stack=(new Error).stack});return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}const at=$n(e=>function(t){e(this),this.message=t?`${t.length} errors occurred during unsubscription:\n${t.map((r,i)=>`${i+1}) ${r.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=t});function lt(e,n){if(e){const t=e.indexOf(n);0<=t&&e.splice(t,1)}}class Ct{constructor(n){this.initialTeardown=n,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let n;if(!this.closed){this.closed=!0;const{_parentage:t}=this;if(t)if(this._parentage=null,Array.isArray(t))for(const o of t)o.remove(this);else t.remove(this);const{initialTeardown:r}=this;if(Be(r))try{r()}catch(o){n=o instanceof at?o.errors:[o]}const{_finalizers:i}=this;if(i){this._finalizers=null;for(const o of i)try{ml(o)}catch(s){n=n??[],s instanceof at?n=[...n,...s.errors]:n.push(s)}}if(n)throw new at(n)}}add(n){var t;if(n&&n!==this)if(this.closed)ml(n);else{if(n instanceof Ct){if(n.closed||n._hasParent(this))return;n._addParent(this)}(this._finalizers=null!==(t=this._finalizers)&&void 0!==t?t:[]).push(n)}}_hasParent(n){const{_parentage:t}=this;return t===n||Array.isArray(t)&&t.includes(n)}_addParent(n){const{_parentage:t}=this;this._parentage=Array.isArray(t)?(t.push(n),t):t?[t,n]:n}_removeParent(n){const{_parentage:t}=this;t===n?this._parentage=null:Array.isArray(t)&<(t,n)}remove(n){const{_finalizers:t}=this;t&<(t,n),n instanceof Ct&&n._removeParent(this)}}Ct.EMPTY=(()=>{const e=new Ct;return e.closed=!0,e})();const gl=Ct.EMPTY;function qt(e){return e instanceof Ct||e&&"closed"in e&&Be(e.remove)&&Be(e.add)&&Be(e.unsubscribe)}function ml(e){Be(e)?e():e.unsubscribe()}const Ie={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},ji={setTimeout(e,n,...t){const{delegate:r}=ji;return r?.setTimeout?r.setTimeout(e,n,...t):setTimeout(e,n,...t)},clearTimeout(e){const{delegate:n}=ji;return(n?.clearTimeout||clearTimeout)(e)},delegate:void 0};function Ss(e){ji.setTimeout(()=>{const{onUnhandledError:n}=Ie;if(!n)throw e;n(e)})}function Ts(){}const _l=po("C",void 0,void 0);function po(e,n,t){return{kind:e,value:n,error:t}}let ct=null;function di(e){if(Ie.useDeprecatedSynchronousErrorHandling){const n=!ct;if(n&&(ct={errorThrown:!1,error:null}),e(),n){const{errorThrown:t,error:r}=ct;if(ct=null,t)throw r}}else e()}class Ui extends Ct{constructor(n){super(),this.isStopped=!1,n?(this.destination=n,qt(n)&&n.add(this)):this.destination=yr}static create(n,t,r){return new Br(n,t,r)}next(n){this.isStopped?go(function ui(e){return po("N",e,void 0)}(n),this):this._next(n)}error(n){this.isStopped?go(function vl(e){return po("E",void 0,e)}(n),this):(this.isStopped=!0,this._error(n))}complete(){this.isStopped?go(_l,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(n){this.destination.next(n)}_error(n){try{this.destination.error(n)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const Ms=Function.prototype.bind;function xn(e,n){return Ms.call(e,n)}class As{constructor(n){this.partialObserver=n}next(n){const{partialObserver:t}=this;if(t.next)try{t.next(n)}catch(r){jr(r)}}error(n){const{partialObserver:t}=this;if(t.error)try{t.error(n)}catch(r){jr(r)}else jr(n)}complete(){const{partialObserver:n}=this;if(n.complete)try{n.complete()}catch(t){jr(t)}}}class Br extends Ui{constructor(n,t,r){let i;if(super(),Be(n)||!n)i={next:n??void 0,error:t??void 0,complete:r??void 0};else{let o;this&&Ie.useDeprecatedNextContext?(o=Object.create(n),o.unsubscribe=()=>this.unsubscribe(),i={next:n.next&&xn(n.next,o),error:n.error&&xn(n.error,o),complete:n.complete&&xn(n.complete,o)}):i=n}this.destination=new As(i)}}function jr(e){Ie.useDeprecatedSynchronousErrorHandling?function Is(e){Ie.useDeprecatedSynchronousErrorHandling&&ct&&(ct.errorThrown=!0,ct.error=e)}(e):Ss(e)}function go(e,n){const{onStoppedNotification:t}=Ie;t&&ji.setTimeout(()=>t(e,n))}const yr={closed:!0,next:Ts,error:function fi(e){throw e},complete:Ts},mo="function"==typeof Symbol&&Symbol.observable||"@@observable";function ln(e){return e}function cn(e){return 0===e.length?ln:1===e.length?e[0]:function(t){return e.reduce((r,i)=>i(r),t)}}let qe=(()=>{class e{constructor(t){t&&(this._subscribe=t)}lift(t){const r=new e;return r.source=this,r.operator=t,r}subscribe(t,r,i){const o=function Ur(e){return e&&e instanceof Ui||function ks(e){return e&&Be(e.next)&&Be(e.error)&&Be(e.complete)}(e)&&qt(e)}(t)?t:new Br(t,r,i);return di(()=>{const{operator:s,source:a}=this;o.add(s?s.call(o,a):a?this._subscribe(o):this._trySubscribe(o))}),o}_trySubscribe(t){try{return this._subscribe(t)}catch(r){t.error(r)}}forEach(t,r){return new(r=xs(r))((i,o)=>{const s=new Br({next:a=>{try{t(a)}catch(l){o(l),s.unsubscribe()}},error:o,complete:i});this.subscribe(s)})}_subscribe(t){var r;return null===(r=this.source)||void 0===r?void 0:r.subscribe(t)}[mo](){return this}pipe(...t){return cn(t)(this)}toPromise(t){return new(t=xs(t))((r,i)=>{let o;this.subscribe(s=>o=s,s=>i(s),()=>r(o))})}}return e.create=n=>new e(n),e})();function xs(e){var n;return null!==(n=e??Ie.Promise)&&void 0!==n?n:Promise}const Fs=$n(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});let Wt=(()=>{class e extends qe{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(t){const r=new bl(this,this);return r.operator=t,r}_throwIfClosed(){if(this.closed)throw new Fs}next(t){di(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const r of this.currentObservers)r.next(t)}})}error(t){di(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=t;const{observers:r}=this;for(;r.length;)r.shift().error(t)}})}complete(){di(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:t}=this;for(;t.length;)t.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var t;return(null===(t=this.observers)||void 0===t?void 0:t.length)>0}_trySubscribe(t){return this._throwIfClosed(),super._trySubscribe(t)}_subscribe(t){return this._throwIfClosed(),this._checkFinalizedStatuses(t),this._innerSubscribe(t)}_innerSubscribe(t){const{hasError:r,isStopped:i,observers:o}=this;return r||i?gl:(this.currentObservers=null,o.push(t),new Ct(()=>{this.currentObservers=null,lt(o,t)}))}_checkFinalizedStatuses(t){const{hasError:r,thrownError:i,isStopped:o}=this;r?t.error(i):o&&t.complete()}asObservable(){const t=new qe;return t.source=this,t}}return e.create=(n,t)=>new bl(n,t),e})();class bl extends Wt{constructor(n,t){super(),this.destination=n,this.source=t}next(n){var t,r;null===(r=null===(t=this.destination)||void 0===t?void 0:t.next)||void 0===r||r.call(t,n)}error(n){var t,r;null===(r=null===(t=this.destination)||void 0===t?void 0:t.error)||void 0===r||r.call(t,n)}complete(){var n,t;null===(t=null===(n=this.destination)||void 0===n?void 0:n.complete)||void 0===t||t.call(n)}_subscribe(n){var t,r;return null!==(r=null===(t=this.source)||void 0===t?void 0:t.subscribe(n))&&void 0!==r?r:gl}}function hi(e){return Be(e?.lift)}function St(e){return n=>{if(hi(n))return n.lift(function(t){try{return e(t,this)}catch(r){this.error(r)}});throw new TypeError("Unable to lift unknown Observable type")}}function ut(e,n,t,r,i){return new Rs(e,n,t,r,i)}class Rs extends Ui{constructor(n,t,r,i,o,s){super(n),this.onFinalize=o,this.shouldUnsubscribe=s,this._next=t?function(a){try{t(a)}catch(l){n.error(l)}}:super._next,this._error=i?function(a){try{i(a)}catch(l){n.error(l)}finally{this.unsubscribe()}}:super._error,this._complete=r?function(){try{r()}catch(a){n.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var n;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:t}=this;super.unsubscribe(),!t&&(null===(n=this.onFinalize)||void 0===n||n.call(this))}}}function we(e,n){return St((t,r)=>{let i=0;t.subscribe(ut(r,o=>{r.next(e.call(n,o,i++))}))})}function bn(e){return this instanceof bn?(this.v=e,this):new bn(e)}function _t(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=function We(e){var n="function"==typeof Symbol&&Symbol.iterator,t=n&&e[n],r=0;if(t)return t.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")}(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(o){t[o]=e[o]&&function(s){return new Promise(function(a,l){!function i(o,s,a,l){Promise.resolve(l).then(function(c){o({value:c,done:a})},s)}(a,l,(s=e[o](s)).done,s.value)})}}}const Dl=e=>e&&"number"==typeof e.length&&"function"!=typeof e;function Gi(e){return Be(e?.then)}function Ns(e){return Be(e[mo])}function El(e){return Symbol.asyncIterator&&Be(e?.[Symbol.asyncIterator])}function Sl(e){return new TypeError(`You provided ${null!==e&&"object"==typeof e?"an invalid object":`'${e}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}const mi=function Yu(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}();function Ps(e){return Be(e?.[mi])}function Tl(e){return function un(e,n,t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i,r=t.apply(e,n||[]),o=[];return i={},s("next"),s("throw"),s("return"),i[Symbol.asyncIterator]=function(){return this},i;function s(m){r[m]&&(i[m]=function(_){return new Promise(function(E,N){o.push([m,_,E,N])>1||a(m,_)})})}function a(m,_){try{!function l(m){m.value instanceof bn?Promise.resolve(m.value.v).then(c,u):p(o[0][2],m)}(r[m](_))}catch(E){p(o[0][3],E)}}function c(m){a("next",m)}function u(m){a("throw",m)}function p(m,_){m(_),o.shift(),o.length&&a(o[0][0],o[0][1])}}(this,arguments,function*(){const t=e.getReader();try{for(;;){const{value:r,done:i}=yield bn(t.read());if(i)return yield bn(void 0);yield yield bn(r)}}finally{t.releaseLock()}})}function yo(e){return Be(e?.getReader)}function Cn(e){if(e instanceof qe)return e;if(null!=e){if(Ns(e))return function Ku(e){return new qe(n=>{const t=e[mo]();if(Be(t.subscribe))return t.subscribe(n);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(e);if(Dl(e))return function zi(e){return new qe(n=>{for(let t=0;t{e.then(t=>{n.closed||(n.next(t),n.complete())},t=>n.error(t)).then(null,Ss)})}(e);if(El(e))return Il(e);if(Ps(e))return function Qu(e){return new qe(n=>{for(const t of e)if(n.next(t),n.closed)return;n.complete()})}(e);if(yo(e))return function Ml(e){return Il(Tl(e))}(e)}throw Sl(e)}function Il(e){return new qe(n=>{(function P(e,n){var t,r,i,o;return function W(e,n,t,r){return new(t||(t=Promise))(function(o,s){function a(u){try{c(r.next(u))}catch(p){s(p)}}function l(u){try{c(r.throw(u))}catch(p){s(p)}}function c(u){u.done?o(u.value):function i(o){return o instanceof t?o:new t(function(s){s(o)})}(u.value).then(a,l)}c((r=r.apply(e,n||[])).next())})}(this,void 0,void 0,function*(){try{for(t=_t(e);!(r=yield t.next()).done;)if(n.next(r.value),n.closed)return}catch(s){i={error:s}}finally{try{r&&!r.done&&(o=t.return)&&(yield o.call(t))}finally{if(i)throw i.error}}n.complete()})})(e,n).catch(t=>n.error(t))})}function M(e,n,t,r=0,i=!1){const o=n.schedule(function(){t(),i?e.add(this.schedule(null,r)):this.unsubscribe()},r);if(e.add(o),!i)return o}function ae(e,n,t=1/0){return Be(n)?ae((r,i)=>we((o,s)=>n(r,o,i,s))(Cn(e(r,i))),t):("number"==typeof n&&(t=n),St((r,i)=>function J(e,n,t,r,i,o,s,a){const l=[];let c=0,u=0,p=!1;const m=()=>{p&&!l.length&&!c&&n.complete()},_=N=>c{o&&n.next(N),c++;let B=!1;Cn(t(N,u++)).subscribe(ut(n,U=>{i?.(U),o?_(U):n.next(U)},()=>{B=!0},void 0,()=>{if(B)try{for(c--;l.length&&cE(U)):E(U)}m()}catch(U){n.error(U)}}))};return e.subscribe(ut(n,_,()=>{p=!0,m()})),()=>{a?.()}}(r,i,e,t)))}function x(e=1/0){return ae(ln,e)}const I=new qe(e=>e.complete());function z(e){return e&&Be(e.schedule)}function R(e){return e[e.length-1]}function w(e){return Be(R(e))?e.pop():void 0}function X(e){return z(R(e))?e.pop():void 0}function fe(e,n=0){return St((t,r)=>{t.subscribe(ut(r,i=>M(r,e,()=>r.next(i),n),()=>M(r,e,()=>r.complete(),n),i=>M(r,e,()=>r.error(i),n)))})}function Ne(e,n=0){return St((t,r)=>{r.add(e.schedule(()=>t.subscribe(r),n))})}function bo(e,n){if(!e)throw new Error("Iterable cannot be null");return new qe(t=>{M(t,n,()=>{const r=e[Symbol.asyncIterator]();M(t,n,()=>{r.next().then(i=>{i.done?t.complete():t.next(i.value)})},0,!0)})})}function ot(e,n){return n?function Bs(e,n){if(null!=e){if(Ns(e))return function rt(e,n){return Cn(e).pipe(Ne(n),fe(n))}(e,n);if(Dl(e))return function dt(e,n){return new qe(t=>{let r=0;return n.schedule(function(){r===e.length?t.complete():(t.next(e[r++]),t.closed||this.schedule())})})}(e,n);if(Gi(e))return function Rt(e,n){return Cn(e).pipe(Ne(n),fe(n))}(e,n);if(El(e))return bo(e,n);if(Ps(e))return function Ls(e,n){return new qe(t=>{let r;return M(t,n,()=>{r=e[mi](),M(t,n,()=>{let i,o;try{({value:i,done:o}=r.next())}catch(s){return void t.error(s)}o?t.complete():t.next(i)},0,!0)}),()=>Be(r?.return)&&r.return()})}(e,n);if(yo(e))return function Vs(e,n){return bo(Tl(e),n)}(e,n)}throw Sl(e)}(e,n):Cn(e)}function _i(e={}){const{connector:n=(()=>new Wt),resetOnError:t=!0,resetOnComplete:r=!0,resetOnRefCountZero:i=!0}=e;return o=>{let s,a,l,c=0,u=!1,p=!1;const m=()=>{a?.unsubscribe(),a=void 0},_=()=>{m(),s=l=void 0,u=p=!1},E=()=>{const N=s;_(),N?.unsubscribe()};return St((N,B)=>{c++,!p&&!u&&m();const U=l=l??n();B.add(()=>{c--,0===c&&!p&&!u&&(a=vi(E,i))}),U.subscribe(B),!s&&c>0&&(s=new Br({next:ie=>U.next(ie),error:ie=>{p=!0,m(),a=vi(_,t,ie),U.error(ie)},complete:()=>{u=!0,m(),a=vi(_,r),U.complete()}}),Cn(N).subscribe(s))})(o)}}function vi(e,n,...t){if(!0===n)return void e();if(!1===n)return;const r=new Br({next:()=>{r.unsubscribe(),e()}});return Cn(n(...t)).subscribe(r)}function Ye(e){for(let n in e)if(e[n]===Ye)return n;throw Error("Could not find renamed property on target object.")}function Y(e,n){for(const t in n)n.hasOwnProperty(t)&&!e.hasOwnProperty(t)&&(e[t]=n[t])}function ne(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(ne).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return`${e.overriddenName}`;if(e.name)return`${e.name}`;const n=e.toString();if(null==n)return""+n;const t=n.indexOf("\n");return-1===t?n:n.substring(0,t)}function ze(e,n){return null==e||""===e?null===n?"":n:null==n||""===n?e:e+" "+n}const Le=Ye({__forward_ref__:Ye});function ge(e){return e.__forward_ref__=ge,e.toString=function(){return ne(this())},e}function Z(e){return pt(e)?e():e}function pt(e){return"function"==typeof e&&e.hasOwnProperty(Le)&&e.__forward_ref__===ge}function Ot(e){return e&&!!e.\u0275providers}const qn="https://g.co/ng/security#xss";class q extends Error{constructor(n,t){super(Jt(n,t)),this.code=n}}function Jt(e,n){return`NG0${Math.abs(e)}${n?": "+n.trim():""}`}function me(e){return"string"==typeof e?e:null==e?"":String(e)}function Al(e,n){throw new q(-201,!1)}function Wn(e,n){null==e&&function Ze(e,n,t,r){throw new Error(`ASSERTION ERROR: ${e}`+(null==r?"":` [Expected=> ${t} ${r} ${n} <=Actual]`))}(n,e,null,"!=")}function ee(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function Rn(e){return{providers:e.providers||[],imports:e.imports||[]}}function xl(e){return ug(e,kl)||ug(e,fg)}function ug(e,n){return e.hasOwnProperty(n)?e[n]:null}function dg(e){return e&&(e.hasOwnProperty(Zu)||e.hasOwnProperty(HD))?e[Zu]:null}const kl=Ye({\u0275prov:Ye}),Zu=Ye({\u0275inj:Ye}),fg=Ye({ngInjectableDef:Ye}),HD=Ye({ngInjectorDef:Ye});var ye=(()=>((ye=ye||{})[ye.Default=0]="Default",ye[ye.Host=1]="Host",ye[ye.Self=2]="Self",ye[ye.SkipSelf=4]="SkipSelf",ye[ye.Optional=8]="Optional",ye))();let Ju;function Yn(e){const n=Ju;return Ju=e,n}function hg(e,n,t){const r=xl(e);return r&&"root"==r.providedIn?void 0===r.value?r.value=r.factory():r.value:t&ye.Optional?null:void 0!==n?n:void Al(ne(e))}const ft=(()=>typeof globalThis<"u"&&globalThis||typeof global<"u"&&global||typeof window<"u"&&window||typeof self<"u"&&typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&self)(),Us={},ed="__NG_DI_FLAG__",Fl="ngTempTokenPath",zD="ngTokenPath",qD=/\n/gm,WD="\u0275",pg="__source";let $s;function Co(e){const n=$s;return $s=e,n}function YD(e,n=ye.Default){if(void 0===$s)throw new q(-203,!1);return null===$s?hg(e,void 0,n):$s.get(e,n&ye.Optional?null:void 0,n)}function te(e,n=ye.Default){return(function GD(){return Ju}()||YD)(Z(e),n)}function Fe(e,n=ye.Default){return te(e,Rl(n))}function Rl(e){return typeof e>"u"||"number"==typeof e?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function td(e){const n=[];for(let t=0;t((Cr=Cr||{})[Cr.OnPush=0]="OnPush",Cr[Cr.Default=1]="Default",Cr))(),wr=(()=>{return(e=wr||(wr={}))[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",wr;var e})();const Gr={},Ke=[],Ol=Ye({\u0275cmp:Ye}),nd=Ye({\u0275dir:Ye}),rd=Ye({\u0275pipe:Ye}),mg=Ye({\u0275mod:Ye}),zr=Ye({\u0275fac:Ye}),Gs=Ye({__NG_ELEMENT_ID__:Ye});let ZD=0;function De(e){return Hr(()=>{const n=vg(e),t={...n,decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===Cr.OnPush,directiveDefs:null,pipeDefs:null,dependencies:n.standalone&&e.dependencies||null,getStandaloneInjector:null,data:e.data||{},encapsulation:e.encapsulation||wr.Emulated,id:"c"+ZD++,styles:e.styles||Ke,_:null,schemas:e.schemas||null,tView:null};yg(t);const r=e.dependencies;return t.directiveDefs=Nl(r,!1),t.pipeDefs=Nl(r,!0),t})}function e0(e){return Je(e)||en(e)}function t0(e){return null!==e}function Kn(e){return Hr(()=>({type:e.type,bootstrap:e.bootstrap||Ke,declarations:e.declarations||Ke,imports:e.imports||Ke,exports:e.exports||Ke,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function _g(e,n){if(null==e)return Gr;const t={};for(const r in e)if(e.hasOwnProperty(r)){let i=e[r],o=i;Array.isArray(i)&&(o=i[1],i=i[0]),t[i]=r,n&&(n[i]=o)}return t}function Ce(e){return Hr(()=>{const n=vg(e);return yg(n),n})}function dn(e){return{type:e.type,name:e.name,factory:null,pure:!1!==e.pure,standalone:!0===e.standalone,onDestroy:e.type.prototype.ngOnDestroy||null}}function Je(e){return e[Ol]||null}function en(e){return e[nd]||null}function wn(e){return e[rd]||null}function On(e,n){const t=e[mg]||null;if(!t&&!0===n)throw new Error(`Type ${ne(e)} does not have '\u0275mod' property.`);return t}function vg(e){const n={};return{type:e.type,providersResolver:null,factory:null,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:n,exportAs:e.exportAs||null,standalone:!0===e.standalone,selectors:e.selectors||Ke,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:_g(e.inputs,n),outputs:_g(e.outputs)}}function yg(e){e.features?.forEach(n=>n(e))}function Nl(e,n){if(!e)return null;const t=n?wn:e0;return()=>("function"==typeof e?e():e).map(r=>t(r)).filter(t0)}const qr=0,se=1,Me=2,wt=3,ar=4,qi=5,tn=6,Do=7,Tt=8,Pl=9,Ll=10,Re=11,id=12,zs=13,bg=14,Eo=15,nn=16,qs=17,So=18,Dr=19,Ws=20,Cg=21,ht=22,od=1,wg=2,Vl=7,Bl=8,To=9,fn=10;function Nn(e){return Array.isArray(e)&&"object"==typeof e[od]}function lr(e){return Array.isArray(e)&&!0===e[od]}function sd(e){return 0!=(4&e.flags)}function Ys(e){return e.componentOffset>-1}function jl(e){return 1==(1&e.flags)}function cr(e){return!!e.template}function r0(e){return 0!=(256&e[Me])}function Wi(e,n){return e.hasOwnProperty(zr)?e[zr]:null}class a0{constructor(n,t,r){this.previousValue=n,this.currentValue=t,this.firstChange=r}isFirstChange(){return this.firstChange}}function Dn(){return Sg}function Sg(e){return e.type.prototype.ngOnChanges&&(e.setInput=c0),l0}function l0(){const e=Ig(this),n=e?.current;if(n){const t=e.previous;if(t===Gr)e.previous=n;else for(let r in n)t[r]=n[r];e.current=null,this.ngOnChanges(n)}}function c0(e,n,t,r){const i=this.declaredInputs[t],o=Ig(e)||function u0(e,n){return e[Tg]=n}(e,{previous:Gr,current:null}),s=o.current||(o.current={}),a=o.previous,l=a[i];s[i]=new a0(l&&l.currentValue,n,a===Gr),e[r]=n}Dn.ngInherit=!0;const Tg="__ngSimpleChanges__";function Ig(e){return e[Tg]||null}const Qn=function(e,n,t){},Mg="svg";function Qt(e){for(;Array.isArray(e);)e=e[qr];return e}function Ul(e,n){return Qt(n[e])}function Pn(e,n){return Qt(n[e.index])}function xg(e,n){return e.data[n]}function Io(e,n){return e[n]}function Ln(e,n){const t=n[e];return Nn(t)?t:t[qr]}function $l(e){return 64==(64&e[Me])}function bi(e,n){return null==n?null:e[n]}function kg(e){e[So]=0}function ld(e,n){e[qi]+=n;let t=e,r=e[wt];for(;null!==r&&(1===n&&1===t[qi]||-1===n&&0===t[qi]);)r[qi]+=n,t=r,r=r[wt]}const Ee={lFrame:Ug(null),bindingsEnabled:!0};function Rg(){return Ee.bindingsEnabled}function H(){return Ee.lFrame.lView}function Ue(){return Ee.lFrame.tView}function K(e){return Ee.lFrame.contextLView=e,e[Tt]}function Q(e){return Ee.lFrame.contextLView=null,e}function Xt(){let e=Og();for(;null!==e&&64===e.type;)e=e.parent;return e}function Og(){return Ee.lFrame.currentTNode}function Er(e,n){const t=Ee.lFrame;t.currentTNode=e,t.isParent=n}function cd(){return Ee.lFrame.isParent}function ud(){Ee.lFrame.isParent=!1}function hn(){const e=Ee.lFrame;let n=e.bindingRootIndex;return-1===n&&(n=e.bindingRootIndex=e.tView.bindingStartIndex),n}function Mo(){return Ee.lFrame.bindingIndex++}function Yr(e){const n=Ee.lFrame,t=n.bindingIndex;return n.bindingIndex=n.bindingIndex+e,t}function D0(e,n){const t=Ee.lFrame;t.bindingIndex=t.bindingRootIndex=e,dd(n)}function dd(e){Ee.lFrame.currentDirectiveIndex=e}function Vg(){return Ee.lFrame.currentQueryIndex}function hd(e){Ee.lFrame.currentQueryIndex=e}function S0(e){const n=e[se];return 2===n.type?n.declTNode:1===n.type?e[tn]:null}function Bg(e,n,t){if(t&ye.SkipSelf){let i=n,o=e;for(;!(i=i.parent,null!==i||t&ye.Host||(i=S0(o),null===i||(o=o[Eo],10&i.type))););if(null===i)return!1;n=i,e=o}const r=Ee.lFrame=jg();return r.currentTNode=n,r.lView=e,!0}function pd(e){const n=jg(),t=e[se];Ee.lFrame=n,n.currentTNode=t.firstChild,n.lView=e,n.tView=t,n.contextLView=e,n.bindingIndex=t.bindingStartIndex,n.inI18n=!1}function jg(){const e=Ee.lFrame,n=null===e?null:e.child;return null===n?Ug(e):n}function Ug(e){const n={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:e,child:null,inI18n:!1};return null!==e&&(e.child=n),n}function $g(){const e=Ee.lFrame;return Ee.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const Hg=$g;function gd(){const e=$g();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function pn(){return Ee.lFrame.selectedIndex}function Yi(e){Ee.lFrame.selectedIndex=e}function vt(){const e=Ee.lFrame;return xg(e.tView,e.selectedIndex)}function md(){Ee.lFrame.currentNamespace=Mg}function _d(){!function A0(){Ee.lFrame.currentNamespace=null}()}function Hl(e,n){for(let t=n.directiveStart,r=n.directiveEnd;t=r)break}else n[l]<0&&(e[So]+=65536),(a>11>16&&(3&e[Me])===n){e[Me]+=2048,Qn(4,a,o);try{o.call(a)}finally{Qn(5,a,o)}}}else{Qn(4,a,o);try{o.call(a)}finally{Qn(5,a,o)}}}const Ao=-1;class Qs{constructor(n,t,r){this.factory=n,this.resolving=!1,this.canSeeViewProviders=t,this.injectImpl=r}}function bd(e,n,t){let r=0;for(;rn){s=o-1;break}}}for(;o>16}(e),r=n;for(;t>0;)r=r[Eo],t--;return r}let Cd=!0;function Yl(e){const n=Cd;return Cd=e,n}const Kg=255,Qg=5;let L0=0;const Sr={};function Kl(e,n){const t=Xg(e,n);if(-1!==t)return t;const r=n[se];r.firstCreatePass&&(e.injectorIndex=n.length,wd(r.data,e),wd(n,null),wd(r.blueprint,null));const i=Dd(e,n),o=e.injectorIndex;if(Yg(i)){const s=ql(i),a=Wl(i,n),l=a[se].data;for(let c=0;c<8;c++)n[o+c]=a[s+c]|l[s+c]}return n[o+8]=i,o}function wd(e,n){e.push(0,0,0,0,0,0,0,0,n)}function Xg(e,n){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===n[e.injectorIndex+8]?-1:e.injectorIndex}function Dd(e,n){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;let t=0,r=null,i=n;for(;null!==i;){if(r=im(i),null===r)return Ao;if(t++,i=i[Eo],-1!==r.injectorIndex)return r.injectorIndex|t<<16}return Ao}function Ed(e,n,t){!function V0(e,n,t){let r;"string"==typeof t?r=t.charCodeAt(0)||0:t.hasOwnProperty(Gs)&&(r=t[Gs]),null==r&&(r=t[Gs]=L0++);const i=r&Kg;n.data[e+(i>>Qg)]|=1<=0?n&Kg:$0:n}(t);if("function"==typeof o){if(!Bg(n,e,r))return r&ye.Host?Zg(i,0,r):Jg(n,t,r,i);try{const s=o(r);if(null!=s||r&ye.Optional)return s;Al()}finally{Hg()}}else if("number"==typeof o){let s=null,a=Xg(e,n),l=Ao,c=r&ye.Host?n[nn][tn]:null;for((-1===a||r&ye.SkipSelf)&&(l=-1===a?Dd(e,n):n[a+8],l!==Ao&&rm(r,!1)?(s=n[se],a=ql(l),n=Wl(l,n)):a=-1);-1!==a;){const u=n[se];if(nm(o,a,u.data)){const p=j0(a,n,t,s,r,c);if(p!==Sr)return p}l=n[a+8],l!==Ao&&rm(r,n[se].data[a+8]===c)&&nm(o,a,n)?(s=u,a=ql(l),n=Wl(l,n)):a=-1}}return i}function j0(e,n,t,r,i,o){const s=n[se],a=s.data[e+8],u=Ql(a,s,t,null==r?Ys(a)&&Cd:r!=s&&0!=(3&a.type),i&ye.Host&&o===a);return null!==u?Ki(n,s,u,a):Sr}function Ql(e,n,t,r,i){const o=e.providerIndexes,s=n.data,a=1048575&o,l=e.directiveStart,u=o>>20,m=i?a+u:e.directiveEnd;for(let _=r?a:a+u;_=l&&E.type===t)return _}if(i){const _=s[l];if(_&&cr(_)&&_.type===t)return l}return null}function Ki(e,n,t,r){let i=e[t];const o=n.data;if(function R0(e){return e instanceof Qs}(i)){const s=i;s.resolving&&function Xu(e,n){const t=n?`. Dependency path: ${n.join(" > ")} > ${e}`:"";throw new q(-200,`Circular dependency in DI detected for ${e}${t}`)}(function je(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():me(e)}(o[t]));const a=Yl(s.canSeeViewProviders);s.resolving=!0;const l=s.injectImpl?Yn(s.injectImpl):null;Bg(e,r,ye.Default);try{i=e[t]=s.factory(void 0,o,e,r),n.firstCreatePass&&t>=r.directiveStart&&function k0(e,n,t){const{ngOnChanges:r,ngOnInit:i,ngDoCheck:o}=n.type.prototype;if(r){const s=Sg(n);(t.preOrderHooks||(t.preOrderHooks=[])).push(e,s),(t.preOrderCheckHooks||(t.preOrderCheckHooks=[])).push(e,s)}i&&(t.preOrderHooks||(t.preOrderHooks=[])).push(0-e,i),o&&((t.preOrderHooks||(t.preOrderHooks=[])).push(e,o),(t.preOrderCheckHooks||(t.preOrderCheckHooks=[])).push(e,o))}(t,o[t],n)}finally{null!==l&&Yn(l),Yl(a),s.resolving=!1,Hg()}}return i}function nm(e,n,t){return!!(t[n+(e>>Qg)]&1<{const n=e.prototype.constructor,t=n[zr]||Sd(n),r=Object.prototype;let i=Object.getPrototypeOf(e.prototype).constructor;for(;i&&i!==r;){const o=i[zr]||Sd(i);if(o&&o!==t)return o;i=Object.getPrototypeOf(i)}return o=>new o})}function Sd(e){return pt(e)?()=>{const n=Sd(Z(e));return n&&n()}:Wi(e)}function im(e){const n=e[se],t=n.type;return 2===t?n.declTNode:1===t?e[tn]:null}const Fo="__parameters__";function Oo(e,n,t){return Hr(()=>{const r=function Td(e){return function(...t){if(e){const r=e(...t);for(const i in r)this[i]=r[i]}}}(n);function i(...o){if(this instanceof i)return r.apply(this,o),this;const s=new i(...o);return a.annotation=s,a;function a(l,c,u){const p=l.hasOwnProperty(Fo)?l[Fo]:Object.defineProperty(l,Fo,{value:[]})[Fo];for(;p.length<=u;)p.push(null);return(p[u]=p[u]||[]).push(s),l}}return t&&(i.prototype=Object.create(t.prototype)),i.prototype.ngMetadataName=e,i.annotationCls=i,i})}class ce{constructor(n,t){this._desc=n,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof t?this.__NG_ELEMENT_ID__=t:void 0!==t&&(this.\u0275prov=ee({token:this,providedIn:t.providedIn||"root",factory:t.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function Qi(e,n){e.forEach(t=>Array.isArray(t)?Qi(t,n):n(t))}function sm(e,n,t){n>=e.length?e.push(t):e.splice(n,0,t)}function Zl(e,n){return n>=e.length-1?e.pop():e.splice(n,1)[0]}function Vn(e,n,t){let r=No(e,n);return r>=0?e[1|r]=t:(r=~r,function W0(e,n,t,r){let i=e.length;if(i==n)e.push(t,r);else if(1===i)e.push(r,e[0]),e[0]=t;else{for(i--,e.push(e[i-1],e[i]);i>n;)e[i]=e[i-2],i--;e[n]=t,e[n+1]=r}}(e,r,n,t)),r}function Md(e,n){const t=No(e,n);if(t>=0)return e[1|t]}function No(e,n){return function am(e,n,t){let r=0,i=e.length>>t;for(;i!==r;){const o=r+(i-r>>1),s=e[o<n?i=o:r=o+1}return~(i<((En=En||{})[En.Important=1]="Important",En[En.DashCase=2]="DashCase",En))();const Od=new Map;let gE=0;const Pd="__ngContext__";function rn(e,n){Nn(n)?(e[Pd]=n[Ws],function _E(e){Od.set(e[Ws],e)}(n)):e[Pd]=n}let Ld;function Vd(e,n){return Ld(e,n)}function sa(e){const n=e[wt];return lr(n)?n[wt]:n}function Bd(e){return Im(e[zs])}function jd(e){return Im(e[ar])}function Im(e){for(;null!==e&&!lr(e);)e=e[ar];return e}function Lo(e,n,t,r,i){if(null!=r){let o,s=!1;lr(r)?o=r:Nn(r)&&(s=!0,r=r[qr]);const a=Qt(r);0===e&&null!==t?null==i?Rm(n,t,a):Xi(n,t,a,i||null,!0):1===e&&null!==t?Xi(n,t,a,i||null,!0):2===e?function Wd(e,n,t){const r=nc(e,n);r&&function LE(e,n,t,r){e.removeChild(n,t,r)}(e,r,n,t)}(n,a,s):3===e&&n.destroyNode(a),null!=o&&function jE(e,n,t,r,i){const o=t[Vl];o!==Qt(t)&&Lo(n,e,r,o,i);for(let a=fn;a0&&(e[t-1][ar]=r[ar]);const o=Zl(e,fn+n);!function AE(e,n){aa(e,n,n[Re],2,null,null),n[qr]=null,n[tn]=null}(r[se],r);const s=o[Dr];null!==s&&s.detachView(o[se]),r[wt]=null,r[ar]=null,r[Me]&=-65}return r}function xm(e,n){if(!(128&n[Me])){const t=n[Re];t.destroyNode&&aa(e,n,t,3,null,null),function FE(e){let n=e[zs];if(!n)return Gd(e[se],e);for(;n;){let t=null;if(Nn(n))t=n[zs];else{const r=n[fn];r&&(t=r)}if(!t){for(;n&&!n[ar]&&n!==e;)Nn(n)&&Gd(n[se],n),n=n[wt];null===n&&(n=e),Nn(n)&&Gd(n[se],n),t=n&&n[ar]}n=t}}(n)}}function Gd(e,n){if(!(128&n[Me])){n[Me]&=-65,n[Me]|=128,function PE(e,n){let t;if(null!=e&&null!=(t=e.destroyHooks))for(let r=0;r=0?r[i=s]():r[i=-s].unsubscribe(),o+=2}else{const s=r[i=t[o+1]];t[o].call(s)}if(null!==r){for(let o=i+1;o-1){const{encapsulation:o}=e.data[r.directiveStart+i];if(o===wr.None||o===wr.Emulated)return null}return Pn(r,t)}}(e,n.parent,t)}function Xi(e,n,t,r,i){e.insertBefore(n,t,r,i)}function Rm(e,n,t){e.appendChild(n,t)}function Om(e,n,t,r,i){null!==r?Xi(e,n,t,r,i):Rm(e,n,t)}function nc(e,n){return e.parentNode(n)}let zd,Qd,sc,Lm=function Pm(e,n,t){return 40&e.type?Pn(e,t):null};function rc(e,n,t,r){const i=km(e,r,n),o=n[Re],a=function Nm(e,n,t){return Lm(e,n,t)}(r.parent||n[tn],r,n);if(null!=i)if(Array.isArray(t))for(let l=0;le,createScript:e=>e,createScriptURL:e=>e})}catch{}return sc}()?.createScriptURL(e)||e}class Wm{constructor(n){this.changingThisBreaksApplicationSecurity=n}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${qn})`}}function Ci(e){return e instanceof Wm?e.changingThisBreaksApplicationSecurity:e}function la(e,n){const t=function ZE(e){return e instanceof Wm&&e.getTypeName()||null}(e);if(null!=t&&t!==n){if("ResourceURL"===t&&"URL"===n)return!0;throw new Error(`Required a safe ${n}, got a ${t} (see ${qn})`)}return t===n}const nS=/^(?:(?:https?|mailto|data|ftp|tel|file|sms):|[^&:/?#]*(?:[/?#]|$))/gi;var Nt=(()=>((Nt=Nt||{})[Nt.NONE=0]="NONE",Nt[Nt.HTML=1]="HTML",Nt[Nt.STYLE=2]="STYLE",Nt[Nt.SCRIPT=3]="SCRIPT",Nt[Nt.URL=4]="URL",Nt[Nt.RESOURCE_URL=5]="RESOURCE_URL",Nt))();function e_(e){const n=ua();return n?n.sanitize(Nt.URL,e)||"":la(e,"URL")?Ci(e):function Zd(e){return(e=String(e)).match(nS)?e:"unsafe:"+e}(me(e))}function t_(e){const n=ua();if(n)return qm(n.sanitize(Nt.RESOURCE_URL,e)||"");if(la(e,"ResourceURL"))return qm(Ci(e));throw new q(904,!1)}function ua(){const e=H();return e&&e[id]}const lc=new ce("ENVIRONMENT_INITIALIZER"),r_=new ce("INJECTOR",-1),i_=new ce("INJECTOR_DEF_TYPES");class o_{get(n,t=Us){if(t===Us){const r=new Error(`NullInjectorError: No provider for ${ne(n)}!`);throw r.name="NullInjectorError",r}return t}}function mS(...e){return{\u0275providers:s_(0,e),\u0275fromNgModule:!0}}function s_(e,...n){const t=[],r=new Set;let i;return Qi(n,o=>{const s=o;nf(s,t,[],r)&&(i||(i=[]),i.push(s))}),void 0!==i&&a_(i,t),t}function a_(e,n){for(let t=0;t{n.push(o)})}}function nf(e,n,t,r){if(!(e=Z(e)))return!1;let i=null,o=dg(e);const s=!o&&Je(e);if(o||s){if(s&&!s.standalone)return!1;i=e}else{const l=e.ngModule;if(o=dg(l),!o)return!1;i=l}const a=r.has(i);if(s){if(a)return!1;if(r.add(i),s.dependencies){const l="function"==typeof s.dependencies?s.dependencies():s.dependencies;for(const c of l)nf(c,n,t,r)}}else{if(!o)return!1;{if(null!=o.imports&&!a){let c;r.add(i);try{Qi(o.imports,u=>{nf(u,n,t,r)&&(c||(c=[]),c.push(u))})}finally{}void 0!==c&&a_(c,n)}if(!a){const c=Wi(i)||(()=>new i);n.push({provide:i,useFactory:c,deps:Ke},{provide:i_,useValue:i,multi:!0},{provide:lc,useValue:()=>te(i),multi:!0})}const l=o.providers;null==l||a||rf(l,u=>{n.push(u)})}}return i!==e&&void 0!==e.providers}function rf(e,n){for(let t of e)Ot(t)&&(t=t.\u0275providers),Array.isArray(t)?rf(t,n):n(t)}const _S=Ye({provide:String,useValue:Ye});function sf(e){return null!==e&&"object"==typeof e&&_S in e}function Zi(e){return"function"==typeof e}const af=new ce("Set Injector scope."),cc={},yS={};let lf;function uc(){return void 0===lf&&(lf=new o_),lf}class Tr{}class u_ extends Tr{get destroyed(){return this._destroyed}constructor(n,t,r,i){super(),this.parent=t,this.source=r,this.scopes=i,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,uf(n,s=>this.processProvider(s)),this.records.set(r_,Bo(void 0,this)),i.has("environment")&&this.records.set(Tr,Bo(void 0,this));const o=this.records.get(af);null!=o&&"string"==typeof o.value&&this.scopes.add(o.value),this.injectorDefTypes=new Set(this.get(i_.multi,Ke,ye.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const n of this._ngOnDestroyHooks)n.ngOnDestroy();for(const n of this._onDestroyHooks)n()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),this._onDestroyHooks.length=0}}onDestroy(n){this._onDestroyHooks.push(n)}runInContext(n){this.assertNotDestroyed();const t=Co(this),r=Yn(void 0);try{return n()}finally{Co(t),Yn(r)}}get(n,t=Us,r=ye.Default){this.assertNotDestroyed(),r=Rl(r);const i=Co(this),o=Yn(void 0);try{if(!(r&ye.SkipSelf)){let a=this.records.get(n);if(void 0===a){const l=function ES(e){return"function"==typeof e||"object"==typeof e&&e instanceof ce}(n)&&xl(n);a=l&&this.injectableDefInScope(l)?Bo(cf(n),cc):null,this.records.set(n,a)}if(null!=a)return this.hydrate(n,a)}return(r&ye.Self?uc():this.parent).get(n,t=r&ye.Optional&&t===Us?null:t)}catch(s){if("NullInjectorError"===s.name){if((s[Fl]=s[Fl]||[]).unshift(ne(n)),i)throw s;return function QD(e,n,t,r){const i=e[Fl];throw n[pg]&&i.unshift(n[pg]),e.message=function XD(e,n,t,r=null){e=e&&"\n"===e.charAt(0)&&e.charAt(1)==WD?e.slice(2):e;let i=ne(n);if(Array.isArray(n))i=n.map(ne).join(" -> ");else if("object"==typeof n){let o=[];for(let s in n)if(n.hasOwnProperty(s)){let a=n[s];o.push(s+":"+("string"==typeof a?JSON.stringify(a):ne(a)))}i=`{${o.join(", ")}}`}return`${t}${r?"("+r+")":""}[${i}]: ${e.replace(qD,"\n ")}`}("\n"+e.message,i,t,r),e[zD]=i,e[Fl]=null,e}(s,n,"R3InjectorError",this.source)}throw s}finally{Yn(o),Co(i)}}resolveInjectorInitializers(){const n=Co(this),t=Yn(void 0);try{const r=this.get(lc.multi,Ke,ye.Self);for(const i of r)i()}finally{Co(n),Yn(t)}}toString(){const n=[],t=this.records;for(const r of t.keys())n.push(ne(r));return`R3Injector[${n.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new q(205,!1)}processProvider(n){let t=Zi(n=Z(n))?n:Z(n&&n.provide);const r=function CS(e){return sf(e)?Bo(void 0,e.useValue):Bo(d_(e),cc)}(n);if(Zi(n)||!0!==n.multi)this.records.get(t);else{let i=this.records.get(t);i||(i=Bo(void 0,cc,!0),i.factory=()=>td(i.multi),this.records.set(t,i)),t=n,i.multi.push(n)}this.records.set(t,r)}hydrate(n,t){return t.value===cc&&(t.value=yS,t.value=t.factory()),"object"==typeof t.value&&t.value&&function DS(e){return null!==e&&"object"==typeof e&&"function"==typeof e.ngOnDestroy}(t.value)&&this._ngOnDestroyHooks.add(t.value),t.value}injectableDefInScope(n){if(!n.providedIn)return!1;const t=Z(n.providedIn);return"string"==typeof t?"any"===t||this.scopes.has(t):this.injectorDefTypes.has(t)}}function cf(e){const n=xl(e),t=null!==n?n.factory:Wi(e);if(null!==t)return t;if(e instanceof ce)throw new q(204,!1);if(e instanceof Function)return function bS(e){const n=e.length;if(n>0)throw function ea(e,n){const t=[];for(let r=0;rt.factory(e):()=>new e}(e);throw new q(204,!1)}function d_(e,n,t){let r;if(Zi(e)){const i=Z(e);return Wi(i)||cf(i)}if(sf(e))r=()=>Z(e.useValue);else if(function c_(e){return!(!e||!e.useFactory)}(e))r=()=>e.useFactory(...td(e.deps||[]));else if(function l_(e){return!(!e||!e.useExisting)}(e))r=()=>te(Z(e.useExisting));else{const i=Z(e&&(e.useClass||e.provide));if(!function wS(e){return!!e.deps}(e))return Wi(i)||cf(i);r=()=>new i(...td(e.deps))}return r}function Bo(e,n,t=!1){return{factory:e,value:n,multi:t?[]:void 0}}function uf(e,n){for(const t of e)Array.isArray(t)?uf(t,n):t&&Ot(t)?uf(t.\u0275providers,n):n(t)}class SS{}class f_{}class IS{resolveComponentFactory(n){throw function TS(e){const n=Error(`No component factory found for ${ne(e)}. Did you add it to @NgModule.entryComponents?`);return n.ngComponent=e,n}(n)}}let da=(()=>{class e{}return e.NULL=new IS,e})();function MS(){return jo(Xt(),H())}function jo(e,n){return new Tn(Pn(e,n))}let Tn=(()=>{class e{constructor(t){this.nativeElement=t}}return e.__NG_ELEMENT_ID__=MS,e})();function AS(e){return e instanceof Tn?e.nativeElement:e}class p_{}let Qr=(()=>{class e{}return e.__NG_ELEMENT_ID__=()=>function xS(){const e=H(),t=Ln(Xt().index,e);return(Nn(t)?t:e)[Re]}(),e})(),kS=(()=>{class e{}return e.\u0275prov=ee({token:e,providedIn:"root",factory:()=>null}),e})();class fa{constructor(n){this.full=n,this.major=n.split(".")[0],this.minor=n.split(".")[1],this.patch=n.split(".").slice(2).join(".")}}const FS=new fa("15.2.5"),df={},ff="ngOriginalError";function hf(e){return e[ff]}class Uo{constructor(){this._console=console}handleError(n){const t=this._findOriginalError(n);this._console.error("ERROR",n),t&&this._console.error("ORIGINAL ERROR",t)}_findOriginalError(n){let t=n&&hf(n);for(;t&&hf(t);)t=hf(t);return t||null}}function Xr(e){return e instanceof Function?e():e}function m_(e,n,t){let r=e.length;for(;;){const i=e.indexOf(n,t);if(-1===i)return i;if(0===i||e.charCodeAt(i-1)<=32){const o=n.length;if(i+o===r||e.charCodeAt(i+o)<=32)return i}t=i+1}}const __="ng-template";function HS(e,n,t){let r=0,i=!0;for(;ro?"":i[p+1].toLowerCase();const _=8&r?m:null;if(_&&-1!==m_(_,c,0)||2&r&&c!==m){if(ur(r))return!1;s=!0}}}}else{if(!s&&!ur(r)&&!ur(l))return!1;if(s&&ur(l))continue;s=!1,r=l|1&r}}return ur(r)||s}function ur(e){return 0==(1&e)}function qS(e,n,t,r){if(null===n)return-1;let i=0;if(r||!t){let o=!1;for(;i-1)for(t++;t0?'="'+a+'"':"")+"]"}else 8&r?i+="."+s:4&r&&(i+=" "+s);else""!==i&&!ur(s)&&(n+=b_(o,i),i=""),r=s,o=o||!ur(r);t++}return""!==i&&(n+=b_(o,i)),n}const Se={};function d(e){C_(Ue(),H(),pn()+e,!1)}function C_(e,n,t,r){if(!r)if(3==(3&n[Me])){const o=e.preOrderCheckHooks;null!==o&&Gl(n,o,t)}else{const o=e.preOrderHooks;null!==o&&zl(n,o,0,t)}Yi(t)}function S_(e,n=null,t=null,r){const i=T_(e,n,t,r);return i.resolveInjectorInitializers(),i}function T_(e,n=null,t=null,r,i=new Set){const o=[t||Ke,mS(e)];return r=r||("object"==typeof e?void 0:ne(e)),new u_(o,n||uc(),r||null,i)}let Ir=(()=>{class e{static create(t,r){if(Array.isArray(t))return S_({name:""},r,t,"");{const i=t.name??"";return S_({name:i},t.parent,t.providers,i)}}}return e.THROW_IF_NOT_FOUND=Us,e.NULL=new o_,e.\u0275prov=ee({token:e,providedIn:"any",factory:()=>te(r_)}),e.__NG_ELEMENT_ID__=-1,e})();function O(e,n=ye.Default){const t=H();return null===t?te(e,n):em(Xt(),t,Z(e),n)}function O_(e,n){const t=e.contentQueries;if(null!==t)for(let r=0;rht&&C_(e,n,ht,!1),Qn(s?2:0,i),t(r,i)}finally{Yi(o),Qn(s?3:1,i)}}function bf(e,n,t){if(sd(n)){const i=n.directiveEnd;for(let o=n.directiveStart;o0;){const t=e[--n];if("number"==typeof t&&t<0)return t}return 0})(s)!=a&&s.push(a),s.push(t,r,o)}}(e,n,r,ha(e,t,i.hostVars,Se),i)}function Mr(e,n,t,r,i,o){const s=Pn(e,n);!function Tf(e,n,t,r,i,o,s){if(null==o)e.removeAttribute(n,i,t);else{const a=null==s?me(o):s(o,r||"",i);e.setAttribute(n,i,a,t)}}(n[Re],s,o,e.value,t,r,i)}function LT(e,n,t,r,i,o){const s=o[n];if(null!==s){const a=r.setInput;for(let l=0;l0&&If(t)}}function If(e){for(let r=Bd(e);null!==r;r=jd(r))for(let i=fn;i0&&If(o)}const t=e[se].components;if(null!==t)for(let r=0;r0&&If(i)}}function $T(e,n){const t=Ln(n,e),r=t[se];(function HT(e,n){for(let t=n.length;t-1&&(Hd(n,r),Zl(t,r))}this._attachedToViewContainer=!1}xm(this._lView[se],this._lView)}onDestroy(n){L_(this._lView[se],this._lView,null,n)}markForCheck(){Mf(this._cdRefInjectingView||this._lView)}detach(){this._lView[Me]&=-65}reattach(){this._lView[Me]|=64}detectChanges(){gc(this._lView[se],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new q(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function kE(e,n){aa(e,n,n[Re],2,null,null)}(this._lView[se],this._lView)}attachToAppRef(n){if(this._attachedToViewContainer)throw new q(902,!1);this._appRef=n}}class GT extends pa{constructor(n){super(n),this._view=n}detectChanges(){const n=this._view;gc(n[se],n,n[Tt],!1)}checkNoChanges(){}get context(){return null}}class Y_ extends da{constructor(n){super(),this.ngModule=n}resolveComponentFactory(n){const t=Je(n);return new ga(t,this.ngModule)}}function K_(e){const n=[];for(let t in e)e.hasOwnProperty(t)&&n.push({propName:e[t],templateName:t});return n}class qT{constructor(n,t){this.injector=n,this.parentInjector=t}get(n,t,r){r=Rl(r);const i=this.injector.get(n,df,r);return i!==df||t===df?i:this.parentInjector.get(n,t,r)}}class ga extends f_{get inputs(){return K_(this.componentDef.inputs)}get outputs(){return K_(this.componentDef.outputs)}constructor(n,t){super(),this.componentDef=n,this.ngModule=t,this.componentType=n.type,this.selector=function ZS(e){return e.map(XS).join(",")}(n.selectors),this.ngContentSelectors=n.ngContentSelectors?n.ngContentSelectors:[],this.isBoundToModule=!!t}create(n,t,r,i){let o=(i=i||this.ngModule)instanceof Tr?i:i?.injector;o&&null!==this.componentDef.getStandaloneInjector&&(o=this.componentDef.getStandaloneInjector(o)||o);const s=o?new qT(n,o):n,a=s.get(p_,null);if(null===a)throw new q(407,!1);const l=s.get(kS,null),c=a.createRenderer(null,this.componentDef),u=this.componentDef.selectors[0][0]||"div",p=r?function wT(e,n,t){return e.selectRootElement(n,t===wr.ShadowDom)}(c,r,this.componentDef.encapsulation):$d(c,u,function zT(e){const n=e.toLowerCase();return"svg"===n?Mg:"math"===n?"math":null}(u)),m=this.componentDef.onPush?288:272,_=Df(0,null,null,1,0,null,null,null,null,null),E=fc(null,_,null,m,null,null,a,c,l,s,null);let N,B;pd(E);try{const U=this.componentDef;let ie,j=null;U.findHostDirectiveDefs?(ie=[],j=new Map,U.findHostDirectiveDefs(U,ie,j),ie.push(U)):ie=[U];const ve=function YT(e,n){const t=e[se],r=ht;return e[r]=n,Go(t,r,2,"#host",null)}(E,p),it=function KT(e,n,t,r,i,o,s,a){const l=i[se];!function QT(e,n,t,r){for(const i of e)n.mergedAttrs=Xs(n.mergedAttrs,i.hostAttrs);null!==n.mergedAttrs&&(mc(n,n.mergedAttrs,!0),null!==t&&$m(r,t,n))}(r,e,n,s);const c=o.createRenderer(n,t),u=fc(i,P_(t),null,t.onPush?32:16,i[e.index],e,o,c,a||null,null,null);return l.firstCreatePass&&Sf(l,e,r.length-1),pc(i,u),i[e.index]=u}(ve,p,U,ie,E,a,c);B=xg(_,ht),p&&function ZT(e,n,t,r){if(r)bd(e,t,["ng-version",FS.full]);else{const{attrs:i,classes:o}=function JS(e){const n=[],t=[];let r=1,i=2;for(;r0&&Um(e,t,o.join(" "))}}(c,U,p,r),void 0!==t&&function JT(e,n,t){const r=e.projection=[];for(let i=0;i=0;r--){const i=e[r];i.hostVars=n+=i.hostVars,i.hostAttrs=Xs(i.hostAttrs,t=Xs(t,i.hostAttrs))}}(r)}function kf(e){return e===Gr?{}:e===Ke?[]:e}function nI(e,n){const t=e.viewQuery;e.viewQuery=t?(r,i)=>{n(r,i),t(r,i)}:n}function rI(e,n){const t=e.contentQueries;e.contentQueries=t?(r,i,o)=>{n(r,i,o),t(r,i,o)}:n}function iI(e,n){const t=e.hostBindings;e.hostBindings=t?(r,i)=>{n(r,i),t(r,i)}:n}function vc(e){return!!Ff(e)&&(Array.isArray(e)||!(e instanceof Map)&&Symbol.iterator in e)}function Ff(e){return null!==e&&("function"==typeof e||"object"==typeof e)}function Ar(e,n,t){return e[n]=t}function on(e,n,t){return!Object.is(e[n],t)&&(e[n]=t,!0)}function Ji(e,n,t,r){const i=on(e,n,t);return on(e,n+1,r)||i}function Ve(e,n,t,r){const i=H();return on(i,Mo(),n)&&(Ue(),Mr(vt(),i,e,n,t,r)),Ve}function qo(e,n,t,r){return on(e,Mo(),t)?n+me(t)+r:Se}function Wo(e,n,t,r,i,o){const a=Ji(e,function Wr(){return Ee.lFrame.bindingIndex}(),t,i);return Yr(2),a?n+me(t)+r+me(i)+o:Se}function k(e,n,t,r,i,o,s,a){const l=H(),c=Ue(),u=e+ht,p=c.firstCreatePass?function pI(e,n,t,r,i,o,s,a,l){const c=n.consts,u=Go(n,e,4,s||null,bi(c,a));Ef(n,t,u,bi(c,l)),Hl(n,u);const p=u.tView=Df(2,u,r,i,o,n.directiveRegistry,n.pipeRegistry,null,n.schemas,c);return null!==n.queries&&(n.queries.template(n,u),p.queries=n.queries.embeddedTView(u)),u}(u,c,l,n,t,r,i,o,s):c.data[u];Er(p,!1);const m=l[Re].createComment("");rc(c,l,m,p),rn(m,l),pc(l,l[u]=H_(m,l,m,p)),jl(p)&&Cf(c,l,p),null!=s&&wf(l,p,a)}function $e(e){return Io(function C0(){return Ee.lFrame.contextLView}(),ht+e)}function g(e,n,t){const r=H();return on(r,Mo(),n)&&Bn(Ue(),vt(),r,e,n,r[Re],t,!1),g}function Rf(e,n,t,r,i){const s=i?"class":"style";xf(e,t,n.inputs[s],s,r)}function f(e,n,t,r){const i=H(),o=Ue(),s=ht+e,a=i[Re],l=o.firstCreatePass?function mI(e,n,t,r,i,o){const s=n.consts,l=Go(n,e,2,r,bi(s,i));return Ef(n,t,l,bi(s,o)),null!==l.attrs&&mc(l,l.attrs,!1),null!==l.mergedAttrs&&mc(l,l.mergedAttrs,!0),null!==n.queries&&n.queries.elementStart(n,l),l}(s,o,i,n,t,r):o.data[s],c=i[s]=$d(a,n,function x0(){return Ee.lFrame.currentNamespace}()),u=jl(l);return Er(l,!0),$m(a,c,l),32!=(32&l.flags)&&rc(o,i,c,l),0===function m0(){return Ee.lFrame.elementDepthCount}()&&rn(c,i),function _0(){Ee.lFrame.elementDepthCount++}(),u&&(Cf(o,i,l),bf(o,l,i)),null!==r&&wf(i,l),f}function h(){let e=Xt();cd()?ud():(e=e.parent,Er(e,!1));const n=e;!function v0(){Ee.lFrame.elementDepthCount--}();const t=Ue();return t.firstCreatePass&&(Hl(t,e),sd(e)&&t.queries.elementEnd(e)),null!=n.classesWithoutHost&&function O0(e){return 0!=(8&e.flags)}(n)&&Rf(t,n,H(),n.classesWithoutHost,!0),null!=n.stylesWithoutHost&&function N0(e){return 0!=(16&e.flags)}(n)&&Rf(t,n,H(),n.stylesWithoutHost,!1),h}function S(e,n,t,r){return f(e,n,t,r),h(),S}function Ae(e,n,t){const r=H(),i=Ue(),o=e+ht,s=i.firstCreatePass?function _I(e,n,t,r,i){const o=n.consts,s=bi(o,r),a=Go(n,e,8,"ng-container",s);return null!==s&&mc(a,s,!0),Ef(n,t,a,bi(o,i)),null!==n.queries&&n.queries.elementStart(n,a),a}(o,i,r,n,t):i.data[o];Er(s,!0);const a=r[o]=r[Re].createComment("");return rc(i,r,a,s),rn(a,r),jl(s)&&(Cf(i,r,s),bf(i,s,r)),null!=t&&wf(r,s),Ae}function xe(){let e=Xt();const n=Ue();return cd()?ud():(e=e.parent,Er(e,!1)),n.firstCreatePass&&(Hl(n,e),sd(e)&&n.queries.elementEnd(e)),xe}function he(){return H()}function _a(e){return!!e&&"function"==typeof e.then}function uv(e){return!!e&&"function"==typeof e.subscribe}const Of=uv;function $(e,n,t,r){const i=H(),o=Ue(),s=Xt();return function fv(e,n,t,r,i,o,s){const a=jl(r),c=e.firstCreatePass&&z_(e),u=n[Tt],p=G_(n);let m=!0;if(3&r.type||s){const N=Pn(r,n),B=s?s(N):N,U=p.length,ie=s?ve=>s(Qt(ve[r.index])):r.index;let j=null;if(!s&&a&&(j=function vI(e,n,t,r){const i=e.cleanup;if(null!=i)for(let o=0;ol?a[l]:null}"string"==typeof s&&(o+=2)}return null}(e,n,i,r.index)),null!==j)(j.__ngLastListenerFn__||j).__ngNextListenerFn__=o,j.__ngLastListenerFn__=o,m=!1;else{o=pv(r,n,u,o,!1);const ve=t.listen(B,i,o);p.push(o,ve),c&&c.push(i,ie,U,U+1)}}else o=pv(r,n,u,o,!1);const _=r.outputs;let E;if(m&&null!==_&&(E=_[i])){const N=E.length;if(N)for(let B=0;B-1?Ln(e.index,n):n);let l=hv(n,t,r,s),c=o.__ngNextListenerFn__;for(;c;)l=hv(n,t,c,s)&&l,c=c.__ngNextListenerFn__;return i&&!1===l&&(s.preventDefault(),s.returnValue=!1),l}}function D(e=1){return function T0(e){return(Ee.lFrame.contextLView=function I0(e,n){for(;e>0;)n=n[Eo],e--;return n}(e,Ee.lFrame.contextLView))[Tt]}(e)}function Pt(e,n,t){return Nf(e,"",n,"",t),Pt}function Nf(e,n,t,r,i){const o=H(),s=qo(o,n,t,r);return s!==Se&&Bn(Ue(),vt(),o,e,s,o[Re],i,!1),Nf}function bc(e,n){return e<<17|n<<2}function wi(e){return e>>17&32767}function Pf(e){return 2|e}function eo(e){return(131068&e)>>2}function Lf(e,n){return-131069&e|n<<2}function Vf(e){return 1|e}function Dv(e,n,t,r,i){const o=e[t+1],s=null===n;let a=r?wi(o):eo(o),l=!1;for(;0!==a&&(!1===l||s);){const u=e[a+1];II(e[a],n)&&(l=!0,e[a+1]=r?Vf(u):Pf(u)),a=r?wi(u):eo(u)}l&&(e[t+1]=r?Pf(o):Vf(o))}function II(e,n){return null===e||null==n||(Array.isArray(e)?e[1]:e)===n||!(!Array.isArray(e)||"string"!=typeof n)&&No(e,n)>=0}const Ht={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function Ev(e){return e.substring(Ht.key,Ht.keyEnd)}function Sv(e,n){const t=Ht.textEnd;return t===n?-1:(n=Ht.keyEnd=function kI(e,n,t){for(;n32;)n++;return n}(e,Ht.key=n,t),es(e,n,t))}function es(e,n,t){for(;n=0;t=Sv(n,t))Vn(e,Ev(n),!0)}function dr(e,n,t,r){const i=H(),o=Ue(),s=Yr(2);o.firstUpdatePass&&Fv(o,e,s,r),n!==Se&&on(i,s,n)&&Ov(o,o.data[pn()],i,i[Re],e,i[s+1]=function UI(e,n){return null==e||""===e||("string"==typeof n?e+=n:"object"==typeof e&&(e=ne(Ci(e)))),e}(n,t),r,s)}function kv(e,n){return n>=e.expandoStartIndex}function Fv(e,n,t,r){const i=e.data;if(null===i[t+1]){const o=i[pn()],s=kv(e,t);Pv(o,r)&&null===n&&!s&&(n=!1),n=function NI(e,n,t,r){const i=function fd(e){const n=Ee.lFrame.currentDirectiveIndex;return-1===n?null:e[n]}(e);let o=r?n.residualClasses:n.residualStyles;if(null===i)0===(r?n.classBindings:n.styleBindings)&&(t=va(t=Bf(null,e,n,t,r),n.attrs,r),o=null);else{const s=n.directiveStylingLast;if(-1===s||e[s]!==i)if(t=Bf(i,e,n,t,r),null===o){let l=function PI(e,n,t){const r=t?n.classBindings:n.styleBindings;if(0!==eo(r))return e[wi(r)]}(e,n,r);void 0!==l&&Array.isArray(l)&&(l=Bf(null,e,n,l[1],r),l=va(l,n.attrs,r),function LI(e,n,t,r){e[wi(t?n.classBindings:n.styleBindings)]=r}(e,n,r,l))}else o=function VI(e,n,t){let r;const i=n.directiveEnd;for(let o=1+n.directiveStylingLast;o0)&&(c=!0)):u=t,i)if(0!==l){const m=wi(e[a+1]);e[r+1]=bc(m,a),0!==m&&(e[m+1]=Lf(e[m+1],r)),e[a+1]=function DI(e,n){return 131071&e|n<<17}(e[a+1],r)}else e[r+1]=bc(a,0),0!==a&&(e[a+1]=Lf(e[a+1],r)),a=r;else e[r+1]=bc(l,0),0===a?a=r:e[l+1]=Lf(e[l+1],r),l=r;c&&(e[r+1]=Pf(e[r+1])),Dv(e,u,r,!0),Dv(e,u,r,!1),function TI(e,n,t,r,i){const o=i?e.residualClasses:e.residualStyles;null!=o&&"string"==typeof n&&No(o,n)>=0&&(t[r+1]=Vf(t[r+1]))}(n,u,e,r,o),s=bc(a,l),o?n.classBindings=s:n.styleBindings=s}(i,o,n,t,s,r)}}function Bf(e,n,t,r,i){let o=null;const s=t.directiveEnd;let a=t.directiveStylingLast;for(-1===a?a=t.directiveStart:a++;a0;){const l=e[i],c=Array.isArray(l),u=c?l[1]:l,p=null===u;let m=t[i+1];m===Se&&(m=p?Ke:void 0);let _=p?Md(m,r):u===r?m:void 0;if(c&&!Cc(_)&&(_=Md(l,r)),Cc(_)&&(a=_,s))return a;const E=e[i+1];i=s?wi(E):eo(E)}if(null!==n){let l=o?n.residualClasses:n.residualStyles;null!=l&&(a=Md(l,r))}return a}function Cc(e){return void 0!==e}function Pv(e,n){return 0!=(e.flags&(n?8:16))}function v(e,n=""){const t=H(),r=Ue(),i=e+ht,o=r.firstCreatePass?Go(r,i,1,n,null):r.data[i],s=t[i]=function Ud(e,n){return e.createText(n)}(t[Re],n);rc(r,t,s,o),Er(o,!1)}function Fr(e){return y("",e,""),Fr}function y(e,n,t){const r=H(),i=qo(r,e,n,t);return i!==Se&&Zr(r,pn(),i),y}function ya(e,n,t,r,i){const o=H(),s=Wo(o,e,n,t,r,i);return s!==Se&&Zr(o,pn(),s),ya}const to=void 0;var aM=["en",[["a","p"],["AM","PM"],to],[["AM","PM"],to,to],[["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"]],to,[["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"]],to,[["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}",to,"{1} 'at' {0}",to],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function sM(e){const t=Math.floor(Math.abs(e)),r=e.toString().replace(/^[^.]*\.?/,"").length;return 1===t&&0===r?1:5}];let ns={};function gn(e){const n=function lM(e){return e.toLowerCase().replace(/_/g,"-")}(e);let t=ny(n);if(t)return t;const r=n.split("-")[0];if(t=ny(r),t)return t;if("en"===r)return aM;throw new q(701,!1)}function ny(e){return e in ns||(ns[e]=ft.ng&&ft.ng.common&&ft.ng.common.locales&&ft.ng.common.locales[e]),ns[e]}var oe=(()=>((oe=oe||{})[oe.LocaleId=0]="LocaleId",oe[oe.DayPeriodsFormat=1]="DayPeriodsFormat",oe[oe.DayPeriodsStandalone=2]="DayPeriodsStandalone",oe[oe.DaysFormat=3]="DaysFormat",oe[oe.DaysStandalone=4]="DaysStandalone",oe[oe.MonthsFormat=5]="MonthsFormat",oe[oe.MonthsStandalone=6]="MonthsStandalone",oe[oe.Eras=7]="Eras",oe[oe.FirstDayOfWeek=8]="FirstDayOfWeek",oe[oe.WeekendRange=9]="WeekendRange",oe[oe.DateFormat=10]="DateFormat",oe[oe.TimeFormat=11]="TimeFormat",oe[oe.DateTimeFormat=12]="DateTimeFormat",oe[oe.NumberSymbols=13]="NumberSymbols",oe[oe.NumberFormats=14]="NumberFormats",oe[oe.CurrencyCode=15]="CurrencyCode",oe[oe.CurrencySymbol=16]="CurrencySymbol",oe[oe.CurrencyName=17]="CurrencyName",oe[oe.Currencies=18]="Currencies",oe[oe.Directionality=19]="Directionality",oe[oe.PluralCase=20]="PluralCase",oe[oe.ExtraData=21]="ExtraData",oe))();const rs="en-US";let ry=rs;function $f(e,n,t,r,i){if(e=Z(e),Array.isArray(e))for(let o=0;o>20;if(Zi(e)||!e.multi){const _=new Qs(l,i,O),E=Gf(a,n,i?u:u+m,p);-1===E?(Ed(Kl(c,s),o,a),Hf(o,e,n.length),n.push(a),c.directiveStart++,c.directiveEnd++,i&&(c.providerIndexes+=1048576),t.push(_),s.push(_)):(t[E]=_,s[E]=_)}else{const _=Gf(a,n,u+m,p),E=Gf(a,n,u,u+m),B=E>=0&&t[E];if(i&&!B||!i&&!(_>=0&&t[_])){Ed(Kl(c,s),o,a);const U=function oA(e,n,t,r,i){const o=new Qs(e,t,O);return o.multi=[],o.index=n,o.componentProviders=0,My(o,i,r&&!t),o}(i?iA:rA,t.length,i,r,l);!i&&B&&(t[E].providerFactory=U),Hf(o,e,n.length,0),n.push(a),c.directiveStart++,c.directiveEnd++,i&&(c.providerIndexes+=1048576),t.push(U),s.push(U)}else Hf(o,e,_>-1?_:E,My(t[i?E:_],l,!i&&r));!i&&r&&B&&t[E].componentProviders++}}}function Hf(e,n,t,r){const i=Zi(n),o=function vS(e){return!!e.useClass}(n);if(i||o){const l=(o?Z(n.useClass):n).prototype.ngOnDestroy;if(l){const c=e.destroyHooks||(e.destroyHooks=[]);if(!i&&n.multi){const u=c.indexOf(t);-1===u?c.push(t,[r,l]):c[u+1].push(r,l)}else c.push(t,l)}}}function My(e,n,t){return t&&e.componentProviders++,e.multi.push(n)-1}function Gf(e,n,t,r){for(let i=t;i{t.providersResolver=(r,i)=>function nA(e,n,t){const r=Ue();if(r.firstCreatePass){const i=cr(e);$f(t,r.data,r.blueprint,i,!0),$f(n,r.data,r.blueprint,i,!1)}}(r,i?i(e):e,n)}}class is{}class Ay{}class xy extends is{constructor(n,t){super(),this._parent=t,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new Y_(this);const r=On(n);this._bootstrapComponents=Xr(r.bootstrap),this._r3Injector=T_(n,t,[{provide:is,useValue:this},{provide:da,useValue:this.componentFactoryResolver}],ne(n),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(n)}get injector(){return this._r3Injector}destroy(){const n=this._r3Injector;!n.destroyed&&n.destroy(),this.destroyCbs.forEach(t=>t()),this.destroyCbs=null}onDestroy(n){this.destroyCbs.push(n)}}class qf extends Ay{constructor(n){super(),this.moduleType=n}create(n){return new xy(this.moduleType,n)}}class aA extends is{constructor(n,t,r){super(),this.componentFactoryResolver=new Y_(this),this.instance=null;const i=new u_([...n,{provide:is,useValue:this},{provide:da,useValue:this.componentFactoryResolver}],t||uc(),r,new Set(["environment"]));this.injector=i,i.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(n){this.injector.onDestroy(n)}}function Tc(e,n,t=null){return new aA(e,n,t).injector}let lA=(()=>{class e{constructor(t){this._injector=t,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(t){if(!t.standalone)return null;if(!this.cachedInjectors.has(t.id)){const r=s_(0,t.type),i=r.length>0?Tc([r],this._injector,`Standalone[${t.type.name}]`):null;this.cachedInjectors.set(t.id,i)}return this.cachedInjectors.get(t.id)}ngOnDestroy(){try{for(const t of this.cachedInjectors.values())null!==t&&t.destroy()}finally{this.cachedInjectors.clear()}}}return e.\u0275prov=ee({token:e,providedIn:"environment",factory:()=>new e(te(Tr))}),e})();function ky(e){e.getStandaloneInjector=n=>n.get(lA).getOrCreateStandaloneInjector(e)}function It(e,n,t){const r=hn()+e,i=H();return i[r]===Se?Ar(i,r,t?n.call(t):n()):function ma(e,n){return e[n]}(i,r)}function By(e,n,t,r,i,o){return function $y(e,n,t,r,i,o,s,a){const l=n+t;return function yc(e,n,t,r,i){const o=Ji(e,n,t,r);return on(e,n+2,i)||o}(e,l,i,o,s)?Ar(e,l+3,a?r.call(a,i,o,s):r(i,o,s)):Sa(e,l+3)}(H(),hn(),e,n,t,r,i,o)}function Sa(e,n){const t=e[n];return t===Se?void 0:t}function jy(e,n,t,r,i,o){const s=n+t;return on(e,s,i)?Ar(e,s+1,o?r.call(o,i):r(i)):Sa(e,s+1)}function b(e,n){const t=Ue();let r;const i=e+ht;t.firstCreatePass?(r=function EA(e,n){if(n)for(let t=n.length-1;t>=0;t--){const r=n[t];if(e===r.name)return r}}(n,t.pipeRegistry),t.data[i]=r,r.onDestroy&&(t.destroyHooks||(t.destroyHooks=[])).push(i,r.onDestroy)):r=t.data[i];const o=r.factory||(r.factory=Wi(r.type)),s=Yn(O);try{const a=Yl(!1),l=o();return Yl(a),function gI(e,n,t,r){t>=e.data.length&&(e.data[t]=null,e.blueprint[t]=null),n[t]=r}(t,H(),i,l),l}finally{Yn(s)}}function C(e,n,t){const r=e+ht,i=H(),o=Io(i,r);return Ta(i,r)?jy(i,hn(),n,o.transform,t,o):o.transform(t)}function Ic(e,n,t,r){const i=e+ht,o=H(),s=Io(o,i);return Ta(o,i)?function Uy(e,n,t,r,i,o,s){const a=n+t;return Ji(e,a,i,o)?Ar(e,a+2,s?r.call(s,i,o):r(i,o)):Sa(e,a+2)}(o,hn(),n,s.transform,t,r,s):s.transform(t,r)}function Ta(e,n){return e[se].data[n].pure}function Yf(e){return n=>{setTimeout(e,void 0,n)}}const ue=class MA extends Wt{constructor(n=!1){super(),this.__isAsync=n}emit(n){super.next(n)}subscribe(n,t,r){let i=n,o=t||(()=>null),s=r;if(n&&"object"==typeof n){const l=n;i=l.next?.bind(l),o=l.error?.bind(l),s=l.complete?.bind(l)}this.__isAsync&&(o=Yf(o),i&&(i=Yf(i)),s&&(s=Yf(s)));const a=super.subscribe({next:i,error:o,complete:s});return n instanceof Ct&&n.add(a),a}};function AA(){return this._results[Symbol.iterator]()}class Kf{get changes(){return this._changes||(this._changes=new ue)}constructor(n=!1){this._emitDistinctChangesOnly=n,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const t=Kf.prototype;t[Symbol.iterator]||(t[Symbol.iterator]=AA)}get(n){return this._results[n]}map(n){return this._results.map(n)}filter(n){return this._results.filter(n)}find(n){return this._results.find(n)}reduce(n,t){return this._results.reduce(n,t)}forEach(n){this._results.forEach(n)}some(n){return this._results.some(n)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(n,t){const r=this;r.dirty=!1;const i=function Xn(e){return e.flat(Number.POSITIVE_INFINITY)}(n);(this._changesDetected=!function z0(e,n,t){if(e.length!==n.length)return!1;for(let r=0;r{class e{}return e.__NG_ELEMENT_ID__=FA,e})();const xA=Jr,kA=class extends xA{constructor(n,t,r){super(),this._declarationLView=n,this._declarationTContainer=t,this.elementRef=r}createEmbeddedView(n,t){const r=this._declarationTContainer.tView,i=fc(this._declarationLView,r,n,16,null,r.declTNode,null,null,null,null,t||null);i[qs]=this._declarationLView[this._declarationTContainer.index];const s=this._declarationLView[Dr];return null!==s&&(i[Dr]=s.createEmbeddedView(r)),yf(r,i,n),new pa(i)}};function FA(){return Mc(Xt(),H())}function Mc(e,n){return 4&e.type?new kA(n,e,jo(e,n)):null}let hr=(()=>{class e{}return e.__NG_ELEMENT_ID__=RA,e})();function RA(){return Wy(Xt(),H())}const OA=hr,zy=class extends OA{constructor(n,t,r){super(),this._lContainer=n,this._hostTNode=t,this._hostLView=r}get element(){return jo(this._hostTNode,this._hostLView)}get injector(){return new xo(this._hostTNode,this._hostLView)}get parentInjector(){const n=Dd(this._hostTNode,this._hostLView);if(Yg(n)){const t=Wl(n,this._hostLView),r=ql(n);return new xo(t[se].data[r+8],t)}return new xo(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(n){const t=qy(this._lContainer);return null!==t&&t[n]||null}get length(){return this._lContainer.length-fn}createEmbeddedView(n,t,r){let i,o;"number"==typeof r?i=r:null!=r&&(i=r.index,o=r.injector);const s=n.createEmbeddedView(t||{},o);return this.insert(s,i),s}createComponent(n,t,r,i,o){const s=n&&!function Js(e){return"function"==typeof e}(n);let a;if(s)a=t;else{const p=t||{};a=p.index,r=p.injector,i=p.projectableNodes,o=p.environmentInjector||p.ngModuleRef}const l=s?n:new ga(Je(n)),c=r||this.parentInjector;if(!o&&null==l.ngModule){const m=(s?c:this.parentInjector).get(Tr,null);m&&(o=m)}const u=l.create(c,i,void 0,o);return this.insert(u.hostView,a),u}insert(n,t){const r=n._lView,i=r[se];if(function g0(e){return lr(e[wt])}(r)){const u=this.indexOf(n);if(-1!==u)this.detach(u);else{const p=r[wt],m=new zy(p,p[tn],p[wt]);m.detach(m.indexOf(n))}}const o=this._adjustIndex(t),s=this._lContainer;!function RE(e,n,t,r){const i=fn+r,o=t.length;r>0&&(t[i-1][ar]=n),r0)r.push(s[a/2]);else{const c=o[a+1],u=n[-l];for(let p=fn;p{class e{constructor(t){this.appInits=t,this.resolve=xc,this.reject=xc,this.initialized=!1,this.done=!1,this.donePromise=new Promise((r,i)=>{this.resolve=r,this.reject=i})}runInitializers(){if(this.initialized)return;const t=[],r=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let i=0;i{o.subscribe({complete:a,error:l})});t.push(s)}}Promise.all(t).then(()=>{r()}).catch(i=>{this.reject(i)}),0===t.length&&r(),this.initialized=!0}}return e.\u0275fac=function(t){return new(t||e)(te(kc,8))},e.\u0275prov=ee({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const Aa=new ce("AppId",{providedIn:"root",factory:function _b(){return`${ah()}${ah()}${ah()}`}});function ah(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const vb=new ce("Platform Initializer"),lh=new ce("Platform ID",{providedIn:"platform",factory:()=>"unknown"});let sx=(()=>{class e{log(t){console.log(t)}warn(t){console.warn(t)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=ee({token:e,factory:e.\u0275fac,providedIn:"platform"}),e})();const ei=new ce("LocaleId",{providedIn:"root",factory:()=>Fe(ei,ye.Optional|ye.SkipSelf)||function ax(){return typeof $localize<"u"&&$localize.locale||rs}()});class cx{constructor(n,t){this.ngModuleFactory=n,this.componentFactories=t}}let yb=(()=>{class e{compileModuleSync(t){return new qf(t)}compileModuleAsync(t){return Promise.resolve(this.compileModuleSync(t))}compileModuleAndAllComponentsSync(t){const r=this.compileModuleSync(t),o=Xr(On(t).declarations).reduce((s,a)=>{const l=Je(a);return l&&s.push(new ga(l)),s},[]);return new cx(r,o)}compileModuleAndAllComponentsAsync(t){return Promise.resolve(this.compileModuleAndAllComponentsSync(t))}clearCache(){}clearCacheFor(t){}getModuleId(t){}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=ee({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const fx=(()=>Promise.resolve(0))();function ch(e){typeof Zone>"u"?fx.then(()=>{e&&e.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",e)}class Mt{constructor({enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:t=!1,shouldCoalesceRunChangeDetection:r=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new ue(!1),this.onMicrotaskEmpty=new ue(!1),this.onStable=new ue(!1),this.onError=new ue(!1),typeof Zone>"u")throw new q(908,!1);Zone.assertZonePatched();const i=this;i._nesting=0,i._outer=i._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(i._inner=i._inner.fork(new Zone.TaskTrackingZoneSpec)),n&&Zone.longStackTraceZoneSpec&&(i._inner=i._inner.fork(Zone.longStackTraceZoneSpec)),i.shouldCoalesceEventChangeDetection=!r&&t,i.shouldCoalesceRunChangeDetection=r,i.lastRequestAnimationFrameId=-1,i.nativeRequestAnimationFrame=function hx(){let e=ft.requestAnimationFrame,n=ft.cancelAnimationFrame;if(typeof Zone<"u"&&e&&n){const t=e[Zone.__symbol__("OriginalDelegate")];t&&(e=t);const r=n[Zone.__symbol__("OriginalDelegate")];r&&(n=r)}return{nativeRequestAnimationFrame:e,nativeCancelAnimationFrame:n}}().nativeRequestAnimationFrame,function mx(e){const n=()=>{!function gx(e){e.isCheckStableRunning||-1!==e.lastRequestAnimationFrameId||(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(ft,()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{e.lastRequestAnimationFrameId=-1,dh(e),e.isCheckStableRunning=!0,uh(e),e.isCheckStableRunning=!1},void 0,()=>{},()=>{})),e.fakeTopEventTask.invoke()}),dh(e))}(e)};e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(t,r,i,o,s,a)=>{try{return wb(e),t.invokeTask(i,o,s,a)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===o.type||e.shouldCoalesceRunChangeDetection)&&n(),Db(e)}},onInvoke:(t,r,i,o,s,a,l)=>{try{return wb(e),t.invoke(i,o,s,a,l)}finally{e.shouldCoalesceRunChangeDetection&&n(),Db(e)}},onHasTask:(t,r,i,o)=>{t.hasTask(i,o),r===i&&("microTask"==o.change?(e._hasPendingMicrotasks=o.microTask,dh(e),uh(e)):"macroTask"==o.change&&(e.hasPendingMacrotasks=o.macroTask))},onHandleError:(t,r,i,o)=>(t.handleError(i,o),e.runOutsideAngular(()=>e.onError.emit(o)),!1)})}(i)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Mt.isInAngularZone())throw new q(909,!1)}static assertNotInAngularZone(){if(Mt.isInAngularZone())throw new q(909,!1)}run(n,t,r){return this._inner.run(n,t,r)}runTask(n,t,r,i){const o=this._inner,s=o.scheduleEventTask("NgZoneEvent: "+i,n,px,xc,xc);try{return o.runTask(s,t,r)}finally{o.cancelTask(s)}}runGuarded(n,t,r){return this._inner.runGuarded(n,t,r)}runOutsideAngular(n){return this._outer.run(n)}}const px={};function uh(e){if(0==e._nesting&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function dh(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&-1!==e.lastRequestAnimationFrameId)}function wb(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function Db(e){e._nesting--,uh(e)}class _x{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new ue,this.onMicrotaskEmpty=new ue,this.onStable=new ue,this.onError=new ue}run(n,t,r){return n.apply(t,r)}runGuarded(n,t,r){return n.apply(t,r)}runOutsideAngular(n){return n()}runTask(n,t,r,i){return n.apply(t,r)}}const Eb=new ce(""),Rc=new ce("");let ph,fh=(()=>{class e{constructor(t,r,i){this._ngZone=t,this.registry=r,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,ph||(function vx(e){ph=e}(i),i.addToWindow(r)),this._watchAngularEvents(),t.run(()=>{this.taskTrackingZone=typeof Zone>"u"?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:()=>{Mt.assertNotInAngularZone(),ch(()=>{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())ch(()=>{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(r=>!r.updateCb||!r.updateCb(t)||(clearTimeout(r.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,r,i){let o=-1;r&&r>0&&(o=setTimeout(()=>{this._callbacks=this._callbacks.filter(s=>s.timeoutId!==o),t(this._didWork,this.getPendingTasks())},r)),this._callbacks.push({doneCb:t,timeoutId:o,updateCb:i})}whenStable(t,r,i){if(i&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(t,r,i),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(t){this.registry.registerApplication(t,this)}unregisterApplication(t){this.registry.unregisterApplication(t)}findProviders(t,r,i){return[]}}return e.\u0275fac=function(t){return new(t||e)(te(Mt),te(hh),te(Rc))},e.\u0275prov=ee({token:e,factory:e.\u0275fac}),e})(),hh=(()=>{class e{constructor(){this._applications=new Map}registerApplication(t,r){this._applications.set(t,r)}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,r=!0){return ph?.findTestabilityInTree(this,t,r)??null}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=ee({token:e,factory:e.\u0275fac,providedIn:"platform"}),e})();const ti=!1;let Di=null;const Sb=new ce("AllowMultipleToken"),gh=new ce("PlatformDestroyListeners"),Tb=new ce("appBootstrapListener");class Ib{constructor(n,t){this.name=n,this.token=t}}function Ab(e,n,t=[]){const r=`Platform: ${n}`,i=new ce(r);return(o=[])=>{let s=mh();if(!s||s.injector.get(Sb,!1)){const a=[...t,...o,{provide:i,useValue:!0}];e?e(a):function Cx(e){if(Di&&!Di.get(Sb,!1))throw new q(400,!1);Di=e;const n=e.get(kb);(function Mb(e){const n=e.get(vb,null);n&&n.forEach(t=>t())})(e)}(function xb(e=[],n){return Ir.create({name:n,providers:[{provide:af,useValue:"platform"},{provide:gh,useValue:new Set([()=>Di=null])},...e]})}(a,r))}return function Dx(e){const n=mh();if(!n)throw new q(401,!1);return n}()}}function mh(){return Di?.get(kb)??null}let kb=(()=>{class e{constructor(t){this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(t,r){const i=function Rb(e,n){let t;return t="noop"===e?new _x:("zone.js"===e?void 0:e)||new Mt(n),t}(r?.ngZone,function Fb(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!(!e||!e.ngZoneEventCoalescing)||!1,shouldCoalesceRunChangeDetection:!(!e||!e.ngZoneRunCoalescing)||!1}}(r)),o=[{provide:Mt,useValue:i}];return i.run(()=>{const s=Ir.create({providers:o,parent:this.injector,name:t.moduleType.name}),a=t.create(s),l=a.injector.get(Uo,null);if(!l)throw new q(402,!1);return i.runOutsideAngular(()=>{const c=i.onError.subscribe({next:u=>{l.handleError(u)}});a.onDestroy(()=>{Nc(this._modules,a),c.unsubscribe()})}),function Ob(e,n,t){try{const r=t();return _a(r)?r.catch(i=>{throw n.runOutsideAngular(()=>e.handleError(i)),i}):r}catch(r){throw n.runOutsideAngular(()=>e.handleError(r)),r}}(l,i,()=>{const c=a.injector.get(Fc);return c.runInitializers(),c.donePromise.then(()=>(function iy(e){Wn(e,"Expected localeId to be defined"),"string"==typeof e&&(ry=e.toLowerCase().replace(/_/g,"-"))}(a.injector.get(ei,rs)||rs),this._moduleDoBootstrap(a),a))})})}bootstrapModule(t,r=[]){const i=Nb({},r);return function yx(e,n,t){const r=new qf(t);return Promise.resolve(r)}(0,0,t).then(o=>this.bootstrapModuleFactory(o,i))}_moduleDoBootstrap(t){const r=t.injector.get(Oc);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(i=>r.bootstrap(i));else{if(!t.instance.ngDoBootstrap)throw new q(-403,!1);t.instance.ngDoBootstrap(r)}this._modules.push(t)}onDestroy(t){this._destroyListeners.push(t)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new q(404,!1);this._modules.slice().forEach(r=>r.destroy()),this._destroyListeners.forEach(r=>r());const t=this._injector.get(gh,null);t&&(t.forEach(r=>r()),t.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}}return e.\u0275fac=function(t){return new(t||e)(te(Ir))},e.\u0275prov=ee({token:e,factory:e.\u0275fac,providedIn:"platform"}),e})();function Nb(e,n){return Array.isArray(n)?n.reduce(Nb,e):{...e,...n}}let Oc=(()=>{class e{get destroyed(){return this._destroyed}get injector(){return this._injector}constructor(t,r,i){this._zone=t,this._injector=r,this._exceptionHandler=i,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this._destroyed=!1,this._destroyListeners=[],this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const o=new qe(a=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{a.next(this._stable),a.complete()})}),s=new qe(a=>{let l;this._zone.runOutsideAngular(()=>{l=this._zone.onStable.subscribe(()=>{Mt.assertNotInAngularZone(),ch(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,a.next(!0))})})});const c=this._zone.onUnstable.subscribe(()=>{Mt.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{a.next(!1)}))});return()=>{l.unsubscribe(),c.unsubscribe()}});this.isStable=function js(...e){const n=X(e),t=function pe(e,n){return"number"==typeof R(e)?e.pop():n}(e,1/0),r=e;return r.length?1===r.length?Cn(r[0]):x(t)(ot(r,n)):I}(o,s.pipe(_i()))}bootstrap(t,r){const i=t instanceof f_;if(!this._injector.get(Fc).done){!i&&function wo(e){const n=Je(e)||en(e)||wn(e);return null!==n&&n.standalone}(t);throw new q(405,ti)}let s;s=i?t:this._injector.get(da).resolveComponentFactory(t),this.componentTypes.push(s.componentType);const a=function bx(e){return e.isBoundToModule}(s)?void 0:this._injector.get(is),c=s.create(Ir.NULL,[],r||s.selector,a),u=c.location.nativeElement,p=c.injector.get(Eb,null);return p?.registerApplication(u),c.onDestroy(()=>{this.detachView(c.hostView),Nc(this.components,c),p?.unregisterApplication(u)}),this._loadComponent(c),c}tick(){if(this._runningTick)throw new q(101,!1);try{this._runningTick=!0;for(let t of this._views)t.detectChanges()}catch(t){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(t))}finally{this._runningTick=!1}}attachView(t){const r=t;this._views.push(r),r.attachToAppRef(this)}detachView(t){const r=t;Nc(this._views,r),r.detachFromAppRef()}_loadComponent(t){this.attachView(t.hostView),this.tick(),this.components.push(t);const r=this._injector.get(Tb,[]);r.push(...this._bootstrapListeners),r.forEach(i=>i(t))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(t=>t()),this._views.slice().forEach(t=>t.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(t){return this._destroyListeners.push(t),()=>Nc(this._destroyListeners,t)}destroy(){if(this._destroyed)throw new q(406,!1);const t=this._injector;t.destroy&&!t.destroyed&&t.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}}return e.\u0275fac=function(t){return new(t||e)(te(Mt),te(Tr),te(Uo))},e.\u0275prov=ee({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function Nc(e,n){const t=e.indexOf(n);t>-1&&e.splice(t,1)}let xa=(()=>{class e{}return e.__NG_ELEMENT_ID__=Sx,e})();function Sx(e){return function Tx(e,n,t){if(Ys(e)&&!t){const r=Ln(e.index,n);return new pa(r,r)}return 47&e.type?new pa(n[nn],n):null}(Xt(),H(),16==(16&e))}class jb{constructor(){}supports(n){return vc(n)}create(n){return new Fx(n)}}const kx=(e,n)=>n;class Fx{constructor(n){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=n||kx}forEachItem(n){let t;for(t=this._itHead;null!==t;t=t._next)n(t)}forEachOperation(n){let t=this._itHead,r=this._removalsHead,i=0,o=null;for(;t||r;){const s=!r||t&&t.currentIndex<$b(r,i,o)?t:r,a=$b(s,i,o),l=s.currentIndex;if(s===r)i--,r=r._nextRemoved;else if(t=t._next,null==s.previousIndex)i++;else{o||(o=[]);const c=a-i,u=l-i;if(c!=u){for(let m=0;m{s=this._trackByFn(i,a),null!==t&&Object.is(t.trackById,s)?(r&&(t=this._verifyReinsertion(t,a,s,i)),Object.is(t.item,a)||this._addIdentityChange(t,a)):(t=this._mismatch(t,a,s,i),r=!0),t=t._next,i++}),this.length=i;return this._truncate(t),this.collection=n,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let n;for(n=this._previousItHead=this._itHead;null!==n;n=n._next)n._nextPrevious=n._next;for(n=this._additionsHead;null!==n;n=n._nextAdded)n.previousIndex=n.currentIndex;for(this._additionsHead=this._additionsTail=null,n=this._movesHead;null!==n;n=n._nextMoved)n.previousIndex=n.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(n,t,r,i){let o;return null===n?o=this._itTail:(o=n._prev,this._remove(n)),null!==(n=null===this._unlinkedRecords?null:this._unlinkedRecords.get(r,null))?(Object.is(n.item,t)||this._addIdentityChange(n,t),this._reinsertAfter(n,o,i)):null!==(n=null===this._linkedRecords?null:this._linkedRecords.get(r,i))?(Object.is(n.item,t)||this._addIdentityChange(n,t),this._moveAfter(n,o,i)):n=this._addAfter(new Rx(t,r),o,i),n}_verifyReinsertion(n,t,r,i){let o=null===this._unlinkedRecords?null:this._unlinkedRecords.get(r,null);return null!==o?n=this._reinsertAfter(o,n._prev,i):n.currentIndex!=i&&(n.currentIndex=i,this._addToMoves(n,i)),n}_truncate(n){for(;null!==n;){const t=n._next;this._addToRemovals(this._unlink(n)),n=t}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(n,t,r){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(n);const i=n._prevRemoved,o=n._nextRemoved;return null===i?this._removalsHead=o:i._nextRemoved=o,null===o?this._removalsTail=i:o._prevRemoved=i,this._insertAfter(n,t,r),this._addToMoves(n,r),n}_moveAfter(n,t,r){return this._unlink(n),this._insertAfter(n,t,r),this._addToMoves(n,r),n}_addAfter(n,t,r){return this._insertAfter(n,t,r),this._additionsTail=null===this._additionsTail?this._additionsHead=n:this._additionsTail._nextAdded=n,n}_insertAfter(n,t,r){const i=null===t?this._itHead:t._next;return n._next=i,n._prev=t,null===i?this._itTail=n:i._prev=n,null===t?this._itHead=n:t._next=n,null===this._linkedRecords&&(this._linkedRecords=new Ub),this._linkedRecords.put(n),n.currentIndex=r,n}_remove(n){return this._addToRemovals(this._unlink(n))}_unlink(n){null!==this._linkedRecords&&this._linkedRecords.remove(n);const t=n._prev,r=n._next;return null===t?this._itHead=r:t._next=r,null===r?this._itTail=t:r._prev=t,n}_addToMoves(n,t){return n.previousIndex===t||(this._movesTail=null===this._movesTail?this._movesHead=n:this._movesTail._nextMoved=n),n}_addToRemovals(n){return null===this._unlinkedRecords&&(this._unlinkedRecords=new Ub),this._unlinkedRecords.put(n),n.currentIndex=null,n._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=n,n._prevRemoved=null):(n._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=n),n}_addIdentityChange(n,t){return n.item=t,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=n:this._identityChangesTail._nextIdentityChange=n,n}}class Rx{constructor(n,t){this.item=n,this.trackById=t,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class Ox{constructor(){this._head=null,this._tail=null}add(n){null===this._head?(this._head=this._tail=n,n._nextDup=null,n._prevDup=null):(this._tail._nextDup=n,n._prevDup=this._tail,n._nextDup=null,this._tail=n)}get(n,t){let r;for(r=this._head;null!==r;r=r._nextDup)if((null===t||t<=r.currentIndex)&&Object.is(r.trackById,n))return r;return null}remove(n){const t=n._prevDup,r=n._nextDup;return null===t?this._head=r:t._nextDup=r,null===r?this._tail=t:r._prevDup=t,null===this._head}}class Ub{constructor(){this.map=new Map}put(n){const t=n.trackById;let r=this.map.get(t);r||(r=new Ox,this.map.set(t,r)),r.add(n)}get(n,t){const i=this.map.get(n);return i?i.get(n,t):null}remove(n){const t=n.trackById;return this.map.get(t).remove(n)&&this.map.delete(t),n}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function $b(e,n,t){const r=e.previousIndex;if(null===r)return r;let i=0;return t&&r{if(t&&t.key===i)this._maybeAddToChanges(t,r),this._appendAfter=t,t=t._next;else{const o=this._getOrCreateRecordForKey(i,r);t=this._insertBeforeOrAppend(t,o)}}),t){t._prev&&(t._prev._next=null),this._removalsHead=t;for(let r=t;null!==r;r=r._nextRemoved)r===this._mapHead&&(this._mapHead=null),this._records.delete(r.key),r._nextRemoved=r._next,r.previousValue=r.currentValue,r.currentValue=null,r._prev=null,r._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(n,t){if(n){const r=n._prev;return t._next=n,t._prev=r,n._prev=t,r&&(r._next=t),n===this._mapHead&&(this._mapHead=t),this._appendAfter=n,n}return this._appendAfter?(this._appendAfter._next=t,t._prev=this._appendAfter):this._mapHead=t,this._appendAfter=t,null}_getOrCreateRecordForKey(n,t){if(this._records.has(n)){const i=this._records.get(n);this._maybeAddToChanges(i,t);const o=i._prev,s=i._next;return o&&(o._next=s),s&&(s._prev=o),i._next=null,i._prev=null,i}const r=new Px(n);return this._records.set(n,r),r.currentValue=t,this._addToAdditions(r),r}_reset(){if(this.isDirty){let n;for(this._previousMapHead=this._mapHead,n=this._previousMapHead;null!==n;n=n._next)n._nextPrevious=n._next;for(n=this._changesHead;null!==n;n=n._nextChanged)n.previousValue=n.currentValue;for(n=this._additionsHead;null!=n;n=n._nextAdded)n.previousValue=n.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(n,t){Object.is(t,n.currentValue)||(n.previousValue=n.currentValue,n.currentValue=t,this._addToChanges(n))}_addToAdditions(n){null===this._additionsHead?this._additionsHead=this._additionsTail=n:(this._additionsTail._nextAdded=n,this._additionsTail=n)}_addToChanges(n){null===this._changesHead?this._changesHead=this._changesTail=n:(this._changesTail._nextChanged=n,this._changesTail=n)}_forEach(n,t){n instanceof Map?n.forEach(t):Object.keys(n).forEach(r=>t(n[r],r))}}class Px{constructor(n){this.key=n,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function Gb(){return new Vc([new jb])}let Vc=(()=>{class e{constructor(t){this.factories=t}static create(t,r){if(null!=r){const i=r.factories.slice();t=t.concat(i)}return new e(t)}static extend(t){return{provide:e,useFactory:r=>e.create(t,r||Gb()),deps:[[e,new na,new ta]]}}find(t){const r=this.factories.find(i=>i.supports(t));if(null!=r)return r;throw new q(901,!1)}}return e.\u0275prov=ee({token:e,providedIn:"root",factory:Gb}),e})();function zb(){return new ka([new Hb])}let ka=(()=>{class e{constructor(t){this.factories=t}static create(t,r){if(r){const i=r.factories.slice();t=t.concat(i)}return new e(t)}static extend(t){return{provide:e,useFactory:r=>e.create(t,r||zb()),deps:[[e,new na,new ta]]}}find(t){const r=this.factories.find(i=>i.supports(t));if(r)return r;throw new q(901,!1)}}return e.\u0275prov=ee({token:e,providedIn:"root",factory:zb}),e})();const Bx=Ab(null,"core",[]);let jx=(()=>{class e{constructor(t){}}return e.\u0275fac=function(t){return new(t||e)(te(Oc))},e.\u0275mod=Kn({type:e}),e.\u0275inj=Rn({}),e})();function cs(e){return"boolean"==typeof e?e:null!=e&&"false"!==e}let Ch=null;function ni(){return Ch}class Hx{}const _n=new ce("DocumentToken");let wh=(()=>{class e{historyGo(t){throw new Error("Not implemented")}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=ee({token:e,factory:function(){return function Gx(){return te(qb)}()},providedIn:"platform"}),e})();const zx=new ce("Location Initialized");let qb=(()=>{class e extends wh{constructor(t){super(),this._doc=t,this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return ni().getBaseHref(this._doc)}onPopState(t){const r=ni().getGlobalEventTarget(this._doc,"window");return r.addEventListener("popstate",t,!1),()=>r.removeEventListener("popstate",t)}onHashChange(t){const r=ni().getGlobalEventTarget(this._doc,"window");return r.addEventListener("hashchange",t,!1),()=>r.removeEventListener("hashchange",t)}get href(){return this._location.href}get protocol(){return this._location.protocol}get hostname(){return this._location.hostname}get port(){return this._location.port}get pathname(){return this._location.pathname}get search(){return this._location.search}get hash(){return this._location.hash}set pathname(t){this._location.pathname=t}pushState(t,r,i){Wb()?this._history.pushState(t,r,i):this._location.hash=i}replaceState(t,r,i){Wb()?this._history.replaceState(t,r,i):this._location.hash=i}forward(){this._history.forward()}back(){this._history.back()}historyGo(t=0){this._history.go(t)}getState(){return this._history.state}}return e.\u0275fac=function(t){return new(t||e)(te(_n))},e.\u0275prov=ee({token:e,factory:function(){return function qx(){return new qb(te(_n))}()},providedIn:"platform"}),e})();function Wb(){return!!window.history.pushState}function Dh(e,n){if(0==e.length)return n;if(0==n.length)return e;let t=0;return e.endsWith("/")&&t++,n.startsWith("/")&&t++,2==t?e+n.substring(1):1==t?e+n:e+"/"+n}function Yb(e){const n=e.match(/#|\?|$/),t=n&&n.index||e.length;return e.slice(0,t-("/"===e[t-1]?1:0))+e.slice(t)}function ri(e){return e&&"?"!==e[0]?"?"+e:e}let ro=(()=>{class e{historyGo(t){throw new Error("Not implemented")}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=ee({token:e,factory:function(){return Fe(Qb)},providedIn:"root"}),e})();const Kb=new ce("appBaseHref");let Qb=(()=>{class e extends ro{constructor(t,r){super(),this._platformLocation=t,this._removeListenerFns=[],this._baseHref=r??this._platformLocation.getBaseHrefFromDOM()??Fe(_n).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(t){this._removeListenerFns.push(this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t))}getBaseHref(){return this._baseHref}prepareExternalUrl(t){return Dh(this._baseHref,t)}path(t=!1){const r=this._platformLocation.pathname+ri(this._platformLocation.search),i=this._platformLocation.hash;return i&&t?`${r}${i}`:r}pushState(t,r,i,o){const s=this.prepareExternalUrl(i+ri(o));this._platformLocation.pushState(t,r,s)}replaceState(t,r,i,o){const s=this.prepareExternalUrl(i+ri(o));this._platformLocation.replaceState(t,r,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(t=0){this._platformLocation.historyGo?.(t)}}return e.\u0275fac=function(t){return new(t||e)(te(wh),te(Kb,8))},e.\u0275prov=ee({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),Wx=(()=>{class e extends ro{constructor(t,r){super(),this._platformLocation=t,this._baseHref="",this._removeListenerFns=[],null!=r&&(this._baseHref=r)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(t){this._removeListenerFns.push(this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t))}getBaseHref(){return this._baseHref}path(t=!1){let r=this._platformLocation.hash;return null==r&&(r="#"),r.length>0?r.substring(1):r}prepareExternalUrl(t){const r=Dh(this._baseHref,t);return r.length>0?"#"+r:r}pushState(t,r,i,o){let s=this.prepareExternalUrl(i+ri(o));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.pushState(t,r,s)}replaceState(t,r,i,o){let s=this.prepareExternalUrl(i+ri(o));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.replaceState(t,r,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(t=0){this._platformLocation.historyGo?.(t)}}return e.\u0275fac=function(t){return new(t||e)(te(wh),te(Kb,8))},e.\u0275prov=ee({token:e,factory:e.\u0275fac}),e})(),Eh=(()=>{class e{constructor(t){this._subject=new ue,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=t;const r=this._locationStrategy.getBaseHref();this._basePath=function Qx(e){if(new RegExp("^(https?:)?//").test(e)){const[,t]=e.split(/\/\/[^\/]+/);return t}return e}(Yb(Xb(r))),this._locationStrategy.onPopState(i=>{this._subject.emit({url:this.path(!0),pop:!0,state:i.state,type:i.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(t=!1){return this.normalize(this._locationStrategy.path(t))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(t,r=""){return this.path()==this.normalize(t+ri(r))}normalize(t){return e.stripTrailingSlash(function Kx(e,n){if(!e||!n.startsWith(e))return n;const t=n.substring(e.length);return""===t||["/",";","?","#"].includes(t[0])?t:n}(this._basePath,Xb(t)))}prepareExternalUrl(t){return t&&"/"!==t[0]&&(t="/"+t),this._locationStrategy.prepareExternalUrl(t)}go(t,r="",i=null){this._locationStrategy.pushState(i,"",t,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+ri(r)),i)}replaceState(t,r="",i=null){this._locationStrategy.replaceState(i,"",t,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+ri(r)),i)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(t=0){this._locationStrategy.historyGo?.(t)}onUrlChange(t){return this._urlChangeListeners.push(t),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(r=>{this._notifyUrlChangeListeners(r.url,r.state)})),()=>{const r=this._urlChangeListeners.indexOf(t);this._urlChangeListeners.splice(r,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(t="",r){this._urlChangeListeners.forEach(i=>i(t,r))}subscribe(t,r,i){return this._subject.subscribe({next:t,error:r,complete:i})}}return e.normalizeQueryParams=ri,e.joinWithSlash=Dh,e.stripTrailingSlash=Yb,e.\u0275fac=function(t){return new(t||e)(te(ro))},e.\u0275prov=ee({token:e,factory:function(){return function Yx(){return new Eh(te(ro))}()},providedIn:"root"}),e})();function Xb(e){return e.replace(/\/index.html$/,"")}var At=(()=>((At=At||{})[At.Format=0]="Format",At[At.Standalone=1]="Standalone",At))(),Pe=(()=>((Pe=Pe||{})[Pe.Narrow=0]="Narrow",Pe[Pe.Abbreviated=1]="Abbreviated",Pe[Pe.Wide=2]="Wide",Pe[Pe.Short=3]="Short",Pe))(),yt=(()=>((yt=yt||{})[yt.Short=0]="Short",yt[yt.Medium=1]="Medium",yt[yt.Long=2]="Long",yt[yt.Full=3]="Full",yt))(),_e=(()=>((_e=_e||{})[_e.Decimal=0]="Decimal",_e[_e.Group=1]="Group",_e[_e.List=2]="List",_e[_e.PercentSign=3]="PercentSign",_e[_e.PlusSign=4]="PlusSign",_e[_e.MinusSign=5]="MinusSign",_e[_e.Exponential=6]="Exponential",_e[_e.SuperscriptingExponent=7]="SuperscriptingExponent",_e[_e.PerMille=8]="PerMille",_e[_e.Infinity=9]="Infinity",_e[_e.NaN=10]="NaN",_e[_e.TimeSeparator=11]="TimeSeparator",_e[_e.CurrencyDecimal=12]="CurrencyDecimal",_e[_e.CurrencyGroup=13]="CurrencyGroup",_e))();function Bc(e,n){return er(gn(e)[oe.DateFormat],n)}function jc(e,n){return er(gn(e)[oe.TimeFormat],n)}function Uc(e,n){return er(gn(e)[oe.DateTimeFormat],n)}function Jn(e,n){const t=gn(e),r=t[oe.NumberSymbols][n];if(typeof r>"u"){if(n===_e.CurrencyDecimal)return t[oe.NumberSymbols][_e.Decimal];if(n===_e.CurrencyGroup)return t[oe.NumberSymbols][_e.Group]}return r}function Jb(e){if(!e[oe.ExtraData])throw new Error(`Missing extra locale data for the locale "${e[oe.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function er(e,n){for(let t=n;t>-1;t--)if(typeof e[t]<"u")return e[t];throw new Error("Locale data API: locale data undefined")}function Th(e){const[n,t]=e.split(":");return{hours:+n,minutes:+t}}const ck=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Fa={},uk=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/;var Gt=(()=>((Gt=Gt||{})[Gt.Short=0]="Short",Gt[Gt.ShortGMT=1]="ShortGMT",Gt[Gt.Long=2]="Long",Gt[Gt.Extended=3]="Extended",Gt))(),be=(()=>((be=be||{})[be.FullYear=0]="FullYear",be[be.Month=1]="Month",be[be.Date=2]="Date",be[be.Hours=3]="Hours",be[be.Minutes=4]="Minutes",be[be.Seconds=5]="Seconds",be[be.FractionalSeconds=6]="FractionalSeconds",be[be.Day=7]="Day",be))(),ke=(()=>((ke=ke||{})[ke.DayPeriods=0]="DayPeriods",ke[ke.Days=1]="Days",ke[ke.Months=2]="Months",ke[ke.Eras=3]="Eras",ke))();function dk(e,n,t,r){let i=function bk(e){if(n1(e))return e;if("number"==typeof e&&!isNaN(e))return new Date(e);if("string"==typeof e){if(e=e.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(e)){const[i,o=1,s=1]=e.split("-").map(a=>+a);return $c(i,o-1,s)}const t=parseFloat(e);if(!isNaN(e-t))return new Date(t);let r;if(r=e.match(ck))return function Ck(e){const n=new Date(0);let t=0,r=0;const i=e[8]?n.setUTCFullYear:n.setFullYear,o=e[8]?n.setUTCHours:n.setHours;e[9]&&(t=Number(e[9]+e[10]),r=Number(e[9]+e[11])),i.call(n,Number(e[1]),Number(e[2])-1,Number(e[3]));const s=Number(e[4]||0)-t,a=Number(e[5]||0)-r,l=Number(e[6]||0),c=Math.floor(1e3*parseFloat("0."+(e[7]||0)));return o.call(n,s,a,l,c),n}(r)}const n=new Date(e);if(!n1(n))throw new Error(`Unable to convert "${e}" into a date`);return n}(e);n=ii(t,n)||n;let a,s=[];for(;n;){if(a=uk.exec(n),!a){s.push(n);break}{s=s.concat(a.slice(1));const u=s.pop();if(!u)break;n=u}}let l=i.getTimezoneOffset();r&&(l=t1(r,l),i=function yk(e,n,t){const r=t?-1:1,i=e.getTimezoneOffset();return function vk(e,n){return(e=new Date(e.getTime())).setMinutes(e.getMinutes()+n),e}(e,r*(t1(n,i)-i))}(i,r,!0));let c="";return s.forEach(u=>{const p=function _k(e){if(Mh[e])return Mh[e];let n;switch(e){case"G":case"GG":case"GGG":n=st(ke.Eras,Pe.Abbreviated);break;case"GGGG":n=st(ke.Eras,Pe.Wide);break;case"GGGGG":n=st(ke.Eras,Pe.Narrow);break;case"y":n=Vt(be.FullYear,1,0,!1,!0);break;case"yy":n=Vt(be.FullYear,2,0,!0,!0);break;case"yyy":n=Vt(be.FullYear,3,0,!1,!0);break;case"yyyy":n=Vt(be.FullYear,4,0,!1,!0);break;case"Y":n=qc(1);break;case"YY":n=qc(2,!0);break;case"YYY":n=qc(3);break;case"YYYY":n=qc(4);break;case"M":case"L":n=Vt(be.Month,1,1);break;case"MM":case"LL":n=Vt(be.Month,2,1);break;case"MMM":n=st(ke.Months,Pe.Abbreviated);break;case"MMMM":n=st(ke.Months,Pe.Wide);break;case"MMMMM":n=st(ke.Months,Pe.Narrow);break;case"LLL":n=st(ke.Months,Pe.Abbreviated,At.Standalone);break;case"LLLL":n=st(ke.Months,Pe.Wide,At.Standalone);break;case"LLLLL":n=st(ke.Months,Pe.Narrow,At.Standalone);break;case"w":n=Ih(1);break;case"ww":n=Ih(2);break;case"W":n=Ih(1,!0);break;case"d":n=Vt(be.Date,1);break;case"dd":n=Vt(be.Date,2);break;case"c":case"cc":n=Vt(be.Day,1);break;case"ccc":n=st(ke.Days,Pe.Abbreviated,At.Standalone);break;case"cccc":n=st(ke.Days,Pe.Wide,At.Standalone);break;case"ccccc":n=st(ke.Days,Pe.Narrow,At.Standalone);break;case"cccccc":n=st(ke.Days,Pe.Short,At.Standalone);break;case"E":case"EE":case"EEE":n=st(ke.Days,Pe.Abbreviated);break;case"EEEE":n=st(ke.Days,Pe.Wide);break;case"EEEEE":n=st(ke.Days,Pe.Narrow);break;case"EEEEEE":n=st(ke.Days,Pe.Short);break;case"a":case"aa":case"aaa":n=st(ke.DayPeriods,Pe.Abbreviated);break;case"aaaa":n=st(ke.DayPeriods,Pe.Wide);break;case"aaaaa":n=st(ke.DayPeriods,Pe.Narrow);break;case"b":case"bb":case"bbb":n=st(ke.DayPeriods,Pe.Abbreviated,At.Standalone,!0);break;case"bbbb":n=st(ke.DayPeriods,Pe.Wide,At.Standalone,!0);break;case"bbbbb":n=st(ke.DayPeriods,Pe.Narrow,At.Standalone,!0);break;case"B":case"BB":case"BBB":n=st(ke.DayPeriods,Pe.Abbreviated,At.Format,!0);break;case"BBBB":n=st(ke.DayPeriods,Pe.Wide,At.Format,!0);break;case"BBBBB":n=st(ke.DayPeriods,Pe.Narrow,At.Format,!0);break;case"h":n=Vt(be.Hours,1,-12);break;case"hh":n=Vt(be.Hours,2,-12);break;case"H":n=Vt(be.Hours,1);break;case"HH":n=Vt(be.Hours,2);break;case"m":n=Vt(be.Minutes,1);break;case"mm":n=Vt(be.Minutes,2);break;case"s":n=Vt(be.Seconds,1);break;case"ss":n=Vt(be.Seconds,2);break;case"S":n=Vt(be.FractionalSeconds,1);break;case"SS":n=Vt(be.FractionalSeconds,2);break;case"SSS":n=Vt(be.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":n=Gc(Gt.Short);break;case"ZZZZZ":n=Gc(Gt.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":n=Gc(Gt.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":n=Gc(Gt.Long);break;default:return null}return Mh[e]=n,n}(u);c+=p?p(i,t,l):"''"===u?"'":u.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),c}function $c(e,n,t){const r=new Date(0);return r.setFullYear(e,n,t),r.setHours(0,0,0),r}function ii(e,n){const t=function Xx(e){return gn(e)[oe.LocaleId]}(e);if(Fa[t]=Fa[t]||{},Fa[t][n])return Fa[t][n];let r="";switch(n){case"shortDate":r=Bc(e,yt.Short);break;case"mediumDate":r=Bc(e,yt.Medium);break;case"longDate":r=Bc(e,yt.Long);break;case"fullDate":r=Bc(e,yt.Full);break;case"shortTime":r=jc(e,yt.Short);break;case"mediumTime":r=jc(e,yt.Medium);break;case"longTime":r=jc(e,yt.Long);break;case"fullTime":r=jc(e,yt.Full);break;case"short":const i=ii(e,"shortTime"),o=ii(e,"shortDate");r=Hc(Uc(e,yt.Short),[i,o]);break;case"medium":const s=ii(e,"mediumTime"),a=ii(e,"mediumDate");r=Hc(Uc(e,yt.Medium),[s,a]);break;case"long":const l=ii(e,"longTime"),c=ii(e,"longDate");r=Hc(Uc(e,yt.Long),[l,c]);break;case"full":const u=ii(e,"fullTime"),p=ii(e,"fullDate");r=Hc(Uc(e,yt.Full),[u,p])}return r&&(Fa[t][n]=r),r}function Hc(e,n){return n&&(e=e.replace(/\{([^}]+)}/g,function(t,r){return null!=n&&r in n?n[r]:t})),e}function gr(e,n,t="-",r,i){let o="";(e<0||i&&e<=0)&&(i?e=1-e:(e=-e,o=t));let s=String(e);for(;s.length0||a>-t)&&(a+=t),e===be.Hours)0===a&&-12===t&&(a=12);else if(e===be.FractionalSeconds)return function fk(e,n){return gr(e,3).substring(0,n)}(a,n);const l=Jn(s,_e.MinusSign);return gr(a,n,l,r,i)}}function st(e,n,t=At.Format,r=!1){return function(i,o){return function pk(e,n,t,r,i,o){switch(t){case ke.Months:return function ek(e,n,t){const r=gn(e),o=er([r[oe.MonthsFormat],r[oe.MonthsStandalone]],n);return er(o,t)}(n,i,r)[e.getMonth()];case ke.Days:return function Jx(e,n,t){const r=gn(e),o=er([r[oe.DaysFormat],r[oe.DaysStandalone]],n);return er(o,t)}(n,i,r)[e.getDay()];case ke.DayPeriods:const s=e.getHours(),a=e.getMinutes();if(o){const c=function ik(e){const n=gn(e);return Jb(n),(n[oe.ExtraData][2]||[]).map(r=>"string"==typeof r?Th(r):[Th(r[0]),Th(r[1])])}(n),u=function ok(e,n,t){const r=gn(e);Jb(r);const o=er([r[oe.ExtraData][0],r[oe.ExtraData][1]],n)||[];return er(o,t)||[]}(n,i,r),p=c.findIndex(m=>{if(Array.isArray(m)){const[_,E]=m,N=s>=_.hours&&a>=_.minutes,B=s0?Math.floor(i/60):Math.ceil(i/60);switch(e){case Gt.Short:return(i>=0?"+":"")+gr(s,2,o)+gr(Math.abs(i%60),2,o);case Gt.ShortGMT:return"GMT"+(i>=0?"+":"")+gr(s,1,o);case Gt.Long:return"GMT"+(i>=0?"+":"")+gr(s,2,o)+":"+gr(Math.abs(i%60),2,o);case Gt.Extended:return 0===r?"Z":(i>=0?"+":"")+gr(s,2,o)+":"+gr(Math.abs(i%60),2,o);default:throw new Error(`Unknown zone width "${e}"`)}}}const gk=0,zc=4;function e1(e){return $c(e.getFullYear(),e.getMonth(),e.getDate()+(zc-e.getDay()))}function Ih(e,n=!1){return function(t,r){let i;if(n){const o=new Date(t.getFullYear(),t.getMonth(),1).getDay()-1,s=t.getDate();i=1+Math.floor((s+o)/7)}else{const o=e1(t),s=function mk(e){const n=$c(e,gk,1).getDay();return $c(e,0,1+(n<=zc?zc:zc+7)-n)}(o.getFullYear()),a=o.getTime()-s.getTime();i=1+Math.round(a/6048e5)}return gr(i,e,Jn(r,_e.MinusSign))}}function qc(e,n=!1){return function(t,r){return gr(e1(t).getFullYear(),e,Jn(r,_e.MinusSign),n)}}const Mh={};function t1(e,n){e=e.replace(/:/g,"");const t=Date.parse("Jan 01, 1970 00:00:00 "+e)/6e4;return isNaN(t)?n:t}function n1(e){return e instanceof Date&&!isNaN(e.valueOf())}function s1(e,n){n=encodeURIComponent(n);for(const t of e.split(";")){const r=t.indexOf("="),[i,o]=-1==r?[t,""]:[t.slice(0,r),t.slice(r+1)];if(i.trim()===n)return decodeURIComponent(o)}return null}const Oh=/\s+/,a1=[];let l1=(()=>{class e{constructor(t,r,i,o){this._iterableDiffers=t,this._keyValueDiffers=r,this._ngEl=i,this._renderer=o,this.initialClasses=a1,this.stateMap=new Map}set klass(t){this.initialClasses=null!=t?t.trim().split(Oh):a1}set ngClass(t){this.rawClass="string"==typeof t?t.trim().split(Oh):t}ngDoCheck(){for(const r of this.initialClasses)this._updateState(r,!0);const t=this.rawClass;if(Array.isArray(t)||t instanceof Set)for(const r of t)this._updateState(r,!0);else if(null!=t)for(const r of Object.keys(t))this._updateState(r,Boolean(t[r]));this._applyStateDiff()}_updateState(t,r){const i=this.stateMap.get(t);void 0!==i?(i.enabled!==r&&(i.changed=!0,i.enabled=r),i.touched=!0):this.stateMap.set(t,{enabled:r,changed:!0,touched:!0})}_applyStateDiff(){for(const t of this.stateMap){const r=t[0],i=t[1];i.changed?(this._toggleClass(r,i.enabled),i.changed=!1):i.touched||(i.enabled&&this._toggleClass(r,!1),this.stateMap.delete(r)),i.touched=!1}}_toggleClass(t,r){(t=t.trim()).length>0&&t.split(Oh).forEach(i=>{r?this._renderer.addClass(this._ngEl.nativeElement,i):this._renderer.removeClass(this._ngEl.nativeElement,i)})}}return e.\u0275fac=function(t){return new(t||e)(O(Vc),O(ka),O(Tn),O(Qr))},e.\u0275dir=Ce({type:e,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"},standalone:!0}),e})();class Ok{constructor(n,t,r,i){this.$implicit=n,this.ngForOf=t,this.index=r,this.count=i}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 Mn=(()=>{class e{set ngForOf(t){this._ngForOf=t,this._ngForOfDirty=!0}set ngForTrackBy(t){this._trackByFn=t}get ngForTrackBy(){return this._trackByFn}constructor(t,r,i){this._viewContainer=t,this._template=r,this._differs=i,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(t){t&&(this._template=t)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const t=this._ngForOf;!this._differ&&t&&(this._differ=this._differs.find(t).create(this.ngForTrackBy))}if(this._differ){const t=this._differ.diff(this._ngForOf);t&&this._applyChanges(t)}}_applyChanges(t){const r=this._viewContainer;t.forEachOperation((i,o,s)=>{if(null==i.previousIndex)r.createEmbeddedView(this._template,new Ok(i.item,this._ngForOf,-1,-1),null===s?void 0:s);else if(null==s)r.remove(null===o?void 0:o);else if(null!==o){const a=r.get(o);r.move(a,s),d1(a,i)}});for(let i=0,o=r.length;i{d1(r.get(i.currentIndex),i)})}static ngTemplateContextGuard(t,r){return!0}}return e.\u0275fac=function(t){return new(t||e)(O(hr),O(Jr),O(Vc))},e.\u0275dir=Ce({type:e,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0}),e})();function d1(e,n){e.context.$implicit=n.item}let He=(()=>{class e{constructor(t,r){this._viewContainer=t,this._context=new Pk,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=r}set ngIf(t){this._context.$implicit=this._context.ngIf=t,this._updateView()}set ngIfThen(t){f1("ngIfThen",t),this._thenTemplateRef=t,this._thenViewRef=null,this._updateView()}set ngIfElse(t){f1("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,r){return!0}}return e.\u0275fac=function(t){return new(t||e)(O(hr),O(Jr))},e.\u0275dir=Ce({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0}),e})();class Pk{constructor(){this.$implicit=null,this.ngIf=null}}function f1(e,n){if(n&&!n.createEmbeddedView)throw new Error(`${e} must be a TemplateRef, but received '${ne(n)}'.`)}function mr(e,n){return new q(2100,!1)}class Bk{createSubscription(n,t){return n.subscribe({next:t,error:r=>{throw r}})}dispose(n){n.unsubscribe()}}class jk{createSubscription(n,t){return n.then(t,r=>{throw r})}dispose(n){}}const Uk=new jk,$k=new Bk;let p1=(()=>{class e{constructor(t){this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null,this._ref=t}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}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,r=>this._updateLatestValue(t,r))}_selectStrategy(t){if(_a(t))return Uk;if(uv(t))return $k;throw mr()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(t,r){t===this._obj&&(this._latestValue=r,this._ref.markForCheck())}}return e.\u0275fac=function(t){return new(t||e)(O(xa,16))},e.\u0275pipe=dn({name:"async",type:e,pure:!1,standalone:!0}),e})();const Yk=new ce("DATE_PIPE_DEFAULT_TIMEZONE"),Kk=new ce("DATE_PIPE_DEFAULT_OPTIONS");let Lh=(()=>{class e{constructor(t,r,i){this.locale=t,this.defaultTimezone=r,this.defaultOptions=i}transform(t,r,i,o){if(null==t||""===t||t!=t)return null;try{return dk(t,r??this.defaultOptions?.dateFormat??"mediumDate",o||this.locale,i??this.defaultOptions?.timezone??this.defaultTimezone??void 0)}catch(s){throw mr()}}}return e.\u0275fac=function(t){return new(t||e)(O(ei,16),O(Yk,24),O(Kk,24))},e.\u0275pipe=dn({name:"date",type:e,pure:!0,standalone:!0}),e})(),o2=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Kn({type:e}),e.\u0275inj=Rn({}),e})();let c2=(()=>{class e{}return e.\u0275prov=ee({token:e,providedIn:"root",factory:()=>new u2(te(_n),window)}),e})();class u2{constructor(n,t){this.document=n,this.window=t,this.offset=()=>[0,0]}setOffset(n){this.offset=Array.isArray(n)?()=>n:n}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(n){this.supportsScrolling()&&this.window.scrollTo(n[0],n[1])}scrollToAnchor(n){if(!this.supportsScrolling())return;const t=function d2(e,n){const t=e.getElementById(n)||e.getElementsByName(n)[0];if(t)return t;if("function"==typeof e.createTreeWalker&&e.body&&(e.body.createShadowRoot||e.body.attachShadow)){const r=e.createTreeWalker(e.body,NodeFilter.SHOW_ELEMENT);let i=r.currentNode;for(;i;){const o=i.shadowRoot;if(o){const s=o.getElementById(n)||o.querySelector(`[name="${n}"]`);if(s)return s}i=r.nextNode()}}return null}(this.document,n);t&&(this.scrollToElement(t),t.focus())}setHistoryScrollRestoration(n){if(this.supportScrollRestoration()){const t=this.window.history;t&&t.scrollRestoration&&(t.scrollRestoration=n)}}scrollToElement(n){const t=n.getBoundingClientRect(),r=t.left+this.window.pageXOffset,i=t.top+this.window.pageYOffset,o=this.offset();this.window.scrollTo(r-o[0],i-o[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const n=_1(this.window.history)||_1(Object.getPrototypeOf(this.window.history));return!(!n||!n.writable&&!n.set)}catch{return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch{return!1}}}function _1(e){return Object.getOwnPropertyDescriptor(e,"scrollRestoration")}class v1{}class V2 extends Hx{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class $h extends V2{static makeCurrent(){!function $x(e){Ch||(Ch=e)}(new $h)}onAndCancel(n,t,r){return n.addEventListener(t,r,!1),()=>{n.removeEventListener(t,r,!1)}}dispatchEvent(n,t){n.dispatchEvent(t)}remove(n){n.parentNode&&n.parentNode.removeChild(n)}createElement(n,t){return(t=t||this.getDefaultDocument()).createElement(n)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(n){return n.nodeType===Node.ELEMENT_NODE}isShadowRoot(n){return n instanceof DocumentFragment}getGlobalEventTarget(n,t){return"window"===t?window:"document"===t?n:"body"===t?n.body:null}getBaseHref(n){const t=function B2(){return Na=Na||document.querySelector("base"),Na?Na.getAttribute("href"):null}();return null==t?null:function j2(e){Qc=Qc||document.createElement("a"),Qc.setAttribute("href",e);const n=Qc.pathname;return"/"===n.charAt(0)?n:`/${n}`}(t)}resetBaseElement(){Na=null}getUserAgent(){return window.navigator.userAgent}getCookie(n){return s1(document.cookie,n)}}let Qc,Na=null;const D1=new ce("TRANSITION_ID"),$2=[{provide:kc,useFactory:function U2(e,n,t){return()=>{t.get(Fc).donePromise.then(()=>{const r=ni(),i=n.querySelectorAll(`style[ng-transition="${e}"]`);for(let o=0;o{class e{build(){return new XMLHttpRequest}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=ee({token:e,factory:e.\u0275fac}),e})();const Xc=new ce("EventManagerPlugins");let Zc=(()=>{class e{constructor(t,r){this._zone=r,this._eventNameToPlugin=new Map,t.forEach(i=>{i.manager=this}),this._plugins=t.slice().reverse()}addEventListener(t,r,i){return this._findPluginFor(r).addEventListener(t,r,i)}addGlobalEventListener(t,r,i){return this._findPluginFor(r).addGlobalEventListener(t,r,i)}getZone(){return this._zone}_findPluginFor(t){const r=this._eventNameToPlugin.get(t);if(r)return r;const i=this._plugins;for(let o=0;o{class e{constructor(){this.usageCount=new Map}addStyles(t){for(const r of t)1===this.changeUsageCount(r,1)&&this.onStyleAdded(r)}removeStyles(t){for(const r of t)0===this.changeUsageCount(r,-1)&&this.onStyleRemoved(r)}onStyleRemoved(t){}onStyleAdded(t){}getAllStyles(){return this.usageCount.keys()}changeUsageCount(t,r){const i=this.usageCount;let o=i.get(t)??0;return o+=r,o>0?i.set(t,o):i.delete(t),o}ngOnDestroy(){for(const t of this.getAllStyles())this.onStyleRemoved(t);this.usageCount.clear()}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=ee({token:e,factory:e.\u0275fac}),e})(),Pa=(()=>{class e extends S1{constructor(t){super(),this.doc=t,this.styleRef=new Map,this.hostNodes=new Set,this.resetHostNodes()}onStyleAdded(t){for(const r of this.hostNodes)this.addStyleToHost(r,t)}onStyleRemoved(t){const r=this.styleRef;r.get(t)?.forEach(o=>o.remove()),r.delete(t)}ngOnDestroy(){super.ngOnDestroy(),this.styleRef.clear(),this.resetHostNodes()}addHost(t){this.hostNodes.add(t);for(const r of this.getAllStyles())this.addStyleToHost(t,r)}removeHost(t){this.hostNodes.delete(t)}addStyleToHost(t,r){const i=this.doc.createElement("style");i.textContent=r,t.appendChild(i);const o=this.styleRef.get(r);o?o.push(i):this.styleRef.set(r,[i])}resetHostNodes(){const t=this.hostNodes;t.clear(),t.add(this.doc.head)}}return e.\u0275fac=function(t){return new(t||e)(te(_n))},e.\u0275prov=ee({token:e,factory:e.\u0275fac}),e})();const Hh={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/",math:"http://www.w3.org/1998/MathML/"},Gh=/%COMP%/g,M1=new ce("RemoveStylesOnCompDestory",{providedIn:"root",factory:()=>!1});function A1(e,n){return n.flat(100).map(t=>t.replace(Gh,e))}function x1(e){return n=>{if("__ngUnwrap__"===n)return e;!1===e(n)&&(n.preventDefault(),n.returnValue=!1)}}let zh=(()=>{class e{constructor(t,r,i,o){this.eventManager=t,this.sharedStylesHost=r,this.appId=i,this.removeStylesOnCompDestory=o,this.rendererByCompId=new Map,this.defaultRenderer=new qh(t)}createRenderer(t,r){if(!t||!r)return this.defaultRenderer;const i=this.getOrCreateRenderer(t,r);return i instanceof R1?i.applyToHost(t):i instanceof Wh&&i.applyStyles(),i}getOrCreateRenderer(t,r){const i=this.rendererByCompId;let o=i.get(r.id);if(!o){const s=this.eventManager,a=this.sharedStylesHost,l=this.removeStylesOnCompDestory;switch(r.encapsulation){case wr.Emulated:o=new R1(s,a,r,this.appId,l);break;case wr.ShadowDom:return new X2(s,a,t,r);default:o=new Wh(s,a,r,l)}o.onDestroy=()=>i.delete(r.id),i.set(r.id,o)}return o}ngOnDestroy(){this.rendererByCompId.clear()}begin(){}end(){}}return e.\u0275fac=function(t){return new(t||e)(te(Zc),te(Pa),te(Aa),te(M1))},e.\u0275prov=ee({token:e,factory:e.\u0275fac}),e})();class qh{constructor(n){this.eventManager=n,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(n,t){return t?document.createElementNS(Hh[t]||t,n):document.createElement(n)}createComment(n){return document.createComment(n)}createText(n){return document.createTextNode(n)}appendChild(n,t){(F1(n)?n.content:n).appendChild(t)}insertBefore(n,t,r){n&&(F1(n)?n.content:n).insertBefore(t,r)}removeChild(n,t){n&&n.removeChild(t)}selectRootElement(n,t){let r="string"==typeof n?document.querySelector(n):n;if(!r)throw new Error(`The selector "${n}" did not match any elements`);return t||(r.textContent=""),r}parentNode(n){return n.parentNode}nextSibling(n){return n.nextSibling}setAttribute(n,t,r,i){if(i){t=i+":"+t;const o=Hh[i];o?n.setAttributeNS(o,t,r):n.setAttribute(t,r)}else n.setAttribute(t,r)}removeAttribute(n,t,r){if(r){const i=Hh[r];i?n.removeAttributeNS(i,t):n.removeAttribute(`${r}:${t}`)}else n.removeAttribute(t)}addClass(n,t){n.classList.add(t)}removeClass(n,t){n.classList.remove(t)}setStyle(n,t,r,i){i&(En.DashCase|En.Important)?n.style.setProperty(t,r,i&En.Important?"important":""):n.style[t]=r}removeStyle(n,t,r){r&En.DashCase?n.style.removeProperty(t):n.style[t]=""}setProperty(n,t,r){n[t]=r}setValue(n,t){n.nodeValue=t}listen(n,t,r){return"string"==typeof n?this.eventManager.addGlobalEventListener(n,t,x1(r)):this.eventManager.addEventListener(n,t,x1(r))}}function F1(e){return"TEMPLATE"===e.tagName&&void 0!==e.content}class X2 extends qh{constructor(n,t,r,i){super(n),this.sharedStylesHost=t,this.hostEl=r,this.shadowRoot=r.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const o=A1(i.id,i.styles);for(const s of o){const a=document.createElement("style");a.textContent=s,this.shadowRoot.appendChild(a)}}nodeOrShadowRoot(n){return n===this.hostEl?this.shadowRoot:n}appendChild(n,t){return super.appendChild(this.nodeOrShadowRoot(n),t)}insertBefore(n,t,r){return super.insertBefore(this.nodeOrShadowRoot(n),t,r)}removeChild(n,t){return super.removeChild(this.nodeOrShadowRoot(n),t)}parentNode(n){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(n)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class Wh extends qh{constructor(n,t,r,i,o=r.id){super(n),this.sharedStylesHost=t,this.removeStylesOnCompDestory=i,this.rendererUsageCount=0,this.styles=A1(o,r.styles)}applyStyles(){this.sharedStylesHost.addStyles(this.styles),this.rendererUsageCount++}destroy(){this.removeStylesOnCompDestory&&(this.sharedStylesHost.removeStyles(this.styles),this.rendererUsageCount--,0===this.rendererUsageCount&&this.onDestroy?.())}}class R1 extends Wh{constructor(n,t,r,i,o){const s=i+"-"+r.id;super(n,t,r,o,s),this.contentAttr=function Y2(e){return"_ngcontent-%COMP%".replace(Gh,e)}(s),this.hostAttr=function K2(e){return"_nghost-%COMP%".replace(Gh,e)}(s)}applyToHost(n){this.applyStyles(),this.setAttribute(n,this.hostAttr,"")}createElement(n,t){const r=super.createElement(n,t);return super.setAttribute(r,this.contentAttr,""),r}}let Z2=(()=>{class e extends E1{constructor(t){super(t)}supports(t){return!0}addEventListener(t,r,i){return t.addEventListener(r,i,!1),()=>this.removeEventListener(t,r,i)}removeEventListener(t,r,i){return t.removeEventListener(r,i)}}return e.\u0275fac=function(t){return new(t||e)(te(_n))},e.\u0275prov=ee({token:e,factory:e.\u0275fac}),e})();const O1=["alt","control","meta","shift"],J2={"\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"},eF={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey};let tF=(()=>{class e extends E1{constructor(t){super(t)}supports(t){return null!=e.parseEventName(t)}addEventListener(t,r,i){const o=e.parseEventName(r),s=e.eventCallback(o.fullKey,i,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>ni().onAndCancel(t,o.domEventName,s))}static parseEventName(t){const r=t.toLowerCase().split("."),i=r.shift();if(0===r.length||"keydown"!==i&&"keyup"!==i)return null;const o=e._normalizeKey(r.pop());let s="",a=r.indexOf("code");if(a>-1&&(r.splice(a,1),s="code."),O1.forEach(c=>{const u=r.indexOf(c);u>-1&&(r.splice(u,1),s+=c+".")}),s+=o,0!=r.length||0===o.length)return null;const l={};return l.domEventName=i,l.fullKey=s,l}static matchEventFullKeyCode(t,r){let i=J2[t.key]||t.key,o="";return r.indexOf("code.")>-1&&(i=t.code,o="code."),!(null==i||!i)&&(i=i.toLowerCase()," "===i?i="space":"."===i&&(i="dot"),O1.forEach(s=>{s!==i&&(0,eF[s])(t)&&(o+=s+".")}),o+=i,o===r)}static eventCallback(t,r,i){return o=>{e.matchEventFullKeyCode(o,t)&&i.runGuarded(()=>r(o))}}static _normalizeKey(t){return"esc"===t?"escape":t}}return e.\u0275fac=function(t){return new(t||e)(te(_n))},e.\u0275prov=ee({token:e,factory:e.\u0275fac}),e})();const oF=Ab(Bx,"browser",[{provide:lh,useValue:"browser"},{provide:vb,useValue:function nF(){$h.makeCurrent()},multi:!0},{provide:_n,useFactory:function iF(){return function qE(e){Qd=e}(document),document},deps:[]}]),L1=new ce(""),V1=[{provide:Rc,useClass:class H2{addToWindow(n){ft.getAngularTestability=(r,i=!0)=>{const o=n.findTestabilityInTree(r,i);if(null==o)throw new Error("Could not find testability for element.");return o},ft.getAllAngularTestabilities=()=>n.getAllTestabilities(),ft.getAllAngularRootElements=()=>n.getAllRootElements(),ft.frameworkStabilizers||(ft.frameworkStabilizers=[]),ft.frameworkStabilizers.push(r=>{const i=ft.getAllAngularTestabilities();let o=i.length,s=!1;const a=function(l){s=s||l,o--,0==o&&r(s)};i.forEach(function(l){l.whenStable(a)})})}findTestabilityInTree(n,t,r){return null==t?null:n.getTestability(t)??(r?ni().isShadowRoot(t)?this.findTestabilityInTree(n,t.host,!0):this.findTestabilityInTree(n,t.parentElement,!0):null)}},deps:[]},{provide:Eb,useClass:fh,deps:[Mt,hh,Rc]},{provide:fh,useClass:fh,deps:[Mt,hh,Rc]}],B1=[{provide:af,useValue:"root"},{provide:Uo,useFactory:function rF(){return new Uo},deps:[]},{provide:Xc,useClass:Z2,multi:!0,deps:[_n,Mt,lh]},{provide:Xc,useClass:tF,multi:!0,deps:[_n]},{provide:zh,useClass:zh,deps:[Zc,Pa,Aa,M1]},{provide:p_,useExisting:zh},{provide:S1,useExisting:Pa},{provide:Pa,useClass:Pa,deps:[_n]},{provide:Zc,useClass:Zc,deps:[Xc,Mt]},{provide:v1,useClass:G2,deps:[]},[]];let sF=(()=>{class e{constructor(t){}static withServerTransition(t){return{ngModule:e,providers:[{provide:Aa,useValue:t.appId},{provide:D1,useExisting:Aa},$2]}}}return e.\u0275fac=function(t){return new(t||e)(te(L1,12))},e.\u0275mod=Kn({type:e}),e.\u0275inj=Rn({providers:[...B1,...V1],imports:[o2,jx]}),e})(),j1=(()=>{class e{constructor(t){this._doc=t}getTitle(){return this._doc.title}setTitle(t){this._doc.title=t||""}}return e.\u0275fac=function(t){return new(t||e)(te(_n))},e.\u0275prov=ee({token:e,factory:function(t){let r=null;return r=t?new t:function lF(){return new j1(te(_n))}(),r},providedIn:"root"}),e})();function de(...e){return ot(e,X(e))}function oi(e,n){return Be(n)?ae(e,n,1):ae(e,1)}function tr(e,n){return St((t,r)=>{let i=0;t.subscribe(ut(r,o=>e.call(n,o,i++)&&r.next(o)))})}typeof window<"u"&&window;class Jc{}class Qh{}class si{constructor(n){this.normalizedNames=new Map,this.lazyUpdate=null,n?this.lazyInit="string"==typeof n?()=>{this.headers=new Map,n.split("\n").forEach(t=>{const r=t.indexOf(":");if(r>0){const i=t.slice(0,r),o=i.toLowerCase(),s=t.slice(r+1).trim();this.maybeSetNormalizedName(i,o),this.headers.has(o)?this.headers.get(o).push(s):this.headers.set(o,[s])}})}:()=>{this.headers=new Map,Object.keys(n).forEach(t=>{let r=n[t];const i=t.toLowerCase();"string"==typeof r&&(r=[r]),r.length>0&&(this.headers.set(i,r),this.maybeSetNormalizedName(t,i))})}:this.headers=new Map}has(n){return this.init(),this.headers.has(n.toLowerCase())}get(n){this.init();const t=this.headers.get(n.toLowerCase());return t&&t.length>0?t[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(n){return this.init(),this.headers.get(n.toLowerCase())||null}append(n,t){return this.clone({name:n,value:t,op:"a"})}set(n,t){return this.clone({name:n,value:t,op:"s"})}delete(n,t){return this.clone({name:n,value:t,op:"d"})}maybeSetNormalizedName(n,t){this.normalizedNames.has(t)||this.normalizedNames.set(t,n)}init(){this.lazyInit&&(this.lazyInit instanceof si?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(n=>this.applyUpdate(n)),this.lazyUpdate=null))}copyFrom(n){n.init(),Array.from(n.headers.keys()).forEach(t=>{this.headers.set(t,n.headers.get(t)),this.normalizedNames.set(t,n.normalizedNames.get(t))})}clone(n){const t=new si;return t.lazyInit=this.lazyInit&&this.lazyInit instanceof si?this.lazyInit:this,t.lazyUpdate=(this.lazyUpdate||[]).concat([n]),t}applyUpdate(n){const t=n.name.toLowerCase();switch(n.op){case"a":case"s":let r=n.value;if("string"==typeof r&&(r=[r]),0===r.length)return;this.maybeSetNormalizedName(n.name,t);const i=("a"===n.op?this.headers.get(t):void 0)||[];i.push(...r),this.headers.set(t,i);break;case"d":const o=n.value;if(o){let s=this.headers.get(t);if(!s)return;s=s.filter(a=>-1===o.indexOf(a)),0===s.length?(this.headers.delete(t),this.normalizedNames.delete(t)):this.headers.set(t,s)}else this.headers.delete(t),this.normalizedNames.delete(t)}}forEach(n){this.init(),Array.from(this.normalizedNames.keys()).forEach(t=>n(this.normalizedNames.get(t),this.headers.get(t)))}}class pF{encodeKey(n){return H1(n)}encodeValue(n){return H1(n)}decodeKey(n){return decodeURIComponent(n)}decodeValue(n){return decodeURIComponent(n)}}const mF=/%(\d[a-f0-9])/gi,_F={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function H1(e){return encodeURIComponent(e).replace(mF,(n,t)=>_F[t]??n)}function eu(e){return`${e}`}class Si{constructor(n={}){if(this.updates=null,this.cloneFrom=null,this.encoder=n.encoder||new pF,n.fromString){if(n.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function gF(e,n){const t=new Map;return e.length>0&&e.replace(/^\?/,"").split("&").forEach(i=>{const o=i.indexOf("="),[s,a]=-1==o?[n.decodeKey(i),""]:[n.decodeKey(i.slice(0,o)),n.decodeValue(i.slice(o+1))],l=t.get(s)||[];l.push(a),t.set(s,l)}),t}(n.fromString,this.encoder)}else n.fromObject?(this.map=new Map,Object.keys(n.fromObject).forEach(t=>{const r=n.fromObject[t],i=Array.isArray(r)?r.map(eu):[eu(r)];this.map.set(t,i)})):this.map=null}has(n){return this.init(),this.map.has(n)}get(n){this.init();const t=this.map.get(n);return t?t[0]:null}getAll(n){return this.init(),this.map.get(n)||null}keys(){return this.init(),Array.from(this.map.keys())}append(n,t){return this.clone({param:n,value:t,op:"a"})}appendAll(n){const t=[];return Object.keys(n).forEach(r=>{const i=n[r];Array.isArray(i)?i.forEach(o=>{t.push({param:r,value:o,op:"a"})}):t.push({param:r,value:i,op:"a"})}),this.clone(t)}set(n,t){return this.clone({param:n,value:t,op:"s"})}delete(n,t){return this.clone({param:n,value:t,op:"d"})}toString(){return this.init(),this.keys().map(n=>{const t=this.encoder.encodeKey(n);return this.map.get(n).map(r=>t+"="+this.encoder.encodeValue(r)).join("&")}).filter(n=>""!==n).join("&")}clone(n){const t=new Si({encoder:this.encoder});return t.cloneFrom=this.cloneFrom||this,t.updates=(this.updates||[]).concat(n),t}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(n=>this.map.set(n,this.cloneFrom.map.get(n))),this.updates.forEach(n=>{switch(n.op){case"a":case"s":const t=("a"===n.op?this.map.get(n.param):void 0)||[];t.push(eu(n.value)),this.map.set(n.param,t);break;case"d":if(void 0===n.value){this.map.delete(n.param);break}{let r=this.map.get(n.param)||[];const i=r.indexOf(eu(n.value));-1!==i&&r.splice(i,1),r.length>0?this.map.set(n.param,r):this.map.delete(n.param)}}}),this.cloneFrom=this.updates=null)}}class vF{constructor(){this.map=new Map}set(n,t){return this.map.set(n,t),this}get(n){return this.map.has(n)||this.map.set(n,n.defaultValue()),this.map.get(n)}delete(n){return this.map.delete(n),this}has(n){return this.map.has(n)}keys(){return this.map.keys()}}function G1(e){return typeof ArrayBuffer<"u"&&e instanceof ArrayBuffer}function z1(e){return typeof Blob<"u"&&e instanceof Blob}function q1(e){return typeof FormData<"u"&&e instanceof FormData}class La{constructor(n,t,r,i){let o;if(this.url=t,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=n.toUpperCase(),function yF(e){switch(e){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||i?(this.body=void 0!==r?r:null,o=i):o=r,o&&(this.reportProgress=!!o.reportProgress,this.withCredentials=!!o.withCredentials,o.responseType&&(this.responseType=o.responseType),o.headers&&(this.headers=o.headers),o.context&&(this.context=o.context),o.params&&(this.params=o.params)),this.headers||(this.headers=new si),this.context||(this.context=new vF),this.params){const s=this.params.toString();if(0===s.length)this.urlWithParams=t;else{const a=t.indexOf("?");this.urlWithParams=t+(-1===a?"?":ap.set(m,n.setHeaders[m]),l)),n.setParams&&(c=Object.keys(n.setParams).reduce((p,m)=>p.set(m,n.setParams[m]),c)),new La(t,r,o,{params:c,headers:l,context:u,reportProgress:a,responseType:i,withCredentials:s})}}var Bt=(()=>((Bt=Bt||{})[Bt.Sent=0]="Sent",Bt[Bt.UploadProgress=1]="UploadProgress",Bt[Bt.ResponseHeader=2]="ResponseHeader",Bt[Bt.DownloadProgress=3]="DownloadProgress",Bt[Bt.Response=4]="Response",Bt[Bt.User=5]="User",Bt))();class Xh{constructor(n,t=200,r="OK"){this.headers=n.headers||new si,this.status=void 0!==n.status?n.status:t,this.statusText=n.statusText||r,this.url=n.url||null,this.ok=this.status>=200&&this.status<300}}class Zh extends Xh{constructor(n={}){super(n),this.type=Bt.ResponseHeader}clone(n={}){return new Zh({headers:n.headers||this.headers,status:void 0!==n.status?n.status:this.status,statusText:n.statusText||this.statusText,url:n.url||this.url||void 0})}}class tu extends Xh{constructor(n={}){super(n),this.type=Bt.Response,this.body=void 0!==n.body?n.body:null}clone(n={}){return new tu({body:void 0!==n.body?n.body:this.body,headers:n.headers||this.headers,status:void 0!==n.status?n.status:this.status,statusText:n.statusText||this.statusText,url:n.url||this.url||void 0})}}class W1 extends Xh{constructor(n){super(n,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${n.url||"(unknown url)"}`:`Http failure response for ${n.url||"(unknown url)"}: ${n.status} ${n.statusText}`,this.error=n.error||null}}function Jh(e,n){return{body:n,headers:e.headers,context:e.context,observe:e.observe,params:e.params,reportProgress:e.reportProgress,responseType:e.responseType,withCredentials:e.withCredentials}}let Y1=(()=>{class e{constructor(t){this.handler=t}request(t,r,i={}){let o;if(t instanceof La)o=t;else{let l,c;l=i.headers instanceof si?i.headers:new si(i.headers),i.params&&(c=i.params instanceof Si?i.params:new Si({fromObject:i.params})),o=new La(t,r,void 0!==i.body?i.body:null,{headers:l,context:i.context,params:c,reportProgress:i.reportProgress,responseType:i.responseType||"json",withCredentials:i.withCredentials})}const s=de(o).pipe(oi(l=>this.handler.handle(l)));if(t instanceof La||"events"===i.observe)return s;const a=s.pipe(tr(l=>l instanceof tu));switch(i.observe||"body"){case"body":switch(o.responseType){case"arraybuffer":return a.pipe(we(l=>{if(null!==l.body&&!(l.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return l.body}));case"blob":return a.pipe(we(l=>{if(null!==l.body&&!(l.body instanceof Blob))throw new Error("Response is not a Blob.");return l.body}));case"text":return a.pipe(we(l=>{if(null!==l.body&&"string"!=typeof l.body)throw new Error("Response is not a string.");return l.body}));default:return a.pipe(we(l=>l.body))}case"response":return a;default:throw new Error(`Unreachable: unhandled observe type ${i.observe}}`)}}delete(t,r={}){return this.request("DELETE",t,r)}get(t,r={}){return this.request("GET",t,r)}head(t,r={}){return this.request("HEAD",t,r)}jsonp(t,r){return this.request("JSONP",t,{params:(new Si).append(r,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(t,r={}){return this.request("OPTIONS",t,r)}patch(t,r,i={}){return this.request("PATCH",t,Jh(i,r))}post(t,r,i={}){return this.request("POST",t,Jh(i,r))}put(t,r,i={}){return this.request("PUT",t,Jh(i,r))}}return e.\u0275fac=function(t){return new(t||e)(te(Jc))},e.\u0275prov=ee({token:e,factory:e.\u0275fac}),e})();function K1(e,n){return n(e)}function CF(e,n){return(t,r)=>n.intercept(t,{handle:i=>e(i,r)})}const DF=new ce("HTTP_INTERCEPTORS"),Va=new ce("HTTP_INTERCEPTOR_FNS");function EF(){let e=null;return(n,t)=>(null===e&&(e=(Fe(DF,{optional:!0})??[]).reduceRight(CF,K1)),e(n,t))}let Q1=(()=>{class e extends Jc{constructor(t,r){super(),this.backend=t,this.injector=r,this.chain=null}handle(t){if(null===this.chain){const r=Array.from(new Set(this.injector.get(Va)));this.chain=r.reduceRight((i,o)=>function wF(e,n,t){return(r,i)=>t.runInContext(()=>n(r,o=>e(o,i)))}(i,o,this.injector),K1)}return this.chain(t,r=>this.backend.handle(r))}}return e.\u0275fac=function(t){return new(t||e)(te(Qh),te(Tr))},e.\u0275prov=ee({token:e,factory:e.\u0275fac}),e})();const MF=/^\)\]\}',?\n/;let Z1=(()=>{class e{constructor(t){this.xhrFactory=t}handle(t){if("JSONP"===t.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new qe(r=>{const i=this.xhrFactory.build();if(i.open(t.method,t.urlWithParams),t.withCredentials&&(i.withCredentials=!0),t.headers.forEach((_,E)=>i.setRequestHeader(_,E.join(","))),t.headers.has("Accept")||i.setRequestHeader("Accept","application/json, text/plain, */*"),!t.headers.has("Content-Type")){const _=t.detectContentTypeHeader();null!==_&&i.setRequestHeader("Content-Type",_)}if(t.responseType){const _=t.responseType.toLowerCase();i.responseType="json"!==_?_:"text"}const o=t.serializeBody();let s=null;const a=()=>{if(null!==s)return s;const _=i.statusText||"OK",E=new si(i.getAllResponseHeaders()),N=function AF(e){return"responseURL"in e&&e.responseURL?e.responseURL:/^X-Request-URL:/m.test(e.getAllResponseHeaders())?e.getResponseHeader("X-Request-URL"):null}(i)||t.url;return s=new Zh({headers:E,status:i.status,statusText:_,url:N}),s},l=()=>{let{headers:_,status:E,statusText:N,url:B}=a(),U=null;204!==E&&(U=typeof i.response>"u"?i.responseText:i.response),0===E&&(E=U?200:0);let ie=E>=200&&E<300;if("json"===t.responseType&&"string"==typeof U){const j=U;U=U.replace(MF,"");try{U=""!==U?JSON.parse(U):null}catch(ve){U=j,ie&&(ie=!1,U={error:ve,text:U})}}ie?(r.next(new tu({body:U,headers:_,status:E,statusText:N,url:B||void 0})),r.complete()):r.error(new W1({error:U,headers:_,status:E,statusText:N,url:B||void 0}))},c=_=>{const{url:E}=a(),N=new W1({error:_,status:i.status||0,statusText:i.statusText||"Unknown Error",url:E||void 0});r.error(N)};let u=!1;const p=_=>{u||(r.next(a()),u=!0);let E={type:Bt.DownloadProgress,loaded:_.loaded};_.lengthComputable&&(E.total=_.total),"text"===t.responseType&&i.responseText&&(E.partialText=i.responseText),r.next(E)},m=_=>{let E={type:Bt.UploadProgress,loaded:_.loaded};_.lengthComputable&&(E.total=_.total),r.next(E)};return i.addEventListener("load",l),i.addEventListener("error",c),i.addEventListener("timeout",c),i.addEventListener("abort",c),t.reportProgress&&(i.addEventListener("progress",p),null!==o&&i.upload&&i.upload.addEventListener("progress",m)),i.send(o),r.next({type:Bt.Sent}),()=>{i.removeEventListener("error",c),i.removeEventListener("abort",c),i.removeEventListener("load",l),i.removeEventListener("timeout",c),t.reportProgress&&(i.removeEventListener("progress",p),null!==o&&i.upload&&i.upload.removeEventListener("progress",m)),i.readyState!==i.DONE&&i.abort()}})}}return e.\u0275fac=function(t){return new(t||e)(te(v1))},e.\u0275prov=ee({token:e,factory:e.\u0275fac}),e})();const ep=new ce("XSRF_ENABLED"),J1=new ce("XSRF_COOKIE_NAME",{providedIn:"root",factory:()=>"XSRF-TOKEN"}),eC=new ce("XSRF_HEADER_NAME",{providedIn:"root",factory:()=>"X-XSRF-TOKEN"});class tC{}let FF=(()=>{class e{constructor(t,r,i){this.doc=t,this.platform=r,this.cookieName=i,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=s1(t,this.cookieName),this.lastCookieString=t),this.lastToken}}return e.\u0275fac=function(t){return new(t||e)(te(_n),te(lh),te(J1))},e.\u0275prov=ee({token:e,factory:e.\u0275fac}),e})();function RF(e,n){const t=e.url.toLowerCase();if(!Fe(ep)||"GET"===e.method||"HEAD"===e.method||t.startsWith("http://")||t.startsWith("https://"))return n(e);const r=Fe(tC).getToken(),i=Fe(eC);return null!=r&&!e.headers.has(i)&&(e=e.clone({headers:e.headers.set(i,r)})),n(e)}var kt=(()=>((kt=kt||{})[kt.Interceptors=0]="Interceptors",kt[kt.LegacyInterceptors=1]="LegacyInterceptors",kt[kt.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",kt[kt.NoXsrfProtection=3]="NoXsrfProtection",kt[kt.JsonpSupport=4]="JsonpSupport",kt[kt.RequestsMadeViaParent=5]="RequestsMadeViaParent",kt))();function us(e,n){return{\u0275kind:e,\u0275providers:n}}function OF(...e){const n=[Y1,Z1,Q1,{provide:Jc,useExisting:Q1},{provide:Qh,useExisting:Z1},{provide:Va,useValue:RF,multi:!0},{provide:ep,useValue:!0},{provide:tC,useClass:FF}];for(const t of e)n.push(...t.\u0275providers);return function gS(e){return{\u0275providers:e}}(n)}const nC=new ce("LEGACY_INTERCEPTOR_FN");let PF=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Kn({type:e}),e.\u0275inj=Rn({providers:[OF(us(kt.LegacyInterceptors,[{provide:nC,useFactory:EF},{provide:Va,useExisting:nC,multi:!0}]))]}),e})();class nr extends Wt{constructor(n){super(),this._value=n}get value(){return this.getValue()}_subscribe(n){const t=super._subscribe(n);return!t.closed&&n.next(this._value),t}getValue(){const{hasError:n,thrownError:t,_value:r}=this;if(n)throw t;return this._throwIfClosed(),r}next(n){super.next(this._value=n)}}const Ba=$n(e=>function(){e(this),this.name="EmptyError",this.message="no elements in sequence"}),{isArray:LF}=Array,{getPrototypeOf:VF,prototype:BF,keys:jF}=Object;function rC(e){if(1===e.length){const n=e[0];if(LF(n))return{args:n,keys:null};if(function UF(e){return e&&"object"==typeof e&&VF(e)===BF}(n)){const t=jF(n);return{args:t.map(r=>n[r]),keys:t}}}return{args:e,keys:null}}const{isArray:$F}=Array;function iC(e){return we(n=>function HF(e,n){return $F(n)?e(...n):e(n)}(e,n))}function oC(e,n){return e.reduce((t,r,i)=>(t[r]=n[i],t),{})}function sC(...e){const n=X(e),t=w(e),{args:r,keys:i}=rC(e);if(0===r.length)return ot([],n);const o=new qe(function GF(e,n,t=ln){return r=>{aC(n,()=>{const{length:i}=e,o=new Array(i);let s=i,a=i;for(let l=0;l{const c=ot(e[l],n);let u=!1;c.subscribe(ut(r,p=>{o[l]=p,u||(u=!0,a--),a||r.next(t(o.slice()))},()=>{--s||r.complete()}))},r)},r)}}(r,n,i?s=>oC(i,s):ln));return t?o.pipe(iC(t)):o}function aC(e,n,t){e?M(t,e,n):n()}function ja(...e){return function zF(){return x(1)}()(ot(e,X(e)))}function nu(e){return new qe(n=>{Cn(e()).subscribe(n)})}function Ua(e,n){const t=Be(e)?e:()=>e,r=i=>i.error(t());return new qe(n?i=>n.schedule(r,0,i):r)}function tp(){return St((e,n)=>{let t=null;e._refCount++;const r=ut(n,void 0,void 0,void 0,()=>{if(!e||e._refCount<=0||0<--e._refCount)return void(t=null);const i=e._connection,o=t;t=null,i&&(!o||i===o)&&i.unsubscribe(),n.unsubscribe()});e.subscribe(r),r.closed||(t=e.connect())})}class lC extends qe{constructor(n,t){super(),this.source=n,this.subjectFactory=t,this._subject=null,this._refCount=0,this._connection=null,hi(n)&&(this.lift=n.lift)}_subscribe(n){return this.getSubject().subscribe(n)}getSubject(){const n=this._subject;return(!n||n.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:n}=this;this._subject=this._connection=null,n?.unsubscribe()}connect(){let n=this._connection;if(!n){n=this._connection=new Ct;const t=this.getSubject();n.add(this.source.subscribe(ut(t,void 0,()=>{this._teardown(),t.complete()},r=>{this._teardown(),t.error(r)},()=>this._teardown()))),n.closed&&(this._connection=null,n=Ct.EMPTY)}return n}refCount(){return tp()(this)}}function rr(e,n){return St((t,r)=>{let i=null,o=0,s=!1;const a=()=>s&&!i&&r.complete();t.subscribe(ut(r,l=>{i?.unsubscribe();let c=0;const u=o++;Cn(e(l,u)).subscribe(i=ut(r,p=>r.next(n?n(l,p,u,c++):p),()=>{i=null,a()}))},()=>{s=!0,a()}))})}function _r(e){return e<=0?()=>I:St((n,t)=>{let r=0;n.subscribe(ut(t,i=>{++r<=e&&(t.next(i),e<=r&&t.complete())}))})}function ru(e){return St((n,t)=>{let r=!1;n.subscribe(ut(t,i=>{r=!0,t.next(i)},()=>{r||t.next(e),t.complete()}))})}function cC(e=WF){return St((n,t)=>{let r=!1;n.subscribe(ut(t,i=>{r=!0,t.next(i)},()=>r?t.complete():t.error(e())))})}function WF(){return new Ba}function Ti(e,n){const t=arguments.length>=2;return r=>r.pipe(e?tr((i,o)=>e(i,o,r)):ln,_r(1),t?ru(n):cC(()=>new Ba))}function sn(e,n,t){const r=Be(e)||n||t?{next:e,error:n,complete:t}:e;return r?St((i,o)=>{var s;null===(s=r.subscribe)||void 0===s||s.call(r);let a=!0;i.subscribe(ut(o,l=>{var c;null===(c=r.next)||void 0===c||c.call(r,l),o.next(l)},()=>{var l;a=!1,null===(l=r.complete)||void 0===l||l.call(r),o.complete()},l=>{var c;a=!1,null===(c=r.error)||void 0===c||c.call(r,l),o.error(l)},()=>{var l,c;a&&(null===(l=r.unsubscribe)||void 0===l||l.call(r)),null===(c=r.finalize)||void 0===c||c.call(r)}))}):ln}function Ii(e){return St((n,t)=>{let o,r=null,i=!1;r=n.subscribe(ut(t,void 0,void 0,s=>{o=Cn(e(s,Ii(e)(n))),r?(r.unsubscribe(),r=null,o.subscribe(t)):i=!0})),i&&(r.unsubscribe(),r=null,o.subscribe(t))})}function uC(e,n){return St(function YF(e,n,t,r,i){return(o,s)=>{let a=t,l=n,c=0;o.subscribe(ut(s,u=>{const p=c++;l=a?e(l,u,p):(a=!0,u),r&&s.next(l)},i&&(()=>{a&&s.next(l),s.complete()})))}}(e,n,arguments.length>=2,!0))}function np(e){return e<=0?()=>I:St((n,t)=>{let r=[];n.subscribe(ut(t,i=>{r.push(i),e{for(const i of r)t.next(i);t.complete()},void 0,()=>{r=null}))})}function dC(e,n){const t=arguments.length>=2;return r=>r.pipe(e?tr((i,o)=>e(i,o,r)):ln,np(1),t?ru(n):cC(()=>new Ba))}function rp(e){return St((n,t)=>{try{n.subscribe(t)}finally{t.add(e)}})}const Te="primary",$a=Symbol("RouteTitle");class XF{constructor(n){this.params=n||{}}has(n){return Object.prototype.hasOwnProperty.call(this.params,n)}get(n){if(this.has(n)){const t=this.params[n];return Array.isArray(t)?t[0]:t}return null}getAll(n){if(this.has(n)){const t=this.params[n];return Array.isArray(t)?t:[t]}return[]}get keys(){return Object.keys(this.params)}}function ds(e){return new XF(e)}function ZF(e,n,t){const r=t.path.split("/");if(r.length>e.length||"full"===t.pathMatch&&(n.hasChildren()||r.lengthr[o]===i)}return e===n}function hC(e){return Array.prototype.concat.apply([],e)}function pC(e){return e.length>0?e[e.length-1]:null}function Zt(e,n){for(const t in e)e.hasOwnProperty(t)&&n(e[t],t)}function Mi(e){return Of(e)?e:_a(e)?ot(Promise.resolve(e)):de(e)}const iu=!1,eR={exact:function _C(e,n,t){if(!io(e.segments,n.segments)||!ou(e.segments,n.segments,t)||e.numberOfChildren!==n.numberOfChildren)return!1;for(const r in n.children)if(!e.children[r]||!_C(e.children[r],n.children[r],t))return!1;return!0},subset:vC},gC={exact:function tR(e,n){return Rr(e,n)},subset:function nR(e,n){return Object.keys(n).length<=Object.keys(e).length&&Object.keys(n).every(t=>fC(e[t],n[t]))},ignored:()=>!0};function mC(e,n,t){return eR[t.paths](e.root,n.root,t.matrixParams)&&gC[t.queryParams](e.queryParams,n.queryParams)&&!("exact"===t.fragment&&e.fragment!==n.fragment)}function vC(e,n,t){return yC(e,n,n.segments,t)}function yC(e,n,t,r){if(e.segments.length>t.length){const i=e.segments.slice(0,t.length);return!(!io(i,t)||n.hasChildren()||!ou(i,t,r))}if(e.segments.length===t.length){if(!io(e.segments,t)||!ou(e.segments,t,r))return!1;for(const i in n.children)if(!e.children[i]||!vC(e.children[i],n.children[i],r))return!1;return!0}{const i=t.slice(0,e.segments.length),o=t.slice(e.segments.length);return!!(io(e.segments,i)&&ou(e.segments,i,r)&&e.children[Te])&&yC(e.children[Te],n,o,r)}}function ou(e,n,t){return n.every((r,i)=>gC[t](e[i].parameters,r.parameters))}class Ai{constructor(n=new Oe([],{}),t={},r=null){this.root=n,this.queryParams=t,this.fragment=r}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=ds(this.queryParams)),this._queryParamMap}toString(){return oR.serialize(this)}}class Oe{constructor(n,t){this.segments=n,this.children=t,this.parent=null,Zt(t,(r,i)=>r.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return su(this)}}class Ha{constructor(n,t){this.path=n,this.parameters=t}get parameterMap(){return this._parameterMap||(this._parameterMap=ds(this.parameters)),this._parameterMap}toString(){return wC(this)}}function io(e,n){return e.length===n.length&&e.every((t,r)=>t.path===n[r].path)}let Ga=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=ee({token:e,factory:function(){return new ip},providedIn:"root"}),e})();class ip{parse(n){const t=new pR(n);return new Ai(t.parseRootSegment(),t.parseQueryParams(),t.parseFragment())}serialize(n){const t=`/${za(n.root,!0)}`,r=function lR(e){const n=Object.keys(e).map(t=>{const r=e[t];return Array.isArray(r)?r.map(i=>`${au(t)}=${au(i)}`).join("&"):`${au(t)}=${au(r)}`}).filter(t=>!!t);return n.length?`?${n.join("&")}`:""}(n.queryParams);return`${t}${r}${"string"==typeof n.fragment?`#${function sR(e){return encodeURI(e)}(n.fragment)}`:""}`}}const oR=new ip;function su(e){return e.segments.map(n=>wC(n)).join("/")}function za(e,n){if(!e.hasChildren())return su(e);if(n){const t=e.children[Te]?za(e.children[Te],!1):"",r=[];return Zt(e.children,(i,o)=>{o!==Te&&r.push(`${o}:${za(i,!1)}`)}),r.length>0?`${t}(${r.join("//")})`:t}{const t=function iR(e,n){let t=[];return Zt(e.children,(r,i)=>{i===Te&&(t=t.concat(n(r,i)))}),Zt(e.children,(r,i)=>{i!==Te&&(t=t.concat(n(r,i)))}),t}(e,(r,i)=>i===Te?[za(e.children[Te],!1)]:[`${i}:${za(r,!1)}`]);return 1===Object.keys(e.children).length&&null!=e.children[Te]?`${su(e)}/${t[0]}`:`${su(e)}/(${t.join("//")})`}}function bC(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function au(e){return bC(e).replace(/%3B/gi,";")}function op(e){return bC(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function lu(e){return decodeURIComponent(e)}function CC(e){return lu(e.replace(/\+/g,"%20"))}function wC(e){return`${op(e.path)}${function aR(e){return Object.keys(e).map(n=>`;${op(n)}=${op(e[n])}`).join("")}(e.parameters)}`}const cR=/^[^\/()?;=#]+/;function cu(e){const n=e.match(cR);return n?n[0]:""}const uR=/^[^=?&#]+/,fR=/^[^&#]+/;class pR{constructor(n){this.url=n,this.remaining=n}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Oe([],{}):new Oe([],this.parseChildren())}parseQueryParams(){const n={};if(this.consumeOptional("?"))do{this.parseQueryParam(n)}while(this.consumeOptional("&"));return n}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const n=[];for(this.peekStartsWith("(")||n.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),n.push(this.parseSegment());let t={};this.peekStartsWith("/(")&&(this.capture("/"),t=this.parseParens(!0));let r={};return this.peekStartsWith("(")&&(r=this.parseParens(!1)),(n.length>0||Object.keys(t).length>0)&&(r[Te]=new Oe(n,t)),r}parseSegment(){const n=cu(this.remaining);if(""===n&&this.peekStartsWith(";"))throw new q(4009,iu);return this.capture(n),new Ha(lu(n),this.parseMatrixParams())}parseMatrixParams(){const n={};for(;this.consumeOptional(";");)this.parseParam(n);return n}parseParam(n){const t=cu(this.remaining);if(!t)return;this.capture(t);let r="";if(this.consumeOptional("=")){const i=cu(this.remaining);i&&(r=i,this.capture(r))}n[lu(t)]=lu(r)}parseQueryParam(n){const t=function dR(e){const n=e.match(uR);return n?n[0]:""}(this.remaining);if(!t)return;this.capture(t);let r="";if(this.consumeOptional("=")){const s=function hR(e){const n=e.match(fR);return n?n[0]:""}(this.remaining);s&&(r=s,this.capture(r))}const i=CC(t),o=CC(r);if(n.hasOwnProperty(i)){let s=n[i];Array.isArray(s)||(s=[s],n[i]=s),s.push(o)}else n[i]=o}parseParens(n){const t={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const r=cu(this.remaining),i=this.remaining[r.length];if("/"!==i&&")"!==i&&";"!==i)throw new q(4010,iu);let o;r.indexOf(":")>-1?(o=r.slice(0,r.indexOf(":")),this.capture(o),this.capture(":")):n&&(o=Te);const s=this.parseChildren();t[o]=1===Object.keys(s).length?s[Te]:new Oe([],s),this.consumeOptional("//")}return t}peekStartsWith(n){return this.remaining.startsWith(n)}consumeOptional(n){return!!this.peekStartsWith(n)&&(this.remaining=this.remaining.substring(n.length),!0)}capture(n){if(!this.consumeOptional(n))throw new q(4011,iu)}}function sp(e){return e.segments.length>0?new Oe([],{[Te]:e}):e}function uu(e){const n={};for(const r of Object.keys(e.children)){const o=uu(e.children[r]);(o.segments.length>0||o.hasChildren())&&(n[r]=o)}return function gR(e){if(1===e.numberOfChildren&&e.children[Te]){const n=e.children[Te];return new Oe(e.segments.concat(n.segments),n.children)}return e}(new Oe(e.segments,n))}function oo(e){return e instanceof Ai}const ap=!1;function mR(e,n,t,r,i){if(0===t.length)return fs(n.root,n.root,n.root,r,i);const o=function IC(e){if("string"==typeof e[0]&&1===e.length&&"/"===e[0])return new TC(!0,0,e);let n=0,t=!1;const r=e.reduce((i,o,s)=>{if("object"==typeof o&&null!=o){if(o.outlets){const a={};return Zt(o.outlets,(l,c)=>{a[c]="string"==typeof l?l.split("/"):l}),[...i,{outlets:a}]}if(o.segmentPath)return[...i,o.segmentPath]}return"string"!=typeof o?[...i,o]:0===s?(o.split("/").forEach((a,l)=>{0==l&&"."===a||(0==l&&""===a?t=!0:".."===a?n++:""!=a&&i.push(a))}),i):[...i,o]},[]);return new TC(t,n,r)}(t);return o.toRoot()?fs(n.root,n.root,new Oe([],{}),r,i):function s(l){const c=function vR(e,n,t,r){if(e.isAbsolute)return new hs(n.root,!0,0);if(-1===r)return new hs(t,t===n.root,0);return function MC(e,n,t){let r=e,i=n,o=t;for(;o>i;){if(o-=i,r=r.parent,!r)throw new q(4005,ap&&"Invalid number of '../'");i=r.segments.length}return new hs(r,!1,i-o)}(t,r+(qa(e.commands[0])?0:1),e.numberOfDoubleDots)}(o,n,e.snapshot?._urlSegment,l),u=c.processChildren?ps(c.segmentGroup,c.index,o.commands):lp(c.segmentGroup,c.index,o.commands);return fs(n.root,c.segmentGroup,u,r,i)}(e.snapshot?._lastPathIndex)}function qa(e){return"object"==typeof e&&null!=e&&!e.outlets&&!e.segmentPath}function Wa(e){return"object"==typeof e&&null!=e&&e.outlets}function fs(e,n,t,r,i){let s,o={};r&&Zt(r,(l,c)=>{o[c]=Array.isArray(l)?l.map(u=>`${u}`):`${l}`}),s=e===n?t:SC(e,n,t);const a=sp(uu(s));return new Ai(a,o,i)}function SC(e,n,t){const r={};return Zt(e.children,(i,o)=>{r[o]=i===n?t:SC(i,n,t)}),new Oe(e.segments,r)}class TC{constructor(n,t,r){if(this.isAbsolute=n,this.numberOfDoubleDots=t,this.commands=r,n&&r.length>0&&qa(r[0]))throw new q(4003,ap&&"Root segment cannot have matrix parameters");const i=r.find(Wa);if(i&&i!==pC(r))throw new q(4004,ap&&"{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class hs{constructor(n,t,r){this.segmentGroup=n,this.processChildren=t,this.index=r}}function lp(e,n,t){if(e||(e=new Oe([],{})),0===e.segments.length&&e.hasChildren())return ps(e,n,t);const r=function bR(e,n,t){let r=0,i=n;const o={match:!1,pathIndex:0,commandIndex:0};for(;i=t.length)return o;const s=e.segments[i],a=t[r];if(Wa(a))break;const l=`${a}`,c=r0&&void 0===l)break;if(l&&c&&"object"==typeof c&&void 0===c.outlets){if(!xC(l,c,s))return o;r+=2}else{if(!xC(l,{},s))return o;r++}i++}return{match:!0,pathIndex:i,commandIndex:r}}(e,n,t),i=t.slice(r.commandIndex);if(r.match&&r.pathIndex{"string"==typeof o&&(o=[o]),null!==o&&(i[s]=lp(e.children[s],n,o))}),Zt(e.children,(o,s)=>{void 0===r[s]&&(i[s]=o)}),new Oe(e.segments,i))}}function cp(e,n,t){const r=e.segments.slice(0,n);let i=0;for(;i{"string"==typeof t&&(t=[t]),null!==t&&(n[r]=cp(new Oe([],{}),0,t))}),n}function AC(e){const n={};return Zt(e,(t,r)=>n[r]=`${t}`),n}function xC(e,n,t){return e==t.path&&Rr(n,t.parameters)}const Ya="imperative";class Or{constructor(n,t){this.id=n,this.url=t}}class up extends Or{constructor(n,t,r="imperative",i=null){super(n,t),this.type=0,this.navigationTrigger=r,this.restoredState=i}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class so extends Or{constructor(n,t,r){super(n,t),this.urlAfterRedirects=r,this.type=1}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class du extends Or{constructor(n,t,r,i){super(n,t),this.reason=r,this.code=i,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class fu extends Or{constructor(n,t,r,i){super(n,t),this.reason=r,this.code=i,this.type=16}}class dp extends Or{constructor(n,t,r,i){super(n,t),this.error=r,this.target=i,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class wR extends Or{constructor(n,t,r,i){super(n,t),this.urlAfterRedirects=r,this.state=i,this.type=4}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class DR extends Or{constructor(n,t,r,i){super(n,t),this.urlAfterRedirects=r,this.state=i,this.type=7}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class ER extends Or{constructor(n,t,r,i,o){super(n,t),this.urlAfterRedirects=r,this.state=i,this.shouldActivate=o,this.type=8}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class SR extends Or{constructor(n,t,r,i){super(n,t),this.urlAfterRedirects=r,this.state=i,this.type=5}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class TR extends Or{constructor(n,t,r,i){super(n,t),this.urlAfterRedirects=r,this.state=i,this.type=6}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class IR{constructor(n){this.route=n,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class MR{constructor(n){this.route=n,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class AR{constructor(n){this.snapshot=n,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class xR{constructor(n){this.snapshot=n,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class kR{constructor(n){this.snapshot=n,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class FR{constructor(n){this.snapshot=n,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class kC{constructor(n,t,r){this.routerEvent=n,this.position=t,this.anchor=r,this.type=15}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}let NR=(()=>{class e{createUrlTree(t,r,i,o,s,a){return mR(t||r.root,i,o,s,a)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=ee({token:e,factory:e.\u0275fac}),e})(),LR=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=ee({token:e,factory:function(n){return NR.\u0275fac(n)},providedIn:"root"}),e})();class FC{constructor(n){this._root=n}get root(){return this._root.value}parent(n){const t=this.pathFromRoot(n);return t.length>1?t[t.length-2]:null}children(n){const t=fp(n,this._root);return t?t.children.map(r=>r.value):[]}firstChild(n){const t=fp(n,this._root);return t&&t.children.length>0?t.children[0].value:null}siblings(n){const t=hp(n,this._root);return t.length<2?[]:t[t.length-2].children.map(i=>i.value).filter(i=>i!==n)}pathFromRoot(n){return hp(n,this._root).map(t=>t.value)}}function fp(e,n){if(e===n.value)return n;for(const t of n.children){const r=fp(e,t);if(r)return r}return null}function hp(e,n){if(e===n.value)return[n];for(const t of n.children){const r=hp(e,t);if(r.length)return r.unshift(n),r}return[]}class ai{constructor(n,t){this.value=n,this.children=t}toString(){return`TreeNode(${this.value})`}}function gs(e){const n={};return e&&e.children.forEach(t=>n[t.value.outlet]=t),n}class RC extends FC{constructor(n,t){super(n),this.snapshot=t,pp(this,n)}toString(){return this.snapshot.toString()}}function OC(e,n){const t=function VR(e,n){const s=new hu([],{},{},"",{},Te,n,null,e.root,-1,{});return new PC("",new ai(s,[]))}(e,n),r=new nr([new Ha("",{})]),i=new nr({}),o=new nr({}),s=new nr({}),a=new nr(""),l=new ao(r,i,s,a,o,Te,n,t.root);return l.snapshot=t.root,new RC(new ai(l,[]),t)}class ao{constructor(n,t,r,i,o,s,a,l){this.url=n,this.params=t,this.queryParams=r,this.fragment=i,this.data=o,this.outlet=s,this.component=a,this.title=this.data?.pipe(we(c=>c[$a]))??de(void 0),this._futureSnapshot=l}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(we(n=>ds(n)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(we(n=>ds(n)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function NC(e,n="emptyOnly"){const t=e.pathFromRoot;let r=0;if("always"!==n)for(r=t.length-1;r>=1;){const i=t[r],o=t[r-1];if(i.routeConfig&&""===i.routeConfig.path)r--;else{if(o.component)break;r--}}return function BR(e){return e.reduce((n,t)=>({params:{...n.params,...t.params},data:{...n.data,...t.data},resolve:{...t.data,...n.resolve,...t.routeConfig?.data,...t._resolvedData}}),{params:{},data:{},resolve:{}})}(t.slice(r))}class hu{get title(){return this.data?.[$a]}constructor(n,t,r,i,o,s,a,l,c,u,p){this.url=n,this.params=t,this.queryParams=r,this.fragment=i,this.data=o,this.outlet=s,this.component=a,this.routeConfig=l,this._urlSegment=c,this._lastPathIndex=u,this._resolve=p}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=ds(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=ds(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(r=>r.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class PC extends FC{constructor(n,t){super(t),this.url=n,pp(this,t)}toString(){return LC(this._root)}}function pp(e,n){n.value._routerState=e,n.children.forEach(t=>pp(e,t))}function LC(e){const n=e.children.length>0?` { ${e.children.map(LC).join(", ")} } `:"";return`${e.value}${n}`}function gp(e){if(e.snapshot){const n=e.snapshot,t=e._futureSnapshot;e.snapshot=t,Rr(n.queryParams,t.queryParams)||e.queryParams.next(t.queryParams),n.fragment!==t.fragment&&e.fragment.next(t.fragment),Rr(n.params,t.params)||e.params.next(t.params),function JF(e,n){if(e.length!==n.length)return!1;for(let t=0;tRr(t.parameters,n[r].parameters))}(e.url,n.url);return t&&!(!e.parent!=!n.parent)&&(!e.parent||mp(e.parent,n.parent))}function Ka(e,n,t){if(t&&e.shouldReuseRoute(n.value,t.value.snapshot)){const r=t.value;r._futureSnapshot=n.value;const i=function UR(e,n,t){return n.children.map(r=>{for(const i of t.children)if(e.shouldReuseRoute(r.value,i.value.snapshot))return Ka(e,r,i);return Ka(e,r)})}(e,n,t);return new ai(r,i)}{if(e.shouldAttach(n.value)){const o=e.retrieve(n.value);if(null!==o){const s=o.route;return s.value._futureSnapshot=n.value,s.children=n.children.map(a=>Ka(e,a)),s}}const r=function $R(e){return new ao(new nr(e.url),new nr(e.params),new nr(e.queryParams),new nr(e.fragment),new nr(e.data),e.outlet,e.component,e)}(n.value),i=n.children.map(o=>Ka(e,o));return new ai(r,i)}}const _p="ngNavigationCancelingError";function VC(e,n){const{redirectTo:t,navigationBehaviorOptions:r}=oo(n)?{redirectTo:n,navigationBehaviorOptions:void 0}:n,i=BC(!1,0,n);return i.url=t,i.navigationBehaviorOptions=r,i}function BC(e,n,t){const r=new Error("NavigationCancelingError: "+(e||""));return r[_p]=!0,r.cancellationCode=n,t&&(r.url=t),r}function jC(e){return UC(e)&&oo(e.url)}function UC(e){return e&&e[_p]}class HR{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.injector=null,this.children=new Qa,this.attachRef=null}}let Qa=(()=>{class e{constructor(){this.contexts=new Map}onChildOutletCreated(t,r){const i=this.getOrCreateContext(t);i.outlet=r,this.contexts.set(t,i)}onChildOutletDestroyed(t){const r=this.getContext(t);r&&(r.outlet=null,r.attachRef=null)}onOutletDeactivated(){const t=this.contexts;return this.contexts=new Map,t}onOutletReAttached(t){this.contexts=t}getOrCreateContext(t){let r=this.getContext(t);return r||(r=new HR,this.contexts.set(t,r)),r}getContext(t){return this.contexts.get(t)||null}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=ee({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const pu=!1;let vp=(()=>{class e{constructor(){this.activated=null,this._activatedRoute=null,this.name=Te,this.activateEvents=new ue,this.deactivateEvents=new ue,this.attachEvents=new ue,this.detachEvents=new ue,this.parentContexts=Fe(Qa),this.location=Fe(hr),this.changeDetector=Fe(xa),this.environmentInjector=Fe(Tr)}ngOnChanges(t){if(t.name){const{firstChange:r,previousValue:i}=t.name;if(r)return;this.isTrackedInParentContexts(i)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(i)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name)}isTrackedInParentContexts(t){return this.parentContexts.getContext(t)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;const t=this.parentContexts.getContext(this.name);t?.route&&(t.attachRef?this.attach(t.attachRef,t.route):this.activateWith(t.route,t.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new q(4012,pu);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new q(4012,pu);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new q(4012,pu);this.location.detach();const t=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(t.instance),t}attach(t,r){this.activated=t,this._activatedRoute=r,this.location.insert(t.hostView),this.attachEvents.emit(t.instance)}deactivate(){if(this.activated){const t=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(t)}}activateWith(t,r){if(this.isActivated)throw new q(4013,pu);this._activatedRoute=t;const i=this.location,s=t.snapshot.component,a=this.parentContexts.getOrCreateContext(this.name).children,l=new GR(t,a,i.injector);if(r&&function zR(e){return!!e.resolveComponentFactory}(r)){const c=r.resolveComponentFactory(s);this.activated=i.createComponent(c,i.length,l)}else this.activated=i.createComponent(s,{index:i.length,injector:l,environmentInjector:r??this.environmentInjector});this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Ce({type:e,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[Dn]}),e})();class GR{constructor(n,t,r){this.route=n,this.childContexts=t,this.parent=r}get(n,t){return n===ao?this.route:n===Qa?this.childContexts:this.parent.get(n,t)}}let yp=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=De({type:e,selectors:[["ng-component"]],standalone:!0,features:[ky],decls:1,vars:0,template:function(t,r){1&t&&S(0,"router-outlet")},dependencies:[vp],encapsulation:2}),e})();function $C(e,n){return e.providers&&!e._injector&&(e._injector=Tc(e.providers,n,`Route: ${e.path}`)),e._injector??n}function Cp(e){const n=e.children&&e.children.map(Cp),t=n?{...e,children:n}:{...e};return!t.component&&!t.loadComponent&&(n||t.loadChildren)&&t.outlet&&t.outlet!==Te&&(t.component=yp),t}function ir(e){return e.outlet||Te}function HC(e,n){const t=e.filter(r=>ir(r)===n);return t.push(...e.filter(r=>ir(r)!==n)),t}function Xa(e){if(!e)return null;if(e.routeConfig?._injector)return e.routeConfig._injector;for(let n=e.parent;n;n=n.parent){const t=n.routeConfig;if(t?._loadedInjector)return t._loadedInjector;if(t?._injector)return t._injector}return null}class QR{constructor(n,t,r,i){this.routeReuseStrategy=n,this.futureState=t,this.currState=r,this.forwardEvent=i}activate(n){const t=this.futureState._root,r=this.currState?this.currState._root:null;this.deactivateChildRoutes(t,r,n),gp(this.futureState.root),this.activateChildRoutes(t,r,n)}deactivateChildRoutes(n,t,r){const i=gs(t);n.children.forEach(o=>{const s=o.value.outlet;this.deactivateRoutes(o,i[s],r),delete i[s]}),Zt(i,(o,s)=>{this.deactivateRouteAndItsChildren(o,r)})}deactivateRoutes(n,t,r){const i=n.value,o=t?t.value:null;if(i===o)if(i.component){const s=r.getContext(i.outlet);s&&this.deactivateChildRoutes(n,t,s.children)}else this.deactivateChildRoutes(n,t,r);else o&&this.deactivateRouteAndItsChildren(t,r)}deactivateRouteAndItsChildren(n,t){n.value.component&&this.routeReuseStrategy.shouldDetach(n.value.snapshot)?this.detachAndStoreRouteSubtree(n,t):this.deactivateRouteAndOutlet(n,t)}detachAndStoreRouteSubtree(n,t){const r=t.getContext(n.value.outlet),i=r&&n.value.component?r.children:t,o=gs(n);for(const s of Object.keys(o))this.deactivateRouteAndItsChildren(o[s],i);if(r&&r.outlet){const s=r.outlet.detach(),a=r.children.onOutletDeactivated();this.routeReuseStrategy.store(n.value.snapshot,{componentRef:s,route:n,contexts:a})}}deactivateRouteAndOutlet(n,t){const r=t.getContext(n.value.outlet),i=r&&n.value.component?r.children:t,o=gs(n);for(const s of Object.keys(o))this.deactivateRouteAndItsChildren(o[s],i);r&&(r.outlet&&(r.outlet.deactivate(),r.children.onOutletDeactivated()),r.attachRef=null,r.resolver=null,r.route=null)}activateChildRoutes(n,t,r){const i=gs(t);n.children.forEach(o=>{this.activateRoutes(o,i[o.value.outlet],r),this.forwardEvent(new FR(o.value.snapshot))}),n.children.length&&this.forwardEvent(new xR(n.value.snapshot))}activateRoutes(n,t,r){const i=n.value,o=t?t.value:null;if(gp(i),i===o)if(i.component){const s=r.getOrCreateContext(i.outlet);this.activateChildRoutes(n,t,s.children)}else this.activateChildRoutes(n,t,r);else if(i.component){const s=r.getOrCreateContext(i.outlet);if(this.routeReuseStrategy.shouldAttach(i.snapshot)){const a=this.routeReuseStrategy.retrieve(i.snapshot);this.routeReuseStrategy.store(i.snapshot,null),s.children.onOutletReAttached(a.contexts),s.attachRef=a.componentRef,s.route=a.route.value,s.outlet&&s.outlet.attach(a.componentRef,a.route.value),gp(a.route.value),this.activateChildRoutes(n,null,s.children)}else{const a=Xa(i.snapshot),l=a?.get(da)??null;s.attachRef=null,s.route=i,s.resolver=l,s.injector=a,s.outlet&&s.outlet.activateWith(i,s.injector),this.activateChildRoutes(n,null,s.children)}}else this.activateChildRoutes(n,null,r)}}class GC{constructor(n){this.path=n,this.route=this.path[this.path.length-1]}}class gu{constructor(n,t){this.component=n,this.route=t}}function XR(e,n,t){const r=e._root;return Za(r,n?n._root:null,t,[r.value])}function ms(e,n){const t=Symbol(),r=n.get(e,t);return r===t?"function"!=typeof e||function jD(e){return null!==xl(e)}(e)?n.get(e):e:r}function Za(e,n,t,r,i={canDeactivateChecks:[],canActivateChecks:[]}){const o=gs(n);return e.children.forEach(s=>{(function JR(e,n,t,r,i={canDeactivateChecks:[],canActivateChecks:[]}){const o=e.value,s=n?n.value:null,a=t?t.getContext(e.value.outlet):null;if(s&&o.routeConfig===s.routeConfig){const l=function eO(e,n,t){if("function"==typeof t)return t(e,n);switch(t){case"pathParamsChange":return!io(e.url,n.url);case"pathParamsOrQueryParamsChange":return!io(e.url,n.url)||!Rr(e.queryParams,n.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!mp(e,n)||!Rr(e.queryParams,n.queryParams);default:return!mp(e,n)}}(s,o,o.routeConfig.runGuardsAndResolvers);l?i.canActivateChecks.push(new GC(r)):(o.data=s.data,o._resolvedData=s._resolvedData),Za(e,n,o.component?a?a.children:null:t,r,i),l&&a&&a.outlet&&a.outlet.isActivated&&i.canDeactivateChecks.push(new gu(a.outlet.component,s))}else s&&Ja(n,a,i),i.canActivateChecks.push(new GC(r)),Za(e,null,o.component?a?a.children:null:t,r,i)})(s,o[s.value.outlet],t,r.concat([s.value]),i),delete o[s.value.outlet]}),Zt(o,(s,a)=>Ja(s,t.getContext(a),i)),i}function Ja(e,n,t){const r=gs(e),i=e.value;Zt(r,(o,s)=>{Ja(o,i.component?n?n.children.getContext(s):null:n,t)}),t.canDeactivateChecks.push(new gu(i.component&&n&&n.outlet&&n.outlet.isActivated?n.outlet.component:null,i))}function el(e){return"function"==typeof e}function wp(e){return e instanceof Ba||"EmptyError"===e?.name}const mu=Symbol("INITIAL_VALUE");function _s(){return rr(e=>sC(e.map(n=>n.pipe(_r(1),function qF(...e){const n=X(e);return St((t,r)=>{(n?ja(e,t,n):ja(e,t)).subscribe(r)})}(mu)))).pipe(we(n=>{for(const t of n)if(!0!==t){if(t===mu)return mu;if(!1===t||t instanceof Ai)return t}return!0}),tr(n=>n!==mu),_r(1)))}function zC(e){return function yl(...e){return cn(e)}(sn(n=>{if(oo(n))throw VC(0,n)}),we(n=>!0===n))}const Dp={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function qC(e,n,t,r,i){const o=Ep(e,n,t);return o.matched?function _O(e,n,t,r){const i=n.canMatch;return i&&0!==i.length?de(i.map(s=>{const a=ms(s,e);return Mi(function sO(e){return e&&el(e.canMatch)}(a)?a.canMatch(n,t):e.runInContext(()=>a(n,t)))})).pipe(_s(),zC()):de(!0)}(r=$C(n,r),n,t).pipe(we(s=>!0===s?o:{...Dp})):de(o)}function Ep(e,n,t){if(""===n.path)return"full"===n.pathMatch&&(e.hasChildren()||t.length>0)?{...Dp}:{matched:!0,consumedSegments:[],remainingSegments:t,parameters:{},positionalParamSegments:{}};const i=(n.matcher||ZF)(t,e,n);if(!i)return{...Dp};const o={};Zt(i.posParams,(a,l)=>{o[l]=a.path});const s=i.consumed.length>0?{...o,...i.consumed[i.consumed.length-1].parameters}:o;return{matched:!0,consumedSegments:i.consumed,remainingSegments:t.slice(i.consumed.length),parameters:s,positionalParamSegments:i.posParams??{}}}function _u(e,n,t,r){if(t.length>0&&function bO(e,n,t){return t.some(r=>vu(e,n,r)&&ir(r)!==Te)}(e,t,r)){const o=new Oe(n,function yO(e,n,t,r){const i={};i[Te]=r,r._sourceSegment=e,r._segmentIndexShift=n.length;for(const o of t)if(""===o.path&&ir(o)!==Te){const s=new Oe([],{});s._sourceSegment=e,s._segmentIndexShift=n.length,i[ir(o)]=s}return i}(e,n,r,new Oe(t,e.children)));return o._sourceSegment=e,o._segmentIndexShift=n.length,{segmentGroup:o,slicedSegments:[]}}if(0===t.length&&function CO(e,n,t){return t.some(r=>vu(e,n,r))}(e,t,r)){const o=new Oe(e.segments,function vO(e,n,t,r,i){const o={};for(const s of r)if(vu(e,t,s)&&!i[ir(s)]){const a=new Oe([],{});a._sourceSegment=e,a._segmentIndexShift=n.length,o[ir(s)]=a}return{...i,...o}}(e,n,t,r,e.children));return o._sourceSegment=e,o._segmentIndexShift=n.length,{segmentGroup:o,slicedSegments:t}}const i=new Oe(e.segments,e.children);return i._sourceSegment=e,i._segmentIndexShift=n.length,{segmentGroup:i,slicedSegments:t}}function vu(e,n,t){return(!(e.hasChildren()||n.length>0)||"full"!==t.pathMatch)&&""===t.path}function WC(e,n,t,r){return!!(ir(e)===r||r!==Te&&vu(n,t,e))&&("**"===e.path||Ep(n,e,t).matched)}function YC(e,n,t){return 0===n.length&&!e.children[t]}const yu=!1;class bu{constructor(n){this.segmentGroup=n||null}}class KC{constructor(n){this.urlTree=n}}function tl(e){return Ua(new bu(e))}function QC(e){return Ua(new KC(e))}class SO{constructor(n,t,r,i,o){this.injector=n,this.configLoader=t,this.urlSerializer=r,this.urlTree=i,this.config=o,this.allowRedirects=!0}apply(){const n=_u(this.urlTree.root,[],[],this.config).segmentGroup,t=new Oe(n.segments,n.children);return this.expandSegmentGroup(this.injector,this.config,t,Te).pipe(we(o=>this.createUrlTree(uu(o),this.urlTree.queryParams,this.urlTree.fragment))).pipe(Ii(o=>{if(o instanceof KC)return this.allowRedirects=!1,this.match(o.urlTree);throw o instanceof bu?this.noMatchError(o):o}))}match(n){return this.expandSegmentGroup(this.injector,this.config,n.root,Te).pipe(we(i=>this.createUrlTree(uu(i),n.queryParams,n.fragment))).pipe(Ii(i=>{throw i instanceof bu?this.noMatchError(i):i}))}noMatchError(n){return new q(4002,yu)}createUrlTree(n,t,r){const i=sp(n);return new Ai(i,t,r)}expandSegmentGroup(n,t,r,i){return 0===r.segments.length&&r.hasChildren()?this.expandChildren(n,t,r).pipe(we(o=>new Oe([],o))):this.expandSegment(n,r,t,r.segments,i,!0)}expandChildren(n,t,r){const i=[];for(const o of Object.keys(r.children))"primary"===o?i.unshift(o):i.push(o);return ot(i).pipe(oi(o=>{const s=r.children[o],a=HC(t,o);return this.expandSegmentGroup(n,a,s,o).pipe(we(l=>({segment:l,outlet:o})))}),uC((o,s)=>(o[s.outlet]=s.segment,o),{}),dC())}expandSegment(n,t,r,i,o,s){return ot(r).pipe(oi(a=>this.expandSegmentAgainstRoute(n,t,r,a,i,o,s).pipe(Ii(c=>{if(c instanceof bu)return de(null);throw c}))),Ti(a=>!!a),Ii((a,l)=>{if(wp(a))return YC(t,i,o)?de(new Oe([],{})):tl(t);throw a}))}expandSegmentAgainstRoute(n,t,r,i,o,s,a){return WC(i,t,o,s)?void 0===i.redirectTo?this.matchSegmentAgainstRoute(n,t,i,o,s):a&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(n,t,r,i,o,s):tl(t):tl(t)}expandSegmentAgainstRouteUsingRedirect(n,t,r,i,o,s){return"**"===i.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(n,r,i,s):this.expandRegularSegmentAgainstRouteUsingRedirect(n,t,r,i,o,s)}expandWildCardWithParamsAgainstRouteUsingRedirect(n,t,r,i){const o=this.applyRedirectCommands([],r.redirectTo,{});return r.redirectTo.startsWith("/")?QC(o):this.lineralizeSegments(r,o).pipe(ae(s=>{const a=new Oe(s,{});return this.expandSegment(n,a,t,s,i,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(n,t,r,i,o,s){const{matched:a,consumedSegments:l,remainingSegments:c,positionalParamSegments:u}=Ep(t,i,o);if(!a)return tl(t);const p=this.applyRedirectCommands(l,i.redirectTo,u);return i.redirectTo.startsWith("/")?QC(p):this.lineralizeSegments(i,p).pipe(ae(m=>this.expandSegment(n,t,r,m.concat(c),s,!1)))}matchSegmentAgainstRoute(n,t,r,i,o){return"**"===r.path?(n=$C(r,n),r.loadChildren?(r._loadedRoutes?de({routes:r._loadedRoutes,injector:r._loadedInjector}):this.configLoader.loadChildren(n,r)).pipe(we(a=>(r._loadedRoutes=a.routes,r._loadedInjector=a.injector,new Oe(i,{})))):de(new Oe(i,{}))):qC(t,r,i,n).pipe(rr(({matched:s,consumedSegments:a,remainingSegments:l})=>s?this.getChildConfig(n=r._injector??n,r,i).pipe(ae(u=>{const p=u.injector??n,m=u.routes,{segmentGroup:_,slicedSegments:E}=_u(t,a,l,m),N=new Oe(_.segments,_.children);if(0===E.length&&N.hasChildren())return this.expandChildren(p,m,N).pipe(we(j=>new Oe(a,j)));if(0===m.length&&0===E.length)return de(new Oe(a,{}));const B=ir(r)===o;return this.expandSegment(p,N,m,E,B?Te:o,!0).pipe(we(ie=>new Oe(a.concat(ie.segments),ie.children)))})):tl(t)))}getChildConfig(n,t,r){return t.children?de({routes:t.children,injector:n}):t.loadChildren?void 0!==t._loadedRoutes?de({routes:t._loadedRoutes,injector:t._loadedInjector}):function mO(e,n,t,r){const i=n.canLoad;return void 0===i||0===i.length?de(!0):de(i.map(s=>{const a=ms(s,e);return Mi(function nO(e){return e&&el(e.canLoad)}(a)?a.canLoad(n,t):e.runInContext(()=>a(n,t)))})).pipe(_s(),zC())}(n,t,r).pipe(ae(i=>i?this.configLoader.loadChildren(n,t).pipe(sn(o=>{t._loadedRoutes=o.routes,t._loadedInjector=o.injector})):function DO(e){return Ua(BC(yu,3))}())):de({routes:[],injector:n})}lineralizeSegments(n,t){let r=[],i=t.root;for(;;){if(r=r.concat(i.segments),0===i.numberOfChildren)return de(r);if(i.numberOfChildren>1||!i.children[Te])return n.redirectTo,Ua(new q(4e3,yu));i=i.children[Te]}}applyRedirectCommands(n,t,r){return this.applyRedirectCreateUrlTree(t,this.urlSerializer.parse(t),n,r)}applyRedirectCreateUrlTree(n,t,r,i){const o=this.createSegmentGroup(n,t.root,r,i);return new Ai(o,this.createQueryParams(t.queryParams,this.urlTree.queryParams),t.fragment)}createQueryParams(n,t){const r={};return Zt(n,(i,o)=>{if("string"==typeof i&&i.startsWith(":")){const a=i.substring(1);r[o]=t[a]}else r[o]=i}),r}createSegmentGroup(n,t,r,i){const o=this.createSegments(n,t.segments,r,i);let s={};return Zt(t.children,(a,l)=>{s[l]=this.createSegmentGroup(n,a,r,i)}),new Oe(o,s)}createSegments(n,t,r,i){return t.map(o=>o.path.startsWith(":")?this.findPosParam(n,o,i):this.findOrReturn(o,r))}findPosParam(n,t,r){const i=r[t.path.substring(1)];if(!i)throw new q(4001,yu);return i}findOrReturn(n,t){let r=0;for(const i of t){if(i.path===n.path)return t.splice(r),i;r++}return n}}class IO{}class xO{constructor(n,t,r,i,o,s,a){this.injector=n,this.rootComponentType=t,this.config=r,this.urlTree=i,this.url=o,this.paramsInheritanceStrategy=s,this.urlSerializer=a}recognize(){const n=_u(this.urlTree.root,[],[],this.config.filter(t=>void 0===t.redirectTo)).segmentGroup;return this.processSegmentGroup(this.injector,this.config,n,Te).pipe(we(t=>{if(null===t)return null;const r=new hu([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},Te,this.rootComponentType,null,this.urlTree.root,-1,{}),i=new ai(r,t),o=new PC(this.url,i);return this.inheritParamsAndData(o._root),o}))}inheritParamsAndData(n){const t=n.value,r=NC(t,this.paramsInheritanceStrategy);t.params=Object.freeze(r.params),t.data=Object.freeze(r.data),n.children.forEach(i=>this.inheritParamsAndData(i))}processSegmentGroup(n,t,r,i){return 0===r.segments.length&&r.hasChildren()?this.processChildren(n,t,r):this.processSegment(n,t,r,r.segments,i)}processChildren(n,t,r){return ot(Object.keys(r.children)).pipe(oi(i=>{const o=r.children[i],s=HC(t,i);return this.processSegmentGroup(n,s,o,i)}),uC((i,o)=>i&&o?(i.push(...o),i):null),function KF(e,n=!1){return St((t,r)=>{let i=0;t.subscribe(ut(r,o=>{const s=e(o,i++);(s||n)&&r.next(o),!s&&r.complete()}))})}(i=>null!==i),ru(null),dC(),we(i=>{if(null===i)return null;const o=ZC(i);return function kO(e){e.sort((n,t)=>n.value.outlet===Te?-1:t.value.outlet===Te?1:n.value.outlet.localeCompare(t.value.outlet))}(o),o}))}processSegment(n,t,r,i,o){return ot(t).pipe(oi(s=>this.processSegmentAgainstRoute(s._injector??n,s,r,i,o)),Ti(s=>!!s),Ii(s=>{if(wp(s))return YC(r,i,o)?de([]):de(null);throw s}))}processSegmentAgainstRoute(n,t,r,i,o){if(t.redirectTo||!WC(t,r,i,o))return de(null);let s;if("**"===t.path){const a=i.length>0?pC(i).parameters:{},l=ew(r)+i.length;s=de({snapshot:new hu(i,a,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,tw(t),ir(t),t.component??t._loadedComponent??null,t,JC(r),l,nw(t)),consumedSegments:[],remainingSegments:[]})}else s=qC(r,t,i,n).pipe(we(({matched:a,consumedSegments:l,remainingSegments:c,parameters:u})=>{if(!a)return null;const p=ew(r)+l.length;return{snapshot:new hu(l,u,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,tw(t),ir(t),t.component??t._loadedComponent??null,t,JC(r),p,nw(t)),consumedSegments:l,remainingSegments:c}}));return s.pipe(rr(a=>{if(null===a)return de(null);const{snapshot:l,consumedSegments:c,remainingSegments:u}=a;n=t._injector??n;const p=t._loadedInjector??n,m=function FO(e){return e.children?e.children:e.loadChildren?e._loadedRoutes:[]}(t),{segmentGroup:_,slicedSegments:E}=_u(r,c,u,m.filter(B=>void 0===B.redirectTo));if(0===E.length&&_.hasChildren())return this.processChildren(p,m,_).pipe(we(B=>null===B?null:[new ai(l,B)]));if(0===m.length&&0===E.length)return de([new ai(l,[])]);const N=ir(t)===o;return this.processSegment(p,m,_,E,N?Te:o).pipe(we(B=>null===B?null:[new ai(l,B)]))}))}}function RO(e){const n=e.value.routeConfig;return n&&""===n.path&&void 0===n.redirectTo}function ZC(e){const n=[],t=new Set;for(const r of e){if(!RO(r)){n.push(r);continue}const i=n.find(o=>r.value.routeConfig===o.value.routeConfig);void 0!==i?(i.children.push(...r.children),t.add(i)):n.push(r)}for(const r of t){const i=ZC(r.children);n.push(new ai(r.value,i))}return n.filter(r=>!t.has(r))}function JC(e){let n=e;for(;n._sourceSegment;)n=n._sourceSegment;return n}function ew(e){let n=e,t=n._segmentIndexShift??0;for(;n._sourceSegment;)n=n._sourceSegment,t+=n._segmentIndexShift??0;return t-1}function tw(e){return e.data||{}}function nw(e){return e.resolve||{}}function rw(e){return"string"==typeof e.title||null===e.title}function Sp(e){return rr(n=>{const t=e(n);return t?ot(t).pipe(we(()=>n)):de(n)})}const vs=new ce("ROUTES");let Tp=(()=>{class e{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=Fe(yb)}loadComponent(t){if(this.componentLoaders.get(t))return this.componentLoaders.get(t);if(t._loadedComponent)return de(t._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(t);const r=Mi(t.loadComponent()).pipe(we(ow),sn(o=>{this.onLoadEndListener&&this.onLoadEndListener(t),t._loadedComponent=o}),rp(()=>{this.componentLoaders.delete(t)})),i=new lC(r,()=>new Wt).pipe(tp());return this.componentLoaders.set(t,i),i}loadChildren(t,r){if(this.childrenLoaders.get(r))return this.childrenLoaders.get(r);if(r._loadedRoutes)return de({routes:r._loadedRoutes,injector:r._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(r);const o=this.loadModuleFactoryOrRoutes(r.loadChildren).pipe(we(a=>{this.onLoadEndListener&&this.onLoadEndListener(r);let l,c,u=!1;Array.isArray(a)?c=a:(l=a.create(t).injector,c=hC(l.get(vs,[],ye.Self|ye.Optional)));return{routes:c.map(Cp),injector:l}}),rp(()=>{this.childrenLoaders.delete(r)})),s=new lC(o,()=>new Wt).pipe(tp());return this.childrenLoaders.set(r,s),s}loadModuleFactoryOrRoutes(t){return Mi(t()).pipe(we(ow),ae(r=>r instanceof Ay||Array.isArray(r)?de(r):ot(this.compiler.compileModuleAsync(r))))}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=ee({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function ow(e){return function UO(e){return e&&"object"==typeof e&&"default"in e}(e)?e.default:e}let wu=(()=>{class e{get hasRequestedNavigation(){return 0!==this.navigationId}constructor(){this.currentNavigation=null,this.lastSuccessfulNavigation=null,this.events=new Wt,this.configLoader=Fe(Tp),this.environmentInjector=Fe(Tr),this.urlSerializer=Fe(Ga),this.rootContexts=Fe(Qa),this.navigationId=0,this.afterPreactivation=()=>de(void 0),this.rootComponentType=null,this.configLoader.onLoadEndListener=i=>this.events.next(new MR(i)),this.configLoader.onLoadStartListener=i=>this.events.next(new IR(i))}complete(){this.transitions?.complete()}handleNavigationRequest(t){const r=++this.navigationId;this.transitions?.next({...this.transitions.value,...t,id:r})}setupNavigations(t){return this.transitions=new nr({id:0,targetPageId:0,currentUrlTree:t.currentUrlTree,currentRawUrl:t.currentUrlTree,extractedUrl:t.urlHandlingStrategy.extract(t.currentUrlTree),urlAfterRedirects:t.urlHandlingStrategy.extract(t.currentUrlTree),rawUrl:t.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:Ya,restoredState:null,currentSnapshot:t.routerState.snapshot,targetSnapshot:null,currentRouterState:t.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(tr(r=>0!==r.id),we(r=>({...r,extractedUrl:t.urlHandlingStrategy.extract(r.rawUrl)})),rr(r=>{let i=!1,o=!1;return de(r).pipe(sn(s=>{this.currentNavigation={id:s.id,initialUrl:s.rawUrl,extractedUrl:s.extractedUrl,trigger:s.source,extras:s.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null}}),rr(s=>{const a=t.browserUrlTree.toString(),l=!t.navigated||s.extractedUrl.toString()!==a||a!==t.currentUrlTree.toString();if(!l&&"reload"!==(s.extras.onSameUrlNavigation??t.onSameUrlNavigation)){const u="";return this.events.next(new fu(s.id,t.serializeUrl(r.rawUrl),u,0)),t.rawUrlTree=s.rawUrl,s.resolve(null),I}if(t.urlHandlingStrategy.shouldProcessUrl(s.rawUrl))return sw(s.source)&&(t.browserUrlTree=s.extractedUrl),de(s).pipe(rr(u=>{const p=this.transitions?.getValue();return this.events.next(new up(u.id,this.urlSerializer.serialize(u.extractedUrl),u.source,u.restoredState)),p!==this.transitions?.getValue()?I:Promise.resolve(u)}),function TO(e,n,t,r){return rr(i=>function EO(e,n,t,r,i){return new SO(e,n,t,r,i).apply()}(e,n,t,i.extractedUrl,r).pipe(we(o=>({...i,urlAfterRedirects:o}))))}(this.environmentInjector,this.configLoader,this.urlSerializer,t.config),sn(u=>{this.currentNavigation={...this.currentNavigation,finalUrl:u.urlAfterRedirects},r.urlAfterRedirects=u.urlAfterRedirects}),function NO(e,n,t,r,i){return ae(o=>function AO(e,n,t,r,i,o,s="emptyOnly"){return new xO(e,n,t,r,i,s,o).recognize().pipe(rr(a=>null===a?function MO(e){return new qe(n=>n.error(e))}(new IO):de(a)))}(e,n,t,o.urlAfterRedirects,r.serialize(o.urlAfterRedirects),r,i).pipe(we(s=>({...o,targetSnapshot:s}))))}(this.environmentInjector,this.rootComponentType,t.config,this.urlSerializer,t.paramsInheritanceStrategy),sn(u=>{if(r.targetSnapshot=u.targetSnapshot,"eager"===t.urlUpdateStrategy){if(!u.extras.skipLocationChange){const m=t.urlHandlingStrategy.merge(u.urlAfterRedirects,u.rawUrl);t.setBrowserUrl(m,u)}t.browserUrlTree=u.urlAfterRedirects}const p=new wR(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot);this.events.next(p)}));if(l&&t.urlHandlingStrategy.shouldProcessUrl(t.rawUrlTree)){const{id:u,extractedUrl:p,source:m,restoredState:_,extras:E}=s,N=new up(u,this.urlSerializer.serialize(p),m,_);this.events.next(N);const B=OC(p,this.rootComponentType).snapshot;return de(r={...s,targetSnapshot:B,urlAfterRedirects:p,extras:{...E,skipLocationChange:!1,replaceUrl:!1}})}{const u="";return this.events.next(new fu(s.id,t.serializeUrl(r.extractedUrl),u,1)),t.rawUrlTree=s.rawUrl,s.resolve(null),I}}),sn(s=>{const a=new DR(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);this.events.next(a)}),we(s=>r={...s,guards:XR(s.targetSnapshot,s.currentSnapshot,this.rootContexts)}),function lO(e,n){return ae(t=>{const{targetSnapshot:r,currentSnapshot:i,guards:{canActivateChecks:o,canDeactivateChecks:s}}=t;return 0===s.length&&0===o.length?de({...t,guardsResult:!0}):function cO(e,n,t,r){return ot(e).pipe(ae(i=>function gO(e,n,t,r,i){const o=n&&n.routeConfig?n.routeConfig.canDeactivate:null;return o&&0!==o.length?de(o.map(a=>{const l=Xa(n)??i,c=ms(a,l);return Mi(function oO(e){return e&&el(e.canDeactivate)}(c)?c.canDeactivate(e,n,t,r):l.runInContext(()=>c(e,n,t,r))).pipe(Ti())})).pipe(_s()):de(!0)}(i.component,i.route,t,n,r)),Ti(i=>!0!==i,!0))}(s,r,i,e).pipe(ae(a=>a&&function tO(e){return"boolean"==typeof e}(a)?function uO(e,n,t,r){return ot(n).pipe(oi(i=>ja(function fO(e,n){return null!==e&&n&&n(new AR(e)),de(!0)}(i.route.parent,r),function dO(e,n){return null!==e&&n&&n(new kR(e)),de(!0)}(i.route,r),function pO(e,n,t){const r=n[n.length-1],o=n.slice(0,n.length-1).reverse().map(s=>function ZR(e){const n=e.routeConfig?e.routeConfig.canActivateChild:null;return n&&0!==n.length?{node:e,guards:n}:null}(s)).filter(s=>null!==s).map(s=>nu(()=>de(s.guards.map(l=>{const c=Xa(s.node)??t,u=ms(l,c);return Mi(function iO(e){return e&&el(e.canActivateChild)}(u)?u.canActivateChild(r,e):c.runInContext(()=>u(r,e))).pipe(Ti())})).pipe(_s())));return de(o).pipe(_s())}(e,i.path,t),function hO(e,n,t){const r=n.routeConfig?n.routeConfig.canActivate:null;if(!r||0===r.length)return de(!0);const i=r.map(o=>nu(()=>{const s=Xa(n)??t,a=ms(o,s);return Mi(function rO(e){return e&&el(e.canActivate)}(a)?a.canActivate(n,e):s.runInContext(()=>a(n,e))).pipe(Ti())}));return de(i).pipe(_s())}(e,i.route,t))),Ti(i=>!0!==i,!0))}(r,o,e,n):de(a)),we(a=>({...t,guardsResult:a})))})}(this.environmentInjector,s=>this.events.next(s)),sn(s=>{if(r.guardsResult=s.guardsResult,oo(s.guardsResult))throw VC(0,s.guardsResult);const a=new ER(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot,!!s.guardsResult);this.events.next(a)}),tr(s=>!!s.guardsResult||(t.restoreHistory(s),this.cancelNavigationTransition(s,"",3),!1)),Sp(s=>{if(s.guards.canActivateChecks.length)return de(s).pipe(sn(a=>{const l=new SR(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(l)}),rr(a=>{let l=!1;return de(a).pipe(function PO(e,n){return ae(t=>{const{targetSnapshot:r,guards:{canActivateChecks:i}}=t;if(!i.length)return de(t);let o=0;return ot(i).pipe(oi(s=>function LO(e,n,t,r){const i=e.routeConfig,o=e._resolve;return void 0!==i?.title&&!rw(i)&&(o[$a]=i.title),function VO(e,n,t,r){const i=function BO(e){return[...Object.keys(e),...Object.getOwnPropertySymbols(e)]}(e);if(0===i.length)return de({});const o={};return ot(i).pipe(ae(s=>function jO(e,n,t,r){const i=Xa(n)??r,o=ms(e,i);return Mi(o.resolve?o.resolve(n,t):i.runInContext(()=>o(n,t)))}(e[s],n,t,r).pipe(Ti(),sn(a=>{o[s]=a}))),np(1),function QF(e){return we(()=>e)}(o),Ii(s=>wp(s)?I:Ua(s)))}(o,e,n,r).pipe(we(s=>(e._resolvedData=s,e.data=NC(e,t).resolve,i&&rw(i)&&(e.data[$a]=i.title),null)))}(s.route,r,e,n)),sn(()=>o++),np(1),ae(s=>o===i.length?de(t):I))})}(t.paramsInheritanceStrategy,this.environmentInjector),sn({next:()=>l=!0,complete:()=>{l||(t.restoreHistory(a),this.cancelNavigationTransition(a,"",2))}}))}),sn(a=>{const l=new TR(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(l)}))}),Sp(s=>{const a=l=>{const c=[];l.routeConfig?.loadComponent&&!l.routeConfig._loadedComponent&&c.push(this.configLoader.loadComponent(l.routeConfig).pipe(sn(u=>{l.component=u}),we(()=>{})));for(const u of l.children)c.push(...a(u));return c};return sC(a(s.targetSnapshot.root)).pipe(ru(),_r(1))}),Sp(()=>this.afterPreactivation()),we(s=>{const a=function jR(e,n,t){const r=Ka(e,n._root,t?t._root:void 0);return new RC(r,n)}(t.routeReuseStrategy,s.targetSnapshot,s.currentRouterState);return r={...s,targetRouterState:a}}),sn(s=>{t.currentUrlTree=s.urlAfterRedirects,t.rawUrlTree=t.urlHandlingStrategy.merge(s.urlAfterRedirects,s.rawUrl),t.routerState=s.targetRouterState,"deferred"===t.urlUpdateStrategy&&(s.extras.skipLocationChange||t.setBrowserUrl(t.rawUrlTree,s),t.browserUrlTree=s.urlAfterRedirects)}),((e,n,t)=>we(r=>(new QR(n,r.targetRouterState,r.currentRouterState,t).activate(e),r)))(this.rootContexts,t.routeReuseStrategy,s=>this.events.next(s)),sn({next:s=>{i=!0,this.lastSuccessfulNavigation=this.currentNavigation,t.navigated=!0,this.events.next(new so(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(t.currentUrlTree))),t.titleStrategy?.updateTitle(s.targetRouterState.snapshot),s.resolve(!0)},complete:()=>{i=!0}}),rp(()=>{i||o||this.cancelNavigationTransition(r,"",1),this.currentNavigation?.id===r.id&&(this.currentNavigation=null)}),Ii(s=>{if(o=!0,UC(s)){jC(s)||(t.navigated=!0,t.restoreHistory(r,!0));const a=new du(r.id,this.urlSerializer.serialize(r.extractedUrl),s.message,s.cancellationCode);if(this.events.next(a),jC(s)){const l=t.urlHandlingStrategy.merge(s.url,t.rawUrlTree),c={skipLocationChange:r.extras.skipLocationChange,replaceUrl:"eager"===t.urlUpdateStrategy||sw(r.source)};t.scheduleNavigation(l,Ya,null,c,{resolve:r.resolve,reject:r.reject,promise:r.promise})}else r.resolve(!1)}else{t.restoreHistory(r,!0);const a=new dp(r.id,this.urlSerializer.serialize(r.extractedUrl),s,r.targetSnapshot??void 0);this.events.next(a);try{r.resolve(t.errorHandler(s))}catch(l){r.reject(l)}}return I}))}))}cancelNavigationTransition(t,r,i){const o=new du(t.id,this.urlSerializer.serialize(t.extractedUrl),r,i);this.events.next(o),t.resolve(!1)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=ee({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function sw(e){return e!==Ya}let aw=(()=>{class e{buildTitle(t){let r,i=t.root;for(;void 0!==i;)r=this.getResolvedTitleForRoute(i)??r,i=i.children.find(o=>o.outlet===Te);return r}getResolvedTitleForRoute(t){return t.data[$a]}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=ee({token:e,factory:function(){return Fe($O)},providedIn:"root"}),e})(),$O=(()=>{class e extends aw{constructor(t){super(),this.title=t}updateTitle(t){const r=this.buildTitle(t);void 0!==r&&this.title.setTitle(r)}}return e.\u0275fac=function(t){return new(t||e)(te(j1))},e.\u0275prov=ee({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),HO=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=ee({token:e,factory:function(){return Fe(zO)},providedIn:"root"}),e})();class GO{shouldDetach(n){return!1}store(n,t){}shouldAttach(n){return!1}retrieve(n){return null}shouldReuseRoute(n,t){return n.routeConfig===t.routeConfig}}let zO=(()=>{class e extends GO{}return e.\u0275fac=function(){let n;return function(r){return(n||(n=et(e)))(r||e)}}(),e.\u0275prov=ee({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const Du=new ce("",{providedIn:"root",factory:()=>({})});let WO=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=ee({token:e,factory:function(){return Fe(YO)},providedIn:"root"}),e})(),YO=(()=>{class e{shouldProcessUrl(t){return!0}extract(t){return t}merge(t,r){return t}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=ee({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function KO(e){throw e}function QO(e,n,t){return n.parse("/")}const XO={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},ZO={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let jt=(()=>{class e{get navigationId(){return this.navigationTransitions.navigationId}get browserPageId(){return this.location.getState()?.\u0275routerPageId}get events(){return this.navigationTransitions.events}constructor(){this.disposed=!1,this.currentPageId=0,this.console=Fe(sx),this.isNgZoneEnabled=!1,this.options=Fe(Du,{optional:!0})||{},this.errorHandler=this.options.errorHandler||KO,this.malformedUriErrorHandler=this.options.malformedUriErrorHandler||QO,this.navigated=!1,this.lastSuccessfulId=-1,this.urlHandlingStrategy=Fe(WO),this.routeReuseStrategy=Fe(HO),this.urlCreationStrategy=Fe(LR),this.titleStrategy=Fe(aw),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.config=hC(Fe(vs,{optional:!0})??[]),this.navigationTransitions=Fe(wu),this.urlSerializer=Fe(Ga),this.location=Fe(Eh),this.isNgZoneEnabled=Fe(Mt)instanceof Mt&&Mt.isInAngularZone(),this.resetConfig(this.config),this.currentUrlTree=new Ai,this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=OC(this.currentUrlTree,null),this.navigationTransitions.setupNavigations(this).subscribe(t=>{this.lastSuccessfulId=t.id,this.currentPageId=t.targetPageId},t=>{this.console.warn(`Unhandled Navigation Error: ${t}`)})}resetRootComponentType(t){this.routerState.root.component=t,this.navigationTransitions.rootComponentType=t}initialNavigation(){if(this.setUpLocationChangeListener(),!this.navigationTransitions.hasRequestedNavigation){const t=this.location.getState();this.navigateToSyncWithBrowser(this.location.path(!0),Ya,t)}}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(t=>{const r="popstate"===t.type?"popstate":"hashchange";"popstate"===r&&setTimeout(()=>{this.navigateToSyncWithBrowser(t.url,r,t.state)},0)}))}navigateToSyncWithBrowser(t,r,i){const o={replaceUrl:!0},s=i?.navigationId?i:null;if(i){const l={...i};delete l.navigationId,delete l.\u0275routerPageId,0!==Object.keys(l).length&&(o.state=l)}const a=this.parseUrl(t);this.scheduleNavigation(a,r,s,o)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}resetConfig(t){this.config=t.map(Cp),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(t,r={}){const{relativeTo:i,queryParams:o,fragment:s,queryParamsHandling:a,preserveFragment:l}=r,c=l?this.currentUrlTree.fragment:s;let u=null;switch(a){case"merge":u={...this.currentUrlTree.queryParams,...o};break;case"preserve":u=this.currentUrlTree.queryParams;break;default:u=o||null}return null!==u&&(u=this.removeEmptyProps(u)),this.urlCreationStrategy.createUrlTree(i,this.routerState,this.currentUrlTree,t,u,c??null)}navigateByUrl(t,r={skipLocationChange:!1}){const i=oo(t)?t:this.parseUrl(t),o=this.urlHandlingStrategy.merge(i,this.rawUrlTree);return this.scheduleNavigation(o,Ya,null,r)}navigate(t,r={skipLocationChange:!1}){return function JO(e){for(let n=0;n{const o=t[i];return null!=o&&(r[i]=o),r},{})}scheduleNavigation(t,r,i,o,s){if(this.disposed)return Promise.resolve(!1);let a,l,c,u;return s?(a=s.resolve,l=s.reject,c=s.promise):c=new Promise((p,m)=>{a=p,l=m}),u="computed"===this.canceledNavigationResolution?i&&i.\u0275routerPageId?i.\u0275routerPageId:o.replaceUrl||o.skipLocationChange?this.browserPageId??0:(this.browserPageId??0)+1:0,this.navigationTransitions.handleNavigationRequest({targetPageId:u,source:r,restoredState:i,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:t,extras:o,resolve:a,reject:l,promise:c,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),c.catch(p=>Promise.reject(p))}setBrowserUrl(t,r){const i=this.urlSerializer.serialize(t),o={...r.extras.state,...this.generateNgRouterState(r.id,r.targetPageId)};this.location.isCurrentPathEqualTo(i)||r.extras.replaceUrl?this.location.replaceState(i,"",o):this.location.go(i,"",o)}restoreHistory(t,r=!1){if("computed"===this.canceledNavigationResolution){const i=this.currentPageId-t.targetPageId;"popstate"!==t.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==this.getCurrentNavigation()?.finalUrl||0===i?this.currentUrlTree===this.getCurrentNavigation()?.finalUrl&&0===i&&(this.resetState(t),this.browserUrlTree=t.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(i)}else"replace"===this.canceledNavigationResolution&&(r&&this.resetState(t),this.resetUrlToCurrentUrlTree())}resetState(t){this.routerState=t.currentRouterState,this.currentUrlTree=t.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,t.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(t,r){return"computed"===this.canceledNavigationResolution?{navigationId:t,\u0275routerPageId:r}:{navigationId:t}}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=ee({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),nl=(()=>{class e{constructor(t,r,i,o,s,a){this.router=t,this.route=r,this.tabIndexAttribute=i,this.renderer=o,this.el=s,this.locationStrategy=a,this._preserveFragment=!1,this._skipLocationChange=!1,this._replaceUrl=!1,this.href=null,this.commands=null,this.onChanges=new Wt;const l=s.nativeElement.tagName?.toLowerCase();this.isAnchorElement="a"===l||"area"===l,this.isAnchorElement?this.subscription=t.events.subscribe(c=>{c instanceof so&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}set preserveFragment(t){this._preserveFragment=cs(t)}get preserveFragment(){return this._preserveFragment}set skipLocationChange(t){this._skipLocationChange=cs(t)}get skipLocationChange(){return this._skipLocationChange}set replaceUrl(t){this._replaceUrl=cs(t)}get replaceUrl(){return this._replaceUrl}setTabIndexIfNotOnNativeEl(t){null!=this.tabIndexAttribute||this.isAnchorElement||this.applyAttributeValue("tabindex",t)}ngOnChanges(t){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}set routerLink(t){null!=t?(this.commands=Array.isArray(t)?t:[t],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(t,r,i,o,s){return!!(null===this.urlTree||this.isAnchorElement&&(0!==t||r||i||o||s||"string"==typeof this.target&&"_self"!=this.target))||(this.router.navigateByUrl(this.urlTree,{skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state}),!this.isAnchorElement)}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){this.href=null!==this.urlTree&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(this.urlTree)):null;const t=null===this.href?null:function n_(e,n,t){return function pS(e,n){return"src"===n&&("embed"===e||"frame"===e||"iframe"===e||"media"===e||"script"===e)||"href"===n&&("base"===e||"link"===e)?t_:e_}(n,t)(e)}(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",t)}applyAttributeValue(t,r){const i=this.renderer,o=this.el.nativeElement;null!==r?i.setAttribute(o,t,r):i.removeAttribute(o,t)}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}}return e.\u0275fac=function(t){return new(t||e)(O(jt),O(ao),function Xl(e){return function B0(e,n){if("class"===n)return e.classes;if("style"===n)return e.styles;const t=e.attrs;if(t){const r=t.length;let i=0;for(;i{class e{get isActive(){return this._isActive}constructor(t,r,i,o,s){this.router=t,this.element=r,this.renderer=i,this.cdr=o,this.link=s,this.classes=[],this._isActive=!1,this.routerLinkActiveOptions={exact:!1},this.isActiveChange=new ue,this.routerEventsSubscription=t.events.subscribe(a=>{a instanceof so&&this.update()})}ngAfterContentInit(){de(this.links.changes,de(null)).pipe(x()).subscribe(t=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();const t=[...this.links.toArray(),this.link].filter(r=>!!r).map(r=>r.onChanges);this.linkInputChangesSubscription=ot(t).pipe(x()).subscribe(r=>{this._isActive!==this.isLinkActive(this.router)(r)&&this.update()})}set routerLinkActive(t){const r=Array.isArray(t)?t:t.split(" ");this.classes=r.filter(i=>!!i)}ngOnChanges(t){this.update()}ngOnDestroy(){this.routerEventsSubscription.unsubscribe(),this.linkInputChangesSubscription?.unsubscribe()}update(){!this.links||!this.router.navigated||Promise.resolve().then(()=>{const t=this.hasActiveLinks();this._isActive!==t&&(this._isActive=t,this.cdr.markForCheck(),this.classes.forEach(r=>{t?this.renderer.addClass(this.element.nativeElement,r):this.renderer.removeClass(this.element.nativeElement,r)}),t&&void 0!==this.ariaCurrentWhenActive?this.renderer.setAttribute(this.element.nativeElement,"aria-current",this.ariaCurrentWhenActive.toString()):this.renderer.removeAttribute(this.element.nativeElement,"aria-current"),this.isActiveChange.emit(t))})}isLinkActive(t){const r=function eN(e){return!!e.paths}(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return i=>!!i.urlTree&&t.isActive(i.urlTree,r)}hasActiveLinks(){const t=this.isLinkActive(this.router);return this.link&&t(this.link)||this.links.some(t)}}return e.\u0275fac=function(t){return new(t||e)(O(jt),O(Tn),O(Qr),O(xa),O(nl,8))},e.\u0275dir=Ce({type:e,selectors:[["","routerLinkActive",""]],contentQueries:function(t,r,i){if(1&t&&function Qy(e,n,t,r){const i=Ue();if(i.firstCreatePass){const o=Xt();Zy(i,new Yy(n,t,r),o.index),function jA(e,n){const t=e.contentQueries||(e.contentQueries=[]);n!==(t.length?t[t.length-1]:-1)&&t.push(e.queries.length-1,n)}(i,e),2==(2&t)&&(i.staticContentQueries=!0)}Xy(i,H(),t)}(i,nl,5),2&t){let o;os(o=ss())&&(r.links=o)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],standalone:!0,features:[Dn]}),e})();class lw{}let tN=(()=>{class e{constructor(t,r,i,o,s){this.router=t,this.injector=i,this.preloadingStrategy=o,this.loader=s}setUpPreloading(){this.subscription=this.router.events.pipe(tr(t=>t instanceof so),oi(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(t,r){const i=[];for(const o of r){o.providers&&!o._injector&&(o._injector=Tc(o.providers,t,`Route: ${o.path}`));const s=o._injector??t,a=o._loadedInjector??s;(o.loadChildren&&!o._loadedRoutes&&void 0===o.canLoad||o.loadComponent&&!o._loadedComponent)&&i.push(this.preloadConfig(s,o)),(o.children||o._loadedRoutes)&&i.push(this.processRoutes(a,o.children??o._loadedRoutes))}return ot(i).pipe(x())}preloadConfig(t,r){return this.preloadingStrategy.preload(r,()=>{let i;i=r.loadChildren&&void 0===r.canLoad?this.loader.loadChildren(t,r):de(null);const o=i.pipe(ae(s=>null===s?de(void 0):(r._loadedRoutes=s.routes,r._loadedInjector=s.injector,this.processRoutes(s.injector??t,s.routes))));return r.loadComponent&&!r._loadedComponent?ot([o,this.loader.loadComponent(r)]).pipe(x()):o})}}return e.\u0275fac=function(t){return new(t||e)(te(jt),te(yb),te(Tr),te(lw),te(Tp))},e.\u0275prov=ee({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const Ap=new ce("");let cw=(()=>{class e{constructor(t,r,i,o,s={}){this.urlSerializer=t,this.transitions=r,this.viewportScroller=i,this.zone=o,this.options=s,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},s.scrollPositionRestoration=s.scrollPositionRestoration||"disabled",s.anchorScrolling=s.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(t=>{t instanceof up?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=t.navigationTrigger,this.restoredId=t.restoredState?t.restoredState.navigationId:0):t instanceof so&&(this.lastId=t.id,this.scheduleScrollEvent(t,this.urlSerializer.parse(t.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(t=>{t instanceof kC&&(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,r){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new kC(t,"popstate"===this.lastSource?this.store[this.restoredId]:null,r))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}}return e.\u0275fac=function(t){!function R_(){throw new Error("invalid")}()},e.\u0275prov=ee({token:e,factory:e.\u0275fac}),e})();var jn=(()=>((jn=jn||{})[jn.COMPLETE=0]="COMPLETE",jn[jn.FAILED=1]="FAILED",jn[jn.REDIRECTING=2]="REDIRECTING",jn))();const ys=!1;function xi(e,n){return{\u0275kind:e,\u0275providers:n}}const xp=new ce("",{providedIn:"root",factory:()=>!1});function dw(){const e=Fe(Ir);return n=>{const t=e.get(Oc);if(n!==t.components[0])return;const r=e.get(jt),i=e.get(fw);1===e.get(kp)&&r.initialNavigation(),e.get(hw,null,ye.Optional)?.setUpPreloading(),e.get(Ap,null,ye.Optional)?.init(),r.resetRootComponentType(t.componentTypes[0]),i.closed||(i.next(),i.unsubscribe())}}const fw=new ce(ys?"bootstrap done indicator":"",{factory:()=>new Wt}),kp=new ce(ys?"initial navigation":"",{providedIn:"root",factory:()=>1});function sN(){let e=[];return e=ys?[{provide:lc,multi:!0,useFactory:()=>{const n=Fe(jt);return()=>n.events.subscribe(t=>{console.group?.(`Router Event: ${t.constructor.name}`),console.log(function RR(e){if(!("type"in e))return`Unknown Router Event: ${e.constructor.name}`;switch(e.type){case 14:return`ActivationEnd(path: '${e.snapshot.routeConfig?.path||""}')`;case 13:return`ActivationStart(path: '${e.snapshot.routeConfig?.path||""}')`;case 12:return`ChildActivationEnd(path: '${e.snapshot.routeConfig?.path||""}')`;case 11:return`ChildActivationStart(path: '${e.snapshot.routeConfig?.path||""}')`;case 8:return`GuardsCheckEnd(id: ${e.id}, url: '${e.url}', urlAfterRedirects: '${e.urlAfterRedirects}', state: ${e.state}, shouldActivate: ${e.shouldActivate})`;case 7:return`GuardsCheckStart(id: ${e.id}, url: '${e.url}', urlAfterRedirects: '${e.urlAfterRedirects}', state: ${e.state})`;case 2:return`NavigationCancel(id: ${e.id}, url: '${e.url}')`;case 16:return`NavigationSkipped(id: ${e.id}, url: '${e.url}')`;case 1:return`NavigationEnd(id: ${e.id}, url: '${e.url}', urlAfterRedirects: '${e.urlAfterRedirects}')`;case 3:return`NavigationError(id: ${e.id}, url: '${e.url}', error: ${e.error})`;case 0:return`NavigationStart(id: ${e.id}, url: '${e.url}')`;case 6:return`ResolveEnd(id: ${e.id}, url: '${e.url}', urlAfterRedirects: '${e.urlAfterRedirects}', state: ${e.state})`;case 5:return`ResolveStart(id: ${e.id}, url: '${e.url}', urlAfterRedirects: '${e.urlAfterRedirects}', state: ${e.state})`;case 10:return`RouteConfigLoadEnd(path: ${e.route.path})`;case 9:return`RouteConfigLoadStart(path: ${e.route.path})`;case 4:return`RoutesRecognized(id: ${e.id}, url: '${e.url}', urlAfterRedirects: '${e.urlAfterRedirects}', state: ${e.state})`;case 15:return`Scroll(anchor: '${e.anchor}', position: '${e.position?`${e.position[0]}, ${e.position[1]}`:null}')`}}(t)),console.log(t),console.groupEnd?.()})}}]:[],xi(1,e)}const hw=new ce(ys?"router preloader":"");function aN(e){return xi(0,[{provide:hw,useExisting:tN},{provide:lw,useExisting:e}])}const rl=!1,pw=new ce(rl?"router duplicate forRoot guard":"ROUTER_FORROOT_GUARD"),lN=[Eh,{provide:Ga,useClass:ip},jt,Qa,{provide:ao,useFactory:function uw(e){return e.routerState.root},deps:[jt]},Tp,rl?{provide:xp,useValue:!0}:[]];function cN(){return new Ib("Router",jt)}let gw=(()=>{class e{constructor(t){}static forRoot(t,r){return{ngModule:e,providers:[lN,rl&&r?.enableTracing?sN().\u0275providers:[],{provide:vs,multi:!0,useValue:t},{provide:pw,useFactory:hN,deps:[[jt,new ta,new na]]},{provide:Du,useValue:r||{}},r?.useHash?{provide:ro,useClass:Wx}:{provide:ro,useClass:Qb},{provide:Ap,useFactory:()=>{const e=Fe(c2),n=Fe(Mt),t=Fe(Du),r=Fe(wu),i=Fe(Ga);return t.scrollOffset&&e.setOffset(t.scrollOffset),new cw(i,r,e,n,t)}},r?.preloadingStrategy?aN(r.preloadingStrategy).\u0275providers:[],{provide:Ib,multi:!0,useFactory:cN},r?.initialNavigation?pN(r):[],[{provide:mw,useFactory:dw},{provide:Tb,multi:!0,useExisting:mw}]]}}static forChild(t){return{ngModule:e,providers:[{provide:vs,multi:!0,useValue:t}]}}}return e.\u0275fac=function(t){return new(t||e)(te(pw,8))},e.\u0275mod=Kn({type:e}),e.\u0275inj=Rn({imports:[yp]}),e})();function hN(e){if(rl&&e)throw new q(4007,"The Router was provided more than once. This can happen if 'forRoot' is used outside of the root injector. Lazy loaded modules should use RouterModule.forChild() instead.");return"guarded"}function pN(e){return["disabled"===e.initialNavigation?xi(3,[{provide:kc,multi:!0,useFactory:()=>{const n=Fe(jt);return()=>{n.setUpLocationChangeListener()}}},{provide:kp,useValue:2}]).\u0275providers:[],"enabledBlocking"===e.initialNavigation?xi(2,[{provide:kp,useValue:0},{provide:kc,multi:!0,deps:[Ir],useFactory:n=>{const t=n.get(zx,Promise.resolve());return()=>t.then(()=>new Promise(r=>{const i=n.get(jt),o=n.get(fw);(function nN(e,n){e.events.pipe(tr(t=>t instanceof so||t instanceof du||t instanceof dp||t instanceof fu),we(t=>t instanceof so||t instanceof fu?jn.COMPLETE:t instanceof du&&(0===t.code||1===t.code)?jn.REDIRECTING:jn.FAILED),tr(t=>t!==jn.REDIRECTING),_r(1)).subscribe(()=>{n()})})(i,()=>{r(!0)}),n.get(wu).afterPreactivation=()=>(r(!0),o.closed?de(void 0):o),i.initialNavigation()}))}}]).\u0275providers:[]]}const mw=new ce(rl?"Router Initializer":"");function lo(e){return!!e&&(e instanceof qe||Be(e.lift)&&Be(e.subscribe))}function _w(...e){const n=w(e),{args:t,keys:r}=rC(e),i=new qe(o=>{const{length:s}=t;if(!s)return void o.complete();const a=new Array(s);let l=s,c=s;for(let u=0;u{p||(p=!0,c--),a[u]=m},()=>l--,void 0,()=>{(!l||!p)&&(c||o.next(r?oC(r,a):a),o.complete())}))}});return n?i.pipe(iC(n)):i}const Fp={now:()=>(Fp.delegate||Date).now(),delegate:void 0};class mN extends Wt{constructor(n=1/0,t=1/0,r=Fp){super(),this._bufferSize=n,this._windowTime=t,this._timestampProvider=r,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=t===1/0,this._bufferSize=Math.max(1,n),this._windowTime=Math.max(1,t)}next(n){const{isStopped:t,_buffer:r,_infiniteTimeWindow:i,_timestampProvider:o,_windowTime:s}=this;t||(r.push(n),!i&&r.push(o.now()+s)),this._trimBuffer(),super.next(n)}_subscribe(n){this._throwIfClosed(),this._trimBuffer();const t=this._innerSubscribe(n),{_infiniteTimeWindow:r,_buffer:i}=this,o=i.slice();for(let s=0;snew mN(r,n,t),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:i})}class il{}let yw=(()=>{class e extends il{getTranslation(t){return de({})}}return e.\u0275fac=function(){let n;return function(r){return(n||(n=et(e)))(r||e)}}(),e.\u0275prov=ee({token:e,factory:e.\u0275fac}),e})();class Rp{}let bw=(()=>{class e{handle(t){return t.key}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=ee({token:e,factory:e.\u0275fac}),e})();function Eu(e,n){if(e===n)return!0;if(null===e||null===n)return!1;if(e!=e&&n!=n)return!0;let i,o,s,t=typeof e;if(t==typeof n&&"object"==t){if(!Array.isArray(e)){if(Array.isArray(n))return!1;for(o in s=Object.create(null),e){if(!Eu(e[o],n[o]))return!1;s[o]=!0}for(o in n)if(!(o in s)&&typeof n[o]<"u")return!1;return!0}if(!Array.isArray(n))return!1;if((i=e.length)==n.length){for(o=0;o{Op(n[r])?r in e?t[r]=Cw(e[r],n[r]):Object.assign(t,{[r]:n[r]}):Object.assign(t,{[r]:n[r]})}),t}class Su{}let ww=(()=>{class e extends Su{constructor(){super(...arguments),this.templateMatcher=/{{\s?([^{}\s]*)\s?}}/g}interpolate(t,r){let i;return i="string"==typeof t?this.interpolateString(t,r):"function"==typeof t?this.interpolateFunction(t,r):t,i}getValue(t,r){let i="string"==typeof r?r.split("."):[r];r="";do{r+=i.shift(),!ki(t)||!ki(t[r])||"object"!=typeof t[r]&&i.length?i.length?r+=".":t=void 0:(t=t[r],r="")}while(i.length);return t}interpolateFunction(t,r){return t(r)}interpolateString(t,r){return r?t.replace(this.templateMatcher,(i,o)=>{let s=this.getValue(r,o);return ki(s)?s:i}):t}}return e.\u0275fac=function(){let n;return function(r){return(n||(n=et(e)))(r||e)}}(),e.\u0275prov=ee({token:e,factory:e.\u0275fac}),e})();class Tu{}let Dw=(()=>{class e extends Tu{compile(t,r){return t}compileTranslations(t,r){return t}}return e.\u0275fac=function(){let n;return function(r){return(n||(n=et(e)))(r||e)}}(),e.\u0275prov=ee({token:e,factory:e.\u0275fac}),e})();class Ew{constructor(){this.currentLang=this.defaultLang,this.translations={},this.langs=[],this.onTranslationChange=new ue,this.onLangChange=new ue,this.onDefaultLangChange=new ue}}const Np=new ce("USE_STORE"),Pp=new ce("USE_DEFAULT_LANG"),Lp=new ce("DEFAULT_LANGUAGE"),Vp=new ce("USE_EXTEND");let Iu=(()=>{class e{constructor(t,r,i,o,s,a=!0,l=!1,c=!1,u){this.store=t,this.currentLoader=r,this.compiler=i,this.parser=o,this.missingTranslationHandler=s,this.useDefaultLang=a,this.isolate=l,this.extend=c,this.pending=!1,this._onTranslationChange=new ue,this._onLangChange=new ue,this._onDefaultLangChange=new ue,this._langs=[],this._translations={},this._translationRequests={},u&&this.setDefaultLang(u)}get onTranslationChange(){return this.isolate?this._onTranslationChange:this.store.onTranslationChange}get onLangChange(){return this.isolate?this._onLangChange:this.store.onLangChange}get onDefaultLangChange(){return this.isolate?this._onDefaultLangChange:this.store.onDefaultLangChange}get defaultLang(){return this.isolate?this._defaultLang:this.store.defaultLang}set defaultLang(t){this.isolate?this._defaultLang=t:this.store.defaultLang=t}get currentLang(){return this.isolate?this._currentLang:this.store.currentLang}set currentLang(t){this.isolate?this._currentLang=t:this.store.currentLang=t}get langs(){return this.isolate?this._langs:this.store.langs}set langs(t){this.isolate?this._langs=t:this.store.langs=t}get translations(){return this.isolate?this._translations:this.store.translations}set translations(t){this.isolate?this._translations=t:this.store.translations=t}setDefaultLang(t){if(t===this.defaultLang)return;let r=this.retrieveTranslations(t);typeof r<"u"?(null==this.defaultLang&&(this.defaultLang=t),r.pipe(_r(1)).subscribe(i=>{this.changeDefaultLang(t)})):this.changeDefaultLang(t)}getDefaultLang(){return this.defaultLang}use(t){if(t===this.currentLang)return de(this.translations[t]);let r=this.retrieveTranslations(t);return typeof r<"u"?(this.currentLang||(this.currentLang=t),r.pipe(_r(1)).subscribe(i=>{this.changeLang(t)}),r):(this.changeLang(t),de(this.translations[t]))}retrieveTranslations(t){let r;return(typeof this.translations[t]>"u"||this.extend)&&(this._translationRequests[t]=this._translationRequests[t]||this.getTranslation(t),r=this._translationRequests[t]),r}getTranslation(t){this.pending=!0;const r=this.currentLoader.getTranslation(t).pipe(vw(1),_r(1));return this.loadingTranslations=r.pipe(we(i=>this.compiler.compileTranslations(i,t)),vw(1),_r(1)),this.loadingTranslations.subscribe({next:i=>{this.translations[t]=this.extend&&this.translations[t]?{...i,...this.translations[t]}:i,this.updateLangs(),this.pending=!1},error:i=>{this.pending=!1}}),r}setTranslation(t,r,i=!1){r=this.compiler.compileTranslations(r,t),this.translations[t]=(i||this.extend)&&this.translations[t]?Cw(this.translations[t],r):r,this.updateLangs(),this.onTranslationChange.emit({lang:t,translations:this.translations[t]})}getLangs(){return this.langs}addLangs(t){t.forEach(r=>{-1===this.langs.indexOf(r)&&this.langs.push(r)})}updateLangs(){this.addLangs(Object.keys(this.translations))}getParsedResult(t,r,i){let o;if(r instanceof Array){let s={},a=!1;for(let l of r)s[l]=this.getParsedResult(t,l,i),lo(s[l])&&(a=!0);return a?_w(r.map(c=>lo(s[c])?s[c]:de(s[c]))).pipe(we(c=>{let u={};return c.forEach((p,m)=>{u[r[m]]=p}),u})):s}if(t&&(o=this.parser.interpolate(this.parser.getValue(t,r),i)),typeof o>"u"&&null!=this.defaultLang&&this.defaultLang!==this.currentLang&&this.useDefaultLang&&(o=this.parser.interpolate(this.parser.getValue(this.translations[this.defaultLang],r),i)),typeof o>"u"){let s={key:r,translateService:this};typeof i<"u"&&(s.interpolateParams=i),o=this.missingTranslationHandler.handle(s)}return typeof o<"u"?o:r}get(t,r){if(!ki(t)||!t.length)throw new Error('Parameter "key" required');if(this.pending)return this.loadingTranslations.pipe(oi(i=>lo(i=this.getParsedResult(i,t,r))?i:de(i)));{let i=this.getParsedResult(this.translations[this.currentLang],t,r);return lo(i)?i:de(i)}}getStreamOnTranslationChange(t,r){if(!ki(t)||!t.length)throw new Error('Parameter "key" required');return ja(nu(()=>this.get(t,r)),this.onTranslationChange.pipe(rr(i=>{const o=this.getParsedResult(i.translations,t,r);return"function"==typeof o.subscribe?o:de(o)})))}stream(t,r){if(!ki(t)||!t.length)throw new Error('Parameter "key" required');return ja(nu(()=>this.get(t,r)),this.onLangChange.pipe(rr(i=>{const o=this.getParsedResult(i.translations,t,r);return lo(o)?o:de(o)})))}instant(t,r){if(!ki(t)||!t.length)throw new Error('Parameter "key" required');let i=this.getParsedResult(this.translations[this.currentLang],t,r);if(lo(i)){if(t instanceof Array){let o={};return t.forEach((s,a)=>{o[t[a]]=t[a]}),o}return t}return i}set(t,r,i=this.currentLang){this.translations[i][t]=this.compiler.compile(r,i),this.updateLangs(),this.onTranslationChange.emit({lang:i,translations:this.translations[i]})}changeLang(t){this.currentLang=t,this.onLangChange.emit({lang:t,translations:this.translations[t]}),null==this.defaultLang&&this.changeDefaultLang(t)}changeDefaultLang(t){this.defaultLang=t,this.onDefaultLangChange.emit({lang:t,translations:this.translations[t]})}reloadLang(t){return this.resetLang(t),this.getTranslation(t)}resetLang(t){this._translationRequests[t]=void 0,this.translations[t]=void 0}getBrowserLang(){if(typeof window>"u"||typeof window.navigator>"u")return;let t=window.navigator.languages?window.navigator.languages[0]:null;return t=t||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,typeof t>"u"?void 0:(-1!==t.indexOf("-")&&(t=t.split("-")[0]),-1!==t.indexOf("_")&&(t=t.split("_")[0]),t)}getBrowserCultureLang(){if(typeof window>"u"||typeof window.navigator>"u")return;let t=window.navigator.languages?window.navigator.languages[0]:null;return t=t||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,t}}return e.\u0275fac=function(t){return new(t||e)(te(Ew),te(il),te(Tu),te(Su),te(Rp),te(Pp),te(Np),te(Vp),te(Lp))},e.\u0275prov=ee({token:e,factory:e.\u0275fac}),e})(),Xe=(()=>{class e{constructor(t,r){this.translate=t,this._ref=r,this.value="",this.lastKey=null,this.lastParams=[]}updateValue(t,r,i){let o=s=>{this.value=void 0!==s?s:t,this.lastKey=t,this._ref.markForCheck()};if(i){let s=this.translate.getParsedResult(i,t,r);lo(s.subscribe)?s.subscribe(o):o(s)}this.translate.get(t,r).subscribe(o)}transform(t,...r){if(!t||!t.length)return t;if(Eu(t,this.lastKey)&&Eu(r,this.lastParams))return this.value;let i;if(ki(r[0])&&r.length)if("string"==typeof r[0]&&r[0].length){let o=r[0].replace(/(\')?([a-zA-Z0-9_]+)(\')?(\s)?:/g,'"$2":').replace(/:(\s)?(\')(.*?)(\')/g,':"$3"');try{i=JSON.parse(o)}catch{throw new SyntaxError(`Wrong parameter in TranslatePipe. Expected a valid Object, received: ${r[0]}`)}}else"object"==typeof r[0]&&!Array.isArray(r[0])&&(i=r[0]);return this.lastKey=t,this.lastParams=r,this.updateValue(t,i),this._dispose(),this.onTranslationChange||(this.onTranslationChange=this.translate.onTranslationChange.subscribe(o=>{this.lastKey&&o.lang===this.translate.currentLang&&(this.lastKey=null,this.updateValue(t,i,o.translations))})),this.onLangChange||(this.onLangChange=this.translate.onLangChange.subscribe(o=>{this.lastKey&&(this.lastKey=null,this.updateValue(t,i,o.translations))})),this.onDefaultLangChange||(this.onDefaultLangChange=this.translate.onDefaultLangChange.subscribe(()=>{this.lastKey&&(this.lastKey=null,this.updateValue(t,i))})),this.value}_dispose(){typeof this.onTranslationChange<"u"&&(this.onTranslationChange.unsubscribe(),this.onTranslationChange=void 0),typeof this.onLangChange<"u"&&(this.onLangChange.unsubscribe(),this.onLangChange=void 0),typeof this.onDefaultLangChange<"u"&&(this.onDefaultLangChange.unsubscribe(),this.onDefaultLangChange=void 0)}ngOnDestroy(){this._dispose()}}return e.\u0275fac=function(t){return new(t||e)(O(Iu,16),O(xa,16))},e.\u0275pipe=dn({name:"translate",type:e,pure:!1}),e.\u0275prov=ee({token:e,factory:e.\u0275fac}),e})(),_N=(()=>{class e{static forRoot(t={}){return{ngModule:e,providers:[t.loader||{provide:il,useClass:yw},t.compiler||{provide:Tu,useClass:Dw},t.parser||{provide:Su,useClass:ww},t.missingTranslationHandler||{provide:Rp,useClass:bw},Ew,{provide:Np,useValue:t.isolate},{provide:Pp,useValue:t.useDefaultLang},{provide:Vp,useValue:t.extend},{provide:Lp,useValue:t.defaultLanguage},Iu]}}static forChild(t={}){return{ngModule:e,providers:[t.loader||{provide:il,useClass:yw},t.compiler||{provide:Tu,useClass:Dw},t.parser||{provide:Su,useClass:ww},t.missingTranslationHandler||{provide:Rp,useClass:bw},{provide:Np,useValue:t.isolate},{provide:Pp,useValue:t.useDefaultLang},{provide:Vp,useValue:t.extend},{provide:Lp,useValue:t.defaultLanguage},Iu]}}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Kn({type:e}),e.\u0275inj=Rn({}),e})(),vN=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=De({type:e,selectors:[["app-page-not-found"]],decls:14,vars:9,consts:[["id","error"],[1,"error-page","container"],[1,"col-md-8","col-12","offset-md-2"],[1,"text-center"],["src","./assets/svg/error-404.svg","alt","Not Found",1,"img-error"],[1,"error-title"],[1,"fs-5","text-gray-600"],["href","index.html",1,"btn","btn-lg","btn-outline-primary","mt-3"]],template:function(t,r){1&t&&(f(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),S(4,"img",4),f(5,"h1",5),v(6),b(7,"translate"),h(),f(8,"p",6),v(9),b(10,"translate"),h(),f(11,"a",7),v(12),b(13,"translate"),h()()()()()),2&t&&(d(6),y(" ",C(7,3,"page-not-found")," "),d(3),y(" ",C(10,5,"page-not-found-description")," "),d(3),y(" ",C(13,7,"go-home")," "))},dependencies:[Xe]}),e})(),Sw=(()=>{class e{constructor(t,r){this._renderer=t,this._elementRef=r,this.onChange=i=>{},this.onTouched=()=>{}}setProperty(t,r){this._renderer.setProperty(this._elementRef.nativeElement,t,r)}registerOnTouched(t){this.onTouched=t}registerOnChange(t){this.onChange=t}setDisabledState(t){this.setProperty("disabled",t)}}return e.\u0275fac=function(t){return new(t||e)(O(Qr),O(Tn))},e.\u0275dir=Ce({type:e}),e})(),co=(()=>{class e extends Sw{}return e.\u0275fac=function(){let n;return function(r){return(n||(n=et(e)))(r||e)}}(),e.\u0275dir=Ce({type:e,features:[tt]}),e})();const Nr=new ce("NgValueAccessor"),yN={provide:Nr,useExisting:ge(()=>uo),multi:!0};let uo=(()=>{class e extends co{writeValue(t){this.setProperty("checked",t)}}return e.\u0275fac=function(){let n;return function(r){return(n||(n=et(e)))(r||e)}}(),e.\u0275dir=Ce({type:e,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(t,r){1&t&&$("change",function(o){return r.onChange(o.target.checked)})("blur",function(){return r.onTouched()})},features:[gt([yN]),tt]}),e})();const bN={provide:Nr,useExisting:ge(()=>or),multi:!0},wN=new ce("CompositionEventMode");let or=(()=>{class e extends Sw{constructor(t,r,i){super(t,r),this._compositionMode=i,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function CN(){const e=ni()?ni().getUserAgent():"";return/android (\d+)/.test(e.toLowerCase())}())}writeValue(t){this.setProperty("value",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 e.\u0275fac=function(t){return new(t||e)(O(Qr),O(Tn),O(wN,8))},e.\u0275dir=Ce({type:e,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,r){1&t&&$("input",function(o){return r._handleInput(o.target.value)})("blur",function(){return r.onTouched()})("compositionstart",function(){return r._compositionStart()})("compositionend",function(o){return r._compositionEnd(o.target.value)})},features:[gt([bN]),tt]}),e})();const DN=!1;function Fi(e){return null==e||("string"==typeof e||Array.isArray(e))&&0===e.length}function Tw(e){return null!=e&&"number"==typeof e.length}const an=new ce("NgValidators"),Ri=new ce("NgAsyncValidators"),EN=/^(?=.{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 Ge{static min(n){return function Iw(e){return n=>{if(Fi(n.value)||Fi(e))return null;const t=parseFloat(n.value);return!isNaN(t)&&t{if(Fi(n.value)||Fi(e))return null;const t=parseFloat(n.value);return!isNaN(t)&&t>e?{max:{max:e,actual:n.value}}:null}}(n)}static required(n){return function Aw(e){return Fi(e.value)?{required:!0}:null}(n)}static requiredTrue(n){return function xw(e){return!0===e.value?null:{required:!0}}(n)}static email(n){return function kw(e){return Fi(e.value)||EN.test(e.value)?null:{email:!0}}(n)}static minLength(n){return function Fw(e){return n=>Fi(n.value)||!Tw(n.value)?null:n.value.lengthTw(n.value)&&n.value.length>e?{maxlength:{requiredLength:e,actualLength:n.value.length}}:null}(n)}static pattern(n){return function Ow(e){if(!e)return Mu;let n,t;return"string"==typeof e?(t="","^"!==e.charAt(0)&&(t+="^"),t+=e,"$"!==e.charAt(e.length-1)&&(t+="$"),n=new RegExp(t)):(t=e.toString(),n=e),r=>{if(Fi(r.value))return null;const i=r.value;return n.test(i)?null:{pattern:{requiredPattern:t,actualValue:i}}}}(n)}static nullValidator(n){return null}static compose(n){return jw(n)}static composeAsync(n){return Uw(n)}}function Mu(e){return null}function Nw(e){return null!=e}function Pw(e){const n=_a(e)?ot(e):e;if(DN&&!Of(n)){let t="Expected async validator to return Promise or Observable.";throw"object"==typeof e&&(t+=" Are you using a synchronous validator where an async validator is expected?"),new q(-1101,t)}return n}function Lw(e){let n={};return e.forEach(t=>{n=null!=t?{...n,...t}:n}),0===Object.keys(n).length?null:n}function Vw(e,n){return n.map(t=>t(e))}function Bw(e){return e.map(n=>function SN(e){return!e.validate}(n)?n:t=>n.validate(t))}function jw(e){if(!e)return null;const n=e.filter(Nw);return 0==n.length?null:function(t){return Lw(Vw(t,n))}}function Bp(e){return null!=e?jw(Bw(e)):null}function Uw(e){if(!e)return null;const n=e.filter(Nw);return 0==n.length?null:function(t){return _w(Vw(t,n).map(Pw)).pipe(we(Lw))}}function jp(e){return null!=e?Uw(Bw(e)):null}function $w(e,n){return null===e?[n]:Array.isArray(e)?[...e,n]:[e,n]}function Hw(e){return e._rawValidators}function Gw(e){return e._rawAsyncValidators}function Up(e){return e?Array.isArray(e)?e:[e]:[]}function Au(e,n){return Array.isArray(e)?e.includes(n):e===n}function zw(e,n){const t=Up(n);return Up(e).forEach(i=>{Au(t,i)||t.push(i)}),t}function qw(e,n){return Up(n).filter(t=>!Au(e,t))}class Ww{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(n){this._rawValidators=n||[],this._composedValidatorFn=Bp(this._rawValidators)}_setAsyncValidators(n){this._rawAsyncValidators=n||[],this._composedAsyncValidatorFn=jp(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(n){this._onDestroyCallbacks.push(n)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(n=>n()),this._onDestroyCallbacks=[]}reset(n){this.control&&this.control.reset(n)}hasError(n,t){return!!this.control&&this.control.hasError(n,t)}getError(n,t){return this.control?this.control.getError(n,t):null}}class vn extends Ww{get formDirective(){return null}get path(){return null}}class Oi extends Ww{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class Yw{constructor(n){this._cd=n}get isTouched(){return!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return!!this._cd?.submitted}}let Pr=(()=>{class e extends Yw{constructor(t){super(t)}}return e.\u0275fac=function(t){return new(t||e)(O(Oi,2))},e.\u0275dir=Ce({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(t,r){2&t&&Qe("ng-untouched",r.isUntouched)("ng-touched",r.isTouched)("ng-pristine",r.isPristine)("ng-dirty",r.isDirty)("ng-valid",r.isValid)("ng-invalid",r.isInvalid)("ng-pending",r.isPending)},features:[tt]}),e})(),Lr=(()=>{class e extends Yw{constructor(t){super(t)}}return e.\u0275fac=function(t){return new(t||e)(O(vn,10))},e.\u0275dir=Ce({type:e,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(t,r){2&t&&Qe("ng-untouched",r.isUntouched)("ng-touched",r.isTouched)("ng-pristine",r.isPristine)("ng-dirty",r.isDirty)("ng-valid",r.isValid)("ng-invalid",r.isInvalid)("ng-pending",r.isPending)("ng-submitted",r.isSubmitted)},features:[tt]}),e})();function Kw(e,n){return e?`with name: '${n}'`:`at index: ${n}`}const Gp=!1,ol="VALID",ku="INVALID",bs="PENDING",sl="DISABLED";function zp(e){return(Fu(e)?e.validators:e)||null}function qp(e,n){return(Fu(n)?n.asyncValidators:e)||null}function Fu(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}class Zw{constructor(n,t){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._assignValidators(n),this._assignAsyncValidators(t)}get validator(){return this._composedValidatorFn}set validator(n){this._rawValidators=this._composedValidatorFn=n}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(n){this._rawAsyncValidators=this._composedAsyncValidatorFn=n}get parent(){return this._parent}get valid(){return this.status===ol}get invalid(){return this.status===ku}get pending(){return this.status==bs}get disabled(){return this.status===sl}get enabled(){return this.status!==sl}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(n){this._assignValidators(n)}setAsyncValidators(n){this._assignAsyncValidators(n)}addValidators(n){this.setValidators(zw(n,this._rawValidators))}addAsyncValidators(n){this.setAsyncValidators(zw(n,this._rawAsyncValidators))}removeValidators(n){this.setValidators(qw(n,this._rawValidators))}removeAsyncValidators(n){this.setAsyncValidators(qw(n,this._rawAsyncValidators))}hasValidator(n){return Au(this._rawValidators,n)}hasAsyncValidator(n){return Au(this._rawAsyncValidators,n)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(n={}){this.touched=!0,this._parent&&!n.onlySelf&&this._parent.markAsTouched(n)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(n=>n.markAllAsTouched())}markAsUntouched(n={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(t=>{t.markAsUntouched({onlySelf:!0})}),this._parent&&!n.onlySelf&&this._parent._updateTouched(n)}markAsDirty(n={}){this.pristine=!1,this._parent&&!n.onlySelf&&this._parent.markAsDirty(n)}markAsPristine(n={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(t=>{t.markAsPristine({onlySelf:!0})}),this._parent&&!n.onlySelf&&this._parent._updatePristine(n)}markAsPending(n={}){this.status=bs,!1!==n.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!n.onlySelf&&this._parent.markAsPending(n)}disable(n={}){const t=this._parentMarkedDirty(n.onlySelf);this.status=sl,this.errors=null,this._forEachChild(r=>{r.disable({...n,onlySelf:!0})}),this._updateValue(),!1!==n.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...n,skipPristineCheck:t}),this._onDisabledChange.forEach(r=>r(!0))}enable(n={}){const t=this._parentMarkedDirty(n.onlySelf);this.status=ol,this._forEachChild(r=>{r.enable({...n,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:n.emitEvent}),this._updateAncestors({...n,skipPristineCheck:t}),this._onDisabledChange.forEach(r=>r(!1))}_updateAncestors(n){this._parent&&!n.onlySelf&&(this._parent.updateValueAndValidity(n),n.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(n){this._parent=n}getRawValue(){return this.value}updateValueAndValidity(n={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===ol||this.status===bs)&&this._runAsyncValidator(n.emitEvent)),!1!==n.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!n.onlySelf&&this._parent.updateValueAndValidity(n)}_updateTreeValidity(n={emitEvent:!0}){this._forEachChild(t=>t._updateTreeValidity(n)),this.updateValueAndValidity({onlySelf:!0,emitEvent:n.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?sl:ol}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(n){if(this.asyncValidator){this.status=bs,this._hasOwnPendingAsyncValidator=!0;const t=Pw(this.asyncValidator(this));this._asyncValidationSubscription=t.subscribe(r=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(r,{emitEvent:n})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(n,t={}){this.errors=n,this._updateControlsErrors(!1!==t.emitEvent)}get(n){let t=n;return null==t||(Array.isArray(t)||(t=t.split(".")),0===t.length)?null:t.reduce((r,i)=>r&&r._find(i),this)}getError(n,t){const r=t?this.get(t):this;return r&&r.errors?r.errors[n]:null}hasError(n,t){return!!this.getError(n,t)}get root(){let n=this;for(;n._parent;)n=n._parent;return n}_updateControlsErrors(n){this.status=this._calculateStatus(),n&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(n)}_initObservables(){this.valueChanges=new ue,this.statusChanges=new ue}_calculateStatus(){return this._allControlsDisabled()?sl:this.errors?ku:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(bs)?bs:this._anyControlsHaveStatus(ku)?ku:ol}_anyControlsHaveStatus(n){return this._anyControls(t=>t.status===n)}_anyControlsDirty(){return this._anyControls(n=>n.dirty)}_anyControlsTouched(){return this._anyControls(n=>n.touched)}_updatePristine(n={}){this.pristine=!this._anyControlsDirty(),this._parent&&!n.onlySelf&&this._parent._updatePristine(n)}_updateTouched(n={}){this.touched=this._anyControlsTouched(),this._parent&&!n.onlySelf&&this._parent._updateTouched(n)}_registerOnCollectionChange(n){this._onCollectionChange=n}_setUpdateStrategy(n){Fu(n)&&null!=n.updateOn&&(this._updateOn=n.updateOn)}_parentMarkedDirty(n){return!n&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(n){return null}_assignValidators(n){this._rawValidators=Array.isArray(n)?n.slice():n,this._composedValidatorFn=function FN(e){return Array.isArray(e)?Bp(e):e||null}(this._rawValidators)}_assignAsyncValidators(n){this._rawAsyncValidators=Array.isArray(n)?n.slice():n,this._composedAsyncValidatorFn=function RN(e){return Array.isArray(e)?jp(e):e||null}(this._rawAsyncValidators)}}class An extends Zw{constructor(n,t,r){super(zp(t),qp(r,t)),this.controls=n,this._initObservables(),this._setUpdateStrategy(t),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(n,t){return this.controls[n]?this.controls[n]:(this.controls[n]=t,t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange),t)}addControl(n,t,r={}){this.registerControl(n,t),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}removeControl(n,t={}){this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),delete this.controls[n],this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}setControl(n,t,r={}){this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),delete this.controls[n],t&&this.registerControl(n,t),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}contains(n){return this.controls.hasOwnProperty(n)&&this.controls[n].enabled}setValue(n,t={}){(function Xw(e,n,t){e._forEachChild((r,i)=>{if(void 0===t[i])throw new q(1002,Gp?function kN(e,n){return`Must supply a value for form control ${Kw(e,n)}`}(n,i):"")})})(this,!0,n),Object.keys(n).forEach(r=>{(function Qw(e,n,t){const r=e.controls;if(!(n?Object.keys(r):r).length)throw new q(1e3,Gp?function AN(e){return`\n There are no form controls registered with this ${e?"group":"array"} yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n `}(n):"");if(!r[t])throw new q(1001,Gp?function xN(e,n){return`Cannot find form control ${Kw(e,n)}`}(n,t):"")})(this,!0,r),this.controls[r].setValue(n[r],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)}patchValue(n,t={}){null!=n&&(Object.keys(n).forEach(r=>{const i=this.controls[r];i&&i.patchValue(n[r],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t))}reset(n={},t={}){this._forEachChild((r,i)=>{r.reset(n[i],{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t),this._updateTouched(t),this.updateValueAndValidity(t)}getRawValue(){return this._reduceChildren({},(n,t,r)=>(n[r]=t.getRawValue(),n))}_syncPendingControls(){let n=this._reduceChildren(!1,(t,r)=>!!r._syncPendingControls()||t);return n&&this.updateValueAndValidity({onlySelf:!0}),n}_forEachChild(n){Object.keys(this.controls).forEach(t=>{const r=this.controls[t];r&&n(r,t)})}_setUpControls(){this._forEachChild(n=>{n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(n){for(const[t,r]of Object.entries(this.controls))if(this.contains(t)&&n(r))return!0;return!1}_reduceValue(){return this._reduceChildren({},(t,r,i)=>((r.enabled||this.disabled)&&(t[i]=r.value),t))}_reduceChildren(n,t){let r=n;return this._forEachChild((i,o)=>{r=t(r,i,o)}),r}_allControlsDisabled(){for(const n of Object.keys(this.controls))if(this.controls[n].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(n){return this.controls.hasOwnProperty(n)?this.controls[n]:null}}const Cs=new ce("CallSetDisabledState",{providedIn:"root",factory:()=>Ru}),Ru="always";function al(e,n,t=Ru){Wp(e,n),n.valueAccessor.writeValue(e.value),(e.disabled||"always"===t)&&n.valueAccessor.setDisabledState?.(e.disabled),function PN(e,n){n.valueAccessor.registerOnChange(t=>{e._pendingValue=t,e._pendingChange=!0,e._pendingDirty=!0,"change"===e.updateOn&&Jw(e,n)})}(e,n),function VN(e,n){const t=(r,i)=>{n.valueAccessor.writeValue(r),i&&n.viewToModelUpdate(r)};e.registerOnChange(t),n._registerOnDestroy(()=>{e._unregisterOnChange(t)})}(e,n),function LN(e,n){n.valueAccessor.registerOnTouched(()=>{e._pendingTouched=!0,"blur"===e.updateOn&&e._pendingChange&&Jw(e,n),"submit"!==e.updateOn&&e.markAsTouched()})}(e,n),function NN(e,n){if(n.valueAccessor.setDisabledState){const t=r=>{n.valueAccessor.setDisabledState(r)};e.registerOnDisabledChange(t),n._registerOnDestroy(()=>{e._unregisterOnDisabledChange(t)})}}(e,n)}function Nu(e,n,t=!0){const r=()=>{};n.valueAccessor&&(n.valueAccessor.registerOnChange(r),n.valueAccessor.registerOnTouched(r)),Lu(e,n),e&&(n._invokeOnDestroyCallbacks(),e._registerOnCollectionChange(()=>{}))}function Pu(e,n){e.forEach(t=>{t.registerOnValidatorChange&&t.registerOnValidatorChange(n)})}function Wp(e,n){const t=Hw(e);null!==n.validator?e.setValidators($w(t,n.validator)):"function"==typeof t&&e.setValidators([t]);const r=Gw(e);null!==n.asyncValidator?e.setAsyncValidators($w(r,n.asyncValidator)):"function"==typeof r&&e.setAsyncValidators([r]);const i=()=>e.updateValueAndValidity();Pu(n._rawValidators,i),Pu(n._rawAsyncValidators,i)}function Lu(e,n){let t=!1;if(null!==e){if(null!==n.validator){const i=Hw(e);if(Array.isArray(i)&&i.length>0){const o=i.filter(s=>s!==n.validator);o.length!==i.length&&(t=!0,e.setValidators(o))}}if(null!==n.asyncValidator){const i=Gw(e);if(Array.isArray(i)&&i.length>0){const o=i.filter(s=>s!==n.asyncValidator);o.length!==i.length&&(t=!0,e.setAsyncValidators(o))}}}const r=()=>{};return Pu(n._rawValidators,r),Pu(n._rawAsyncValidators,r),t}function Jw(e,n){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),n.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}function nD(e,n){const t=e.indexOf(n);t>-1&&e.splice(t,1)}function rD(e){return"object"==typeof e&&null!==e&&2===Object.keys(e).length&&"value"in e&&"disabled"in e}const re=class extends Zw{constructor(n=null,t,r){super(zp(t),qp(r,t)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(n),this._setUpdateStrategy(t),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),Fu(t)&&(t.nonNullable||t.initialValueIsDefault)&&(this.defaultValue=rD(n)?n.value:n)}setValue(n,t={}){this.value=this._pendingValue=n,this._onChange.length&&!1!==t.emitModelToViewChange&&this._onChange.forEach(r=>r(this.value,!1!==t.emitViewToModelChange)),this.updateValueAndValidity(t)}patchValue(n,t={}){this.setValue(n,t)}reset(n=this.defaultValue,t={}){this._applyFormState(n),this.markAsPristine(t),this.markAsUntouched(t),this.setValue(this.value,t),this._pendingChange=!1}_updateValue(){}_anyControls(n){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(n){this._onChange.push(n)}_unregisterOnChange(n){nD(this._onChange,n)}registerOnDisabledChange(n){this._onDisabledChange.push(n)}_unregisterOnDisabledChange(n){nD(this._onDisabledChange,n)}_forEachChild(n){}_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(n){rD(n)?(this.value=this._pendingValue=n.value,n.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=n}};let Vr=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Ce({type:e,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),e})();const WN={provide:Nr,useExisting:ge(()=>Vu),multi:!0};let Vu=(()=>{class e extends co{writeValue(t){this.setProperty("value",t??"")}registerOnChange(t){this.onChange=r=>{t(""==r?null:parseFloat(r))}}}return e.\u0275fac=function(){let n;return function(r){return(n||(n=et(e)))(r||e)}}(),e.\u0275dir=Ce({type:e,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(t,r){1&t&&$("input",function(o){return r.onChange(o.target.value)})("blur",function(){return r.onTouched()})},features:[gt([WN]),tt]}),e})(),lD=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Kn({type:e}),e.\u0275inj=Rn({}),e})();const Zp=new ce("NgModelWithFormControlWarning"),ZN={provide:vn,useExisting:ge(()=>sr)};let sr=(()=>{class e extends vn{constructor(t,r,i){super(),this.callSetDisabledState=i,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new ue,this._setValidators(t),this._setAsyncValidators(r)}ngOnChanges(t){this._checkFormPresent(),t.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(Lu(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(t){const r=this.form.get(t.path);return al(r,t,this.callSetDisabledState),r.updateValueAndValidity({emitEvent:!1}),this.directives.push(t),r}getControl(t){return this.form.get(t.path)}removeControl(t){Nu(t.control||null,t,!1),function $N(e,n){const t=e.indexOf(n);t>-1&&e.splice(t,1)}(this.directives,t)}addFormGroup(t){this._setUpFormContainer(t)}removeFormGroup(t){this._cleanUpFormContainer(t)}getFormGroup(t){return this.form.get(t.path)}addFormArray(t){this._setUpFormContainer(t)}removeFormArray(t){this._cleanUpFormContainer(t)}getFormArray(t){return this.form.get(t.path)}updateModel(t,r){this.form.get(t.path).setValue(r)}onSubmit(t){return this.submitted=!0,function tD(e,n){e._syncPendingControls(),n.forEach(t=>{const r=t.control;"submit"===r.updateOn&&r._pendingChange&&(t.viewToModelUpdate(r._pendingValue),r._pendingChange=!1)})}(this.form,this.directives),this.ngSubmit.emit(t),"dialog"===t?.target?.method}onReset(){this.resetForm()}resetForm(t){this.form.reset(t),this.submitted=!1}_updateDomValue(){this.directives.forEach(t=>{const r=t.control,i=this.form.get(t.path);r!==i&&(Nu(r||null,t),(e=>e instanceof re)(i)&&(al(i,t,this.callSetDisabledState),t.control=i))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(t){const r=this.form.get(t.path);(function eD(e,n){Wp(e,n)})(r,t),r.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(t){if(this.form){const r=this.form.get(t.path);r&&function BN(e,n){return Lu(e,n)}(r,t)&&r.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){Wp(this.form,this),this._oldForm&&Lu(this._oldForm,this)}_checkFormPresent(){}}return e.\u0275fac=function(t){return new(t||e)(O(an,10),O(Ri,10),O(Cs,8))},e.\u0275dir=Ce({type:e,selectors:[["","formGroup",""]],hostBindings:function(t,r){1&t&&$("submit",function(o){return r.onSubmit(o)})("reset",function(){return r.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[gt([ZN]),tt,Dn]}),e})();const tP={provide:Oi,useExisting:ge(()=>vr)};let vr=(()=>{class e extends Oi{set isDisabled(t){}constructor(t,r,i,o,s){super(),this._ngModelWarningConfig=s,this._added=!1,this.update=new ue,this._ngModelWarningSent=!1,this._parent=t,this._setValidators(r),this._setAsyncValidators(i),this.valueAccessor=function Qp(e,n){if(!n)return null;let t,r,i;return Array.isArray(n),n.forEach(o=>{o.constructor===or?t=o:function UN(e){return Object.getPrototypeOf(e.constructor)===co}(o)?r=o:i=o}),i||r||t||null}(0,o)}ngOnChanges(t){this._added||this._setUpControl(),function Kp(e,n){if(!e.hasOwnProperty("model"))return!1;const t=e.model;return!!t.isFirstChange()||!Object.is(n,t.currentValue)}(t,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}get path(){return function Ou(e,n){return[...n.path,e]}(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this._added=!0}}return e._ngModelWarningSentOnce=!1,e.\u0275fac=function(t){return new(t||e)(O(vn,13),O(an,10),O(Ri,10),O(Nr,10),O(Zp,8))},e.\u0275dir=Ce({type:e,selectors:[["","formControlName",""]],inputs:{name:["formControlName","name"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[gt([tP]),tt,Dn]}),e})();const nP={provide:Nr,useExisting:ge(()=>ws),multi:!0};function hD(e,n){return null==e?`${n}`:(n&&"object"==typeof n&&(n="Object"),`${e}: ${n}`.slice(0,50))}let ws=(()=>{class e extends co{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(t){this._compareWith=t}writeValue(t){this.value=t;const i=hD(this._getOptionId(t),t);this.setProperty("value",i)}registerOnChange(t){this.onChange=r=>{this.value=this._getOptionValue(r),t(this.value)}}_registerOption(){return(this._idCounter++).toString()}_getOptionId(t){for(const r of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(r),t))return r;return null}_getOptionValue(t){const r=function rP(e){return e.split(":")[0]}(t);return this._optionMap.has(r)?this._optionMap.get(r):t}}return e.\u0275fac=function(){let n;return function(r){return(n||(n=et(e)))(r||e)}}(),e.\u0275dir=Ce({type:e,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(t,r){1&t&&$("change",function(o){return r.onChange(o.target.value)})("blur",function(){return r.onTouched()})},inputs:{compareWith:"compareWith"},features:[gt([nP]),tt]}),e})(),cl=(()=>{class e{constructor(t,r,i){this._element=t,this._renderer=r,this._select=i,this._select&&(this.id=this._select._registerOption())}set ngValue(t){null!=this._select&&(this._select._optionMap.set(this.id,t),this._setElementValue(hD(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 e.\u0275fac=function(t){return new(t||e)(O(Tn),O(Qr),O(ws,9))},e.\u0275dir=Ce({type:e,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),e})();const iP={provide:Nr,useExisting:ge(()=>tg),multi:!0};function pD(e,n){return null==e?`${n}`:("string"==typeof n&&(n=`'${n}'`),n&&"object"==typeof n&&(n="Object"),`${e}: ${n}`.slice(0,50))}let tg=(()=>{class e extends co{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(t){this._compareWith=t}writeValue(t){let r;if(this.value=t,Array.isArray(t)){const i=t.map(o=>this._getOptionId(o));r=(o,s)=>{o._setSelected(i.indexOf(s.toString())>-1)}}else r=(i,o)=>{i._setSelected(!1)};this._optionMap.forEach(r)}registerOnChange(t){this.onChange=r=>{const i=[],o=r.selectedOptions;if(void 0!==o){const s=o;for(let a=0;a{class e{constructor(t,r,i){this._element=t,this._renderer=r,this._select=i,this._select&&(this.id=this._select._registerOption(this))}set ngValue(t){null!=this._select&&(this._value=t,this._setElementValue(pD(this.id,t)),this._select.writeValue(this._select.value))}set value(t){this._select?(this._value=t,this._setElementValue(pD(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 e.\u0275fac=function(t){return new(t||e)(O(Tn),O(Qr),O(tg,9))},e.\u0275dir=Ce({type:e,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),e})(),pP=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Kn({type:e}),e.\u0275inj=Rn({imports:[lD]}),e})(),mP=(()=>{class e{static withConfig(t){return{ngModule:e,providers:[{provide:Zp,useValue:t.warnOnNgModelWithFormControl??"always"},{provide:Cs,useValue:t.callSetDisabledState??Ru}]}}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Kn({type:e}),e.\u0275inj=Rn({imports:[pP]}),e})();const zt=Object.assign({verbose:!0,production:!1},{eelCallRefreshInterval:1e3,fullDateFormat:"H:mm dd/MM/yyyy ",dateFormat:"dd/MM/yyyy",timeFormat:"H:mm",warningDateDayBefore:7,dangerDateDayBefore:3,alertTimeout:5e3,updateLastVisitInterval:6e4,authRequiredRedirectRoute:"/login",basePriorityValue:10,appName:"Taskup",timeBeforeClose:1e3});function ED(e,n,t,r,i,o,s){try{var a=e[o](s),l=a.value}catch(c){return void t(c)}a.done?n(l):Promise.resolve(l).then(r,i)}function bt(e){return function(){var n=this,t=arguments;return new Promise(function(r,i){var o=e.apply(n,t);function s(l){ED(o,r,i,s,a,"next",l)}function a(l){ED(o,r,i,s,a,"throw",l)}s(void 0)})}}class vP extends Ct{constructor(n,t){super()}schedule(n,t=0){return this}}const Bu={setInterval(e,n,...t){const{delegate:r}=Bu;return r?.setInterval?r.setInterval(e,n,...t):setInterval(e,n,...t)},clearInterval(e){const{delegate:n}=Bu;return(n?.clearInterval||clearInterval)(e)},delegate:void 0};class dl{constructor(n,t=dl.now){this.schedulerActionCtor=n,this.now=t}schedule(n,t=0,r){return new this.schedulerActionCtor(this,n).schedule(r,t)}}dl.now=Fp.now;const SD=new class bP extends dl{constructor(n,t=dl.now){super(n,t),this.actions=[],this._active=!1}flush(n){const{actions:t}=this;if(this._active)return void t.push(n);let r;this._active=!0;do{if(r=n.execute(n.state,n.delay))break}while(n=t.shift());if(this._active=!1,r){for(;n=t.shift();)n.unsubscribe();throw r}}}(class yP extends vP{constructor(n,t){super(n,t),this.scheduler=n,this.work=t,this.pending=!1}schedule(n,t=0){var r;if(this.closed)return this;this.state=n;const i=this.id,o=this.scheduler;return null!=i&&(this.id=this.recycleAsyncId(o,i,t)),this.pending=!0,this.delay=t,this.id=null!==(r=this.id)&&void 0!==r?r:this.requestAsyncId(o,this.id,t),this}requestAsyncId(n,t,r=0){return Bu.setInterval(n.flush.bind(n,this),r)}recycleAsyncId(n,t,r=0){if(null!=r&&this.delay===r&&!1===this.pending)return t;null!=t&&Bu.clearInterval(t)}execute(n,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const r=this._execute(n,t);if(r)return r;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(n,t){let i,r=!1;try{this.work(n)}catch(o){r=!0,i=o||new Error("Scheduled action threw falsy error")}if(r)return this.unsubscribe(),i}unsubscribe(){if(!this.closed){const{id:n,scheduler:t}=this,{actions:r}=t;this.work=this.state=this.scheduler=null,this.pending=!1,lt(r,this),null!=n&&(this.id=this.recycleAsyncId(t,n,null)),this.delay=null,super.unsubscribe()}}}),CP=SD;function rg(e=0,n=SD){return e<0&&(e=0),function DP(e=0,n,t=CP){let r=-1;return null!=n&&(z(n)?t=n:r=n),new qe(i=>{let o=function wP(e){return e instanceof Date&&!isNaN(e)}(e)?+e-t.now():e;o<0&&(o=0);let s=0;return t.schedule(function(){i.closed||(i.next(s++),0<=r?this.schedule(void 0,r):i.complete())},o)})}(e,e,n)}let Et=(()=>{class e{constructor(){}static logError(...t){zt.verbose&&console.error("E:",...t)}static logInfo(...t){zt.verbose&&console.info("I:",...t)}static logWarning(...t){zt.verbose&&console.warn("W:",...t)}static logSuccess(...t){zt.verbose&&console.log("S:",...t)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=ee({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),Ds=(()=>{class e{constructor(t){this.router=t,this.max_attempt=3,this.interval=10,this.logger_except=["auth_is_logged"]}callWithOptions(t,r,...i){var o=this;return bt(function*(){return new qe(null===t.take?a=>{let l=rg(t.interval).pipe(tr(()=>eel&&eel._websocket.readyState===WebSocket.OPEN)).subscribe(o.get_observable_body(a,r,...i));t.obs?.subscribe({next:c=>{c&&l.unsubscribe()}})}:a=>{rg(t.interval).pipe(tr(()=>eel&&eel._websocket.readyState===WebSocket.OPEN),_r(t.take)).subscribe(o.get_observable_body(a,r,...i))})})()}call(t,...r){var i=this;return bt(function*(){return new qe(s=>{rg(10).pipe(tr(()=>eel&&eel._websocket.readyState===WebSocket.OPEN),_r(1)).subscribe(i.get_observable_body(s,t,...r))})})()}get_observable_body(t,r,...i){var s,o=this;return{next:(s=bt(function*(){o.logger_except.includes(r)||Et.logSuccess("WebSocket Connection is OPEN!");let a=0;const l=function(){var c=bt(function*(){a+=1;try{o.logger_except.includes(r)||Et.logInfo("Eel Call:",r);let u=yield eel[r](...i)();o.logger_except.includes(r)||Et.logInfo("Eel Result:",u),t.next(u)}catch(u){Et.logError(String(u)),t.error(u),a<=o.max_attempt&&setTimeout(l,1e3)}});return function(){return c.apply(this,arguments)}}();return yield l()}),function(){return s.apply(this,arguments)}),error:s=>{Et.logError(s),t.error(s),this.router.navigate(["/server-error"])}}}}return e.\u0275fac=function(t){return new(t||e)(te(jt))},e.\u0275prov=ee({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),EP=(()=>{class e{constructor(t){this.eelService=t,this.GET_DATA="dashboard_get_data"}getData(){return this.eelService.call(this.GET_DATA)}}return e.\u0275fac=function(t){return new(t||e)(te(Ds))},e.\u0275prov=ee({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),Un=(()=>{class e{get loggedUser(){return this._loggedUser}constructor(t){this.eelService=t,this.LOGIN="auth_login",this.LOGOUT="auth_logout",this.ME="auth_me",this.IS_LOGGED="auth_is_logged",this.REFRESH_ME="auth_refresh_me",this.UPDATE_LAST_VISIT="auth_update_last_visit",this._loggedUser=null,this.emitMeChangeSource=new nr(null)}login(t,r,i=!1,o=!0){return new Promise((a,l)=>{this.eelService.call(this.LOGIN,t,r,i).then(c=>{c.subscribe({next:u=>{u||l(),o&&this.refreshMe(),a(!0)},error:()=>l()})}).catch(c=>{l()})})}logout(t=!0){return new Promise((i,o)=>{this.eelService.call(this.LOGOUT).then(s=>{s.subscribe({next:a=>{t&&this.refreshMe(),i(!0)},error:()=>o()})}).catch(s=>{o()})})}me(){return this.eelService.call(this.ME)}observeMe(){return this.emitMeChangeSource.asObservable()}refreshMe(){this.eelService.call(this.REFRESH_ME).then(t=>{t.subscribe({next:r=>{this.me().then(i=>{i.subscribe({next:o=>{this._loggedUser=o,this.emitMeChangeSource.next(o)},error:o=>{Et.logError(o)}})}).catch(i=>{Et.logError(i)})}})})}isLogged(){return this.eelService.call(this.IS_LOGGED)}observeIsLogged(t=!1){let r=!1,i={take:null,interval:zt.eelCallRefreshInterval,obs:new qe(s=>{setInterval(()=>{s.next(r)},zt.eelCallRefreshInterval+1)})};return new Promise((s,a)=>{this.eelService.callWithOptions(i,this.IS_LOGGED).then(l=>{l.subscribe({next:c=>{r=c&&t}}),s(l)}).catch(l=>{a()})})}updateLastVisit(){this.eelService.call(this.UPDATE_LAST_VISIT).then(t=>{t.subscribe({next:r=>{Et.logInfo("Updated last visit of logged user"),this.refreshMe()}})})}}return e.\u0275fac=function(t){return new(t||e)(te(Ds))},e.\u0275prov=ee({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),ho=(()=>{class e{constructor(t){this.eelService=t}all(){var t=this;return bt(function*(){return t.eelService.call(t.ALL)})()}find(t){var r=this;return bt(function*(){return r.eelService.call(r.FIND,t)})()}deleteById(t){var r=this;return bt(function*(){return r.eelService.call(r.DELETE_BY_ID,t)})()}update(t,r){var i=this;return bt(function*(){return i.eelService.call(i.UPDATE,t,r)})()}create(t){var r=this;return bt(function*(){return r.eelService.call(r.CREATE,t)})()}filter(t,r="="){var i=this;return bt(function*(){return i.eelService.call(i.FILTER,t,r)})()}checkAlreadyUsed(t,r){var i=this;return bt(function*(){return i.eelService.call(i.CHECK_ALREADY_USED,t,r)})()}}return e.\u0275fac=function(t){return new(t||e)(te(Ds))},e.\u0275prov=ee({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),fl=(()=>{class e extends ho{constructor(){super(...arguments),this.ALL="task_all",this.FIND="task_find",this.DELETE_BY_ID="task_delete_by_id",this.UPDATE="task_update",this.REMOVE_ASSIGNMENT="task_remove_assignment",this.ADD_ASSIGNMENT="task_add_assignment",this.ADD_LABEL="task_add_label",this.REMOVE_LABEL="task_remove_label",this.CREATE="task_create",this.CHECK_ALREADY_USED="task_check_already_used",this.FILTER="task_filter"}removeAssignment(t,r){var i=this;return bt(function*(){return i.eelService.call(i.REMOVE_ASSIGNMENT,t,r)})()}addAssignment(t,r){var i=this;return bt(function*(){return i.eelService.call(i.ADD_ASSIGNMENT,t,r)})()}addLabel(t,r){var i=this;return bt(function*(){return i.eelService.call(i.ADD_LABEL,t,r)})()}removeLabel(t,r){var i=this;return bt(function*(){return i.eelService.call(i.REMOVE_LABEL,t,r)})()}}return e.\u0275fac=function(){let n;return function(r){return(n||(n=et(e)))(r||e)}}(),e.\u0275prov=ee({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),Ni=(()=>{class e{constructor(t){this.authService=t}getAvatarText(t){return t?.name&&t?.surname?t.name.substring(0,1)+t.surname.substring(0,1):t?t.username.substring(0,2):"-"}canDelete(t){let r=this.authService.loggedUser;return!!r&&!!(r.role?.permission_delete_all||t==r.id&&r.role?.permission_delete_own)}canModify(t){let r=this.authService.loggedUser;return!!r&&!!(r.role?.permission_edit_all||t==r.id&&r.role?.permission_edit_own)}createPasswordStrengthValidator(t){return r=>{const i=r.value;if(!i)return null;const o=/[A-Z]+/.test(i),s=/[a-z]+/.test(i),a=/[0-9]+/.test(i);return o&&s&&a&&i.length>=t?null:{passwordStrength:!0}}}datetimeNow(){const t=new Date;return`${t.getFullYear()}-${String(t.getMonth()+1).padStart(2,"0")}-${String(t.getDate()).padStart(2,"0")} ${String(t.getHours()).padStart(2,"0")}:${String(t.getMinutes()).padStart(2,"0")}:${String(t.getSeconds()).padStart(2,"0")}`}dateNow(){const t=new Date;return`${t.getFullYear()}-${String(t.getMonth()+1).padStart(2,"0")}-${String(t.getDate()).padStart(2,"0")}`}reload(){window.location.reload()}}return e.\u0275fac=function(t){return new(t||e)(te(Un))},e.\u0275prov=ee({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function TD(e,n){return t=>{if(t.parent&&n){const r=t.parent?.controls[e];return r&&r.updateValueAndValidity(),null}return t.parent&&t.parent.value&&t.value===t.parent?.controls[e].value?null:{matching:!0}}}let ID=(()=>{class e extends ho{constructor(){super(...arguments),this.ALL="task_status_all",this.FIND="task_status_find",this.DELETE_BY_ID="task_status_delete_by_id",this.UPDATE="task_status_update",this.CREATE="task_status_create",this.CHECK_ALREADY_USED="task_status_check_already_used",this.FILTER="task_status_filter"}getTaskById(t){var r=this;return bt(function*(){let i=yield r.find(t);return yield function SP(e,n){const t="object"==typeof n;return new Promise((r,i)=>{const o=new Br({next:s=>{r(s),o.unsubscribe()},error:i,complete:()=>{t?r(n.defaultValue):i(new Ba)}});e.subscribe(o)})}(i)})()}getAll(){var t=this;return bt(function*(){return new Promise((r,i)=>{t.all().then(o=>{o.subscribe({next:s=>{r(s)},error:s=>{i(s)}})})})})()}}return e.\u0275fac=function(){let n;return function(r){return(n||(n=et(e)))(r||e)}}(),e.\u0275prov=ee({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),TP=(()=>{class e extends ho{constructor(){super(...arguments),this.ALL="task_assignment_all",this.FIND="task_assignment_find",this.DELETE_BY_ID="task_assignment_delete_by_id",this.FILTER="task_assignment_filter",this.UPDATE="task_assignment_update",this.REMOVE_ASSIGNMENT="task_assignment_remove_assignment",this.ADD_ASSIGNMENT="task_assignment_add_assignment",this.ADD_LABEL="task_assignment_add_label",this.REMOVE_LABEL="task_assignment_remove_label",this.CREATE="task_assignment_create",this.CHECK_ALREADY_USED="task_assignment_check_already_used",this.UPDATE_BY_TASK_USER_ID_FROM_DICT="task_assignment_update_by_task_user_id_from_dict"}updateByTaskUserId(t,r,i){return this.eelService.call(this.UPDATE_BY_TASK_USER_ID_FROM_DICT,t,r,i)}}return e.\u0275fac=function(){let n;return function(r){return(n||(n=et(e)))(r||e)}}(),e.\u0275prov=ee({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function IP(e,n){if(1&e&&(Ae(0),f(1,"div",1)(2,"span",2),v(3),b(4,"translate"),h()(),xe()),2&e){const t=D();d(1),ts("background-color",t.color),g("title",t.tooltip),d(2),y(" ",C(4,4,t.text)," ")}}let ju=(()=>{class e{constructor(){this.tooltip=""}darkTxt(){return!!this.color&&parseInt(this.color,16)>.75*parseInt("ffffff",16)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=De({type:e,selectors:[["app-text-avatar"]],inputs:{color:"color",text:"text",tooltip:"tooltip"},decls:1,vars:1,consts:[[4,"ngIf"],["data-bs-toggle","tooltip","data-bs-placement","top",1,"avatar",3,"title"],[1,"avatar-content","text-uppercase"]],template:function(t,r){1&t&&k(0,IP,5,6,"ng-container",0),2&t&&g("ngIf",r.text&&r.color)},dependencies:[He,Xe],styles:[".dark-txt[_ngcontent-%COMP%]{color:#7e848f}"]}),e})(),Pi=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=De({type:e,selectors:[["app-close-btn"]],decls:6,vars:3,consts:[["type","button","data-bs-dismiss","modal",1,"btn"],["closeBtn",""],[1,"bx","bx-x","d-block","d-sm-none"],[1,"d-none","d-sm-block"]],template:function(t,r){1&t&&(f(0,"button",0,1),S(2,"i",2),f(3,"span",3),v(4),b(5,"translate"),h()()),2&t&&(d(4),y(" ",C(5,1,"close")," "))},dependencies:[Xe]}),e})(),li=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=De({type:e,selectors:[["app-x-btn"]],decls:2,vars:0,consts:[["type","button","data-bs-dismiss","modal","aria-label","Close",1,"close","rounded-pill"],[1,"bi","bi-x"]],template:function(t,r){1&t&&(f(0,"button",0),S(1,"i",1),h())}}),e})();function MP(e,n){if(1&e&&(f(0,"div",9)(1,"p"),v(2),b(3,"translate"),h()()),2&e){const t=D(2);d(2),y(" ",C(3,1,t.body)," ")}}function AP(e,n){if(1&e){const t=he();f(0,"button",10),$("click",function(){return K(t),Q(D(2).onConfirm.emit())}),S(1,"i",11),f(2,"span",12),v(3),b(4,"translate"),h()()}if(2&e){const t=D(2);d(3),y(" ",C(4,1,t.confirmBtnTxt)," ")}}function xP(e,n){if(1&e&&(f(0,"div",1)(1,"div",2)(2,"div",3)(3,"div",4)(4,"h5",5),v(5),b(6,"translate"),h(),S(7,"app-x-btn"),h(),k(8,MP,4,3,"div",6),f(9,"div",7),S(10,"app-close-btn"),k(11,AP,5,3,"button",8),h()()()()),2&e){const t=D();Qe("modal-borderless",t.borderless),g("id",t.target),Ve("aria-labelledby",t.target),d(1),Qe("modal-dialog-centered",t.centered),d(4),y(" ",C(6,9,t.title)," "),d(3),g("ngIf",t.body),d(3),g("ngIf",t.confirmBtn)}}let hl=(()=>{class e{constructor(){this.target="dialog",this.centered=!1,this.confirmBtn=!1,this.confirmBtnTxt="submit",this.borderless=!1,this.onConfirm=new ue}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=De({type:e,selectors:[["app-dialog-modal"]],inputs:{body:"body",title:"title",target:"target",centered:"centered",confirmBtn:"confirmBtn",confirmBtnTxt:"confirmBtnTxt",borderless:"borderless"},outputs:{onConfirm:"onConfirm"},decls:1,vars:1,consts:[["class","modal fade text-left","tabindex","-1","role","dialog","aria-hidden","true",3,"id","modal-borderless",4,"ngIf"],["tabindex","-1","role","dialog","aria-hidden","true",1,"modal","fade","text-left",3,"id"],["role","document",1,"modal-dialog","modal-dialog-scrollable"],[1,"modal-content"],[1,"modal-header"],[1,"modal-title"],["class","modal-body",4,"ngIf"],[1,"modal-footer"],["type","button","class","btn btn-primary ml-1","data-bs-dismiss","modal",3,"click",4,"ngIf"],[1,"modal-body"],["type","button","data-bs-dismiss","modal",1,"btn","btn-primary","ml-1",3,"click"],[1,"bx","bx-check","d-block","d-sm-none"],[1,"d-none","d-sm-block"]],template:function(t,r){1&t&&k(0,xP,12,11,"div",0),2&t&&g("ngIf",r.title&&r.target)},dependencies:[He,Pi,li,Xe]}),e})(),ig=(()=>{class e extends ho{constructor(){super(...arguments),this.ALL="role_all",this.FIND="role_find",this.DELETE_BY_ID="role_delete_by_id",this.UPDATE="role_update",this.CREATE="role_create",this.CHECK_ALREADY_USED="role_check_already_used",this.FILTER="role_filter"}}return e.\u0275fac=function(){let n;return function(r){return(n||(n=et(e)))(r||e)}}(),e.\u0275prov=ee({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function kP(e,n){if(1&e&&(f(0,"div",14),v(1),b(2,"translate"),f(3,"strong"),v(4),h()()),2&e){const t=D(2);d(1),y(" ",C(2,2,"role"),": "),d(3),Fr(t.role.name)}}const FP=function(e){return{date:e}};function RP(e,n){if(1&e&&(f(0,"div",15),v(1),b(2,"translate"),h()),2&e){const t=D(2);d(1),y(" ",Ic(2,1,"assignment-date",function Vy(e,n,t,r){return jy(H(),hn(),e,n,t,r)}(4,FP,t.assignmentDate))," ")}}function OP(e,n){if(1&e){const t=he();f(0,"button",16),$("click",function(){return K(t),Q(D(2).onRemoveFromTask.emit())}),v(1),b(2,"translate"),h()}2&e&&(d(1),y(" ",C(2,1,"remove-from-task")," "))}function NP(e,n){if(1&e&&(f(0,"div",1)(1,"div",2)(2,"div",3)(3,"div",4)(4,"h5",5),v(5),h(),S(6,"app-x-btn"),h(),f(7,"div",6),S(8,"p"),f(9,"div")(10,"span",7),v(11),h(),f(12,"span",7),v(13),h(),v(14),f(15,"strong",7),v(16),h(),v(17),h(),k(18,kP,5,4,"div",8),k(19,RP,3,6,"div",9),h(),f(20,"div",10)(21,"div",11)(22,"div",12),S(23,"app-close-btn"),h(),f(24,"div",12),k(25,OP,3,3,"button",13),h()()()()()()),2&e){const t=D();g("id",t.target),Ve("aria-labelledby",t.target),d(4),g("id",t.target),d(1),y(" ",t.user.username," "),d(6),Fr(t.user.name?t.user.name+" ":""),d(2),Fr(t.user.surname?t.user.surname+" ":""),d(1),y(" ",t.user.name||t.user.surname?" aka ":""," "),d(2),y(" ",t.user.username," "),d(1),y(" (",t.user.email,") "),d(1),g("ngIf",t.role),d(1),g("ngIf",t.assignmentDate),d(6),g("ngIf",t.editable)}}let PP=(()=>{class e{constructor(t){this.roleService=t,this.editable=!1,this.onRemoveFromTask=new ue}ngOnInit(){const t=this.user?.role_id;t&&this.roleService.find(t).then(r=>{r.subscribe({next:i=>{this.role=i}})})}}return e.\u0275fac=function(t){return new(t||e)(O(ig))},e.\u0275cmp=De({type:e,selectors:[["app-manage-assigned-user-modal"]],inputs:{user:"user",target:"target",assignmentDate:"assignmentDate",editable:"editable"},outputs:{onRemoveFromTask:"onRemoveFromTask"},decls:1,vars:1,consts:[["class","modal fade text-left","tabindex","-1","role","dialog","aria-hidden","true",3,"id",4,"ngIf"],["tabindex","-1","role","dialog","aria-hidden","true",1,"modal","fade","text-left",3,"id"],["role","document",1,"modal-dialog","modal-dialog-scrollable"],[1,"modal-content"],[1,"modal-header"],[1,"modal-title","text-capitalize",3,"id"],[1,"modal-body"],[1,"text-capitalize"],["class","mt-1",4,"ngIf"],["class","mt-5",4,"ngIf"],[1,"modal-footer"],[1,"row","justify-content-between"],[1,"col-auto"],["class","btn btn-outline-primary","data-bs-dismiss","modal",3,"click",4,"ngIf"],[1,"mt-1"],[1,"mt-5"],["data-bs-dismiss","modal",1,"btn","btn-outline-primary",3,"click"]],template:function(t,r){1&t&&k(0,NP,26,12,"div",0),2&t&&g("ngIf",r.user)},dependencies:[He,Pi,li,Xe]}),e})();function LP(e,n){if(1&e&&(Ae(0),f(1,"div",1),b(2,"translate"),f(3,"span",2),S(4,"i"),h()(),xe()),2&e){const t=D();d(1),ts("background-color",t.color),Qe("shiny",t.shiny),g("title",C(2,7,t.tooltip)),d(3),xv(t.iconClass)}}let VP=(()=>{class e{constructor(){this.tooltip="",this.shiny=!1}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=De({type:e,selectors:[["app-icon-avatar"]],inputs:{color:"color",iconClass:"iconClass",tooltip:"tooltip",shiny:"shiny"},decls:1,vars:1,consts:[[4,"ngIf"],["data-bs-toggle","tooltip","data-bs-placement","top",1,"avatar","me-3",3,"title"],[1,"avatar-content","text-uppercase"]],template:function(t,r){1&t&&k(0,LP,5,9,"ng-container",0),2&t&&g("ngIf",r.iconClass&&r.color)},dependencies:[He,Xe],styles:[".shiny[_ngcontent-%COMP%]{box-shadow:#ffee004d 0 0 0 3px}"]}),e})(),Uu=(()=>{class e extends ho{constructor(){super(...arguments),this.ALL="user_all",this.FIND="user_find",this.DELETE_BY_ID="user_delete_by_id",this.UPDATE="user_update",this.CREATE="user_create",this.CHECK_ALREADY_USED="user_check_already_used",this.FILTER="user_filter",this.FIND_BY_EMAIL="user_find_by_email"}findByEmail(t){var r=this;return bt(function*(){return r.eelService.call(r.FIND_BY_EMAIL,t)})()}}return e.\u0275fac=function(){let n;return function(r){return(n||(n=et(e)))(r||e)}}(),e.\u0275prov=ee({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function BP(e,n){1&e&&(f(0,"span",16),v(1),b(2,"translate"),h()),2&e&&(d(1),y(" ",C(2,1,"select")," "))}function jP(e,n){if(1&e&&(f(0,"span",16),v(1),h()),2&e){const t=D();d(1),y(" ",null==t.userSelected?null:t.userSelected.username," ")}}function UP(e,n){if(1&e){const t=he();f(0,"button",17),$("click",function(){const o=K(t).$implicit;return Q(D().selectUser(o))}),v(1),h()}if(2&e){const t=n.$implicit;d(1),y(" ",t.username," ")}}function $P(e,n){1&e&&(Ae(0),f(1,"div",18)(2,"p"),v(3),b(4,"translate"),h()(),xe()),2&e&&(d(3),y(" ",C(4,1,"no-users")," "))}let HP=(()=>{class e{constructor(t){this.userService=t,this.alreadyAssignedUsers=[],this.noUsers=!1,this.onAddAssignment=new ue,this.onClose=new ue}ngOnInit(){}ngOnDestroy(){this.onClose.emit()}selectUser(t){this.userSelected=t}setUsersCanBeAssign(){this.noUsers=!1,this.userService.all().then(t=>{t.subscribe({next:r=>{this.usersCanBeAssign=r.filter(i=>!this.alreadyAssignedUsers.map(o=>o.id).includes(i.id)),(!this.usersCanBeAssign||0==this.usersCanBeAssign.length)&&(this.noUsers=!0)}})})}}return e.\u0275fac=function(t){return new(t||e)(O(Uu))},e.\u0275cmp=De({type:e,selectors:[["app-new-assignment-modal"]],inputs:{target:"target",alreadyAssignedUsers:"alreadyAssignedUsers"},outputs:{onAddAssignment:"onAddAssignment",onClose:"onClose"},decls:26,vars:16,consts:[["tabindex","-1","role","dialog","aria-hidden","true",1,"modal","fade","text-left",3,"id"],["role","document",1,"modal-dialog","modal-dialog-scrollable"],[1,"modal-content"],[1,"modal-header"],[1,"modal-title",3,"id"],[1,"modal-body"],[1,"d-flex","justify-content-center",2,"padding-bottom","20vh"],[1,"btn-group","dropdown","me-1","mb-1"],["type","button","data-bs-toggle","dropdown","aria-haspopup","true","aria-expanded","false","data-reference","parent",1,"btn","btn-primary","dropdown-toggle","dropdown-toggle-split",3,"click"],["class","sr-only",4,"ngIf","ngIfElse"],["selected",""],[1,"dropdown-menu"],["class","dropdown-item",3,"click",4,"ngFor","ngForOf"],["type","button",1,"btn","btn-outline-primary",3,"click"],[4,"ngIf"],[1,"modal-footer"],[1,"sr-only"],[1,"dropdown-item",3,"click"],[1,"alert","alert-light-warning"]],template:function(t,r){if(1&t&&(f(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"h5",4),v(5),b(6,"translate"),h(),S(7,"app-x-btn"),h(),f(8,"div",5)(9,"p"),v(10),b(11,"translate"),h(),f(12,"div",6)(13,"div",7)(14,"button",8),$("click",function(){return r.setUsersCanBeAssign()}),k(15,BP,3,3,"span",9),k(16,jP,2,1,"ng-template",null,10,Yt),h(),f(18,"div",11),k(19,UP,2,1,"button",12),h(),f(20,"button",13),$("click",function(){return r.onAddAssignment.emit(r.userSelected),r.userSelected=void 0}),v(21),b(22,"translate"),h()()(),k(23,$P,5,3,"ng-container",14),h(),f(24,"div",15),S(25,"app-close-btn"),h()()()()),2&t){const i=$e(17);g("id",r.target),Ve("aria-labelledby",r.target),d(4),g("id",r.target),d(1),y(" ",C(6,10,"add-new-assignment")," "),d(5),y(" ",C(11,12,"add-new-assignment-description")," "),d(5),g("ngIf",void 0===r.userSelected)("ngIfElse",i),d(4),g("ngForOf",r.usersCanBeAssign),d(2),y(" ",C(22,14,"add")," "),d(2),g("ngIf",r.noUsers)}},dependencies:[Mn,He,Pi,li,Xe]}),e})(),MD=(()=>{class e extends ho{constructor(){super(...arguments),this.ALL="todo_all",this.FIND="todo_find",this.DELETE_BY_ID="todo_delete_by_id",this.ALL_OF="todo_all_of",this.UPDATE="todo_update",this.CREATE="todo_create",this.FILTER="todo_filter",this.CHECK_ALREADY_USED="todo_already_used"}allOf(t){var r=this;return bt(function*(){return r.eelService.call(r.ALL_OF,t)})()}}return e.\u0275fac=function(){let n;return function(r){return(n||(n=et(e)))(r||e)}}(),e.\u0275prov=ee({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function GP(e,n){if(1&e){const t=he();f(0,"div",1)(1,"div",2)(2,"div",3)(3,"div",4)(4,"h5",5),v(5),b(6,"translate"),h(),S(7,"app-x-btn"),h(),f(8,"div",6)(9,"form",7),S(10,"input",8),h()(),f(11,"div",9),S(12,"app-close-btn"),f(13,"button",10),$("click",function(){return K(t),Q(D().manageDeadlineForm.reset())}),v(14),b(15,"translate"),h(),f(16,"button",11),$("click",function(){return K(t),Q(D()._onSubmit())}),S(17,"i",12),f(18,"span",13),v(19),b(20,"translate"),h()()()()()()}if(2&e){const t=D();g("id",t.target),Ve("aria-labelledby",t.target),d(4),g("id",t.target),d(1),y(" ",C(6,9,"deadline")," "),d(4),g("formGroup",t.manageDeadlineForm),d(1),g("id",t.target+"-input"),d(4),y(" ",C(15,11,"reset")," "),d(2),g("disabled",t.manageDeadlineForm.invalid),d(3),y(" ",C(20,13,"confirm")," ")}}let zP=(()=>{class e{constructor(){this.value=null,this.onSubmit=new ue,this.manageDeadlineForm=new An({deadline:new re(null)})}ngAfterContentInit(){this.manageDeadlineForm.controls.deadline.setValue(this.value??null)}_onSubmit(){this.manageDeadlineForm.valid&&(this.onSubmit.emit(this.manageDeadlineForm.controls.deadline.value),this.value=null,this.manageDeadlineForm.reset())}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=De({type:e,selectors:[["app-manage-deadline"]],inputs:{value:"value",target:"target"},outputs:{onSubmit:"onSubmit"},decls:1,vars:1,consts:[["class","modal fade text-left","tabindex","-1","role","dialog","aria-hidden","true",3,"id",4,"ngIf"],["tabindex","-1","role","dialog","aria-hidden","true",1,"modal","fade","text-left",3,"id"],["role","document",1,"modal-dialog","modal-dialog-scrollable"],[1,"modal-content"],[1,"modal-header"],[1,"modal-title",3,"id"],[1,"modal-body"],[3,"formGroup"],["type","datetime-local","placeholder","dd/mm/yyyy HH:mm","formControlName","deadline",1,"form-control","flatpickr-time-picker-24h","mt-2",3,"id"],[1,"modal-footer"],["type","button",1,"btn","btn-outline-secondary","ml-1",3,"click"],["type","button","data-bs-dismiss","modal",1,"btn","btn-primary","ml-1",3,"disabled","click"],[1,"bx","bx-check","d-block","d-sm-none"],[1,"d-none","d-sm-block"]],template:function(t,r){1&t&&k(0,GP,21,15,"div",0),2&t&&g("ngIf",r.target)},dependencies:[He,Vr,or,Pr,Lr,sr,vr,Pi,li,Xe]}),e})();function qP(e,n){if(1&e&&(f(0,"span",4),v(1),b(2,"date"),h()),2&e){const t=D(2);Qe("bg-light-primary",t.getDeadlineStatus()===t.DeadlineStatus.PRIMARY)("bg-light-warning",t.getDeadlineStatus()===t.DeadlineStatus.WARNING)("bg-light-danger",t.getDeadlineStatus()===t.DeadlineStatus.DANGER)("bg-light-success",t.getDeadlineStatus()===t.DeadlineStatus.DONE)("done",!!t.done)("cursor-pointer",t.editable),Ve("data-bs-toggle",t.editable?"modal":"")("data-bs-target",t.editable?"#modify-deadline"+t.id+"-modal":""),d(1),y(" ",Ic(2,15,t.deadline,t.dateFormat)," ")}}function WP(e,n){if(1&e){const t=he();f(0,"app-manage-deadline",5),$("onSubmit",function(i){return K(t),Q(D(2).onDeadlineModified.emit(i))}),h()}if(2&e){const t=D(2);g("value",t.deadline)("target","modify-deadline"+t.id+"-modal")}}function YP(e,n){if(1&e){const t=he();f(0,"span",6),v(1),b(2,"translate"),h(),f(3,"app-manage-deadline",5),$("onSubmit",function(i){return K(t),Q(D(2).onDeadlineModified.emit(i))}),h()}if(2&e){const t=D(2);Ve("data-bs-toggle",t.editable?"modal":"")("data-bs-target",t.editable?"#add-deadline"+t.id+"-modal":""),d(1),y(" ",C(2,5,"add-deadline")," "),d(2),g("value",t.deadline)("target","add-deadline"+t.id+"-modal")}}function KP(e,n){if(1&e&&(Ae(0),k(1,qP,3,18,"span",1),k(2,WP,1,2,"app-manage-deadline",2),k(3,YP,4,7,"ng-template",null,3,Yt),xe()),2&e){const t=$e(4),r=D();d(1),g("ngIf",!!r.deadline)("ngIfElse",t),d(1),g("ngIf",!!r.deadline)}}var Li=(()=>{return(e=Li||(Li={}))[e.PRIMARY=0]="PRIMARY",e[e.WARNING=1]="WARNING",e[e.DANGER=2]="DANGER",e[e.DONE=3]="DONE",Li;var e})();let AD=(()=>{class e{constructor(){this.dateFormat=zt.fullDateFormat,this.DeadlineStatus=Li,this.deadline=null,this.done=!1,this.editable=!1,this.creable=!1,this.onDeadlineModified=new ue}getDeadlineStatus(){if(!this.deadline)return null;if(this.done)return Li.DONE;const t=new Date(Date.now()),r=new Date(this.deadline),i=new Date(r);if(i.setDate(i.getDate()-zt.dangerDateDayBefore),t>i)return Li.DANGER;const o=new Date(r);return o.setDate(o.getDate()-zt.warningDateDayBefore),t>o?Li.WARNING:Li.PRIMARY}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=De({type:e,selectors:[["app-deadline-badge"]],inputs:{deadline:"deadline",done:"done",editable:"editable",id:"id",creable:"creable"},outputs:{onDeadlineModified:"onDeadlineModified"},decls:1,vars:1,consts:[[4,"ngIf"],["class","badge",3,"bg-light-primary","bg-light-warning","bg-light-danger","bg-light-success","done","cursor-pointer",4,"ngIf","ngIfElse"],[3,"value","target","onSubmit",4,"ngIf"],["newDeadline",""],[1,"badge"],[3,"value","target","onSubmit"],[1,"badge","bg-light-secondary","cursor-pointer"]],template:function(t,r){1&t&&k(0,KP,5,3,"ng-container",0),2&t&&g("ngIf",r.id)},dependencies:[He,zP,Lh,Xe],styles:[".done[_ngcontent-%COMP%]{text-decoration:line-through!important}"]}),e})();function QP(e,n){if(1&e){const t=he();f(0,"div",1)(1,"div",2)(2,"div",3)(3,"div",4)(4,"h5",5),v(5),b(6,"translate"),h(),S(7,"app-x-btn"),h(),f(8,"div",6)(9,"form",7)(10,"div",8)(11,"div",9)(12,"div",10)(13,"label",11),v(14),b(15,"translate"),h(),f(16,"textarea",12),b(17,"translate"),v(18," "),h()()(),f(19,"div",9)(20,"div",10)(21,"label"),v(22),b(23,"translate"),h(),S(24,"input",13),b(25,"translate"),h()(),f(26,"div",9)(27,"div",10)(28,"label"),v(29),b(30,"translate"),h(),S(31,"input",14),b(32,"translate"),h()()()()(),f(33,"div",15),S(34,"app-close-btn"),f(35,"button",16),$("click",function(){return K(t),Q(D()._onSubmit())}),S(36,"i",17),f(37,"span",18),v(38),b(39,"translate"),h()()()()()()}if(2&e){const t=D();g("id",t.target),Ve("aria-labelledby",t.target),d(4),g("id",t.target),d(1),y(" ",C(6,13,"add-new-todo")," "),d(4),g("formGroup",t.newItemForm),d(5),y(" ",C(15,15,"description")," "),d(2),Pt("placeholder",C(17,17,"description")),d(6),y(" ",C(23,19,"deadline")," "),d(2),Pt("placeholder",C(25,21,"deadline")),d(5),y(" ",C(30,23,"priority")," "),d(2),Pt("placeholder",C(32,25,"priority")),d(4),g("disabled",t.newItemForm.invalid),d(3),y(" ",C(39,27,"confirm")," ")}}let xD=(()=>{class e{constructor(){this.onClose=new ue,this.onSubmit=new ue,this.newItemForm=new An({description:new re(null,[Ge.required]),deadline:new re(null),priority:new re(0)})}ngAfterContentInit(){this.newItemForm.setValue({description:this.baseData?.description??null,deadline:this.baseData?.deadline??null,priority:this.baseData?.priority??0})}_onSubmit(){this.newItemForm.valid&&(this.onSubmit.emit({description:this.newItemForm.controls.description.value,deadline:this.newItemForm.controls.deadline.value,priority:this.newItemForm.controls.priority.value??0}),this.baseData=void 0,this.newItemForm.reset())}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=De({type:e,selectors:[["app-new-todo-item-modal"]],inputs:{target:"target",baseData:"baseData"},outputs:{onClose:"onClose",onSubmit:"onSubmit"},decls:1,vars:1,consts:[["class","modal fade text-left","tabindex","-1","role","dialog","aria-hidden","true",3,"id",4,"ngIf"],["tabindex","-1","role","dialog","aria-hidden","true",1,"modal","fade","text-left",3,"id"],["role","document",1,"modal-dialog","modal-dialog-scrollable"],[1,"modal-content"],[1,"modal-header"],[1,"modal-title",3,"id"],[1,"modal-body"],[3,"formGroup"],[1,"row"],[1,"col-12"],[1,"form-group"],["for","description",1,"form-label"],["aria-label","Description","aria-describedby","description-icon","formControlName","description","id","description","rows","6",1,"form-control",3,"placeholder"],["type","datetime-local","formControlName","deadline",1,"form-control","flatpickr-time-picker-24h","mt-2",3,"placeholder"],["type","number","id","priority","formControlName","priority",1,"form-control",3,"placeholder"],[1,"modal-footer"],["type","button","data-bs-dismiss","modal",1,"btn","btn-primary","ml-1",3,"disabled","click"],[1,"bx","bx-check","d-block","d-sm-none"],[1,"d-none","d-sm-block"]],template:function(t,r){1&t&&k(0,QP,40,29,"div",0),2&t&&g("ngIf",r.target)},dependencies:[He,Vr,or,Vu,Pr,Lr,sr,vr,Pi,li,Xe]}),e})();function XP(e,n){if(1&e&&S(0,"app-deadline-badge",19),2&e){const t=D(2);g("deadline",t.item.deadline)("done",!!t.item.done)("editable",t.utilsService.canModify(t.item.author_id))("id","deadline-todo-"+t.item.id)}}function ZP(e,n){if(1&e&&S(0,"app-text-avatar",20),2&e){const t=D(2);g("color",t.item.author.avatar_hex_color)("text",t.utilsService.getAvatarText(t.item.author))("tooltip",t.item.author.username)}}function JP(e,n){1&e&&(f(0,"button",21),S(1,"i",22),h()),2&e&&Ve("data-bs-target","#modify-todo-item-"+D(2).item.id)}function e3(e,n){1&e&&(f(0,"button",23),S(1,"i",24),h()),2&e&&Ve("data-bs-target","#delete-todo-item-"+D(2).item.id)}const t3=function(e,n,t){return{description:e,deadline:n,priority:t}};function n3(e,n){if(1&e){const t=he();f(0,"li",1)(1,"div",2)(2,"div",3)(3,"div",4)(4,"input",5),$("click",function(){return K(t),Q(D().done())}),h()()(),f(5,"div",6)(6,"span",7),v(7),h()(),f(8,"div",8)(9,"div",9)(10,"div",10),k(11,XP,1,4,"app-deadline-badge",11),h(),f(12,"div",12),k(13,ZP,1,3,"app-text-avatar",13),h(),f(14,"div",14),k(15,JP,2,1,"button",15),f(16,"app-new-todo-item-modal",16),$("onSubmit",function(i){return K(t),Q(D().modify(i))}),h(),k(17,e3,2,1,"button",17),f(18,"app-dialog-modal",18),$("onConfirm",function(){return K(t),Q(D().delete())}),h()()()()()()}if(2&e){const t=D();d(4),g("id","checkbox-todo-"+t.item.id)("checked",!!t.item.done)("title","Priority: "+t.item.priority),d(2),Qe("done",!!t.item.done),g("title","Priority: "+t.item.priority),d(1),y(" ",t.item.description," "),d(4),g("ngIf",t.item.deadline),d(2),g("ngIf",t.item.author),d(2),g("ngIf",t.utilsService.canModify(t.item.author_id)),d(1),g("target","modify-todo-item-"+t.item.id)("baseData",By(18,t3,t.item.description,t.item.deadline,t.item.priority)),d(1),g("ngIf",t.utilsService.canDelete(t.item.author_id)),d(1),g("target","delete-todo-item-"+t.item.id)("centered",!0)("confirmBtn",!0)("confirmBtnTxt","confirm")("borderless",!0)}}let r3=(()=>{class e{constructor(t,r){this.utilsService=t,this.todoService=r,this.refreshRequest=new ue}done(){this.item&&this.todoService.update(this.item.id,{done:!this.item.done}).then(t=>{t.subscribe({next:r=>{this.refreshRequest.emit()}})})}delete(){this.item&&this.todoService.deleteById(this.item.id).then(t=>{t.subscribe({next:r=>{this.refreshRequest.emit()}})})}modify(t){this.item&&this.todoService.update(this.item.id,t).then(r=>{r.subscribe({next:i=>{this.refreshRequest.emit()}})})}}return e.\u0275fac=function(t){return new(t||e)(O(Ni),O(MD))},e.\u0275cmp=De({type:e,selectors:[["app-task-todo-item"]],inputs:{item:"item"},outputs:{refreshRequest:"refreshRequest"},decls:1,vars:1,consts:[["class","widget-todo-item",4,"ngIf"],[1,"widget-todo-item"],[1,"row"],[1,"col-1"],[1,"checkbox","checkbox-shadow"],["type","checkbox","data-bs-toggle","tooltip","data-bs-placement","top",1,"form-check-input",3,"id","checked","title","click"],[1,"col-8"],["data-bs-toggle","tooltip","data-bs-placement","top",1,"widget-todo-title","ml-50","cursor-arrow",3,"title"],[1,"col-xxl-3"],[1,"row","justify-content-between"],[1,"col-6","d-flex","justify-content-center"],["style","margin-right: 1vw;",3,"deadline","done","editable","id",4,"ngIf"],[1,"col-2","d-flex","justify-content-center"],["class","cursor-arrow",3,"color","text","tooltip",4,"ngIf"],[1,"col-4","d-flex","justify-content-center"],["class","btn btn-sm icon btn-light mr-1","data-bs-toggle","modal",4,"ngIf"],[3,"target","baseData","onSubmit"],["class","btn btn-sm icon btn-light","data-bs-toggle","modal",4,"ngIf"],["title","delete-request",3,"target","centered","confirmBtn","confirmBtnTxt","borderless","onConfirm"],[2,"margin-right","1vw",3,"deadline","done","editable","id"],[1,"cursor-arrow",3,"color","text","tooltip"],["data-bs-toggle","modal",1,"btn","btn-sm","icon","btn-light","mr-1"],[1,"bi","bi-pencil"],["data-bs-toggle","modal",1,"btn","btn-sm","icon","btn-light"],[1,"bi","bi-trash"]],template:function(t,r){1&t&&k(0,n3,19,22,"li",0),2&t&&g("ngIf",r.item)},dependencies:[He,ju,hl,AD,xD],styles:[".done[_ngcontent-%COMP%]{text-decoration:line-through!important;opacity:.8;filter:grayscale(1)}"]}),e})();const i3=["showTodoBtn"];function o3(e,n){if(1&e){const t=he();f(0,"app-task-todo-item",27),$("refreshRequest",function(){K(t);const i=D(2);return i.loadTodoItems(),Q(i.onRefresh.emit())}),h()}2&e&&g("item",n.$implicit)}function s3(e,n){if(1&e&&(Ae(0),f(1,"div",17)(2,"div",18)(3,"span",19),v(4),b(5,"translate"),h()(),f(6,"div",20)(7,"div",21)(8,"div",22)(9,"span",19),v(10),b(11,"translate"),h()(),f(12,"div",23)(13,"span",19),v(14),b(15,"translate"),h()(),f(16,"div",24)(17,"span",19),v(18),b(19,"translate"),h()()()()(),f(20,"ul",25),k(21,o3,1,1,"app-task-todo-item",26),h(),xe()),2&e){const t=D();d(4),y(" ",C(5,5,"description")," "),d(6),y(" ",C(11,7,"deadline")," "),d(4),y(" ",C(15,9,"author")," "),d(4),y(" ",C(19,11,"actions")," "),d(3),g("ngForOf",t.todoItems)}}function a3(e,n){1&e&&(f(0,"p",28)(1,"span",19),v(2),b(3,"translate"),h()()),2&e&&(d(2),y(" ",C(3,1,"no-todo-items")," "))}function l3(e,n){if(1&e){const t=he();Ae(0),f(1,"div",29)(2,"a",30),$("click",function(){return K(t),D(),Q($e(12).click())}),v(3),b(4,"translate"),h()(),xe()}2&e&&(d(3),y(" ",C(4,1,"show-list")," "))}let c3=(()=>{class e{constructor(t,r){this.todoService=t,this.authService=r,this.todoCollapseStatus=!1,this.onRefresh=new ue,this.todoItems=[]}ngOnInit(){this.loadTodoItems()}ngAfterViewInit(){this.todoCollapseStatus&&(this.showTodoBtn?.nativeElement.click(),this.todoCollapseStatus=!0)}loadTodoItems(){this.taskId&&this.todoService.allOf(this.taskId).then(t=>{t.subscribe({next:r=>{r&&(this.todoItems=r,this.todoItems=this.todoItems.sort((i,o)=>o.priority-i.priority))}})})}newTodo(t){!this.taskId||!this.authService.loggedUser||this.todoService.create({description:t.description,deadline:t.deadline,priority:t.priority,task_id:this.taskId,author_id:this.authService.loggedUser.id}).then(r=>{r.subscribe({next:i=>{this.loadTodoItems()}})})}}return e.\u0275fac=function(t){return new(t||e)(O(MD),O(Un))},e.\u0275cmp=De({type:e,selectors:[["app-task-todo-list"]],viewQuery:function(t,r){if(1&t&&Ia(i3,5),2&t){let i;os(i=ss())&&(r.showTodoBtn=i.first)}},inputs:{taskId:"taskId",todoCollapseStatus:"todoCollapseStatus"},outputs:{onRefresh:"onRefresh"},decls:21,vars:15,consts:[[1,"card","widget-todo"],[1,"card-header","border-bottom"],[1,"row","justify-content-between"],[1,"col-auto"],[1,"card-title","d-flex"],[1,"bx","bx-check","font-medium-5","pl-25","pr-75"],["data-bs-toggle","modal",1,"btn","icon","btn-light"],[1,"bi","bi-plus"],["type","button","data-bs-toggle","collapse","aria-expanded","false",1,"btn","icon","btn-light",3,"click"],["showTodoBtn",""],[1,"bi","bi-eye"],[1,"card-body","px-0","py-1"],[1,"collapse",3,"id"],[4,"ngIf","ngIfElse"],["noTodo",""],[4,"ngIf"],[3,"target","onSubmit"],[1,"row","justify-content-between","widget-todo-item"],[1,"col-8","offset-1","d-flex","justify-content-start"],[1,"badge","bg-light-secondary"],[1,"col-3","d-none","d-xxl-block"],[1,"row"],[1,"col-6","d-flex","justify-content-center"],[1,"col-2","d-flex","justify-content-center"],[1,"col-4","d-flex","justify-content-center"],["id","widget-todo-list",1,"widget-todo-list-wrapper"],[3,"item","refreshRequest",4,"ngFor","ngForOf"],[3,"item","refreshRequest"],[1,"text-center"],[1,"d-flex","justify-content-center"],["href","javascript:void(0)",1,"text-center",3,"click"]],template:function(t,r){if(1&t){const i=he();f(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"h4",4),S(5,"i",5),v(6),b(7,"translate"),h()(),f(8,"div",3)(9,"button",6),S(10,"i",7),h(),f(11,"button",8,9),$("click",function(){return r.todoCollapseStatus=!r.todoCollapseStatus}),S(13,"i",10),h()()()(),f(14,"div",11)(15,"div",12),k(16,s3,22,13,"ng-container",13),k(17,a3,4,3,"ng-template",null,14,Yt),h(),k(19,l3,5,3,"ng-container",15),h(),f(20,"app-new-todo-item-modal",16),$("onSubmit",function(s){K(i);const a=$e(12);return r.newTodo(s),Q(r.todoCollapseStatus?null:a.click())}),h()()}if(2&t){const i=$e(18);d(6),y(" ",C(7,13,"sub-task")," "),d(3),Ve("data-bs-target","#new-todo-"+r.taskId),d(2),Ve("data-bs-target","#show-todo-"+r.taskId)("aria-controls","show-todo-"+r.taskId),d(2),Qe("bi-eye",!r.todoCollapseStatus)("bi-eye-slash",r.todoCollapseStatus),d(2),g("id","show-todo-"+r.taskId),d(1),g("ngIf",r.todoItems.length>0)("ngIfElse",i),d(3),g("ngIf",!r.todoCollapseStatus),d(1),g("target","new-todo-"+r.taskId)}},dependencies:[Mn,He,r3,xD,Xe]}),e})();function u3(e,n){1&e&&S(0,"i",3),2&e&&g("ngClass",D(2).icon)}function d3(e,n){if(1&e&&(f(0,"span",1),k(1,u3,1,1,"i",2),v(2),b(3,"translate"),h()),2&e){const t=D();let r;ts("background-color",t.color+" !important")("color",t.textColor+" !important"),d(1),g("ngIf",t.icon),d(1),y(" ",C(3,6,null!==(r=t.text)&&void 0!==r?r:""),"\n")}}let f3=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=De({type:e,selectors:[["app-badge"]],inputs:{text:"text",icon:"icon",color:"color",textColor:"textColor"},decls:1,vars:1,consts:[["class","badge bg-secondary m-1",3,"background-color","color",4,"ngIf"],[1,"badge","bg-secondary","m-1"],["class","bi",3,"ngClass",4,"ngIf"],[1,"bi",3,"ngClass"]],template:function(t,r){1&t&&k(0,d3,4,8,"span",0),2&t&&g("ngIf",r.text||r.icon)},dependencies:[l1,He,Xe]}),e})();function h3(e,n){if(1&e&&(f(0,"p"),v(1),h()),2&e){const t=D(2);d(1),y(" ",t.label.description," ")}}function p3(e,n){if(1&e){const t=he();f(0,"div",1)(1,"div",2)(2,"div",3)(3,"div",4)(4,"h5",5),v(5),h(),S(6,"app-x-btn"),h(),f(7,"div",6),k(8,h3,2,1,"p",7),h(),f(9,"div",8)(10,"div",9)(11,"div",10),S(12,"app-close-btn"),h(),f(13,"div",10)(14,"button",11),$("click",function(){return K(t),Q(D().onRemoveFromTask.emit())}),v(15),b(16,"translate"),h()()()()()()()}if(2&e){const t=D();g("id",t.target),Ve("aria-labelledby",t.target),d(4),g("id",t.target),d(1),y(" ",t.label.name," "),d(3),g("ngIf",t.label.description),d(7),y(" ",C(16,6,"remove-from-task")," ")}}let g3=(()=>{class e{constructor(){this.onRemoveFromTask=new ue}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=De({type:e,selectors:[["app-manage-task-label-modal"]],inputs:{target:"target",label:"label"},outputs:{onRemoveFromTask:"onRemoveFromTask"},decls:1,vars:1,consts:[["class","modal fade text-left","tabindex","-1","role","dialog","aria-hidden","true",3,"id",4,"ngIf"],["tabindex","-1","role","dialog","aria-hidden","true",1,"modal","fade","text-left",3,"id"],["role","document",1,"modal-dialog","modal-dialog-scrollable"],[1,"modal-content"],[1,"modal-header"],[1,"modal-title","text-capitalize",3,"id"],[1,"modal-body"],[4,"ngIf"],[1,"modal-footer"],[1,"row","justify-content-between"],[1,"col-auto"],["data-bs-dismiss","modal",1,"btn","btn-outline-primary",3,"click"]],template:function(t,r){1&t&&k(0,p3,17,8,"div",0),2&t&&g("ngIf",r.label)},dependencies:[He,Pi,li,Xe]}),e})(),kD=(()=>{class e extends ho{constructor(){super(...arguments),this.ALL="task_label_all",this.FIND="task_label_find",this.DELETE_BY_ID="task_label_delete_by_id",this.UPDATE="task_label_update",this.CREATE="task_label_create",this.CHECK_ALREADY_USED="task_label_check_already_used",this.FILTER="task_label_filter"}}return e.\u0275fac=function(){let n;return function(r){return(n||(n=et(e)))(r||e)}}(),e.\u0275prov=ee({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function m3(e,n){1&e&&(f(0,"span",16),v(1),b(2,"translate"),h()),2&e&&(d(1),y(" ",C(2,1,"select")," "))}function _3(e,n){if(1&e&&(f(0,"span",16),v(1),h()),2&e){const t=D();d(1),y(" ",null==t.labelSelected?null:t.labelSelected.name," ")}}function v3(e,n){if(1&e){const t=he();f(0,"button",17),$("click",function(){const o=K(t).$implicit;return Q(D().select(o))}),v(1),h()}if(2&e){const t=n.$implicit;d(1),y(" ",t.name," ")}}function y3(e,n){1&e&&(Ae(0),f(1,"div",18)(2,"p"),v(3),b(4,"translate"),h()(),xe()),2&e&&(d(3),y(" ",C(4,1,"no-labels")," "))}let b3=(()=>{class e{constructor(t,r){this.taskService=t,this.taskLabelService=r,this.alreadyAssignedLabels=[],this.noLabels=!1,this.onAdd=new ue,this.onClose=new ue}ngOnDestroy(){this.onClose.emit()}select(t){this.labelSelected=t}setLabelsCanBeAssign(){this.noLabels=!1,this.taskLabelService.all().then(t=>{t.subscribe({next:r=>{this.labelsCanBeAssign=r.filter(i=>!this.alreadyAssignedLabels.map(o=>o.id).includes(i.id)),(!this.labelsCanBeAssign||0==this.labelsCanBeAssign.length)&&(this.noLabels=!0)}})})}}return e.\u0275fac=function(t){return new(t||e)(O(fl),O(kD))},e.\u0275cmp=De({type:e,selectors:[["app-add-task-label-modal"]],inputs:{target:"target",alreadyAssignedLabels:"alreadyAssignedLabels"},outputs:{onAdd:"onAdd",onClose:"onClose"},decls:26,vars:16,consts:[["tabindex","-1","role","dialog","aria-hidden","true",1,"modal","fade","text-left",3,"id"],["role","document",1,"modal-dialog","modal-dialog-scrollable"],[1,"modal-content"],[1,"modal-header"],[1,"modal-title",3,"id"],[1,"modal-body"],[1,"d-flex","justify-content-center",2,"padding-bottom","20vh"],[1,"btn-group","dropdown","me-1","mb-1"],["type","button","data-bs-toggle","dropdown","aria-haspopup","true","aria-expanded","false","data-reference","parent",1,"btn","btn-primary","dropdown-toggle","dropdown-toggle-split",3,"click"],["class","sr-only",4,"ngIf","ngIfElse"],["selected",""],[1,"dropdown-menu"],["class","dropdown-item",3,"click",4,"ngFor","ngForOf"],["type","button",1,"btn","btn-outline-primary",3,"click"],[4,"ngIf"],[1,"modal-footer"],[1,"sr-only"],[1,"dropdown-item",3,"click"],[1,"alert","alert-light-warning"]],template:function(t,r){if(1&t&&(f(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"h5",4),v(5),b(6,"translate"),h(),S(7,"app-x-btn"),h(),f(8,"div",5)(9,"p"),v(10),b(11,"translate"),h(),f(12,"div",6)(13,"div",7)(14,"button",8),$("click",function(){return r.setLabelsCanBeAssign()}),k(15,m3,3,3,"span",9),k(16,_3,2,1,"ng-template",null,10,Yt),h(),f(18,"div",11),k(19,v3,2,1,"button",12),h(),f(20,"button",13),$("click",function(){return r.onAdd.emit(r.labelSelected),r.labelSelected=void 0}),v(21),b(22,"translate"),h()()(),k(23,y3,5,3,"ng-container",14),h(),f(24,"div",15),S(25,"app-close-btn"),h()()()()),2&t){const i=$e(17);g("id",r.target),Ve("aria-labelledby",r.target),d(4),g("id",r.target),d(1),y(" ",C(6,10,"add-new-label")," "),d(5),y(" ",C(11,12,"add-new-label-description")," "),d(5),g("ngIf",void 0===r.labelSelected)("ngIfElse",i),d(4),g("ngForOf",r.labelsCanBeAssign),d(2),y(" ",C(22,14,"add")," "),d(2),g("ngIf",r.noLabels)}},dependencies:[Mn,He,Pi,li,Xe]}),e})(),C3=(()=>{class e{constructor(t){this.el=t,this.offset=20,this.base=10}ngAfterViewInit(){this.refreshHeight()}onChange(t){this.refreshHeight()}refreshHeight(){const t=this.el.nativeElement;let r=this.base;t.scrollHeight&&(r=t.scrollHeight+0),t.style.height=r+"px",t.style.overflowY="hidden"}}return e.\u0275fac=function(t){return new(t||e)(O(Tn))},e.\u0275dir=Ce({type:e,selectors:[["","appAutoHeight",""]],hostBindings:function(t,r){1&t&&$("input",function(){return r.onChange()})},inputs:{offset:"offset",base:"base"}}),e})();const w3=["closeBtn"];function D3(e,n){if(1&e&&(f(0,"div",18)(1,"h5",19),v(2),b(3,"translate"),h(),S(4,"app-x-btn"),h()),2&e){const t=D(2);d(1),g("id",t.target),d(1),y(" ",C(3,2,t.title)," ")}}function E3(e,n){if(1&e&&(f(0,"p"),v(1),b(2,"translate"),h()),2&e){const t=D(2);d(1),y(" ",C(2,1,t.description)," ")}}function S3(e,n){1&e&&(f(0,"span",20),v(1),b(2,"translate"),h()),2&e&&(d(1),y(" ",C(2,1,"select")," "))}function T3(e,n){if(1&e&&(f(0,"span",20),v(1),h()),2&e){const t=D(2);d(1),y(" ",t.showMaskFn(t.selectedItem)," ")}}function I3(e,n){if(1&e){const t=he();f(0,"button",21),$("click",function(){const o=K(t).$implicit;return Q(D(2).select(o))}),v(1),h()}if(2&e){const t=n.$implicit,r=D(2);g("disabled",r.disableCurrent&&r.comparatorFn(t,r.currentValue)),d(1),y(" ",r.showMaskFn(t)," ")}}function M3(e,n){1&e&&(Ae(0),f(1,"div",22)(2,"p"),v(3),b(4,"translate"),h()(),xe()),2&e&&(d(3),y(" ",C(4,1,"no-items")," "))}const A3=function(){return[]};function x3(e,n){if(1&e){const t=he();f(0,"div",1)(1,"div",2)(2,"div",3),k(3,D3,5,4,"div",4),f(4,"div",5),k(5,E3,3,3,"p",6),f(6,"div",7)(7,"div",8)(8,"button",9),k(9,S3,3,3,"span",10),k(10,T3,2,1,"ng-template",null,11,Yt),h(),f(12,"button",12),$("click",function(){K(t);const i=D();return i.onSelect.emit(i.selectedItem),Q(i.selectedItem=void 0)}),v(13),b(14,"translate"),h(),f(15,"div",13),k(16,I3,2,2,"button",14),h()()(),k(17,M3,5,3,"ng-container",6),h(),f(18,"div",15),S(19,"app-close-btn")(20,"button",16,17),h()()()()}if(2&e){const t=$e(11),r=D();g("id",r.target),Ve("aria-labelledby",r.target),d(3),g("ngIf",r.title),d(2),g("ngIf",r.description),d(4),g("ngIf",void 0===r.selectedItem)("ngIfElse",t),d(4),y(" ",C(14,9,r.confirmBtnText)," "),d(3),g("ngForOf",r.getItems()),d(1),g("ngIf",r.getItems()==It(11,A3))}}let k3=(()=>{class e{constructor(){this.options=[],this.selectOne=!0,this.confirmBtnText="add",this.showMaskFn=t=>t,this.comparatorFn=(t,r)=>t==r,this.showCurrentInList=!1,this.disableCurrent=!0,this.onClose=new ue,this.onSelect=new ue}ngOnInit(){}getItems(){if(!this.options)return[];let t=this.options;return!this.showCurrentInList&&this.currentValue&&(t=this.options.filter(r=>!this.comparatorFn(r,this.currentValue))),t}select(t){this.onSelect.emit(t),this.selectOne&&this.closeBtn&&(this.closeBtn.nativeElement.click(),this.onClose.emit())}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=De({type:e,selectors:[["app-dropdown-modal"]],viewQuery:function(t,r){if(1&t&&Ia(w3,5),2&t){let i;os(i=ss())&&(r.closeBtn=i.first)}},inputs:{target:"target",options:"options",currentValue:"currentValue",title:"title",description:"description",selectOne:"selectOne",confirmBtnText:"confirmBtnText",showMaskFn:"showMaskFn",comparatorFn:"comparatorFn",showCurrentInList:"showCurrentInList",disableCurrent:"disableCurrent"},outputs:{onClose:"onClose",onSelect:"onSelect"},decls:1,vars:1,consts:[["class","modal fade text-left","tabindex","-1","role","dialog","aria-hidden","true",3,"id",4,"ngIf"],["tabindex","-1","role","dialog","aria-hidden","true",1,"modal","fade","text-left",3,"id"],["role","document",1,"modal-dialog","modal-dialog-scrollable"],[1,"modal-content"],["class","modal-header",4,"ngIf"],[1,"modal-body"],[4,"ngIf"],[1,"d-flex","justify-content-center",2,"padding-bottom","20vh"],[1,"btn-group","dropdown","me-1","mb-1"],["type","button","data-bs-toggle","dropdown","aria-haspopup","true","aria-expanded","false","data-reference","parent",1,"btn","btn-primary","dropdown-toggle","dropdown-toggle-split"],["class","sr-only",4,"ngIf","ngIfElse"],["selected",""],["type","button",1,"btn","btn-outline-primary",3,"click"],[1,"dropdown-menu"],["class","dropdown-item",3,"disabled","click",4,"ngFor","ngForOf"],[1,"modal-footer"],["type","button","data-bs-dismiss","modal",1,"d-none"],["closeBtn",""],[1,"modal-header"],[1,"modal-title",3,"id"],[1,"sr-only"],[1,"dropdown-item",3,"disabled","click"],[1,"alert","alert-light-warning"]],template:function(t,r){1&t&&k(0,x3,22,12,"div",0),2&t&&g("ngIf",r.target)},dependencies:[Mn,He,Pi,li,Xe]}),e})();function F3(e,n){if(1&e){const t=he();f(0,"app-badge",58),$("click",function(){return K(t),Q(D(3).updateLastWatched())}),h()}2&e&&g("icon","bi-bell-fill")("color","#db5c5c")("text","news")}function R3(e,n){if(1&e&&(Ae(0),f(1,"div",54),S(2,"app-badge",55),f(3,"span",56),v(4),h(),k(5,F3,1,3,"app-badge",57),h(),xe()),2&e){const t=D(2);d(2),g("text",t.task.priority.toString())("color","#e2d3f2")("textColor","#181e24"),d(2),y(" ",t.task.name," "),d(1),g("ngIf",t.hasNews)}}function O3(e,n){if(1&e){const t=he();f(0,"div",29)(1,"div",59)(2,"input",60,61),$("input",function(){K(t);const i=$e(3);return Q(D(2).blueprintModificateTask.priority=+i.value)}),b(4,"translate"),h()(),f(5,"div",6)(6,"div",62)(7,"textarea",63,64),$("input",function(){K(t);const i=$e(8);return Q(D(2).blueprintModificateTask.name=i.value)}),b(9,"translate"),v(10," "),h()()()()}if(2&e){const t=D(2);d(2),Pt("placeholder",C(4,6,"priority")),g("value",t.task.priority),d(5),Pt("placeholder",C(9,8,"name")),g("value",null==t.blueprintModificateTask?null:t.blueprintModificateTask.name)("base",0)("offset",10)}}function N3(e,n){1&e&&(S(0,"i",65),b(1,"translate")),2&e&&Ve("title",C(1,1,"not-assigned"))}function P3(e,n){1&e&&(f(0,"button",74),S(1,"i",75),v(2),b(3,"translate"),h()),2&e&&(Ve("data-bs-target","#move-task-"+D(3).task.id),d(2),y(" ",C(3,2,"move-task")," "))}function L3(e,n){if(1&e){const t=he();f(0,"button",73),$("click",function(){K(t),D(2);const i=$e(30);return D().inModify=!0,Q(i.click())}),S(1,"i",76),v(2),b(3,"translate"),h()}2&e&&(d(2),y(" ",C(3,1,"modify")," "))}function V3(e,n){1&e&&(f(0,"button",74),S(1,"i",77),v(2),b(3,"translate"),h()),2&e&&(Ve("data-bs-target","#delete-request-"+D(3).task.id),d(2),y(" ",C(3,2,"delete")," "))}function B3(e,n){if(1&e){const t=he();f(0,"div",66)(1,"div",67)(2,"button",68),S(3,"i",69),h(),f(4,"div",70),k(5,P3,4,4,"button",71),k(6,L3,4,3,"button",72),k(7,V3,4,4,"button",71),f(8,"button",73),$("click",function(){return K(t),Q(D(2).refreshTask())}),S(9,"i",42),v(10),b(11,"translate"),h()()()()}if(2&e){const t=D(2);d(5),g("ngIf",null==t.authService.loggedUser.role?null:t.authService.loggedUser.role.permission_move),d(1),g("ngIf",t.utilsService.canModify(t.task.author_id)),d(1),g("ngIf",t.utilsService.canDelete(t.task.author_id)),d(3),y(" ",C(11,4,"refresh")," ")}}function j3(e,n){if(1&e){const t=he();f(0,"div")(1,"button",78),$("click",function(){return K(t),Q(D(2).initBlueprintTask())}),v(2),b(3,"translate"),h(),f(4,"button",79),$("click",function(){K(t);const i=D(2);return Q(i.modify(i.blueprintModificateTask))}),v(5),b(6,"translate"),S(7,"i",80),h()()}2&e&&(d(2),y(" ",C(3,2,"reset")," "),d(3),y(" ",C(6,4,"submit")," "))}function U3(e,n){if(1&e){const t=he();Ae(0),S(1,"app-badge",81),f(2,"app-manage-task-label-modal",82),$("onRemoveFromTask",function(){const o=K(t).$implicit;return Q(D(2).removeLabelFromTask(o))}),h(),xe()}if(2&e){const t=n.$implicit,r=D(2);d(1),g("text",t.name)("color",t.hex_color),Ve("data-bs-target","#label-"+t.id+"-task-"+r.task.id+"-modal"),d(1),g("target","label-"+t.id+"-task-"+r.task.id+"-modal")("label",t)}}function $3(e,n){if(1&e&&(Ae(0),v(1),xe()),2&e){const t=D(2);d(1),y(" ",t.task.description," ")}}function H3(e,n){if(1&e){const t=he();f(0,"div",62)(1,"textarea",83,84),$("input",function(){K(t);const i=$e(2);return Q(D(2).blueprintModificateTask.description=i.value)}),b(3,"translate"),v(4," "),h()()}if(2&e){const t=D(2);d(1),Pt("placeholder",C(3,2,"description")),g("value",null==t.blueprintModificateTask?null:t.blueprintModificateTask.description)}}function G3(e,n){if(1&e&&S(0,"app-text-avatar",85),2&e){const t=D(2);g("color",t.task.author.avatar_hex_color)("text",t.utilsService.getAvatarText(t.task.author))("tooltip",t.task.author.username)}}function z3(e,n){if(1&e&&(f(0,"div",31)(1,"div",32)(2,"label"),v(3),b(4,"translate"),h()(),f(5,"div",32)(6,"div",33)(7,"div",34),S(8,"input",35),f(9,"div",36),S(10,"i",86),h()()()()()),2&e){const t=D(2);d(3),y(" ",C(4,2,"task-status")," "),d(5),g("value",t.task.task_status.name)}}function q3(e,n){if(1&e){const t=he();f(0,"button",87),$("click",function(){K(t);const i=D(2);return Q(i.modify({task_status_id:null==i.task.task_status?null:i.task.task_status.default_prev_task_status_id}))}),S(1,"i",88),v(2),b(3,"async"),h()}if(2&e){const t=D(2);let r;d(2),y(" ",null==(r=C(3,1,t.prevStatus))?null:r.name," ")}}function W3(e,n){if(1&e){const t=he();Ae(0),S(1,"app-text-avatar",89),f(2,"app-manage-assigned-user-modal",90),$("onRemoveFromTask",function(){const o=K(t).$implicit;return Q(D(2).removeUserFromTask(o.user.id))}),h(),xe()}if(2&e){const t=n.$implicit,r=D(2);d(1),g("color",t.user.avatar_hex_color)("text",r.utilsService.getAvatarText(t.user))("tooltip",t.user.username),Ve("data-bs-target","#manage-assignment-user-"+t.user.id+"-modal"),d(1),g("user",t.user)("target","manage-assignment-user-"+t.user.id+"-modal")("assignmentDate",t.assigned_at)("editable",!(null==r.authService.loggedUser.role||!r.authService.loggedUser.role.permission_change_assignment))}}function Y3(e,n){if(1&e){const t=he();Ae(0),S(1,"app-icon-avatar",91),f(2,"app-new-assignment-modal",92),$("onAddAssignment",function(i){return K(t),Q(D(2).addAssignment(i))})("onClose",function(){K(t);const i=D(2);return Q(i.onAddAssignment.emit({target:i.task.id,new:i.task}))}),h(),xe()}if(2&e){const t=D(2);d(1),Ve("data-bs-target","#new-assignment-modal-"+t.task.id),d(1),g("target","new-assignment-modal-"+t.task.id)("alreadyAssignedUsers",t.getAssignedUsers())}}function K3(e,n){if(1&e){const t=he();f(0,"button",93),$("click",function(){K(t);const i=D(2);return Q(i.modify({task_status_id:null==i.task.task_status?null:i.task.task_status.default_next_task_status_id}))}),v(1),b(2,"async"),S(3,"i",94),h()}if(2&e){const t=D(2);let r;d(1),y(" ",null==(r=C(2,1,t.nextStatus))?null:r.name," ")}}const FD=function(){return[]};function Q3(e,n){if(1&e){const t=he();f(0,"div",1)(1,"div",2)(2,"div",3)(3,"h4",4)(4,"div",5)(5,"div",6),k(6,R3,6,5,"ng-container",7),k(7,O3,11,10,"ng-template",null,8,Yt),h(),f(9,"div",9)(10,"div",10),k(11,N3,2,3,"i",11),h(),k(12,B3,12,6,"div",12),k(13,j3,8,6,"ng-template",null,13,Yt),h()()(),f(15,"div",14)(16,"app-deadline-badge",15),$("onDeadlineModified",function(i){return K(t),Q(D().modify({deadline:i}))}),h(),f(17,"span",16),v(18," | "),h(),k(19,U3,3,5,"ng-container",17),S(20,"app-badge",18),f(21,"app-add-task-label-modal",19),$("onAdd",function(i){return K(t),Q(D().addLabelToTask(i))})("onClose",function(){K(t);const i=D();return Q(i.onAddLabel.emit({target:i.task.id,new:i.task}))}),h()(),f(22,"p",20),k(23,$3,2,1,"ng-container",7),h(),k(24,H3,5,4,"ng-template",null,21,Yt),f(26,"div",22)(27,"div",23)(28,"h2",24)(29,"button",25,26),v(31),b(32,"translate"),h()(),f(33,"div",27)(34,"div",28)(35,"div",29)(36,"div",30)(37,"div",1)(38,"div",2)(39,"div",3)(40,"div",29)(41,"div",31)(42,"div",32)(43,"label"),v(44),b(45,"translate"),h()(),f(46,"div",32)(47,"div",33)(48,"div",34),S(49,"input",35),f(50,"div",36),S(51,"i",37),h()()()()(),f(52,"div",31)(53,"div",32)(54,"label"),v(55),b(56,"translate"),h()(),f(57,"div",32)(58,"div",29)(59,"div",38)(60,"div",33)(61,"div",34),S(62,"input",35),f(63,"div",36),S(64,"i",39),h()()()(),f(65,"div",38),k(66,G3,1,3,"app-text-avatar",40),h()()()(),f(67,"div",31)(68,"div",32)(69,"label"),v(70),b(71,"translate"),h()(),f(72,"div",32)(73,"div",33)(74,"div",34),S(75,"input",35),f(76,"div",36),S(77,"i",41),h()()()()(),f(78,"div",31)(79,"div",32)(80,"label"),v(81),b(82,"translate"),h()(),f(83,"div",32)(84,"div",33)(85,"div",34),S(86,"input",35),f(87,"div",36),S(88,"i",42),h()()()()(),k(89,z3,11,4,"div",43),f(90,"div",31)(91,"div",32)(92,"label"),v(93),b(94,"translate"),h()(),f(95,"div",32)(96,"div",33)(97,"div",34)(98,"input",44,45),$("input",function(){K(t);const i=$e(99);return Q(D().blueprintModificateTask.git_branch=i.value)}),h(),f(100,"div",36),S(101,"i",46),h()()()()()()()()()()()()()()(),f(102,"app-task-todo-list",47),$("onRefresh",function(){return K(t),Q(D().refreshTask())}),h()()(),f(103,"div",48)(104,"div",32),k(105,q3,4,3,"button",49),h(),f(106,"div",32),k(107,W3,3,8,"ng-container",17),k(108,Y3,3,3,"ng-container",50),h(),f(109,"div",32),k(110,K3,4,3,"button",51),h()(),f(111,"app-dialog-modal",52),$("onConfirm",function(){return K(t),Q(D().delete())}),h(),f(112,"app-dropdown-modal",53),$("onSelect",function(i){return K(t),Q(D().changeStatus(i))}),h()()}if(2&e){const t=$e(8),r=$e(14),i=$e(25),o=D();let s,a,l;d(6),g("ngIf",!o.inModify)("ngIfElse",t),d(5),g("ngIf",!o.userAssignedToTask(o.authService.loggedUser.id)&&!o.inModify),d(1),g("ngIf",!o.inModify)("ngIfElse",r),d(4),g("deadline",o.task.deadline)("done",!(null==o.task.task_status||!o.task.task_status.final))("editable",null!==(s=o.authService.loggedUser&&o.authService.loggedUser.role&&o.authService.loggedUser.role.permission_edit_task_deadline)&&void 0!==s&&s)("id","deadline-tas-"+o.task.id),d(3),g("ngForOf",o.task.labels),d(1),g("text","+"),Ve("data-bs-target","#add-label-task-"+o.task.id+"-modal"),d(1),g("target","add-label-task-"+o.task.id+"-modal")("alreadyAssignedLabels",null!==(a=o.task.labels)&&void 0!==a?a:It(66,FD)),d(2),g("ngIf",!o.inModify)("ngIfElse",i),d(3),g("id","moreDeatilsAccordion-"+o.task.id),d(3),Ve("data-bs-target","#flush-collapseDetails-"+o.task.id),d(2),y(" ",C(32,54,"more-details")," "),d(2),g("id","flush-collapseDetails-"+o.task.id),Ve("data-bs-parent","#moreDeatilsAccordion-"+o.task.id),d(11),y(" ",C(45,56,"id-code")," "),d(5),g("value",o.task.id),d(6),y(" ",C(56,58,"author")," "),d(7),g("value",null==o.task.author?null:o.task.author.email),d(4),g("ngIf",o.task.author),d(4),y(" ",C(71,60,"created-at")," "),d(5),g("value",o.task.created_at),d(6),y(" ",C(82,62,"updated-at")," "),d(5),g("value",o.task.updated_at),d(3),g("ngIf",o.task.task_status),d(4),y(" ",C(94,64,"git_branch")," "),d(5),g("value",o.task.git_branch)("readonly",!o.inModify),d(4),g("taskId",o.task.id)("todoCollapseStatus",o.todoCollapseStatus),d(3),g("ngIf",null==o.task.task_status?null:o.task.task_status.default_prev_task_status_id),d(2),g("ngForOf",o.task.assigned_users),d(1),g("ngIf",!(null==o.authService.loggedUser.role||!o.authService.loggedUser.role.permission_change_assignment)),d(2),g("ngIf",null==o.task.task_status?null:o.task.task_status.default_next_task_status_id),d(1),g("target","delete-request-"+o.task.id)("centered",!0)("confirmBtn",!0)("confirmBtnTxt","confirm")("borderless",!0),d(1),g("target","move-task-"+o.task.id)("title","move-task")("currentValue",o.task.task_status)("options",null!==(l=o.taskStatus)&&void 0!==l?l:It(67,FD))("confirmBtnText","move")("showMaskFn",o.taskStatusMaskFn)("comparatorFn",o.compareTaskStatusFn)("showCurrentInList",!0)("disableCurrent",!0)}}let RD=(()=>{class e{taskStatusMaskFn(t){return t.name}compareTaskStatusFn(t,r){return t.id==r.id}constructor(t,r,i,o,s){this.taskService=t,this.authService=r,this.utilsService=i,this.taskStatusService=o,this.taskAssignmentService=s,this.todoCollapseStatus=!1,this.taskStatus=null,this.onDeletion=new ue,this.onModify=new ue,this.onRemoveAssignment=new ue,this.onAddAssignment=new ue,this.onRemoveLabel=new ue,this.onAddLabel=new ue,this._hasNews=!1,this._inModify=!1}get hasNews(){return this._hasNews}set hasNews(t){this._hasNews=t}ngOnInit(){this.task&&this.task.task_status&&(this.task.task_status.default_next_task_status_id&&(this.nextStatus=this.taskStatusService.getTaskById(this.task.task_status.default_next_task_status_id)),this.task.task_status.default_prev_task_status_id&&(this.prevStatus=this.taskStatusService.getTaskById(this.task.task_status.default_prev_task_status_id))),this.refreshHasNews(),this.loadTaskStatus()}get inModify(){return this._inModify}set inModify(t){this._inModify=t,this.task&&t&&this.initBlueprintTask()}loadTaskStatus(){this.taskStatus||(Et.logWarning("force load task status"),this.taskStatusService.all().then(t=>{t.subscribe({next:r=>{r&&(this.taskStatus=r)}})}))}initBlueprintTask(){this.task&&(this.blueprintModificateTask={id:this.task.id,name:this.task.name,description:this.task.description,priority:this.task.priority,git_branch:this.task.git_branch})}userAssignedToTask(t){if(!t||!this.task)return!1;let r=this.task.assigned_users?.map(i=>i.user.id).includes(t);return r||!1}getAssignedUsers(){return this.task?.assigned_users?.map(t=>t.user)??[]}removeUserFromTask(t){var r=this;return bt(function*(){if(!r.task)return;Et.logInfo(`Removing user with id ${t} from task: ${r.task.id} - ${r.task.name}`);const i=r.task.id;r.taskService.removeAssignment(i,t).then(o=>{o.subscribe({next:s=>{r.refreshTask(()=>{r.onRemoveAssignment.emit({target:i,new:r.task})})}})})})()}addAssignment(t){var r=this;return bt(function*(){r.task&&(Et.logInfo(`Add user ${t.username} to task: ${r.task.id} - ${r.task.name}`),r.taskService.addAssignment(r.task.id,t.id).then(o=>{o.subscribe({next:s=>{r.refreshTask()}})}))})()}delete(){if(!this.task)return;Et.logInfo("Remove task "+this.task?.name);const t=this.task.id;this.taskService.deleteById(t).then(r=>{r.subscribe({next:i=>{this.onDeletion.emit(t)}})})}removeLabelFromTask(t){if(!this.task)return;Et.logInfo("Remove label");const r=this.task.id;this.taskService.removeLabel(r,t.id).then(i=>{i.subscribe({next:o=>{this.refreshTask(()=>{this.onRemoveLabel.emit({target:r,new:this.task})})}})})}addLabelToTask(t){this.task&&(Et.logInfo("Add label"),this.taskService.addLabel(this.task.id,t.id).then(i=>{i.subscribe({next:o=>{this.refreshTask()}})}))}modify(t){if(!this.task)return;Et.logInfo("Modify task "+this.task?.name);const r=this.task.id;this.taskService.update(r,t).then(i=>{i.subscribe({next:o=>{this.refreshTask(()=>{this.onModify.emit({target:r,new:this.task})})}})})}refreshHasNews(){if(!this.authService.loggedUser||!this.task)return this.hasNews=!1,this.hasNews;if(this.userAssignedToTask(this.authService.loggedUser.id)){const t=this.task.assigned_users?.find(r=>r.user.id==this.authService.loggedUser.id);return t?null==t.last_watched_at?(this.hasNews=!0,this.hasNews):(this.hasNews=this.task.updated_at>t.last_watched_at,this.hasNews):(this.hasNews=!1,this.hasNews)}return null==this.authService.loggedUser.last_visit_at?(this.hasNews=!0,this.hasNews):(this.hasNews=this.task.updated_at>this.authService.loggedUser.last_visit_at,this.hasNews)}updateLastWatched(){!this.authService.loggedUser||!this.task||(this.userAssignedToTask(this.authService.loggedUser.id)?this.taskAssignmentService.updateByTaskUserId(this.task.id,this.authService.loggedUser.id,{last_watched_at:this.utilsService.datetimeNow()}).then(t=>{t.subscribe({next:r=>{Et.logInfo("Updated last watched"),this.refreshTask(()=>{this.refreshHasNews()})}})}):(this.hasNews=!1,this.authService.updateLastVisit()))}refreshTask(t=(()=>{})){this.task&&this.taskService.find(this.task.id).then(r=>{r.subscribe({next:i=>{this.task=i,t()}})})}changeStatus(t){!this.task||!t||this.modify({task_status_id:t.id})}}return e.\u0275fac=function(t){return new(t||e)(O(fl),O(Un),O(Ni),O(ID),O(TP))},e.\u0275cmp=De({type:e,selectors:[["app-task-preview"]],inputs:{task:"task",todoCollapseStatus:"todoCollapseStatus",taskStatus:"taskStatus"},outputs:{onDeletion:"onDeletion",onModify:"onModify",onRemoveAssignment:"onRemoveAssignment",onAddAssignment:"onAddAssignment",onRemoveLabel:"onRemoveLabel",onAddLabel:"onAddLabel"},decls:1,vars:1,consts:[["class","card",4,"ngIf"],[1,"card"],[1,"card-content"],[1,"card-body"],[1,"card-title"],[1,"row","justify-content-between"],[1,"col-md-10"],[4,"ngIf","ngIfElse"],["titleModification",""],[1,"col-md-2","d-flex","justify-content-end"],[1,"mr-3"],["class","bi bi-clipboard2-x-fill not-assigned-task","data-bs-toggle","tooltip","data-bs-placement","top",4,"ngIf"],["class","btn-group mb-1",4,"ngIf","ngIfElse"],["confirmModifyBtn",""],[1,"d-flex","justify-content-start"],[3,"deadline","done","editable","id","onDeadlineModified"],[1,"separator"],[4,"ngFor","ngForOf"],["data-bs-toggle","modal",1,"cursor-pointer",3,"text"],[3,"target","alreadyAssignedLabels","onAdd","onClose"],[1,"card-text","mt-2"],["descriptionModification",""],[1,"accordion","accordion-flush","mb-1",3,"id"],[1,"accordion-item","rounded"],[1,"accordion-header"],["type","button","data-bs-toggle","collapse","aria-expanded","false","aria-controls","flush-collapseOne",1,"accordion-button","collapsed","rounded"],["openMoreDetailsBtn",""],[1,"accordion-collapse","collapse","rounded",3,"id"],[1,"accordion-body"],[1,"row"],[1,"col-12"],[1,"col-md-6"],[1,"col-md-auto"],[1,"form-group","has-icon-left"],[1,"position-relative"],["type","text","readonly","",1,"form-control",3,"value"],[1,"form-control-icon"],[1,"bi","bi-fingerprint"],[1,"col-auto"],[1,"bi","bi-person"],["class","cursor-arrow",3,"color","text","tooltip",4,"ngIf"],[1,"bi","bi-hourglass-top"],[1,"bi","bi-arrow-clockwise"],["class","col-md-6",4,"ngIf"],["type","text",1,"form-control",3,"value","readonly","input"],["gitBranch",""],[1,"bi","bi-git"],[3,"taskId","todoCollapseStatus","onRefresh"],[1,"card-footer","d-flex","justify-content-between"],["class","btn btn-lg icon icon-left btn-outline-primary",3,"click",4,"ngIf"],[4,"ngIf"],["class","btn btn-lg icon icon-right btn-outline-primary",3,"click",4,"ngIf"],["title","delete-request",3,"target","centered","confirmBtn","confirmBtnTxt","borderless","onConfirm"],[3,"target","title","currentValue","options","confirmBtnText","showMaskFn","comparatorFn","showCurrentInList","disableCurrent","onSelect"],[1,"d-flex"],["data-bs-toggle","tooltip","data-bs-placement","top","title","Priority",1,"cursor-arrow",2,"font-size","small",3,"text","color","textColor"],[1,"text-break"],["class","cursor-pointer","style","font-size: medium;",3,"icon","color","text","click",4,"ngIf"],[1,"cursor-pointer",2,"font-size","medium",3,"icon","color","text","click"],[1,"col-md-2"],["type","number",1,"form-control","form-control-sm",3,"placeholder","value","input"],["priorityInput",""],[1,"form-group"],["id","task-title","appAutoHeight","",1,"form-control",3,"placeholder","value","base","offset","input"],["titleTA",""],["data-bs-toggle","tooltip","data-bs-placement","top",1,"bi","bi-clipboard2-x-fill","not-assigned-task"],[1,"btn-group","mb-1"],[1,"dropdown","icon-left"],["type","button","data-bs-toggle","dropdown","aria-haspopup","true","aria-expanded","false",1,"btn","icon","btn-sm","btn-light","me-1"],[1,"bi","bi-three-dots-vertical"],[1,"dropdown-menu"],["class","dropdown-item","data-bs-toggle","modal",4,"ngIf"],["class","dropdown-item",3,"click",4,"ngIf"],[1,"dropdown-item",3,"click"],["data-bs-toggle","modal",1,"dropdown-item"],[1,"bi","bi-arrow-left-right","me-50"],[1,"bi","bi-pencil","me-50"],[1,"bi","bi-trash","me-50"],[1,"btn","icon","icon-right","btn-light",3,"click"],[1,"btn","icon","icon-right","btn-primary",3,"click"],[1,"bi","bi-check-lg"],["data-bs-toggle","modal",1,"cursor-pointer",3,"text","color"],[3,"target","label","onRemoveFromTask"],["id","task-description","appAutoHeight","",1,"form-control",3,"placeholder","value","input"],["descriptionTA",""],[1,"cursor-arrow",3,"color","text","tooltip"],[1,"bi","bi-kanban-fill"],[1,"btn","btn-lg","icon","icon-left","btn-outline-primary",3,"click"],[1,"bi","bi-arrow-left"],["data-bs-toggle","modal",1,"cursor-pointer","me-3",3,"color","text","tooltip"],[3,"user","target","assignmentDate","editable","onRemoveFromTask"],["color","#5b6370","iconClass","bi bi-plus","tooltip","add-new-user","data-bs-toggle","modal",1,"cursor-pointer"],[3,"target","alreadyAssignedUsers","onAddAssignment","onClose"],[1,"btn","btn-lg","icon","icon-right","btn-outline-primary",3,"click"],[1,"bi","bi-arrow-right"]],template:function(t,r){1&t&&k(0,Q3,113,68,"div",0),2&t&&g("ngIf",r.task&&r.authService.loggedUser)},dependencies:[Mn,He,ju,hl,PP,VP,HP,c3,f3,g3,b3,AD,C3,k3,p1,Xe],styles:[".not-assigned-task[_ngcontent-%COMP%]{color:#de8c2f}.rounded[_ngcontent-%COMP%]{border-radius:15px}.separator[_ngcontent-%COMP%]{margin-left:.5vw;margin-right:.5vw}"]}),e})();function X3(e,n){if(1&e){const t=he();f(0,"app-task-preview",3),$("onDeletion",function(i){return K(t),Q(D(2).onDeletion.emit(i))})("onAddAssignment",function(i){return K(t),Q(D(2).onAddAssignment.emit(i))})("onRemoveAssignment",function(i){return K(t),Q(D(2).onRemoveAssignment.emit(i))})("onModify",function(i){return K(t),Q(D(2).onModify.emit(i))}),h()}if(2&e){const t=n.$implicit,r=n.index,i=D(2);g("todoCollapseStatus",0==r)("task",t)("taskStatus",i.taskStatus)}}function Z3(e,n){if(1&e){const t=he();f(0,"div",4)(1,"div",5)(2,"button",6),$("click",function(){return K(t),Q(D(2).scrollTop())}),S(3,"i",7),h()()()}}function J3(e,n){if(1&e&&(Ae(0),k(1,X3,1,3,"app-task-preview",1),k(2,Z3,4,0,"div",2),xe()),2&e){const t=D();d(1),g("ngForOf",t.tasks),d(1),g("ngIf",t.tasks.length>1)}}let eL=(()=>{class e{constructor(t){this.authService=t,this.tasks=null,this.taskStatus=null,this.nextTaskStatus=null,this.prevTaskStatus=null,this.onTop=[],this.onDeletion=new ue,this.onModify=new ue,this.onRemoveAssignment=new ue,this.onAddAssignment=new ue,this.onRemoveLabel=new ue,this.onAddLabel=new ue,this.authService.refreshMe()}ngOnInit(){this.setOnTop()}setOnTop(){if(!this.tasks)return;const t=[],r=[];for(const i of this.tasks)this.onTop.includes(i.id)?t.push(i):r.push(i);this.tasks=[...t,...r]}scrollTop(){window.scroll(0,0)}}return e.\u0275fac=function(t){return new(t||e)(O(Un))},e.\u0275cmp=De({type:e,selectors:[["app-task-preview-list"]],inputs:{tasks:"tasks",taskStatus:"taskStatus",nextTaskStatus:"nextTaskStatus",prevTaskStatus:"prevTaskStatus",onTop:"onTop"},outputs:{onDeletion:"onDeletion",onModify:"onModify",onRemoveAssignment:"onRemoveAssignment",onAddAssignment:"onAddAssignment",onRemoveLabel:"onRemoveLabel",onAddLabel:"onAddLabel"},decls:1,vars:1,consts:[[4,"ngIf"],[3,"todoCollapseStatus","task","taskStatus","onDeletion","onAddAssignment","onRemoveAssignment","onModify",4,"ngFor","ngForOf"],["class","row justify-content-center",4,"ngIf"],[3,"todoCollapseStatus","task","taskStatus","onDeletion","onAddAssignment","onRemoveAssignment","onModify"],[1,"row","justify-content-center"],[1,"col-auto"],[1,"btn","icon","btn-light",3,"click"],[1,"bi","bi-arrow-up-square"]],template:function(t,r){1&t&&k(0,J3,3,2,"ng-container",0),2&t&&g("ngIf",r.tasks)},dependencies:[Mn,He,RD]}),e})(),og=(()=>{class e{constructor(){this.title=""}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=De({type:e,selectors:[["app-page-heading"]],inputs:{title:"title"},decls:4,vars:3,consts:[[1,"page-heading"]],template:function(t,r){1&t&&(f(0,"div",0)(1,"h3"),v(2),b(3,"translate"),h()()),2&t&&(d(2),y(" ",C(3,1,r.title)," "))},dependencies:[Xe]}),e})(),OD=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=De({type:e,selectors:[["app-loader"]],decls:3,vars:0,consts:[[1,"row","justify-content-center"],[1,"col-auto"],["src","./assets/svg/grid.svg","alt","loader",1,"me-4"]],template:function(t,r){1&t&&(f(0,"div",0)(1,"div",1),S(2,"img",2),h()())}}),e})();function tL(e,n){1&e&&S(0,"button",3)}function nL(e,n){if(1&e&&(f(0,"div",1),v(1),b(2,"translate"),k(3,tL,1,0,"button",2),h()),2&e){const t=D();d(1),y(" ",C(2,2,t.title)," "),d(2),g("ngIf",t.dismissable)}}let Es=(()=>{class e{constructor(){this.dismissable=!0}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=De({type:e,selectors:[["app-error-alert"]],inputs:{title:"title",dismissable:"dismissable"},decls:1,vars:1,consts:[["class","alert alert-light-danger alert-dismissible show fade",4,"ngIf"],[1,"alert","alert-light-danger","alert-dismissible","show","fade"],["type","button","class","btn-close","data-bs-dismiss","alert","aria-label","Close",4,"ngIf"],["type","button","data-bs-dismiss","alert","aria-label","Close",1,"btn-close"]],template:function(t,r){1&t&&k(0,nL,4,4,"div",0),2&t&&g("ngIf",r.title)},dependencies:[He,Xe]}),e})();function rL(e,n){if(1&e&&(f(0,"div",9)(1,"h4",10),v(2),b(3,"translate"),h()()),2&e){const t=D(2);d(2),y(" ",C(3,1,t.title)," ")}}function iL(e,n){if(1&e){const t=he();f(0,"div",26)(1,"div",27)(2,"label",28),v(3),b(4,"translate"),h(),f(5,"input",29),$("input",function(){return K(t),Q(D(3).filter())}),h()()()}if(2&e){const t=n.$implicit;d(3),y(" ",C(4,4,t)," "),d(2),g("name",t)("placeholder",t)("formControlName",t)}}function oL(e,n){if(1&e){const t=he();f(0,"form",11)(1,"div",12)(2,"div",13)(3,"h5",14),v(4),b(5,"translate"),h()(),f(6,"div",13)(7,"div",15)(8,"input",16,17),$("change",function(){K(t);const i=$e(9),o=D(2);return o.filterMode=i.checked,Q(o.filter())}),h(),f(10,"label",18),S(11,"i",19),v(12," / "),S(13,"i",20),h()()()(),f(14,"div",21),k(15,iL,6,6,"div",22),h(),f(16,"div",23)(17,"button",24),$("click",function(){return K(t),Q(D(2).reset())}),v(18),b(19,"translate"),h(),f(20,"button",25),$("click",function(){return K(t),Q(D(2).filter())}),v(21),b(22,"translate"),h()()()}if(2&e){const t=D(2);g("formGroup",t.filterForm),d(4),y(" ",C(5,6,"filters")," "),d(4),g("checked",t.filterMode),d(7),g("ngForOf",t.filterFields),d(3),y(" ",C(19,8,"reset")," "),d(3),y(" ",C(22,10,"submit")," ")}}function sL(e,n){if(1&e&&(f(0,"section",1)(1,"div",2)(2,"div",3)(3,"div",4),k(4,rL,4,3,"div",5),f(5,"div",6)(6,"div",7),k(7,oL,23,12,"form",8),h()()()()()()),2&e){const t=D();d(4),g("ngIf",t.title),d(3),g("ngIf",t.filterForm)}}let ND=(()=>{class e{constructor(){this.entities=[],this.entitiesChange=new ue,this.onFilter=new ue,this.onReset=new ue,this._filterMode=!1}get filterMode(){return this._filterMode}set filterMode(t){this._filterMode=t,this.onFilter.emit()}ngOnInit(){if(this.filterFields){this.filterForm=new An({});for(let t=0;t{for(let o=0;o{for(let o=0;o{return(e=$u||($u={})).PRIORITY="priority",e.DEADLINE="deadline",e.CREATION="created_at",$u;var e})();let yL=(()=>{class e{constructor(t,r,i){this.dashboardService=t,this.authService=r,this.taskService=i,this.OrderBy=$u,this._orderBy=this.OrderBy.PRIORITY,this.loadingError=!1,this.dashboard=null,this.tasks=[],this.onTopTaskIdList=[],this.creationForm=new An({name:new re("",[Ge.required]),description:new re(""),priority:new re("",[Ge.required]),selfAssigned:new re(!1),taskStatusId:new re("")}),this._orderReverse=!0,this.authService.refreshMe(),this.authService.updateLastVisit(),this.updateLastVisitInterval=setInterval(()=>{this.authService.updateLastVisit()},zt.updateLastVisitInterval)}ngOnDestroy(){clearInterval(this.updateLastVisitInterval),this.authService.updateLastVisit()}get taskStatusIdIndex(){return this._taskStatusIdIndex}set taskStatusIdIndex(t){this._taskStatusIdIndex=t,console.log("_taskStatusIdIndex: ",this._taskStatusIdIndex)}get orderBy(){return this._orderBy}set orderBy(t){this._orderBy=t}get orderReverse(){return this._orderReverse}set orderReverse(t){this._orderReverse=t}ngOnInit(){this.loadDashboard()}loadDashboard(){this.dashboard=null,this.dashboardService.getData().then(t=>{t.subscribe({next:r=>{r?(this.dashboard=r,this.tasks=[...this.dashboard.tasks],this.taskStatusIdIndex||(this.taskStatusIdIndex=this.dashboard.default_task_status_id),this.loadingError=!1):this.loadingError=!0}})})}getTaskStatusById(t){this.taskStatusIdIndex||(this.taskStatusIdIndex=this.dashboard?.default_task_status_id);const r=this.dashboard?.task_status?.filter(i=>i.id==t);return r?r[0]:null}getCurrentTaskStatus(){return this.taskStatusIdIndex?this.getTaskStatusById(this.taskStatusIdIndex):null}getNextTaskStatus(){let t=this.getCurrentTaskStatus();return t?t.default_next_task_status:null}getPrevTaskStatus(){let t=this.getCurrentTaskStatus();return t?t.default_prev_task_status:null}getAllTaskBasedOnStatusId(t){if(!this.tasks||!t)return null;let r=this.tasks.filter(i=>!!i&&i.task_status_id===t);return r?(r?.sort((i,o)=>{const s=i[this.orderBy],a=o[this.orderBy];let l=0;return s>a&&(l=1),sr.id!=t))}updateTask(t){if(this.tasks)for(let r=0;r{i.subscribe({next:o=>{o&&this.creationForm.reset(),r?this.taskService.addAssignment(o.id,this.authService.loggedUser.id).then(s=>{s.subscribe({next:a=>{this.taskService.find(o.id).then(l=>{l.subscribe({next:c=>{this.tasks.push(c)}})})}})}):this.tasks.push(o)}})})}}return e.\u0275fac=function(t){return new(t||e)(O(EP),O(Un),O(fl))},e.\u0275cmp=De({type:e,selectors:[["app-dashboard"]],decls:96,vars:42,consts:[[1,"row","justify-content-between"],[1,"col-auto"],[3,"title"],["heading",""],["data-bs-toggle","collapse","data-bs-target","#dashboard-operations","aria-expanded","false","aria-controls","dashboard-operations",1,"btn","icon","btn-light"],[1,"bi","bi-toggles2"],["id","dashboard-operations",1,"collapse","mb-5"],[3,"filterFields","entities","entitiesChange",4,"ngIf"],[1,"row","justify-content-center"],[1,"btn-group","mb-1"],[1,"dropdown"],["type","button","id","dropdownMenuButton","data-bs-toggle","dropdown","aria-haspopup","true","aria-expanded","false",1,"btn","btn-primary","dropdown-toggle","me-1"],["aria-labelledby","dropdownMenuButton",1,"dropdown-menu"],["class","dropdown-item",3,"click",4,"ngFor","ngForOf"],["class","card sticky-top","style","z-index: 1; box-shadow: rgba(0, 0, 0, 0.16) 0px 3px 6px, rgba(0, 0, 0, 0.23) 0px 3px 6px;",3,"background-color",4,"ngIf"],[1,"row","justify-content-between","mb-1"],[4,"ngIf"],[1,"btn","icon","btn-light",3,"click"],[1,"bi","bi-arrow-clockwise"],[1,"fab-container","pos-fixed"],[1,"fab","shadow"],[1,"fab-content"],["data-bs-toggle","modal","data-bs-target","#create-new-task",1,"material-icons","cursor-pointer"],[1,"bi","bi-plus"],["id","create-new-task","tabindex","-1","role","dialog","aria-labelledby","create-new-task-title","aria-hidden","true",1,"modal","fade"],["role","document",1,"modal-dialog","modal-dialog-centered","modal-dialog-centered","modal-dialog-scrollable"],[1,"modal-content"],[1,"modal-header"],["id","create-new-task-title",1,"modal-title"],["type","button","data-bs-dismiss","modal","aria-label","Close",1,"close"],[1,"bi","bi-x"],[1,"modal-body"],["id","basic-vertical-layouts"],[1,"row","match-height"],[1,"col-12"],[1,"card"],[1,"card-content"],[1,"card-body"],[1,"form-body"],[3,"formGroup"],[1,"row"],[1,"form-group"],[1,"form-floating"],["placeholder","Leave a name here","formControlName","name",1,"form-control",2,"height","15vh"],["for","floatingTextarea"],[1,"row","align-items-center","justify-content-center"],[1,"col-md-9"],["type","number","formControlName","priority",1,"form-control",3,"placeholder"],[1,"row","mt-2"],["formControlName","description",1,"form-control",2,"height","30vh",3,"placeholder"],["class","row align-items-center justify-content-center mt-2",4,"ngIf"],[1,"row","justify-content-center","mt-5"],[1,"form-check"],[1,"checkbox"],["type","checkbox","id","self-assigned","formControlName","selfAssigned",1,"form-check-input",3,"checked"],["for","self-assigned"],[1,"modal-footer"],["type","button","data-bs-dismiss","modal",1,"btn","btn-light-secondary"],[1,"bx","bx-x","d-block","d-sm-none"],[1,"d-none","d-sm-block"],["type","button","data-bs-dismiss","modal",1,"btn","btn-primary","ml-1",3,"disabled","click"],[1,"bx","bx-check","d-block","d-sm-none"],[3,"filterFields","entities","entitiesChange"],[1,"dropdown-item",3,"click"],[1,"card","sticky-top",2,"z-index","1","box-shadow","rgba(0, 0, 0, 0.16) 0px 3px 6px, rgba(0, 0, 0, 0.23) 0px 3px 6px"],[1,"row","justify-content-between","align-items-center"],[1,"col-sm-auto"],["class","btn btn-lg icon icon-left btn-outline-primary",3,"click",4,"ngIf"],[1,"col-sm-8"],[1,"text-center"],["class","btn btn-lg icon icon-right btn-outline-primary",3,"click",4,"ngIf"],[1,"btn","btn-lg","icon","icon-left","btn-outline-primary",3,"click"],[1,"bi","bi-arrow-left"],[1,"btn","btn-lg","icon","icon-right","btn-outline-primary",3,"click"],[1,"bi","bi-arrow-right"],[1,"btn-group","dropdown","me-1","mb-1"],["type","button",1,"btn","btn-light",3,"click"],["type","button","data-bs-toggle","dropdown","aria-haspopup","true","aria-expanded","false","data-reference","parent",1,"btn","btn-light","dropdown-toggle","dropdown-toggle-split"],[1,"sr-only"],[1,"dropdown-menu"],[3,"tasks","taskStatus","onTop","onDeletion","onAddAssignment","onRemoveAssignment","onModify"],[1,"row","align-items-center","justify-content-center","mt-2"],["formControlName","taskStatusId",1,"form-select"],[3,"value","selected",4,"ngFor","ngForOf"],[3,"value","selected"]],template:function(t,r){1&t&&(f(0,"div",0)(1,"div",1),S(2,"app-page-heading",2,3),h(),f(4,"div",1)(5,"button",4),S(6,"i",5),h()()(),f(7,"div",6),k(8,lL,1,3,"app-filter",7),f(9,"div",8)(10,"div",1)(11,"div",9)(12,"div",10)(13,"button",11),v(14),b(15,"translate"),h(),f(16,"div",12),k(17,cL,2,1,"button",13),h()()()()()(),k(18,fL,13,7,"div",14),f(19,"div",15)(20,"div",1),k(21,hL,19,15,"ng-container",16),h(),f(22,"div",1)(23,"button",17),$("click",function(){return r.loadDashboard()}),S(24,"i",18),h()()(),k(25,pL,4,3,"ng-container",16),k(26,gL,2,0,"ng-container",16),k(27,mL,2,1,"ng-container",16),f(28,"div",19)(29,"div",20)(30,"div",21)(31,"span",22),S(32,"i",23),h()()()(),f(33,"div",24)(34,"div",25)(35,"div",26)(36,"div",27)(37,"h5",28),v(38),b(39,"translate"),h(),f(40,"button",29),S(41,"i",30),h()(),f(42,"div",31)(43,"section",32)(44,"div",33)(45,"div",34)(46,"div",35)(47,"div",36)(48,"div",37)(49,"div",38)(50,"form",39)(51,"div",40)(52,"div",34)(53,"div",41)(54,"div",42),S(55,"textarea",43),f(56,"label",44),v(57),b(58,"translate"),h()()()()(),f(59,"div",45)(60,"div",1)(61,"label"),v(62),b(63,"translate"),h()(),f(64,"div",46),S(65,"input",47),b(66,"translate"),h()(),f(67,"div",48)(68,"div",34)(69,"div",41)(70,"div",42),S(71,"textarea",49),b(72,"translate"),f(73,"label",44),v(74),b(75,"translate"),h()()()()(),k(76,vL,8,4,"div",50),f(77,"div",51)(78,"div",1)(79,"div",52)(80,"div",53),S(81,"input",54),f(82,"label",55),v(83),b(84,"translate"),h()()()()()()()()()()()()()(),f(85,"div",56)(86,"button",57),S(87,"i",58),f(88,"span",59),v(89),b(90,"translate"),h()(),f(91,"button",60),$("click",function(){return r.newTask(),r.orderBy=r.OrderBy.CREATION,r.orderReverse=!0}),S(92,"i",61),f(93,"span",59),v(94),b(95,"translate"),h()()()()()()),2&t&&(d(2),g("title","dashboard"),d(6),g("ngIf",r.dashboard&&(null==r.dashboard?null:r.dashboard.tasks)),d(6),y(" ",C(15,22,"task-status")," "),d(3),g("ngForOf",null==r.dashboard?null:r.dashboard.task_status),d(1),g("ngIf",r.getCurrentTaskStatus()),d(3),g("ngIf",r.dashboard&&!r.loadingError),d(4),g("ngIf",r.dashboard&&!r.loadingError),d(1),g("ngIf",!r.dashboard&&!r.loadingError),d(1),g("ngIf",r.loadingError),d(11),y(" ",C(39,24,"add-task")," "),d(12),g("formGroup",r.creationForm),d(7),y(" ",C(58,26,"name")," "),d(5),y(" ",C(63,28,"priority"),": "),d(3),Pt("placeholder",C(66,30,"priority")),d(6),Pt("placeholder",C(72,32,"description")),d(3),y(" ",C(75,34,"description")," "),d(2),g("ngIf",!!r.dashboard&&!!r.dashboard.task_status),d(5),g("checked",r.creationForm.controls.selfAssigned.value),d(2),y(" ",C(84,36,"assign-yourself")," "),d(6),y(" ",C(90,38,"close")," "),d(2),g("disabled",r.creationForm.invalid),d(3),y(" ",C(95,40,"confirm")," "))},dependencies:[Mn,He,Vr,cl,ul,or,Vu,uo,ws,Pr,Lr,sr,vr,eL,og,OD,Es,ND,Xe],styles:['.pos-fixed[_ngcontent-%COMP%]{position:fixed!important}.fab-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:flex-end;align-items:center;-webkit-user-select:none;user-select:none;position:absolute;bottom:30px;right:30px}.fab-container[_ngcontent-%COMP%]:hover{height:100%}.fab-container[_ngcontent-%COMP%]:hover .sub-button[_ngcontent-%COMP%]:nth-child(2){transform:translateY(-80px)}.fab-container[_ngcontent-%COMP%]:hover .sub-button[_ngcontent-%COMP%]:nth-child(3){transform:translateY(-140px)}.fab-container[_ngcontent-%COMP%]:hover .sub-button[_ngcontent-%COMP%]:nth-child(4){transform:translateY(-200px)}.fab-container[_ngcontent-%COMP%]:hover .sub-button[_ngcontent-%COMP%]:nth-child(5){transform:translateY(-260px)}.fab-container[_ngcontent-%COMP%]:hover .sub-button[_ngcontent-%COMP%]:nth-child(6){transform:translateY(-320px)}.fab-container[_ngcontent-%COMP%] .fab[_ngcontent-%COMP%]{position:relative;height:70px;width:70px;background-color:#4ba2ff;border-radius:50%;z-index:2}.fab-container[_ngcontent-%COMP%] .fab[_ngcontent-%COMP%]:before{content:" ";position:absolute;bottom:0;right:0;height:35px;width:35px;background-color:inherit;border-radius:0 0 10px;z-index:-1}.fab-container[_ngcontent-%COMP%] .fab[_ngcontent-%COMP%] .fab-content[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;height:100%;width:100%;border-radius:50%}.fab-container[_ngcontent-%COMP%] .fab[_ngcontent-%COMP%] .fab-content[_ngcontent-%COMP%] .material-icons[_ngcontent-%COMP%]{color:#fff;font-size:48px}.fab-container[_ngcontent-%COMP%] .sub-button[_ngcontent-%COMP%]{position:absolute;display:flex;align-items:center;justify-content:center;bottom:10px;right:10px;height:50px;width:50px;background-color:#4ba2ff;border-radius:50%;transition:all .3s ease}.fab-container[_ngcontent-%COMP%] .sub-button[_ngcontent-%COMP%]:hover{cursor:pointer}.fab-container[_ngcontent-%COMP%] .sub-button[_ngcontent-%COMP%] .material-icons[_ngcontent-%COMP%]{color:#fff;padding-top:6px}']}),e})();function bL(e,n){1&e&&(f(0,"small",23),v(1),b(2,"translate"),h()),2&e&&(d(1),y(" ",C(2,1,"invalid-email")," "))}function CL(e,n){1&e&&(f(0,"button",24),v(1),b(2,"translate"),h()),2&e&&(g("disabled",!D().loginForm.valid),d(1),y(" ",C(2,2,"login")," "))}function wL(e,n){1&e&&(f(0,"button",25),S(1,"span",26),v(2),b(3,"translate"),h()),2&e&&(d(2),y(" ",C(3,1,"loading+dots")," "))}function DL(e,n){1&e&&(f(0,"div",27),S(1,"app-error-alert",28),h()),2&e&&(d(1),g("title","login-error"))}let EL=(()=>{class e{constructor(t,r){this.authService=t,this.router=r,this.loginForm=new An({email:new re("",[Ge.required,Ge.email]),password:new re("",[Ge.required]),keep:new re(!1)}),this.loading=!1,this.loginError=!1,this.showPsw=!1}ngOnInit(){this.authService.isLogged().then(t=>{t.subscribe({next:r=>{r&&this.router.navigate(["/home"])}})})}onSubmit(){if(Et.logInfo("try to login..."),this.loginForm.valid){this.loading=!0,this.loginError=!1;const{email:t,password:r,keep:i}=this.loginForm.value;this.authService.login(t,r,i).then(o=>{o&&(this.router.navigate(["/home"]),this.loading=!1)}).catch(o=>{this.loginError=!0})}}}return e.\u0275fac=function(t){return new(t||e)(O(Un),O(jt))},e.\u0275cmp=De({type:e,selectors:[["app-login"]],decls:34,vars:21,consts:[["id","auth"],[1,"row","h-100","justify-content-center"],[1,"col-lg-5","col-12"],[1,"auth-title"],[1,"auth-subtitle","mb-5"],[3,"formGroup","submit"],[1,"form-group","position-relative","has-icon-left","mb-4"],["type","email","placeholder","Email","formControlName","email",1,"form-control","form-control-xl"],[1,"form-control-icon"],[1,"bi","bi-envelope"],["style","color: #eb4b4b;",4,"ngIf"],["placeholder","Password","formControlName","password",1,"form-control","form-control-xl",3,"type"],[1,"bi","bi-shield-lock"],[1,"form-check","form-switch"],["type","checkbox","id","showPsw",1,"form-check-input",3,"checked","change"],["showPswCheckbox",""],["for","showPsw",1,"form-check-label"],[1,"form-check","form-check-lg","d-flex","align-items-end"],["type","checkbox","value","","id","keepCheck","formControlName","keep",1,"form-check-input","me-2"],["for","keepCheck",1,"form-check-label","text-gray-600"],["class","btn btn-primary btn-block btn-lg shadow-lg mt-5","type","submit",3,"disabled",4,"ngIf","ngIfElse"],["loadingBtn",""],["class","mt-3",4,"ngIf"],[2,"color","#eb4b4b"],["type","submit",1,"btn","btn-primary","btn-block","btn-lg","shadow-lg","mt-5",3,"disabled"],["type","button","disabled","",1,"btn","btn-primary","btn-block","btn-lg","shadow-lg","mt-5"],["role","status","aria-hidden","true",1,"spinner-border","spinner-border-sm"],[1,"mt-3"],[3,"title"]],template:function(t,r){if(1&t){const i=he();f(0,"div",0)(1,"div",1)(2,"div",2)(3,"h1",3),v(4),b(5,"translate"),h(),f(6,"p",4),v(7),b(8,"translate"),h(),f(9,"form",5),$("submit",function(){return r.onSubmit()}),f(10,"div",6),S(11,"input",7),f(12,"div",8),S(13,"i",9),h(),k(14,bL,3,3,"small",10),h(),f(15,"div",6),S(16,"input",11),f(17,"div",8),S(18,"i",12),h()(),f(19,"div",13)(20,"input",14,15),$("change",function(){K(i);const s=$e(21);return Q(r.showPsw=s.checked)}),h(),f(22,"label",16),v(23),b(24,"translate"),h()(),f(25,"div",17),S(26,"input",18),f(27,"label",19),v(28),b(29,"translate"),h()(),k(30,CL,3,4,"button",20),k(31,wL,4,3,"ng-template",null,21,Yt),k(33,DL,2,1,"div",22),h()()()()}if(2&t){const i=$e(32);d(4),y(" ",C(5,13,"login")," "),d(3),y(" ",C(8,15,"login-description")," "),d(2),g("formGroup",r.loginForm),d(2),Qe("is-invalid",r.loginForm.controls.email.dirty&&!r.loginForm.controls.email.valid),d(3),g("ngIf",r.loginForm.controls.email.dirty&&!r.loginForm.controls.email.valid),d(2),g("type",r.showPsw?"text":"password"),d(4),g("checked",r.showPsw),d(3),y(" ",C(24,17,"show-password")," "),d(5),y(" ",C(29,19,"keep-me")," "),d(2),g("ngIf",!r.loading||r.loginError)("ngIfElse",i),d(3),g("ngIf",r.loginError)}},dependencies:[He,Vr,or,uo,Pr,Lr,sr,vr,Es,Xe]}),e})(),SL=(()=>{class e extends Ds{constructor(){super(...arguments),this.PROJECT_INFORMATION="project_project_information"}getProjectInformation(){return this.call(this.PROJECT_INFORMATION)}}return e.\u0275fac=function(){let n;return function(r){return(n||(n=et(e)))(r||e)}}(),e.\u0275prov=ee({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),Hu=(()=>{class e extends Ds{constructor(){super(...arguments),this.OPEN_SETTINGS="app_open_settings",this.OPEN_PROJECT="app_open_project",this.VERSION="app_version",this.CLOSE="app_close",this.INIT_PROJECT="app_init_project",this.PATHS_STORED="app_get_projects_paths_stored",this.REMOVE_WORK_DIR="app_remove_work_dir",this.GET_SETTINGS="app_get_settings",this.UPDATE_SETTINGS="app_update_settings"}openSettings(){this.call(this.OPEN_SETTINGS).then(t=>{t.subscribe({next:()=>{}})})}removeWorkDir(){this.call(this.REMOVE_WORK_DIR).then(t=>{t.subscribe({next:()=>{window.location.reload()}})})}version(){return this.call(this.VERSION)}openProject(t){return this.call(this.OPEN_PROJECT,t)}close(){return new Promise((t,r)=>{this.call(this.CLOSE).then(i=>{i.subscribe({next:()=>{}}),setTimeout(()=>{t()},zt.timeBeforeClose)})})}initProject(t,r,i,o){return this.call(this.INIT_PROJECT,t,r,i,o)}projectsPathsStored(){return this.call(this.PATHS_STORED)}getSettings(){return this.call(this.GET_SETTINGS)}updateSettings(t){return this.call(this.UPDATE_SETTINGS,t)}}return e.\u0275fac=function(){let n;return function(r){return(n||(n=et(e)))(r||e)}}(),e.\u0275prov=ee({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function TL(e,n){1&e&&S(0,"button",3)}function IL(e,n){if(1&e&&(f(0,"div",1),v(1),b(2,"translate"),k(3,TL,1,0,"button",2),h()),2&e){const t=D();d(1),y(" ",C(2,2,t.title)," "),d(2),g("ngIf",t.dismissable)}}let sg=(()=>{class e{constructor(){this.dismissable=!0}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=De({type:e,selectors:[["app-success-alert"]],inputs:{title:"title",dismissable:"dismissable"},decls:1,vars:1,consts:[["class","alert alert-light-success alert-dismissible show fade",4,"ngIf"],[1,"alert","alert-light-success","alert-dismissible","show","fade"],["type","button","class","btn-close","data-bs-dismiss","alert","aria-label","Close",4,"ngIf"],["type","button","data-bs-dismiss","alert","aria-label","Close",1,"btn-close"]],template:function(t,r){1&t&&k(0,IL,4,4,"div",0),2&t&&g("ngIf",r.title)},dependencies:[He,Xe]}),e})();function ML(e,n){1&e&&S(0,"button",3)}function AL(e,n){if(1&e&&(f(0,"div",1),v(1),b(2,"translate"),k(3,ML,1,0,"button",2),h()),2&e){const t=D();d(1),y(" ",C(2,2,t.title)," "),d(2),g("ngIf",t.dismissable)}}let Gu=(()=>{class e{constructor(){this.dismissable=!0}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=De({type:e,selectors:[["app-warning-alert"]],inputs:{title:"title",dismissable:"dismissable"},decls:1,vars:1,consts:[["class","alert alert-light-warning alert-dismissible show fade",4,"ngIf"],[1,"alert","alert-light-warning","alert-dismissible","show","fade"],["type","button","class","btn-close","data-bs-dismiss","alert","aria-label","Close",4,"ngIf"],["type","button","data-bs-dismiss","alert","aria-label","Close",1,"btn-close"]],template:function(t,r){1&t&&k(0,AL,4,4,"div",0),2&t&&g("ngIf",r.title)},dependencies:[He,Xe]}),e})();function xL(e,n){1&e&&(f(0,"div",80)(1,"div",1)(2,"span",81),v(3),b(4,"translate"),h()()()),2&e&&(d(3),y(" ",C(4,1,"remove-work")," "))}function kL(e,n){if(1&e){const t=he();Ae(0),f(1,"div",5)(2,"div",35)(3,"label"),v(4),b(5,"translate"),h()(),f(6,"div",70)(7,"div",71)(8,"div",72),S(9,"input",73),f(10,"div",74),S(11,"i",75),h()()()()(),f(12,"div",5)(13,"div",35)(14,"label"),v(15),b(16,"translate"),h()(),f(17,"div",70)(18,"div",71)(19,"div",72),S(20,"input",76),f(21,"div",74),S(22,"i",77),h()()()()(),k(23,xL,5,3,"div",78),f(24,"app-dialog-modal",79),$("onConfirm",function(){return K(t),Q(D(2).appService.removeWorkDir())}),h(),xe()}if(2&e){const t=D(2);d(4),y(" ",C(5,11,"path")," "),d(5),g("value",t.projectInformation.path),d(6),y(" ",C(16,13,"database-path")," "),d(5),g("value",t.projectInformation.database_path),d(3),g("ngIf",!(null==t.authService.loggedUser||null==t.authService.loggedUser.role||!t.authService.loggedUser.role.permission_remove_work)),d(1),g("centered",!0)("target","remove-work-dir-modal")("title","delete-request")("confirmBtn",!0)("confirmBtnTxt","confirm")("borderless",!0)}}function FL(e,n){1&e&&S(0,"app-warning-alert",82),2&e&&g("dismissable",!1)}function RL(e,n){if(1&e&&(f(0,"div",20)(1,"div",8)(2,"form",33)(3,"div",34),k(4,kL,25,15,"ng-container",68),k(5,FL,1,1,"ng-template",null,69,Yt),h()()()()),2&e){const t=$e(6),r=D();d(4),g("ngIf",null!==r.projectInformation)("ngIfElse",t)}}function OL(e,n){1&e&&S(0,"app-error-alert",85),2&e&&g("dismissable",!0)("title","init-project-error")}function NL(e,n){1&e&&S(0,"app-success-alert",85),2&e&&g("dismissable",!0)("title","init-project-success")}function PL(e,n){if(1&e&&(f(0,"div",83)(1,"div",1),k(2,OL,1,2,"app-error-alert",84),h(),f(3,"div",1),k(4,NL,1,2,"app-success-alert",84),h()()),2&e){const t=D();d(2),g("ngIf",!1===t.showInitResult),d(2),g("ngIf",!0===t.showInitResult)}}function LL(e,n){if(1&e&&(f(0,"option",86),v(1),h()),2&e){const t=n.$implicit;g("value",t),d(1),y(" ",t," ")}}function VL(e,n){1&e&&(f(0,"div",83)(1,"div",1),S(2,"app-error-alert",85),h()()),2&e&&(d(2),g("dismissable",!0)("title","opening-error"))}let BL=(()=>{class e{constructor(t,r,i,o,s){this.projectService=t,this.appService=r,this.userService=i,this.authService=o,this.utilsService=s,this.differentUser=!1,this.projectsPaths=[],this.showOpenError=!1,this.initProjectForm=new An({path:new re("",[Ge.required]),openOnInit:new re(!0,[Ge.required]),forceInit:new re(!1,[Ge.required]),username:new re("",[Ge.required]),email:new re("",[Ge.required,Ge.email]),password:new re("",[Ge.required,this.utilsService.createPasswordStrengthValidator(8)]),repassword:new re("",[Ge.required,TD("password")])}),this.showPMPassword=!1,this.openProjectForm=new An({path:new re("",[Ge.required])}),this.authService.refreshMe()}ngOnInit(){this.loadProjectsPaths(),this.loadProjectInformation()}loadProjectsPaths(){this.appService.projectsPathsStored().then(t=>{t.subscribe({next:r=>{r&&(this.projectsPaths=r)}})})}loadProjectInformation(){this.projectService.getProjectInformation().then(t=>{t.subscribe({next:r=>{this.projectInformation=r}})})}updatePath(t){this.openProjectForm.controls.path.setValue(t),this.openProjectForm.controls.path.updateValueAndValidity()}open(){this.showOpenError=!1,this.openProjectForm.valid&&this.appService.openProject(this.openProjectForm.controls.path.value).then(t=>{t.subscribe({next:r=>{r?window.location.reload():this.showOpenError=!0},error:r=>this.showOpenError=!0})})}fillInitForm(){this.initProjectForm.controls.username.setValue(this.authService.loggedUser?.username),this.initProjectForm.controls.email.setValue(this.authService.loggedUser?.email)}init(){if(this.initProjectForm.valid){this.showInitResult=void 0;const t=this.initProjectForm.controls.openOnInit.value;this.appService.initProject(this.initProjectForm.controls.path.value,{email:this.initProjectForm.controls.email.value,username:this.initProjectForm.controls.username.value,password:this.initProjectForm.controls.password.value},t,!!this.initProjectForm.controls.forceInit.value).then(s=>{s.subscribe({next:a=>{this.showInitResult=!!a,a&&t&&setTimeout(()=>{window.location.reload()},500)},error:a=>this.showInitResult=!0})})}}}return e.\u0275fac=function(t){return new(t||e)(O(SL),O(Hu),O(Uu),O(Un),O(Ni))},e.\u0275cmp=De({type:e,selectors:[["app-home"]],decls:167,vars:115,consts:[[1,"row","justify-content-between"],[1,"col-auto"],[3,"title"],["heading",""],[1,"section"],[1,"row"],[1,"col-12"],[1,"card"],[1,"card-body"],["role","tablist",1,"nav","nav-tabs"],["role","presentation",1,"nav-item"],["id","info-tab","data-bs-toggle","tab","href","#info","role","tab","aria-controls","info","aria-selected","true",1,"nav-link","active"],["id","new-tab","data-bs-toggle","tab","href","#new","role","tab","aria-controls","new","aria-selected","false",1,"nav-link"],["id","open-tab","data-bs-toggle","tab","href","#open","role","tab","aria-controls","open","aria-selected","false",1,"nav-link"],[1,"tab-content"],["id","info","role","tabpanel","aria-labelledby","info-tab",1,"tab-pane","fade","show","active"],[1,"card-header"],[1,"card-title"],["class","card-content",4,"ngIf"],["id","new","role","tabpanel","aria-labelledby","new-tab",1,"tab-pane","fade"],[1,"card-content"],[3,"formGroup"],[1,"col-md-9","mb-4"],["type","text","formControlName","path",1,"form-control",3,"placeholder"],["path",""],[1,"col-md-3","align-self-center"],[1,"form-check"],[1,"checkbox"],["type","checkbox","id","force-init","formControlName","forceInit",1,"form-check-input"],["for","force-init"],[1,"mt-2"],["id","basic-horizontal-layouts"],[1,"row","match-height"],[1,"form","form-horizontal"],[1,"form-body"],[1,"col-md-4"],[1,"col-md-8","form-group"],["type","text","name","username","formControlName","username",1,"form-control",3,"placeholder"],["type","email","formControlName","email",1,"form-control",3,"placeholder"],["formControlName","password",1,"form-control",3,"type","placeholder","input"],["formControlName","repassword",1,"form-control",3,"type","placeholder"],[2,"color","#b8a244"],[1,"form-check","form-switch"],["type","checkbox","id","showPsw",1,"form-check-input",3,"checked","change"],["showPswCheckbox",""],["for","showPsw",1,"form-check-label"],[1,"col-sm-12","d-flex","justify-content-between"],["type","button",1,"btn","icon","btn-light",3,"click"],[1,"bi","bi-box-arrow-down"],["type","reset",1,"btn","btn-light-secondary","me-1","mb-1"],[1,"row","justify-content-between","mt-2"],["type","checkbox","id","open-on-init","formControlName","openOnInit",1,"form-check-input"],["for","open-on-init"],[1,"btn","icon","icon-right","btn-primary",3,"disabled","click"],[1,"bi","bi-folder-plus"],["class","row justify-content-center mt-2",4,"ngIf"],["id","open","role","tabpanel","aria-labelledby","open-tab",1,"tab-pane","fade"],[1,"col-md-6","mb-4"],[1,"input-group","mb-3"],["for","inputGroupSelect01",1,"input-group-text"],["id","inputGroupSelect01",1,"form-select",3,"change"],["select",""],["value","","selected",""],[3,"value",4,"ngFor","ngForOf"],[1,"row","justify-content-end"],[1,"btn","icon","btn-light",3,"click"],[1,"bi","bi-arrow-clockwise"],[1,"bi","bi-box-arrow-up-right"],[4,"ngIf","ngIfElse"],["noProject",""],[1,"col-md-8"],[1,"form-group","has-icon-left"],[1,"position-relative"],["type","text","placeholder","Path","id","path","readonly","",1,"form-control",3,"value"],[1,"form-control-icon"],[1,"bi","bi-folder-fill"],["type","text","placeholder","Database","id","database","readonly","",1,"form-control",3,"value"],[1,"bi","bi-database-fill"],["class","row justify-content-center mt-5",4,"ngIf"],[3,"centered","target","title","confirmBtn","confirmBtnTxt","borderless","onConfirm"],[1,"row","justify-content-center","mt-5"],["data-bs-toggle","modal","data-bs-target","#remove-work-dir-modal",1,"red-underling","cursor-pointer"],["title","no-project",3,"dismissable"],[1,"row","justify-content-center","mt-2"],[3,"dismissable","title",4,"ngIf"],[3,"dismissable","title"],[3,"value"]],template:function(t,r){if(1&t){const i=he();f(0,"div",0)(1,"div",1),S(2,"app-page-heading",2,3),h()(),f(4,"section",4)(5,"div",5)(6,"div",6)(7,"div",7)(8,"div",8)(9,"ul",9)(10,"li",10)(11,"a",11),v(12),b(13,"translate"),h()(),f(14,"li",10)(15,"a",12),v(16),b(17,"translate"),h()(),f(18,"li",10)(19,"a",13),v(20),b(21,"translate"),h()()(),f(22,"div",14)(23,"div",15),S(24,"p"),f(25,"div",7)(26,"div",16)(27,"h4",17),v(28),b(29,"translate"),h()(),k(30,RL,7,2,"div",18),h()(),f(31,"div",19),S(32,"p"),f(33,"div",7)(34,"div",16)(35,"h4",17),v(36),b(37,"translate"),h()(),f(38,"div",20)(39,"div",8)(40,"form",21)(41,"div",5)(42,"div",22)(43,"h6"),v(44),b(45,"translate"),h(),S(46,"input",23,24),b(48,"translate"),h(),f(49,"div",25)(50,"div",26)(51,"div",27),S(52,"input",28),f(53,"label",29),v(54),b(55,"translate"),h()()()()(),f(56,"h6",30),v(57),b(58,"translate"),h(),f(59,"section",31)(60,"div",32)(61,"div",6)(62,"div",7)(63,"div",20)(64,"div",8)(65,"form",33)(66,"div",34)(67,"div",5)(68,"div",35)(69,"label"),v(70),b(71,"translate"),h()(),f(72,"div",36),S(73,"input",37),b(74,"translate"),h(),f(75,"div",35)(76,"label"),v(77),b(78,"translate"),h()(),f(79,"div",36),S(80,"input",38),b(81,"translate"),h(),f(82,"div",35)(83,"label"),v(84),b(85,"translate"),h()(),f(86,"div",36)(87,"input",39),$("input",function(){return r.initProjectForm.controls.repassword.markAsTouched(),r.initProjectForm.controls.repassword.updateValueAndValidity()}),b(88,"translate"),h()(),f(89,"div",35)(90,"label"),v(91),b(92,"translate"),h()(),f(93,"div",36),S(94,"input",40),b(95,"translate"),f(96,"small",41),v(97),b(98,"translate"),h(),f(99,"div",42)(100,"input",43,44),$("change",function(){K(i);const s=$e(101);return Q(r.showPMPassword=s.checked)}),h(),f(102,"label",45),v(103),b(104,"translate"),h()()(),f(105,"div",46)(106,"button",47),$("click",function(){return r.fillInitForm()}),S(107,"i",48),h(),f(108,"button",49),v(109),b(110,"translate"),h()()()()()()()()()()(),f(111,"div",50)(112,"div",1)(113,"div",26)(114,"div",27),S(115,"input",51),f(116,"label",52),v(117),b(118,"translate"),h()()()(),f(119,"div",1)(120,"button",53),$("click",function(){return r.init()}),v(121),b(122,"translate"),S(123,"i",54),h()()(),k(124,PL,5,2,"div",55),h()()()()(),f(125,"div",56),S(126,"p"),f(127,"div",7)(128,"div",16)(129,"h4",17),v(130),b(131,"translate"),h()(),f(132,"div",20)(133,"div",8)(134,"form",21)(135,"div",5)(136,"div",57)(137,"h6"),v(138),b(139,"translate"),h(),f(140,"div",58)(141,"label",59),v(142),b(143,"translate"),h(),f(144,"select",60,61),$("change",function(){K(i);const s=$e(145);return Q(s.value?r.updatePath(s.value):"")}),f(146,"option",62),v(147),b(148,"translate"),h(),k(149,LL,2,2,"option",63),h()()(),f(150,"div",57)(151,"h6"),v(152),b(153,"translate"),h(),S(154,"input",23,24),b(156,"translate"),h()(),f(157,"div",64)(158,"div",1)(159,"button",65),$("click",function(){return r.loadProjectsPaths()}),S(160,"i",66),h()(),f(161,"div",1)(162,"button",53),$("click",function(){return r.open()}),v(163),b(164,"translate"),S(165,"i",67),h()()(),k(166,VL,3,2,"div",55),h()()()()()()()()()()()}2&t&&(d(2),g("title","home"),d(10),y(" ",C(13,57,"project-information")," "),d(4),y(" ",C(17,59,"init-project")," "),d(4),y(" ",C(21,61,"open-project")," "),d(8),y(" ",C(29,63,"project-information")," "),d(2),g("ngIf",void 0!==r.projectInformation),d(6),y(" ",C(37,65,"init-project")," "),d(4),g("formGroup",r.initProjectForm),d(4),y(" ",C(45,67,"insert-path")," "),d(2),Pt("placeholder",C(48,69,"path")),d(8),y(" ",C(55,71,"force-init")," "),d(3),y(" ",C(58,73,"insert-pm-data")," "),d(13),y(" ",C(71,75,"username")," "),d(3),Qe("is-valid",r.initProjectForm.controls.username.dirty&&r.initProjectForm.controls.username.valid)("is-invalid",r.initProjectForm.controls.username.dirty&&!r.initProjectForm.controls.username.valid),Pt("placeholder",C(74,77,"username")),d(4),y(" ",C(78,79,"email")," "),d(3),Qe("is-valid",r.initProjectForm.controls.email.dirty&&r.initProjectForm.controls.email.valid)("is-invalid",r.initProjectForm.controls.email.dirty&&!r.initProjectForm.controls.email.valid),Pt("placeholder",C(81,81,"email")),d(4),y(" ",C(85,83,"password")," "),d(3),Qe("is-valid",r.initProjectForm.controls.password.dirty&&r.initProjectForm.controls.password.valid)("is-invalid",r.initProjectForm.controls.password.dirty&&!r.initProjectForm.controls.password.valid),Pt("placeholder",C(88,85,"password")),g("type",r.showPMPassword?"text":"password"),d(4),y(" ",C(92,87,"repassword")," "),d(3),Qe("is-valid",r.initProjectForm.controls.repassword.dirty&&r.initProjectForm.controls.repassword.valid)("is-invalid",r.initProjectForm.controls.repassword.dirty&&!r.initProjectForm.controls.repassword.valid),Pt("placeholder",C(95,89,"repassword")),g("type",r.showPMPassword?"text":"password"),d(3),y(" ",C(98,91,"password-warning")," "),d(3),g("checked",r.showPMPassword),d(3),y(" ",C(104,93,"show-password")," "),d(6),y(" ",C(110,95,"reset")," "),d(8),y(" ",C(118,97,"open-at-end")," "),d(3),g("disabled",r.initProjectForm.invalid),d(1),y(" ",C(122,99,"init")," "),d(3),g("ngIf",void 0!==r.showInitResult),d(6),y(" ",C(131,101,"open-project")," "),d(4),g("formGroup",r.openProjectForm),d(4),y(" ",C(139,103,"select-project")," "),d(4),y(" ",C(143,105,"projects")," "),d(5),y(" ",C(148,107,"select")," "),d(2),g("ngForOf",r.projectsPaths),d(3),y(" ",C(153,109,"insert-path")," "),d(2),Pt("placeholder",C(156,111,"path")),d(8),g("disabled",r.openProjectForm.invalid),d(1),y(" ",C(164,113,"open")," "),d(3),g("ngIf",r.showOpenError))},dependencies:[Mn,He,Vr,cl,ul,or,uo,Pr,Lr,sr,vr,og,Es,hl,sg,Gu,Xe],styles:[".red-underling[_ngcontent-%COMP%]{text-decoration:underline;color:#f75e66}"]}),e})();function jL(e,n){if(1&e){const t=he();f(0,"div",45)(1,"button",46),$("click",function(){return K(t),Q(D(2).submitMasterData())}),v(2),b(3,"translate"),h(),f(4,"button",48),$("click",function(){K(t);const i=D(2);return Q(i.loadDefaultValues(i.blueprintMasterDataUserForm))}),v(5),b(6,"translate"),h()()}if(2&e){const t=D(2);d(1),g("disabled",t.blueprintMasterDataUserForm.invalid),d(1),y(" ",C(3,3,"confirm")," "),d(3),y(" ",C(6,5,"reset")," ")}}function UL(e,n){if(1&e){const t=he();f(0,"div",1)(1,"div",2)(2,"div",3)(3,"div",4)(4,"h4",5),v(5),b(6,"translate"),h(),f(7,"p"),v(8),b(9,"translate"),h()(),f(10,"div",6)(11,"div",7)(12,"div",8)(13,"div",9)(14,"a",10),v(15),b(16,"translate"),h(),f(17,"a",11),v(18),b(19,"translate"),h(),f(20,"a",12),v(21),b(22,"translate"),h()()(),f(23,"div",13)(24,"div",14)(25,"div",15)(26,"section",16)(27,"div",17)(28,"div",2)(29,"div",3)(30,"div",4)(31,"h4",5),v(32),b(33,"translate"),h()(),f(34,"div",18)(35,"div",6)(36,"form",19)(37,"div",20)(38,"div",7)(39,"div",21)(40,"label"),v(41),b(42,"translate"),h()(),f(43,"div",22),S(44,"input",23),h(),f(45,"div",21)(46,"label"),v(47),b(48,"translate"),h()(),f(49,"div",22),S(50,"input",24),h(),f(51,"div",21)(52,"label"),v(53),b(54,"translate"),h()(),f(55,"div",22),S(56,"input",25),h(),f(57,"div",21)(58,"label"),v(59),b(60,"translate"),h()(),f(61,"div",22),S(62,"input",26),h(),f(63,"div",21)(64,"label"),v(65),b(66,"translate"),h()(),f(67,"div",22),S(68,"input",27),h(),k(69,jL,7,7,"div",28),h()()()()()()()()()(),f(70,"div",29)(71,"div",1)(72,"div",30)(73,"div",31)(74,"label",32),v(75),b(76,"translate"),h(),f(77,"input",33,34),$("input",function(){K(t);const i=$e(78);return Q(D().colorPicked=i.value)}),h()()(),f(79,"div",30),S(80,"app-text-avatar",35),h()(),f(81,"div",1)(82,"div",30)(83,"button",36),$("click",function(){K(t);const i=$e(78),o=D();return Q(i.value=o.colorPicked=o.loggedUser.avatar_hex_color)}),v(84),b(85,"translate"),h()(),f(86,"div",30)(87,"button",37),$("click",function(){K(t);const i=D();return Q(i.modify({avatar_hex_color:i.colorPicked},!0))}),v(88),b(89,"translate"),h()()()(),f(90,"div",38)(91,"section",16)(92,"div",17)(93,"div",2)(94,"div",3)(95,"div",4)(96,"h4",5),v(97),b(98,"translate"),h(),f(99,"p"),v(100),b(101,"translate"),h()(),f(102,"div",18)(103,"div",6)(104,"form",19)(105,"div",20)(106,"div",7)(107,"div",21)(108,"label"),v(109),b(110,"translate"),h()(),f(111,"div",22)(112,"input",39),$("input",function(){K(t);const i=D();return i.blueprintPasswordUserForm.controls.repassword.markAsTouched(),Q(i.blueprintPasswordUserForm.controls.repassword.updateValueAndValidity())}),h()(),f(113,"div",21)(114,"label"),v(115),b(116,"translate"),h()(),f(117,"div",22),S(118,"input",40),h(),f(119,"div",2)(120,"div",41)(121,"input",42,43),$("change",function(){K(t);const i=$e(122);return Q(D().showPassword=i.checked)}),h(),f(123,"label",44),v(124),b(125,"translate"),h()()(),f(126,"div",45)(127,"button",46),$("click",function(){return K(t),Q(D().submitPasswordData())}),v(128),b(129,"translate"),h(),f(130,"button",47),v(131),b(132,"translate"),h()()()()()()()()()()()()()()()()()()()}if(2&e){const t=D();d(5),y(" ",C(6,47,"my-profile")," "),d(3),y(" ",C(9,49,"logout-after-update")," "),d(7),y(" ",C(16,51,"master-data")," "),d(3),y(" ",C(19,53,"avatar")," "),d(3),y(" ",C(22,55,"password")," "),d(11),y(" ",C(33,57,"master-data")," "),d(4),g("formGroup",t.blueprintMasterDataUserForm),d(5),y(" ",C(42,59,"username")," "),d(3),Qe("is-valid",t.blueprintMasterDataUserForm.controls.username.dirty&&!t.blueprintMasterDataUserForm.controls.username.errors)("is-invalid",t.blueprintMasterDataUserForm.controls.username.dirty&&t.blueprintMasterDataUserForm.controls.username.errors),d(3),y(" ",C(48,61,"email")," "),d(3),Qe("is-valid",t.blueprintMasterDataUserForm.controls.email.dirty&&!t.blueprintMasterDataUserForm.controls.email.errors)("is-invalid",t.blueprintMasterDataUserForm.controls.email.dirty&&t.blueprintMasterDataUserForm.controls.email.errors),d(3),y(" ",C(54,63,"name")," "),d(6),y(" ",C(60,65,"surname")," "),d(6),y(" ",C(66,67,"phone")," "),d(4),g("ngIf",t.blueprintMasterDataUserForm.dirty),d(6),y(" ",C(76,69,"pick-color-for-avatar")," "),d(2),g("value",t.loggedUser.avatar_hex_color),d(3),g("color",t.colorPicked?t.colorPicked:t.loggedUser.avatar_hex_color)("text",t.utilsService.getAvatarText(t.loggedUser)),d(4),y(" ",C(85,71,"reset")," "),d(4),y(" ",C(89,73,"update")," "),d(9),y(" ",C(98,75,"password")," "),d(3),y(" ",C(101,77,"password-requirements")," "),d(4),g("formGroup",t.blueprintPasswordUserForm),d(5),y(" ",C(110,79,"password")," "),d(3),Qe("is-valid",t.blueprintPasswordUserForm.controls.password.dirty&&!t.blueprintPasswordUserForm.controls.password.errors)("is-invalid",t.blueprintPasswordUserForm.controls.password.dirty&&t.blueprintPasswordUserForm.controls.password.errors),g("type",t.showPassword?"text":"password"),d(3),y(" ",C(116,81,"repassword")," "),d(3),Qe("is-valid",t.blueprintPasswordUserForm.controls.repassword.dirty&&!t.blueprintPasswordUserForm.controls.repassword.errors)("is-invalid",t.blueprintPasswordUserForm.controls.repassword.dirty&&t.blueprintPasswordUserForm.controls.repassword.errors),g("type",t.showPassword?"text":"password"),d(3),g("checked",t.showPassword),d(3),y(" ",C(125,83,"show-password")," "),d(3),g("disabled",t.blueprintPasswordUserForm.invalid),d(1),y(" ",C(129,85,"submit")," "),d(3),y(" ",C(132,87,"reset")," ")}}let $L=(()=>{class e{constructor(t,r,i){this.authService=t,this.utilsService=r,this.userService=i,this.blueprintMasterDataUserForm=new An({username:new re("",[Ge.required],this.checkUnique("username")),name:new re(null),surname:new re(null),email:new re("",[Ge.required],this.checkUnique("email")),phone:new re(null)}),this.blueprintPasswordUserForm=new An({password:new re("",[Ge.required,this.utilsService.createPasswordStrengthValidator(8)]),repassword:new re("",[Ge.required,TD("password")])}),this.showPassword=!1,this.loadLoggedUser()}ngOnInit(){}loadLoggedUser(){this.authService.me().then(t=>{t.subscribe({next:r=>{this.loggedUser=r,this.loadDefaultValues(this.blueprintMasterDataUserForm)}})})}loadDefaultValues(t){if(!this.loggedUser)return;const r=Object.keys(t.controls);for(let i=0;i{o.subscribe({next:s=>{r&&window.location.reload()},error:s=>{}})}))}submitMasterData(){this.blueprintMasterDataUserForm.valid&&this.modify(this.blueprintMasterDataUserForm.value,!0)}submitPasswordData(){this.blueprintPasswordUserForm.valid&&this.modify({password:this.blueprintPasswordUserForm.controls.password.value},!0)}checkUnique(t){return r=>new qe(i=>{this.userService.checkAlreadyUsed(t,r.value).then(o=>{o.subscribe({next:s=>{i.next(r.value!=this.loggedUser[t]&&s),i.complete()}})})}).pipe(we(i=>i?{uniqueError:!0}:null))}}return e.\u0275fac=function(t){return new(t||e)(O(Un),O(Ni),O(Uu))},e.\u0275cmp=De({type:e,selectors:[["app-my-profile"]],decls:1,vars:1,consts:[["class","row justify-content-center",4,"ngIf"],[1,"row","justify-content-center"],[1,"col-12"],[1,"card"],[1,"card-header"],[1,"card-title"],[1,"card-body"],[1,"row"],[1,"col-3"],["id","v-pills-tab","role","tablist","aria-orientation","vertical",1,"nav","flex-column","nav-pills"],["id","v-pills-master-data-tab","data-bs-toggle","pill","href","#v-pills-master-data","role","tab","aria-controls","v-pills-master-data","aria-selected","true",1,"nav-link","active"],["id","v-pills-avatar-tab","data-bs-toggle","pill","href","#v-pills-avatar","role","tab","aria-controls","v-pills-avatar","aria-selected","false",1,"nav-link"],["id","v-pills-password-tab","data-bs-toggle","pill","href","#v-pills-password","role","tab","aria-controls","v-pills-password","aria-selected","false",1,"nav-link"],[1,"col-9"],["id","v-pills-tabContent",1,"tab-content"],["id","v-pills-master-data","role","tabpanel","aria-labelledby","v-pills-master-data-tab",1,"tab-pane","fade","show","active"],["id","basic-horizontal-layouts"],[1,"row","match-height"],[1,"card-content"],[1,"form","form-horizontal",3,"formGroup"],[1,"form-body"],[1,"col-md-4"],[1,"col-md-8","form-group"],["type","text","id","username","name","username","placeholder","Username","formControlName","username",1,"form-control"],["type","email","id","email","name","email","placeholder","Email","formControlName","email",1,"form-control"],["type","text","id","name","name","name","placeholder","Name","formControlName","name",1,"form-control"],["type","text","id","surname","name","surname","placeholder","Surname","formControlName","surname",1,"form-control"],["type","text","id","phone","name","phone","placeholder","Phone","formControlName","phone",1,"form-control"],["class","col-sm-12 d-flex justify-content-end",4,"ngIf"],["id","v-pills-avatar","role","tabpanel","aria-labelledby","v-pills-avatar-tab",1,"tab-pane","fade"],[1,"col-auto"],[1,"form-group"],["for","color-picker"],["type","color","id","color-picker",1,"form-control",3,"value","input"],["colorPicker",""],[3,"color","text"],[1,"btn","btn-outline-secondary",3,"click"],[1,"btn","btn-outline-primary",3,"click"],["id","v-pills-password","role","tabpanel","aria-labelledby","v-pills-password-tab",1,"tab-pane","fade"],["id","password","name","password","placeholder","Password","formControlName","password",1,"form-control",3,"type","input"],["id","repassword","name","repassword","placeholder","Re-password","formControlName","repassword",1,"form-control",3,"type"],[1,"form-check","form-switch"],["type","checkbox","id","showPsw",1,"form-check-input",3,"checked","change"],["showPswCheckbox",""],["for","showPsw",1,"form-check-label"],[1,"col-sm-12","d-flex","justify-content-end"],["type","button",1,"btn","btn-primary","me-1","mb-1",3,"disabled","click"],["type","reset",1,"btn","btn-light-secondary","me-1","mb-1"],["type","button",1,"btn","btn-light-secondary","me-1","mb-1",3,"click"]],template:function(t,r){1&t&&k(0,UL,133,89,"div",0),2&t&&g("ngIf",r.loggedUser)},dependencies:[He,Vr,or,Pr,Lr,sr,vr,ju,Xe]}),e})();function HL(e,n){if(1&e){const t=he();f(0,"div",4)(1,"div",5)(2,"div",6)(3,"h5",7),v(4),b(5,"translate"),h()(),f(6,"div",6)(7,"button",8),$("click",function(){K(t);const i=D(2);return Q(i.collapseStatus=!i.collapseStatus)}),S(8,"i",9),h()()()()}if(2&e){const t=D(2);d(4),y(" ",C(5,1,t.title)," ")}}function GL(e,n){1&e&&(S(0,"i",26),b(1,"translate")),2&e&&Pt("title",C(1,1,"unique"))}function zL(e,n){if(1&e){const t=he();f(0,"div",30)(1,"input",31),$("change",function(){K(t),D();const i=$e(2);return Q(i.type="password"==i.type?"text":"password")}),h(),f(2,"label",32),v(3),b(4,"translate"),h()()}2&e&&(d(3),y(" ",C(4,1,"show-password")," "))}function qL(e,n){if(1&e&&(Ae(0),S(1,"input",27,28),b(3,"translate"),k(4,zL,5,3,"div",29),xe()),2&e){const t=D().$implicit,r=D(3);let i;d(1),Qe("is-valid",r.form.controls[t.name].dirty&&r.form.controls[t.name].valid)("is-invalid",r.form.controls[t.name].dirty&&!r.form.controls[t.name].valid),Pt("placeholder",C(3,9,null!==(i=t.placeholder)&&void 0!==i?i:"")),g("type",t.type)("name",t.name)("formControlName",t.name),d(3),g("ngIf","password"==t.type)}}function WL(e,n){if(1&e&&(Ae(0),f(1,"div",33),S(2,"textarea",34),h(),xe()),2&e){const t=D(2).$implicit,r=D(3);d(2),Qe("is-valid",r.form.controls[t.name].dirty&&r.form.controls[t.name].valid)("is-invalid",r.form.controls[t.name].dirty&&!r.form.controls[t.name].valid),g("formControlName",t.name)}}function YL(e,n){if(1&e&&(Ae(0),f(1,"div",35)(2,"div",36),S(3,"input",37),h()(),xe()),2&e){const t=D(2).$implicit;d(3),g("name",t.name)("placeholder",t.placeholder)("formControlName",t.name)}}function KL(e,n){if(1&e&&(f(0,"option",43),v(1),b(2,"translate"),h()),2&e){const t=n.$implicit;g("ngValue",t.value),d(1),y(" ",C(2,2,t.text)," ")}}function QL(e,n){if(1&e&&(Ae(0),f(1,"div",38)(2,"label",39),v(3),b(4,"translate"),h(),f(5,"select",40)(6,"option",41),v(7),b(8,"translate"),h(),k(9,KL,3,4,"option",42),h()(),xe()),2&e){const t=D(2).$implicit;let r;d(3),y(" ",C(4,4,null!==(r=t.placeholder)&&void 0!==r?r:t.name)," "),d(2),g("formControlName",t.name),d(2),y(" ",C(8,6,"choose")," "),d(2),g("ngForOf",t.selectOptions)}}function XL(e,n){if(1&e&&(k(0,WL,3,5,"ng-container",0),k(1,YL,4,3,"ng-container",0),k(2,QL,10,8,"ng-container",0)),2&e){const t=D().$implicit;g("ngIf","textarea"==t.type),d(1),g("ngIf","checkbox"==t.type),d(1),g("ngIf","selectbox"==t.type)}}function ZL(e,n){if(1&e&&(f(0,"div",20)(1,"div",21)(2,"div",5)(3,"div",6)(4,"label"),v(5),b(6,"translate"),h()(),f(7,"div",6),k(8,GL,2,3,"i",22),h()()(),f(9,"div",23),k(10,qL,5,11,"ng-container",24),k(11,XL,3,3,"ng-template",null,25,Yt),h()()),2&e){const t=n.$implicit,r=$e(12);let i;d(5),y(" ",C(6,4,null!==(i=t.title)&&void 0!==i?i:t.name)," "),d(3),g("ngIf",!0===t.unique),d(2),g("ngIf","textarea"!==t.type&&"checkbox"!==t.type&&"selectbox"!==t.type)("ngIfElse",r)}}function JL(e,n){1&e&&(f(0,"button",44),S(1,"i",45),h()),2&e&&Ve("data-bs-target","#delete-request-"+D(3).entity.id)}function eV(e,n){if(1&e){const t=he();f(0,"app-dialog-modal",46),$("onConfirm",function(){return K(t),Q(D(3).delete())}),h()}2&e&&g("target","delete-request-"+D(3).entity.id)("centered",!0)("confirmBtn",!0)("confirmBtnTxt","confirm")("borderless",!0)}function tV(e,n){1&e&&S(0,"app-error-alert",48),2&e&&g("title","operation-error")}function nV(e,n){1&e&&S(0,"app-success-alert",48),2&e&&g("title","operation-successful")}function rV(e,n){if(1&e&&(Ae(0),k(1,tV,1,1,"app-error-alert",47),k(2,nV,1,1,"app-success-alert",47),xe()),2&e){const t=D(3);d(1),g("ngIf",!t.submitResult),d(1),g("ngIf",!!t.submitResult)}}function iV(e,n){if(1&e){const t=he();f(0,"div",10)(1,"div",11)(2,"form",12)(3,"div",13),k(4,ZL,13,6,"div",14),f(5,"div",5)(6,"div",6),k(7,JL,2,1,"button",15),h(),f(8,"div",16)(9,"button",17),$("click",function(){return K(t),Q(D(2).setFormDefaultValue())}),v(10),b(11,"translate"),h(),f(12,"button",18),$("click",function(){return K(t),Q(D(2).submit())}),v(13),b(14,"translate"),h(),k(15,eV,1,5,"app-dialog-modal",19),h()(),k(16,rV,3,2,"ng-container",0),h()()()()}if(2&e){const t=D(2);d(2),g("formGroup",t.form),d(2),g("ngForOf",t.editableFields),d(3),g("ngIf",t.entity),d(3),y(" ",C(11,8,"reset")," "),d(2),g("disabled",t.form.invalid),d(1),y(" ",C(14,10,t.confirmBtnTxt)," "),d(2),g("ngIf",t.entity),d(1),g("ngIf",void 0!==t.submitResult)}}function oV(e,n){if(1&e&&(Ae(0),f(1,"div",1),k(2,HL,9,3,"div",2),k(3,iV,17,12,"div",3),h(),xe()),2&e){const t=D();d(2),g("ngIf",t.title),d(1),g("ngIf",!t.collapseStatus)}}let sV=(()=>{class e{constructor(){this.DEFAULT_COLOR="#000000",this.editableFields=[],this.confirmBtnTxt="modify",this.collapseStatus=!1,this.refreshRequest=new ue,this.onConfirm=new ue}ngOnInit(){this.createForm()}createForm(){this.form=new An({});for(let t=0;t{setTimeout(()=>{this.submitResult=void 0},zt.alertTimeout)};this.onConfirm.emit(t),this.manager&&this.manager.update(r,t).then(o=>{o.subscribe({next:s=>{s&&(this.entity=s,this.form?.markAsPristine()),!r&&s&&(this.entity=void 0,this.form?.reset(),this.refreshRequest.emit()),this.submitResult=!!s,i()},error:s=>{this.submitResult=!1,i()}})}).catch(o=>{this.submitResult=!1,i()})}delete(){if(!this.entity)return;const r=()=>{setTimeout(()=>{this.submitResult=void 0},zt.alertTimeout)};this.manager&&this.manager?.deleteById(this.entity.id).then(i=>{i.subscribe({next:o=>{this.submitResult=o=!!o,o&&(this.entity=void 0,this.refreshRequest.emit()),r()},error:o=>{this.submitResult=!1,r()}})}).catch(i=>{this.submitResult=!1,r()})}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=De({type:e,selectors:[["app-manage-entity"]],inputs:{manager:"manager",entity:"entity",title:"title",editableFields:"editableFields",confirmBtnTxt:"confirmBtnTxt",collapseStatus:"collapseStatus"},outputs:{refreshRequest:"refreshRequest",onConfirm:"onConfirm"},decls:1,vars:1,consts:[[4,"ngIf"],[1,"card"],["class","card-header",4,"ngIf"],["class","card-content",4,"ngIf"],[1,"card-header"],[1,"row","justify-content-between"],[1,"col-auto"],[1,"card-title"],[1,"btn","icon","btn-light",3,"click"],[1,"bi","bi-plus"],[1,"card-content"],[1,"card-body"],[1,"form","form-horizontal",3,"formGroup"],[1,"form-body"],["class","row",4,"ngFor","ngForOf"],["type","button","class","btn icon btn-light","data-bs-toggle","modal",4,"ngIf"],[1,"col-sm-auto","d-flex","justify-content-end"],["type","button",1,"btn","btn-light-secondary","me-1","mb-1",3,"click"],["type","button",1,"btn","btn-primary","me-1","mb-1",3,"disabled","click"],["title","delete-request",3,"target","centered","confirmBtn","confirmBtnTxt","borderless","onConfirm",4,"ngIf"],[1,"row"],[1,"col-md-4"],["class","bi bi-1-square-fill","data-bs-toggle","tooltip","data-bs-placement","top",3,"title",4,"ngIf"],[1,"col-md-8","form-group"],[4,"ngIf","ngIfElse"],["otherTypes",""],["data-bs-toggle","tooltip","data-bs-placement","top",1,"bi","bi-1-square-fill",3,"title"],[1,"form-control",3,"type","name","placeholder","formControlName"],["input",""],["class","form-check form-switch",4,"ngIf"],[1,"form-check","form-switch"],["type","checkbox",1,"form-check-input",3,"change"],[1,"form-check-label"],[1,"form-group","mb-3"],["rows","5",1,"form-control",3,"formControlName"],[1,"form-check"],[1,"checkbox"],["type","checkbox",1,"form-check-input","cursor-pointer",3,"name","placeholder","formControlName"],[1,"input-group","mb-3"],[1,"input-group-text"],[1,"form-select",3,"formControlName"],["selected","","value",""],[3,"ngValue",4,"ngFor","ngForOf"],[3,"ngValue"],["type","button","data-bs-toggle","modal",1,"btn","icon","btn-light"],[1,"bi","bi-trash"],["title","delete-request",3,"target","centered","confirmBtn","confirmBtnTxt","borderless","onConfirm"],[3,"title",4,"ngIf"],[3,"title"]],template:function(t,r){1&t&&k(0,oV,4,2,"ng-container",0),2&t&&g("ngIf",!!r.form&&!!r.editableFields)},dependencies:[Mn,He,Vr,cl,ul,or,uo,ws,Pr,Lr,sr,vr,Es,hl,sg,Xe]}),e})();function aV(e,n){if(1&e){const t=he();Ae(0),f(1,"app-manage-entity",4),$("refreshRequest",function(){return K(t),Q(D(2).loadEntities())}),h(),xe()}if(2&e){const t=n.$implicit,r=D(2);d(1),g("entity",t)("editableFields",r.editableFields)("manager",r.manager)}}function lV(e,n){if(1&e){const t=he();Ae(0),f(1,"app-filter",1),$("entitiesChange",function(i){return K(t),Q(D().entitiesFiltered=i)}),h(),f(2,"app-manage-entity",2),$("refreshRequest",function(){return K(t),Q(D().loadEntities())}),h(),k(3,aV,2,3,"ng-container",3),xe()}if(2&e){const t=D();d(1),g("filterFields",t.filterFields)("entities",t.entities),d(1),g("editableFields",t.editableFields.concat(t.additionalFieldOnCreation))("manager",t.manager)("title","create-new")("confirmBtnTxt","confirm")("collapseStatus",!0),d(1),g("ngForOf",t.entitiesFiltered)}}let zu=(()=>{class e{constructor(t){this.utilsService=t,this.editableFields=[],this.additionalFieldOnCreation=[],this.entitiesFiltered=[]}ngOnInit(){this.loadEntities()}loadEntities(){this.manager?.all().then(t=>{t.subscribe({next:r=>{r&&(this.entities=r,this.entitiesFiltered=[...this.entities])}})})}}return e.\u0275fac=function(t){return new(t||e)(O(Ni))},e.\u0275cmp=De({type:e,selectors:[["app-manage-entities"]],inputs:{title:"title",editableFields:"editableFields",filterFields:"filterFields",entityTitleField:"entityTitleField",manager:"manager",additionalFieldOnCreation:"additionalFieldOnCreation"},decls:1,vars:1,consts:[[4,"ngIf"],[3,"filterFields","entities","entitiesChange"],[3,"editableFields","manager","title","confirmBtnTxt","collapseStatus","refreshRequest"],[4,"ngFor","ngForOf"],[3,"entity","editableFields","manager","refreshRequest"]],template:function(t,r){1&t&&k(0,lV,4,8,"ng-container",0),2&t&&g("ngIf",!!r.title&&!!r.entities)},dependencies:[Mn,He,sV,ND]}),e})();const cV=function(){return["name"]};let uV=(()=>{class e{constructor(t){this.taskStatusService=t,this.fields=[{name:"name",type:"text",placeholder:"name",blueprintFormControl:new re("",[Ge.required]),unique:!0},{name:"description",type:"textarea",placeholder:"description",blueprintFormControl:new re("")},{name:"hex_color",type:"color",placeholder:"color",blueprintFormControl:new re("",[Ge.required])},{name:"final",type:"checkbox",placeholder:"final",blueprintFormControl:new re("")}]}ngOnInit(){this.appendDefaultStatus()}appendDefaultStatus(){this.taskStatusService.all().then(t=>{t.subscribe({next:r=>{if(r){let i=r.map(o=>({value:o.id,text:o.name}));i.push({value:null,text:"null"}),this.fields.push({title:"prev-task-status",name:"default_prev_task_status_id",type:"selectbox",placeholder:"prev-task-status",blueprintFormControl:new re(null),selectOptions:i}),this.fields.push({title:"next-task-status",name:"default_next_task_status_id",type:"selectbox",placeholder:"next-task-status",blueprintFormControl:new re(null),selectOptions:i})}}})})}}return e.\u0275fac=function(t){return new(t||e)(O(ID))},e.\u0275cmp=De({type:e,selectors:[["app-manage-task-status"]],decls:1,vars:5,consts:[[3,"editableFields","title","filterFields","manager"]],template:function(t,r){1&t&&S(0,"app-manage-entities",0),2&t&&g("editableFields",r.fields)("title","manage-task-status")("filterFields",It(4,cV))("manager",r.taskStatusService)},dependencies:[zu]}),e})();const dV=function(){return["name"]};let fV=(()=>{class e{constructor(t){this.taskLabelService=t,this.fields=[{name:"name",type:"text",placeholder:"Name",blueprintFormControl:new re("",[Ge.required]),unique:!0},{name:"description",type:"textarea",placeholder:"Description",blueprintFormControl:new re("")},{name:"hex_color",type:"color",placeholder:"Color",blueprintFormControl:new re("",[Ge.required])}]}}return e.\u0275fac=function(t){return new(t||e)(O(kD))},e.\u0275cmp=De({type:e,selectors:[["app-manage-task-labels"]],decls:1,vars:5,consts:[[3,"editableFields","title","filterFields","manager"]],template:function(t,r){1&t&&S(0,"app-manage-entities",0),2&t&&g("editableFields",r.fields)("title","manage-task-labels")("filterFields",It(4,dV))("manager",r.taskLabelService)},dependencies:[zu]}),e})();const hV=function(){return["username","name","surname","email","phone"]};let pV=(()=>{class e{constructor(t,r,i){this.userService=t,this.roleSerivice=r,this.utilsService=i,this.fields=[{name:"username",type:"text",placeholder:"Username",blueprintFormControl:new re("",[Ge.required]),unique:!0},{name:"name",type:"text",placeholder:"Name",blueprintFormControl:new re(null)},{name:"surname",type:"text",placeholder:"Surname",blueprintFormControl:new re(null)},{name:"avatar_hex_color",type:"color",placeholder:"Color",blueprintFormControl:new re("",[Ge.required])},{name:"email",type:"email",placeholder:"Email",blueprintFormControl:new re("",[Ge.required,Ge.email]),unique:!0},{name:"phone",type:"text",placeholder:"Phone",blueprintFormControl:new re("")},{name:"password",type:"password",placeholder:"Password",blueprintFormControl:new re("",[this.utilsService.createPasswordStrengthValidator(8)])}]}ngOnInit(){this.appendRoleOptions()}appendRoleOptions(){this.roleSerivice.all().then(t=>{t.subscribe({next:r=>{r&&this.fields.push({title:"role",name:"role_id",type:"selectbox",placeholder:"role",blueprintFormControl:new re("",[Ge.required]),selectOptions:r.map(i=>({value:i.id,text:i.name}))})}})})}}return e.\u0275fac=function(t){return new(t||e)(O(Uu),O(ig),O(Ni))},e.\u0275cmp=De({type:e,selectors:[["app-manage-users"]],decls:1,vars:5,consts:[[3,"editableFields","title","filterFields","manager"]],template:function(t,r){1&t&&S(0,"app-manage-entities",0),2&t&&g("editableFields",r.fields)("title","manage-task-labels")("filterFields",It(4,hV))("manager",r.userService)},dependencies:[zu]}),e})();const gV=function(){return["name"]};let mV=(()=>{class e{constructor(t){this.roleService=t,this.fields=[{name:"name",type:"text",placeholder:"name",blueprintFormControl:new re(""),unique:!0},{name:"permission_create",type:"checkbox",placeholder:"permission_create",blueprintFormControl:new re("")},{name:"permission_read_all",type:"checkbox",placeholder:"permission_read_all",blueprintFormControl:new re("")},{name:"permission_move_backward",type:"checkbox",placeholder:"permission_move_backward",blueprintFormControl:new re("")},{name:"permission_move_forward",type:"checkbox",placeholder:"permission_move_forward",blueprintFormControl:new re("")},{name:"permission_move",type:"checkbox",placeholder:"permission_move",blueprintFormControl:new re("")},{name:"permission_edit_own",type:"checkbox",placeholder:"permission_edit_own",blueprintFormControl:new re("")},{name:"permission_edit_all",type:"checkbox",placeholder:"permission_edit_all",blueprintFormControl:new re("")},{name:"permission_change_role",type:"checkbox",placeholder:"permission_change_role",blueprintFormControl:new re("")},{name:"permission_change_assignment",type:"checkbox",placeholder:"permission_change_assignment",blueprintFormControl:new re("")},{name:"permission_delete_own",type:"checkbox",placeholder:"permission_delete_own",blueprintFormControl:new re("")},{name:"permission_delete_all",type:"checkbox",placeholder:"permission_delete_all",blueprintFormControl:new re("")},{name:"permission_manage_task_status",type:"checkbox",placeholder:"permission_manage_task_status",blueprintFormControl:new re("")},{name:"permission_manage_task_labels",type:"checkbox",placeholder:"permission_manage_task_labels",blueprintFormControl:new re("")},{name:"permission_manage_users",type:"checkbox",placeholder:"permission_manage_users",blueprintFormControl:new re("")},{name:"permission_edit_task_deadline",type:"checkbox",placeholder:"permission_edit_task_deadline",blueprintFormControl:new re("")},{name:"permission_manage_roles",type:"checkbox",placeholder:"permission_manage_roles",blueprintFormControl:new re("")},{name:"permission_remove_work",type:"checkbox",placeholder:"permission_remove_work",blueprintFormControl:new re("")}]}}return e.\u0275fac=function(t){return new(t||e)(O(ig))},e.\u0275cmp=De({type:e,selectors:[["app-manage-roles"]],decls:1,vars:5,consts:[[3,"editableFields","title","filterFields","manager"]],template:function(t,r){1&t&&S(0,"app-manage-entities",0),2&t&&g("editableFields",r.fields)("title","manage-task-labels")("filterFields",It(4,gV))("manager",r.roleService)},dependencies:[zu]}),e})(),Vi=(()=>{class e{constructor(t,r){this.authService=t,this.router=r}canActivate(){var t=this;return bt(function*(){return new Promise((r,i)=>{t.authService.isLogged().then(o=>{o.subscribe({next:s=>{s||(t.router.navigate([zt.authRequiredRedirectRoute]),i()),r(s)}})})})})()}}return e.\u0275fac=function(t){return new(t||e)(te(Un),te(jt))},e.\u0275prov=ee({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),pl=(()=>{class e{constructor(t,r){this.authService=t,this.router=r}canActivate(t){var r=this;return bt(function*(){return new Promise((i,o)=>{"roleRequired"in t.data||i(!0);const s=t.data.roleRequired;r.authService.emitMeChangeSource.asObservable().subscribe({next:a=>{if(!a||!a.role)return r.router.navigate(["/home"]),void o();s in a.role&&(Boolean(a.role[s])?i(!0):(r.router.navigate(["/home"]),o()))}}),r.authService.refreshMe()})})()}}return e.\u0275fac=function(t){return new(t||e)(te(Un),te(jt))},e.\u0275prov=ee({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();var _V=yn(731);let vV=(()=>{class e extends Ds{constructor(){super(...arguments),this.TREE="repo_tree",this.COMMITS="repo_commits"}getTree(){return this.call(this.TREE)}getCommits(){return this.call(this.COMMITS)}}return e.\u0275fac=function(){let n;return function(r){return(n||(n=et(e)))(r||e)}}(),e.\u0275prov=ee({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function yV(e,n){if(1&e&&(Ae(0),f(1,"strong"),v(2),b(3,"translate"),h(),v(4),xe()),2&e){const t=D(2);d(2),Fr(C(3,2,"hash")),d(2),y(": ",t.node.hexsha," ")}}function bV(e,n){if(1&e&&(Ae(0),f(1,"strong"),v(2),b(3,"translate"),h(),v(4,": "),f(5,"span",16),v(6),h(),xe()),2&e){const t=D(2);d(2),Fr(C(3,2,"branch")),d(4),y(" ",t.node.of_branch," ")}}function CV(e,n){if(1&e&&(Ae(0),f(1,"strong"),v(2),b(3,"translate"),h(),v(4),xe()),2&e){const t=D(2);d(2),Fr(C(3,2,"message")),d(2),y(': "',t.node.message,'" ')}}function wV(e,n){if(1&e&&(Ae(0),f(1,"strong"),v(2),b(3,"translate"),h(),v(4),b(5,"date"),xe()),2&e){const t=D(2);d(2),Fr(C(3,2,"committed-at")),d(2),y(": ",Ic(5,4,t.node.committed_at,t.dateFormat)," ")}}function DV(e,n){if(1&e&&(Ae(0),v(1),xe()),2&e){const t=D(2);d(1),ya(" ",t.node.author.name+" - "," ",t.node.author.email," ")}}function EV(e,n){1&e&&S(0,"app-warning-alert",17),2&e&&g("title","no-commiter")("dismissable",!1)}function SV(e,n){if(1&e&&(f(0,"span"),v(1),h()),2&e){const t=D().$implicit;d(1),y(" (",t.task_status.name,") ")}}function TV(e,n){if(1&e){const t=he();f(0,"li")(1,"a",19),$("click",function(){const o=K(t).$implicit;return Q(D(3).navigateToTask(o.id))}),f(2,"strong"),v(3),h()(),k(4,SV,2,1,"span",9),h()}if(2&e){const t=n.$implicit;d(3),y(" ",t.name," "),d(1),g("ngIf",!!t.task_status)}}function IV(e,n){if(1&e&&(f(0,"ul"),k(1,TV,5,2,"li",18),h()),2&e){const t=D(2);d(1),g("ngForOf",t.tasksAssociated)}}function MV(e,n){1&e&&S(0,"app-warning-alert",17),2&e&&g("title","no-task")("dismissable",!1)}function AV(e,n){if(1&e&&(f(0,"div",1)(1,"div",2)(2,"div",3)(3,"div",4)(4,"h5",5),v(5),b(6,"translate"),h(),S(7,"app-x-btn"),h(),f(8,"div",6)(9,"div",7)(10,"div",8),k(11,yV,5,4,"ng-container",9),h(),f(12,"div",8),k(13,bV,7,4,"ng-container",9),h(),f(14,"div",8),k(15,CV,5,4,"ng-container",9),h(),f(16,"div",8),k(17,wV,6,7,"ng-container",9),h(),f(18,"div",8)(19,"div",10)(20,"div",11),v(21),b(22,"translate"),h()()(),f(23,"div",8)(24,"div",12),k(25,DV,2,2,"ng-container",13),h(),k(26,EV,1,2,"ng-template",null,14,Yt),h(),f(28,"div",8)(29,"div",10)(30,"div",11),v(31),b(32,"translate"),h()()(),f(33,"div",8),k(34,IV,2,1,"ul",13),k(35,MV,1,2,"ng-template",null,15,Yt),h()()()()()()),2&e){const t=$e(27),r=$e(36),i=D();g("id",i.target),Ve("aria-labelledby",i.target),d(4),g("id",i.target),d(1),y(" ",C(6,14,"commit-info")," "),d(6),g("ngIf",!!i.node&&!!i.node.hexsha),d(2),g("ngIf",!!i.node&&!!i.node.of_branch),d(2),g("ngIf",!!i.node&&!!i.node.message),d(2),g("ngIf",!!i.node&&!!i.node.committed_at),d(4),y(" ",C(22,16,"author")," "),d(4),g("ngIf",!(!i.node||!i.node.author.email&&!i.node.author.name))("ngIfElse",t),d(6),y(" ",C(32,18,"tasks")," "),d(3),g("ngIf",!!i.tasksAssociated&&i.tasksAssociated.length>0)("ngIfElse",r)}}let xV=(()=>{class e{constructor(t,r){this.taskService=t,this.router=r,this.dateFormat=zt.fullDateFormat,this.tasksAssociated=[]}loadTasksAssociated(){this.node?.of_branch&&(this.tasksAssociated=[],this.taskService.filter({git_branch:this.node.of_branch},"like").then(t=>{t.subscribe({next:r=>{r&&(this.tasksAssociated=this.tasksAssociated.concat(r),this.tasksAssociated.sort((i,o)=>i.priority-o.priority))}})}))}ngOnChanges(){this.loadTasksAssociated()}navigateToTask(t){setTimeout(()=>{this.router.navigate(["/task/"+new String(t)])},500)}}return e.\u0275fac=function(t){return new(t||e)(O(fl),O(jt))},e.\u0275cmp=De({type:e,selectors:[["app-show-info-of-commit-modal"]],inputs:{target:"target",node:"node"},features:[Dn],decls:1,vars:1,consts:[["class","modal fade text-left","tabindex","-1","role","dialog","aria-hidden","true",3,"id",4,"ngIf"],["tabindex","-1","role","dialog","aria-hidden","true",1,"modal","fade","text-left",3,"id"],["role","document",1,"modal-dialog","modal-dialog-scrollable","modal-dialog-centered"],[1,"modal-content"],[1,"modal-header"],[1,"modal-title",3,"id"],[1,"modal-body"],[1,"row"],[1,"col-12"],[4,"ngIf"],[1,"divider"],[1,"divider-text"],[1,"d-flex","justify-content-center"],[4,"ngIf","ngIfElse"],["noCommitter",""],["noTasks",""],[1,"badge","bg-light-secondary"],[3,"title","dismissable"],[4,"ngFor","ngForOf"],["data-bs-dismiss","modal","href","javascript:void(0)",3,"click"]],template:function(t,r){1&t&&k(0,AV,37,20,"div",0),2&t&&g("ngIf",r.target)},dependencies:[Mn,He,li,Gu,Lh,Xe]}),e})();const kV=["showCommitInfoBtn"];function FV(e,n){1&e&&S(0,"app-error-alert",8),2&e&&g("title","operation-error")("dismissable",!1)}function RV(e,n){if(1&e&&(Ae(0),S(1,"div",9),f(2,"button",10,11),S(4,"i",12),h(),S(5,"app-show-info-of-commit-modal",13),xe()),2&e){const t=D();d(2),Ve("data-bs-target","#show-commit-info"),d(3),g("target","show-commit-info")("node",t.nodeSelected)}}function OV(e,n){1&e&&S(0,"app-warning-alert",8),2&e&&g("title","invalid-repo")("dismissable",!1)}function NV(e,n){1&e&&S(0,"app-loader")}let PV=(()=>{class e{constructor(t,r){this.repoService=t,this.authService=r,this.branches={},this.generationError=!1,r.refreshMe()}ngOnInit(){this.loadGraph()}loadGraph(){this.repoService.getCommits().then(t=>{this.validRepo=void 0,this.gitgraph=void 0,this.branches={},t.subscribe({next:r=>{r?(setTimeout(()=>{this.loadGitGraph(),this.generateGraphFromCommits(r)},250),this.validRepo=!0):this.validRepo=!1}})})}generateGraphFromCommits(t){this.generationError=!1;try{const r=i=>{if(this.showCommitInfoBtn&&this.authService.loggedUser)try{this.nodeSelected=t.find(o=>o.hexsha==i.hash),this.showCommitInfoBtn.nativeElement.click()}catch{Et.logError("error during showCommitInfo")}};for(let i=0;i1){const s=o.of_branch;o.parents.forEach(a=>{a.of_branch!=s&&this.branches[s].merge({commitOptions:{hash:o.hexsha,subject:o.message,author:`${o.author.name} <${o.author.email}>`,onMessageClick(c){r(c)},onClick(c){r(c)}},branch:this.branches[a.of_branch]})})}else this.branches[o.of_branch].commit({hash:o.hexsha,subject:o.message,author:`${o.author.name} <${o.author.email}>`,onMessageClick(s){r(s)},onClick(s){r(s)}}),o.tag&&this.branches[o.of_branch].tag(o.tag);o.children&&o.children.forEach(s=>{if(s.of_branch!=o.of_branch){const a=this.branches[o.of_branch].branch(s.of_branch);this.branches[s.of_branch]=a}})}}catch(r){this.generationError=!0,console.log(r)}}loadGitGraph(){let t=document.getElementById("graph-container");t?this.gitgraph=(0,_V.createGitgraph)(t):Et.logError("graph container not found")}}return e.\u0275fac=function(t){return new(t||e)(O(vV),O(Un))},e.\u0275cmp=De({type:e,selectors:[["app-repo"]],viewQuery:function(t,r){if(1&t&&Ia(kV,5),2&t){let i;os(i=ss())&&(r.showCommitInfoBtn=i.first)}},decls:11,vars:5,consts:[[3,"title","dismissable",4,"ngIf"],[1,"row","justify-content-between"],[1,"col-auto"],[3,"title"],["heading",""],["type","button",1,"btn","icon","btn-light",3,"click"],[1,"bi","bi-arrow-clockwise"],[4,"ngIf"],[3,"title","dismissable"],["id","graph-container"],["type","button","data-bs-toggle","modal",1,"btn","icon","btn-light","d-none"],["showCommitInfoBtn",""],[1,"bi","bi-trash"],[3,"target","node"]],template:function(t,r){1&t&&(k(0,FV,1,2,"app-error-alert",0),f(1,"div",1)(2,"div",2),S(3,"app-page-heading",3,4),h(),f(5,"div",2)(6,"button",5),$("click",function(){return r.loadGraph()}),S(7,"i",6),h()()(),k(8,RV,6,3,"ng-container",7),k(9,OV,1,2,"app-warning-alert",0),k(10,NV,1,0,"app-loader",7)),2&t&&(g("ngIf",!!r.generationError),d(3),g("title","repo"),d(5),g("ngIf",!0===r.validRepo&&!r.generationError),d(1),g("ngIf",!1===r.validRepo),d(1),g("ngIf",void 0===r.validRepo))},dependencies:[He,og,OD,Es,Gu,xV]}),e})();function LV(e,n){1&e&&(S(0,"i",24),b(1,"translate")),2&e&&Pt("title",C(1,1,"unique"))}function VV(e,n){if(1&e){const t=he();f(0,"div",28)(1,"input",29),$("change",function(){K(t),D();const i=$e(2);return Q(i.type="password"==i.type?"text":"password")}),h(),f(2,"label",30),v(3),b(4,"translate"),h()()}2&e&&(d(3),y(" ",C(4,1,"show-password")," "))}function BV(e,n){if(1&e&&(Ae(0),S(1,"input",25,26),b(3,"translate"),k(4,VV,5,3,"div",27),xe()),2&e){const t=D().$implicit,r=D(2);let i;d(1),Qe("is-valid",r.settingsForm.controls[t.name].dirty&&r.settingsForm.controls[t.name].valid)("is-invalid",r.settingsForm.controls[t.name].dirty&&!r.settingsForm.controls[t.name].valid),Pt("placeholder",C(3,9,null!==(i=t.placeholder)&&void 0!==i?i:"")),g("type",t.type)("name",t.name)("formControlName",t.name),d(3),g("ngIf","password"==t.type)}}function jV(e,n){if(1&e&&(Ae(0),f(1,"div",32),S(2,"textarea",33),h(),xe()),2&e){const t=D(2).$implicit,r=D(2);d(2),Qe("is-valid",r.settingsForm.controls[t.name].dirty&&r.settingsForm.controls[t.name].valid)("is-invalid",r.settingsForm.controls[t.name].dirty&&!r.settingsForm.controls[t.name].valid),g("formControlName",t.name)}}function UV(e,n){if(1&e&&(Ae(0),f(1,"div",34)(2,"div",35),S(3,"input",36),h()(),xe()),2&e){const t=D(2).$implicit;d(3),g("name",t.name)("placeholder",t.placeholder)("formControlName",t.name)}}function $V(e,n){if(1&e&&(f(0,"option",42),v(1),b(2,"translate"),h()),2&e){const t=n.$implicit;g("ngValue",t.value),d(1),y(" ",C(2,2,t.text)," ")}}function HV(e,n){if(1&e&&(Ae(0),f(1,"div",37)(2,"label",38),v(3),b(4,"translate"),h(),f(5,"select",39)(6,"option",40),v(7),b(8,"translate"),h(),k(9,$V,3,4,"option",41),h()(),xe()),2&e){const t=D(2).$implicit;let r;d(3),y(" ",C(4,4,null!==(r=t.placeholder)&&void 0!==r?r:t.name)," "),d(2),g("formControlName",t.name),d(2),y(" ",C(8,6,"choose")," "),d(2),g("ngForOf",t.selectOptions)}}function GV(e,n){if(1&e&&(k(0,jV,3,5,"ng-container",31),k(1,UV,4,3,"ng-container",31),k(2,HV,10,8,"ng-container",31)),2&e){const t=D().$implicit;g("ngIf","textarea"==t.type),d(1),g("ngIf","checkbox"==t.type),d(1),g("ngIf","selectbox"==t.type)}}function zV(e,n){if(1&e&&(f(0,"div",18)(1,"div",19)(2,"div",5)(3,"div",6)(4,"label"),v(5),b(6,"translate"),h()(),f(7,"div",6),k(8,LV,2,3,"i",20),h()()(),f(9,"div",21),k(10,BV,5,11,"ng-container",22),k(11,GV,3,3,"ng-template",null,23,Yt),h()()),2&e){const t=n.$implicit,r=$e(12);let i;d(5),y(" ",C(6,4,null!==(i=t.title)&&void 0!==i?i:t.name)," "),d(3),g("ngIf",!0===t.unique),d(2),g("ngIf","textarea"!==t.type&&"checkbox"!==t.type&&"selectbox"!==t.type)("ngIfElse",r)}}function qV(e,n){if(1&e){const t=he();f(0,"div",18)(1,"div",43)(2,"button",44),$("click",function(){return K(t),Q(D(2).submit())}),v(3),b(4,"translate"),h(),f(5,"button",45),$("click",function(){return K(t),Q(D(2).loadSettings())}),v(6),b(7,"translate"),h()()()}2&e&&(d(3),y(" ",C(4,2,"submit")," "),d(3),y(" ",C(7,4,"reset")," "))}function WV(e,n){1&e&&S(0,"app-success-alert",47),2&e&&g("title","operation-successful")("dismissable",!1)}function YV(e,n){1&e&&S(0,"app-error-alert",47),2&e&&g("title","operation-error")("dismissable",!1)}function KV(e,n){if(1&e&&(k(0,WV,1,2,"app-success-alert",46),k(1,YV,1,2,"app-error-alert",46)),2&e){const t=D(2);g("ngIf",!0===t.submitResult),d(1),g("ngIf",!1===t.submitResult)}}function QV(e,n){if(1&e&&(f(0,"div",12)(1,"form",13)(2,"div",14),k(3,zV,13,6,"div",15),k(4,qV,8,6,"div",16),k(5,KV,2,2,"ng-template",null,17,Yt),h()()()),2&e){const t=$e(6),r=D();d(1),g("formGroup",r.settingsForm),d(2),g("ngForOf",r.SETTINGS_FIELD),d(1),g("ngIf",void 0===r.submitResult)("ngIfElse",t)}}let XV=(()=>{class e{constructor(t){this.appService=t,this.SETTINGS_FIELD=[{name:"app_mode",title:"app_mode",type:"text",blueprintFormControl:new re("",[Ge.required])},{name:"backup",title:"backup",type:"checkbox",blueprintFormControl:new re("",[Ge.required])},{name:"current_project_path",title:"current_project_path",type:"text",blueprintFormControl:new re("",[Ge.required])},{name:"use_localtime",title:"use_localtime",type:"checkbox",blueprintFormControl:new re("",[Ge.required])},{name:"vault_path",title:"vault_path",type:"text",blueprintFormControl:new re("",[Ge.required])},{name:"verbose",title:"verbose",type:"checkbox",blueprintFormControl:new re("",[Ge.required])}]}ngOnInit(){this.loadSettings()}loadSettings(){this.appService.getSettings().then(t=>{t.subscribe({next:r=>{this.createForm(r)}})})}createForm(t){this.settingsForm=new An({}),this.SETTINGS_FIELD.forEach(r=>{const i=new re(t[r.name],r.blueprintFormControl.validator,r.blueprintFormControl.asyncValidator);this.settingsForm.addControl(r.name,i)})}submit(){this.settingsForm&&this.settingsForm.valid&&(this.submitResult=void 0,this.appService.updateSettings(this.settingsForm.value).then(t=>{t.subscribe({next:r=>{this.submitResult=!!r,this.settingsForm?.markAsPristine(),setTimeout(()=>{this.submitResult=void 0},zt.alertTimeout)}})}))}}return e.\u0275fac=function(t){return new(t||e)(O(Hu))},e.\u0275cmp=De({type:e,selectors:[["app-settings"]],decls:15,vars:4,consts:[["id","basic-horizontal-layouts"],[1,"row","match-height"],[1,"col-12"],[1,"card"],[1,"card-header"],[1,"row","justify-content-between"],[1,"col-auto"],[1,"card-title"],[1,"btn","icon","btn-light",3,"click"],[1,"bi","bi-box-arrow-up-right"],[1,"card-content"],["class","card-body",4,"ngIf"],[1,"card-body"],[1,"form","form-horizontal",3,"formGroup"],[1,"form-body"],["class","row",4,"ngFor","ngForOf"],["class","row",4,"ngIf","ngIfElse"],["showSubmitResult",""],[1,"row"],[1,"col-md-4"],["class","bi bi-1-square-fill","data-bs-toggle","tooltip","data-bs-placement","top",3,"title",4,"ngIf"],[1,"col-md-8","form-group"],[4,"ngIf","ngIfElse"],["otherTypes",""],["data-bs-toggle","tooltip","data-bs-placement","top",1,"bi","bi-1-square-fill",3,"title"],[1,"form-control",3,"type","name","placeholder","formControlName"],["input",""],["class","form-check form-switch",4,"ngIf"],[1,"form-check","form-switch"],["type","checkbox",1,"form-check-input",3,"change"],[1,"form-check-label"],[4,"ngIf"],[1,"form-group","mb-3"],["rows","5",1,"form-control",3,"formControlName"],[1,"form-check"],[1,"checkbox"],["type","checkbox",1,"form-check-input","cursor-pointer",3,"name","placeholder","formControlName"],[1,"input-group","mb-3"],[1,"input-group-text"],[1,"form-select",3,"formControlName"],["selected","","value",""],[3,"ngValue",4,"ngFor","ngForOf"],[3,"ngValue"],[1,"col-sm-12","d-flex","justify-content-end"],["type","button",1,"btn","btn-primary","me-1","mb-1",3,"click"],["type","button",1,"btn","btn-light-secondary","me-1","mb-1",3,"click"],[3,"title","dismissable",4,"ngIf"],[3,"title","dismissable"]],template:function(t,r){1&t&&(f(0,"section",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"div",5)(6,"div",6)(7,"h4",7),v(8),b(9,"translate"),h()(),f(10,"div",6)(11,"button",8),$("click",function(){return r.appService.openSettings()}),S(12,"i",9),h()()()(),f(13,"div",10),k(14,QV,7,4,"div",11),h()()()()()),2&t&&(d(8),y(" ",C(9,2,"settings")," "),d(6),g("ngIf",r.settingsForm))},dependencies:[Mn,He,Vr,cl,ul,or,uo,ws,Pr,Lr,sr,vr,Es,sg,Xe]}),e})(),ZV=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=De({type:e,selectors:[["app-server-error"]],decls:11,vars:6,consts:[["id","error"],[1,"error-page","container"],[1,"col-md-8","col-12","offset-md-2"],[1,"text-center"],["src","./assets/svg/error-500.svg","alt","Server error",1,"img-error"],[1,"error-title"],["href","index.html",1,"btn","btn-lg","btn-outline-primary","mt-3"]],template:function(t,r){1&t&&(f(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),S(4,"img",4),f(5,"h1",5),v(6),b(7,"translate"),h(),f(8,"a",6),v(9),b(10,"translate"),h()()()()()),2&t&&(d(6),y(" ",C(7,2,"server-error")," "),d(3),y(" ",C(10,4,"go-home")," "))},dependencies:[Xe]}),e})();function JV(e,n){if(1&e){const t=he();Ae(0),f(1,"app-task-preview",2),$("onAddAssignment",function(){K(t);const i=D();return Q(i.loadTaskById(i.task.id))})("onAddLabel",function(){K(t);const i=D();return Q(i.loadTaskById(i.task.id))})("onDeletion",function(){K(t);const i=D();return Q(i.loadTaskById(i.task.id))})("onModify",function(){K(t);const i=D();return Q(i.loadTaskById(i.task.id))})("onRemoveAssignment",function(){K(t);const i=D();return Q(i.loadTaskById(i.task.id))})("onRemoveLabel",function(){K(t);const i=D();return Q(i.loadTaskById(i.task.id))}),h(),xe()}if(2&e){const t=D();d(1),g("task",t.task)("todoCollapseStatus",!0)}}function e4(e,n){1&e&&S(0,"app-warning-alert",3),2&e&&g("dismissable",!1)}const t4=[{path:"",redirectTo:"/home",pathMatch:"full"},{path:"home",component:BL},{path:"dashboard",component:yL,canActivate:[Vi]},{path:"task/:id",component:(()=>{class e{constructor(t,r){this.taskService=t,this.activatedRoute=r}ngOnInit(){this.paramsSubscription=this.activatedRoute.paramMap.subscribe({next:t=>{const r=t.get("id");r&&this.loadTaskById(+r)}})}loadTaskById(t){this.task=void 0,this.taskService.find(t).then(r=>{r.subscribe({next:i=>{i&&(this.task=i)}})})}ngOnDestroy(){this.paramsSubscription?.unsubscribe()}}return e.\u0275fac=function(t){return new(t||e)(O(fl),O(ao))},e.\u0275cmp=De({type:e,selectors:[["app-task"]],decls:3,vars:2,consts:[[4,"ngIf","ngIfElse"],["noTask",""],[3,"task","todoCollapseStatus","onAddAssignment","onAddLabel","onDeletion","onModify","onRemoveAssignment","onRemoveLabel"],["title","no-task",3,"dismissable"]],template:function(t,r){if(1&t&&(k(0,JV,2,2,"ng-container",0),k(1,e4,1,1,"ng-template",null,1,Yt)),2&t){const i=$e(2);g("ngIf",!!r.task)("ngIfElse",i)}},dependencies:[He,RD,Gu]}),e})(),canActivate:[Vi]},{path:"login",component:EL},{path:"settings",component:XV},{path:"my-profile",component:$L,canActivate:[Vi]},{path:"manage-task-status",component:uV,canActivate:[Vi,pl],data:{roleRequired:"permission_manage_task_status"}},{path:"manage-task-labels",component:fV,canActivate:[Vi,pl],data:{roleRequired:"permission_manage_task_labels"}},{path:"manage-users",component:pV,canActivate:[Vi,pl],data:{roleRequired:"permission_manage_users"}},{path:"manage-roles",component:mV,canActivate:[Vi,pl],data:{roleRequired:"permission_manage_roles"}},{path:"repo",component:PV},{path:"server-error",component:ZV},{path:"**",component:vN}];let n4=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Kn({type:e}),e.\u0275inj=Rn({providers:[Vi,pl],imports:[gw.forRoot(t4,{useHash:!0}),gw]}),e})();function r4(e,n){if(1&e&&(f(0,"span"),v(1),h()),2&e){const t=D();d(1),y(" (v",t.version,") ")}}let i4=(()=>{class e{constructor(t,r){this.appService=t,this.utilsService=r,this.appName=zt.appName}ngOnInit(){this.loadVersion()}close(){this.appService.close().then(()=>{window.close()})}loadVersion(){this.appService.version().then(t=>{t.subscribe({next:r=>{this.version=r}})})}}return e.\u0275fac=function(t){return new(t||e)(O(Hu),O(Ni))},e.\u0275cmp=De({type:e,selectors:[["app-footer"]],decls:13,vars:8,consts:[[2,"margin","0 10vw 5vh 10vw"],[1,"footer","clearfix","mb-0","text-muted"],[1,"float-start"],[4,"ngIf"],[1,"float-end"],["type","button",1,"btn","icon","btn-light",3,"click"],[1,"bi","bi-arrow-clockwise"],[3,"centered","target","title","confirmBtn","confirmBtnTxt","borderless","onConfirm"]],template:function(t,r){1&t&&(f(0,"footer",0)(1,"div",1)(2,"div",2)(3,"p"),v(4," 2023 \xa9 "),f(5,"strong"),v(6),h(),k(7,r4,2,1,"span",3),v(8," developed by Nicola Ricciardi "),h()(),f(9,"div",4)(10,"button",5),$("click",function(){return r.utilsService.reload()}),S(11,"i",6),h(),f(12,"app-dialog-modal",7),$("onConfirm",function(){return r.close()}),h()()()()),2&t&&(d(6),Fr(r.appName),d(1),g("ngIf",!!r.version),d(5),g("centered",!0)("target","close-app-modal")("title","close-app-request")("confirmBtn",!0)("confirmBtnTxt","confirm")("borderless",!0))},dependencies:[He,hl]}),e})();const o4=function(){return["/manage-task-status"]};function s4(e,n){1&e&&(f(0,"li",25)(1,"a",26),S(2,"i",34),f(3,"span"),v(4),b(5,"translate"),h()()()),2&e&&(Qe("active",D().urlIncludes("manage-task-status")),d(1),g("routerLink",It(6,o4)),d(3),y(" ",C(5,4,"manage-task-status")," "))}const a4=function(){return["/manage-task-labels"]};function l4(e,n){1&e&&(f(0,"li",25)(1,"a",26),S(2,"i",35),f(3,"span"),v(4),b(5,"translate"),h()()()),2&e&&(Qe("active",D().urlIncludes("manage-task-labels")),d(1),g("routerLink",It(6,a4)),d(3),y(" ",C(5,4,"manage-task-labels")," "))}const c4=function(){return["/manage-users"]};function u4(e,n){1&e&&(f(0,"li",25)(1,"a",26),S(2,"i",36),f(3,"span"),v(4),b(5,"translate"),h()()()),2&e&&(Qe("active",D().urlIncludes("manage-users")),d(1),g("routerLink",It(6,c4)),d(3),y(" ",C(5,4,"manage-users")," "))}const d4=function(){return["/manage-roles"]};function f4(e,n){1&e&&(f(0,"li",25)(1,"a",26),S(2,"i",37),f(3,"span"),v(4),b(5,"translate"),h()()()),2&e&&(Qe("active",D().urlIncludes("manage-roles")),d(1),g("routerLink",It(6,d4)),d(3),y(" ",C(5,4,"manage-roles")," "))}const h4=function(){return["/"]},p4=function(){return["/home"]},g4=function(){return["/dashboard"]},m4=function(){return["/repo"]},_4=function(){return["/settings"]};let v4=(()=>{class e{constructor(t,r){this.router=t,this.authService=r,this.appName=zt.appName,this.authService.refreshMe()}urlIncludes(t){return this.router.url.includes(t)}}return e.\u0275fac=function(t){return new(t||e)(O(jt),O(Un))},e.\u0275cmp=De({type:e,selectors:[["app-sidebar"]],decls:65,vars:44,consts:[[1,"sidebar-wrapper","active"],[1,"sidebar-header","position-relative"],[1,"d-flex","justify-content-between","align-items-center"],[1,"logo"],["routerLinkActive","router-link-active",3,"routerLink"],[1,"text-capitalized"],[1,"theme-toggle","d-flex","gap-2","align-items-center","mt-2"],["xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/1999/xlink","aria-hidden","true","role","img","width","20","height","20","preserveAspectRatio","xMidYMid meet","viewBox","0 0 21 21",1,"iconify","iconify--system-uicons"],["fill","none","fill-rule","evenodd","stroke","currentColor","stroke-linecap","round","stroke-linejoin","round"],["d","M10.5 14.5c2.219 0 4-1.763 4-3.982a4.003 4.003 0 0 0-4-4.018c-2.219 0-4 1.781-4 4c0 2.219 1.781 4 4 4zM4.136 4.136L5.55 5.55m9.9 9.9l1.414 1.414M1.5 10.5h2m14 0h2M4.135 16.863L5.55 15.45m9.899-9.9l1.414-1.415M10.5 19.5v-2m0-14v-2","opacity",".3"],["transform","translate(-210 -1)"],["d","M220.5 2.5v2m6.5.5l-1.5 1.5"],["cx","220.5","cy","11.5","r","4"],["d","m214 5l1.5 1.5m5 14v-2m6.5-.5l-1.5-1.5M214 18l1.5-1.5m-4-5h2m14 0h2"],[1,"form-check","form-switch","fs-6"],["type","checkbox","id","toggle-dark",1,"form-check-input","me-0",2,"cursor","pointer"],[1,"form-check-label"],["xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/1999/xlink","aria-hidden","true","role","img","width","20","height","20","preserveAspectRatio","xMidYMid meet","viewBox","0 0 24 24",1,"iconify","iconify--mdi"],["fill","currentColor","d","m17.75 4.09l-2.53 1.94l.91 3.06l-2.63-1.81l-2.63 1.81l.91-3.06l-2.53-1.94L12.44 4l1.06-3l1.06 3l3.19.09m3.5 6.91l-1.64 1.25l.59 1.98l-1.7-1.17l-1.7 1.17l.59-1.98L15.75 11l2.06-.05L18.5 9l.69 1.95l2.06.05m-2.28 4.95c.83-.08 1.72 1.1 1.19 1.85c-.32.45-.66.87-1.08 1.27C15.17 23 8.84 23 4.94 19.07c-3.91-3.9-3.91-10.24 0-14.14c.4-.4.82-.76 1.27-1.08c.75-.53 1.93.36 1.85 1.19c-.27 2.86.69 5.83 2.89 8.02a9.96 9.96 0 0 0 8.02 2.89m-1.64 2.02a12.08 12.08 0 0 1-7.8-3.47c-2.17-2.19-3.33-5-3.49-7.82c-2.81 3.14-2.7 7.96.31 10.98c3.02 3.01 7.84 3.12 10.98.31Z"],[1,"sidebar-toggler","x"],["href","javascript:void(0)",1,"sidebar-hide","d-xl-none","d-block"],[1,"bi","bi-x","bi-middle"],[1,"sidebar-menu"],[1,"menu"],[1,"sidebar-title"],[1,"sidebar-item"],["routerLinkActive","router-link-active",1,"sidebar-link",3,"routerLink"],[1,"bi","bi-house-fill"],[1,"bi","bi-grid-fill"],[1,"bi","bi-git"],["class","sidebar-item",3,"active",4,"ngIf"],[1,"bi","bi-gear-fill"],["href","https://github.com/nricciardi/taskup","target","_blank",1,"sidebar-link"],[1,"bi","bi-life-preserver"],[1,"bi","bi-kanban-fill"],[1,"bi","bi-bookmarks-fill"],[1,"bi","bi-people-fill"],[1,"bi","bi-diagram-3-fill"]],template:function(t,r){1&t&&(f(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"a",4)(5,"span",5),v(6),h()()(),f(7,"div",6),md(),f(8,"svg",7)(9,"g",8),S(10,"path",9),f(11,"g",10),S(12,"path",11)(13,"circle",12)(14,"path",13),h()()(),_d(),f(15,"div",14),S(16,"input",15)(17,"label",16),h(),md(),f(18,"svg",17),S(19,"path",18),h()(),_d(),f(20,"div",19)(21,"a",20),S(22,"i",21),h()()()(),f(23,"div",22)(24,"ul",23)(25,"li",24),v(26),b(27,"translate"),h(),f(28,"li",25)(29,"a",26),S(30,"i",27),f(31,"span"),v(32),b(33,"translate"),h()()(),f(34,"li",25)(35,"a",26),S(36,"i",28),f(37,"span"),v(38),b(39,"translate"),h()()(),f(40,"li",25)(41,"a",26),S(42,"i",29),f(43,"span"),v(44),b(45,"translate"),h()()(),k(46,s4,6,7,"li",30),k(47,l4,6,7,"li",30),k(48,u4,6,7,"li",30),k(49,f4,6,7,"li",30),f(50,"li",25)(51,"a",26),S(52,"i",31),f(53,"span"),v(54),b(55,"translate"),h()()(),f(56,"li",24),v(57),b(58,"translate"),h(),f(59,"li",25)(60,"a",32),S(61,"i",33),f(62,"span"),v(63),b(64,"translate"),h()()()()()()),2&t&&(d(4),g("routerLink",It(39,h4)),d(2),y(" ",r.appName," "),d(20),y(" ",C(27,25,"menu")," "),d(2),Qe("active",r.urlIncludes("home")),d(1),g("routerLink",It(40,p4)),d(3),y(" ",C(33,27,"home")," "),d(2),Qe("active",r.urlIncludes("dashboard")),d(1),g("routerLink",It(41,g4)),d(3),y(" ",C(39,29,"dashboard")," "),d(2),Qe("active",r.urlIncludes("repo")),d(1),g("routerLink",It(42,m4)),d(3),y(" ",C(45,31,"repo")," "),d(2),g("ngIf",r.authService.loggedUser&&(null==r.authService.loggedUser.role?null:r.authService.loggedUser.role.permission_manage_task_status)),d(1),g("ngIf",r.authService.loggedUser&&(null==r.authService.loggedUser.role?null:r.authService.loggedUser.role.permission_manage_task_labels)),d(1),g("ngIf",r.authService.loggedUser&&(null==r.authService.loggedUser.role?null:r.authService.loggedUser.role.permission_manage_users)),d(1),g("ngIf",r.authService.loggedUser&&(null==r.authService.loggedUser.role?null:r.authService.loggedUser.role.permission_manage_roles)),d(1),Qe("active",r.urlIncludes("settings")),d(1),g("routerLink",It(43,_4)),d(3),y(" ",C(55,33,"settings")," "),d(3),y(" ",C(58,35,"raise-support")," "),d(6),y(" ",C(64,37,"documentation")," "))},dependencies:[He,nl,Mp,Xe]}),e})();const y4=["throwErrorLogoutModal"];function b4(e,n){1&e&&(f(0,"li",37)(1,"a",38),S(2,"i",39),h(),f(3,"ul",40)(4,"li")(5,"h6",41),v(6,"Mail"),h()(),f(7,"li")(8,"a",42),v(9,"No new mail"),h()()()())}function C4(e,n){1&e&&(f(0,"li",43)(1,"a",44),S(2,"i",45),f(3,"span",46),v(4,"7"),h()(),f(5,"ul",47)(6,"li",41)(7,"h6"),v(8,"Notifications"),h()(),f(9,"li",48)(10,"a",49)(11,"div",50),S(12,"i",51),h(),f(13,"div",52)(14,"p",53),v(15," Successfully check out "),h(),f(16,"p",54),v(17," Order ID #256 "),h()()()(),f(18,"li",48)(19,"a",49)(20,"div",55),S(21,"i",56),h(),f(22,"div",52)(23,"p",53),v(24," Homework submitted "),h(),f(25,"p",54),v(26," Algebra math homework "),h()()()(),f(27,"li")(28,"p",57)(29,"a",58),v(30,"See all notification"),h()()()()())}function w4(e,n){if(1&e&&S(0,"app-text-avatar",59),2&e){const t=D(2);g("color",t.userLogged.avatar_hex_color)("text",t.utilsService.getAvatarText(t.userLogged))("tooltip",t.userLogged.username)}}function D4(e,n){if(1&e&&(f(0,"li")(1,"h6",41),v(2),b(3,"translate"),h()()),2&e){const t=D(2);d(2),ya("",C(3,2,"hello"),", ",t.userLogged.name,"!")}}const E4=function(){return["/my-profile"]},S4=function(){return["/settings"]};function T4(e,n){if(1&e){const t=he();f(0,"div",17)(1,"ul",18),k(2,b4,10,0,"li",19),k(3,C4,31,0,"li",20),h(),f(4,"div",21)(5,"a",22)(6,"div",23)(7,"div",24)(8,"h6",25),v(9),h(),f(10,"p",26),v(11),h()(),f(12,"div",27),k(13,w4,1,3,"app-text-avatar",28),h()()(),f(14,"ul",29),k(15,D4,4,4,"li",30),f(16,"li")(17,"a",31),S(18,"i",32),v(19),b(20,"translate"),h()(),f(21,"li")(22,"button",31),S(23,"i",33),v(24),b(25,"translate"),h()(),f(26,"li"),S(27,"hr",34),h(),f(28,"li")(29,"button",35),$("click",function(){return K(t),Q(D().logout())}),S(30,"i",36),v(31),b(32,"translate"),h()()()()()}if(2&e){const t=D();d(2),g("ngIf",!1),d(1),g("ngIf",!1),d(6),y(" ",t.userLogged.username," "),d(2),y(" ",null==t.userLogged.role?null:t.userLogged.role.name," "),d(2),g("ngIf",t.userLogged),d(2),g("ngIf",t.userLogged.name),d(2),g("routerLink",It(17,E4)),d(2),y(" ",C(20,11,"my-profile")," "),d(3),g("routerLink",It(18,S4)),d(2),y(" ",C(25,13,"settings")," "),d(7),y(" ",C(32,15,"logout")," ")}}const I4=function(){return["/login"]};function M4(e,n){1&e&&(f(0,"a",60),v(1),b(2,"translate"),h()),2&e&&(g("routerLink",It(4,I4)),d(1),y(" ",C(2,2,"login")," "))}let A4=(()=>{class e{constructor(t,r,i,o){this.authService=t,this.router=r,this.utilsService=i,this.appService=o,this.userLogged=null}ngOnInit(){this.authService.observeMe().subscribe({next:t=>{this.userLogged=t},error:t=>{Et.logError(t)}}),this.authService.refreshMe()}logout(){this.authService.logout().then(t=>{this.router.navigate(["/login"])}).catch(t=>{this.throwErrorLogoutModal?.nativeElement.click()})}}return e.\u0275fac=function(t){return new(t||e)(O(Un),O(jt),O(Ni),O(Hu))},e.\u0275cmp=De({type:e,selectors:[["app-header"]],viewQuery:function(t,r){if(1&t&&Ia(y4,5),2&t){let i;os(i=ss())&&(r.throwErrorLogoutModal=i.first)}},decls:21,vars:5,consts:[[1,"navbar","navbar-expand","navbar-light","navbar-top"],[1,"container-fluid"],["href","javascript:void(0)",1,"burger-btn","d-block"],[1,"bi","bi-justify","fs-3"],["type","button","data-bs-toggle","collapse","data-bs-target","#navbarSupportedContent","aria-controls","navbarSupportedContent","aria-expanded","false","aria-label","Toggle navigation",1,"navbar-toggler"],[1,"navbar-toggler-icon"],["class","collapse navbar-collapse","id","navbarSupportedContent",4,"ngIf","ngIfElse"],["loginBtn",""],["type","button","data-bs-toggle","modal","data-bs-target","#logoutErrorModal",1,"btn","btn-outline-danger",2,"display","none"],["throwErrorLogoutModal",""],["id","logoutErrorModal","tabindex","-1","role","dialog","aria-labelledby","myModalLabel120","aria-hidden","true",1,"modal","fade","text-left"],["role","document",1,"modal-dialog","modal-dialog-centered","modal-dialog-scrollable"],[1,"modal-content"],[1,"modal-header","bg-danger"],["id","myModalLabel120",1,"modal-title","white"],["type","button","data-bs-dismiss","modal","aria-label","Close",1,"close"],["data-feather","x"],["id","navbarSupportedContent",1,"collapse","navbar-collapse"],[1,"navbar-nav","ms-auto","mb-lg-0"],["class","nav-item dropdown me-1",4,"ngIf"],["class","nav-item dropdown me-3",4,"ngIf"],[1,"dropdown"],["href","#","data-bs-toggle","dropdown","aria-expanded","false"],[1,"user-menu","d-flex"],[1,"user-name","text-end","me-3"],[1,"mb-0","text-gray-600"],[1,"mb-0","text-sm","text-gray-600"],[1,"user-img","d-flex","align-items-center"],["class","cursor-arrow",3,"color","text","tooltip",4,"ngIf"],["aria-labelledby","dropdownMenuButton",1,"dropdown-menu","dropdown-menu-end",2,"min-width","11rem"],[4,"ngIf"],["routerLinkActive","router-link-active",1,"dropdown-item",3,"routerLink"],[1,"icon-mid","bi","bi-person","me-2"],[1,"icon-mid","bi","bi-gear","me-2"],[1,"dropdown-divider"],[1,"dropdown-item",3,"click"],[1,"icon-mid","bi","bi-box-arrow-left","me-2"],[1,"nav-item","dropdown","me-1"],["href","#","data-bs-toggle","dropdown","aria-expanded","false",1,"nav-link","active","dropdown-toggle","text-gray-600"],[1,"bi","bi-envelope","bi-sub","fs-4"],["aria-labelledby","dropdownMenuButton",1,"dropdown-menu","dropdown-menu-end"],[1,"dropdown-header"],["href","#",1,"dropdown-item"],[1,"nav-item","dropdown","me-3"],["href","#","data-bs-toggle","dropdown","data-bs-display","static","aria-expanded","false",1,"nav-link","active","dropdown-toggle","text-gray-600"],[1,"bi","bi-bell","bi-sub","fs-4"],[1,"badge","badge-notification","bg-danger"],["aria-labelledby","dropdownMenuButton",1,"dropdown-menu","dropdown-menu-end","notification-dropdown"],[1,"dropdown-item","notification-item"],["href","#",1,"d-flex","align-items-center"],[1,"notification-icon","bg-primary"],[1,"bi","bi-cart-check"],[1,"notification-text","ms-4"],[1,"notification-title","font-bold"],[1,"notification-subtitle","font-thin","text-sm"],[1,"notification-icon","bg-success"],[1,"bi","bi-file-earmark-check"],[1,"text-center","py-2","mb-0"],["href","#"],[1,"cursor-arrow",3,"color","text","tooltip"],["routerLinkActive","router-link-active",1,"btn","btn-outline-primary",3,"routerLink"]],template:function(t,r){if(1&t&&(f(0,"header")(1,"nav",0)(2,"div",1)(3,"a",2),S(4,"i",3),h(),f(5,"button",4),S(6,"span",5),h(),k(7,T4,33,19,"div",6),k(8,M4,3,5,"ng-template",null,7,Yt),h()()(),S(10,"button",8,9),f(12,"div",10)(13,"div",11)(14,"div",12)(15,"div",13)(16,"h5",14),v(17),b(18,"translate"),h(),f(19,"button",15),S(20,"i",16),h()()()()()),2&t){const i=$e(9);d(7),g("ngIf",r.userLogged)("ngIfElse",i),d(10),y(" ",C(18,3,"logout-error")," ")}},dependencies:[He,nl,Mp,ju,Xe]}),e})(),x4=(()=>{class e{constructor(t){this.translate=t,this.title="frontend",t.addLangs(["en","it"]),this.setBrowserDefaultLanguage()}switchLanguage(t){this.translate.use(t)}setBrowserDefaultLanguage(){const t=this.translate.getBrowserLang();t&&this.translate.setDefaultLang(t)}}return e.\u0275fac=function(t){return new(t||e)(O(Iu))},e.\u0275cmp=De({type:e,selectors:[["app-root"]],decls:8,vars:0,consts:[["id","app"],["id","sidebar"],["id","main",1,"layout-navbar","navbar-fixed"],["id","main-content"]],template:function(t,r){1&t&&(f(0,"div",0)(1,"div",1),S(2,"app-sidebar"),h(),f(3,"div",2),S(4,"app-header"),f(5,"div",3),S(6,"router-outlet"),h(),S(7,"app-footer"),h()())},dependencies:[vp,i4,v4,A4]}),e})();class k4{constructor(n,t="/assets/i18n/",r=".json"){this.http=n,this.prefix=t,this.suffix=r}getTranslation(n){return this.http.get(`${this.prefix}${n}${this.suffix}`)}}let F4=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Kn({type:e,bootstrap:[x4]}),e.\u0275inj=Rn({imports:[sF,n4,PF,mP,_N.forRoot({defaultLanguage:"en",useDefaultLang:!0,loader:{provide:il,useFactory:n=>new k4(n,"./assets/i18n/",".json"),deps:[Y1]}})]}),e})();oF().bootstrapModule(F4).catch(e=>console.error(e))},321:()=>{"use strict";const ci=":";class Wt extends Error{constructor(A){super(`No translation found for ${we(A)}.`),this.parsedMessage=A,this.type="MissingTranslationError"}}const br=function(F,...A){if(br.translate){const G=br.translate(F,A);F=G[0],A=G[1]}let L=Cl(F[0],F.raw[0]);for(let G=1;Gtypeof globalThis<"u"&&globalThis||typeof global<"u"&&global||typeof window<"u"&&window||typeof self<"u"&&typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&self)().$localize=br}},ci=>{var Bi=Be=>ci(ci.s=Be);Bi(321),Bi(34)}]); \ No newline at end of file diff --git a/lib/app/app.py b/lib/app/app.py index 359fb36..6b30c9e 100644 --- a/lib/app/app.py +++ b/lib/app/app.py @@ -15,7 +15,7 @@ class AppManager: APP_NAME: str = "Taskup" - VERSION: str = "1.1.14" + VERSION: str = "1.1.15" SHUTDOWN_DELAY = 3 # seconds SHUTDOWN_DELAY_IN_DEBUG_MODE = 600 # seconds