From 6fac06c45c2a438a9b18bc1474167a7a4a15fecf Mon Sep 17 00:00:00 2001 From: nzbin Date: Mon, 13 May 2024 13:39:53 +0800 Subject: [PATCH] Auto-generated commit --- 404.html | 4 ++-- chunk-6WZZ46AZ.js => chunk-4XD35S3H.js | 2 +- chunk-MEF36C2D.js => chunk-DD2MDBBK.js | 2 +- chunk-T536VJ3P.js => chunk-ESIQUWL4.js | 2 +- chunk-C72PJ6WQ.js => chunk-F7CT2PNO.js | 2 +- chunk-TFWC5DLU.js => chunk-I3N7HK3P.js | 2 +- chunk-IKKDCCDB.js => chunk-I7NLANIE.js | 2 +- index.html | 4 ++-- main-YS7SZDCX.js => main-OYJMY7TK.js | 4 ++-- 9 files changed, 12 insertions(+), 12 deletions(-) rename chunk-6WZZ46AZ.js => chunk-4XD35S3H.js (98%) rename chunk-MEF36C2D.js => chunk-DD2MDBBK.js (99%) rename chunk-T536VJ3P.js => chunk-ESIQUWL4.js (98%) rename chunk-C72PJ6WQ.js => chunk-F7CT2PNO.js (97%) rename chunk-TFWC5DLU.js => chunk-I3N7HK3P.js (98%) rename chunk-IKKDCCDB.js => chunk-I7NLANIE.js (90%) rename main-YS7SZDCX.js => main-OYJMY7TK.js (99%) diff --git a/404.html b/404.html index e956cfd..0eb1885 100644 --- a/404.html +++ b/404.html @@ -8,8 +8,8 @@ + - + diff --git a/chunk-6WZZ46AZ.js b/chunk-4XD35S3H.js similarity index 98% rename from chunk-6WZZ46AZ.js rename to chunk-4XD35S3H.js index 4d73326..e2f8844 100644 --- a/chunk-6WZZ46AZ.js +++ b/chunk-4XD35S3H.js @@ -1,4 +1,4 @@ -import{b as p,c as g,e as c}from"./chunk-IKKDCCDB.js";import{$a as n,Ga as a,Pa as e,Qa as t,Ra as l,X as s,gb as u,hb as o,qa as r}from"./chunk-I5MCOHXJ.js";import"./chunk-CWTPBX7D.js";var f=()=>["bash"],x=()=>["scss"],S=()=>["diff"],E=()=>["ts"],D=(()=>{let i=class i{};i.\u0275fac=function(m){return new(m||i)},i.\u0275cmp=s({type:i,selectors:[["app-getting-started"]],standalone:!0,features:[u],decls:92,vars:9,consts:[["subtitle","Add Acrodata GUI to your project.",3,"title"],["id","installation"],["href","getting-started#installation"],["highlight","npm install @angular/material @ng-matero/extensions @acrodata/gui --save",3,"languages"],["id","setup"],["href","getting-started#setup"],["href","https://material.angular.io/guide/theming","target","_blank"],["highlight",`@use '@angular/material' as mat; +import{b as p,c as g,e as c}from"./chunk-I7NLANIE.js";import{$a as n,Ga as a,Pa as e,Qa as t,Ra as l,X as s,gb as u,hb as o,qa as r}from"./chunk-I5MCOHXJ.js";import"./chunk-CWTPBX7D.js";var f=()=>["bash"],x=()=>["scss"],S=()=>["diff"],E=()=>["ts"],D=(()=>{let i=class i{};i.\u0275fac=function(m){return new(m||i)},i.\u0275cmp=s({type:i,selectors:[["app-getting-started"]],standalone:!0,features:[u],decls:92,vars:9,consts:[["subtitle","Add Acrodata GUI to your project.",3,"title"],["id","installation"],["href","getting-started#installation"],["highlight","npm install @angular/material @ng-matero/extensions @acrodata/gui --save",3,"languages"],["id","setup"],["href","getting-started#setup"],["href","https://material.angular.io/guide/theming","target","_blank"],["highlight",`@use '@angular/material' as mat; @use '@acrodata/gui' as gui; @include mat.core(); diff --git a/chunk-MEF36C2D.js b/chunk-DD2MDBBK.js similarity index 99% rename from chunk-MEF36C2D.js rename to chunk-DD2MDBBK.js index 92ecd8d..e7da03b 100644 --- a/chunk-MEF36C2D.js +++ b/chunk-DD2MDBBK.js @@ -1 +1 @@ -import{d as I,e as W}from"./chunk-IKKDCCDB.js";import{$a as i,Ga as o,Mb as M,Nb as S,Ob as y,Pa as t,Qa as l,Ra as r,Ta as p,X as _,cb as c,db as f,eb as h,ec as T,fc as w,gb as v,gc as x,hc as B,ic as E,qa as n}from"./chunk-I5MCOHXJ.js";import{a as u,b}from"./chunk-CWTPBX7D.js";var H=(()=>{let d=class d{constructor(){this.textConfig={content:{type:"text",name:"Content",default:"Hello world",description:"I am description",prefix:"\u{1F44B}",suffix:"\u{1F496}"}},this.numberConfig={opacity:{type:"number",name:"Opacity",default:.33,min:0,max:1,step:.01}},this.switchConfig={visible:{type:"switch",name:"Visible",default:!1}},this.sliderConfig={temperature:{type:"slider",name:"Temperature",mode:"normal",default:30,min:0,max:100,step:5,suffix:"\xB0C"}},this.isRangeSlider=!1,this.fillConfig={color:{type:"fill",name:"Color",default:"#ff0055"}},this.selectConfig={font:{type:"select",name:"Font",default:"arial",multiple:!1,useFont:!0,options:[{value:"arial",label:"Arial"},{value:"fantasy",label:"Fantasy"},{value:"monospace",label:"Monospace"}]}},this.isMultiSelect=!1,this.buttonToggleConfig={textAlign:{type:"buttonToggle",name:"Align",default:"right",multiple:!1,options:[{value:"left",label:"Left"},{value:"center",label:"Center"},{value:"right",label:"Right"}]}},this.isMultiButtonToggle=!1,this.useIcon=0,this.buttonToggleConfig2={direction:{type:"buttonToggle",name:"Direction",default:"c",options:[{value:"nw",label:"NW",col:33.33},{value:"n",label:"N",col:33.33},{value:"ne",label:"NE",col:33.33},{value:"w",label:"W",col:33.33},{value:"c",label:"C",col:33.33},{value:"e",label:"E",col:33.33},{value:"sw",label:"SW",col:33.33},{value:"s",label:"S",col:33.33},{value:"se",label:"SE",col:33.33}]}},this.imageSelectConfig={background:{type:"imageSelect",name:"Background",default:"img1",options:[{label:"img1",value:"img1",src:"./assets/images/icon3d1.webp"},{label:"img2",value:"img2",src:"./assets/images/icon3d2.webp"},{label:"img3",value:"img3",src:"./assets/images/icon3d3.webp"}]}},this.textareaConfig={foo:{type:"textarea",name:"Foo",default:"I am a textarea",rows:3}},this.hiddenConfig={id:{type:"hidden",name:"ID",default:1}}}toggleRangeSlider(){let{temperature:g}=this.sliderConfig;g.mode=this.isRangeSlider?"range":"normal",g.default=this.isRangeSlider?[20,60]:30,this.sliderConfig=u({},this.sliderConfig)}toggleMultiSelect(){let{font:g}=this.selectConfig;g.multiple=this.isMultiSelect,g.default=this.isMultiSelect?[]:"arial",this.selectConfig=u({},this.selectConfig)}toggleMultiButtonToggle(){let{textAlign:g}=this.buttonToggleConfig;g.multiple=this.isMultiButtonToggle,g.default=this.isMultiButtonToggle?[]:"right",this.buttonToggleConfig=u({},this.buttonToggleConfig)}toggleIconButtonToggle(){let{textAlign:g}=this.buttonToggleConfig;g.useIcon=this.useIcon>0,g.options=g.options?.map(s=>b(u({},s),{src:this.useIcon==1?"mdi mdi-format-align-"+s.value:this.useIcon==2?"./assets/images/align_"+s.value+".png":void 0})),this.buttonToggleConfig=u({},this.buttonToggleConfig)}};d.\u0275fac=function(s){return new(s||d)},d.\u0275cmp=_({type:d,selectors:[["app-basic-controls"]],standalone:!0,features:[v],decls:63,vars:19,consts:[["subtitle","Used for binding primitive values (string, number or boolean).",3,"title"],["id","text"],["href","basic-controls#text"],[3,"config"],["id","number"],["href","basic-controls#number"],["id","switch"],["href","basic-controls#switch"],["id","slider"],["href","basic-controls#slider"],[3,"ngModelChange","ngModel"],["id","fill"],["href","basic-controls#fill"],["id","select"],["href","basic-controls#select"],["id","button_toggle"],["href","basic-controls#button_toggle"],[3,"value"],["id","image_select"],["href","basic-controls#image_select"],["id","textarea"],["href","basic-controls#textarea"],["id","hidden"],["href","basic-controls#hidden"]],template:function(s,e){s&1&&(r(0,"app-page-header",0),t(1,"h2",1)(2,"a",2),i(3,"Text"),l()(),r(4,"app-example-viewer",3),t(5,"h2",4)(6,"a",5),i(7,"Number"),l()(),r(8,"app-example-viewer",3),t(9,"h2",6)(10,"a",7),i(11,"Switch"),l()(),r(12,"app-example-viewer",3),t(13,"h2",8)(14,"a",9),i(15,"Slider"),l()(),t(16,"div")(17,"mat-slide-toggle",10),h("ngModelChange",function(a){return f(e.isRangeSlider,a)||(e.isRangeSlider=a),a}),p("ngModelChange",function(){return e.toggleRangeSlider()}),i(18,"Range slider"),l()(),r(19,"app-example-viewer",3),t(20,"h2",11)(21,"a",12),i(22,"Fill"),l()(),r(23,"app-example-viewer",3),t(24,"h2",13)(25,"a",14),i(26,"Select"),l()(),t(27,"div")(28,"mat-slide-toggle",10),h("ngModelChange",function(a){return f(e.isMultiSelect,a)||(e.isMultiSelect=a),a}),p("ngModelChange",function(){return e.toggleMultiSelect()}),i(29,"Multiple choice"),l()(),r(30,"app-example-viewer",3),t(31,"h2",15)(32,"a",16),i(33,"Button Toggle"),l()(),t(34,"div")(35,"mat-slide-toggle",10),h("ngModelChange",function(a){return f(e.isMultiButtonToggle,a)||(e.isMultiButtonToggle=a),a}),p("ngModelChange",function(){return e.toggleMultiButtonToggle()}),i(36,"Multiple choice"),l(),t(37,"mat-button-toggle-group",10),h("ngModelChange",function(a){return f(e.useIcon,a)||(e.useIcon=a),a}),p("ngModelChange",function(){return e.toggleIconButtonToggle()}),t(38,"mat-button-toggle",17),i(39,"Text"),l(),t(40,"mat-button-toggle",17),i(41,"Font icon"),l(),t(42,"mat-button-toggle",17),i(43,"Image icon"),l()()(),r(44,"app-example-viewer",3),t(45,"p"),i(46,"If you have lots of options, you can make a grid for options with the "),t(47,"code"),i(48,"col"),l(),i(49," attr."),l(),r(50,"app-example-viewer",3),t(51,"h2",18)(52,"a",19),i(53,"Image Select"),l()(),r(54,"app-example-viewer",3),t(55,"h2",20)(56,"a",21),i(57,"Textarea"),l()(),r(58,"app-example-viewer",3),t(59,"h2",22)(60,"a",23),i(61,"Hidden"),l()(),r(62,"app-example-viewer",3)),s&2&&(o("title","Basic controls"),n(4),o("config",e.textConfig),n(4),o("config",e.numberConfig),n(4),o("config",e.switchConfig),n(5),c("ngModel",e.isRangeSlider),n(2),o("config",e.sliderConfig),n(4),o("config",e.fillConfig),n(5),c("ngModel",e.isMultiSelect),n(2),o("config",e.selectConfig),n(5),c("ngModel",e.isMultiButtonToggle),n(2),c("ngModel",e.useIcon),n(),o("value",0),n(2),o("value",1),n(2),o("value",2),n(2),o("config",e.buttonToggleConfig),n(6),o("config",e.buttonToggleConfig2),n(4),o("config",e.imageSelectConfig),n(4),o("config",e.textareaConfig),n(4),o("config",e.hiddenConfig))},dependencies:[I,W,w,T,E,x,B,y,M,S],styles:["mat-button-toggle-group[_ngcontent-%COMP%]{margin:0 16px;vertical-align:middle;font-size:14px}"]});let C=d;return C})();export{H as BasicControlsComponent}; +import{d as I,e as W}from"./chunk-I7NLANIE.js";import{$a as i,Ga as o,Mb as M,Nb as S,Ob as y,Pa as t,Qa as l,Ra as r,Ta as p,X as _,cb as c,db as f,eb as h,ec as T,fc as w,gb as v,gc as x,hc as B,ic as E,qa as n}from"./chunk-I5MCOHXJ.js";import{a as u,b}from"./chunk-CWTPBX7D.js";var H=(()=>{let d=class d{constructor(){this.textConfig={content:{type:"text",name:"Content",default:"Hello world",description:"I am description",prefix:"\u{1F44B}",suffix:"\u{1F496}"}},this.numberConfig={opacity:{type:"number",name:"Opacity",default:.33,min:0,max:1,step:.01}},this.switchConfig={visible:{type:"switch",name:"Visible",default:!1}},this.sliderConfig={temperature:{type:"slider",name:"Temperature",mode:"normal",default:30,min:0,max:100,step:5,suffix:"\xB0C"}},this.isRangeSlider=!1,this.fillConfig={color:{type:"fill",name:"Color",default:"#ff0055"}},this.selectConfig={font:{type:"select",name:"Font",default:"arial",multiple:!1,useFont:!0,options:[{value:"arial",label:"Arial"},{value:"fantasy",label:"Fantasy"},{value:"monospace",label:"Monospace"}]}},this.isMultiSelect=!1,this.buttonToggleConfig={textAlign:{type:"buttonToggle",name:"Align",default:"right",multiple:!1,options:[{value:"left",label:"Left"},{value:"center",label:"Center"},{value:"right",label:"Right"}]}},this.isMultiButtonToggle=!1,this.useIcon=0,this.buttonToggleConfig2={direction:{type:"buttonToggle",name:"Direction",default:"c",options:[{value:"nw",label:"NW",col:33.33},{value:"n",label:"N",col:33.33},{value:"ne",label:"NE",col:33.33},{value:"w",label:"W",col:33.33},{value:"c",label:"C",col:33.33},{value:"e",label:"E",col:33.33},{value:"sw",label:"SW",col:33.33},{value:"s",label:"S",col:33.33},{value:"se",label:"SE",col:33.33}]}},this.imageSelectConfig={background:{type:"imageSelect",name:"Background",default:"img1",options:[{label:"img1",value:"img1",src:"./assets/images/icon3d1.webp"},{label:"img2",value:"img2",src:"./assets/images/icon3d2.webp"},{label:"img3",value:"img3",src:"./assets/images/icon3d3.webp"}]}},this.textareaConfig={foo:{type:"textarea",name:"Foo",default:"I am a textarea",rows:3}},this.hiddenConfig={id:{type:"hidden",name:"ID",default:1}}}toggleRangeSlider(){let{temperature:g}=this.sliderConfig;g.mode=this.isRangeSlider?"range":"normal",g.default=this.isRangeSlider?[20,60]:30,this.sliderConfig=u({},this.sliderConfig)}toggleMultiSelect(){let{font:g}=this.selectConfig;g.multiple=this.isMultiSelect,g.default=this.isMultiSelect?[]:"arial",this.selectConfig=u({},this.selectConfig)}toggleMultiButtonToggle(){let{textAlign:g}=this.buttonToggleConfig;g.multiple=this.isMultiButtonToggle,g.default=this.isMultiButtonToggle?[]:"right",this.buttonToggleConfig=u({},this.buttonToggleConfig)}toggleIconButtonToggle(){let{textAlign:g}=this.buttonToggleConfig;g.useIcon=this.useIcon>0,g.options=g.options?.map(s=>b(u({},s),{src:this.useIcon==1?"mdi mdi-format-align-"+s.value:this.useIcon==2?"./assets/images/align_"+s.value+".png":void 0})),this.buttonToggleConfig=u({},this.buttonToggleConfig)}};d.\u0275fac=function(s){return new(s||d)},d.\u0275cmp=_({type:d,selectors:[["app-basic-controls"]],standalone:!0,features:[v],decls:63,vars:19,consts:[["subtitle","Used for binding primitive values (string, number or boolean).",3,"title"],["id","text"],["href","basic-controls#text"],[3,"config"],["id","number"],["href","basic-controls#number"],["id","switch"],["href","basic-controls#switch"],["id","slider"],["href","basic-controls#slider"],[3,"ngModelChange","ngModel"],["id","fill"],["href","basic-controls#fill"],["id","select"],["href","basic-controls#select"],["id","button_toggle"],["href","basic-controls#button_toggle"],[3,"value"],["id","image_select"],["href","basic-controls#image_select"],["id","textarea"],["href","basic-controls#textarea"],["id","hidden"],["href","basic-controls#hidden"]],template:function(s,e){s&1&&(r(0,"app-page-header",0),t(1,"h2",1)(2,"a",2),i(3,"Text"),l()(),r(4,"app-example-viewer",3),t(5,"h2",4)(6,"a",5),i(7,"Number"),l()(),r(8,"app-example-viewer",3),t(9,"h2",6)(10,"a",7),i(11,"Switch"),l()(),r(12,"app-example-viewer",3),t(13,"h2",8)(14,"a",9),i(15,"Slider"),l()(),t(16,"div")(17,"mat-slide-toggle",10),h("ngModelChange",function(a){return f(e.isRangeSlider,a)||(e.isRangeSlider=a),a}),p("ngModelChange",function(){return e.toggleRangeSlider()}),i(18,"Range slider"),l()(),r(19,"app-example-viewer",3),t(20,"h2",11)(21,"a",12),i(22,"Fill"),l()(),r(23,"app-example-viewer",3),t(24,"h2",13)(25,"a",14),i(26,"Select"),l()(),t(27,"div")(28,"mat-slide-toggle",10),h("ngModelChange",function(a){return f(e.isMultiSelect,a)||(e.isMultiSelect=a),a}),p("ngModelChange",function(){return e.toggleMultiSelect()}),i(29,"Multiple choice"),l()(),r(30,"app-example-viewer",3),t(31,"h2",15)(32,"a",16),i(33,"Button Toggle"),l()(),t(34,"div")(35,"mat-slide-toggle",10),h("ngModelChange",function(a){return f(e.isMultiButtonToggle,a)||(e.isMultiButtonToggle=a),a}),p("ngModelChange",function(){return e.toggleMultiButtonToggle()}),i(36,"Multiple choice"),l(),t(37,"mat-button-toggle-group",10),h("ngModelChange",function(a){return f(e.useIcon,a)||(e.useIcon=a),a}),p("ngModelChange",function(){return e.toggleIconButtonToggle()}),t(38,"mat-button-toggle",17),i(39,"Text"),l(),t(40,"mat-button-toggle",17),i(41,"Font icon"),l(),t(42,"mat-button-toggle",17),i(43,"Image icon"),l()()(),r(44,"app-example-viewer",3),t(45,"p"),i(46,"If you have lots of options, you can make a grid for options with the "),t(47,"code"),i(48,"col"),l(),i(49," attr."),l(),r(50,"app-example-viewer",3),t(51,"h2",18)(52,"a",19),i(53,"Image Select"),l()(),r(54,"app-example-viewer",3),t(55,"h2",20)(56,"a",21),i(57,"Textarea"),l()(),r(58,"app-example-viewer",3),t(59,"h2",22)(60,"a",23),i(61,"Hidden"),l()(),r(62,"app-example-viewer",3)),s&2&&(o("title","Basic controls"),n(4),o("config",e.textConfig),n(4),o("config",e.numberConfig),n(4),o("config",e.switchConfig),n(5),c("ngModel",e.isRangeSlider),n(2),o("config",e.sliderConfig),n(4),o("config",e.fillConfig),n(5),c("ngModel",e.isMultiSelect),n(2),o("config",e.selectConfig),n(5),c("ngModel",e.isMultiButtonToggle),n(2),c("ngModel",e.useIcon),n(),o("value",0),n(2),o("value",1),n(2),o("value",2),n(2),o("config",e.buttonToggleConfig),n(6),o("config",e.buttonToggleConfig2),n(4),o("config",e.imageSelectConfig),n(4),o("config",e.textareaConfig),n(4),o("config",e.hiddenConfig))},dependencies:[I,W,w,T,E,x,B,y,M,S],styles:["mat-button-toggle-group[_ngcontent-%COMP%]{margin:0 16px;vertical-align:middle;font-size:14px}"]});let C=d;return C})();export{H as BasicControlsComponent}; diff --git a/chunk-T536VJ3P.js b/chunk-ESIQUWL4.js similarity index 98% rename from chunk-T536VJ3P.js rename to chunk-ESIQUWL4.js index 3a803e5..ab0a7a9 100644 --- a/chunk-T536VJ3P.js +++ b/chunk-ESIQUWL4.js @@ -1,4 +1,4 @@ -import{b as h,c as x,d as u,e as f}from"./chunk-IKKDCCDB.js";import{$a as e,Ga as o,Pa as t,Qa as i,Ra as l,X as s,gb as p,hb as c,qa as r}from"./chunk-I5MCOHXJ.js";import"./chunk-CWTPBX7D.js";var S=()=>["json"],v=(()=>{let n=class n{constructor(){this.ruleJson=`{ +import{b as h,c as x,d as u,e as f}from"./chunk-I7NLANIE.js";import{$a as e,Ga as o,Pa as t,Qa as i,Ra as l,X as s,gb as p,hb as c,qa as r}from"./chunk-I5MCOHXJ.js";import"./chunk-CWTPBX7D.js";var S=()=>["json"],v=(()=>{let n=class n{constructor(){this.ruleJson=`{ ... "showIf": { "conditions": [ diff --git a/chunk-C72PJ6WQ.js b/chunk-F7CT2PNO.js similarity index 97% rename from chunk-C72PJ6WQ.js rename to chunk-F7CT2PNO.js index bf6c7f5..dda1092 100644 --- a/chunk-C72PJ6WQ.js +++ b/chunk-F7CT2PNO.js @@ -1,4 +1,4 @@ -import{b as c,c as f,d as g,e as h}from"./chunk-IKKDCCDB.js";import{$a as t,Ga as n,Pa as e,Qa as i,Ra as o,X as m,gb as s,hb as u,qa as l}from"./chunk-I5MCOHXJ.js";import"./chunk-CWTPBX7D.js";var y=()=>["ts"],U=(()=>{let a=class a{constructor(){this.imageConfig={image:{type:"image",name:"Upload Image",default:"https://interactive-examples.mdn.mozilla.net/media/cc0-images/grapefruit-slice-332-332.jpg"}},this.videoConfig={video:{type:"video",name:"Upload Video",default:"https://interactive-examples.mdn.mozilla.net/media/cc0-videos/flower.mp4"}},this.audioConfig={audio:{type:"audio",name:"Upload Audio",default:"https://interactive-examples.mdn.mozilla.net/media/cc0-audio/t-rex-roar.mp3"}},this.fileConfig={file:{type:"file",name:"Upload File",default:""}}}};a.\u0275fac=function(r){return new(r||a)},a.\u0275cmp=m({type:a,selectors:[["app-media-controls"]],standalone:!0,features:[s],decls:27,vars:7,consts:[["subtitle","Used for uploading and displaying files.",3,"title"],["id","upload_settings"],["href","media-controls#upload_settings"],["highlight",`@Injectable() +import{b as c,c as f,d as g,e as h}from"./chunk-I7NLANIE.js";import{$a as t,Ga as n,Pa as e,Qa as i,Ra as o,X as m,gb as s,hb as u,qa as l}from"./chunk-I5MCOHXJ.js";import"./chunk-CWTPBX7D.js";var y=()=>["ts"],U=(()=>{let a=class a{constructor(){this.imageConfig={image:{type:"image",name:"Upload Image",default:"https://interactive-examples.mdn.mozilla.net/media/cc0-images/grapefruit-slice-332-332.jpg"}},this.videoConfig={video:{type:"video",name:"Upload Video",default:"https://interactive-examples.mdn.mozilla.net/media/cc0-videos/flower.mp4"}},this.audioConfig={audio:{type:"audio",name:"Upload Audio",default:"https://interactive-examples.mdn.mozilla.net/media/cc0-audio/t-rex-roar.mp3"}},this.fileConfig={file:{type:"file",name:"Upload File",default:""}}}};a.\u0275fac=function(r){return new(r||a)},a.\u0275cmp=m({type:a,selectors:[["app-media-controls"]],standalone:!0,features:[s],decls:27,vars:7,consts:[["subtitle","Used for uploading and displaying files.",3,"title"],["id","upload_settings"],["href","media-controls#upload_settings"],["highlight",`@Injectable() export class YourUploadService { constructor(private http: HttpClient) {} diff --git a/chunk-TFWC5DLU.js b/chunk-I3N7HK3P.js similarity index 98% rename from chunk-TFWC5DLU.js rename to chunk-I3N7HK3P.js index 3516e92..dd6c02c 100644 --- a/chunk-TFWC5DLU.js +++ b/chunk-I3N7HK3P.js @@ -1 +1 @@ -import{d as u,e as f}from"./chunk-IKKDCCDB.js";import{$a as a,Ga as e,Pa as t,Qa as n,Ra as i,X as d,gb as s,qa as r}from"./chunk-I5MCOHXJ.js";import"./chunk-CWTPBX7D.js";var g=(()=>{let p=class p{constructor(){this.groupConfig={size:{type:"group",name:"Size",children:{width:{name:"Width",type:"number",default:1920,suffix:"px"},height:{name:"Height",type:"number",default:1080,suffix:"px"}},expanded:!0}},this.inlineConfig={offset:{type:"inline",name:"Offset",children:{x:{name:"X",type:"number",default:0,col:50},y:{name:"Y",type:"number",default:0,col:50}}}},this.tabs1Config={series:{type:"tabs",name:"Series",description:"Dynamic add/delete",default:[{id:1,name:"bar"},{id:2,name:"foo"}],template:{name:"No.<%= i + 1 %>",children:{id:{type:"number",name:"ID"},name:{type:"text",name:"Name"}}},expanded:!0}},this.tabs2Config={misc:{type:"tabs",name:"Misc",mode:"list",children:[{type:"tab",name:"Full Name",children:{firstName:{type:"text",name:"First Name",default:"James"},lastName:{type:"text",name:"Last Name",default:"Bob"}}},{type:"tab",name:"Contact",children:{phone:{type:"text",name:"Phone",default:"5550100"}}}],expanded:!0}},this.tabs3Config={transitionProperty:{type:"tabs",name:"Transition property",default:["color","width"],template:{type:"text",name:"Prop <%= i + 1 %>"},expanded:!0}},this.tabs4Config={coordinate:{name:"Coordinate",type:"tabs",mode:"list",children:[{type:"slider",name:"Latitude",min:-90,max:90,step:.01,default:39.92},{type:"slider",name:"Longitude",min:-180,max:180,step:.01,default:116.41}],expanded:!0}},this.menuConfig={options:{type:"menu",name:"Menu",children:{menuA:{type:"menuItem",name:"Menu A",children:{textarea:{type:"textarea",name:"Comments",default:"Hello world"},color:{type:"fill",name:"Color",default:"#50b4ff99"}}},menuB:{type:"menu",name:"Menu B",children:{menuB1:{type:"menuItem",name:"Menu B1",children:{label:{type:"text",name:"Label",default:"Hello"}}},menuB2:{type:"menuItem",name:"Menu B2",children:{display:{type:"switch",name:"Display",default:!0}}}}}}}}}};p.\u0275fac=function(m){return new(m||p)},p.\u0275cmp=d({type:p,selectors:[["app-group-controls"]],standalone:!0,features:[s],decls:32,vars:8,consts:[["subtitle","Used for binding object or array.",3,"title"],["id","group"],["href","group-controls#group"],[3,"config"],["id","inline_group"],["href","group-controls#inline_group"],["id","tabs"],["href","group-controls#tabs"],["id","tabs_object_template"],["href","group-controls#tabs_object_template"],["id","tabs_object_no_template"],["href","group-controls#tabs_object_no_template"],["id","tabs_primitive_template"],["href","group-controls#tabs_primitive_template"],["id","tabs_primitive_no_template"],["href","group-controls#tabs_primitive_no_template"],["id","menu"],["href","group-controls#menu"]],template:function(m,o){m&1&&(i(0,"app-page-header",0),t(1,"h2",1)(2,"a",2),a(3,"Group"),n()(),i(4,"app-example-viewer",3),t(5,"h2",4)(6,"a",5),a(7,"Inline Group"),n()(),i(8,"app-example-viewer",3),t(9,"h2",6)(10,"a",7),a(11,"Tabs"),n()(),t(12,"h3",8)(13,"a",9),a(14,"Array of objects with template"),n()(),i(15,"app-example-viewer",3),t(16,"h3",10)(17,"a",11),a(18,"Array of objects without template"),n()(),i(19,"app-example-viewer",3),t(20,"h3",12)(21,"a",13),a(22,"Array of primitive value with template"),n()(),i(23,"app-example-viewer",3),t(24,"h3",14)(25,"a",15),a(26,"Array of primitive value without template"),n()(),i(27,"app-example-viewer",3),t(28,"h2",16)(29,"a",17),a(30,"Menu"),n()(),i(31,"app-example-viewer",3)),m&2&&(e("title","Group controls"),r(4),e("config",o.groupConfig),r(4),e("config",o.inlineConfig),r(7),e("config",o.tabs1Config),r(4),e("config",o.tabs2Config),r(4),e("config",o.tabs3Config),r(4),e("config",o.tabs4Config),r(4),e("config",o.menuConfig))},dependencies:[u,f]});let l=p;return l})();export{g as GroupControlsComponent}; +import{d as u,e as f}from"./chunk-I7NLANIE.js";import{$a as a,Ga as e,Pa as t,Qa as n,Ra as i,X as d,gb as s,qa as r}from"./chunk-I5MCOHXJ.js";import"./chunk-CWTPBX7D.js";var g=(()=>{let p=class p{constructor(){this.groupConfig={size:{type:"group",name:"Size",children:{width:{name:"Width",type:"number",default:1920,suffix:"px"},height:{name:"Height",type:"number",default:1080,suffix:"px"}},expanded:!0}},this.inlineConfig={offset:{type:"inline",name:"Offset",children:{x:{name:"X",type:"number",default:0,col:50},y:{name:"Y",type:"number",default:0,col:50}}}},this.tabs1Config={series:{type:"tabs",name:"Series",description:"Dynamic add/delete",default:[{id:1,name:"bar"},{id:2,name:"foo"}],template:{name:"No.<%= i + 1 %>",children:{id:{type:"number",name:"ID"},name:{type:"text",name:"Name"}}},expanded:!0}},this.tabs2Config={misc:{type:"tabs",name:"Misc",mode:"list",children:[{type:"tab",name:"Full Name",children:{firstName:{type:"text",name:"First Name",default:"James"},lastName:{type:"text",name:"Last Name",default:"Bob"}}},{type:"tab",name:"Contact",children:{phone:{type:"text",name:"Phone",default:"5550100"}}}],expanded:!0}},this.tabs3Config={transitionProperty:{type:"tabs",name:"Transition property",default:["color","width"],template:{type:"text",name:"Prop <%= i + 1 %>"},expanded:!0}},this.tabs4Config={coordinate:{name:"Coordinate",type:"tabs",mode:"list",children:[{type:"slider",name:"Latitude",min:-90,max:90,step:.01,default:39.92},{type:"slider",name:"Longitude",min:-180,max:180,step:.01,default:116.41}],expanded:!0}},this.menuConfig={options:{type:"menu",name:"Menu",children:{menuA:{type:"menuItem",name:"Menu A",children:{textarea:{type:"textarea",name:"Comments",default:"Hello world"},color:{type:"fill",name:"Color",default:"#50b4ff99"}}},menuB:{type:"menu",name:"Menu B",children:{menuB1:{type:"menuItem",name:"Menu B1",children:{label:{type:"text",name:"Label",default:"Hello"}}},menuB2:{type:"menuItem",name:"Menu B2",children:{display:{type:"switch",name:"Display",default:!0}}}}}}}}}};p.\u0275fac=function(m){return new(m||p)},p.\u0275cmp=d({type:p,selectors:[["app-group-controls"]],standalone:!0,features:[s],decls:32,vars:8,consts:[["subtitle","Used for binding object or array.",3,"title"],["id","group"],["href","group-controls#group"],[3,"config"],["id","inline_group"],["href","group-controls#inline_group"],["id","tabs"],["href","group-controls#tabs"],["id","tabs_object_template"],["href","group-controls#tabs_object_template"],["id","tabs_object_no_template"],["href","group-controls#tabs_object_no_template"],["id","tabs_primitive_template"],["href","group-controls#tabs_primitive_template"],["id","tabs_primitive_no_template"],["href","group-controls#tabs_primitive_no_template"],["id","menu"],["href","group-controls#menu"]],template:function(m,o){m&1&&(i(0,"app-page-header",0),t(1,"h2",1)(2,"a",2),a(3,"Group"),n()(),i(4,"app-example-viewer",3),t(5,"h2",4)(6,"a",5),a(7,"Inline Group"),n()(),i(8,"app-example-viewer",3),t(9,"h2",6)(10,"a",7),a(11,"Tabs"),n()(),t(12,"h3",8)(13,"a",9),a(14,"Array of objects with template"),n()(),i(15,"app-example-viewer",3),t(16,"h3",10)(17,"a",11),a(18,"Array of objects without template"),n()(),i(19,"app-example-viewer",3),t(20,"h3",12)(21,"a",13),a(22,"Array of primitive value with template"),n()(),i(23,"app-example-viewer",3),t(24,"h3",14)(25,"a",15),a(26,"Array of primitive value without template"),n()(),i(27,"app-example-viewer",3),t(28,"h2",16)(29,"a",17),a(30,"Menu"),n()(),i(31,"app-example-viewer",3)),m&2&&(e("title","Group controls"),r(4),e("config",o.groupConfig),r(4),e("config",o.inlineConfig),r(7),e("config",o.tabs1Config),r(4),e("config",o.tabs2Config),r(4),e("config",o.tabs3Config),r(4),e("config",o.tabs4Config),r(4),e("config",o.menuConfig))},dependencies:[u,f]});let l=p;return l})();export{g as GroupControlsComponent}; diff --git a/chunk-IKKDCCDB.js b/chunk-I7NLANIE.js similarity index 90% rename from chunk-IKKDCCDB.js rename to chunk-I7NLANIE.js index c5dd636..f46a9d6 100644 --- a/chunk-IKKDCCDB.js +++ b/chunk-I7NLANIE.js @@ -1,2 +1,2 @@ import{$a as c,A as Q,Db as xe,Ea as z,Ga as _,I as S,Ia as de,Ja as F,K as u,La as O,Ma as ce,N as B,Na as ge,O as Z,Oa as ue,Pa as a,Q as ee,Qa as l,Qb as T,Ra as M,S as m,Sa as he,Ta as D,Ua as y,Vb as ve,W as te,X as f,Y as ie,Yb as _e,Z as oe,ab as L,ac as Me,bc as Le,cc as Ce,da as ne,dc as we,ea as re,fa as ae,g as W,gb as x,h as C,hb as me,i as k,ib as G,j as P,jb as H,jc as I,ka as se,kc as j,l as h,la as le,ma as N,o as p,oa as pe,qa as s,ra as b,rb as fe,u as w,v as X,vb as be,w as K,wb as ye,xb as E}from"./chunk-I5MCOHXJ.js";import{a as J,b as Y}from"./chunk-CWTPBX7D.js";var R=new ee("HIGHLIGHT_OPTIONS"),$;function Ie(){if(!$)try{$=window?.trustedTypes?.createPolicy("ngx-highlightjs",{createHTML:o=>o})}catch{}return $}function je(o){return Ie()?.createHTML(o)||o}var ke=(()=>{let i=class i{constructor(t,e,n){this.doc=t,this.platformId=e,this._options=n,this._ready=new W(null),this.ready=this._ready.asObservable().pipe(w(r=>!!r),Q(1)),E(e)&&(t.defaultView.hljs?this._ready.next(t.defaultView.hljs):(this._loadLibrary().pipe(S(r=>this._options&&this._options.lineNumbersLoader?(t.defaultView.hljs=r,this.loadLineNumbers().pipe(u(d=>{d.activateLineNumbers(),this._ready.next(r)}))):(this._ready.next(r),k)),K(r=>(console.error("[HLJS] ",r),k))).subscribe(),this._options?.themePath&&this.loadTheme(this._options.themePath)))}_loadLibrary(){if(this._options){if(this._options.fullLibraryLoader&&this._options.coreLibraryLoader)return h(()=>"The full library and the core library were imported, only one of them should be imported!");if(this._options.fullLibraryLoader&&this._options.languages)return h(()=>"The highlighting languages were imported they are not needed!");if(this._options.coreLibraryLoader&&!this._options.languages)return h(()=>"The highlighting languages were not imported!");if(!this._options.coreLibraryLoader&&this._options.languages)return h(()=>"The core library was not imported!");if(this._options.fullLibraryLoader)return this.loadFullLibrary();if(this._options.coreLibraryLoader&&this._options.languages&&Object.keys(this._options.languages).length)return this.loadCoreLibrary().pipe(S(t=>this._loadLanguages(t)))}return h(()=>"Highlight.js library was not imported!")}_loadLanguages(t){let e=Object.entries(this._options.languages).map(([n,r])=>A(r()).pipe(u(d=>t.registerLanguage(n,d))));return X(...e).pipe(p(()=>t))}loadCoreLibrary(){return A(this._options.coreLibraryLoader())}loadFullLibrary(){return A(this._options.fullLibraryLoader())}loadLineNumbers(){return P(this._options.lineNumbersLoader())}setTheme(t){E(this.platformId)&&(this._themeLinkElement?this._themeLinkElement.href=t:this.loadTheme(t))}loadTheme(t){this._themeLinkElement=this.doc.createElement("link"),this._themeLinkElement.href=t,this._themeLinkElement.type="text/css",this._themeLinkElement.rel="stylesheet",this._themeLinkElement.media="screen,print",this.doc.head.appendChild(this._themeLinkElement)}};i.\u0275fac=function(e){return new(e||i)(m(fe),m(N),m(R,8))},i.\u0275prov=B({token:i,factory:i.\u0275fac,providedIn:"root"});let o=i;return o})(),A=o=>P(o).pipe(w(i=>!!i?.default),p(i=>i.default)),Pe=(()=>{let i=class i{get hljs(){return this._hljs}constructor(t,e){this._loader=t,this._hljs=null,t.ready.subscribe(n=>{this._hljs=n,e&&e.config&&(n.configure(e.config),n.listLanguages().length<1&&console.error("[HighlightJS]: No languages were registered!"))})}highlight(t,{language:e,ignoreIllegals:n}){return this._loader.ready.pipe(p(r=>r.highlight(t,{language:e,ignoreIllegals:n})))}highlightAuto(t,e){return this._loader.ready.pipe(p(n=>n.highlightAuto(t,e)))}highlightElement(t){return this._loader.ready.pipe(p(e=>e.highlightElement(t)))}highlightAll(){return this._loader.ready.pipe(p(t=>t.highlightAll()))}configure(t){return this._loader.ready.pipe(p(e=>e.configure(t)))}registerLanguage(t,e){return this._loader.ready.pipe(u(n=>n.registerLanguage(t,e)))}unregisterLanguage(t){return this._loader.ready.pipe(u(e=>e.unregisterLanguage(t)))}registerAliases(t,{languageName:e}){return this._loader.ready.pipe(u(n=>n.registerAliases(t,{languageName:e})))}listLanguages(){return this._loader.ready.pipe(p(t=>t.listLanguages()))}getLanguage(t){return this._loader.ready.pipe(p(e=>e.getLanguage(t)))}safeMode(){return this._loader.ready.pipe(p(t=>t.safeMode()))}debugMode(){return this._loader.ready.pipe(p(t=>t.debugMode()))}lineNumbersBlock(t){return this._loader.ready.pipe(w(e=>!!e.lineNumbersBlock),u(e=>e.lineNumbersBlock(t)))}};i.\u0275fac=function(e){return new(e||i)(m(ke),m(R,8))},i.\u0275prov=B({token:i,factory:i.\u0275fac,providedIn:"root"});let o=i;return o})(),Oe=(()=>{let i=class i{constructor(t,e,n,r,d){this._hljs=e,this._sanitizer=n,this.platformId=r,this._options=d,this.highlighted=new le,this._nativeElement=t.nativeElement}ngOnChanges(t){E(this.platformId)&&t?.code?.currentValue!==null&&t.code.currentValue!==t.code.previousValue&&(this.code?this.highlightElement(this.code,this.languages):this.setTextContent(""))}highlightElement(t,e){this.setTextContent(t),this._hljs.highlightAuto(t,e).subscribe(n=>{this.setInnerHTML(n?.value),this.lineNumbers&&this._options&&this._options.lineNumbersLoader&&this.addLineNumbers(),this.highlighted.emit(n)})}addLineNumbers(){this.destroyLineNumbersObserver(),C.schedule(()=>{this._hljs.lineNumbersBlock(this._nativeElement).subscribe(),this._lineNumbersObs=new MutationObserver(()=>{this._nativeElement.firstElementChild&&this._nativeElement.firstElementChild.tagName.toUpperCase()==="TABLE"&&this._nativeElement.classList.add("hljs-line-numbers"),this.destroyLineNumbersObserver()}),this._lineNumbersObs.observe(this._nativeElement,{childList:!0})})}destroyLineNumbersObserver(){this._lineNumbersObs&&(this._lineNumbersObs.disconnect(),this._lineNumbersObs=null)}setTextContent(t){C.schedule(()=>this._nativeElement.textContent=t)}setInnerHTML(t){C.schedule(()=>this._nativeElement.innerHTML=je(this._sanitizer.sanitize(pe.HTML,t)||""))}};i.\u0275fac=function(e){return new(e||i)(b(se),b(Pe),b(xe),b(N),b(R,8))},i.\u0275dir=oe({type:i,selectors:[["","highlight",""]],hostVars:2,hostBindings:function(e,n){e&2&&de("hljs",!0)},inputs:{code:[te.None,"highlight","code"],languages:"languages",lineNumbers:"lineNumbers"},outputs:{highlighted:"highlighted"},standalone:!0,features:[ne]});let o=i;return o})(),Ee=(()=>{let i=class i{};i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=ie({type:i}),i.\u0275inj=Z({});let o=i;return o})();var Ne=()=>["json"],rt=(()=>{let i=class i{constructor(){this.config={},this.model={}}};i.\u0275fac=function(e){return new(e||i)},i.\u0275cmp=f({type:i,selectors:[["app-example-viewer"]],inputs:{config:"config"},standalone:!0,features:[x],decls:11,vars:10,consts:[[1,"demo-wrapper"],[1,"demo-code"],[3,"highlight","languages"],[1,"demo-result"],[3,"config","model"],[1,"demo-console"],["readonly","","matInput","","cdkTextareaAutosize","","cdkAutosizeMinRows","1","cdkAutosizeMaxRows","20"]],template:function(e,n){e&1&&(a(0,"div",0)(1,"div",1)(2,"pre"),M(3,"code",2),G(4,"json"),l()(),a(5,"div",3),M(6,"gui-form",4),a(7,"div",5)(8,"textarea",6),c(9),G(10,"json"),l()()()()),e&2&&(s(3),_("highlight",H(4,5,n.config))("languages",me(9,Ne)),s(3),_("config",n.config)("model",n.model),s(3),L(H(10,7,n.model)))},dependencies:[ye,be,j,I,we,Ce,Me,Le,Ee,Oe],styles:[".demo-wrapper[_ngcontent-%COMP%]{position:relative;display:flex;margin:16px 0;background-color:var(--bg-secondary-color);border-radius:8px}.demo-code[_ngcontent-%COMP%]{flex:1;max-height:600px;overflow:auto}.demo-code[_ngcontent-%COMP%] pre[_ngcontent-%COMP%]{margin:0}.demo-result[_ngcontent-%COMP%]{width:320px;padding:32px;margin:0 auto}.demo-console[_ngcontent-%COMP%]{padding:4px;margin-top:16px;border:1px solid var(--border-color);border-radius:4px}.demo-console[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{display:block;width:100%;padding:0 4px;background-color:var(--console-bg-color);color:var(--console-color);border-width:0;font-size:12px;line-height:20px;appearance:none;outline:none}@media (width < 600px){.demo-wrapper[_ngcontent-%COMP%]{flex-direction:column}}"]});let o=i;return o})();function ze(o,i){if(o&1&&(a(0,"h1"),c(1),l()),o&2){let g=y();s(),L(g.title)}}function Fe(o,i){if(o&1&&(a(0,"p"),c(1),l()),o&2){let g=y();s(),L(g.subtitle)}}function De(o,i){o&1&&M(0,"div",1)}var st=(()=>{let i=class i{constructor(){this.title="",this.subtitle="",this.config=null}};i.\u0275fac=function(e){return new(e||i)},i.\u0275cmp=f({type:i,selectors:[["app-page-header"]],hostAttrs:[1,"page-header"],inputs:{title:"title",subtitle:"subtitle",config:"config"},standalone:!0,features:[x],decls:4,vars:3,consts:[[1,"page-header-text"],[1,"page-header-demo"]],template:function(e,n){e&1&&(a(0,"div",0),z(1,ze,2,1,"h1")(2,Fe,2,1,"p"),l(),z(3,De,1,0,"div",1)),e&2&&(s(),O(1,n.title?1:-1),s(),O(2,n.subtitle?2:-1),s(),O(3,n.config?3:-1))},styles:[`.page-header{position:relative;display:flex;align-items:center;justify-content:space-between;padding:64px;background-color:var(--bg-secondary-color);border-radius:8px}.page-header-text h1{margin:0}.page-header-text p{margin-top:16px;margin-bottom:0}@media (width < 600px){.page-header{flex-direction:column;padding:64px 16px;text-align:center}} -`],encapsulation:2});let o=i;return o})();var U=[{gradients:[{type:"linear",repeating:!0,reverse:!1,angle:45,stops:[{color:"rgba(75, 75, 75, 0.5)",offset:"0%"},{color:"rgba(220, 235, 255, 0.75)",offset:"50%"}],position:{},size:{w:"100px",h:"100px"}},{type:"linear",repeating:!0,reverse:!1,angle:135,stops:[{color:"rgba(5, 30, 50, 0.75)",offset:"0%"},{color:"rgba(115, 150, 255, 0.5)",offset:"50%"}],position:{},size:{}}],blendMode:["overlay"],repeat:"repeat"},{gradients:[{type:"conic",repeating:!0,conicBase:"",stops:[{color:"#023047",offset:"0 25%"},{color:"#00000000",offset:"0 50%"}],position:{x:"0",y:"0"},size:{w:"50px",h:"86.5px"}},{type:"conic",repeating:!0,conicBase:"from -30deg",stops:[{color:"#fb8500",offset:"0 16.67%"},{color:"#023047",offset:"0 50%"}],position:{x:"0",y:"0"},size:{w:"25px",h:"43.25px"}}],blendMode:["normal"],repeat:"repeat"},{gradients:[{type:"conic",conicBase:"from -60deg at 50% 33.33%",stops:[{color:"#d9d9d9",offset:"0 120deg"},{color:"#00000000",offset:"0"}],position:{},size:{w:"142.024px",h:"82px"}},{type:"conic",conicBase:"from 120deg at 50% 66.67%",stops:[{color:"#d9d9d9",offset:"0 120deg"},{color:"#00000000",offset:"0"}],position:{},size:{}},{type:"conic",conicBase:"from 60deg at 66.67%",stops:[{color:"#d9d9d9",offset:"60deg"},{color:"#ffffff",offset:"0 120deg"},{color:"#00000000",offset:"0"}],position:{},size:{}},{type:"conic",conicBase:"from 180deg at 33.33%",stops:[{color:"#b2b2b2",offset:"60deg"},{color:"#d9d9d9",offset:"0 120deg"},{color:"#00000000",offset:"0"}],position:{},size:{}},{type:"linear",angle:90,stops:[{color:"#b2b2b2",offset:"16.7%"},{color:"#ffffff",offset:"0 50%"},{color:"#b2b2b2",offset:"0 83.33%"},{color:"#ffffff",offset:"0"}],position:{},size:{}}],blendMode:["normal"],repeat:"repeat"},{gradients:[{type:"linear",repeating:!0,angle:45,stops:[{color:"rgba(0,0,0,.2)",offset:"0"},{color:"transparent",offset:"5px 50px"}],position:{},size:{}},{type:"linear",repeating:!0,angle:-45,stops:[{color:"rgba(0,0,0,.2)",offset:"0"},{color:"transparent",offset:"5px 50px"}],position:{},size:{}},{type:"linear",repeating:!0,angle:45,stops:[{color:"#000",offset:"0 10px"},{color:"#333",offset:"0 20px"},{color:"#d79033",offset:"0 30px"},{color:"#d7d7d3",offset:"0 40px"},{color:"#e9e9ea",offset:"0 50px"}],position:{},size:{}},{type:"linear",repeating:!0,angle:-45,stops:[{color:"#000",offset:"0 10px"},{color:"#333",offset:"0 20px"},{color:"#d79033",offset:"0 30px"},{color:"#d7d7d3",offset:"0 40px"},{color:"#e9e9ea",offset:"0 50px"}],position:{},size:{}}],blendMode:["multiply","multiply","lighten"],repeat:"repeat"}];function Ge(o,i){if(o&1){let g=he();a(0,"button",6),D("click",function(){let e=re(g).$implicit,n=y();return ae(n.selectPreset(e))}),l()}if(o&2){let g=i.$index,t=y();F(t.presetStyles[g])}}var mt=(()=>{let i=class i{constructor(){this.demoStyle={},this.config={gradients:{type:"tabs",name:"Bg gradients",template:{name:"Gradient <%= i + 1 %>",children:{type:{type:"buttonToggle",name:"Type",options:[{label:"linear",value:"linear"},{label:"radial",value:"radial"},{label:"conic",value:"conic"}]},repeating:{type:"switch",name:"Repeating"},reverse:{type:"switch",name:"Reverse"},angle:{type:"slider",name:"Angle",min:0,max:360,suffix:"deg",showIf:{conditions:[["type","$eq","linear"]]}},radialBase:{type:"text",name:"Radial",placeholder:" at ",showIf:{conditions:[["type","$eq","radial"]]}},conicBase:{type:"text",name:"Conic",placeholder:"from at ",showIf:{conditions:[["type","$eq","conic"]]}},stops:{type:"tabs",name:"Color stops",template:{name:"Stop <%= i + 1 %>",children:{color:{type:"fill",name:"Color",default:"#000"},offset:{type:"text",name:"Offset",default:"0%"}}}},position:{type:"inline",name:"Position",children:{x:{type:"text",name:"",placeholder:"X",col:50},y:{type:"text",name:"",placeholder:"Y",col:50}}},size:{type:"inline",name:"Size",children:{w:{type:"text",name:"",placeholder:"W",col:50},h:{type:"text",name:"",placeholder:"H",col:50}}}}}},blendMode:{type:"tabs",name:"Bg blend mode",mode:"list",template:{type:"select",name:"Blend mode <%= i + 1 %>",options:[{label:"normal",value:"normal"},{label:"multiply",value:"multiply"},{label:"screen",value:"screen"},{label:"overlay",value:"overlay"},{label:"darken",value:"darken"},{label:"lighten",value:"lighten"},{label:"color-dodge",value:"color-dodge"},{label:"color-burn",value:"color-burn"},{label:"hard-light",value:"hard-light"},{label:"soft-light",value:"soft-light"},{label:"difference",value:"difference"},{label:"exclusion",value:"exclusion"},{label:"hue",value:"hue"},{label:"saturation",value:"saturation"},{label:"color",value:"color"},{label:"luminosity",value:"luminosity"}]}},repeat:{type:"select",name:"Bg repeat",options:[{label:"no-repeat",value:"no-repeat"},{label:"repeat",value:"repeat"},{label:"repeat-x",value:"repeat-x"},{label:"repeat-y",value:"repeat-y"},{label:"round",value:"round"},{label:"space",value:"space"}]}},this.model=T(U[0]),this.presets=U,this.presetStyles=[]}ngOnInit(){this.demoStyle=this.getBgStyle(this.model),this.presetStyles=this.presets.map(t=>this.getBgStyle(t))}getBgStyle(t){return console.log(t),{"background-image":t.gradients.map(e=>{let n=e.repeating?`repeating-${e.type}-gradient`:`${e.type}-gradient`,d={linear:e.angle?`${e.angle}deg,`:"",radial:e.radialBase?`${e.radialBase},`:"",conic:e.conicBase?`${e.conicBase},`:""},q=e.stops?.map((v,Te)=>Y(J({},v),{color:e.reverse?e.stops[e.stops.length-1-Te].color:v.color})).map(v=>`${v.color} ${v.offset}`).join(",");return q?`${n}(${d[e.type]}${q})`:""}).filter(e=>e.trim()).join(","),"background-position":t.gradients.map(e=>`${e.position?.x||""} ${e.position?.y||""}`).filter(e=>e.trim()).join(","),"background-size":t.gradients.map(e=>`${e.size?.w||""} ${e.size?.h||""}`).filter(e=>e.trim()).join(","),"background-blend-mode":t.blendMode.join(","),"background-repeat":t.repeat}}selectPreset(t){this.model=T(t),this.config=T(this.config)}};i.\u0275fac=function(e){return new(e||i)},i.\u0275cmp=f({type:i,selectors:[["app-gradient-generator"]],standalone:!0,features:[x],decls:12,vars:4,consts:[[1,"jumbotron"],[1,"text"],[1,"gui-wrapper"],[1,"gui-heading"],[3,"modelChange","config","model"],["mat-stroked-button","",3,"style"],["mat-stroked-button","",3,"click"]],template:function(e,n){e&1&&(a(0,"div",0)(1,"div",1)(2,"h1"),c(3,"Acrodata GUI"),l(),a(4,"p"),c(5,"A lightweight GUI library for Angular"),l()(),a(6,"div",2)(7,"div",3),c(8,"Gradient Generator"),l(),a(9,"gui-form",4),D("modelChange",function(d){return n.demoStyle=n.getBgStyle(d)}),l()()(),ge(10,Ge,1,2,"button",5,ce)),e&2&&(F(n.demoStyle),s(9),_("config",n.config)("model",n.model),s(),ue(n.presets))},dependencies:[j,I,_e,ve],styles:['.jumbotron[_ngcontent-%COMP%]{display:flex;min-height:30vw;padding:64px;margin-bottom:24px;border-radius:8px}.text[_ngcontent-%COMP%]{flex:1}h1[_ngcontent-%COMP%], p[_ngcontent-%COMP%]{color:#fff;text-shadow:4px 4px 6px rgba(0,0,0,.85)}.gui-wrapper[_ngcontent-%COMP%]{width:260px}.gui-heading[_ngcontent-%COMP%]{padding:0 12px;border-radius:4px 4px 0 0;background-color:var(--bg-color);border-bottom:1px solid var(--border-color);text-align:center;line-height:32px;font-size:12px}@media (width <= 600px){.jumbotron[_ngcontent-%COMP%]{flex-direction:column;align-items:center;padding:16px}.text[_ngcontent-%COMP%]{margin-bottom:32px;text-align:center}}button[_ngcontent-%COMP%] + button[_ngcontent-%COMP%]{margin-left:8px}[_nghost-%COMP%] .gui-form{border-top-left-radius:0;border-top-right-radius:0}[_nghost-%COMP%] .gui-form .mat-expansion-panel{position:relative;padding-left:4px}[_nghost-%COMP%] .gui-form .mat-expansion-panel:before{content:"";position:absolute;top:10px;bottom:10px;left:2px;z-index:2;display:block;width:4px;border:2px solid rgba(0,0,0,.4);border-right:none}'],changeDetection:0});let o=i;return o})();export{R as a,Oe as b,Ee as c,rt as d,st as e,mt as f}; +`],encapsulation:2});let o=i;return o})();var U=[{gradients:[{type:"linear",repeating:!0,reverse:!1,angle:45,stops:[{color:"rgba(75, 75, 75, 0.5)",offset:"0%"},{color:"rgba(220, 235, 255, 0.75)",offset:"50%"}],position:{},size:{w:"100px",h:"100px"}},{type:"linear",repeating:!0,reverse:!1,angle:135,stops:[{color:"rgba(5, 30, 50, 0.75)",offset:"0%"},{color:"rgba(115, 150, 255, 0.5)",offset:"50%"}],position:{},size:{}}],blendMode:["overlay"],repeat:"repeat"},{gradients:[{type:"conic",repeating:!0,conicBase:"",stops:[{color:"#023047",offset:"0 25%"},{color:"#00000000",offset:"0 50%"}],position:{x:"0",y:"0"},size:{w:"50px",h:"86.5px"}},{type:"conic",repeating:!0,conicBase:"from -30deg",stops:[{color:"#fb8500",offset:"0 16.67%"},{color:"#023047",offset:"0 50%"}],position:{x:"0",y:"0"},size:{w:"25px",h:"43.25px"}}],blendMode:["normal"],repeat:"repeat"},{gradients:[{type:"conic",conicBase:"from -60deg at 50% 33.33%",stops:[{color:"#d9d9d9",offset:"0 120deg"},{color:"#00000000",offset:"0"}],position:{},size:{w:"142.024px",h:"82px"}},{type:"conic",conicBase:"from 120deg at 50% 66.67%",stops:[{color:"#d9d9d9",offset:"0 120deg"},{color:"#00000000",offset:"0"}],position:{},size:{}},{type:"conic",conicBase:"from 60deg at 66.67%",stops:[{color:"#d9d9d9",offset:"60deg"},{color:"#ffffff",offset:"0 120deg"},{color:"#00000000",offset:"0"}],position:{},size:{}},{type:"conic",conicBase:"from 180deg at 33.33%",stops:[{color:"#b2b2b2",offset:"60deg"},{color:"#d9d9d9",offset:"0 120deg"},{color:"#00000000",offset:"0"}],position:{},size:{}},{type:"linear",angle:90,stops:[{color:"#b2b2b2",offset:"16.7%"},{color:"#ffffff",offset:"0 50%"},{color:"#b2b2b2",offset:"0 83.33%"},{color:"#ffffff",offset:"0"}],position:{},size:{}}],blendMode:["normal"],repeat:"repeat"},{gradients:[{type:"linear",repeating:!0,angle:45,stops:[{color:"rgba(0,0,0,.2)",offset:"0"},{color:"transparent",offset:"5px 50px"}],position:{},size:{}},{type:"linear",repeating:!0,angle:-45,stops:[{color:"rgba(0,0,0,.2)",offset:"0"},{color:"transparent",offset:"5px 50px"}],position:{},size:{}},{type:"linear",repeating:!0,angle:45,stops:[{color:"#000",offset:"0 10px"},{color:"#333",offset:"0 20px"},{color:"#d79033",offset:"0 30px"},{color:"#d7d7d3",offset:"0 40px"},{color:"#e9e9ea",offset:"0 50px"}],position:{},size:{}},{type:"linear",repeating:!0,angle:-45,stops:[{color:"#000",offset:"0 10px"},{color:"#333",offset:"0 20px"},{color:"#d79033",offset:"0 30px"},{color:"#d7d7d3",offset:"0 40px"},{color:"#e9e9ea",offset:"0 50px"}],position:{},size:{}}],blendMode:["multiply","multiply","lighten"],repeat:"repeat"}];function Ge(o,i){if(o&1){let g=he();a(0,"button",6),D("click",function(){let e=re(g).$implicit,n=y();return ae(n.selectPreset(e))}),l()}if(o&2){let g=i.$index,t=y();F(t.presetStyles[g])}}var mt=(()=>{let i=class i{constructor(){this.demoStyle={},this.config={gradients:{type:"tabs",name:"Bg gradients",template:{name:"Gradient <%= i + 1 %>",children:{type:{type:"buttonToggle",name:"Type",options:[{label:"linear",value:"linear"},{label:"radial",value:"radial"},{label:"conic",value:"conic"}]},repeating:{type:"switch",name:"Repeating"},reverse:{type:"switch",name:"Reverse"},angle:{type:"slider",name:"Angle",min:0,max:360,suffix:"deg",showIf:{conditions:[["type","$eq","linear"]]}},radialBase:{type:"text",name:"Radial",placeholder:" at ",showIf:{conditions:[["type","$eq","radial"]]}},conicBase:{type:"text",name:"Conic",placeholder:"from at ",showIf:{conditions:[["type","$eq","conic"]]}},stops:{type:"tabs",name:"Color stops",template:{name:"Stop <%= i + 1 %>",children:{color:{type:"fill",name:"Color",default:"#000"},offset:{type:"text",name:"Offset",default:"0%"}}}},position:{type:"inline",name:"Position",children:{x:{type:"text",name:"",placeholder:"X",col:50},y:{type:"text",name:"",placeholder:"Y",col:50}}},size:{type:"inline",name:"Size",children:{w:{type:"text",name:"",placeholder:"W",col:50},h:{type:"text",name:"",placeholder:"H",col:50}}}}}},blendMode:{type:"tabs",name:"Bg blend mode",mode:"list",template:{type:"select",name:"Blend mode <%= i + 1 %>",options:[{label:"normal",value:"normal"},{label:"multiply",value:"multiply"},{label:"screen",value:"screen"},{label:"overlay",value:"overlay"},{label:"darken",value:"darken"},{label:"lighten",value:"lighten"},{label:"color-dodge",value:"color-dodge"},{label:"color-burn",value:"color-burn"},{label:"hard-light",value:"hard-light"},{label:"soft-light",value:"soft-light"},{label:"difference",value:"difference"},{label:"exclusion",value:"exclusion"},{label:"hue",value:"hue"},{label:"saturation",value:"saturation"},{label:"color",value:"color"},{label:"luminosity",value:"luminosity"}]}},repeat:{type:"select",name:"Bg repeat",options:[{label:"no-repeat",value:"no-repeat"},{label:"repeat",value:"repeat"},{label:"repeat-x",value:"repeat-x"},{label:"repeat-y",value:"repeat-y"},{label:"round",value:"round"},{label:"space",value:"space"}]}},this.model=T(U[0]),this.presets=U,this.presetStyles=[]}ngOnInit(){this.demoStyle=this.getBgStyle(this.model),this.presetStyles=this.presets.map(t=>this.getBgStyle(t))}getBgStyle(t){return console.log(t),{"background-image":t.gradients.map(e=>{let n=e.repeating?`repeating-${e.type}-gradient`:`${e.type}-gradient`,d={linear:e.angle?`${e.angle}deg,`:"",radial:e.radialBase?`${e.radialBase},`:"",conic:e.conicBase?`${e.conicBase},`:""},q=e.stops?.map((v,Te)=>Y(J({},v),{color:e.reverse?e.stops[e.stops.length-1-Te].color:v.color})).map(v=>`${v.color} ${v.offset}`).join(",");return q?`${n}(${d[e.type]}${q})`:""}).filter(e=>e.trim()).join(","),"background-position":t.gradients.map(e=>`${e.position?.x||""} ${e.position?.y||""}`).filter(e=>e.trim()).join(","),"background-size":t.gradients.map(e=>`${e.size?.w||""} ${e.size?.h||""}`).filter(e=>e.trim()).join(","),"background-blend-mode":t.blendMode.join(","),"background-repeat":t.repeat}}selectPreset(t){this.model=T(t),this.config=T(this.config)}};i.\u0275fac=function(e){return new(e||i)},i.\u0275cmp=f({type:i,selectors:[["app-gradient-generator"]],standalone:!0,features:[x],decls:12,vars:4,consts:[[1,"jumbotron"],[1,"text"],[1,"gui-wrapper"],[1,"gui-heading"],[3,"modelChange","config","model"],["mat-stroked-button","",3,"style"],["mat-stroked-button","",3,"click"]],template:function(e,n){e&1&&(a(0,"div",0)(1,"div",1)(2,"h1"),c(3,"Acrodata GUI"),l(),a(4,"p"),c(5,"JSON powered GUI for configurable panels"),l()(),a(6,"div",2)(7,"div",3),c(8,"Gradient Generator"),l(),a(9,"gui-form",4),D("modelChange",function(d){return n.demoStyle=n.getBgStyle(d)}),l()()(),ge(10,Ge,1,2,"button",5,ce)),e&2&&(F(n.demoStyle),s(9),_("config",n.config)("model",n.model),s(),ue(n.presets))},dependencies:[j,I,_e,ve],styles:['.jumbotron[_ngcontent-%COMP%]{display:flex;min-height:30vw;padding:64px;margin-bottom:24px;border-radius:8px}.text[_ngcontent-%COMP%]{flex:1}h1[_ngcontent-%COMP%], p[_ngcontent-%COMP%]{color:#fff;text-shadow:4px 4px 6px rgba(0,0,0,.85)}.gui-wrapper[_ngcontent-%COMP%]{width:260px}.gui-heading[_ngcontent-%COMP%]{padding:0 12px;border-radius:4px 4px 0 0;background-color:var(--bg-color);border-bottom:1px solid var(--border-color);text-align:center;line-height:32px;font-size:12px}@media (width <= 600px){.jumbotron[_ngcontent-%COMP%]{flex-direction:column;align-items:center;padding:16px}.text[_ngcontent-%COMP%]{margin-bottom:32px;text-align:center}}button[_ngcontent-%COMP%] + button[_ngcontent-%COMP%]{margin-left:8px}[_nghost-%COMP%] .gui-form{border-top-left-radius:0;border-top-right-radius:0}[_nghost-%COMP%] .gui-form .mat-expansion-panel{position:relative;padding-left:4px}[_nghost-%COMP%] .gui-form .mat-expansion-panel:before{content:"";position:absolute;top:10px;bottom:10px;left:2px;z-index:2;display:block;width:4px;border:2px solid rgba(0,0,0,.4);border-right:none}'],changeDetection:0});let o=i;return o})();export{R as a,Oe as b,Ee as c,rt as d,st as e,mt as f}; diff --git a/index.html b/index.html index e956cfd..0eb1885 100644 --- a/index.html +++ b/index.html @@ -8,8 +8,8 @@ + - + diff --git a/main-YS7SZDCX.js b/main-OYJMY7TK.js similarity index 99% rename from main-YS7SZDCX.js rename to main-OYJMY7TK.js index d52e0a8..b9856c6 100644 --- a/main-YS7SZDCX.js +++ b/main-OYJMY7TK.js @@ -1,2 +1,2 @@ -import{a as as,f as ms}from"./chunk-IKKDCCDB.js";import{b as ls}from"./chunk-5RBAHAWY.js";import{$ as Ii,$a as B,$b as ps,A as Ve,Aa as Fi,Ab as ns,B as Ei,Ba as $i,Bb as rs,C as Lt,Ca as ji,Cb as is,D as we,Da as zi,Db as ss,E as Ln,Ea as qi,Eb as T,F as Ci,Fa as Bi,Fb as ce,G as Ti,Ga as zn,Gb as os,H as _i,Hb as Yn,I as le,Ia as qn,Ib as We,J as Ri,Jb as Zn,K as $,Kb as Bt,L as w,La as Vi,Ma as Bn,N as O,Na as Vn,Oa as Kn,P as Ai,Pa as D,Q as pe,Qa as k,R as xn,Ra as ie,S as Ke,T as b,Ta as ut,Ua as Qn,W as xt,Wb as us,X as be,Xa as Ki,Xb as cs,Yb as hs,Z as Ut,Za as Qi,Zb as ds,_ as Mi,_a as Wi,_b as fs,a as yi,aa as Ft,ab as Hi,b as vi,ba as De,bb as Gi,d as In,da as $t,e as Pn,f as ye,g as X,ga as Un,gb as Ee,ha as Pi,i as ve,ia as Di,j as J,k as E,ka as Fn,kb as Yi,l as at,la as Qe,lb as Zi,m as Si,mb as Xi,n as wi,na as $n,nb as Ji,o as I,ob as Wn,p as Dn,pa as Ni,pb as jt,q as ee,qa as ue,qb as zt,r as Nn,ra as j,rb as Hn,s as bi,sa as Oi,sb as Gn,t as On,ta as ki,tb as qt,u as Se,ua as Li,va as jn,w as Be,wa as xi,x as lt,xa as Ne,ya as Ui,yb as es,z as kn,zb as ts}from"./chunk-I5MCOHXJ.js";import{a as S,b as Q,c as gi}from"./chunk-CWTPBX7D.js";var C="primary",Tt=Symbol("RouteTitle"),nr=class{constructor(e){this.params=e||{}}has(e){return Object.prototype.hasOwnProperty.call(this.params,e)}get(e){if(this.has(e)){let t=this.params[e];return Array.isArray(t)?t[0]:t}return null}getAll(e){if(this.has(e)){let t=this.params[e];return Array.isArray(t)?t:[t]}return[]}get keys(){return Object.keys(this.params)}};function Xe(r){return new nr(r)}function $o(r,e,t){let n=t.path.split("/");if(n.length>r.length||t.pathMatch==="full"&&(e.hasChildren()||n.lengthn[s]===i)}else return r===e}function Es(r){return r.length>0?r[r.length-1]:null}function Re(r){return Si(r)?r:Zi(r)?J(Promise.resolve(r)):E(r)}var zo={exact:Ts,subset:_s},Cs={exact:qo,subset:Bo,ignored:()=>!0};function gs(r,e,t){return zo[t.paths](r.root,e.root,t.matrixParams)&&Cs[t.queryParams](r.queryParams,e.queryParams)&&!(t.fragment==="exact"&&r.fragment!==e.fragment)}function qo(r,e){return he(r,e)}function Ts(r,e,t){if(!ke(r.segments,e.segments)||!Qt(r.segments,e.segments,t)||r.numberOfChildren!==e.numberOfChildren)return!1;for(let n in e.children)if(!r.children[n]||!Ts(r.children[n],e.children[n],t))return!1;return!0}function Bo(r,e){return Object.keys(e).length<=Object.keys(r).length&&Object.keys(e).every(t=>bs(r[t],e[t]))}function _s(r,e,t){return Rs(r,e,e.segments,t)}function Rs(r,e,t,n){if(r.segments.length>t.length){let i=r.segments.slice(0,t.length);return!(!ke(i,t)||e.hasChildren()||!Qt(i,t,n))}else if(r.segments.length===t.length){if(!ke(r.segments,t)||!Qt(r.segments,t,n))return!1;for(let i in e.children)if(!r.children[i]||!_s(r.children[i],e.children[i],n))return!1;return!0}else{let i=t.slice(0,r.segments.length),s=t.slice(r.segments.length);return!ke(r.segments,i)||!Qt(r.segments,i,n)||!r.children[C]?!1:Rs(r.children[C],e,s,n)}}function Qt(r,e,t){return e.every((n,i)=>Cs[t](r[i].parameters,n.parameters))}var Ce=class{constructor(e=new R([],{}),t={},n=null){this.root=e,this.queryParams=t,this.fragment=n}get queryParamMap(){return this._queryParamMap??=Xe(this.queryParams),this._queryParamMap}toString(){return Qo.serialize(this)}},R=class{constructor(e,t){this.segments=e,this.children=t,this.parent=null,Object.values(t).forEach(n=>n.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Wt(this)}},Oe=class{constructor(e,t){this.path=e,this.parameters=t}get parameterMap(){return this._parameterMap??=Xe(this.parameters),this._parameterMap}toString(){return Ms(this)}};function Vo(r,e){return ke(r,e)&&r.every((t,n)=>he(t.parameters,e[n].parameters))}function ke(r,e){return r.length!==e.length?!1:r.every((t,n)=>t.path===e[n].path)}function Ko(r,e){let t=[];return Object.entries(r.children).forEach(([n,i])=>{n===C&&(t=t.concat(e(i,n)))}),Object.entries(r.children).forEach(([n,i])=>{n!==C&&(t=t.concat(e(i,n)))}),t}var ln=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=O({token:e,factory:()=>new Gt,providedIn:"root"});let r=e;return r})(),Gt=class{parse(e){let t=new sr(e);return new Ce(t.parseRootSegment(),t.parseQueryParams(),t.parseFragment())}serialize(e){let t=`/${ct(e.root,!0)}`,n=Go(e.queryParams),i=typeof e.fragment=="string"?`#${Wo(e.fragment)}`:"";return`${t}${n}${i}`}},Qo=new Gt;function Wt(r){return r.segments.map(e=>Ms(e)).join("/")}function ct(r,e){if(!r.hasChildren())return Wt(r);if(e){let t=r.children[C]?ct(r.children[C],!1):"",n=[];return Object.entries(r.children).forEach(([i,s])=>{i!==C&&n.push(`${i}:${ct(s,!1)}`)}),n.length>0?`${t}(${n.join("//")})`:t}else{let t=Ko(r,(n,i)=>i===C?[ct(r.children[C],!1)]:[`${i}:${ct(n,!1)}`]);return Object.keys(r.children).length===1&&r.children[C]!=null?`${Wt(r)}/${t[0]}`:`${Wt(r)}/(${t.join("//")})`}}function As(r){return encodeURIComponent(r).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Vt(r){return As(r).replace(/%3B/gi,";")}function Wo(r){return encodeURI(r)}function ir(r){return As(r).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Ht(r){return decodeURIComponent(r)}function ys(r){return Ht(r.replace(/\+/g,"%20"))}function Ms(r){return`${ir(r.path)}${Ho(r.parameters)}`}function Ho(r){return Object.entries(r).map(([e,t])=>`;${ir(e)}=${ir(t)}`).join("")}function Go(r){let e=Object.entries(r).map(([t,n])=>Array.isArray(n)?n.map(i=>`${Vt(t)}=${Vt(i)}`).join("&"):`${Vt(t)}=${Vt(n)}`).filter(t=>t);return e.length?`?${e.join("&")}`:""}var Yo=/^[^\/()?;#]+/;function Xn(r){let e=r.match(Yo);return e?e[0]:""}var Zo=/^[^\/()?;=#]+/;function Xo(r){let e=r.match(Zo);return e?e[0]:""}var Jo=/^[^=?&#]+/;function ea(r){let e=r.match(Jo);return e?e[0]:""}var ta=/^[^&#]+/;function na(r){let e=r.match(ta);return e?e[0]:""}var sr=class{constructor(e){this.url=e,this.remaining=e}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new R([],{}):new R([],this.parseChildren())}parseQueryParams(){let e={};if(this.consumeOptional("?"))do this.parseQueryParam(e);while(this.consumeOptional("&"));return e}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(this.remaining==="")return{};this.consumeOptional("/");let e=[];for(this.peekStartsWith("(")||e.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),e.push(this.parseSegment());let t={};this.peekStartsWith("/(")&&(this.capture("/"),t=this.parseParens(!0));let n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(e.length>0||Object.keys(t).length>0)&&(n[C]=new R(e,t)),n}parseSegment(){let e=Xn(this.remaining);if(e===""&&this.peekStartsWith(";"))throw new w(4009,!1);return this.capture(e),new Oe(Ht(e),this.parseMatrixParams())}parseMatrixParams(){let e={};for(;this.consumeOptional(";");)this.parseParam(e);return e}parseParam(e){let t=Xo(this.remaining);if(!t)return;this.capture(t);let n="";if(this.consumeOptional("=")){let i=Xn(this.remaining);i&&(n=i,this.capture(n))}e[Ht(t)]=Ht(n)}parseQueryParam(e){let t=ea(this.remaining);if(!t)return;this.capture(t);let n="";if(this.consumeOptional("=")){let o=na(this.remaining);o&&(n=o,this.capture(n))}let i=ys(t),s=ys(n);if(e.hasOwnProperty(i)){let o=e[i];Array.isArray(o)||(o=[o],e[i]=o),o.push(s)}else e[i]=s}parseParens(e){let t={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let n=Xn(this.remaining),i=this.remaining[n.length];if(i!=="/"&&i!==")"&&i!==";")throw new w(4010,!1);let s;n.indexOf(":")>-1?(s=n.slice(0,n.indexOf(":")),this.capture(s),this.capture(":")):e&&(s=C);let o=this.parseChildren();t[s]=Object.keys(o).length===1?o[C]:new R([],o),this.consumeOptional("//")}return t}peekStartsWith(e){return this.remaining.startsWith(e)}consumeOptional(e){return this.peekStartsWith(e)?(this.remaining=this.remaining.substring(e.length),!0):!1}capture(e){if(!this.consumeOptional(e))throw new w(4011,!1)}};function Is(r){return r.segments.length>0?new R([],{[C]:r}):r}function Ps(r){let e={};for(let[n,i]of Object.entries(r.children)){let s=Ps(i);if(n===C&&s.segments.length===0&&s.hasChildren())for(let[o,a]of Object.entries(s.children))e[o]=a;else(s.segments.length>0||s.hasChildren())&&(e[n]=s)}let t=new R(r.segments,e);return ra(t)}function ra(r){if(r.numberOfChildren===1&&r.children[C]){let e=r.children[C];return new R(r.segments.concat(e.segments),e.children)}return r}function Je(r){return r instanceof Ce}function ia(r,e,t=null,n=null){let i=Ds(r);return Ns(i,e,t,n)}function Ds(r){let e;function t(s){let o={};for(let u of s.children){let l=t(u);o[u.outlet]=l}let a=new R(s.url,o);return s===r&&(e=a),a}let n=t(r.root),i=Is(n);return e??i}function Ns(r,e,t,n){let i=r;for(;i.parent;)i=i.parent;if(e.length===0)return Jn(i,i,i,t,n);let s=sa(e);if(s.toRoot())return Jn(i,i,new R([],{}),t,n);let o=oa(s,i,r),a=o.processChildren?ft(o.segmentGroup,o.index,s.commands):ks(o.segmentGroup,o.index,s.commands);return Jn(i,o.segmentGroup,a,t,n)}function Yt(r){return typeof r=="object"&&r!=null&&!r.outlets&&!r.segmentPath}function gt(r){return typeof r=="object"&&r!=null&&r.outlets}function Jn(r,e,t,n,i){let s={};n&&Object.entries(n).forEach(([u,l])=>{s[u]=Array.isArray(l)?l.map(c=>`${c}`):`${l}`});let o;r===e?o=t:o=Os(r,e,t);let a=Is(Ps(o));return new Ce(a,s,i)}function Os(r,e,t){let n={};return Object.entries(r.children).forEach(([i,s])=>{s===e?n[i]=t:n[i]=Os(s,e,t)}),new R(r.segments,n)}var Zt=class{constructor(e,t,n){if(this.isAbsolute=e,this.numberOfDoubleDots=t,this.commands=n,e&&n.length>0&&Yt(n[0]))throw new w(4003,!1);let i=n.find(gt);if(i&&i!==Es(n))throw new w(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function sa(r){if(typeof r[0]=="string"&&r.length===1&&r[0]==="/")return new Zt(!0,0,r);let e=0,t=!1,n=r.reduce((i,s,o)=>{if(typeof s=="object"&&s!=null){if(s.outlets){let a={};return Object.entries(s.outlets).forEach(([u,l])=>{a[u]=typeof l=="string"?l.split("/"):l}),[...i,{outlets:a}]}if(s.segmentPath)return[...i,s.segmentPath]}return typeof s!="string"?[...i,s]:o===0?(s.split("/").forEach((a,u)=>{u==0&&a==="."||(u==0&&a===""?t=!0:a===".."?e++:a!=""&&i.push(a))}),i):[...i,s]},[]);return new Zt(t,e,n)}var Ye=class{constructor(e,t,n){this.segmentGroup=e,this.processChildren=t,this.index=n}};function oa(r,e,t){if(r.isAbsolute)return new Ye(e,!0,0);if(!t)return new Ye(e,!1,NaN);if(t.parent===null)return new Ye(t,!0,0);let n=Yt(r.commands[0])?0:1,i=t.segments.length-1+n;return aa(t,i,r.numberOfDoubleDots)}function aa(r,e,t){let n=r,i=e,s=t;for(;s>i;){if(s-=i,n=n.parent,!n)throw new w(4005,!1);i=n.segments.length}return new Ye(n,!1,i-s)}function la(r){return gt(r[0])?r[0].outlets:{[C]:r}}function ks(r,e,t){if(r??=new R([],{}),r.segments.length===0&&r.hasChildren())return ft(r,e,t);let n=ua(r,e,t),i=t.slice(n.commandIndex);if(n.match&&n.pathIndexs!==C)&&r.children[C]&&r.numberOfChildren===1&&r.children[C].segments.length===0){let s=ft(r.children[C],e,t);return new R(r.segments,s.children)}return Object.entries(n).forEach(([s,o])=>{typeof o=="string"&&(o=[o]),o!==null&&(i[s]=ks(r.children[s],e,o))}),Object.entries(r.children).forEach(([s,o])=>{n[s]===void 0&&(i[s]=o)}),new R(r.segments,i)}}function ua(r,e,t){let n=0,i=e,s={match:!1,pathIndex:0,commandIndex:0};for(;i=t.length)return s;let o=r.segments[i],a=t[n];if(gt(a))break;let u=`${a}`,l=n0&&u===void 0)break;if(u&&l&&typeof l=="object"&&l.outlets===void 0){if(!Ss(u,l,o))return s;n+=2}else{if(!Ss(u,{},o))return s;n++}i++}return{match:!0,pathIndex:i,commandIndex:n}}function or(r,e,t){let n=r.segments.slice(0,e),i=0;for(;i{typeof n=="string"&&(n=[n]),n!==null&&(e[t]=or(new R([],{}),0,n))}),e}function vs(r){let e={};return Object.entries(r).forEach(([t,n])=>e[t]=`${n}`),e}function Ss(r,e,t){return r==t.path&&he(e,t.parameters)}var pt="imperative",x=function(r){return r[r.NavigationStart=0]="NavigationStart",r[r.NavigationEnd=1]="NavigationEnd",r[r.NavigationCancel=2]="NavigationCancel",r[r.NavigationError=3]="NavigationError",r[r.RoutesRecognized=4]="RoutesRecognized",r[r.ResolveStart=5]="ResolveStart",r[r.ResolveEnd=6]="ResolveEnd",r[r.GuardsCheckStart=7]="GuardsCheckStart",r[r.GuardsCheckEnd=8]="GuardsCheckEnd",r[r.RouteConfigLoadStart=9]="RouteConfigLoadStart",r[r.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",r[r.ChildActivationStart=11]="ChildActivationStart",r[r.ChildActivationEnd=12]="ChildActivationEnd",r[r.ActivationStart=13]="ActivationStart",r[r.ActivationEnd=14]="ActivationEnd",r[r.Scroll=15]="Scroll",r[r.NavigationSkipped=16]="NavigationSkipped",r}(x||{}),te=class{constructor(e,t){this.id=e,this.url=t}},et=class extends te{constructor(e,t,n="imperative",i=null){super(e,t),this.type=x.NavigationStart,this.navigationTrigger=n,this.restoredState=i}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},ne=class extends te{constructor(e,t,n){super(e,t),this.urlAfterRedirects=n,this.type=x.NavigationEnd}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},H=function(r){return r[r.Redirect=0]="Redirect",r[r.SupersededByNewNavigation=1]="SupersededByNewNavigation",r[r.NoDataFromResolver=2]="NoDataFromResolver",r[r.GuardRejected=3]="GuardRejected",r}(H||{}),Xt=function(r){return r[r.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",r[r.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",r}(Xt||{}),Te=class extends te{constructor(e,t,n,i){super(e,t),this.reason=n,this.code=i,this.type=x.NavigationCancel}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}},_e=class extends te{constructor(e,t,n,i){super(e,t),this.reason=n,this.code=i,this.type=x.NavigationSkipped}},yt=class extends te{constructor(e,t,n,i){super(e,t),this.error=n,this.target=i,this.type=x.NavigationError}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},Jt=class extends te{constructor(e,t,n,i){super(e,t),this.urlAfterRedirects=n,this.state=i,this.type=x.RoutesRecognized}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},ar=class extends te{constructor(e,t,n,i){super(e,t),this.urlAfterRedirects=n,this.state=i,this.type=x.GuardsCheckStart}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},lr=class extends te{constructor(e,t,n,i,s){super(e,t),this.urlAfterRedirects=n,this.state=i,this.shouldActivate=s,this.type=x.GuardsCheckEnd}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},ur=class extends te{constructor(e,t,n,i){super(e,t),this.urlAfterRedirects=n,this.state=i,this.type=x.ResolveStart}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},cr=class extends te{constructor(e,t,n,i){super(e,t),this.urlAfterRedirects=n,this.state=i,this.type=x.ResolveEnd}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},hr=class{constructor(e){this.route=e,this.type=x.RouteConfigLoadStart}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},dr=class{constructor(e){this.route=e,this.type=x.RouteConfigLoadEnd}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},fr=class{constructor(e){this.snapshot=e,this.type=x.ChildActivationStart}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},pr=class{constructor(e){this.snapshot=e,this.type=x.ChildActivationEnd}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},mr=class{constructor(e){this.snapshot=e,this.type=x.ActivationStart}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},gr=class{constructor(e){this.snapshot=e,this.type=x.ActivationEnd}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},en=class{constructor(e,t,n){this.routerEvent=e,this.position=t,this.anchor=n,this.type=x.Scroll}toString(){let e=this.position?`${this.position[0]}, ${this.position[1]}`:null;return`Scroll(anchor: '${this.anchor}', position: '${e}')`}},vt=class{},St=class{constructor(e){this.url=e}};var yr=class{constructor(){this.outlet=null,this.route=null,this.injector=null,this.children=new un,this.attachRef=null}},un=(()=>{let e=class e{constructor(){this.contexts=new Map}onChildOutletCreated(n,i){let s=this.getOrCreateContext(n);s.outlet=i,this.contexts.set(n,s)}onChildOutletDestroyed(n){let i=this.getContext(n);i&&(i.outlet=null,i.attachRef=null)}onOutletDeactivated(){let n=this.contexts;return this.contexts=new Map,n}onOutletReAttached(n){this.contexts=n}getOrCreateContext(n){let i=this.getContext(n);return i||(i=new yr,this.contexts.set(n,i)),i}getContext(n){return this.contexts.get(n)||null}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=O({token:e,factory:e.\u0275fac,providedIn:"root"});let r=e;return r})(),tn=class{constructor(e){this._root=e}get root(){return this._root.value}parent(e){let t=this.pathFromRoot(e);return t.length>1?t[t.length-2]:null}children(e){let t=vr(e,this._root);return t?t.children.map(n=>n.value):[]}firstChild(e){let t=vr(e,this._root);return t&&t.children.length>0?t.children[0].value:null}siblings(e){let t=Sr(e,this._root);return t.length<2?[]:t[t.length-2].children.map(i=>i.value).filter(i=>i!==e)}pathFromRoot(e){return Sr(e,this._root).map(t=>t.value)}};function vr(r,e){if(r===e.value)return e;for(let t of e.children){let n=vr(r,t);if(n)return n}return null}function Sr(r,e){if(r===e.value)return[e];for(let t of e.children){let n=Sr(r,t);if(n.length)return n.unshift(e),n}return[]}var W=class{constructor(e,t){this.value=e,this.children=t}toString(){return`TreeNode(${this.value})`}};function Ge(r){let e={};return r&&r.children.forEach(t=>e[t.value.outlet]=t),e}var nn=class extends tn{constructor(e,t){super(e),this.snapshot=t,Ir(this,e)}toString(){return this.snapshot.toString()}};function Ls(r){let e=ha(r),t=new X([new Oe("",{})]),n=new X({}),i=new X({}),s=new X({}),o=new X(""),a=new Le(t,n,s,o,i,C,r,e.root);return a.snapshot=e.root,new nn(new W(a,[]),e)}function ha(r){let e={},t={},n={},i="",s=new wt([],e,n,i,t,C,r,null,{});return new rn("",new W(s,[]))}var Le=class{constructor(e,t,n,i,s,o,a,u){this.urlSubject=e,this.paramsSubject=t,this.queryParamsSubject=n,this.fragmentSubject=i,this.dataSubject=s,this.outlet=o,this.component=a,this._futureSnapshot=u,this.title=this.dataSubject?.pipe(I(l=>l[Tt]))??E(void 0),this.url=e,this.params=t,this.queryParams=n,this.fragment=i,this.data=s}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.params.pipe(I(e=>Xe(e))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(I(e=>Xe(e))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function Mr(r,e,t="emptyOnly"){let n,{routeConfig:i}=r;return e!==null&&(t==="always"||i?.path===""||!e.component&&!e.routeConfig?.loadComponent)?n={params:S(S({},e.params),r.params),data:S(S({},e.data),r.data),resolve:S(S(S(S({},r.data),e.data),i?.data),r._resolvedData)}:n={params:S({},r.params),data:S({},r.data),resolve:S(S({},r.data),r._resolvedData??{})},i&&Us(i)&&(n.resolve[Tt]=i.title),n}var wt=class{get title(){return this.data?.[Tt]}constructor(e,t,n,i,s,o,a,u,l){this.url=e,this.params=t,this.queryParams=n,this.fragment=i,this.data=s,this.outlet=o,this.component=a,this.routeConfig=u,this._resolve=l}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??=Xe(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=Xe(this.queryParams),this._queryParamMap}toString(){let e=this.url.map(n=>n.toString()).join("/"),t=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${e}', path:'${t}')`}},rn=class extends tn{constructor(e,t){super(t),this.url=e,Ir(this,t)}toString(){return xs(this._root)}};function Ir(r,e){e.value._routerState=r,e.children.forEach(t=>Ir(r,t))}function xs(r){let e=r.children.length>0?` { ${r.children.map(xs).join(", ")} } `:"";return`${r.value}${e}`}function er(r){if(r.snapshot){let e=r.snapshot,t=r._futureSnapshot;r.snapshot=t,he(e.queryParams,t.queryParams)||r.queryParamsSubject.next(t.queryParams),e.fragment!==t.fragment&&r.fragmentSubject.next(t.fragment),he(e.params,t.params)||r.paramsSubject.next(t.params),jo(e.url,t.url)||r.urlSubject.next(t.url),he(e.data,t.data)||r.dataSubject.next(t.data)}else r.snapshot=r._futureSnapshot,r.dataSubject.next(r._futureSnapshot.data)}function wr(r,e){let t=he(r.params,e.params)&&Vo(r.url,e.url),n=!r.parent!=!e.parent;return t&&!n&&(!r.parent||wr(r.parent,e.parent))}function Us(r){return typeof r.title=="string"||r.title===null}var _t=(()=>{let e=class e{constructor(){this.activated=null,this._activatedRoute=null,this.name=C,this.activateEvents=new Qe,this.deactivateEvents=new Qe,this.attachEvents=new Qe,this.detachEvents=new Qe,this.parentContexts=b(un),this.location=b(Ui),this.changeDetector=b(jt),this.environmentInjector=b(Ft),this.inputBinder=b(Pr,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(n){if(n.name){let{firstChange:i,previousValue:s}=n.name;if(i)return;this.isTrackedInParentContexts(s)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(s)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(n){return this.parentContexts.getContext(n)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let n=this.parentContexts.getContext(this.name);n?.route&&(n.attachRef?this.attach(n.attachRef,n.route):this.activateWith(n.route,n.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new w(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new w(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new w(4012,!1);this.location.detach();let n=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(n.instance),n}attach(n,i){this.activated=n,this._activatedRoute=i,this.location.insert(n.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(n.instance)}deactivate(){if(this.activated){let n=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(n)}}activateWith(n,i){if(this.isActivated)throw new w(4013,!1);this._activatedRoute=n;let s=this.location,a=n.snapshot.component,u=this.parentContexts.getOrCreateContext(this.name).children,l=new br(n,u,s.injector);this.activated=s.createComponent(a,{index:s.length,injector:l,environmentInjector:i??this.environmentInjector}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275dir=Ut({type:e,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[$t]});let r=e;return r})(),br=class r{__ngOutletInjector(e){return new r(this.route,this.childContexts,e)}constructor(e,t,n){this.route=e,this.childContexts=t,this.parent=n}get(e,t){return e===Le?this.route:e===un?this.childContexts:this.parent.get(e,t)}},Pr=new pe("");function da(r,e,t){let n=bt(r,e._root,t?t._root:void 0);return new nn(n,e)}function bt(r,e,t){if(t&&r.shouldReuseRoute(e.value,t.value.snapshot)){let n=t.value;n._futureSnapshot=e.value;let i=fa(r,e,t);return new W(n,i)}else{if(r.shouldAttach(e.value)){let s=r.retrieve(e.value);if(s!==null){let o=s.route;return o.value._futureSnapshot=e.value,o.children=e.children.map(a=>bt(r,a)),o}}let n=pa(e.value),i=e.children.map(s=>bt(r,s));return new W(n,i)}}function fa(r,e,t){return e.children.map(n=>{for(let i of t.children)if(r.shouldReuseRoute(n.value,i.value.snapshot))return bt(r,n,i);return bt(r,n)})}function pa(r){return new Le(new X(r.url),new X(r.params),new X(r.queryParams),new X(r.fragment),new X(r.data),r.outlet,r.component,r)}var Fs="ngNavigationCancelingError";function $s(r,e){let{redirectTo:t,navigationBehaviorOptions:n}=Je(e)?{redirectTo:e,navigationBehaviorOptions:void 0}:e,i=js(!1,H.Redirect);return i.url=t,i.navigationBehaviorOptions=n,i}function js(r,e){let t=new Error(`NavigationCancelingError: ${r||""}`);return t[Fs]=!0,t.cancellationCode=e,t}function ma(r){return zs(r)&&Je(r.url)}function zs(r){return!!r&&r[Fs]}var ga=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=be({type:e,selectors:[["ng-component"]],standalone:!0,features:[Ee],decls:1,vars:0,template:function(i,s){i&1&&ie(0,"router-outlet")},dependencies:[_t],encapsulation:2});let r=e;return r})();function ya(r,e){return r.providers&&!r._injector&&(r._injector=ji(r.providers,e,`Route: ${r.path}`)),r._injector??e}function Dr(r){let e=r.children&&r.children.map(Dr),t=e?Q(S({},r),{children:e}):S({},r);return!t.component&&!t.loadComponent&&(e||t.loadChildren)&&t.outlet&&t.outlet!==C&&(t.component=ga),t}function de(r){return r.outlet||C}function va(r,e){let t=r.filter(n=>de(n)===e);return t.push(...r.filter(n=>de(n)!==e)),t}function Rt(r){if(!r)return null;if(r.routeConfig?._injector)return r.routeConfig._injector;for(let e=r.parent;e;e=e.parent){let t=e.routeConfig;if(t?._loadedInjector)return t._loadedInjector;if(t?._injector)return t._injector}return null}var Sa=(r,e,t,n)=>I(i=>(new Er(e,i.targetRouterState,i.currentRouterState,t,n).activate(r),i)),Er=class{constructor(e,t,n,i,s){this.routeReuseStrategy=e,this.futureState=t,this.currState=n,this.forwardEvent=i,this.inputBindingEnabled=s}activate(e){let t=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(t,n,e),er(this.futureState.root),this.activateChildRoutes(t,n,e)}deactivateChildRoutes(e,t,n){let i=Ge(t);e.children.forEach(s=>{let o=s.value.outlet;this.deactivateRoutes(s,i[o],n),delete i[o]}),Object.values(i).forEach(s=>{this.deactivateRouteAndItsChildren(s,n)})}deactivateRoutes(e,t,n){let i=e.value,s=t?t.value:null;if(i===s)if(i.component){let o=n.getContext(i.outlet);o&&this.deactivateChildRoutes(e,t,o.children)}else this.deactivateChildRoutes(e,t,n);else s&&this.deactivateRouteAndItsChildren(t,n)}deactivateRouteAndItsChildren(e,t){e.value.component&&this.routeReuseStrategy.shouldDetach(e.value.snapshot)?this.detachAndStoreRouteSubtree(e,t):this.deactivateRouteAndOutlet(e,t)}detachAndStoreRouteSubtree(e,t){let n=t.getContext(e.value.outlet),i=n&&e.value.component?n.children:t,s=Ge(e);for(let o of Object.values(s))this.deactivateRouteAndItsChildren(o,i);if(n&&n.outlet){let o=n.outlet.detach(),a=n.children.onOutletDeactivated();this.routeReuseStrategy.store(e.value.snapshot,{componentRef:o,route:e,contexts:a})}}deactivateRouteAndOutlet(e,t){let n=t.getContext(e.value.outlet),i=n&&e.value.component?n.children:t,s=Ge(e);for(let o of Object.values(s))this.deactivateRouteAndItsChildren(o,i);n&&(n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated()),n.attachRef=null,n.route=null)}activateChildRoutes(e,t,n){let i=Ge(t);e.children.forEach(s=>{this.activateRoutes(s,i[s.value.outlet],n),this.forwardEvent(new gr(s.value.snapshot))}),e.children.length&&this.forwardEvent(new pr(e.value.snapshot))}activateRoutes(e,t,n){let i=e.value,s=t?t.value:null;if(er(i),i===s)if(i.component){let o=n.getOrCreateContext(i.outlet);this.activateChildRoutes(e,t,o.children)}else this.activateChildRoutes(e,t,n);else if(i.component){let o=n.getOrCreateContext(i.outlet);if(this.routeReuseStrategy.shouldAttach(i.snapshot)){let a=this.routeReuseStrategy.retrieve(i.snapshot);this.routeReuseStrategy.store(i.snapshot,null),o.children.onOutletReAttached(a.contexts),o.attachRef=a.componentRef,o.route=a.route.value,o.outlet&&o.outlet.attach(a.componentRef,a.route.value),er(a.route.value),this.activateChildRoutes(e,null,o.children)}else{let a=Rt(i.snapshot);o.attachRef=null,o.route=i,o.injector=a,o.outlet&&o.outlet.activateWith(i,o.injector),this.activateChildRoutes(e,null,o.children)}}else this.activateChildRoutes(e,null,n)}},sn=class{constructor(e){this.path=e,this.route=this.path[this.path.length-1]}},Ze=class{constructor(e,t){this.component=e,this.route=t}};function wa(r,e,t){let n=r._root,i=e?e._root:null;return ht(n,i,t,[n.value])}function ba(r){let e=r.routeConfig?r.routeConfig.canActivateChild:null;return!e||e.length===0?null:{node:r,guards:e}}function nt(r,e){let t=Symbol(),n=e.get(r,t);return n===t?typeof r=="function"&&!Ai(r)?r:e.get(r):n}function ht(r,e,t,n,i={canDeactivateChecks:[],canActivateChecks:[]}){let s=Ge(e);return r.children.forEach(o=>{Ea(o,s[o.value.outlet],t,n.concat([o.value]),i),delete s[o.value.outlet]}),Object.entries(s).forEach(([o,a])=>mt(a,t.getContext(o),i)),i}function Ea(r,e,t,n,i={canDeactivateChecks:[],canActivateChecks:[]}){let s=r.value,o=e?e.value:null,a=t?t.getContext(r.value.outlet):null;if(o&&s.routeConfig===o.routeConfig){let u=Ca(o,s,s.routeConfig.runGuardsAndResolvers);u?i.canActivateChecks.push(new sn(n)):(s.data=o.data,s._resolvedData=o._resolvedData),s.component?ht(r,e,a?a.children:null,n,i):ht(r,e,t,n,i),u&&a&&a.outlet&&a.outlet.isActivated&&i.canDeactivateChecks.push(new Ze(a.outlet.component,o))}else o&&mt(e,a,i),i.canActivateChecks.push(new sn(n)),s.component?ht(r,null,a?a.children:null,n,i):ht(r,null,t,n,i);return i}function Ca(r,e,t){if(typeof t=="function")return t(r,e);switch(t){case"pathParamsChange":return!ke(r.url,e.url);case"pathParamsOrQueryParamsChange":return!ke(r.url,e.url)||!he(r.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!wr(r,e)||!he(r.queryParams,e.queryParams);case"paramsChange":default:return!wr(r,e)}}function mt(r,e,t){let n=Ge(r),i=r.value;Object.entries(n).forEach(([s,o])=>{i.component?e?mt(o,e.children.getContext(s),t):mt(o,null,t):mt(o,e,t)}),i.component?e&&e.outlet&&e.outlet.isActivated?t.canDeactivateChecks.push(new Ze(e.outlet.component,i)):t.canDeactivateChecks.push(new Ze(null,i)):t.canDeactivateChecks.push(new Ze(null,i))}function At(r){return typeof r=="function"}function Ta(r){return typeof r=="boolean"}function _a(r){return r&&At(r.canLoad)}function Ra(r){return r&&At(r.canActivate)}function Aa(r){return r&&At(r.canActivateChild)}function Ma(r){return r&&At(r.canDeactivate)}function Ia(r){return r&&At(r.canMatch)}function qs(r){return r instanceof wi||r?.name==="EmptyError"}var Kt=Symbol("INITIAL_VALUE");function tt(){return le(r=>Dn(r.map(e=>e.pipe(Ve(1),_i(Kt)))).pipe(I(e=>{for(let t of e)if(t!==!0){if(t===Kt)return Kt;if(t===!1||t instanceof Ce)return t}return!0}),Se(e=>e!==Kt),Ve(1)))}function Pa(r,e){return ee(t=>{let{targetSnapshot:n,currentSnapshot:i,guards:{canActivateChecks:s,canDeactivateChecks:o}}=t;return o.length===0&&s.length===0?E(Q(S({},t),{guardsResult:!0})):Da(o,n,i,r).pipe(ee(a=>a&&Ta(a)?Na(n,s,r,e):E(a)),I(a=>Q(S({},t),{guardsResult:a})))})}function Da(r,e,t,n){return J(r).pipe(ee(i=>Ua(i.component,i.route,t,e,n)),we(i=>i!==!0,!0))}function Na(r,e,t,n){return J(e).pipe(lt(i=>bi(ka(i.route.parent,n),Oa(i.route,n),xa(r,i.path,t),La(r,i.route,t))),we(i=>i!==!0,!0))}function Oa(r,e){return r!==null&&e&&e(new mr(r)),E(!0)}function ka(r,e){return r!==null&&e&&e(new fr(r)),E(!0)}function La(r,e,t){let n=e.routeConfig?e.routeConfig.canActivate:null;if(!n||n.length===0)return E(!0);let i=n.map(s=>On(()=>{let o=Rt(e)??t,a=nt(s,o),u=Ra(a)?a.canActivate(e,r):De(o,()=>a(e,r));return Re(u).pipe(we())}));return E(i).pipe(tt())}function xa(r,e,t){let n=e[e.length-1],s=e.slice(0,e.length-1).reverse().map(o=>ba(o)).filter(o=>o!==null).map(o=>On(()=>{let a=o.guards.map(u=>{let l=Rt(o.node)??t,c=nt(u,l),h=Aa(c)?c.canActivateChild(n,r):De(l,()=>c(n,r));return Re(h).pipe(we())});return E(a).pipe(tt())}));return E(s).pipe(tt())}function Ua(r,e,t,n,i){let s=e&&e.routeConfig?e.routeConfig.canDeactivate:null;if(!s||s.length===0)return E(!0);let o=s.map(a=>{let u=Rt(e)??i,l=nt(a,u),c=Ma(l)?l.canDeactivate(r,e,t,n):De(u,()=>l(r,e,t,n));return Re(c).pipe(we())});return E(o).pipe(tt())}function Fa(r,e,t,n){let i=e.canLoad;if(i===void 0||i.length===0)return E(!0);let s=i.map(o=>{let a=nt(o,r),u=_a(a)?a.canLoad(e,t):De(r,()=>a(e,t));return Re(u)});return E(s).pipe(tt(),Bs(n))}function Bs(r){return vi($(e=>{if(Je(e))throw $s(r,e)}),I(e=>e===!0))}function $a(r,e,t,n){let i=e.canMatch;if(!i||i.length===0)return E(!0);let s=i.map(o=>{let a=nt(o,r),u=Ia(a)?a.canMatch(e,t):De(r,()=>a(e,t));return Re(u)});return E(s).pipe(tt(),Bs(n))}var Et=class{constructor(e){this.segmentGroup=e||null}},on=class extends Error{constructor(e){super(),this.urlTree=e}};function He(r){return at(new Et(r))}function ja(r){return at(new w(4e3,!1))}function za(r){return at(js(!1,H.GuardRejected))}var Cr=class{constructor(e,t){this.urlSerializer=e,this.urlTree=t}lineralizeSegments(e,t){let n=[],i=t.root;for(;;){if(n=n.concat(i.segments),i.numberOfChildren===0)return E(n);if(i.numberOfChildren>1||!i.children[C])return ja(e.redirectTo);i=i.children[C]}}applyRedirectCommands(e,t,n){let i=this.applyRedirectCreateUrlTree(t,this.urlSerializer.parse(t),e,n);if(t.startsWith("/"))throw new on(i);return i}applyRedirectCreateUrlTree(e,t,n,i){let s=this.createSegmentGroup(e,t.root,n,i);return new Ce(s,this.createQueryParams(t.queryParams,this.urlTree.queryParams),t.fragment)}createQueryParams(e,t){let n={};return Object.entries(e).forEach(([i,s])=>{if(typeof s=="string"&&s.startsWith(":")){let a=s.substring(1);n[i]=t[a]}else n[i]=s}),n}createSegmentGroup(e,t,n,i){let s=this.createSegments(e,t.segments,n,i),o={};return Object.entries(t.children).forEach(([a,u])=>{o[a]=this.createSegmentGroup(e,u,n,i)}),new R(s,o)}createSegments(e,t,n,i){return t.map(s=>s.path.startsWith(":")?this.findPosParam(e,s,i):this.findOrReturn(s,n))}findPosParam(e,t,n){let i=n[t.path.substring(1)];if(!i)throw new w(4001,!1);return i}findOrReturn(e,t){let n=0;for(let i of t){if(i.path===e.path)return t.splice(n),i;n++}return e}},Tr={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function qa(r,e,t,n,i){let s=Nr(r,e,t);return s.matched?(n=ya(e,n),$a(n,e,t,i).pipe(I(o=>o===!0?s:S({},Tr)))):E(s)}function Nr(r,e,t){if(e.path==="**")return Ba(t);if(e.path==="")return e.pathMatch==="full"&&(r.hasChildren()||t.length>0)?S({},Tr):{matched:!0,consumedSegments:[],remainingSegments:t,parameters:{},positionalParamSegments:{}};let i=(e.matcher||$o)(t,r,e);if(!i)return S({},Tr);let s={};Object.entries(i.posParams??{}).forEach(([a,u])=>{s[a]=u.path});let o=i.consumed.length>0?S(S({},s),i.consumed[i.consumed.length-1].parameters):s;return{matched:!0,consumedSegments:i.consumed,remainingSegments:t.slice(i.consumed.length),parameters:o,positionalParamSegments:i.posParams??{}}}function Ba(r){return{matched:!0,parameters:r.length>0?Es(r).parameters:{},consumedSegments:r,remainingSegments:[],positionalParamSegments:{}}}function ws(r,e,t,n){return t.length>0&&Qa(r,t,n)?{segmentGroup:new R(e,Ka(n,new R(t,r.children))),slicedSegments:[]}:t.length===0&&Wa(r,t,n)?{segmentGroup:new R(r.segments,Va(r,t,n,r.children)),slicedSegments:t}:{segmentGroup:new R(r.segments,r.children),slicedSegments:t}}function Va(r,e,t,n){let i={};for(let s of t)if(cn(r,e,s)&&!n[de(s)]){let o=new R([],{});i[de(s)]=o}return S(S({},n),i)}function Ka(r,e){let t={};t[C]=e;for(let n of r)if(n.path===""&&de(n)!==C){let i=new R([],{});t[de(n)]=i}return t}function Qa(r,e,t){return t.some(n=>cn(r,e,n)&&de(n)!==C)}function Wa(r,e,t){return t.some(n=>cn(r,e,n))}function cn(r,e,t){return(r.hasChildren()||e.length>0)&&t.pathMatch==="full"?!1:t.path===""}function Ha(r,e,t,n){return de(r)!==n&&(n===C||!cn(e,t,r))?!1:Nr(e,r,t).matched}function Ga(r,e,t){return e.length===0&&!r.children[t]}var _r=class{};function Ya(r,e,t,n,i,s,o="emptyOnly"){return new Rr(r,e,t,n,i,o,s).recognize()}var Za=31,Rr=class{constructor(e,t,n,i,s,o,a){this.injector=e,this.configLoader=t,this.rootComponentType=n,this.config=i,this.urlTree=s,this.paramsInheritanceStrategy=o,this.urlSerializer=a,this.applyRedirects=new Cr(this.urlSerializer,this.urlTree),this.absoluteRedirectCount=0,this.allowRedirects=!0}noMatchError(e){return new w(4002,`'${e.segmentGroup}'`)}recognize(){let e=ws(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(e).pipe(I(t=>{let n=new wt([],Object.freeze({}),Object.freeze(S({},this.urlTree.queryParams)),this.urlTree.fragment,{},C,this.rootComponentType,null,{}),i=new W(n,t),s=new rn("",i),o=ia(n,[],this.urlTree.queryParams,this.urlTree.fragment);return o.queryParams=this.urlTree.queryParams,s.url=this.urlSerializer.serialize(o),this.inheritParamsAndData(s._root,null),{state:s,tree:o}}))}match(e){return this.processSegmentGroup(this.injector,this.config,e,C).pipe(Be(n=>{if(n instanceof on)return this.urlTree=n.urlTree,this.match(n.urlTree.root);throw n instanceof Et?this.noMatchError(n):n}))}inheritParamsAndData(e,t){let n=e.value,i=Mr(n,t,this.paramsInheritanceStrategy);n.params=Object.freeze(i.params),n.data=Object.freeze(i.data),e.children.forEach(s=>this.inheritParamsAndData(s,n))}processSegmentGroup(e,t,n,i){return n.segments.length===0&&n.hasChildren()?this.processChildren(e,t,n):this.processSegment(e,t,n,n.segments,i,!0).pipe(I(s=>s instanceof W?[s]:[]))}processChildren(e,t,n){let i=[];for(let s of Object.keys(n.children))s==="primary"?i.unshift(s):i.push(s);return J(i).pipe(lt(s=>{let o=n.children[s],a=va(t,s);return this.processSegmentGroup(e,a,o,s)}),Ti((s,o)=>(s.push(...o),s)),kn(null),Ci(),ee(s=>{if(s===null)return He(n);let o=Vs(s);return Xa(o),E(o)}))}processSegment(e,t,n,i,s,o){return J(t).pipe(lt(a=>this.processSegmentAgainstRoute(a._injector??e,t,a,n,i,s,o).pipe(Be(u=>{if(u instanceof Et)return E(null);throw u}))),we(a=>!!a),Be(a=>{if(qs(a))return Ga(n,i,s)?E(new _r):He(n);throw a}))}processSegmentAgainstRoute(e,t,n,i,s,o,a){return Ha(n,i,s,o)?n.redirectTo===void 0?this.matchSegmentAgainstRoute(e,i,n,s,o):this.allowRedirects&&a?this.expandSegmentAgainstRouteUsingRedirect(e,i,t,n,s,o):He(i):He(i)}expandSegmentAgainstRouteUsingRedirect(e,t,n,i,s,o){let{matched:a,consumedSegments:u,positionalParamSegments:l,remainingSegments:c}=Nr(t,i,s);if(!a)return He(t);i.redirectTo.startsWith("/")&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>Za&&(this.allowRedirects=!1));let h=this.applyRedirects.applyRedirectCommands(u,i.redirectTo,l);return this.applyRedirects.lineralizeSegments(i,h).pipe(ee(d=>this.processSegment(e,n,t,d.concat(c),o,!1)))}matchSegmentAgainstRoute(e,t,n,i,s){let o=qa(t,n,i,e,this.urlSerializer);return n.path==="**"&&(t.children={}),o.pipe(le(a=>a.matched?(e=n._injector??e,this.getChildConfig(e,n,i).pipe(le(({routes:u})=>{let l=n._loadedInjector??e,{consumedSegments:c,remainingSegments:h,parameters:d}=a,f=new wt(c,d,Object.freeze(S({},this.urlTree.queryParams)),this.urlTree.fragment,el(n),de(n),n.component??n._loadedComponent??null,n,tl(n)),{segmentGroup:m,slicedSegments:y}=ws(t,c,h,u);if(y.length===0&&m.hasChildren())return this.processChildren(l,u,m).pipe(I(M=>M===null?null:new W(f,M)));if(u.length===0&&y.length===0)return E(new W(f,[]));let A=de(n)===s;return this.processSegment(l,u,m,y,A?C:s,!0).pipe(I(M=>new W(f,M instanceof W?[M]:[])))}))):He(t)))}getChildConfig(e,t,n){return t.children?E({routes:t.children,injector:e}):t.loadChildren?t._loadedRoutes!==void 0?E({routes:t._loadedRoutes,injector:t._loadedInjector}):Fa(e,t,n,this.urlSerializer).pipe(ee(i=>i?this.configLoader.loadChildren(e,t).pipe($(s=>{t._loadedRoutes=s.routes,t._loadedInjector=s.injector})):za(t))):E({routes:[],injector:e})}};function Xa(r){r.sort((e,t)=>e.value.outlet===C?-1:t.value.outlet===C?1:e.value.outlet.localeCompare(t.value.outlet))}function Ja(r){let e=r.value.routeConfig;return e&&e.path===""}function Vs(r){let e=[],t=new Set;for(let n of r){if(!Ja(n)){e.push(n);continue}let i=e.find(s=>n.value.routeConfig===s.value.routeConfig);i!==void 0?(i.children.push(...n.children),t.add(i)):e.push(n)}for(let n of t){let i=Vs(n.children);e.push(new W(n.value,i))}return e.filter(n=>!t.has(n))}function el(r){return r.data||{}}function tl(r){return r.resolve||{}}function nl(r,e,t,n,i,s){return ee(o=>Ya(r,e,t,n,o.extractedUrl,i,s).pipe(I(({state:a,tree:u})=>Q(S({},o),{targetSnapshot:a,urlAfterRedirects:u}))))}function rl(r,e){return ee(t=>{let{targetSnapshot:n,guards:{canActivateChecks:i}}=t;if(!i.length)return E(t);let s=new Set(i.map(u=>u.route)),o=new Set;for(let u of s)if(!o.has(u))for(let l of Ks(u))o.add(l);let a=0;return J(o).pipe(lt(u=>s.has(u)?il(u,n,r,e):(u.data=Mr(u,u.parent,r).resolve,E(void 0))),$(()=>a++),Ln(1),ee(u=>a===o.size?E(t):ve))})}function Ks(r){let e=r.children.map(t=>Ks(t)).flat();return[r,...e]}function il(r,e,t,n){let i=r.routeConfig,s=r._resolve;return i?.title!==void 0&&!Us(i)&&(s[Tt]=i.title),sl(s,r,e,n).pipe(I(o=>(r._resolvedData=o,r.data=Mr(r,r.parent,t).resolve,null)))}function sl(r,e,t,n){let i=rr(r);if(i.length===0)return E({});let s={};return J(i).pipe(ee(o=>ol(r[o],e,t,n).pipe(we(),$(a=>{s[o]=a}))),Ln(1),Ei(s),Be(o=>qs(o)?ve:at(o)))}function ol(r,e,t,n){let i=Rt(e)??n,s=nt(r,i),o=s.resolve?s.resolve(e,t):De(i,()=>s(e,t));return Re(o)}function tr(r){return le(e=>{let t=r(e);return t?J(t).pipe(I(()=>e)):E(e)})}var Qs=(()=>{let e=class e{buildTitle(n){let i,s=n.root;for(;s!==void 0;)i=this.getResolvedTitleForRoute(s)??i,s=s.children.find(o=>o.outlet===C);return i}getResolvedTitleForRoute(n){return n.data[Tt]}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=O({token:e,factory:()=>b(al),providedIn:"root"});let r=e;return r})(),al=(()=>{let e=class e extends Qs{constructor(n){super(),this.title=n}updateTitle(n){let i=this.buildTitle(n);i!==void 0&&this.title.setTitle(i)}};e.\u0275fac=function(i){return new(i||e)(Ke(is))},e.\u0275prov=O({token:e,factory:e.\u0275fac,providedIn:"root"});let r=e;return r})(),Or=new pe("",{providedIn:"root",factory:()=>({})}),kr=new pe(""),ll=(()=>{let e=class e{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=b(Wn)}loadComponent(n){if(this.componentLoaders.get(n))return this.componentLoaders.get(n);if(n._loadedComponent)return E(n._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(n);let i=Re(n.loadComponent()).pipe(I(Ws),$(o=>{this.onLoadEndListener&&this.onLoadEndListener(n),n._loadedComponent=o}),Lt(()=>{this.componentLoaders.delete(n)})),s=new Pn(i,()=>new ye).pipe(In());return this.componentLoaders.set(n,s),s}loadChildren(n,i){if(this.childrenLoaders.get(i))return this.childrenLoaders.get(i);if(i._loadedRoutes)return E({routes:i._loadedRoutes,injector:i._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(i);let o=ul(i,this.compiler,n,this.onLoadEndListener).pipe(Lt(()=>{this.childrenLoaders.delete(i)})),a=new Pn(o,()=>new ye).pipe(In());return this.childrenLoaders.set(i,a),a}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=O({token:e,factory:e.\u0275fac,providedIn:"root"});let r=e;return r})();function ul(r,e,t,n){return Re(r.loadChildren()).pipe(I(Ws),ee(i=>i instanceof $i||Array.isArray(i)?E(i):J(e.compileModuleAsync(i))),I(i=>{n&&n(r);let s,o,a=!1;return Array.isArray(i)?(o=i,a=!0):(s=i.create(t).injector,o=s.get(kr,[],{optional:!0,self:!0}).flat()),{routes:o.map(Dr),injector:s}}))}function cl(r){return r&&typeof r=="object"&&"default"in r}function Ws(r){return cl(r)?r.default:r}var Lr=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=O({token:e,factory:()=>b(hl),providedIn:"root"});let r=e;return r})(),hl=(()=>{let e=class e{shouldProcessUrl(n){return!0}extract(n){return n}merge(n,i){return n}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=O({token:e,factory:e.\u0275fac,providedIn:"root"});let r=e;return r})(),dl=new pe("");var Hs=(()=>{let e=class e{get hasRequestedNavigation(){return this.navigationId!==0}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new ye,this.transitionAbortSubject=new ye,this.configLoader=b(ll),this.environmentInjector=b(Ft),this.urlSerializer=b(ln),this.rootContexts=b(un),this.location=b(qt),this.inputBindingEnabled=b(Pr,{optional:!0})!==null,this.titleStrategy=b(Qs),this.options=b(Or,{optional:!0})||{},this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlHandlingStrategy=b(Lr),this.createViewTransition=b(dl,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>E(void 0),this.rootComponentType=null;let n=s=>this.events.next(new hr(s)),i=s=>this.events.next(new dr(s));this.configLoader.onLoadEndListener=i,this.configLoader.onLoadStartListener=n}complete(){this.transitions?.complete()}handleNavigationRequest(n){let i=++this.navigationId;this.transitions?.next(Q(S(S({},this.transitions.value),n),{id:i}))}setupNavigations(n,i,s){return this.transitions=new X({id:0,currentUrlTree:i,currentRawUrl:i,extractedUrl:this.urlHandlingStrategy.extract(i),urlAfterRedirects:this.urlHandlingStrategy.extract(i),rawUrl:i,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:pt,restoredState:null,currentSnapshot:s.snapshot,targetSnapshot:null,currentRouterState:s,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(Se(o=>o.id!==0),I(o=>Q(S({},o),{extractedUrl:this.urlHandlingStrategy.extract(o.rawUrl)})),le(o=>{let a=!1,u=!1;return E(o).pipe(le(l=>{if(this.navigationId>o.id)return this.cancelNavigationTransition(o,"",H.SupersededByNewNavigation),ve;this.currentTransition=o,this.currentNavigation={id:l.id,initialUrl:l.rawUrl,extractedUrl:l.extractedUrl,trigger:l.source,extras:l.extras,previousNavigation:this.lastSuccessfulNavigation?Q(S({},this.lastSuccessfulNavigation),{previousNavigation:null}):null};let c=!n.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),h=l.extras.onSameUrlNavigation??n.onSameUrlNavigation;if(!c&&h!=="reload"){let d="";return this.events.next(new _e(l.id,this.urlSerializer.serialize(l.rawUrl),d,Xt.IgnoredSameUrlNavigation)),l.resolve(null),ve}if(this.urlHandlingStrategy.shouldProcessUrl(l.rawUrl))return E(l).pipe(le(d=>{let f=this.transitions?.getValue();return this.events.next(new et(d.id,this.urlSerializer.serialize(d.extractedUrl),d.source,d.restoredState)),f!==this.transitions?.getValue()?ve:Promise.resolve(d)}),nl(this.environmentInjector,this.configLoader,this.rootComponentType,n.config,this.urlSerializer,this.paramsInheritanceStrategy),$(d=>{o.targetSnapshot=d.targetSnapshot,o.urlAfterRedirects=d.urlAfterRedirects,this.currentNavigation=Q(S({},this.currentNavigation),{finalUrl:d.urlAfterRedirects});let f=new Jt(d.id,this.urlSerializer.serialize(d.extractedUrl),this.urlSerializer.serialize(d.urlAfterRedirects),d.targetSnapshot);this.events.next(f)}));if(c&&this.urlHandlingStrategy.shouldProcessUrl(l.currentRawUrl)){let{id:d,extractedUrl:f,source:m,restoredState:y,extras:A}=l,M=new et(d,this.urlSerializer.serialize(f),m,y);this.events.next(M);let N=Ls(this.rootComponentType).snapshot;return this.currentTransition=o=Q(S({},l),{targetSnapshot:N,urlAfterRedirects:f,extras:Q(S({},A),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.finalUrl=f,E(o)}else{let d="";return this.events.next(new _e(l.id,this.urlSerializer.serialize(l.extractedUrl),d,Xt.IgnoredByUrlHandlingStrategy)),l.resolve(null),ve}}),$(l=>{let c=new ar(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(c)}),I(l=>(this.currentTransition=o=Q(S({},l),{guards:wa(l.targetSnapshot,l.currentSnapshot,this.rootContexts)}),o)),Pa(this.environmentInjector,l=>this.events.next(l)),$(l=>{if(o.guardsResult=l.guardsResult,Je(l.guardsResult))throw $s(this.urlSerializer,l.guardsResult);let c=new lr(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot,!!l.guardsResult);this.events.next(c)}),Se(l=>l.guardsResult?!0:(this.cancelNavigationTransition(l,"",H.GuardRejected),!1)),tr(l=>{if(l.guards.canActivateChecks.length)return E(l).pipe($(c=>{let h=new ur(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(h)}),le(c=>{let h=!1;return E(c).pipe(rl(this.paramsInheritanceStrategy,this.environmentInjector),$({next:()=>h=!0,complete:()=>{h||this.cancelNavigationTransition(c,"",H.NoDataFromResolver)}}))}),$(c=>{let h=new cr(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(h)}))}),tr(l=>{let c=h=>{let d=[];h.routeConfig?.loadComponent&&!h.routeConfig._loadedComponent&&d.push(this.configLoader.loadComponent(h.routeConfig).pipe($(f=>{h.component=f}),I(()=>{})));for(let f of h.children)d.push(...c(f));return d};return Dn(c(l.targetSnapshot.root)).pipe(kn(null),Ve(1))}),tr(()=>this.afterPreactivation()),le(()=>{let{currentSnapshot:l,targetSnapshot:c}=o,h=this.createViewTransition?.(this.environmentInjector,l.root,c.root);return h?J(h).pipe(I(()=>o)):E(o)}),I(l=>{let c=da(n.routeReuseStrategy,l.targetSnapshot,l.currentRouterState);return this.currentTransition=o=Q(S({},l),{targetRouterState:c}),this.currentNavigation.targetRouterState=c,o}),$(()=>{this.events.next(new vt)}),Sa(this.rootContexts,n.routeReuseStrategy,l=>this.events.next(l),this.inputBindingEnabled),Ve(1),$({next:l=>{a=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new ne(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects))),this.titleStrategy?.updateTitle(l.targetRouterState.snapshot),l.resolve(!0)},complete:()=>{a=!0}}),Ri(this.transitionAbortSubject.pipe($(l=>{throw l}))),Lt(()=>{!a&&!u&&this.cancelNavigationTransition(o,"",H.SupersededByNewNavigation),this.currentTransition?.id===o.id&&(this.currentNavigation=null,this.currentTransition=null)}),Be(l=>{if(u=!0,zs(l))this.events.next(new Te(o.id,this.urlSerializer.serialize(o.extractedUrl),l.message,l.cancellationCode)),ma(l)?this.events.next(new St(l.url)):o.resolve(!1);else{this.events.next(new yt(o.id,this.urlSerializer.serialize(o.extractedUrl),l,o.targetSnapshot??void 0));try{o.resolve(n.errorHandler(l))}catch(c){this.options.resolveNavigationPromiseOnError?o.resolve(!1):o.reject(c)}}return ve}))}))}cancelNavigationTransition(n,i,s){let o=new Te(n.id,this.urlSerializer.serialize(n.extractedUrl),i,s);this.events.next(o),n.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){return this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))).toString()!==this.currentTransition?.extractedUrl.toString()&&!this.currentTransition?.extras.skipLocationChange}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=O({token:e,factory:e.\u0275fac,providedIn:"root"});let r=e;return r})();function fl(r){return r!==pt}var pl=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=O({token:e,factory:()=>b(ml),providedIn:"root"});let r=e;return r})(),Ar=class{shouldDetach(e){return!1}store(e,t){}shouldAttach(e){return!1}retrieve(e){return null}shouldReuseRoute(e,t){return e.routeConfig===t.routeConfig}},ml=(()=>{let e=class e extends Ar{};e.\u0275fac=(()=>{let n;return function(s){return(n||(n=Un(e)))(s||e)}})(),e.\u0275prov=O({token:e,factory:e.\u0275fac,providedIn:"root"});let r=e;return r})(),Gs=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=O({token:e,factory:()=>b(gl),providedIn:"root"});let r=e;return r})(),gl=(()=>{let e=class e extends Gs{constructor(){super(...arguments),this.location=b(qt),this.urlSerializer=b(ln),this.options=b(Or,{optional:!0})||{},this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.urlHandlingStrategy=b(Lr),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.currentUrlTree=new Ce,this.rawUrlTree=this.currentUrlTree,this.currentPageId=0,this.lastSuccessfulId=-1,this.routerState=Ls(null),this.stateMemento=this.createStateMemento()}getCurrentUrlTree(){return this.currentUrlTree}getRawUrlTree(){return this.rawUrlTree}restoredState(){return this.location.getState()}get browserPageId(){return this.canceledNavigationResolution!=="computed"?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}getRouterState(){return this.routerState}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}registerNonRouterCurrentEntryChangeListener(n){return this.location.subscribe(i=>{i.type==="popstate"&&n(i.url,i.state)})}handleRouterEvent(n,i){if(n instanceof et)this.stateMemento=this.createStateMemento();else if(n instanceof _e)this.rawUrlTree=i.initialUrl;else if(n instanceof Jt){if(this.urlUpdateStrategy==="eager"&&!i.extras.skipLocationChange){let s=this.urlHandlingStrategy.merge(i.finalUrl,i.initialUrl);this.setBrowserUrl(s,i)}}else n instanceof vt?(this.currentUrlTree=i.finalUrl,this.rawUrlTree=this.urlHandlingStrategy.merge(i.finalUrl,i.initialUrl),this.routerState=i.targetRouterState,this.urlUpdateStrategy==="deferred"&&(i.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,i))):n instanceof Te&&(n.code===H.GuardRejected||n.code===H.NoDataFromResolver)?this.restoreHistory(i):n instanceof yt?this.restoreHistory(i,!0):n instanceof ne&&(this.lastSuccessfulId=n.id,this.currentPageId=this.browserPageId)}setBrowserUrl(n,i){let s=this.urlSerializer.serialize(n);if(this.location.isCurrentPathEqualTo(s)||i.extras.replaceUrl){let o=this.browserPageId,a=S(S({},i.extras.state),this.generateNgRouterState(i.id,o));this.location.replaceState(s,"",a)}else{let o=S(S({},i.extras.state),this.generateNgRouterState(i.id,this.browserPageId+1));this.location.go(s,"",o)}}restoreHistory(n,i=!1){if(this.canceledNavigationResolution==="computed"){let s=this.browserPageId,o=this.currentPageId-s;o!==0?this.location.historyGo(o):this.currentUrlTree===n.finalUrl&&o===0&&(this.resetState(n),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(i&&this.resetState(n),this.resetUrlToCurrentUrlTree())}resetState(n){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,n.finalUrl??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(n,i){return this.canceledNavigationResolution==="computed"?{navigationId:n,\u0275routerPageId:i}:{navigationId:n}}};e.\u0275fac=(()=>{let n;return function(s){return(n||(n=Un(e)))(s||e)}})(),e.\u0275prov=O({token:e,factory:e.\u0275fac,providedIn:"root"});let r=e;return r})(),dt=function(r){return r[r.COMPLETE=0]="COMPLETE",r[r.FAILED=1]="FAILED",r[r.REDIRECTING=2]="REDIRECTING",r}(dt||{});function yl(r,e){r.events.pipe(Se(t=>t instanceof ne||t instanceof Te||t instanceof yt||t instanceof _e),I(t=>t instanceof ne||t instanceof _e?dt.COMPLETE:(t instanceof Te?t.code===H.Redirect||t.code===H.SupersededByNewNavigation:!1)?dt.REDIRECTING:dt.FAILED),Se(t=>t!==dt.REDIRECTING),Ve(1)).subscribe(()=>{e()})}function vl(r){throw r}var Sl={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},wl={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},rt=(()=>{let e=class e{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}constructor(){this.disposed=!1,this.isNgZoneEnabled=!1,this.console=b(Yi),this.stateManager=b(Gs),this.options=b(Or,{optional:!0})||{},this.pendingTasks=b(zi),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.navigationTransitions=b(Hs),this.urlSerializer=b(ln),this.location=b(qt),this.urlHandlingStrategy=b(Lr),this._events=new ye,this.errorHandler=this.options.errorHandler||vl,this.navigated=!1,this.routeReuseStrategy=b(pl),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.config=b(kr,{optional:!0})?.flat()??[],this.componentInputBindingEnabled=!!b(Pr,{optional:!0}),this.eventsSubscription=new yi,this.isNgZoneEnabled=b(Ne)instanceof Ne&&Ne.isInAngularZone(),this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe({error:n=>{this.console.warn(n)}}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){let n=this.navigationTransitions.events.subscribe(i=>{try{let s=this.navigationTransitions.currentTransition,o=this.navigationTransitions.currentNavigation;if(s!==null&&o!==null){if(this.stateManager.handleRouterEvent(i,o),i instanceof Te&&i.code!==H.Redirect&&i.code!==H.SupersededByNewNavigation)this.navigated=!0;else if(i instanceof ne)this.navigated=!0;else if(i instanceof St){let a=this.urlHandlingStrategy.merge(i.url,s.currentRawUrl),u={info:s.extras.info,skipLocationChange:s.extras.skipLocationChange,replaceUrl:this.urlUpdateStrategy==="eager"||fl(s.source)};this.scheduleNavigation(a,pt,null,u,{resolve:s.resolve,reject:s.reject,promise:s.promise})}}El(i)&&this._events.next(i)}catch(s){this.navigationTransitions.transitionAbortSubject.next(s)}});this.eventsSubscription.add(n)}resetRootComponentType(n){this.routerState.root.component=n,this.navigationTransitions.rootComponentType=n}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),pt,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((n,i)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(n,"popstate",i)},0)})}navigateToSyncWithBrowser(n,i,s){let o={replaceUrl:!0},a=s?.navigationId?s:null;if(s){let l=S({},s);delete l.navigationId,delete l.\u0275routerPageId,Object.keys(l).length!==0&&(o.state=l)}let u=this.parseUrl(n);this.scheduleNavigation(u,i,a,o)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(n){this.config=n.map(Dr),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription&&(this.nonRouterCurrentEntryChangeSubscription.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(n,i={}){let{relativeTo:s,queryParams:o,fragment:a,queryParamsHandling:u,preserveFragment:l}=i,c=l?this.currentUrlTree.fragment:a,h=null;switch(u){case"merge":h=S(S({},this.currentUrlTree.queryParams),o);break;case"preserve":h=this.currentUrlTree.queryParams;break;default:h=o||null}h!==null&&(h=this.removeEmptyProps(h));let d;try{let f=s?s.snapshot:this.routerState.snapshot.root;d=Ds(f)}catch{(typeof n[0]!="string"||!n[0].startsWith("/"))&&(n=[]),d=this.currentUrlTree.root}return Ns(d,n,h,c??null)}navigateByUrl(n,i={skipLocationChange:!1}){let s=Je(n)?n:this.parseUrl(n),o=this.urlHandlingStrategy.merge(s,this.rawUrlTree);return this.scheduleNavigation(o,pt,null,i)}navigate(n,i={skipLocationChange:!1}){return bl(n),this.navigateByUrl(this.createUrlTree(n,i),i)}serializeUrl(n){return this.urlSerializer.serialize(n)}parseUrl(n){try{return this.urlSerializer.parse(n)}catch{return this.urlSerializer.parse("/")}}isActive(n,i){let s;if(i===!0?s=S({},Sl):i===!1?s=S({},wl):s=i,Je(n))return gs(this.currentUrlTree,n,s);let o=this.parseUrl(n);return gs(this.currentUrlTree,o,s)}removeEmptyProps(n){return Object.entries(n).reduce((i,[s,o])=>(o!=null&&(i[s]=o),i),{})}scheduleNavigation(n,i,s,o,a){if(this.disposed)return Promise.resolve(!1);let u,l,c;a?(u=a.resolve,l=a.reject,c=a.promise):c=new Promise((d,f)=>{u=d,l=f});let h=this.pendingTasks.add();return yl(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(h))}),this.navigationTransitions.handleNavigationRequest({source:i,restoredState:s,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:n,extras:o,resolve:u,reject:l,promise:c,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),c.catch(d=>Promise.reject(d))}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=O({token:e,factory:e.\u0275fac,providedIn:"root"});let r=e;return r})();function bl(r){for(let e=0;e{let e=class e{constructor(n,i,s,o,a,u){this.router=n,this.route=i,this.tabIndexAttribute=s,this.renderer=o,this.el=a,this.locationStrategy=u,this.href=null,this.commands=null,this.onChanges=new ye,this.preserveFragment=!1,this.skipLocationChange=!1,this.replaceUrl=!1;let l=a.nativeElement.tagName?.toLowerCase();this.isAnchorElement=l==="a"||l==="area",this.isAnchorElement?this.subscription=n.events.subscribe(c=>{c instanceof ne&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(n){this.tabIndexAttribute!=null||this.isAnchorElement||this.applyAttributeValue("tabindex",n)}ngOnChanges(n){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}set routerLink(n){n!=null?(this.commands=Array.isArray(n)?n:[n],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(n,i,s,o,a){let u=this.urlTree;if(u===null||this.isAnchorElement&&(n!==0||i||s||o||a||typeof this.target=="string"&&this.target!="_self"))return!0;let l={skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info};return this.router.navigateByUrl(u,l),!this.isAnchorElement}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){let n=this.urlTree;this.href=n!==null&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(n)):null;let i=this.href===null?null:Ni(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",i)}applyAttributeValue(n,i){let s=this.renderer,o=this.el.nativeElement;i!==null?s.setAttribute(o,n,i):s.removeAttribute(o,n)}get urlTree(){return this.commands===null?null:this.router.createUrlTree(this.commands,{relativeTo:this.relativeTo!==void 0?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}};e.\u0275fac=function(i){return new(i||e)(j(rt),j(Le),Pi("tabindex"),j(jn),j(Fn),j(Gn))},e.\u0275dir=Ut({type:e,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(i,s){i&1&&ut("click",function(a){return s.onClick(a.button,a.ctrlKey,a.shiftKey,a.altKey,a.metaKey)}),i&2&&Bi("target",s.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[xt.HasDecoratorInputTransform,"preserveFragment","preserveFragment",zt],skipLocationChange:[xt.HasDecoratorInputTransform,"skipLocationChange","skipLocationChange",zt],replaceUrl:[xt.HasDecoratorInputTransform,"replaceUrl","replaceUrl",zt],routerLink:"routerLink"},standalone:!0,features:[Fi,$t]});let r=e;return r})(),Ys=(()=>{let e=class e{get isActive(){return this._isActive}constructor(n,i,s,o,a){this.router=n,this.element=i,this.renderer=s,this.cdr=o,this.link=a,this.classes=[],this._isActive=!1,this.routerLinkActiveOptions={exact:!1},this.isActiveChange=new Qe,this.routerEventsSubscription=n.events.subscribe(u=>{u instanceof ne&&this.update()})}ngAfterContentInit(){E(this.links.changes,E(null)).pipe(Nn()).subscribe(n=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();let n=[...this.links.toArray(),this.link].filter(i=>!!i).map(i=>i.onChanges);this.linkInputChangesSubscription=J(n).pipe(Nn()).subscribe(i=>{this._isActive!==this.isLinkActive(this.router)(i)&&this.update()})}set routerLinkActive(n){let i=Array.isArray(n)?n:n.split(" ");this.classes=i.filter(s=>!!s)}ngOnChanges(n){this.update()}ngOnDestroy(){this.routerEventsSubscription.unsubscribe(),this.linkInputChangesSubscription?.unsubscribe()}update(){!this.links||!this.router.navigated||queueMicrotask(()=>{let n=this.hasActiveLinks();this.classes.forEach(i=>{n?this.renderer.addClass(this.element.nativeElement,i):this.renderer.removeClass(this.element.nativeElement,i)}),n&&this.ariaCurrentWhenActive!==void 0?this.renderer.setAttribute(this.element.nativeElement,"aria-current",this.ariaCurrentWhenActive.toString()):this.renderer.removeAttribute(this.element.nativeElement,"aria-current"),this._isActive!==n&&(this._isActive=n,this.cdr.markForCheck(),this.isActiveChange.emit(n))})}isLinkActive(n){let i=Cl(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return s=>{let o=s.urlTree;return o?n.isActive(o,i):!1}}hasActiveLinks(){let n=this.isLinkActive(this.router);return this.link&&n(this.link)||this.links.some(n)}};e.\u0275fac=function(i){return new(i||e)(j(rt),j(Fn),j(jn),j(jt),j(an,8))},e.\u0275dir=Ut({type:e,selectors:[["","routerLinkActive",""]],contentQueries:function(i,s,o){if(i&1&&Ki(o,an,5),i&2){let a;Qi(a=Wi())&&(s.links=a)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],standalone:!0,features:[$t]});let r=e;return r})();function Cl(r){return!!r.paths}var Zs=new pe(""),Tl=(()=>{let e=class e{constructor(n,i,s,o,a={}){this.urlSerializer=n,this.transitions=i,this.viewportScroller=s,this.zone=o,this.options=a,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},a.scrollPositionRestoration||="disabled",a.anchorScrolling||="disabled"}init(){this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(n=>{n instanceof et?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=n.navigationTrigger,this.restoredId=n.restoredState?n.restoredState.navigationId:0):n instanceof ne?(this.lastId=n.id,this.scheduleScrollEvent(n,this.urlSerializer.parse(n.urlAfterRedirects).fragment)):n instanceof _e&&n.code===Xt.IgnoredSameUrlNavigation&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(n,this.urlSerializer.parse(n.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(n=>{n instanceof en&&(n.position?this.options.scrollPositionRestoration==="top"?this.viewportScroller.scrollToPosition([0,0]):this.options.scrollPositionRestoration==="enabled"&&this.viewportScroller.scrollToPosition(n.position):n.anchor&&this.options.anchorScrolling==="enabled"?this.viewportScroller.scrollToAnchor(n.anchor):this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(n,i){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new en(n,this.lastSource==="popstate"?this.store[this.restoredId]:null,i))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}};e.\u0275fac=function(i){Oi()},e.\u0275prov=O({token:e,factory:e.\u0275fac});let r=e;return r})();function Xs(r,...e){return Mi([{provide:kr,multi:!0,useValue:r},[],{provide:Le,useFactory:_l,deps:[rt]},{provide:Xi,multi:!0,useFactory:Al},e.map(t=>t.\u0275providers)])}function _l(r){return r.routerState.root}function Rl(r,e){return{\u0275kind:r,\u0275providers:e}}function Js(r={}){return Rl(4,[{provide:Zs,useFactory:()=>{let t=b(es),n=b(Ne),i=b(Hs),s=b(ln);return new Tl(s,i,t,n,r)}}])}function Al(){let r=b(Di);return e=>{let t=r.get(Ji);if(e!==t.components[0])return;let n=r.get(rt),i=r.get(Ml);r.get(Il)===1&&n.initialNavigation(),r.get(Pl,null,xn.Optional)?.setUpPreloading(),r.get(Zs,null,xn.Optional)?.init(),n.resetRootComponentType(t.componentTypes[0]),i.closed||(i.next(),i.complete(),i.unsubscribe())}}var Ml=new pe("",{factory:()=>new ye}),Il=new pe("",{providedIn:"root",factory:()=>1});var Pl=new pe("");function eo(r){return new w(3e3,!1)}function Nl(){return new w(3100,!1)}function Ol(){return new w(3101,!1)}function kl(r){return new w(3001,!1)}function Ll(r){return new w(3003,!1)}function xl(r){return new w(3004,!1)}function Ul(r,e){return new w(3005,!1)}function Fl(){return new w(3006,!1)}function $l(){return new w(3007,!1)}function jl(r,e){return new w(3008,!1)}function zl(r){return new w(3002,!1)}function ql(r,e,t,n,i){return new w(3010,!1)}function Bl(){return new w(3011,!1)}function Vl(){return new w(3012,!1)}function Kl(){return new w(3200,!1)}function Ql(){return new w(3202,!1)}function Wl(){return new w(3013,!1)}function Hl(r){return new w(3014,!1)}function Gl(r){return new w(3015,!1)}function Yl(r){return new w(3016,!1)}function Zl(r,e){return new w(3404,!1)}function Xl(r){return new w(3502,!1)}function Jl(r){return new w(3503,!1)}function eu(){return new w(3300,!1)}function tu(r){return new w(3504,!1)}function nu(r){return new w(3301,!1)}function ru(r,e){return new w(3302,!1)}function iu(r){return new w(3303,!1)}function su(r,e){return new w(3400,!1)}function ou(r){return new w(3401,!1)}function au(r){return new w(3402,!1)}function lu(r,e){return new w(3505,!1)}function Ae(r){switch(r.length){case 0:return new We;case 1:return r[0];default:return new Zn(r)}}function mo(r,e,t=new Map,n=new Map){let i=[],s=[],o=-1,a=null;if(e.forEach(u=>{let l=u.get("offset"),c=l==o,h=c&&a||new Map;u.forEach((d,f)=>{let m=f,y=d;if(f!=="offset")switch(m=r.normalizePropertyName(m,i),y){case Bt:y=t.get(f);break;case ce:y=n.get(f);break;default:y=r.normalizeStyleValue(f,m,y,i);break}h.set(m,y)}),c||s.push(h),a=h,o=l}),i.length)throw Xl(i);return s}function ii(r,e,t,n){switch(e){case"start":r.onStart(()=>n(t&&xr(t,"start",r)));break;case"done":r.onDone(()=>n(t&&xr(t,"done",r)));break;case"destroy":r.onDestroy(()=>n(t&&xr(t,"destroy",r)));break}}function xr(r,e,t){let n=t.totalTime,i=!!t.disabled,s=si(r.element,r.triggerName,r.fromState,r.toState,e||r.phaseName,n??r.totalTime,i),o=r._data;return o!=null&&(s._data=o),s}function si(r,e,t,n,i="",s=0,o){return{element:r,triggerName:e,fromState:t,toState:n,phaseName:i,totalTime:s,disabled:!!o}}function Y(r,e,t){let n=r.get(e);return n||r.set(e,n=t),n}function to(r){let e=r.indexOf(":"),t=r.substring(1,e),n=r.slice(e+1);return[t,n]}var uu=typeof document>"u"?null:document.documentElement;function oi(r){let e=r.parentNode||r.host||null;return e===uu?null:e}function cu(r){return r.substring(1,6)=="ebkit"}var xe=null,no=!1;function hu(r){xe||(xe=du()||{},no=xe.style?"WebkitAppearance"in xe.style:!1);let e=!0;return xe.style&&!cu(r)&&(e=r in xe.style,!e&&no&&(e="Webkit"+r.charAt(0).toUpperCase()+r.slice(1)in xe.style)),e}function du(){return typeof document<"u"?document.body:null}function go(r,e){for(;e;){if(e===r)return!0;e=oi(e)}return!1}function yo(r,e,t){if(t)return Array.from(r.querySelectorAll(e));let n=r.querySelector(e);return n?[n]:[]}var ai=(()=>{let e=class e{validateStyleProperty(n){return hu(n)}matchesElement(n,i){return!1}containsElement(n,i){return go(n,i)}getParentElement(n){return oi(n)}query(n,i,s){return yo(n,i,s)}computeStyle(n,i,s){return s||""}animate(n,i,s,o,a,u=[],l){return new We(s,o)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=O({token:e,factory:e.\u0275fac});let r=e;return r})(),hi=class hi{};hi.NOOP=new ai;var $e=hi,je=class{};var fu=1e3,vo="{{",pu="}}",So="ng-enter",qr="ng-leave",hn="ng-trigger",gn=".ng-trigger",ro="ng-animating",Br=".ng-animating";function me(r){if(typeof r=="number")return r;let e=r.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:Vr(parseFloat(e[1]),e[2])}function Vr(r,e){switch(e){case"s":return r*fu;default:return r}}function yn(r,e,t){return r.hasOwnProperty("duration")?r:mu(r,e,t)}function mu(r,e,t){let n=/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i,i,s=0,o="";if(typeof r=="string"){let a=r.match(n);if(a===null)return e.push(eo(r)),{duration:0,delay:0,easing:""};i=Vr(parseFloat(a[1]),a[2]);let u=a[3];u!=null&&(s=Vr(parseFloat(u),a[4]));let l=a[5];l&&(o=l)}else i=r;if(!t){let a=!1,u=e.length;i<0&&(e.push(Nl()),a=!0),s<0&&(e.push(Ol()),a=!0),a&&e.splice(u,0,eo(r))}return{duration:i,delay:s,easing:o}}function gu(r){return r.length?r[0]instanceof Map?r:r.map(e=>new Map(Object.entries(e))):[]}function fe(r,e,t){e.forEach((n,i)=>{let s=li(i);t&&!t.has(i)&&t.set(i,r.style[s]),r.style[s]=n})}function Fe(r,e){e.forEach((t,n)=>{let i=li(n);r.style[i]=""})}function Mt(r){return Array.isArray(r)?r.length==1?r[0]:os(r):r}function yu(r,e,t){let n=e.params||{},i=wo(r);i.length&&i.forEach(s=>{n.hasOwnProperty(s)||t.push(kl(s))})}var Kr=new RegExp(`${vo}\\s*(.+?)\\s*${pu}`,"g");function wo(r){let e=[];if(typeof r=="string"){let t;for(;t=Kr.exec(r);)e.push(t[1]);Kr.lastIndex=0}return e}function Pt(r,e,t){let n=`${r}`,i=n.replace(Kr,(s,o)=>{let a=e[o];return a==null&&(t.push(Ll(o)),a=""),a.toString()});return i==n?r:i}var vu=/-+([a-z0-9])/g;function li(r){return r.replace(vu,(...e)=>e[1].toUpperCase())}function Su(r,e){return r===0||e===0}function wu(r,e,t){if(t.size&&e.length){let n=e[0],i=[];if(t.forEach((s,o)=>{n.has(o)||i.push(o),n.set(o,s)}),i.length)for(let s=1;so.set(a,ui(r,a)))}}return e}function G(r,e,t){switch(e.type){case T.Trigger:return r.visitTrigger(e,t);case T.State:return r.visitState(e,t);case T.Transition:return r.visitTransition(e,t);case T.Sequence:return r.visitSequence(e,t);case T.Group:return r.visitGroup(e,t);case T.Animate:return r.visitAnimate(e,t);case T.Keyframes:return r.visitKeyframes(e,t);case T.Style:return r.visitStyle(e,t);case T.Reference:return r.visitReference(e,t);case T.AnimateChild:return r.visitAnimateChild(e,t);case T.AnimateRef:return r.visitAnimateRef(e,t);case T.Query:return r.visitQuery(e,t);case T.Stagger:return r.visitStagger(e,t);default:throw xl(e.type)}}function ui(r,e){return window.getComputedStyle(r)[e]}var bu=new Set(["width","height","minWidth","minHeight","maxWidth","maxHeight","left","top","bottom","right","fontSize","outlineWidth","outlineOffset","paddingTop","paddingLeft","paddingBottom","paddingRight","marginTop","marginLeft","marginBottom","marginRight","borderRadius","borderWidth","borderTopWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","textIndent","perspective"]),vn=class extends je{normalizePropertyName(e,t){return li(e)}normalizeStyleValue(e,t,n,i){let s="",o=n.toString().trim();if(bu.has(t)&&n!==0&&n!=="0")if(typeof n=="number")s="px";else{let a=n.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&a[1].length==0&&i.push(Ul(e,n))}return o+s}};var Sn="*";function Eu(r,e){let t=[];return typeof r=="string"?r.split(/\s*,\s*/).forEach(n=>Cu(n,t,e)):t.push(r),t}function Cu(r,e,t){if(r[0]==":"){let u=Tu(r,t);if(typeof u=="function"){e.push(u);return}r=u}let n=r.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(n==null||n.length<4)return t.push(Gl(r)),e;let i=n[1],s=n[2],o=n[3];e.push(io(i,o));let a=i==Sn&&o==Sn;s[0]=="<"&&!a&&e.push(io(o,i))}function Tu(r,e){switch(r){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(t,n)=>parseFloat(n)>parseFloat(t);case":decrement":return(t,n)=>parseFloat(n) *"}}var dn=new Set(["true","1"]),fn=new Set(["false","0"]);function io(r,e){let t=dn.has(r)||fn.has(r),n=dn.has(e)||fn.has(e);return(i,s)=>{let o=r==Sn||r==i,a=e==Sn||e==s;return!o&&t&&typeof i=="boolean"&&(o=i?dn.has(r):fn.has(r)),!a&&n&&typeof s=="boolean"&&(a=s?dn.has(e):fn.has(e)),o&&a}}var bo=":self",_u=new RegExp(`s*${bo}s*,?`,"g");function Eo(r,e,t,n){return new Qr(r).build(e,t,n)}var so="",Qr=class{constructor(e){this._driver=e}build(e,t,n){let i=new Wr(t);return this._resetContextStyleTimingState(i),G(this,Mt(e),i)}_resetContextStyleTimingState(e){e.currentQuerySelector=so,e.collectedStyles=new Map,e.collectedStyles.set(so,new Map),e.currentTime=0}visitTrigger(e,t){let n=t.queryCount=0,i=t.depCount=0,s=[],o=[];return e.name.charAt(0)=="@"&&t.errors.push(Fl()),e.definitions.forEach(a=>{if(this._resetContextStyleTimingState(t),a.type==T.State){let u=a,l=u.name;l.toString().split(/\s*,\s*/).forEach(c=>{u.name=c,s.push(this.visitState(u,t))}),u.name=l}else if(a.type==T.Transition){let u=this.visitTransition(a,t);n+=u.queryCount,i+=u.depCount,o.push(u)}else t.errors.push($l())}),{type:T.Trigger,name:e.name,states:s,transitions:o,queryCount:n,depCount:i,options:null}}visitState(e,t){let n=this.visitStyle(e.styles,t),i=e.options&&e.options.params||null;if(n.containsDynamicStyles){let s=new Set,o=i||{};n.styles.forEach(a=>{a instanceof Map&&a.forEach(u=>{wo(u).forEach(l=>{o.hasOwnProperty(l)||s.add(l)})})}),s.size&&t.errors.push(jl(e.name,[...s.values()]))}return{type:T.State,name:e.name,style:n,options:i?{params:i}:null}}visitTransition(e,t){t.queryCount=0,t.depCount=0;let n=G(this,Mt(e.animation),t),i=Eu(e.expr,t.errors);return{type:T.Transition,matchers:i,animation:n,queryCount:t.queryCount,depCount:t.depCount,options:Ue(e.options)}}visitSequence(e,t){return{type:T.Sequence,steps:e.steps.map(n=>G(this,n,t)),options:Ue(e.options)}}visitGroup(e,t){let n=t.currentTime,i=0,s=e.steps.map(o=>{t.currentTime=n;let a=G(this,o,t);return i=Math.max(i,t.currentTime),a});return t.currentTime=i,{type:T.Group,steps:s,options:Ue(e.options)}}visitAnimate(e,t){let n=Iu(e.timings,t.errors);t.currentAnimateTimings=n;let i,s=e.styles?e.styles:Yn({});if(s.type==T.Keyframes)i=this.visitKeyframes(s,t);else{let o=e.styles,a=!1;if(!o){a=!0;let l={};n.easing&&(l.easing=n.easing),o=Yn(l)}t.currentTime+=n.duration+n.delay;let u=this.visitStyle(o,t);u.isEmptyStep=a,i=u}return t.currentAnimateTimings=null,{type:T.Animate,timings:n,style:i,options:null}}visitStyle(e,t){let n=this._makeStyleAst(e,t);return this._validateStyleAst(n,t),n}_makeStyleAst(e,t){let n=[],i=Array.isArray(e.styles)?e.styles:[e.styles];for(let a of i)typeof a=="string"?a===ce?n.push(a):t.errors.push(zl(a)):n.push(new Map(Object.entries(a)));let s=!1,o=null;return n.forEach(a=>{if(a instanceof Map&&(a.has("easing")&&(o=a.get("easing"),a.delete("easing")),!s)){for(let u of a.values())if(u.toString().indexOf(vo)>=0){s=!0;break}}}),{type:T.Style,styles:n,easing:o,offset:e.offset,containsDynamicStyles:s,options:null}}_validateStyleAst(e,t){let n=t.currentAnimateTimings,i=t.currentTime,s=t.currentTime;n&&s>0&&(s-=n.duration+n.delay),e.styles.forEach(o=>{typeof o!="string"&&o.forEach((a,u)=>{let l=t.collectedStyles.get(t.currentQuerySelector),c=l.get(u),h=!0;c&&(s!=i&&s>=c.startTime&&i<=c.endTime&&(t.errors.push(ql(u,c.startTime,c.endTime,s,i)),h=!1),s=c.startTime),h&&l.set(u,{startTime:s,endTime:i}),t.options&&yu(a,t.options,t.errors)})})}visitKeyframes(e,t){let n={type:T.Keyframes,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push(Bl()),n;let i=1,s=0,o=[],a=!1,u=!1,l=0,c=e.steps.map(M=>{let N=this._makeStyleAst(M,t),z=N.offset!=null?N.offset:Mu(N.styles),U=0;return z!=null&&(s++,U=N.offset=z),u=u||U<0||U>1,a=a||U0&&s{let z=d>0?N==f?1:d*N:o[N],U=z*A;t.currentTime=m+y.delay+U,y.duration=U,this._validateStyleAst(M,t),M.offset=z,n.styles.push(M)}),n}visitReference(e,t){return{type:T.Reference,animation:G(this,Mt(e.animation),t),options:Ue(e.options)}}visitAnimateChild(e,t){return t.depCount++,{type:T.AnimateChild,options:Ue(e.options)}}visitAnimateRef(e,t){return{type:T.AnimateRef,animation:this.visitReference(e.animation,t),options:Ue(e.options)}}visitQuery(e,t){let n=t.currentQuerySelector,i=e.options||{};t.queryCount++,t.currentQuery=e;let[s,o]=Ru(e.selector);t.currentQuerySelector=n.length?n+" "+s:s,Y(t.collectedStyles,t.currentQuerySelector,new Map);let a=G(this,Mt(e.animation),t);return t.currentQuery=null,t.currentQuerySelector=n,{type:T.Query,selector:s,limit:i.limit||0,optional:!!i.optional,includeSelf:o,animation:a,originalSelector:e.selector,options:Ue(e.options)}}visitStagger(e,t){t.currentQuery||t.errors.push(Wl());let n=e.timings==="full"?{duration:0,delay:0,easing:"full"}:yn(e.timings,t.errors,!0);return{type:T.Stagger,animation:G(this,Mt(e.animation),t),timings:n,options:null}}};function Ru(r){let e=!!r.split(/\s*,\s*/).find(t=>t==bo);return e&&(r=r.replace(_u,"")),r=r.replace(/@\*/g,gn).replace(/@\w+/g,t=>gn+"-"+t.slice(1)).replace(/:animating/g,Br),[r,e]}function Au(r){return r?S({},r):null}var Wr=class{constructor(e){this.errors=e,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}};function Mu(r){if(typeof r=="string")return null;let e=null;if(Array.isArray(r))r.forEach(t=>{if(t instanceof Map&&t.has("offset")){let n=t;e=parseFloat(n.get("offset")),n.delete("offset")}});else if(r instanceof Map&&r.has("offset")){let t=r;e=parseFloat(t.get("offset")),t.delete("offset")}return e}function Iu(r,e){if(r.hasOwnProperty("duration"))return r;if(typeof r=="number"){let s=yn(r,e).duration;return Ur(s,0,"")}let t=r;if(t.split(/\s+/).some(s=>s.charAt(0)=="{"&&s.charAt(1)=="{")){let s=Ur(0,0,"");return s.dynamic=!0,s.strValue=t,s}let i=yn(t,e);return Ur(i.duration,i.delay,i.easing)}function Ue(r){return r?(r=S({},r),r.params&&(r.params=Au(r.params))):r={},r}function Ur(r,e,t){return{duration:r,delay:e,easing:t}}function ci(r,e,t,n,i,s,o=null,a=!1){return{type:1,element:r,keyframes:e,preStyleProps:t,postStyleProps:n,duration:i,delay:s,totalTime:i+s,easing:o,subTimeline:a}}var Dt=class{constructor(){this._map=new Map}get(e){return this._map.get(e)||[]}append(e,t){let n=this._map.get(e);n||this._map.set(e,n=[]),n.push(...t)}has(e){return this._map.has(e)}clear(){this._map.clear()}},Pu=1,Du=":enter",Nu=new RegExp(Du,"g"),Ou=":leave",ku=new RegExp(Ou,"g");function Co(r,e,t,n,i,s=new Map,o=new Map,a,u,l=[]){return new Hr().buildKeyframes(r,e,t,n,i,s,o,a,u,l)}var Hr=class{buildKeyframes(e,t,n,i,s,o,a,u,l,c=[]){l=l||new Dt;let h=new Gr(e,t,l,i,s,c,[]);h.options=u;let d=u.delay?me(u.delay):0;h.currentTimeline.delayNextStep(d),h.currentTimeline.setStyles([o],null,h.errors,u),G(this,n,h);let f=h.timelines.filter(m=>m.containsAnimation());if(f.length&&a.size){let m;for(let y=f.length-1;y>=0;y--){let A=f[y];if(A.element===t){m=A;break}}m&&!m.allowOnlyTimelineStyles()&&m.setStyles([a],null,h.errors,u)}return f.length?f.map(m=>m.buildKeyframes()):[ci(t,[],[],[],0,d,"",!1)]}visitTrigger(e,t){}visitState(e,t){}visitTransition(e,t){}visitAnimateChild(e,t){let n=t.subInstructions.get(t.element);if(n){let i=t.createSubContext(e.options),s=t.currentTimeline.currentTime,o=this._visitSubInstructions(n,i,i.options);s!=o&&t.transformIntoNewTimeline(o)}t.previousNode=e}visitAnimateRef(e,t){let n=t.createSubContext(e.options);n.transformIntoNewTimeline(),this._applyAnimationRefDelays([e.options,e.animation.options],t,n),this.visitReference(e.animation,n),t.transformIntoNewTimeline(n.currentTimeline.currentTime),t.previousNode=e}_applyAnimationRefDelays(e,t,n){for(let i of e){let s=i?.delay;if(s){let o=typeof s=="number"?s:me(Pt(s,i?.params??{},t.errors));n.delayNextStep(o)}}}_visitSubInstructions(e,t,n){let s=t.currentTimeline.currentTime,o=n.duration!=null?me(n.duration):null,a=n.delay!=null?me(n.delay):null;return o!==0&&e.forEach(u=>{let l=t.appendInstructionToTimeline(u,o,a);s=Math.max(s,l.duration+l.delay)}),s}visitReference(e,t){t.updateOptions(e.options,!0),G(this,e.animation,t),t.previousNode=e}visitSequence(e,t){let n=t.subContextCount,i=t,s=e.options;if(s&&(s.params||s.delay)&&(i=t.createSubContext(s),i.transformIntoNewTimeline(),s.delay!=null)){i.previousNode.type==T.Style&&(i.currentTimeline.snapshotCurrentStyles(),i.previousNode=wn);let o=me(s.delay);i.delayNextStep(o)}e.steps.length&&(e.steps.forEach(o=>G(this,o,i)),i.currentTimeline.applyStylesToKeyframe(),i.subContextCount>n&&i.transformIntoNewTimeline()),t.previousNode=e}visitGroup(e,t){let n=[],i=t.currentTimeline.currentTime,s=e.options&&e.options.delay?me(e.options.delay):0;e.steps.forEach(o=>{let a=t.createSubContext(e.options);s&&a.delayNextStep(s),G(this,o,a),i=Math.max(i,a.currentTimeline.currentTime),n.push(a.currentTimeline)}),n.forEach(o=>t.currentTimeline.mergeTimelineCollectedStyles(o)),t.transformIntoNewTimeline(i),t.previousNode=e}_visitTiming(e,t){if(e.dynamic){let n=e.strValue,i=t.params?Pt(n,t.params,t.errors):n;return yn(i,t.errors)}else return{duration:e.duration,delay:e.delay,easing:e.easing}}visitAnimate(e,t){let n=t.currentAnimateTimings=this._visitTiming(e.timings,t),i=t.currentTimeline;n.delay&&(t.incrementTime(n.delay),i.snapshotCurrentStyles());let s=e.style;s.type==T.Keyframes?this.visitKeyframes(s,t):(t.incrementTime(n.duration),this.visitStyle(s,t),i.applyStylesToKeyframe()),t.currentAnimateTimings=null,t.previousNode=e}visitStyle(e,t){let n=t.currentTimeline,i=t.currentAnimateTimings;!i&&n.hasCurrentStyleProperties()&&n.forwardFrame();let s=i&&i.easing||e.easing;e.isEmptyStep?n.applyEmptyStep(s):n.setStyles(e.styles,s,t.errors,t.options),t.previousNode=e}visitKeyframes(e,t){let n=t.currentAnimateTimings,i=t.currentTimeline.duration,s=n.duration,a=t.createSubContext().currentTimeline;a.easing=n.easing,e.styles.forEach(u=>{let l=u.offset||0;a.forwardTime(l*s),a.setStyles(u.styles,u.easing,t.errors,t.options),a.applyStylesToKeyframe()}),t.currentTimeline.mergeTimelineCollectedStyles(a),t.transformIntoNewTimeline(i+s),t.previousNode=e}visitQuery(e,t){let n=t.currentTimeline.currentTime,i=e.options||{},s=i.delay?me(i.delay):0;s&&(t.previousNode.type===T.Style||n==0&&t.currentTimeline.hasCurrentStyleProperties())&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=wn);let o=n,a=t.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!i.optional,t.errors);t.currentQueryTotal=a.length;let u=null;a.forEach((l,c)=>{t.currentQueryIndex=c;let h=t.createSubContext(e.options,l);s&&h.delayNextStep(s),l===t.element&&(u=h.currentTimeline),G(this,e.animation,h),h.currentTimeline.applyStylesToKeyframe();let d=h.currentTimeline.currentTime;o=Math.max(o,d)}),t.currentQueryIndex=0,t.currentQueryTotal=0,t.transformIntoNewTimeline(o),u&&(t.currentTimeline.mergeTimelineCollectedStyles(u),t.currentTimeline.snapshotCurrentStyles()),t.previousNode=e}visitStagger(e,t){let n=t.parentContext,i=t.currentTimeline,s=e.timings,o=Math.abs(s.duration),a=o*(t.currentQueryTotal-1),u=o*t.currentQueryIndex;switch(s.duration<0?"reverse":s.easing){case"reverse":u=a-u;break;case"full":u=n.currentStaggerTime;break}let c=t.currentTimeline;u&&c.delayNextStep(u);let h=c.currentTime;G(this,e.animation,t),t.previousNode=e,n.currentStaggerTime=i.currentTime-h+(i.startTime-n.currentTimeline.startTime)}},wn={},Gr=class r{constructor(e,t,n,i,s,o,a,u){this._driver=e,this.element=t,this.subInstructions=n,this._enterClassName=i,this._leaveClassName=s,this.errors=o,this.timelines=a,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=wn,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=u||new bn(this._driver,t,0),a.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(e,t){if(!e)return;let n=e,i=this.options;n.duration!=null&&(i.duration=me(n.duration)),n.delay!=null&&(i.delay=me(n.delay));let s=n.params;if(s){let o=i.params;o||(o=this.options.params={}),Object.keys(s).forEach(a=>{(!t||!o.hasOwnProperty(a))&&(o[a]=Pt(s[a],o,this.errors))})}}_copyOptions(){let e={};if(this.options){let t=this.options.params;if(t){let n=e.params={};Object.keys(t).forEach(i=>{n[i]=t[i]})}}return e}createSubContext(e=null,t,n){let i=t||this.element,s=new r(this._driver,i,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(i,n||0));return s.previousNode=this.previousNode,s.currentAnimateTimings=this.currentAnimateTimings,s.options=this._copyOptions(),s.updateOptions(e),s.currentQueryIndex=this.currentQueryIndex,s.currentQueryTotal=this.currentQueryTotal,s.parentContext=this,this.subContextCount++,s}transformIntoNewTimeline(e){return this.previousNode=wn,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(e,t,n){let i={duration:t??e.duration,delay:this.currentTimeline.currentTime+(n??0)+e.delay,easing:""},s=new Yr(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,i,e.stretchStartingKeyframe);return this.timelines.push(s),i}incrementTime(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)}delayNextStep(e){e>0&&this.currentTimeline.delayNextStep(e)}invokeQuery(e,t,n,i,s,o){let a=[];if(i&&a.push(this.element),e.length>0){e=e.replace(Nu,"."+this._enterClassName),e=e.replace(ku,"."+this._leaveClassName);let u=n!=1,l=this._driver.query(this.element,e,u);n!==0&&(l=n<0?l.slice(l.length+n,l.length):l.slice(0,n)),a.push(...l)}return!s&&a.length==0&&o.push(Hl(t)),a}},bn=class r{constructor(e,t,n,i){this._driver=e,this.element=t,this.startTime=n,this._elementTimelineStylesLookup=i,this.duration=0,this.easing=null,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(t),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(t,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(e){let t=this._keyframes.size===1&&this._pendingStyles.size;this.duration||t?(this.forwardTime(this.currentTime+e),t&&this.snapshotCurrentStyles()):this.startTime+=e}fork(e,t){return this.applyStylesToKeyframe(),new r(this._driver,e,t||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=Pu,this._loadKeyframe()}forwardTime(e){this.applyStylesToKeyframe(),this.duration=e,this._loadKeyframe()}_updateStyle(e,t){this._localTimelineStyles.set(e,t),this._globalTimelineStyles.set(e,t),this._styleSummary.set(e,{time:this.currentTime,value:t})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(e){e&&this._previousKeyframe.set("easing",e);for(let[t,n]of this._globalTimelineStyles)this._backFill.set(t,n||ce),this._currentKeyframe.set(t,ce);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(e,t,n,i){t&&this._previousKeyframe.set("easing",t);let s=i&&i.params||{},o=Lu(e,this._globalTimelineStyles);for(let[a,u]of o){let l=Pt(u,s,n);this._pendingStyles.set(a,l),this._localTimelineStyles.has(a)||this._backFill.set(a,this._globalTimelineStyles.get(a)??ce),this._updateStyle(a,l)}}applyStylesToKeyframe(){this._pendingStyles.size!=0&&(this._pendingStyles.forEach((e,t)=>{this._currentKeyframe.set(t,e)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((e,t)=>{this._currentKeyframe.has(t)||this._currentKeyframe.set(t,e)}))}snapshotCurrentStyles(){for(let[e,t]of this._localTimelineStyles)this._pendingStyles.set(e,t),this._updateStyle(e,t)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){let e=[];for(let t in this._currentKeyframe)e.push(t);return e}mergeTimelineCollectedStyles(e){e._styleSummary.forEach((t,n)=>{let i=this._styleSummary.get(n);(!i||t.time>i.time)&&this._updateStyle(n,t.value)})}buildKeyframes(){this.applyStylesToKeyframe();let e=new Set,t=new Set,n=this._keyframes.size===1&&this.duration===0,i=[];this._keyframes.forEach((a,u)=>{let l=new Map([...this._backFill,...a]);l.forEach((c,h)=>{c===Bt?e.add(h):c===ce&&t.add(h)}),n||l.set("offset",u/this.duration),i.push(l)});let s=[...e.values()],o=[...t.values()];if(n){let a=i[0],u=new Map(a);a.set("offset",0),u.set("offset",1),i=[a,u]}return ci(this.element,i,s,o,this.duration,this.startTime,this.easing,!1)}},Yr=class extends bn{constructor(e,t,n,i,s,o,a=!1){super(e,t,o.delay),this.keyframes=n,this.preStyleProps=i,this.postStyleProps=s,this._stretchStartingKeyframe=a,this.timings={duration:o.duration,delay:o.delay,easing:o.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let e=this.keyframes,{delay:t,duration:n,easing:i}=this.timings;if(this._stretchStartingKeyframe&&t){let s=[],o=n+t,a=t/o,u=new Map(e[0]);u.set("offset",0),s.push(u);let l=new Map(e[0]);l.set("offset",oo(a)),s.push(l);let c=e.length-1;for(let h=1;h<=c;h++){let d=new Map(e[h]),f=d.get("offset"),m=t+f*n;d.set("offset",oo(m/o)),s.push(d)}n=o,t=0,i="",e=s}return ci(this.element,e,this.preStyleProps,this.postStyleProps,n,t,i,!0)}};function oo(r,e=3){let t=Math.pow(10,e-1);return Math.round(r*t)/t}function Lu(r,e){let t=new Map,n;return r.forEach(i=>{if(i==="*"){n??=e.keys();for(let s of n)t.set(s,ce)}else for(let[s,o]of i)t.set(s,o)}),t}function ao(r,e,t,n,i,s,o,a,u,l,c,h,d){return{type:0,element:r,triggerName:e,isRemovalTransition:i,fromState:t,fromStyles:s,toState:n,toStyles:o,timelines:a,queriedElements:u,preStyleProps:l,postStyleProps:c,totalTime:h,errors:d}}var Fr={},En=class{constructor(e,t,n){this._triggerName=e,this.ast=t,this._stateStyles=n}match(e,t,n,i){return xu(this.ast.matchers,e,t,n,i)}buildStyles(e,t,n){let i=this._stateStyles.get("*");return e!==void 0&&(i=this._stateStyles.get(e?.toString())||i),i?i.buildStyles(t,n):new Map}build(e,t,n,i,s,o,a,u,l,c){let h=[],d=this.ast.options&&this.ast.options.params||Fr,f=a&&a.params||Fr,m=this.buildStyles(n,f,h),y=u&&u.params||Fr,A=this.buildStyles(i,y,h),M=new Set,N=new Map,z=new Map,U=i==="void",ze={params:To(y,d),delay:this.ast.options?.delay},oe=c?[]:Co(e,t,this.ast.animation,s,o,m,A,ze,l,h),q=0;return oe.forEach(V=>{q=Math.max(V.duration+V.delay,q)}),h.length?ao(t,this._triggerName,n,i,U,m,A,[],[],N,z,q,h):(oe.forEach(V=>{let Me=V.element,qe=Y(N,Me,new Set);V.preStyleProps.forEach(Ie=>qe.add(Ie));let di=Y(z,Me,new Set);V.postStyleProps.forEach(Ie=>di.add(Ie)),Me!==t&&M.add(Me)}),ao(t,this._triggerName,n,i,U,m,A,oe,[...M.values()],N,z,q))}};function xu(r,e,t,n,i){return r.some(s=>s(e,t,n,i))}function To(r,e){let t=S({},e);return Object.entries(r).forEach(([n,i])=>{i!=null&&(t[n]=i)}),t}var Zr=class{constructor(e,t,n){this.styles=e,this.defaultParams=t,this.normalizer=n}buildStyles(e,t){let n=new Map,i=To(e,this.defaultParams);return this.styles.styles.forEach(s=>{typeof s!="string"&&s.forEach((o,a)=>{o&&(o=Pt(o,i,t));let u=this.normalizer.normalizePropertyName(a,t);o=this.normalizer.normalizeStyleValue(a,u,o,t),n.set(a,o)})}),n}};function Uu(r,e,t){return new Xr(r,e,t)}var Xr=class{constructor(e,t,n){this.name=e,this.ast=t,this._normalizer=n,this.transitionFactories=[],this.states=new Map,t.states.forEach(i=>{let s=i.options&&i.options.params||{};this.states.set(i.name,new Zr(i.style,s,n))}),lo(this.states,"true","1"),lo(this.states,"false","0"),t.transitions.forEach(i=>{this.transitionFactories.push(new En(e,i,this.states))}),this.fallbackTransition=Fu(e,this.states,this._normalizer)}get containsQueries(){return this.ast.queryCount>0}matchTransition(e,t,n,i){return this.transitionFactories.find(o=>o.match(e,t,n,i))||null}matchStyles(e,t,n){return this.fallbackTransition.buildStyles(e,t,n)}};function Fu(r,e,t){let n=[(o,a)=>!0],i={type:T.Sequence,steps:[],options:null},s={type:T.Transition,animation:i,matchers:n,options:null,queryCount:0,depCount:0};return new En(r,s,e)}function lo(r,e,t){r.has(e)?r.has(t)||r.set(t,r.get(e)):r.has(t)&&r.set(e,r.get(t))}var $u=new Dt,Jr=class{constructor(e,t,n){this.bodyNode=e,this._driver=t,this._normalizer=n,this._animations=new Map,this._playersById=new Map,this.players=[]}register(e,t){let n=[],i=[],s=Eo(this._driver,t,n,i);if(n.length)throw Jl(n);i.length&&void 0,this._animations.set(e,s)}_buildPlayer(e,t,n){let i=e.element,s=mo(this._normalizer,e.keyframes,t,n);return this._driver.animate(i,s,e.duration,e.delay,e.easing,[],!0)}create(e,t,n={}){let i=[],s=this._animations.get(e),o,a=new Map;if(s?(o=Co(this._driver,t,s,So,qr,new Map,new Map,n,$u,i),o.forEach(c=>{let h=Y(a,c.element,new Map);c.postStyleProps.forEach(d=>h.set(d,null))})):(i.push(eu()),o=[]),i.length)throw tu(i);a.forEach((c,h)=>{c.forEach((d,f)=>{c.set(f,this._driver.computeStyle(h,f,ce))})});let u=o.map(c=>{let h=a.get(c.element);return this._buildPlayer(c,new Map,h)}),l=Ae(u);return this._playersById.set(e,l),l.onDestroy(()=>this.destroy(e)),this.players.push(l),l}destroy(e){let t=this._getPlayer(e);t.destroy(),this._playersById.delete(e);let n=this.players.indexOf(t);n>=0&&this.players.splice(n,1)}_getPlayer(e){let t=this._playersById.get(e);if(!t)throw nu(e);return t}listen(e,t,n,i){let s=si(t,"","","");return ii(this._getPlayer(e),n,s,i),()=>{}}command(e,t,n,i){if(n=="register"){this.register(e,i[0]);return}if(n=="create"){let o=i[0]||{};this.create(e,t,o);return}let s=this._getPlayer(e);switch(n){case"play":s.play();break;case"pause":s.pause();break;case"reset":s.reset();break;case"restart":s.restart();break;case"finish":s.finish();break;case"init":s.init();break;case"setPosition":s.setPosition(parseFloat(i[0]));break;case"destroy":this.destroy(e);break}}},uo="ng-animate-queued",ju=".ng-animate-queued",$r="ng-animate-disabled",zu=".ng-animate-disabled",qu="ng-star-inserted",Bu=".ng-star-inserted",Vu=[],_o={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Ku={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},se="__ng_removed",Nt=class{get params(){return this.options.params}constructor(e,t=""){this.namespaceId=t;let n=e&&e.hasOwnProperty("value"),i=n?e.value:e;if(this.value=Wu(i),n){let s=e,{value:o}=s,a=gi(s,["value"]);this.options=a}else this.options={};this.options.params||(this.options.params={})}absorbOptions(e){let t=e.params;if(t){let n=this.options.params;Object.keys(t).forEach(i=>{n[i]==null&&(n[i]=t[i])})}}},It="void",jr=new Nt(It),ei=class{constructor(e,t,n){this.id=e,this.hostElement=t,this._engine=n,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+e,re(t,this._hostClassName)}listen(e,t,n,i){if(!this._triggers.has(t))throw ru(n,t);if(n==null||n.length==0)throw iu(t);if(!Hu(n))throw su(n,t);let s=Y(this._elementListeners,e,[]),o={name:t,phase:n,callback:i};s.push(o);let a=Y(this._engine.statesByElement,e,new Map);return a.has(t)||(re(e,hn),re(e,hn+"-"+t),a.set(t,jr)),()=>{this._engine.afterFlush(()=>{let u=s.indexOf(o);u>=0&&s.splice(u,1),this._triggers.has(t)||a.delete(t)})}}register(e,t){return this._triggers.has(e)?!1:(this._triggers.set(e,t),!0)}_getTrigger(e){let t=this._triggers.get(e);if(!t)throw ou(e);return t}trigger(e,t,n,i=!0){let s=this._getTrigger(t),o=new Ot(this.id,t,e),a=this._engine.statesByElement.get(e);a||(re(e,hn),re(e,hn+"-"+t),this._engine.statesByElement.set(e,a=new Map));let u=a.get(t),l=new Nt(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&u&&l.absorbOptions(u.options),a.set(t,l),u||(u=jr),!(l.value===It)&&u.value===l.value){if(!Zu(u.params,l.params)){let y=[],A=s.matchStyles(u.value,u.params,y),M=s.matchStyles(l.value,l.params,y);y.length?this._engine.reportError(y):this._engine.afterFlush(()=>{Fe(e,A),fe(e,M)})}return}let d=Y(this._engine.playersByElement,e,[]);d.forEach(y=>{y.namespaceId==this.id&&y.triggerName==t&&y.queued&&y.destroy()});let f=s.matchTransition(u.value,l.value,e,l.params),m=!1;if(!f){if(!i)return;f=s.fallbackTransition,m=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:t,transition:f,fromState:u,toState:l,player:o,isFallbackTransition:m}),m||(re(e,uo),o.onStart(()=>{it(e,uo)})),o.onDone(()=>{let y=this.players.indexOf(o);y>=0&&this.players.splice(y,1);let A=this._engine.playersByElement.get(e);if(A){let M=A.indexOf(o);M>=0&&A.splice(M,1)}}),this.players.push(o),d.push(o),o}deregister(e){this._triggers.delete(e),this._engine.statesByElement.forEach(t=>t.delete(e)),this._elementListeners.forEach((t,n)=>{this._elementListeners.set(n,t.filter(i=>i.name!=e))})}clearElementCache(e){this._engine.statesByElement.delete(e),this._elementListeners.delete(e);let t=this._engine.playersByElement.get(e);t&&(t.forEach(n=>n.destroy()),this._engine.playersByElement.delete(e))}_signalRemovalForInnerTriggers(e,t){let n=this._engine.driver.query(e,gn,!0);n.forEach(i=>{if(i[se])return;let s=this._engine.fetchNamespacesByElement(i);s.size?s.forEach(o=>o.triggerLeaveAnimation(i,t,!1,!0)):this.clearElementCache(i)}),this._engine.afterFlushAnimationsDone(()=>n.forEach(i=>this.clearElementCache(i)))}triggerLeaveAnimation(e,t,n,i){let s=this._engine.statesByElement.get(e),o=new Map;if(s){let a=[];if(s.forEach((u,l)=>{if(o.set(l,u.value),this._triggers.has(l)){let c=this.trigger(e,l,It,i);c&&a.push(c)}}),a.length)return this._engine.markElementAsRemoved(this.id,e,!0,t,o),n&&Ae(a).onDone(()=>this._engine.processLeaveNode(e)),!0}return!1}prepareLeaveAnimationListeners(e){let t=this._elementListeners.get(e),n=this._engine.statesByElement.get(e);if(t&&n){let i=new Set;t.forEach(s=>{let o=s.name;if(i.has(o))return;i.add(o);let u=this._triggers.get(o).fallbackTransition,l=n.get(o)||jr,c=new Nt(It),h=new Ot(this.id,o,e);this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:o,transition:u,fromState:l,toState:c,player:h,isFallbackTransition:!0})})}}removeNode(e,t){let n=this._engine;if(e.childElementCount&&this._signalRemovalForInnerTriggers(e,t),this.triggerLeaveAnimation(e,t,!0))return;let i=!1;if(n.totalAnimations){let s=n.players.length?n.playersByQueriedElement.get(e):[];if(s&&s.length)i=!0;else{let o=e;for(;o=o.parentNode;)if(n.statesByElement.get(o)){i=!0;break}}}if(this.prepareLeaveAnimationListeners(e),i)n.markElementAsRemoved(this.id,e,!1,t);else{let s=e[se];(!s||s===_o)&&(n.afterFlush(()=>this.clearElementCache(e)),n.destroyInnerAnimations(e),n._onRemovalComplete(e,t))}}insertNode(e,t){re(e,this._hostClassName)}drainQueuedTransitions(e){let t=[];return this._queue.forEach(n=>{let i=n.player;if(i.destroyed)return;let s=n.element,o=this._elementListeners.get(s);o&&o.forEach(a=>{if(a.name==n.triggerName){let u=si(s,n.triggerName,n.fromState.value,n.toState.value);u._data=e,ii(n.player,a.phase,u,a.callback)}}),i.markedForDestroy?this._engine.afterFlush(()=>{i.destroy()}):t.push(n)}),this._queue=[],t.sort((n,i)=>{let s=n.transition.ast.depCount,o=i.transition.ast.depCount;return s==0||o==0?s-o:this._engine.driver.containsElement(n.element,i.element)?1:-1})}destroy(e){this.players.forEach(t=>t.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,e)}},ti=class{_onRemovalComplete(e,t){this.onRemovalComplete(e,t)}constructor(e,t,n,i){this.bodyNode=e,this.driver=t,this._normalizer=n,this.scheduler=i,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(s,o)=>{}}get queuedPlayers(){let e=[];return this._namespaceList.forEach(t=>{t.players.forEach(n=>{n.queued&&e.push(n)})}),e}createNamespace(e,t){let n=new ei(e,t,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,t)?this._balanceNamespaceList(n,t):(this.newHostElements.set(t,n),this.collectEnterElement(t)),this._namespaceLookup[e]=n}_balanceNamespaceList(e,t){let n=this._namespaceList,i=this.namespacesByHostElement;if(n.length-1>=0){let o=!1,a=this.driver.getParentElement(t);for(;a;){let u=i.get(a);if(u){let l=n.indexOf(u);n.splice(l+1,0,e),o=!0;break}a=this.driver.getParentElement(a)}o||n.unshift(e)}else n.push(e);return i.set(t,e),e}register(e,t){let n=this._namespaceLookup[e];return n||(n=this.createNamespace(e,t)),n}registerTrigger(e,t,n){let i=this._namespaceLookup[e];i&&i.register(t,n)&&this.totalAnimations++}destroy(e,t){e&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{let n=this._fetchNamespace(e);this.namespacesByHostElement.delete(n.hostElement);let i=this._namespaceList.indexOf(n);i>=0&&this._namespaceList.splice(i,1),n.destroy(t),delete this._namespaceLookup[e]}))}_fetchNamespace(e){return this._namespaceLookup[e]}fetchNamespacesByElement(e){let t=new Set,n=this.statesByElement.get(e);if(n){for(let i of n.values())if(i.namespaceId){let s=this._fetchNamespace(i.namespaceId);s&&t.add(s)}}return t}trigger(e,t,n,i){if(pn(t)){let s=this._fetchNamespace(e);if(s)return s.trigger(t,n,i),!0}return!1}insertNode(e,t,n,i){if(!pn(t))return;let s=t[se];if(s&&s.setForRemoval){s.setForRemoval=!1,s.setForMove=!0;let o=this.collectedLeaveElements.indexOf(t);o>=0&&this.collectedLeaveElements.splice(o,1)}if(e){let o=this._fetchNamespace(e);o&&o.insertNode(t,n)}i&&this.collectEnterElement(t)}collectEnterElement(e){this.collectedEnterElements.push(e)}markElementAsDisabled(e,t){t?this.disabledNodes.has(e)||(this.disabledNodes.add(e),re(e,$r)):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),it(e,$r))}removeNode(e,t,n){if(pn(t)){this.scheduler?.notify();let i=e?this._fetchNamespace(e):null;i?i.removeNode(t,n):this.markElementAsRemoved(e,t,!1,n);let s=this.namespacesByHostElement.get(t);s&&s.id!==e&&s.removeNode(t,n)}else this._onRemovalComplete(t,n)}markElementAsRemoved(e,t,n,i,s){this.collectedLeaveElements.push(t),t[se]={namespaceId:e,setForRemoval:i,hasAnimation:n,removedBeforeQueried:!1,previousTriggersValues:s}}listen(e,t,n,i,s){return pn(t)?this._fetchNamespace(e).listen(t,n,i,s):()=>{}}_buildInstruction(e,t,n,i,s){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,n,i,e.fromState.options,e.toState.options,t,s)}destroyInnerAnimations(e){let t=this.driver.query(e,gn,!0);t.forEach(n=>this.destroyActiveAnimationsForElement(n)),this.playersByQueriedElement.size!=0&&(t=this.driver.query(e,Br,!0),t.forEach(n=>this.finishActiveQueriedAnimationOnElement(n)))}destroyActiveAnimationsForElement(e){let t=this.playersByElement.get(e);t&&t.forEach(n=>{n.queued?n.markedForDestroy=!0:n.destroy()})}finishActiveQueriedAnimationOnElement(e){let t=this.playersByQueriedElement.get(e);t&&t.forEach(n=>n.finish())}whenRenderingDone(){return new Promise(e=>{if(this.players.length)return Ae(this.players).onDone(()=>e());e()})}processLeaveNode(e){let t=e[se];if(t&&t.setForRemoval){if(e[se]=_o,t.namespaceId){this.destroyInnerAnimations(e);let n=this._fetchNamespace(t.namespaceId);n&&n.clearElementCache(e)}this._onRemovalComplete(e,t.setForRemoval)}e.classList?.contains($r)&&this.markElementAsDisabled(e,!1),this.driver.query(e,zu,!0).forEach(n=>{this.markElementAsDisabled(n,!1)})}flush(e=-1){let t=[];if(this.newHostElements.size&&(this.newHostElements.forEach((n,i)=>this._balanceNamespaceList(n,i)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let n=0;nn()),this._flushFns=[],this._whenQuietFns.length){let n=this._whenQuietFns;this._whenQuietFns=[],t.length?Ae(t).onDone(()=>{n.forEach(i=>i())}):n.forEach(i=>i())}}reportError(e){throw au(e)}_flushAnimations(e,t){let n=new Dt,i=[],s=new Map,o=[],a=new Map,u=new Map,l=new Map,c=new Set;this.disabledNodes.forEach(p=>{c.add(p);let g=this.driver.query(p,ju,!0);for(let v=0;v{let v=So+y++;m.set(g,v),p.forEach(_=>re(_,v))});let A=[],M=new Set,N=new Set;for(let p=0;pM.add(_)):N.add(g))}let z=new Map,U=fo(d,Array.from(M));U.forEach((p,g)=>{let v=qr+y++;z.set(g,v),p.forEach(_=>re(_,v))}),e.push(()=>{f.forEach((p,g)=>{let v=m.get(g);p.forEach(_=>it(_,v))}),U.forEach((p,g)=>{let v=z.get(g);p.forEach(_=>it(_,v))}),A.forEach(p=>{this.processLeaveNode(p)})});let ze=[],oe=[];for(let p=this._namespaceList.length-1;p>=0;p--)this._namespaceList[p].drainQueuedTransitions(t).forEach(v=>{let _=v.player,L=v.element;if(ze.push(_),this.collectedEnterElements.length){let F=L[se];if(F&&F.setForMove){if(F.previousTriggersValues&&F.previousTriggersValues.has(v.triggerName)){let Pe=F.previousTriggersValues.get(v.triggerName),Z=this.statesByElement.get(v.element);if(Z&&Z.has(v.triggerName)){let kt=Z.get(v.triggerName);kt.value=Pe,Z.set(v.triggerName,kt)}}_.destroy();return}}let ae=!h||!this.driver.containsElement(h,L),K=z.get(L),ge=m.get(L),P=this._buildInstruction(v,n,ge,K,ae);if(P.errors&&P.errors.length){oe.push(P);return}if(ae){_.onStart(()=>Fe(L,P.fromStyles)),_.onDestroy(()=>fe(L,P.toStyles)),i.push(_);return}if(v.isFallbackTransition){_.onStart(()=>Fe(L,P.fromStyles)),_.onDestroy(()=>fe(L,P.toStyles)),i.push(_);return}let mi=[];P.timelines.forEach(F=>{F.stretchStartingKeyframe=!0,this.disabledNodes.has(F.element)||mi.push(F)}),P.timelines=mi,n.append(L,P.timelines);let Lo={instruction:P,player:_,element:L};o.push(Lo),P.queriedElements.forEach(F=>Y(a,F,[]).push(_)),P.preStyleProps.forEach((F,Pe)=>{if(F.size){let Z=u.get(Pe);Z||u.set(Pe,Z=new Set),F.forEach((kt,Mn)=>Z.add(Mn))}}),P.postStyleProps.forEach((F,Pe)=>{let Z=l.get(Pe);Z||l.set(Pe,Z=new Set),F.forEach((kt,Mn)=>Z.add(Mn))})});if(oe.length){let p=[];oe.forEach(g=>{p.push(lu(g.triggerName,g.errors))}),ze.forEach(g=>g.destroy()),this.reportError(p)}let q=new Map,V=new Map;o.forEach(p=>{let g=p.element;n.has(g)&&(V.set(g,g),this._beforeAnimationBuild(p.player.namespaceId,p.instruction,q))}),i.forEach(p=>{let g=p.element;this._getPreviousPlayers(g,!1,p.namespaceId,p.triggerName,null).forEach(_=>{Y(q,g,[]).push(_),_.destroy()})});let Me=A.filter(p=>po(p,u,l)),qe=new Map;ho(qe,this.driver,N,l,ce).forEach(p=>{po(p,u,l)&&Me.push(p)});let Ie=new Map;f.forEach((p,g)=>{ho(Ie,this.driver,new Set(p),u,Bt)}),Me.forEach(p=>{let g=qe.get(p),v=Ie.get(p);qe.set(p,new Map([...g?.entries()??[],...v?.entries()??[]]))});let An=[],fi=[],pi={};o.forEach(p=>{let{element:g,player:v,instruction:_}=p;if(n.has(g)){if(c.has(g)){v.onDestroy(()=>fe(g,_.toStyles)),v.disabled=!0,v.overrideTotalTime(_.totalTime),i.push(v);return}let L=pi;if(V.size>1){let K=g,ge=[];for(;K=K.parentNode;){let P=V.get(K);if(P){L=P;break}ge.push(K)}ge.forEach(P=>V.set(P,L))}let ae=this._buildAnimation(v.namespaceId,_,q,s,Ie,qe);if(v.setRealPlayer(ae),L===pi)An.push(v);else{let K=this.playersByElement.get(L);K&&K.length&&(v.parentPlayer=Ae(K)),i.push(v)}}else Fe(g,_.fromStyles),v.onDestroy(()=>fe(g,_.toStyles)),fi.push(v),c.has(g)&&i.push(v)}),fi.forEach(p=>{let g=s.get(p.element);if(g&&g.length){let v=Ae(g);p.setRealPlayer(v)}}),i.forEach(p=>{p.parentPlayer?p.syncPlayerEvents(p.parentPlayer):p.destroy()});for(let p=0;p!ae.destroyed);L.length?Gu(this,g,L):this.processLeaveNode(g)}return A.length=0,An.forEach(p=>{this.players.push(p),p.onDone(()=>{p.destroy();let g=this.players.indexOf(p);this.players.splice(g,1)}),p.play()}),An}afterFlush(e){this._flushFns.push(e)}afterFlushAnimationsDone(e){this._whenQuietFns.push(e)}_getPreviousPlayers(e,t,n,i,s){let o=[];if(t){let a=this.playersByQueriedElement.get(e);a&&(o=a)}else{let a=this.playersByElement.get(e);if(a){let u=!s||s==It;a.forEach(l=>{l.queued||!u&&l.triggerName!=i||o.push(l)})}}return(n||i)&&(o=o.filter(a=>!(n&&n!=a.namespaceId||i&&i!=a.triggerName))),o}_beforeAnimationBuild(e,t,n){let i=t.triggerName,s=t.element,o=t.isRemovalTransition?void 0:e,a=t.isRemovalTransition?void 0:i;for(let u of t.timelines){let l=u.element,c=l!==s,h=Y(n,l,[]);this._getPreviousPlayers(l,c,o,a,t.toState).forEach(f=>{let m=f.getRealPlayer();m.beforeDestroy&&m.beforeDestroy(),f.destroy(),h.push(f)})}Fe(s,t.fromStyles)}_buildAnimation(e,t,n,i,s,o){let a=t.triggerName,u=t.element,l=[],c=new Set,h=new Set,d=t.timelines.map(m=>{let y=m.element;c.add(y);let A=y[se];if(A&&A.removedBeforeQueried)return new We(m.duration,m.delay);let M=y!==u,N=Yu((n.get(y)||Vu).map(q=>q.getRealPlayer())).filter(q=>{let V=q;return V.element?V.element===y:!1}),z=s.get(y),U=o.get(y),ze=mo(this._normalizer,m.keyframes,z,U),oe=this._buildPlayer(m,ze,N);if(m.subTimeline&&i&&h.add(y),M){let q=new Ot(e,a,y);q.setRealPlayer(oe),l.push(q)}return oe});l.forEach(m=>{Y(this.playersByQueriedElement,m.element,[]).push(m),m.onDone(()=>Qu(this.playersByQueriedElement,m.element,m))}),c.forEach(m=>re(m,ro));let f=Ae(d);return f.onDestroy(()=>{c.forEach(m=>it(m,ro)),fe(u,t.toStyles)}),h.forEach(m=>{Y(i,m,[]).push(f)}),f}_buildPlayer(e,t,n){return t.length>0?this.driver.animate(e.element,t,e.duration,e.delay,e.easing,n):new We(e.duration,e.delay)}},Ot=class{constructor(e,t,n){this.namespaceId=e,this.triggerName=t,this.element=n,this._player=new We,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.parentPlayer=null,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(e){this._containsRealPlayer||(this._player=e,this._queuedCallbacks.forEach((t,n)=>{t.forEach(i=>ii(e,n,void 0,i))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(e.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(e){this.totalTime=e}syncPlayerEvents(e){let t=this._player;t.triggerCallback&&e.onStart(()=>t.triggerCallback("start")),e.onDone(()=>this.finish()),e.onDestroy(()=>this.destroy())}_queueEvent(e,t){Y(this._queuedCallbacks,e,[]).push(t)}onDone(e){this.queued&&this._queueEvent("done",e),this._player.onDone(e)}onStart(e){this.queued&&this._queueEvent("start",e),this._player.onStart(e)}onDestroy(e){this.queued&&this._queueEvent("destroy",e),this._player.onDestroy(e)}init(){this._player.init()}hasStarted(){return this.queued?!1:this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(e){this.queued||this._player.setPosition(e)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(e){let t=this._player;t.triggerCallback&&t.triggerCallback(e)}};function Qu(r,e,t){let n=r.get(e);if(n){if(n.length){let i=n.indexOf(t);n.splice(i,1)}n.length==0&&r.delete(e)}return n}function Wu(r){return r??null}function pn(r){return r&&r.nodeType===1}function Hu(r){return r=="start"||r=="done"}function co(r,e){let t=r.style.display;return r.style.display=e??"none",t}function ho(r,e,t,n,i){let s=[];t.forEach(u=>s.push(co(u)));let o=[];n.forEach((u,l)=>{let c=new Map;u.forEach(h=>{let d=e.computeStyle(l,h,i);c.set(h,d),(!d||d.length==0)&&(l[se]=Ku,o.push(l))}),r.set(l,c)});let a=0;return t.forEach(u=>co(u,s[a++])),o}function fo(r,e){let t=new Map;if(r.forEach(a=>t.set(a,[])),e.length==0)return t;let n=1,i=new Set(e),s=new Map;function o(a){if(!a)return n;let u=s.get(a);if(u)return u;let l=a.parentNode;return t.has(l)?u=l:i.has(l)?u=n:u=o(l),s.set(a,u),u}return e.forEach(a=>{let u=o(a);u!==n&&t.get(u).push(a)}),t}function re(r,e){r.classList?.add(e)}function it(r,e){r.classList?.remove(e)}function Gu(r,e,t){Ae(t).onDone(()=>r.processLeaveNode(e))}function Yu(r){let e=[];return Ro(r,e),e}function Ro(r,e){for(let t=0;ti.add(s)):e.set(r,n),t.delete(r),!0}var ot=class{constructor(e,t,n,i){this._driver=t,this._normalizer=n,this._triggerCache={},this.onRemovalComplete=(s,o)=>{},this._transitionEngine=new ti(e.body,t,n,i),this._timelineEngine=new Jr(e.body,t,n),this._transitionEngine.onRemovalComplete=(s,o)=>this.onRemovalComplete(s,o)}registerTrigger(e,t,n,i,s){let o=e+"-"+i,a=this._triggerCache[o];if(!a){let u=[],l=[],c=Eo(this._driver,s,u,l);if(u.length)throw Zl(i,u);l.length&&void 0,a=Uu(i,c,this._normalizer),this._triggerCache[o]=a}this._transitionEngine.registerTrigger(t,i,a)}register(e,t){this._transitionEngine.register(e,t)}destroy(e,t){this._transitionEngine.destroy(e,t)}onInsert(e,t,n,i){this._transitionEngine.insertNode(e,t,n,i)}onRemove(e,t,n){this._transitionEngine.removeNode(e,t,n)}disableAnimations(e,t){this._transitionEngine.markElementAsDisabled(e,t)}process(e,t,n,i){if(n.charAt(0)=="@"){let[s,o]=to(n),a=i;this._timelineEngine.command(s,t,o,a)}else this._transitionEngine.trigger(e,t,n,i)}listen(e,t,n,i,s){if(n.charAt(0)=="@"){let[o,a]=to(n);return this._timelineEngine.listen(o,t,a,s)}return this._transitionEngine.listen(e,t,n,i,s)}flush(e=-1){this._transitionEngine.flush(e)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(e){this._transitionEngine.afterFlushAnimationsDone(e)}};function Xu(r,e){let t=null,n=null;return Array.isArray(e)&&e.length?(t=zr(e[0]),e.length>1&&(n=zr(e[e.length-1]))):e instanceof Map&&(t=zr(e)),t||n?new ni(r,t,n):null}var st=class st{constructor(e,t,n){this._element=e,this._startStyles=t,this._endStyles=n,this._state=0;let i=st.initialStylesByElement.get(e);i||st.initialStylesByElement.set(e,i=new Map),this._initialStyles=i}start(){this._state<1&&(this._startStyles&&fe(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(fe(this._element,this._initialStyles),this._endStyles&&(fe(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(st.initialStylesByElement.delete(this._element),this._startStyles&&(Fe(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Fe(this._element,this._endStyles),this._endStyles=null),fe(this._element,this._initialStyles),this._state=3)}};st.initialStylesByElement=new WeakMap;var ni=st;function zr(r){let e=null;return r.forEach((t,n)=>{Ju(n)&&(e=e||new Map,e.set(n,t))}),e}function Ju(r){return r==="display"||r==="position"}var Cn=class{constructor(e,t,n,i){this.element=e,this.keyframes=t,this.options=n,this._specialStyles=i,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=n.duration,this._delay=n.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;let e=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,e,this.options),this._finalKeyframe=e.length?e[e.length-1]:new Map;let t=()=>this._onFinish();this.domPlayer.addEventListener("finish",t),this.onDestroy(()=>{this.domPlayer.removeEventListener("finish",t)})}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(e){let t=[];return e.forEach(n=>{t.push(Object.fromEntries(n))}),t}_triggerWebAnimation(e,t,n){return e.animate(this._convertKeyframesToObject(t),n)}onStart(e){this._originalOnStartFns.push(e),this._onStartFns.push(e)}onDone(e){this._originalOnDoneFns.push(e),this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(e=>e()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}setPosition(e){this.domPlayer===void 0&&this.init(),this.domPlayer.currentTime=e*this.time}getPosition(){return+(this.domPlayer.currentTime??0)/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){let e=new Map;this.hasStarted()&&this._finalKeyframe.forEach((n,i)=>{i!=="offset"&&e.set(i,this._finished?n:ui(this.element,i))}),this.currentSnapshot=e}triggerCallback(e){let t=e==="start"?this._onStartFns:this._onDoneFns;t.forEach(n=>n()),t.length=0}},Tn=class{validateStyleProperty(e){return!0}validateAnimatableStyleProperty(e){return!0}matchesElement(e,t){return!1}containsElement(e,t){return go(e,t)}getParentElement(e){return oi(e)}query(e,t,n){return yo(e,t,n)}computeStyle(e,t,n){return ui(e,t)}animate(e,t,n,i,s,o=[]){let a=i==0?"both":"forwards",u={duration:n,delay:i,fill:a};s&&(u.easing=s);let l=new Map,c=o.filter(f=>f instanceof Cn);Su(n,i)&&c.forEach(f=>{f.currentSnapshot.forEach((m,y)=>l.set(y,m))});let h=gu(t).map(f=>new Map(f));h=wu(e,h,l);let d=Xu(e,h);return new Cn(e,h,u,d)}};var mn="@",Ao="@.disabled",_n=class{constructor(e,t,n,i){this.namespaceId=e,this.delegate=t,this.engine=n,this._onDestroy=i,this.\u0275type=0}get data(){return this.delegate.data}destroyNode(e){this.delegate.destroyNode?.(e)}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),this._onDestroy?.()}createElement(e,t){return this.delegate.createElement(e,t)}createComment(e){return this.delegate.createComment(e)}createText(e){return this.delegate.createText(e)}appendChild(e,t){this.delegate.appendChild(e,t),this.engine.onInsert(this.namespaceId,t,e,!1)}insertBefore(e,t,n,i=!0){this.delegate.insertBefore(e,t,n),this.engine.onInsert(this.namespaceId,t,e,i)}removeChild(e,t,n){this.engine.onRemove(this.namespaceId,t,this.delegate)}selectRootElement(e,t){return this.delegate.selectRootElement(e,t)}parentNode(e){return this.delegate.parentNode(e)}nextSibling(e){return this.delegate.nextSibling(e)}setAttribute(e,t,n,i){this.delegate.setAttribute(e,t,n,i)}removeAttribute(e,t,n){this.delegate.removeAttribute(e,t,n)}addClass(e,t){this.delegate.addClass(e,t)}removeClass(e,t){this.delegate.removeClass(e,t)}setStyle(e,t,n,i){this.delegate.setStyle(e,t,n,i)}removeStyle(e,t,n){this.delegate.removeStyle(e,t,n)}setProperty(e,t,n){t.charAt(0)==mn&&t==Ao?this.disableAnimations(e,!!n):this.delegate.setProperty(e,t,n)}setValue(e,t){this.delegate.setValue(e,t)}listen(e,t,n){return this.delegate.listen(e,t,n)}disableAnimations(e,t){this.engine.disableAnimations(e,t)}},ri=class extends _n{constructor(e,t,n,i,s){super(t,n,i,s),this.factory=e,this.namespaceId=t}setProperty(e,t,n){t.charAt(0)==mn?t.charAt(1)=="."&&t==Ao?(n=n===void 0?!0:!!n,this.disableAnimations(e,n)):this.engine.process(this.namespaceId,e,t.slice(1),n):this.delegate.setProperty(e,t,n)}listen(e,t,n){if(t.charAt(0)==mn){let i=ec(e),s=t.slice(1),o="";return s.charAt(0)!=mn&&([s,o]=tc(s)),this.engine.listen(this.namespaceId,i,s,o,a=>{let u=a._data||-1;this.factory.scheduleListenerCallback(u,n,a)})}return this.delegate.listen(e,t,n)}};function ec(r){switch(r){case"body":return document.body;case"document":return document;case"window":return window;default:return r}}function tc(r){let e=r.indexOf("."),t=r.substring(0,e),n=r.slice(e+1);return[t,n]}var Rn=class{constructor(e,t,n){this.delegate=e,this.engine=t,this._zone=n,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,t.onRemovalComplete=(i,s)=>{let o=s?.parentNode(i);o&&s.removeChild(o,i)}}createRenderer(e,t){let n="",i=this.delegate.createRenderer(e,t);if(!e||!t?.data?.animation){let l=this._rendererCache,c=l.get(i);if(!c){let h=()=>l.delete(i);c=new _n(n,i,this.engine,h),l.set(i,c)}return c}let s=t.id,o=t.id+"-"+this._currentId;this._currentId++,this.engine.register(o,e);let a=l=>{Array.isArray(l)?l.forEach(a):this.engine.registerTrigger(s,o,e,l.name,l)};return t.data.animation.forEach(a),new ri(this,o,i,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(e,t,n){if(e>=0&&et(n));return}let i=this._animationCallbacksBuffer;i.length==0&&queueMicrotask(()=>{this._zone.run(()=>{i.forEach(s=>{let[o,a]=s;o(a)}),this._animationCallbacksBuffer=[]})}),i.push([t,n])}end(){this._cdRecurDepth--,this._cdRecurDepth==0&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}};var rc=(()=>{let e=class e extends ot{constructor(n,i,s){super(n,i,s,b(ki,{optional:!0}))}ngOnDestroy(){this.flush()}};e.\u0275fac=function(i){return new(i||e)(Ke(Hn),Ke($e),Ke(je))},e.\u0275prov=O({token:e,factory:e.\u0275fac});let r=e;return r})();function ic(){return new vn}function sc(r,e,t){return new Rn(r,e,t)}var Mo=[{provide:je,useFactory:ic},{provide:ot,useClass:rc},{provide:Li,useFactory:sc,deps:[ns,ot,Ne]}],oc=[{provide:$e,useFactory:()=>new Tn},{provide:$n,useValue:"BrowserAnimations"},...Mo],Xc=[{provide:$e,useClass:ai},{provide:$n,useValue:"NoopAnimations"},...Mo];function Io(){return xi("NgEagerAnimations"),[...oc]}function lc(r,e){if(r&1&&(D(0,"li",13)(1,"a",14),B(2),k()()),r&2){let t=e.$implicit,n=Qn(2).$implicit;ue(),zn("routerLink",n.route)("fragment",t.route),ue(),Gi("",t.name," ")}}function uc(r,e){if(r&1&&(D(0,"ul",12),Vn(1,lc,3,3,"li",13,Bn),k()),r&2){let t=Qn().$implicit;ue(),Kn(t.children)}}function cc(r,e){if(r&1&&(D(0,"li",8)(1,"a",11),B(2),k(),qi(3,uc,3,0,"ul",12),k()),r&2){let t=e.$implicit;ue(),zn("routerLink",t.route),ue(),Hi(t.name),ue(),Vi(3,t.children.length>0?3:-1)}}var Po=(()=>{let e=class e{constructor(n){this.router=n,this.menu=[{name:"Getting started",route:"getting-started",children:[]},{name:"Basic controls",route:"basic-controls",children:[{name:"Text",route:"text"},{name:"Number",route:"number"},{name:"Switch",route:"switch"},{name:"Slider",route:"slider"},{name:"Fill",route:"fill"},{name:"Select",route:"select"},{name:"Button Toggle",route:"button_toggle"},{name:"Image Select",route:"image_select"},{name:"Textarea",route:"textarea"},{name:"Hidden",route:"hidden"}]},{name:"Group controls",route:"group-controls",children:[{name:"Group",route:"group"},{name:"Inline Group",route:"inline_group"},{name:"Tabs",route:"tabs"},{name:"Menu",route:"menu"}]},{name:"Media controls",route:"media-controls",children:[{name:"Upload Settings",route:"upload_settings"},{name:"Image",route:"image"},{name:"Video",route:"video"},{name:"Audio",route:"audio"},{name:"File",route:"file"}]},{name:"Conditions",route:"conditions",children:[]},{name:"Playground",route:"playground",children:[]}],this.menuOpened=!1,this.router.events.pipe(Se(i=>i instanceof ne)).subscribe(i=>{this.menuOpened=!1})}};e.\u0275fac=function(i){return new(i||e)(j(rt))},e.\u0275cmp=be({type:e,selectors:[["app-layout"]],hostAttrs:[1,"container-wrap"],standalone:!0,features:[Ee],decls:20,vars:4,consts:[["mat-icon-button","",1,"menu-toggle",3,"click"],["svgIcon","menu"],["routerLink","/",1,"brand"],[1,"spacer"],["mat-icon-button","","href","https://github.com/acrodata/gui","target","_blank"],["svgIcon","github"],[1,"container"],["role","navigation",1,"menu"],["routerLinkActive","active",1,"menu-item"],["href","https://github.com/nzbin","target","_blank"],[1,"backdrop",3,"click"],["role","button",3,"routerLink"],[1,"submenu"],[1,"submenu-item"],["role","button",3,"routerLink","fragment"]],template:function(i,s){i&1&&(D(0,"header")(1,"button",0),ut("click",function(){return s.menuOpened=!s.menuOpened}),ie(2,"mat-icon",1),k(),D(3,"a",2),B(4,"Acrodata GUI"),k(),ie(5,"span",3),D(6,"a",4),ie(7,"mat-icon",5),k()(),D(8,"div",6)(9,"aside")(10,"ul",7),Vn(11,cc,4,3,"li",8,Bn),k()(),D(13,"main"),ie(14,"router-outlet"),D(15,"footer"),B(16,"\xA9 2023 Made with \u2764\uFE0F by "),D(17,"a",9),B(18,"nzbin"),k()()()(),D(19,"div",10),ut("click",function(){return s.menuOpened=!1}),k()),i&2&&(ue(9),qn("show",s.menuOpened),ue(2),Kn(s.menu),ue(8),qn("show",s.menuOpened))},dependencies:[_t,an,Ys,hs,cs,us,ps,fs],styles:[`.container-wrap{display:block;max-width:1280px;padding:0 64px;margin:0 auto}.container{display:flex;gap:32px}main{flex:1;width:0;padding-top:16px}aside{position:sticky;top:0;display:block;width:240px;height:100vh;padding:16px 0 32px;overflow:auto;background-color:var(--bg-color)}header{display:flex;align-items:center;height:64px;border-bottom:1px solid var(--border-color);background-color:var(--bg-translucent-color);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}footer{padding:32px 0;margin-top:64px;font-size:.75rem;text-align:center}.menu,.submenu{padding:0;margin:0;list-style-type:none}.menu a,.submenu a{position:relative;display:block;padding:8px 16px;border-radius:8px;text-decoration:none}.menu a:hover,.submenu a:hover{background-color:var(--bg-secondary-color)}.menu-item>a{margin-top:24px;font-weight:500;color:var(--fg-color)}.menu-item.active>a:before{content:"";position:absolute;top:12px;left:0;display:inline-block;width:4px;height:16px;background-color:currentColor;border-radius:2px}.menu-item:first-child>a{margin-top:0}.submenu-item>a{color:var(--fg-secondary-color)}.brand{padding:0 16px;color:var(--heading-color);font-size:20px;font-weight:600}.spacer{flex-grow:1}@media (width <= 960px){.container-wrap{padding:0 32px}aside{position:fixed;top:0;bottom:0;left:0;z-index:20;transform:translate(-100%);transition:transform .3s ease-in-out}aside.show{transform:none}.backdrop{position:fixed;top:0;left:0;z-index:19;width:100vw;height:100vh;visibility:hidden;transition-duration:.4s;transition-timing-function:cubic-bezier(.25,.8,.25,1);transition-property:background-color,visibility}.backdrop.show{background-color:#00000080;visibility:visible}header{position:sticky;top:0;z-index:10}.brand{padding:0 8px}}@media (width <= 600px){.container-wrap{padding:0 16px}}@media (width > 960px){.mat-mdc-icon-button.menu-toggle{display:none}}a.mat-mdc-icon-button{display:inline-flex}a.mat-mdc-icon-button .mat-icon{line-height:1} -`],encapsulation:2});let r=e;return r})();var Do=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=be({type:e,selectors:[["app-home"]],standalone:!0,features:[Ee],decls:19,vars:0,consts:[["id","features"],["href","home#features"],["href","https://angular.io/guide/reactive-forms","target","_blank"]],template:function(i,s){i&1&&(ie(0,"app-gradient-generator"),D(1,"h2",0)(2,"a",1),B(3,"Features"),k()(),D(4,"ul")(5,"li"),B(6,"Built on top of "),D(7,"a",2),B(8,"Angular Reactive Forms"),k()(),D(9,"li"),B(10,"JSON powered config"),k(),D(11,"li"),B(12,"Easy to understand config and model"),k(),D(13,"li"),B(14,"Uses Angular Material as basic UI library"),k(),D(15,"li"),B(16,"A11y support"),k(),D(17,"li"),B(18,"RTL support"),k()())},dependencies:[ms]});let r=e;return r})();var No=[{path:"",component:Po,children:[{path:"",redirectTo:"home",pathMatch:"full"},{path:"home",component:Do},{path:"getting-started",loadComponent:()=>import("./chunk-6WZZ46AZ.js").then(r=>r.GettingStartedComponent)},{path:"basic-controls",loadComponent:()=>import("./chunk-MEF36C2D.js").then(r=>r.BasicControlsComponent)},{path:"media-controls",loadComponent:()=>import("./chunk-C72PJ6WQ.js").then(r=>r.MediaControlsComponent)},{path:"group-controls",loadComponent:()=>import("./chunk-TFWC5DLU.js").then(r=>r.GroupControlsComponent)},{path:"conditions",loadComponent:()=>import("./chunk-T536VJ3P.js").then(r=>r.ConditionsComponent)},{path:"playground",loadComponent:()=>import("./chunk-ZGPJLJYB.js").then(r=>r.PlaygroundComponent)}]},{path:"**",redirectTo:"home"}];var Oo={providers:[Xs(No,Js({scrollPositionRestoration:"enabled",anchorScrolling:"enabled"})),Io(),ts(),Ii(ls.forRoot({baseUrl:"assets/lib"})),{provide:as,useValue:{coreLibraryLoader:()=>import("./chunk-2LK3EEMM.js"),languages:{typescript:()=>import("./chunk-ZZ6UPGYI.js"),scss:()=>import("./chunk-GBXOKUOD.js"),xml:()=>import("./chunk-IWQIUXOR.js"),json:()=>import("./chunk-ICD5WLOO.js"),diff:()=>import("./chunk-P5J7YRA6.js")}}}]};var ko=(()=>{let e=class e{constructor(n,i){this.title="docs",this.icons=["menu","github"];for(let s of this.icons)n.addSvgIcon(s,i.bypassSecurityTrustResourceUrl(`assets/icons/${s}.svg`))}};e.\u0275fac=function(i){return new(i||e)(j(ds),j(ss))},e.\u0275cmp=be({type:e,selectors:[["app-root"]],standalone:!0,features:[Ee],decls:1,vars:0,template:function(i,s){i&1&&ie(0,"router-outlet")},dependencies:[_t],encapsulation:2});let r=e;return r})();rs(ko,Oo).catch(r=>console.error(r)); +import{a as as,f as ms}from"./chunk-I7NLANIE.js";import{b as ls}from"./chunk-5RBAHAWY.js";import{$ as Ii,$a as B,$b as ps,A as Ve,Aa as Fi,Ab as ns,B as Ei,Ba as $i,Bb as rs,C as Lt,Ca as ji,Cb as is,D as we,Da as zi,Db as ss,E as Ln,Ea as qi,Eb as T,F as Ci,Fa as Bi,Fb as ce,G as Ti,Ga as zn,Gb as os,H as _i,Hb as Yn,I as le,Ia as qn,Ib as We,J as Ri,Jb as Zn,K as $,Kb as Bt,L as w,La as Vi,Ma as Bn,N as O,Na as Vn,Oa as Kn,P as Ai,Pa as D,Q as pe,Qa as k,R as xn,Ra as ie,S as Ke,T as b,Ta as ut,Ua as Qn,W as xt,Wb as us,X as be,Xa as Ki,Xb as cs,Yb as hs,Z as Ut,Za as Qi,Zb as ds,_ as Mi,_a as Wi,_b as fs,a as yi,aa as Ft,ab as Hi,b as vi,ba as De,bb as Gi,d as In,da as $t,e as Pn,f as ye,g as X,ga as Un,gb as Ee,ha as Pi,i as ve,ia as Di,j as J,k as E,ka as Fn,kb as Yi,l as at,la as Qe,lb as Zi,m as Si,mb as Xi,n as wi,na as $n,nb as Ji,o as I,ob as Wn,p as Dn,pa as Ni,pb as jt,q as ee,qa as ue,qb as zt,r as Nn,ra as j,rb as Hn,s as bi,sa as Oi,sb as Gn,t as On,ta as ki,tb as qt,u as Se,ua as Li,va as jn,w as Be,wa as xi,x as lt,xa as Ne,ya as Ui,yb as es,z as kn,zb as ts}from"./chunk-I5MCOHXJ.js";import{a as S,b as Q,c as gi}from"./chunk-CWTPBX7D.js";var C="primary",Tt=Symbol("RouteTitle"),nr=class{constructor(e){this.params=e||{}}has(e){return Object.prototype.hasOwnProperty.call(this.params,e)}get(e){if(this.has(e)){let t=this.params[e];return Array.isArray(t)?t[0]:t}return null}getAll(e){if(this.has(e)){let t=this.params[e];return Array.isArray(t)?t:[t]}return[]}get keys(){return Object.keys(this.params)}};function Xe(r){return new nr(r)}function $o(r,e,t){let n=t.path.split("/");if(n.length>r.length||t.pathMatch==="full"&&(e.hasChildren()||n.lengthn[s]===i)}else return r===e}function Es(r){return r.length>0?r[r.length-1]:null}function Re(r){return Si(r)?r:Zi(r)?J(Promise.resolve(r)):E(r)}var zo={exact:Ts,subset:_s},Cs={exact:qo,subset:Bo,ignored:()=>!0};function gs(r,e,t){return zo[t.paths](r.root,e.root,t.matrixParams)&&Cs[t.queryParams](r.queryParams,e.queryParams)&&!(t.fragment==="exact"&&r.fragment!==e.fragment)}function qo(r,e){return he(r,e)}function Ts(r,e,t){if(!ke(r.segments,e.segments)||!Qt(r.segments,e.segments,t)||r.numberOfChildren!==e.numberOfChildren)return!1;for(let n in e.children)if(!r.children[n]||!Ts(r.children[n],e.children[n],t))return!1;return!0}function Bo(r,e){return Object.keys(e).length<=Object.keys(r).length&&Object.keys(e).every(t=>bs(r[t],e[t]))}function _s(r,e,t){return Rs(r,e,e.segments,t)}function Rs(r,e,t,n){if(r.segments.length>t.length){let i=r.segments.slice(0,t.length);return!(!ke(i,t)||e.hasChildren()||!Qt(i,t,n))}else if(r.segments.length===t.length){if(!ke(r.segments,t)||!Qt(r.segments,t,n))return!1;for(let i in e.children)if(!r.children[i]||!_s(r.children[i],e.children[i],n))return!1;return!0}else{let i=t.slice(0,r.segments.length),s=t.slice(r.segments.length);return!ke(r.segments,i)||!Qt(r.segments,i,n)||!r.children[C]?!1:Rs(r.children[C],e,s,n)}}function Qt(r,e,t){return e.every((n,i)=>Cs[t](r[i].parameters,n.parameters))}var Ce=class{constructor(e=new R([],{}),t={},n=null){this.root=e,this.queryParams=t,this.fragment=n}get queryParamMap(){return this._queryParamMap??=Xe(this.queryParams),this._queryParamMap}toString(){return Qo.serialize(this)}},R=class{constructor(e,t){this.segments=e,this.children=t,this.parent=null,Object.values(t).forEach(n=>n.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Wt(this)}},Oe=class{constructor(e,t){this.path=e,this.parameters=t}get parameterMap(){return this._parameterMap??=Xe(this.parameters),this._parameterMap}toString(){return Ms(this)}};function Vo(r,e){return ke(r,e)&&r.every((t,n)=>he(t.parameters,e[n].parameters))}function ke(r,e){return r.length!==e.length?!1:r.every((t,n)=>t.path===e[n].path)}function Ko(r,e){let t=[];return Object.entries(r.children).forEach(([n,i])=>{n===C&&(t=t.concat(e(i,n)))}),Object.entries(r.children).forEach(([n,i])=>{n!==C&&(t=t.concat(e(i,n)))}),t}var ln=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=O({token:e,factory:()=>new Gt,providedIn:"root"});let r=e;return r})(),Gt=class{parse(e){let t=new sr(e);return new Ce(t.parseRootSegment(),t.parseQueryParams(),t.parseFragment())}serialize(e){let t=`/${ct(e.root,!0)}`,n=Go(e.queryParams),i=typeof e.fragment=="string"?`#${Wo(e.fragment)}`:"";return`${t}${n}${i}`}},Qo=new Gt;function Wt(r){return r.segments.map(e=>Ms(e)).join("/")}function ct(r,e){if(!r.hasChildren())return Wt(r);if(e){let t=r.children[C]?ct(r.children[C],!1):"",n=[];return Object.entries(r.children).forEach(([i,s])=>{i!==C&&n.push(`${i}:${ct(s,!1)}`)}),n.length>0?`${t}(${n.join("//")})`:t}else{let t=Ko(r,(n,i)=>i===C?[ct(r.children[C],!1)]:[`${i}:${ct(n,!1)}`]);return Object.keys(r.children).length===1&&r.children[C]!=null?`${Wt(r)}/${t[0]}`:`${Wt(r)}/(${t.join("//")})`}}function As(r){return encodeURIComponent(r).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Vt(r){return As(r).replace(/%3B/gi,";")}function Wo(r){return encodeURI(r)}function ir(r){return As(r).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Ht(r){return decodeURIComponent(r)}function ys(r){return Ht(r.replace(/\+/g,"%20"))}function Ms(r){return`${ir(r.path)}${Ho(r.parameters)}`}function Ho(r){return Object.entries(r).map(([e,t])=>`;${ir(e)}=${ir(t)}`).join("")}function Go(r){let e=Object.entries(r).map(([t,n])=>Array.isArray(n)?n.map(i=>`${Vt(t)}=${Vt(i)}`).join("&"):`${Vt(t)}=${Vt(n)}`).filter(t=>t);return e.length?`?${e.join("&")}`:""}var Yo=/^[^\/()?;#]+/;function Xn(r){let e=r.match(Yo);return e?e[0]:""}var Zo=/^[^\/()?;=#]+/;function Xo(r){let e=r.match(Zo);return e?e[0]:""}var Jo=/^[^=?&#]+/;function ea(r){let e=r.match(Jo);return e?e[0]:""}var ta=/^[^&#]+/;function na(r){let e=r.match(ta);return e?e[0]:""}var sr=class{constructor(e){this.url=e,this.remaining=e}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new R([],{}):new R([],this.parseChildren())}parseQueryParams(){let e={};if(this.consumeOptional("?"))do this.parseQueryParam(e);while(this.consumeOptional("&"));return e}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(this.remaining==="")return{};this.consumeOptional("/");let e=[];for(this.peekStartsWith("(")||e.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),e.push(this.parseSegment());let t={};this.peekStartsWith("/(")&&(this.capture("/"),t=this.parseParens(!0));let n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(e.length>0||Object.keys(t).length>0)&&(n[C]=new R(e,t)),n}parseSegment(){let e=Xn(this.remaining);if(e===""&&this.peekStartsWith(";"))throw new w(4009,!1);return this.capture(e),new Oe(Ht(e),this.parseMatrixParams())}parseMatrixParams(){let e={};for(;this.consumeOptional(";");)this.parseParam(e);return e}parseParam(e){let t=Xo(this.remaining);if(!t)return;this.capture(t);let n="";if(this.consumeOptional("=")){let i=Xn(this.remaining);i&&(n=i,this.capture(n))}e[Ht(t)]=Ht(n)}parseQueryParam(e){let t=ea(this.remaining);if(!t)return;this.capture(t);let n="";if(this.consumeOptional("=")){let o=na(this.remaining);o&&(n=o,this.capture(n))}let i=ys(t),s=ys(n);if(e.hasOwnProperty(i)){let o=e[i];Array.isArray(o)||(o=[o],e[i]=o),o.push(s)}else e[i]=s}parseParens(e){let t={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let n=Xn(this.remaining),i=this.remaining[n.length];if(i!=="/"&&i!==")"&&i!==";")throw new w(4010,!1);let s;n.indexOf(":")>-1?(s=n.slice(0,n.indexOf(":")),this.capture(s),this.capture(":")):e&&(s=C);let o=this.parseChildren();t[s]=Object.keys(o).length===1?o[C]:new R([],o),this.consumeOptional("//")}return t}peekStartsWith(e){return this.remaining.startsWith(e)}consumeOptional(e){return this.peekStartsWith(e)?(this.remaining=this.remaining.substring(e.length),!0):!1}capture(e){if(!this.consumeOptional(e))throw new w(4011,!1)}};function Is(r){return r.segments.length>0?new R([],{[C]:r}):r}function Ps(r){let e={};for(let[n,i]of Object.entries(r.children)){let s=Ps(i);if(n===C&&s.segments.length===0&&s.hasChildren())for(let[o,a]of Object.entries(s.children))e[o]=a;else(s.segments.length>0||s.hasChildren())&&(e[n]=s)}let t=new R(r.segments,e);return ra(t)}function ra(r){if(r.numberOfChildren===1&&r.children[C]){let e=r.children[C];return new R(r.segments.concat(e.segments),e.children)}return r}function Je(r){return r instanceof Ce}function ia(r,e,t=null,n=null){let i=Ds(r);return Ns(i,e,t,n)}function Ds(r){let e;function t(s){let o={};for(let u of s.children){let l=t(u);o[u.outlet]=l}let a=new R(s.url,o);return s===r&&(e=a),a}let n=t(r.root),i=Is(n);return e??i}function Ns(r,e,t,n){let i=r;for(;i.parent;)i=i.parent;if(e.length===0)return Jn(i,i,i,t,n);let s=sa(e);if(s.toRoot())return Jn(i,i,new R([],{}),t,n);let o=oa(s,i,r),a=o.processChildren?ft(o.segmentGroup,o.index,s.commands):ks(o.segmentGroup,o.index,s.commands);return Jn(i,o.segmentGroup,a,t,n)}function Yt(r){return typeof r=="object"&&r!=null&&!r.outlets&&!r.segmentPath}function gt(r){return typeof r=="object"&&r!=null&&r.outlets}function Jn(r,e,t,n,i){let s={};n&&Object.entries(n).forEach(([u,l])=>{s[u]=Array.isArray(l)?l.map(c=>`${c}`):`${l}`});let o;r===e?o=t:o=Os(r,e,t);let a=Is(Ps(o));return new Ce(a,s,i)}function Os(r,e,t){let n={};return Object.entries(r.children).forEach(([i,s])=>{s===e?n[i]=t:n[i]=Os(s,e,t)}),new R(r.segments,n)}var Zt=class{constructor(e,t,n){if(this.isAbsolute=e,this.numberOfDoubleDots=t,this.commands=n,e&&n.length>0&&Yt(n[0]))throw new w(4003,!1);let i=n.find(gt);if(i&&i!==Es(n))throw new w(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function sa(r){if(typeof r[0]=="string"&&r.length===1&&r[0]==="/")return new Zt(!0,0,r);let e=0,t=!1,n=r.reduce((i,s,o)=>{if(typeof s=="object"&&s!=null){if(s.outlets){let a={};return Object.entries(s.outlets).forEach(([u,l])=>{a[u]=typeof l=="string"?l.split("/"):l}),[...i,{outlets:a}]}if(s.segmentPath)return[...i,s.segmentPath]}return typeof s!="string"?[...i,s]:o===0?(s.split("/").forEach((a,u)=>{u==0&&a==="."||(u==0&&a===""?t=!0:a===".."?e++:a!=""&&i.push(a))}),i):[...i,s]},[]);return new Zt(t,e,n)}var Ye=class{constructor(e,t,n){this.segmentGroup=e,this.processChildren=t,this.index=n}};function oa(r,e,t){if(r.isAbsolute)return new Ye(e,!0,0);if(!t)return new Ye(e,!1,NaN);if(t.parent===null)return new Ye(t,!0,0);let n=Yt(r.commands[0])?0:1,i=t.segments.length-1+n;return aa(t,i,r.numberOfDoubleDots)}function aa(r,e,t){let n=r,i=e,s=t;for(;s>i;){if(s-=i,n=n.parent,!n)throw new w(4005,!1);i=n.segments.length}return new Ye(n,!1,i-s)}function la(r){return gt(r[0])?r[0].outlets:{[C]:r}}function ks(r,e,t){if(r??=new R([],{}),r.segments.length===0&&r.hasChildren())return ft(r,e,t);let n=ua(r,e,t),i=t.slice(n.commandIndex);if(n.match&&n.pathIndexs!==C)&&r.children[C]&&r.numberOfChildren===1&&r.children[C].segments.length===0){let s=ft(r.children[C],e,t);return new R(r.segments,s.children)}return Object.entries(n).forEach(([s,o])=>{typeof o=="string"&&(o=[o]),o!==null&&(i[s]=ks(r.children[s],e,o))}),Object.entries(r.children).forEach(([s,o])=>{n[s]===void 0&&(i[s]=o)}),new R(r.segments,i)}}function ua(r,e,t){let n=0,i=e,s={match:!1,pathIndex:0,commandIndex:0};for(;i=t.length)return s;let o=r.segments[i],a=t[n];if(gt(a))break;let u=`${a}`,l=n0&&u===void 0)break;if(u&&l&&typeof l=="object"&&l.outlets===void 0){if(!Ss(u,l,o))return s;n+=2}else{if(!Ss(u,{},o))return s;n++}i++}return{match:!0,pathIndex:i,commandIndex:n}}function or(r,e,t){let n=r.segments.slice(0,e),i=0;for(;i{typeof n=="string"&&(n=[n]),n!==null&&(e[t]=or(new R([],{}),0,n))}),e}function vs(r){let e={};return Object.entries(r).forEach(([t,n])=>e[t]=`${n}`),e}function Ss(r,e,t){return r==t.path&&he(e,t.parameters)}var pt="imperative",x=function(r){return r[r.NavigationStart=0]="NavigationStart",r[r.NavigationEnd=1]="NavigationEnd",r[r.NavigationCancel=2]="NavigationCancel",r[r.NavigationError=3]="NavigationError",r[r.RoutesRecognized=4]="RoutesRecognized",r[r.ResolveStart=5]="ResolveStart",r[r.ResolveEnd=6]="ResolveEnd",r[r.GuardsCheckStart=7]="GuardsCheckStart",r[r.GuardsCheckEnd=8]="GuardsCheckEnd",r[r.RouteConfigLoadStart=9]="RouteConfigLoadStart",r[r.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",r[r.ChildActivationStart=11]="ChildActivationStart",r[r.ChildActivationEnd=12]="ChildActivationEnd",r[r.ActivationStart=13]="ActivationStart",r[r.ActivationEnd=14]="ActivationEnd",r[r.Scroll=15]="Scroll",r[r.NavigationSkipped=16]="NavigationSkipped",r}(x||{}),te=class{constructor(e,t){this.id=e,this.url=t}},et=class extends te{constructor(e,t,n="imperative",i=null){super(e,t),this.type=x.NavigationStart,this.navigationTrigger=n,this.restoredState=i}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},ne=class extends te{constructor(e,t,n){super(e,t),this.urlAfterRedirects=n,this.type=x.NavigationEnd}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},H=function(r){return r[r.Redirect=0]="Redirect",r[r.SupersededByNewNavigation=1]="SupersededByNewNavigation",r[r.NoDataFromResolver=2]="NoDataFromResolver",r[r.GuardRejected=3]="GuardRejected",r}(H||{}),Xt=function(r){return r[r.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",r[r.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",r}(Xt||{}),Te=class extends te{constructor(e,t,n,i){super(e,t),this.reason=n,this.code=i,this.type=x.NavigationCancel}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}},_e=class extends te{constructor(e,t,n,i){super(e,t),this.reason=n,this.code=i,this.type=x.NavigationSkipped}},yt=class extends te{constructor(e,t,n,i){super(e,t),this.error=n,this.target=i,this.type=x.NavigationError}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},Jt=class extends te{constructor(e,t,n,i){super(e,t),this.urlAfterRedirects=n,this.state=i,this.type=x.RoutesRecognized}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},ar=class extends te{constructor(e,t,n,i){super(e,t),this.urlAfterRedirects=n,this.state=i,this.type=x.GuardsCheckStart}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},lr=class extends te{constructor(e,t,n,i,s){super(e,t),this.urlAfterRedirects=n,this.state=i,this.shouldActivate=s,this.type=x.GuardsCheckEnd}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},ur=class extends te{constructor(e,t,n,i){super(e,t),this.urlAfterRedirects=n,this.state=i,this.type=x.ResolveStart}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},cr=class extends te{constructor(e,t,n,i){super(e,t),this.urlAfterRedirects=n,this.state=i,this.type=x.ResolveEnd}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},hr=class{constructor(e){this.route=e,this.type=x.RouteConfigLoadStart}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},dr=class{constructor(e){this.route=e,this.type=x.RouteConfigLoadEnd}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},fr=class{constructor(e){this.snapshot=e,this.type=x.ChildActivationStart}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},pr=class{constructor(e){this.snapshot=e,this.type=x.ChildActivationEnd}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},mr=class{constructor(e){this.snapshot=e,this.type=x.ActivationStart}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},gr=class{constructor(e){this.snapshot=e,this.type=x.ActivationEnd}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},en=class{constructor(e,t,n){this.routerEvent=e,this.position=t,this.anchor=n,this.type=x.Scroll}toString(){let e=this.position?`${this.position[0]}, ${this.position[1]}`:null;return`Scroll(anchor: '${this.anchor}', position: '${e}')`}},vt=class{},St=class{constructor(e){this.url=e}};var yr=class{constructor(){this.outlet=null,this.route=null,this.injector=null,this.children=new un,this.attachRef=null}},un=(()=>{let e=class e{constructor(){this.contexts=new Map}onChildOutletCreated(n,i){let s=this.getOrCreateContext(n);s.outlet=i,this.contexts.set(n,s)}onChildOutletDestroyed(n){let i=this.getContext(n);i&&(i.outlet=null,i.attachRef=null)}onOutletDeactivated(){let n=this.contexts;return this.contexts=new Map,n}onOutletReAttached(n){this.contexts=n}getOrCreateContext(n){let i=this.getContext(n);return i||(i=new yr,this.contexts.set(n,i)),i}getContext(n){return this.contexts.get(n)||null}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=O({token:e,factory:e.\u0275fac,providedIn:"root"});let r=e;return r})(),tn=class{constructor(e){this._root=e}get root(){return this._root.value}parent(e){let t=this.pathFromRoot(e);return t.length>1?t[t.length-2]:null}children(e){let t=vr(e,this._root);return t?t.children.map(n=>n.value):[]}firstChild(e){let t=vr(e,this._root);return t&&t.children.length>0?t.children[0].value:null}siblings(e){let t=Sr(e,this._root);return t.length<2?[]:t[t.length-2].children.map(i=>i.value).filter(i=>i!==e)}pathFromRoot(e){return Sr(e,this._root).map(t=>t.value)}};function vr(r,e){if(r===e.value)return e;for(let t of e.children){let n=vr(r,t);if(n)return n}return null}function Sr(r,e){if(r===e.value)return[e];for(let t of e.children){let n=Sr(r,t);if(n.length)return n.unshift(e),n}return[]}var W=class{constructor(e,t){this.value=e,this.children=t}toString(){return`TreeNode(${this.value})`}};function Ge(r){let e={};return r&&r.children.forEach(t=>e[t.value.outlet]=t),e}var nn=class extends tn{constructor(e,t){super(e),this.snapshot=t,Ir(this,e)}toString(){return this.snapshot.toString()}};function Ls(r){let e=ha(r),t=new X([new Oe("",{})]),n=new X({}),i=new X({}),s=new X({}),o=new X(""),a=new Le(t,n,s,o,i,C,r,e.root);return a.snapshot=e.root,new nn(new W(a,[]),e)}function ha(r){let e={},t={},n={},i="",s=new wt([],e,n,i,t,C,r,null,{});return new rn("",new W(s,[]))}var Le=class{constructor(e,t,n,i,s,o,a,u){this.urlSubject=e,this.paramsSubject=t,this.queryParamsSubject=n,this.fragmentSubject=i,this.dataSubject=s,this.outlet=o,this.component=a,this._futureSnapshot=u,this.title=this.dataSubject?.pipe(I(l=>l[Tt]))??E(void 0),this.url=e,this.params=t,this.queryParams=n,this.fragment=i,this.data=s}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.params.pipe(I(e=>Xe(e))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(I(e=>Xe(e))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function Mr(r,e,t="emptyOnly"){let n,{routeConfig:i}=r;return e!==null&&(t==="always"||i?.path===""||!e.component&&!e.routeConfig?.loadComponent)?n={params:S(S({},e.params),r.params),data:S(S({},e.data),r.data),resolve:S(S(S(S({},r.data),e.data),i?.data),r._resolvedData)}:n={params:S({},r.params),data:S({},r.data),resolve:S(S({},r.data),r._resolvedData??{})},i&&Us(i)&&(n.resolve[Tt]=i.title),n}var wt=class{get title(){return this.data?.[Tt]}constructor(e,t,n,i,s,o,a,u,l){this.url=e,this.params=t,this.queryParams=n,this.fragment=i,this.data=s,this.outlet=o,this.component=a,this.routeConfig=u,this._resolve=l}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??=Xe(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=Xe(this.queryParams),this._queryParamMap}toString(){let e=this.url.map(n=>n.toString()).join("/"),t=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${e}', path:'${t}')`}},rn=class extends tn{constructor(e,t){super(t),this.url=e,Ir(this,t)}toString(){return xs(this._root)}};function Ir(r,e){e.value._routerState=r,e.children.forEach(t=>Ir(r,t))}function xs(r){let e=r.children.length>0?` { ${r.children.map(xs).join(", ")} } `:"";return`${r.value}${e}`}function er(r){if(r.snapshot){let e=r.snapshot,t=r._futureSnapshot;r.snapshot=t,he(e.queryParams,t.queryParams)||r.queryParamsSubject.next(t.queryParams),e.fragment!==t.fragment&&r.fragmentSubject.next(t.fragment),he(e.params,t.params)||r.paramsSubject.next(t.params),jo(e.url,t.url)||r.urlSubject.next(t.url),he(e.data,t.data)||r.dataSubject.next(t.data)}else r.snapshot=r._futureSnapshot,r.dataSubject.next(r._futureSnapshot.data)}function wr(r,e){let t=he(r.params,e.params)&&Vo(r.url,e.url),n=!r.parent!=!e.parent;return t&&!n&&(!r.parent||wr(r.parent,e.parent))}function Us(r){return typeof r.title=="string"||r.title===null}var _t=(()=>{let e=class e{constructor(){this.activated=null,this._activatedRoute=null,this.name=C,this.activateEvents=new Qe,this.deactivateEvents=new Qe,this.attachEvents=new Qe,this.detachEvents=new Qe,this.parentContexts=b(un),this.location=b(Ui),this.changeDetector=b(jt),this.environmentInjector=b(Ft),this.inputBinder=b(Pr,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(n){if(n.name){let{firstChange:i,previousValue:s}=n.name;if(i)return;this.isTrackedInParentContexts(s)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(s)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(n){return this.parentContexts.getContext(n)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let n=this.parentContexts.getContext(this.name);n?.route&&(n.attachRef?this.attach(n.attachRef,n.route):this.activateWith(n.route,n.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new w(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new w(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new w(4012,!1);this.location.detach();let n=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(n.instance),n}attach(n,i){this.activated=n,this._activatedRoute=i,this.location.insert(n.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(n.instance)}deactivate(){if(this.activated){let n=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(n)}}activateWith(n,i){if(this.isActivated)throw new w(4013,!1);this._activatedRoute=n;let s=this.location,a=n.snapshot.component,u=this.parentContexts.getOrCreateContext(this.name).children,l=new br(n,u,s.injector);this.activated=s.createComponent(a,{index:s.length,injector:l,environmentInjector:i??this.environmentInjector}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275dir=Ut({type:e,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[$t]});let r=e;return r})(),br=class r{__ngOutletInjector(e){return new r(this.route,this.childContexts,e)}constructor(e,t,n){this.route=e,this.childContexts=t,this.parent=n}get(e,t){return e===Le?this.route:e===un?this.childContexts:this.parent.get(e,t)}},Pr=new pe("");function da(r,e,t){let n=bt(r,e._root,t?t._root:void 0);return new nn(n,e)}function bt(r,e,t){if(t&&r.shouldReuseRoute(e.value,t.value.snapshot)){let n=t.value;n._futureSnapshot=e.value;let i=fa(r,e,t);return new W(n,i)}else{if(r.shouldAttach(e.value)){let s=r.retrieve(e.value);if(s!==null){let o=s.route;return o.value._futureSnapshot=e.value,o.children=e.children.map(a=>bt(r,a)),o}}let n=pa(e.value),i=e.children.map(s=>bt(r,s));return new W(n,i)}}function fa(r,e,t){return e.children.map(n=>{for(let i of t.children)if(r.shouldReuseRoute(n.value,i.value.snapshot))return bt(r,n,i);return bt(r,n)})}function pa(r){return new Le(new X(r.url),new X(r.params),new X(r.queryParams),new X(r.fragment),new X(r.data),r.outlet,r.component,r)}var Fs="ngNavigationCancelingError";function $s(r,e){let{redirectTo:t,navigationBehaviorOptions:n}=Je(e)?{redirectTo:e,navigationBehaviorOptions:void 0}:e,i=js(!1,H.Redirect);return i.url=t,i.navigationBehaviorOptions=n,i}function js(r,e){let t=new Error(`NavigationCancelingError: ${r||""}`);return t[Fs]=!0,t.cancellationCode=e,t}function ma(r){return zs(r)&&Je(r.url)}function zs(r){return!!r&&r[Fs]}var ga=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=be({type:e,selectors:[["ng-component"]],standalone:!0,features:[Ee],decls:1,vars:0,template:function(i,s){i&1&&ie(0,"router-outlet")},dependencies:[_t],encapsulation:2});let r=e;return r})();function ya(r,e){return r.providers&&!r._injector&&(r._injector=ji(r.providers,e,`Route: ${r.path}`)),r._injector??e}function Dr(r){let e=r.children&&r.children.map(Dr),t=e?Q(S({},r),{children:e}):S({},r);return!t.component&&!t.loadComponent&&(e||t.loadChildren)&&t.outlet&&t.outlet!==C&&(t.component=ga),t}function de(r){return r.outlet||C}function va(r,e){let t=r.filter(n=>de(n)===e);return t.push(...r.filter(n=>de(n)!==e)),t}function Rt(r){if(!r)return null;if(r.routeConfig?._injector)return r.routeConfig._injector;for(let e=r.parent;e;e=e.parent){let t=e.routeConfig;if(t?._loadedInjector)return t._loadedInjector;if(t?._injector)return t._injector}return null}var Sa=(r,e,t,n)=>I(i=>(new Er(e,i.targetRouterState,i.currentRouterState,t,n).activate(r),i)),Er=class{constructor(e,t,n,i,s){this.routeReuseStrategy=e,this.futureState=t,this.currState=n,this.forwardEvent=i,this.inputBindingEnabled=s}activate(e){let t=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(t,n,e),er(this.futureState.root),this.activateChildRoutes(t,n,e)}deactivateChildRoutes(e,t,n){let i=Ge(t);e.children.forEach(s=>{let o=s.value.outlet;this.deactivateRoutes(s,i[o],n),delete i[o]}),Object.values(i).forEach(s=>{this.deactivateRouteAndItsChildren(s,n)})}deactivateRoutes(e,t,n){let i=e.value,s=t?t.value:null;if(i===s)if(i.component){let o=n.getContext(i.outlet);o&&this.deactivateChildRoutes(e,t,o.children)}else this.deactivateChildRoutes(e,t,n);else s&&this.deactivateRouteAndItsChildren(t,n)}deactivateRouteAndItsChildren(e,t){e.value.component&&this.routeReuseStrategy.shouldDetach(e.value.snapshot)?this.detachAndStoreRouteSubtree(e,t):this.deactivateRouteAndOutlet(e,t)}detachAndStoreRouteSubtree(e,t){let n=t.getContext(e.value.outlet),i=n&&e.value.component?n.children:t,s=Ge(e);for(let o of Object.values(s))this.deactivateRouteAndItsChildren(o,i);if(n&&n.outlet){let o=n.outlet.detach(),a=n.children.onOutletDeactivated();this.routeReuseStrategy.store(e.value.snapshot,{componentRef:o,route:e,contexts:a})}}deactivateRouteAndOutlet(e,t){let n=t.getContext(e.value.outlet),i=n&&e.value.component?n.children:t,s=Ge(e);for(let o of Object.values(s))this.deactivateRouteAndItsChildren(o,i);n&&(n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated()),n.attachRef=null,n.route=null)}activateChildRoutes(e,t,n){let i=Ge(t);e.children.forEach(s=>{this.activateRoutes(s,i[s.value.outlet],n),this.forwardEvent(new gr(s.value.snapshot))}),e.children.length&&this.forwardEvent(new pr(e.value.snapshot))}activateRoutes(e,t,n){let i=e.value,s=t?t.value:null;if(er(i),i===s)if(i.component){let o=n.getOrCreateContext(i.outlet);this.activateChildRoutes(e,t,o.children)}else this.activateChildRoutes(e,t,n);else if(i.component){let o=n.getOrCreateContext(i.outlet);if(this.routeReuseStrategy.shouldAttach(i.snapshot)){let a=this.routeReuseStrategy.retrieve(i.snapshot);this.routeReuseStrategy.store(i.snapshot,null),o.children.onOutletReAttached(a.contexts),o.attachRef=a.componentRef,o.route=a.route.value,o.outlet&&o.outlet.attach(a.componentRef,a.route.value),er(a.route.value),this.activateChildRoutes(e,null,o.children)}else{let a=Rt(i.snapshot);o.attachRef=null,o.route=i,o.injector=a,o.outlet&&o.outlet.activateWith(i,o.injector),this.activateChildRoutes(e,null,o.children)}}else this.activateChildRoutes(e,null,n)}},sn=class{constructor(e){this.path=e,this.route=this.path[this.path.length-1]}},Ze=class{constructor(e,t){this.component=e,this.route=t}};function wa(r,e,t){let n=r._root,i=e?e._root:null;return ht(n,i,t,[n.value])}function ba(r){let e=r.routeConfig?r.routeConfig.canActivateChild:null;return!e||e.length===0?null:{node:r,guards:e}}function nt(r,e){let t=Symbol(),n=e.get(r,t);return n===t?typeof r=="function"&&!Ai(r)?r:e.get(r):n}function ht(r,e,t,n,i={canDeactivateChecks:[],canActivateChecks:[]}){let s=Ge(e);return r.children.forEach(o=>{Ea(o,s[o.value.outlet],t,n.concat([o.value]),i),delete s[o.value.outlet]}),Object.entries(s).forEach(([o,a])=>mt(a,t.getContext(o),i)),i}function Ea(r,e,t,n,i={canDeactivateChecks:[],canActivateChecks:[]}){let s=r.value,o=e?e.value:null,a=t?t.getContext(r.value.outlet):null;if(o&&s.routeConfig===o.routeConfig){let u=Ca(o,s,s.routeConfig.runGuardsAndResolvers);u?i.canActivateChecks.push(new sn(n)):(s.data=o.data,s._resolvedData=o._resolvedData),s.component?ht(r,e,a?a.children:null,n,i):ht(r,e,t,n,i),u&&a&&a.outlet&&a.outlet.isActivated&&i.canDeactivateChecks.push(new Ze(a.outlet.component,o))}else o&&mt(e,a,i),i.canActivateChecks.push(new sn(n)),s.component?ht(r,null,a?a.children:null,n,i):ht(r,null,t,n,i);return i}function Ca(r,e,t){if(typeof t=="function")return t(r,e);switch(t){case"pathParamsChange":return!ke(r.url,e.url);case"pathParamsOrQueryParamsChange":return!ke(r.url,e.url)||!he(r.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!wr(r,e)||!he(r.queryParams,e.queryParams);case"paramsChange":default:return!wr(r,e)}}function mt(r,e,t){let n=Ge(r),i=r.value;Object.entries(n).forEach(([s,o])=>{i.component?e?mt(o,e.children.getContext(s),t):mt(o,null,t):mt(o,e,t)}),i.component?e&&e.outlet&&e.outlet.isActivated?t.canDeactivateChecks.push(new Ze(e.outlet.component,i)):t.canDeactivateChecks.push(new Ze(null,i)):t.canDeactivateChecks.push(new Ze(null,i))}function At(r){return typeof r=="function"}function Ta(r){return typeof r=="boolean"}function _a(r){return r&&At(r.canLoad)}function Ra(r){return r&&At(r.canActivate)}function Aa(r){return r&&At(r.canActivateChild)}function Ma(r){return r&&At(r.canDeactivate)}function Ia(r){return r&&At(r.canMatch)}function qs(r){return r instanceof wi||r?.name==="EmptyError"}var Kt=Symbol("INITIAL_VALUE");function tt(){return le(r=>Dn(r.map(e=>e.pipe(Ve(1),_i(Kt)))).pipe(I(e=>{for(let t of e)if(t!==!0){if(t===Kt)return Kt;if(t===!1||t instanceof Ce)return t}return!0}),Se(e=>e!==Kt),Ve(1)))}function Pa(r,e){return ee(t=>{let{targetSnapshot:n,currentSnapshot:i,guards:{canActivateChecks:s,canDeactivateChecks:o}}=t;return o.length===0&&s.length===0?E(Q(S({},t),{guardsResult:!0})):Da(o,n,i,r).pipe(ee(a=>a&&Ta(a)?Na(n,s,r,e):E(a)),I(a=>Q(S({},t),{guardsResult:a})))})}function Da(r,e,t,n){return J(r).pipe(ee(i=>Ua(i.component,i.route,t,e,n)),we(i=>i!==!0,!0))}function Na(r,e,t,n){return J(e).pipe(lt(i=>bi(ka(i.route.parent,n),Oa(i.route,n),xa(r,i.path,t),La(r,i.route,t))),we(i=>i!==!0,!0))}function Oa(r,e){return r!==null&&e&&e(new mr(r)),E(!0)}function ka(r,e){return r!==null&&e&&e(new fr(r)),E(!0)}function La(r,e,t){let n=e.routeConfig?e.routeConfig.canActivate:null;if(!n||n.length===0)return E(!0);let i=n.map(s=>On(()=>{let o=Rt(e)??t,a=nt(s,o),u=Ra(a)?a.canActivate(e,r):De(o,()=>a(e,r));return Re(u).pipe(we())}));return E(i).pipe(tt())}function xa(r,e,t){let n=e[e.length-1],s=e.slice(0,e.length-1).reverse().map(o=>ba(o)).filter(o=>o!==null).map(o=>On(()=>{let a=o.guards.map(u=>{let l=Rt(o.node)??t,c=nt(u,l),h=Aa(c)?c.canActivateChild(n,r):De(l,()=>c(n,r));return Re(h).pipe(we())});return E(a).pipe(tt())}));return E(s).pipe(tt())}function Ua(r,e,t,n,i){let s=e&&e.routeConfig?e.routeConfig.canDeactivate:null;if(!s||s.length===0)return E(!0);let o=s.map(a=>{let u=Rt(e)??i,l=nt(a,u),c=Ma(l)?l.canDeactivate(r,e,t,n):De(u,()=>l(r,e,t,n));return Re(c).pipe(we())});return E(o).pipe(tt())}function Fa(r,e,t,n){let i=e.canLoad;if(i===void 0||i.length===0)return E(!0);let s=i.map(o=>{let a=nt(o,r),u=_a(a)?a.canLoad(e,t):De(r,()=>a(e,t));return Re(u)});return E(s).pipe(tt(),Bs(n))}function Bs(r){return vi($(e=>{if(Je(e))throw $s(r,e)}),I(e=>e===!0))}function $a(r,e,t,n){let i=e.canMatch;if(!i||i.length===0)return E(!0);let s=i.map(o=>{let a=nt(o,r),u=Ia(a)?a.canMatch(e,t):De(r,()=>a(e,t));return Re(u)});return E(s).pipe(tt(),Bs(n))}var Et=class{constructor(e){this.segmentGroup=e||null}},on=class extends Error{constructor(e){super(),this.urlTree=e}};function He(r){return at(new Et(r))}function ja(r){return at(new w(4e3,!1))}function za(r){return at(js(!1,H.GuardRejected))}var Cr=class{constructor(e,t){this.urlSerializer=e,this.urlTree=t}lineralizeSegments(e,t){let n=[],i=t.root;for(;;){if(n=n.concat(i.segments),i.numberOfChildren===0)return E(n);if(i.numberOfChildren>1||!i.children[C])return ja(e.redirectTo);i=i.children[C]}}applyRedirectCommands(e,t,n){let i=this.applyRedirectCreateUrlTree(t,this.urlSerializer.parse(t),e,n);if(t.startsWith("/"))throw new on(i);return i}applyRedirectCreateUrlTree(e,t,n,i){let s=this.createSegmentGroup(e,t.root,n,i);return new Ce(s,this.createQueryParams(t.queryParams,this.urlTree.queryParams),t.fragment)}createQueryParams(e,t){let n={};return Object.entries(e).forEach(([i,s])=>{if(typeof s=="string"&&s.startsWith(":")){let a=s.substring(1);n[i]=t[a]}else n[i]=s}),n}createSegmentGroup(e,t,n,i){let s=this.createSegments(e,t.segments,n,i),o={};return Object.entries(t.children).forEach(([a,u])=>{o[a]=this.createSegmentGroup(e,u,n,i)}),new R(s,o)}createSegments(e,t,n,i){return t.map(s=>s.path.startsWith(":")?this.findPosParam(e,s,i):this.findOrReturn(s,n))}findPosParam(e,t,n){let i=n[t.path.substring(1)];if(!i)throw new w(4001,!1);return i}findOrReturn(e,t){let n=0;for(let i of t){if(i.path===e.path)return t.splice(n),i;n++}return e}},Tr={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function qa(r,e,t,n,i){let s=Nr(r,e,t);return s.matched?(n=ya(e,n),$a(n,e,t,i).pipe(I(o=>o===!0?s:S({},Tr)))):E(s)}function Nr(r,e,t){if(e.path==="**")return Ba(t);if(e.path==="")return e.pathMatch==="full"&&(r.hasChildren()||t.length>0)?S({},Tr):{matched:!0,consumedSegments:[],remainingSegments:t,parameters:{},positionalParamSegments:{}};let i=(e.matcher||$o)(t,r,e);if(!i)return S({},Tr);let s={};Object.entries(i.posParams??{}).forEach(([a,u])=>{s[a]=u.path});let o=i.consumed.length>0?S(S({},s),i.consumed[i.consumed.length-1].parameters):s;return{matched:!0,consumedSegments:i.consumed,remainingSegments:t.slice(i.consumed.length),parameters:o,positionalParamSegments:i.posParams??{}}}function Ba(r){return{matched:!0,parameters:r.length>0?Es(r).parameters:{},consumedSegments:r,remainingSegments:[],positionalParamSegments:{}}}function ws(r,e,t,n){return t.length>0&&Qa(r,t,n)?{segmentGroup:new R(e,Ka(n,new R(t,r.children))),slicedSegments:[]}:t.length===0&&Wa(r,t,n)?{segmentGroup:new R(r.segments,Va(r,t,n,r.children)),slicedSegments:t}:{segmentGroup:new R(r.segments,r.children),slicedSegments:t}}function Va(r,e,t,n){let i={};for(let s of t)if(cn(r,e,s)&&!n[de(s)]){let o=new R([],{});i[de(s)]=o}return S(S({},n),i)}function Ka(r,e){let t={};t[C]=e;for(let n of r)if(n.path===""&&de(n)!==C){let i=new R([],{});t[de(n)]=i}return t}function Qa(r,e,t){return t.some(n=>cn(r,e,n)&&de(n)!==C)}function Wa(r,e,t){return t.some(n=>cn(r,e,n))}function cn(r,e,t){return(r.hasChildren()||e.length>0)&&t.pathMatch==="full"?!1:t.path===""}function Ha(r,e,t,n){return de(r)!==n&&(n===C||!cn(e,t,r))?!1:Nr(e,r,t).matched}function Ga(r,e,t){return e.length===0&&!r.children[t]}var _r=class{};function Ya(r,e,t,n,i,s,o="emptyOnly"){return new Rr(r,e,t,n,i,o,s).recognize()}var Za=31,Rr=class{constructor(e,t,n,i,s,o,a){this.injector=e,this.configLoader=t,this.rootComponentType=n,this.config=i,this.urlTree=s,this.paramsInheritanceStrategy=o,this.urlSerializer=a,this.applyRedirects=new Cr(this.urlSerializer,this.urlTree),this.absoluteRedirectCount=0,this.allowRedirects=!0}noMatchError(e){return new w(4002,`'${e.segmentGroup}'`)}recognize(){let e=ws(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(e).pipe(I(t=>{let n=new wt([],Object.freeze({}),Object.freeze(S({},this.urlTree.queryParams)),this.urlTree.fragment,{},C,this.rootComponentType,null,{}),i=new W(n,t),s=new rn("",i),o=ia(n,[],this.urlTree.queryParams,this.urlTree.fragment);return o.queryParams=this.urlTree.queryParams,s.url=this.urlSerializer.serialize(o),this.inheritParamsAndData(s._root,null),{state:s,tree:o}}))}match(e){return this.processSegmentGroup(this.injector,this.config,e,C).pipe(Be(n=>{if(n instanceof on)return this.urlTree=n.urlTree,this.match(n.urlTree.root);throw n instanceof Et?this.noMatchError(n):n}))}inheritParamsAndData(e,t){let n=e.value,i=Mr(n,t,this.paramsInheritanceStrategy);n.params=Object.freeze(i.params),n.data=Object.freeze(i.data),e.children.forEach(s=>this.inheritParamsAndData(s,n))}processSegmentGroup(e,t,n,i){return n.segments.length===0&&n.hasChildren()?this.processChildren(e,t,n):this.processSegment(e,t,n,n.segments,i,!0).pipe(I(s=>s instanceof W?[s]:[]))}processChildren(e,t,n){let i=[];for(let s of Object.keys(n.children))s==="primary"?i.unshift(s):i.push(s);return J(i).pipe(lt(s=>{let o=n.children[s],a=va(t,s);return this.processSegmentGroup(e,a,o,s)}),Ti((s,o)=>(s.push(...o),s)),kn(null),Ci(),ee(s=>{if(s===null)return He(n);let o=Vs(s);return Xa(o),E(o)}))}processSegment(e,t,n,i,s,o){return J(t).pipe(lt(a=>this.processSegmentAgainstRoute(a._injector??e,t,a,n,i,s,o).pipe(Be(u=>{if(u instanceof Et)return E(null);throw u}))),we(a=>!!a),Be(a=>{if(qs(a))return Ga(n,i,s)?E(new _r):He(n);throw a}))}processSegmentAgainstRoute(e,t,n,i,s,o,a){return Ha(n,i,s,o)?n.redirectTo===void 0?this.matchSegmentAgainstRoute(e,i,n,s,o):this.allowRedirects&&a?this.expandSegmentAgainstRouteUsingRedirect(e,i,t,n,s,o):He(i):He(i)}expandSegmentAgainstRouteUsingRedirect(e,t,n,i,s,o){let{matched:a,consumedSegments:u,positionalParamSegments:l,remainingSegments:c}=Nr(t,i,s);if(!a)return He(t);i.redirectTo.startsWith("/")&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>Za&&(this.allowRedirects=!1));let h=this.applyRedirects.applyRedirectCommands(u,i.redirectTo,l);return this.applyRedirects.lineralizeSegments(i,h).pipe(ee(d=>this.processSegment(e,n,t,d.concat(c),o,!1)))}matchSegmentAgainstRoute(e,t,n,i,s){let o=qa(t,n,i,e,this.urlSerializer);return n.path==="**"&&(t.children={}),o.pipe(le(a=>a.matched?(e=n._injector??e,this.getChildConfig(e,n,i).pipe(le(({routes:u})=>{let l=n._loadedInjector??e,{consumedSegments:c,remainingSegments:h,parameters:d}=a,f=new wt(c,d,Object.freeze(S({},this.urlTree.queryParams)),this.urlTree.fragment,el(n),de(n),n.component??n._loadedComponent??null,n,tl(n)),{segmentGroup:m,slicedSegments:y}=ws(t,c,h,u);if(y.length===0&&m.hasChildren())return this.processChildren(l,u,m).pipe(I(M=>M===null?null:new W(f,M)));if(u.length===0&&y.length===0)return E(new W(f,[]));let A=de(n)===s;return this.processSegment(l,u,m,y,A?C:s,!0).pipe(I(M=>new W(f,M instanceof W?[M]:[])))}))):He(t)))}getChildConfig(e,t,n){return t.children?E({routes:t.children,injector:e}):t.loadChildren?t._loadedRoutes!==void 0?E({routes:t._loadedRoutes,injector:t._loadedInjector}):Fa(e,t,n,this.urlSerializer).pipe(ee(i=>i?this.configLoader.loadChildren(e,t).pipe($(s=>{t._loadedRoutes=s.routes,t._loadedInjector=s.injector})):za(t))):E({routes:[],injector:e})}};function Xa(r){r.sort((e,t)=>e.value.outlet===C?-1:t.value.outlet===C?1:e.value.outlet.localeCompare(t.value.outlet))}function Ja(r){let e=r.value.routeConfig;return e&&e.path===""}function Vs(r){let e=[],t=new Set;for(let n of r){if(!Ja(n)){e.push(n);continue}let i=e.find(s=>n.value.routeConfig===s.value.routeConfig);i!==void 0?(i.children.push(...n.children),t.add(i)):e.push(n)}for(let n of t){let i=Vs(n.children);e.push(new W(n.value,i))}return e.filter(n=>!t.has(n))}function el(r){return r.data||{}}function tl(r){return r.resolve||{}}function nl(r,e,t,n,i,s){return ee(o=>Ya(r,e,t,n,o.extractedUrl,i,s).pipe(I(({state:a,tree:u})=>Q(S({},o),{targetSnapshot:a,urlAfterRedirects:u}))))}function rl(r,e){return ee(t=>{let{targetSnapshot:n,guards:{canActivateChecks:i}}=t;if(!i.length)return E(t);let s=new Set(i.map(u=>u.route)),o=new Set;for(let u of s)if(!o.has(u))for(let l of Ks(u))o.add(l);let a=0;return J(o).pipe(lt(u=>s.has(u)?il(u,n,r,e):(u.data=Mr(u,u.parent,r).resolve,E(void 0))),$(()=>a++),Ln(1),ee(u=>a===o.size?E(t):ve))})}function Ks(r){let e=r.children.map(t=>Ks(t)).flat();return[r,...e]}function il(r,e,t,n){let i=r.routeConfig,s=r._resolve;return i?.title!==void 0&&!Us(i)&&(s[Tt]=i.title),sl(s,r,e,n).pipe(I(o=>(r._resolvedData=o,r.data=Mr(r,r.parent,t).resolve,null)))}function sl(r,e,t,n){let i=rr(r);if(i.length===0)return E({});let s={};return J(i).pipe(ee(o=>ol(r[o],e,t,n).pipe(we(),$(a=>{s[o]=a}))),Ln(1),Ei(s),Be(o=>qs(o)?ve:at(o)))}function ol(r,e,t,n){let i=Rt(e)??n,s=nt(r,i),o=s.resolve?s.resolve(e,t):De(i,()=>s(e,t));return Re(o)}function tr(r){return le(e=>{let t=r(e);return t?J(t).pipe(I(()=>e)):E(e)})}var Qs=(()=>{let e=class e{buildTitle(n){let i,s=n.root;for(;s!==void 0;)i=this.getResolvedTitleForRoute(s)??i,s=s.children.find(o=>o.outlet===C);return i}getResolvedTitleForRoute(n){return n.data[Tt]}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=O({token:e,factory:()=>b(al),providedIn:"root"});let r=e;return r})(),al=(()=>{let e=class e extends Qs{constructor(n){super(),this.title=n}updateTitle(n){let i=this.buildTitle(n);i!==void 0&&this.title.setTitle(i)}};e.\u0275fac=function(i){return new(i||e)(Ke(is))},e.\u0275prov=O({token:e,factory:e.\u0275fac,providedIn:"root"});let r=e;return r})(),Or=new pe("",{providedIn:"root",factory:()=>({})}),kr=new pe(""),ll=(()=>{let e=class e{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=b(Wn)}loadComponent(n){if(this.componentLoaders.get(n))return this.componentLoaders.get(n);if(n._loadedComponent)return E(n._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(n);let i=Re(n.loadComponent()).pipe(I(Ws),$(o=>{this.onLoadEndListener&&this.onLoadEndListener(n),n._loadedComponent=o}),Lt(()=>{this.componentLoaders.delete(n)})),s=new Pn(i,()=>new ye).pipe(In());return this.componentLoaders.set(n,s),s}loadChildren(n,i){if(this.childrenLoaders.get(i))return this.childrenLoaders.get(i);if(i._loadedRoutes)return E({routes:i._loadedRoutes,injector:i._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(i);let o=ul(i,this.compiler,n,this.onLoadEndListener).pipe(Lt(()=>{this.childrenLoaders.delete(i)})),a=new Pn(o,()=>new ye).pipe(In());return this.childrenLoaders.set(i,a),a}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=O({token:e,factory:e.\u0275fac,providedIn:"root"});let r=e;return r})();function ul(r,e,t,n){return Re(r.loadChildren()).pipe(I(Ws),ee(i=>i instanceof $i||Array.isArray(i)?E(i):J(e.compileModuleAsync(i))),I(i=>{n&&n(r);let s,o,a=!1;return Array.isArray(i)?(o=i,a=!0):(s=i.create(t).injector,o=s.get(kr,[],{optional:!0,self:!0}).flat()),{routes:o.map(Dr),injector:s}}))}function cl(r){return r&&typeof r=="object"&&"default"in r}function Ws(r){return cl(r)?r.default:r}var Lr=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=O({token:e,factory:()=>b(hl),providedIn:"root"});let r=e;return r})(),hl=(()=>{let e=class e{shouldProcessUrl(n){return!0}extract(n){return n}merge(n,i){return n}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=O({token:e,factory:e.\u0275fac,providedIn:"root"});let r=e;return r})(),dl=new pe("");var Hs=(()=>{let e=class e{get hasRequestedNavigation(){return this.navigationId!==0}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new ye,this.transitionAbortSubject=new ye,this.configLoader=b(ll),this.environmentInjector=b(Ft),this.urlSerializer=b(ln),this.rootContexts=b(un),this.location=b(qt),this.inputBindingEnabled=b(Pr,{optional:!0})!==null,this.titleStrategy=b(Qs),this.options=b(Or,{optional:!0})||{},this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlHandlingStrategy=b(Lr),this.createViewTransition=b(dl,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>E(void 0),this.rootComponentType=null;let n=s=>this.events.next(new hr(s)),i=s=>this.events.next(new dr(s));this.configLoader.onLoadEndListener=i,this.configLoader.onLoadStartListener=n}complete(){this.transitions?.complete()}handleNavigationRequest(n){let i=++this.navigationId;this.transitions?.next(Q(S(S({},this.transitions.value),n),{id:i}))}setupNavigations(n,i,s){return this.transitions=new X({id:0,currentUrlTree:i,currentRawUrl:i,extractedUrl:this.urlHandlingStrategy.extract(i),urlAfterRedirects:this.urlHandlingStrategy.extract(i),rawUrl:i,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:pt,restoredState:null,currentSnapshot:s.snapshot,targetSnapshot:null,currentRouterState:s,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(Se(o=>o.id!==0),I(o=>Q(S({},o),{extractedUrl:this.urlHandlingStrategy.extract(o.rawUrl)})),le(o=>{let a=!1,u=!1;return E(o).pipe(le(l=>{if(this.navigationId>o.id)return this.cancelNavigationTransition(o,"",H.SupersededByNewNavigation),ve;this.currentTransition=o,this.currentNavigation={id:l.id,initialUrl:l.rawUrl,extractedUrl:l.extractedUrl,trigger:l.source,extras:l.extras,previousNavigation:this.lastSuccessfulNavigation?Q(S({},this.lastSuccessfulNavigation),{previousNavigation:null}):null};let c=!n.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),h=l.extras.onSameUrlNavigation??n.onSameUrlNavigation;if(!c&&h!=="reload"){let d="";return this.events.next(new _e(l.id,this.urlSerializer.serialize(l.rawUrl),d,Xt.IgnoredSameUrlNavigation)),l.resolve(null),ve}if(this.urlHandlingStrategy.shouldProcessUrl(l.rawUrl))return E(l).pipe(le(d=>{let f=this.transitions?.getValue();return this.events.next(new et(d.id,this.urlSerializer.serialize(d.extractedUrl),d.source,d.restoredState)),f!==this.transitions?.getValue()?ve:Promise.resolve(d)}),nl(this.environmentInjector,this.configLoader,this.rootComponentType,n.config,this.urlSerializer,this.paramsInheritanceStrategy),$(d=>{o.targetSnapshot=d.targetSnapshot,o.urlAfterRedirects=d.urlAfterRedirects,this.currentNavigation=Q(S({},this.currentNavigation),{finalUrl:d.urlAfterRedirects});let f=new Jt(d.id,this.urlSerializer.serialize(d.extractedUrl),this.urlSerializer.serialize(d.urlAfterRedirects),d.targetSnapshot);this.events.next(f)}));if(c&&this.urlHandlingStrategy.shouldProcessUrl(l.currentRawUrl)){let{id:d,extractedUrl:f,source:m,restoredState:y,extras:A}=l,M=new et(d,this.urlSerializer.serialize(f),m,y);this.events.next(M);let N=Ls(this.rootComponentType).snapshot;return this.currentTransition=o=Q(S({},l),{targetSnapshot:N,urlAfterRedirects:f,extras:Q(S({},A),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.finalUrl=f,E(o)}else{let d="";return this.events.next(new _e(l.id,this.urlSerializer.serialize(l.extractedUrl),d,Xt.IgnoredByUrlHandlingStrategy)),l.resolve(null),ve}}),$(l=>{let c=new ar(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(c)}),I(l=>(this.currentTransition=o=Q(S({},l),{guards:wa(l.targetSnapshot,l.currentSnapshot,this.rootContexts)}),o)),Pa(this.environmentInjector,l=>this.events.next(l)),$(l=>{if(o.guardsResult=l.guardsResult,Je(l.guardsResult))throw $s(this.urlSerializer,l.guardsResult);let c=new lr(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot,!!l.guardsResult);this.events.next(c)}),Se(l=>l.guardsResult?!0:(this.cancelNavigationTransition(l,"",H.GuardRejected),!1)),tr(l=>{if(l.guards.canActivateChecks.length)return E(l).pipe($(c=>{let h=new ur(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(h)}),le(c=>{let h=!1;return E(c).pipe(rl(this.paramsInheritanceStrategy,this.environmentInjector),$({next:()=>h=!0,complete:()=>{h||this.cancelNavigationTransition(c,"",H.NoDataFromResolver)}}))}),$(c=>{let h=new cr(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(h)}))}),tr(l=>{let c=h=>{let d=[];h.routeConfig?.loadComponent&&!h.routeConfig._loadedComponent&&d.push(this.configLoader.loadComponent(h.routeConfig).pipe($(f=>{h.component=f}),I(()=>{})));for(let f of h.children)d.push(...c(f));return d};return Dn(c(l.targetSnapshot.root)).pipe(kn(null),Ve(1))}),tr(()=>this.afterPreactivation()),le(()=>{let{currentSnapshot:l,targetSnapshot:c}=o,h=this.createViewTransition?.(this.environmentInjector,l.root,c.root);return h?J(h).pipe(I(()=>o)):E(o)}),I(l=>{let c=da(n.routeReuseStrategy,l.targetSnapshot,l.currentRouterState);return this.currentTransition=o=Q(S({},l),{targetRouterState:c}),this.currentNavigation.targetRouterState=c,o}),$(()=>{this.events.next(new vt)}),Sa(this.rootContexts,n.routeReuseStrategy,l=>this.events.next(l),this.inputBindingEnabled),Ve(1),$({next:l=>{a=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new ne(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects))),this.titleStrategy?.updateTitle(l.targetRouterState.snapshot),l.resolve(!0)},complete:()=>{a=!0}}),Ri(this.transitionAbortSubject.pipe($(l=>{throw l}))),Lt(()=>{!a&&!u&&this.cancelNavigationTransition(o,"",H.SupersededByNewNavigation),this.currentTransition?.id===o.id&&(this.currentNavigation=null,this.currentTransition=null)}),Be(l=>{if(u=!0,zs(l))this.events.next(new Te(o.id,this.urlSerializer.serialize(o.extractedUrl),l.message,l.cancellationCode)),ma(l)?this.events.next(new St(l.url)):o.resolve(!1);else{this.events.next(new yt(o.id,this.urlSerializer.serialize(o.extractedUrl),l,o.targetSnapshot??void 0));try{o.resolve(n.errorHandler(l))}catch(c){this.options.resolveNavigationPromiseOnError?o.resolve(!1):o.reject(c)}}return ve}))}))}cancelNavigationTransition(n,i,s){let o=new Te(n.id,this.urlSerializer.serialize(n.extractedUrl),i,s);this.events.next(o),n.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){return this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))).toString()!==this.currentTransition?.extractedUrl.toString()&&!this.currentTransition?.extras.skipLocationChange}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=O({token:e,factory:e.\u0275fac,providedIn:"root"});let r=e;return r})();function fl(r){return r!==pt}var pl=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=O({token:e,factory:()=>b(ml),providedIn:"root"});let r=e;return r})(),Ar=class{shouldDetach(e){return!1}store(e,t){}shouldAttach(e){return!1}retrieve(e){return null}shouldReuseRoute(e,t){return e.routeConfig===t.routeConfig}},ml=(()=>{let e=class e extends Ar{};e.\u0275fac=(()=>{let n;return function(s){return(n||(n=Un(e)))(s||e)}})(),e.\u0275prov=O({token:e,factory:e.\u0275fac,providedIn:"root"});let r=e;return r})(),Gs=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=O({token:e,factory:()=>b(gl),providedIn:"root"});let r=e;return r})(),gl=(()=>{let e=class e extends Gs{constructor(){super(...arguments),this.location=b(qt),this.urlSerializer=b(ln),this.options=b(Or,{optional:!0})||{},this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.urlHandlingStrategy=b(Lr),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.currentUrlTree=new Ce,this.rawUrlTree=this.currentUrlTree,this.currentPageId=0,this.lastSuccessfulId=-1,this.routerState=Ls(null),this.stateMemento=this.createStateMemento()}getCurrentUrlTree(){return this.currentUrlTree}getRawUrlTree(){return this.rawUrlTree}restoredState(){return this.location.getState()}get browserPageId(){return this.canceledNavigationResolution!=="computed"?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}getRouterState(){return this.routerState}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}registerNonRouterCurrentEntryChangeListener(n){return this.location.subscribe(i=>{i.type==="popstate"&&n(i.url,i.state)})}handleRouterEvent(n,i){if(n instanceof et)this.stateMemento=this.createStateMemento();else if(n instanceof _e)this.rawUrlTree=i.initialUrl;else if(n instanceof Jt){if(this.urlUpdateStrategy==="eager"&&!i.extras.skipLocationChange){let s=this.urlHandlingStrategy.merge(i.finalUrl,i.initialUrl);this.setBrowserUrl(s,i)}}else n instanceof vt?(this.currentUrlTree=i.finalUrl,this.rawUrlTree=this.urlHandlingStrategy.merge(i.finalUrl,i.initialUrl),this.routerState=i.targetRouterState,this.urlUpdateStrategy==="deferred"&&(i.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,i))):n instanceof Te&&(n.code===H.GuardRejected||n.code===H.NoDataFromResolver)?this.restoreHistory(i):n instanceof yt?this.restoreHistory(i,!0):n instanceof ne&&(this.lastSuccessfulId=n.id,this.currentPageId=this.browserPageId)}setBrowserUrl(n,i){let s=this.urlSerializer.serialize(n);if(this.location.isCurrentPathEqualTo(s)||i.extras.replaceUrl){let o=this.browserPageId,a=S(S({},i.extras.state),this.generateNgRouterState(i.id,o));this.location.replaceState(s,"",a)}else{let o=S(S({},i.extras.state),this.generateNgRouterState(i.id,this.browserPageId+1));this.location.go(s,"",o)}}restoreHistory(n,i=!1){if(this.canceledNavigationResolution==="computed"){let s=this.browserPageId,o=this.currentPageId-s;o!==0?this.location.historyGo(o):this.currentUrlTree===n.finalUrl&&o===0&&(this.resetState(n),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(i&&this.resetState(n),this.resetUrlToCurrentUrlTree())}resetState(n){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,n.finalUrl??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(n,i){return this.canceledNavigationResolution==="computed"?{navigationId:n,\u0275routerPageId:i}:{navigationId:n}}};e.\u0275fac=(()=>{let n;return function(s){return(n||(n=Un(e)))(s||e)}})(),e.\u0275prov=O({token:e,factory:e.\u0275fac,providedIn:"root"});let r=e;return r})(),dt=function(r){return r[r.COMPLETE=0]="COMPLETE",r[r.FAILED=1]="FAILED",r[r.REDIRECTING=2]="REDIRECTING",r}(dt||{});function yl(r,e){r.events.pipe(Se(t=>t instanceof ne||t instanceof Te||t instanceof yt||t instanceof _e),I(t=>t instanceof ne||t instanceof _e?dt.COMPLETE:(t instanceof Te?t.code===H.Redirect||t.code===H.SupersededByNewNavigation:!1)?dt.REDIRECTING:dt.FAILED),Se(t=>t!==dt.REDIRECTING),Ve(1)).subscribe(()=>{e()})}function vl(r){throw r}var Sl={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},wl={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},rt=(()=>{let e=class e{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}constructor(){this.disposed=!1,this.isNgZoneEnabled=!1,this.console=b(Yi),this.stateManager=b(Gs),this.options=b(Or,{optional:!0})||{},this.pendingTasks=b(zi),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.navigationTransitions=b(Hs),this.urlSerializer=b(ln),this.location=b(qt),this.urlHandlingStrategy=b(Lr),this._events=new ye,this.errorHandler=this.options.errorHandler||vl,this.navigated=!1,this.routeReuseStrategy=b(pl),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.config=b(kr,{optional:!0})?.flat()??[],this.componentInputBindingEnabled=!!b(Pr,{optional:!0}),this.eventsSubscription=new yi,this.isNgZoneEnabled=b(Ne)instanceof Ne&&Ne.isInAngularZone(),this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe({error:n=>{this.console.warn(n)}}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){let n=this.navigationTransitions.events.subscribe(i=>{try{let s=this.navigationTransitions.currentTransition,o=this.navigationTransitions.currentNavigation;if(s!==null&&o!==null){if(this.stateManager.handleRouterEvent(i,o),i instanceof Te&&i.code!==H.Redirect&&i.code!==H.SupersededByNewNavigation)this.navigated=!0;else if(i instanceof ne)this.navigated=!0;else if(i instanceof St){let a=this.urlHandlingStrategy.merge(i.url,s.currentRawUrl),u={info:s.extras.info,skipLocationChange:s.extras.skipLocationChange,replaceUrl:this.urlUpdateStrategy==="eager"||fl(s.source)};this.scheduleNavigation(a,pt,null,u,{resolve:s.resolve,reject:s.reject,promise:s.promise})}}El(i)&&this._events.next(i)}catch(s){this.navigationTransitions.transitionAbortSubject.next(s)}});this.eventsSubscription.add(n)}resetRootComponentType(n){this.routerState.root.component=n,this.navigationTransitions.rootComponentType=n}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),pt,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((n,i)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(n,"popstate",i)},0)})}navigateToSyncWithBrowser(n,i,s){let o={replaceUrl:!0},a=s?.navigationId?s:null;if(s){let l=S({},s);delete l.navigationId,delete l.\u0275routerPageId,Object.keys(l).length!==0&&(o.state=l)}let u=this.parseUrl(n);this.scheduleNavigation(u,i,a,o)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(n){this.config=n.map(Dr),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription&&(this.nonRouterCurrentEntryChangeSubscription.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(n,i={}){let{relativeTo:s,queryParams:o,fragment:a,queryParamsHandling:u,preserveFragment:l}=i,c=l?this.currentUrlTree.fragment:a,h=null;switch(u){case"merge":h=S(S({},this.currentUrlTree.queryParams),o);break;case"preserve":h=this.currentUrlTree.queryParams;break;default:h=o||null}h!==null&&(h=this.removeEmptyProps(h));let d;try{let f=s?s.snapshot:this.routerState.snapshot.root;d=Ds(f)}catch{(typeof n[0]!="string"||!n[0].startsWith("/"))&&(n=[]),d=this.currentUrlTree.root}return Ns(d,n,h,c??null)}navigateByUrl(n,i={skipLocationChange:!1}){let s=Je(n)?n:this.parseUrl(n),o=this.urlHandlingStrategy.merge(s,this.rawUrlTree);return this.scheduleNavigation(o,pt,null,i)}navigate(n,i={skipLocationChange:!1}){return bl(n),this.navigateByUrl(this.createUrlTree(n,i),i)}serializeUrl(n){return this.urlSerializer.serialize(n)}parseUrl(n){try{return this.urlSerializer.parse(n)}catch{return this.urlSerializer.parse("/")}}isActive(n,i){let s;if(i===!0?s=S({},Sl):i===!1?s=S({},wl):s=i,Je(n))return gs(this.currentUrlTree,n,s);let o=this.parseUrl(n);return gs(this.currentUrlTree,o,s)}removeEmptyProps(n){return Object.entries(n).reduce((i,[s,o])=>(o!=null&&(i[s]=o),i),{})}scheduleNavigation(n,i,s,o,a){if(this.disposed)return Promise.resolve(!1);let u,l,c;a?(u=a.resolve,l=a.reject,c=a.promise):c=new Promise((d,f)=>{u=d,l=f});let h=this.pendingTasks.add();return yl(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(h))}),this.navigationTransitions.handleNavigationRequest({source:i,restoredState:s,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:n,extras:o,resolve:u,reject:l,promise:c,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),c.catch(d=>Promise.reject(d))}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=O({token:e,factory:e.\u0275fac,providedIn:"root"});let r=e;return r})();function bl(r){for(let e=0;e{let e=class e{constructor(n,i,s,o,a,u){this.router=n,this.route=i,this.tabIndexAttribute=s,this.renderer=o,this.el=a,this.locationStrategy=u,this.href=null,this.commands=null,this.onChanges=new ye,this.preserveFragment=!1,this.skipLocationChange=!1,this.replaceUrl=!1;let l=a.nativeElement.tagName?.toLowerCase();this.isAnchorElement=l==="a"||l==="area",this.isAnchorElement?this.subscription=n.events.subscribe(c=>{c instanceof ne&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(n){this.tabIndexAttribute!=null||this.isAnchorElement||this.applyAttributeValue("tabindex",n)}ngOnChanges(n){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}set routerLink(n){n!=null?(this.commands=Array.isArray(n)?n:[n],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(n,i,s,o,a){let u=this.urlTree;if(u===null||this.isAnchorElement&&(n!==0||i||s||o||a||typeof this.target=="string"&&this.target!="_self"))return!0;let l={skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info};return this.router.navigateByUrl(u,l),!this.isAnchorElement}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){let n=this.urlTree;this.href=n!==null&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(n)):null;let i=this.href===null?null:Ni(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",i)}applyAttributeValue(n,i){let s=this.renderer,o=this.el.nativeElement;i!==null?s.setAttribute(o,n,i):s.removeAttribute(o,n)}get urlTree(){return this.commands===null?null:this.router.createUrlTree(this.commands,{relativeTo:this.relativeTo!==void 0?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}};e.\u0275fac=function(i){return new(i||e)(j(rt),j(Le),Pi("tabindex"),j(jn),j(Fn),j(Gn))},e.\u0275dir=Ut({type:e,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(i,s){i&1&&ut("click",function(a){return s.onClick(a.button,a.ctrlKey,a.shiftKey,a.altKey,a.metaKey)}),i&2&&Bi("target",s.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[xt.HasDecoratorInputTransform,"preserveFragment","preserveFragment",zt],skipLocationChange:[xt.HasDecoratorInputTransform,"skipLocationChange","skipLocationChange",zt],replaceUrl:[xt.HasDecoratorInputTransform,"replaceUrl","replaceUrl",zt],routerLink:"routerLink"},standalone:!0,features:[Fi,$t]});let r=e;return r})(),Ys=(()=>{let e=class e{get isActive(){return this._isActive}constructor(n,i,s,o,a){this.router=n,this.element=i,this.renderer=s,this.cdr=o,this.link=a,this.classes=[],this._isActive=!1,this.routerLinkActiveOptions={exact:!1},this.isActiveChange=new Qe,this.routerEventsSubscription=n.events.subscribe(u=>{u instanceof ne&&this.update()})}ngAfterContentInit(){E(this.links.changes,E(null)).pipe(Nn()).subscribe(n=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();let n=[...this.links.toArray(),this.link].filter(i=>!!i).map(i=>i.onChanges);this.linkInputChangesSubscription=J(n).pipe(Nn()).subscribe(i=>{this._isActive!==this.isLinkActive(this.router)(i)&&this.update()})}set routerLinkActive(n){let i=Array.isArray(n)?n:n.split(" ");this.classes=i.filter(s=>!!s)}ngOnChanges(n){this.update()}ngOnDestroy(){this.routerEventsSubscription.unsubscribe(),this.linkInputChangesSubscription?.unsubscribe()}update(){!this.links||!this.router.navigated||queueMicrotask(()=>{let n=this.hasActiveLinks();this.classes.forEach(i=>{n?this.renderer.addClass(this.element.nativeElement,i):this.renderer.removeClass(this.element.nativeElement,i)}),n&&this.ariaCurrentWhenActive!==void 0?this.renderer.setAttribute(this.element.nativeElement,"aria-current",this.ariaCurrentWhenActive.toString()):this.renderer.removeAttribute(this.element.nativeElement,"aria-current"),this._isActive!==n&&(this._isActive=n,this.cdr.markForCheck(),this.isActiveChange.emit(n))})}isLinkActive(n){let i=Cl(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return s=>{let o=s.urlTree;return o?n.isActive(o,i):!1}}hasActiveLinks(){let n=this.isLinkActive(this.router);return this.link&&n(this.link)||this.links.some(n)}};e.\u0275fac=function(i){return new(i||e)(j(rt),j(Fn),j(jn),j(jt),j(an,8))},e.\u0275dir=Ut({type:e,selectors:[["","routerLinkActive",""]],contentQueries:function(i,s,o){if(i&1&&Ki(o,an,5),i&2){let a;Qi(a=Wi())&&(s.links=a)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],standalone:!0,features:[$t]});let r=e;return r})();function Cl(r){return!!r.paths}var Zs=new pe(""),Tl=(()=>{let e=class e{constructor(n,i,s,o,a={}){this.urlSerializer=n,this.transitions=i,this.viewportScroller=s,this.zone=o,this.options=a,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},a.scrollPositionRestoration||="disabled",a.anchorScrolling||="disabled"}init(){this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(n=>{n instanceof et?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=n.navigationTrigger,this.restoredId=n.restoredState?n.restoredState.navigationId:0):n instanceof ne?(this.lastId=n.id,this.scheduleScrollEvent(n,this.urlSerializer.parse(n.urlAfterRedirects).fragment)):n instanceof _e&&n.code===Xt.IgnoredSameUrlNavigation&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(n,this.urlSerializer.parse(n.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(n=>{n instanceof en&&(n.position?this.options.scrollPositionRestoration==="top"?this.viewportScroller.scrollToPosition([0,0]):this.options.scrollPositionRestoration==="enabled"&&this.viewportScroller.scrollToPosition(n.position):n.anchor&&this.options.anchorScrolling==="enabled"?this.viewportScroller.scrollToAnchor(n.anchor):this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(n,i){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new en(n,this.lastSource==="popstate"?this.store[this.restoredId]:null,i))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}};e.\u0275fac=function(i){Oi()},e.\u0275prov=O({token:e,factory:e.\u0275fac});let r=e;return r})();function Xs(r,...e){return Mi([{provide:kr,multi:!0,useValue:r},[],{provide:Le,useFactory:_l,deps:[rt]},{provide:Xi,multi:!0,useFactory:Al},e.map(t=>t.\u0275providers)])}function _l(r){return r.routerState.root}function Rl(r,e){return{\u0275kind:r,\u0275providers:e}}function Js(r={}){return Rl(4,[{provide:Zs,useFactory:()=>{let t=b(es),n=b(Ne),i=b(Hs),s=b(ln);return new Tl(s,i,t,n,r)}}])}function Al(){let r=b(Di);return e=>{let t=r.get(Ji);if(e!==t.components[0])return;let n=r.get(rt),i=r.get(Ml);r.get(Il)===1&&n.initialNavigation(),r.get(Pl,null,xn.Optional)?.setUpPreloading(),r.get(Zs,null,xn.Optional)?.init(),n.resetRootComponentType(t.componentTypes[0]),i.closed||(i.next(),i.complete(),i.unsubscribe())}}var Ml=new pe("",{factory:()=>new ye}),Il=new pe("",{providedIn:"root",factory:()=>1});var Pl=new pe("");function eo(r){return new w(3e3,!1)}function Nl(){return new w(3100,!1)}function Ol(){return new w(3101,!1)}function kl(r){return new w(3001,!1)}function Ll(r){return new w(3003,!1)}function xl(r){return new w(3004,!1)}function Ul(r,e){return new w(3005,!1)}function Fl(){return new w(3006,!1)}function $l(){return new w(3007,!1)}function jl(r,e){return new w(3008,!1)}function zl(r){return new w(3002,!1)}function ql(r,e,t,n,i){return new w(3010,!1)}function Bl(){return new w(3011,!1)}function Vl(){return new w(3012,!1)}function Kl(){return new w(3200,!1)}function Ql(){return new w(3202,!1)}function Wl(){return new w(3013,!1)}function Hl(r){return new w(3014,!1)}function Gl(r){return new w(3015,!1)}function Yl(r){return new w(3016,!1)}function Zl(r,e){return new w(3404,!1)}function Xl(r){return new w(3502,!1)}function Jl(r){return new w(3503,!1)}function eu(){return new w(3300,!1)}function tu(r){return new w(3504,!1)}function nu(r){return new w(3301,!1)}function ru(r,e){return new w(3302,!1)}function iu(r){return new w(3303,!1)}function su(r,e){return new w(3400,!1)}function ou(r){return new w(3401,!1)}function au(r){return new w(3402,!1)}function lu(r,e){return new w(3505,!1)}function Ae(r){switch(r.length){case 0:return new We;case 1:return r[0];default:return new Zn(r)}}function mo(r,e,t=new Map,n=new Map){let i=[],s=[],o=-1,a=null;if(e.forEach(u=>{let l=u.get("offset"),c=l==o,h=c&&a||new Map;u.forEach((d,f)=>{let m=f,y=d;if(f!=="offset")switch(m=r.normalizePropertyName(m,i),y){case Bt:y=t.get(f);break;case ce:y=n.get(f);break;default:y=r.normalizeStyleValue(f,m,y,i);break}h.set(m,y)}),c||s.push(h),a=h,o=l}),i.length)throw Xl(i);return s}function ii(r,e,t,n){switch(e){case"start":r.onStart(()=>n(t&&xr(t,"start",r)));break;case"done":r.onDone(()=>n(t&&xr(t,"done",r)));break;case"destroy":r.onDestroy(()=>n(t&&xr(t,"destroy",r)));break}}function xr(r,e,t){let n=t.totalTime,i=!!t.disabled,s=si(r.element,r.triggerName,r.fromState,r.toState,e||r.phaseName,n??r.totalTime,i),o=r._data;return o!=null&&(s._data=o),s}function si(r,e,t,n,i="",s=0,o){return{element:r,triggerName:e,fromState:t,toState:n,phaseName:i,totalTime:s,disabled:!!o}}function Y(r,e,t){let n=r.get(e);return n||r.set(e,n=t),n}function to(r){let e=r.indexOf(":"),t=r.substring(1,e),n=r.slice(e+1);return[t,n]}var uu=typeof document>"u"?null:document.documentElement;function oi(r){let e=r.parentNode||r.host||null;return e===uu?null:e}function cu(r){return r.substring(1,6)=="ebkit"}var xe=null,no=!1;function hu(r){xe||(xe=du()||{},no=xe.style?"WebkitAppearance"in xe.style:!1);let e=!0;return xe.style&&!cu(r)&&(e=r in xe.style,!e&&no&&(e="Webkit"+r.charAt(0).toUpperCase()+r.slice(1)in xe.style)),e}function du(){return typeof document<"u"?document.body:null}function go(r,e){for(;e;){if(e===r)return!0;e=oi(e)}return!1}function yo(r,e,t){if(t)return Array.from(r.querySelectorAll(e));let n=r.querySelector(e);return n?[n]:[]}var ai=(()=>{let e=class e{validateStyleProperty(n){return hu(n)}matchesElement(n,i){return!1}containsElement(n,i){return go(n,i)}getParentElement(n){return oi(n)}query(n,i,s){return yo(n,i,s)}computeStyle(n,i,s){return s||""}animate(n,i,s,o,a,u=[],l){return new We(s,o)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=O({token:e,factory:e.\u0275fac});let r=e;return r})(),hi=class hi{};hi.NOOP=new ai;var $e=hi,je=class{};var fu=1e3,vo="{{",pu="}}",So="ng-enter",qr="ng-leave",hn="ng-trigger",gn=".ng-trigger",ro="ng-animating",Br=".ng-animating";function me(r){if(typeof r=="number")return r;let e=r.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:Vr(parseFloat(e[1]),e[2])}function Vr(r,e){switch(e){case"s":return r*fu;default:return r}}function yn(r,e,t){return r.hasOwnProperty("duration")?r:mu(r,e,t)}function mu(r,e,t){let n=/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i,i,s=0,o="";if(typeof r=="string"){let a=r.match(n);if(a===null)return e.push(eo(r)),{duration:0,delay:0,easing:""};i=Vr(parseFloat(a[1]),a[2]);let u=a[3];u!=null&&(s=Vr(parseFloat(u),a[4]));let l=a[5];l&&(o=l)}else i=r;if(!t){let a=!1,u=e.length;i<0&&(e.push(Nl()),a=!0),s<0&&(e.push(Ol()),a=!0),a&&e.splice(u,0,eo(r))}return{duration:i,delay:s,easing:o}}function gu(r){return r.length?r[0]instanceof Map?r:r.map(e=>new Map(Object.entries(e))):[]}function fe(r,e,t){e.forEach((n,i)=>{let s=li(i);t&&!t.has(i)&&t.set(i,r.style[s]),r.style[s]=n})}function Fe(r,e){e.forEach((t,n)=>{let i=li(n);r.style[i]=""})}function Mt(r){return Array.isArray(r)?r.length==1?r[0]:os(r):r}function yu(r,e,t){let n=e.params||{},i=wo(r);i.length&&i.forEach(s=>{n.hasOwnProperty(s)||t.push(kl(s))})}var Kr=new RegExp(`${vo}\\s*(.+?)\\s*${pu}`,"g");function wo(r){let e=[];if(typeof r=="string"){let t;for(;t=Kr.exec(r);)e.push(t[1]);Kr.lastIndex=0}return e}function Pt(r,e,t){let n=`${r}`,i=n.replace(Kr,(s,o)=>{let a=e[o];return a==null&&(t.push(Ll(o)),a=""),a.toString()});return i==n?r:i}var vu=/-+([a-z0-9])/g;function li(r){return r.replace(vu,(...e)=>e[1].toUpperCase())}function Su(r,e){return r===0||e===0}function wu(r,e,t){if(t.size&&e.length){let n=e[0],i=[];if(t.forEach((s,o)=>{n.has(o)||i.push(o),n.set(o,s)}),i.length)for(let s=1;so.set(a,ui(r,a)))}}return e}function G(r,e,t){switch(e.type){case T.Trigger:return r.visitTrigger(e,t);case T.State:return r.visitState(e,t);case T.Transition:return r.visitTransition(e,t);case T.Sequence:return r.visitSequence(e,t);case T.Group:return r.visitGroup(e,t);case T.Animate:return r.visitAnimate(e,t);case T.Keyframes:return r.visitKeyframes(e,t);case T.Style:return r.visitStyle(e,t);case T.Reference:return r.visitReference(e,t);case T.AnimateChild:return r.visitAnimateChild(e,t);case T.AnimateRef:return r.visitAnimateRef(e,t);case T.Query:return r.visitQuery(e,t);case T.Stagger:return r.visitStagger(e,t);default:throw xl(e.type)}}function ui(r,e){return window.getComputedStyle(r)[e]}var bu=new Set(["width","height","minWidth","minHeight","maxWidth","maxHeight","left","top","bottom","right","fontSize","outlineWidth","outlineOffset","paddingTop","paddingLeft","paddingBottom","paddingRight","marginTop","marginLeft","marginBottom","marginRight","borderRadius","borderWidth","borderTopWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","textIndent","perspective"]),vn=class extends je{normalizePropertyName(e,t){return li(e)}normalizeStyleValue(e,t,n,i){let s="",o=n.toString().trim();if(bu.has(t)&&n!==0&&n!=="0")if(typeof n=="number")s="px";else{let a=n.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&a[1].length==0&&i.push(Ul(e,n))}return o+s}};var Sn="*";function Eu(r,e){let t=[];return typeof r=="string"?r.split(/\s*,\s*/).forEach(n=>Cu(n,t,e)):t.push(r),t}function Cu(r,e,t){if(r[0]==":"){let u=Tu(r,t);if(typeof u=="function"){e.push(u);return}r=u}let n=r.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(n==null||n.length<4)return t.push(Gl(r)),e;let i=n[1],s=n[2],o=n[3];e.push(io(i,o));let a=i==Sn&&o==Sn;s[0]=="<"&&!a&&e.push(io(o,i))}function Tu(r,e){switch(r){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(t,n)=>parseFloat(n)>parseFloat(t);case":decrement":return(t,n)=>parseFloat(n) *"}}var dn=new Set(["true","1"]),fn=new Set(["false","0"]);function io(r,e){let t=dn.has(r)||fn.has(r),n=dn.has(e)||fn.has(e);return(i,s)=>{let o=r==Sn||r==i,a=e==Sn||e==s;return!o&&t&&typeof i=="boolean"&&(o=i?dn.has(r):fn.has(r)),!a&&n&&typeof s=="boolean"&&(a=s?dn.has(e):fn.has(e)),o&&a}}var bo=":self",_u=new RegExp(`s*${bo}s*,?`,"g");function Eo(r,e,t,n){return new Qr(r).build(e,t,n)}var so="",Qr=class{constructor(e){this._driver=e}build(e,t,n){let i=new Wr(t);return this._resetContextStyleTimingState(i),G(this,Mt(e),i)}_resetContextStyleTimingState(e){e.currentQuerySelector=so,e.collectedStyles=new Map,e.collectedStyles.set(so,new Map),e.currentTime=0}visitTrigger(e,t){let n=t.queryCount=0,i=t.depCount=0,s=[],o=[];return e.name.charAt(0)=="@"&&t.errors.push(Fl()),e.definitions.forEach(a=>{if(this._resetContextStyleTimingState(t),a.type==T.State){let u=a,l=u.name;l.toString().split(/\s*,\s*/).forEach(c=>{u.name=c,s.push(this.visitState(u,t))}),u.name=l}else if(a.type==T.Transition){let u=this.visitTransition(a,t);n+=u.queryCount,i+=u.depCount,o.push(u)}else t.errors.push($l())}),{type:T.Trigger,name:e.name,states:s,transitions:o,queryCount:n,depCount:i,options:null}}visitState(e,t){let n=this.visitStyle(e.styles,t),i=e.options&&e.options.params||null;if(n.containsDynamicStyles){let s=new Set,o=i||{};n.styles.forEach(a=>{a instanceof Map&&a.forEach(u=>{wo(u).forEach(l=>{o.hasOwnProperty(l)||s.add(l)})})}),s.size&&t.errors.push(jl(e.name,[...s.values()]))}return{type:T.State,name:e.name,style:n,options:i?{params:i}:null}}visitTransition(e,t){t.queryCount=0,t.depCount=0;let n=G(this,Mt(e.animation),t),i=Eu(e.expr,t.errors);return{type:T.Transition,matchers:i,animation:n,queryCount:t.queryCount,depCount:t.depCount,options:Ue(e.options)}}visitSequence(e,t){return{type:T.Sequence,steps:e.steps.map(n=>G(this,n,t)),options:Ue(e.options)}}visitGroup(e,t){let n=t.currentTime,i=0,s=e.steps.map(o=>{t.currentTime=n;let a=G(this,o,t);return i=Math.max(i,t.currentTime),a});return t.currentTime=i,{type:T.Group,steps:s,options:Ue(e.options)}}visitAnimate(e,t){let n=Iu(e.timings,t.errors);t.currentAnimateTimings=n;let i,s=e.styles?e.styles:Yn({});if(s.type==T.Keyframes)i=this.visitKeyframes(s,t);else{let o=e.styles,a=!1;if(!o){a=!0;let l={};n.easing&&(l.easing=n.easing),o=Yn(l)}t.currentTime+=n.duration+n.delay;let u=this.visitStyle(o,t);u.isEmptyStep=a,i=u}return t.currentAnimateTimings=null,{type:T.Animate,timings:n,style:i,options:null}}visitStyle(e,t){let n=this._makeStyleAst(e,t);return this._validateStyleAst(n,t),n}_makeStyleAst(e,t){let n=[],i=Array.isArray(e.styles)?e.styles:[e.styles];for(let a of i)typeof a=="string"?a===ce?n.push(a):t.errors.push(zl(a)):n.push(new Map(Object.entries(a)));let s=!1,o=null;return n.forEach(a=>{if(a instanceof Map&&(a.has("easing")&&(o=a.get("easing"),a.delete("easing")),!s)){for(let u of a.values())if(u.toString().indexOf(vo)>=0){s=!0;break}}}),{type:T.Style,styles:n,easing:o,offset:e.offset,containsDynamicStyles:s,options:null}}_validateStyleAst(e,t){let n=t.currentAnimateTimings,i=t.currentTime,s=t.currentTime;n&&s>0&&(s-=n.duration+n.delay),e.styles.forEach(o=>{typeof o!="string"&&o.forEach((a,u)=>{let l=t.collectedStyles.get(t.currentQuerySelector),c=l.get(u),h=!0;c&&(s!=i&&s>=c.startTime&&i<=c.endTime&&(t.errors.push(ql(u,c.startTime,c.endTime,s,i)),h=!1),s=c.startTime),h&&l.set(u,{startTime:s,endTime:i}),t.options&&yu(a,t.options,t.errors)})})}visitKeyframes(e,t){let n={type:T.Keyframes,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push(Bl()),n;let i=1,s=0,o=[],a=!1,u=!1,l=0,c=e.steps.map(M=>{let N=this._makeStyleAst(M,t),z=N.offset!=null?N.offset:Mu(N.styles),U=0;return z!=null&&(s++,U=N.offset=z),u=u||U<0||U>1,a=a||U0&&s{let z=d>0?N==f?1:d*N:o[N],U=z*A;t.currentTime=m+y.delay+U,y.duration=U,this._validateStyleAst(M,t),M.offset=z,n.styles.push(M)}),n}visitReference(e,t){return{type:T.Reference,animation:G(this,Mt(e.animation),t),options:Ue(e.options)}}visitAnimateChild(e,t){return t.depCount++,{type:T.AnimateChild,options:Ue(e.options)}}visitAnimateRef(e,t){return{type:T.AnimateRef,animation:this.visitReference(e.animation,t),options:Ue(e.options)}}visitQuery(e,t){let n=t.currentQuerySelector,i=e.options||{};t.queryCount++,t.currentQuery=e;let[s,o]=Ru(e.selector);t.currentQuerySelector=n.length?n+" "+s:s,Y(t.collectedStyles,t.currentQuerySelector,new Map);let a=G(this,Mt(e.animation),t);return t.currentQuery=null,t.currentQuerySelector=n,{type:T.Query,selector:s,limit:i.limit||0,optional:!!i.optional,includeSelf:o,animation:a,originalSelector:e.selector,options:Ue(e.options)}}visitStagger(e,t){t.currentQuery||t.errors.push(Wl());let n=e.timings==="full"?{duration:0,delay:0,easing:"full"}:yn(e.timings,t.errors,!0);return{type:T.Stagger,animation:G(this,Mt(e.animation),t),timings:n,options:null}}};function Ru(r){let e=!!r.split(/\s*,\s*/).find(t=>t==bo);return e&&(r=r.replace(_u,"")),r=r.replace(/@\*/g,gn).replace(/@\w+/g,t=>gn+"-"+t.slice(1)).replace(/:animating/g,Br),[r,e]}function Au(r){return r?S({},r):null}var Wr=class{constructor(e){this.errors=e,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}};function Mu(r){if(typeof r=="string")return null;let e=null;if(Array.isArray(r))r.forEach(t=>{if(t instanceof Map&&t.has("offset")){let n=t;e=parseFloat(n.get("offset")),n.delete("offset")}});else if(r instanceof Map&&r.has("offset")){let t=r;e=parseFloat(t.get("offset")),t.delete("offset")}return e}function Iu(r,e){if(r.hasOwnProperty("duration"))return r;if(typeof r=="number"){let s=yn(r,e).duration;return Ur(s,0,"")}let t=r;if(t.split(/\s+/).some(s=>s.charAt(0)=="{"&&s.charAt(1)=="{")){let s=Ur(0,0,"");return s.dynamic=!0,s.strValue=t,s}let i=yn(t,e);return Ur(i.duration,i.delay,i.easing)}function Ue(r){return r?(r=S({},r),r.params&&(r.params=Au(r.params))):r={},r}function Ur(r,e,t){return{duration:r,delay:e,easing:t}}function ci(r,e,t,n,i,s,o=null,a=!1){return{type:1,element:r,keyframes:e,preStyleProps:t,postStyleProps:n,duration:i,delay:s,totalTime:i+s,easing:o,subTimeline:a}}var Dt=class{constructor(){this._map=new Map}get(e){return this._map.get(e)||[]}append(e,t){let n=this._map.get(e);n||this._map.set(e,n=[]),n.push(...t)}has(e){return this._map.has(e)}clear(){this._map.clear()}},Pu=1,Du=":enter",Nu=new RegExp(Du,"g"),Ou=":leave",ku=new RegExp(Ou,"g");function Co(r,e,t,n,i,s=new Map,o=new Map,a,u,l=[]){return new Hr().buildKeyframes(r,e,t,n,i,s,o,a,u,l)}var Hr=class{buildKeyframes(e,t,n,i,s,o,a,u,l,c=[]){l=l||new Dt;let h=new Gr(e,t,l,i,s,c,[]);h.options=u;let d=u.delay?me(u.delay):0;h.currentTimeline.delayNextStep(d),h.currentTimeline.setStyles([o],null,h.errors,u),G(this,n,h);let f=h.timelines.filter(m=>m.containsAnimation());if(f.length&&a.size){let m;for(let y=f.length-1;y>=0;y--){let A=f[y];if(A.element===t){m=A;break}}m&&!m.allowOnlyTimelineStyles()&&m.setStyles([a],null,h.errors,u)}return f.length?f.map(m=>m.buildKeyframes()):[ci(t,[],[],[],0,d,"",!1)]}visitTrigger(e,t){}visitState(e,t){}visitTransition(e,t){}visitAnimateChild(e,t){let n=t.subInstructions.get(t.element);if(n){let i=t.createSubContext(e.options),s=t.currentTimeline.currentTime,o=this._visitSubInstructions(n,i,i.options);s!=o&&t.transformIntoNewTimeline(o)}t.previousNode=e}visitAnimateRef(e,t){let n=t.createSubContext(e.options);n.transformIntoNewTimeline(),this._applyAnimationRefDelays([e.options,e.animation.options],t,n),this.visitReference(e.animation,n),t.transformIntoNewTimeline(n.currentTimeline.currentTime),t.previousNode=e}_applyAnimationRefDelays(e,t,n){for(let i of e){let s=i?.delay;if(s){let o=typeof s=="number"?s:me(Pt(s,i?.params??{},t.errors));n.delayNextStep(o)}}}_visitSubInstructions(e,t,n){let s=t.currentTimeline.currentTime,o=n.duration!=null?me(n.duration):null,a=n.delay!=null?me(n.delay):null;return o!==0&&e.forEach(u=>{let l=t.appendInstructionToTimeline(u,o,a);s=Math.max(s,l.duration+l.delay)}),s}visitReference(e,t){t.updateOptions(e.options,!0),G(this,e.animation,t),t.previousNode=e}visitSequence(e,t){let n=t.subContextCount,i=t,s=e.options;if(s&&(s.params||s.delay)&&(i=t.createSubContext(s),i.transformIntoNewTimeline(),s.delay!=null)){i.previousNode.type==T.Style&&(i.currentTimeline.snapshotCurrentStyles(),i.previousNode=wn);let o=me(s.delay);i.delayNextStep(o)}e.steps.length&&(e.steps.forEach(o=>G(this,o,i)),i.currentTimeline.applyStylesToKeyframe(),i.subContextCount>n&&i.transformIntoNewTimeline()),t.previousNode=e}visitGroup(e,t){let n=[],i=t.currentTimeline.currentTime,s=e.options&&e.options.delay?me(e.options.delay):0;e.steps.forEach(o=>{let a=t.createSubContext(e.options);s&&a.delayNextStep(s),G(this,o,a),i=Math.max(i,a.currentTimeline.currentTime),n.push(a.currentTimeline)}),n.forEach(o=>t.currentTimeline.mergeTimelineCollectedStyles(o)),t.transformIntoNewTimeline(i),t.previousNode=e}_visitTiming(e,t){if(e.dynamic){let n=e.strValue,i=t.params?Pt(n,t.params,t.errors):n;return yn(i,t.errors)}else return{duration:e.duration,delay:e.delay,easing:e.easing}}visitAnimate(e,t){let n=t.currentAnimateTimings=this._visitTiming(e.timings,t),i=t.currentTimeline;n.delay&&(t.incrementTime(n.delay),i.snapshotCurrentStyles());let s=e.style;s.type==T.Keyframes?this.visitKeyframes(s,t):(t.incrementTime(n.duration),this.visitStyle(s,t),i.applyStylesToKeyframe()),t.currentAnimateTimings=null,t.previousNode=e}visitStyle(e,t){let n=t.currentTimeline,i=t.currentAnimateTimings;!i&&n.hasCurrentStyleProperties()&&n.forwardFrame();let s=i&&i.easing||e.easing;e.isEmptyStep?n.applyEmptyStep(s):n.setStyles(e.styles,s,t.errors,t.options),t.previousNode=e}visitKeyframes(e,t){let n=t.currentAnimateTimings,i=t.currentTimeline.duration,s=n.duration,a=t.createSubContext().currentTimeline;a.easing=n.easing,e.styles.forEach(u=>{let l=u.offset||0;a.forwardTime(l*s),a.setStyles(u.styles,u.easing,t.errors,t.options),a.applyStylesToKeyframe()}),t.currentTimeline.mergeTimelineCollectedStyles(a),t.transformIntoNewTimeline(i+s),t.previousNode=e}visitQuery(e,t){let n=t.currentTimeline.currentTime,i=e.options||{},s=i.delay?me(i.delay):0;s&&(t.previousNode.type===T.Style||n==0&&t.currentTimeline.hasCurrentStyleProperties())&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=wn);let o=n,a=t.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!i.optional,t.errors);t.currentQueryTotal=a.length;let u=null;a.forEach((l,c)=>{t.currentQueryIndex=c;let h=t.createSubContext(e.options,l);s&&h.delayNextStep(s),l===t.element&&(u=h.currentTimeline),G(this,e.animation,h),h.currentTimeline.applyStylesToKeyframe();let d=h.currentTimeline.currentTime;o=Math.max(o,d)}),t.currentQueryIndex=0,t.currentQueryTotal=0,t.transformIntoNewTimeline(o),u&&(t.currentTimeline.mergeTimelineCollectedStyles(u),t.currentTimeline.snapshotCurrentStyles()),t.previousNode=e}visitStagger(e,t){let n=t.parentContext,i=t.currentTimeline,s=e.timings,o=Math.abs(s.duration),a=o*(t.currentQueryTotal-1),u=o*t.currentQueryIndex;switch(s.duration<0?"reverse":s.easing){case"reverse":u=a-u;break;case"full":u=n.currentStaggerTime;break}let c=t.currentTimeline;u&&c.delayNextStep(u);let h=c.currentTime;G(this,e.animation,t),t.previousNode=e,n.currentStaggerTime=i.currentTime-h+(i.startTime-n.currentTimeline.startTime)}},wn={},Gr=class r{constructor(e,t,n,i,s,o,a,u){this._driver=e,this.element=t,this.subInstructions=n,this._enterClassName=i,this._leaveClassName=s,this.errors=o,this.timelines=a,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=wn,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=u||new bn(this._driver,t,0),a.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(e,t){if(!e)return;let n=e,i=this.options;n.duration!=null&&(i.duration=me(n.duration)),n.delay!=null&&(i.delay=me(n.delay));let s=n.params;if(s){let o=i.params;o||(o=this.options.params={}),Object.keys(s).forEach(a=>{(!t||!o.hasOwnProperty(a))&&(o[a]=Pt(s[a],o,this.errors))})}}_copyOptions(){let e={};if(this.options){let t=this.options.params;if(t){let n=e.params={};Object.keys(t).forEach(i=>{n[i]=t[i]})}}return e}createSubContext(e=null,t,n){let i=t||this.element,s=new r(this._driver,i,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(i,n||0));return s.previousNode=this.previousNode,s.currentAnimateTimings=this.currentAnimateTimings,s.options=this._copyOptions(),s.updateOptions(e),s.currentQueryIndex=this.currentQueryIndex,s.currentQueryTotal=this.currentQueryTotal,s.parentContext=this,this.subContextCount++,s}transformIntoNewTimeline(e){return this.previousNode=wn,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(e,t,n){let i={duration:t??e.duration,delay:this.currentTimeline.currentTime+(n??0)+e.delay,easing:""},s=new Yr(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,i,e.stretchStartingKeyframe);return this.timelines.push(s),i}incrementTime(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)}delayNextStep(e){e>0&&this.currentTimeline.delayNextStep(e)}invokeQuery(e,t,n,i,s,o){let a=[];if(i&&a.push(this.element),e.length>0){e=e.replace(Nu,"."+this._enterClassName),e=e.replace(ku,"."+this._leaveClassName);let u=n!=1,l=this._driver.query(this.element,e,u);n!==0&&(l=n<0?l.slice(l.length+n,l.length):l.slice(0,n)),a.push(...l)}return!s&&a.length==0&&o.push(Hl(t)),a}},bn=class r{constructor(e,t,n,i){this._driver=e,this.element=t,this.startTime=n,this._elementTimelineStylesLookup=i,this.duration=0,this.easing=null,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(t),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(t,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(e){let t=this._keyframes.size===1&&this._pendingStyles.size;this.duration||t?(this.forwardTime(this.currentTime+e),t&&this.snapshotCurrentStyles()):this.startTime+=e}fork(e,t){return this.applyStylesToKeyframe(),new r(this._driver,e,t||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=Pu,this._loadKeyframe()}forwardTime(e){this.applyStylesToKeyframe(),this.duration=e,this._loadKeyframe()}_updateStyle(e,t){this._localTimelineStyles.set(e,t),this._globalTimelineStyles.set(e,t),this._styleSummary.set(e,{time:this.currentTime,value:t})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(e){e&&this._previousKeyframe.set("easing",e);for(let[t,n]of this._globalTimelineStyles)this._backFill.set(t,n||ce),this._currentKeyframe.set(t,ce);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(e,t,n,i){t&&this._previousKeyframe.set("easing",t);let s=i&&i.params||{},o=Lu(e,this._globalTimelineStyles);for(let[a,u]of o){let l=Pt(u,s,n);this._pendingStyles.set(a,l),this._localTimelineStyles.has(a)||this._backFill.set(a,this._globalTimelineStyles.get(a)??ce),this._updateStyle(a,l)}}applyStylesToKeyframe(){this._pendingStyles.size!=0&&(this._pendingStyles.forEach((e,t)=>{this._currentKeyframe.set(t,e)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((e,t)=>{this._currentKeyframe.has(t)||this._currentKeyframe.set(t,e)}))}snapshotCurrentStyles(){for(let[e,t]of this._localTimelineStyles)this._pendingStyles.set(e,t),this._updateStyle(e,t)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){let e=[];for(let t in this._currentKeyframe)e.push(t);return e}mergeTimelineCollectedStyles(e){e._styleSummary.forEach((t,n)=>{let i=this._styleSummary.get(n);(!i||t.time>i.time)&&this._updateStyle(n,t.value)})}buildKeyframes(){this.applyStylesToKeyframe();let e=new Set,t=new Set,n=this._keyframes.size===1&&this.duration===0,i=[];this._keyframes.forEach((a,u)=>{let l=new Map([...this._backFill,...a]);l.forEach((c,h)=>{c===Bt?e.add(h):c===ce&&t.add(h)}),n||l.set("offset",u/this.duration),i.push(l)});let s=[...e.values()],o=[...t.values()];if(n){let a=i[0],u=new Map(a);a.set("offset",0),u.set("offset",1),i=[a,u]}return ci(this.element,i,s,o,this.duration,this.startTime,this.easing,!1)}},Yr=class extends bn{constructor(e,t,n,i,s,o,a=!1){super(e,t,o.delay),this.keyframes=n,this.preStyleProps=i,this.postStyleProps=s,this._stretchStartingKeyframe=a,this.timings={duration:o.duration,delay:o.delay,easing:o.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let e=this.keyframes,{delay:t,duration:n,easing:i}=this.timings;if(this._stretchStartingKeyframe&&t){let s=[],o=n+t,a=t/o,u=new Map(e[0]);u.set("offset",0),s.push(u);let l=new Map(e[0]);l.set("offset",oo(a)),s.push(l);let c=e.length-1;for(let h=1;h<=c;h++){let d=new Map(e[h]),f=d.get("offset"),m=t+f*n;d.set("offset",oo(m/o)),s.push(d)}n=o,t=0,i="",e=s}return ci(this.element,e,this.preStyleProps,this.postStyleProps,n,t,i,!0)}};function oo(r,e=3){let t=Math.pow(10,e-1);return Math.round(r*t)/t}function Lu(r,e){let t=new Map,n;return r.forEach(i=>{if(i==="*"){n??=e.keys();for(let s of n)t.set(s,ce)}else for(let[s,o]of i)t.set(s,o)}),t}function ao(r,e,t,n,i,s,o,a,u,l,c,h,d){return{type:0,element:r,triggerName:e,isRemovalTransition:i,fromState:t,fromStyles:s,toState:n,toStyles:o,timelines:a,queriedElements:u,preStyleProps:l,postStyleProps:c,totalTime:h,errors:d}}var Fr={},En=class{constructor(e,t,n){this._triggerName=e,this.ast=t,this._stateStyles=n}match(e,t,n,i){return xu(this.ast.matchers,e,t,n,i)}buildStyles(e,t,n){let i=this._stateStyles.get("*");return e!==void 0&&(i=this._stateStyles.get(e?.toString())||i),i?i.buildStyles(t,n):new Map}build(e,t,n,i,s,o,a,u,l,c){let h=[],d=this.ast.options&&this.ast.options.params||Fr,f=a&&a.params||Fr,m=this.buildStyles(n,f,h),y=u&&u.params||Fr,A=this.buildStyles(i,y,h),M=new Set,N=new Map,z=new Map,U=i==="void",ze={params:To(y,d),delay:this.ast.options?.delay},oe=c?[]:Co(e,t,this.ast.animation,s,o,m,A,ze,l,h),q=0;return oe.forEach(V=>{q=Math.max(V.duration+V.delay,q)}),h.length?ao(t,this._triggerName,n,i,U,m,A,[],[],N,z,q,h):(oe.forEach(V=>{let Me=V.element,qe=Y(N,Me,new Set);V.preStyleProps.forEach(Ie=>qe.add(Ie));let di=Y(z,Me,new Set);V.postStyleProps.forEach(Ie=>di.add(Ie)),Me!==t&&M.add(Me)}),ao(t,this._triggerName,n,i,U,m,A,oe,[...M.values()],N,z,q))}};function xu(r,e,t,n,i){return r.some(s=>s(e,t,n,i))}function To(r,e){let t=S({},e);return Object.entries(r).forEach(([n,i])=>{i!=null&&(t[n]=i)}),t}var Zr=class{constructor(e,t,n){this.styles=e,this.defaultParams=t,this.normalizer=n}buildStyles(e,t){let n=new Map,i=To(e,this.defaultParams);return this.styles.styles.forEach(s=>{typeof s!="string"&&s.forEach((o,a)=>{o&&(o=Pt(o,i,t));let u=this.normalizer.normalizePropertyName(a,t);o=this.normalizer.normalizeStyleValue(a,u,o,t),n.set(a,o)})}),n}};function Uu(r,e,t){return new Xr(r,e,t)}var Xr=class{constructor(e,t,n){this.name=e,this.ast=t,this._normalizer=n,this.transitionFactories=[],this.states=new Map,t.states.forEach(i=>{let s=i.options&&i.options.params||{};this.states.set(i.name,new Zr(i.style,s,n))}),lo(this.states,"true","1"),lo(this.states,"false","0"),t.transitions.forEach(i=>{this.transitionFactories.push(new En(e,i,this.states))}),this.fallbackTransition=Fu(e,this.states,this._normalizer)}get containsQueries(){return this.ast.queryCount>0}matchTransition(e,t,n,i){return this.transitionFactories.find(o=>o.match(e,t,n,i))||null}matchStyles(e,t,n){return this.fallbackTransition.buildStyles(e,t,n)}};function Fu(r,e,t){let n=[(o,a)=>!0],i={type:T.Sequence,steps:[],options:null},s={type:T.Transition,animation:i,matchers:n,options:null,queryCount:0,depCount:0};return new En(r,s,e)}function lo(r,e,t){r.has(e)?r.has(t)||r.set(t,r.get(e)):r.has(t)&&r.set(e,r.get(t))}var $u=new Dt,Jr=class{constructor(e,t,n){this.bodyNode=e,this._driver=t,this._normalizer=n,this._animations=new Map,this._playersById=new Map,this.players=[]}register(e,t){let n=[],i=[],s=Eo(this._driver,t,n,i);if(n.length)throw Jl(n);i.length&&void 0,this._animations.set(e,s)}_buildPlayer(e,t,n){let i=e.element,s=mo(this._normalizer,e.keyframes,t,n);return this._driver.animate(i,s,e.duration,e.delay,e.easing,[],!0)}create(e,t,n={}){let i=[],s=this._animations.get(e),o,a=new Map;if(s?(o=Co(this._driver,t,s,So,qr,new Map,new Map,n,$u,i),o.forEach(c=>{let h=Y(a,c.element,new Map);c.postStyleProps.forEach(d=>h.set(d,null))})):(i.push(eu()),o=[]),i.length)throw tu(i);a.forEach((c,h)=>{c.forEach((d,f)=>{c.set(f,this._driver.computeStyle(h,f,ce))})});let u=o.map(c=>{let h=a.get(c.element);return this._buildPlayer(c,new Map,h)}),l=Ae(u);return this._playersById.set(e,l),l.onDestroy(()=>this.destroy(e)),this.players.push(l),l}destroy(e){let t=this._getPlayer(e);t.destroy(),this._playersById.delete(e);let n=this.players.indexOf(t);n>=0&&this.players.splice(n,1)}_getPlayer(e){let t=this._playersById.get(e);if(!t)throw nu(e);return t}listen(e,t,n,i){let s=si(t,"","","");return ii(this._getPlayer(e),n,s,i),()=>{}}command(e,t,n,i){if(n=="register"){this.register(e,i[0]);return}if(n=="create"){let o=i[0]||{};this.create(e,t,o);return}let s=this._getPlayer(e);switch(n){case"play":s.play();break;case"pause":s.pause();break;case"reset":s.reset();break;case"restart":s.restart();break;case"finish":s.finish();break;case"init":s.init();break;case"setPosition":s.setPosition(parseFloat(i[0]));break;case"destroy":this.destroy(e);break}}},uo="ng-animate-queued",ju=".ng-animate-queued",$r="ng-animate-disabled",zu=".ng-animate-disabled",qu="ng-star-inserted",Bu=".ng-star-inserted",Vu=[],_o={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Ku={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},se="__ng_removed",Nt=class{get params(){return this.options.params}constructor(e,t=""){this.namespaceId=t;let n=e&&e.hasOwnProperty("value"),i=n?e.value:e;if(this.value=Wu(i),n){let s=e,{value:o}=s,a=gi(s,["value"]);this.options=a}else this.options={};this.options.params||(this.options.params={})}absorbOptions(e){let t=e.params;if(t){let n=this.options.params;Object.keys(t).forEach(i=>{n[i]==null&&(n[i]=t[i])})}}},It="void",jr=new Nt(It),ei=class{constructor(e,t,n){this.id=e,this.hostElement=t,this._engine=n,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+e,re(t,this._hostClassName)}listen(e,t,n,i){if(!this._triggers.has(t))throw ru(n,t);if(n==null||n.length==0)throw iu(t);if(!Hu(n))throw su(n,t);let s=Y(this._elementListeners,e,[]),o={name:t,phase:n,callback:i};s.push(o);let a=Y(this._engine.statesByElement,e,new Map);return a.has(t)||(re(e,hn),re(e,hn+"-"+t),a.set(t,jr)),()=>{this._engine.afterFlush(()=>{let u=s.indexOf(o);u>=0&&s.splice(u,1),this._triggers.has(t)||a.delete(t)})}}register(e,t){return this._triggers.has(e)?!1:(this._triggers.set(e,t),!0)}_getTrigger(e){let t=this._triggers.get(e);if(!t)throw ou(e);return t}trigger(e,t,n,i=!0){let s=this._getTrigger(t),o=new Ot(this.id,t,e),a=this._engine.statesByElement.get(e);a||(re(e,hn),re(e,hn+"-"+t),this._engine.statesByElement.set(e,a=new Map));let u=a.get(t),l=new Nt(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&u&&l.absorbOptions(u.options),a.set(t,l),u||(u=jr),!(l.value===It)&&u.value===l.value){if(!Zu(u.params,l.params)){let y=[],A=s.matchStyles(u.value,u.params,y),M=s.matchStyles(l.value,l.params,y);y.length?this._engine.reportError(y):this._engine.afterFlush(()=>{Fe(e,A),fe(e,M)})}return}let d=Y(this._engine.playersByElement,e,[]);d.forEach(y=>{y.namespaceId==this.id&&y.triggerName==t&&y.queued&&y.destroy()});let f=s.matchTransition(u.value,l.value,e,l.params),m=!1;if(!f){if(!i)return;f=s.fallbackTransition,m=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:t,transition:f,fromState:u,toState:l,player:o,isFallbackTransition:m}),m||(re(e,uo),o.onStart(()=>{it(e,uo)})),o.onDone(()=>{let y=this.players.indexOf(o);y>=0&&this.players.splice(y,1);let A=this._engine.playersByElement.get(e);if(A){let M=A.indexOf(o);M>=0&&A.splice(M,1)}}),this.players.push(o),d.push(o),o}deregister(e){this._triggers.delete(e),this._engine.statesByElement.forEach(t=>t.delete(e)),this._elementListeners.forEach((t,n)=>{this._elementListeners.set(n,t.filter(i=>i.name!=e))})}clearElementCache(e){this._engine.statesByElement.delete(e),this._elementListeners.delete(e);let t=this._engine.playersByElement.get(e);t&&(t.forEach(n=>n.destroy()),this._engine.playersByElement.delete(e))}_signalRemovalForInnerTriggers(e,t){let n=this._engine.driver.query(e,gn,!0);n.forEach(i=>{if(i[se])return;let s=this._engine.fetchNamespacesByElement(i);s.size?s.forEach(o=>o.triggerLeaveAnimation(i,t,!1,!0)):this.clearElementCache(i)}),this._engine.afterFlushAnimationsDone(()=>n.forEach(i=>this.clearElementCache(i)))}triggerLeaveAnimation(e,t,n,i){let s=this._engine.statesByElement.get(e),o=new Map;if(s){let a=[];if(s.forEach((u,l)=>{if(o.set(l,u.value),this._triggers.has(l)){let c=this.trigger(e,l,It,i);c&&a.push(c)}}),a.length)return this._engine.markElementAsRemoved(this.id,e,!0,t,o),n&&Ae(a).onDone(()=>this._engine.processLeaveNode(e)),!0}return!1}prepareLeaveAnimationListeners(e){let t=this._elementListeners.get(e),n=this._engine.statesByElement.get(e);if(t&&n){let i=new Set;t.forEach(s=>{let o=s.name;if(i.has(o))return;i.add(o);let u=this._triggers.get(o).fallbackTransition,l=n.get(o)||jr,c=new Nt(It),h=new Ot(this.id,o,e);this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:o,transition:u,fromState:l,toState:c,player:h,isFallbackTransition:!0})})}}removeNode(e,t){let n=this._engine;if(e.childElementCount&&this._signalRemovalForInnerTriggers(e,t),this.triggerLeaveAnimation(e,t,!0))return;let i=!1;if(n.totalAnimations){let s=n.players.length?n.playersByQueriedElement.get(e):[];if(s&&s.length)i=!0;else{let o=e;for(;o=o.parentNode;)if(n.statesByElement.get(o)){i=!0;break}}}if(this.prepareLeaveAnimationListeners(e),i)n.markElementAsRemoved(this.id,e,!1,t);else{let s=e[se];(!s||s===_o)&&(n.afterFlush(()=>this.clearElementCache(e)),n.destroyInnerAnimations(e),n._onRemovalComplete(e,t))}}insertNode(e,t){re(e,this._hostClassName)}drainQueuedTransitions(e){let t=[];return this._queue.forEach(n=>{let i=n.player;if(i.destroyed)return;let s=n.element,o=this._elementListeners.get(s);o&&o.forEach(a=>{if(a.name==n.triggerName){let u=si(s,n.triggerName,n.fromState.value,n.toState.value);u._data=e,ii(n.player,a.phase,u,a.callback)}}),i.markedForDestroy?this._engine.afterFlush(()=>{i.destroy()}):t.push(n)}),this._queue=[],t.sort((n,i)=>{let s=n.transition.ast.depCount,o=i.transition.ast.depCount;return s==0||o==0?s-o:this._engine.driver.containsElement(n.element,i.element)?1:-1})}destroy(e){this.players.forEach(t=>t.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,e)}},ti=class{_onRemovalComplete(e,t){this.onRemovalComplete(e,t)}constructor(e,t,n,i){this.bodyNode=e,this.driver=t,this._normalizer=n,this.scheduler=i,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(s,o)=>{}}get queuedPlayers(){let e=[];return this._namespaceList.forEach(t=>{t.players.forEach(n=>{n.queued&&e.push(n)})}),e}createNamespace(e,t){let n=new ei(e,t,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,t)?this._balanceNamespaceList(n,t):(this.newHostElements.set(t,n),this.collectEnterElement(t)),this._namespaceLookup[e]=n}_balanceNamespaceList(e,t){let n=this._namespaceList,i=this.namespacesByHostElement;if(n.length-1>=0){let o=!1,a=this.driver.getParentElement(t);for(;a;){let u=i.get(a);if(u){let l=n.indexOf(u);n.splice(l+1,0,e),o=!0;break}a=this.driver.getParentElement(a)}o||n.unshift(e)}else n.push(e);return i.set(t,e),e}register(e,t){let n=this._namespaceLookup[e];return n||(n=this.createNamespace(e,t)),n}registerTrigger(e,t,n){let i=this._namespaceLookup[e];i&&i.register(t,n)&&this.totalAnimations++}destroy(e,t){e&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{let n=this._fetchNamespace(e);this.namespacesByHostElement.delete(n.hostElement);let i=this._namespaceList.indexOf(n);i>=0&&this._namespaceList.splice(i,1),n.destroy(t),delete this._namespaceLookup[e]}))}_fetchNamespace(e){return this._namespaceLookup[e]}fetchNamespacesByElement(e){let t=new Set,n=this.statesByElement.get(e);if(n){for(let i of n.values())if(i.namespaceId){let s=this._fetchNamespace(i.namespaceId);s&&t.add(s)}}return t}trigger(e,t,n,i){if(pn(t)){let s=this._fetchNamespace(e);if(s)return s.trigger(t,n,i),!0}return!1}insertNode(e,t,n,i){if(!pn(t))return;let s=t[se];if(s&&s.setForRemoval){s.setForRemoval=!1,s.setForMove=!0;let o=this.collectedLeaveElements.indexOf(t);o>=0&&this.collectedLeaveElements.splice(o,1)}if(e){let o=this._fetchNamespace(e);o&&o.insertNode(t,n)}i&&this.collectEnterElement(t)}collectEnterElement(e){this.collectedEnterElements.push(e)}markElementAsDisabled(e,t){t?this.disabledNodes.has(e)||(this.disabledNodes.add(e),re(e,$r)):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),it(e,$r))}removeNode(e,t,n){if(pn(t)){this.scheduler?.notify();let i=e?this._fetchNamespace(e):null;i?i.removeNode(t,n):this.markElementAsRemoved(e,t,!1,n);let s=this.namespacesByHostElement.get(t);s&&s.id!==e&&s.removeNode(t,n)}else this._onRemovalComplete(t,n)}markElementAsRemoved(e,t,n,i,s){this.collectedLeaveElements.push(t),t[se]={namespaceId:e,setForRemoval:i,hasAnimation:n,removedBeforeQueried:!1,previousTriggersValues:s}}listen(e,t,n,i,s){return pn(t)?this._fetchNamespace(e).listen(t,n,i,s):()=>{}}_buildInstruction(e,t,n,i,s){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,n,i,e.fromState.options,e.toState.options,t,s)}destroyInnerAnimations(e){let t=this.driver.query(e,gn,!0);t.forEach(n=>this.destroyActiveAnimationsForElement(n)),this.playersByQueriedElement.size!=0&&(t=this.driver.query(e,Br,!0),t.forEach(n=>this.finishActiveQueriedAnimationOnElement(n)))}destroyActiveAnimationsForElement(e){let t=this.playersByElement.get(e);t&&t.forEach(n=>{n.queued?n.markedForDestroy=!0:n.destroy()})}finishActiveQueriedAnimationOnElement(e){let t=this.playersByQueriedElement.get(e);t&&t.forEach(n=>n.finish())}whenRenderingDone(){return new Promise(e=>{if(this.players.length)return Ae(this.players).onDone(()=>e());e()})}processLeaveNode(e){let t=e[se];if(t&&t.setForRemoval){if(e[se]=_o,t.namespaceId){this.destroyInnerAnimations(e);let n=this._fetchNamespace(t.namespaceId);n&&n.clearElementCache(e)}this._onRemovalComplete(e,t.setForRemoval)}e.classList?.contains($r)&&this.markElementAsDisabled(e,!1),this.driver.query(e,zu,!0).forEach(n=>{this.markElementAsDisabled(n,!1)})}flush(e=-1){let t=[];if(this.newHostElements.size&&(this.newHostElements.forEach((n,i)=>this._balanceNamespaceList(n,i)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let n=0;nn()),this._flushFns=[],this._whenQuietFns.length){let n=this._whenQuietFns;this._whenQuietFns=[],t.length?Ae(t).onDone(()=>{n.forEach(i=>i())}):n.forEach(i=>i())}}reportError(e){throw au(e)}_flushAnimations(e,t){let n=new Dt,i=[],s=new Map,o=[],a=new Map,u=new Map,l=new Map,c=new Set;this.disabledNodes.forEach(p=>{c.add(p);let g=this.driver.query(p,ju,!0);for(let v=0;v{let v=So+y++;m.set(g,v),p.forEach(_=>re(_,v))});let A=[],M=new Set,N=new Set;for(let p=0;pM.add(_)):N.add(g))}let z=new Map,U=fo(d,Array.from(M));U.forEach((p,g)=>{let v=qr+y++;z.set(g,v),p.forEach(_=>re(_,v))}),e.push(()=>{f.forEach((p,g)=>{let v=m.get(g);p.forEach(_=>it(_,v))}),U.forEach((p,g)=>{let v=z.get(g);p.forEach(_=>it(_,v))}),A.forEach(p=>{this.processLeaveNode(p)})});let ze=[],oe=[];for(let p=this._namespaceList.length-1;p>=0;p--)this._namespaceList[p].drainQueuedTransitions(t).forEach(v=>{let _=v.player,L=v.element;if(ze.push(_),this.collectedEnterElements.length){let F=L[se];if(F&&F.setForMove){if(F.previousTriggersValues&&F.previousTriggersValues.has(v.triggerName)){let Pe=F.previousTriggersValues.get(v.triggerName),Z=this.statesByElement.get(v.element);if(Z&&Z.has(v.triggerName)){let kt=Z.get(v.triggerName);kt.value=Pe,Z.set(v.triggerName,kt)}}_.destroy();return}}let ae=!h||!this.driver.containsElement(h,L),K=z.get(L),ge=m.get(L),P=this._buildInstruction(v,n,ge,K,ae);if(P.errors&&P.errors.length){oe.push(P);return}if(ae){_.onStart(()=>Fe(L,P.fromStyles)),_.onDestroy(()=>fe(L,P.toStyles)),i.push(_);return}if(v.isFallbackTransition){_.onStart(()=>Fe(L,P.fromStyles)),_.onDestroy(()=>fe(L,P.toStyles)),i.push(_);return}let mi=[];P.timelines.forEach(F=>{F.stretchStartingKeyframe=!0,this.disabledNodes.has(F.element)||mi.push(F)}),P.timelines=mi,n.append(L,P.timelines);let Lo={instruction:P,player:_,element:L};o.push(Lo),P.queriedElements.forEach(F=>Y(a,F,[]).push(_)),P.preStyleProps.forEach((F,Pe)=>{if(F.size){let Z=u.get(Pe);Z||u.set(Pe,Z=new Set),F.forEach((kt,Mn)=>Z.add(Mn))}}),P.postStyleProps.forEach((F,Pe)=>{let Z=l.get(Pe);Z||l.set(Pe,Z=new Set),F.forEach((kt,Mn)=>Z.add(Mn))})});if(oe.length){let p=[];oe.forEach(g=>{p.push(lu(g.triggerName,g.errors))}),ze.forEach(g=>g.destroy()),this.reportError(p)}let q=new Map,V=new Map;o.forEach(p=>{let g=p.element;n.has(g)&&(V.set(g,g),this._beforeAnimationBuild(p.player.namespaceId,p.instruction,q))}),i.forEach(p=>{let g=p.element;this._getPreviousPlayers(g,!1,p.namespaceId,p.triggerName,null).forEach(_=>{Y(q,g,[]).push(_),_.destroy()})});let Me=A.filter(p=>po(p,u,l)),qe=new Map;ho(qe,this.driver,N,l,ce).forEach(p=>{po(p,u,l)&&Me.push(p)});let Ie=new Map;f.forEach((p,g)=>{ho(Ie,this.driver,new Set(p),u,Bt)}),Me.forEach(p=>{let g=qe.get(p),v=Ie.get(p);qe.set(p,new Map([...g?.entries()??[],...v?.entries()??[]]))});let An=[],fi=[],pi={};o.forEach(p=>{let{element:g,player:v,instruction:_}=p;if(n.has(g)){if(c.has(g)){v.onDestroy(()=>fe(g,_.toStyles)),v.disabled=!0,v.overrideTotalTime(_.totalTime),i.push(v);return}let L=pi;if(V.size>1){let K=g,ge=[];for(;K=K.parentNode;){let P=V.get(K);if(P){L=P;break}ge.push(K)}ge.forEach(P=>V.set(P,L))}let ae=this._buildAnimation(v.namespaceId,_,q,s,Ie,qe);if(v.setRealPlayer(ae),L===pi)An.push(v);else{let K=this.playersByElement.get(L);K&&K.length&&(v.parentPlayer=Ae(K)),i.push(v)}}else Fe(g,_.fromStyles),v.onDestroy(()=>fe(g,_.toStyles)),fi.push(v),c.has(g)&&i.push(v)}),fi.forEach(p=>{let g=s.get(p.element);if(g&&g.length){let v=Ae(g);p.setRealPlayer(v)}}),i.forEach(p=>{p.parentPlayer?p.syncPlayerEvents(p.parentPlayer):p.destroy()});for(let p=0;p!ae.destroyed);L.length?Gu(this,g,L):this.processLeaveNode(g)}return A.length=0,An.forEach(p=>{this.players.push(p),p.onDone(()=>{p.destroy();let g=this.players.indexOf(p);this.players.splice(g,1)}),p.play()}),An}afterFlush(e){this._flushFns.push(e)}afterFlushAnimationsDone(e){this._whenQuietFns.push(e)}_getPreviousPlayers(e,t,n,i,s){let o=[];if(t){let a=this.playersByQueriedElement.get(e);a&&(o=a)}else{let a=this.playersByElement.get(e);if(a){let u=!s||s==It;a.forEach(l=>{l.queued||!u&&l.triggerName!=i||o.push(l)})}}return(n||i)&&(o=o.filter(a=>!(n&&n!=a.namespaceId||i&&i!=a.triggerName))),o}_beforeAnimationBuild(e,t,n){let i=t.triggerName,s=t.element,o=t.isRemovalTransition?void 0:e,a=t.isRemovalTransition?void 0:i;for(let u of t.timelines){let l=u.element,c=l!==s,h=Y(n,l,[]);this._getPreviousPlayers(l,c,o,a,t.toState).forEach(f=>{let m=f.getRealPlayer();m.beforeDestroy&&m.beforeDestroy(),f.destroy(),h.push(f)})}Fe(s,t.fromStyles)}_buildAnimation(e,t,n,i,s,o){let a=t.triggerName,u=t.element,l=[],c=new Set,h=new Set,d=t.timelines.map(m=>{let y=m.element;c.add(y);let A=y[se];if(A&&A.removedBeforeQueried)return new We(m.duration,m.delay);let M=y!==u,N=Yu((n.get(y)||Vu).map(q=>q.getRealPlayer())).filter(q=>{let V=q;return V.element?V.element===y:!1}),z=s.get(y),U=o.get(y),ze=mo(this._normalizer,m.keyframes,z,U),oe=this._buildPlayer(m,ze,N);if(m.subTimeline&&i&&h.add(y),M){let q=new Ot(e,a,y);q.setRealPlayer(oe),l.push(q)}return oe});l.forEach(m=>{Y(this.playersByQueriedElement,m.element,[]).push(m),m.onDone(()=>Qu(this.playersByQueriedElement,m.element,m))}),c.forEach(m=>re(m,ro));let f=Ae(d);return f.onDestroy(()=>{c.forEach(m=>it(m,ro)),fe(u,t.toStyles)}),h.forEach(m=>{Y(i,m,[]).push(f)}),f}_buildPlayer(e,t,n){return t.length>0?this.driver.animate(e.element,t,e.duration,e.delay,e.easing,n):new We(e.duration,e.delay)}},Ot=class{constructor(e,t,n){this.namespaceId=e,this.triggerName=t,this.element=n,this._player=new We,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.parentPlayer=null,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(e){this._containsRealPlayer||(this._player=e,this._queuedCallbacks.forEach((t,n)=>{t.forEach(i=>ii(e,n,void 0,i))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(e.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(e){this.totalTime=e}syncPlayerEvents(e){let t=this._player;t.triggerCallback&&e.onStart(()=>t.triggerCallback("start")),e.onDone(()=>this.finish()),e.onDestroy(()=>this.destroy())}_queueEvent(e,t){Y(this._queuedCallbacks,e,[]).push(t)}onDone(e){this.queued&&this._queueEvent("done",e),this._player.onDone(e)}onStart(e){this.queued&&this._queueEvent("start",e),this._player.onStart(e)}onDestroy(e){this.queued&&this._queueEvent("destroy",e),this._player.onDestroy(e)}init(){this._player.init()}hasStarted(){return this.queued?!1:this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(e){this.queued||this._player.setPosition(e)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(e){let t=this._player;t.triggerCallback&&t.triggerCallback(e)}};function Qu(r,e,t){let n=r.get(e);if(n){if(n.length){let i=n.indexOf(t);n.splice(i,1)}n.length==0&&r.delete(e)}return n}function Wu(r){return r??null}function pn(r){return r&&r.nodeType===1}function Hu(r){return r=="start"||r=="done"}function co(r,e){let t=r.style.display;return r.style.display=e??"none",t}function ho(r,e,t,n,i){let s=[];t.forEach(u=>s.push(co(u)));let o=[];n.forEach((u,l)=>{let c=new Map;u.forEach(h=>{let d=e.computeStyle(l,h,i);c.set(h,d),(!d||d.length==0)&&(l[se]=Ku,o.push(l))}),r.set(l,c)});let a=0;return t.forEach(u=>co(u,s[a++])),o}function fo(r,e){let t=new Map;if(r.forEach(a=>t.set(a,[])),e.length==0)return t;let n=1,i=new Set(e),s=new Map;function o(a){if(!a)return n;let u=s.get(a);if(u)return u;let l=a.parentNode;return t.has(l)?u=l:i.has(l)?u=n:u=o(l),s.set(a,u),u}return e.forEach(a=>{let u=o(a);u!==n&&t.get(u).push(a)}),t}function re(r,e){r.classList?.add(e)}function it(r,e){r.classList?.remove(e)}function Gu(r,e,t){Ae(t).onDone(()=>r.processLeaveNode(e))}function Yu(r){let e=[];return Ro(r,e),e}function Ro(r,e){for(let t=0;ti.add(s)):e.set(r,n),t.delete(r),!0}var ot=class{constructor(e,t,n,i){this._driver=t,this._normalizer=n,this._triggerCache={},this.onRemovalComplete=(s,o)=>{},this._transitionEngine=new ti(e.body,t,n,i),this._timelineEngine=new Jr(e.body,t,n),this._transitionEngine.onRemovalComplete=(s,o)=>this.onRemovalComplete(s,o)}registerTrigger(e,t,n,i,s){let o=e+"-"+i,a=this._triggerCache[o];if(!a){let u=[],l=[],c=Eo(this._driver,s,u,l);if(u.length)throw Zl(i,u);l.length&&void 0,a=Uu(i,c,this._normalizer),this._triggerCache[o]=a}this._transitionEngine.registerTrigger(t,i,a)}register(e,t){this._transitionEngine.register(e,t)}destroy(e,t){this._transitionEngine.destroy(e,t)}onInsert(e,t,n,i){this._transitionEngine.insertNode(e,t,n,i)}onRemove(e,t,n){this._transitionEngine.removeNode(e,t,n)}disableAnimations(e,t){this._transitionEngine.markElementAsDisabled(e,t)}process(e,t,n,i){if(n.charAt(0)=="@"){let[s,o]=to(n),a=i;this._timelineEngine.command(s,t,o,a)}else this._transitionEngine.trigger(e,t,n,i)}listen(e,t,n,i,s){if(n.charAt(0)=="@"){let[o,a]=to(n);return this._timelineEngine.listen(o,t,a,s)}return this._transitionEngine.listen(e,t,n,i,s)}flush(e=-1){this._transitionEngine.flush(e)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(e){this._transitionEngine.afterFlushAnimationsDone(e)}};function Xu(r,e){let t=null,n=null;return Array.isArray(e)&&e.length?(t=zr(e[0]),e.length>1&&(n=zr(e[e.length-1]))):e instanceof Map&&(t=zr(e)),t||n?new ni(r,t,n):null}var st=class st{constructor(e,t,n){this._element=e,this._startStyles=t,this._endStyles=n,this._state=0;let i=st.initialStylesByElement.get(e);i||st.initialStylesByElement.set(e,i=new Map),this._initialStyles=i}start(){this._state<1&&(this._startStyles&&fe(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(fe(this._element,this._initialStyles),this._endStyles&&(fe(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(st.initialStylesByElement.delete(this._element),this._startStyles&&(Fe(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Fe(this._element,this._endStyles),this._endStyles=null),fe(this._element,this._initialStyles),this._state=3)}};st.initialStylesByElement=new WeakMap;var ni=st;function zr(r){let e=null;return r.forEach((t,n)=>{Ju(n)&&(e=e||new Map,e.set(n,t))}),e}function Ju(r){return r==="display"||r==="position"}var Cn=class{constructor(e,t,n,i){this.element=e,this.keyframes=t,this.options=n,this._specialStyles=i,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=n.duration,this._delay=n.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;let e=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,e,this.options),this._finalKeyframe=e.length?e[e.length-1]:new Map;let t=()=>this._onFinish();this.domPlayer.addEventListener("finish",t),this.onDestroy(()=>{this.domPlayer.removeEventListener("finish",t)})}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(e){let t=[];return e.forEach(n=>{t.push(Object.fromEntries(n))}),t}_triggerWebAnimation(e,t,n){return e.animate(this._convertKeyframesToObject(t),n)}onStart(e){this._originalOnStartFns.push(e),this._onStartFns.push(e)}onDone(e){this._originalOnDoneFns.push(e),this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(e=>e()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}setPosition(e){this.domPlayer===void 0&&this.init(),this.domPlayer.currentTime=e*this.time}getPosition(){return+(this.domPlayer.currentTime??0)/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){let e=new Map;this.hasStarted()&&this._finalKeyframe.forEach((n,i)=>{i!=="offset"&&e.set(i,this._finished?n:ui(this.element,i))}),this.currentSnapshot=e}triggerCallback(e){let t=e==="start"?this._onStartFns:this._onDoneFns;t.forEach(n=>n()),t.length=0}},Tn=class{validateStyleProperty(e){return!0}validateAnimatableStyleProperty(e){return!0}matchesElement(e,t){return!1}containsElement(e,t){return go(e,t)}getParentElement(e){return oi(e)}query(e,t,n){return yo(e,t,n)}computeStyle(e,t,n){return ui(e,t)}animate(e,t,n,i,s,o=[]){let a=i==0?"both":"forwards",u={duration:n,delay:i,fill:a};s&&(u.easing=s);let l=new Map,c=o.filter(f=>f instanceof Cn);Su(n,i)&&c.forEach(f=>{f.currentSnapshot.forEach((m,y)=>l.set(y,m))});let h=gu(t).map(f=>new Map(f));h=wu(e,h,l);let d=Xu(e,h);return new Cn(e,h,u,d)}};var mn="@",Ao="@.disabled",_n=class{constructor(e,t,n,i){this.namespaceId=e,this.delegate=t,this.engine=n,this._onDestroy=i,this.\u0275type=0}get data(){return this.delegate.data}destroyNode(e){this.delegate.destroyNode?.(e)}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),this._onDestroy?.()}createElement(e,t){return this.delegate.createElement(e,t)}createComment(e){return this.delegate.createComment(e)}createText(e){return this.delegate.createText(e)}appendChild(e,t){this.delegate.appendChild(e,t),this.engine.onInsert(this.namespaceId,t,e,!1)}insertBefore(e,t,n,i=!0){this.delegate.insertBefore(e,t,n),this.engine.onInsert(this.namespaceId,t,e,i)}removeChild(e,t,n){this.engine.onRemove(this.namespaceId,t,this.delegate)}selectRootElement(e,t){return this.delegate.selectRootElement(e,t)}parentNode(e){return this.delegate.parentNode(e)}nextSibling(e){return this.delegate.nextSibling(e)}setAttribute(e,t,n,i){this.delegate.setAttribute(e,t,n,i)}removeAttribute(e,t,n){this.delegate.removeAttribute(e,t,n)}addClass(e,t){this.delegate.addClass(e,t)}removeClass(e,t){this.delegate.removeClass(e,t)}setStyle(e,t,n,i){this.delegate.setStyle(e,t,n,i)}removeStyle(e,t,n){this.delegate.removeStyle(e,t,n)}setProperty(e,t,n){t.charAt(0)==mn&&t==Ao?this.disableAnimations(e,!!n):this.delegate.setProperty(e,t,n)}setValue(e,t){this.delegate.setValue(e,t)}listen(e,t,n){return this.delegate.listen(e,t,n)}disableAnimations(e,t){this.engine.disableAnimations(e,t)}},ri=class extends _n{constructor(e,t,n,i,s){super(t,n,i,s),this.factory=e,this.namespaceId=t}setProperty(e,t,n){t.charAt(0)==mn?t.charAt(1)=="."&&t==Ao?(n=n===void 0?!0:!!n,this.disableAnimations(e,n)):this.engine.process(this.namespaceId,e,t.slice(1),n):this.delegate.setProperty(e,t,n)}listen(e,t,n){if(t.charAt(0)==mn){let i=ec(e),s=t.slice(1),o="";return s.charAt(0)!=mn&&([s,o]=tc(s)),this.engine.listen(this.namespaceId,i,s,o,a=>{let u=a._data||-1;this.factory.scheduleListenerCallback(u,n,a)})}return this.delegate.listen(e,t,n)}};function ec(r){switch(r){case"body":return document.body;case"document":return document;case"window":return window;default:return r}}function tc(r){let e=r.indexOf("."),t=r.substring(0,e),n=r.slice(e+1);return[t,n]}var Rn=class{constructor(e,t,n){this.delegate=e,this.engine=t,this._zone=n,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,t.onRemovalComplete=(i,s)=>{let o=s?.parentNode(i);o&&s.removeChild(o,i)}}createRenderer(e,t){let n="",i=this.delegate.createRenderer(e,t);if(!e||!t?.data?.animation){let l=this._rendererCache,c=l.get(i);if(!c){let h=()=>l.delete(i);c=new _n(n,i,this.engine,h),l.set(i,c)}return c}let s=t.id,o=t.id+"-"+this._currentId;this._currentId++,this.engine.register(o,e);let a=l=>{Array.isArray(l)?l.forEach(a):this.engine.registerTrigger(s,o,e,l.name,l)};return t.data.animation.forEach(a),new ri(this,o,i,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(e,t,n){if(e>=0&&et(n));return}let i=this._animationCallbacksBuffer;i.length==0&&queueMicrotask(()=>{this._zone.run(()=>{i.forEach(s=>{let[o,a]=s;o(a)}),this._animationCallbacksBuffer=[]})}),i.push([t,n])}end(){this._cdRecurDepth--,this._cdRecurDepth==0&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}};var rc=(()=>{let e=class e extends ot{constructor(n,i,s){super(n,i,s,b(ki,{optional:!0}))}ngOnDestroy(){this.flush()}};e.\u0275fac=function(i){return new(i||e)(Ke(Hn),Ke($e),Ke(je))},e.\u0275prov=O({token:e,factory:e.\u0275fac});let r=e;return r})();function ic(){return new vn}function sc(r,e,t){return new Rn(r,e,t)}var Mo=[{provide:je,useFactory:ic},{provide:ot,useClass:rc},{provide:Li,useFactory:sc,deps:[ns,ot,Ne]}],oc=[{provide:$e,useFactory:()=>new Tn},{provide:$n,useValue:"BrowserAnimations"},...Mo],Xc=[{provide:$e,useClass:ai},{provide:$n,useValue:"NoopAnimations"},...Mo];function Io(){return xi("NgEagerAnimations"),[...oc]}function lc(r,e){if(r&1&&(D(0,"li",13)(1,"a",14),B(2),k()()),r&2){let t=e.$implicit,n=Qn(2).$implicit;ue(),zn("routerLink",n.route)("fragment",t.route),ue(),Gi("",t.name," ")}}function uc(r,e){if(r&1&&(D(0,"ul",12),Vn(1,lc,3,3,"li",13,Bn),k()),r&2){let t=Qn().$implicit;ue(),Kn(t.children)}}function cc(r,e){if(r&1&&(D(0,"li",8)(1,"a",11),B(2),k(),qi(3,uc,3,0,"ul",12),k()),r&2){let t=e.$implicit;ue(),zn("routerLink",t.route),ue(),Hi(t.name),ue(),Vi(3,t.children.length>0?3:-1)}}var Po=(()=>{let e=class e{constructor(n){this.router=n,this.menu=[{name:"Getting started",route:"getting-started",children:[]},{name:"Basic controls",route:"basic-controls",children:[{name:"Text",route:"text"},{name:"Number",route:"number"},{name:"Switch",route:"switch"},{name:"Slider",route:"slider"},{name:"Fill",route:"fill"},{name:"Select",route:"select"},{name:"Button Toggle",route:"button_toggle"},{name:"Image Select",route:"image_select"},{name:"Textarea",route:"textarea"},{name:"Hidden",route:"hidden"}]},{name:"Group controls",route:"group-controls",children:[{name:"Group",route:"group"},{name:"Inline Group",route:"inline_group"},{name:"Tabs",route:"tabs"},{name:"Menu",route:"menu"}]},{name:"Media controls",route:"media-controls",children:[{name:"Upload Settings",route:"upload_settings"},{name:"Image",route:"image"},{name:"Video",route:"video"},{name:"Audio",route:"audio"},{name:"File",route:"file"}]},{name:"Conditions",route:"conditions",children:[]},{name:"Playground",route:"playground",children:[]}],this.menuOpened=!1,this.router.events.pipe(Se(i=>i instanceof ne)).subscribe(i=>{this.menuOpened=!1})}};e.\u0275fac=function(i){return new(i||e)(j(rt))},e.\u0275cmp=be({type:e,selectors:[["app-layout"]],hostAttrs:[1,"container-wrap"],standalone:!0,features:[Ee],decls:20,vars:4,consts:[["mat-icon-button","",1,"menu-toggle",3,"click"],["svgIcon","menu"],["routerLink","/",1,"brand"],[1,"spacer"],["mat-icon-button","","href","https://github.com/acrodata/gui","target","_blank"],["svgIcon","github"],[1,"container"],["role","navigation",1,"menu"],["routerLinkActive","active",1,"menu-item"],["href","https://github.com/nzbin","target","_blank"],[1,"backdrop",3,"click"],["role","button",3,"routerLink"],[1,"submenu"],[1,"submenu-item"],["role","button",3,"routerLink","fragment"]],template:function(i,s){i&1&&(D(0,"header")(1,"button",0),ut("click",function(){return s.menuOpened=!s.menuOpened}),ie(2,"mat-icon",1),k(),D(3,"a",2),B(4,"Acrodata GUI"),k(),ie(5,"span",3),D(6,"a",4),ie(7,"mat-icon",5),k()(),D(8,"div",6)(9,"aside")(10,"ul",7),Vn(11,cc,4,3,"li",8,Bn),k()(),D(13,"main"),ie(14,"router-outlet"),D(15,"footer"),B(16,"\xA9 2023 Made with \u2764\uFE0F by "),D(17,"a",9),B(18,"nzbin"),k()()()(),D(19,"div",10),ut("click",function(){return s.menuOpened=!1}),k()),i&2&&(ue(9),qn("show",s.menuOpened),ue(2),Kn(s.menu),ue(8),qn("show",s.menuOpened))},dependencies:[_t,an,Ys,hs,cs,us,ps,fs],styles:[`.container-wrap{display:block;max-width:1280px;padding:0 64px;margin:0 auto}.container{display:flex;gap:32px}main{flex:1;width:0;padding-top:16px}aside{position:sticky;top:0;display:block;width:240px;height:100vh;padding:16px 0 32px;overflow:auto;background-color:var(--bg-color)}header{display:flex;align-items:center;height:64px;border-bottom:1px solid var(--border-color);background-color:var(--bg-translucent-color);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}footer{padding:32px 0;margin-top:64px;font-size:.75rem;text-align:center}.menu,.submenu{padding:0;margin:0;list-style-type:none}.menu a,.submenu a{position:relative;display:block;padding:8px 16px;border-radius:8px;text-decoration:none}.menu a:hover,.submenu a:hover{background-color:var(--bg-secondary-color)}.menu-item>a{margin-top:24px;font-weight:500;color:var(--fg-color)}.menu-item.active>a:before{content:"";position:absolute;top:12px;left:0;display:inline-block;width:4px;height:16px;background-color:currentColor;border-radius:2px}.menu-item:first-child>a{margin-top:0}.submenu-item>a{color:var(--fg-secondary-color)}.brand{padding:0 16px;color:var(--heading-color);font-size:20px;font-weight:600}.spacer{flex-grow:1}@media (width <= 960px){.container-wrap{padding:0 32px}aside{position:fixed;top:0;bottom:0;left:0;z-index:20;transform:translate(-100%);transition:transform .3s ease-in-out}aside.show{transform:none}.backdrop{position:fixed;top:0;left:0;z-index:19;width:100vw;height:100vh;visibility:hidden;transition-duration:.4s;transition-timing-function:cubic-bezier(.25,.8,.25,1);transition-property:background-color,visibility}.backdrop.show{background-color:#00000080;visibility:visible}header{position:sticky;top:0;z-index:10}.brand{padding:0 8px}}@media (width <= 600px){.container-wrap{padding:0 16px}}@media (width > 960px){.mat-mdc-icon-button.menu-toggle{display:none}}a.mat-mdc-icon-button{display:inline-flex}a.mat-mdc-icon-button .mat-icon{line-height:1} +`],encapsulation:2});let r=e;return r})();var Do=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=be({type:e,selectors:[["app-home"]],standalone:!0,features:[Ee],decls:19,vars:0,consts:[["id","features"],["href","home#features"],["href","https://angular.io/guide/reactive-forms","target","_blank"]],template:function(i,s){i&1&&(ie(0,"app-gradient-generator"),D(1,"h2",0)(2,"a",1),B(3,"Features"),k()(),D(4,"ul")(5,"li"),B(6,"Built on top of "),D(7,"a",2),B(8,"Angular Reactive Forms"),k()(),D(9,"li"),B(10,"JSON powered config"),k(),D(11,"li"),B(12,"Easy to understand config and model"),k(),D(13,"li"),B(14,"Uses Angular Material as basic UI library"),k(),D(15,"li"),B(16,"A11y support"),k(),D(17,"li"),B(18,"RTL support"),k()())},dependencies:[ms]});let r=e;return r})();var No=[{path:"",component:Po,children:[{path:"",redirectTo:"home",pathMatch:"full"},{path:"home",component:Do},{path:"getting-started",loadComponent:()=>import("./chunk-4XD35S3H.js").then(r=>r.GettingStartedComponent)},{path:"basic-controls",loadComponent:()=>import("./chunk-DD2MDBBK.js").then(r=>r.BasicControlsComponent)},{path:"media-controls",loadComponent:()=>import("./chunk-F7CT2PNO.js").then(r=>r.MediaControlsComponent)},{path:"group-controls",loadComponent:()=>import("./chunk-I3N7HK3P.js").then(r=>r.GroupControlsComponent)},{path:"conditions",loadComponent:()=>import("./chunk-ESIQUWL4.js").then(r=>r.ConditionsComponent)},{path:"playground",loadComponent:()=>import("./chunk-ZGPJLJYB.js").then(r=>r.PlaygroundComponent)}]},{path:"**",redirectTo:"home"}];var Oo={providers:[Xs(No,Js({scrollPositionRestoration:"enabled",anchorScrolling:"enabled"})),Io(),ts(),Ii(ls.forRoot({baseUrl:"assets/lib"})),{provide:as,useValue:{coreLibraryLoader:()=>import("./chunk-2LK3EEMM.js"),languages:{typescript:()=>import("./chunk-ZZ6UPGYI.js"),scss:()=>import("./chunk-GBXOKUOD.js"),xml:()=>import("./chunk-IWQIUXOR.js"),json:()=>import("./chunk-ICD5WLOO.js"),diff:()=>import("./chunk-P5J7YRA6.js")}}}]};var ko=(()=>{let e=class e{constructor(n,i){this.title="docs",this.icons=["menu","github"];for(let s of this.icons)n.addSvgIcon(s,i.bypassSecurityTrustResourceUrl(`assets/icons/${s}.svg`))}};e.\u0275fac=function(i){return new(i||e)(j(ds),j(ss))},e.\u0275cmp=be({type:e,selectors:[["app-root"]],standalone:!0,features:[Ee],decls:1,vars:0,template:function(i,s){i&1&&ie(0,"router-outlet")},dependencies:[_t],encapsulation:2});let r=e;return r})();rs(ko,Oo).catch(r=>console.error(r));