@tilde-nlp/ngx-common 8.1.14 → 8.1.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -25,7 +25,7 @@ ${e.map((i,r)=>`${r+1}) ${i.toString()}`).join(`
25
25
  @media ${r} {.fx-query-test{ }}
26
26
  `;o.appendChild(t.createTextNode(s))}t.head.appendChild(o),i.forEach(s=>VO[s]=o)}catch(o){console.error(o)}}}function r3(n){let t=new EventTarget;return t.matches=n==="all"||n==="",t.media=n,t.addListener=()=>{},t.removeListener=()=>{},t.addEventListener=()=>{},t.dispatchEvent=()=>!1,t.onchange=null,t}function o3(n,t){return t&&!!window.matchMedia("all").addListener?window.matchMedia(n):r3(n)}function l3(n){return n?.mediaQuery.startsWith(ol)??!1}function BO(n,t,e,i){if(i!==void 0){let r=n.get(t)??new Map;r.set(e,i),n.set(t,r)}}function c3(n,t){return GO(n)[t]??""}function d3(n,t,e){t=t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();let i=GO(n);i[t]=e??"",u3(n,i)}function u3(n,t){let e="";for(let i in t)t[i]&&(e+=`${i}:${t[i]};`);n.setAttribute("style",e)}function GO(n){let t={},e=n.getAttribute("style");if(e){let i=e.split(/;+/g);for(let r=0;r<i.length;r++){let o=i[r].trim();if(o.length>0){let s=o.indexOf(":");if(s===-1)throw new Error(`Invalid CSS style: ${o}`);let a=o.substr(0,s).trim();t[a]=o.substr(s+1).trim()}}}return t}function OC(n,t="1",e="1"){let i=[t,e,n],r=n.indexOf("calc");if(r>0){i[2]=UO(n.substring(r).trim());let o=n.substr(0,r).trim().split(" ");o.length==2&&(i[0]=o[0],i[1]=o[1])}else if(r==0)i[2]=UO(n.trim());else{let o=n.split(" ");i=o.length===3?o:[t,e,n]}return i}function UO(n){return n.replace(/[\s]/g,"").replace(/[\/\*\+\-]/g," $& ")}function mm(n,t){if(t===void 0)return n;let e=i=>{let r=+i.slice(0,-HO.length);return n.endsWith(HO)&&!isNaN(r)?`${r*t.value}${t.unit}`:n};return n.includes(" ")?n.split(" ").map(e).join(" "):e(n)}var Rs,GG,OO,sl,WG,MC,RC,ni,Bd,KG,JG,NO,FO,kO,LO,PO,jO,pr,e3,t3,$O,n3,VO,ol,s3,a3,TC,uo,Ni,mr,fo,HO,ho=f(()=>{"use strict";Le();_();_();we();AC();it();Rs=class n{constructor(t=!1,e="all",i="",r="",o=0){this.matches=t,this.mediaQuery=e,this.mqAlias=i,this.suffix=r,this.priority=o,this.property=""}clone(){return new n(this.matches,this.mediaQuery,this.mqAlias,this.suffix)}};GG={provide:Ta,useFactory:$G,deps:[U,fn],multi:!0},OO="flex-layout-",sl=(()=>{let t=class t{};t.\u0275fac=function(r){return new(r||t)},t.\u0275mod=L({type:t}),t.\u0275inj=F({providers:[GG]});let n=t;return n})(),WG=(()=>{let t=class t{constructor(){this.stylesheet=new Map}addStyleToElement(i,r,o){let s=this.stylesheet.get(i);s?s.set(r,o):this.stylesheet.set(i,new Map([[r,o]]))}clearStyles(){this.stylesheet.clear()}getStyleForElement(i,r){let o=this.stylesheet.get(i),s="";if(o){let a=o.get(r);(typeof a=="number"||typeof a=="string")&&(s=a+"")}return s}};t.\u0275fac=function(r){return new(r||t)},t.\u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})(),MC=new x("Flex Layout token, collect all breakpoints into one provider",{providedIn:"root",factory:()=>null}),RC={addFlexToParent:!0,addOrientationBps:!1,disableDefaultBps:!1,disableVendorPrefixes:!1,serverLoaded:!1,useColumnBasisZero:!0,printWithBreakpoints:[],mediaTriggerAutoRestore:!0,ssrObserveBreakpoints:[],multiplier:void 0,defaultUnit:"px",detectLayoutDisplay:!1},ni=new x("Flex Layout token, config options for the library",{providedIn:"root",factory:()=>RC}),Bd=new x("FlexLayoutServerLoaded",{providedIn:"root",factory:()=>!1});KG=/(\.|-|_)/g;JG=[{alias:"xs",mediaQuery:"screen and (min-width: 0px) and (max-width: 599.98px)",priority:1e3},{alias:"sm",mediaQuery:"screen and (min-width: 600px) and (max-width: 959.98px)",priority:900},{alias:"md",mediaQuery:"screen and (min-width: 960px) and (max-width: 1279.98px)",priority:800},{alias:"lg",mediaQuery:"screen and (min-width: 1280px) and (max-width: 1919.98px)",priority:700},{alias:"xl",mediaQuery:"screen and (min-width: 1920px) and (max-width: 4999.98px)",priority:600},{alias:"lt-sm",overlapping:!0,mediaQuery:"screen and (max-width: 599.98px)",priority:950},{alias:"lt-md",overlapping:!0,mediaQuery:"screen and (max-width: 959.98px)",priority:850},{alias:"lt-lg",overlapping:!0,mediaQuery:"screen and (max-width: 1279.98px)",priority:750},{alias:"lt-xl",overlapping:!0,priority:650,mediaQuery:"screen and (max-width: 1919.98px)"},{alias:"gt-xs",overlapping:!0,mediaQuery:"screen and (min-width: 600px)",priority:-950},{alias:"gt-sm",overlapping:!0,mediaQuery:"screen and (min-width: 960px)",priority:-850},{alias:"gt-md",overlapping:!0,mediaQuery:"screen and (min-width: 1280px)",priority:-750},{alias:"gt-lg",overlapping:!0,mediaQuery:"screen and (min-width: 1920px)",priority:-650}],NO="(orientation: portrait) and (max-width: 599.98px)",FO="(orientation: landscape) and (max-width: 959.98px)",kO="(orientation: portrait) and (min-width: 600px) and (max-width: 839.98px)",LO="(orientation: landscape) and (min-width: 960px) and (max-width: 1279.98px)",PO="(orientation: portrait) and (min-width: 840px)",jO="(orientation: landscape) and (min-width: 1280px)",pr={HANDSET:`${NO}, ${FO}`,TABLET:`${kO} , ${LO}`,WEB:`${PO}, ${jO} `,HANDSET_PORTRAIT:`${NO}`,TABLET_PORTRAIT:`${kO} `,WEB_PORTRAIT:`${PO}`,HANDSET_LANDSCAPE:`${FO}`,TABLET_LANDSCAPE:`${LO}`,WEB_LANDSCAPE:`${jO}`},e3=[{alias:"handset",priority:2e3,mediaQuery:pr.HANDSET},{alias:"handset.landscape",priority:2e3,mediaQuery:pr.HANDSET_LANDSCAPE},{alias:"handset.portrait",priority:2e3,mediaQuery:pr.HANDSET_PORTRAIT},{alias:"tablet",priority:2100,mediaQuery:pr.TABLET},{alias:"tablet.landscape",priority:2100,mediaQuery:pr.TABLET_LANDSCAPE},{alias:"tablet.portrait",priority:2100,mediaQuery:pr.TABLET_PORTRAIT},{alias:"web",priority:2200,mediaQuery:pr.WEB,overlapping:!0},{alias:"web.landscape",priority:2200,mediaQuery:pr.WEB_LANDSCAPE,overlapping:!0},{alias:"web.portrait",priority:2200,mediaQuery:pr.WEB_PORTRAIT,overlapping:!0}],t3=new x("Token (@ngbracket/ngx-layout) Breakpoints",{providedIn:"root",factory:()=>{let n=u(MC),t=u(ni),e=[].concat.apply([],(n||[]).map(r=>Array.isArray(r)?r:[r])),i=(t.disableDefaultBps?[]:JG).concat(t.addOrientationBps?e3:[]);return XG(i,e)}}),$O=(()=>{let t=class t{constructor(i){this.findByMap=new Map,this.items=[...i].sort(qG)}findByAlias(i){return i?this.findWithPredicate(i,r=>r.alias===i):null}findByQuery(i){return this.findWithPredicate(i,r=>r.mediaQuery===i)}get overlappings(){return this.items.filter(i=>i.overlapping)}get aliases(){return this.items.map(i=>i.alias)}get suffixes(){return this.items.map(i=>i?.suffix??"")}findWithPredicate(i,r){let o=this.findByMap.get(i);return o||(o=this.items.find(r)??null,this.findByMap.set(i,o)),o??null}};t.\u0275fac=function(r){return new(r||t)(S(t3))},t.\u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})(),n3=(()=>{let t=class t{constructor(i,r,o,s){this._zone=i,this._platformId=r,this._document=o,this._nonce=s,this.source=new at(new Rs(!0)),this.registry=new Map,this.pendingRemoveListenerFns=[],this._observable$=this.source.asObservable()}get activations(){let i=[];return this.registry.forEach((r,o)=>{r.matches&&i.push(o)}),i}isActive(i){return this.registry.get(i)?.matches??this.registerQuery(i).some(o=>o.matches)}observe(i,r=!1){if(i&&i.length){let o=this._observable$.pipe(ue(a=>r?i.indexOf(a.mediaQuery)>-1:!0)),s=new Z(a=>{let l=this.registerQuery(i);if(l.length){let c=l.pop();l.forEach(d=>{a.next(d)}),this.source.next(c)}a.complete()});return sn(s,o)}return this._observable$}registerQuery(i){let r=Array.isArray(i)?i:[i],o=[];return i3(r,this._document,this._nonce),r.forEach(s=>{let a=c=>{this._zone.run(()=>this.source.next(new Rs(c.matches,s)))},l=this.registry.get(s);l||(l=this.buildMQL(s),l.addListener(a),this.pendingRemoveListenerFns.push(()=>l.removeListener(a)),this.registry.set(s,l)),l.matches&&o.push(new Rs(!0,s))}),o}ngOnDestroy(){let i;for(;i=this.pendingRemoveListenerFns.pop();)i()}buildMQL(i){return o3(i,Ji(this._platformId))}};t.\u0275fac=function(r){return new(r||t)(S(P),S(fn),S(U),S(Wr,8))},t.\u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})(),VO={};ol="print",s3={alias:ol,mediaQuery:ol,priority:1e3},a3=(()=>{let t=class t{constructor(i,r,o){this.breakpoints=i,this.layoutConfig=r,this._document=o,this.registeredBeforeAfterPrintHooks=!1,this.isPrintingBeforeAfterEvent=!1,this.beforePrintEventListeners=[],this.afterPrintEventListeners=[],this.formerActivations=null,this.isPrinting=!1,this.queue=new TC,this.deactivations=[]}withPrintQuery(i){return[...i,ol]}isPrintEvent(i){return i.mediaQuery.startsWith(ol)}get printAlias(){return[...this.layoutConfig.printWithBreakpoints??[]]}get printBreakPoints(){return this.printAlias.map(i=>this.breakpoints.findByAlias(i)).filter(i=>i!==null)}getEventBreakpoints({mediaQuery:i}){let r=this.breakpoints.findByQuery(i);return(r?[...this.printBreakPoints,r]:this.printBreakPoints).sort(Vd)}updateEvent(i){let r=this.breakpoints.findByQuery(i.mediaQuery);return this.isPrintEvent(i)&&(r=this.getEventBreakpoints(i)[0],i.mediaQuery=r?.mediaQuery??""),zO(i,r)}registerBeforeAfterPrintHooks(i){if(!this._document.defaultView||this.registeredBeforeAfterPrintHooks)return;this.registeredBeforeAfterPrintHooks=!0;let r=()=>{this.isPrinting||(this.isPrintingBeforeAfterEvent=!0,this.startPrinting(i,this.getEventBreakpoints(new Rs(!0,ol))),i.updateStyles())},o=()=>{this.isPrintingBeforeAfterEvent=!1,this.isPrinting&&(this.stopPrinting(i),i.updateStyles())};this._document.defaultView.addEventListener("beforeprint",r),this._document.defaultView.addEventListener("afterprint",o),this.beforePrintEventListeners.push(r),this.afterPrintEventListeners.push(o)}interceptEvents(i){return r=>{if(this.isPrintEvent(r)){r.matches&&!this.isPrinting?(this.startPrinting(i,this.getEventBreakpoints(r)),i.updateStyles()):!r.matches&&this.isPrinting&&!this.isPrintingBeforeAfterEvent&&(this.stopPrinting(i),i.updateStyles());return}this.collectActivations(i,r)}}blockPropagation(){return i=>!(this.isPrinting||this.isPrintEvent(i))}startPrinting(i,r){this.isPrinting=!0,this.formerActivations=i.activatedBreakpoints,i.activatedBreakpoints=this.queue.addPrintBreakpoints(r)}stopPrinting(i){i.activatedBreakpoints=this.deactivations,this.deactivations=[],this.formerActivations=null,this.queue.clear(),this.isPrinting=!1}collectActivations(i,r){if(!this.isPrinting||this.isPrintingBeforeAfterEvent){if(!this.isPrintingBeforeAfterEvent){this.deactivations=[];return}if(!r.matches){let o=this.breakpoints.findByQuery(r.mediaQuery);if(o){let s=this.formerActivations&&this.formerActivations.includes(o),a=!this.formerActivations&&i.activatedBreakpoints.includes(o);(s||a)&&(this.deactivations.push(o),this.deactivations.sort(Vd))}}}}ngOnDestroy(){this._document.defaultView&&(this.beforePrintEventListeners.forEach(i=>this._document.defaultView.removeEventListener("beforeprint",i)),this.afterPrintEventListeners.forEach(i=>this._document.defaultView.removeEventListener("afterprint",i)))}};t.\u0275fac=function(r){return new(r||t)(S($O),S(ni),S(U))},t.\u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})(),TC=class{constructor(){this.printBreakpoints=[]}addPrintBreakpoints(t){return t.push(s3),t.sort(Vd),t.forEach(e=>this.addBreakpoint(e)),this.printBreakpoints}addBreakpoint(t){t&&this.printBreakpoints.find(i=>i.mediaQuery===t.mediaQuery)===void 0&&(this.printBreakpoints=l3(t)?[t,...this.printBreakpoints]:[...this.printBreakpoints,t])}clear(){this.printBreakpoints=[]}};uo=(()=>{let t=class t{get activatedAlias(){return this.activatedBreakpoints[0]?.alias??""}set activatedBreakpoints(i){this._activatedBreakpoints=[...i]}get activatedBreakpoints(){return[...this._activatedBreakpoints]}set useFallbacks(i){this._useFallbacks=i}constructor(i,r,o){this.matchMedia=i,this.breakpoints=r,this.hook=o,this._useFallbacks=!0,this._activatedBreakpoints=[],this.elementMap=new Map,this.elementKeyMap=new WeakMap,this.watcherMap=new WeakMap,this.updateMap=new WeakMap,this.clearMap=new WeakMap,this.subject=new M,this.observeActivations()}onMediaChange(i){let r=this.findByQuery(i.mediaQuery);if(r){i=zO(i,r);let o=this.activatedBreakpoints.indexOf(r);i.matches&&o===-1?(this._activatedBreakpoints.push(r),this._activatedBreakpoints.sort(Vd),this.updateStyles()):!i.matches&&o!==-1&&(this._activatedBreakpoints.splice(o,1),this._activatedBreakpoints.sort(Vd),this.updateStyles())}}init(i,r,o,s,a=[]){BO(this.updateMap,i,r,o),BO(this.clearMap,i,r,s),this.buildElementKeyMap(i,r),this.watchExtraTriggers(i,r,a)}getValue(i,r,o){let s=this.elementMap.get(i);if(s){let a=o!==void 0?s.get(o):this.getActivatedValues(s,r);if(a)return a.get(r)}}hasValue(i,r){let o=this.elementMap.get(i);if(o){let s=this.getActivatedValues(o,r);if(s)return s.get(r)!==void 0||!1}return!1}setValue(i,r,o,s){let a=this.elementMap.get(i);if(!a)a=new Map().set(s,new Map().set(r,o)),this.elementMap.set(i,a);else{let c=(a.get(s)??new Map).set(r,o);a.set(s,c),this.elementMap.set(i,a)}let l=this.getValue(i,r);l!==void 0&&this.updateElement(i,r,l)}trackValue(i,r){return this.subject.asObservable().pipe(ue(o=>o.element===i&&o.key===r))}updateStyles(){this.elementMap.forEach((i,r)=>{let o=new Set(this.elementKeyMap.get(r)),s=this.getActivatedValues(i);s&&s.forEach((a,l)=>{this.updateElement(r,l,a),o.delete(l)}),o.forEach(a=>{if(s=this.getActivatedValues(i,a),s){let l=s.get(a);this.updateElement(r,a,l)}else this.clearElement(r,a)})})}clearElement(i,r){let o=this.clearMap.get(i);if(o){let s=o.get(r);s&&(s(),this.subject.next({element:i,key:r,value:""}))}}updateElement(i,r,o){let s=this.updateMap.get(i);if(s){let a=s.get(r);a&&(a(o),this.subject.next({element:i,key:r,value:o}))}}releaseElement(i){let r=this.watcherMap.get(i);r&&(r.forEach(s=>s.unsubscribe()),this.watcherMap.delete(i));let o=this.elementMap.get(i);o&&(o.forEach((s,a)=>o.delete(a)),this.elementMap.delete(i))}triggerUpdate(i,r){let o=this.elementMap.get(i);if(o){let s=this.getActivatedValues(o,r);s&&(r?this.updateElement(i,r,s.get(r)):s.forEach((a,l)=>this.updateElement(i,l,a)))}}buildElementKeyMap(i,r){let o=this.elementKeyMap.get(i);o||(o=new Set,this.elementKeyMap.set(i,o)),o.add(r)}watchExtraTriggers(i,r,o){if(o&&o.length){let s=this.watcherMap.get(i);if(s||(s=new Map,this.watcherMap.set(i,s)),!s.get(r)){let l=sn(...o).subscribe(()=>{let c=this.getValue(i,r);this.updateElement(i,r,c)});s.set(r,l)}}}findByQuery(i){return this.breakpoints.findByQuery(i)}getActivatedValues(i,r){for(let s=0;s<this.activatedBreakpoints.length;s++){let a=this.activatedBreakpoints[s],l=i.get(a.alias);if(l&&(r===void 0||l.has(r)&&l.get(r)!=null))return l}if(!this._useFallbacks)return;let o=i.get("");return r===void 0||o&&o.has(r)?o:void 0}observeActivations(){let i=this.breakpoints.items.map(r=>r.mediaQuery);this.hook.registerBeforeAfterPrintHooks(this),this.matchMedia.observe(this.hook.withPrintQuery(i)).pipe(Fe(this.hook.interceptEvents(this)),ue(this.hook.blockPropagation())).subscribe(this.onMediaChange.bind(this))}};t.\u0275fac=function(r){return new(r||t)(S(n3),S($O),S(a3))},t.\u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})();Ni=class{constructor(){this.shouldCache=!0}sideEffect(t,e,i){}},mr=(()=>{let t=class t{constructor(i,r,o,s){this._serverStylesheet=i,this._serverModuleLoaded=r,this._platformId=o,this.layoutConfig=s}applyStyleToElement(i,r,o=null){let s={};typeof r=="string"&&(s[r]=o,r=s),s=this.layoutConfig.disableVendorPrefixes?r:IC(r),this._applyMultiValueStyleToElement(s,i)}applyStyleToElements(i,r=[]){let o=this.layoutConfig.disableVendorPrefixes?i:IC(i);r.forEach(s=>{this._applyMultiValueStyleToElement(o,s)})}getFlowDirection(i){let r="flex-direction",o=this.lookupStyle(i,r),s=this.lookupInlineStyle(i,r)||Uc(this._platformId)&&this._serverModuleLoaded?o:"";return[o||"row",s]}hasWrap(i){return this.lookupStyle(i,"flex-wrap")==="wrap"}lookupAttributeValue(i,r){return i.getAttribute(r)??""}lookupInlineStyle(i,r){return Ji(this._platformId)?i.style.getPropertyValue(r):c3(i,r)}lookupStyle(i,r,o=!1){let s="";return i&&((s=this.lookupInlineStyle(i,r))||(Ji(this._platformId)?o||(s=getComputedStyle(i).getPropertyValue(r)):this._serverModuleLoaded&&(s=this._serverStylesheet.getStyleForElement(i,r)))),s?s.trim():""}_applyMultiValueStyleToElement(i,r){Object.keys(i).sort().forEach(o=>{let s=i[o],a=Array.isArray(s)?s:[s];a.sort();for(let l of a)l=l?l+"":"",Ji(this._platformId)||!this._serverModuleLoaded?Ji(this._platformId)?r.style.setProperty(o,l):d3(r,o,l):this._serverStylesheet.addStyleToElement(r,o,l)})}};t.\u0275fac=function(r){return new(r||t)(S(WG),S(Bd),S(fn),S(ni))},t.\u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})();fo=(()=>{let t=class t{get parentElement(){return this.elementRef.nativeElement.parentElement}get nativeElement(){return this.elementRef.nativeElement}get activatedValue(){return this.marshal.getValue(this.nativeElement,this.DIRECTIVE_KEY)}set activatedValue(i){this.marshal.setValue(this.nativeElement,this.DIRECTIVE_KEY,i,this.marshal.activatedAlias)}constructor(i,r,o,s){this.elementRef=i,this.styleBuilder=r,this.styler=o,this.marshal=s,this.DIRECTIVE_KEY="",this.inputs=[],this.mru={},this.destroySubject=new M,this.styleCache=new Map}ngOnChanges(i){Object.keys(i).forEach(r=>{if(this.inputs.indexOf(r)!==-1){let o=r.split(".").slice(1).join("."),s=i[r].currentValue;this.setValue(s,o)}})}ngOnDestroy(){this.destroySubject.next(),this.destroySubject.complete(),this.marshal.releaseElement(this.nativeElement)}init(i=[]){this.marshal.init(this.elementRef.nativeElement,this.DIRECTIVE_KEY,this.updateWithValue.bind(this),this.clearStyles.bind(this),i)}addStyles(i,r){let o=this.styleBuilder,s=o.shouldCache,a=this.styleCache.get(i);(!a||!s)&&(a=o.buildStyles(i,r),s&&this.styleCache.set(i,a)),this.mru=b({},a),this.applyStyleToElement(a),o.sideEffect(i,a,r)}clearStyles(){Object.keys(this.mru).forEach(i=>{this.mru[i]=""}),this.applyStyleToElement(this.mru),this.mru={},this.currentValue=void 0}triggerUpdate(){this.marshal.triggerUpdate(this.nativeElement,this.DIRECTIVE_KEY)}getFlexFlowDirection(i,r=!1){if(i){let[o,s]=this.styler.getFlowDirection(i);if(!s&&r){let a=pm(o),l=[i];this.styler.applyStyleToElements(a,l)}return o.trim()}return"row"}hasWrap(i){return this.styler.hasWrap(i)}applyStyleToElement(i,r,o=this.nativeElement){this.styler.applyStyleToElement(o,i,r)}setValue(i,r){this.marshal.setValue(this.nativeElement,this.DIRECTIVE_KEY,i,r)}updateWithValue(i){this.currentValue!==i&&(this.addStyles(i),this.currentValue=i)}};t.\u0275fac=function(r){return new(r||t)(T(H),T(Ni),T(mr),T(uo))},t.\u0275dir=j({type:t,features:[je]});let n=t;return n})();HO="x"});var qO,f3,al,NC,ll=f(()=>{"use strict";Le();Le();_();ho();ho();qO=["ngClass","ngClass.xs","ngClass.sm","ngClass.md","ngClass.lg","ngClass.xl","ngClass.lt-sm","ngClass.lt-md","ngClass.lt-lg","ngClass.lt-xl","ngClass.gt-xs","ngClass.gt-sm","ngClass.gt-md","ngClass.gt-lg"],f3=(()=>{let t=class t extends fo{set klass(i){this.ngClassInstance.klass=i,this.setValue(i,"")}constructor(i,r,o,s,a){super(i,null,r,o),this.ngClassInstance=a,this.DIRECTIVE_KEY="ngClass",this.inputs=qO,this.ngClassInstance||(this.ngClassInstance=new Zi(i,s)),this.init(),this.setValue("","")}updateWithValue(i){this.ngClassInstance.ngClass=i,this.ngClassInstance.ngDoCheck()}ngDoCheck(){this.ngClassInstance.ngDoCheck()}};t.\u0275fac=function(r){return new(r||t)(T(H),T(mr),T(uo),T(rt),T(Zi,10))},t.\u0275dir=j({type:t,selectors:[["","ngClass",""],["","ngClass.xs",""],["","ngClass.sm",""],["","ngClass.md",""],["","ngClass.lg",""],["","ngClass.xl",""],["","ngClass.lt-sm",""],["","ngClass.lt-md",""],["","ngClass.lt-lg",""],["","ngClass.lt-xl",""],["","ngClass.gt-xs",""],["","ngClass.gt-sm",""],["","ngClass.gt-md",""],["","ngClass.gt-lg",""]],inputs:{ngClass:"ngClass","ngClass.xs":"ngClass.xs","ngClass.sm":"ngClass.sm","ngClass.md":"ngClass.md","ngClass.lg":"ngClass.lg","ngClass.xl":"ngClass.xl","ngClass.lt-sm":"ngClass.lt-sm","ngClass.lt-md":"ngClass.lt-md","ngClass.lt-lg":"ngClass.lt-lg","ngClass.lt-xl":"ngClass.lt-xl","ngClass.gt-xs":"ngClass.gt-xs","ngClass.gt-sm":"ngClass.gt-sm","ngClass.gt-md":"ngClass.gt-md","ngClass.gt-lg":"ngClass.gt-lg",klass:[0,"class","klass"]},features:[fe]});let n=t;return n})(),al=(()=>{let t=class t extends f3{constructor(){super(...arguments),this.inputs=qO}};t.\u0275fac=(()=>{let i;return function(o){return(i||(i=Ve(t)))(o||t)}})(),t.\u0275dir=j({type:t,selectors:[["","ngClass",""],["","ngClass.xs",""],["","ngClass.sm",""],["","ngClass.md",""],["","ngClass.lg",""],["","ngClass.xl",""],["","ngClass.lt-sm",""],["","ngClass.lt-md",""],["","ngClass.lt-lg",""],["","ngClass.lt-xl",""],["","ngClass.gt-xs",""],["","ngClass.gt-sm",""],["","ngClass.gt-md",""],["","ngClass.gt-lg",""]],inputs:{ngClass:"ngClass","ngClass.xs":"ngClass.xs","ngClass.sm":"ngClass.sm","ngClass.md":"ngClass.md","ngClass.lg":"ngClass.lg","ngClass.xl":"ngClass.xl","ngClass.lt-sm":"ngClass.lt-sm","ngClass.lt-md":"ngClass.lt-md","ngClass.lt-lg":"ngClass.lt-lg","ngClass.lt-xl":"ngClass.lt-xl","ngClass.gt-xs":"ngClass.gt-xs","ngClass.gt-sm":"ngClass.gt-sm","ngClass.gt-md":"ngClass.gt-md","ngClass.gt-lg":"ngClass.gt-lg"},features:[fe]});let n=t;return n})(),NC=(()=>{let t=class t{};t.\u0275fac=function(r){return new(r||t)},t.\u0275mod=L({type:t}),t.\u0275inj=F({imports:[sl]});let n=t;return n})()});function k3(n,t){let[e,i]=n.split(" "),r=i??e,o="0px",s=r,a="0px";return t==="rtl"?a=e:o=e,{padding:`0px ${o} ${s} ${a}`}}function L3(n,t){let[e,i]=n.split(" "),r=i??e,o=c=>`-${c}`,s="0px",a=o(r),l="0px";return t==="rtl"?l=o(e):s=o(e),{margin:`0px ${s} ${a} ${l}`}}function nN(n,t){switch(t){case"column":return"margin-bottom";case"column-reverse":return"margin-top";case"row":return n==="rtl"?"margin-left":"margin-right";case"row-reverse":return n==="rtl"?"margin-right":"margin-left";default:return n==="rtl"?"margin-left":"margin-right"}}function P3(n,t){let e=nN(t.directionality,t.layout),i=b({},JO);return i[e]=n,i}var h3,YO,p3,QO,m3,g3,y3,v3,_3,ZO,b3,XO,x3,C3,E3,w3,D3,S3,I3,A3,JO,T3,eN,M3,tN,R3,O3,N3,F3,gm,j3,iN,V3,rN,KO,kC,ym=f(()=>{"use strict";lr();lr();_();ho();ho();AC();it();we();h3=(()=>{let t=class t extends Ni{constructor(i){super(),this.layoutConfig=i}buildStyles(i,r){let[o,s,...a]=i.split(" "),l=a.join(" "),c=r.direction.indexOf("column")>-1?"column":"row",d=jd(c)?"max-width":"max-height",h=jd(c)?"min-width":"min-height",m=String(l).indexOf("calc")>-1,p=m||l==="auto",g=String(l).indexOf("%")>-1&&!m,y=String(l).indexOf("px")>-1||String(l).indexOf("rem")>-1||String(l).indexOf("em")>-1||String(l).indexOf("vw")>-1||String(l).indexOf("vh")>-1,E=m||y;o=o=="0"?0:o,s=s=="0"?0:s;let D=!o&&!s,k={},he={"max-width":null,"max-height":null,"min-width":null,"min-height":null};switch(l||""){case"":let ge=this.layoutConfig.useColumnBasisZero!==!1;l=c==="row"?"0%":ge?"0.000000001px":"auto";break;case"initial":case"nogrow":o=0,l="auto";break;case"grow":l="100%";break;case"noshrink":s=0,l="auto";break;case"auto":break;case"none":o=0,s=0,l="auto";break;default:!E&&!g&&!isNaN(l)&&(l=l+"%"),l==="0%"&&(E=!0),l==="0px"&&(l="0%"),m?k=ti(he,{"flex-grow":o,"flex-shrink":s,"flex-basis":E?l:"100%"}):k=ti(he,{flex:`${o} ${s} ${E?l:"100%"}`});break}return k.flex||k["flex-grow"]||(m?k=ti(he,{"flex-grow":o,"flex-shrink":s,"flex-basis":l}):k=ti(he,{flex:`${o} ${s} ${l}`})),l!=="0%"&&l!=="0px"&&l!=="0.000000001px"&&l!=="auto"&&(k[h]=D||E&&o?l:null,k[d]=D||!p&&s?l:null),!k[h]&&!k[d]?m?k=ti(he,{"flex-grow":o,"flex-shrink":s,"flex-basis":l}):k=ti(he,{flex:`${o} ${s} ${l}`}):r.hasWrap&&(k[m?"flex-basis":"flex"]=k[d]?m?k[d]:`${o} ${s} ${k[d]}`:m?k[h]:`${o} ${s} ${k[h]}`),ti(k,{"box-sizing":"border-box"})}};t.\u0275fac=function(r){return new(r||t)(S(ni))},t.\u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})(),YO=["fxFlex","fxFlex.xs","fxFlex.sm","fxFlex.md","fxFlex.lg","fxFlex.xl","fxFlex.lt-sm","fxFlex.lt-md","fxFlex.lt-lg","fxFlex.lt-xl","fxFlex.gt-xs","fxFlex.gt-sm","fxFlex.gt-md","fxFlex.gt-lg"],p3=(()=>{let t=class t extends fo{get shrink(){return this.flexShrink}set shrink(i){this.flexShrink=i||"1",this.triggerReflow()}get grow(){return this.flexGrow}set grow(i){this.flexGrow=i||"1",this.triggerReflow()}constructor(i,r,o,s,a){super(i,s,r,a),this.layoutConfig=o,this.marshal=a,this.DIRECTIVE_KEY="flex",this.inputs=YO,this.direction=void 0,this.wrap=void 0,this.flexGrow="1",this.flexShrink="1",this.init()}ngOnInit(){this.parentElement&&(this.marshal.trackValue(this.parentElement,"layout").pipe(Ee(this.destroySubject)).subscribe(this.onLayoutChange.bind(this)),this.marshal.trackValue(this.nativeElement,"layout-align").pipe(Ee(this.destroySubject)).subscribe(this.triggerReflow.bind(this)))}onLayoutChange(i){let o=i.value.split(" ");this.direction=o[0],this.wrap=o[1]!==void 0&&o[1]==="wrap",this.triggerUpdate()}updateWithValue(i){let r=this.layoutConfig.addFlexToParent!==!1;this.direction===void 0&&(this.direction=this.getFlexFlowDirection(this.parentElement,r)),this.wrap===void 0&&(this.wrap=this.hasWrap(this.parentElement));let o=this.direction,s=o.startsWith("row"),a=this.wrap;s&&a?this.styleCache=y3:s&&!a?this.styleCache=m3:!s&&a?this.styleCache=v3:!s&&!a&&(this.styleCache=g3);let l=String(i).replace(";",""),c=OC(l,this.flexGrow,this.flexShrink);this.addStyles(c.join(" "),{direction:o,hasWrap:a})}triggerReflow(){let i=this.activatedValue;if(i!==void 0){let r=OC(i+"",this.flexGrow,this.flexShrink);this.marshal.updateElement(this.nativeElement,this.DIRECTIVE_KEY,r.join(" "))}}};t.\u0275fac=function(r){return new(r||t)(T(H),T(mr),T(ni),T(h3),T(uo))},t.\u0275dir=j({type:t,selectors:[["","fxFlex",""],["","fxFlex.xs",""],["","fxFlex.sm",""],["","fxFlex.md",""],["","fxFlex.lg",""],["","fxFlex.xl",""],["","fxFlex.lt-sm",""],["","fxFlex.lt-md",""],["","fxFlex.lt-lg",""],["","fxFlex.lt-xl",""],["","fxFlex.gt-xs",""],["","fxFlex.gt-sm",""],["","fxFlex.gt-md",""],["","fxFlex.gt-lg",""]],inputs:{fxFlex:"fxFlex","fxFlex.xs":"fxFlex.xs","fxFlex.sm":"fxFlex.sm","fxFlex.md":"fxFlex.md","fxFlex.lg":"fxFlex.lg","fxFlex.xl":"fxFlex.xl","fxFlex.lt-sm":"fxFlex.lt-sm","fxFlex.lt-md":"fxFlex.lt-md","fxFlex.lt-lg":"fxFlex.lt-lg","fxFlex.lt-xl":"fxFlex.lt-xl","fxFlex.gt-xs":"fxFlex.gt-xs","fxFlex.gt-sm":"fxFlex.gt-sm","fxFlex.gt-md":"fxFlex.gt-md","fxFlex.gt-lg":"fxFlex.gt-lg",shrink:[0,"fxShrink","shrink"],grow:[0,"fxGrow","grow"]},features:[fe]});let n=t;return n})(),QO=(()=>{let t=class t extends p3{constructor(){super(...arguments),this.inputs=YO}};t.\u0275fac=(()=>{let i;return function(o){return(i||(i=Ve(t)))(o||t)}})(),t.\u0275dir=j({type:t,selectors:[["","fxFlex",""],["","fxFlex.xs",""],["","fxFlex.sm",""],["","fxFlex.md",""],["","fxFlex.lg",""],["","fxFlex.xl",""],["","fxFlex.lt-sm",""],["","fxFlex.lt-md",""],["","fxFlex.lt-lg",""],["","fxFlex.lt-xl",""],["","fxFlex.gt-xs",""],["","fxFlex.gt-sm",""],["","fxFlex.gt-md",""],["","fxFlex.gt-lg",""]],inputs:{fxFlex:"fxFlex","fxFlex.xs":"fxFlex.xs","fxFlex.sm":"fxFlex.sm","fxFlex.md":"fxFlex.md","fxFlex.lg":"fxFlex.lg","fxFlex.xl":"fxFlex.xl","fxFlex.lt-sm":"fxFlex.lt-sm","fxFlex.lt-md":"fxFlex.lt-md","fxFlex.lt-lg":"fxFlex.lt-lg","fxFlex.lt-xl":"fxFlex.lt-xl","fxFlex.gt-xs":"fxFlex.gt-xs","fxFlex.gt-sm":"fxFlex.gt-sm","fxFlex.gt-md":"fxFlex.gt-md","fxFlex.gt-lg":"fxFlex.gt-lg"},features:[fe]});let n=t;return n})(),m3=new Map,g3=new Map,y3=new Map,v3=new Map,_3=(()=>{let t=class t extends Ni{buildStyles(i,r){let o={},[s,a]=i.split(" ");switch(s){case"center":o["justify-content"]="center";break;case"space-around":o["justify-content"]="space-around";break;case"space-between":o["justify-content"]="space-between";break;case"space-evenly":o["justify-content"]="space-evenly";break;case"end":case"flex-end":o["justify-content"]="flex-end";break;case"start":case"flex-start":default:o["justify-content"]="flex-start";break}switch(a){case"start":case"flex-start":o["align-items"]=o["align-content"]="flex-start";break;case"center":o["align-items"]=o["align-content"]="center";break;case"end":case"flex-end":o["align-items"]=o["align-content"]="flex-end";break;case"space-between":o["align-content"]="space-between",o["align-items"]="stretch";break;case"space-around":o["align-content"]="space-around",o["align-items"]="stretch";break;case"baseline":o["align-content"]="stretch",o["align-items"]="baseline";break;case"stretch":default:o["align-items"]=o["align-content"]="stretch";break}return ti(o,{display:r.inline?"inline-flex":"flex","flex-direction":r.layout,"box-sizing":"border-box","max-width":a==="stretch"?jd(r.layout)?null:"100%":null,"max-height":a==="stretch"&&jd(r.layout)?"100%":null})}};t.\u0275fac=(()=>{let i;return function(o){return(i||(i=Ve(t)))(o||t)}})(),t.\u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})(),ZO=["fxLayoutAlign","fxLayoutAlign.xs","fxLayoutAlign.sm","fxLayoutAlign.md","fxLayoutAlign.lg","fxLayoutAlign.xl","fxLayoutAlign.lt-sm","fxLayoutAlign.lt-md","fxLayoutAlign.lt-lg","fxLayoutAlign.lt-xl","fxLayoutAlign.gt-xs","fxLayoutAlign.gt-sm","fxLayoutAlign.gt-md","fxLayoutAlign.gt-lg"],b3=(()=>{let t=class t extends fo{constructor(i,r,o,s){super(i,o,r,s),this.DIRECTIVE_KEY="layout-align",this.inputs=ZO,this.layout="row",this.inline=!1,this.init(),this.marshal.trackValue(this.nativeElement,"layout").pipe(Ee(this.destroySubject)).subscribe(this.onLayoutChange.bind(this))}updateWithValue(i){let r=this.layout||"row",o=this.inline;r==="row"&&o?this.styleCache=D3:r==="row"&&!o?this.styleCache=x3:r==="row-reverse"&&o?this.styleCache=I3:r==="row-reverse"&&!o?this.styleCache=E3:r==="column"&&o?this.styleCache=S3:r==="column"&&!o?this.styleCache=C3:r==="column-reverse"&&o?this.styleCache=A3:r==="column-reverse"&&!o&&(this.styleCache=w3),this.addStyles(i,{layout:r,inline:o})}onLayoutChange(i){let r=i.value.split(" ");this.layout=r[0],this.inline=i.value.includes("inline"),Pd.find(o=>o===this.layout)||(this.layout="row"),this.triggerUpdate()}};t.\u0275fac=function(r){return new(r||t)(T(H),T(mr),T(_3),T(uo))},t.\u0275dir=j({type:t,selectors:[["","fxLayoutAlign",""],["","fxLayoutAlign.xs",""],["","fxLayoutAlign.sm",""],["","fxLayoutAlign.md",""],["","fxLayoutAlign.lg",""],["","fxLayoutAlign.xl",""],["","fxLayoutAlign.lt-sm",""],["","fxLayoutAlign.lt-md",""],["","fxLayoutAlign.lt-lg",""],["","fxLayoutAlign.lt-xl",""],["","fxLayoutAlign.gt-xs",""],["","fxLayoutAlign.gt-sm",""],["","fxLayoutAlign.gt-md",""],["","fxLayoutAlign.gt-lg",""]],inputs:{fxLayoutAlign:"fxLayoutAlign","fxLayoutAlign.xs":"fxLayoutAlign.xs","fxLayoutAlign.sm":"fxLayoutAlign.sm","fxLayoutAlign.md":"fxLayoutAlign.md","fxLayoutAlign.lg":"fxLayoutAlign.lg","fxLayoutAlign.xl":"fxLayoutAlign.xl","fxLayoutAlign.lt-sm":"fxLayoutAlign.lt-sm","fxLayoutAlign.lt-md":"fxLayoutAlign.lt-md","fxLayoutAlign.lt-lg":"fxLayoutAlign.lt-lg","fxLayoutAlign.lt-xl":"fxLayoutAlign.lt-xl","fxLayoutAlign.gt-xs":"fxLayoutAlign.gt-xs","fxLayoutAlign.gt-sm":"fxLayoutAlign.gt-sm","fxLayoutAlign.gt-md":"fxLayoutAlign.gt-md","fxLayoutAlign.gt-lg":"fxLayoutAlign.gt-lg"},features:[fe]});let n=t;return n})(),XO=(()=>{let t=class t extends b3{constructor(){super(...arguments),this.inputs=ZO}};t.\u0275fac=(()=>{let i;return function(o){return(i||(i=Ve(t)))(o||t)}})(),t.\u0275dir=j({type:t,selectors:[["","fxLayoutAlign",""],["","fxLayoutAlign.xs",""],["","fxLayoutAlign.sm",""],["","fxLayoutAlign.md",""],["","fxLayoutAlign.lg",""],["","fxLayoutAlign.xl",""],["","fxLayoutAlign.lt-sm",""],["","fxLayoutAlign.lt-md",""],["","fxLayoutAlign.lt-lg",""],["","fxLayoutAlign.lt-xl",""],["","fxLayoutAlign.gt-xs",""],["","fxLayoutAlign.gt-sm",""],["","fxLayoutAlign.gt-md",""],["","fxLayoutAlign.gt-lg",""]],inputs:{fxLayoutAlign:"fxLayoutAlign","fxLayoutAlign.xs":"fxLayoutAlign.xs","fxLayoutAlign.sm":"fxLayoutAlign.sm","fxLayoutAlign.md":"fxLayoutAlign.md","fxLayoutAlign.lg":"fxLayoutAlign.lg","fxLayoutAlign.xl":"fxLayoutAlign.xl","fxLayoutAlign.lt-sm":"fxLayoutAlign.lt-sm","fxLayoutAlign.lt-md":"fxLayoutAlign.lt-md","fxLayoutAlign.lt-lg":"fxLayoutAlign.lt-lg","fxLayoutAlign.lt-xl":"fxLayoutAlign.lt-xl","fxLayoutAlign.gt-xs":"fxLayoutAlign.gt-xs","fxLayoutAlign.gt-sm":"fxLayoutAlign.gt-sm","fxLayoutAlign.gt-md":"fxLayoutAlign.gt-md","fxLayoutAlign.gt-lg":"fxLayoutAlign.gt-lg"},features:[fe]});let n=t;return n})(),x3=new Map,C3=new Map,E3=new Map,w3=new Map,D3=new Map,S3=new Map,I3=new Map,A3=new Map,JO={"margin-left":null,"margin-right":null,"margin-top":null,"margin-bottom":null},T3=(()=>{let t=class t extends Ni{constructor(i,r){super(),this._styler=i,this._config=r}buildStyles(i,r){return i.endsWith(gm)?(i=i.slice(0,i.indexOf(gm)),i=mm(i,this._config.multiplier),L3(i,r.directionality)):{}}sideEffect(i,r,o){let s=o.items;if(i.endsWith(gm)){i=i.slice(0,i.indexOf(gm)),i=mm(i,this._config.multiplier);let a=k3(i,o.directionality);this._styler.applyStyleToElements(a,o.items)}else{i=mm(i,this._config.multiplier),i=this.addFallbackUnit(i);let a=s.pop(),l=P3(i,o);this._styler.applyStyleToElements(l,s),this._styler.applyStyleToElements(JO,[a])}}addFallbackUnit(i){return isNaN(+i)?i:`${i}${this._config.defaultUnit}`}};t.\u0275fac=function(r){return new(r||t)(S(mr),S(ni))},t.\u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})(),eN=["fxLayoutGap","fxLayoutGap.xs","fxLayoutGap.sm","fxLayoutGap.md","fxLayoutGap.lg","fxLayoutGap.xl","fxLayoutGap.lt-sm","fxLayoutGap.lt-md","fxLayoutGap.lt-lg","fxLayoutGap.lt-xl","fxLayoutGap.gt-xs","fxLayoutGap.gt-sm","fxLayoutGap.gt-md","fxLayoutGap.gt-lg"],M3=(()=>{let t=class t extends fo{get childrenNodes(){let i=this.nativeElement.children,r=[];for(let o=i.length;o--;)r[o]=i[o];return r}constructor(i,r,o,s,a,l){super(i,a,s,l),this.zone=r,this.directionality=o,this.styleUtils=s,this.layout="row",this.DIRECTIVE_KEY="layout-gap",this.inputs=eN,this.observerSubject=new M;let c=[this.directionality.change,this.observerSubject.asObservable()];this.init(c),this.marshal.trackValue(this.nativeElement,"layout").pipe(Ee(this.destroySubject)).subscribe(this.onLayoutChange.bind(this))}ngAfterContentInit(){this.buildChildObservable(),this.triggerUpdate()}ngOnDestroy(){super.ngOnDestroy(),this.observer&&this.observer.disconnect()}onLayoutChange(i){let o=i.value.split(" ")[0];Pd.find(s=>s===o)||(o="row"),this.layout&&this.layout!==o&&this.clearStyles(),this.layout=o,this.triggerUpdate()}updateWithValue(i){let r=this.childrenNodes.filter(o=>o.nodeType===1&&this.willDisplay(o)).sort((o,s)=>{let a=+this.styler.lookupStyle(o,"order"),l=+this.styler.lookupStyle(s,"order");return isNaN(a)||isNaN(l)||a===l?0:a>l?1:-1});if(r.length>0){let o=this.directionality.value,s=this.layout;s==="row"&&o==="rtl"?this.styleCache=R3:s==="row"&&o!=="rtl"?this.styleCache=N3:s==="column"&&o==="rtl"?this.styleCache=O3:s==="column"&&o!=="rtl"&&(this.styleCache=F3),this.addStyles(i,{directionality:o,items:r,layout:s})}}clearStyles(){let i=Object.keys(this.mru).length>0,r=i?"padding":nN(this.directionality.value,this.layout);i&&super.clearStyles(),this.styleUtils.applyStyleToElements({[r]:""},this.childrenNodes)}willDisplay(i){let r=this.marshal.getValue(i,"show-hide");return r===!0||r===void 0&&this.styleUtils.lookupStyle(i,"display")!=="none"}buildChildObservable(){this.zone.runOutsideAngular(()=>{typeof MutationObserver<"u"&&(this.observer=new MutationObserver(i=>{let r=o=>o.addedNodes&&o.addedNodes.length>0||o.removedNodes&&o.removedNodes.length>0;i.some(r)&&this.observerSubject.next()}),this.observer.observe(this.nativeElement,{childList:!0}))})}};t.\u0275fac=function(r){return new(r||t)(T(H),T(P),T(Nt),T(mr),T(T3),T(uo))},t.\u0275dir=j({type:t,selectors:[["","fxLayoutGap",""],["","fxLayoutGap.xs",""],["","fxLayoutGap.sm",""],["","fxLayoutGap.md",""],["","fxLayoutGap.lg",""],["","fxLayoutGap.xl",""],["","fxLayoutGap.lt-sm",""],["","fxLayoutGap.lt-md",""],["","fxLayoutGap.lt-lg",""],["","fxLayoutGap.lt-xl",""],["","fxLayoutGap.gt-xs",""],["","fxLayoutGap.gt-sm",""],["","fxLayoutGap.gt-md",""],["","fxLayoutGap.gt-lg",""]],inputs:{fxLayoutGap:"fxLayoutGap","fxLayoutGap.xs":"fxLayoutGap.xs","fxLayoutGap.sm":"fxLayoutGap.sm","fxLayoutGap.md":"fxLayoutGap.md","fxLayoutGap.lg":"fxLayoutGap.lg","fxLayoutGap.xl":"fxLayoutGap.xl","fxLayoutGap.lt-sm":"fxLayoutGap.lt-sm","fxLayoutGap.lt-md":"fxLayoutGap.lt-md","fxLayoutGap.lt-lg":"fxLayoutGap.lt-lg","fxLayoutGap.lt-xl":"fxLayoutGap.lt-xl","fxLayoutGap.gt-xs":"fxLayoutGap.gt-xs","fxLayoutGap.gt-sm":"fxLayoutGap.gt-sm","fxLayoutGap.gt-md":"fxLayoutGap.gt-md","fxLayoutGap.gt-lg":"fxLayoutGap.gt-lg"},features:[fe]});let n=t;return n})(),tN=(()=>{let t=class t extends M3{constructor(){super(...arguments),this.inputs=eN}};t.\u0275fac=(()=>{let i;return function(o){return(i||(i=Ve(t)))(o||t)}})(),t.\u0275dir=j({type:t,selectors:[["","fxLayoutGap",""],["","fxLayoutGap.xs",""],["","fxLayoutGap.sm",""],["","fxLayoutGap.md",""],["","fxLayoutGap.lg",""],["","fxLayoutGap.xl",""],["","fxLayoutGap.lt-sm",""],["","fxLayoutGap.lt-md",""],["","fxLayoutGap.lt-lg",""],["","fxLayoutGap.lt-xl",""],["","fxLayoutGap.gt-xs",""],["","fxLayoutGap.gt-sm",""],["","fxLayoutGap.gt-md",""],["","fxLayoutGap.gt-lg",""]],inputs:{fxLayoutGap:"fxLayoutGap","fxLayoutGap.xs":"fxLayoutGap.xs","fxLayoutGap.sm":"fxLayoutGap.sm","fxLayoutGap.md":"fxLayoutGap.md","fxLayoutGap.lg":"fxLayoutGap.lg","fxLayoutGap.xl":"fxLayoutGap.xl","fxLayoutGap.lt-sm":"fxLayoutGap.lt-sm","fxLayoutGap.lt-md":"fxLayoutGap.lt-md","fxLayoutGap.lt-lg":"fxLayoutGap.lt-lg","fxLayoutGap.lt-xl":"fxLayoutGap.lt-xl","fxLayoutGap.gt-xs":"fxLayoutGap.gt-xs","fxLayoutGap.gt-sm":"fxLayoutGap.gt-sm","fxLayoutGap.gt-md":"fxLayoutGap.gt-md","fxLayoutGap.gt-lg":"fxLayoutGap.gt-lg"},features:[fe]});let n=t;return n})(),R3=new Map,O3=new Map,N3=new Map,F3=new Map,gm=" grid";j3=(()=>{let t=class t extends Ni{buildStyles(i,{display:r}){let o=pm(i);return J(b({},o),{display:r==="none"?r:o.display})}};t.\u0275fac=(()=>{let i;return function(o){return(i||(i=Ve(t)))(o||t)}})(),t.\u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})(),iN=["fxLayout","fxLayout.xs","fxLayout.sm","fxLayout.md","fxLayout.lg","fxLayout.xl","fxLayout.lt-sm","fxLayout.lt-md","fxLayout.lt-lg","fxLayout.lt-xl","fxLayout.gt-xs","fxLayout.gt-sm","fxLayout.gt-md","fxLayout.gt-lg"],V3=(()=>{let t=class t extends fo{constructor(i,r,o,s,a){super(i,o,r,s),this._config=a,this.DIRECTIVE_KEY="layout",this.inputs=iN,this.init()}updateWithValue(i){let o=this._config.detectLayoutDisplay?this.styler.lookupStyle(this.nativeElement,"display"):"";this.styleCache=KO.get(o)??new Map,KO.set(o,this.styleCache),this.currentValue!==i&&(this.addStyles(i,{display:o}),this.currentValue=i)}};t.\u0275fac=function(r){return new(r||t)(T(H),T(mr),T(j3),T(uo),T(ni))},t.\u0275dir=j({type:t,selectors:[["","fxLayout",""],["","fxLayout.xs",""],["","fxLayout.sm",""],["","fxLayout.md",""],["","fxLayout.lg",""],["","fxLayout.xl",""],["","fxLayout.lt-sm",""],["","fxLayout.lt-md",""],["","fxLayout.lt-lg",""],["","fxLayout.lt-xl",""],["","fxLayout.gt-xs",""],["","fxLayout.gt-sm",""],["","fxLayout.gt-md",""],["","fxLayout.gt-lg",""]],inputs:{fxLayout:"fxLayout","fxLayout.xs":"fxLayout.xs","fxLayout.sm":"fxLayout.sm","fxLayout.md":"fxLayout.md","fxLayout.lg":"fxLayout.lg","fxLayout.xl":"fxLayout.xl","fxLayout.lt-sm":"fxLayout.lt-sm","fxLayout.lt-md":"fxLayout.lt-md","fxLayout.lt-lg":"fxLayout.lt-lg","fxLayout.lt-xl":"fxLayout.lt-xl","fxLayout.gt-xs":"fxLayout.gt-xs","fxLayout.gt-sm":"fxLayout.gt-sm","fxLayout.gt-md":"fxLayout.gt-md","fxLayout.gt-lg":"fxLayout.gt-lg"},features:[fe]});let n=t;return n})(),rN=(()=>{let t=class t extends V3{constructor(){super(...arguments),this.inputs=iN}};t.\u0275fac=(()=>{let i;return function(o){return(i||(i=Ve(t)))(o||t)}})(),t.\u0275dir=j({type:t,selectors:[["","fxLayout",""],["","fxLayout.xs",""],["","fxLayout.sm",""],["","fxLayout.md",""],["","fxLayout.lg",""],["","fxLayout.xl",""],["","fxLayout.lt-sm",""],["","fxLayout.lt-md",""],["","fxLayout.lt-lg",""],["","fxLayout.lt-xl",""],["","fxLayout.gt-xs",""],["","fxLayout.gt-sm",""],["","fxLayout.gt-md",""],["","fxLayout.gt-lg",""]],inputs:{fxLayout:"fxLayout","fxLayout.xs":"fxLayout.xs","fxLayout.sm":"fxLayout.sm","fxLayout.md":"fxLayout.md","fxLayout.lg":"fxLayout.lg","fxLayout.xl":"fxLayout.xl","fxLayout.lt-sm":"fxLayout.lt-sm","fxLayout.lt-md":"fxLayout.lt-md","fxLayout.lt-lg":"fxLayout.lt-lg","fxLayout.lt-xl":"fxLayout.lt-xl","fxLayout.gt-xs":"fxLayout.gt-xs","fxLayout.gt-sm":"fxLayout.gt-sm","fxLayout.gt-md":"fxLayout.gt-md","fxLayout.gt-lg":"fxLayout.gt-lg"},features:[fe]});let n=t;return n})(),KO=new Map,kC=(()=>{let t=class t{};t.\u0275fac=function(r){return new(r||t)},t.\u0275mod=L({type:t}),t.\u0275inj=F({imports:[sl,Ti]});let n=t;return n})()});var LC,PC=f(()=>{"use strict";_();ho();LC=(()=>{let t=class t{};t.\u0275fac=function(r){return new(r||t)},t.\u0275mod=L({type:t}),t.\u0275inj=F({imports:[sl]});let n=t;return n})()});function U3(n,t=[]){let e=[{provide:ni,useValue:b(b({},RC),n)},{provide:MC,useValue:t,multi:!0}];return n.serverLoaded&&e.push({provide:Bd,useValue:!0}),e}var cl,Mme,vm=f(()=>{"use strict";ho();ho();ll();ll();ym();ym();PC();PC();Le();_();_();cl=(()=>{let t=class t{static withConfig(i,r=[]){return{ngModule:t,providers:U3(i,r)}}constructor(i,r){Uc(r)&&!i&&console.warn("Warning: Flex Layout loaded on the server without FlexLayoutServerModule")}};t.\u0275fac=function(r){return new(r||t)(S(Bd),S(fn))},t.\u0275mod=L({type:t}),t.\u0275inj=F({imports:[kC,NC,LC,kC,NC,LC]});let n=t;return n})(),Mme=new Xr("20.0.1")});function H3(n,t){if(n&1&&(I(0,"mat-option",12),se(1),R()),n&2){let e=t.$implicit;A("value",e),C(),Je(" ",e.voiceName," ")}}function z3(n,t){if(n&1&&(I(0,"mat-icon"),se(1),R()),n&2){let e=W();C(),Je(" ",e.isPlaying?"stop":"volume_up"," ")}}function $3(n,t){n&1&&ce(0,"mat-spinner",13),n&2&&A("diameter",15)}var oN,sN=f(()=>{"use strict";Le();_();to();En();dr();CR();we();Wp();co();Ld();hm();vm();Dt();_();Le();to();co();hm();Ld();ll();Dt();oN=(()=>{var t;let e=class e{constructor(){tt(this,t);this.maxCharLength=1e3,kt(this,t,u(xR))}get hasOverflow(){let r=document.querySelector("textarea");return r?.clientHeight<r?.scrollHeight}ngOnInit(){this.selected=this.voices[0]}togglePlay(){if(this.isPlaying){this.stop();return}this.isLoading=!0;let r=this.text.length>this.maxCharLength?this.text.substring(0,this.maxCharLength):this.text;if(this.audio&&r===this.previousText&&this.selected.voice===this.previousVoice){this.audio.play(),this.isPlaying=!0,this.isLoading=!1;return}ye(this,t).play(r,this.selected).pipe(ln(()=>{this.isLoading=!1})).subscribe({next:o=>{this.previousText=r,this.previousVoice=this.selected.voice;let s=URL.createObjectURL(o);this.audio=new Audio(s),this.audio.play(),this.isPlaying=!0,this.audio.onended=()=>{URL.revokeObjectURL(s),this.isPlaying=!1}}})}stop(){this.audio&&(this.audio.pause(),this.audio.currentTime=0,this.isPlaying=!1)}};t=new WeakMap,e.\u0275fac=function(o){return new(o||e)},e.\u0275cmp=$({type:e,selectors:[["lib-text-to-speech"]],inputs:{maxCharLength:"maxCharLength",voices:"voices"},decls:19,vars:23,consts:[[1,"text-to-speech-wrapper",3,"ngClass.lt-md"],["appearance","outline","color","accent"],[3,"valueChange","value"],[3,"value",4,"ngFor","ngForOf"],[1,"text-to-speech-textarea-wrapper"],[1,"text-to-speech-textarea",3,"ngModelChange","ngModel","placeholder"],[1,"text-to-speech-characters"],[1,"text-to-speech-actions"],[3,"matTooltip"],["mat-icon-button","",3,"click","matTooltip","disabled"],[4,"ngIf"],[3,"diameter",4,"ngIf"],[3,"value"],[3,"diameter"]],template:function(o,s){o&1&&(I(0,"div",0)(1,"mat-form-field",1)(2,"mat-label"),se(3),ae(4,"translate"),R(),I(5,"mat-select",2),cs("valueChange",function(l){return Oa(s.selected,l)||(s.selected=l),l}),Te(6,H3,2,2,"mat-option",3),R()(),I(7,"div",4)(8,"textarea",5),ae(9,"translate"),cs("ngModelChange",function(l){return Oa(s.text,l)||(s.text=l),l}),R(),I(10,"div",6),se(11),R()(),I(12,"div",7)(13,"div",8),ae(14,"translate"),I(15,"button",9),ae(16,"translate"),te("click",function(){return s.togglePlay()}),Te(17,z3,2,1,"mat-icon",10)(18,$3,1,1,"mat-spinner",11),R()()()()),o&2&&(A("ngClass.lt-md","mobile"),C(3),ht(pe(4,15,"selectVoice")),C(2),ls("value",s.selected),C(),A("ngForOf",s.voices),C(2),ls("ngModel",s.text),A("placeholder",pe(9,17,"placeholder")),C(2),ne("text-overflow",s.hasOverflow),C(),Ph(" ",(s.text==null?null:s.text.length)??0,"/",s.maxCharLength," "),C(2),A("matTooltip",s.text?"":pe(14,19,"playDisabled")),C(2),A("matTooltip",pe(16,21,s.isPlaying?"stop":"play"))("disabled",!s.text||s.isLoading),C(2),A("ngIf",!s.isLoading),C(),A("ngIf",s.isLoading))},dependencies:[hn,Fa,Xi,vs,Ri,Ep,Wa,qa,cd,Gp,As,fr,Nd,Ms,Ts,kd,Fd,hr,cl,al,Di,wt],styles:[".text-to-speech-wrapper[_ngcontent-%COMP%]{margin-top:5px;position:relative;display:flex;flex-direction:column;align-items:center}.text-to-speech-wrapper[_ngcontent-%COMP%] mat-form-field[_ngcontent-%COMP%]{max-width:900px!important;width:100%}.text-to-speech-textarea-wrapper[_ngcontent-%COMP%], .text-to-speech-textarea[_ngcontent-%COMP%]{position:relative;width:100%;max-width:900px}.text-to-speech-textarea-wrapper[_ngcontent-%COMP%]{border:1px solid var(--base-70);padding:5px;border-radius:8px;box-shadow:0 0 16px #0000001a}.text-to-speech-textarea[_ngcontent-%COMP%]{margin:15px 0;padding:0 10px;min-height:120px;resize:none;outline:none;border:none}.text-to-speech-actions[_ngcontent-%COMP%]{position:absolute;bottom:-20px}.text-to-speech-actions[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{display:flex;justify-content:center;color:var(--base-100)!important;background-color:var(--accent)}.text-to-speech-actions[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:disabled{background-color:var(--base-70)}.text-to-speech-actions[_ngcontent-%COMP%] button[_ngcontent-%COMP%] mat-spinner[_ngcontent-%COMP%]{scale:1.2}.text-to-speech-characters[_ngcontent-%COMP%]{position:absolute;right:10px;bottom:0;margin:5px;font-size:.8125rem;color:var(--base-65)}.text-overflow[_ngcontent-%COMP%]{right:30px}.mobile[_ngcontent-%COMP%] .text-overflow[_ngcontent-%COMP%]{right:15px}"]});let n=e;return n})()});var aN=f(()=>{"use strict"});var lN=f(()=>{"use strict";aN()});var cN=f(()=>{"use strict";sN();lN()});var dN,uN=f(()=>{"use strict";dN={en:{selectVoice:"Demo voices (currently only for Latvian language)",placeholder:'Enter text to listen to a demonstration of the text-to-speech technology. Remember, this service can only be used in accordance with its terms of use (see the "Frequently asked questions" section). It is not permitted to use this service for texts that contain offensive, indecent, defamatory, misleading, hateful, or discriminatory statements. Violation of the terms of use may result in liability as stipulated by the laws of the Republic of Latvia. A maximum of 1000 characters will be spoken.',playDisabled:"Enter text to play",play:"Play",stop:"Stop"},lv:{selectVoice:"Demo balsis (\u0161obr\u012Bd tikai Latvie\u0161u valod\u0101)",placeholder:"Ievadi tekstu, lai noklaus\u012Btos balss sint\u0113zes tehnolo\u0123ijas demonstr\u0101ciju. Atceries, ka \u0161o pakalpojumu var lietot tikai atbilsto\u0161i t\u0101 lieto\u0161anas noteikumiem (skat\u012Bt sada\u013Cu \u201CBie\u017E\u0101k uzdotie jaut\u0101jumi\u201D)! To nav at\u013Cauts izmantot tekstiem, kas satur aizskaro\u0161us, nepiekl\u0101j\u012Bgus, apmelojo\u0161us, maldino\u0161us, naidu vai diskrimin\u0101ciju veicino\u0161us apgalvojumus. Par lieto\u0161anas noteikumu p\u0101rk\u0101pumu var iest\u0101ties LR likumos noteikt\u0101 atbild\u012Bba. Tiks izrun\u0101ti ne vair\u0101k k\u0101 1000 simboli.",playDisabled:"Ievadi tekstu, lai atska\u0146ot to",play:"Atska\u0146ot",stop:"Apst\u0101din\u0101t",voice:"Balss {{nth}}"}}});var _m,jC=f(()=>{"use strict";gx();cN();uN();_();_m=(()=>{let t=class t extends sp{set voices(i){this._voices=typeof i=="string"?JSON.parse(i):i}set maxCharLength(i){this._maxCharLength=+i}get voices(){return this._voices}get maxCharLength(){return this._maxCharLength}constructor(){super(dN),this._maxCharLength=500}};t.\u0275fac=function(r){return new(r||t)},t.\u0275cmp=$({type:t,selectors:[["app-text-to-speech"]],inputs:{voices:"voices",maxCharLength:"maxCharLength"},features:[fe],decls:1,vars:2,consts:[[3,"voices","maxCharLength"]],template:function(r,o){r&1&&ce(0,"lib-text-to-speech",0),r&2&&A("voices",o.voices)("maxCharLength",o.maxCharLength)},dependencies:[oN],encapsulation:2});let n=t;return n})()});var tn,bm=f(()=>{"use strict";tn=(function(n){return n.SUMMARY="SUMMARY",n.REPHRASE="REPHRASE",n})(tn||{})});function G3(n,t){}function Y3(n){let t=Ae(n),e=new z;return{valueSignal:t,get value(){return t()},change:e,ngOnDestroy(){e.complete()}}}function VC(n,t){let e=n.length;for(;e--;)t(n[e])}var po,BC,Ud,W3,q3,K3,UC,fN,hN=f(()=>{"use strict";_();_();we();Td();Gx();kx();sr();hd();oo();it();mC();Mp();wd();po=class{viewContainerRef;injector;id;role="dialog";panelClass="";hasBackdrop=!0;backdropClass="";disableClose=!1;closePredicate;width="";height="";minWidth;minHeight;maxWidth;maxHeight;positionStrategy;data=null;direction;ariaDescribedBy=null;ariaLabelledBy=null;ariaLabel=null;ariaModal=!1;autoFocus="first-tabbable";restoreFocus=!0;scrollStrategy;closeOnNavigation=!0;closeOnDestroy=!0;closeOnOverlayDetachments=!0;disableAnimations=!1;providers;container;templateContext},BC=(()=>{class n extends el{_elementRef=u(H);_focusTrapFactory=u(zx);_config;_interactivityChecker=u(Hx);_ngZone=u(P);_focusMonitor=u(ms);_renderer=u(rt);_changeDetectorRef=u(mt);_injector=u(G);_platform=u(Ue);_document=u(U);_portalOutlet;_focusTrapped=new M;_focusTrap=null;_elementFocusedBeforeDialogWasOpened=null;_closeInteractionType=null;_ariaLabelledByQueue=[];_isDestroyed=!1;constructor(){super(),this._config=u(po,{optional:!0})||new po,this._config.ariaLabelledBy&&this._ariaLabelledByQueue.push(this._config.ariaLabelledBy)}_addAriaLabelledBy(e){this._ariaLabelledByQueue.push(e),this._changeDetectorRef.markForCheck()}_removeAriaLabelledBy(e){let i=this._ariaLabelledByQueue.indexOf(e);i>-1&&(this._ariaLabelledByQueue.splice(i,1),this._changeDetectorRef.markForCheck())}_contentAttached(){this._initializeFocusTrap(),this._captureInitialFocus()}_captureInitialFocus(){this._trapFocus()}ngOnDestroy(){this._focusTrapped.complete(),this._isDestroyed=!0,this._restoreFocus()}attachComponentPortal(e){this._portalOutlet.hasAttached();let i=this._portalOutlet.attachComponentPortal(e);return this._contentAttached(),i}attachTemplatePortal(e){this._portalOutlet.hasAttached();let i=this._portalOutlet.attachTemplatePortal(e);return this._contentAttached(),i}attachDomPortal=e=>{this._portalOutlet.hasAttached();let i=this._portalOutlet.attachDomPortal(e);return this._contentAttached(),i};_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(e,i){this._interactivityChecker.isFocusable(e)||(e.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{let r=()=>{o(),s(),e.removeAttribute("tabindex")},o=this._renderer.listen(e,"blur",r),s=this._renderer.listen(e,"mousedown",r)})),e.focus(i)}_focusByCssSelector(e,i){let r=this._elementRef.nativeElement.querySelector(e);r&&this._forceFocus(r,i)}_trapFocus(e){this._isDestroyed||Qt(()=>{let i=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||i.focus(e);break;case!0:case"first-tabbable":this._focusTrap?.focusInitialElement(e)||this._focusDialogContainer(e);break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]',e);break;default:this._focusByCssSelector(this._config.autoFocus,e);break}this._focusTrapped.next()},{injector:this._injector})}_restoreFocus(){let e=this._config.restoreFocus,i=null;if(typeof e=="string"?i=this._document.querySelector(e):typeof e=="boolean"?i=e?this._elementFocusedBeforeDialogWasOpened:null:e&&(i=e),this._config.restoreFocus&&i&&typeof i.focus=="function"){let r=fd(),o=this._elementRef.nativeElement;(!r||r===this._document.body||r===o||o.contains(r))&&(this._focusMonitor?(this._focusMonitor.focusVia(i,this._closeInteractionType),this._closeInteractionType=null):i.focus())}this._focusTrap&&this._focusTrap.destroy()}_focusDialogContainer(e){this._elementRef.nativeElement.focus?.(e)}_containsFocus(){let e=this._elementRef.nativeElement,i=fd();return e===i||e.contains(i)}_initializeFocusTrap(){this._platform.isBrowser&&(this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=fd()))}static \u0275fac=function(i){return new(i||n)};static \u0275cmp=$({type:n,selectors:[["cdk-dialog-container"]],viewQuery:function(i,r){if(i&1&&Be(Ad,7),i&2){let o;be(o=xe())&&(r._portalOutlet=o.first)}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(i,r){i&2&&De("id",r._config.id||null)("role",r._config.role)("aria-modal",r._config.ariaModal)("aria-labelledby",r._config.ariaLabel?null:r._ariaLabelledByQueue[0])("aria-label",r._config.ariaLabel)("aria-describedby",r._config.ariaDescribedBy||null)},features:[fe],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(i,r){i&1&&Te(0,G3,0,0,"ng-template",0)},dependencies:[Ad],styles:[`.cdk-dialog-container{display:block;width:100%;height:100%;min-height:inherit;max-height:inherit}
27
27
  `],encapsulation:2})}return n})(),Ud=class{overlayRef;config;componentInstance;componentRef;containerInstance;disableClose;closed=new M;backdropClick;keydownEvents;outsidePointerEvents;id;_detachSubscription;constructor(t,e){this.overlayRef=t,this.config=e,this.disableClose=e.disableClose,this.backdropClick=t.backdropClick(),this.keydownEvents=t.keydownEvents(),this.outsidePointerEvents=t.outsidePointerEvents(),this.id=e.id,this.keydownEvents.subscribe(i=>{i.keyCode===27&&!this.disableClose&&!Ht(i)&&(i.preventDefault(),this.close(void 0,{focusOrigin:"keyboard"}))}),this.backdropClick.subscribe(()=>{!this.disableClose&&this._canClose()?this.close(void 0,{focusOrigin:"mouse"}):this.containerInstance._recaptureFocus?.()}),this._detachSubscription=t.detachments().subscribe(()=>{e.closeOnOverlayDetachments!==!1&&this.close()})}close(t,e){if(this._canClose(t)){let i=this.closed;this.containerInstance._closeInteractionType=e?.focusOrigin||"program",this._detachSubscription.unsubscribe(),this.overlayRef.dispose(),i.next(t),i.complete(),this.componentInstance=this.containerInstance=null}}updatePosition(){return this.overlayRef.updatePosition(),this}updateSize(t="",e=""){return this.overlayRef.updateSize({width:t,height:e}),this}addPanelClass(t){return this.overlayRef.addPanelClass(t),this}removePanelClass(t){return this.overlayRef.removePanelClass(t),this}_canClose(t){let e=this.config;return!!this.containerInstance&&(!e.closePredicate||e.closePredicate(t,e,this.componentInstance))}},W3=new x("DialogScrollStrategy",{providedIn:"root",factory:()=>{let n=u(G);return()=>il(n)}}),q3=new x("DialogData"),K3=new x("DefaultDialogConfig");UC=(()=>{class n{_injector=u(G);_defaultOptions=u(K3,{optional:!0});_parentDialog=u(n,{optional:!0,skipSelf:!0});_overlayContainer=u(em);_idGenerator=u(en);_openDialogsAtThisLevel=[];_afterAllClosedAtThisLevel=new M;_afterOpenedAtThisLevel=new M;_ariaHiddenElements=new Map;_scrollStrategy=u(W3);get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}afterAllClosed=on(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(Gt(void 0)));constructor(){}open(e,i){let r=this._defaultOptions||new po;i=b(b({},r),i),i.id=i.id||this._idGenerator.getId("cdk-dialog-"),i.id&&this.getDialogById(i.id);let o=this._getOverlayConfig(i),s=Is(this._injector,o),a=new Ud(s,i),l=this._attachContainer(s,a,i);if(a.containerInstance=l,!this.openDialogs.length){let c=this._overlayContainer.getContainerElement();l._focusTrapped?l._focusTrapped.pipe(He(1)).subscribe(()=>{this._hideNonDialogContentFromAssistiveTechnology(c)}):this._hideNonDialogContentFromAssistiveTechnology(c)}return this._attachDialogContent(e,a,l,i),this.openDialogs.push(a),a.closed.subscribe(()=>this._removeOpenDialog(a,!0)),this.afterOpened.next(a),a}closeAll(){VC(this.openDialogs,e=>e.close())}getDialogById(e){return this.openDialogs.find(i=>i.id===e)}ngOnDestroy(){VC(this._openDialogsAtThisLevel,e=>{e.config.closeOnDestroy===!1&&this._removeOpenDialog(e,!1)}),VC(this._openDialogsAtThisLevel,e=>e.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[]}_getOverlayConfig(e){let i=new Ds({positionStrategy:e.positionStrategy||rl().centerHorizontally().centerVertically(),scrollStrategy:e.scrollStrategy||this._scrollStrategy(),panelClass:e.panelClass,hasBackdrop:e.hasBackdrop,direction:e.direction,minWidth:e.minWidth,minHeight:e.minHeight,maxWidth:e.maxWidth,maxHeight:e.maxHeight,width:e.width,height:e.height,disposeOnNavigation:e.closeOnNavigation,disableAnimations:e.disableAnimations});return e.backdropClass&&(i.backdropClass=e.backdropClass),i}_attachContainer(e,i,r){let o=r.injector||r.viewContainerRef?.injector,s=[{provide:po,useValue:r},{provide:Ud,useValue:i},{provide:tl,useValue:e}],a;r.container?typeof r.container=="function"?a=r.container:(a=r.container.type,s.push(...r.container.providers(r))):a=BC;let l=new lo(a,r.viewContainerRef,G.create({parent:o||this._injector,providers:s}));return e.attach(l).instance}_attachDialogContent(e,i,r,o){if(e instanceof un){let s=this._createInjector(o,i,r,void 0),a={$implicit:o.data,dialogRef:i};o.templateContext&&(a=b(b({},a),typeof o.templateContext=="function"?o.templateContext():o.templateContext)),r.attachTemplatePortal(new Cs(e,null,a,s))}else{let s=this._createInjector(o,i,r,this._injector),a=r.attachComponentPortal(new lo(e,o.viewContainerRef,s));i.componentRef=a,i.componentInstance=a.instance}}_createInjector(e,i,r,o){let s=e.injector||e.viewContainerRef?.injector,a=[{provide:q3,useValue:e.data},{provide:Ud,useValue:i}];return e.providers&&(typeof e.providers=="function"?a.push(...e.providers(i,e,r)):a.push(...e.providers)),e.direction&&(!s||!s.get(Nt,null,{optional:!0}))&&a.push({provide:Nt,useValue:Y3(e.direction)}),G.create({parent:s||o,providers:a})}_removeOpenDialog(e,i){let r=this.openDialogs.indexOf(e);r>-1&&(this.openDialogs.splice(r,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((o,s)=>{o?s.setAttribute("aria-hidden",o):s.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),i&&this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(e){if(e.parentElement){let i=e.parentElement.children;for(let r=i.length-1;r>-1;r--){let o=i[r];o!==e&&o.nodeName!=="SCRIPT"&&o.nodeName!=="STYLE"&&!o.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(o,o.getAttribute("aria-hidden")),o.setAttribute("aria-hidden","true"))}}}_getAfterAllClosed(){let e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}static \u0275fac=function(i){return new(i||n)};static \u0275prov=v({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();fN=(()=>{class n{static \u0275fac=function(i){return new(i||n)};static \u0275mod=L({type:n});static \u0275inj=F({providers:[UC],imports:[ur,Es,yd,Es]})}return n})()});function Q3(n,t){}function yN(n){return n==null?null:typeof n=="number"?n:n.endsWith("ms")?io(n.substring(0,n.length-2)):n.endsWith("s")?io(n.substring(0,n.length-1))*1e3:n==="0"?0:null}function zC(n,t,e){return n._closeInteractionType=t,n.close(e)}function CN(n,t){let e=n.nativeElement.parentElement;for(;e&&!e.classList.contains("mat-mdc-dialog-container");)e=e.parentElement;return e?t.find(i=>i.id===e.id):null}var zd,HC,pN,mN,Z3,X3,vN,gN,Hd,dl,ul,_N,bN,mo,$d,xN,Gd,Wd,qd,Os,EN=f(()=>{"use strict";hN();nm();Td();_();_();xd();Ai();we();it();oo();ar();Ja();ei();zd=class{viewContainerRef;injector;id;role="dialog";panelClass="";hasBackdrop=!0;backdropClass="";disableClose=!1;closePredicate;width="";height="";minWidth;minHeight;maxWidth;maxHeight;position;data=null;direction;ariaDescribedBy=null;ariaLabelledBy=null;ariaLabel=null;ariaModal=!1;autoFocus="first-tabbable";restoreFocus=!0;delayFocusTrap=!0;scrollStrategy;closeOnNavigation=!0;enterAnimationDuration;exitAnimationDuration},HC="mdc-dialog--open",pN="mdc-dialog--opening",mN="mdc-dialog--closing",Z3=150,X3=75,vN=(()=>{class n extends BC{_animationStateChanged=new z;_animationsEnabled=!St();_actionSectionCount=0;_hostElement=this._elementRef.nativeElement;_enterAnimationDuration=this._animationsEnabled?yN(this._config.enterAnimationDuration)??Z3:0;_exitAnimationDuration=this._animationsEnabled?yN(this._config.exitAnimationDuration)??X3:0;_animationTimer=null;_contentAttached(){super._contentAttached(),this._startOpenAnimation()}_startOpenAnimation(){this._animationStateChanged.emit({state:"opening",totalTime:this._enterAnimationDuration}),this._animationsEnabled?(this._hostElement.style.setProperty(gN,`${this._enterAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(pN,HC)),this._waitForAnimationToComplete(this._enterAnimationDuration,this._finishDialogOpen)):(this._hostElement.classList.add(HC),Promise.resolve().then(()=>this._finishDialogOpen()))}_startExitAnimation(){this._animationStateChanged.emit({state:"closing",totalTime:this._exitAnimationDuration}),this._hostElement.classList.remove(HC),this._animationsEnabled?(this._hostElement.style.setProperty(gN,`${this._exitAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(mN)),this._waitForAnimationToComplete(this._exitAnimationDuration,this._finishDialogClose)):Promise.resolve().then(()=>this._finishDialogClose())}_updateActionSectionCount(e){this._actionSectionCount+=e,this._changeDetectorRef.markForCheck()}_finishDialogOpen=()=>{this._clearAnimationClasses(),this._openAnimationDone(this._enterAnimationDuration)};_finishDialogClose=()=>{this._clearAnimationClasses(),this._animationStateChanged.emit({state:"closed",totalTime:this._exitAnimationDuration})};_clearAnimationClasses(){this._hostElement.classList.remove(pN,mN)}_waitForAnimationToComplete(e,i){this._animationTimer!==null&&clearTimeout(this._animationTimer),this._animationTimer=setTimeout(i,e)}_requestAnimationFrame(e){this._ngZone.runOutsideAngular(()=>{typeof requestAnimationFrame=="function"?requestAnimationFrame(e):e()})}_captureInitialFocus(){this._config.delayFocusTrap||this._trapFocus()}_openAnimationDone(e){this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:e})}ngOnDestroy(){super.ngOnDestroy(),this._animationTimer!==null&&clearTimeout(this._animationTimer)}attachComponentPortal(e){let i=super.attachComponentPortal(e);return i.location.nativeElement.classList.add("mat-mdc-dialog-component-host"),i}static \u0275fac=(()=>{let e;return function(r){return(e||(e=Ve(n)))(r||n)}})();static \u0275cmp=$({type:n,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-mdc-dialog-container","mdc-dialog"],hostVars:10,hostBindings:function(i,r){i&2&&(Qi("id",r._config.id),De("aria-modal",r._config.ariaModal)("role",r._config.role)("aria-labelledby",r._config.ariaLabel?null:r._ariaLabelledByQueue[0])("aria-label",r._config.ariaLabel)("aria-describedby",r._config.ariaDescribedBy||null),ne("_mat-animation-noopable",!r._animationsEnabled)("mat-mdc-dialog-container-with-actions",r._actionSectionCount>0))},features:[fe],decls:3,vars:0,consts:[[1,"mat-mdc-dialog-inner-container","mdc-dialog__container"],[1,"mat-mdc-dialog-surface","mdc-dialog__surface"],["cdkPortalOutlet",""]],template:function(i,r){i&1&&(I(0,"div",0)(1,"div",1),Te(2,Q3,0,0,"ng-template",2),R()())},dependencies:[Ad],styles:[`.mat-mdc-dialog-container{width:100%;height:100%;display:block;box-sizing:border-box;max-height:inherit;min-height:inherit;min-width:inherit;max-width:inherit;outline:0}.cdk-overlay-pane.mat-mdc-dialog-panel{max-width:var(--mat-dialog-container-max-width, 560px);min-width:var(--mat-dialog-container-min-width, 280px)}@media(max-width: 599px){.cdk-overlay-pane.mat-mdc-dialog-panel{max-width:var(--mat-dialog-container-small-max-width, calc(100vw - 32px))}}.mat-mdc-dialog-inner-container{display:flex;flex-direction:row;align-items:center;justify-content:space-around;box-sizing:border-box;height:100%;opacity:0;transition:opacity linear var(--mat-dialog-transition-duration, 0ms);max-height:inherit;min-height:inherit;min-width:inherit;max-width:inherit}.mdc-dialog--closing .mat-mdc-dialog-inner-container{transition:opacity 75ms linear;transform:none}.mdc-dialog--open .mat-mdc-dialog-inner-container{opacity:1}._mat-animation-noopable .mat-mdc-dialog-inner-container{transition:none}.mat-mdc-dialog-surface{display:flex;flex-direction:column;flex-grow:0;flex-shrink:0;box-sizing:border-box;width:100%;height:100%;position:relative;overflow-y:auto;outline:0;transform:scale(0.8);transition:transform var(--mat-dialog-transition-duration, 0ms) cubic-bezier(0, 0, 0.2, 1);max-height:inherit;min-height:inherit;min-width:inherit;max-width:inherit;box-shadow:var(--mat-dialog-container-elevation-shadow, none);border-radius:var(--mat-dialog-container-shape, var(--mat-sys-corner-extra-large, 4px));background-color:var(--mat-dialog-container-color, var(--mat-sys-surface, white))}[dir=rtl] .mat-mdc-dialog-surface{text-align:right}.mdc-dialog--open .mat-mdc-dialog-surface,.mdc-dialog--closing .mat-mdc-dialog-surface{transform:none}._mat-animation-noopable .mat-mdc-dialog-surface{transition:none}.mat-mdc-dialog-surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:2px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}.mat-mdc-dialog-title{display:block;position:relative;flex-shrink:0;box-sizing:border-box;margin:0 0 1px;padding:var(--mat-dialog-headline-padding, 6px 24px 13px)}.mat-mdc-dialog-title::before{display:inline-block;width:0;height:40px;content:"";vertical-align:0}[dir=rtl] .mat-mdc-dialog-title{text-align:right}.mat-mdc-dialog-container .mat-mdc-dialog-title{color:var(--mat-dialog-subhead-color, var(--mat-sys-on-surface, rgba(0, 0, 0, 0.87)));font-family:var(--mat-dialog-subhead-font, var(--mat-sys-headline-small-font, inherit));line-height:var(--mat-dialog-subhead-line-height, var(--mat-sys-headline-small-line-height, 1.5rem));font-size:var(--mat-dialog-subhead-size, var(--mat-sys-headline-small-size, 1rem));font-weight:var(--mat-dialog-subhead-weight, var(--mat-sys-headline-small-weight, 400));letter-spacing:var(--mat-dialog-subhead-tracking, var(--mat-sys-headline-small-tracking, 0.03125em))}.mat-mdc-dialog-content{display:block;flex-grow:1;box-sizing:border-box;margin:0;overflow:auto;max-height:65vh}.mat-mdc-dialog-content>:first-child{margin-top:0}.mat-mdc-dialog-content>:last-child{margin-bottom:0}.mat-mdc-dialog-container .mat-mdc-dialog-content{color:var(--mat-dialog-supporting-text-color, var(--mat-sys-on-surface-variant, rgba(0, 0, 0, 0.6)));font-family:var(--mat-dialog-supporting-text-font, var(--mat-sys-body-medium-font, inherit));line-height:var(--mat-dialog-supporting-text-line-height, var(--mat-sys-body-medium-line-height, 1.5rem));font-size:var(--mat-dialog-supporting-text-size, var(--mat-sys-body-medium-size, 1rem));font-weight:var(--mat-dialog-supporting-text-weight, var(--mat-sys-body-medium-weight, 400));letter-spacing:var(--mat-dialog-supporting-text-tracking, var(--mat-sys-body-medium-tracking, 0.03125em))}.mat-mdc-dialog-container .mat-mdc-dialog-content{padding:var(--mat-dialog-content-padding, 20px 24px)}.mat-mdc-dialog-container-with-actions .mat-mdc-dialog-content{padding:var(--mat-dialog-with-actions-content-padding, 20px 24px 0)}.mat-mdc-dialog-container .mat-mdc-dialog-title+.mat-mdc-dialog-content{padding-top:0}.mat-mdc-dialog-actions{display:flex;position:relative;flex-shrink:0;flex-wrap:wrap;align-items:center;box-sizing:border-box;min-height:52px;margin:0;border-top:1px solid rgba(0,0,0,0);padding:var(--mat-dialog-actions-padding, 16px 24px);justify-content:var(--mat-dialog-actions-alignment, flex-end)}@media(forced-colors: active){.mat-mdc-dialog-actions{border-top-color:CanvasText}}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-start,.mat-mdc-dialog-actions[align=start]{justify-content:start}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-center,.mat-mdc-dialog-actions[align=center]{justify-content:center}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-end,.mat-mdc-dialog-actions[align=end]{justify-content:flex-end}.mat-mdc-dialog-actions .mat-button-base+.mat-button-base,.mat-mdc-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-mdc-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-mdc-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}.mat-mdc-dialog-component-host{display:contents}
28
- `],encapsulation:2})}return n})(),gN="--mat-dialog-transition-duration";Hd=(function(n){return n[n.OPEN=0]="OPEN",n[n.CLOSING=1]="CLOSING",n[n.CLOSED=2]="CLOSED",n})(Hd||{}),dl=class{_ref;_config;_containerInstance;componentInstance;componentRef;disableClose;id;_afterOpened=new M;_beforeClosed=new M;_result;_closeFallbackTimeout;_state=Hd.OPEN;_closeInteractionType;constructor(t,e,i){this._ref=t,this._config=e,this._containerInstance=i,this.disableClose=e.disableClose,this.id=t.id,t.addPanelClass("mat-mdc-dialog-panel"),i._animationStateChanged.pipe(ue(r=>r.state==="opened"),He(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),i._animationStateChanged.pipe(ue(r=>r.state==="closed"),He(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),t.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose()}),sn(this.backdropClick(),this.keydownEvents().pipe(ue(r=>r.keyCode===27&&!this.disableClose&&!Ht(r)))).subscribe(r=>{this.disableClose||(r.preventDefault(),zC(this,r.type==="keydown"?"keyboard":"mouse"))})}close(t){let e=this._config.closePredicate;e&&!e(t,this._config,this.componentInstance)||(this._result=t,this._containerInstance._animationStateChanged.pipe(ue(i=>i.state==="closing"),He(1)).subscribe(i=>{this._beforeClosed.next(t),this._beforeClosed.complete(),this._ref.overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),i.totalTime+100)}),this._state=Hd.CLOSING,this._containerInstance._startExitAnimation())}afterOpened(){return this._afterOpened}afterClosed(){return this._ref.closed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._ref.backdropClick}keydownEvents(){return this._ref.keydownEvents}updatePosition(t){let e=this._ref.config.positionStrategy;return t&&(t.left||t.right)?t.left?e.left(t.left):e.right(t.right):e.centerHorizontally(),t&&(t.top||t.bottom)?t.top?e.top(t.top):e.bottom(t.bottom):e.centerVertically(),this._ref.updatePosition(),this}updateSize(t="",e=""){return this._ref.updateSize(t,e),this}addPanelClass(t){return this._ref.addPanelClass(t),this}removePanelClass(t){return this._ref.removePanelClass(t),this}getState(){return this._state}_finishDialogClose(){this._state=Hd.CLOSED,this._ref.close(this._result,{focusOrigin:this._closeInteractionType}),this.componentInstance=null}};ul=new x("MatMdcDialogData"),_N=new x("mat-mdc-dialog-default-options"),bN=new x("mat-mdc-dialog-scroll-strategy",{providedIn:"root",factory:()=>{let n=u(G);return()=>il(n)}}),mo=(()=>{class n{_defaultOptions=u(_N,{optional:!0});_scrollStrategy=u(bN);_parentDialog=u(n,{optional:!0,skipSelf:!0});_idGenerator=u(en);_injector=u(G);_dialog=u(UC);_animationsDisabled=St();_openDialogsAtThisLevel=[];_afterAllClosedAtThisLevel=new M;_afterOpenedAtThisLevel=new M;dialogConfigClass=zd;_dialogRefConstructor;_dialogContainerType;_dialogDataToken;get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){let e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}afterAllClosed=on(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(Gt(void 0)));constructor(){this._dialogRefConstructor=dl,this._dialogContainerType=vN,this._dialogDataToken=ul}open(e,i){let r;i=b(b({},this._defaultOptions||new zd),i),i.id=i.id||this._idGenerator.getId("mat-mdc-dialog-"),i.scrollStrategy=i.scrollStrategy||this._scrollStrategy();let o=this._dialog.open(e,J(b({},i),{positionStrategy:rl(this._injector).centerHorizontally().centerVertically(),disableClose:!0,closePredicate:void 0,closeOnDestroy:!1,closeOnOverlayDetachments:!1,disableAnimations:this._animationsDisabled||i.enterAnimationDuration?.toLocaleString()==="0"||i.exitAnimationDuration?.toString()==="0",container:{type:this._dialogContainerType,providers:()=>[{provide:this.dialogConfigClass,useValue:i},{provide:po,useValue:i}]},templateContext:()=>({dialogRef:r}),providers:(s,a,l)=>(r=new this._dialogRefConstructor(s,i,l),r.updatePosition(i?.position),[{provide:this._dialogContainerType,useValue:l},{provide:this._dialogDataToken,useValue:a.data},{provide:this._dialogRefConstructor,useValue:r}])}));return r.componentRef=o.componentRef,r.componentInstance=o.componentInstance,this.openDialogs.push(r),this.afterOpened.next(r),r.afterClosed().subscribe(()=>{let s=this.openDialogs.indexOf(r);s>-1&&(this.openDialogs.splice(s,1),this.openDialogs.length||this._getAfterAllClosed().next())}),r}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(e){return this.openDialogs.find(i=>i.id===e)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_closeDialogs(e){let i=e.length;for(;i--;)e[i].close()}static \u0275fac=function(i){return new(i||n)};static \u0275prov=v({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})(),$d=(()=>{class n{dialogRef=u(dl,{optional:!0});_elementRef=u(H);_dialog=u(mo);ariaLabel;type="button";dialogResult;_matDialogClose;constructor(){}ngOnInit(){this.dialogRef||(this.dialogRef=CN(this._elementRef,this._dialog.openDialogs))}ngOnChanges(e){let i=e._matDialogClose||e._matDialogCloseResult;i&&(this.dialogResult=i.currentValue)}_onButtonClick(e){zC(this.dialogRef,e.screenX===0&&e.screenY===0?"keyboard":"mouse",this.dialogResult)}static \u0275fac=function(i){return new(i||n)};static \u0275dir=j({type:n,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(i,r){i&1&&te("click",function(s){return r._onButtonClick(s)}),i&2&&De("aria-label",r.ariaLabel||null)("type",r.type)},inputs:{ariaLabel:[0,"aria-label","ariaLabel"],type:"type",dialogResult:[0,"mat-dialog-close","dialogResult"],_matDialogClose:[0,"matDialogClose","_matDialogClose"]},exportAs:["matDialogClose"],features:[je]})}return n})(),xN=(()=>{class n{_dialogRef=u(dl,{optional:!0});_elementRef=u(H);_dialog=u(mo);constructor(){}ngOnInit(){this._dialogRef||(this._dialogRef=CN(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{this._onAdd()})}ngOnDestroy(){this._dialogRef?._containerInstance&&Promise.resolve().then(()=>{this._onRemove()})}static \u0275fac=function(i){return new(i||n)};static \u0275dir=j({type:n})}return n})(),Gd=(()=>{class n extends xN{id=u(en).getId("mat-mdc-dialog-title-");_onAdd(){this._dialogRef._containerInstance?._addAriaLabelledBy?.(this.id)}_onRemove(){this._dialogRef?._containerInstance?._removeAriaLabelledBy?.(this.id)}static \u0275fac=(()=>{let e;return function(r){return(e||(e=Ve(n)))(r||n)}})();static \u0275dir=j({type:n,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-mdc-dialog-title","mdc-dialog__title"],hostVars:1,hostBindings:function(i,r){i&2&&Qi("id",r.id)},inputs:{id:"id"},exportAs:["matDialogTitle"],features:[fe]})}return n})(),Wd=(()=>{class n{static \u0275fac=function(i){return new(i||n)};static \u0275dir=j({type:n,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-mdc-dialog-content","mdc-dialog__content"],features:[J_([dC])]})}return n})(),qd=(()=>{class n extends xN{align;_onAdd(){this._dialogRef._containerInstance?._updateActionSectionCount?.(1)}_onRemove(){this._dialogRef._containerInstance?._updateActionSectionCount?.(-1)}static \u0275fac=(()=>{let e;return function(r){return(e||(e=Ve(n)))(r||n)}})();static \u0275dir=j({type:n,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-mdc-dialog-actions","mdc-dialog__actions"],hostVars:6,hostBindings:function(i,r){i&2&&ne("mat-mdc-dialog-actions-align-start",r.align==="start")("mat-mdc-dialog-actions-align-center",r.align==="center")("mat-mdc-dialog-actions-align-end",r.align==="end")},inputs:{align:"align"},features:[fe]})}return n})();Os=(()=>{class n{static \u0275fac=function(i){return new(i||n)};static \u0275mod=L({type:n});static \u0275inj=F({providers:[mo],imports:[fN,ur,Es,qe,qe]})}return n})()});var go=f(()=>{"use strict";EN()});var Kd,xm,GC,Cm,fl,wN,Ye,DN,Ns=f(()=>{"use strict";Qc();_();_();we();Kd=new x("ngx-tld-services Api service configuration."),xm=class{#e;constructor(t){this.http=u(nr),this.#e=u(Kd);let e=t(this.#e);if(!e)throw new Error(`${Object.getPrototypeOf(this).constructor.name} is created, but no service configuration defined in 'SERVICE_CONFIGURATION_TOKEN'. Config: ${JSON.stringify(this.#e)}`);this.configuration=e,this.sharedServiceConfiguration=this.#e.sharedConfiguration}},GC=(function(n){return n.Event="Event",n.General="General",n.Meeting="Meeting",n.TranscriptEditor="TranscriptEditor",n.TranscriptCleanup="TranscriptCleanup",n})(GC||{}),Cm=(function(n){return n.Event="Event",n.General="General",n.Meeting="Meeting",n.MeetingBrief="MeetingBrief",n.Brief="Brief",n})(Cm||{}),fl=class{static xAppIdHeader(t){return{"X-App-Id":t}}},wN=(()=>{var t;let e=class e extends xm{constructor(){super(o=>o.llmService);tt(this,t,u(nr))}rephrase(o){let s=fl.xAppIdHeader(this.sharedServiceConfiguration.xAppId);return ye(this,t).post(`${this.configuration.url}/rewrite`,o,{responseType:"text",headers:s})}summarize(o){let s=fl.xAppIdHeader(this.sharedServiceConfiguration.xAppId);return ye(this,t).post(`${this.configuration.url}/summarize/`,o,{responseType:"text",headers:s})}customPrompt(o){let s=fl.xAppIdHeader(this.sharedServiceConfiguration.xAppId);return ye(this,t).post(`${this.configuration.url}/custom-prompt/`,o,{responseType:"text",headers:s})}};t=new WeakMap,e.\u0275fac=function(s){return new(s||e)},e.\u0275prov=v({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})(),Ye=(function(n){return n.TRANSLATION_FILES="FileTranslationFiles",n.ASR_FILE_LENGTH_SECONDS="AsrFileLengthSeconds",n.ASR_FILE_SIZE_KB="AsrFileSizeKb",n.ONLINE_ASR_USED_SECONDS="OnlineAsrUsedSeconds",n.TRANSLATION_CHARACTERS="TranslationCharacters",n.TRANSLATION_DOCUMENTS="TranslationDocuments",n.LLM_CHARACTER_COUNT="LlmCharacterCount",n.LLM_REQUESTS="LlmRequests",n.TTS_CHARACTERS="TtsCharacters",n.ANONYMISE_WORDS="AnonymiseWords",n.ANONYMISE_DOCUMENTS="AnonymiseDocuments",n[n.LEGACY_TRANSLATION_FILES=0]="LEGACY_TRANSLATION_FILES",n[n.LEGACY_ASR_FILE_LENGTH_SECONDS=1]="LEGACY_ASR_FILE_LENGTH_SECONDS",n[n.LEGACY_ASR_FILE_SIZE_KB=2]="LEGACY_ASR_FILE_SIZE_KB",n[n.LEGACY_ONLINE_ASR_USED_SECONDS=3]="LEGACY_ONLINE_ASR_USED_SECONDS",n[n.LEGACY_TRANSLATION_CHARACTERS=4]="LEGACY_TRANSLATION_CHARACTERS",n[n.LEGACY_TRANSLATION_DOCUMENTS=5]="LEGACY_TRANSLATION_DOCUMENTS",n[n.LEGACY_LLM_CHARACTER_COUNT=6]="LEGACY_LLM_CHARACTER_COUNT",n[n.LEGACY_LLM_REQUESTS=7]="LEGACY_LLM_REQUESTS",n[n.LEGACY_TTS_CHARACTERS=8]="LEGACY_TTS_CHARACTERS",n[n.LEGACY_ANONYMISE_WORDS=9]="LEGACY_ANONYMISE_WORDS",n[n.LEGACY_ANONYMISE_DOCUMENTS=10]="LEGACY_ANONYMISE_DOCUMENTS",n})(Ye||{}),DN=(()=>{let t=class t extends xm{constructor(){super(i=>i.quotaService),this.legacyQuotaTypeMap={[Ye.LEGACY_TRANSLATION_FILES]:Ye.TRANSLATION_FILES,[Ye.LEGACY_ASR_FILE_LENGTH_SECONDS]:Ye.ASR_FILE_LENGTH_SECONDS,[Ye.LEGACY_ASR_FILE_SIZE_KB]:Ye.ASR_FILE_SIZE_KB,[Ye.LEGACY_ONLINE_ASR_USED_SECONDS]:Ye.ONLINE_ASR_USED_SECONDS,[Ye.LEGACY_TRANSLATION_CHARACTERS]:Ye.TRANSLATION_CHARACTERS,[Ye.LEGACY_TRANSLATION_DOCUMENTS]:Ye.TRANSLATION_DOCUMENTS,[Ye.LEGACY_LLM_CHARACTER_COUNT]:Ye.LLM_CHARACTER_COUNT,[Ye.LEGACY_LLM_REQUESTS]:Ye.LLM_REQUESTS,[Ye.LEGACY_TTS_CHARACTERS]:Ye.TTS_CHARACTERS,[Ye.LEGACY_ANONYMISE_WORDS]:Ye.ANONYMISE_WORDS,[Ye.LEGACY_ANONYMISE_DOCUMENTS]:Ye.ANONYMISE_DOCUMENTS}}getQuotaUsage(){let i=fl.xAppIdHeader(this.sharedServiceConfiguration.xAppId);return this.http.get(this.configuration.url,{headers:i}).pipe(V(r=>(r.usage.forEach(o=>{this.legacyQuotaTypeMap[o.quotaType]&&(o.quotaType=this.legacyQuotaTypeMap[o.quotaType])}),r)))}};t.\u0275fac=function(r){return new(r||t)},t.\u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})()});var IN,AN=f(()=>{"use strict";IN={SMALL:600,MEDIUM:960,LARGE:1280,XLARGE:1920}});var TN=f(()=>{"use strict"});var WC,MN=f(()=>{"use strict";WC=(function(n){return n[n.TIMEOUT=504]="TIMEOUT",n})(WC||{})});var qC=f(()=>{"use strict";AN();TN();MN()});var RN,ON=f(()=>{"use strict";_();dr();Xc();RN=(()=>{let t=class t{constructor(i,r){this.iconRegistry=i,this.sanitizer=r}registerIcons(i){for(let r in i)this.iconRegistry.addSvgIconLiteral(r.toLowerCase(),this.sanitizer.bypassSecurityTrustHtml(i[r]))}registerIconFromUrl(i,r){this.iconRegistry.addSvgIcon(i,this.sanitizer.bypassSecurityTrustResourceUrl(r))}addSvgIconSet(i,r){r?this.iconRegistry.addSvgIconSetInNamespace(r,this.sanitizer.bypassSecurityTrustResourceUrl(i)):this.iconRegistry.addSvgIconSet(this.sanitizer.bypassSecurityTrustResourceUrl(i))}};t.\u0275fac=function(r){return new(r||t)(S(zp),S(Zc))},t.\u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})()});var NN=f(()=>{"use strict";ON()});var J3,e8,FN,kN=f(()=>{"use strict";_();J3=typeof localStorage<"u"?localStorage:null,e8=typeof window<"u"?window:null,FN=(()=>{let t=class t{get window(){return e8}get localStorage(){return J3}};t.\u0275fac=function(r){return new(r||t)},t.\u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})()});var LN=f(()=>{"use strict";kN()});function _l(n){return new XC(n)}function t8(n,t,e){let i=e.path.split("/");if(i.length>n.length||e.pathMatch==="full"&&(t.hasChildren()||i.length<n.length))return null;let r={};for(let o=0;o<i.length;o++){let s=i[o],a=n[o];if(s[0]===":")r[s.substring(1)]=a;else if(s!==a.path)return null}return{consumed:n.slice(0,i.length),posParams:r}}function n8(n,t){if(n.length!==t.length)return!1;for(let e=0;e<n.length;++e)if(!Fi(n[e],t[e]))return!1;return!0}function Fi(n,t){let e=n?JC(n):void 0,i=t?JC(t):void 0;if(!e||!i||e.length!=i.length)return!1;let r;for(let o=0;o<e.length;o++)if(r=e[o],!$N(n[r],t[r]))return!1;return!0}function JC(n){return[...Object.keys(n),...Object.getOwnPropertySymbols(n)]}function $N(n,t){if(Array.isArray(n)&&Array.isArray(t)){if(n.length!==t.length)return!1;let e=[...n].sort(),i=[...t].sort();return e.every((r,o)=>i[o]===r)}else return n===t}function GN(n){return n.length>0?n[n.length-1]:null}function _r(n){return Vn(n)?n:Yr(n)?Pe(Promise.resolve(n)):N(n)}function PN(n,t,e){return i8[e.paths](n.root,t.root,e.matrixParams)&&WN[e.queryParams](n.queryParams,t.queryParams)&&!(e.fragment==="exact"&&n.fragment!==t.fragment)}function r8(n,t){return Fi(n,t)}function qN(n,t,e){if(!ks(n.segments,t.segments)||!Dm(n.segments,t.segments,e)||n.numberOfChildren!==t.numberOfChildren)return!1;for(let i in t.children)if(!n.children[i]||!qN(n.children[i],t.children[i],e))return!1;return!0}function o8(n,t){return Object.keys(t).length<=Object.keys(n).length&&Object.keys(t).every(e=>$N(n[e],t[e]))}function KN(n,t,e){return YN(n,t,t.segments,e)}function YN(n,t,e,i){if(n.segments.length>e.length){let r=n.segments.slice(0,e.length);return!(!ks(r,e)||t.hasChildren()||!Dm(r,e,i))}else if(n.segments.length===e.length){if(!ks(n.segments,e)||!Dm(n.segments,e,i))return!1;for(let r in t.children)if(!n.children[r]||!KN(n.children[r],t.children[r],i))return!1;return!0}else{let r=e.slice(0,n.segments.length),o=e.slice(n.segments.length);return!ks(n.segments,r)||!Dm(n.segments,r,i)||!n.children[de]?!1:YN(n.children[de],t,o,i)}}function Dm(n,t,e){return t.every((i,r)=>WN[e](n[r].parameters,i.parameters))}function s8(n,t){return ks(n,t)&&n.every((e,i)=>Fi(e.parameters,t[i].parameters))}function ks(n,t){return n.length!==t.length?!1:n.every((e,i)=>e.path===t[i].path)}function a8(n,t){let e=[];return Object.entries(n.children).forEach(([i,r])=>{i===de&&(e=e.concat(t(r,i)))}),Object.entries(n.children).forEach(([i,r])=>{i!==de&&(e=e.concat(t(r,i)))}),e}function Sm(n){return n.segments.map(t=>ZN(t)).join("/")}function Yd(n,t){if(!n.hasChildren())return Sm(n);if(t){let e=n.children[de]?Yd(n.children[de],!1):"",i=[];return Object.entries(n.children).forEach(([r,o])=>{r!==de&&i.push(`${r}:${Yd(o,!1)}`)}),i.length>0?`${e}(${i.join("//")})`:e}else{let e=a8(n,(i,r)=>r===de?[Yd(n.children[de],!1)]:[`${r}:${Yd(i,!1)}`]);return Object.keys(n.children).length===1&&n.children[de]!=null?`${Sm(n)}/${e[0]}`:`${Sm(n)}/(${e.join("//")})`}}function QN(n){return encodeURIComponent(n).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Em(n){return QN(n).replace(/%3B/gi,";")}function c8(n){return encodeURI(n)}function eE(n){return QN(n).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Im(n){return decodeURIComponent(n)}function jN(n){return Im(n.replace(/\+/g,"%20"))}function ZN(n){return`${eE(n.path)}${d8(n.parameters)}`}function d8(n){return Object.entries(n).map(([t,e])=>`;${eE(t)}=${eE(e)}`).join("")}function u8(n){let t=Object.entries(n).map(([e,i])=>Array.isArray(i)?i.map(r=>`${Em(e)}=${Em(r)}`).join("&"):`${Em(e)}=${Em(i)}`).filter(e=>e);return t.length?`?${t.join("&")}`:""}function KC(n){let t=n.match(f8);return t?t[0]:""}function p8(n){let t=n.match(h8);return t?t[0]:""}function g8(n){let t=n.match(m8);return t?t[0]:""}function v8(n){let t=n.match(y8);return t?t[0]:""}function XN(n){return n.segments.length>0?new Oe([],{[de]:n}):n}function JN(n){let t={};for(let[i,r]of Object.entries(n.children)){let o=JN(r);if(i===de&&o.segments.length===0&&o.hasChildren())for(let[s,a]of Object.entries(o.children))t[s]=a;else(o.segments.length>0||o.hasChildren())&&(t[i]=o)}let e=new Oe(n.segments,t);return _8(e)}function _8(n){if(n.numberOfChildren===1&&n.children[de]){let t=n.children[de];return new Oe(n.segments.concat(t.segments),t.children)}return n}function yo(n){return n instanceof yr}function b8(n,t,e=null,i=null){let r=eF(n);return tF(r,t,e,i)}function eF(n){let t;function e(o){let s={};for(let l of o.children){let c=e(l);s[l.outlet]=c}let a=new Oe(o.url,s);return o===n&&(t=a),a}let i=e(n.root),r=XN(i);return t??r}function tF(n,t,e,i){let r=n;for(;r.parent;)r=r.parent;if(t.length===0)return YC(r,r,r,e,i);let o=x8(t);if(o.toRoot())return YC(r,r,new Oe([],{}),e,i);let s=C8(o,r,n),a=s.processChildren?Zd(s.segmentGroup,s.index,o.commands):iF(s.segmentGroup,s.index,o.commands);return YC(r,s.segmentGroup,a,e,i)}function Am(n){return typeof n=="object"&&n!=null&&!n.outlets&&!n.segmentPath}function Jd(n){return typeof n=="object"&&n!=null&&n.outlets}function YC(n,t,e,i,r){let o={};i&&Object.entries(i).forEach(([l,c])=>{o[l]=Array.isArray(c)?c.map(d=>`${d}`):`${c}`});let s;n===t?s=e:s=nF(n,t,e);let a=XN(JN(s));return new yr(a,o,r)}function nF(n,t,e){let i={};return Object.entries(n.children).forEach(([r,o])=>{o===t?i[r]=e:i[r]=nF(o,t,e)}),new Oe(n.segments,i)}function x8(n){if(typeof n[0]=="string"&&n.length===1&&n[0]==="/")return new Tm(!0,0,n);let t=0,e=!1,i=n.reduce((r,o,s)=>{if(typeof o=="object"&&o!=null){if(o.outlets){let a={};return Object.entries(o.outlets).forEach(([l,c])=>{a[l]=typeof c=="string"?c.split("/"):c}),[...r,{outlets:a}]}if(o.segmentPath)return[...r,o.segmentPath]}return typeof o!="string"?[...r,o]:s===0?(o.split("/").forEach((a,l)=>{l==0&&a==="."||(l==0&&a===""?e=!0:a===".."?t++:a!=""&&r.push(a))}),r):[...r,o]},[]);return new Tm(e,t,i)}function C8(n,t,e){if(n.isAbsolute)return new ml(t,!0,0);if(!e)return new ml(t,!1,NaN);if(e.parent===null)return new ml(e,!0,0);let i=Am(n.commands[0])?0:1,r=e.segments.length-1+i;return E8(e,r,n.numberOfDoubleDots)}function E8(n,t,e){let i=n,r=t,o=e;for(;o>r;){if(o-=r,i=i.parent,!i)throw new w(4005,!1);r=i.segments.length}return new ml(i,!1,r-o)}function w8(n){return Jd(n[0])?n[0].outlets:{[de]:n}}function iF(n,t,e){if(n??=new Oe([],{}),n.segments.length===0&&n.hasChildren())return Zd(n,t,e);let i=D8(n,t,e),r=e.slice(i.commandIndex);if(i.match&&i.pathIndex<n.segments.length){let o=new Oe(n.segments.slice(0,i.pathIndex),{});return o.children[de]=new Oe(n.segments.slice(i.pathIndex),n.children),Zd(o,0,r)}else return i.match&&r.length===0?new Oe(n.segments,{}):i.match&&!n.hasChildren()?nE(n,t,e):i.match?Zd(n,0,r):nE(n,t,e)}function Zd(n,t,e){if(e.length===0)return new Oe(n.segments,{});{let i=w8(e),r={};if(Object.keys(i).some(o=>o!==de)&&n.children[de]&&n.numberOfChildren===1&&n.children[de].segments.length===0){let o=Zd(n.children[de],t,e);return new Oe(n.segments,o.children)}return Object.entries(i).forEach(([o,s])=>{typeof s=="string"&&(s=[s]),s!==null&&(r[o]=iF(n.children[o],t,s))}),Object.entries(n.children).forEach(([o,s])=>{i[o]===void 0&&(r[o]=s)}),new Oe(n.segments,r)}}function D8(n,t,e){let i=0,r=t,o={match:!1,pathIndex:0,commandIndex:0};for(;r<n.segments.length;){if(i>=e.length)return o;let s=n.segments[r],a=e[i];if(Jd(a))break;let l=`${a}`,c=i<e.length-1?e[i+1]:null;if(r>0&&l===void 0)break;if(l&&c&&typeof c=="object"&&c.outlets===void 0){if(!BN(l,c,s))return o;i+=2}else{if(!BN(l,{},s))return o;i++}r++}return{match:!0,pathIndex:r,commandIndex:i}}function nE(n,t,e){let i=n.segments.slice(0,t),r=0;for(;r<e.length;){let o=e[r];if(Jd(o)){let l=S8(o.outlets);return new Oe(i,l)}if(r===0&&Am(e[0])){let l=n.segments[t];i.push(new Fs(l.path,VN(e[0]))),r++;continue}let s=Jd(o)?o.outlets[de]:`${o}`,a=r<e.length-1?e[r+1]:null;s&&a&&Am(a)?(i.push(new Fs(s,VN(a))),r+=2):(i.push(new Fs(s,{})),r++)}return new Oe(i,{})}function S8(n){let t={};return Object.entries(n).forEach(([e,i])=>{typeof i=="string"&&(i=[i]),i!==null&&(t[e]=nE(new Oe([],{}),0,i))}),t}function VN(n){let t={};return Object.entries(n).forEach(([e,i])=>t[e]=`${i}`),t}function BN(n,t,e){return n==e.path&&Fi(t,e.parameters)}function I8(n){return!(n instanceof iu)&&!(n instanceof bl)}function A8(n,t){return n.providers&&!n._injector&&(n._injector=Aa(n.providers,t,`Route: ${n.path}`)),n._injector??t}function ii(n){return n.outlet||de}function T8(n,t){let e=n.filter(i=>ii(i)===t);return e.push(...n.filter(i=>ii(i)!==t)),e}function El(n){if(!n)return null;if(n.routeConfig?._injector)return n.routeConfig._injector;for(let t=n.parent;t;t=t.parent){let e=t.routeConfig;if(e?._loadedInjector)return e._loadedInjector;if(e?._injector)return e._injector}return null}function pE(n,t){if(n===t.value)return t;for(let e of t.children){let i=pE(n,e);if(i)return i}return null}function mE(n,t){if(n===t.value)return[t];for(let e of t.children){let i=mE(n,e);if(i.length)return i.unshift(t),i}return[]}function pl(n){let t={};return n&&n.children.forEach(e=>t[e.value.outlet]=e),t}function rF(n){let t=M8(n),e=new at([new Fs("",{})]),i=new at({}),r=new at({}),o=new at({}),s=new at(""),a=new vo(e,i,o,s,r,de,n,t.root);return a.snapshot=t.root,new Om(new wn(a,[]),t)}function M8(n){let t={},e={},i={},o=new yl([],t,i,"",e,de,n,null,{});return new Fm("",new wn(o,[]))}function Nm(n,t,e="emptyOnly"){let i,{routeConfig:r}=n;return t!==null&&(e==="always"||r?.path===""||!t.component&&!t.routeConfig?.loadComponent)?i={params:b(b({},t.params),n.params),data:b(b({},t.data),n.data),resolve:b(b(b(b({},n.data),t.data),r?.data),n._resolvedData)}:i={params:b({},n.params),data:b({},n.data),resolve:b(b({},n.data),n._resolvedData??{})},r&&sF(r)&&(i.resolve[lu]=r.title),i}function wE(n,t){t.value._routerState=n,t.children.forEach(e=>wE(n,e))}function oF(n){let t=n.children.length>0?` { ${n.children.map(oF).join(", ")} } `:"";return`${n.value}${t}`}function QC(n){if(n.snapshot){let t=n.snapshot,e=n._futureSnapshot;n.snapshot=e,Fi(t.queryParams,e.queryParams)||n.queryParamsSubject.next(e.queryParams),t.fragment!==e.fragment&&n.fragmentSubject.next(e.fragment),Fi(t.params,e.params)||n.paramsSubject.next(e.params),n8(t.url,e.url)||n.urlSubject.next(e.url),Fi(t.data,e.data)||n.dataSubject.next(e.data)}else n.snapshot=n._futureSnapshot,n.dataSubject.next(n._futureSnapshot.data)}function gE(n,t){let e=Fi(n.params,t.params)&&s8(n.url,t.url),i=!n.parent!=!t.parent;return e&&!i&&(!n.parent||gE(n.parent,t.parent))}function sF(n){return typeof n.title=="string"||n.title===null}function SE(n){let t=n.children&&n.children.map(SE),e=t?J(b({},n),{children:t}):b({},n);return!e.component&&!e.loadComponent&&(t||e.loadChildren)&&e.outlet&&e.outlet!==de&&(e.component=lF),e}function O8(n,t,e){let i=ru(n,t._root,e?e._root:void 0);return new Om(i,t)}function ru(n,t,e){if(e&&n.shouldReuseRoute(t.value,e.value.snapshot)){let i=e.value;i._futureSnapshot=t.value;let r=N8(n,t,e);return new wn(i,r)}else{if(n.shouldAttach(t.value)){let o=n.retrieve(t.value);if(o!==null){let s=o.route;return s.value._futureSnapshot=t.value,s.children=t.children.map(a=>ru(n,a)),s}}let i=F8(t.value),r=t.children.map(o=>ru(n,o));return new wn(i,r)}}function N8(n,t,e){return t.children.map(i=>{for(let r of e.children)if(n.shouldReuseRoute(i.value,r.value.snapshot))return ru(n,i,r);return ru(n,i)})}function F8(n){return new vo(new at(n.url),new at(n.params),new at(n.queryParams),new at(n.fragment),new at(n.data),n.outlet,n.component,n)}function km(n,t){let{redirectTo:e,navigationBehaviorOptions:i}=yo(t)?{redirectTo:t,navigationBehaviorOptions:void 0}:t,r=dF(!1,mn.Redirect);return r.url=e,r.navigationBehaviorOptions=i,r}function dF(n,t){let e=new Error(`NavigationCancelingError: ${n||""}`);return e[cF]=!0,e.cancellationCode=t,e}function k8(n){return uF(n)&&yo(n.url)}function uF(n){return!!n&&n[cF]}function P8(n,t,e){let i=n._root,r=t?t._root:null;return Qd(i,r,e,[i.value])}function j8(n){let t=n.routeConfig?n.routeConfig.canActivateChild:null;return!t||t.length===0?null:{node:n,guards:t}}function Dl(n,t){let e=Symbol(),i=t.get(n,e);return i===e?typeof n=="function"&&!Ty(n)?n:t.get(n):i}function Qd(n,t,e,i,r={canDeactivateChecks:[],canActivateChecks:[]}){let o=pl(t);return n.children.forEach(s=>{V8(s,o[s.value.outlet],e,i.concat([s.value]),r),delete o[s.value.outlet]}),Object.entries(o).forEach(([s,a])=>Xd(a,e.getContext(s),r)),r}function V8(n,t,e,i,r={canDeactivateChecks:[],canActivateChecks:[]}){let o=n.value,s=t?t.value:null,a=e?e.getContext(n.value.outlet):null;if(s&&o.routeConfig===s.routeConfig){let l=B8(s,o,o.routeConfig.runGuardsAndResolvers);l?r.canActivateChecks.push(new Lm(i)):(o.data=s.data,o._resolvedData=s._resolvedData),o.component?Qd(n,t,a?a.children:null,i,r):Qd(n,t,e,i,r),l&&a&&a.outlet&&a.outlet.isActivated&&r.canDeactivateChecks.push(new vl(a.outlet.component,s))}else s&&Xd(t,a,r),r.canActivateChecks.push(new Lm(i)),o.component?Qd(n,null,a?a.children:null,i,r):Qd(n,null,e,i,r);return r}function B8(n,t,e){if(typeof e=="function")return e(n,t);switch(e){case"pathParamsChange":return!ks(n.url,t.url);case"pathParamsOrQueryParamsChange":return!ks(n.url,t.url)||!Fi(n.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!gE(n,t)||!Fi(n.queryParams,t.queryParams);case"paramsChange":default:return!gE(n,t)}}function Xd(n,t,e){let i=pl(n),r=n.value;Object.entries(i).forEach(([o,s])=>{r.component?t?Xd(s,t.children.getContext(o),e):Xd(s,null,e):Xd(s,t,e)}),r.component?t&&t.outlet&&t.outlet.isActivated?e.canDeactivateChecks.push(new vl(t.outlet.component,r)):e.canDeactivateChecks.push(new vl(null,r)):e.canDeactivateChecks.push(new vl(null,r))}function du(n){return typeof n=="function"}function U8(n){return typeof n=="boolean"}function H8(n){return n&&du(n.canLoad)}function z8(n){return n&&du(n.canActivate)}function $8(n){return n&&du(n.canActivateChild)}function G8(n){return n&&du(n.canDeactivate)}function W8(n){return n&&du(n.canMatch)}function fF(n){return n instanceof ji||n?.name==="EmptyError"}function xl(){return ze(n=>Lo(n.map(t=>t.pipe(He(1),Gt(wm)))).pipe(V(t=>{for(let e of t)if(e!==!0){if(e===wm)return wm;if(e===!1||q8(e))return e}return!0}),ue(t=>t!==wm),He(1)))}function q8(n){return yo(n)||n instanceof ou}function K8(n,t){return Ke(e=>{let{targetSnapshot:i,currentSnapshot:r,guards:{canActivateChecks:o,canDeactivateChecks:s}}=e;return s.length===0&&o.length===0?N(J(b({},e),{guardsResult:!0})):Y8(s,i,r,n).pipe(Ke(a=>a&&U8(a)?Q8(i,o,n,t):N(a)),V(a=>J(b({},e),{guardsResult:a})))})}function Y8(n,t,e,i){return Pe(n).pipe(Ke(r=>tW(r.component,r.route,e,t,i)),Bi(r=>r!==!0,!0))}function Q8(n,t,e,i){return Pe(t).pipe(Sn(r=>Bn(X8(r.route.parent,i),Z8(r.route,i),eW(n,r.path,e),J8(n,r.route,e))),Bi(r=>r!==!0,!0))}function Z8(n,t){return n!==null&&t&&t(new uE(n)),N(!0)}function X8(n,t){return n!==null&&t&&t(new cE(n)),N(!0)}function J8(n,t,e){let i=t.routeConfig?t.routeConfig.canActivate:null;if(!i||i.length===0)return N(!0);let r=i.map(o=>on(()=>{let s=El(t)??e,a=Dl(o,s),l=z8(a)?a.canActivate(t,n):xt(s,()=>a(t,n));return _r(l).pipe(Bi())}));return N(r).pipe(xl())}function eW(n,t,e){let i=t[t.length-1],o=t.slice(0,t.length-1).reverse().map(s=>j8(s)).filter(s=>s!==null).map(s=>on(()=>{let a=s.guards.map(l=>{let c=El(s.node)??e,d=Dl(l,c),h=$8(d)?d.canActivateChild(i,n):xt(c,()=>d(i,n));return _r(h).pipe(Bi())});return N(a).pipe(xl())}));return N(o).pipe(xl())}function tW(n,t,e,i,r){let o=t&&t.routeConfig?t.routeConfig.canDeactivate:null;if(!o||o.length===0)return N(!0);let s=o.map(a=>{let l=El(t)??r,c=Dl(a,l),d=G8(c)?c.canDeactivate(n,t,e,i):xt(l,()=>c(n,t,e,i));return _r(d).pipe(Bi())});return N(s).pipe(xl())}function nW(n,t,e,i){let r=t.canLoad;if(r===void 0||r.length===0)return N(!0);let o=r.map(s=>{let a=Dl(s,n),l=H8(a)?a.canLoad(t,e):xt(n,()=>a(t,e));return _r(l)});return N(o).pipe(xl(),hF(i))}function hF(n){return Ng(Fe(t=>{if(typeof t!="boolean")throw km(n,t)}),V(t=>t===!0))}function iW(n,t,e,i){let r=t.canMatch;if(!r||r.length===0)return N(!0);let o=r.map(s=>{let a=Dl(s,n),l=W8(a)?a.canMatch(t,e):xt(n,()=>a(t,e));return _r(l)});return N(o).pipe(xl(),hF(i))}function hl(n){return Ar(new su(n))}function rW(n){return Ar(new w(4e3,!1))}function oW(n){return Ar(dF(!1,mn.GuardRejected))}function sW(n,t,e){if(typeof n=="string")return N(n);let i=n,{queryParams:r,fragment:o,routeConfig:s,url:a,outlet:l,params:c,data:d,title:h}=t;return _r(xt(e,()=>i({params:c,data:d,queryParams:r,fragment:o,routeConfig:s,url:a,outlet:l,title:h})))}function aW(n,t,e,i,r){let o=pF(n,t,e);return o.matched?(i=A8(t,i),iW(i,t,e,r).pipe(V(s=>s===!0?o:b({},bE)))):N(o)}function pF(n,t,e){if(t.path==="**")return lW(e);if(t.path==="")return t.pathMatch==="full"&&(n.hasChildren()||e.length>0)?b({},bE):{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};let r=(t.matcher||t8)(e,n,t);if(!r)return b({},bE);let o={};Object.entries(r.posParams??{}).forEach(([a,l])=>{o[a]=l.path});let s=r.consumed.length>0?b(b({},o),r.consumed[r.consumed.length-1].parameters):o;return{matched:!0,consumedSegments:r.consumed,remainingSegments:e.slice(r.consumed.length),parameters:s,positionalParamSegments:r.posParams??{}}}function lW(n){return{matched:!0,parameters:n.length>0?GN(n).parameters:{},consumedSegments:n,remainingSegments:[],positionalParamSegments:{}}}function UN(n,t,e,i){return e.length>0&&uW(n,e,i)?{segmentGroup:new Oe(t,dW(i,new Oe(e,n.children))),slicedSegments:[]}:e.length===0&&fW(n,e,i)?{segmentGroup:new Oe(n.segments,cW(n,e,i,n.children)),slicedSegments:e}:{segmentGroup:new Oe(n.segments,n.children),slicedSegments:e}}function cW(n,t,e,i){let r={};for(let o of e)if(Pm(n,t,o)&&!i[ii(o)]){let s=new Oe([],{});r[ii(o)]=s}return b(b({},i),r)}function dW(n,t){let e={};e[de]=t;for(let i of n)if(i.path===""&&ii(i)!==de){let r=new Oe([],{});e[ii(i)]=r}return e}function uW(n,t,e){return e.some(i=>Pm(n,t,i)&&ii(i)!==de)}function fW(n,t,e){return e.some(i=>Pm(n,t,i))}function Pm(n,t,e){return(n.hasChildren()||t.length>0)&&e.pathMatch==="full"?!1:e.path===""}function hW(n,t,e){return t.length===0&&!n.children[e]}function pW(n,t,e,i,r,o,s="emptyOnly"){return new CE(n,t,e,i,r,s,o).recognize()}function gW(n){n.sort((t,e)=>t.value.outlet===de?-1:e.value.outlet===de?1:t.value.outlet.localeCompare(e.value.outlet))}function yW(n){let t=n.value.routeConfig;return t&&t.path===""}function mF(n){let t=[],e=new Set;for(let i of n){if(!yW(i)){t.push(i);continue}let r=t.find(o=>i.value.routeConfig===o.value.routeConfig);r!==void 0?(r.children.push(...i.children),e.add(r)):t.push(i)}for(let i of e){let r=mF(i.children);t.push(new wn(i.value,r))}return t.filter(i=>!e.has(i))}function HN(n){return n.data||{}}function zN(n){return n.resolve||{}}function vW(n,t,e,i,r,o){return Ke(s=>pW(n,t,e,i,s.extractedUrl,r,o).pipe(V(({state:a,tree:l})=>J(b({},s),{targetSnapshot:a,urlAfterRedirects:l}))))}function _W(n,t){return Ke(e=>{let{targetSnapshot:i,guards:{canActivateChecks:r}}=e;if(!r.length)return N(e);let o=new Set(r.map(l=>l.route)),s=new Set;for(let l of o)if(!s.has(l))for(let c of gF(l))s.add(c);let a=0;return Pe(s).pipe(Sn(l=>o.has(l)?bW(l,i,n,t):(l.data=Nm(l,l.parent,n).resolve,N(void 0))),Fe(()=>a++),la(1),Ke(l=>a===s.size?N(e):Vt))})}function gF(n){let t=n.children.map(e=>gF(e)).flat();return[n,...t]}function bW(n,t,e,i){let r=n.routeConfig,o=n._resolve;return r?.title!==void 0&&!sF(r)&&(o[lu]=r.title),on(()=>(n.data=Nm(n,n.parent,e).resolve,xW(o,n,t,i).pipe(V(s=>(n._resolvedData=s,n.data=b(b({},n.data),s),null)))))}function xW(n,t,e,i){let r=JC(n);if(r.length===0)return N({});let o={};return Pe(r).pipe(Ke(s=>CW(n[s],t,e,i).pipe(Bi(),Fe(a=>{if(a instanceof ou)throw km(new Ls,a);o[s]=a}))),la(1),V(()=>o),an(s=>fF(s)?Vt:Ar(s)))}function CW(n,t,e,i){let r=El(t)??i,o=Dl(n,r),s=o.resolve?o.resolve(t,e):xt(r,()=>o(t,e));return _r(s)}function ZC(n){return ze(t=>{let e=n(t);return e?Pe(e).pipe(V(()=>t)):N(t)})}function wW(n,t,e,i){return _r(xt(e,()=>n.loadChildren())).pipe(V(vF),ze(_F),Ke(r=>r instanceof Rh||Array.isArray(r)?N(r):Pe(t.compileModuleAsync(r))),V(r=>{i&&i(n);let o,s,a=!1;return Array.isArray(r)?(s=r,a=!0):(o=r.create(e).injector,s=o.get(uu,[],{optional:!0,self:!0}).flat()),{routes:s.map(SE),injector:o}}))}function DW(n){return n&&typeof n=="object"&&"default"in n}function vF(n){return DW(n)?n.default:n}function _F(n){return N(n)}function bF(n,t,e){let i=n.get(TE),r=n.get(U);if(!r.startViewTransition||i.skipNextTransition)return i.skipNextTransition=!1,new Promise(c=>setTimeout(c));let o,s=new Promise(c=>{o=c}),a=r.startViewTransition(()=>(o(),IW(n)));a.ready.catch(c=>{});let{onViewTransitionCreated:l}=i;return l&&xt(n,()=>l({transition:a,from:t,to:e})),s}function IW(n){return new Promise(t=>{Qt({read:()=>setTimeout(t)},{injector:n})})}function AW(n){return n!==gl}function RE(n,t){n.events.pipe(ue(e=>e instanceof ri||e instanceof gr||e instanceof tu||e instanceof vr),V(e=>e instanceof ri||e instanceof vr?0:(e instanceof gr?e.code===mn.Redirect||e.code===mn.SupersededByNewNavigation:!1)?2:1),ue(e=>e!==2),He(1)).subscribe(()=>{t()})}function FW(n){for(let t=0;t<n.length;t++)if(n[t]==null)throw new w(4008,!1)}var de,lu,XC,i8,WN,yr,Oe,Fs,Cl,Ls,l8,f8,h8,m8,y8,tE,Tm,ml,gl,It,Ln,Ps,ri,mn,eu,gr,vr,tu,Mm,iE,rE,oE,sE,aE,lE,cE,dE,uE,fE,nu,iu,bl,hE,wl,Rm,wn,Om,vo,yl,Fm,R8,aF,yE,cu,DE,lF,ou,cF,L8,vE,Lm,vl,wm,su,au,_E,bE,xE,mW,CE,yF,EW,js,uu,jm,IE,SW,AE,TE,ME,Vm,TW,EE,MW,xF,RW,OW,NW,_o,CF=f(()=>{"use strict";Le();_();_();we();it();Xc();de="primary",lu=Symbol("RouteTitle"),XC=class{params;constructor(t){this.params=t||{}}has(t){return Object.prototype.hasOwnProperty.call(this.params,t)}get(t){if(this.has(t)){let e=this.params[t];return Array.isArray(e)?e[0]:e}return null}getAll(t){if(this.has(t)){let e=this.params[t];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}};i8={exact:qN,subset:KN},WN={exact:r8,subset:o8,ignored:()=>!0};yr=class{root;queryParams;fragment;_queryParamMap;constructor(t=new Oe([],{}),e={},i=null){this.root=t,this.queryParams=e,this.fragment=i}get queryParamMap(){return this._queryParamMap??=_l(this.queryParams),this._queryParamMap}toString(){return l8.serialize(this)}},Oe=class{segments;children;parent=null;constructor(t,e){this.segments=t,this.children=e,Object.values(e).forEach(i=>i.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Sm(this)}},Fs=class{path;parameters;_parameterMap;constructor(t,e){this.path=t,this.parameters=e}get parameterMap(){return this._parameterMap??=_l(this.parameters),this._parameterMap}toString(){return ZN(this)}};Cl=(()=>{class n{static \u0275fac=function(i){return new(i||n)};static \u0275prov=v({token:n,factory:()=>new Ls,providedIn:"root"})}return n})(),Ls=class{parse(t){let e=new tE(t);return new yr(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(t){let e=`/${Yd(t.root,!0)}`,i=u8(t.queryParams),r=typeof t.fragment=="string"?`#${c8(t.fragment)}`:"";return`${e}${i}${r}`}},l8=new Ls;f8=/^[^\/()?;#]+/;h8=/^[^\/()?;=#]+/;m8=/^[^=?&#]+/;y8=/^[^&#]+/;tE=class{url;remaining;constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new Oe([],{}):new Oe([],this.parseChildren())}parseQueryParams(){let t={};if(this.consumeOptional("?"))do this.parseQueryParam(t);while(this.consumeOptional("&"));return t}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(this.remaining==="")return{};this.consumeOptional("/");let t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let i={};return this.peekStartsWith("(")&&(i=this.parseParens(!1)),(t.length>0||Object.keys(e).length>0)&&(i[de]=new Oe(t,e)),i}parseSegment(){let t=KC(this.remaining);if(t===""&&this.peekStartsWith(";"))throw new w(4009,!1);return this.capture(t),new Fs(Im(t),this.parseMatrixParams())}parseMatrixParams(){let t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){let e=p8(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){let r=KC(this.remaining);r&&(i=r,this.capture(i))}t[Im(e)]=Im(i)}parseQueryParam(t){let e=g8(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){let s=v8(this.remaining);s&&(i=s,this.capture(i))}let r=jN(e),o=jN(i);if(t.hasOwnProperty(r)){let s=t[r];Array.isArray(s)||(s=[s],t[r]=s),s.push(o)}else t[r]=o}parseParens(t){let e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let i=KC(this.remaining),r=this.remaining[i.length];if(r!=="/"&&r!==")"&&r!==";")throw new w(4010,!1);let o;i.indexOf(":")>-1?(o=i.slice(0,i.indexOf(":")),this.capture(o),this.capture(":")):t&&(o=de);let s=this.parseChildren();e[o]=Object.keys(s).length===1?s[de]:new Oe([],s),this.consumeOptional("//")}return e}peekStartsWith(t){return this.remaining.startsWith(t)}consumeOptional(t){return this.peekStartsWith(t)?(this.remaining=this.remaining.substring(t.length),!0):!1}capture(t){if(!this.consumeOptional(t))throw new w(4011,!1)}};Tm=class{isAbsolute;numberOfDoubleDots;commands;constructor(t,e,i){if(this.isAbsolute=t,this.numberOfDoubleDots=e,this.commands=i,t&&i.length>0&&Am(i[0]))throw new w(4003,!1);let r=i.find(Jd);if(r&&r!==GN(i))throw new w(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};ml=class{segmentGroup;processChildren;index;constructor(t,e,i){this.segmentGroup=t,this.processChildren=e,this.index=i}};gl="imperative",It=(function(n){return n[n.NavigationStart=0]="NavigationStart",n[n.NavigationEnd=1]="NavigationEnd",n[n.NavigationCancel=2]="NavigationCancel",n[n.NavigationError=3]="NavigationError",n[n.RoutesRecognized=4]="RoutesRecognized",n[n.ResolveStart=5]="ResolveStart",n[n.ResolveEnd=6]="ResolveEnd",n[n.GuardsCheckStart=7]="GuardsCheckStart",n[n.GuardsCheckEnd=8]="GuardsCheckEnd",n[n.RouteConfigLoadStart=9]="RouteConfigLoadStart",n[n.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",n[n.ChildActivationStart=11]="ChildActivationStart",n[n.ChildActivationEnd=12]="ChildActivationEnd",n[n.ActivationStart=13]="ActivationStart",n[n.ActivationEnd=14]="ActivationEnd",n[n.Scroll=15]="Scroll",n[n.NavigationSkipped=16]="NavigationSkipped",n})(It||{}),Ln=class{id;url;constructor(t,e){this.id=t,this.url=e}},Ps=class extends Ln{type=It.NavigationStart;navigationTrigger;restoredState;constructor(t,e,i="imperative",r=null){super(t,e),this.navigationTrigger=i,this.restoredState=r}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},ri=class extends Ln{urlAfterRedirects;type=It.NavigationEnd;constructor(t,e,i){super(t,e),this.urlAfterRedirects=i}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},mn=(function(n){return n[n.Redirect=0]="Redirect",n[n.SupersededByNewNavigation=1]="SupersededByNewNavigation",n[n.NoDataFromResolver=2]="NoDataFromResolver",n[n.GuardRejected=3]="GuardRejected",n[n.Aborted=4]="Aborted",n})(mn||{}),eu=(function(n){return n[n.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",n[n.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",n})(eu||{}),gr=class extends Ln{reason;code;type=It.NavigationCancel;constructor(t,e,i,r){super(t,e),this.reason=i,this.code=r}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}},vr=class extends Ln{reason;code;type=It.NavigationSkipped;constructor(t,e,i,r){super(t,e),this.reason=i,this.code=r}},tu=class extends Ln{error;target;type=It.NavigationError;constructor(t,e,i,r){super(t,e),this.error=i,this.target=r}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},Mm=class extends Ln{urlAfterRedirects;state;type=It.RoutesRecognized;constructor(t,e,i,r){super(t,e),this.urlAfterRedirects=i,this.state=r}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},iE=class extends Ln{urlAfterRedirects;state;type=It.GuardsCheckStart;constructor(t,e,i,r){super(t,e),this.urlAfterRedirects=i,this.state=r}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},rE=class extends Ln{urlAfterRedirects;state;shouldActivate;type=It.GuardsCheckEnd;constructor(t,e,i,r,o){super(t,e),this.urlAfterRedirects=i,this.state=r,this.shouldActivate=o}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},oE=class extends Ln{urlAfterRedirects;state;type=It.ResolveStart;constructor(t,e,i,r){super(t,e),this.urlAfterRedirects=i,this.state=r}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},sE=class extends Ln{urlAfterRedirects;state;type=It.ResolveEnd;constructor(t,e,i,r){super(t,e),this.urlAfterRedirects=i,this.state=r}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},aE=class{route;type=It.RouteConfigLoadStart;constructor(t){this.route=t}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},lE=class{route;type=It.RouteConfigLoadEnd;constructor(t){this.route=t}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},cE=class{snapshot;type=It.ChildActivationStart;constructor(t){this.snapshot=t}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},dE=class{snapshot;type=It.ChildActivationEnd;constructor(t){this.snapshot=t}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},uE=class{snapshot;type=It.ActivationStart;constructor(t){this.snapshot=t}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},fE=class{snapshot;type=It.ActivationEnd;constructor(t){this.snapshot=t}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},nu=class{routerEvent;position;anchor;type=It.Scroll;constructor(t,e,i){this.routerEvent=t,this.position=e,this.anchor=i}toString(){let t=this.position?`${this.position[0]}, ${this.position[1]}`:null;return`Scroll(anchor: '${this.anchor}', position: '${t}')`}},iu=class{},bl=class{url;navigationBehaviorOptions;constructor(t,e){this.url=t,this.navigationBehaviorOptions=e}};hE=class{rootInjector;outlet=null;route=null;children;attachRef=null;get injector(){return El(this.route?.snapshot)??this.rootInjector}constructor(t){this.rootInjector=t,this.children=new wl(this.rootInjector)}},wl=(()=>{class n{rootInjector;contexts=new Map;constructor(e){this.rootInjector=e}onChildOutletCreated(e,i){let r=this.getOrCreateContext(e);r.outlet=i,this.contexts.set(e,r)}onChildOutletDestroyed(e){let i=this.getContext(e);i&&(i.outlet=null,i.attachRef=null)}onOutletDeactivated(){let e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let i=this.getContext(e);return i||(i=new hE(this.rootInjector),this.contexts.set(e,i)),i}getContext(e){return this.contexts.get(e)||null}static \u0275fac=function(i){return new(i||n)(S($e))};static \u0275prov=v({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})(),Rm=class{_root;constructor(t){this._root=t}get root(){return this._root.value}parent(t){let e=this.pathFromRoot(t);return e.length>1?e[e.length-2]:null}children(t){let e=pE(t,this._root);return e?e.children.map(i=>i.value):[]}firstChild(t){let e=pE(t,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(t){let e=mE(t,this._root);return e.length<2?[]:e[e.length-2].children.map(r=>r.value).filter(r=>r!==t)}pathFromRoot(t){return mE(t,this._root).map(e=>e.value)}};wn=class{value;children;constructor(t,e){this.value=t,this.children=e}toString(){return`TreeNode(${this.value})`}};Om=class extends Rm{snapshot;constructor(t,e){super(t),this.snapshot=e,wE(this,t)}toString(){return this.snapshot.toString()}};vo=class{urlSubject;paramsSubject;queryParamsSubject;fragmentSubject;dataSubject;outlet;component;snapshot;_futureSnapshot;_routerState;_paramMap;_queryParamMap;title;url;params;queryParams;fragment;data;constructor(t,e,i,r,o,s,a,l){this.urlSubject=t,this.paramsSubject=e,this.queryParamsSubject=i,this.fragmentSubject=r,this.dataSubject=o,this.outlet=s,this.component=a,this._futureSnapshot=l,this.title=this.dataSubject?.pipe(V(c=>c[lu]))??N(void 0),this.url=t,this.params=e,this.queryParams=i,this.fragment=r,this.data=o}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(V(t=>_l(t))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(V(t=>_l(t))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};yl=class{url;params;queryParams;fragment;data;outlet;component;routeConfig;_resolve;_resolvedData;_routerState;_paramMap;_queryParamMap;get title(){return this.data?.[lu]}constructor(t,e,i,r,o,s,a,l,c){this.url=t,this.params=e,this.queryParams=i,this.fragment=r,this.data=o,this.outlet=s,this.component=a,this.routeConfig=l,this._resolve=c}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=_l(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=_l(this.queryParams),this._queryParamMap}toString(){let t=this.url.map(i=>i.toString()).join("/"),e=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${t}', path:'${e}')`}},Fm=class extends Rm{url;constructor(t,e){super(e),this.url=t,wE(this,e)}toString(){return oF(this._root)}};R8=new x(""),aF=(()=>{class n{activated=null;get activatedComponentRef(){return this.activated}_activatedRoute=null;name=de;activateEvents=new z;deactivateEvents=new z;attachEvents=new z;detachEvents=new z;routerOutletData=lT(void 0);parentContexts=u(wl);location=u(Rt);changeDetector=u(mt);inputBinder=u(cu,{optional:!0});supportsBindingToComponentInputs=!0;ngOnChanges(e){if(e.name){let{firstChange:i,previousValue:r}=e.name;if(i)return;this.isTrackedInParentContexts(r)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(r)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(e){return this.parentContexts.getContext(e)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let e=this.parentContexts.getContext(this.name);e?.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.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 e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,i){this.activated=e,this._activatedRoute=i,this.location.insert(e.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(e.instance)}deactivate(){if(this.activated){let e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,i){if(this.isActivated)throw new w(4013,!1);this._activatedRoute=e;let r=this.location,s=e.snapshot.component,a=this.parentContexts.getOrCreateContext(this.name).children,l=new yE(e,a,r.injector,this.routerOutletData);this.activated=r.createComponent(s,{index:r.length,injector:l,environmentInjector:i}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static \u0275fac=function(i){return new(i||n)};static \u0275dir=j({type:n,selectors:[["router-outlet"]],inputs:{name:"name",routerOutletData:[1,"routerOutletData"]},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],features:[je]})}return n})(),yE=class{route;childContexts;parent;outletData;constructor(t,e,i,r){this.route=t,this.childContexts=e,this.parent=i,this.outletData=r}get(t,e){return t===vo?this.route:t===wl?this.childContexts:t===R8?this.outletData:this.parent.get(t,e)}},cu=new x(""),DE=(()=>{class n{outletDataSubscriptions=new Map;bindActivatedRouteToOutletComponent(e){this.unsubscribeFromRouteData(e),this.subscribeToRouteData(e)}unsubscribeFromRouteData(e){this.outletDataSubscriptions.get(e)?.unsubscribe(),this.outletDataSubscriptions.delete(e)}subscribeToRouteData(e){let{activatedRoute:i}=e,r=Lo([i.queryParams,i.params,i.data]).pipe(ze(([o,s,a],l)=>(a=b(b(b({},o),s),a),l===0?N(a):Promise.resolve(a)))).subscribe(o=>{if(!e.isActivated||!e.activatedComponentRef||e.activatedRoute!==i||i.component===null){this.unsubscribeFromRouteData(e);return}let s=fT(i.component);if(!s){this.unsubscribeFromRouteData(e);return}for(let{templateName:a}of s.inputs)e.activatedComponentRef.setInput(a,o[a])});this.outletDataSubscriptions.set(e,r)}static \u0275fac=function(i){return new(i||n)};static \u0275prov=v({token:n,factory:n.\u0275fac})}return n})(),lF=(()=>{class n{static \u0275fac=function(i){return new(i||n)};static \u0275cmp=$({type:n,selectors:[["ng-component"]],exportAs:["emptyRouterOutlet"],decls:1,vars:0,template:function(i,r){i&1&&ce(0,"router-outlet")},dependencies:[aF],encapsulation:2})}return n})();ou=class{redirectTo;navigationBehaviorOptions;constructor(t,e){this.redirectTo=t,this.navigationBehaviorOptions=e}},cF="ngNavigationCancelingError";L8=(n,t,e,i)=>V(r=>(new vE(t,r.targetRouterState,r.currentRouterState,e,i).activate(n),r)),vE=class{routeReuseStrategy;futureState;currState;forwardEvent;inputBindingEnabled;constructor(t,e,i,r,o){this.routeReuseStrategy=t,this.futureState=e,this.currState=i,this.forwardEvent=r,this.inputBindingEnabled=o}activate(t){let e=this.futureState._root,i=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,i,t),QC(this.futureState.root),this.activateChildRoutes(e,i,t)}deactivateChildRoutes(t,e,i){let r=pl(e);t.children.forEach(o=>{let s=o.value.outlet;this.deactivateRoutes(o,r[s],i),delete r[s]}),Object.values(r).forEach(o=>{this.deactivateRouteAndItsChildren(o,i)})}deactivateRoutes(t,e,i){let r=t.value,o=e?e.value:null;if(r===o)if(r.component){let s=i.getContext(r.outlet);s&&this.deactivateChildRoutes(t,e,s.children)}else this.deactivateChildRoutes(t,e,i);else o&&this.deactivateRouteAndItsChildren(e,i)}deactivateRouteAndItsChildren(t,e){t.value.component&&this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,e):this.deactivateRouteAndOutlet(t,e)}detachAndStoreRouteSubtree(t,e){let i=e.getContext(t.value.outlet),r=i&&t.value.component?i.children:e,o=pl(t);for(let s of Object.values(o))this.deactivateRouteAndItsChildren(s,r);if(i&&i.outlet){let s=i.outlet.detach(),a=i.children.onOutletDeactivated();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:s,route:t,contexts:a})}}deactivateRouteAndOutlet(t,e){let i=e.getContext(t.value.outlet),r=i&&t.value.component?i.children:e,o=pl(t);for(let s of Object.values(o))this.deactivateRouteAndItsChildren(s,r);i&&(i.outlet&&(i.outlet.deactivate(),i.children.onOutletDeactivated()),i.attachRef=null,i.route=null)}activateChildRoutes(t,e,i){let r=pl(e);t.children.forEach(o=>{this.activateRoutes(o,r[o.value.outlet],i),this.forwardEvent(new fE(o.value.snapshot))}),t.children.length&&this.forwardEvent(new dE(t.value.snapshot))}activateRoutes(t,e,i){let r=t.value,o=e?e.value:null;if(QC(r),r===o)if(r.component){let s=i.getOrCreateContext(r.outlet);this.activateChildRoutes(t,e,s.children)}else this.activateChildRoutes(t,e,i);else if(r.component){let s=i.getOrCreateContext(r.outlet);if(this.routeReuseStrategy.shouldAttach(r.snapshot)){let a=this.routeReuseStrategy.retrieve(r.snapshot);this.routeReuseStrategy.store(r.snapshot,null),s.children.onOutletReAttached(a.contexts),s.attachRef=a.componentRef,s.route=a.route.value,s.outlet&&s.outlet.attach(a.componentRef,a.route.value),QC(a.route.value),this.activateChildRoutes(t,null,s.children)}else s.attachRef=null,s.route=r,s.outlet&&s.outlet.activateWith(r,s.injector),this.activateChildRoutes(t,null,s.children)}else this.activateChildRoutes(t,null,i)}},Lm=class{path;route;constructor(t){this.path=t,this.route=this.path[this.path.length-1]}},vl=class{component;route;constructor(t,e){this.component=t,this.route=e}};wm=Symbol("INITIAL_VALUE");su=class{segmentGroup;constructor(t){this.segmentGroup=t||null}},au=class extends Error{urlTree;constructor(t){super(),this.urlTree=t}};_E=class{urlSerializer;urlTree;constructor(t,e){this.urlSerializer=t,this.urlTree=e}lineralizeSegments(t,e){let i=[],r=e.root;for(;;){if(i=i.concat(r.segments),r.numberOfChildren===0)return N(i);if(r.numberOfChildren>1||!r.children[de])return rW(`${t.redirectTo}`);r=r.children[de]}}applyRedirectCommands(t,e,i,r,o){return sW(e,r,o).pipe(V(s=>{if(s instanceof yr)throw new au(s);let a=this.applyRedirectCreateUrlTree(s,this.urlSerializer.parse(s),t,i);if(s[0]==="/")throw new au(a);return a}))}applyRedirectCreateUrlTree(t,e,i,r){let o=this.createSegmentGroup(t,e.root,i,r);return new yr(o,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(t,e){let i={};return Object.entries(t).forEach(([r,o])=>{if(typeof o=="string"&&o[0]===":"){let a=o.substring(1);i[r]=e[a]}else i[r]=o}),i}createSegmentGroup(t,e,i,r){let o=this.createSegments(t,e.segments,i,r),s={};return Object.entries(e.children).forEach(([a,l])=>{s[a]=this.createSegmentGroup(t,l,i,r)}),new Oe(o,s)}createSegments(t,e,i,r){return e.map(o=>o.path[0]===":"?this.findPosParam(t,o,r):this.findOrReturn(o,i))}findPosParam(t,e,i){let r=i[e.path.substring(1)];if(!r)throw new w(4001,!1);return r}findOrReturn(t,e){let i=0;for(let r of e){if(r.path===t.path)return e.splice(i),r;i++}return t}};bE={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};xE=class{};mW=31,CE=class{injector;configLoader;rootComponentType;config;urlTree;paramsInheritanceStrategy;urlSerializer;applyRedirects;absoluteRedirectCount=0;allowRedirects=!0;constructor(t,e,i,r,o,s,a){this.injector=t,this.configLoader=e,this.rootComponentType=i,this.config=r,this.urlTree=o,this.paramsInheritanceStrategy=s,this.urlSerializer=a,this.applyRedirects=new _E(this.urlSerializer,this.urlTree)}noMatchError(t){return new w(4002,`'${t.segmentGroup}'`)}recognize(){let t=UN(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(t).pipe(V(({children:e,rootSnapshot:i})=>{let r=new wn(i,e),o=new Fm("",r),s=b8(i,[],this.urlTree.queryParams,this.urlTree.fragment);return s.queryParams=this.urlTree.queryParams,o.url=this.urlSerializer.serialize(s),{state:o,tree:s}}))}match(t){let e=new yl([],Object.freeze({}),Object.freeze(b({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),de,this.rootComponentType,null,{});return this.processSegmentGroup(this.injector,this.config,t,de,e).pipe(V(i=>({children:i,rootSnapshot:e})),an(i=>{if(i instanceof au)return this.urlTree=i.urlTree,this.match(i.urlTree.root);throw i instanceof su?this.noMatchError(i):i}))}processSegmentGroup(t,e,i,r,o){return i.segments.length===0&&i.hasChildren()?this.processChildren(t,e,i,o):this.processSegment(t,e,i,i.segments,r,!0,o).pipe(V(s=>s instanceof wn?[s]:[]))}processChildren(t,e,i,r){let o=[];for(let s of Object.keys(i.children))s==="primary"?o.unshift(s):o.push(s);return Pe(o).pipe(Sn(s=>{let a=i.children[s],l=T8(e,s);return this.processSegmentGroup(t,l,a,s,r)}),cy((s,a)=>(s.push(...a),s)),Mr(null),ly(),Ke(s=>{if(s===null)return hl(i);let a=mF(s);return gW(a),N(a)}))}processSegment(t,e,i,r,o,s,a){return Pe(e).pipe(Sn(l=>this.processSegmentAgainstRoute(l._injector??t,e,l,i,r,o,s,a).pipe(an(c=>{if(c instanceof su)return N(null);throw c}))),Bi(l=>!!l),an(l=>{if(fF(l))return hW(i,r,o)?N(new xE):hl(i);throw l}))}processSegmentAgainstRoute(t,e,i,r,o,s,a,l){return ii(i)!==s&&(s===de||!Pm(r,o,i))?hl(r):i.redirectTo===void 0?this.matchSegmentAgainstRoute(t,r,i,o,s,l):this.allowRedirects&&a?this.expandSegmentAgainstRouteUsingRedirect(t,r,e,i,o,s,l):hl(r)}expandSegmentAgainstRouteUsingRedirect(t,e,i,r,o,s,a){let{matched:l,parameters:c,consumedSegments:d,positionalParamSegments:h,remainingSegments:m}=pF(e,r,o);if(!l)return hl(e);typeof r.redirectTo=="string"&&r.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>mW&&(this.allowRedirects=!1));let p=new yl(o,c,Object.freeze(b({},this.urlTree.queryParams)),this.urlTree.fragment,HN(r),ii(r),r.component??r._loadedComponent??null,r,zN(r)),g=Nm(p,a,this.paramsInheritanceStrategy);return p.params=Object.freeze(g.params),p.data=Object.freeze(g.data),this.applyRedirects.applyRedirectCommands(d,r.redirectTo,h,p,t).pipe(ze(E=>this.applyRedirects.lineralizeSegments(r,E)),Ke(E=>this.processSegment(t,i,e,E.concat(m),s,!1,a)))}matchSegmentAgainstRoute(t,e,i,r,o,s){let a=aW(e,i,r,t,this.urlSerializer);return i.path==="**"&&(e.children={}),a.pipe(ze(l=>l.matched?(t=i._injector??t,this.getChildConfig(t,i,r).pipe(ze(({routes:c})=>{let d=i._loadedInjector??t,{parameters:h,consumedSegments:m,remainingSegments:p}=l,g=new yl(m,h,Object.freeze(b({},this.urlTree.queryParams)),this.urlTree.fragment,HN(i),ii(i),i.component??i._loadedComponent??null,i,zN(i)),y=Nm(g,s,this.paramsInheritanceStrategy);g.params=Object.freeze(y.params),g.data=Object.freeze(y.data);let{segmentGroup:E,slicedSegments:D}=UN(e,m,p,c);if(D.length===0&&E.hasChildren())return this.processChildren(d,c,E,g).pipe(V(he=>new wn(g,he)));if(c.length===0&&D.length===0)return N(new wn(g,[]));let k=ii(i)===o;return this.processSegment(d,c,E,D,k?de:o,!0,g).pipe(V(he=>new wn(g,he instanceof wn?[he]:[])))}))):hl(e)))}getChildConfig(t,e,i){return e.children?N({routes:e.children,injector:t}):e.loadChildren?e._loadedRoutes!==void 0?N({routes:e._loadedRoutes,injector:e._loadedInjector}):nW(t,e,i,this.urlSerializer).pipe(Ke(r=>r?this.configLoader.loadChildren(t,e).pipe(Fe(o=>{e._loadedRoutes=o.routes,e._loadedInjector=o.injector})):oW(e))):N({routes:[],injector:t})}};yF=(()=>{class n{buildTitle(e){let i,r=e.root;for(;r!==void 0;)i=this.getResolvedTitleForRoute(r)??i,r=r.children.find(o=>o.outlet===de);return i}getResolvedTitleForRoute(e){return e.data[lu]}static \u0275fac=function(i){return new(i||n)};static \u0275prov=v({token:n,factory:()=>u(EW),providedIn:"root"})}return n})(),EW=(()=>{class n extends yF{title;constructor(e){super(),this.title=e}updateTitle(e){let i=this.buildTitle(e);i!==void 0&&this.title.setTitle(i)}static \u0275fac=function(i){return new(i||n)(S(WT))};static \u0275prov=v({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})(),js=new x("",{providedIn:"root",factory:()=>({})}),uu=new x(""),jm=(()=>{class n{componentLoaders=new WeakMap;childrenLoaders=new WeakMap;onLoadStartListener;onLoadEndListener;compiler=u(xb);loadComponent(e,i){if(this.componentLoaders.get(i))return this.componentLoaders.get(i);if(i._loadedComponent)return N(i._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(i);let r=_r(xt(e,()=>i.loadComponent())).pipe(V(vF),ze(_F),Fe(s=>{this.onLoadEndListener&&this.onLoadEndListener(i),i._loadedComponent=s}),ln(()=>{this.componentLoaders.delete(i)})),o=new ea(r,()=>new M).pipe(Js());return this.componentLoaders.set(i,o),o}loadChildren(e,i){if(this.childrenLoaders.get(i))return this.childrenLoaders.get(i);if(i._loadedRoutes)return N({routes:i._loadedRoutes,injector:i._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(i);let o=wW(i,this.compiler,e,this.onLoadEndListener).pipe(ln(()=>{this.childrenLoaders.delete(i)})),s=new ea(o,()=>new M).pipe(Js());return this.childrenLoaders.set(i,s),s}static \u0275fac=function(i){return new(i||n)};static \u0275prov=v({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();IE=(()=>{class n{static \u0275fac=function(i){return new(i||n)};static \u0275prov=v({token:n,factory:()=>u(SW),providedIn:"root"})}return n})(),SW=(()=>{class n{shouldProcessUrl(e){return!0}extract(e){return e}merge(e,i){return e}static \u0275fac=function(i){return new(i||n)};static \u0275prov=v({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})(),AE=new x(""),TE=new x("");ME=new x(""),Vm=(()=>{class n{currentNavigation=Ae(null,{equal:()=>!1});currentTransition=null;lastSuccessfulNavigation=null;events=new M;transitionAbortWithErrorSubject=new M;configLoader=u(jm);environmentInjector=u($e);destroyRef=u(bn);urlSerializer=u(Cl);rootContexts=u(wl);location=u(wi);inputBindingEnabled=u(cu,{optional:!0})!==null;titleStrategy=u(yF);options=u(js,{optional:!0})||{};paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly";urlHandlingStrategy=u(IE);createViewTransition=u(AE,{optional:!0});navigationErrorHandler=u(ME,{optional:!0});navigationId=0;get hasRequestedNavigation(){return this.navigationId!==0}transitions;afterPreactivation=()=>N(void 0);rootComponentType=null;destroyed=!1;constructor(){let e=r=>this.events.next(new aE(r)),i=r=>this.events.next(new lE(r));this.configLoader.onLoadEndListener=i,this.configLoader.onLoadStartListener=e,this.destroyRef.onDestroy(()=>{this.destroyed=!0})}complete(){this.transitions?.complete()}handleNavigationRequest(e){let i=++this.navigationId;pt(()=>{this.transitions?.next(J(b({},e),{extractedUrl:this.urlHandlingStrategy.extract(e.rawUrl),targetSnapshot:null,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null,abortController:new AbortController,id:i}))})}setupNavigations(e){return this.transitions=new at(null),this.transitions.pipe(ue(i=>i!==null),ze(i=>{let r=!1;return N(i).pipe(ze(o=>{if(this.navigationId>i.id)return this.cancelNavigationTransition(i,"",mn.SupersededByNewNavigation),Vt;this.currentTransition=i,this.currentNavigation.set({id:o.id,initialUrl:o.rawUrl,extractedUrl:o.extractedUrl,targetBrowserUrl:typeof o.extras.browserUrl=="string"?this.urlSerializer.parse(o.extras.browserUrl):o.extras.browserUrl,trigger:o.source,extras:o.extras,previousNavigation:this.lastSuccessfulNavigation?J(b({},this.lastSuccessfulNavigation),{previousNavigation:null}):null,abort:()=>o.abortController.abort()});let s=!e.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),a=o.extras.onSameUrlNavigation??e.onSameUrlNavigation;if(!s&&a!=="reload")return this.events.next(new vr(o.id,this.urlSerializer.serialize(o.rawUrl),"",eu.IgnoredSameUrlNavigation)),o.resolve(!1),Vt;if(this.urlHandlingStrategy.shouldProcessUrl(o.rawUrl))return N(o).pipe(ze(l=>(this.events.next(new Ps(l.id,this.urlSerializer.serialize(l.extractedUrl),l.source,l.restoredState)),l.id!==this.navigationId?Vt:Promise.resolve(l))),vW(this.environmentInjector,this.configLoader,this.rootComponentType,e.config,this.urlSerializer,this.paramsInheritanceStrategy),Fe(l=>{i.targetSnapshot=l.targetSnapshot,i.urlAfterRedirects=l.urlAfterRedirects,this.currentNavigation.update(d=>(d.finalUrl=l.urlAfterRedirects,d));let c=new Mm(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(c)}));if(s&&this.urlHandlingStrategy.shouldProcessUrl(o.currentRawUrl)){let{id:l,extractedUrl:c,source:d,restoredState:h,extras:m}=o,p=new Ps(l,this.urlSerializer.serialize(c),d,h);this.events.next(p);let g=rF(this.rootComponentType).snapshot;return this.currentTransition=i=J(b({},o),{targetSnapshot:g,urlAfterRedirects:c,extras:J(b({},m),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.update(y=>(y.finalUrl=c,y)),N(i)}else return this.events.next(new vr(o.id,this.urlSerializer.serialize(o.extractedUrl),"",eu.IgnoredByUrlHandlingStrategy)),o.resolve(!1),Vt}),Fe(o=>{let s=new iE(o.id,this.urlSerializer.serialize(o.extractedUrl),this.urlSerializer.serialize(o.urlAfterRedirects),o.targetSnapshot);this.events.next(s)}),V(o=>(this.currentTransition=i=J(b({},o),{guards:P8(o.targetSnapshot,o.currentSnapshot,this.rootContexts)}),i)),K8(this.environmentInjector,o=>this.events.next(o)),Fe(o=>{if(i.guardsResult=o.guardsResult,o.guardsResult&&typeof o.guardsResult!="boolean")throw km(this.urlSerializer,o.guardsResult);let s=new rE(o.id,this.urlSerializer.serialize(o.extractedUrl),this.urlSerializer.serialize(o.urlAfterRedirects),o.targetSnapshot,!!o.guardsResult);this.events.next(s)}),ue(o=>o.guardsResult?!0:(this.cancelNavigationTransition(o,"",mn.GuardRejected),!1)),ZC(o=>{if(o.guards.canActivateChecks.length!==0)return N(o).pipe(Fe(s=>{let a=new oE(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);this.events.next(a)}),ze(s=>{let a=!1;return N(s).pipe(_W(this.paramsInheritanceStrategy,this.environmentInjector),Fe({next:()=>a=!0,complete:()=>{a||this.cancelNavigationTransition(s,"",mn.NoDataFromResolver)}}))}),Fe(s=>{let a=new sE(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);this.events.next(a)}))}),ZC(o=>{let s=a=>{let l=[];if(a.routeConfig?.loadComponent){let c=El(a)??this.environmentInjector;l.push(this.configLoader.loadComponent(c,a.routeConfig).pipe(Fe(d=>{a.component=d}),V(()=>{})))}for(let c of a.children)l.push(...s(c));return l};return Lo(s(o.targetSnapshot.root)).pipe(Mr(null),He(1))}),ZC(()=>this.afterPreactivation()),ze(()=>{let{currentSnapshot:o,targetSnapshot:s}=i,a=this.createViewTransition?.(this.environmentInjector,o.root,s.root);return a?Pe(a).pipe(V(()=>i)):N(i)}),V(o=>{let s=O8(e.routeReuseStrategy,o.targetSnapshot,o.currentRouterState);return this.currentTransition=i=J(b({},o),{targetRouterState:s}),this.currentNavigation.update(a=>(a.targetRouterState=s,a)),i}),Fe(()=>{this.events.next(new iu)}),L8(this.rootContexts,e.routeReuseStrategy,o=>this.events.next(o),this.inputBindingEnabled),He(1),Ee(new Z(o=>{let s=i.abortController.signal,a=()=>o.next();return s.addEventListener("abort",a),()=>s.removeEventListener("abort",a)}).pipe(ue(()=>!r&&!i.targetRouterState),Fe(()=>{this.cancelNavigationTransition(i,i.abortController.signal.reason+"",mn.Aborted)}))),Fe({next:o=>{r=!0,this.lastSuccessfulNavigation=pt(this.currentNavigation),this.events.next(new ri(o.id,this.urlSerializer.serialize(o.extractedUrl),this.urlSerializer.serialize(o.urlAfterRedirects))),this.titleStrategy?.updateTitle(o.targetRouterState.snapshot),o.resolve(!0)},complete:()=>{r=!0}}),Ee(this.transitionAbortWithErrorSubject.pipe(Fe(o=>{throw o}))),ln(()=>{r||this.cancelNavigationTransition(i,"",mn.SupersededByNewNavigation),this.currentTransition?.id===i.id&&(this.currentNavigation.set(null),this.currentTransition=null)}),an(o=>{if(this.destroyed)return i.resolve(!1),Vt;if(r=!0,uF(o))this.events.next(new gr(i.id,this.urlSerializer.serialize(i.extractedUrl),o.message,o.cancellationCode)),k8(o)?this.events.next(new bl(o.url,o.navigationBehaviorOptions)):i.resolve(!1);else{let s=new tu(i.id,this.urlSerializer.serialize(i.extractedUrl),o,i.targetSnapshot??void 0);try{let a=xt(this.environmentInjector,()=>this.navigationErrorHandler?.(s));if(a instanceof ou){let{message:l,cancellationCode:c}=km(this.urlSerializer,a);this.events.next(new gr(i.id,this.urlSerializer.serialize(i.extractedUrl),l,c)),this.events.next(new bl(a.redirectTo,a.navigationBehaviorOptions))}else throw this.events.next(s),o}catch(a){this.options.resolveNavigationPromiseOnError?i.resolve(!1):i.reject(a)}}return Vt}))}))}cancelNavigationTransition(e,i,r){let o=new gr(e.id,this.urlSerializer.serialize(e.extractedUrl),i,r);this.events.next(o),e.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){let e=this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))),i=pt(this.currentNavigation),r=i?.targetBrowserUrl??i?.extractedUrl;return e.toString()!==r?.toString()&&!i?.extras.skipLocationChange}static \u0275fac=function(i){return new(i||n)};static \u0275prov=v({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();TW=(()=>{class n{static \u0275fac=function(i){return new(i||n)};static \u0275prov=v({token:n,factory:()=>u(MW),providedIn:"root"})}return n})(),EE=class{shouldDetach(t){return!1}store(t,e){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,e){return t.routeConfig===e.routeConfig}},MW=(()=>{class n extends EE{static \u0275fac=(()=>{let e;return function(r){return(e||(e=Ve(n)))(r||n)}})();static \u0275prov=v({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})(),xF=(()=>{class n{urlSerializer=u(Cl);options=u(js,{optional:!0})||{};canceledNavigationResolution=this.options.canceledNavigationResolution||"replace";location=u(wi);urlHandlingStrategy=u(IE);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";currentUrlTree=new yr;getCurrentUrlTree(){return this.currentUrlTree}rawUrlTree=this.currentUrlTree;getRawUrlTree(){return this.rawUrlTree}createBrowserPath({finalUrl:e,initialUrl:i,targetBrowserUrl:r}){let o=e!==void 0?this.urlHandlingStrategy.merge(e,i):i,s=r??o;return s instanceof yr?this.urlSerializer.serialize(s):s}commitTransition({targetRouterState:e,finalUrl:i,initialUrl:r}){i&&e?(this.currentUrlTree=i,this.rawUrlTree=this.urlHandlingStrategy.merge(i,r),this.routerState=e):this.rawUrlTree=r}routerState=rF(null);getRouterState(){return this.routerState}stateMemento=this.createStateMemento();updateStateMemento(){this.stateMemento=this.createStateMemento()}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}resetInternalState({finalUrl:e}){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e??this.rawUrlTree)}static \u0275fac=function(i){return new(i||n)};static \u0275prov=v({token:n,factory:()=>u(RW),providedIn:"root"})}return n})(),RW=(()=>{class n extends xF{currentPageId=0;lastSuccessfulId=-1;restoredState(){return this.location.getState()}get browserPageId(){return this.canceledNavigationResolution!=="computed"?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}registerNonRouterCurrentEntryChangeListener(e){return this.location.subscribe(i=>{i.type==="popstate"&&setTimeout(()=>{e(i.url,i.state,"popstate")})})}handleRouterEvent(e,i){e instanceof Ps?this.updateStateMemento():e instanceof vr?this.commitTransition(i):e instanceof Mm?this.urlUpdateStrategy==="eager"&&(i.extras.skipLocationChange||this.setBrowserUrl(this.createBrowserPath(i),i)):e instanceof iu?(this.commitTransition(i),this.urlUpdateStrategy==="deferred"&&!i.extras.skipLocationChange&&this.setBrowserUrl(this.createBrowserPath(i),i)):e instanceof gr&&e.code!==mn.SupersededByNewNavigation&&e.code!==mn.Redirect?this.restoreHistory(i):e instanceof tu?this.restoreHistory(i,!0):e instanceof ri&&(this.lastSuccessfulId=e.id,this.currentPageId=this.browserPageId)}setBrowserUrl(e,{extras:i,id:r}){let{replaceUrl:o,state:s}=i;if(this.location.isCurrentPathEqualTo(e)||o){let a=this.browserPageId,l=b(b({},s),this.generateNgRouterState(r,a));this.location.replaceState(e,"",l)}else{let a=b(b({},s),this.generateNgRouterState(r,this.browserPageId+1));this.location.go(e,"",a)}}restoreHistory(e,i=!1){if(this.canceledNavigationResolution==="computed"){let r=this.browserPageId,o=this.currentPageId-r;o!==0?this.location.historyGo(o):this.getCurrentUrlTree()===e.finalUrl&&o===0&&(this.resetInternalState(e),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(i&&this.resetInternalState(e),this.resetUrlToCurrentUrlTree())}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.getRawUrlTree()),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(e,i){return this.canceledNavigationResolution==="computed"?{navigationId:e,\u0275routerPageId:i}:{navigationId:e}}static \u0275fac=(()=>{let e;return function(r){return(e||(e=Ve(n)))(r||n)}})();static \u0275prov=v({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();OW={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},NW={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},_o=(()=>{class n{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}disposed=!1;nonRouterCurrentEntryChangeSubscription;console=u(Fh);stateManager=u(xF);options=u(js,{optional:!0})||{};pendingTasks=u(yi);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";navigationTransitions=u(Vm);urlSerializer=u(Cl);location=u(wi);urlHandlingStrategy=u(IE);injector=u($e);_events=new M;get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}navigated=!1;routeReuseStrategy=u(TW);onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore";config=u(uu,{optional:!0})?.flat()??[];componentInputBindingEnabled=!!u(cu,{optional:!0});currentNavigation=this.navigationTransitions.currentNavigation.asReadonly();constructor(){this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this).subscribe({error:e=>{this.console.warn(e)}}),this.subscribeToNavigationEvents()}eventsSubscription=new Ce;subscribeToNavigationEvents(){let e=this.navigationTransitions.events.subscribe(i=>{try{let r=this.navigationTransitions.currentTransition,o=pt(this.navigationTransitions.currentNavigation);if(r!==null&&o!==null){if(this.stateManager.handleRouterEvent(i,o),i instanceof gr&&i.code!==mn.Redirect&&i.code!==mn.SupersededByNewNavigation)this.navigated=!0;else if(i instanceof ri)this.navigated=!0;else if(i instanceof bl){let s=i.navigationBehaviorOptions,a=this.urlHandlingStrategy.merge(i.url,r.currentRawUrl),l=b({browserUrl:r.extras.browserUrl,info:r.extras.info,skipLocationChange:r.extras.skipLocationChange,replaceUrl:r.extras.replaceUrl||this.urlUpdateStrategy==="eager"||AW(r.source)},s);this.scheduleNavigation(a,gl,null,l,{resolve:r.resolve,reject:r.reject,promise:r.promise})}}I8(i)&&this._events.next(i)}catch(r){this.navigationTransitions.transitionAbortWithErrorSubject.next(r)}});this.eventsSubscription.add(e)}resetRootComponentType(e){this.routerState.root.component=e,this.navigationTransitions.rootComponentType=e}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),gl,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((e,i,r)=>{this.navigateToSyncWithBrowser(e,r,i)})}navigateToSyncWithBrowser(e,i,r){let o={replaceUrl:!0},s=r?.navigationId?r:null;if(r){let l=b({},r);delete l.navigationId,delete l.\u0275routerPageId,Object.keys(l).length!==0&&(o.state=l)}let a=this.parseUrl(e);this.scheduleNavigation(a,i,s,o).catch(l=>{this.disposed||this.injector.get(dn)(l)})}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return pt(this.navigationTransitions.currentNavigation)}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(e){this.config=e.map(SE),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this._events.unsubscribe(),this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription&&(this.nonRouterCurrentEntryChangeSubscription.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(e,i={}){let{relativeTo:r,queryParams:o,fragment:s,queryParamsHandling:a,preserveFragment:l}=i,c=l?this.currentUrlTree.fragment:s,d=null;switch(a??this.options.defaultQueryParamsHandling){case"merge":d=b(b({},this.currentUrlTree.queryParams),o);break;case"preserve":d=this.currentUrlTree.queryParams;break;default:d=o||null}d!==null&&(d=this.removeEmptyProps(d));let h;try{let m=r?r.snapshot:this.routerState.snapshot.root;h=eF(m)}catch{(typeof e[0]!="string"||e[0][0]!=="/")&&(e=[]),h=this.currentUrlTree.root}return tF(h,e,d,c??null)}navigateByUrl(e,i={skipLocationChange:!1}){let r=yo(e)?e:this.parseUrl(e),o=this.urlHandlingStrategy.merge(r,this.rawUrlTree);return this.scheduleNavigation(o,gl,null,i)}navigate(e,i={skipLocationChange:!1}){return FW(e),this.navigateByUrl(this.createUrlTree(e,i),i)}serializeUrl(e){return this.urlSerializer.serialize(e)}parseUrl(e){try{return this.urlSerializer.parse(e)}catch{return this.urlSerializer.parse("/")}}isActive(e,i){let r;if(i===!0?r=b({},OW):i===!1?r=b({},NW):r=i,yo(e))return PN(this.currentUrlTree,e,r);let o=this.parseUrl(e);return PN(this.currentUrlTree,o,r)}removeEmptyProps(e){return Object.entries(e).reduce((i,[r,o])=>(o!=null&&(i[r]=o),i),{})}scheduleNavigation(e,i,r,o,s){if(this.disposed)return Promise.resolve(!1);let a,l,c;s?(a=s.resolve,l=s.reject,c=s.promise):c=new Promise((h,m)=>{a=h,l=m});let d=this.pendingTasks.add();return RE(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(d))}),this.navigationTransitions.handleNavigationRequest({source:i,restoredState:r,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:e,extras:o,resolve:a,reject:l,promise:c,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),c.catch(h=>Promise.reject(h))}static \u0275fac=function(i){return new(i||n)};static \u0275prov=v({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})()});function LW(n){return n.routerState.root}function hu(n,t){return{\u0275kind:n,\u0275providers:t}}function PW(){let n=u(G);return t=>{let e=n.get(Ut);if(t!==e.components[0])return;let i=n.get(_o),r=n.get(DF);n.get(NE)===1&&i.initialNavigation(),n.get(AF,null,{optional:!0})?.setUpPreloading(),n.get(wF,null,{optional:!0})?.init(),i.resetRootComponentType(e.componentTypes[0]),r.closed||(r.next(),r.complete(),r.unsubscribe())}}function SF(){let n=[{provide:_h,useValue:!0},{provide:NE,useValue:0},kh(()=>{let t=u(G);return t.get(jb,Promise.resolve()).then(()=>new Promise(i=>{let r=t.get(_o),o=t.get(DF);RE(r,()=>{i(!0)}),t.get(Vm).afterPreactivation=()=>(i(!0),o.closed?N(void 0):o),r.initialNavigation()}))})];return hu(2,n)}function IF(){let n=[kh(()=>{u(_o).setUpLocationChangeListener()}),{provide:NE,useValue:2}];return hu(3,n)}function TF(n){return hu(0,[{provide:AF,useExisting:EF},{provide:fu,useExisting:n}])}function MF(){return hu(8,[DE,{provide:cu,useExisting:DE}])}function RF(n){Rn("NgRouterViewTransitions");let t=[{provide:AE,useValue:bF},{provide:TE,useValue:b({skipNextTransition:!!n?.skipInitialTransition},n)}];return hu(9,t)}function jW(){return{provide:wF,useFactory:()=>{let n=u(ET),t=u(P),e=u(js),i=u(Vm),r=u(Cl);return e.scrollOffset&&n.setOffset(e.scrollOffset),new kW(r,i,n,t,e)}}}function VW(){return{provide:Xn,useClass:Ub}}function BW(){return{provide:Xn,useClass:Gh}}function UW(n){return[n.initialNavigation==="disabled"?IF().\u0275providers:[],n.initialNavigation==="enabledBlocking"?SF().\u0275providers:[]]}function HW(){return[{provide:OE,useFactory:PW},{provide:Ta,multi:!0,useExisting:OE}]}var Bm,fu,EF,wF,kW,DF,NE,AF,OF,FE,OE,NF=f(()=>{"use strict";Le();Le();_();_();CF();we();it();Bm=(()=>{class n{router;route;tabIndexAttribute;renderer;el;locationStrategy;reactiveHref=Ae(null);get href(){return pt(this.reactiveHref)}set href(e){this.reactiveHref.set(e)}target;queryParams;fragment;queryParamsHandling;state;info;relativeTo;isAnchorElement;subscription;onChanges=new M;applicationErrorHandler=u(dn);options=u(js,{optional:!0});constructor(e,i,r,o,s,a){this.router=e,this.route=i,this.tabIndexAttribute=r,this.renderer=o,this.el=s,this.locationStrategy=a,this.reactiveHref.set(u(new Zr("href"),{optional:!0}));let l=s.nativeElement.tagName?.toLowerCase();this.isAnchorElement=l==="a"||l==="area"||!!(typeof customElements=="object"&&customElements.get(l)?.observedAttributes?.includes?.("href")),this.isAnchorElement?this.setTabIndexIfNotOnNativeEl("0"):this.subscribeToNavigationEventsIfNecessary()}subscribeToNavigationEventsIfNecessary(){if(this.subscription!==void 0||!this.isAnchorElement)return;let e=this.preserveFragment,i=r=>r==="merge"||r==="preserve";e||=i(this.queryParamsHandling),e||=!this.queryParamsHandling&&!i(this.options?.defaultQueryParamsHandling),e&&(this.subscription=this.router.events.subscribe(r=>{r instanceof ri&&this.updateHref()}))}preserveFragment=!1;skipLocationChange=!1;replaceUrl=!1;setTabIndexIfNotOnNativeEl(e){this.tabIndexAttribute!=null||this.isAnchorElement||this.applyAttributeValue("tabindex",e)}ngOnChanges(e){this.isAnchorElement&&(this.updateHref(),this.subscribeToNavigationEventsIfNecessary()),this.onChanges.next(this)}routerLinkInput=null;set routerLink(e){e==null?(this.routerLinkInput=null,this.setTabIndexIfNotOnNativeEl(null)):(yo(e)?this.routerLinkInput=e:this.routerLinkInput=Array.isArray(e)?e:[e],this.setTabIndexIfNotOnNativeEl("0"))}onClick(e,i,r,o,s){let a=this.urlTree;if(a===null||this.isAnchorElement&&(e!==0||i||r||o||s||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(a,l)?.catch(c=>{this.applicationErrorHandler(c)}),!this.isAnchorElement}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){let e=this.urlTree;this.reactiveHref.set(e!==null&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(e))??"":null)}applyAttributeValue(e,i){let r=this.renderer,o=this.el.nativeElement;i!==null?r.setAttribute(o,e,i):r.removeAttribute(o,e)}get urlTree(){return this.routerLinkInput===null?null:yo(this.routerLinkInput)?this.routerLinkInput:this.router.createUrlTree(this.routerLinkInput,{relativeTo:this.relativeTo!==void 0?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}static \u0275fac=function(i){return new(i||n)(T(_o),T(vo),Dc("tabindex"),T(rt),T(H),T(Xn))};static \u0275dir=j({type:n,selectors:[["","routerLink",""]],hostVars:2,hostBindings:function(i,r){i&1&&te("click",function(s){return r.onClick(s.button,s.ctrlKey,s.shiftKey,s.altKey,s.metaKey)}),i&2&&De("href",r.reactiveHref(),S_)("target",r.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[2,"preserveFragment","preserveFragment",Ie],skipLocationChange:[2,"skipLocationChange","skipLocationChange",Ie],replaceUrl:[2,"replaceUrl","replaceUrl",Ie],routerLink:"routerLink"},features:[je]})}return n})(),fu=class{},EF=(()=>{class n{router;injector;preloadingStrategy;loader;subscription;constructor(e,i,r,o){this.router=e,this.injector=i,this.preloadingStrategy=r,this.loader=o}setUpPreloading(){this.subscription=this.router.events.pipe(ue(e=>e instanceof ri),Sn(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(e,i){let r=[];for(let o of i){o.providers&&!o._injector&&(o._injector=Aa(o.providers,e,`Route: ${o.path}`));let s=o._injector??e,a=o._loadedInjector??s;(o.loadChildren&&!o._loadedRoutes&&o.canLoad===void 0||o.loadComponent&&!o._loadedComponent)&&r.push(this.preloadConfig(s,o)),(o.children||o._loadedRoutes)&&r.push(this.processRoutes(a,o.children??o._loadedRoutes))}return Pe(r).pipe(Tr())}preloadConfig(e,i){return this.preloadingStrategy.preload(i,()=>{let r;i.loadChildren&&i.canLoad===void 0?r=this.loader.loadChildren(e,i):r=N(null);let o=r.pipe(Ke(s=>s===null?N(void 0):(i._loadedRoutes=s.routes,i._loadedInjector=s.injector,this.processRoutes(s.injector??e,s.routes))));if(i.loadComponent&&!i._loadedComponent){let s=this.loader.loadComponent(e,i);return Pe([o,s]).pipe(Tr())}else return o})}static \u0275fac=function(i){return new(i||n)(S(_o),S($e),S(fu),S(jm))};static \u0275prov=v({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})(),wF=new x(""),kW=(()=>{class n{urlSerializer;transitions;viewportScroller;zone;options;routerEventsSubscription;scrollEventsSubscription;lastId=0;lastSource=gl;restoredId=0;store={};constructor(e,i,r,o,s={}){this.urlSerializer=e,this.transitions=i,this.viewportScroller=r,this.zone=o,this.options=s,s.scrollPositionRestoration||="disabled",s.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(e=>{e instanceof Ps?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof ri?(this.lastId=e.id,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.urlAfterRedirects).fragment)):e instanceof vr&&e.code===eu.IgnoredSameUrlNavigation&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(e=>{e instanceof nu&&(e.position?this.options.scrollPositionRestoration==="top"?this.viewportScroller.scrollToPosition([0,0]):this.options.scrollPositionRestoration==="enabled"&&this.viewportScroller.scrollToPosition(e.position):e.anchor&&this.options.anchorScrolling==="enabled"?this.viewportScroller.scrollToAnchor(e.anchor):this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(e,i){this.zone.runOutsideAngular(()=>Er(this,null,function*(){yield new Promise(r=>{setTimeout(r),typeof requestAnimationFrame<"u"&&requestAnimationFrame(r)}),this.zone.run(()=>{this.transitions.events.next(new nu(e,this.lastSource==="popstate"?this.store[this.restoredId]:null,i))})}))}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}static \u0275fac=function(i){Rc()};static \u0275prov=v({token:n,factory:n.\u0275fac})}return n})();DF=new x("",{factory:()=>new M}),NE=new x("",{providedIn:"root",factory:()=>1});AF=new x("");OF=[wi,{provide:Cl,useClass:Ls},_o,wl,{provide:vo,useFactory:LW,deps:[_o]},jm,[]],FE=(()=>{class n{constructor(){}static forRoot(e,i){return{ngModule:n,providers:[OF,[],{provide:uu,multi:!0,useValue:e},[],i?.errorHandler?{provide:ME,useValue:i.errorHandler}:[],{provide:js,useValue:i||{}},i?.useHash?VW():BW(),jW(),i?.preloadingStrategy?TF(i.preloadingStrategy).\u0275providers:[],i?.initialNavigation?UW(i):[],i?.bindToComponentInputs?MF().\u0275providers:[],i?.enableViewTransitions?RF().\u0275providers:[],HW()]}}static forChild(e){return{ngModule:n,providers:[{provide:uu,multi:!0,useValue:e}]}}static \u0275fac=function(i){return new(i||n)};static \u0275mod=L({type:n});static \u0275inj=F({})}return n})();OE=new x("")});var kE=f(()=>{"use strict";NF();});var $W,FF,LE=f(()=>{"use strict";_();_();En();co();Dt();$W=["clearButton"],FF=(()=>{let t=class t{constructor(){this.tldClick=new z,this.ariaCode="CLOSE_BUTTON"}clicked(){this.tldClick.emit(null)}};t.\u0275fac=function(r){return new(r||t)},t.\u0275cmp=$({type:t,selectors:[["tld-close-button"]],viewQuery:function(r,o){if(r&1&&Be($W,5),r&2){let s;be(s=xe())&&(o.clearButton=s.first)}},inputs:{ariaCode:"ariaCode",disabled:"disabled",tooltip:"tooltip"},outputs:{tldClick:"tldClick"},standalone:!1,decls:6,vars:7,consts:[["clearButton",""],["mat-icon-button","",3,"click","matTooltip","disabled"],[1,"material-icons"]],template:function(r,o){if(r&1){let s=Re();I(0,"button",1,0),ae(2,"translate"),ae(3,"translate"),te("click",function(){return ve(s),_e(o.clicked())}),I(4,"span",2),se(5," close "),R()()}r&2&&(A("matTooltip",pe(2,3,o.tooltip))("disabled",o.disabled),De("aria-label",pe(3,5,"ARIA_LABELS."+o.ariaCode)))},dependencies:[vs,fr,wt],encapsulation:2});let n=t;return n})()});var kF,LF=f(()=>{"use strict";Le();LE();En();Dt();co();_();kF=(()=>{let t=class t{};t.\u0275fac=function(r){return new(r||t)},t.\u0275mod=L({type:t}),t.\u0275inj=F({imports:[hn,so,Di,As]});let n=t;return n})()});function qW(n,t){if(n&1&&(ce(0,"p",10),ae(1,"translate")),n&2){let e=W();A("innerHtml",ds(1,1,e.message.title,e.message.localizationParams),Ci)}}function KW(n,t){if(n&1&&(ce(0,"span",12),ae(1,"translate")),n&2){let e=W(2);A("innerHtml",ds(1,1,e.message.support,e.message.localizationParams),Ci)}}function YW(n,t){if(n&1&&(I(0,"p",11),ce(1,"span",12),ae(2,"translate"),Te(3,KW,2,4,"span",13),R()),n&2){let e=W();C(),A("innerHtml",ds(2,2,e.message.body,e.message.localizationParams),Ci),C(2),A("ngIf",e.message.support)}}function QW(n,t){if(n&1&&(I(0,"mat-icon"),se(1),R()),n&2){let e=W(2);C(),ht(e.message.callbackButtonIcon)}}function ZW(n,t){if(n&1){let e=Re();I(0,"button",14),te("click",function(){ve(e);let r=W();return _e(r.message==null?null:r.message.callbackButtonClick())}),Te(1,QW,2,1,"mat-icon",15),se(2),ae(3,"translate"),R()}if(n&2){let e=W();C(),A("ngIf",e.message.callbackButtonIcon),C(),Je(" ",pe(3,2,e.message.callbackButtonText)," ")}}function XW(n,t){if(n&1){let e=Re();I(0,"tld-close-button",16),te("tldClick",function(){ve(e);let r=W();return _e(r.closeClick())}),R()}if(n&2){let e=W();ne("no-top-margin",!e.message.title||!e.message.body)}}function JW(n,t){if(n&1){let e=Re();I(0,"button",21),te("click",function(){ve(e);let r=W(2);return _e(r.buttonClick())}),se(1),ae(2,"translate"),R()}if(n&2){let e=W(2);C(),Je("",pe(2,1,e.message.buttonText)," ")}}function e4(n,t){if(n&1){let e=Re();I(0,"a",22),te("click",function(){ve(e);let r=W(2);return _e(r.linkClick())}),se(1),ae(2,"translate"),R()}if(n&2){let e=W(2);De("href",e.message.linkHref,Eh),C(),ht(pe(2,2,e.message.linkText))}}function t4(n,t){if(n&1){let e=Re();I(0,"a",23),te("click",function(){ve(e);let r=W(2);return _e(r.linkClick())}),se(1),ae(2,"translate"),R()}if(n&2){let e=W(2);A("routerLink",yb(4,WW,e.message.routerLink)),C(),ht(pe(2,2,e.message.linkText))}}function n4(n,t){if(n&1&&(I(0,"div",17),Te(1,JW,3,3,"button",18)(2,e4,3,4,"a",19)(3,t4,3,6,"a",20),R()),n&2){let e=W();C(),A("ngIf",e.message.buttonText),C(),A("ngIf",e.message.linkHref&&e.message.linkText),C(),A("ngIf",e.message.routerLink&&e.message.linkText)}}var WW,PF,Um=f(()=>{"use strict";_();_();Le();ym();ll();LE();En();kE();dr();Dt();WW=n=>[n];PF=(()=>{let t=class t{constructor(){this.buttonClicked=new z,this.closeClicked=new z,this.linkClicked=new z,this.iconNames={BASIC:"info",INFO:"info",ERROR:"error",SUCCESS:"check_circle",WARNING:"info"}}ngOnInit(){this.className=this.message.type.toLocaleLowerCase()}buttonClick(){this.buttonClicked.next(null)}closeClick(){this.closeClicked.next(null)}linkClick(){this.linkClicked.next(null)}};t.\u0275fac=function(r){return new(r||t)},t.\u0275cmp=$({type:t,selectors:[["lib-tld-notification-message"]],inputs:{message:"message",inline:"inline"},outputs:{buttonClicked:"buttonClicked",closeClicked:"closeClicked",linkClicked:"linkClicked"},standalone:!1,decls:12,vars:13,consts:[["fxLayout","row","fxLayoutAlign","start start","aria-live","polite","fxLayout","row",1,"notification-message-container","tld-default-border",3,"ngClass.lt-md"],[1,"material-icons-outlined","message-icon"],["fxFlex","",1,"items-container"],["fxLayout","row"],["fxFlex","",1,"text-container"],["class","message-title",3,"innerHtml",4,"ngIf"],["class","message-body",4,"ngIf"],["color","accent","mat-stroked-button","","class","callback-button",3,"click",4,"ngIf"],["class","close-button",3,"no-top-margin","tldClick",4,"ngIf"],["fxLayout","row","fxLayoutGap","16px","fxLayoutAlign","start center",4,"ngIf"],[1,"message-title",3,"innerHtml"],[1,"message-body"],[3,"innerHtml"],[3,"innerHtml",4,"ngIf"],["color","accent","mat-stroked-button","",1,"callback-button",3,"click"],[4,"ngIf"],[1,"close-button",3,"tldClick"],["fxLayout","row","fxLayoutGap","16px","fxLayoutAlign","start center"],["class","message-action-button","color","accent","mat-flat-button","",3,"click",4,"ngIf"],["class","message-action-link",3,"click",4,"ngIf"],["class","message-action-link",3,"routerLink","click",4,"ngIf"],["color","accent","mat-flat-button","",1,"message-action-button",3,"click"],[1,"message-action-link",3,"click"],[1,"message-action-link",3,"click","routerLink"]],template:function(r,o){r&1&&(I(0,"div")(1,"div",0)(2,"span",1),se(3),R(),I(4,"div",2)(5,"div",3)(6,"div",4),Te(7,qW,2,4,"p",5)(8,YW,4,5,"p",6),R(),Te(9,ZW,4,4,"button",7)(10,XW,1,2,"tld-close-button",8),R(),Te(11,n4,4,3,"div",9),R()()()),r&2&&(Yn(Nc("notification-message ",o.className)),C(),ne("inline",o.inline),A("ngClass.lt-md","mobile"),De("id",o.message.id),C(2),Je(" ",o.iconNames[o.message.type]," "),C(4),A("ngIf",o.message.title),C(),A("ngIf",o.message.body),C(),A("ngIf",o.message.callbackButtonText),C(),A("ngIf",!o.message.hideClose&&!o.message.callbackButtonText),C(),A("ngIf",o.message.buttonText||o.message.linkHref||o.message.routerLink))},dependencies:[Xi,rN,tN,XO,QO,al,FF,Mi,Bm,Ri,wt],styles:["[_nghost-%COMP%]{display:inline-block;width:100%}.close-button[_ngcontent-%COMP%]{position:absolute;top:.2em!important;right:.2em!important}.no-top-margin[_ngcontent-%COMP%]{top:0}.text-container[_ngcontent-%COMP%]{margin-right:45px}.notification-message[_ngcontent-%COMP%]{position:relative}.notification-message.basic[_ngcontent-%COMP%]{color:var(--base-30)}.notification-message.basic[_ngcontent-%COMP%] .notification-message-container[_ngcontent-%COMP%]{background-color:var(--base-95)}.notification-message.basic[_ngcontent-%COMP%] .notification-message-container[_ngcontent-%COMP%] .close-button[_ngcontent-%COMP%], .notification-message.basic[_ngcontent-%COMP%] .notification-message-container[_ngcontent-%COMP%] .message-icon[_ngcontent-%COMP%]{color:var(--base-40)}.notification-message.basic[_ngcontent-%COMP%] .notification-message-container[_ngcontent-%COMP%] .message-action-button[_ngcontent-%COMP%]{background-color:var(--base-40)}.notification-message.info[_ngcontent-%COMP%] .notification-message-container[_ngcontent-%COMP%]{background-color:var(--info-light)}.notification-message.info[_ngcontent-%COMP%] .notification-message-container[_ngcontent-%COMP%] .text-container[_ngcontent-%COMP%]{color:var(--info-dark)}.notification-message.info[_ngcontent-%COMP%] .notification-message-container[_ngcontent-%COMP%] .message-icon[_ngcontent-%COMP%]{color:var(--info-primary)}.notification-message.info[_ngcontent-%COMP%] .notification-message-container[_ngcontent-%COMP%] .close-button[_ngcontent-%COMP%]{color:var(--info-dark)}.notification-message.info[_ngcontent-%COMP%] .notification-message-container[_ngcontent-%COMP%] .message-action-button[_ngcontent-%COMP%]{background-color:var(--base-40)}.notification-message.error[_ngcontent-%COMP%] .notification-message-container[_ngcontent-%COMP%]{background-color:var(--error-light)}.notification-message.error[_ngcontent-%COMP%] .notification-message-container[_ngcontent-%COMP%] .close-button[_ngcontent-%COMP%], .notification-message.error[_ngcontent-%COMP%] .notification-message-container[_ngcontent-%COMP%] .text-container[_ngcontent-%COMP%], .notification-message.error[_ngcontent-%COMP%] .notification-message-container[_ngcontent-%COMP%] .message-icon[_ngcontent-%COMP%]{color:var(--error-dark)}.notification-message.error[_ngcontent-%COMP%] .notification-message-container[_ngcontent-%COMP%] .message-action-button[_ngcontent-%COMP%]{background-color:var(--base-40)}.notification-message.warning[_ngcontent-%COMP%] .notification-message-container[_ngcontent-%COMP%]{background-color:var(--warning-light)}.notification-message.warning[_ngcontent-%COMP%] .notification-message-container[_ngcontent-%COMP%] .close-button[_ngcontent-%COMP%], .notification-message.warning[_ngcontent-%COMP%] .notification-message-container[_ngcontent-%COMP%] .text-container[_ngcontent-%COMP%], .notification-message.warning[_ngcontent-%COMP%] .notification-message-container[_ngcontent-%COMP%] .message-icon[_ngcontent-%COMP%]{color:var(--warning-dark)}.notification-message.warning[_ngcontent-%COMP%] .notification-message-container[_ngcontent-%COMP%] .message-action-button[_ngcontent-%COMP%]{background-color:var(--base-40)}.notification-message.success[_ngcontent-%COMP%] .notification-message-container[_ngcontent-%COMP%]{background-color:var(--success-light)}.notification-message.success[_ngcontent-%COMP%] .notification-message-container[_ngcontent-%COMP%] .close-button[_ngcontent-%COMP%], .notification-message.success[_ngcontent-%COMP%] .notification-message-container[_ngcontent-%COMP%] .text-container[_ngcontent-%COMP%], .notification-message.success[_ngcontent-%COMP%] .notification-message-container[_ngcontent-%COMP%] .message-icon[_ngcontent-%COMP%]{color:var(--success-dark)}.notification-message.success[_ngcontent-%COMP%] .notification-message-container[_ngcontent-%COMP%] .message-action-button[_ngcontent-%COMP%]{background-color:var(--base-40)}.notification-message[_ngcontent-%COMP%] .notification-message-container[_ngcontent-%COMP%]{border-radius:4px}.notification-message[_ngcontent-%COMP%] .notification-message-container[_ngcontent-%COMP%] .text-container[_ngcontent-%COMP%]:has(.message-title+.message-body) .message-title[_ngcontent-%COMP%]{font-weight:600}.notification-message[_ngcontent-%COMP%] .notification-message-container.mobile[_ngcontent-%COMP%]{padding:.6em .4em!important;border-radius:0}.notification-message[_ngcontent-%COMP%] .notification-message-container.mobile[_ngcontent-%COMP%] .items-container[_ngcontent-%COMP%]{margin-left:.4em!important}.notification-message[_ngcontent-%COMP%] .notification-message-container.mobile[_ngcontent-%COMP%] .items-container[_ngcontent-%COMP%] div[_ngcontent-%COMP%] + div[_ngcontent-%COMP%]{margin-top:.2em!important}.notification-message[_ngcontent-%COMP%] .notification-message-container.mobile[_ngcontent-%COMP%] .items-container[_ngcontent-%COMP%] .message-title[_ngcontent-%COMP%] + .message-body[_ngcontent-%COMP%]{margin-top:0!important}.notification-message[_ngcontent-%COMP%] .notification-message-container[_ngcontent-%COMP%] .text-container[_ngcontent-%COMP%]:first-child{line-height:1.5em}.notification-message[_ngcontent-%COMP%] .notification-message-container[_ngcontent-%COMP%] .text-container[_ngcontent-%COMP%] .message-title[_ngcontent-%COMP%]{margin:0;font-size:1rem;line-height:24px}.notification-message[_ngcontent-%COMP%] .notification-message-container[_ngcontent-%COMP%] .text-container[_ngcontent-%COMP%] .message-body[_ngcontent-%COMP%]{margin:0}.notification-message[_ngcontent-%COMP%] .notification-message-container[_ngcontent-%COMP%]:not(.inline){padding:1em}.notification-message[_ngcontent-%COMP%] .notification-message-container[_ngcontent-%COMP%]:not(.inline) .items-container[_ngcontent-%COMP%]{margin-left:1em}.notification-message[_ngcontent-%COMP%] .notification-message-container[_ngcontent-%COMP%]:not(.inline) .message-title[_ngcontent-%COMP%]{font-size:1.25em}.notification-message[_ngcontent-%COMP%] .notification-message-container[_ngcontent-%COMP%]:not(.inline) .message-body[_ngcontent-%COMP%]{line-height:1.5em}.notification-message[_ngcontent-%COMP%] .notification-message-container.inline[_ngcontent-%COMP%]{padding:.75em 1em}.notification-message[_ngcontent-%COMP%] .notification-message-container.inline[_ngcontent-%COMP%] .items-container[_ngcontent-%COMP%]{margin-left:.75em}.notification-message[_ngcontent-%COMP%] .notification-message-container.inline[_ngcontent-%COMP%] .items-container[_ngcontent-%COMP%] div[_ngcontent-%COMP%] + div[_ngcontent-%COMP%]{margin-top:.5em}.notification-message[_ngcontent-%COMP%] .notification-message-container.inline[_ngcontent-%COMP%] .items-container[_ngcontent-%COMP%] .message-title[_ngcontent-%COMP%] + .message-body[_ngcontent-%COMP%]{margin-top:.2em}.notification-message[_ngcontent-%COMP%] .notification-message-container.inline[_ngcontent-%COMP%] .message-title[_ngcontent-%COMP%]{font-size:1em}"]});let n=t;return n})()});var jF,VF=f(()=>{"use strict";Le();vm();En();kE();Dt();LF();Um();dr();_();jF=(()=>{let t=class t{};t.\u0275fac=function(r){return new(r||t)},t.\u0275mod=L({type:t}),t.\u0275inj=F({imports:[hn,cl,kF,so,Di,FE,$p]});let n=t;return n})()});var Vs,PE=f(()=>{"use strict";Vs=(function(n){return n.BASIC="BASIC",n.INFO="INFO",n.WARNING="WARNING",n.SUCCESS="SUCCESS",n.ERROR="ERROR",n})(Vs||{})});var BF=f(()=>{"use strict";PE()});var UF=f(()=>{"use strict"});var HF=f(()=>{"use strict";UF()});var jE=f(()=>{"use strict";VF();Um();BF();HF()});var VE=f(()=>{"use strict"});var zF=f(()=>{"use strict";jE();VE()});var $F=f(()=>{"use strict"});var GF=f(()=>{"use strict";$F()});var WF=f(()=>{"use strict";VE()});var qF=f(()=>{"use strict";zF();GF();WF()});var KF=f(()=>{"use strict"});var YF=f(()=>{"use strict"});var QF=f(()=>{"use strict"});var ZF=f(()=>{"use strict"});var XF=f(()=>{"use strict"});var JF=f(()=>{"use strict"});var ek=f(()=>{"use strict"});var tk=f(()=>{"use strict"});var Bs,nk=f(()=>{"use strict";qC();Bs=class{static isMobileRes(){return window.innerWidth<IN.SMALL}}});var BE=f(()=>{"use strict"});var ik=f(()=>{"use strict";bo();BE()});var rk=f(()=>{"use strict";BE()});var UE=f(()=>{"use strict";ik();rk()});var ok=f(()=>{"use strict";UE()});var sk=f(()=>{"use strict"});var ak=f(()=>{"use strict"});var bo=f(()=>{"use strict";KF();YF();QF();ZF();XF();JF();ek();tk();nk();ok();sk();ak()});var lk=f(()=>{"use strict"});var ck=f(()=>{"use strict"});var dk=f(()=>{"use strict"});var uk=f(()=>{"use strict"});var fk=f(()=>{"use strict"});var hk=f(()=>{"use strict"});var pk=f(()=>{"use strict"});var mk=f(()=>{"use strict"});var gk=f(()=>{"use strict";lk();ck();dk();uk();fk();hk();pk();mk()});var yk=f(()=>{"use strict"});var vk=f(()=>{"use strict"});var _k=f(()=>{"use strict";vk()});var bk=f(()=>{"use strict";bo();gk();yk();_k()});var xk=f(()=>{"use strict";bk()});var Ck=f(()=>{"use strict";xk()});var HE=f(()=>{"use strict"});var Ek=f(()=>{"use strict";HE()});var wk=f(()=>{"use strict";Ek();HE()});var zE=f(()=>{"use strict"});var Dk=f(()=>{"use strict";zE()});var Sk=f(()=>{"use strict";Dk();zE()});var $E=f(()=>{"use strict"});var Ik=f(()=>{"use strict";$E()});var Ak=f(()=>{"use strict";Ik();$E()});var Tk,GE=f(()=>{"use strict";_();Dt();Tk=(()=>{let t=class t{constructor(i){this.translate=i,this.languagesLocalizationKey="LANGUAGES",this.translationCache=new Map,this.localeSameRegions={nb:["no"],et:["ee"],sl:["si"],sv:["se"],uk:["ua"],en:["gb","us"]},this.translations={en:{mt:"Maltese"},lv:{mt:"Maltie\u0161u"},lt:{mt:"Maltie\u010Di\u0173"},et:{mt:"Malta"}},this.translate.onLangChange.subscribe(()=>{this.translationCache.clear(),this.lastUiLanguage=this.translate.currentLang}),this.lastUiLanguage=this.translate.currentLang}transform(i,r=!1){if(!i)return"";this.lastUiLanguage!==this.translate.currentLang&&(this.translationCache.clear(),this.lastUiLanguage=this.translate.currentLang);let o=`${i}:${r}`;if(this.translationCache.has(o))return this.translationCache.get(o);let s=this.getLanguageFromLanguageCode(i),l=this.isLanguageCodeSameAsRegion(i)?s:i,c=this.getTranslation(l,r);return this.translationCache.set(o,c),c}getTranslation(i,r){let s=this.translate.instant(this.languagesLocalizationKey)[i.toUpperCase().replace("-","_")]??this.getLanguageTranslationFromLanguageCode(this.translate.currentLang,i);return r&&(s=s.split("(")[0].trim()),s}getLanguageTranslationFromLanguageCode(i,r){let o=new Intl.DisplayNames([i],{type:"language"}),s=new Intl.DisplayNames([i],{type:"region"}),a,l=this.getLanguageFromLanguageCode(r),c=this.getRegionFromLanguageCode(r);try{let d=o.of(l),h=s.of(c);a=`${d} (${h})`}catch{try{a=o.of(r)}catch{return a=this.translations[i]?.[l]??r,a}}return this.capitalizeFirstLetter(a)}isLanguageCodeSameAsRegion(i){let[r,o,s]=i.split("-");return(r===o?.toLowerCase()||this.localeSameRegions[r]?.includes(o?.toLowerCase()))&&!s}getRegionFromLanguageCode(i){let[r,o,s]=i.split("-");return(s?`${o}-${s}`:`${o}`).toUpperCase()}getLanguageFromLanguageCode(i){return i.split("-")[0].toLowerCase()}capitalizeFirstLetter(i){return i.charAt(0).toUpperCase()+i.slice(1)}};t.\u0275fac=function(r){return new(r||t)(T(rr,16))},t.\u0275pipe=ss({name:"languageTranslate",type:t,pure:!1});let n=t;return n})()});var Mk=f(()=>{"use strict";GE()});var Rk=f(()=>{"use strict";Mk();GE()});var Ok=f(()=>{"use strict"});var Nk=f(()=>{"use strict"});var Fk=f(()=>{"use strict"});var kk=f(()=>{"use strict"});var Lk=f(()=>{"use strict";Ok();Nk();Fk();kk()});var WE=f(()=>{"use strict";Lk()});var Pk=f(()=>{"use strict";WE()});var jk=f(()=>{"use strict";Pk();WE()});var qE=f(()=>{"use strict"});var Vk=f(()=>{"use strict";qE()});var Bk=f(()=>{"use strict";Vk();qE()});var Uk=f(()=>{"use strict";bo()});var Hk=f(()=>{"use strict";Uk()});var KE=f(()=>{"use strict";bo()});var zk=f(()=>{"use strict";KE()});var $k=f(()=>{"use strict";zk();KE()});var Gk=f(()=>{"use strict"});var Wk=f(()=>{"use strict";Gk()});var qk=f(()=>{"use strict";QE()});var Kk=f(()=>{"use strict";Wk();qk()});var Yk=f(()=>{"use strict";bo()});var Qk=f(()=>{"use strict";Yk()});var Zk=f(()=>{"use strict";bo()});var Xk=f(()=>{"use strict";Zk()});var Jk=f(()=>{"use strict";wk();Sk();Ak();Rk();jk();Bk();Hk();$k();Kk();UE();Qk();Xk()});var YE,eL=f(()=>{"use strict";Jk();_();Dt();YE=(()=>{let t=class t{constructor(i){this.translateService=i}getLanguageCodeTranslation(i,r=!1){return new Tk(this.translateService).transform(i,r)}removeRegionFromLanguageCode(i){return i.split("-")[0]}};t.\u0275fac=function(r){return new(r||t)(S(rr))},t.\u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})()});var QE=f(()=>{"use strict";eL()});var ZE=f(()=>{"use strict"});var tL=f(()=>{"use strict";ZE()});var nL=f(()=>{"use strict"});var iL=f(()=>{"use strict";nL();ZE()});var rL=f(()=>{"use strict";tL();iL()});var XE=f(()=>{"use strict";NN();LN();qF();Ck();QE();rL()});var xo,JE=f(()=>{"use strict";XE();xo=class{static addPlausible(t){let i=new FN().window;if(!i||!t)return;let r="https://plausible.io/js/plausible.js",o=document.createElement("script");o.src=r,o.setAttribute("data-domain",t),document.head.append(o),i.plausible=i.plausible||((...s)=>{(i.plausible.q=i.plausible.q||[]).push(s)})}static customEvent(t,e){let i=window;i?.plausible&&i.plausible(t,{props:e})}}});var ew=f(()=>{"use strict";JE()});var oL=f(()=>{"use strict";ew()});var sL=f(()=>{"use strict"});var aL=f(()=>{"use strict";sL()});var lL=f(()=>{"use strict";JE();ew();oL();aL()});var Hm,cL=f(()=>{"use strict";Hm=(function(n){return n.GENERAL="General",n.PROFESSIONAL="Professional",n.ACADEMIC="Academic",n})(Hm||{})});var Sl,dL=f(()=>{"use strict";_();Sl=new x("LLM_CONFIGURATION_TOKEN")});var uL=f(()=>{"use strict"});var Il=f(()=>{"use strict";dL();uL();bm()});var fL,hL=f(()=>{"use strict";_();Ns();we();PE();Il();_();Ns();fL=(()=>{let t=class t{constructor(i){this.quotaService=i,this.llmConfiguration=u(Sl),this.trialRequestCount=15,this.LLMQuotaLocalStorageKey="LLM_QUOTA"}getRemainingQuota(i){return this.llmConfiguration.useLocalQuota?N(this.setQuotaLocalStorageUsage(i)):this.quotaService.getQuotaUsage().pipe(V(r=>{let o=r.usage.find(s=>s.quotaType===Ye.LLM_REQUESTS||s.quotaType===Ye.LEGACY_LLM_REQUESTS);return o?o.quotaRemaining:this.setQuotaLocalStorageUsage(i)}),an(()=>N(this.setQuotaLocalStorageUsage(i))))}getExceededLimitMessage(i){return{type:Vs.WARNING,body:"ERRORS.MAX_CHAR_LENGTH",localizationParams:{maxCharLength:this.llmConfiguration.maxCharLength,totalSymbols:i}}}getReachedQuotaMessage(){return{type:Vs.ERROR,body:"LLM.ERRORS.QUOTA_LIMIT_REACHED",localizationParams:{subscriptionUrl:this.llmConfiguration.subscriptionUrl}}}getDefaultErrorMessage(){return{type:Vs.ERROR,body:"LLM.ERRORS.DEFAULT",localizationParams:{supportEmail:this.llmConfiguration.supportEmail}}}getRequestTimeoutMessage(i){return{type:Vs.ERROR,body:`LLM.ERRORS.${i}_REQUEST_TIMEOUT`,localizationParams:{supportEmail:this.llmConfiguration.supportEmail}}}setQuotaLocalStorageUsage(i){let r=localStorage.getItem(this.LLMQuotaLocalStorageKey),o=new Date,s={remainingQuota:this.trialRequestCount,lastUsedAt:o};if(r){s=JSON.parse(r);let l=new Date(s.lastUsedAt);(l.getDate()!==o.getDate()||l.getMonth()!==o.getMonth()||l.getFullYear()!==o.getFullYear())&&(s.remainingQuota=this.trialRequestCount),i&&(s.remainingQuota-=1)}return s.lastUsedAt=o,localStorage.setItem(this.LLMQuotaLocalStorageKey,JSON.stringify(s)),s.remainingQuota}};t.\u0275fac=function(r){return new(r||t)(S(DN))},t.\u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})()});var tw,pL,mL,nw=f(()=>{"use strict";_();_();tw=class{_document;_textarea;constructor(t,e){this._document=e;let i=this._textarea=this._document.createElement("textarea"),r=i.style;r.position="fixed",r.top=r.opacity="0",r.left="-999em",i.setAttribute("aria-hidden","true"),i.value=t,i.readOnly=!0,(this._document.fullscreenElement||this._document.body).appendChild(i)}copy(){let t=this._textarea,e=!1;try{if(t){let i=this._document.activeElement;t.select(),t.setSelectionRange(0,t.value.length),e=this._document.execCommand("copy"),i&&i.focus()}}catch{}return e}destroy(){let t=this._textarea;t&&(t.remove(),this._textarea=void 0)}},pL=(()=>{class n{_document=u(U);constructor(){}copy(e){let i=this.beginCopy(e),r=i.copy();return i.destroy(),r}beginCopy(e){return new tw(e,this._document)}static \u0275fac=function(i){return new(i||n)};static \u0275prov=v({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})(),mL=(()=>{class n{static \u0275fac=function(i){return new(i||n)};static \u0275mod=L({type:n});static \u0275inj=F({})}return n})()});var f4,gL,iw=f(()=>{"use strict";_();to();we();_();nw();En();dr();to();co();ll();Dt();f4=["textarea"],gL=(()=>{let t=class t{constructor(i){this.clipboard=i,this.textEditEvent=new z,this.dislikeEvent=new z,this.copyEvent=new z,this.destroy=new M}ngOnInit(){this.textareaControl=new ld(this.text)}ngAfterViewInit(){aa(this.textarea.nativeElement,"keyup").pipe(Fe(i=>{i.ctrlKey&&i.key==="c"&&this.copyEvent.emit()}),Vi(300),Ee(this.destroy)).subscribe(()=>{this.textEditEvent.emit(this.textareaControl.value)})}ngOnChanges(i){i&&i.disabled&&(this.disabled?this.textareaControl?.disable():this.textareaControl?.enable()),i&&i.text&&(this.textareaControl=new ld(this.text))}dislike(){this.dislikeEvent.emit()}copy(){this.clipboard.copy(this.textareaControl.value),this.copyEvent.emit()}ngOnDestroy(){this.destroy.next(null),this.destroy.complete()}};t.\u0275fac=function(r){return new(r||t)(T(pL))},t.\u0275cmp=$({type:t,selectors:[["lib-llm-textarea"]],viewQuery:function(r,o){if(r&1&&Be(f4,5),r&2){let s;be(s=xe())&&(o.textarea=s.first)}},inputs:{text:"text",disabled:"disabled",actionButtonsDisabled:"actionButtonsDisabled"},outputs:{textEditEvent:"textEditEvent",dislikeEvent:"dislikeEvent",copyEvent:"copyEvent"},standalone:!1,features:[je],decls:18,vars:13,consts:[["textarea",""],[1,"llm-wrapper",3,"ngClass.gt-lg"],[1,"llm-textarea-wrapper"],[1,"llm-textarea",3,"formControl"],[1,"llm-textarea-actions"],[1,"material-icons-outlined","llm-eu-data-tooltip",3,"matTooltip"],["mat-icon-button","",3,"click","matTooltip","disabled"],[1,"material-icons-outlined","copy"],["mat-icon-button","",3,"click","disabled","matTooltip"],[1,"material-icons-outlined","dislike"]],template:function(r,o){if(r&1){let s=Re();I(0,"div",1)(1,"div",2)(2,"textarea",3,0),se(4," "),R(),I(5,"div",4)(6,"mat-icon",5),ae(7,"translate"),se(8," gpp_maybe "),R(),I(9,"div")(10,"button",6),ae(11,"translate"),te("click",function(){return ve(s),_e(o.dislike())}),I(12,"mat-icon",7),se(13," thumb_down "),R()(),I(14,"button",8),ae(15,"translate"),te("click",function(){return ve(s),_e(o.copy())}),I(16,"mat-icon",9),se(17," content_copy "),R()()()()()()}r&2&&(A("ngClass.gt-lg","desktop"),C(2),A("formControl",o.textareaControl),C(4),A("matTooltip",pe(7,7,"LLM.EU_DATA_TOOLTIP")),C(4),A("matTooltip",pe(11,9,"TOOLTIPS.DISLIKE"))("disabled",o.actionButtonsDisabled||!o.textareaControl.value),C(4),A("disabled",o.actionButtonsDisabled||!o.textareaControl.value)("matTooltip",pe(15,11,"TOOLTIPS.COPY")))},dependencies:[vs,Ri,Wa,qa,Sx,fr,al,wt],styles:[".llm-wrapper[_ngcontent-%COMP%]{position:relative;border:1px solid var(--base-65);border-radius:8px;overflow-y:auto}.llm-textarea-wrapper[_ngcontent-%COMP%]{position:relative}.llm-textarea[_ngcontent-%COMP%]{min-width:100%;min-height:310px;padding:8px 16px;resize:none;background:none;border-radius:8px;margin-bottom:46px}.desktop[_ngcontent-%COMP%] .llm-textarea[_ngcontent-%COMP%]{min-height:490px}.llm-textarea-actions[_ngcontent-%COMP%]{position:absolute;display:flex;justify-content:space-between;align-items:center;width:100%;bottom:4px}.llm-eu-data-tooltip[_ngcontent-%COMP%]{margin-left:16px}"]});let n=t;return n})()});function m4(n,t){if(n&1){let e=Re();I(0,"lib-tld-notification-message",15),te("closeClicked",function(){let r=ve(e).$implicit,o=W();return _e(o.closeMessage(r))}),R()}if(n&2){let e=t.$implicit;A("message",e)}}function g4(n,t){if(n&1&&(I(0,"mat-option",18),se(1),ae(2,"uppercase"),ae(3,"translate"),R()),n&2){let e=t.$implicit;A("value",e),C(),Je(" ",pe(3,4,"LLM.USE_CASE."+pe(2,2,e))," ")}}function y4(n,t){if(n&1){let e=Re();I(0,"mat-form-field",16)(1,"mat-label"),se(2),ae(3,"translate"),R(),I(4,"mat-select",17),cs("ngModelChange",function(r){ve(e);let o=W();return Oa(o.selectedUseCase,r)||(o.selectedUseCase=r),_e(r)}),fb(5,g4,4,6,"mat-option",18,ub),R()()}if(n&2){let e=W();C(2),ht(pe(3,3,"LLM.USE_CASES_LABEL")),C(2),A("disabled",e.isLoading),ls("ngModel",e.selectedUseCase),C(),hb(e.useCases)}}function v4(n,t){if(n&1&&(ce(0,"div",19),ae(1,"translate")),n&2){let e=W();A("innerHTML",ds(1,1,e.localizationKey+"LIMIT",vb(4,p4,e.quotaLeft,e.subscriptionUrl)),Ci)}}function _4(n,t){if(n&1){let e=Re();I(0,"button",20),te("click",function(){ve(e);let r=W();return _e(r.cancel())}),se(1),ae(2,"translate"),R()}if(n&2){let e=W();C(),Je(" ",pe(2,1,e.localizationKey+"CANCEL")," ")}}function b4(n,t){if(n&1&&(I(0,"button",21),se(1),ae(2,"translate"),R()),n&2){let e=W();A("mat-dialog-close",null),C(),Je(" ",pe(2,2,e.localizationKey+"CLOSE")," ")}}function x4(n,t){if(n&1&&(I(0,"span"),se(1),ae(2,"translate"),R()),n&2){let e=W();C(),Je(" ",pe(2,1,e.isSummarized?"LLM.SUMMARY_MODAL.REGENERATE":"LLM.SUMMARY_MODAL.ACTION")," ")}}function C4(n,t){if(n&1&&(se(0),ae(1,"translate")),n&2){let e=W();Je(" ",pe(1,1,e.localizationKey+"ACTION")," ")}}function E4(n,t){n&1&&ce(0,"mat-spinner",22),n&2&&A("diameter",20)}var p4,yL,rw=f(()=>{"use strict";go();Ns();we();qC();lL();bm();cL();_();Ns();hL();Le();En();go();to();hm();Ld();Um();Wp();iw();Dt();p4=(n,t)=>({limit:n,subscriptionUrl:t});yL=(()=>{let t=class t{get isDisabled(){return this.isLoading||!this.initialText||this.quotaLeft<1}constructor(i,r,o){this.llmService=i,this.llmHelperService=r,this.data=o,this.selectedWritingStyle=Hm.GENERAL,this.editedText="",this.manuallyEditedText="",this.savedRephrasings=[],this.llmActions=tn,this.writingStyles=Object.values(Hm),this.useCases=[],this.messages=[],this.showUseCase=!1}ngOnInit(){this.setInitialText(),this.llmActionType===tn.REPHRASE?(this.useCases=this.data.rephraseUseCases??Object.values(GC),this.selectedUseCase=this.useCases[0]):this.llmActionType===tn.SUMMARY&&(this.useCases=this.data.summaryUseCases??Object.values(Cm),this.selectedUseCase=Cm.General),this.showUseCase=this.llmActionType===tn.REPHRASE&&this.data.showUseCaseRephrase||this.llmActionType===tn.SUMMARY&&this.data.showUseCaseSummary}closeMessage(i){let r=this.messages?.findIndex(o=>JSON.stringify(o)===JSON.stringify(i));(r||r===0)&&this.messages.splice(r,1)}checkRephrasedTextSaves(i){i.value!==this.selectedWritingStyle&&(this.previousWritingStyle=this.selectedWritingStyle,this.selectedWritingStyle=i.value);let r=this.savedRephrasings.find(s=>s.style===this.selectedWritingStyle),o=this.savedRephrasings.find(s=>s.style===this.previousWritingStyle);o?o.text=this.editedText!==""?this.editedText:this.initialText:this.savedRephrasings.push({style:this.previousWritingStyle,text:this.editedText!==""?this.editedText:this.initialText}),this.editedText=r?.text??this.initialText,this.manuallyEditedText="",this.checkTextLimit()}getEditedText(){this.isLoading=!0,this.llmActionType===tn.REPHRASE?this.writingStylePlausibleEvent():this.summaryPlausibleEvent(),this.subscription=this.getRequest()}cancel(){this.subscription.unsubscribe()}textEditEvent(i){this.manuallyEditedText=i,this.initialText=i,this.editedText="",this.checkTextLimit()}copyPlausibleEvent(){xo.customEvent(this.llmActionType.toLowerCase(),{action:"copy"})}dislikePlausibleEvent(){xo.customEvent(this.llmActionType.toLowerCase(),{action:"dislike"})}setInitialText(){this.data.text.subscribe(i=>{this.initialText=i,this.llmActionType=this.data.action,this.localizationKey=`LLM.${this.llmActionType}_MODAL.`,this.subscriptionUrl=this.llmHelperService.llmConfiguration.subscriptionUrl,this.maxCharLength=this.llmHelperService.llmConfiguration.maxCharLength,this.refreshQuota()})}checkTextLimit(){let i=this.maxCharLength,r=[this.initialText,this.manuallyEditedText,this.editedText],o=this.editedText&&!this.manuallyEditedText?this.editedText:r.reduce((s,a)=>s.length>a.length?s:a);if(o.length>i){this.exceededLimitMessage&&this.closeMessage(this.exceededLimitMessage),this.exceededLimitMessage=this.llmHelperService.getExceededLimitMessage(o.length),this.messages.push(this.exceededLimitMessage);return}this.closeMessage(this.exceededLimitMessage)}writingStylePlausibleEvent(){xo.customEvent(this.llmActionType.toLowerCase(),{writingStyle:this.selectedWritingStyle})}summaryPlausibleEvent(){xo.customEvent(this.llmActionType.toLowerCase(),{action:"summary"})}refreshQuota(i){this.llmHelperService.getRemainingQuota(i).subscribe(r=>{this.quotaLeft=r,this.setQuotaMessage()})}setQuotaMessage(){this.quotaLeft<=this.llmHelperService.trialRequestCount&&(this.remainingQuotaMessageVisible=!0),this.quotaLeft<1&&(this.reachedQuotaMessage=this.llmHelperService.getReachedQuotaMessage(),this.messages.push(this.reachedQuotaMessage))}getRequest(){let i=this.manuallyEditedText!==""?this.manuallyEditedText:this.initialText;return i.length>this.maxCharLength&&(i=i.substring(0,this.maxCharLength)),(this.llmActionType===tn.REPHRASE?this.llmService.rephrase({text:i,language:this.data.language,style:this.selectedWritingStyle,useCase:this.selectedUseCase}):this.llmService.summarize({text:i,language:this.data.language,useCase:this.selectedUseCase})).pipe(ln(()=>this.isLoading=!1)).subscribe(this.getRequestCallback())}getRequestCallback(){return{next:i=>{this.llmActionType===this.llmActions.SUMMARY&&(this.isSummarized=!0),this.editedText=i,this.manuallyEditedText="",this.defaultErrorMessage=this.llmHelperService.getDefaultErrorMessage(),this.closeMessage(this.defaultErrorMessage),this.closeMessage(this.requestTimeoutMessage),this.isEdited=!0,this.refreshQuota(!0),this.checkTextLimit()},error:i=>{if(i.status===WC.TIMEOUT){this.requestTimeoutMessage=this.llmHelperService.getRequestTimeoutMessage(this.llmActionType),this.messages.push(this.requestTimeoutMessage);return}this.messages.push(this.defaultErrorMessage)}}}};t.\u0275fac=function(r){return new(r||t)(T(wN),T(fL),T(ul))},t.\u0275cmp=$({type:t,selectors:[["lib-llm-textarea-with-actions"]],standalone:!1,decls:20,vars:22,consts:[["closeButton",""],["rephraseAction",""],["mat-dialog-title",""],["mat-dialog-content",""],[3,"innerHTML"],[3,"message","closeClicked",4,"ngFor","ngForOf"],["color","accent","class","w-full llm-writing-style-select","appearance","outline",4,"ngIf"],[3,"textEditEvent","copyEvent","dislikeEvent","text","disabled","actionButtonsDisabled"],["mat-dialog-actions","",1,"llm-actions-wrapper"],["class","quota-left-message",3,"innerHTML",4,"ngIf"],[1,"llm-actions"],["mat-button","","color","accent",3,"click",4,"ngIf","ngIfElse"],["mat-flat-button","","color","accent",3,"click","disabled"],[4,"ngIf","ngIfElse"],["color","primary-accent-darker",3,"diameter",4,"ngIf"],[3,"closeClicked","message"],["color","accent","appearance","outline",1,"w-full","llm-writing-style-select"],[3,"ngModelChange","disabled","ngModel"],[3,"value"],[1,"quota-left-message",3,"innerHTML"],["mat-button","","color","accent",3,"click"],["mat-button","","color","accent",3,"mat-dialog-close"],["color","primary-accent-darker",3,"diameter"]],template:function(r,o){if(r&1){let s=Re();I(0,"h1",2),se(1),ae(2,"translate"),R(),I(3,"div",3),ce(4,"p",4),ae(5,"translate"),Te(6,m4,1,1,"lib-tld-notification-message",5)(7,y4,7,5,"mat-form-field",6),I(8,"lib-llm-textarea",7),te("textEditEvent",function(l){return ve(s),_e(o.textEditEvent(l))})("copyEvent",function(){return ve(s),_e(o.copyPlausibleEvent())})("dislikeEvent",function(){return ve(s),_e(o.dislikePlausibleEvent())}),R()(),I(9,"div",8),Te(10,v4,2,7,"div",9),I(11,"div",10),Te(12,_4,3,3,"button",11)(13,b4,3,4,"ng-template",null,0,Qr),I(15,"button",12),te("click",function(){return ve(s),_e(o.getEditedText())}),Te(16,x4,3,3,"span",13)(17,C4,2,3,"ng-template",null,1,Qr)(19,E4,1,1,"mat-spinner",14),R()()()}if(r&2){let s=Xt(14),a=Xt(18);C(),ht(pe(2,18,o.localizationKey+"TITLE")),C(3),A("innerHTML",pe(5,20,o.localizationKey+"DESCRIPTION"),Ci),C(2),A("ngForOf",o.messages),C(),A("ngIf",o.showUseCase),C(),ne("rephrase",o.llmActionType===o.llmActions.REPHRASE),A("text",o.editedText!==""?o.editedText:o.initialText)("disabled",o.isLoading||!o.quotaLeft)("actionButtonsDisabled",!o.isEdited),C(2),A("ngIf",o.remainingQuotaMessageVisible),C(),ne("w-full",!o.remainingQuotaMessageVisible),C(),A("ngIf",o.isLoading)("ngIfElse",s),C(3),A("disabled",o.isDisabled),C(),A("ngIf",o.llmActionType===o.llmActions.SUMMARY)("ngIfElse",a),C(3),A("ngIf",o.isLoading)}},dependencies:[Fa,Xi,Mi,$d,Gd,qd,Wd,qa,cd,Ms,Ts,Fd,hr,PF,Gp,gL,Hb,wt],styles:[".info-icon[_ngcontent-%COMP%]{font-size:1rem;margin-left:5px}[_nghost-%COMP%] .message-body{margin:0 2.25rem 0 0!important;font-size:.875rem}[_nghost-%COMP%] .notification-message-container{margin:0 0 16px;padding:.9em 1em!important;align-items:center!important}[_nghost-%COMP%] .text-container{margin-right:0!important}[_nghost-%COMP%] tld-close-button{top:1px!important} .multiline-tooltip{white-space:pre;min-width:fit-content} .multiline-tooltip .mdc-tooltip__surface{max-width:none!important}[_nghost-%COMP%] .llm-textarea{min-height:240px!important}[_nghost-%COMP%] .rephrase .llm-textarea{min-height:100px!important}[_nghost-%COMP%] .desktop .llm-textarea{min-height:460px!important}[_nghost-%COMP%] .rephrase .desktop .llm-textarea{min-height:330px!important}.llm-writing-style-select[_ngcontent-%COMP%]{margin-top:1.25rem}.llm-writing-style[_ngcontent-%COMP%]{display:flex;align-items:center;margin-bottom:.25rem}.llm-actions-wrapper[_ngcontent-%COMP%]{display:flex;justify-content:space-between;margin:0 1rem .5rem}.llm-actions[_ngcontent-%COMP%]{display:flex;justify-content:end}.w-full[_ngcontent-%COMP%]{width:100%}[_nghost-%COMP%] .mdc-button__label{display:flex!important;align-items:center!important}mat-spinner[_ngcontent-%COMP%]{margin-left:.5rem}.quota-left-message[_ngcontent-%COMP%]{margin-bottom:12px}"]});let n=t;return n})()});var w4,D4,vL=f(()=>{"use strict";w4=`<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
28
+ `],encapsulation:2})}return n})(),gN="--mat-dialog-transition-duration";Hd=(function(n){return n[n.OPEN=0]="OPEN",n[n.CLOSING=1]="CLOSING",n[n.CLOSED=2]="CLOSED",n})(Hd||{}),dl=class{_ref;_config;_containerInstance;componentInstance;componentRef;disableClose;id;_afterOpened=new M;_beforeClosed=new M;_result;_closeFallbackTimeout;_state=Hd.OPEN;_closeInteractionType;constructor(t,e,i){this._ref=t,this._config=e,this._containerInstance=i,this.disableClose=e.disableClose,this.id=t.id,t.addPanelClass("mat-mdc-dialog-panel"),i._animationStateChanged.pipe(ue(r=>r.state==="opened"),He(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),i._animationStateChanged.pipe(ue(r=>r.state==="closed"),He(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),t.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose()}),sn(this.backdropClick(),this.keydownEvents().pipe(ue(r=>r.keyCode===27&&!this.disableClose&&!Ht(r)))).subscribe(r=>{this.disableClose||(r.preventDefault(),zC(this,r.type==="keydown"?"keyboard":"mouse"))})}close(t){let e=this._config.closePredicate;e&&!e(t,this._config,this.componentInstance)||(this._result=t,this._containerInstance._animationStateChanged.pipe(ue(i=>i.state==="closing"),He(1)).subscribe(i=>{this._beforeClosed.next(t),this._beforeClosed.complete(),this._ref.overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),i.totalTime+100)}),this._state=Hd.CLOSING,this._containerInstance._startExitAnimation())}afterOpened(){return this._afterOpened}afterClosed(){return this._ref.closed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._ref.backdropClick}keydownEvents(){return this._ref.keydownEvents}updatePosition(t){let e=this._ref.config.positionStrategy;return t&&(t.left||t.right)?t.left?e.left(t.left):e.right(t.right):e.centerHorizontally(),t&&(t.top||t.bottom)?t.top?e.top(t.top):e.bottom(t.bottom):e.centerVertically(),this._ref.updatePosition(),this}updateSize(t="",e=""){return this._ref.updateSize(t,e),this}addPanelClass(t){return this._ref.addPanelClass(t),this}removePanelClass(t){return this._ref.removePanelClass(t),this}getState(){return this._state}_finishDialogClose(){this._state=Hd.CLOSED,this._ref.close(this._result,{focusOrigin:this._closeInteractionType}),this.componentInstance=null}};ul=new x("MatMdcDialogData"),_N=new x("mat-mdc-dialog-default-options"),bN=new x("mat-mdc-dialog-scroll-strategy",{providedIn:"root",factory:()=>{let n=u(G);return()=>il(n)}}),mo=(()=>{class n{_defaultOptions=u(_N,{optional:!0});_scrollStrategy=u(bN);_parentDialog=u(n,{optional:!0,skipSelf:!0});_idGenerator=u(en);_injector=u(G);_dialog=u(UC);_animationsDisabled=St();_openDialogsAtThisLevel=[];_afterAllClosedAtThisLevel=new M;_afterOpenedAtThisLevel=new M;dialogConfigClass=zd;_dialogRefConstructor;_dialogContainerType;_dialogDataToken;get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){let e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}afterAllClosed=on(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(Gt(void 0)));constructor(){this._dialogRefConstructor=dl,this._dialogContainerType=vN,this._dialogDataToken=ul}open(e,i){let r;i=b(b({},this._defaultOptions||new zd),i),i.id=i.id||this._idGenerator.getId("mat-mdc-dialog-"),i.scrollStrategy=i.scrollStrategy||this._scrollStrategy();let o=this._dialog.open(e,J(b({},i),{positionStrategy:rl(this._injector).centerHorizontally().centerVertically(),disableClose:!0,closePredicate:void 0,closeOnDestroy:!1,closeOnOverlayDetachments:!1,disableAnimations:this._animationsDisabled||i.enterAnimationDuration?.toLocaleString()==="0"||i.exitAnimationDuration?.toString()==="0",container:{type:this._dialogContainerType,providers:()=>[{provide:this.dialogConfigClass,useValue:i},{provide:po,useValue:i}]},templateContext:()=>({dialogRef:r}),providers:(s,a,l)=>(r=new this._dialogRefConstructor(s,i,l),r.updatePosition(i?.position),[{provide:this._dialogContainerType,useValue:l},{provide:this._dialogDataToken,useValue:a.data},{provide:this._dialogRefConstructor,useValue:r}])}));return r.componentRef=o.componentRef,r.componentInstance=o.componentInstance,this.openDialogs.push(r),this.afterOpened.next(r),r.afterClosed().subscribe(()=>{let s=this.openDialogs.indexOf(r);s>-1&&(this.openDialogs.splice(s,1),this.openDialogs.length||this._getAfterAllClosed().next())}),r}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(e){return this.openDialogs.find(i=>i.id===e)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_closeDialogs(e){let i=e.length;for(;i--;)e[i].close()}static \u0275fac=function(i){return new(i||n)};static \u0275prov=v({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})(),$d=(()=>{class n{dialogRef=u(dl,{optional:!0});_elementRef=u(H);_dialog=u(mo);ariaLabel;type="button";dialogResult;_matDialogClose;constructor(){}ngOnInit(){this.dialogRef||(this.dialogRef=CN(this._elementRef,this._dialog.openDialogs))}ngOnChanges(e){let i=e._matDialogClose||e._matDialogCloseResult;i&&(this.dialogResult=i.currentValue)}_onButtonClick(e){zC(this.dialogRef,e.screenX===0&&e.screenY===0?"keyboard":"mouse",this.dialogResult)}static \u0275fac=function(i){return new(i||n)};static \u0275dir=j({type:n,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(i,r){i&1&&te("click",function(s){return r._onButtonClick(s)}),i&2&&De("aria-label",r.ariaLabel||null)("type",r.type)},inputs:{ariaLabel:[0,"aria-label","ariaLabel"],type:"type",dialogResult:[0,"mat-dialog-close","dialogResult"],_matDialogClose:[0,"matDialogClose","_matDialogClose"]},exportAs:["matDialogClose"],features:[je]})}return n})(),xN=(()=>{class n{_dialogRef=u(dl,{optional:!0});_elementRef=u(H);_dialog=u(mo);constructor(){}ngOnInit(){this._dialogRef||(this._dialogRef=CN(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{this._onAdd()})}ngOnDestroy(){this._dialogRef?._containerInstance&&Promise.resolve().then(()=>{this._onRemove()})}static \u0275fac=function(i){return new(i||n)};static \u0275dir=j({type:n})}return n})(),Gd=(()=>{class n extends xN{id=u(en).getId("mat-mdc-dialog-title-");_onAdd(){this._dialogRef._containerInstance?._addAriaLabelledBy?.(this.id)}_onRemove(){this._dialogRef?._containerInstance?._removeAriaLabelledBy?.(this.id)}static \u0275fac=(()=>{let e;return function(r){return(e||(e=Ve(n)))(r||n)}})();static \u0275dir=j({type:n,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-mdc-dialog-title","mdc-dialog__title"],hostVars:1,hostBindings:function(i,r){i&2&&Qi("id",r.id)},inputs:{id:"id"},exportAs:["matDialogTitle"],features:[fe]})}return n})(),Wd=(()=>{class n{static \u0275fac=function(i){return new(i||n)};static \u0275dir=j({type:n,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-mdc-dialog-content","mdc-dialog__content"],features:[J_([dC])]})}return n})(),qd=(()=>{class n extends xN{align;_onAdd(){this._dialogRef._containerInstance?._updateActionSectionCount?.(1)}_onRemove(){this._dialogRef._containerInstance?._updateActionSectionCount?.(-1)}static \u0275fac=(()=>{let e;return function(r){return(e||(e=Ve(n)))(r||n)}})();static \u0275dir=j({type:n,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-mdc-dialog-actions","mdc-dialog__actions"],hostVars:6,hostBindings:function(i,r){i&2&&ne("mat-mdc-dialog-actions-align-start",r.align==="start")("mat-mdc-dialog-actions-align-center",r.align==="center")("mat-mdc-dialog-actions-align-end",r.align==="end")},inputs:{align:"align"},features:[fe]})}return n})();Os=(()=>{class n{static \u0275fac=function(i){return new(i||n)};static \u0275mod=L({type:n});static \u0275inj=F({providers:[mo],imports:[fN,ur,Es,qe,qe]})}return n})()});var go=f(()=>{"use strict";EN()});var Kd,xm,GC,Cm,fl,wN,Ye,DN,Ns=f(()=>{"use strict";Qc();_();_();we();Kd=new x("ngx-tld-services Api service configuration."),xm=class{#e;constructor(t){this.http=u(nr),this.#e=u(Kd);let e=t(this.#e);if(!e)throw new Error(`${Object.getPrototypeOf(this).constructor.name} is created, but no service configuration defined in 'SERVICE_CONFIGURATION_TOKEN'. Config: ${JSON.stringify(this.#e)}`);this.configuration=e,this.sharedServiceConfiguration=this.#e.sharedConfiguration}},GC=(function(n){return n.Event="Event",n.General="General",n.Meeting="Meeting",n.TranscriptEditor="TranscriptEditor",n.TranscriptCleanup="TranscriptCleanup",n})(GC||{}),Cm=(function(n){return n.Event="Event",n.General="General",n.Meeting="Meeting",n.MeetingBrief="MeetingBrief",n.Brief="Brief",n})(Cm||{}),fl=class{static xAppIdHeader(t){return{"X-App-Id":t}}},wN=(()=>{var t;let e=class e extends xm{constructor(){super(o=>o.llmService);tt(this,t,u(nr))}rephrase(o){let s=fl.xAppIdHeader(this.sharedServiceConfiguration.xAppId);return ye(this,t).post(`${this.configuration.url}/rewrite`,o,{responseType:"text",headers:s})}summarize(o){let s=fl.xAppIdHeader(this.sharedServiceConfiguration.xAppId);return ye(this,t).post(`${this.configuration.url}/summarize/`,o,{responseType:"text",headers:s})}customPrompt(o){let s=fl.xAppIdHeader(this.sharedServiceConfiguration.xAppId);return ye(this,t).post(`${this.configuration.url}/custom-prompt/`,o,{responseType:"text",headers:s})}};t=new WeakMap,e.\u0275fac=function(s){return new(s||e)},e.\u0275prov=v({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})(),Ye=(function(n){return n.TRANSLATION_FILES="FileTranslationFiles",n.ASR_FILE_LENGTH_SECONDS="AsrFileLengthSeconds",n.ASR_FILE_SIZE_KB="AsrFileSizeKb",n.ONLINE_ASR_USED_SECONDS="OnlineAsrUsedSeconds",n.TRANSLATION_CHARACTERS="TranslationCharacters",n.TRANSLATION_DOCUMENTS="TranslationDocuments",n.LLM_CHARACTER_COUNT="LlmCharacterCount",n.LLM_REQUESTS="LlmRequests",n.TTS_CHARACTERS="TtsCharacters",n.ANONYMISE_WORDS="AnonymiseWords",n.ANONYMISE_DOCUMENTS="AnonymiseDocuments",n[n.LEGACY_TRANSLATION_FILES=0]="LEGACY_TRANSLATION_FILES",n[n.LEGACY_ASR_FILE_LENGTH_SECONDS=1]="LEGACY_ASR_FILE_LENGTH_SECONDS",n[n.LEGACY_ASR_FILE_SIZE_KB=2]="LEGACY_ASR_FILE_SIZE_KB",n[n.LEGACY_ONLINE_ASR_USED_SECONDS=3]="LEGACY_ONLINE_ASR_USED_SECONDS",n[n.LEGACY_TRANSLATION_CHARACTERS=4]="LEGACY_TRANSLATION_CHARACTERS",n[n.LEGACY_TRANSLATION_DOCUMENTS=5]="LEGACY_TRANSLATION_DOCUMENTS",n[n.LEGACY_LLM_CHARACTER_COUNT=6]="LEGACY_LLM_CHARACTER_COUNT",n[n.LEGACY_LLM_REQUESTS=7]="LEGACY_LLM_REQUESTS",n[n.LEGACY_TTS_CHARACTERS=8]="LEGACY_TTS_CHARACTERS",n[n.LEGACY_ANONYMISE_WORDS=9]="LEGACY_ANONYMISE_WORDS",n[n.LEGACY_ANONYMISE_DOCUMENTS=10]="LEGACY_ANONYMISE_DOCUMENTS",n})(Ye||{}),DN=(()=>{let t=class t extends xm{constructor(){super(i=>i.quotaService),this.legacyQuotaTypeMap={[Ye.LEGACY_TRANSLATION_FILES]:Ye.TRANSLATION_FILES,[Ye.LEGACY_ASR_FILE_LENGTH_SECONDS]:Ye.ASR_FILE_LENGTH_SECONDS,[Ye.LEGACY_ASR_FILE_SIZE_KB]:Ye.ASR_FILE_SIZE_KB,[Ye.LEGACY_ONLINE_ASR_USED_SECONDS]:Ye.ONLINE_ASR_USED_SECONDS,[Ye.LEGACY_TRANSLATION_CHARACTERS]:Ye.TRANSLATION_CHARACTERS,[Ye.LEGACY_TRANSLATION_DOCUMENTS]:Ye.TRANSLATION_DOCUMENTS,[Ye.LEGACY_LLM_CHARACTER_COUNT]:Ye.LLM_CHARACTER_COUNT,[Ye.LEGACY_LLM_REQUESTS]:Ye.LLM_REQUESTS,[Ye.LEGACY_TTS_CHARACTERS]:Ye.TTS_CHARACTERS,[Ye.LEGACY_ANONYMISE_WORDS]:Ye.ANONYMISE_WORDS,[Ye.LEGACY_ANONYMISE_DOCUMENTS]:Ye.ANONYMISE_DOCUMENTS}}getQuotaUsage(){let i=fl.xAppIdHeader(this.sharedServiceConfiguration.xAppId);return this.http.get(this.configuration.url,{headers:i}).pipe(V(r=>(r.usage.forEach(o=>{this.legacyQuotaTypeMap[o.quotaType]&&(o.quotaType=this.legacyQuotaTypeMap[o.quotaType])}),r)))}};t.\u0275fac=function(r){return new(r||t)},t.\u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})()});var IN,AN=f(()=>{"use strict";IN={SMALL:600,MEDIUM:960,LARGE:1280,XLARGE:1920}});var TN=f(()=>{"use strict"});var WC,MN=f(()=>{"use strict";WC=(function(n){return n[n.TIMEOUT=504]="TIMEOUT",n})(WC||{})});var qC=f(()=>{"use strict";AN();TN();MN()});var RN,ON=f(()=>{"use strict";_();dr();Xc();RN=(()=>{let t=class t{constructor(i,r){this.iconRegistry=i,this.sanitizer=r}registerIcons(i){for(let r in i)this.iconRegistry.addSvgIconLiteral(r.toLowerCase(),this.sanitizer.bypassSecurityTrustHtml(i[r]))}registerIconFromUrl(i,r){this.iconRegistry.addSvgIcon(i,this.sanitizer.bypassSecurityTrustResourceUrl(r))}addSvgIconSet(i,r){r?this.iconRegistry.addSvgIconSetInNamespace(r,this.sanitizer.bypassSecurityTrustResourceUrl(i)):this.iconRegistry.addSvgIconSet(this.sanitizer.bypassSecurityTrustResourceUrl(i))}};t.\u0275fac=function(r){return new(r||t)(S(zp),S(Zc))},t.\u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})()});var NN=f(()=>{"use strict";ON()});var J3,e8,FN,kN=f(()=>{"use strict";_();J3=typeof localStorage<"u"?localStorage:null,e8=typeof window<"u"?window:null,FN=(()=>{let t=class t{get window(){return e8}get localStorage(){return J3}};t.\u0275fac=function(r){return new(r||t)},t.\u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})()});var LN=f(()=>{"use strict";kN()});function _l(n){return new XC(n)}function t8(n,t,e){let i=e.path.split("/");if(i.length>n.length||e.pathMatch==="full"&&(t.hasChildren()||i.length<n.length))return null;let r={};for(let o=0;o<i.length;o++){let s=i[o],a=n[o];if(s[0]===":")r[s.substring(1)]=a;else if(s!==a.path)return null}return{consumed:n.slice(0,i.length),posParams:r}}function n8(n,t){if(n.length!==t.length)return!1;for(let e=0;e<n.length;++e)if(!Fi(n[e],t[e]))return!1;return!0}function Fi(n,t){let e=n?JC(n):void 0,i=t?JC(t):void 0;if(!e||!i||e.length!=i.length)return!1;let r;for(let o=0;o<e.length;o++)if(r=e[o],!$N(n[r],t[r]))return!1;return!0}function JC(n){return[...Object.keys(n),...Object.getOwnPropertySymbols(n)]}function $N(n,t){if(Array.isArray(n)&&Array.isArray(t)){if(n.length!==t.length)return!1;let e=[...n].sort(),i=[...t].sort();return e.every((r,o)=>i[o]===r)}else return n===t}function GN(n){return n.length>0?n[n.length-1]:null}function _r(n){return Vn(n)?n:Yr(n)?Pe(Promise.resolve(n)):N(n)}function PN(n,t,e){return i8[e.paths](n.root,t.root,e.matrixParams)&&WN[e.queryParams](n.queryParams,t.queryParams)&&!(e.fragment==="exact"&&n.fragment!==t.fragment)}function r8(n,t){return Fi(n,t)}function qN(n,t,e){if(!ks(n.segments,t.segments)||!Dm(n.segments,t.segments,e)||n.numberOfChildren!==t.numberOfChildren)return!1;for(let i in t.children)if(!n.children[i]||!qN(n.children[i],t.children[i],e))return!1;return!0}function o8(n,t){return Object.keys(t).length<=Object.keys(n).length&&Object.keys(t).every(e=>$N(n[e],t[e]))}function KN(n,t,e){return YN(n,t,t.segments,e)}function YN(n,t,e,i){if(n.segments.length>e.length){let r=n.segments.slice(0,e.length);return!(!ks(r,e)||t.hasChildren()||!Dm(r,e,i))}else if(n.segments.length===e.length){if(!ks(n.segments,e)||!Dm(n.segments,e,i))return!1;for(let r in t.children)if(!n.children[r]||!KN(n.children[r],t.children[r],i))return!1;return!0}else{let r=e.slice(0,n.segments.length),o=e.slice(n.segments.length);return!ks(n.segments,r)||!Dm(n.segments,r,i)||!n.children[de]?!1:YN(n.children[de],t,o,i)}}function Dm(n,t,e){return t.every((i,r)=>WN[e](n[r].parameters,i.parameters))}function s8(n,t){return ks(n,t)&&n.every((e,i)=>Fi(e.parameters,t[i].parameters))}function ks(n,t){return n.length!==t.length?!1:n.every((e,i)=>e.path===t[i].path)}function a8(n,t){let e=[];return Object.entries(n.children).forEach(([i,r])=>{i===de&&(e=e.concat(t(r,i)))}),Object.entries(n.children).forEach(([i,r])=>{i!==de&&(e=e.concat(t(r,i)))}),e}function Sm(n){return n.segments.map(t=>ZN(t)).join("/")}function Yd(n,t){if(!n.hasChildren())return Sm(n);if(t){let e=n.children[de]?Yd(n.children[de],!1):"",i=[];return Object.entries(n.children).forEach(([r,o])=>{r!==de&&i.push(`${r}:${Yd(o,!1)}`)}),i.length>0?`${e}(${i.join("//")})`:e}else{let e=a8(n,(i,r)=>r===de?[Yd(n.children[de],!1)]:[`${r}:${Yd(i,!1)}`]);return Object.keys(n.children).length===1&&n.children[de]!=null?`${Sm(n)}/${e[0]}`:`${Sm(n)}/(${e.join("//")})`}}function QN(n){return encodeURIComponent(n).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Em(n){return QN(n).replace(/%3B/gi,";")}function c8(n){return encodeURI(n)}function eE(n){return QN(n).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Im(n){return decodeURIComponent(n)}function jN(n){return Im(n.replace(/\+/g,"%20"))}function ZN(n){return`${eE(n.path)}${d8(n.parameters)}`}function d8(n){return Object.entries(n).map(([t,e])=>`;${eE(t)}=${eE(e)}`).join("")}function u8(n){let t=Object.entries(n).map(([e,i])=>Array.isArray(i)?i.map(r=>`${Em(e)}=${Em(r)}`).join("&"):`${Em(e)}=${Em(i)}`).filter(e=>e);return t.length?`?${t.join("&")}`:""}function KC(n){let t=n.match(f8);return t?t[0]:""}function p8(n){let t=n.match(h8);return t?t[0]:""}function g8(n){let t=n.match(m8);return t?t[0]:""}function v8(n){let t=n.match(y8);return t?t[0]:""}function XN(n){return n.segments.length>0?new Oe([],{[de]:n}):n}function JN(n){let t={};for(let[i,r]of Object.entries(n.children)){let o=JN(r);if(i===de&&o.segments.length===0&&o.hasChildren())for(let[s,a]of Object.entries(o.children))t[s]=a;else(o.segments.length>0||o.hasChildren())&&(t[i]=o)}let e=new Oe(n.segments,t);return _8(e)}function _8(n){if(n.numberOfChildren===1&&n.children[de]){let t=n.children[de];return new Oe(n.segments.concat(t.segments),t.children)}return n}function yo(n){return n instanceof yr}function b8(n,t,e=null,i=null){let r=eF(n);return tF(r,t,e,i)}function eF(n){let t;function e(o){let s={};for(let l of o.children){let c=e(l);s[l.outlet]=c}let a=new Oe(o.url,s);return o===n&&(t=a),a}let i=e(n.root),r=XN(i);return t??r}function tF(n,t,e,i){let r=n;for(;r.parent;)r=r.parent;if(t.length===0)return YC(r,r,r,e,i);let o=x8(t);if(o.toRoot())return YC(r,r,new Oe([],{}),e,i);let s=C8(o,r,n),a=s.processChildren?Zd(s.segmentGroup,s.index,o.commands):iF(s.segmentGroup,s.index,o.commands);return YC(r,s.segmentGroup,a,e,i)}function Am(n){return typeof n=="object"&&n!=null&&!n.outlets&&!n.segmentPath}function Jd(n){return typeof n=="object"&&n!=null&&n.outlets}function YC(n,t,e,i,r){let o={};i&&Object.entries(i).forEach(([l,c])=>{o[l]=Array.isArray(c)?c.map(d=>`${d}`):`${c}`});let s;n===t?s=e:s=nF(n,t,e);let a=XN(JN(s));return new yr(a,o,r)}function nF(n,t,e){let i={};return Object.entries(n.children).forEach(([r,o])=>{o===t?i[r]=e:i[r]=nF(o,t,e)}),new Oe(n.segments,i)}function x8(n){if(typeof n[0]=="string"&&n.length===1&&n[0]==="/")return new Tm(!0,0,n);let t=0,e=!1,i=n.reduce((r,o,s)=>{if(typeof o=="object"&&o!=null){if(o.outlets){let a={};return Object.entries(o.outlets).forEach(([l,c])=>{a[l]=typeof c=="string"?c.split("/"):c}),[...r,{outlets:a}]}if(o.segmentPath)return[...r,o.segmentPath]}return typeof o!="string"?[...r,o]:s===0?(o.split("/").forEach((a,l)=>{l==0&&a==="."||(l==0&&a===""?e=!0:a===".."?t++:a!=""&&r.push(a))}),r):[...r,o]},[]);return new Tm(e,t,i)}function C8(n,t,e){if(n.isAbsolute)return new ml(t,!0,0);if(!e)return new ml(t,!1,NaN);if(e.parent===null)return new ml(e,!0,0);let i=Am(n.commands[0])?0:1,r=e.segments.length-1+i;return E8(e,r,n.numberOfDoubleDots)}function E8(n,t,e){let i=n,r=t,o=e;for(;o>r;){if(o-=r,i=i.parent,!i)throw new w(4005,!1);r=i.segments.length}return new ml(i,!1,r-o)}function w8(n){return Jd(n[0])?n[0].outlets:{[de]:n}}function iF(n,t,e){if(n??=new Oe([],{}),n.segments.length===0&&n.hasChildren())return Zd(n,t,e);let i=D8(n,t,e),r=e.slice(i.commandIndex);if(i.match&&i.pathIndex<n.segments.length){let o=new Oe(n.segments.slice(0,i.pathIndex),{});return o.children[de]=new Oe(n.segments.slice(i.pathIndex),n.children),Zd(o,0,r)}else return i.match&&r.length===0?new Oe(n.segments,{}):i.match&&!n.hasChildren()?nE(n,t,e):i.match?Zd(n,0,r):nE(n,t,e)}function Zd(n,t,e){if(e.length===0)return new Oe(n.segments,{});{let i=w8(e),r={};if(Object.keys(i).some(o=>o!==de)&&n.children[de]&&n.numberOfChildren===1&&n.children[de].segments.length===0){let o=Zd(n.children[de],t,e);return new Oe(n.segments,o.children)}return Object.entries(i).forEach(([o,s])=>{typeof s=="string"&&(s=[s]),s!==null&&(r[o]=iF(n.children[o],t,s))}),Object.entries(n.children).forEach(([o,s])=>{i[o]===void 0&&(r[o]=s)}),new Oe(n.segments,r)}}function D8(n,t,e){let i=0,r=t,o={match:!1,pathIndex:0,commandIndex:0};for(;r<n.segments.length;){if(i>=e.length)return o;let s=n.segments[r],a=e[i];if(Jd(a))break;let l=`${a}`,c=i<e.length-1?e[i+1]:null;if(r>0&&l===void 0)break;if(l&&c&&typeof c=="object"&&c.outlets===void 0){if(!BN(l,c,s))return o;i+=2}else{if(!BN(l,{},s))return o;i++}r++}return{match:!0,pathIndex:r,commandIndex:i}}function nE(n,t,e){let i=n.segments.slice(0,t),r=0;for(;r<e.length;){let o=e[r];if(Jd(o)){let l=S8(o.outlets);return new Oe(i,l)}if(r===0&&Am(e[0])){let l=n.segments[t];i.push(new Fs(l.path,VN(e[0]))),r++;continue}let s=Jd(o)?o.outlets[de]:`${o}`,a=r<e.length-1?e[r+1]:null;s&&a&&Am(a)?(i.push(new Fs(s,VN(a))),r+=2):(i.push(new Fs(s,{})),r++)}return new Oe(i,{})}function S8(n){let t={};return Object.entries(n).forEach(([e,i])=>{typeof i=="string"&&(i=[i]),i!==null&&(t[e]=nE(new Oe([],{}),0,i))}),t}function VN(n){let t={};return Object.entries(n).forEach(([e,i])=>t[e]=`${i}`),t}function BN(n,t,e){return n==e.path&&Fi(t,e.parameters)}function I8(n){return!(n instanceof iu)&&!(n instanceof bl)}function A8(n,t){return n.providers&&!n._injector&&(n._injector=Aa(n.providers,t,`Route: ${n.path}`)),n._injector??t}function ii(n){return n.outlet||de}function T8(n,t){let e=n.filter(i=>ii(i)===t);return e.push(...n.filter(i=>ii(i)!==t)),e}function El(n){if(!n)return null;if(n.routeConfig?._injector)return n.routeConfig._injector;for(let t=n.parent;t;t=t.parent){let e=t.routeConfig;if(e?._loadedInjector)return e._loadedInjector;if(e?._injector)return e._injector}return null}function pE(n,t){if(n===t.value)return t;for(let e of t.children){let i=pE(n,e);if(i)return i}return null}function mE(n,t){if(n===t.value)return[t];for(let e of t.children){let i=mE(n,e);if(i.length)return i.unshift(t),i}return[]}function pl(n){let t={};return n&&n.children.forEach(e=>t[e.value.outlet]=e),t}function rF(n){let t=M8(n),e=new at([new Fs("",{})]),i=new at({}),r=new at({}),o=new at({}),s=new at(""),a=new vo(e,i,o,s,r,de,n,t.root);return a.snapshot=t.root,new Om(new wn(a,[]),t)}function M8(n){let t={},e={},i={},o=new yl([],t,i,"",e,de,n,null,{});return new Fm("",new wn(o,[]))}function Nm(n,t,e="emptyOnly"){let i,{routeConfig:r}=n;return t!==null&&(e==="always"||r?.path===""||!t.component&&!t.routeConfig?.loadComponent)?i={params:b(b({},t.params),n.params),data:b(b({},t.data),n.data),resolve:b(b(b(b({},n.data),t.data),r?.data),n._resolvedData)}:i={params:b({},n.params),data:b({},n.data),resolve:b(b({},n.data),n._resolvedData??{})},r&&sF(r)&&(i.resolve[lu]=r.title),i}function wE(n,t){t.value._routerState=n,t.children.forEach(e=>wE(n,e))}function oF(n){let t=n.children.length>0?` { ${n.children.map(oF).join(", ")} } `:"";return`${n.value}${t}`}function QC(n){if(n.snapshot){let t=n.snapshot,e=n._futureSnapshot;n.snapshot=e,Fi(t.queryParams,e.queryParams)||n.queryParamsSubject.next(e.queryParams),t.fragment!==e.fragment&&n.fragmentSubject.next(e.fragment),Fi(t.params,e.params)||n.paramsSubject.next(e.params),n8(t.url,e.url)||n.urlSubject.next(e.url),Fi(t.data,e.data)||n.dataSubject.next(e.data)}else n.snapshot=n._futureSnapshot,n.dataSubject.next(n._futureSnapshot.data)}function gE(n,t){let e=Fi(n.params,t.params)&&s8(n.url,t.url),i=!n.parent!=!t.parent;return e&&!i&&(!n.parent||gE(n.parent,t.parent))}function sF(n){return typeof n.title=="string"||n.title===null}function SE(n){let t=n.children&&n.children.map(SE),e=t?J(b({},n),{children:t}):b({},n);return!e.component&&!e.loadComponent&&(t||e.loadChildren)&&e.outlet&&e.outlet!==de&&(e.component=lF),e}function O8(n,t,e){let i=ru(n,t._root,e?e._root:void 0);return new Om(i,t)}function ru(n,t,e){if(e&&n.shouldReuseRoute(t.value,e.value.snapshot)){let i=e.value;i._futureSnapshot=t.value;let r=N8(n,t,e);return new wn(i,r)}else{if(n.shouldAttach(t.value)){let o=n.retrieve(t.value);if(o!==null){let s=o.route;return s.value._futureSnapshot=t.value,s.children=t.children.map(a=>ru(n,a)),s}}let i=F8(t.value),r=t.children.map(o=>ru(n,o));return new wn(i,r)}}function N8(n,t,e){return t.children.map(i=>{for(let r of e.children)if(n.shouldReuseRoute(i.value,r.value.snapshot))return ru(n,i,r);return ru(n,i)})}function F8(n){return new vo(new at(n.url),new at(n.params),new at(n.queryParams),new at(n.fragment),new at(n.data),n.outlet,n.component,n)}function km(n,t){let{redirectTo:e,navigationBehaviorOptions:i}=yo(t)?{redirectTo:t,navigationBehaviorOptions:void 0}:t,r=dF(!1,mn.Redirect);return r.url=e,r.navigationBehaviorOptions=i,r}function dF(n,t){let e=new Error(`NavigationCancelingError: ${n||""}`);return e[cF]=!0,e.cancellationCode=t,e}function k8(n){return uF(n)&&yo(n.url)}function uF(n){return!!n&&n[cF]}function P8(n,t,e){let i=n._root,r=t?t._root:null;return Qd(i,r,e,[i.value])}function j8(n){let t=n.routeConfig?n.routeConfig.canActivateChild:null;return!t||t.length===0?null:{node:n,guards:t}}function Dl(n,t){let e=Symbol(),i=t.get(n,e);return i===e?typeof n=="function"&&!Ty(n)?n:t.get(n):i}function Qd(n,t,e,i,r={canDeactivateChecks:[],canActivateChecks:[]}){let o=pl(t);return n.children.forEach(s=>{V8(s,o[s.value.outlet],e,i.concat([s.value]),r),delete o[s.value.outlet]}),Object.entries(o).forEach(([s,a])=>Xd(a,e.getContext(s),r)),r}function V8(n,t,e,i,r={canDeactivateChecks:[],canActivateChecks:[]}){let o=n.value,s=t?t.value:null,a=e?e.getContext(n.value.outlet):null;if(s&&o.routeConfig===s.routeConfig){let l=B8(s,o,o.routeConfig.runGuardsAndResolvers);l?r.canActivateChecks.push(new Lm(i)):(o.data=s.data,o._resolvedData=s._resolvedData),o.component?Qd(n,t,a?a.children:null,i,r):Qd(n,t,e,i,r),l&&a&&a.outlet&&a.outlet.isActivated&&r.canDeactivateChecks.push(new vl(a.outlet.component,s))}else s&&Xd(t,a,r),r.canActivateChecks.push(new Lm(i)),o.component?Qd(n,null,a?a.children:null,i,r):Qd(n,null,e,i,r);return r}function B8(n,t,e){if(typeof e=="function")return e(n,t);switch(e){case"pathParamsChange":return!ks(n.url,t.url);case"pathParamsOrQueryParamsChange":return!ks(n.url,t.url)||!Fi(n.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!gE(n,t)||!Fi(n.queryParams,t.queryParams);case"paramsChange":default:return!gE(n,t)}}function Xd(n,t,e){let i=pl(n),r=n.value;Object.entries(i).forEach(([o,s])=>{r.component?t?Xd(s,t.children.getContext(o),e):Xd(s,null,e):Xd(s,t,e)}),r.component?t&&t.outlet&&t.outlet.isActivated?e.canDeactivateChecks.push(new vl(t.outlet.component,r)):e.canDeactivateChecks.push(new vl(null,r)):e.canDeactivateChecks.push(new vl(null,r))}function du(n){return typeof n=="function"}function U8(n){return typeof n=="boolean"}function H8(n){return n&&du(n.canLoad)}function z8(n){return n&&du(n.canActivate)}function $8(n){return n&&du(n.canActivateChild)}function G8(n){return n&&du(n.canDeactivate)}function W8(n){return n&&du(n.canMatch)}function fF(n){return n instanceof ji||n?.name==="EmptyError"}function xl(){return ze(n=>Lo(n.map(t=>t.pipe(He(1),Gt(wm)))).pipe(V(t=>{for(let e of t)if(e!==!0){if(e===wm)return wm;if(e===!1||q8(e))return e}return!0}),ue(t=>t!==wm),He(1)))}function q8(n){return yo(n)||n instanceof ou}function K8(n,t){return Ke(e=>{let{targetSnapshot:i,currentSnapshot:r,guards:{canActivateChecks:o,canDeactivateChecks:s}}=e;return s.length===0&&o.length===0?N(J(b({},e),{guardsResult:!0})):Y8(s,i,r,n).pipe(Ke(a=>a&&U8(a)?Q8(i,o,n,t):N(a)),V(a=>J(b({},e),{guardsResult:a})))})}function Y8(n,t,e,i){return Pe(n).pipe(Ke(r=>tW(r.component,r.route,e,t,i)),Bi(r=>r!==!0,!0))}function Q8(n,t,e,i){return Pe(t).pipe(Sn(r=>Bn(X8(r.route.parent,i),Z8(r.route,i),eW(n,r.path,e),J8(n,r.route,e))),Bi(r=>r!==!0,!0))}function Z8(n,t){return n!==null&&t&&t(new uE(n)),N(!0)}function X8(n,t){return n!==null&&t&&t(new cE(n)),N(!0)}function J8(n,t,e){let i=t.routeConfig?t.routeConfig.canActivate:null;if(!i||i.length===0)return N(!0);let r=i.map(o=>on(()=>{let s=El(t)??e,a=Dl(o,s),l=z8(a)?a.canActivate(t,n):xt(s,()=>a(t,n));return _r(l).pipe(Bi())}));return N(r).pipe(xl())}function eW(n,t,e){let i=t[t.length-1],o=t.slice(0,t.length-1).reverse().map(s=>j8(s)).filter(s=>s!==null).map(s=>on(()=>{let a=s.guards.map(l=>{let c=El(s.node)??e,d=Dl(l,c),h=$8(d)?d.canActivateChild(i,n):xt(c,()=>d(i,n));return _r(h).pipe(Bi())});return N(a).pipe(xl())}));return N(o).pipe(xl())}function tW(n,t,e,i,r){let o=t&&t.routeConfig?t.routeConfig.canDeactivate:null;if(!o||o.length===0)return N(!0);let s=o.map(a=>{let l=El(t)??r,c=Dl(a,l),d=G8(c)?c.canDeactivate(n,t,e,i):xt(l,()=>c(n,t,e,i));return _r(d).pipe(Bi())});return N(s).pipe(xl())}function nW(n,t,e,i){let r=t.canLoad;if(r===void 0||r.length===0)return N(!0);let o=r.map(s=>{let a=Dl(s,n),l=H8(a)?a.canLoad(t,e):xt(n,()=>a(t,e));return _r(l)});return N(o).pipe(xl(),hF(i))}function hF(n){return Ng(Fe(t=>{if(typeof t!="boolean")throw km(n,t)}),V(t=>t===!0))}function iW(n,t,e,i){let r=t.canMatch;if(!r||r.length===0)return N(!0);let o=r.map(s=>{let a=Dl(s,n),l=W8(a)?a.canMatch(t,e):xt(n,()=>a(t,e));return _r(l)});return N(o).pipe(xl(),hF(i))}function hl(n){return Ar(new su(n))}function rW(n){return Ar(new w(4e3,!1))}function oW(n){return Ar(dF(!1,mn.GuardRejected))}function sW(n,t,e){if(typeof n=="string")return N(n);let i=n,{queryParams:r,fragment:o,routeConfig:s,url:a,outlet:l,params:c,data:d,title:h}=t;return _r(xt(e,()=>i({params:c,data:d,queryParams:r,fragment:o,routeConfig:s,url:a,outlet:l,title:h})))}function aW(n,t,e,i,r){let o=pF(n,t,e);return o.matched?(i=A8(t,i),iW(i,t,e,r).pipe(V(s=>s===!0?o:b({},bE)))):N(o)}function pF(n,t,e){if(t.path==="**")return lW(e);if(t.path==="")return t.pathMatch==="full"&&(n.hasChildren()||e.length>0)?b({},bE):{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};let r=(t.matcher||t8)(e,n,t);if(!r)return b({},bE);let o={};Object.entries(r.posParams??{}).forEach(([a,l])=>{o[a]=l.path});let s=r.consumed.length>0?b(b({},o),r.consumed[r.consumed.length-1].parameters):o;return{matched:!0,consumedSegments:r.consumed,remainingSegments:e.slice(r.consumed.length),parameters:s,positionalParamSegments:r.posParams??{}}}function lW(n){return{matched:!0,parameters:n.length>0?GN(n).parameters:{},consumedSegments:n,remainingSegments:[],positionalParamSegments:{}}}function UN(n,t,e,i){return e.length>0&&uW(n,e,i)?{segmentGroup:new Oe(t,dW(i,new Oe(e,n.children))),slicedSegments:[]}:e.length===0&&fW(n,e,i)?{segmentGroup:new Oe(n.segments,cW(n,e,i,n.children)),slicedSegments:e}:{segmentGroup:new Oe(n.segments,n.children),slicedSegments:e}}function cW(n,t,e,i){let r={};for(let o of e)if(Pm(n,t,o)&&!i[ii(o)]){let s=new Oe([],{});r[ii(o)]=s}return b(b({},i),r)}function dW(n,t){let e={};e[de]=t;for(let i of n)if(i.path===""&&ii(i)!==de){let r=new Oe([],{});e[ii(i)]=r}return e}function uW(n,t,e){return e.some(i=>Pm(n,t,i)&&ii(i)!==de)}function fW(n,t,e){return e.some(i=>Pm(n,t,i))}function Pm(n,t,e){return(n.hasChildren()||t.length>0)&&e.pathMatch==="full"?!1:e.path===""}function hW(n,t,e){return t.length===0&&!n.children[e]}function pW(n,t,e,i,r,o,s="emptyOnly"){return new CE(n,t,e,i,r,s,o).recognize()}function gW(n){n.sort((t,e)=>t.value.outlet===de?-1:e.value.outlet===de?1:t.value.outlet.localeCompare(e.value.outlet))}function yW(n){let t=n.value.routeConfig;return t&&t.path===""}function mF(n){let t=[],e=new Set;for(let i of n){if(!yW(i)){t.push(i);continue}let r=t.find(o=>i.value.routeConfig===o.value.routeConfig);r!==void 0?(r.children.push(...i.children),e.add(r)):t.push(i)}for(let i of e){let r=mF(i.children);t.push(new wn(i.value,r))}return t.filter(i=>!e.has(i))}function HN(n){return n.data||{}}function zN(n){return n.resolve||{}}function vW(n,t,e,i,r,o){return Ke(s=>pW(n,t,e,i,s.extractedUrl,r,o).pipe(V(({state:a,tree:l})=>J(b({},s),{targetSnapshot:a,urlAfterRedirects:l}))))}function _W(n,t){return Ke(e=>{let{targetSnapshot:i,guards:{canActivateChecks:r}}=e;if(!r.length)return N(e);let o=new Set(r.map(l=>l.route)),s=new Set;for(let l of o)if(!s.has(l))for(let c of gF(l))s.add(c);let a=0;return Pe(s).pipe(Sn(l=>o.has(l)?bW(l,i,n,t):(l.data=Nm(l,l.parent,n).resolve,N(void 0))),Fe(()=>a++),la(1),Ke(l=>a===s.size?N(e):Vt))})}function gF(n){let t=n.children.map(e=>gF(e)).flat();return[n,...t]}function bW(n,t,e,i){let r=n.routeConfig,o=n._resolve;return r?.title!==void 0&&!sF(r)&&(o[lu]=r.title),on(()=>(n.data=Nm(n,n.parent,e).resolve,xW(o,n,t,i).pipe(V(s=>(n._resolvedData=s,n.data=b(b({},n.data),s),null)))))}function xW(n,t,e,i){let r=JC(n);if(r.length===0)return N({});let o={};return Pe(r).pipe(Ke(s=>CW(n[s],t,e,i).pipe(Bi(),Fe(a=>{if(a instanceof ou)throw km(new Ls,a);o[s]=a}))),la(1),V(()=>o),an(s=>fF(s)?Vt:Ar(s)))}function CW(n,t,e,i){let r=El(t)??i,o=Dl(n,r),s=o.resolve?o.resolve(t,e):xt(r,()=>o(t,e));return _r(s)}function ZC(n){return ze(t=>{let e=n(t);return e?Pe(e).pipe(V(()=>t)):N(t)})}function wW(n,t,e,i){return _r(xt(e,()=>n.loadChildren())).pipe(V(vF),ze(_F),Ke(r=>r instanceof Rh||Array.isArray(r)?N(r):Pe(t.compileModuleAsync(r))),V(r=>{i&&i(n);let o,s,a=!1;return Array.isArray(r)?(s=r,a=!0):(o=r.create(e).injector,s=o.get(uu,[],{optional:!0,self:!0}).flat()),{routes:s.map(SE),injector:o}}))}function DW(n){return n&&typeof n=="object"&&"default"in n}function vF(n){return DW(n)?n.default:n}function _F(n){return N(n)}function bF(n,t,e){let i=n.get(TE),r=n.get(U);if(!r.startViewTransition||i.skipNextTransition)return i.skipNextTransition=!1,new Promise(c=>setTimeout(c));let o,s=new Promise(c=>{o=c}),a=r.startViewTransition(()=>(o(),IW(n)));a.ready.catch(c=>{});let{onViewTransitionCreated:l}=i;return l&&xt(n,()=>l({transition:a,from:t,to:e})),s}function IW(n){return new Promise(t=>{Qt({read:()=>setTimeout(t)},{injector:n})})}function AW(n){return n!==gl}function RE(n,t){n.events.pipe(ue(e=>e instanceof ri||e instanceof gr||e instanceof tu||e instanceof vr),V(e=>e instanceof ri||e instanceof vr?0:(e instanceof gr?e.code===mn.Redirect||e.code===mn.SupersededByNewNavigation:!1)?2:1),ue(e=>e!==2),He(1)).subscribe(()=>{t()})}function FW(n){for(let t=0;t<n.length;t++)if(n[t]==null)throw new w(4008,!1)}var de,lu,XC,i8,WN,yr,Oe,Fs,Cl,Ls,l8,f8,h8,m8,y8,tE,Tm,ml,gl,It,Ln,Ps,ri,mn,eu,gr,vr,tu,Mm,iE,rE,oE,sE,aE,lE,cE,dE,uE,fE,nu,iu,bl,hE,wl,Rm,wn,Om,vo,yl,Fm,R8,aF,yE,cu,DE,lF,ou,cF,L8,vE,Lm,vl,wm,su,au,_E,bE,xE,mW,CE,yF,EW,js,uu,jm,IE,SW,AE,TE,ME,Vm,TW,EE,MW,xF,RW,OW,NW,_o,CF=f(()=>{"use strict";Le();_();_();we();it();Xc();de="primary",lu=Symbol("RouteTitle"),XC=class{params;constructor(t){this.params=t||{}}has(t){return Object.prototype.hasOwnProperty.call(this.params,t)}get(t){if(this.has(t)){let e=this.params[t];return Array.isArray(e)?e[0]:e}return null}getAll(t){if(this.has(t)){let e=this.params[t];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}};i8={exact:qN,subset:KN},WN={exact:r8,subset:o8,ignored:()=>!0};yr=class{root;queryParams;fragment;_queryParamMap;constructor(t=new Oe([],{}),e={},i=null){this.root=t,this.queryParams=e,this.fragment=i}get queryParamMap(){return this._queryParamMap??=_l(this.queryParams),this._queryParamMap}toString(){return l8.serialize(this)}},Oe=class{segments;children;parent=null;constructor(t,e){this.segments=t,this.children=e,Object.values(e).forEach(i=>i.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Sm(this)}},Fs=class{path;parameters;_parameterMap;constructor(t,e){this.path=t,this.parameters=e}get parameterMap(){return this._parameterMap??=_l(this.parameters),this._parameterMap}toString(){return ZN(this)}};Cl=(()=>{class n{static \u0275fac=function(i){return new(i||n)};static \u0275prov=v({token:n,factory:()=>new Ls,providedIn:"root"})}return n})(),Ls=class{parse(t){let e=new tE(t);return new yr(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(t){let e=`/${Yd(t.root,!0)}`,i=u8(t.queryParams),r=typeof t.fragment=="string"?`#${c8(t.fragment)}`:"";return`${e}${i}${r}`}},l8=new Ls;f8=/^[^\/()?;#]+/;h8=/^[^\/()?;=#]+/;m8=/^[^=?&#]+/;y8=/^[^&#]+/;tE=class{url;remaining;constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new Oe([],{}):new Oe([],this.parseChildren())}parseQueryParams(){let t={};if(this.consumeOptional("?"))do this.parseQueryParam(t);while(this.consumeOptional("&"));return t}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(this.remaining==="")return{};this.consumeOptional("/");let t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let i={};return this.peekStartsWith("(")&&(i=this.parseParens(!1)),(t.length>0||Object.keys(e).length>0)&&(i[de]=new Oe(t,e)),i}parseSegment(){let t=KC(this.remaining);if(t===""&&this.peekStartsWith(";"))throw new w(4009,!1);return this.capture(t),new Fs(Im(t),this.parseMatrixParams())}parseMatrixParams(){let t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){let e=p8(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){let r=KC(this.remaining);r&&(i=r,this.capture(i))}t[Im(e)]=Im(i)}parseQueryParam(t){let e=g8(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){let s=v8(this.remaining);s&&(i=s,this.capture(i))}let r=jN(e),o=jN(i);if(t.hasOwnProperty(r)){let s=t[r];Array.isArray(s)||(s=[s],t[r]=s),s.push(o)}else t[r]=o}parseParens(t){let e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let i=KC(this.remaining),r=this.remaining[i.length];if(r!=="/"&&r!==")"&&r!==";")throw new w(4010,!1);let o;i.indexOf(":")>-1?(o=i.slice(0,i.indexOf(":")),this.capture(o),this.capture(":")):t&&(o=de);let s=this.parseChildren();e[o]=Object.keys(s).length===1?s[de]:new Oe([],s),this.consumeOptional("//")}return e}peekStartsWith(t){return this.remaining.startsWith(t)}consumeOptional(t){return this.peekStartsWith(t)?(this.remaining=this.remaining.substring(t.length),!0):!1}capture(t){if(!this.consumeOptional(t))throw new w(4011,!1)}};Tm=class{isAbsolute;numberOfDoubleDots;commands;constructor(t,e,i){if(this.isAbsolute=t,this.numberOfDoubleDots=e,this.commands=i,t&&i.length>0&&Am(i[0]))throw new w(4003,!1);let r=i.find(Jd);if(r&&r!==GN(i))throw new w(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};ml=class{segmentGroup;processChildren;index;constructor(t,e,i){this.segmentGroup=t,this.processChildren=e,this.index=i}};gl="imperative",It=(function(n){return n[n.NavigationStart=0]="NavigationStart",n[n.NavigationEnd=1]="NavigationEnd",n[n.NavigationCancel=2]="NavigationCancel",n[n.NavigationError=3]="NavigationError",n[n.RoutesRecognized=4]="RoutesRecognized",n[n.ResolveStart=5]="ResolveStart",n[n.ResolveEnd=6]="ResolveEnd",n[n.GuardsCheckStart=7]="GuardsCheckStart",n[n.GuardsCheckEnd=8]="GuardsCheckEnd",n[n.RouteConfigLoadStart=9]="RouteConfigLoadStart",n[n.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",n[n.ChildActivationStart=11]="ChildActivationStart",n[n.ChildActivationEnd=12]="ChildActivationEnd",n[n.ActivationStart=13]="ActivationStart",n[n.ActivationEnd=14]="ActivationEnd",n[n.Scroll=15]="Scroll",n[n.NavigationSkipped=16]="NavigationSkipped",n})(It||{}),Ln=class{id;url;constructor(t,e){this.id=t,this.url=e}},Ps=class extends Ln{type=It.NavigationStart;navigationTrigger;restoredState;constructor(t,e,i="imperative",r=null){super(t,e),this.navigationTrigger=i,this.restoredState=r}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},ri=class extends Ln{urlAfterRedirects;type=It.NavigationEnd;constructor(t,e,i){super(t,e),this.urlAfterRedirects=i}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},mn=(function(n){return n[n.Redirect=0]="Redirect",n[n.SupersededByNewNavigation=1]="SupersededByNewNavigation",n[n.NoDataFromResolver=2]="NoDataFromResolver",n[n.GuardRejected=3]="GuardRejected",n[n.Aborted=4]="Aborted",n})(mn||{}),eu=(function(n){return n[n.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",n[n.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",n})(eu||{}),gr=class extends Ln{reason;code;type=It.NavigationCancel;constructor(t,e,i,r){super(t,e),this.reason=i,this.code=r}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}},vr=class extends Ln{reason;code;type=It.NavigationSkipped;constructor(t,e,i,r){super(t,e),this.reason=i,this.code=r}},tu=class extends Ln{error;target;type=It.NavigationError;constructor(t,e,i,r){super(t,e),this.error=i,this.target=r}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},Mm=class extends Ln{urlAfterRedirects;state;type=It.RoutesRecognized;constructor(t,e,i,r){super(t,e),this.urlAfterRedirects=i,this.state=r}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},iE=class extends Ln{urlAfterRedirects;state;type=It.GuardsCheckStart;constructor(t,e,i,r){super(t,e),this.urlAfterRedirects=i,this.state=r}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},rE=class extends Ln{urlAfterRedirects;state;shouldActivate;type=It.GuardsCheckEnd;constructor(t,e,i,r,o){super(t,e),this.urlAfterRedirects=i,this.state=r,this.shouldActivate=o}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},oE=class extends Ln{urlAfterRedirects;state;type=It.ResolveStart;constructor(t,e,i,r){super(t,e),this.urlAfterRedirects=i,this.state=r}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},sE=class extends Ln{urlAfterRedirects;state;type=It.ResolveEnd;constructor(t,e,i,r){super(t,e),this.urlAfterRedirects=i,this.state=r}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},aE=class{route;type=It.RouteConfigLoadStart;constructor(t){this.route=t}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},lE=class{route;type=It.RouteConfigLoadEnd;constructor(t){this.route=t}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},cE=class{snapshot;type=It.ChildActivationStart;constructor(t){this.snapshot=t}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},dE=class{snapshot;type=It.ChildActivationEnd;constructor(t){this.snapshot=t}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},uE=class{snapshot;type=It.ActivationStart;constructor(t){this.snapshot=t}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},fE=class{snapshot;type=It.ActivationEnd;constructor(t){this.snapshot=t}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},nu=class{routerEvent;position;anchor;type=It.Scroll;constructor(t,e,i){this.routerEvent=t,this.position=e,this.anchor=i}toString(){let t=this.position?`${this.position[0]}, ${this.position[1]}`:null;return`Scroll(anchor: '${this.anchor}', position: '${t}')`}},iu=class{},bl=class{url;navigationBehaviorOptions;constructor(t,e){this.url=t,this.navigationBehaviorOptions=e}};hE=class{rootInjector;outlet=null;route=null;children;attachRef=null;get injector(){return El(this.route?.snapshot)??this.rootInjector}constructor(t){this.rootInjector=t,this.children=new wl(this.rootInjector)}},wl=(()=>{class n{rootInjector;contexts=new Map;constructor(e){this.rootInjector=e}onChildOutletCreated(e,i){let r=this.getOrCreateContext(e);r.outlet=i,this.contexts.set(e,r)}onChildOutletDestroyed(e){let i=this.getContext(e);i&&(i.outlet=null,i.attachRef=null)}onOutletDeactivated(){let e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let i=this.getContext(e);return i||(i=new hE(this.rootInjector),this.contexts.set(e,i)),i}getContext(e){return this.contexts.get(e)||null}static \u0275fac=function(i){return new(i||n)(S($e))};static \u0275prov=v({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})(),Rm=class{_root;constructor(t){this._root=t}get root(){return this._root.value}parent(t){let e=this.pathFromRoot(t);return e.length>1?e[e.length-2]:null}children(t){let e=pE(t,this._root);return e?e.children.map(i=>i.value):[]}firstChild(t){let e=pE(t,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(t){let e=mE(t,this._root);return e.length<2?[]:e[e.length-2].children.map(r=>r.value).filter(r=>r!==t)}pathFromRoot(t){return mE(t,this._root).map(e=>e.value)}};wn=class{value;children;constructor(t,e){this.value=t,this.children=e}toString(){return`TreeNode(${this.value})`}};Om=class extends Rm{snapshot;constructor(t,e){super(t),this.snapshot=e,wE(this,t)}toString(){return this.snapshot.toString()}};vo=class{urlSubject;paramsSubject;queryParamsSubject;fragmentSubject;dataSubject;outlet;component;snapshot;_futureSnapshot;_routerState;_paramMap;_queryParamMap;title;url;params;queryParams;fragment;data;constructor(t,e,i,r,o,s,a,l){this.urlSubject=t,this.paramsSubject=e,this.queryParamsSubject=i,this.fragmentSubject=r,this.dataSubject=o,this.outlet=s,this.component=a,this._futureSnapshot=l,this.title=this.dataSubject?.pipe(V(c=>c[lu]))??N(void 0),this.url=t,this.params=e,this.queryParams=i,this.fragment=r,this.data=o}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(V(t=>_l(t))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(V(t=>_l(t))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};yl=class{url;params;queryParams;fragment;data;outlet;component;routeConfig;_resolve;_resolvedData;_routerState;_paramMap;_queryParamMap;get title(){return this.data?.[lu]}constructor(t,e,i,r,o,s,a,l,c){this.url=t,this.params=e,this.queryParams=i,this.fragment=r,this.data=o,this.outlet=s,this.component=a,this.routeConfig=l,this._resolve=c}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=_l(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=_l(this.queryParams),this._queryParamMap}toString(){let t=this.url.map(i=>i.toString()).join("/"),e=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${t}', path:'${e}')`}},Fm=class extends Rm{url;constructor(t,e){super(e),this.url=t,wE(this,e)}toString(){return oF(this._root)}};R8=new x(""),aF=(()=>{class n{activated=null;get activatedComponentRef(){return this.activated}_activatedRoute=null;name=de;activateEvents=new z;deactivateEvents=new z;attachEvents=new z;detachEvents=new z;routerOutletData=lT(void 0);parentContexts=u(wl);location=u(Rt);changeDetector=u(mt);inputBinder=u(cu,{optional:!0});supportsBindingToComponentInputs=!0;ngOnChanges(e){if(e.name){let{firstChange:i,previousValue:r}=e.name;if(i)return;this.isTrackedInParentContexts(r)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(r)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(e){return this.parentContexts.getContext(e)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let e=this.parentContexts.getContext(this.name);e?.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.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 e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,i){this.activated=e,this._activatedRoute=i,this.location.insert(e.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(e.instance)}deactivate(){if(this.activated){let e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,i){if(this.isActivated)throw new w(4013,!1);this._activatedRoute=e;let r=this.location,s=e.snapshot.component,a=this.parentContexts.getOrCreateContext(this.name).children,l=new yE(e,a,r.injector,this.routerOutletData);this.activated=r.createComponent(s,{index:r.length,injector:l,environmentInjector:i}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static \u0275fac=function(i){return new(i||n)};static \u0275dir=j({type:n,selectors:[["router-outlet"]],inputs:{name:"name",routerOutletData:[1,"routerOutletData"]},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],features:[je]})}return n})(),yE=class{route;childContexts;parent;outletData;constructor(t,e,i,r){this.route=t,this.childContexts=e,this.parent=i,this.outletData=r}get(t,e){return t===vo?this.route:t===wl?this.childContexts:t===R8?this.outletData:this.parent.get(t,e)}},cu=new x(""),DE=(()=>{class n{outletDataSubscriptions=new Map;bindActivatedRouteToOutletComponent(e){this.unsubscribeFromRouteData(e),this.subscribeToRouteData(e)}unsubscribeFromRouteData(e){this.outletDataSubscriptions.get(e)?.unsubscribe(),this.outletDataSubscriptions.delete(e)}subscribeToRouteData(e){let{activatedRoute:i}=e,r=Lo([i.queryParams,i.params,i.data]).pipe(ze(([o,s,a],l)=>(a=b(b(b({},o),s),a),l===0?N(a):Promise.resolve(a)))).subscribe(o=>{if(!e.isActivated||!e.activatedComponentRef||e.activatedRoute!==i||i.component===null){this.unsubscribeFromRouteData(e);return}let s=fT(i.component);if(!s){this.unsubscribeFromRouteData(e);return}for(let{templateName:a}of s.inputs)e.activatedComponentRef.setInput(a,o[a])});this.outletDataSubscriptions.set(e,r)}static \u0275fac=function(i){return new(i||n)};static \u0275prov=v({token:n,factory:n.\u0275fac})}return n})(),lF=(()=>{class n{static \u0275fac=function(i){return new(i||n)};static \u0275cmp=$({type:n,selectors:[["ng-component"]],exportAs:["emptyRouterOutlet"],decls:1,vars:0,template:function(i,r){i&1&&ce(0,"router-outlet")},dependencies:[aF],encapsulation:2})}return n})();ou=class{redirectTo;navigationBehaviorOptions;constructor(t,e){this.redirectTo=t,this.navigationBehaviorOptions=e}},cF="ngNavigationCancelingError";L8=(n,t,e,i)=>V(r=>(new vE(t,r.targetRouterState,r.currentRouterState,e,i).activate(n),r)),vE=class{routeReuseStrategy;futureState;currState;forwardEvent;inputBindingEnabled;constructor(t,e,i,r,o){this.routeReuseStrategy=t,this.futureState=e,this.currState=i,this.forwardEvent=r,this.inputBindingEnabled=o}activate(t){let e=this.futureState._root,i=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,i,t),QC(this.futureState.root),this.activateChildRoutes(e,i,t)}deactivateChildRoutes(t,e,i){let r=pl(e);t.children.forEach(o=>{let s=o.value.outlet;this.deactivateRoutes(o,r[s],i),delete r[s]}),Object.values(r).forEach(o=>{this.deactivateRouteAndItsChildren(o,i)})}deactivateRoutes(t,e,i){let r=t.value,o=e?e.value:null;if(r===o)if(r.component){let s=i.getContext(r.outlet);s&&this.deactivateChildRoutes(t,e,s.children)}else this.deactivateChildRoutes(t,e,i);else o&&this.deactivateRouteAndItsChildren(e,i)}deactivateRouteAndItsChildren(t,e){t.value.component&&this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,e):this.deactivateRouteAndOutlet(t,e)}detachAndStoreRouteSubtree(t,e){let i=e.getContext(t.value.outlet),r=i&&t.value.component?i.children:e,o=pl(t);for(let s of Object.values(o))this.deactivateRouteAndItsChildren(s,r);if(i&&i.outlet){let s=i.outlet.detach(),a=i.children.onOutletDeactivated();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:s,route:t,contexts:a})}}deactivateRouteAndOutlet(t,e){let i=e.getContext(t.value.outlet),r=i&&t.value.component?i.children:e,o=pl(t);for(let s of Object.values(o))this.deactivateRouteAndItsChildren(s,r);i&&(i.outlet&&(i.outlet.deactivate(),i.children.onOutletDeactivated()),i.attachRef=null,i.route=null)}activateChildRoutes(t,e,i){let r=pl(e);t.children.forEach(o=>{this.activateRoutes(o,r[o.value.outlet],i),this.forwardEvent(new fE(o.value.snapshot))}),t.children.length&&this.forwardEvent(new dE(t.value.snapshot))}activateRoutes(t,e,i){let r=t.value,o=e?e.value:null;if(QC(r),r===o)if(r.component){let s=i.getOrCreateContext(r.outlet);this.activateChildRoutes(t,e,s.children)}else this.activateChildRoutes(t,e,i);else if(r.component){let s=i.getOrCreateContext(r.outlet);if(this.routeReuseStrategy.shouldAttach(r.snapshot)){let a=this.routeReuseStrategy.retrieve(r.snapshot);this.routeReuseStrategy.store(r.snapshot,null),s.children.onOutletReAttached(a.contexts),s.attachRef=a.componentRef,s.route=a.route.value,s.outlet&&s.outlet.attach(a.componentRef,a.route.value),QC(a.route.value),this.activateChildRoutes(t,null,s.children)}else s.attachRef=null,s.route=r,s.outlet&&s.outlet.activateWith(r,s.injector),this.activateChildRoutes(t,null,s.children)}else this.activateChildRoutes(t,null,i)}},Lm=class{path;route;constructor(t){this.path=t,this.route=this.path[this.path.length-1]}},vl=class{component;route;constructor(t,e){this.component=t,this.route=e}};wm=Symbol("INITIAL_VALUE");su=class{segmentGroup;constructor(t){this.segmentGroup=t||null}},au=class extends Error{urlTree;constructor(t){super(),this.urlTree=t}};_E=class{urlSerializer;urlTree;constructor(t,e){this.urlSerializer=t,this.urlTree=e}lineralizeSegments(t,e){let i=[],r=e.root;for(;;){if(i=i.concat(r.segments),r.numberOfChildren===0)return N(i);if(r.numberOfChildren>1||!r.children[de])return rW(`${t.redirectTo}`);r=r.children[de]}}applyRedirectCommands(t,e,i,r,o){return sW(e,r,o).pipe(V(s=>{if(s instanceof yr)throw new au(s);let a=this.applyRedirectCreateUrlTree(s,this.urlSerializer.parse(s),t,i);if(s[0]==="/")throw new au(a);return a}))}applyRedirectCreateUrlTree(t,e,i,r){let o=this.createSegmentGroup(t,e.root,i,r);return new yr(o,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(t,e){let i={};return Object.entries(t).forEach(([r,o])=>{if(typeof o=="string"&&o[0]===":"){let a=o.substring(1);i[r]=e[a]}else i[r]=o}),i}createSegmentGroup(t,e,i,r){let o=this.createSegments(t,e.segments,i,r),s={};return Object.entries(e.children).forEach(([a,l])=>{s[a]=this.createSegmentGroup(t,l,i,r)}),new Oe(o,s)}createSegments(t,e,i,r){return e.map(o=>o.path[0]===":"?this.findPosParam(t,o,r):this.findOrReturn(o,i))}findPosParam(t,e,i){let r=i[e.path.substring(1)];if(!r)throw new w(4001,!1);return r}findOrReturn(t,e){let i=0;for(let r of e){if(r.path===t.path)return e.splice(i),r;i++}return t}};bE={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};xE=class{};mW=31,CE=class{injector;configLoader;rootComponentType;config;urlTree;paramsInheritanceStrategy;urlSerializer;applyRedirects;absoluteRedirectCount=0;allowRedirects=!0;constructor(t,e,i,r,o,s,a){this.injector=t,this.configLoader=e,this.rootComponentType=i,this.config=r,this.urlTree=o,this.paramsInheritanceStrategy=s,this.urlSerializer=a,this.applyRedirects=new _E(this.urlSerializer,this.urlTree)}noMatchError(t){return new w(4002,`'${t.segmentGroup}'`)}recognize(){let t=UN(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(t).pipe(V(({children:e,rootSnapshot:i})=>{let r=new wn(i,e),o=new Fm("",r),s=b8(i,[],this.urlTree.queryParams,this.urlTree.fragment);return s.queryParams=this.urlTree.queryParams,o.url=this.urlSerializer.serialize(s),{state:o,tree:s}}))}match(t){let e=new yl([],Object.freeze({}),Object.freeze(b({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),de,this.rootComponentType,null,{});return this.processSegmentGroup(this.injector,this.config,t,de,e).pipe(V(i=>({children:i,rootSnapshot:e})),an(i=>{if(i instanceof au)return this.urlTree=i.urlTree,this.match(i.urlTree.root);throw i instanceof su?this.noMatchError(i):i}))}processSegmentGroup(t,e,i,r,o){return i.segments.length===0&&i.hasChildren()?this.processChildren(t,e,i,o):this.processSegment(t,e,i,i.segments,r,!0,o).pipe(V(s=>s instanceof wn?[s]:[]))}processChildren(t,e,i,r){let o=[];for(let s of Object.keys(i.children))s==="primary"?o.unshift(s):o.push(s);return Pe(o).pipe(Sn(s=>{let a=i.children[s],l=T8(e,s);return this.processSegmentGroup(t,l,a,s,r)}),cy((s,a)=>(s.push(...a),s)),Mr(null),ly(),Ke(s=>{if(s===null)return hl(i);let a=mF(s);return gW(a),N(a)}))}processSegment(t,e,i,r,o,s,a){return Pe(e).pipe(Sn(l=>this.processSegmentAgainstRoute(l._injector??t,e,l,i,r,o,s,a).pipe(an(c=>{if(c instanceof su)return N(null);throw c}))),Bi(l=>!!l),an(l=>{if(fF(l))return hW(i,r,o)?N(new xE):hl(i);throw l}))}processSegmentAgainstRoute(t,e,i,r,o,s,a,l){return ii(i)!==s&&(s===de||!Pm(r,o,i))?hl(r):i.redirectTo===void 0?this.matchSegmentAgainstRoute(t,r,i,o,s,l):this.allowRedirects&&a?this.expandSegmentAgainstRouteUsingRedirect(t,r,e,i,o,s,l):hl(r)}expandSegmentAgainstRouteUsingRedirect(t,e,i,r,o,s,a){let{matched:l,parameters:c,consumedSegments:d,positionalParamSegments:h,remainingSegments:m}=pF(e,r,o);if(!l)return hl(e);typeof r.redirectTo=="string"&&r.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>mW&&(this.allowRedirects=!1));let p=new yl(o,c,Object.freeze(b({},this.urlTree.queryParams)),this.urlTree.fragment,HN(r),ii(r),r.component??r._loadedComponent??null,r,zN(r)),g=Nm(p,a,this.paramsInheritanceStrategy);return p.params=Object.freeze(g.params),p.data=Object.freeze(g.data),this.applyRedirects.applyRedirectCommands(d,r.redirectTo,h,p,t).pipe(ze(E=>this.applyRedirects.lineralizeSegments(r,E)),Ke(E=>this.processSegment(t,i,e,E.concat(m),s,!1,a)))}matchSegmentAgainstRoute(t,e,i,r,o,s){let a=aW(e,i,r,t,this.urlSerializer);return i.path==="**"&&(e.children={}),a.pipe(ze(l=>l.matched?(t=i._injector??t,this.getChildConfig(t,i,r).pipe(ze(({routes:c})=>{let d=i._loadedInjector??t,{parameters:h,consumedSegments:m,remainingSegments:p}=l,g=new yl(m,h,Object.freeze(b({},this.urlTree.queryParams)),this.urlTree.fragment,HN(i),ii(i),i.component??i._loadedComponent??null,i,zN(i)),y=Nm(g,s,this.paramsInheritanceStrategy);g.params=Object.freeze(y.params),g.data=Object.freeze(y.data);let{segmentGroup:E,slicedSegments:D}=UN(e,m,p,c);if(D.length===0&&E.hasChildren())return this.processChildren(d,c,E,g).pipe(V(he=>new wn(g,he)));if(c.length===0&&D.length===0)return N(new wn(g,[]));let k=ii(i)===o;return this.processSegment(d,c,E,D,k?de:o,!0,g).pipe(V(he=>new wn(g,he instanceof wn?[he]:[])))}))):hl(e)))}getChildConfig(t,e,i){return e.children?N({routes:e.children,injector:t}):e.loadChildren?e._loadedRoutes!==void 0?N({routes:e._loadedRoutes,injector:e._loadedInjector}):nW(t,e,i,this.urlSerializer).pipe(Ke(r=>r?this.configLoader.loadChildren(t,e).pipe(Fe(o=>{e._loadedRoutes=o.routes,e._loadedInjector=o.injector})):oW(e))):N({routes:[],injector:t})}};yF=(()=>{class n{buildTitle(e){let i,r=e.root;for(;r!==void 0;)i=this.getResolvedTitleForRoute(r)??i,r=r.children.find(o=>o.outlet===de);return i}getResolvedTitleForRoute(e){return e.data[lu]}static \u0275fac=function(i){return new(i||n)};static \u0275prov=v({token:n,factory:()=>u(EW),providedIn:"root"})}return n})(),EW=(()=>{class n extends yF{title;constructor(e){super(),this.title=e}updateTitle(e){let i=this.buildTitle(e);i!==void 0&&this.title.setTitle(i)}static \u0275fac=function(i){return new(i||n)(S(WT))};static \u0275prov=v({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})(),js=new x("",{providedIn:"root",factory:()=>({})}),uu=new x(""),jm=(()=>{class n{componentLoaders=new WeakMap;childrenLoaders=new WeakMap;onLoadStartListener;onLoadEndListener;compiler=u(xb);loadComponent(e,i){if(this.componentLoaders.get(i))return this.componentLoaders.get(i);if(i._loadedComponent)return N(i._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(i);let r=_r(xt(e,()=>i.loadComponent())).pipe(V(vF),ze(_F),Fe(s=>{this.onLoadEndListener&&this.onLoadEndListener(i),i._loadedComponent=s}),ln(()=>{this.componentLoaders.delete(i)})),o=new ea(r,()=>new M).pipe(Js());return this.componentLoaders.set(i,o),o}loadChildren(e,i){if(this.childrenLoaders.get(i))return this.childrenLoaders.get(i);if(i._loadedRoutes)return N({routes:i._loadedRoutes,injector:i._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(i);let o=wW(i,this.compiler,e,this.onLoadEndListener).pipe(ln(()=>{this.childrenLoaders.delete(i)})),s=new ea(o,()=>new M).pipe(Js());return this.childrenLoaders.set(i,s),s}static \u0275fac=function(i){return new(i||n)};static \u0275prov=v({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();IE=(()=>{class n{static \u0275fac=function(i){return new(i||n)};static \u0275prov=v({token:n,factory:()=>u(SW),providedIn:"root"})}return n})(),SW=(()=>{class n{shouldProcessUrl(e){return!0}extract(e){return e}merge(e,i){return e}static \u0275fac=function(i){return new(i||n)};static \u0275prov=v({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})(),AE=new x(""),TE=new x("");ME=new x(""),Vm=(()=>{class n{currentNavigation=Ae(null,{equal:()=>!1});currentTransition=null;lastSuccessfulNavigation=null;events=new M;transitionAbortWithErrorSubject=new M;configLoader=u(jm);environmentInjector=u($e);destroyRef=u(bn);urlSerializer=u(Cl);rootContexts=u(wl);location=u(wi);inputBindingEnabled=u(cu,{optional:!0})!==null;titleStrategy=u(yF);options=u(js,{optional:!0})||{};paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly";urlHandlingStrategy=u(IE);createViewTransition=u(AE,{optional:!0});navigationErrorHandler=u(ME,{optional:!0});navigationId=0;get hasRequestedNavigation(){return this.navigationId!==0}transitions;afterPreactivation=()=>N(void 0);rootComponentType=null;destroyed=!1;constructor(){let e=r=>this.events.next(new aE(r)),i=r=>this.events.next(new lE(r));this.configLoader.onLoadEndListener=i,this.configLoader.onLoadStartListener=e,this.destroyRef.onDestroy(()=>{this.destroyed=!0})}complete(){this.transitions?.complete()}handleNavigationRequest(e){let i=++this.navigationId;pt(()=>{this.transitions?.next(J(b({},e),{extractedUrl:this.urlHandlingStrategy.extract(e.rawUrl),targetSnapshot:null,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null,abortController:new AbortController,id:i}))})}setupNavigations(e){return this.transitions=new at(null),this.transitions.pipe(ue(i=>i!==null),ze(i=>{let r=!1;return N(i).pipe(ze(o=>{if(this.navigationId>i.id)return this.cancelNavigationTransition(i,"",mn.SupersededByNewNavigation),Vt;this.currentTransition=i,this.currentNavigation.set({id:o.id,initialUrl:o.rawUrl,extractedUrl:o.extractedUrl,targetBrowserUrl:typeof o.extras.browserUrl=="string"?this.urlSerializer.parse(o.extras.browserUrl):o.extras.browserUrl,trigger:o.source,extras:o.extras,previousNavigation:this.lastSuccessfulNavigation?J(b({},this.lastSuccessfulNavigation),{previousNavigation:null}):null,abort:()=>o.abortController.abort()});let s=!e.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),a=o.extras.onSameUrlNavigation??e.onSameUrlNavigation;if(!s&&a!=="reload")return this.events.next(new vr(o.id,this.urlSerializer.serialize(o.rawUrl),"",eu.IgnoredSameUrlNavigation)),o.resolve(!1),Vt;if(this.urlHandlingStrategy.shouldProcessUrl(o.rawUrl))return N(o).pipe(ze(l=>(this.events.next(new Ps(l.id,this.urlSerializer.serialize(l.extractedUrl),l.source,l.restoredState)),l.id!==this.navigationId?Vt:Promise.resolve(l))),vW(this.environmentInjector,this.configLoader,this.rootComponentType,e.config,this.urlSerializer,this.paramsInheritanceStrategy),Fe(l=>{i.targetSnapshot=l.targetSnapshot,i.urlAfterRedirects=l.urlAfterRedirects,this.currentNavigation.update(d=>(d.finalUrl=l.urlAfterRedirects,d));let c=new Mm(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(c)}));if(s&&this.urlHandlingStrategy.shouldProcessUrl(o.currentRawUrl)){let{id:l,extractedUrl:c,source:d,restoredState:h,extras:m}=o,p=new Ps(l,this.urlSerializer.serialize(c),d,h);this.events.next(p);let g=rF(this.rootComponentType).snapshot;return this.currentTransition=i=J(b({},o),{targetSnapshot:g,urlAfterRedirects:c,extras:J(b({},m),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.update(y=>(y.finalUrl=c,y)),N(i)}else return this.events.next(new vr(o.id,this.urlSerializer.serialize(o.extractedUrl),"",eu.IgnoredByUrlHandlingStrategy)),o.resolve(!1),Vt}),Fe(o=>{let s=new iE(o.id,this.urlSerializer.serialize(o.extractedUrl),this.urlSerializer.serialize(o.urlAfterRedirects),o.targetSnapshot);this.events.next(s)}),V(o=>(this.currentTransition=i=J(b({},o),{guards:P8(o.targetSnapshot,o.currentSnapshot,this.rootContexts)}),i)),K8(this.environmentInjector,o=>this.events.next(o)),Fe(o=>{if(i.guardsResult=o.guardsResult,o.guardsResult&&typeof o.guardsResult!="boolean")throw km(this.urlSerializer,o.guardsResult);let s=new rE(o.id,this.urlSerializer.serialize(o.extractedUrl),this.urlSerializer.serialize(o.urlAfterRedirects),o.targetSnapshot,!!o.guardsResult);this.events.next(s)}),ue(o=>o.guardsResult?!0:(this.cancelNavigationTransition(o,"",mn.GuardRejected),!1)),ZC(o=>{if(o.guards.canActivateChecks.length!==0)return N(o).pipe(Fe(s=>{let a=new oE(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);this.events.next(a)}),ze(s=>{let a=!1;return N(s).pipe(_W(this.paramsInheritanceStrategy,this.environmentInjector),Fe({next:()=>a=!0,complete:()=>{a||this.cancelNavigationTransition(s,"",mn.NoDataFromResolver)}}))}),Fe(s=>{let a=new sE(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);this.events.next(a)}))}),ZC(o=>{let s=a=>{let l=[];if(a.routeConfig?.loadComponent){let c=El(a)??this.environmentInjector;l.push(this.configLoader.loadComponent(c,a.routeConfig).pipe(Fe(d=>{a.component=d}),V(()=>{})))}for(let c of a.children)l.push(...s(c));return l};return Lo(s(o.targetSnapshot.root)).pipe(Mr(null),He(1))}),ZC(()=>this.afterPreactivation()),ze(()=>{let{currentSnapshot:o,targetSnapshot:s}=i,a=this.createViewTransition?.(this.environmentInjector,o.root,s.root);return a?Pe(a).pipe(V(()=>i)):N(i)}),V(o=>{let s=O8(e.routeReuseStrategy,o.targetSnapshot,o.currentRouterState);return this.currentTransition=i=J(b({},o),{targetRouterState:s}),this.currentNavigation.update(a=>(a.targetRouterState=s,a)),i}),Fe(()=>{this.events.next(new iu)}),L8(this.rootContexts,e.routeReuseStrategy,o=>this.events.next(o),this.inputBindingEnabled),He(1),Ee(new Z(o=>{let s=i.abortController.signal,a=()=>o.next();return s.addEventListener("abort",a),()=>s.removeEventListener("abort",a)}).pipe(ue(()=>!r&&!i.targetRouterState),Fe(()=>{this.cancelNavigationTransition(i,i.abortController.signal.reason+"",mn.Aborted)}))),Fe({next:o=>{r=!0,this.lastSuccessfulNavigation=pt(this.currentNavigation),this.events.next(new ri(o.id,this.urlSerializer.serialize(o.extractedUrl),this.urlSerializer.serialize(o.urlAfterRedirects))),this.titleStrategy?.updateTitle(o.targetRouterState.snapshot),o.resolve(!0)},complete:()=>{r=!0}}),Ee(this.transitionAbortWithErrorSubject.pipe(Fe(o=>{throw o}))),ln(()=>{r||this.cancelNavigationTransition(i,"",mn.SupersededByNewNavigation),this.currentTransition?.id===i.id&&(this.currentNavigation.set(null),this.currentTransition=null)}),an(o=>{if(this.destroyed)return i.resolve(!1),Vt;if(r=!0,uF(o))this.events.next(new gr(i.id,this.urlSerializer.serialize(i.extractedUrl),o.message,o.cancellationCode)),k8(o)?this.events.next(new bl(o.url,o.navigationBehaviorOptions)):i.resolve(!1);else{let s=new tu(i.id,this.urlSerializer.serialize(i.extractedUrl),o,i.targetSnapshot??void 0);try{let a=xt(this.environmentInjector,()=>this.navigationErrorHandler?.(s));if(a instanceof ou){let{message:l,cancellationCode:c}=km(this.urlSerializer,a);this.events.next(new gr(i.id,this.urlSerializer.serialize(i.extractedUrl),l,c)),this.events.next(new bl(a.redirectTo,a.navigationBehaviorOptions))}else throw this.events.next(s),o}catch(a){this.options.resolveNavigationPromiseOnError?i.resolve(!1):i.reject(a)}}return Vt}))}))}cancelNavigationTransition(e,i,r){let o=new gr(e.id,this.urlSerializer.serialize(e.extractedUrl),i,r);this.events.next(o),e.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){let e=this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))),i=pt(this.currentNavigation),r=i?.targetBrowserUrl??i?.extractedUrl;return e.toString()!==r?.toString()&&!i?.extras.skipLocationChange}static \u0275fac=function(i){return new(i||n)};static \u0275prov=v({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();TW=(()=>{class n{static \u0275fac=function(i){return new(i||n)};static \u0275prov=v({token:n,factory:()=>u(MW),providedIn:"root"})}return n})(),EE=class{shouldDetach(t){return!1}store(t,e){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,e){return t.routeConfig===e.routeConfig}},MW=(()=>{class n extends EE{static \u0275fac=(()=>{let e;return function(r){return(e||(e=Ve(n)))(r||n)}})();static \u0275prov=v({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})(),xF=(()=>{class n{urlSerializer=u(Cl);options=u(js,{optional:!0})||{};canceledNavigationResolution=this.options.canceledNavigationResolution||"replace";location=u(wi);urlHandlingStrategy=u(IE);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";currentUrlTree=new yr;getCurrentUrlTree(){return this.currentUrlTree}rawUrlTree=this.currentUrlTree;getRawUrlTree(){return this.rawUrlTree}createBrowserPath({finalUrl:e,initialUrl:i,targetBrowserUrl:r}){let o=e!==void 0?this.urlHandlingStrategy.merge(e,i):i,s=r??o;return s instanceof yr?this.urlSerializer.serialize(s):s}commitTransition({targetRouterState:e,finalUrl:i,initialUrl:r}){i&&e?(this.currentUrlTree=i,this.rawUrlTree=this.urlHandlingStrategy.merge(i,r),this.routerState=e):this.rawUrlTree=r}routerState=rF(null);getRouterState(){return this.routerState}stateMemento=this.createStateMemento();updateStateMemento(){this.stateMemento=this.createStateMemento()}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}resetInternalState({finalUrl:e}){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e??this.rawUrlTree)}static \u0275fac=function(i){return new(i||n)};static \u0275prov=v({token:n,factory:()=>u(RW),providedIn:"root"})}return n})(),RW=(()=>{class n extends xF{currentPageId=0;lastSuccessfulId=-1;restoredState(){return this.location.getState()}get browserPageId(){return this.canceledNavigationResolution!=="computed"?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}registerNonRouterCurrentEntryChangeListener(e){return this.location.subscribe(i=>{i.type==="popstate"&&setTimeout(()=>{e(i.url,i.state,"popstate")})})}handleRouterEvent(e,i){e instanceof Ps?this.updateStateMemento():e instanceof vr?this.commitTransition(i):e instanceof Mm?this.urlUpdateStrategy==="eager"&&(i.extras.skipLocationChange||this.setBrowserUrl(this.createBrowserPath(i),i)):e instanceof iu?(this.commitTransition(i),this.urlUpdateStrategy==="deferred"&&!i.extras.skipLocationChange&&this.setBrowserUrl(this.createBrowserPath(i),i)):e instanceof gr&&e.code!==mn.SupersededByNewNavigation&&e.code!==mn.Redirect?this.restoreHistory(i):e instanceof tu?this.restoreHistory(i,!0):e instanceof ri&&(this.lastSuccessfulId=e.id,this.currentPageId=this.browserPageId)}setBrowserUrl(e,{extras:i,id:r}){let{replaceUrl:o,state:s}=i;if(this.location.isCurrentPathEqualTo(e)||o){let a=this.browserPageId,l=b(b({},s),this.generateNgRouterState(r,a));this.location.replaceState(e,"",l)}else{let a=b(b({},s),this.generateNgRouterState(r,this.browserPageId+1));this.location.go(e,"",a)}}restoreHistory(e,i=!1){if(this.canceledNavigationResolution==="computed"){let r=this.browserPageId,o=this.currentPageId-r;o!==0?this.location.historyGo(o):this.getCurrentUrlTree()===e.finalUrl&&o===0&&(this.resetInternalState(e),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(i&&this.resetInternalState(e),this.resetUrlToCurrentUrlTree())}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.getRawUrlTree()),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(e,i){return this.canceledNavigationResolution==="computed"?{navigationId:e,\u0275routerPageId:i}:{navigationId:e}}static \u0275fac=(()=>{let e;return function(r){return(e||(e=Ve(n)))(r||n)}})();static \u0275prov=v({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();OW={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},NW={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},_o=(()=>{class n{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}disposed=!1;nonRouterCurrentEntryChangeSubscription;console=u(Fh);stateManager=u(xF);options=u(js,{optional:!0})||{};pendingTasks=u(yi);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";navigationTransitions=u(Vm);urlSerializer=u(Cl);location=u(wi);urlHandlingStrategy=u(IE);injector=u($e);_events=new M;get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}navigated=!1;routeReuseStrategy=u(TW);onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore";config=u(uu,{optional:!0})?.flat()??[];componentInputBindingEnabled=!!u(cu,{optional:!0});currentNavigation=this.navigationTransitions.currentNavigation.asReadonly();constructor(){this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this).subscribe({error:e=>{this.console.warn(e)}}),this.subscribeToNavigationEvents()}eventsSubscription=new Ce;subscribeToNavigationEvents(){let e=this.navigationTransitions.events.subscribe(i=>{try{let r=this.navigationTransitions.currentTransition,o=pt(this.navigationTransitions.currentNavigation);if(r!==null&&o!==null){if(this.stateManager.handleRouterEvent(i,o),i instanceof gr&&i.code!==mn.Redirect&&i.code!==mn.SupersededByNewNavigation)this.navigated=!0;else if(i instanceof ri)this.navigated=!0;else if(i instanceof bl){let s=i.navigationBehaviorOptions,a=this.urlHandlingStrategy.merge(i.url,r.currentRawUrl),l=b({browserUrl:r.extras.browserUrl,info:r.extras.info,skipLocationChange:r.extras.skipLocationChange,replaceUrl:r.extras.replaceUrl||this.urlUpdateStrategy==="eager"||AW(r.source)},s);this.scheduleNavigation(a,gl,null,l,{resolve:r.resolve,reject:r.reject,promise:r.promise})}}I8(i)&&this._events.next(i)}catch(r){this.navigationTransitions.transitionAbortWithErrorSubject.next(r)}});this.eventsSubscription.add(e)}resetRootComponentType(e){this.routerState.root.component=e,this.navigationTransitions.rootComponentType=e}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),gl,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((e,i,r)=>{this.navigateToSyncWithBrowser(e,r,i)})}navigateToSyncWithBrowser(e,i,r){let o={replaceUrl:!0},s=r?.navigationId?r:null;if(r){let l=b({},r);delete l.navigationId,delete l.\u0275routerPageId,Object.keys(l).length!==0&&(o.state=l)}let a=this.parseUrl(e);this.scheduleNavigation(a,i,s,o).catch(l=>{this.disposed||this.injector.get(dn)(l)})}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return pt(this.navigationTransitions.currentNavigation)}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(e){this.config=e.map(SE),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this._events.unsubscribe(),this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription&&(this.nonRouterCurrentEntryChangeSubscription.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(e,i={}){let{relativeTo:r,queryParams:o,fragment:s,queryParamsHandling:a,preserveFragment:l}=i,c=l?this.currentUrlTree.fragment:s,d=null;switch(a??this.options.defaultQueryParamsHandling){case"merge":d=b(b({},this.currentUrlTree.queryParams),o);break;case"preserve":d=this.currentUrlTree.queryParams;break;default:d=o||null}d!==null&&(d=this.removeEmptyProps(d));let h;try{let m=r?r.snapshot:this.routerState.snapshot.root;h=eF(m)}catch{(typeof e[0]!="string"||e[0][0]!=="/")&&(e=[]),h=this.currentUrlTree.root}return tF(h,e,d,c??null)}navigateByUrl(e,i={skipLocationChange:!1}){let r=yo(e)?e:this.parseUrl(e),o=this.urlHandlingStrategy.merge(r,this.rawUrlTree);return this.scheduleNavigation(o,gl,null,i)}navigate(e,i={skipLocationChange:!1}){return FW(e),this.navigateByUrl(this.createUrlTree(e,i),i)}serializeUrl(e){return this.urlSerializer.serialize(e)}parseUrl(e){try{return this.urlSerializer.parse(e)}catch{return this.urlSerializer.parse("/")}}isActive(e,i){let r;if(i===!0?r=b({},OW):i===!1?r=b({},NW):r=i,yo(e))return PN(this.currentUrlTree,e,r);let o=this.parseUrl(e);return PN(this.currentUrlTree,o,r)}removeEmptyProps(e){return Object.entries(e).reduce((i,[r,o])=>(o!=null&&(i[r]=o),i),{})}scheduleNavigation(e,i,r,o,s){if(this.disposed)return Promise.resolve(!1);let a,l,c;s?(a=s.resolve,l=s.reject,c=s.promise):c=new Promise((h,m)=>{a=h,l=m});let d=this.pendingTasks.add();return RE(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(d))}),this.navigationTransitions.handleNavigationRequest({source:i,restoredState:r,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:e,extras:o,resolve:a,reject:l,promise:c,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),c.catch(h=>Promise.reject(h))}static \u0275fac=function(i){return new(i||n)};static \u0275prov=v({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})()});function LW(n){return n.routerState.root}function hu(n,t){return{\u0275kind:n,\u0275providers:t}}function PW(){let n=u(G);return t=>{let e=n.get(Ut);if(t!==e.components[0])return;let i=n.get(_o),r=n.get(DF);n.get(NE)===1&&i.initialNavigation(),n.get(AF,null,{optional:!0})?.setUpPreloading(),n.get(wF,null,{optional:!0})?.init(),i.resetRootComponentType(e.componentTypes[0]),r.closed||(r.next(),r.complete(),r.unsubscribe())}}function SF(){let n=[{provide:_h,useValue:!0},{provide:NE,useValue:0},kh(()=>{let t=u(G);return t.get(jb,Promise.resolve()).then(()=>new Promise(i=>{let r=t.get(_o),o=t.get(DF);RE(r,()=>{i(!0)}),t.get(Vm).afterPreactivation=()=>(i(!0),o.closed?N(void 0):o),r.initialNavigation()}))})];return hu(2,n)}function IF(){let n=[kh(()=>{u(_o).setUpLocationChangeListener()}),{provide:NE,useValue:2}];return hu(3,n)}function TF(n){return hu(0,[{provide:AF,useExisting:EF},{provide:fu,useExisting:n}])}function MF(){return hu(8,[DE,{provide:cu,useExisting:DE}])}function RF(n){Rn("NgRouterViewTransitions");let t=[{provide:AE,useValue:bF},{provide:TE,useValue:b({skipNextTransition:!!n?.skipInitialTransition},n)}];return hu(9,t)}function jW(){return{provide:wF,useFactory:()=>{let n=u(ET),t=u(P),e=u(js),i=u(Vm),r=u(Cl);return e.scrollOffset&&n.setOffset(e.scrollOffset),new kW(r,i,n,t,e)}}}function VW(){return{provide:Xn,useClass:Ub}}function BW(){return{provide:Xn,useClass:Gh}}function UW(n){return[n.initialNavigation==="disabled"?IF().\u0275providers:[],n.initialNavigation==="enabledBlocking"?SF().\u0275providers:[]]}function HW(){return[{provide:OE,useFactory:PW},{provide:Ta,multi:!0,useExisting:OE}]}var Bm,fu,EF,wF,kW,DF,NE,AF,OF,FE,OE,NF=f(()=>{"use strict";Le();Le();_();_();CF();we();it();Bm=(()=>{class n{router;route;tabIndexAttribute;renderer;el;locationStrategy;reactiveHref=Ae(null);get href(){return pt(this.reactiveHref)}set href(e){this.reactiveHref.set(e)}target;queryParams;fragment;queryParamsHandling;state;info;relativeTo;isAnchorElement;subscription;onChanges=new M;applicationErrorHandler=u(dn);options=u(js,{optional:!0});constructor(e,i,r,o,s,a){this.router=e,this.route=i,this.tabIndexAttribute=r,this.renderer=o,this.el=s,this.locationStrategy=a,this.reactiveHref.set(u(new Zr("href"),{optional:!0}));let l=s.nativeElement.tagName?.toLowerCase();this.isAnchorElement=l==="a"||l==="area"||!!(typeof customElements=="object"&&customElements.get(l)?.observedAttributes?.includes?.("href")),this.isAnchorElement?this.setTabIndexIfNotOnNativeEl("0"):this.subscribeToNavigationEventsIfNecessary()}subscribeToNavigationEventsIfNecessary(){if(this.subscription!==void 0||!this.isAnchorElement)return;let e=this.preserveFragment,i=r=>r==="merge"||r==="preserve";e||=i(this.queryParamsHandling),e||=!this.queryParamsHandling&&!i(this.options?.defaultQueryParamsHandling),e&&(this.subscription=this.router.events.subscribe(r=>{r instanceof ri&&this.updateHref()}))}preserveFragment=!1;skipLocationChange=!1;replaceUrl=!1;setTabIndexIfNotOnNativeEl(e){this.tabIndexAttribute!=null||this.isAnchorElement||this.applyAttributeValue("tabindex",e)}ngOnChanges(e){this.isAnchorElement&&(this.updateHref(),this.subscribeToNavigationEventsIfNecessary()),this.onChanges.next(this)}routerLinkInput=null;set routerLink(e){e==null?(this.routerLinkInput=null,this.setTabIndexIfNotOnNativeEl(null)):(yo(e)?this.routerLinkInput=e:this.routerLinkInput=Array.isArray(e)?e:[e],this.setTabIndexIfNotOnNativeEl("0"))}onClick(e,i,r,o,s){let a=this.urlTree;if(a===null||this.isAnchorElement&&(e!==0||i||r||o||s||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(a,l)?.catch(c=>{this.applicationErrorHandler(c)}),!this.isAnchorElement}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){let e=this.urlTree;this.reactiveHref.set(e!==null&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(e))??"":null)}applyAttributeValue(e,i){let r=this.renderer,o=this.el.nativeElement;i!==null?r.setAttribute(o,e,i):r.removeAttribute(o,e)}get urlTree(){return this.routerLinkInput===null?null:yo(this.routerLinkInput)?this.routerLinkInput:this.router.createUrlTree(this.routerLinkInput,{relativeTo:this.relativeTo!==void 0?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}static \u0275fac=function(i){return new(i||n)(T(_o),T(vo),Dc("tabindex"),T(rt),T(H),T(Xn))};static \u0275dir=j({type:n,selectors:[["","routerLink",""]],hostVars:2,hostBindings:function(i,r){i&1&&te("click",function(s){return r.onClick(s.button,s.ctrlKey,s.shiftKey,s.altKey,s.metaKey)}),i&2&&De("href",r.reactiveHref(),S_)("target",r.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[2,"preserveFragment","preserveFragment",Ie],skipLocationChange:[2,"skipLocationChange","skipLocationChange",Ie],replaceUrl:[2,"replaceUrl","replaceUrl",Ie],routerLink:"routerLink"},features:[je]})}return n})(),fu=class{},EF=(()=>{class n{router;injector;preloadingStrategy;loader;subscription;constructor(e,i,r,o){this.router=e,this.injector=i,this.preloadingStrategy=r,this.loader=o}setUpPreloading(){this.subscription=this.router.events.pipe(ue(e=>e instanceof ri),Sn(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(e,i){let r=[];for(let o of i){o.providers&&!o._injector&&(o._injector=Aa(o.providers,e,`Route: ${o.path}`));let s=o._injector??e,a=o._loadedInjector??s;(o.loadChildren&&!o._loadedRoutes&&o.canLoad===void 0||o.loadComponent&&!o._loadedComponent)&&r.push(this.preloadConfig(s,o)),(o.children||o._loadedRoutes)&&r.push(this.processRoutes(a,o.children??o._loadedRoutes))}return Pe(r).pipe(Tr())}preloadConfig(e,i){return this.preloadingStrategy.preload(i,()=>{let r;i.loadChildren&&i.canLoad===void 0?r=this.loader.loadChildren(e,i):r=N(null);let o=r.pipe(Ke(s=>s===null?N(void 0):(i._loadedRoutes=s.routes,i._loadedInjector=s.injector,this.processRoutes(s.injector??e,s.routes))));if(i.loadComponent&&!i._loadedComponent){let s=this.loader.loadComponent(e,i);return Pe([o,s]).pipe(Tr())}else return o})}static \u0275fac=function(i){return new(i||n)(S(_o),S($e),S(fu),S(jm))};static \u0275prov=v({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})(),wF=new x(""),kW=(()=>{class n{urlSerializer;transitions;viewportScroller;zone;options;routerEventsSubscription;scrollEventsSubscription;lastId=0;lastSource=gl;restoredId=0;store={};constructor(e,i,r,o,s={}){this.urlSerializer=e,this.transitions=i,this.viewportScroller=r,this.zone=o,this.options=s,s.scrollPositionRestoration||="disabled",s.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(e=>{e instanceof Ps?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof ri?(this.lastId=e.id,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.urlAfterRedirects).fragment)):e instanceof vr&&e.code===eu.IgnoredSameUrlNavigation&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(e=>{e instanceof nu&&(e.position?this.options.scrollPositionRestoration==="top"?this.viewportScroller.scrollToPosition([0,0]):this.options.scrollPositionRestoration==="enabled"&&this.viewportScroller.scrollToPosition(e.position):e.anchor&&this.options.anchorScrolling==="enabled"?this.viewportScroller.scrollToAnchor(e.anchor):this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(e,i){this.zone.runOutsideAngular(()=>Er(this,null,function*(){yield new Promise(r=>{setTimeout(r),typeof requestAnimationFrame<"u"&&requestAnimationFrame(r)}),this.zone.run(()=>{this.transitions.events.next(new nu(e,this.lastSource==="popstate"?this.store[this.restoredId]:null,i))})}))}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}static \u0275fac=function(i){Rc()};static \u0275prov=v({token:n,factory:n.\u0275fac})}return n})();DF=new x("",{factory:()=>new M}),NE=new x("",{providedIn:"root",factory:()=>1});AF=new x("");OF=[wi,{provide:Cl,useClass:Ls},_o,wl,{provide:vo,useFactory:LW,deps:[_o]},jm,[]],FE=(()=>{class n{constructor(){}static forRoot(e,i){return{ngModule:n,providers:[OF,[],{provide:uu,multi:!0,useValue:e},[],i?.errorHandler?{provide:ME,useValue:i.errorHandler}:[],{provide:js,useValue:i||{}},i?.useHash?VW():BW(),jW(),i?.preloadingStrategy?TF(i.preloadingStrategy).\u0275providers:[],i?.initialNavigation?UW(i):[],i?.bindToComponentInputs?MF().\u0275providers:[],i?.enableViewTransitions?RF().\u0275providers:[],HW()]}}static forChild(e){return{ngModule:n,providers:[{provide:uu,multi:!0,useValue:e}]}}static \u0275fac=function(i){return new(i||n)};static \u0275mod=L({type:n});static \u0275inj=F({})}return n})();OE=new x("")});var kE=f(()=>{"use strict";NF();});var $W,FF,LE=f(()=>{"use strict";_();_();En();co();Dt();$W=["clearButton"],FF=(()=>{let t=class t{constructor(){this.tldClick=new z,this.ariaCode="CLOSE_BUTTON"}clicked(){this.tldClick.emit(null)}};t.\u0275fac=function(r){return new(r||t)},t.\u0275cmp=$({type:t,selectors:[["tld-close-button"]],viewQuery:function(r,o){if(r&1&&Be($W,5),r&2){let s;be(s=xe())&&(o.clearButton=s.first)}},inputs:{ariaCode:"ariaCode",disabled:"disabled",tooltip:"tooltip"},outputs:{tldClick:"tldClick"},standalone:!1,decls:6,vars:7,consts:[["clearButton",""],["mat-icon-button","",3,"click","matTooltip","disabled"],[1,"material-icons"]],template:function(r,o){if(r&1){let s=Re();I(0,"button",1,0),ae(2,"translate"),ae(3,"translate"),te("click",function(){return ve(s),_e(o.clicked())}),I(4,"span",2),se(5," close "),R()()}r&2&&(A("matTooltip",pe(2,3,o.tooltip))("disabled",o.disabled),De("aria-label",pe(3,5,"ARIA_LABELS."+o.ariaCode)))},dependencies:[vs,fr,wt],encapsulation:2});let n=t;return n})()});var kF,LF=f(()=>{"use strict";Le();LE();En();Dt();co();_();kF=(()=>{let t=class t{};t.\u0275fac=function(r){return new(r||t)},t.\u0275mod=L({type:t}),t.\u0275inj=F({imports:[hn,so,Di,As]});let n=t;return n})()});function qW(n,t){if(n&1&&(ce(0,"p",10),ae(1,"translate")),n&2){let e=W();A("innerHtml",ds(1,1,e.message.title,e.message.localizationParams),Ci)}}function KW(n,t){if(n&1&&(ce(0,"span",12),ae(1,"translate")),n&2){let e=W(2);A("innerHtml",ds(1,1,e.message.support,e.message.localizationParams),Ci)}}function YW(n,t){if(n&1&&(I(0,"p",11),ce(1,"span",12),ae(2,"translate"),Te(3,KW,2,4,"span",13),R()),n&2){let e=W();C(),A("innerHtml",ds(2,2,e.message.body,e.message.localizationParams),Ci),C(2),A("ngIf",e.message.support)}}function QW(n,t){if(n&1&&(I(0,"mat-icon"),se(1),R()),n&2){let e=W(2);C(),ht(e.message.callbackButtonIcon)}}function ZW(n,t){if(n&1){let e=Re();I(0,"button",14),te("click",function(){ve(e);let r=W();return _e(r.message==null?null:r.message.callbackButtonClick())}),Te(1,QW,2,1,"mat-icon",15),se(2),ae(3,"translate"),R()}if(n&2){let e=W();C(),A("ngIf",e.message.callbackButtonIcon),C(),Je(" ",pe(3,2,e.message.callbackButtonText)," ")}}function XW(n,t){if(n&1){let e=Re();I(0,"tld-close-button",16),te("tldClick",function(){ve(e);let r=W();return _e(r.closeClick())}),R()}if(n&2){let e=W();ne("no-top-margin",!e.message.title||!e.message.body)}}function JW(n,t){if(n&1){let e=Re();I(0,"button",21),te("click",function(){ve(e);let r=W(2);return _e(r.buttonClick())}),se(1),ae(2,"translate"),R()}if(n&2){let e=W(2);C(),Je("",pe(2,1,e.message.buttonText)," ")}}function e4(n,t){if(n&1){let e=Re();I(0,"a",22),te("click",function(){ve(e);let r=W(2);return _e(r.linkClick())}),se(1),ae(2,"translate"),R()}if(n&2){let e=W(2);De("href",e.message.linkHref,Eh),C(),ht(pe(2,2,e.message.linkText))}}function t4(n,t){if(n&1){let e=Re();I(0,"a",23),te("click",function(){ve(e);let r=W(2);return _e(r.linkClick())}),se(1),ae(2,"translate"),R()}if(n&2){let e=W(2);A("routerLink",yb(4,WW,e.message.routerLink)),C(),ht(pe(2,2,e.message.linkText))}}function n4(n,t){if(n&1&&(I(0,"div",17),Te(1,JW,3,3,"button",18)(2,e4,3,4,"a",19)(3,t4,3,6,"a",20),R()),n&2){let e=W();C(),A("ngIf",e.message.buttonText),C(),A("ngIf",e.message.linkHref&&e.message.linkText),C(),A("ngIf",e.message.routerLink&&e.message.linkText)}}var WW,PF,Um=f(()=>{"use strict";_();_();Le();ym();ll();LE();En();kE();dr();Dt();WW=n=>[n];PF=(()=>{let t=class t{constructor(){this.buttonClicked=new z,this.closeClicked=new z,this.linkClicked=new z,this.iconNames={BASIC:"info",INFO:"info",ERROR:"error",SUCCESS:"check_circle",WARNING:"info"}}ngOnInit(){this.className=this.message.type.toLocaleLowerCase()}buttonClick(){this.buttonClicked.next(null)}closeClick(){this.closeClicked.next(null)}linkClick(){this.linkClicked.next(null)}};t.\u0275fac=function(r){return new(r||t)},t.\u0275cmp=$({type:t,selectors:[["lib-tld-notification-message"]],inputs:{message:"message",inline:"inline"},outputs:{buttonClicked:"buttonClicked",closeClicked:"closeClicked",linkClicked:"linkClicked"},standalone:!1,decls:12,vars:13,consts:[["fxLayout","row","fxLayoutAlign","start start","aria-live","polite","fxLayout","row",1,"notification-message-container","tld-default-border",3,"ngClass.lt-md"],[1,"material-icons-outlined","message-icon"],["fxFlex","",1,"items-container"],["fxLayout","row"],["fxFlex","",1,"text-container"],["class","message-title",3,"innerHtml",4,"ngIf"],["class","message-body",4,"ngIf"],["color","accent","mat-stroked-button","","class","callback-button",3,"click",4,"ngIf"],["class","close-button",3,"no-top-margin","tldClick",4,"ngIf"],["fxLayout","row","fxLayoutGap","16px","fxLayoutAlign","start center",4,"ngIf"],[1,"message-title",3,"innerHtml"],[1,"message-body"],[3,"innerHtml"],[3,"innerHtml",4,"ngIf"],["color","accent","mat-stroked-button","",1,"callback-button",3,"click"],[4,"ngIf"],[1,"close-button",3,"tldClick"],["fxLayout","row","fxLayoutGap","16px","fxLayoutAlign","start center"],["class","message-action-button","color","accent","mat-flat-button","",3,"click",4,"ngIf"],["class","message-action-link",3,"click",4,"ngIf"],["class","message-action-link",3,"routerLink","click",4,"ngIf"],["color","accent","mat-flat-button","",1,"message-action-button",3,"click"],[1,"message-action-link",3,"click"],[1,"message-action-link",3,"click","routerLink"]],template:function(r,o){r&1&&(I(0,"div")(1,"div",0)(2,"span",1),se(3),R(),I(4,"div",2)(5,"div",3)(6,"div",4),Te(7,qW,2,4,"p",5)(8,YW,4,5,"p",6),R(),Te(9,ZW,4,4,"button",7)(10,XW,1,2,"tld-close-button",8),R(),Te(11,n4,4,3,"div",9),R()()()),r&2&&(Yn(Nc("notification-message ",o.className)),C(),ne("inline",o.inline),A("ngClass.lt-md","mobile"),De("id",o.message==null?null:o.message.id),C(2),Je(" ",o.iconNames[o.message.type]," "),C(4),A("ngIf",o.message.title),C(),A("ngIf",o.message.body),C(),A("ngIf",o.message.callbackButtonText),C(),A("ngIf",!o.message.hideClose&&!o.message.callbackButtonText),C(),A("ngIf",o.message.buttonText||o.message.linkHref||o.message.routerLink))},dependencies:[Xi,rN,tN,XO,QO,al,FF,Mi,Bm,Ri,wt],styles:["[_nghost-%COMP%]{display:inline-block;width:100%}.close-button[_ngcontent-%COMP%]{position:absolute;top:.2em!important;right:.2em!important}.no-top-margin[_ngcontent-%COMP%]{top:0}.text-container[_ngcontent-%COMP%]{margin-right:45px}.notification-message[_ngcontent-%COMP%]{position:relative}.notification-message.basic[_ngcontent-%COMP%]{color:var(--base-30)}.notification-message.basic[_ngcontent-%COMP%] .notification-message-container[_ngcontent-%COMP%]{background-color:var(--base-95)}.notification-message.basic[_ngcontent-%COMP%] .notification-message-container[_ngcontent-%COMP%] .close-button[_ngcontent-%COMP%], .notification-message.basic[_ngcontent-%COMP%] .notification-message-container[_ngcontent-%COMP%] .message-icon[_ngcontent-%COMP%]{color:var(--base-40)}.notification-message.basic[_ngcontent-%COMP%] .notification-message-container[_ngcontent-%COMP%] .message-action-button[_ngcontent-%COMP%]{background-color:var(--base-40)}.notification-message.info[_ngcontent-%COMP%] .notification-message-container[_ngcontent-%COMP%]{background-color:var(--info-light)}.notification-message.info[_ngcontent-%COMP%] .notification-message-container[_ngcontent-%COMP%] .text-container[_ngcontent-%COMP%]{color:var(--info-dark)}.notification-message.info[_ngcontent-%COMP%] .notification-message-container[_ngcontent-%COMP%] .message-icon[_ngcontent-%COMP%]{color:var(--info-primary)}.notification-message.info[_ngcontent-%COMP%] .notification-message-container[_ngcontent-%COMP%] .close-button[_ngcontent-%COMP%]{color:var(--info-dark)}.notification-message.info[_ngcontent-%COMP%] .notification-message-container[_ngcontent-%COMP%] .message-action-button[_ngcontent-%COMP%]{background-color:var(--base-40)}.notification-message.error[_ngcontent-%COMP%] .notification-message-container[_ngcontent-%COMP%]{background-color:var(--error-light)}.notification-message.error[_ngcontent-%COMP%] .notification-message-container[_ngcontent-%COMP%] .close-button[_ngcontent-%COMP%], .notification-message.error[_ngcontent-%COMP%] .notification-message-container[_ngcontent-%COMP%] .text-container[_ngcontent-%COMP%], .notification-message.error[_ngcontent-%COMP%] .notification-message-container[_ngcontent-%COMP%] .message-icon[_ngcontent-%COMP%]{color:var(--error-dark)}.notification-message.error[_ngcontent-%COMP%] .notification-message-container[_ngcontent-%COMP%] .message-action-button[_ngcontent-%COMP%]{background-color:var(--base-40)}.notification-message.warning[_ngcontent-%COMP%] .notification-message-container[_ngcontent-%COMP%]{background-color:var(--warning-light)}.notification-message.warning[_ngcontent-%COMP%] .notification-message-container[_ngcontent-%COMP%] .close-button[_ngcontent-%COMP%], .notification-message.warning[_ngcontent-%COMP%] .notification-message-container[_ngcontent-%COMP%] .text-container[_ngcontent-%COMP%], .notification-message.warning[_ngcontent-%COMP%] .notification-message-container[_ngcontent-%COMP%] .message-icon[_ngcontent-%COMP%]{color:var(--warning-dark)}.notification-message.warning[_ngcontent-%COMP%] .notification-message-container[_ngcontent-%COMP%] .message-action-button[_ngcontent-%COMP%]{background-color:var(--base-40)}.notification-message.success[_ngcontent-%COMP%] .notification-message-container[_ngcontent-%COMP%]{background-color:var(--success-light)}.notification-message.success[_ngcontent-%COMP%] .notification-message-container[_ngcontent-%COMP%] .close-button[_ngcontent-%COMP%], .notification-message.success[_ngcontent-%COMP%] .notification-message-container[_ngcontent-%COMP%] .text-container[_ngcontent-%COMP%], .notification-message.success[_ngcontent-%COMP%] .notification-message-container[_ngcontent-%COMP%] .message-icon[_ngcontent-%COMP%]{color:var(--success-dark)}.notification-message.success[_ngcontent-%COMP%] .notification-message-container[_ngcontent-%COMP%] .message-action-button[_ngcontent-%COMP%]{background-color:var(--base-40)}.notification-message[_ngcontent-%COMP%] .notification-message-container[_ngcontent-%COMP%]{border-radius:4px}.notification-message[_ngcontent-%COMP%] .notification-message-container[_ngcontent-%COMP%] .text-container[_ngcontent-%COMP%]:has(.message-title+.message-body) .message-title[_ngcontent-%COMP%]{font-weight:600}.notification-message[_ngcontent-%COMP%] .notification-message-container.mobile[_ngcontent-%COMP%]{padding:.6em .4em!important;border-radius:0}.notification-message[_ngcontent-%COMP%] .notification-message-container.mobile[_ngcontent-%COMP%] .items-container[_ngcontent-%COMP%]{margin-left:.4em!important}.notification-message[_ngcontent-%COMP%] .notification-message-container.mobile[_ngcontent-%COMP%] .items-container[_ngcontent-%COMP%] div[_ngcontent-%COMP%] + div[_ngcontent-%COMP%]{margin-top:.2em!important}.notification-message[_ngcontent-%COMP%] .notification-message-container.mobile[_ngcontent-%COMP%] .items-container[_ngcontent-%COMP%] .message-title[_ngcontent-%COMP%] + .message-body[_ngcontent-%COMP%]{margin-top:0!important}.notification-message[_ngcontent-%COMP%] .notification-message-container[_ngcontent-%COMP%] .text-container[_ngcontent-%COMP%]:first-child{line-height:1.5em}.notification-message[_ngcontent-%COMP%] .notification-message-container[_ngcontent-%COMP%] .text-container[_ngcontent-%COMP%] .message-title[_ngcontent-%COMP%]{margin:0;font-size:1rem;line-height:24px}.notification-message[_ngcontent-%COMP%] .notification-message-container[_ngcontent-%COMP%] .text-container[_ngcontent-%COMP%] .message-body[_ngcontent-%COMP%]{margin:0}.notification-message[_ngcontent-%COMP%] .notification-message-container[_ngcontent-%COMP%]:not(.inline){padding:1em}.notification-message[_ngcontent-%COMP%] .notification-message-container[_ngcontent-%COMP%]:not(.inline) .items-container[_ngcontent-%COMP%]{margin-left:1em}.notification-message[_ngcontent-%COMP%] .notification-message-container[_ngcontent-%COMP%]:not(.inline) .message-title[_ngcontent-%COMP%]{font-size:1.25em}.notification-message[_ngcontent-%COMP%] .notification-message-container[_ngcontent-%COMP%]:not(.inline) .message-body[_ngcontent-%COMP%]{line-height:1.5em}.notification-message[_ngcontent-%COMP%] .notification-message-container.inline[_ngcontent-%COMP%]{padding:.75em 1em}.notification-message[_ngcontent-%COMP%] .notification-message-container.inline[_ngcontent-%COMP%] .items-container[_ngcontent-%COMP%]{margin-left:.75em}.notification-message[_ngcontent-%COMP%] .notification-message-container.inline[_ngcontent-%COMP%] .items-container[_ngcontent-%COMP%] div[_ngcontent-%COMP%] + div[_ngcontent-%COMP%]{margin-top:.5em}.notification-message[_ngcontent-%COMP%] .notification-message-container.inline[_ngcontent-%COMP%] .items-container[_ngcontent-%COMP%] .message-title[_ngcontent-%COMP%] + .message-body[_ngcontent-%COMP%]{margin-top:.2em}.notification-message[_ngcontent-%COMP%] .notification-message-container.inline[_ngcontent-%COMP%] .message-title[_ngcontent-%COMP%]{font-size:1em}"]});let n=t;return n})()});var jF,VF=f(()=>{"use strict";Le();vm();En();kE();Dt();LF();Um();dr();_();jF=(()=>{let t=class t{};t.\u0275fac=function(r){return new(r||t)},t.\u0275mod=L({type:t}),t.\u0275inj=F({imports:[hn,cl,kF,so,Di,FE,$p]});let n=t;return n})()});var Vs,PE=f(()=>{"use strict";Vs=(function(n){return n.BASIC="BASIC",n.INFO="INFO",n.WARNING="WARNING",n.SUCCESS="SUCCESS",n.ERROR="ERROR",n})(Vs||{})});var BF=f(()=>{"use strict";PE()});var UF=f(()=>{"use strict"});var HF=f(()=>{"use strict";UF()});var jE=f(()=>{"use strict";VF();Um();BF();HF()});var VE=f(()=>{"use strict"});var zF=f(()=>{"use strict";jE();VE()});var $F=f(()=>{"use strict"});var GF=f(()=>{"use strict";$F()});var WF=f(()=>{"use strict";VE()});var qF=f(()=>{"use strict";zF();GF();WF()});var KF=f(()=>{"use strict"});var YF=f(()=>{"use strict"});var QF=f(()=>{"use strict"});var ZF=f(()=>{"use strict"});var XF=f(()=>{"use strict"});var JF=f(()=>{"use strict"});var ek=f(()=>{"use strict"});var tk=f(()=>{"use strict"});var Bs,nk=f(()=>{"use strict";qC();Bs=class{static isMobileRes(){return window.innerWidth<IN.SMALL}}});var BE=f(()=>{"use strict"});var ik=f(()=>{"use strict";bo();BE()});var rk=f(()=>{"use strict";BE()});var UE=f(()=>{"use strict";ik();rk()});var ok=f(()=>{"use strict";UE()});var sk=f(()=>{"use strict"});var ak=f(()=>{"use strict"});var bo=f(()=>{"use strict";KF();YF();QF();ZF();XF();JF();ek();tk();nk();ok();sk();ak()});var lk=f(()=>{"use strict"});var ck=f(()=>{"use strict"});var dk=f(()=>{"use strict"});var uk=f(()=>{"use strict"});var fk=f(()=>{"use strict"});var hk=f(()=>{"use strict"});var pk=f(()=>{"use strict"});var mk=f(()=>{"use strict"});var gk=f(()=>{"use strict";lk();ck();dk();uk();fk();hk();pk();mk()});var yk=f(()=>{"use strict"});var vk=f(()=>{"use strict"});var _k=f(()=>{"use strict";vk()});var bk=f(()=>{"use strict";bo();gk();yk();_k()});var xk=f(()=>{"use strict";bk()});var Ck=f(()=>{"use strict";xk()});var HE=f(()=>{"use strict"});var Ek=f(()=>{"use strict";HE()});var wk=f(()=>{"use strict";Ek();HE()});var zE=f(()=>{"use strict"});var Dk=f(()=>{"use strict";zE()});var Sk=f(()=>{"use strict";Dk();zE()});var $E=f(()=>{"use strict"});var Ik=f(()=>{"use strict";$E()});var Ak=f(()=>{"use strict";Ik();$E()});var Tk,GE=f(()=>{"use strict";_();Dt();Tk=(()=>{let t=class t{constructor(i){this.translate=i,this.languagesLocalizationKey="LANGUAGES",this.translationCache=new Map,this.localeSameRegions={nb:["no"],et:["ee"],sl:["si"],sv:["se"],uk:["ua"],en:["gb","us"]},this.translations={en:{mt:"Maltese"},lv:{mt:"Maltie\u0161u"},lt:{mt:"Maltie\u010Di\u0173"},et:{mt:"Malta"}},this.translate.onLangChange.subscribe(()=>{this.translationCache.clear(),this.lastUiLanguage=this.translate.currentLang}),this.lastUiLanguage=this.translate.currentLang}transform(i,r=!1){if(!i)return"";this.lastUiLanguage!==this.translate.currentLang&&(this.translationCache.clear(),this.lastUiLanguage=this.translate.currentLang);let o=`${i}:${r}`;if(this.translationCache.has(o))return this.translationCache.get(o);let s=this.getLanguageFromLanguageCode(i),l=this.isLanguageCodeSameAsRegion(i)?s:i,c=this.getTranslation(l,r);return this.translationCache.set(o,c),c}getTranslation(i,r){let s=this.translate.instant(this.languagesLocalizationKey)[i.toUpperCase().replace("-","_")]??this.getLanguageTranslationFromLanguageCode(this.translate.currentLang,i);return r&&(s=s.split("(")[0].trim()),s}getLanguageTranslationFromLanguageCode(i,r){let o=new Intl.DisplayNames([i],{type:"language"}),s=new Intl.DisplayNames([i],{type:"region"}),a,l=this.getLanguageFromLanguageCode(r),c=this.getRegionFromLanguageCode(r);try{let d=o.of(l),h=s.of(c);a=`${d} (${h})`}catch{try{a=o.of(r)}catch{return a=this.translations[i]?.[l]??r,a}}return this.capitalizeFirstLetter(a)}isLanguageCodeSameAsRegion(i){let[r,o,s]=i.split("-");return(r===o?.toLowerCase()||this.localeSameRegions[r]?.includes(o?.toLowerCase()))&&!s}getRegionFromLanguageCode(i){let[r,o,s]=i.split("-");return(s?`${o}-${s}`:`${o}`).toUpperCase()}getLanguageFromLanguageCode(i){return i.split("-")[0].toLowerCase()}capitalizeFirstLetter(i){return i.charAt(0).toUpperCase()+i.slice(1)}};t.\u0275fac=function(r){return new(r||t)(T(rr,16))},t.\u0275pipe=ss({name:"languageTranslate",type:t,pure:!1});let n=t;return n})()});var Mk=f(()=>{"use strict";GE()});var Rk=f(()=>{"use strict";Mk();GE()});var Ok=f(()=>{"use strict"});var Nk=f(()=>{"use strict"});var Fk=f(()=>{"use strict"});var kk=f(()=>{"use strict"});var Lk=f(()=>{"use strict";Ok();Nk();Fk();kk()});var WE=f(()=>{"use strict";Lk()});var Pk=f(()=>{"use strict";WE()});var jk=f(()=>{"use strict";Pk();WE()});var qE=f(()=>{"use strict"});var Vk=f(()=>{"use strict";qE()});var Bk=f(()=>{"use strict";Vk();qE()});var Uk=f(()=>{"use strict";bo()});var Hk=f(()=>{"use strict";Uk()});var KE=f(()=>{"use strict";bo()});var zk=f(()=>{"use strict";KE()});var $k=f(()=>{"use strict";zk();KE()});var Gk=f(()=>{"use strict"});var Wk=f(()=>{"use strict";Gk()});var qk=f(()=>{"use strict";QE()});var Kk=f(()=>{"use strict";Wk();qk()});var Yk=f(()=>{"use strict";bo()});var Qk=f(()=>{"use strict";Yk()});var Zk=f(()=>{"use strict";bo()});var Xk=f(()=>{"use strict";Zk()});var Jk=f(()=>{"use strict";wk();Sk();Ak();Rk();jk();Bk();Hk();$k();Kk();UE();Qk();Xk()});var YE,eL=f(()=>{"use strict";Jk();_();Dt();YE=(()=>{let t=class t{constructor(i){this.translateService=i}getLanguageCodeTranslation(i,r=!1){return new Tk(this.translateService).transform(i,r)}removeRegionFromLanguageCode(i){return i.split("-")[0]}};t.\u0275fac=function(r){return new(r||t)(S(rr))},t.\u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})()});var QE=f(()=>{"use strict";eL()});var ZE=f(()=>{"use strict"});var tL=f(()=>{"use strict";ZE()});var nL=f(()=>{"use strict"});var iL=f(()=>{"use strict";nL();ZE()});var rL=f(()=>{"use strict";tL();iL()});var XE=f(()=>{"use strict";NN();LN();qF();Ck();QE();rL()});var xo,JE=f(()=>{"use strict";XE();xo=class{static addPlausible(t){let i=new FN().window;if(!i||!t)return;let r="https://plausible.io/js/plausible.js",o=document.createElement("script");o.src=r,o.setAttribute("data-domain",t),document.head.append(o),i.plausible=i.plausible||((...s)=>{(i.plausible.q=i.plausible.q||[]).push(s)})}static customEvent(t,e){let i=window;i?.plausible&&i.plausible(t,{props:e})}}});var ew=f(()=>{"use strict";JE()});var oL=f(()=>{"use strict";ew()});var sL=f(()=>{"use strict"});var aL=f(()=>{"use strict";sL()});var lL=f(()=>{"use strict";JE();ew();oL();aL()});var Hm,cL=f(()=>{"use strict";Hm=(function(n){return n.GENERAL="General",n.PROFESSIONAL="Professional",n.ACADEMIC="Academic",n})(Hm||{})});var Sl,dL=f(()=>{"use strict";_();Sl=new x("LLM_CONFIGURATION_TOKEN")});var uL=f(()=>{"use strict"});var Il=f(()=>{"use strict";dL();uL();bm()});var fL,hL=f(()=>{"use strict";_();Ns();we();PE();Il();_();Ns();fL=(()=>{let t=class t{constructor(i){this.quotaService=i,this.llmConfiguration=u(Sl),this.trialRequestCount=15,this.LLMQuotaLocalStorageKey="LLM_QUOTA"}getRemainingQuota(i){return this.llmConfiguration.useLocalQuota?N(this.setQuotaLocalStorageUsage(i)):this.quotaService.getQuotaUsage().pipe(V(r=>{let o=r.usage.find(s=>s.quotaType===Ye.LLM_REQUESTS||s.quotaType===Ye.LEGACY_LLM_REQUESTS);return o?o.quotaRemaining:this.setQuotaLocalStorageUsage(i)}),an(()=>N(this.setQuotaLocalStorageUsage(i))))}getExceededLimitMessage(i){return{type:Vs.WARNING,body:"ERRORS.MAX_CHAR_LENGTH",localizationParams:{maxCharLength:this.llmConfiguration.maxCharLength,totalSymbols:i}}}getReachedQuotaMessage(){return{type:Vs.ERROR,body:"LLM.ERRORS.QUOTA_LIMIT_REACHED",localizationParams:{subscriptionUrl:this.llmConfiguration.subscriptionUrl}}}getDefaultErrorMessage(){return{type:Vs.ERROR,body:"LLM.ERRORS.DEFAULT",localizationParams:{supportEmail:this.llmConfiguration.supportEmail}}}getRequestTimeoutMessage(i){return{type:Vs.ERROR,body:`LLM.ERRORS.${i}_REQUEST_TIMEOUT`,localizationParams:{supportEmail:this.llmConfiguration.supportEmail}}}setQuotaLocalStorageUsage(i){let r=localStorage.getItem(this.LLMQuotaLocalStorageKey),o=new Date,s={remainingQuota:this.trialRequestCount,lastUsedAt:o};if(r){s=JSON.parse(r);let l=new Date(s.lastUsedAt);(l.getDate()!==o.getDate()||l.getMonth()!==o.getMonth()||l.getFullYear()!==o.getFullYear())&&(s.remainingQuota=this.trialRequestCount),i&&(s.remainingQuota-=1)}return s.lastUsedAt=o,localStorage.setItem(this.LLMQuotaLocalStorageKey,JSON.stringify(s)),s.remainingQuota}};t.\u0275fac=function(r){return new(r||t)(S(DN))},t.\u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})()});var tw,pL,mL,nw=f(()=>{"use strict";_();_();tw=class{_document;_textarea;constructor(t,e){this._document=e;let i=this._textarea=this._document.createElement("textarea"),r=i.style;r.position="fixed",r.top=r.opacity="0",r.left="-999em",i.setAttribute("aria-hidden","true"),i.value=t,i.readOnly=!0,(this._document.fullscreenElement||this._document.body).appendChild(i)}copy(){let t=this._textarea,e=!1;try{if(t){let i=this._document.activeElement;t.select(),t.setSelectionRange(0,t.value.length),e=this._document.execCommand("copy"),i&&i.focus()}}catch{}return e}destroy(){let t=this._textarea;t&&(t.remove(),this._textarea=void 0)}},pL=(()=>{class n{_document=u(U);constructor(){}copy(e){let i=this.beginCopy(e),r=i.copy();return i.destroy(),r}beginCopy(e){return new tw(e,this._document)}static \u0275fac=function(i){return new(i||n)};static \u0275prov=v({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})(),mL=(()=>{class n{static \u0275fac=function(i){return new(i||n)};static \u0275mod=L({type:n});static \u0275inj=F({})}return n})()});var f4,gL,iw=f(()=>{"use strict";_();to();we();_();nw();En();dr();to();co();ll();Dt();f4=["textarea"],gL=(()=>{let t=class t{constructor(i){this.clipboard=i,this.textEditEvent=new z,this.dislikeEvent=new z,this.copyEvent=new z,this.destroy=new M}ngOnInit(){this.textareaControl=new ld(this.text)}ngAfterViewInit(){aa(this.textarea.nativeElement,"keyup").pipe(Fe(i=>{i.ctrlKey&&i.key==="c"&&this.copyEvent.emit()}),Vi(300),Ee(this.destroy)).subscribe(()=>{this.textEditEvent.emit(this.textareaControl.value)})}ngOnChanges(i){i&&i.disabled&&(this.disabled?this.textareaControl?.disable():this.textareaControl?.enable()),i&&i.text&&(this.textareaControl=new ld(this.text))}dislike(){this.dislikeEvent.emit()}copy(){this.clipboard.copy(this.textareaControl.value),this.copyEvent.emit()}ngOnDestroy(){this.destroy.next(null),this.destroy.complete()}};t.\u0275fac=function(r){return new(r||t)(T(pL))},t.\u0275cmp=$({type:t,selectors:[["lib-llm-textarea"]],viewQuery:function(r,o){if(r&1&&Be(f4,5),r&2){let s;be(s=xe())&&(o.textarea=s.first)}},inputs:{text:"text",disabled:"disabled",actionButtonsDisabled:"actionButtonsDisabled"},outputs:{textEditEvent:"textEditEvent",dislikeEvent:"dislikeEvent",copyEvent:"copyEvent"},standalone:!1,features:[je],decls:18,vars:13,consts:[["textarea",""],[1,"llm-wrapper",3,"ngClass.gt-lg"],[1,"llm-textarea-wrapper"],[1,"llm-textarea",3,"formControl"],[1,"llm-textarea-actions"],[1,"material-icons-outlined","llm-eu-data-tooltip",3,"matTooltip"],["mat-icon-button","",3,"click","matTooltip","disabled"],[1,"material-icons-outlined","copy"],["mat-icon-button","",3,"click","disabled","matTooltip"],[1,"material-icons-outlined","dislike"]],template:function(r,o){if(r&1){let s=Re();I(0,"div",1)(1,"div",2)(2,"textarea",3,0),se(4," "),R(),I(5,"div",4)(6,"mat-icon",5),ae(7,"translate"),se(8," gpp_maybe "),R(),I(9,"div")(10,"button",6),ae(11,"translate"),te("click",function(){return ve(s),_e(o.dislike())}),I(12,"mat-icon",7),se(13," thumb_down "),R()(),I(14,"button",8),ae(15,"translate"),te("click",function(){return ve(s),_e(o.copy())}),I(16,"mat-icon",9),se(17," content_copy "),R()()()()()()}r&2&&(A("ngClass.gt-lg","desktop"),C(2),A("formControl",o.textareaControl),C(4),A("matTooltip",pe(7,7,"LLM.EU_DATA_TOOLTIP")),C(4),A("matTooltip",pe(11,9,"TOOLTIPS.DISLIKE"))("disabled",o.actionButtonsDisabled||!o.textareaControl.value),C(4),A("disabled",o.actionButtonsDisabled||!o.textareaControl.value)("matTooltip",pe(15,11,"TOOLTIPS.COPY")))},dependencies:[vs,Ri,Wa,qa,Sx,fr,al,wt],styles:[".llm-wrapper[_ngcontent-%COMP%]{position:relative;border:1px solid var(--base-65);border-radius:8px;overflow-y:auto}.llm-textarea-wrapper[_ngcontent-%COMP%]{position:relative}.llm-textarea[_ngcontent-%COMP%]{min-width:100%;min-height:310px;padding:8px 16px;resize:none;background:none;border-radius:8px;margin-bottom:46px}.desktop[_ngcontent-%COMP%] .llm-textarea[_ngcontent-%COMP%]{min-height:490px}.llm-textarea-actions[_ngcontent-%COMP%]{position:absolute;display:flex;justify-content:space-between;align-items:center;width:100%;bottom:4px}.llm-eu-data-tooltip[_ngcontent-%COMP%]{margin-left:16px}"]});let n=t;return n})()});function m4(n,t){if(n&1){let e=Re();I(0,"lib-tld-notification-message",15),te("closeClicked",function(){let r=ve(e).$implicit,o=W();return _e(o.closeMessage(r))}),R()}if(n&2){let e=t.$implicit;A("message",e)}}function g4(n,t){if(n&1&&(I(0,"mat-option",18),se(1),ae(2,"uppercase"),ae(3,"translate"),R()),n&2){let e=t.$implicit;A("value",e),C(),Je(" ",pe(3,4,"LLM.USE_CASE."+pe(2,2,e))," ")}}function y4(n,t){if(n&1){let e=Re();I(0,"mat-form-field",16)(1,"mat-label"),se(2),ae(3,"translate"),R(),I(4,"mat-select",17),cs("ngModelChange",function(r){ve(e);let o=W();return Oa(o.selectedUseCase,r)||(o.selectedUseCase=r),_e(r)}),fb(5,g4,4,6,"mat-option",18,ub),R()()}if(n&2){let e=W();C(2),ht(pe(3,3,"LLM.USE_CASES_LABEL")),C(2),A("disabled",e.isLoading),ls("ngModel",e.selectedUseCase),C(),hb(e.useCases)}}function v4(n,t){if(n&1&&(ce(0,"div",19),ae(1,"translate")),n&2){let e=W();A("innerHTML",ds(1,1,e.localizationKey+"LIMIT",vb(4,p4,e.quotaLeft,e.subscriptionUrl)),Ci)}}function _4(n,t){if(n&1){let e=Re();I(0,"button",20),te("click",function(){ve(e);let r=W();return _e(r.cancel())}),se(1),ae(2,"translate"),R()}if(n&2){let e=W();C(),Je(" ",pe(2,1,e.localizationKey+"CANCEL")," ")}}function b4(n,t){if(n&1&&(I(0,"button",21),se(1),ae(2,"translate"),R()),n&2){let e=W();A("mat-dialog-close",null),C(),Je(" ",pe(2,2,e.localizationKey+"CLOSE")," ")}}function x4(n,t){if(n&1&&(I(0,"span"),se(1),ae(2,"translate"),R()),n&2){let e=W();C(),Je(" ",pe(2,1,e.isSummarized?"LLM.SUMMARY_MODAL.REGENERATE":"LLM.SUMMARY_MODAL.ACTION")," ")}}function C4(n,t){if(n&1&&(se(0),ae(1,"translate")),n&2){let e=W();Je(" ",pe(1,1,e.localizationKey+"ACTION")," ")}}function E4(n,t){n&1&&ce(0,"mat-spinner",22),n&2&&A("diameter",20)}var p4,yL,rw=f(()=>{"use strict";go();Ns();we();qC();lL();bm();cL();_();Ns();hL();Le();En();go();to();hm();Ld();Um();Wp();iw();Dt();p4=(n,t)=>({limit:n,subscriptionUrl:t});yL=(()=>{let t=class t{get isDisabled(){return this.isLoading||!this.initialText||this.quotaLeft<1}constructor(i,r,o){this.llmService=i,this.llmHelperService=r,this.data=o,this.selectedWritingStyle=Hm.GENERAL,this.editedText="",this.manuallyEditedText="",this.savedRephrasings=[],this.llmActions=tn,this.writingStyles=Object.values(Hm),this.useCases=[],this.messages=[],this.showUseCase=!1}ngOnInit(){this.setInitialText(),this.llmActionType===tn.REPHRASE?(this.useCases=this.data.rephraseUseCases??Object.values(GC),this.selectedUseCase=this.useCases[0]):this.llmActionType===tn.SUMMARY&&(this.useCases=this.data.summaryUseCases??Object.values(Cm),this.selectedUseCase=Cm.General),this.showUseCase=this.llmActionType===tn.REPHRASE&&this.data.showUseCaseRephrase||this.llmActionType===tn.SUMMARY&&this.data.showUseCaseSummary}closeMessage(i){let r=this.messages?.findIndex(o=>JSON.stringify(o)===JSON.stringify(i));(r||r===0)&&this.messages.splice(r,1)}checkRephrasedTextSaves(i){i.value!==this.selectedWritingStyle&&(this.previousWritingStyle=this.selectedWritingStyle,this.selectedWritingStyle=i.value);let r=this.savedRephrasings.find(s=>s.style===this.selectedWritingStyle),o=this.savedRephrasings.find(s=>s.style===this.previousWritingStyle);o?o.text=this.editedText!==""?this.editedText:this.initialText:this.savedRephrasings.push({style:this.previousWritingStyle,text:this.editedText!==""?this.editedText:this.initialText}),this.editedText=r?.text??this.initialText,this.manuallyEditedText="",this.checkTextLimit()}getEditedText(){this.isLoading=!0,this.llmActionType===tn.REPHRASE?this.writingStylePlausibleEvent():this.summaryPlausibleEvent(),this.subscription=this.getRequest()}cancel(){this.subscription.unsubscribe()}textEditEvent(i){this.manuallyEditedText=i,this.initialText=i,this.editedText="",this.checkTextLimit()}copyPlausibleEvent(){xo.customEvent(this.llmActionType.toLowerCase(),{action:"copy"})}dislikePlausibleEvent(){xo.customEvent(this.llmActionType.toLowerCase(),{action:"dislike"})}setInitialText(){this.data.text.subscribe(i=>{this.initialText=i,this.llmActionType=this.data.action,this.localizationKey=`LLM.${this.llmActionType}_MODAL.`,this.subscriptionUrl=this.llmHelperService.llmConfiguration.subscriptionUrl,this.maxCharLength=this.llmHelperService.llmConfiguration.maxCharLength,this.refreshQuota()})}checkTextLimit(){let i=this.maxCharLength,r=[this.initialText,this.manuallyEditedText,this.editedText],o=this.editedText&&!this.manuallyEditedText?this.editedText:r.reduce((s,a)=>s.length>a.length?s:a);if(o.length>i){this.exceededLimitMessage&&this.closeMessage(this.exceededLimitMessage),this.exceededLimitMessage=this.llmHelperService.getExceededLimitMessage(o.length),this.messages.push(this.exceededLimitMessage);return}this.closeMessage(this.exceededLimitMessage)}writingStylePlausibleEvent(){xo.customEvent(this.llmActionType.toLowerCase(),{writingStyle:this.selectedWritingStyle})}summaryPlausibleEvent(){xo.customEvent(this.llmActionType.toLowerCase(),{action:"summary"})}refreshQuota(i){this.llmHelperService.getRemainingQuota(i).subscribe(r=>{this.quotaLeft=r,this.setQuotaMessage()})}setQuotaMessage(){this.quotaLeft<=this.llmHelperService.trialRequestCount&&(this.remainingQuotaMessageVisible=!0),this.quotaLeft<1&&(this.reachedQuotaMessage=this.llmHelperService.getReachedQuotaMessage(),this.messages.push(this.reachedQuotaMessage))}getRequest(){let i=this.manuallyEditedText!==""?this.manuallyEditedText:this.initialText;return i.length>this.maxCharLength&&(i=i.substring(0,this.maxCharLength)),(this.llmActionType===tn.REPHRASE?this.llmService.rephrase({text:i,language:this.data.language,style:this.selectedWritingStyle,useCase:this.selectedUseCase}):this.llmService.summarize({text:i,language:this.data.language,useCase:this.selectedUseCase})).pipe(ln(()=>this.isLoading=!1)).subscribe(this.getRequestCallback())}getRequestCallback(){return{next:i=>{this.llmActionType===this.llmActions.SUMMARY&&(this.isSummarized=!0),this.editedText=i,this.manuallyEditedText="",this.defaultErrorMessage=this.llmHelperService.getDefaultErrorMessage(),this.closeMessage(this.defaultErrorMessage),this.closeMessage(this.requestTimeoutMessage),this.isEdited=!0,this.refreshQuota(!0),this.checkTextLimit()},error:i=>{if(i.status===WC.TIMEOUT){this.requestTimeoutMessage=this.llmHelperService.getRequestTimeoutMessage(this.llmActionType),this.messages.push(this.requestTimeoutMessage);return}this.messages.push(this.defaultErrorMessage)}}}};t.\u0275fac=function(r){return new(r||t)(T(wN),T(fL),T(ul))},t.\u0275cmp=$({type:t,selectors:[["lib-llm-textarea-with-actions"]],standalone:!1,decls:20,vars:22,consts:[["closeButton",""],["rephraseAction",""],["mat-dialog-title",""],["mat-dialog-content",""],[3,"innerHTML"],[3,"message","closeClicked",4,"ngFor","ngForOf"],["color","accent","class","w-full llm-writing-style-select","appearance","outline",4,"ngIf"],[3,"textEditEvent","copyEvent","dislikeEvent","text","disabled","actionButtonsDisabled"],["mat-dialog-actions","",1,"llm-actions-wrapper"],["class","quota-left-message",3,"innerHTML",4,"ngIf"],[1,"llm-actions"],["mat-button","","color","accent",3,"click",4,"ngIf","ngIfElse"],["mat-flat-button","","color","accent",3,"click","disabled"],[4,"ngIf","ngIfElse"],["color","primary-accent-darker",3,"diameter",4,"ngIf"],[3,"closeClicked","message"],["color","accent","appearance","outline",1,"w-full","llm-writing-style-select"],[3,"ngModelChange","disabled","ngModel"],[3,"value"],[1,"quota-left-message",3,"innerHTML"],["mat-button","","color","accent",3,"click"],["mat-button","","color","accent",3,"mat-dialog-close"],["color","primary-accent-darker",3,"diameter"]],template:function(r,o){if(r&1){let s=Re();I(0,"h1",2),se(1),ae(2,"translate"),R(),I(3,"div",3),ce(4,"p",4),ae(5,"translate"),Te(6,m4,1,1,"lib-tld-notification-message",5)(7,y4,7,5,"mat-form-field",6),I(8,"lib-llm-textarea",7),te("textEditEvent",function(l){return ve(s),_e(o.textEditEvent(l))})("copyEvent",function(){return ve(s),_e(o.copyPlausibleEvent())})("dislikeEvent",function(){return ve(s),_e(o.dislikePlausibleEvent())}),R()(),I(9,"div",8),Te(10,v4,2,7,"div",9),I(11,"div",10),Te(12,_4,3,3,"button",11)(13,b4,3,4,"ng-template",null,0,Qr),I(15,"button",12),te("click",function(){return ve(s),_e(o.getEditedText())}),Te(16,x4,3,3,"span",13)(17,C4,2,3,"ng-template",null,1,Qr)(19,E4,1,1,"mat-spinner",14),R()()()}if(r&2){let s=Xt(14),a=Xt(18);C(),ht(pe(2,18,o.localizationKey+"TITLE")),C(3),A("innerHTML",pe(5,20,o.localizationKey+"DESCRIPTION"),Ci),C(2),A("ngForOf",o.messages),C(),A("ngIf",o.showUseCase),C(),ne("rephrase",o.llmActionType===o.llmActions.REPHRASE),A("text",o.editedText!==""?o.editedText:o.initialText)("disabled",o.isLoading||!o.quotaLeft)("actionButtonsDisabled",!o.isEdited),C(2),A("ngIf",o.remainingQuotaMessageVisible),C(),ne("w-full",!o.remainingQuotaMessageVisible),C(),A("ngIf",o.isLoading)("ngIfElse",s),C(3),A("disabled",o.isDisabled),C(),A("ngIf",o.llmActionType===o.llmActions.SUMMARY)("ngIfElse",a),C(3),A("ngIf",o.isLoading)}},dependencies:[Fa,Xi,Mi,$d,Gd,qd,Wd,qa,cd,Ms,Ts,Fd,hr,PF,Gp,gL,Hb,wt],styles:[".info-icon[_ngcontent-%COMP%]{font-size:1rem;margin-left:5px}[_nghost-%COMP%] .message-body{margin:0 2.25rem 0 0!important;font-size:.875rem}[_nghost-%COMP%] .notification-message-container{margin:0 0 16px;padding:.9em 1em!important;align-items:center!important}[_nghost-%COMP%] .text-container{margin-right:0!important}[_nghost-%COMP%] tld-close-button{top:1px!important} .multiline-tooltip{white-space:pre;min-width:fit-content} .multiline-tooltip .mdc-tooltip__surface{max-width:none!important}[_nghost-%COMP%] .llm-textarea{min-height:240px!important}[_nghost-%COMP%] .rephrase .llm-textarea{min-height:100px!important}[_nghost-%COMP%] .desktop .llm-textarea{min-height:460px!important}[_nghost-%COMP%] .rephrase .desktop .llm-textarea{min-height:330px!important}.llm-writing-style-select[_ngcontent-%COMP%]{margin-top:1.25rem}.llm-writing-style[_ngcontent-%COMP%]{display:flex;align-items:center;margin-bottom:.25rem}.llm-actions-wrapper[_ngcontent-%COMP%]{display:flex;justify-content:space-between;margin:0 1rem .5rem}.llm-actions[_ngcontent-%COMP%]{display:flex;justify-content:end}.w-full[_ngcontent-%COMP%]{width:100%}[_nghost-%COMP%] .mdc-button__label{display:flex!important;align-items:center!important}mat-spinner[_ngcontent-%COMP%]{margin-left:.5rem}.quota-left-message[_ngcontent-%COMP%]{margin-bottom:12px}"]});let n=t;return n})()});var w4,D4,vL=f(()=>{"use strict";w4=`<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
29
29
  <path d="M4 5H18.6286V6.82857H4V5ZM4 10.4857H18.6286V8.65714H4V10.4857ZM4 14.1429H10.4V12.3143H4V14.1429ZM4 17.8H10.4V15.9714H4V17.8Z" fill="currentColor"/>
30
30
  <path d="M17.4005 13.3093C17.0801 12.5922 16.0622 12.5922 15.7418 13.3093L15.1052 14.7341L13.6804 15.3707C12.9633 15.6911 12.9633 16.709 13.6804 17.0294L15.1052 17.666L15.7418 19.0908C16.0622 19.8079 17.0801 19.8079 17.4005 19.0908L18.0371 17.666L19.4619 17.0294C20.179 16.709 20.179 15.6911 19.4619 15.3707L18.0371 14.7341L17.4005 13.3093Z" fill="currentColor"/>
31
31
  <path d="M13.5612 12.0546C13.4438 11.7917 13.0705 11.7917 12.953 12.0546L12.7196 12.577L12.1972 12.8105C11.9343 12.9279 11.9343 13.3012 12.1972 13.4187L12.7196 13.6521L12.953 14.1745C13.0705 14.4374 13.4438 14.4374 13.5612 14.1745L13.7947 13.6521L14.3171 13.4187C14.58 13.3012 14.58 12.9279 14.3171 12.8105L13.7947 12.577L13.5612 12.0546Z" fill="currentColor"/>