Frontend
- Upgrade Angular 19 -> 22 (TypeScript 6, new control flow), drop unused
packages (bootstrap, jquery, popper, ng-bootstrap, webpack)
- Move the UI to Angular Material: toolbar with user menu, tutorials list,
add/edit forms, admin users table with role editing dialog, profile,
home page with published tutorials, registration form, login dialog
- Guard routes: login required for add/edit/profile, admin role for /admin
- Remove the /login, Moderator and User pages, event bus, auth interceptor
and other dead code
Backend
- Add PUT /api/users/{id}/roles (admin only) that keeps at least one admin
and does not let an admin drop their own admin role
- Tighten security: read tutorials publicly, change them only when logged
in, users/roles API for admins only; hide password hashes in JSON
- Remove unused Settings and Test endpoints, DTO mappers, commented code
- Flyway V2 aligns the schema with the entities (bigint ids, tutorials PK,
identity ids); Hibernate now runs with ddl-auto: validate
Docker
- Three-stage Dockerfile (Node build, Gradle build, JRE runtime) with
layer caching, non-root user and healthcheck; add .dockerignore
- docker-compose waits for a healthy Postgres, always rebuilds the image,
no longer mounts the Docker socket
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
4790 lines
634 KiB
JavaScript
4790 lines
634 KiB
JavaScript
import{$ as An,$a as Jt,$b as am,A as Ni,Aa as Dt,Ab as Ye,Ac as dm,B as Qn,Ba as Rt,Bb as H,Bc as xt,C as Ii,Ca as ol,Cb as C,Cc as mm,D as Gt,Da as I,Db as k,Dc as um,E as Rd,Ea as R,Eb as em,Ec as j,F as nl,Fa as ei,Fb as Oa,Fc as Li,G as Ai,Ga as jd,Gb as Tn,Gc as bl,H as Nn,Ha as Ud,Hb as On,Hc as hm,I as il,Ia as sl,Ib as mt,Ic as to,J as al,Ja as Gr,Jb as h,Jc as vl,K as Td,Ka as ni,Kb as u,L as rl,La as Oi,Lb as dt,M as Hr,Ma as Hd,Mb as qt,N as Ft,Na as $d,Nb as te,O as Mt,Oa as Gd,Ob as sn,P as kt,Pa as Wd,Pb as Nt,Q as Wt,Qa as qd,Qb as ee,R as W,Ra as Kd,Rb as B,S as In,Sa as Yd,Sb as nm,T as se,Ta as Xd,Tb as w,U as $,Ua as Fi,Ub as _t,V as q,Va as Zd,Vb as V,W as Od,Wa as Aa,Wb as ne,X as v,Xa as Ra,Xb as Kt,Y as xn,Ya as Pt,Yb as P,Z as T,Za as p,Zb as L,_ as c,_a as Te,_b as im,a as g,aa as Fd,ab as pt,ac as hl,b as ct,ba as zt,bb as Tt,bc as yt,ca as le,cb as Ot,cc as z,d as wt,da as he,db as Ta,dc as Fe,e as Et,ea as at,eb as U,ec as f,f as Js,fa as rt,fb as Rn,fc as Lt,g as oe,ga as $r,gb as Oe,gc as It,h as E,ha as K,hb as Pi,hc as Zr,i as xe,ia as F,ib as Wr,ic as jt,j as tl,ja as on,jb as Qd,jc as Ut,k as we,ka as Pd,kb as qr,kc as Ht,l as Zt,la as Q,lb as S,lc as ft,m as A,ma as O,mb as Y,mc as Qr,n as Vr,na as Jn,nb as x,nc as rm,o as zr,oa as Na,ob as ll,oc as pl,p as Ad,pa as X,pb as cl,pc as om,q as st,qa as Ia,qb as Jd,qc as pe,r as Da,ra as Ld,rb as ot,rc as et,s as an,sa as Ri,sb as Ke,sc as fl,t as Ea,ta as Ti,tb as Kr,tc as Jr,u as jr,ua as ti,ub as dl,uc as sm,v as rn,va as Bd,vb as tm,vc as gl,w as Ur,wa as qe,wb as Yr,wc as ii,x as Qt,xa as Re,xb as Xr,xc as lm,y as vt,ya as Vd,yb as ml,yc as Fa,z as el,za as zd,zb as ul,zc as cm}from"./chunk-I6QTZVP2.js";var pm=null;function Me(){return pm}function _l(n){pm??=n}var Pa=class{},wn=(()=>{class n{historyGo(t){throw new Error("")}static \u0275fac=function(e){return new(e||n)};static \u0275prov=$({token:n,factory:()=>c(fm),providedIn:"platform"})}return n})(),yl=new v(""),fm=(()=>{class n extends wn{_location;_history;_doc=c(F);constructor(){super(),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return Me().getBaseHref(this._doc)}onPopState(t){let e=Me().getGlobalEventTarget(this._doc,"window");return e.addEventListener("popstate",t,!1),()=>e.removeEventListener("popstate",t)}onHashChange(t){let e=Me().getGlobalEventTarget(this._doc,"window");return e.addEventListener("hashchange",t,!1),()=>e.removeEventListener("hashchange",t)}get href(){return this._location.href}get protocol(){return this._location.protocol}get hostname(){return this._location.hostname}get port(){return this._location.port}get pathname(){return this._location.pathname}get search(){return this._location.search}get hash(){return this._location.hash}set pathname(t){this._location.pathname=t}pushState(t,e,a){this._history.pushState(t,e,a)}replaceState(t,e,a){this._history.replaceState(t,e,a)}forward(){this._history.forward()}back(){this._history.back()}historyGo(t=0){this._history.go(t)}getState(){return this._history.state}static \u0275fac=function(e){return new(e||n)};static \u0275prov=$({token:n,factory:()=>new n,providedIn:"platform"})}return n})();function eo(n,i){return n?i?n.endsWith("/")?i.startsWith("/")?n+i.slice(1):n+i:i.startsWith("/")?n+i:`${n}/${i}`:n:i}function gm(n){let i=n.search(/#|\?|$/);return n[i-1]==="/"?n.slice(0,i-1)+n.slice(i):n}function Xe(n){return n&&n[0]!=="?"?`?${n}`:n}var Ze=(()=>{class n{historyGo(t){throw new Error("")}static \u0275fac=function(e){return new(e||n)};static \u0275prov=$({token:n,factory:()=>c(io),providedIn:"root"})}return n})(),no=new v(""),io=(()=>{class n extends Ze{_platformLocation;_baseHref;_removeListenerFns=[];constructor(t,e){super(),this._platformLocation=t,this._baseHref=e??this._platformLocation.getBaseHrefFromDOM()??c(F).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(t){this._removeListenerFns.push(this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t))}getBaseHref(){return this._baseHref}prepareExternalUrl(t){return eo(this._baseHref,t)}path(t=!1){let e=this._platformLocation.pathname+Xe(this._platformLocation.search),a=this._platformLocation.hash;return a&&t?`${e}${a}`:e}pushState(t,e,a,r){let o=this.prepareExternalUrl(a+Xe(r));this._platformLocation.pushState(t,e,o)}replaceState(t,e,a,r){let o=this.prepareExternalUrl(a+Xe(r));this._platformLocation.replaceState(t,e,o)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(t=0){this._platformLocation.historyGo?.(t)}static \u0275fac=function(e){return new(e||n)(T(wn),T(no,8))};static \u0275prov=$({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();var ln=(()=>{class n{_subject=new E;_basePath;_locationStrategy;_urlChangeListeners=[];_urlChangeSubscription=null;constructor(t){this._locationStrategy=t;let e=this._locationStrategy.getBaseHref();this._basePath=jf(gm(bm(e))),this._locationStrategy.onPopState(a=>{let r={url:this.path(!0),pop:!0,state:a.state,type:a.type};a.hasUAVisualTransition&&(r.hasUAVisualTransition=!0),this._subject.next(r)})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(t=!1){return this.normalize(this._locationStrategy.path(t))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(t,e=""){return this.path()==this.normalize(t+Xe(e))}normalize(t){return n.stripTrailingSlash(zf(this._basePath,bm(t)))}prepareExternalUrl(t){return t&&t[0]!=="/"&&(t="/"+t),this._locationStrategy.prepareExternalUrl(t)}go(t,e="",a=null){this._locationStrategy.pushState(a,"",t,e),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+Xe(e)),a)}replaceState(t,e="",a=null){this._locationStrategy.replaceState(a,"",t,e),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+Xe(e)),a)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(t=0){this._locationStrategy.historyGo?.(t)}onUrlChange(t){return this._urlChangeListeners.push(t),this._urlChangeSubscription??=this.subscribe(e=>{this._notifyUrlChangeListeners(e.url,e.state)}),()=>{let e=this._urlChangeListeners.indexOf(t);this._urlChangeListeners.splice(e,1),this._urlChangeListeners.length===0&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(t="",e){this._urlChangeListeners.forEach(a=>a(t,e))}subscribe(t,e,a){return this._subject.subscribe({next:t,error:e??void 0,complete:a??void 0})}static normalizeQueryParams=Xe;static joinWithSlash=eo;static stripTrailingSlash=gm;static \u0275fac=function(e){return new(e||n)(T(Ze))};static \u0275prov=$({token:n,factory:()=>Vf(),providedIn:"root"})}return n})();function Vf(){return new ln(T(Ze))}function zf(n,i){if(!n||!i.startsWith(n))return i;let t=i.substring(n.length);return t===""||["/",";","?","#"].includes(t[0])?t:i}function bm(n){return n.replace(/\/index\.html$/,"")}function jf(n){if(new RegExp("^(https?:)?//").test(n)){let[,t]=n.split(/\/\/[^\/]+/);return t}return n}var xl=(()=>{class n extends Ze{_platformLocation;_baseHref="";_removeListenerFns=[];constructor(t,e){super(),this._platformLocation=t,e!=null&&(this._baseHref=e)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(t){this._removeListenerFns.push(this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t))}getBaseHref(){return this._baseHref}path(t=!1){let e=this._platformLocation.hash??"#";return e.length>0?e.substring(1):e}prepareExternalUrl(t){let e=eo(this._baseHref,t);return e.length>0?"#"+e:e}pushState(t,e,a,r){let o=this.prepareExternalUrl(a+Xe(r))||this._platformLocation.pathname;this._platformLocation.pushState(t,e,o)}replaceState(t,e,a,r){let o=this.prepareExternalUrl(a+Xe(r))||this._platformLocation.pathname;this._platformLocation.replaceState(t,e,o)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(t=0){this._platformLocation.historyGo?.(t)}static \u0275fac=function(e){return new(e||n)(T(wn),T(no,8))};static \u0275prov=$({token:n,factory:n.\u0275fac})}return n})();var wl=(()=>{class n{_viewContainerRef;_viewRef=null;ngTemplateOutletContext=null;ngTemplateOutlet=null;ngTemplateOutletInjector=null;injector=c(K);constructor(t){this._viewContainerRef=t}ngOnChanges(t){if(this._shouldRecreateView(t)){let e=this._viewContainerRef;if(this._viewRef&&e.remove(e.indexOf(this._viewRef)),!this.ngTemplateOutlet){this._viewRef=null;return}let a=this._createContextForwardProxy();this._viewRef=e.createEmbeddedView(this.ngTemplateOutlet,a,{injector:this._getInjector()})}}_getInjector(){return this.ngTemplateOutletInjector==="outlet"?this.injector:this.ngTemplateOutletInjector??void 0}_shouldRecreateView(t){return!!t.ngTemplateOutlet||!!t.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:(t,e,a)=>this.ngTemplateOutletContext?Reflect.set(this.ngTemplateOutletContext,e,a):!1,get:(t,e,a)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,e,a)}})}static \u0275fac=function(e){return new(e||n)(U(Oe))};static \u0275dir=x({type:n,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},features:[Dt]})}return n})();var Sl=(()=>{class n{static \u0275fac=function(e){return new(e||n)};static \u0275mod=Y({type:n});static \u0275inj=q({})}return n})();function La(n,i){i=encodeURIComponent(i);for(let t of n.split(";")){let e=t.indexOf("="),[a,r]=e==-1?[t,""]:[t.slice(0,e),t.slice(e+1)];if(a.trim()!==i)continue;let o=r;try{o=decodeURIComponent(r)}catch(s){}return o.length>1&&o[0]==='"'&&o[o.length-1]==='"'&&(o=o.slice(1,-1)),o}return null}var Hf=(()=>{class n{build(){return new XMLHttpRequest}static \u0275fac=function(e){return new(e||n)};static \u0275prov=I({token:n,factory:n.\u0275fac})}return n})(),Cl=(()=>{class n{static \u0275fac=function(e){return new(e||n)};static \u0275prov=$({token:n,factory:function(e){let a=null;return e?a=new(e||n):a=T(Hf),a},providedIn:"root"})}return n})();var Ml="browser";function _m(n){return n===Ml}var Dl=(()=>{class n{static \u0275prov=$({token:n,providedIn:"root",factory:()=>new kl(c(F),window)})}return n})(),kl=class{document;window;offset=()=>[0,0];constructor(i,t){this.document=i,this.window=t}setOffset(i){Array.isArray(i)?this.offset=()=>i:this.offset=i}getScrollPosition(){return[this.window.scrollX,this.window.scrollY]}scrollToPosition(i,t){this.window.scrollTo(ct(g({},t),{left:i[0],top:i[1]}))}scrollToAnchor(i,t){let e=Wf(this.document,i);e&&(this.scrollToElement(e,t),e.focus({preventScroll:!0}))}setHistoryScrollRestoration(i){try{this.window.history.scrollRestoration=i}catch(t){console.warn(In(2400,!1))}}scrollToElement(i,t){let e=i.getBoundingClientRect(),a=e.left+this.window.pageXOffset,r=e.top+this.window.pageYOffset,o=this.offset();this.window.scrollTo(ct(g({},t),{left:a-o[0],top:r-o[1]}))}};function Wf(n,i){let t=n.getElementById(i)||n.getElementsByName(i)[0];if(t)return t;if(typeof n.createTreeWalker=="function"&&n.body&&typeof n.body.attachShadow=="function"){let e=n.createTreeWalker(n.body,NodeFilter.SHOW_ELEMENT),a=e.currentNode;for(;a;){let r=a.shadowRoot;if(r){let o=r.getElementById(i)||r.querySelector(`[name="${CSS.escape(i)}"]`);if(o)return o}a=e.nextNode()}}return null}var Ba=class{_doc;constructor(i){this._doc=i}manager},ao=(()=>{class n extends Ba{constructor(t){super(t)}supports(t){return!0}addEventListener(t,e,a,r){return t.addEventListener(e,a,r),()=>this.removeEventListener(t,e,a,r)}removeEventListener(t,e,a,r){return t.removeEventListener(e,a,r)}static \u0275fac=function(e){return new(e||n)(T(F))};static \u0275prov=$({token:n,factory:n.\u0275fac})}return n})(),so=new v(""),Al=(()=>{class n{_zone;_plugins;_eventNameToPlugin=new Map;constructor(t,e){this._zone=e,t.forEach(o=>{o.manager=this});let a=t.filter(o=>!(o instanceof ao));this._plugins=a.slice().reverse();let r=t.find(o=>o instanceof ao);r&&this._plugins.push(r)}addEventListener(t,e,a,r){return this._findPluginFor(e).addEventListener(t,e,a,r)}getZone(){return this._zone}_findPluginFor(t){let e=this._eventNameToPlugin.get(t);if(e)return e;if(e=this._plugins.find(r=>r.supports(t)),!e)throw new W(-5101,!1);return this._eventNameToPlugin.set(t,e),e}static \u0275fac=function(e){return new(e||n)(T(so),T(O))};static \u0275prov=$({token:n,factory:n.\u0275fac})}return n})(),El="ng-app-id";function ym(n){for(let i of n)i.remove()}function xm(n,i){let t=i.createElement("style");return t.textContent=n,t}function Kf(n,i,t,e){let a=n.head?.querySelectorAll(`style[${El}="${i}"],link[${El}="${i}"]`);if(!a||a.length===0)return!1;for(let r of a)r.removeAttribute(El),r instanceof HTMLLinkElement?e.set(r.href.slice(r.href.lastIndexOf("/")+1),{usage:0,elements:[r]}):r.textContent&&t.set(r.textContent,{usage:0,elements:[r]});return!0}function Il(n,i){let t=i.createElement("link");return t.setAttribute("rel","stylesheet"),t.setAttribute("href",n),t}var Rl=(()=>{class n{doc;appId;nonce;inline=new Map;external=new Map;hosts=new Set;constructor(t,e,a,r={}){this.doc=t,this.appId=e,this.nonce=a,Kf(t,e,this.inline,this.external)&&this.hosts.add(t.head)}addStyles(t,e){for(let a of t)this.addUsage(a,this.inline,xm);e?.forEach(a=>this.addUsage(a,this.external,Il))}removeStyles(t,e){for(let a of t)this.removeUsage(a,this.inline);e?.forEach(a=>this.removeUsage(a,this.external))}addUsage(t,e,a){let r=e.get(t);r?r.usage++:e.set(t,{usage:1,elements:[...this.hosts].map(o=>this.addElement(o,a(t,this.doc)))})}removeUsage(t,e){let a=e.get(t);a&&(a.usage--,a.usage<=0&&(ym(a.elements),e.delete(t)))}ngOnDestroy(){for(let[,{elements:t}]of[...this.inline,...this.external])ym(t);this.hosts.clear()}addHost(t){if(!this.hosts.has(t)){this.hosts.add(t);for(let[e,{elements:a}]of this.inline)a.push(this.addElement(t,xm(e,this.doc)));for(let[e,{elements:a}]of this.external)a.push(this.addElement(t,Il(e,this.doc)))}}removeHost(t){this.hosts.delete(t);for(let e of[...this.inline.values(),...this.external.values()]){let a=[];for(let r of e.elements)r.parentNode===t?r.remove():a.push(r);e.elements=a}}addElement(t,e){return this.nonce&&e.setAttribute("nonce",this.nonce),t.appendChild(e)}static \u0275fac=function(e){return new(e||n)(T(F),T(Ia),T(ti,8),T(Ri))};static \u0275prov=$({token:n,factory:n.\u0275fac})}return n})(),Nl={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/Math/MathML"},Tl=/%COMP%/g;var Sm="%COMP%",Yf=`_nghost-${Sm}`,Xf=`_ngcontent-${Sm}`,Zf=!0,Qf=new v("",{factory:()=>Zf}),Jf=new v("");function tg(n){return Xf.replace(Tl,n)}function eg(n){return Yf.replace(Tl,n)}function Cm(n,i){return i.map(t=>t.replace(Tl,n))}var za=(()=>{class n{eventManager;sharedStylesHost;appId;removeStylesOnCompDestroy;doc;ngZone;nonce;tracingService;rendererByCompId=new Map;defaultRenderer;cssVarNamespace;constructor(t,e,a,r,o,s,l=null,d=null,m=null){this.eventManager=t,this.sharedStylesHost=e,this.appId=a,this.removeStylesOnCompDestroy=r,this.doc=o,this.ngZone=s,this.nonce=l,this.tracingService=d,this.cssVarNamespace=m??"",this.defaultRenderer=new Bi(t,o,s,this.tracingService,this.cssVarNamespace)}createRenderer(t,e){if(!t||!e)return this.defaultRenderer;let a=this.getOrCreateRenderer(t,e);return a instanceof oo?a.applyToHost(t):a instanceof Va&&a.applyStyles(),a}getOrCreateRenderer(t,e){let a=this.rendererByCompId,r=a.get(e.id);if(!r){let o=this.doc,s=this.ngZone,l=this.eventManager,d=this.sharedStylesHost,m=this.removeStylesOnCompDestroy,_=this.tracingService;switch(e.encapsulation){case Gr.Emulated:r=new oo(l,d,e,this.appId,m,o,s,_,this.cssVarNamespace);break;case Gr.ShadowDom:return new ro(l,t,e,o,s,this.nonce,_,this.cssVarNamespace,d);case Gr.ExperimentalIsolatedShadowDom:return new ro(l,t,e,o,s,this.nonce,_,this.cssVarNamespace);default:r=new Va(l,d,e,m,o,s,_,this.cssVarNamespace);break}a.set(e.id,r)}return r}ngOnDestroy(){this.rendererByCompId.clear()}componentReplaced(t){this.rendererByCompId.delete(t)}static \u0275fac=function(e){return new(e||n)(T(Al),T(Ta),T(Ia),T(Qf),T(F),T(O),T(ti),T(Aa,8),T(Jf,8))};static \u0275prov=$({token:n,factory:n.\u0275fac})}return n})(),Bi=class{eventManager;doc;ngZone;tracingService;cssVarNamespace;data=Object.create(null);throwOnSyntheticProps=!0;constructor(i,t,e,a,r=""){this.eventManager=i,this.doc=t,this.ngZone=e,this.tracingService=a,this.cssVarNamespace=r}destroy(){}destroyNode=null;createElement(i,t){return t?this.doc.createElementNS(Nl[t]||t,i):this.doc.createElement(i)}createComment(i){return this.doc.createComment(i)}createText(i){return this.doc.createTextNode(i)}appendChild(i,t){(wm(i)?i.content:i).appendChild(t)}insertBefore(i,t,e){if(i){let a=wm(i)?i.content:i;if(e!=null&&e.parentNode!==a)throw new W(-5106,!1);a.insertBefore(t,e)}}removeChild(i,t){t.remove()}selectRootElement(i,t){let e=typeof i=="string"?this.doc.querySelector(i):i;if(!e)throw new W(-5104,!1);return t||(e.textContent=""),e}parentNode(i){return i.parentNode}nextSibling(i){return i.nextSibling}setAttribute(i,t,e,a){if(a){t=a+":"+t;let r=Nl[a];r?i.setAttributeNS(r,t,e):i.setAttribute(t,e)}else i.setAttribute(t,e)}removeAttribute(i,t,e){if(e){let a=Nl[e];a?i.removeAttributeNS(a,t):i.removeAttribute(`${e}:${t}`)}else i.removeAttribute(t)}addClass(i,t){i.classList.add(t)}removeClass(i,t){i.classList.remove(t)}setStyle(i,t,e,a){let r=t.startsWith("--");r&&(t=t.replace("%NS%",this.cssVarNamespace)),r||a&(Fi.DashCase|Fi.Important)?i.style.setProperty(t,e,a&Fi.Important?"important":""):i.style[t]=e}removeStyle(i,t,e){let a=t.startsWith("--");a&&(t=t.replace("%NS%",this.cssVarNamespace)),a||e&Fi.DashCase?i.style.removeProperty(t):i.style[t]=""}setProperty(i,t,e){i!=null&&(i[t]=e)}setValue(i,t){i.nodeValue=t}listen(i,t,e,a){if(typeof i=="string"&&(i=Me().getGlobalEventTarget(this.doc,i),!i))throw new W(-5102,!1);let r=this.decoratePreventDefault(e);return this.tracingService?.wrapEventListener&&(r=this.tracingService.wrapEventListener(i,t,r)),this.eventManager.addEventListener(i,t,r,a)}decoratePreventDefault(i){return t=>{if(t==="__ngUnwrap__")return i;i(t)===!1&&t.preventDefault()}}};function km(n){n instanceof Bi&&(n.throwOnSyntheticProps=!1)}function wm(n){return n.tagName==="TEMPLATE"&&n.content!==void 0}var ro=class extends Bi{hostEl;sharedStylesHost;shadowRoot;constructor(i,t,e,a,r,o,s,l,d){super(i,a,r,s,l),this.hostEl=t,this.sharedStylesHost=d,this.shadowRoot=t.attachShadow({mode:"open"}),this.sharedStylesHost&&this.sharedStylesHost.addHost(this.shadowRoot);let m=e.styles;m=Cm(e.id,m).map(b=>b.replace(/%NS%/g,l));for(let b of m){let M=document.createElement("style");o&&M.setAttribute("nonce",o),M.textContent=b,this.shadowRoot.appendChild(M)}let _=e.getExternalStyles?.();if(_)for(let b of _){let M=Il(b,a);o&&M.setAttribute("nonce",o),this.shadowRoot.appendChild(M)}}nodeOrShadowRoot(i){return i===this.hostEl?this.shadowRoot:i}appendChild(i,t){return super.appendChild(this.nodeOrShadowRoot(i),t)}insertBefore(i,t,e){return super.insertBefore(this.nodeOrShadowRoot(i),t,e)}removeChild(i,t){return super.removeChild(null,t)}parentNode(i){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(i)))}destroy(){this.sharedStylesHost&&this.sharedStylesHost.removeHost(this.shadowRoot)}},Va=class extends Bi{sharedStylesHost;removeStylesOnCompDestroy;styles;styleUrls;constructor(i,t,e,a,r,o,s,l,d){super(i,r,o,s,l),this.sharedStylesHost=t,this.removeStylesOnCompDestroy=a;let m=e.styles,_=d?Cm(d,m):m;this.styles=_.map(b=>b.replace(/%NS%/g,l)),this.styleUrls=e.getExternalStyles?.(d)}applyStyles(){this.sharedStylesHost.addStyles(this.styles,this.styleUrls)}destroy(){this.removeStylesOnCompDestroy&&Zd.size===0&&this.sharedStylesHost.removeStyles(this.styles,this.styleUrls)}},oo=class extends Va{contentAttr;hostAttr;constructor(i,t,e,a,r,o,s,l,d){let m=a+"-"+e.id;super(i,t,e,r,o,s,l,d,m),this.contentAttr=tg(m),this.hostAttr=eg(m)}applyToHost(i){this.applyStyles(),this.setAttribute(i,this.hostAttr,"")}createElement(i,t){let e=super.createElement(i,t);return super.setAttribute(e,this.contentAttr,""),e}};var lo=class n extends Pa{supportsDOMEvents=!0;static makeCurrent(){_l(new n)}onAndCancel(i,t,e,a){return i.addEventListener(t,e,a),()=>{i.removeEventListener(t,e,a)}}dispatchEvent(i,t){i.dispatchEvent(t)}remove(i){i.remove()}createElement(i,t){return t=t||this.getDefaultDocument(),t.createElement(i)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(i){return i.nodeType===Node.ELEMENT_NODE}isShadowRoot(i){return i instanceof DocumentFragment}getGlobalEventTarget(i,t){return t==="window"?window:t==="document"?i:t==="body"?i.body:null}getBaseHref(i){let t=ng();return t==null?null:ig(t)}resetBaseElement(){ja=null}getUserAgent(){return window.navigator.userAgent}getCookie(i){return La(document.cookie,i)}},ja=null;function ng(){return ja=ja||document.head.querySelector("base"),ja?ja.getAttribute("href"):null}function ig(n){return new URL(n,document.baseURI).pathname}var co=class{addToWindow(i){xn.getAngularTestability=(e,a=!0)=>{let r=i.findTestabilityInTree(e,a);if(r==null)throw new W(5103,!1);return r},xn.getAllAngularTestabilities=()=>i.getAllTestabilities(),xn.getAllAngularRootElements=()=>i.getAllRootElements();let t=e=>{let a=xn.getAllAngularTestabilities(),r=a.length,o=function(){r--,r==0&&e()};a.forEach(s=>{s.whenStable(o)})};xn.frameworkStabilizers||(xn.frameworkStabilizers=[]),xn.frameworkStabilizers.push(t)}findTestabilityInTree(i,t,e){if(t==null)return null;let a=i.getTestability(t);return a??(e?Me().isShadowRoot(t)?this.findTestabilityInTree(i,t.host,!0):this.findTestabilityInTree(i,t.parentElement,!0):null)}},Mm=["alt","control","meta","shift"],ag={"\b":"Backspace"," ":"Tab","\x7F":"Delete","\x1B":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},rg={alt:n=>n.altKey,control:n=>n.ctrlKey,meta:n=>n.metaKey,shift:n=>n.shiftKey},Dm=(()=>{class n extends Ba{constructor(t){super(t)}supports(t){return n.parseEventName(t)!=null}addEventListener(t,e,a,r){let o=n.parseEventName(e),s=n.eventCallback(o.fullKey,a,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Me().onAndCancel(t,o.domEventName,s,r))}static parseEventName(t){let e=t.toLowerCase().split("."),a=e.shift();if(e.length===0||!(a==="keydown"||a==="keyup"))return null;let r=n._normalizeKey(e.pop()),o="",s=e.indexOf("code");if(s>-1&&(e.splice(s,1),o="code."),Mm.forEach(d=>{let m=e.indexOf(d);m>-1&&(e.splice(m,1),o+=d+".")}),o+=r,e.length!=0||r.length===0)return null;let l={};return l.domEventName=a,l.fullKey=o,l}static matchEventFullKeyCode(t,e){let a=ag[t.key]||t.key,r="";return e.indexOf("code.")>-1&&(a=t.code,r="code."),a==null||!a?!1:(a=a.toLowerCase(),a===" "?a="space":a==="."&&(a="dot"),Mm.forEach(o=>{if(o!==a){let s=rg[o];s(t)&&(r+=o+".")}}),r+=a,r===e)}static eventCallback(t,e,a){return r=>{n.matchEventFullKeyCode(r,t)&&a.runGuarded(()=>e(r))}}static _normalizeKey(t){return t==="esc"?"escape":t}static \u0275fac=function(e){return new(e||n)(T(F))};static \u0275prov=$({token:n,factory:n.\u0275fac})}return n})();function og(){lo.makeCurrent()}function sg(){return new Jn}function lg(){return jd(document),document}var cg=[{provide:Ri,useValue:Ml},{provide:Ld,useValue:og,multi:!0},{provide:F,useFactory:lg}],Ol=um(hm,"browser",cg);var dg=[{provide:Yr,useClass:co},{provide:tm,useClass:Xr,deps:[O,ml,Yr]},{provide:Xr,useClass:Xr,deps:[O,ml,Yr]}],mg=[{provide:Fd,useValue:"root"},{provide:Jn,useFactory:sg},{provide:so,useClass:ao,multi:!0},{provide:so,useClass:Dm,multi:!0},za,{provide:Ta,useClass:Rl},{provide:Rl,useExisting:Ta},Al,{provide:Jt,useExisting:za},[]],Fl=(()=>{class n{constructor(){}static \u0275fac=function(e){return new(e||n)};static \u0275mod=Y({type:n});static \u0275inj=q({providers:[...mg,...dg],imports:[Sl,dm]})}return n})();var Pe=class n{headers;normalizedNames=new Map;lazyInit;lazyUpdate=null;constructor(i){i?typeof i=="string"?this.lazyInit=()=>{this.headers=new Map,i.split(`
|
|
`).forEach(t=>{let e=t.indexOf(":");if(e>0){let a=t.slice(0,e),r=t.slice(e+1).trim();this.addHeaderEntry(a,r)}})}:typeof Headers<"u"&&i instanceof Headers?(this.headers=new Map,i.forEach((t,e)=>{this.addHeaderEntry(e,t)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(i).forEach(([t,e])=>{this.setHeaderEntries(t,e)})}:this.headers=new Map}has(i){return this.init(),this.headers.has(i.toLowerCase())}get(i){this.init();let t=this.headers.get(i.toLowerCase());return t&&t.length>0?t[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(i){return this.init(),this.headers.get(i.toLowerCase())||null}append(i,t){return this.clone({name:i,value:t,op:"a"})}set(i,t){return this.clone({name:i,value:t,op:"s"})}delete(i,t){return this.clone({name:i,value:t,op:"d"})}maybeSetNormalizedName(i,t){this.normalizedNames.has(t)||this.normalizedNames.set(t,i)}init(){this.lazyInit&&(this.lazyInit instanceof n?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(i=>this.applyUpdate(i)),this.lazyUpdate=null))}copyFrom(i){i.init();for(let[t,e]of i.headers.entries())this.headers.set(t,e),this.normalizedNames.set(t,i.normalizedNames.get(t))}clone(i){let t=new n;return t.lazyInit=this.lazyInit&&this.lazyInit instanceof n?this.lazyInit:this,t.lazyUpdate=(this.lazyUpdate||[]).concat([i]),t}applyUpdate(i){let t=i.name.toLowerCase();switch(i.op){case"a":case"s":let e=i.value;if(typeof e=="string"&&(e=[e]),e.length===0)return;this.maybeSetNormalizedName(i.name,t);let a=i.op==="a"?(this.headers.get(t)||[]).slice():[];a.push(...e),this.headers.set(t,a);break;case"d":let r=i.value;if(r===void 0)this.headers.delete(t),this.normalizedNames.delete(t);else{let o=Array.isArray(r)?r:[r],s=this.headers.get(t);if(!s)return;s=s.filter(l=>o.indexOf(l)===-1),s.length===0?(this.headers.delete(t),this.normalizedNames.delete(t)):this.headers.set(t,s)}break}}addHeaderEntry(i,t){let e=i.toLowerCase();this.maybeSetNormalizedName(i,e),this.headers.has(e)?this.headers.get(e).push(t):this.headers.set(e,[t])}setHeaderEntries(i,t){let e=(Array.isArray(t)?t:[t]).map(r=>r.toString()),a=i.toLowerCase();this.headers.set(a,e),this.maybeSetNormalizedName(i,a)}forEach(i){this.init(),Array.from(this.normalizedNames.keys()).forEach(t=>i(this.normalizedNames.get(t),this.headers.get(t)))}};var uo=class{map=new Map;set(i,t){return this.map.set(i,t),this}get(i){return this.map.has(i)||this.map.set(i,i.defaultValue()),this.map.get(i)}delete(i){return this.map.delete(i),this}has(i){return this.map.has(i)}keys(){return this.map.keys()}},ho=class{encodeKey(i){return Em(i)}encodeValue(i){return Em(i)}decodeKey(i){return decodeURIComponent(i)}decodeValue(i){return decodeURIComponent(i)}};function ug(n,i){let t=new Map;return n.length>0&&n.replace(/^\?/,"").split("&").forEach(a=>{let r=a.indexOf("="),[o,s]=r==-1?[i.decodeKey(a),""]:[i.decodeKey(a.slice(0,r)),i.decodeValue(a.slice(r+1))],l=t.get(o)||[];l.push(s),t.set(o,l)}),t}var hg=/[&+#]/g;function Em(n){return encodeURI(n).replace(hg,encodeURIComponent)}function mo(n){return`${n}`}var Sn=class n{map;encoder;updates=null;cloneFrom=null;constructor(i={}){if(this.encoder=i.encoder||new ho,i.fromString){if(i.fromObject)throw new W(2805,!1);this.map=ug(i.fromString,this.encoder)}else i.fromObject?(this.map=new Map,Object.keys(i.fromObject).forEach(t=>{let e=i.fromObject[t],a=Array.isArray(e)?e.map(mo):[mo(e)];this.map.set(t,a)})):this.map=null}has(i){return this.init(),this.map.has(i)}get(i){this.init();let t=this.map.get(i);return t?t[0]:null}getAll(i){return this.init(),this.map.get(i)||null}keys(){return this.init(),Array.from(this.map.keys())}append(i,t){return this.clone({param:i,value:t,op:"a"})}appendAll(i){let t=[];return Object.keys(i).forEach(e=>{let a=i[e];Array.isArray(a)?a.forEach(r=>{t.push({param:e,value:r,op:"a"})}):t.push({param:e,value:a,op:"a"})}),this.clone(t)}set(i,t){return this.clone({param:i,value:t,op:"s"})}delete(i,t){return this.clone({param:i,value:t,op:"d"})}toString(){return this.init(),this.keys().map(i=>{let t=this.encoder.encodeKey(i);return this.map.get(i).map(e=>t+"="+this.encoder.encodeValue(e)).join("&")}).filter(i=>i!=="").join("&")}clone(i){let t=new n({encoder:this.encoder});return t.cloneFrom=this.cloneFrom||this,t.updates=(this.updates||[]).concat(i),t}init(){if(this.map===null&&(this.map=new Map),this.cloneFrom!==null){this.cloneFrom.init();for(let[i,t]of this.cloneFrom.map.entries())this.map.set(i,t);this.updates.forEach(i=>{switch(i.op){case"a":case"s":let t=i.op==="a"?(this.map.get(i.param)||[]).slice():[];t.push(mo(i.value)),this.map.set(i.param,t);break;case"d":if(i.value!==void 0){let e=(this.map.get(i.param)||[]).slice(),a=e.indexOf(mo(i.value));a!==-1&&e.splice(a,1),e.length>0?this.map.set(i.param,e):this.map.delete(i.param)}else{this.map.delete(i.param);break}}}),this.cloneFrom=this.updates=null}}};function pg(n){switch(n){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function Nm(n){return typeof ArrayBuffer<"u"&&n instanceof ArrayBuffer}function Im(n){return typeof Blob<"u"&&n instanceof Blob}function Am(n){return typeof FormData<"u"&&n instanceof FormData}function fg(n){return typeof URLSearchParams<"u"&&n instanceof URLSearchParams}var Ua="Content-Type",po="Accept",Om="text/plain",Fm="application/json",Pm=`${Fm}, ${Om}, */*`,Vi=class n{url;body=null;headers;context;reportProgress=!1;reportUploadProgress=!1;reportDownloadProgress=!1;withCredentials=!1;credentials;keepalive=!1;cache;priority;mode;redirect;referrer;integrity;referrerPolicy;responseType="json";method;params;urlWithParams;transferCache;timeout;constructor(i,t,e,a){this.url=t,this.method=i.toUpperCase();let r;if(pg(this.method)||a?(this.body=e!==void 0?e:null,r=a):r=e,r){if(this.reportProgress=!!r.reportProgress,this.reportUploadProgress=!!r.reportUploadProgress,this.reportDownloadProgress=!!r.reportDownloadProgress,this.withCredentials=!!r.withCredentials,this.keepalive=!!r.keepalive,r.responseType&&(this.responseType=r.responseType),r.headers&&(this.headers=r.headers),r.context&&(this.context=r.context),r.params&&(this.params=r.params),r.priority&&(this.priority=r.priority),r.cache&&(this.cache=r.cache),r.credentials&&(this.credentials=r.credentials),typeof r.timeout=="number"){if(r.timeout<1||!Number.isInteger(r.timeout))throw new W(2822,"");this.timeout=r.timeout}r.mode&&(this.mode=r.mode),r.redirect&&(this.redirect=r.redirect),r.integrity&&(this.integrity=r.integrity),r.referrer!==void 0&&(this.referrer=r.referrer),r.referrerPolicy&&(this.referrerPolicy=r.referrerPolicy),this.transferCache=r.transferCache}if(this.headers??=new Pe,this.context??=new uo,!this.params)this.params=new Sn,this.urlWithParams=t;else{let o=this.params.toString();if(o.length===0)this.urlWithParams=t;else{let s=t,l="",d=t.indexOf("#");d!==-1&&(l=t.substring(d),s=t.substring(0,d));let m=s.indexOf("?"),_=m===-1?"?":m<s.length-1?"&":"";this.urlWithParams=s+_+o+l}}}serializeBody(){return this.body===null?null:typeof this.body=="string"||Nm(this.body)||Im(this.body)||Am(this.body)||fg(this.body)?this.body:this.body instanceof Sn?this.body.toString():typeof this.body=="object"||typeof this.body=="boolean"||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}detectContentTypeHeader(){return this.body===null||Am(this.body)?null:Im(this.body)?this.body.type||null:Nm(this.body)?null:typeof this.body=="string"?Om:this.body instanceof Sn?"application/x-www-form-urlencoded;charset=UTF-8":typeof this.body=="object"||typeof this.body=="number"||typeof this.body=="boolean"?Fm:null}clone(i={}){let t=i.method||this.method,e=i.url||this.url,a=i.responseType||this.responseType,r=i.keepalive??this.keepalive,o=i.priority||this.priority,s=i.cache||this.cache,l=i.mode||this.mode,d=i.redirect||this.redirect,m=i.credentials||this.credentials,_=i.referrer??this.referrer,b=i.integrity||this.integrity,M=i.referrerPolicy||this.referrerPolicy,D=i.transferCache??this.transferCache,Z=i.timeout??this.timeout,lt=i.body!==void 0?i.body:this.body,$t=i.withCredentials??this.withCredentials,nt=i.reportProgress??this.reportProgress,it=i.reportUploadProgress??this.reportUploadProgress,re=i.reportDownloadProgress??this.reportDownloadProgress,ke=i.headers||this.headers,At=i.params||this.params,We=i.context??this.context;return i.setHeaders!==void 0&&(ke=Object.keys(i.setHeaders).reduce((nn,Ae)=>nn.set(Ae,i.setHeaders[Ae]),ke)),i.setParams&&(At=Object.keys(i.setParams).reduce((nn,Ae)=>nn.set(Ae,i.setParams[Ae]),At)),new n(t,e,lt,{params:At,headers:ke,context:We,reportProgress:nt,reportUploadProgress:it,reportDownloadProgress:re,responseType:a,withCredentials:$t,transferCache:D,keepalive:r,cache:s,priority:o,timeout:Z,mode:l,redirect:d,credentials:m,referrer:_,integrity:b,referrerPolicy:M})}},dn=(function(n){return n[n.Sent=0]="Sent",n[n.UploadProgress=1]="UploadProgress",n[n.ResponseHeader=2]="ResponseHeader",n[n.DownloadProgress=3]="DownloadProgress",n[n.Response=4]="Response",n[n.User=5]="User",n})(dn||{}),zi=class{headers;status;statusText;url;ok;type;redirected;responseType;constructor(i,t=200,e="OK"){this.headers=i.headers||new Pe,this.status=i.status!==void 0?i.status:t,this.statusText=i.statusText||e,this.url=i.url||null,this.redirected=i.redirected,this.responseType=i.responseType,this.ok=this.status>=200&&this.status<300}},Ha=class n extends zi{constructor(i={}){super(i)}type=dn.ResponseHeader;clone(i={}){return new n({headers:i.headers||this.headers,status:i.status!==void 0?i.status:this.status,statusText:i.statusText||this.statusText,url:i.url||this.url||void 0})}},ji=class n extends zi{body;constructor(i={}){super(i),this.body=i.body!==void 0?i.body:null}type=dn.Response;clone(i={}){return new n({body:i.body!==void 0?i.body:this.body,headers:i.headers||this.headers,status:i.status!==void 0?i.status:this.status,statusText:i.statusText||this.statusText,url:i.url||this.url||void 0,redirected:i.redirected??this.redirected,responseType:i.responseType??this.responseType})}},cn=class extends zi{name="HttpErrorResponse";message;error;ok=!1;constructor(i){super(i,0,"Unknown Error"),this.status>=200&&this.status<300?this.message=`Http failure during parsing for ${i.url||"(unknown url)"}`:this.message=`Http failure response for ${i.url||"(unknown url)"}: ${i.status} ${i.statusText}`,this.error=i.error||null}},Lm=200,gg=204;var bg=/^\)\]\}',?\n/,gS=1024*1024,Bm=new v("",{factory:()=>null}),fo=(()=>{class n{fetchImpl=c(Ll,{optional:!0})?.fetch??((...t)=>globalThis.fetch(...t));ngZone=c(O);destroyRef=c(on);maxResponseSize=c(Bm);handle(t){return new oe(e=>{let a=new AbortController,r=!1,o={next:l=>{l.type===dn.Response&&(r=!0),e.next(l)},error:l=>{r=!0,e.error(l)},complete:()=>{r=!0,e.complete()}};this.doRequest(t,a.signal,o).then(Bl,l=>o.error(new cn({error:l})));let s;return t.timeout&&(s=this.ngZone.runOutsideAngular(()=>setTimeout(()=>{a.signal.aborted||a.abort(new DOMException("signal timed out","TimeoutError"))},t.timeout))),()=>{s!==void 0&&clearTimeout(s),!r&&!a.signal.aborted&&a.abort()}})}doRequest(t,e,a){return wt(this,null,function*(){let r=this.createRequestInit(t),o;try{let lt=this.ngZone.runOutsideAngular(()=>this.fetchImpl(t.urlWithParams,g({signal:e},r)));vg(lt),a.next({type:dn.Sent}),o=yield lt}catch(lt){a.error(new cn({error:lt,status:lt.status??0,statusText:lt.statusText,url:t.urlWithParams,headers:lt.headers}));return}let s=new Pe(o.headers),l=o.statusText,d=o.url||t.urlWithParams,m=o.status,_=null,b=t.reportProgress||t.reportDownloadProgress;if(b&&a.next(new Ha({headers:s,status:m,statusText:l,url:d})),o.body){let lt=o.headers.get(Ua)??"",$t=o.headers.get("content-length"),nt=$t!==null?Number($t):NaN;this.maxResponseSize!==null&&Number.isFinite(nt)&&nt>this.maxResponseSize&&(yield o.body.cancel(),Rm(this.maxResponseSize));let it=[],re=o.body.getReader(),ke=0,At,We,nn=typeof Zone<"u"&&Zone.current,Ae=!1;if(yield this.ngZone.runOutsideAngular(()=>wt(this,null,function*(){for(;;){if(this.destroyRef.destroyed){yield re.cancel(),Ae=!0;break}let{done:ht,value:y}=yield re.read();if(ht)break;if(it.push(y),ke+=y.length,this.maxResponseSize!==null&&ke>this.maxResponseSize&&(yield re.cancel(),Rm(this.maxResponseSize)),b){We=t.responseType==="text"?(We??"")+(At??=Tm(lt)).decode(y,{stream:!0}):void 0;let bt=()=>a.next({type:dn.DownloadProgress,total:Number.isFinite(nt)?nt:void 0,loaded:ke,partialText:We});nn?nn.run(bt):bt()}}})),Ae){a.complete();return}let J=this.concatChunks(it,ke);try{_=this.parseBody(t,J,lt,m)}catch(ht){a.error(new cn({error:ht,headers:new Pe(o.headers),status:o.status,statusText:o.statusText,url:o.url||t.urlWithParams}));return}}m===0&&(m=_?Lm:0);let M=m>=200&&m<300,D=o.redirected,Z=o.type;M?(a.next(new ji({body:_,headers:s,status:m,statusText:l,url:d,redirected:D,responseType:Z})),a.complete()):a.error(new cn({error:_,headers:s,status:m,statusText:l,url:d,redirected:D,responseType:Z}))})}parseBody(t,e,a,r){switch(t.responseType){case"json":let o=new TextDecoder().decode(e).replace(bg,"");if(o==="")return null;try{return JSON.parse(o)}catch(s){if(r<200||r>=300)return o;throw s}case"text":return Tm(a).decode(e);case"blob":return new Blob([e],{type:a});case"arraybuffer":return e.buffer}}createRequestInit(t){if(t.reportUploadProgress)throw new W(2824,!1);let e={},a;if(a=t.credentials,t.withCredentials&&(a="include"),t.headers.forEach((r,o)=>e[r]=o.join(",")),t.headers.has(po)||(e[po]=Pm),!t.headers.has(Ua)){let r=t.detectContentTypeHeader();r!==null&&(e[Ua]=r)}return{body:t.serializeBody(),method:t.method,headers:e,credentials:a,keepalive:t.keepalive,cache:t.cache,priority:t.priority,mode:t.mode,redirect:t.redirect,referrer:t.referrer,integrity:t.integrity,referrerPolicy:t.referrerPolicy}}concatChunks(t,e){let a=new Uint8Array(e),r=0;for(let o of t)a.set(o,r),r+=o.length;return a}static \u0275fac=function(e){return new(e||n)};static \u0275prov=I({token:n,factory:n.\u0275fac})}return n})(),Ll=class{};function Bl(){}function vg(n){n.then(Bl,Bl)}function Rm(n){throw new W(-2825,!1)}var _g=/charset=\s*["']?([^;"'\s]+)["']?/i;function Tm(n){let i=n.match(_g);if(i!==null)try{return new TextDecoder(i[1])}catch(t){}return new TextDecoder}var yg=new v("",{factory:()=>!0}),xg="XSRF-TOKEN",wg=new v("",{factory:()=>xg}),Sg="X-XSRF-TOKEN",Cg=new v("",{factory:()=>Sg}),kg=(()=>{class n{cookieName=c(wg);doc=c(F);lastCookieString="";lastToken=null;parseCount=0;getToken(){let t=this.doc.cookie||"";return t!==this.lastCookieString&&(this.parseCount++,this.lastToken=La(t,this.cookieName),this.lastCookieString=t),this.lastToken}static \u0275fac=function(e){return new(e||n)};static \u0275prov=I({token:n,factory:n.\u0275fac})}return n})(),Vm=(()=>{class n{static \u0275fac=function(e){return new(e||n)};static \u0275prov=$({token:n,factory:function(e){let a=null;return e?a=new(e||n):a=T(kg),a},providedIn:"root"})}return n})();function zm(n,i){if(!c(yg)||n.method==="GET"||n.method==="HEAD")return i(n);try{let a=c(wn).href,{origin:r}=new URL(a),{origin:o}=new URL(n.url,r);if(r!==o)return i(n)}catch(a){return i(n)}let t=c(Vm).getToken(),e=c(Cg);return t!=null&&!n.headers.has(e)&&(n=n.clone({headers:n.headers.set(e,t)})),i(n)}function Mg(n,i){return i(n)}function Dg(n,i,t){return(e,a)=>le(t,()=>i(e,r=>n(r,a)))}var jm=new v("",{factory:()=>[zm]}),Um=new v(""),Hm=new v("",{factory:()=>!0});var bo=(()=>{class n{static \u0275fac=function(e){return new(e||n)};static \u0275prov=$({token:n,factory:function(e){let a=null;return e?a=new(e||n):a=T(fo),a},providedIn:"root"})}return n})();var go=(()=>{class n{backend;injector;chain=null;pendingTasks=c(zd);contributeToStability=c(Hm);constructor(t,e){this.backend=t,this.injector=e}handle(t){if(this.chain===null){let a=this.injector.get(vo,null,{skipSelf:!0}),r=a!==null&&this.backend===a,o=this.injector.get(Um,[],r?{self:!0}:void 0),s=Array.from(new Set([...this.injector.get(jm),...o]));this.chain=s.reduceRight((l,d)=>Dg(l,d,this.injector),Mg)}let e=this.chain;if(this.contributeToStability){let a=this.pendingTasks.add();return et(()=>e(t,r=>this.backend.handle(r))).pipe(Ai(a))}else return et(()=>e(t,a=>this.backend.handle(a)))}static \u0275fac=function(e){return new(e||n)(T(bo),T(zt))};static \u0275prov=$({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})(),vo=(()=>{class n{static \u0275fac=function(e){return new(e||n)};static \u0275prov=$({token:n,factory:function(e){let a=null;return e?a=new(e||n):a=T(go),a},providedIn:"root"})}return n})();function Pl(n,i){return g({body:i},n)}var Le=(()=>{class n{handler;constructor(t){this.handler=t}request(t,e,a={}){let r;if(t instanceof Vi)r=t;else{let l;a.headers instanceof Pe?l=a.headers:l=new Pe(a.headers);let d;a.params&&(a.params instanceof Sn?d=a.params:d=new Sn({fromObject:a.params})),r=new Vi(t,e,a.body!==void 0?a.body:null,{headers:l,context:a.context,params:d,reportProgress:a.reportProgress,reportUploadProgress:a.reportUploadProgress,reportDownloadProgress:a.reportDownloadProgress,responseType:a.responseType||"json",withCredentials:a.withCredentials,transferCache:a.transferCache,keepalive:a.keepalive,priority:a.priority,cache:a.cache,mode:a.mode,redirect:a.redirect,credentials:a.credentials,referrer:a.referrer,referrerPolicy:a.referrerPolicy,integrity:a.integrity,timeout:a.timeout})}let o=A(r).pipe(Qn(l=>this.handler.handle(l)));if(t instanceof Vi||a.observe==="events")return o;let s=o.pipe(vt(l=>l instanceof ji));switch(a.observe||"body"){case"body":switch(r.responseType){case"arraybuffer":return s.pipe(st(l=>{if(l.body!==null&&!(l.body instanceof ArrayBuffer))throw new W(2806,!1);return l.body}));case"blob":return s.pipe(st(l=>{if(l.body!==null&&!(l.body instanceof Blob))throw new W(2807,!1);return l.body}));case"text":return s.pipe(st(l=>{if(l.body!==null&&typeof l.body!="string")throw new W(2808,!1);return l.body}));default:return s.pipe(st(l=>l.body))}case"response":return s;default:throw new W(2809,!1)}}delete(t,e={}){return this.request("DELETE",t,e)}get(t,e={}){return this.request("GET",t,e)}head(t,e={}){return this.request("HEAD",t,e)}jsonp(t,e){return this.request("JSONP",t,{params:new Sn().append(e,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(t,e={}){return this.request("OPTIONS",t,e)}patch(t,e,a={}){return this.request("PATCH",t,Pl(a,e))}post(t,e,a={}){return this.request("POST",t,Pl(a,e))}put(t,e,a={}){return this.request("PUT",t,Pl(a,e))}static \u0275fac=function(e){return new(e||n)(T(vo))};static \u0275prov=$({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();var Eg=/^\)\]\}',?\n/;var Vl=(()=>{class n{xhrFactory;tracingService=c(Aa,{optional:!0});constructor(t){this.xhrFactory=t}maybePropagateTrace(t){return this.tracingService?.propagate?this.tracingService.propagate(t):t}handle(t){if(t.method==="JSONP")throw new W(-2800,!1);let e=this.xhrFactory;return A(null).pipe(Mt(()=>new oe(r=>{let o=e.build();if(o.open(t.method,t.urlWithParams),t.withCredentials&&(o.withCredentials=!0),t.headers.forEach((nt,it)=>o.setRequestHeader(nt,it.join(","))),t.headers.has(po)||o.setRequestHeader(po,Pm),!t.headers.has(Ua)){let nt=t.detectContentTypeHeader();nt!==null&&o.setRequestHeader(Ua,nt)}if(t.timeout&&(o.timeout=t.timeout),t.responseType){let nt=t.responseType.toLowerCase();o.responseType=nt!=="json"?nt:"text"}let s=t.serializeBody(),l=null,d=()=>{if(l!==null)return l;let nt=o.statusText||"OK",it=new Pe(o.getAllResponseHeaders()),re=o.responseURL||t.url;return l=new Ha({headers:it,status:o.status,statusText:nt,url:re}),l},m=this.maybePropagateTrace(()=>{let{headers:nt,status:it,statusText:re,url:ke}=d(),At=null;it!==gg&&(At=typeof o.response>"u"?o.responseText:o.response),it===0&&(it=At?Lm:0);let We=it>=200&&it<300;if(t.responseType==="json"&&typeof At=="string"){let nn=At;At=At.replace(Eg,"");try{At=At!==""?JSON.parse(At):null}catch(Ae){At=nn,We&&(We=!1,At={error:Ae,text:At})}}We?(r.next(new ji({body:At,headers:nt,status:it,statusText:re,url:ke||void 0})),r.complete()):r.error(new cn({error:At,headers:nt,status:it,statusText:re,url:ke||void 0}))}),_=this.maybePropagateTrace(nt=>{let{url:it}=d(),re=new cn({error:nt,status:o.status||0,statusText:o.statusText||"Unknown Error",url:it||void 0});r.error(re)}),b=_;t.timeout&&(b=this.maybePropagateTrace(nt=>{let{url:it}=d(),re=new cn({error:new DOMException("Request timed out","TimeoutError"),status:o.status||0,statusText:o.statusText||"Request timeout",url:it||void 0});r.error(re)}));let M=!1,D=this.maybePropagateTrace(nt=>{M||(r.next(d()),M=!0);let it={type:dn.DownloadProgress,loaded:nt.loaded};nt.lengthComputable&&(it.total=nt.total),t.responseType==="text"&&o.responseText&&(it.partialText=o.responseText),r.next(it)}),Z=this.maybePropagateTrace(nt=>{let it={type:dn.UploadProgress,loaded:nt.loaded};nt.lengthComputable&&(it.total=nt.total),r.next(it)});o.addEventListener("load",m),o.addEventListener("error",_),o.addEventListener("timeout",b),o.addEventListener("abort",_);let lt=t.reportProgress||t.reportUploadProgress,$t=t.reportProgress||t.reportDownloadProgress;return $t&&o.addEventListener("progress",D),lt&&s!==null&&o.upload&&o.upload.addEventListener("progress",Z),o.send(s),r.next({type:dn.Sent}),()=>{o.removeEventListener("error",_),o.removeEventListener("abort",_),o.removeEventListener("load",m),o.removeEventListener("timeout",b),$t&&o.removeEventListener("progress",D),lt&&s!==null&&o.upload&&o.upload.removeEventListener("progress",Z),o.readyState!==o.DONE&&o.abort()}})))}static \u0275fac=function(e){return new(e||n)(T(Cl))};static \u0275prov=$({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})(),zl=(function(n){return n[n.Interceptors=0]="Interceptors",n[n.LegacyInterceptors=1]="LegacyInterceptors",n[n.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",n[n.NoXsrfProtection=3]="NoXsrfProtection",n[n.JsonpSupport=4]="JsonpSupport",n[n.RequestsMadeViaParent=5]="RequestsMadeViaParent",n[n.Fetch=6]="Fetch",n[n.Xhr=7]="Xhr",n})(zl||{});function Ng(n,i){return{\u0275kind:n,\u0275providers:i}}function jl(...n){let i=[Le,fo,go,{provide:vo,useExisting:go},{provide:bo,useFactory:()=>c(fo)},{provide:jm,useValue:zm,multi:!0}];for(let t of n)i.push(...t.\u0275providers);return An(i)}function Ul(){return Ng(zl.Xhr,[Vl,{provide:bo,useExisting:Vl}])}var $m=(()=>{class n{_doc;constructor(t){this._doc=t}getTitle(){return this._doc.title}setTitle(t){this._doc.title=t||""}static \u0275fac=function(e){return new(e||n)(T(F))};static \u0275prov=$({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();var Ga=(()=>{class n{static \u0275fac=function(e){return new(e||n)};static \u0275prov=$({token:n,factory:function(e){let a=null;return e?a=new(e||n):a=T(Ig),a},providedIn:"root"})}return n})(),Ig=(()=>{class n extends Ga{_doc=c(F);sanitize(t,e){if(e==null)return null;switch(t){case he.NONE:return e;case he.HTML:return Oi(e,"HTML")?ni(e):Yd(this._doc,String(e)).toString();case he.STYLE:return Oi(e,"Style")?ni(e):e;case he.SCRIPT:if(Oi(e,"Script"))return ni(e);throw new W(5200,!1);case he.URL:return Oi(e,"URL")?ni(e):Kd(String(e));case he.RESOURCE_URL:if(Oi(e,"ResourceURL"))return ni(e);throw new W(-5201,!1);default:throw new W(5202,!1)}}bypassSecurityTrustHtml(t){return Hd(t)}bypassSecurityTrustStyle(t){return $d(t)}bypassSecurityTrustScript(t){return Gd(t)}bypassSecurityTrustUrl(t){return Wd(t)}bypassSecurityTrustResourceUrl(t){return qd(t)}static \u0275fac=function(e){return new(e||n)};static \u0275prov=I({token:n,factory:n.\u0275fac})}return n})();var tt="primary",ar=Symbol("RouteTitle"),Yl=class{params;constructor(i){this.params=i||{}}has(i){return Object.hasOwn(this.params,i)}get(i){if(this.has(i)){let t=this.params[i];return Array.isArray(t)?t[0]:t}return null}getAll(i){if(this.has(i)){let t=this.params[i];return Array.isArray(t)?t:[t]}return[]}get keys(){return Object.keys(this.params)}};function ri(n){return new Yl(n)}function $l(n,i,t){for(let e=0;e<n.length;e++){let a=n[e],r=i[e];if(a[0]===":")t[a.substring(1)]=r;else if(a!==r.path)return!1}return!0}function Jm(n,i,t){let e=t.path.split("/"),a=e.indexOf("**");if(a===-1){if(e.length>n.length||t.pathMatch==="full"&&(i.hasChildren()||e.length<n.length))return null;let l={},d=n.slice(0,e.length);return $l(e,d,l)?{consumed:d,posParams:l}:null}if(a!==e.lastIndexOf("**"))return null;let r=e.slice(0,a),o=e.slice(a+1);if(r.length+o.length>n.length||t.pathMatch==="full"&&i.hasChildren()&&t.path!=="**")return null;let s={};return!$l(r,n.slice(0,r.length),s)||!$l(o,n.slice(n.length-o.length),s)?null:{consumed:n,posParams:s}}function Co(n){return new Promise((i,t)=>{n.pipe(Nn()).subscribe({next:e=>i(e),error:e=>t(e)})})}function Ag(n,i){if(n.length!==i.length)return!1;for(let t=0;t<n.length;++t)if(!un(n[t],i[t]))return!1;return!0}function un(n,i){let t=n?Xl(n):void 0,e=i?Xl(i):void 0;if(!t||!e||t.length!=e.length)return!1;let a;for(let r=0;r<t.length;r++)if(a=t[r],!tu(n[a],i[a]))return!1;return!0}function Xl(n){return[...Object.keys(n),...Object.getOwnPropertySymbols(n)]}function tu(n,i){if(Array.isArray(n)&&Array.isArray(i)){if(n.length!==i.length)return!1;let t=[...n].sort(),e=[...i].sort();return t.every((a,r)=>e[r]===a)}else return n===i}function Rg(n){return n.length>0?n[n.length-1]:null}function li(n){return zr(n)?n:Pi(n)?Zt(Promise.resolve(n)):A(n)}function eu(n){return zr(n)?Co(n):Promise.resolve(n)}var Tg={exact:iu,subset:au},nu={exact:Og,subset:Fg,ignored:()=>!0},dc={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},Wi={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};function mc(n,i,t){let e=n instanceof ge?n:i.parseUrl(n);return pe(()=>ko(i.lastSuccessfulNavigation()?.finalUrl??new ge,e,t))}function ko(n,i,t){let e=g(g({},Wi),t||{});return Tg[e.paths](n.root,i.root,e.matrixParams)&&nu[e.queryParams](n.queryParams,i.queryParams)&&!(e.fragment==="exact"&&n.fragment!==i.fragment)}function Og(n,i){return un(n,i)}function iu(n,i,t){if(!ai(n.segments,i.segments)||!xo(n.segments,i.segments,t)||n.numberOfChildren!==i.numberOfChildren)return!1;for(let e in i.children)if(!n.children[e]||!iu(n.children[e],i.children[e],t))return!1;return!0}function Fg(n,i){return Object.keys(i).length<=Object.keys(n).length&&Object.keys(i).every(t=>tu(n[t],i[t]))}function au(n,i,t){return ru(n,i,i.segments,t)}function ru(n,i,t,e){if(n.segments.length>t.length){let a=n.segments.slice(0,t.length);return!(!ai(a,t)||i.hasChildren()||!xo(a,t,e))}else if(n.segments.length===t.length){if(!ai(n.segments,t)||!xo(n.segments,t,e))return!1;for(let a in i.children)if(!n.children[a]||!au(n.children[a],i.children[a],e))return!1;return!0}else{let a=t.slice(0,n.segments.length),r=t.slice(n.segments.length);return!ai(n.segments,a)||!xo(n.segments,a,e)||!n.children[tt]?!1:ru(n.children[tt],i,r,e)}}function xo(n,i,t){return i.every((e,a)=>nu[t](n[a].parameters,e.parameters))}var ge=class{root;queryParams;fragment;_queryParamMap;constructor(i=new gt([],{}),t={},e=null){this.root=i,this.queryParams=t,this.fragment=e}get queryParamMap(){return this._queryParamMap??=ri(this.queryParams),this._queryParamMap}toString(){return Vg.serialize(this)}},gt=class{segments;children;parent=null;constructor(i,t){this.segments=i,this.children=t,Object.values(t).forEach(e=>e.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return wo(this)}},Fn=class{path;parameters;_parameterMap;constructor(i,t){this.path=i,this.parameters=t}get parameterMap(){return this._parameterMap??=ri(this.parameters),this._parameterMap}toString(){return su(this)}};function Pg(n,i){return ai(n,i)&&n.every((t,e)=>un(t.parameters,i[e].parameters))}function ai(n,i){return n.length!==i.length?!1:n.every((t,e)=>t.path===i[e].path)}function Lg(n,i){let t=[];return Object.entries(n.children).forEach(([e,a])=>{e===tt&&(t=t.concat(i(a,e)))}),Object.entries(n.children).forEach(([e,a])=>{e!==tt&&(t=t.concat(i(a,e)))}),t}var Vn=(()=>{class n{static \u0275fac=function(e){return new(e||n)};static \u0275prov=I({token:n,factory:()=>new Cn})}return n})(),Cn=class{parse(i){let t=new Ql(i);return new ge(t.parseRootSegment(),t.parseQueryParams(),t.parseFragment())}serialize(i){let t=`/${Wa(i.root,!0)}`;Bg(t)&&(t="/");let e=Ug(i.queryParams),a=typeof i.fragment=="string"?`#${zg(i.fragment)}`:"";return`${t}${e}${a}`}},Gm="http://fake";function Bg(n){try{let i=new URL(n,Gm);return i.origin!==Gm||i.pathname.startsWith("//")}catch(i){return!0}}var Vg=new Cn;function wo(n){return n.segments.map(i=>su(i)).join("/")}function Wa(n,i){if(!n.hasChildren())return wo(n);if(i){let t=n.children[tt]?Wa(n.children[tt],!1):"",e=[];return Object.entries(n.children).forEach(([a,r])=>{a!==tt&&e.push(`${a}:${Wa(r,!1)}`)}),e.length>0?`${t}(${e.join("//")})`:t}else{let t=Lg(n,(e,a)=>a===tt?[Wa(n.children[tt],!1)]:[`${a}:${Wa(e,!1)}`]);return Object.keys(n.children).length===1&&n.children[tt]!=null?`${wo(n)}/${t[0]}`:`${wo(n)}/(${t.join("//")})`}}function ou(n){return encodeURIComponent(n).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function _o(n){return ou(n).replace(/%3B/gi,";")}function zg(n){return encodeURI(n)}function Zl(n){return ou(n).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function So(n){return decodeURIComponent(n)}function Wm(n){return So(n.replace(/\+/g,"%20"))}function su(n){return`${Zl(n.path)}${jg(n.parameters)}`}function jg(n){return Object.entries(n).map(([i,t])=>`;${Zl(i)}=${Zl(t)}`).join("")}function Ug(n){let i=Object.entries(n).map(([t,e])=>Array.isArray(e)?e.map(a=>`${_o(t)}=${_o(a)}`).join("&"):`${_o(t)}=${_o(e)}`).filter(t=>t);return i.length?`?${i.join("&")}`:""}var Gl=1073741824;function Mo(n,i,t){Number(i)>=32&&!Object.hasOwn(n,Gl)&&(n[Gl]=t,delete n[Gl]),n[i]=t}var Hg=/^[^\/()?;#]+/;function Wl(n){let i=n.match(Hg);return i?i[0]:""}var $g=/^[^\/()?;=#]+/;function Gg(n){let i=n.match($g);return i?i[0]:""}var Wg=/^[^=?&#]+/;function qg(n){let i=n.match(Wg);return i?i[0]:""}var Kg=/^[^&#]+/;function Yg(n){let i=n.match(Kg);return i?i[0]:""}var Ql=class{url;remaining;constructor(i){this.url=i,this.remaining=i}parseRootSegment(){for(;this.consumeOptional("/"););return this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new gt([],{}):new gt([],this.parseChildren())}parseQueryParams(){let i={};if(this.consumeOptional("?"))do this.parseQueryParam(i);while(this.consumeOptional("&"));return i}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(i=0){if(i>50)throw new W(4010,!1);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,i));let a={};return this.peekStartsWith("(")&&(a=this.parseParens(!1,i)),(t.length>0||Object.keys(e).length>0)&&(a[tt]=new gt(t,e)),a}parseSegment(){let i=Wl(this.remaining);if(i===""&&this.peekStartsWith(";"))throw new W(4009,!1);return this.capture(i),new Fn(So(i),this.parseMatrixParams())}parseMatrixParams(){let i={};for(;this.consumeOptional(";");)this.parseParam(i);return i}parseParam(i){let t=Gg(this.remaining);if(!t)return;this.capture(t);let e="";if(this.consumeOptional("=")){let a=Wl(this.remaining);a&&(e=a,this.capture(e))}Mo(i,So(t),So(e))}parseQueryParam(i){let t=qg(this.remaining);if(!t)return;this.capture(t);let e="";if(this.consumeOptional("=")){let o=Yg(this.remaining);o&&(e=o,this.capture(e))}let a=Wm(t),r=Wm(e);if(Object.hasOwn(i,a)){let o=i[a];Array.isArray(o)||(o=[o],i[a]=o),o.push(r)}else i[a]=r}parseParens(i,t){let e=Object.create(null);for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let a=Wl(this.remaining),r=this.remaining[a.length];if(r!=="/"&&r!==")"&&r!==";")throw new W(4010,!1);let o;a.indexOf(":")>-1?(o=a.slice(0,a.indexOf(":")),this.capture(o),this.capture(":")):i&&(o=tt);let s=this.parseChildren(t+1),l=Object.keys(s).length===1&&s[tt]?s[tt]:new gt([],s);Mo(e,o??tt,l),this.consumeOptional("//")}return e}peekStartsWith(i){return this.remaining.startsWith(i)}consumeOptional(i){return this.peekStartsWith(i)?(this.remaining=this.remaining.substring(i.length),!0):!1}capture(i){if(!this.consumeOptional(i))throw new W(4011,!1)}};function lu(n){return n.segments.length>0?new gt([],{[tt]:n}):n}function cu(n){let i=Object.create(null);for(let[e,a]of Object.entries(n.children)){let r=cu(a);if(e===tt&&r.segments.length===0&&r.hasChildren())for(let[o,s]of Object.entries(r.children))Mo(i,o,s);else(r.segments.length>0||r.hasChildren())&&Mo(i,e,r)}let t=new gt(n.segments,i);return Xg(t)}function Xg(n){if(n.numberOfChildren===1&&n.children[tt]){let i=n.children[tt];return new gt(n.segments.concat(i.segments),i.children)}return n}function Pn(n){return n instanceof ge}function du(n,i,t=null,e=null,a=new Cn){let r=mu(n);return uu(r,i,t,e,a)}function mu(n){let i;function t(r){let o={};for(let l of r.children){let d=t(l);o[l.outlet]=d}let s=new gt(r.url,o);return r===n&&(i=s),s}let e=t(n.root),a=lu(e);return i??a}function uu(n,i,t,e,a){let r=n;for(;r.parent;)r=r.parent;if(i.length===0)return ql(r,r,r,t,e,a);let o=Zg(i);if(o.toRoot())return ql(r,r,new gt([],{}),t,e,a);let s=Qg(o,r,n),l=s.processChildren?Ka(s.segmentGroup,s.index,o.commands):pu(s.segmentGroup,s.index,o.commands);return ql(r,s.segmentGroup,l,t,e,a)}function Do(n){return typeof n=="object"&&n!=null&&!n.outlets&&!n.segmentPath}function Za(n){return typeof n=="object"&&n!=null&&n.outlets}function qm(n,i,t){n||="\u0275";let e=new ge;return e.queryParams={[n]:i},t.parse(t.serialize(e)).queryParams[n]}function ql(n,i,t,e,a,r){let o={};for(let[d,m]of Object.entries(e??{}))o[d]=Array.isArray(m)?m.map(_=>qm(d,_,r)):qm(d,m,r);let s;n===i?s=t:s=hu(n,i,t);let l=lu(cu(s));return new ge(l,o,a)}function hu(n,i,t){let e=Object.create(null);return Object.entries(n.children).forEach(([a,r])=>{r===i?e[a]=t:e[a]=hu(r,i,t)}),new gt(n.segments,e)}var Eo=class{isAbsolute;numberOfDoubleDots;commands;constructor(i,t,e){if(this.isAbsolute=i,this.numberOfDoubleDots=t,this.commands=e,i&&e.length>0&&Do(e[0]))throw new W(4003,!1);let a=e.find(Za);if(a&&a!==Rg(e))throw new W(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function Zg(n){if(typeof n[0]=="string"&&n.length===1&&n[0]==="/")return new Eo(!0,0,n);let i=0,t=!1,e=n.reduce((a,r,o)=>{if(typeof r=="object"&&r!=null){if(r.outlets){let s={};return Object.entries(r.outlets).forEach(([l,d])=>{s[l]=typeof d=="string"?d.split("/"):d}),[...a,{outlets:s}]}if(r.segmentPath)return[...a,r.segmentPath]}return typeof r!="string"?[...a,r]:o===0?(r.split("/").forEach((s,l)=>{l==0&&s==="."||(l==0&&s===""?t=!0:s===".."?i++:s!=""&&a.push(s))}),a):[...a,r]},[]);return new Eo(t,i,e)}var Hi=class{segmentGroup;processChildren;index;constructor(i,t,e){this.segmentGroup=i,this.processChildren=t,this.index=e}};function Qg(n,i,t){if(n.isAbsolute)return new Hi(i,!0,0);if(!t)return new Hi(i,!1,NaN);if(t.parent===null)return new Hi(t,!0,0);let e=Do(n.commands[0])?0:1,a=t.segments.length-1+e;return Jg(t,a,n.numberOfDoubleDots)}function Jg(n,i,t){let e=n,a=i,r=t;for(;r>a;){if(r-=a,e=e.parent,!e)throw new W(4005,!1);a=e.segments.length}return new Hi(e,!1,a-r)}function tb(n){return Za(n[0])?n[0].outlets:{[tt]:n}}function pu(n,i,t){if(n??=new gt([],{}),n.segments.length===0&&n.hasChildren())return Ka(n,i,t);let e=eb(n,i,t),a=t.slice(e.commandIndex);if(e.match&&e.pathIndex<n.segments.length){let r=new gt(n.segments.slice(0,e.pathIndex),{});return r.children[tt]=new gt(n.segments.slice(e.pathIndex),n.children),Ka(r,0,a)}else return e.match&&a.length===0?new gt(n.segments,{}):e.match&&!n.hasChildren()?Jl(n,i,t):e.match?Ka(n,0,a):Jl(n,i,t)}function Ka(n,i,t){if(t.length===0)return new gt(n.segments,{});{let e=tb(t),a=Object.create(null);if(Object.keys(e).some(r=>r!==tt)&&n.children[tt]&&n.numberOfChildren===1&&n.children[tt].segments.length===0){let r=Ka(n.children[tt],i,t);return new gt(n.segments,r.children)}return Object.entries(e).forEach(([r,o])=>{typeof o=="string"&&(o=[o]),o!==null&&(a[r]=pu(n.children[r],i,o))}),Object.entries(n.children).forEach(([r,o])=>{e[r]===void 0&&(a[r]=o)}),new gt(n.segments,a)}}function eb(n,i,t){let e=0,a=i,r={match:!1,pathIndex:0,commandIndex:0};for(;a<n.segments.length;){if(e>=t.length)return r;let o=n.segments[a],s=t[e];if(Za(s))break;let l=`${s}`,d=e<t.length-1?t[e+1]:null;if(a>0&&l===void 0)break;if(l&&d&&typeof d=="object"&&d.outlets===void 0){if(!Ym(l,d,o))return r;e+=2}else{if(!Ym(l,{},o))return r;e++}a++}return{match:!0,pathIndex:a,commandIndex:e}}function Jl(n,i,t){let e=n.segments.slice(0,i),a=0;for(;a<t.length;){let r=t[a];if(Za(r)){let l=nb(r.outlets);return new gt(e,l)}if(a===0&&Do(t[0])){let l=n.segments[i];e.push(new Fn(l.path,Km(t[0]))),a++;continue}let o=Za(r)?r.outlets[tt]:`${r}`,s=a<t.length-1?t[a+1]:null;o&&s&&Do(s)?(e.push(new Fn(o,Km(s))),a+=2):(e.push(new Fn(o,{})),a++)}return new gt(e,{})}function nb(n){let i={};return Object.entries(n).forEach(([t,e])=>{typeof e=="string"&&(e=[e]),e!==null&&(i[t]=Jl(new gt([],{}),0,e))}),i}function Km(n){let i={};return Object.entries(n).forEach(([t,e])=>i[t]=`${e}`),i}function Ym(n,i,t){return n==t.path&&un(i,t.parameters)}var No=class{rootInjector;outlet=null;route=null;children;attachRef=null;get injector(){return this.route?.snapshot._environmentInjector??this.rootInjector}constructor(i){this.rootInjector=i,this.children=new Ln(this.rootInjector)}resetChildren(){this.children=new Ln(this.rootInjector)}},Ln=(()=>{class n{rootInjector;contexts=new Map;constructor(t){this.rootInjector=t}onChildOutletCreated(t,e){let a=this.getOrCreateContext(t);a.outlet=e,this.contexts.set(t,a)}onChildOutletDestroyed(t){let e=this.getContext(t);e&&(e.outlet=null,e.attachRef=null)}onOutletDeactivated(){let t=this.contexts;return this.contexts=new Map,t}onOutletReAttached(t){this.contexts=t}getOrCreateContext(t){let e=this.getContext(t);return e||(e=new No(this.rootInjector),this.contexts.set(t,e)),e}getContext(t){return this.contexts.get(t)||null}static \u0275fac=function(e){return new(e||n)(T(zt))};static \u0275prov=$({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})(),Io=class{_root;constructor(i){this._root=i}get root(){return this._root.value}parent(i){let t=this.pathFromRoot(i);return t.length>1?t[t.length-2]:null}children(i){let t=tc(i,this._root);return t?t.children.map(e=>e.value):[]}firstChild(i){let t=tc(i,this._root);return t&&t.children.length>0?t.children[0].value:null}siblings(i){let t=ec(i,this._root);return t.length<2?[]:t[t.length-2].children.map(a=>a.value).filter(a=>a!==i)}pathFromRoot(i){return ec(i,this._root).map(t=>t.value)}};function tc(n,i){if(n===i.value)return i;for(let t of i.children){let e=tc(n,t);if(e)return e}return null}function ec(n,i){if(n===i.value)return[i];for(let t of i.children){let e=ec(n,t);if(e.length)return e.unshift(i),e}return[]}var fe=class{value;children;constructor(i,t){this.value=i,this.children=t}toString(){return`TreeNode(${this.value})`}};function Ui(n){let i={};return n&&n.children.forEach(t=>i[t.value.outlet]=t),i}var Qa=class extends Io{snapshot;constructor(i,t){super(i),this.snapshot=t,hc(this,i)}toString(){return this.snapshot.toString()}};function fu(n,i){let t=ib(n,i),e=new xe([new Fn("",{})]),a=new xe({}),r=new xe({}),o=new xe({}),s=new xe(""),l=new Je(e,a,o,s,r,tt,n,t.root);return l.snapshot=t.root,new Qa(new fe(l,[]),t)}function ib(n,i){let t={},e={},a={},o=new qi([],t,a,"",e,tt,n,null,{},i);return new Ja("",new fe(o,[]))}var Je=class{urlSubject;paramsSubject;queryParamsSubject;fragmentSubject;dataSubject;outlet;component;snapshot;_futureSnapshot;_routerState;_paramMap;_queryParamMap;title;url;params;queryParams;fragment;data;resources;_localInjector;pending;paramsSignal;queryParamsSignal;paramMapSignal;queryParamMapSignal;fragmentSignal;dataSignal;constructor(i,t,e,a,r,o,s,l){this.urlSubject=i,this.paramsSubject=t,this.queryParamsSubject=e,this.fragmentSubject=a,this.dataSubject=r,this.outlet=o,this.component=s,this._futureSnapshot=l,this.title=this.dataSubject?.pipe(st(d=>d[ar]))??A(void 0),this.url=i,this.params=t,this.queryParams=e,this.fragment=a,this.data=r}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(st(i=>ri(i))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(st(i=>ri(i))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}_setPending(i){this._futureSnapshot=i,this.pending?.set(!0)}},ab="always";function uc(n,i,t){let e,{routeConfig:a}=n;return i!==null&&(t==="always"||a?.path===""||!i.component&&!i.routeConfig?.loadComponent)?e={params:Object.keys(n.params).length===0?i.params:Object.freeze(g(g({},i.params),n.params)),data:Object.freeze(g(g({},i.data),n.data)),resolve:g(g(g(g({},n.data),i.data),a?.data),n._resolvedData)}:e={params:Object.freeze(g({},n.params)),data:Object.freeze(g({},n.data)),resolve:g(g({},n.data),n._resolvedData??{})},a&&bu(a)&&(e.resolve[ar]=a.title),e}var qi=class{url;params;queryParams;fragment;data;outlet;component;routeConfig;_resolve;_resolvedData;_routerState;_paramMap;_queryParamMap;_environmentInjector;resources;get title(){return this.data?.[ar]}constructor(i,t,e,a,r,o,s,l,d,m){this.url=i,this.params=t,this.queryParams=e,this.fragment=a,this.data=r,this.outlet=o,this.component=s,this.routeConfig=l,this._resolve=d,this._environmentInjector=m}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??=ri(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=ri(this.queryParams),this._queryParamMap}toString(){let i=this.url.map(e=>e.toString()).join("/"),t=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${i}', path:'${t}')`}},Ja=class extends Io{url;constructor(i,t){super(t),this.url=i,hc(this,t)}toString(){return gu(this._root)}};function hc(n,i){i.value._routerState=n,i.children.forEach(t=>hc(n,t))}function gu(n){let i=n.children.length>0?` { ${n.children.map(gu).join(", ")} } `:"";return`${n.value}${i}`}function Kl(n){if(n.snapshot){let i=n.snapshot,t=n._futureSnapshot;n.snapshot=t,un(i.queryParams,t.queryParams)||n.queryParamsSubject.next(t.queryParams),i.fragment!==t.fragment&&n.fragmentSubject.next(t.fragment),un(i.params,t.params)||n.paramsSubject.next(t.params),Ag(i.url,t.url)||n.urlSubject.next(t.url),un(i.data,t.data)||n.dataSubject.next(t.data)}else n.snapshot=n._futureSnapshot,n.dataSubject.next(n._futureSnapshot.data)}function nc(n,i){let t=un(n.params,i.params)&&Pg(n.url,i.url),e=!n.parent!=!i.parent;return t&&!e&&(!n.parent||nc(n.parent,i.parent))}function bu(n){return typeof n.title=="string"||n.title===null}var vu=new v(""),rr=(()=>{class n{activated=null;get activatedComponentRef(){return this.activated}_activatedRoute=null;name=tt;activateEvents=new Q;deactivateEvents=new Q;attachEvents=new Q;detachEvents=new Q;routerOutletData=ii();parentContexts=c(Ln);location=c(Oe);changeDetector=c(xt);inputBinder=c(or,{optional:!0});supportsBindingToComponentInputs=!0;ngOnChanges(t){if(t.name){let{firstChange:e,previousValue:a}=t.name;if(e)return;this.isTrackedInParentContexts(a)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(a)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(t){return this.parentContexts.getContext(t)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let t=this.parentContexts.getContext(this.name);t?.route&&(t.attachRef?this.attach(t.attachRef,t.route):this.activateWith(t.route,t.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new 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 t=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(t.instance),t}attach(t,e){this.activated=t,this._activatedRoute=e,this.location.insert(t.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this,this.location.injector),this.attachEvents.emit(t.instance)}deactivate(){if(this.activated){let t=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(t)}}activateWith(t,e){if(this.isActivated)throw new W(4013,!1);this._activatedRoute=t;let a=this.location,o=t.snapshot.component,s=this.parentContexts.getOrCreateContext(this.name).children,l=new ic(t,s,a.injector,this.routerOutletData);this.activated=a.createComponent(o,{index:a.length,injector:l,environmentInjector:e}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this,this.location.injector),this.activateEvents.emit(this.activated.instance)}static \u0275fac=function(e){return new(e||n)};static \u0275dir=x({type:n,selectors:[["router-outlet"]],inputs:{name:"name",routerOutletData:[1,"routerOutletData"]},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],features:[Dt]})}return n})(),ic=class{route;childContexts;parent;outletData;constructor(i,t,e,a){this.route=i,this.childContexts=t,this.parent=e,this.outletData=a}get(i,t){return i===Je?this.route:i===Ln?this.childContexts:i===vu?this.outletData:this.parent.get(i,t)}},or=new v(""),_u=(()=>{class n{options;feature;outletDataSubscriptions=new Map;outletSeenKeys=new Map;outletEffects=new Map;constructor(t,e=null){this.options=t,this.feature=e,this.options.queryParams??=!0}bindActivatedRouteToOutletComponent(t,e){this.unsubscribeFromRouteData(t),this.subscribeToRouteData(t,e)}unsubscribeFromRouteData(t){this.outletDataSubscriptions.get(t)?.unsubscribe(),this.outletDataSubscriptions.delete(t),this.outletSeenKeys.delete(t),this.outletEffects.get(t)?.forEach(e=>e.destroy()),this.outletEffects.delete(t)}subscribeToRouteData(t,e){let{activatedRoute:a}=t,r=[],o=[];if(this.feature?.createResourceOutletBindingEffects&&t.activatedComponentRef){let{handledKeys:l,createdEffects:d}=this.feature.createResourceOutletBindingEffects(t.activatedComponentRef,a);r.push(...d),o=l}r.length>0&&this.outletEffects.set(t,r);let s=Da([this.options.queryParams?a.queryParams:A({}),a.params,a.data]).pipe(Mt(([l,d,m],_)=>(m=g(g(g(g({},l),d),m),a.resources),_===0?A(m):Promise.resolve(m)))).subscribe(l=>{if(!t.isActivated||!t.activatedComponentRef||t.activatedRoute!==a||a.component===null){this.unsubscribeFromRouteData(t);return}let d=vl(a.component);if(!d){this.unsubscribeFromRouteData(t);return}let m=this.outletSeenKeys.get(t);m||(m=new Set,this.outletSeenKeys.set(t,m));for(let b of Object.keys(l))m.add(b);let _=this.options.unmatchedInputBehavior??"alwaysUndefined";for(let{templateName:b}of d.inputs){if(o.includes(b))continue;let M=l[b];(M!==void 0||_==="alwaysUndefined"||m.has(b))&&t.activatedComponentRef.setInput(b,M)}});this.outletDataSubscriptions.set(t,s)}static \u0275fac=function(e){Rn()};static \u0275prov=$({token:n,factory:n.\u0275fac})}return n})(),pc=(()=>{class n{static \u0275fac=function(e){return new(e||n)};static \u0275cmp=S({type:n,selectors:[["ng-component"]],exportAs:["emptyRouterOutlet"],decls:1,vars:0,template:function(e,a){e&1&&dt(0,"router-outlet")},dependencies:[rr],encapsulation:2,changeDetection:1})}return n})();function fc(n){let i=n.children&&n.children.map(fc),t=i?ct(g({},n),{children:i}):g({},n);return!t.component&&!t.loadComponent&&(i||t.loadChildren)&&t.outlet&&t.outlet!==tt&&(t.component=pc),t}var $i="imperative",Yt=(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})(Yt||{}),De=class{id;url;constructor(i,t){this.id=i,this.url=t}},Bn=class extends De{type=Yt.NavigationStart;navigationTrigger;restoredState;constructor(i,t,e="imperative",a=null){super(i,t),this.navigationTrigger=e,this.restoredState=a}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},Ee=class extends De{urlAfterRedirects;type=Yt.NavigationEnd;constructor(i,t,e){super(i,t),this.urlAfterRedirects=e}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},ae=(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})(ae||{}),Ki=(function(n){return n[n.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",n[n.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",n})(Ki||{}),Be=class extends De{reason;code;type=Yt.NavigationCancel;constructor(i,t,e,a){super(i,t),this.reason=e,this.code=a}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}};function yu(n){return n instanceof Be&&(n.code===ae.Redirect||n.code===ae.SupersededByNewNavigation)}var hn=class extends De{reason;code;type=Yt.NavigationSkipped;constructor(i,t,e,a){super(i,t),this.reason=e,this.code=a}},oi=class extends De{error;target;type=Yt.NavigationError;constructor(i,t,e,a){super(i,t),this.error=e,this.target=a}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},tr=class extends De{urlAfterRedirects;state;type=Yt.RoutesRecognized;constructor(i,t,e,a){super(i,t),this.urlAfterRedirects=e,this.state=a}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Ao=class extends De{urlAfterRedirects;state;type=Yt.GuardsCheckStart;constructor(i,t,e,a){super(i,t),this.urlAfterRedirects=e,this.state=a}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Ro=class extends De{urlAfterRedirects;state;shouldActivate;type=Yt.GuardsCheckEnd;constructor(i,t,e,a,r){super(i,t),this.urlAfterRedirects=e,this.state=a,this.shouldActivate=r}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},To=class extends De{urlAfterRedirects;state;type=Yt.ResolveStart;constructor(i,t,e,a){super(i,t),this.urlAfterRedirects=e,this.state=a}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Oo=class extends De{urlAfterRedirects;state;type=Yt.ResolveEnd;constructor(i,t,e,a){super(i,t),this.urlAfterRedirects=e,this.state=a}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Fo=class{route;type=Yt.RouteConfigLoadStart;constructor(i){this.route=i}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},Po=class{route;type=Yt.RouteConfigLoadEnd;constructor(i){this.route=i}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},Lo=class{snapshot;type=Yt.ChildActivationStart;constructor(i){this.snapshot=i}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Bo=class{snapshot;type=Yt.ChildActivationEnd;constructor(i){this.snapshot=i}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Vo=class{snapshot;type=Yt.ActivationStart;constructor(i){this.snapshot=i}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},zo=class{snapshot;type=Yt.ActivationEnd;constructor(i){this.snapshot=i}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Yi=class{routerEvent;position;anchor;scrollBehavior;type=Yt.Scroll;constructor(i,t,e,a){this.routerEvent=i,this.position=t,this.anchor=e,this.scrollBehavior=a}toString(){let i=this.position?`${this.position[0]}, ${this.position[1]}`:null;return`Scroll(anchor: '${this.anchor}', position: '${i}')`}},Xi=class{},er=class{},Zi=class{url;navigationBehaviorOptions;constructor(i,t){this.url=i,this.navigationBehaviorOptions=t}};function rb(n){return!(n instanceof Xi)&&!(n instanceof Zi)&&!(n instanceof er)}function ob(n,i,t){let e=new Set,a=nr(n,i._root,t?t._root:void 0,e);return{newlyCreatedRoutes:e,state:new Qa(a,i)}}function nr(n,i,t,e){if(t&&n.shouldReuseRoute(i.value,t.value.snapshot)){let a=t.value;a._setPending(i.value);let r=sb(n,i,t,e);return new fe(a,r)}else{if(n.shouldAttach(i.value)){let o=n.retrieve(i.value);if(o!==null){let s=o.route;return s.value._setPending(i.value),s.children=i.children.map(l=>nr(n,l,void 0,e)),s}}let a=lb(i.value);a._setPending(i.value),e.add(a);let r=i.children.map(o=>nr(n,o,void 0,e));return new fe(a,r)}}function sb(n,i,t,e){return i.children.map(a=>{for(let r of t.children)if(n.shouldReuseRoute(a.value,r.value.snapshot))return nr(n,a,r,e);return nr(n,a,void 0,e)})}function lb(n){return new Je(new xe(n.url),new xe(n.params),new xe(n.queryParams),new xe(n.fragment),new xe(n.data),n.outlet,n.component,n)}var si=class n extends Error{redirectTo;navigationBehaviorOptions;constructor(i,t){super(),this.redirectTo=i,this.navigationBehaviorOptions=t,Object.setPrototypeOf(this,n.prototype)}},xu="ngNavigationCancelingError";function Ya(n,i){let{redirectTo:t,navigationBehaviorOptions:e}=Pn(i)?{redirectTo:i,navigationBehaviorOptions:void 0}:i,a=wu(!1,ae.Redirect);return a.url=t,a.navigationBehaviorOptions=e,a}function wu(n,i){let t=new Error(`NavigationCancelingError: ${n||""}`);return t[xu]=!0,t.cancellationCode=i,t}function cb(n){return Su(n)&&Pn(n.url)}function Su(n){return!!n&&n[xu]}var ac=class{routeReuseStrategy;futureState;currState;forwardEvent;inputBindingEnabled;constructor(i,t,e,a,r){this.routeReuseStrategy=i,this.futureState=t,this.currState=e,this.forwardEvent=a,this.inputBindingEnabled=r}activate(i){let t=this.futureState._root,e=this.currState?this.currState._root:null;this.deactivateChildRoutes(t,e,i),Kl(this.futureState.root),this.activateChildRoutes(t,e,i)}deactivateChildRoutes(i,t,e){let a=Ui(t);i.children.forEach(r=>{let o=r.value.outlet;this.deactivateRoutes(r,a[o],e),delete a[o]}),Object.values(a).forEach(r=>{this.deactivateRouteAndItsChildren(r,e)})}deactivateRoutes(i,t,e){let a=i.value,r=t?t.value:null;if(a===r)if(a.component){let o=e.getContext(a.outlet);o&&this.deactivateChildRoutes(i,t,o.children)}else this.deactivateChildRoutes(i,t,e);else r&&this.deactivateRouteAndItsChildren(t,e)}deactivateRouteAndItsChildren(i,t){i.value.component&&this.routeReuseStrategy.shouldDetach(i.value.snapshot)?this.detachAndStoreRouteSubtree(i,t):this.deactivateRouteAndOutlet(i,t)}detachAndStoreRouteSubtree(i,t){let e=t.getContext(i.value.outlet),a=e&&i.value.component?e.children:t,r=Ui(i);for(let o of Object.values(r))this.deactivateRouteAndItsChildren(o,a);if(e&&e.outlet){let o=e.outlet.detach(),s=e.children.contexts;e.resetChildren(),this.routeReuseStrategy.store(i.value.snapshot,{componentRef:o,route:i,contexts:s})}}deactivateRouteAndOutlet(i,t){let e=t.getContext(i.value.outlet),a=e&&i.value.component?e.children:t,r=Ui(i);for(let o of Object.values(r))this.deactivateRouteAndItsChildren(o,a);e&&(e.outlet&&(e.outlet.deactivate(),e.children.onOutletDeactivated()),e.attachRef=null,e.route=null),i.value._localInjector?.destroy()}activateChildRoutes(i,t,e){let a=Ui(t);i.children.forEach(r=>{this.activateRoutes(r,a[r.value.outlet],e),this.forwardEvent(new zo(r.value.snapshot))}),i.children.length&&this.forwardEvent(new Bo(i.value.snapshot))}activateRoutes(i,t,e){let a=i.value,r=t?t.value:null;if(Kl(a),a===r)if(a.component){let o=e.getOrCreateContext(a.outlet);this.activateChildRoutes(i,t,o.children)}else this.activateChildRoutes(i,t,e);else if(a.component){let o=e.getOrCreateContext(a.outlet);if(this.routeReuseStrategy.shouldAttach(a.snapshot)){let s=this.routeReuseStrategy.retrieve(a.snapshot);this.routeReuseStrategy.store(a.snapshot,null),o.children.onOutletReAttached(s.contexts),o.attachRef=s.componentRef,o.route=s.route.value,o.outlet&&o.outlet.attach(s.componentRef,s.route.value),Kl(s.route.value),this.activateChildRoutes(i,null,o.children)}else o.attachRef=null,o.route=a,o.outlet&&o.outlet.activateWith(a,o.injector),this.activateChildRoutes(i,null,o.children)}else this.activateChildRoutes(i,null,e)}},jo=class{path;route;constructor(i){this.path=i,this.route=this.path[this.path.length-1]}},Gi=class{component;route;constructor(i,t){this.component=i,this.route=t}};function db(n,i,t){let e=n._root,a=i?i._root:null;return qa(e,a,t,[e.value])}function mb(n){let i=n.routeConfig?n.routeConfig.canActivateChild:null;return!i||i.length===0?null:{node:n,guards:i}}function Ji(n,i){let t=Symbol(),e=i.get(n,t);return e===t?typeof n=="function"&&!Od(n)?n:i.get(n):e}function qa(n,i,t,e,a={canDeactivateChecks:[],canActivateChecks:[]}){let r=Ui(i);return n.children.forEach(o=>{ub(o,r[o.value.outlet],t,e.concat([o.value]),a),delete r[o.value.outlet]}),Object.entries(r).forEach(([o,s])=>Xa(s,t.getContext(o),t,a)),a}function ub(n,i,t,e,a={canDeactivateChecks:[],canActivateChecks:[]}){let r=n.value,o=i?i.value:null,s=t?t.getContext(n.value.outlet):null;if(o&&r.routeConfig===o.routeConfig){let l=hb(o,r,r.routeConfig.runGuardsAndResolvers);l?a.canActivateChecks.push(new jo(e)):(r.data=o.data,r._resolvedData=o._resolvedData),r.component?qa(n,i,s?s.children:null,e,a):qa(n,i,t,e,a),l&&s&&s.outlet&&s.outlet.isActivated&&a.canDeactivateChecks.push(new Gi(s.outlet.component,o))}else o&&Xa(i,s,t,a),a.canActivateChecks.push(new jo(e)),r.component?qa(n,null,s?s.children:null,e,a):qa(n,null,t,e,a);return a}function hb(n,i,t){if(typeof t=="function")return le(i._environmentInjector,()=>t(n,i));switch(t){case"pathParamsChange":return!ai(n.url,i.url);case"pathParamsOrQueryParamsChange":return!ai(n.url,i.url)||!un(n.queryParams,i.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!nc(n,i)||!un(n.queryParams,i.queryParams);default:return!nc(n,i)}}function Xa(n,i,t,e){let a=Ui(n),r=n.value;Object.entries(a).forEach(([o,s])=>{r.component?i?Xa(s,i.children.getContext(o),i.children,e):Xa(s,null,null,e):Xa(s,t?t.getContext(o):null,t,e)}),r.component?i&&i.outlet&&i.outlet.isActivated?e.canDeactivateChecks.push(new Gi(i.outlet.component,r)):e.canDeactivateChecks.push(new Gi(null,r)):e.canDeactivateChecks.push(new Gi(null,r))}function sr(n){return typeof n=="function"}function pb(n){return typeof n=="boolean"}function fb(n){return n&&sr(n.canLoad)}function gb(n){return n&&sr(n.canActivate)}function bb(n){return n&&sr(n.canActivateChild)}function vb(n){return n&&sr(n.canDeactivate)}function _b(n){return n&&sr(n.canMatch)}function Cu(n){return n instanceof Ad||n?.name==="EmptyError"}var yo=Symbol("INITIAL_VALUE");function Qi(){return Mt(n=>Da(n.map(i=>i.pipe(Gt(1),Ft(yo)))).pipe(st(i=>{for(let t of i)if(t!==!0){if(t===yo)return yo;if(t===!1||yb(t))return t}return!0}),vt(i=>i!==yo),Gt(1)))}function yb(n){return Pn(n)||n instanceof si}function ku(n){return new oe(i=>{if(n.aborted){i.next(),i.complete();return}let t=()=>{i.next(),i.complete()};return n.addEventListener("abort",t),()=>n.removeEventListener("abort",t)})}function Mu(n){return kt(ku(n))}function xb(n){return an(i=>{let{targetSnapshot:t,currentSnapshot:e,guards:{canActivateChecks:a,canDeactivateChecks:r}}=i;return r.length===0&&a.length===0?A(ct(g({},i),{guardsResult:!0})):wb(r,t,e).pipe(an(o=>o&&pb(o)?Sb(t,a,n):A(o)),st(o=>ct(g({},i),{guardsResult:o})))})}function wb(n,i,t){return Zt(n).pipe(an(e=>Eb(e.component,e.route,t,i)),Nn(e=>e!==!0,!0))}function Sb(n,i,t){return Zt(i).pipe(Qn(e=>jr(kb(e.route.parent,t),Cb(e.route,t),Db(n,e.path),Mb(n,e.route))),Nn(e=>e!==!0,!0))}function Cb(n,i){return n!==null&&i&&i(new Vo(n)),A(!0)}function kb(n,i){return n!==null&&i&&i(new Lo(n)),A(!0)}function Mb(n,i){let t=i.routeConfig?i.routeConfig.canActivate:null;if(!t||t.length===0)return A(!0);let e=t.map(a=>rn(()=>{let r=i._environmentInjector,o=Ji(a,r),s=gb(o)?o.canActivate(i,n):le(r,()=>o(i,n));return li(s).pipe(Nn())}));return A(e).pipe(Qi())}function Db(n,i){let t=i[i.length-1],a=i.slice(0,i.length-1).reverse().map(r=>mb(r)).filter(r=>r!==null).map(r=>rn(()=>{let o=r.guards.map(s=>{let l=r.node._environmentInjector,d=Ji(s,l),m=bb(d)?d.canActivateChild(t,n):le(l,()=>d(t,n));return li(m).pipe(Nn())});return A(o).pipe(Qi())}));return A(a).pipe(Qi())}function Eb(n,i,t,e){let a=i&&i.routeConfig?i.routeConfig.canDeactivate:null;if(!a||a.length===0)return A(!0);let r=a.map(o=>{let s=i._environmentInjector,l=Ji(o,s),d=vb(l)?l.canDeactivate(n,i,t,e):le(s,()=>l(n,i,t,e));return li(d).pipe(Nn())});return A(r).pipe(Qi())}function Nb(n,i,t,e,a){let r=i.canLoad;if(r===void 0||r.length===0)return A(!0);let o=r.map(s=>{let l=Ji(s,n),d=fb(l)?l.canLoad(i,t):le(n,()=>l(i,t)),m=li(d);return a?m.pipe(Mu(a)):m});return A(o).pipe(Qi(),Du(e))}function Du(n){return Js(Wt(i=>{if(typeof i!="boolean")throw Ya(n,i)}),st(i=>i===!0))}function Ib(n,i,t,e,a,r){let o=i.canMatch;if(!o||o.length===0)return A(!0);let s=o.map(l=>{let d=Ji(l,n),m=_b(d)?d.canMatch(i,t,a):le(n,()=>d(i,t,a));return li(m).pipe(Mu(r))});return A(s).pipe(Qi(),Du(e))}var mn=class n extends Error{name="NoMatch";segmentGroup;constructor(i){super(),this.segmentGroup=i||null,Object.setPrototypeOf(this,n.prototype)}},ir=class n extends Error{urlTree;name="AbsoluteRedirect";constructor(i){super(),this.urlTree=i,Object.setPrototypeOf(this,n.prototype)}};function Ab(n){throw new W(4e3,!1)}function Rb(n){throw wu(!1,ae.GuardRejected)}var rc=class{urlSerializer;urlTree;constructor(i,t){this.urlSerializer=i,this.urlTree=t}lineralizeSegments(i,t){return wt(this,null,function*(){let e=[],a=t.root;for(;;){if(e=e.concat(a.segments),a.numberOfChildren===0)return e;if(a.numberOfChildren>1||!a.children[tt])throw Ab(`${i.redirectTo}`);a=a.children[tt]}})}applyRedirectCommands(i,t,e,a,r){return wt(this,null,function*(){let o=yield Tb(t,a,r);if(o instanceof ge)throw new ir(o);let s=this.applyRedirectCreateUrlTree(o,this.urlSerializer.parse(o),i,e);if(o[0]==="/")throw new ir(s);return s})}applyRedirectCreateUrlTree(i,t,e,a){let r=this.createSegmentGroup(i,t.root,e,a);return new ge(r,this.createQueryParams(t.queryParams,this.urlTree.queryParams),t.fragment)}createQueryParams(i,t){let e={};return Object.entries(i).forEach(([a,r])=>{if(typeof r=="string"&&r[0]===":"){let s=r.substring(1);e[a]=t[s]}else e[a]=r}),e}createSegmentGroup(i,t,e,a){let r=this.createSegments(i,t.segments,e,a),o=Object.create(null);return Object.entries(t.children).forEach(([s,l])=>{o[s]=this.createSegmentGroup(i,l,e,a)}),new gt(r,o)}createSegments(i,t,e,a){return t.map(r=>r.path[0]===":"?this.findPosParam(i,r,a):this.findOrReturn(r,e))}findPosParam(i,t,e){let a=e[t.path.substring(1)];if(!a)throw new W(4001,!1);return a}findOrReturn(i,t){let e=0;for(let a of t){if(a.path===i.path)return t.splice(e),a;e++}return i}};function Tb(n,i,t){if(typeof n=="string")return Promise.resolve(n);let e=n;return Co(li(le(t,()=>e(i))))}function Ob(n,i){return n.providers&&!n._injector&&(n._injector=qr(n.providers,i,`Route: ${n.path}`)),n._injector??i}function Qe(n){return n.outlet||tt}function Fb(n,i){let t=n.filter(e=>Qe(e)===i);return t.push(...n.filter(e=>Qe(e)!==i)),t}var oc={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function Eu(n){return{routeConfig:n.routeConfig,url:n.url,params:n.params,queryParams:n.queryParams,fragment:n.fragment,data:n.data,outlet:n.outlet,title:n.title,paramMap:n.paramMap,queryParamMap:n.queryParamMap}}function Pb(n,i,t,e,a,r,o){let s=Nu(n,i,t);if(!s.matched)return A(s);let l=Eu(r(s));return e=Ob(i,e),Ib(e,i,t,a,l,o).pipe(st(d=>d===!0?s:g({},oc)))}function Nu(n,i,t){if(i.path==="")return i.pathMatch==="full"&&(n.hasChildren()||t.length>0)?g({},oc):{matched:!0,consumedSegments:[],remainingSegments:t,parameters:{},positionalParamSegments:{}};let a=(i.matcher||Jm)(t,n,i);if(!a)return g({},oc);let r={};Object.entries(a.posParams??{}).forEach(([s,l])=>{r[s]=l.path});let o=a.consumed.length>0?g(g({},r),a.consumed[a.consumed.length-1].parameters):r;return{matched:!0,consumedSegments:a.consumed,remainingSegments:t.slice(a.consumed.length),parameters:o,positionalParamSegments:a.posParams??{}}}function Xm(n,i,t,e,a){return t.length>0&&Vb(n,t,e,a)?{segmentGroup:new gt(i,Bb(e,new gt(t,n.children))),slicedSegments:[]}:t.length===0&&zb(n,t,e)?{segmentGroup:new gt(n.segments,Lb(n,t,e,n.children)),slicedSegments:t}:{segmentGroup:new gt(n.segments,n.children),slicedSegments:t}}function Lb(n,i,t,e){let a={};for(let r of t)if(Ho(n,i,r)&&!e[Qe(r)]){let o=new gt([],{});a[Qe(r)]=o}return g(g({},e),a)}function Bb(n,i){let t={};t[tt]=i;for(let e of n)if(e.path===""&&Qe(e)!==tt){let a=new gt([],{});t[Qe(e)]=a}return t}function Vb(n,i,t,e){return t.some(a=>!Ho(n,i,a)||!(Qe(a)!==tt)?!1:!(e!==void 0&&Qe(a)===e))}function zb(n,i,t){return t.some(e=>Ho(n,i,e))}function Ho(n,i,t){return(n.hasChildren()||i.length>0)&&t.pathMatch==="full"?!1:t.path===""}function jb(n,i,t){return i.length===0&&!n.hasChildren()}var sc=class{};function Ub(n,i,t,e,a,r,o,s){return wt(this,null,function*(){return new lc(n,i,t,e,a,o,r,s).recognize()})}var Hb=31,lc=class{injector;configLoader;rootComponentType;config;urlTree;paramsInheritanceStrategy;urlSerializer;abortSignal;applyRedirects;absoluteRedirectCount=0;allowRedirects=!0;queryParams;constructor(i,t,e,a,r,o,s,l){this.injector=i,this.configLoader=t,this.rootComponentType=e,this.config=a,this.urlTree=r,this.paramsInheritanceStrategy=o,this.urlSerializer=s,this.abortSignal=l,this.applyRedirects=new rc(this.urlSerializer,this.urlTree),this.queryParams=Object.freeze(g({},this.urlTree.queryParams))}noMatchError(i){return new W(4002,`'${i.segmentGroup}'`)}recognize(){return wt(this,null,function*(){let i=Xm(this.urlTree.root,[],[],this.config).segmentGroup,{children:t,rootSnapshot:e}=yield this.match(i),a=new fe(e,t),r=new Ja("",a),o=du(e,[],this.urlTree.queryParams,this.urlTree.fragment);return o.queryParams=this.urlTree.queryParams,r.url=this.urlSerializer.serialize(o),{state:r,tree:o}})}match(i){return wt(this,null,function*(){let t=new qi([],Object.freeze({}),this.queryParams,this.urlTree.fragment,Object.freeze({}),tt,this.rootComponentType,null,{},this.injector);try{return{children:yield this.processSegmentGroup(this.injector,this.config,i,tt,t),rootSnapshot:t}}catch(e){if(e instanceof ir)return this.absoluteRedirectCount++,this.absoluteRedirectCount>Hb&&(this.allowRedirects=!1),this.urlTree=e.urlTree,this.queryParams=Object.freeze(g({},this.urlTree.queryParams)),this.match(e.urlTree.root);throw e instanceof mn?this.noMatchError(e):e}})}processSegmentGroup(i,t,e,a,r){return wt(this,null,function*(){if(e.segments.length===0&&e.hasChildren())return this.processChildren(i,t,e,r);let o=yield this.processSegment(i,t,e,e.segments,a,!0,r);return o instanceof fe?[o]:[]})}processChildren(i,t,e,a){return wt(this,null,function*(){let r=[];for(let l of Object.keys(e.children))l==="primary"?r.unshift(l):r.push(l);let o=[];for(let l of r){let d=e.children[l],m=Fb(t,l),_=yield this.processSegment(i,m,d,d.segments,l,!0,a);_ instanceof fe&&o.push(_)}let s=Iu(o);return $b(s),s})}processSegment(i,t,e,a,r,o,s){return wt(this,null,function*(){for(let l of t)try{return yield this.processSegmentAgainstRoute(l._injector??i,t,l,e,a,r,o,s)}catch(d){if(d instanceof mn||Cu(d))continue;throw d}if(jb(e,a))return new sc;throw new mn(e)})}processSegmentAgainstRoute(i,t,e,a,r,o,s,l){return wt(this,null,function*(){if(Qe(e)!==o&&(o===tt||!Ho(a,r,e)||!e.children?.length&&!e.loadChildren||r.length===0&&!a.hasChildren()))throw new mn(a);if(e.redirectTo===void 0)return this.matchSegmentAgainstRoute(i,a,e,r,o,l);if(this.allowRedirects&&s)return this.expandSegmentAgainstRouteUsingRedirect(i,a,t,e,r,o,l);throw new mn(a)})}expandSegmentAgainstRouteUsingRedirect(i,t,e,a,r,o,s){return wt(this,null,function*(){let{matched:l,parameters:d,consumedSegments:m,positionalParamSegments:_,remainingSegments:b}=Nu(t,a,r);if(!l)throw new mn(t);let M=this.createSnapshot(i,a,r,d,s);if(this.abortSignal.aborted)throw new Error(this.abortSignal.reason);let D=yield this.applyRedirects.applyRedirectCommands(m,a.redirectTo,_,Eu(M),i),Z=yield this.applyRedirects.lineralizeSegments(a,D);return this.processSegment(i,e,t,Z.concat(b),o,!1,s)})}createSnapshot(i,t,e,a,r){let o=new qi(e,a,this.queryParams,this.urlTree.fragment,qb(t),Qe(t),t.component??t._loadedComponent??null,t,Kb(t),i),s=uc(o,r,this.paramsInheritanceStrategy);return o.params=s.params,o.data=s.data,o}matchSegmentAgainstRoute(i,t,e,a,r,o){return wt(this,null,function*(){if(this.abortSignal.aborted)throw new Error(this.abortSignal.reason);let s=it=>this.createSnapshot(i,e,it.consumedSegments,it.parameters,o),l=yield Co(Pb(t,e,a,i,this.urlSerializer,s,this.abortSignal));if(e.path==="**"&&(t.children={}),!l?.matched)throw new mn(t);i=e._injector??i;let{routes:d}=yield this.getChildConfig(i,e,a),m=e._loadedInjector??i,{parameters:_,consumedSegments:b,remainingSegments:M}=l,D=this.createSnapshot(i,e,b,_,o),{segmentGroup:Z,slicedSegments:lt}=Xm(t,b,M,d,r),$t=Qe(e)===r;if($t&<.length===0&&Z.hasChildren()){let it=yield this.processChildren(m,d,Z,D);return new fe(D,it)}if($t&&d.length===0&<.length===0)return new fe(D,[]);let nt=yield this.processSegment(m,d,Z,lt,$t?tt:r,!0,D);if(!$t&&!(nt instanceof fe))throw new mn(t);return new fe(D,nt instanceof fe?[nt]:[])})}getChildConfig(i,t,e){return wt(this,null,function*(){if(t.children)return{routes:t.children,injector:i};if(t.loadChildren){if(t._loadedRoutes!==void 0){let r=t._loadedNgModuleFactory;return r&&!t._loadedInjector&&(t._loadedInjector=r.create(i).injector),{routes:t._loadedRoutes,injector:t._loadedInjector}}if(this.abortSignal.aborted)throw new Error(this.abortSignal.reason);if(yield Co(Nb(i,t,e,this.urlSerializer,this.abortSignal))){let r=yield this.configLoader.loadChildren(i,t);return t._loadedRoutes=r.routes,t._loadedInjector=r.injector,t._loadedNgModuleFactory=r.factory,r}throw Rb(t)}return{routes:[],injector:i}})}};function $b(n){n.sort((i,t)=>i.value.outlet===tt?-1:t.value.outlet===tt?1:i.value.outlet.localeCompare(t.value.outlet))}function Gb(n){let i=n.value.routeConfig;return i&&i.path===""}function Iu(n){let i=[],t=new Set;for(let a of n){if(!Gb(a)){i.push(a);continue}let r=i.find(o=>a.value.routeConfig===o.value.routeConfig);r!==void 0?(r.children.push(...a.children),t.add(r)):i.push(a)}for(let a of t){let r=Iu(a.children);i.push(new fe(a.value,r))}let e=i.filter(a=>!t.has(a));return Wb(e),e}function Wb(n){let i=Object.create(null);n.forEach(t=>{let e=i[t.value.outlet];if(e){let a=e.url.map(o=>o.toString()).join("/"),r=t.value.url.map(o=>o.toString()).join("/");throw new W(4006,!1)}i[t.value.outlet]=t.value})}function qb(n){return n.data||{}}function Kb(n){return n.resolve||{}}function Yb(n,i,t,e,a,r,o){return an(s=>wt(null,null,function*(){let{state:l,tree:d}=yield Ub(n,i,t,e,s.extractedUrl,a,r,o);return ct(g({},s),{targetSnapshot:l,urlAfterRedirects:d})}))}function Xb(n){return an(i=>{let{targetSnapshot:t,guards:{canActivateChecks:e}}=i;if(!e.length)return A(i);let a=new Set(e.map(s=>s.route)),r=new Set;for(let s of a)if(!r.has(s))for(let l of Au(s))r.add(l);let o=0;return Zt(r).pipe(Qn(s=>a.has(s)?Zb(s,t,n):(s.data=uc(s,s.parent,n).resolve,A(void 0))),Wt(()=>o++),il(1),an(s=>o===r.size?A(i):we))})}function Au(n){let i=n.children.map(t=>Au(t)).flat();return[n,...i]}function Zb(n,i,t){let e=n.routeConfig,a=n._resolve;return e?.title!==void 0&&!bu(e)&&(a[ar]=e.title),rn(()=>(n.data=uc(n,n.parent,t).resolve,Qb(a,n,i).pipe(st(r=>(n._resolvedData=r,n.data=g(g({},n.data),r),null)))))}function Qb(n,i,t){let e=Xl(n);if(e.length===0)return A({});let a={};return Zt(e).pipe(an(r=>Jb(n[r],i,t).pipe(Nn(),Wt(o=>{if(o instanceof si)throw Ya(new Cn,o);a[r]=o}))),il(1),st(()=>a),Ni(r=>Cu(r)?we:Vr(r)))}function Jb(n,i,t){let e=i._environmentInjector,a=Ji(n,e),r=a.resolve?a.resolve(i,t):le(e,()=>a(i,t));return li(r)}var gc=new v("");function cc(n){return Mt(i=>{let t=n(i);return t?Zt(t).pipe(st(()=>i)):A(i)})}var bc=(()=>{class n{buildTitle(t){let e,a=t.root;for(;a!==void 0;)e=this.getResolvedTitleForRoute(a)??e,a=a.children.find(r=>r.outlet===tt);return e}getResolvedTitleForRoute(t){return t.data[ar]}static \u0275fac=function(e){return new(e||n)};static \u0275prov=I({token:n,factory:()=>c(Ru)})}return n})(),Ru=(()=>{class n extends bc{title;constructor(t){super(),this.title=t}updateTitle(t){let e=this.buildTitle(t);e!==void 0&&this.title.setTitle(e)}static \u0275fac=function(e){return new(e||n)(T($m))};static \u0275prov=$({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})(),zn=new v("",{factory:()=>({})}),ta=new v(""),$o=(()=>{class n{componentLoaders=new WeakMap;childrenLoaders=new WeakMap;onLoadStartListener;onLoadEndListener;compiler=c(om);loadComponent(t,e){return wt(this,null,function*(){if(this.componentLoaders.get(e))return this.componentLoaders.get(e);if(e._loadedComponent)return Promise.resolve(e._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(e);let a=wt(this,null,function*(){try{let r=yield eu(le(t,()=>e.loadComponent())),o=yield Ou(gl(r));return this.onLoadEndListener&&this.onLoadEndListener(e),e._loadedComponent=o,o}finally{this.componentLoaders.delete(e)}});return this.componentLoaders.set(e,a),a})}loadChildren(t,e){if(this.childrenLoaders.get(e))return this.childrenLoaders.get(e);if(e._loadedRoutes)return Promise.resolve({routes:e._loadedRoutes,injector:e._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(e);let a=wt(this,null,function*(){try{let r=yield Tu(e,this.compiler,t,this.onLoadEndListener);return e._loadedRoutes=r.routes,e._loadedInjector=r.injector,e._loadedNgModuleFactory=r.factory,r}finally{this.childrenLoaders.delete(e)}});return this.childrenLoaders.set(e,a),a}static \u0275fac=function(e){return new(e||n)};static \u0275prov=I({token:n,factory:n.\u0275fac})}return n})();function Tu(n,i,t,e){return wt(this,null,function*(){let a=yield eu(le(t,()=>n.loadChildren())),r=yield Ou(gl(a)),o;r instanceof Qd||Array.isArray(r)?o=r:o=yield i.compileModuleAsync(r),e&&e(n);let s,l,d=!1,m;return Array.isArray(o)?(l=o,d=!0):(s=o.create(t).injector,m=o,l=s.get(ta,[],{optional:!0,self:!0}).flat()),{routes:l.map(fc),injector:s,factory:m}})}function Ou(n){return wt(this,null,function*(){return n})}var Go=(()=>{class n{static \u0275fac=function(e){return new(e||n)};static \u0275prov=I({token:n,factory:()=>c(tv)})}return n})(),tv=(()=>{class n{shouldProcessUrl(t){return!0}extract(t){return t}merge(t,e){return t}static \u0275fac=function(e){return new(e||n)};static \u0275prov=I({token:n,factory:n.\u0275fac})}return n})(),vc=new v(""),_c=new v("");function Fu(n,i,t,e){let a=n.get(_c),r=n.get(F);if(e){a.skipNextTransition=!1;return}if(!r.startViewTransition||a.skipNextTransition)return a.skipNextTransition=!1,new Promise(m=>setTimeout(m));let o,s=new Promise(m=>{o=m}),l=r.startViewTransition(()=>(o(),ev(n)));l.updateCallbackDone.catch(m=>{}),l.ready.catch(m=>{}),l.finished.catch(m=>{});let{onViewTransitionCreated:d}=a;return d&&le(n,()=>d({transition:l,from:i,to:t})),s}function ev(n){return new Promise(i=>{Pt({read:()=>setTimeout(i)},{injector:n})})}var nv=()=>{},yc=new v(""),Wo=(()=>{class n{currentNavigation=X(null,{equal:()=>!1});currentTransition=null;lastSuccessfulNavigation=X(null);events=new E;transitionAbortWithErrorSubject=new E;configLoader=c($o);environmentInjector=c(zt);destroyRef=c(on);urlSerializer=c(Vn);rootContexts=c(Ln);location=c(ln);inputBindingEnabled=c(or,{optional:!0})!==null;titleStrategy=c(bc);options=c(zn,{optional:!0})||{};paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||ab;urlHandlingStrategy=c(Go);createViewTransition=c(vc,{optional:!0});navigationErrorHandler=c(yc,{optional:!0});routerResourcesFeature=c(gc,{optional:!0});navigationId=0;get hasRequestedNavigation(){return this.navigationId!==0}transitions;afterPreactivation=()=>A(void 0);rootComponentType=null;destroyed=!1;constructor(){let t=a=>this.events.next(new Fo(a)),e=a=>this.events.next(new Po(a));this.configLoader.onLoadEndListener=e,this.configLoader.onLoadStartListener=t,this.destroyRef.onDestroy(()=>{this.destroyed=!0})}complete(){this.transitions?.complete()}handleNavigationRequest(t){let e=++this.navigationId;et(()=>{this.transitions?.next(ct(g({},t),{extractedUrl:this.urlHandlingStrategy.extract(t.rawUrl),targetSnapshot:null,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null,id:e,routesRecognizeHandler:{},beforeActivateHandler:{}}))})}setupNavigations(t){return this.transitions=new xe(null),this.transitions.pipe(vt(e=>e!==null),Mt(e=>{let a=!0,r=!1,o=new AbortController,s=()=>!r&&this.currentTransition?.id===e.id;return A(e).pipe(Mt(l=>{if(this.navigationId>e.id)return this.cancelNavigationTransition(e,"",ae.SupersededByNewNavigation),we;this.currentTransition=e;let d=this.lastSuccessfulNavigation();this.currentNavigation.set({id:l.id,initialUrl:l.rawUrl,extractedUrl:l.extractedUrl,targetBrowserUrl:typeof l.extras.browserUrl=="string"?this.urlSerializer.parse(l.extras.browserUrl):l.extras.browserUrl,trigger:l.source,extras:l.extras,previousNavigation:d?ct(g({},d),{previousNavigation:null}):null,abort:()=>o.abort(),routesRecognizeHandler:l.routesRecognizeHandler,beforeActivateHandler:l.beforeActivateHandler});let m=!t.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),_=l.extras.onSameUrlNavigation??t.onSameUrlNavigation;if(!m&&_!=="reload")return this.events.next(new hn(l.id,this.urlSerializer.serialize(l.rawUrl),"",Ki.IgnoredSameUrlNavigation)),l.resolve(!1),we;if(this.urlHandlingStrategy.shouldProcessUrl(l.rawUrl))return A(l).pipe(Mt(b=>(this.events.next(new Bn(b.id,this.urlSerializer.serialize(b.extractedUrl),b.source,b.restoredState)),b.id!==this.navigationId?we:Promise.resolve(b))),Yb(this.environmentInjector,this.configLoader,this.rootComponentType,t.config,this.urlSerializer,this.paramsInheritanceStrategy,o.signal),Wt(b=>{e.targetSnapshot=b.targetSnapshot,e.urlAfterRedirects=b.urlAfterRedirects,this.currentNavigation.update(M=>(M.finalUrl=b.urlAfterRedirects,M)),this.events.next(new er)}),Mt(b=>Zt(e.routesRecognizeHandler.deferredHandle??A(void 0)).pipe(st(()=>b))),Wt(()=>{let b=new tr(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(b)}));if(m&&this.urlHandlingStrategy.shouldProcessUrl(l.currentRawUrl)){let{id:b,extractedUrl:M,source:D,restoredState:Z,extras:lt}=l,$t=new Bn(b,this.urlSerializer.serialize(M),D,Z);this.events.next($t);let nt=fu(this.rootComponentType,this.environmentInjector).snapshot;return this.currentTransition=e=ct(g({},l),{targetSnapshot:nt,urlAfterRedirects:M,extras:ct(g({},lt),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.update(it=>(it.finalUrl=M,it)),A(e)}else return this.events.next(new hn(l.id,this.urlSerializer.serialize(l.extractedUrl),"",Ki.IgnoredByUrlHandlingStrategy)),l.resolve(!1),we}),st(l=>{let d=new Ao(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);return this.events.next(d),this.currentTransition=e=ct(g({},l),{guards:db(l.targetSnapshot,l.currentSnapshot,this.rootContexts)}),e}),xb(l=>this.events.next(l)),Mt(l=>{if(e.guardsResult=l.guardsResult,l.guardsResult&&typeof l.guardsResult!="boolean")throw Ya(this.urlSerializer,l.guardsResult);let d=new Ro(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot,!!l.guardsResult);if(this.events.next(d),!s())return we;if(!l.guardsResult)return this.cancelNavigationTransition(l,"",ae.GuardRejected),we;if(l.guards.canActivateChecks.length===0)return A(l);let m=new To(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);if(this.events.next(m),!s())return we;let _=!1;return A(l).pipe(Xb(this.paramsInheritanceStrategy),Wt({next:()=>{_=!0;let b=new Oo(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(b)},complete:()=>{_||this.cancelNavigationTransition(l,"",ae.NoDataFromResolver)}}))}),cc(l=>{let d=_=>{let b=[];if(_.routeConfig?._loadedComponent)_.component=_.routeConfig?._loadedComponent;else if(_.routeConfig?.loadComponent){let M=_._environmentInjector;b.push(this.configLoader.loadComponent(M,_.routeConfig).then(D=>{_.component=D}))}for(let M of _.children)b.push(...d(M));return b},m=d(l.targetSnapshot.root);return m.length===0?A(l):Zt(Promise.all(m).then(()=>l))}),Mt(l=>{let{newlyCreatedRoutes:d,state:m}=ob(t.routeReuseStrategy,l.targetSnapshot,l.currentRouterState);return this.currentTransition=e=l=ct(g({},l),{targetRouterState:m,newlyCreatedRoutes:d}),this.currentNavigation.update(_=>(_.targetRouterState=m,_)),A(l)}),this.routerResourcesFeature?.setupAndRunResources(o.signal)??(l=>l),cc(()=>this.afterPreactivation()),Mt(()=>{let{currentSnapshot:l,targetSnapshot:d}=e,m=this.createViewTransition?.(this.environmentInjector,l.root,d.root,e.hasUAVisualTransition);return m?Zt(m).pipe(st(()=>e)):A(e)}),Gt(1),Mt(l=>{a=!1,this.events.next(new Xi);let d=e.beforeActivateHandler.deferredHandle;return d?Zt(d.then(()=>l)):A(l)}),Wt(l=>{new ac(t.routeReuseStrategy,e.targetRouterState,e.currentRouterState,d=>this.events.next(d),this.inputBindingEnabled).activate(this.rootContexts),l.newlyCreatedRoutes?.clear(),s()&&(Pu(l.targetRouterState),r=!0,this.currentNavigation.update(d=>(d.abort=nv,d)),this.lastSuccessfulNavigation.set(et(this.currentNavigation)),this.events.next(new Ee(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects))),this.titleStrategy?.updateTitle(l.targetRouterState.snapshot),l.resolve(!0))}),kt(ku(o.signal).pipe(vt(()=>!r&&a),Wt(()=>{this.cancelNavigationTransition(e,o.signal.reason+"",ae.Aborted)}))),Wt({complete:()=>{r=!0}}),kt(this.transitionAbortWithErrorSubject.pipe(Wt(l=>{throw l}))),Ai(()=>{o.abort(),r||this.cancelNavigationTransition(e,"",ae.SupersededByNewNavigation),this.currentTransition?.id===e.id&&(this.currentNavigation.set(null),this.currentTransition=null)}),Ni(l=>{if(r=!0,Zm(e),this.destroyed)return e.resolve(!1),we;if(l instanceof si&&(l=Ya(this.urlSerializer,l)),Su(l))this.events.next(new Be(e.id,this.urlSerializer.serialize(e.extractedUrl),l.message,l.cancellationCode)),cb(l)?this.events.next(new Zi(l.url,l.navigationBehaviorOptions)):e.resolve(!1);else{let d=new oi(e.id,this.urlSerializer.serialize(e.extractedUrl),l,e.targetSnapshot??void 0);try{let m=le(this.environmentInjector,()=>this.navigationErrorHandler?.(d));if(m instanceof si){let{message:_,cancellationCode:b}=Ya(this.urlSerializer,m);this.events.next(new Be(e.id,this.urlSerializer.serialize(e.extractedUrl),_,b)),this.events.next(new Zi(m.redirectTo,m.navigationBehaviorOptions))}else throw this.events.next(d),l}catch(m){this.options.resolveNavigationPromiseOnError?e.resolve(!1):e.reject(m)}}return we}))}))}cancelNavigationTransition(t,e,a){Zm(t);let r=new Be(t.id,this.urlSerializer.serialize(t.extractedUrl),e,a);this.events.next(r),t.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){let t=this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))),e=et(this.currentNavigation),a=e?.targetBrowserUrl??e?.extractedUrl;return t.toString()!==a?.toString()&&!e?.extras.skipLocationChange}static \u0275fac=function(e){return new(e||n)};static \u0275prov=I({token:n,factory:n.\u0275fac})}return n})();function iv(n){return n!==$i}function Zm(n){for(let i of n.newlyCreatedRoutes??[])i._localInjector?.destroy(),i._localInjector=void 0;Pu(n.targetRouterState)}function Pu(n){if(!n)return;let i=t=>{t.value.pending?.set(!1),t.children.forEach(i)};i(n._root)}var Lu=new v("");var Bu=(()=>{class n{static \u0275fac=function(e){return new(e||n)};static \u0275prov=I({token:n,factory:()=>c(av)})}return n})(),Uo=class{shouldDetach(i){return!1}store(i,t){}shouldAttach(i){return!1}retrieve(i){return null}shouldReuseRoute(i,t){return i.routeConfig===t.routeConfig}shouldDestroyInjector(i){return!0}},av=(()=>{class n extends Uo{static \u0275fac=function(e){return new(e||n)};static \u0275prov=I({token:n,factory:n.\u0275fac})}return n})(),qo=(()=>{class n{urlSerializer=c(Vn);options=c(zn,{optional:!0})||{};canceledNavigationResolution=this.options.canceledNavigationResolution||"replace";location=c(ln);urlHandlingStrategy=c(Go);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";currentUrlTree=new ge;getCurrentUrlTree(){return this.currentUrlTree}rawUrlTree=this.currentUrlTree;getRawUrlTree(){return this.rawUrlTree}createBrowserPath({finalUrl:t,initialUrl:e,targetBrowserUrl:a}){let r=t!==void 0?this.urlHandlingStrategy.merge(t,e):e,o=a??r;return o instanceof ge?this.urlSerializer.serialize(o):o}routerUrlState(t){return t?.targetBrowserUrl===void 0||t?.finalUrl===void 0?{}:{\u0275routerUrl:this.urlSerializer.serialize(t.finalUrl)}}commitTransition({targetRouterState:t,finalUrl:e,initialUrl:a}){e&&t?(this.currentUrlTree=e,this.rawUrlTree=this.urlHandlingStrategy.merge(e,a),this.routerState=t):this.rawUrlTree=a}routerState=fu(null,c(zt));getRouterState(){return this.routerState}_stateMemento=this.createStateMemento();get stateMemento(){return this._stateMemento}updateStateMemento(){this._stateMemento=this.createStateMemento()}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}restoredState(){return this.location.getState()}static \u0275fac=function(e){return new(e||n)};static \u0275prov=I({token:n,factory:()=>c(rv)})}return n})(),rv=(()=>{class n extends qo{currentPageId=0;lastSuccessfulId=-1;get browserPageId(){return this.canceledNavigationResolution!=="computed"?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}registerNonRouterCurrentEntryChangeListener(t){return this.location.subscribe(e=>{e.type==="popstate"&&setTimeout(()=>{t(e.url,e.state,"popstate",{replaceUrl:!0},e.hasUAVisualTransition)})})}handleRouterEvent(t,e){t instanceof Bn?this.updateStateMemento():t instanceof hn?this.commitTransition(e):t instanceof tr?this.urlUpdateStrategy==="eager"&&(e.extras.skipLocationChange||this.setBrowserUrl(this.createBrowserPath(e),e)):t instanceof Xi?(this.commitTransition(e),this.urlUpdateStrategy==="deferred"&&!e.extras.skipLocationChange&&this.setBrowserUrl(this.createBrowserPath(e),e)):t instanceof Be?yu(t)?t.code===ae.Redirect&&this.routerState===e.targetRouterState&&this.resetInternalState(e):this.restoreHistory(e):t instanceof oi?this.restoreHistory(e,!0):t instanceof Ee&&(this.lastSuccessfulId=t.id,this.currentPageId=this.browserPageId)}setBrowserUrl(t,e){let{extras:a,id:r}=e,{replaceUrl:o,state:s}=a;if(this.location.isCurrentPathEqualTo(t)||o){let l=this.browserPageId,d=g(g({},s),this.generateNgRouterState(r,l,e));this.location.replaceState(t,"",d)}else{let l=g(g({},s),this.generateNgRouterState(r,this.browserPageId+1,e));this.location.go(t,"",l)}}restoreHistory(t,e=!1){if(this.canceledNavigationResolution==="computed"){let a=this.browserPageId,r=this.currentPageId-a;r!==0?this.location.historyGo(r):this.getCurrentUrlTree()===t.finalUrl&&r===0&&(this.resetInternalState(t),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(e&&this.resetInternalState(t),this.resetUrlToCurrentUrlTree())}resetInternalState({finalUrl:t}){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,t??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.getRawUrlTree()),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(t,e,a){return this.canceledNavigationResolution==="computed"?g({navigationId:t,\u0275routerPageId:e},this.routerUrlState(a)):g({navigationId:t},this.routerUrlState(a))}static \u0275fac=function(e){return new(e||n)};static \u0275prov=I({token:n,factory:n.\u0275fac})}return n})();function Ko(n,i){n.events.pipe(vt(t=>t instanceof Ee||t instanceof Be||t instanceof oi||t instanceof hn),st(t=>t instanceof Ee||t instanceof hn?0:(t instanceof Be?t.code===ae.Redirect||t.code===ae.SupersededByNewNavigation:!1)?2:1),vt(t=>t!==2),Gt(1)).subscribe(()=>{i()})}var be=(()=>{class n{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}disposed=!1;nonRouterCurrentEntryChangeSubscription;console=c(dl);stateManager=c(qo);options=c(zn,{optional:!0})||{};pendingTasks=c(Pd);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";navigationTransitions=c(Wo);urlSerializer=c(Vn);location=c(ln);urlHandlingStrategy=c(Go);injector=c(zt);_events=new E;get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}navigated=!1;routeReuseStrategy=c(Bu);injectorCleanup=c(Lu,{optional:!0});onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore";config=c(ta,{optional:!0})?.flat()??[];componentInputBindingEnabled=!!c(or,{optional:!0});currentNavigation=this.navigationTransitions.currentNavigation.asReadonly();constructor(){this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this).subscribe({error:t=>{}}),this.subscribeToNavigationEvents()}eventsSubscription=new Et;subscribeToNavigationEvents(){let t=this.navigationTransitions.events.subscribe(e=>{try{let a=this.navigationTransitions.currentTransition,r=et(this.navigationTransitions.currentNavigation);if(a!==null&&r!==null){if(this.stateManager.handleRouterEvent(e,r),e instanceof Be&&e.code!==ae.Redirect&&e.code!==ae.SupersededByNewNavigation)this.navigated=!0;else if(e instanceof Ee)this.navigated=!0,this.injectorCleanup?.(this.routeReuseStrategy,this.routerState,this.config);else if(e instanceof Zi){let o=e.navigationBehaviorOptions,s=this.urlHandlingStrategy.merge(e.url,a.currentRawUrl),l=g({scroll:a.extras.scroll,browserUrl:a.extras.browserUrl,info:a.extras.info,skipLocationChange:a.extras.skipLocationChange,replaceUrl:a.extras.replaceUrl||this.urlUpdateStrategy==="eager"||iv(a.source)},o);this.scheduleNavigation(s,$i,null,l,a.hasUAVisualTransition,{resolve:a.resolve,reject:a.reject,promise:a.promise})}}rb(e)&&this._events.next(e)}catch(a){this.navigationTransitions.transitionAbortWithErrorSubject.next(a)}});this.eventsSubscription.add(t)}resetRootComponentType(t){this.routerState.root.component=t,this.navigationTransitions.rootComponentType=t}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),$i,this.stateManager.restoredState(),{replaceUrl:!0})}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((t,e,a,r,o)=>{this.navigateToSyncWithBrowser(t,a,e,r,o)})}navigateToSyncWithBrowser(t,e,a,r,o){let s=a?.navigationId?a:null,l=a?.\u0275routerUrl??t;if(a?.\u0275routerUrl&&(r=ct(g({},r),{browserUrl:t})),a){let m=g({},a);delete m.navigationId,delete m.\u0275routerPageId,delete m.\u0275routerUrl,Object.keys(m).length!==0&&(r.state=m)}let d=this.parseUrl(l);this.scheduleNavigation(d,e,s,r,o).catch(m=>{this.disposed||this.injector.get(Na)(m)})}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return et(this.navigationTransitions.currentNavigation)}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(t){this.config=t.map(fc),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this._events.unsubscribe(),this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription?.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0,this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(t,e={}){let{relativeTo:a,queryParams:r,fragment:o,queryParamsHandling:s,preserveFragment:l}=e,d=l?this.currentUrlTree.fragment:o,m=null;switch(s??this.options.defaultQueryParamsHandling){case"merge":m=g(g({},this.currentUrlTree.queryParams),r);break;case"preserve":m=this.currentUrlTree.queryParams;break;default:m=r||null}m!==null&&(m=this.removeEmptyProps(m));let _;try{let b=a?a.snapshot:this.routerState.snapshot.root;_=mu(b)}catch(b){(typeof t[0]!="string"||t[0][0]!=="/")&&(t=[]),_=this.currentUrlTree.root}return uu(_,t,m,d??null,this.urlSerializer)}navigateByUrl(t,e={skipLocationChange:!1}){let a=Pn(t)?t:this.parseUrl(t),r=this.urlHandlingStrategy.merge(a,this.rawUrlTree);return this.scheduleNavigation(r,$i,null,e)}navigate(t,e={skipLocationChange:!1}){return ov(t),this.navigateByUrl(this.createUrlTree(t,e),e)}serializeUrl(t){return this.urlSerializer.serialize(t)}parseUrl(t){try{return this.urlSerializer.parse(t)}catch(e){return this.console.warn(In(4018,!1)),this.urlSerializer.parse("/")}}isActive(t,e){let a;if(e===!0?a=g({},dc):e===!1?a=g({},Wi):a=g(g({},Wi),e),Pn(t))return ko(this.currentUrlTree,t,a);let r=this.parseUrl(t);return ko(this.currentUrlTree,r,a)}removeEmptyProps(t){return Object.entries(t).reduce((e,[a,r])=>(r!=null&&(e[a]=r),e),{})}scheduleNavigation(t,e,a,r,o,s){if(this.disposed)return Promise.resolve(!1);let l,d,m;s?(l=s.resolve,d=s.reject,m=s.promise):m=new Promise((b,M)=>{l=b,d=M});let _=this.pendingTasks.add();return Ko(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(_))}),this.navigationTransitions.handleNavigationRequest({source:e,restoredState:a,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:t,extras:r,hasUAVisualTransition:o,resolve:l,reject:d,promise:m,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),m.catch(Promise.reject.bind(Promise))}static \u0275fac=function(e){return new(e||n)};static \u0275prov=I({token:n,factory:n.\u0275fac})}return n})();function ov(n){for(let i=0;i<n.length;i++)if(n[i]==null)throw new W(4008,!1)}var sv=(()=>{class n{router=c(be);stateManager=c(qo);fragment=X("");queryParams=X({});path=X("");serializer=c(Vn);constructor(){this.updateState(),this.router.events?.subscribe(t=>{t instanceof Ee&&this.updateState()})}updateState(){let{fragment:t,root:e,queryParams:a}=this.stateManager.getCurrentUrlTree();this.fragment.set(t),this.queryParams.set(a),this.path.set(this.serializer.serialize(new ge(e)))}static \u0275fac=function(e){return new(e||n)};static \u0275prov=I({token:n,factory:n.\u0275fac})}return n})(),Ve=(()=>{class n{router;route;tabIndexAttribute;renderer;el;locationStrategy;hrefAttributeValue=c(new Jr("href"),{optional:!0});reactiveHref=fl(()=>{if(!this.isAnchorElement)return this.hrefAttributeValue;this.reactiveRouterState.path(),this._preserveFragment()&&this.reactiveRouterState.fragment();let t=e=>e==="preserve"||e==="merge";return(t(this._queryParamsHandling())||t(this.options?.defaultQueryParamsHandling))&&this.reactiveRouterState.queryParams(),this.computeHref(this.createUrlTree())});get href(){return et(this.reactiveHref)}set href(t){this.reactiveHref.set(t)}set target(t){this._target.set(t)}get target(){return et(this._target)}_target=X(void 0);set queryParams(t){this._queryParams.set(t)}get queryParams(){return et(this._queryParams)}_queryParams=X(void 0,{equal:()=>!1});set fragment(t){this._fragment.set(t)}get fragment(){return et(this._fragment)}_fragment=X(void 0);set queryParamsHandling(t){this._queryParamsHandling.set(t)}get queryParamsHandling(){return et(this._queryParamsHandling)}_queryParamsHandling=X(void 0);set state(t){this._state.set(t)}get state(){return et(this._state)}_state=X(void 0,{equal:()=>!1});set info(t){this._info.set(t)}get info(){return et(this._info)}_info=X(void 0,{equal:()=>!1});set relativeTo(t){this._relativeTo.set(t)}get relativeTo(){return et(this._relativeTo)}_relativeTo=X(void 0);set preserveFragment(t){this._preserveFragment.set(t)}get preserveFragment(){return et(this._preserveFragment)}_preserveFragment=X(!1);set skipLocationChange(t){this._skipLocationChange.set(t)}get skipLocationChange(){return et(this._skipLocationChange)}_skipLocationChange=X(!1);set replaceUrl(t){this._replaceUrl.set(t)}get replaceUrl(){return et(this._replaceUrl)}_replaceUrl=X(!1);browserUrl=ii(void 0);isAnchorElement;onChanges=new E;applicationErrorHandler=c(Na);options=c(zn,{optional:!0});reactiveRouterState=c(sv);constructor(t,e,a,r,o,s){this.router=t,this.route=e,this.tabIndexAttribute=a,this.renderer=r,this.el=o,this.locationStrategy=s;let l=o.nativeElement.tagName?.toLowerCase();this.isAnchorElement=l==="a"||l==="area"||!!(typeof customElements=="object"&&customElements.get(l)?.observedAttributes?.includes?.("href"))}setTabIndexIfNotOnNativeEl(t){this.tabIndexAttribute!=null||this.isAnchorElement||this.applyAttributeValue("tabindex",t)}ngOnChanges(t){this.onChanges.next(this)}routerLinkInput=X(null);set routerLink(t){t==null?(this.routerLinkInput.set(null),this.setTabIndexIfNotOnNativeEl(null)):(Pn(t)?this.routerLinkInput.set(t):this.routerLinkInput.set(Array.isArray(t)?t:[t]),this.setTabIndexIfNotOnNativeEl("0"))}onClick(t,e,a,r,o){let s=this.urlTree;if(s===null||this.isAnchorElement&&(t!==0||e||a||r||o||typeof this.target=="string"&&this.target!="_self"))return!0;let l=this.browserUrl(),d=g({skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info},l!==void 0&&{browserUrl:l});return this.router.navigateByUrl(s,d)?.catch(m=>{this.applicationErrorHandler(m)}),!this.isAnchorElement}ngOnDestroy(){}applyAttributeValue(t,e){let a=this.renderer,r=this.el.nativeElement;e!==null?a.setAttribute(r,t,e):a.removeAttribute(r,t)}createUrlTree(){let t=this.routerLinkInput();return t===null||!this.router.createUrlTree?null:Pn(t)?t:this.router.createUrlTree(t,{relativeTo:this._relativeTo()!==void 0?this._relativeTo():this.route,queryParams:this._queryParams(),fragment:this._fragment(),queryParamsHandling:this._queryParamsHandling(),preserveFragment:this._preserveFragment()})}get urlTree(){return et(()=>this.createUrlTree())}computeHref(t){return t!==null&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(t))??"":null}static \u0275fac=function(e){return new(e||n)(U(be),U(Je),ol("tabindex"),U(pt),U(R),U(Ze))};static \u0275dir=x({type:n,selectors:[["","routerLink",""]],hostVars:2,hostBindings:function(e,a){e&1&&B("click",function(o){return a.onClick(o.button,o.ctrlKey,o.shiftKey,o.altKey,o.metaKey)}),e&2&&H("href",a.reactiveHref(),Xd)("target",a._target())},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[2,"preserveFragment","preserveFragment",j],skipLocationChange:[2,"skipLocationChange","skipLocationChange",j],replaceUrl:[2,"replaceUrl","replaceUrl",j],browserUrl:[1,"browserUrl"],routerLink:"routerLink"},features:[Dt]})}return n})(),wc=(()=>{class n{router;element;renderer;cdr;links;classes=[];routerEventsSubscription;linkInputChangesSubscription;_isActive=!1;get isActive(){return this._isActive}routerLinkActiveOptions={exact:!1};ariaCurrentWhenActive;isActiveChange=new Q;link=c(Ve,{optional:!0});constructor(t,e,a,r){this.router=t,this.element=e,this.renderer=a,this.cdr=r,this.routerEventsSubscription=t.events.subscribe(o=>{o instanceof Ee&&this.update()})}ngAfterContentInit(){A(this.links.changes,A(null)).pipe(Ea()).subscribe(t=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();let t=[...this.links.toArray(),this.link].filter(e=>!!e).map(e=>e.onChanges);this.linkInputChangesSubscription=Zt(t).pipe(Ea()).subscribe(e=>{this._isActive!==this.isLinkActive(this.router)(e)&&this.update()})}set routerLinkActive(t){if(t==null){this.classes=[];return}let e=Array.isArray(t)?t:t.split(" ");this.classes=e.filter(a=>!!a)}ngOnChanges(t){this.update()}ngOnDestroy(){this.routerEventsSubscription.unsubscribe(),this.linkInputChangesSubscription?.unsubscribe()}update(){!this.links||!this.router.navigated||this.routerLinkActiveOptions===null&&!this._isActive||queueMicrotask(()=>{let t=this.hasActiveLinks();this.classes.forEach(e=>{t?this.renderer.addClass(this.element.nativeElement,e):this.renderer.removeClass(this.element.nativeElement,e)}),t&&this.ariaCurrentWhenActive!==void 0?this.renderer.setAttribute(this.element.nativeElement,"aria-current",this.ariaCurrentWhenActive.toString()):this.renderer.removeAttribute(this.element.nativeElement,"aria-current"),this._isActive!==t&&(this._isActive=t,this.cdr.markForCheck(),this.isActiveChange.emit(t))})}isLinkActive(t){let e=this.routerLinkActiveOptions;if(e===null)return()=>!1;let a;return e===void 0?a=g({},Wi):lv(e)?a=e:e.exact??!1?a=g({},dc):a=g({},Wi),r=>{let o=r.urlTree;return o?et(mc(o,t,a)):!1}}hasActiveLinks(){let t=this.isLinkActive(this.router);return this.link&&t(this.link)||this.links.some(t)}static \u0275fac=function(e){return new(e||n)(U(be),U(R),U(pt),U(xt))};static \u0275dir=x({type:n,selectors:[["","routerLinkActive",""]],contentQueries:function(e,a,r){if(e&1&&ne(r,Ve,5),e&2){let o;P(o=L())&&(a.links=o)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],features:[Dt]})}return n})();function lv(n){let i=n;return!!(i.paths||i.matrixParams||i.queryParams||i.fragment)}var lr=class{};var Vu=(()=>{class n{router;injector;preloadingStrategy;loader;subscription;constructor(t,e,a,r){this.router=t,this.injector=e,this.preloadingStrategy=a,this.loader=r}setUpPreloading(){this.subscription=this.router.events.pipe(vt(t=>t instanceof Ee),Qn(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription?.unsubscribe()}processRoutes(t,e){let a=[];for(let r of e){r.providers&&!r._injector&&(r._injector=qr(r.providers,t,""));let o=r._injector??t;r._loadedNgModuleFactory&&!r._loadedInjector&&(r._loadedInjector=r._loadedNgModuleFactory.create(o).injector);let s=r._loadedInjector??o;(r.loadChildren&&!r._loadedRoutes&&r.canLoad===void 0||r.loadComponent&&!r._loadedComponent)&&a.push(this.preloadConfig(o,r)),(r.children||r._loadedRoutes)&&a.push(this.processRoutes(s,r.children??r._loadedRoutes))}return Zt(a).pipe(Ea())}preloadConfig(t,e){return this.preloadingStrategy.preload(e,()=>{if(t.destroyed)return A(null);let a;e.loadChildren&&e.canLoad===void 0?a=Zt(this.loader.loadChildren(t,e)):a=A(null);let r=a.pipe(an(o=>o===null?A(void 0):(e._loadedRoutes=o.routes,e._loadedInjector=o.injector,e._loadedNgModuleFactory=o.factory,this.processRoutes(o.injector??t,o.routes))));if(e.loadComponent&&!e._loadedComponent){let o=this.loader.loadComponent(t,e);return Zt([r,o]).pipe(Ea())}else return r})}static \u0275fac=function(e){return new(e||n)(T(be),T(zt),T(lr),T($o))};static \u0275prov=$({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})(),zu=new v(""),cv=(()=>{class n{options;routerEventsSubscription;scrollEventsSubscription;lastId=0;lastSource=$i;restoredId=0;store={};isHydrating=c(Ud,{optional:!0})??!1;urlSerializer=c(Vn);zone=c(O);viewportScroller=c(Dl);transitions=c(Wo);constructor(t){this.options=t,this.options.scrollPositionRestoration||="disabled",this.options.anchorScrolling||="disabled",this.isHydrating&&c(Ye).whenStable().then(()=>{this.isHydrating=!1})}init(){this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(t=>{t instanceof Bn?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=t.navigationTrigger,this.restoredId=t.restoredState?t.restoredState.navigationId:0):t instanceof Ee?(this.lastId=t.id,this.scheduleScrollEvent(t,this.urlSerializer.parse(t.urlAfterRedirects).fragment)):t instanceof hn&&t.code===Ki.IgnoredSameUrlNavigation&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(t,this.urlSerializer.parse(t.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(t=>{if(!(t instanceof Yi)||t.scrollBehavior==="manual")return;let e={behavior:"instant"};t.position?this.options.scrollPositionRestoration==="top"?this.viewportScroller.scrollToPosition([0,0],e):this.options.scrollPositionRestoration==="enabled"&&this.viewportScroller.scrollToPosition(t.position,e):t.anchor&&this.options.anchorScrolling==="enabled"?this.viewportScroller.scrollToAnchor(t.anchor):this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.scrollToPosition([0,0])})}scheduleScrollEvent(t,e){if(this.isHydrating)return;let a=et(this.transitions.currentNavigation)?.extras.scroll;this.zone.runOutsideAngular(()=>wt(this,null,function*(){yield new Promise(r=>{setTimeout(r),typeof requestAnimationFrame<"u"&&requestAnimationFrame(r)}),this.zone.run(()=>{this.transitions.events.next(new Yi(t,this.lastSource==="popstate"?this.store[this.restoredId]:null,e,a))})}))}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}static \u0275fac=function(e){Rn()};static \u0275prov=$({token:n,factory:n.\u0275fac})}return n})();function dv(){return c(be).routerState.root}function cr(n,i){return{\u0275kind:n,\u0275providers:i}}function mv(){let n=c(K);return i=>{let t=n.get(Ye);if(i!==t.components[0])return;let e=n.get(be),a=n.get(ju);n.get(Sc)===1&&e.initialNavigation(),n.get($u,null,{optional:!0})?.setUpPreloading(),n.get(zu,null,{optional:!0})?.init(),e.resetRootComponentType(t.componentTypes[0]),a.closed||(a.next(),a.complete(),a.unsubscribe())}}var ju=new v("",{factory:()=>new E}),Sc=new v("",{factory:()=>1});function Uu(){let n=[{provide:sl,useValue:!0},{provide:Sc,useValue:0},ll(()=>{let i=c(K);return i.get(yl,Promise.resolve()).then(()=>new Promise(e=>{let a=i.get(be),r=i.get(ju);Ko(a,()=>{e(!0)}),i.get(Wo).afterPreactivation=()=>(e(!0),r.closed?A(void 0):r),a.initialNavigation()}))})];return cr(2,n)}function Hu(){let n=[ll(()=>{c(be).setUpLocationChangeListener()}),{provide:Sc,useValue:2}];return cr(3,n)}var $u=new v("");function Gu(n){return cr(0,[{provide:$u,useExisting:Vu},{provide:lr,useExisting:n}])}function Wu(n={}){return cr(8,[{provide:or,useFactory:()=>new _u(n,c(gc,{optional:!0}))}])}function qu(n){Ra("NgRouterViewTransitions");let i=[{provide:vc,useValue:Fu},{provide:_c,useValue:g({skipNextTransition:!!n?.skipInitialTransition},n)}];return cr(9,i)}var Ku=[ln,{provide:Vn,useClass:Cn},be,Ln,{provide:Je,useFactory:dv},$o],Yo=(()=>{class n{constructor(){}static forRoot(t,e){return{ngModule:n,providers:[Ku,[],{provide:ta,multi:!0,useValue:t},[],e?.errorHandler?{provide:yc,useValue:e.errorHandler}:[],{provide:zn,useValue:e||{}},e?.useHash?hv():pv(),uv(),e?.preloadingStrategy?Gu(e.preloadingStrategy).\u0275providers:[],e?.initialNavigation?fv(e):[],e?.bindToComponentInputs?Wu(typeof e.bindToComponentInputs=="object"?e.bindToComponentInputs:{}).\u0275providers:[],e?.enableViewTransitions?qu().\u0275providers:[],gv()]}}static forChild(t){return{ngModule:n,providers:[{provide:ta,multi:!0,useValue:t}]}}static \u0275fac=function(e){return new(e||n)};static \u0275mod=Y({type:n});static \u0275inj=q({})}return n})();function uv(){return{provide:zu,useFactory:()=>{let n=c(Dl),i=c(zn);return i.scrollOffset&&n.setOffset(i.scrollOffset),new cv(i)}}}function hv(){return{provide:Ze,useClass:xl}}function pv(){return{provide:Ze,useClass:io}}function fv(n){return[n.initialNavigation==="disabled"?Hu().\u0275providers:[],n.initialNavigation==="enabledBlocking"?Uu().\u0275providers:[]]}var xc=new v("");function gv(){return[{provide:xc,useFactory:mv},{provide:ul,multi:!0,useExisting:xc}]}function ci(n){return n.buttons===0||n.detail===0}function di(n){let i=n.touches&&n.touches[0]||n.changedTouches&&n.changedTouches[0];return!!i&&i.identifier===-1&&(i.radiusX==null||i.radiusX===1)&&(i.radiusY==null||i.radiusY===1)}var Cc;function Yu(){if(Cc==null){let n=typeof document<"u"?document.head:null;Cc=!!(n&&(n.createShadowRoot||n.attachShadow))}return Cc}function kc(n){if(Yu()){let i=n.getRootNode?n.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&i instanceof ShadowRoot)return i}return null}function jn(){let n=typeof document<"u"&&document?document.activeElement:null;for(;n&&n.shadowRoot;){let i=n.shadowRoot.activeElement;if(i===n)break;n=i}return n}function ce(n){if(n.composedPath)try{return n.composedPath()[0]}catch(i){}return n.target}var Mc;try{Mc=typeof Intl<"u"&&Intl.v8BreakIterator}catch(n){Mc=!1}var ut=(()=>{class n{_platformId=c(Ri);isBrowser=this._platformId?_m(this._platformId):typeof document=="object"&&!!document;EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent);TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent);BLINK=this.isBrowser&&!!(window.chrome||Mc)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT;WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT;IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window);FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent);ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT;SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT;static \u0275fac=function(e){return new(e||n)};static \u0275prov=I({token:n,factory:n.\u0275fac})}return n})();var dr;function Xu(){if(dr==null&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>dr=!0}))}finally{dr=dr||!1}return dr}function ea(n){return Xu()?n:!!n.capture}function pn(n,i=0){return Zu(n)?Number(n):arguments.length===2?i:0}function Zu(n){return!isNaN(parseFloat(n))&&!isNaN(Number(n))}function ve(n){return n instanceof R?n.nativeElement:n}var Qu=new v("cdk-input-modality-detector-options"),Ju={ignoreKeys:[18,17,224,91,16]},th=650,Dc={passive:!0,capture:!0},eh=(()=>{class n{_platform=c(ut);_listenerCleanups;modalityDetected;modalityChanged;get mostRecentModality(){return this._modality.value}_mostRecentTarget=null;_modality=new xe(null);_options;_lastTouchMs=0;_onKeydown=t=>{this._options?.ignoreKeys?.some(e=>e===t.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=ce(t))};_onMousedown=t=>{Date.now()-this._lastTouchMs<th||(this._modality.next(ci(t)?"keyboard":"mouse"),this._mostRecentTarget=ce(t))};_onTouchstart=t=>{if(di(t)){this._modality.next("keyboard");return}this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=ce(t)};constructor(){let t=c(O),e=c(F),a=c(Qu,{optional:!0});if(this._options=g(g({},Ju),a),this.modalityDetected=this._modality.pipe(Hr(1)),this.modalityChanged=this.modalityDetected.pipe(nl()),this._platform.isBrowser){let r=c(Jt).createRenderer(null,null);this._listenerCleanups=t.runOutsideAngular(()=>[r.listen(e,"keydown",this._onKeydown,Dc),r.listen(e,"mousedown",this._onMousedown,Dc),r.listen(e,"touchstart",this._onTouchstart,Dc)])}}ngOnDestroy(){this._modality.complete(),this._listenerCleanups?.forEach(t=>t())}static \u0275fac=function(e){return new(e||n)};static \u0275prov=I({token:n,factory:n.\u0275fac})}return n})(),mr=(function(n){return n[n.IMMEDIATE=0]="IMMEDIATE",n[n.EVENTUAL=1]="EVENTUAL",n})(mr||{}),nh=new v("cdk-focus-monitor-default-options"),Zo=ea({passive:!0,capture:!0}),fn=(()=>{class n{_ngZone=c(O);_platform=c(ut);_inputModalityDetector=c(eh);_origin=null;_lastFocusOrigin=null;_windowFocused=!1;_windowFocusTimeoutId;_originTimeoutId;_originFromTouchInteraction=!1;_elementInfo=new Map;_monitoredElementCount=0;_rootNodeFocusListenerCount=new Map;_detectionMode;_windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=setTimeout(()=>this._windowFocused=!1)};_document=c(F);_stopInputModalityDetector=new E;constructor(){let t=c(nh,{optional:!0});this._detectionMode=t?.detectionMode||mr.IMMEDIATE}_rootNodeFocusAndBlurListener=t=>{let e=ce(t);for(let a=e;a;a=a.parentElement)t.type==="focus"?this._onFocus(t,a):this._onBlur(t,a)};monitor(t,e=!1){let a=ve(t);if(!this._platform.isBrowser||a.nodeType!==1)return A();let r=kc(a)||this._document,o=this._elementInfo.get(a);if(o)return e&&(o.checkChildren=!0),o.subject;let s={checkChildren:e,subject:new E,rootNode:r};return this._elementInfo.set(a,s),this._registerGlobalListeners(s),s.subject}stopMonitoring(t){let e=ve(t),a=this._elementInfo.get(e);a&&(a.subject.complete(),this._setClasses(e),this._elementInfo.delete(e),this._removeGlobalListeners(a))}focusVia(t,e,a){let r=ve(t),o=this._document.activeElement;r===o?this._getClosestElementsInfo(r).forEach(([s,l])=>this._originChanged(s,e,l)):(this._setOrigin(e),typeof r.focus=="function"&&r.focus(a))}ngOnDestroy(){this._elementInfo.forEach((t,e)=>this.stopMonitoring(e))}_getWindow(){return this._document.defaultView||window}_getFocusOrigin(t){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(t)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:t&&this._isLastInteractionFromInputLabel(t)?"mouse":"program"}_shouldBeAttributedToTouch(t){return this._detectionMode===mr.EVENTUAL||!!t?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(t,e){t.classList.toggle("cdk-focused",!!e),t.classList.toggle("cdk-touch-focused",e==="touch"),t.classList.toggle("cdk-keyboard-focused",e==="keyboard"),t.classList.toggle("cdk-mouse-focused",e==="mouse"),t.classList.toggle("cdk-program-focused",e==="program")}_setOrigin(t,e=!1){this._ngZone.runOutsideAngular(()=>{if(this._origin=t,this._originFromTouchInteraction=t==="touch"&&e,this._detectionMode===mr.IMMEDIATE){clearTimeout(this._originTimeoutId);let a=this._originFromTouchInteraction?th:1;this._originTimeoutId=setTimeout(()=>this._origin=null,a)}})}_onFocus(t,e){let a=this._elementInfo.get(e),r=ce(t);!a||!a.checkChildren&&e!==r||this._originChanged(e,this._getFocusOrigin(r),a)}_onBlur(t,e){let a=this._elementInfo.get(e);!a||a.checkChildren&&t.relatedTarget instanceof Node&&e.contains(t.relatedTarget)||(this._setClasses(e),this._emitOrigin(a,null))}_emitOrigin(t,e){t.subject.observers.length&&this._ngZone.run(()=>t.subject.next(e))}_registerGlobalListeners(t){if(!this._platform.isBrowser)return;let e=t.rootNode,a=this._rootNodeFocusListenerCount.get(e)||0;a||this._ngZone.runOutsideAngular(()=>{e.addEventListener("focus",this._rootNodeFocusAndBlurListener,Zo),e.addEventListener("blur",this._rootNodeFocusAndBlurListener,Zo)}),this._rootNodeFocusListenerCount.set(e,a+1),++this._monitoredElementCount===1&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(kt(this._stopInputModalityDetector)).subscribe(r=>{this._setOrigin(r,!0)}))}_removeGlobalListeners(t){let e=t.rootNode;if(this._rootNodeFocusListenerCount.has(e)){let a=this._rootNodeFocusListenerCount.get(e);a>1?this._rootNodeFocusListenerCount.set(e,a-1):(e.removeEventListener("focus",this._rootNodeFocusAndBlurListener,Zo),e.removeEventListener("blur",this._rootNodeFocusAndBlurListener,Zo),this._rootNodeFocusListenerCount.delete(e))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(t,e,a){this._setClasses(t,e),this._emitOrigin(a,e),this._lastFocusOrigin=e}_getClosestElementsInfo(t){let e=[];return this._elementInfo.forEach((a,r)=>{(r===t||a.checkChildren&&r.contains(t))&&e.push([r,a])}),e}_isLastInteractionFromInputLabel(t){let{_mostRecentTarget:e,mostRecentModality:a}=this._inputModalityDetector;if(a!=="mouse"||!e||e===t||t.nodeName!=="INPUT"&&t.nodeName!=="TEXTAREA"||t.disabled)return!1;let r=t.labels;if(r){for(let o=0;o<r.length;o++)if(r[o].contains(e))return!0}return!1}static \u0275fac=function(e){return new(e||n)};static \u0275prov=I({token:n,factory:n.\u0275fac})}return n})();var Qo=new WeakMap,Bt=(()=>{class n{_appRef;_injector=c(K);_environmentInjector=c(zt);load(t){let e=this._appRef=this._appRef||this._injector.get(Ye),a=Qo.get(e);a||(a={loaders:new Set,refs:[]},Qo.set(e,a),e.onDestroy(()=>{Qo.get(e)?.refs.forEach(r=>r.destroy()),Qo.delete(e)})),a.loaders.has(t)||(a.loaders.add(t),a.refs.push(to(t,{environmentInjector:this._environmentInjector})))}static \u0275fac=function(e){return new(e||n)};static \u0275prov=I({token:n,factory:n.\u0275fac})}return n})();var na=(()=>{class n{static \u0275fac=function(e){return new(e||n)};static \u0275cmp=S({type:n,selectors:[["ng-component"]],exportAs:["cdkVisuallyHidden"],decls:0,vars:0,template:function(e,a){},styles:[`.cdk-visually-hidden {
|
|
border: 0;
|
|
clip: rect(0 0 0 0);
|
|
height: 1px;
|
|
margin: -1px;
|
|
overflow: hidden;
|
|
padding: 0;
|
|
position: absolute;
|
|
width: 1px;
|
|
white-space: nowrap;
|
|
outline: 0;
|
|
-webkit-appearance: none;
|
|
-moz-appearance: none;
|
|
left: 0;
|
|
}
|
|
[dir=rtl] .cdk-visually-hidden {
|
|
left: auto;
|
|
right: 0;
|
|
}
|
|
`],encapsulation:2})}return n})(),Jo;function bv(){if(Jo===void 0&&(Jo=null,typeof window<"u")){let n=window;if(n.trustedTypes!==void 0)try{Jo=n.trustedTypes.createPolicy("angular#components",{createHTML:i=>i})}catch(i){console.error(i)}}return Jo}function mi(n){return bv()?.createHTML(n)||n}function ih(n,i,t){let e=t.sanitize(he.HTML,i);n.innerHTML=mi(e||"")}function kn(n){return Array.isArray(n)?n:[n]}var ah=new Set,ui,ts=(()=>{class n{_platform=c(ut);_nonce=c(ti,{optional:!0});_matchMedia;constructor(){this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):_v}matchMedia(t){return(this._platform.WEBKIT||this._platform.BLINK)&&vv(t,this._nonce),this._matchMedia(t)}static \u0275fac=function(e){return new(e||n)};static \u0275prov=I({token:n,factory:n.\u0275fac})}return n})();function vv(n,i){if(!ah.has(n))try{ui||(ui=document.createElement("style"),i&&ui.setAttribute("nonce",i),ui.setAttribute("type","text/css"),document.head.appendChild(ui)),ui.sheet&&(ui.sheet.insertRule(`@media ${n.replace(/[{}]/g,"")} {body{ }}`,0),ah.add(n))}catch(t){console.error(t)}}function _v(n){return{matches:n==="all"||n==="",media:n,addListener:()=>{},removeListener:()=>{}}}var ur=(()=>{class n{_mediaMatcher=c(ts);_zone=c(O);_queries=new Map;_destroySubject=new E;ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(t){return rh(kn(t)).some(a=>this._registerQuery(a).mql.matches)}observe(t){let a=rh(kn(t)).map(o=>this._registerQuery(o).observable),r=Da(a);return r=jr(r.pipe(Gt(1)),r.pipe(Hr(1),Ii(0))),r.pipe(st(o=>{let s={matches:!1,breakpoints:{}};return o.forEach(({matches:l,query:d})=>{s.matches=s.matches||l,s.breakpoints[d]=l}),s}))}_registerQuery(t){if(this._queries.has(t))return this._queries.get(t);let e=this._mediaMatcher.matchMedia(t),r={observable:new oe(o=>{let s=l=>this._zone.run(()=>o.next(l));return e.addListener(s),()=>{e.removeListener(s)}}).pipe(Ft(e),st(({matches:o})=>({query:t,matches:o})),kt(this._destroySubject)),mql:e};return this._queries.set(t,r),r}static \u0275fac=function(e){return new(e||n)};static \u0275prov=I({token:n,factory:n.\u0275fac})}return n})();function rh(n){return n.map(i=>i.split(",")).reduce((i,t)=>i.concat(t)).map(i=>i.trim())}function yv(n){if(n.type==="characterData"&&n.target instanceof Comment)return!0;if(n.type==="childList"){for(let i=0;i<n.addedNodes.length;i++)if(!(n.addedNodes[i]instanceof Comment))return!1;for(let i=0;i<n.removedNodes.length;i++)if(!(n.removedNodes[i]instanceof Comment))return!1;return!0}return!1}var oh=(()=>{class n{create(t){return typeof MutationObserver>"u"?null:new MutationObserver(t)}static \u0275fac=function(e){return new(e||n)};static \u0275prov=I({token:n,factory:n.\u0275fac})}return n})(),xv=(()=>{class n{_mutationObserverFactory=c(oh);_observedElements=new Map;_ngZone=c(O);ngOnDestroy(){this._observedElements.forEach((t,e)=>this._cleanupObserver(e))}observe(t){let e=ve(t);return new oe(a=>{let o=this._observeElement(e).pipe(st(s=>s.filter(l=>!yv(l))),vt(s=>!!s.length)).subscribe(s=>{this._ngZone.run(()=>{a.next(s)})});return()=>{o.unsubscribe(),this._unobserveElement(e)}})}_observeElement(t){return this._ngZone.runOutsideAngular(()=>{if(this._observedElements.has(t))this._observedElements.get(t).count++;else{let e=new E,a=this._mutationObserverFactory.create(r=>e.next(r));a&&a.observe(t,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(t,{observer:a,stream:e,count:1})}return this._observedElements.get(t).stream})}_unobserveElement(t){this._observedElements.has(t)&&(this._observedElements.get(t).count--,this._observedElements.get(t).count||this._cleanupObserver(t))}_cleanupObserver(t){if(this._observedElements.has(t)){let{observer:e,stream:a}=this._observedElements.get(t);e&&e.disconnect(),a.complete(),this._observedElements.delete(t)}}static \u0275fac=function(e){return new(e||n)};static \u0275prov=I({token:n,factory:n.\u0275fac})}return n})(),sh=(()=>{class n{_contentObserver=c(xv);_elementRef=c(R);event=new Q;get disabled(){return this._disabled}set disabled(t){this._disabled=t,this._disabled?this._unsubscribe():this._subscribe()}_disabled=!1;get debounce(){return this._debounce}set debounce(t){this._debounce=pn(t),this._subscribe()}_debounce;_currentSubscription=null;ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();let t=this._contentObserver.observe(this._elementRef);this._currentSubscription=(this.debounce?t.pipe(Ii(this.debounce)):t).subscribe(this.event)}_unsubscribe(){this._currentSubscription?.unsubscribe()}static \u0275fac=function(e){return new(e||n)};static \u0275dir=x({type:n,selectors:[["","cdkObserveContent",""]],inputs:{disabled:[2,"cdkObserveContentDisabled","disabled",j],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]})}return n})(),es=(()=>{class n{static \u0275fac=function(e){return new(e||n)};static \u0275mod=Y({type:n});static \u0275inj=q({providers:[oh]})}return n})();var Nc=(()=>{class n{_platform=c(ut);isDisabled(t){return t.hasAttribute("disabled")}isVisible(t){return Sv(t)&&getComputedStyle(t).visibility==="visible"}isTabbable(t){if(!this._platform.isBrowser)return!1;let e=wv(Av(t));if(e&&(lh(e)===-1||!this.isVisible(e)))return!1;let a=t.nodeName.toLowerCase(),r=lh(t);return t.hasAttribute("contenteditable")?r!==-1:a==="iframe"||a==="object"||this._platform.WEBKIT&&this._platform.IOS&&!Nv(t)?!1:a==="audio"?t.hasAttribute("controls")?r!==-1:!1:a==="video"?r===-1?!1:r!==null?!0:this._platform.FIREFOX||t.hasAttribute("controls"):t.tabIndex>=0}isFocusable(t,e){return Iv(t)&&!this.isDisabled(t)&&(e?.ignoreInert||!t.closest?.("[inert]"))&&(e?.ignoreVisibility||this.isVisible(t))}static \u0275fac=function(e){return new(e||n)};static \u0275prov=I({token:n,factory:n.\u0275fac})}return n})();function wv(n){try{return n.frameElement}catch(i){return null}}function Sv(n){return!!(n.offsetWidth||n.offsetHeight||typeof n.getClientRects=="function"&&n.getClientRects().length)}function Cv(n){let i=n.nodeName.toLowerCase();return i==="input"||i==="select"||i==="button"||i==="textarea"}function kv(n){return Dv(n)&&n.type=="hidden"}function Mv(n){return Ev(n)&&n.hasAttribute("href")}function Dv(n){return n.nodeName.toLowerCase()=="input"}function Ev(n){return n.nodeName.toLowerCase()=="a"}function ch(n){if(!n.hasAttribute("tabindex")||n.tabIndex===void 0)return!1;let i=n.getAttribute("tabindex");return!!(i&&!isNaN(parseInt(i,10)))}function lh(n){if(!ch(n))return null;let i=parseInt(n.getAttribute("tabindex")||"",10);return isNaN(i)?-1:i}function Nv(n){let i=n.nodeName.toLowerCase(),t=i==="input"&&n.type;return t==="text"||t==="password"||i==="select"||i==="textarea"}function Iv(n){return kv(n)?!1:Cv(n)||Mv(n)||n.hasAttribute("contenteditable")||ch(n)}function Av(n){return n.ownerDocument&&n.ownerDocument.defaultView||window}var Ec=class{_element;_checker;_ngZone;_document;_injector;_startAnchor=null;_endAnchor=null;_hasAttached=!1;startAnchorListener=()=>{!this.focusLastTabbableElement()&&this._checker.isFocusable(this._element)&&this._element.focus()};endAnchorListener=()=>{!this.focusFirstTabbableElement()&&this._checker.isFocusable(this._element)&&this._element.focus()};get enabled(){return this._enabled}set enabled(i){this._enabled=i,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(i,this._startAnchor),this._toggleAnchorTabIndex(i,this._endAnchor))}_enabled=!0;constructor(i,t,e,a,r=!1,o){this._element=i,this._checker=t,this._ngZone=e,this._document=a,this._injector=o,r||this.attachAnchors()}destroy(){let i=this._startAnchor,t=this._endAnchor;i&&(i.removeEventListener("focus",this.startAnchorListener),i.remove()),t&&(t.removeEventListener("focus",this.endAnchorListener),t.remove()),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}attachAnchors(){return this._hasAttached?!0:(this._ngZone.runOutsideAngular(()=>{this._startAnchor||(this._startAnchor=this._createAnchor(),this._startAnchor.addEventListener("focus",this.startAnchorListener)),this._endAnchor||(this._endAnchor=this._createAnchor(),this._endAnchor.addEventListener("focus",this.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}focusInitialElementWhenReady(i){return new Promise(t=>{this._executeOnStable(()=>t(this.focusInitialElement(i)))})}focusFirstTabbableElementWhenReady(i){return new Promise(t=>{this._executeOnStable(()=>t(this.focusFirstTabbableElement(i)))})}focusLastTabbableElementWhenReady(i){return new Promise(t=>{this._executeOnStable(()=>t(this.focusLastTabbableElement(i)))})}_getRegionBoundary(i){let t=this._element.querySelectorAll(`[cdk-focus-region-${i}], [cdkFocusRegion${i}], [cdk-focus-${i}]`);return i=="start"?t.length?t[0]:this._getFirstTabbableElement(this._element):t.length?t[t.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(i){let t=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(t){if(!this._checker.isFocusable(t)){let e=this._getFirstTabbableElement(t);return e?.focus(i),!!e}return t.focus(i),!0}return this.focusFirstTabbableElement(i)}focusFirstTabbableElement(i){let t=this._getRegionBoundary("start");return t&&t.focus(i),!!t}focusLastTabbableElement(i){let t=this._getRegionBoundary("end");return t&&t.focus(i),!!t}hasAttached(){return this._hasAttached}_getFirstTabbableElement(i){if(this._checker.isFocusable(i)&&this._checker.isTabbable(i))return i;let t=i.children;for(let e=0;e<t.length;e++){let a=t[e].nodeType===this._document.ELEMENT_NODE?this._getFirstTabbableElement(t[e]):null;if(a)return a}return null}_getLastTabbableElement(i){if(this._checker.isFocusable(i)&&this._checker.isTabbable(i))return i;let t=i.children;for(let e=t.length-1;e>=0;e--){let a=t[e].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(t[e]):null;if(a)return a}return null}_createAnchor(){let i=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,i),i.classList.add("cdk-visually-hidden"),i.classList.add("cdk-focus-trap-anchor"),i.setAttribute("aria-hidden","true"),i}_toggleAnchorTabIndex(i,t){i?t.setAttribute("tabindex","0"):t.removeAttribute("tabindex")}toggleAnchors(i){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(i,this._startAnchor),this._toggleAnchorTabIndex(i,this._endAnchor))}_executeOnStable(i){Pt(i,{injector:this._injector})}},Ic=(()=>{class n{_checker=c(Nc);_ngZone=c(O);_document=c(F);_injector=c(K);constructor(){c(Bt).load(na)}create(t,e=!1){return new Ec(t,this._checker,this._ngZone,this._document,e,this._injector)}static \u0275fac=function(e){return new(e||n)};static \u0275prov=I({token:n,factory:n.\u0275fac})}return n})();var dh=new v("liveAnnouncerElement",{providedIn:"root",factory:()=>null}),mh=new v("LIVE_ANNOUNCER_DEFAULT_OPTIONS"),Rv=0,Ac=(()=>{class n{_ngZone=c(O);_defaultOptions=c(mh,{optional:!0});_liveElement;_document=c(F);_sanitizer=c(Ga);_previousTimeout;_currentPromise;_currentResolve;constructor(){let t=c(dh,{optional:!0});this._liveElement=t||this._createLiveElement()}announce(t,...e){let a=this._defaultOptions,r,o;return e.length===1&&typeof e[0]=="number"?o=e[0]:[r,o]=e,this.clear(),clearTimeout(this._previousTimeout),r||(r=a&&a.politeness?a.politeness:"polite"),o==null&&a&&(o=a.duration),this._liveElement.setAttribute("aria-live",r),this._liveElement.id&&this._exposeAnnouncerToModals(this._liveElement.id),this._ngZone.runOutsideAngular(()=>(this._currentPromise||(this._currentPromise=new Promise(s=>this._currentResolve=s)),clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{!t||typeof t=="string"?this._liveElement.textContent=t:ih(this._liveElement,t,this._sanitizer),typeof o=="number"&&(this._previousTimeout=setTimeout(()=>this.clear(),o)),this._currentResolve?.(),this._currentPromise=this._currentResolve=void 0},100),this._currentPromise))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){clearTimeout(this._previousTimeout),this._liveElement?.remove(),this._liveElement=null,this._currentResolve?.(),this._currentPromise=this._currentResolve=void 0}_createLiveElement(){let t="cdk-live-announcer-element",e=this._document.getElementsByClassName(t),a=this._document.createElement("div");for(let r=0;r<e.length;r++)e[r].remove();return a.classList.add(t),a.classList.add("cdk-visually-hidden"),a.setAttribute("aria-atomic","true"),a.setAttribute("aria-live","polite"),a.id=`cdk-live-announcer-${Rv++}`,this._document.body.appendChild(a),a}_exposeAnnouncerToModals(t){let e=this._document.querySelectorAll('body > .cdk-overlay-container [aria-modal="true"]');for(let a=0;a<e.length;a++){let r=e[a],o=r.getAttribute("aria-owns");o?o.indexOf(t)===-1&&r.setAttribute("aria-owns",o+" "+t):r.setAttribute("aria-owns",t)}}static \u0275fac=function(e){return new(e||n)};static \u0275prov=I({token:n,factory:n.\u0275fac})}return n})();var Tv=200,ns=class{_letterKeyStream=new E;_items=[];_selectedItemIndex=-1;_pressedLetters=[];_skipPredicateFn;_selectedItem=new E;selectedItem=this._selectedItem;constructor(i,t){let e=typeof t?.debounceInterval=="number"?t.debounceInterval:Tv;t?.skipPredicate&&(this._skipPredicateFn=t.skipPredicate),this.setItems(i),this._setupKeyHandler(e)}destroy(){this._pressedLetters=[],this._letterKeyStream.complete(),this._selectedItem.complete()}setCurrentSelectedItemIndex(i){this._selectedItemIndex=i}setItems(i){this._items=i}handleKey(i){let t=i.keyCode;i.key&&i.key.length===1?this._letterKeyStream.next(i.key.toLocaleUpperCase()):(t>=65&&t<=90||t>=48&&t<=57)&&this._letterKeyStream.next(String.fromCharCode(t))}isTyping(){return this._pressedLetters.length>0}reset(){this._pressedLetters=[]}_setupKeyHandler(i){this._letterKeyStream.pipe(Wt(t=>this._pressedLetters.push(t)),Ii(i),vt(()=>this._pressedLetters.length>0),st(()=>this._pressedLetters.join("").toLocaleUpperCase())).subscribe(t=>{for(let e=1;e<this._items.length+1;e++){let a=(this._selectedItemIndex+e)%this._items.length,r=this._items[a];if(!this._skipPredicateFn?.(r)&&r.getLabel?.().toLocaleUpperCase().trim().indexOf(t)===0){this._selectedItem.next(r);break}}this._pressedLetters=[]})}};function ie(n,...i){return i.length?i.some(t=>n[t]):n.altKey||n.shiftKey||n.ctrlKey||n.metaKey}var ia=class{_items;_activeItemIndex=X(-1);_activeItem=X(null);_wrap=!1;_typeaheadSubscription=Et.EMPTY;_itemChangesSubscription;_vertical=!0;_horizontal=null;_allowedModifierKeys=[];_homeAndEnd=!1;_pageUpAndDown={enabled:!1,delta:10};_effectRef;_typeahead;_skipPredicateFn=i=>i.disabled;constructor(i,t){this._items=i,i instanceof ei?this._itemChangesSubscription=i.changes.subscribe(e=>this._itemsChanged(e.toArray())):Re(i)&&(this._effectRef=qe(()=>this._itemsChanged(i()),{injector:t}))}tabOut=new E;change=new E;skipPredicate(i){return this._skipPredicateFn=i,this}withWrap(i=!0){return this._wrap=i,this}withVerticalOrientation(i=!0){return this._vertical=i,this}withHorizontalOrientation(i){return this._horizontal=i,this}withAllowedModifierKeys(i){return this._allowedModifierKeys=i,this}withTypeAhead(i=200){this._typeaheadSubscription.unsubscribe();let t=this._getItemsArray();return this._typeahead=new ns(t,{debounceInterval:typeof i=="number"?i:void 0,skipPredicate:e=>this._skipPredicateFn(e)}),this._typeaheadSubscription=this._typeahead.selectedItem.subscribe(e=>{this.setActiveItem(e)}),this}cancelTypeahead(){return this._typeahead?.reset(),this}withHomeAndEnd(i=!0){return this._homeAndEnd=i,this}withPageUpDown(i=!0,t=10){return this._pageUpAndDown={enabled:i,delta:t},this}setActiveItem(i){let t=this._activeItem();this.updateActiveItem(i),this._activeItem()!==t&&this.change.next(this._activeItemIndex())}onKeydown(i){let t=i.keyCode,a=["altKey","ctrlKey","metaKey","shiftKey"].every(r=>!i[r]||this._allowedModifierKeys.indexOf(r)>-1);switch(t){case 9:this.tabOut.next();return;case 40:if(this._vertical&&a){this.setNextItemActive();break}else return;case 38:if(this._vertical&&a){this.setPreviousItemActive();break}else return;case 39:if(this._horizontal&&a){this._horizontal==="rtl"?this.setPreviousItemActive():this.setNextItemActive();break}else return;case 37:if(this._horizontal&&a){this._horizontal==="rtl"?this.setNextItemActive():this.setPreviousItemActive();break}else return;case 36:if(this._homeAndEnd&&a){this.setFirstItemActive();break}else return;case 35:if(this._homeAndEnd&&a){this.setLastItemActive();break}else return;case 33:if(this._pageUpAndDown.enabled&&a){let r=this._activeItemIndex()-this._pageUpAndDown.delta;this._setActiveItemByIndex(r>0?r:0,1);break}else return;case 34:if(this._pageUpAndDown.enabled&&a){let r=this._activeItemIndex()+this._pageUpAndDown.delta,o=this._getItemsArray().length;this._setActiveItemByIndex(r<o?r:o-1,-1);break}else return;default:(a||ie(i,"shiftKey"))&&this._typeahead?.handleKey(i);return}this._typeahead?.reset(),i.preventDefault()}get activeItemIndex(){return this._activeItemIndex()}get activeItem(){return this._activeItem()}isTyping(){return!!this._typeahead&&this._typeahead.isTyping()}setFirstItemActive(){this._setActiveItemByIndex(0,1)}setLastItemActive(){this._setActiveItemByIndex(this._getItemsArray().length-1,-1)}setNextItemActive(){this._activeItemIndex()<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}setPreviousItemActive(){this._activeItemIndex()<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}updateActiveItem(i){let t=this._getItemsArray(),e=typeof i=="number"?i:t.indexOf(i),a=t[e];this._activeItem.set(a??null),this._activeItemIndex.set(e),this._typeahead?.setCurrentSelectedItemIndex(e)}destroy(){this._typeaheadSubscription.unsubscribe(),this._itemChangesSubscription?.unsubscribe(),this._effectRef?.destroy(),this._typeahead?.destroy(),this.tabOut.complete(),this.change.complete()}_setActiveItemByDelta(i){this._wrap?this._setActiveInWrapMode(i):this._setActiveInDefaultMode(i)}_setActiveInWrapMode(i){let t=this._getItemsArray();for(let e=1;e<=t.length;e++){let a=(this._activeItemIndex()+i*e+t.length)%t.length,r=t[a];if(!this._skipPredicateFn(r)){this.setActiveItem(a);return}}}_setActiveInDefaultMode(i){this._setActiveItemByIndex(this._activeItemIndex()+i,i)}_setActiveItemByIndex(i,t){let e=this._getItemsArray();if(e[i]){for(;this._skipPredicateFn(e[i]);)if(i+=t,!e[i])return;this.setActiveItem(i)}}_getItemsArray(){return Re(this._items)?this._items():this._items instanceof ei?this._items.toArray():this._items}_itemsChanged(i){this._typeahead?.setItems(i);let t=this._activeItem();if(t){let e=i.indexOf(t);e>-1&&e!==this._activeItemIndex()&&(this._activeItemIndex.set(e),this._typeahead?.setCurrentSelectedItemIndex(e))}}};var hr=class extends ia{setActiveItem(i){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(i),this.activeItem&&this.activeItem.setActiveStyles()}};var hi=class extends ia{_origin="program";setFocusOrigin(i){return this._origin=i,this}setActiveItem(i){super.setActiveItem(i),this.activeItem&&this.activeItem.focus(this._origin)}};var uh=new Map,St=class n{_appId=c(Ia);static _infix=`a${Math.floor(Math.random()*1e5).toString()}`;getId(i,t=!1){this._appId!=="ng"&&(i+=this._appId);let e=uh.get(i);return e===void 0?e=0:e++,uh.set(i,e),`${i}${t?n._infix+"-":""}${e}`}static \u0275fac=function(t){return new(t||n)};static \u0275prov=I({token:n,factory:n.\u0275fac})};var as={XSmall:"(max-width: 599.98px)",Small:"(min-width: 600px) and (max-width: 959.98px)",Medium:"(min-width: 960px) and (max-width: 1279.98px)",Large:"(min-width: 1280px) and (max-width: 1919.98px)",XLarge:"(min-width: 1920px)",Handset:"(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)",Tablet:"(min-width: 600px) and (max-width: 839.98px) and (orientation: portrait), (min-width: 960px) and (max-width: 1279.98px) and (orientation: landscape)",Web:"(min-width: 840px) and (orientation: portrait), (min-width: 1280px) and (orientation: landscape)",HandsetPortrait:"(max-width: 599.98px) and (orientation: portrait)",TabletPortrait:"(min-width: 600px) and (max-width: 839.98px) and (orientation: portrait)",WebPortrait:"(min-width: 840px) and (orientation: portrait)",HandsetLandscape:"(max-width: 959.98px) and (orientation: landscape)",TabletLandscape:"(min-width: 960px) and (max-width: 1279.98px) and (orientation: landscape)",WebLandscape:"(min-width: 1280px) and (orientation: landscape)"};function Oc(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}function Vt(n){return n==null?"":typeof n=="string"?n:`${n}px`}var Fv=new v("cdk-dir-doc",{providedIn:"root",factory:()=>c(F)}),Pv=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;function hh(n){let i=n?.toLowerCase()||"";return i==="auto"&&typeof navigator<"u"&&navigator?.language?Pv.test(navigator.language)?"rtl":"ltr":i==="rtl"?"rtl":"ltr"}var de=(()=>{class n{get value(){return this.valueSignal()}valueSignal=X("ltr");change=new Q;constructor(){let t=c(Fv,{optional:!0});if(t){let e=t.body?t.body.dir:null,a=t.documentElement?t.documentElement.dir:null;this.valueSignal.set(hh(e||a||"ltr"))}}ngOnDestroy(){this.change.complete()}static \u0275fac=function(e){return new(e||n)};static \u0275prov=I({token:n,factory:n.\u0275fac})}return n})();var tn=(function(n){return n[n.NORMAL=0]="NORMAL",n[n.NEGATED=1]="NEGATED",n[n.INVERTED=2]="INVERTED",n})(tn||{}),rs,pi;function os(){if(pi==null){if(typeof document!="object"||!document||typeof Element!="function"||!Element)return pi=!1,pi;if(document.documentElement?.style&&"scrollBehavior"in document.documentElement.style)pi=!0;else{let n=Element.prototype.scrollTo;n?pi=!/\{\s*\[native code\]\s*\}/.test(n.toString()):pi=!1}}return pi}function ra(){if(typeof document!="object"||!document)return tn.NORMAL;if(rs==null){let n=document.createElement("div"),i=n.style;n.dir="rtl",i.width="1px",i.overflow="auto",i.visibility="hidden",i.pointerEvents="none",i.position="absolute";let t=document.createElement("div"),e=t.style;e.width="2px",e.height="1px",n.appendChild(t),document.body.appendChild(n),rs=tn.NORMAL,n.scrollLeft===0&&(n.scrollLeft=1,rs=n.scrollLeft===0?tn.NEGATED:tn.INVERTED),n.remove()}return rs}var Xt=(()=>{class n{static \u0275fac=function(e){return new(e||n)};static \u0275mod=Y({type:n});static \u0275inj=q({})}return n})();var Lv=20,ss=(()=>{class n{_ngZone=c(O);_platform=c(ut);_renderer=c(Jt).createRenderer(null,null);_cleanupGlobalListener;_scrolled=new E;_scrolledCount=0;scrollContainers=new Map;register(t){this.scrollContainers.has(t)||this.scrollContainers.set(t,t.elementScrolled().subscribe(()=>this._scrolled.next(t)))}deregister(t){let e=this.scrollContainers.get(t);e&&(e.unsubscribe(),this.scrollContainers.delete(t))}scrolled(t=Lv){return this._platform.isBrowser?new oe(e=>{this._cleanupGlobalListener||(this._cleanupGlobalListener=this._ngZone.runOutsideAngular(()=>this._renderer.listen("document","scroll",()=>this._scrolled.next())));let a=t>0?this._scrolled.pipe(el(t)).subscribe(e):this._scrolled.subscribe(e);return this._scrolledCount++,()=>{a.unsubscribe(),this._scrolledCount--,this._scrolledCount||(this._cleanupGlobalListener?.(),this._cleanupGlobalListener=void 0)}}):A()}ngOnDestroy(){this._cleanupGlobalListener?.(),this._cleanupGlobalListener=void 0,this.scrollContainers.forEach((t,e)=>this.deregister(e)),this._scrolled.complete()}ancestorScrolled(t,e){let a=this.getAncestorScrollContainers(t);return this.scrolled(e).pipe(vt(r=>!r||a.indexOf(r)>-1))}getAncestorScrollContainers(t){let e=[];return this.scrollContainers.forEach((a,r)=>{this._targetContainsElement(r,t)&&e.push(r)}),e}_targetContainsElement(t,e){let a=ve(e),r=t.getElementRef().nativeElement;do if(a==r)return!0;while(a=a.parentElement);return!1}static \u0275fac=function(e){return new(e||n)};static \u0275prov=I({token:n,factory:n.\u0275fac})}return n})(),ph=(()=>{class n{elementRef=c(R);scrollDispatcher=c(ss);ngZone=c(O);dir=c(de,{optional:!0});_scrollElement=this.elementRef.nativeElement;_destroyed=new E;_renderer=c(pt);_cleanupScroll;_elementScrolled=new E;ngOnInit(){this._cleanupScroll=this.ngZone.runOutsideAngular(()=>this._renderer.listen(this._scrollElement,"scroll",t=>this._elementScrolled.next(t))),this.scrollDispatcher.register(this)}ngOnDestroy(){this._cleanupScroll?.(),this._elementScrolled.complete(),this.scrollDispatcher.deregister(this),this._destroyed.next(),this._destroyed.complete()}elementScrolled(){return this._elementScrolled}getElementRef(){return this.elementRef}scrollTo(t){let e=this.elementRef.nativeElement,a=this.dir&&this.dir.value=="rtl";t.left==null&&(t.left=a?t.end:t.start),t.right==null&&(t.right=a?t.start:t.end),t.bottom!=null&&(t.top=e.scrollHeight-e.clientHeight-t.bottom),a&&ra()!=tn.NORMAL?(t.left!=null&&(t.right=e.scrollWidth-e.clientWidth-t.left),ra()==tn.INVERTED?t.left=t.right:ra()==tn.NEGATED&&(t.left=t.right?-t.right:t.right)):t.right!=null&&(t.left=e.scrollWidth-e.clientWidth-t.right),this._applyScrollToOptions(t)}_applyScrollToOptions(t){let e=this.elementRef.nativeElement;os()?e.scrollTo(t):(t.top!=null&&(e.scrollTop=t.top),t.left!=null&&(e.scrollLeft=t.left))}measureScrollOffset(t){let e="left",a="right",r=this.elementRef.nativeElement;if(t=="top")return r.scrollTop;if(t=="bottom")return r.scrollHeight-r.clientHeight-r.scrollTop;let o=this.dir&&this.dir.value=="rtl";return t=="start"?t=o?a:e:t=="end"&&(t=o?e:a),o&&ra()==tn.INVERTED?t==e?r.scrollWidth-r.clientWidth-r.scrollLeft:r.scrollLeft:o&&ra()==tn.NEGATED?t==e?r.scrollLeft+r.scrollWidth-r.clientWidth:-r.scrollLeft:t==e?r.scrollLeft:r.scrollWidth-r.clientWidth-r.scrollLeft}static \u0275fac=function(e){return new(e||n)};static \u0275dir=x({type:n,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]})}return n})(),Bv=20,fi=(()=>{class n{_platform=c(ut);_listeners;_viewportSize=null;_change=new E;_document=c(F);constructor(){let t=c(O),e=c(Jt).createRenderer(null,null);t.runOutsideAngular(()=>{if(this._platform.isBrowser){let a=r=>this._change.next(r);this._listeners=[e.listen("window","resize",a),e.listen("window","orientationchange",a)]}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){this._listeners?.forEach(t=>t()),this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();let t={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),t}getViewportRect(){let t=this.getViewportScrollPosition(),{width:e,height:a}=this.getViewportSize();return{top:t.top,left:t.left,bottom:t.top+a,right:t.left+e,height:a,width:e}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};let t=this._document,e=this._getWindow(),a=t.documentElement,r=a.getBoundingClientRect(),o=-r.top||t.body?.scrollTop||e.scrollY||a.scrollTop||0,s=-r.left||t.body?.scrollLeft||e.scrollX||a.scrollLeft||0;return{top:o,left:s}}change(t=Bv){return t>0?this._change.pipe(el(t)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){let t=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:t.innerWidth,height:t.innerHeight}:{width:0,height:0}}static \u0275fac=function(e){return new(e||n)};static \u0275prov=I({token:n,factory:n.\u0275fac})}return n})();var pr=class{_attachedHost=null;attach(i){return this._attachedHost=i,i.attach(this)}detach(){let i=this._attachedHost;i!=null&&(this._attachedHost=null,i.detach())}get isAttached(){return this._attachedHost!=null}setAttachedHost(i){this._attachedHost=i}},Mn=class extends pr{component;viewContainerRef;injector;projectableNodes;bindings;directives;constructor(i,t,e,a,r,o){super(),this.component=i,this.viewContainerRef=t,this.injector=e,this.projectableNodes=a,this.bindings=r||null,this.directives=o||null}},ze=class extends pr{templateRef;viewContainerRef;context;injector;constructor(i,t,e,a){super(),this.templateRef=i,this.viewContainerRef=t,this.context=e,this.injector=a}get origin(){return this.templateRef.elementRef}attach(i,t=this.context){return this.context=t,super.attach(i)}detach(){return this.context=void 0,super.detach()}},Fc=class extends pr{element;constructor(i){super(),this.element=i instanceof R?i.nativeElement:i}},Hn=class{_attachedPortal=null;_disposeFn=null;_isDisposed=!1;hasAttached(){return!!this._attachedPortal}attach(i){if(i instanceof Mn)return this._attachedPortal=i,this.attachComponentPortal(i);if(i instanceof ze)return this._attachedPortal=i,this.attachTemplatePortal(i);if(this.attachDomPortal&&i instanceof Fc)return this._attachedPortal=i,this.attachDomPortal(i)}attachDomPortal=null;detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(i){this._disposeFn=i}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}},fr=class extends Hn{outletElement;_appRef;_defaultInjector;constructor(i,t,e){super(),this.outletElement=i,this._appRef=t,this._defaultInjector=e}attachComponentPortal(i){let t;if(i.viewContainerRef){let e=i.injector||i.viewContainerRef.injector,a=e.get(Wr,null,{optional:!0})||void 0;t=i.viewContainerRef.createComponent(i.component,{index:i.viewContainerRef.length,injector:e,ngModuleRef:a,projectableNodes:i.projectableNodes||void 0,bindings:i.bindings||void 0,directives:i.directives||void 0}),this.setDisposeFn(()=>t.destroy())}else{let e=this._appRef,a=i.injector||this._defaultInjector||K.NULL,r=a.get(zt,e.injector);t=to(i.component,{elementInjector:a,environmentInjector:r,projectableNodes:i.projectableNodes||void 0,bindings:i.bindings||void 0,directives:i.directives||void 0}),e.attachView(t.hostView),this.setDisposeFn(()=>{e.viewCount>0&&e.detachView(t.hostView),t.destroy()})}return this.outletElement.appendChild(this._getComponentRootNode(t)),this._attachedPortal=i,t}attachTemplatePortal(i){let t=i.viewContainerRef,e=t.createEmbeddedView(i.templateRef,i.context,{injector:i.injector});return e.rootNodes.forEach(a=>this.outletElement.appendChild(a)),e.detectChanges(),this.setDisposeFn(()=>{let a=t.indexOf(e);a!==-1&&t.remove(a)}),this._attachedPortal=i,e}attachDomPortal=i=>{let t=i.element;t.parentNode;let e=this.outletElement.ownerDocument.createComment("dom-portal");t.parentNode.insertBefore(e,t),this.outletElement.appendChild(t),this._attachedPortal=i,super.setDisposeFn(()=>{e.parentNode&&e.parentNode.replaceChild(t,e)})};dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(i){return i.hostView.rootNodes[0]}};var $n=(()=>{class n extends Hn{_moduleRef=c(Wr,{optional:!0});_document=c(F);_viewContainerRef=c(Oe);_isInitialized=!1;_attachedRef=null;get portal(){return this._attachedPortal}set portal(t){this.hasAttached()&&!t&&!this._isInitialized||(this.hasAttached()&&super.detach(),t&&super.attach(t),this._attachedPortal=t||null)}attached=new Q;get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedRef=this._attachedPortal=null}attachComponentPortal(t){t.setAttachedHost(this);let e=t.viewContainerRef!=null?t.viewContainerRef:this._viewContainerRef,a=e.createComponent(t.component,{index:e.length,injector:t.injector||e.injector,projectableNodes:t.projectableNodes||void 0,ngModuleRef:this._moduleRef||void 0,bindings:t.bindings||void 0,directives:t.directives||void 0});return e!==this._viewContainerRef&&this._getRootNode().appendChild(a.hostView.rootNodes[0]),super.setDisposeFn(()=>a.destroy()),this._attachedPortal=t,this._attachedRef=a,this.attached.emit(a),a}attachTemplatePortal(t){t.setAttachedHost(this);let e=this._viewContainerRef.createEmbeddedView(t.templateRef,t.context,{injector:t.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=t,this._attachedRef=e,this.attached.emit(e),e}attachDomPortal=t=>{let e=t.element;e.parentNode;let a=this._document.createComment("dom-portal");t.setAttachedHost(this),e.parentNode.insertBefore(a,e),this._getRootNode().appendChild(e),this._attachedPortal=t,super.setDisposeFn(()=>{a.parentNode&&a.parentNode.replaceChild(e,a)})};_getRootNode(){let t=this._viewContainerRef.element.nativeElement;return t.nodeType===t.ELEMENT_NODE?t:t.parentNode}static \u0275fac=(()=>{let t;return function(a){return(t||(t=Rt(n)))(a||n)}})();static \u0275dir=x({type:n,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:[0,"cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[ot]})}return n})();var fh=os();function gr(n){return new ls(n.get(fi),n.get(F))}var ls=class{_viewportRuler;_previousHTMLStyles={top:"",left:""};_previousScrollPosition;_isEnabled=!1;_document;constructor(i,t){this._viewportRuler=i,this._document=t}attach(){}enable(){if(this._canBeEnabled()){let i=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=i.style.left||"",this._previousHTMLStyles.top=i.style.top||"",i.style.left=Vt(-this._previousScrollPosition.left),i.style.top=Vt(-this._previousScrollPosition.top),i.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){let i=this._document.documentElement,t=this._document.body,e=i.style,a=t.style,r=e.scrollBehavior||"",o=a.scrollBehavior||"";this._isEnabled=!1,e.left=this._previousHTMLStyles.left,e.top=this._previousHTMLStyles.top,i.classList.remove("cdk-global-scrollblock"),fh&&(e.scrollBehavior=a.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),fh&&(e.scrollBehavior=r,a.scrollBehavior=o)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;let t=this._document.documentElement,e=this._viewportRuler.getViewportSize();return t.scrollHeight>e.height||t.scrollWidth>e.width}};var cs=class{enable(){}disable(){}attach(){}};function Lc(n,i){return i.some(t=>{let e=n.bottom<t.top,a=n.top>t.bottom,r=n.right<t.left,o=n.left>t.right;return e||a||r||o})}function gh(n,i){return i.some(t=>{let e=n.top<t.top,a=n.bottom>t.bottom,r=n.left<t.left,o=n.right>t.right;return e||a||r||o})}function br(n,i){return new ds(n.get(ss),n.get(fi),n.get(O),i)}var ds=class{_scrollDispatcher;_viewportRuler;_ngZone;_config;_scrollSubscription=null;_overlayRef;constructor(i,t,e,a){this._scrollDispatcher=i,this._viewportRuler=t,this._ngZone=e,this._config=a}attach(i){this._overlayRef,this._overlayRef=i}enable(){if(!this._scrollSubscription){let i=this._config?this._config.scrollThrottle:0;this._scrollSubscription=this._scrollDispatcher.scrolled(i).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){let t=this._overlayRef.overlayElement.getBoundingClientRect(),{width:e,height:a}=this._viewportRuler.getViewportSize();Lc(t,[{width:e,height:a,bottom:a,right:e,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}})}}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}};var je=class{positionStrategy;scrollStrategy=new cs;panelClass="";hasBackdrop=!1;backdropClass="cdk-overlay-dark-backdrop";disableAnimations;width;height;minWidth;minHeight;maxWidth;maxHeight;direction;disposeOnNavigation=!1;usePopover;eventPredicate;constructor(i){if(i){let t=Object.keys(i);for(let e of t)i[e]!==void 0&&(this[e]=i[e])}}};var ms=class{connectionPair;scrollableViewProperties;constructor(i,t){this.connectionPair=i,this.scrollableViewProperties=t}};var wh=(()=>{class n{_attachedOverlays=[];_document=c(F);_isAttached=!1;ngOnDestroy(){this.detach()}add(t){this.remove(t),this._attachedOverlays.push(t)}remove(t){let e=this._attachedOverlays.indexOf(t);e>-1&&this._attachedOverlays.splice(e,1),this._attachedOverlays.length===0&&this.detach()}canReceiveEvent(t,e,a){return a.observers.length<1?!1:t.eventPredicate?t.eventPredicate(e):!0}static \u0275fac=function(e){return new(e||n)};static \u0275prov=I({token:n,factory:n.\u0275fac})}return n})(),Sh=(()=>{class n extends wh{_ngZone=c(O);_renderer=c(Jt).createRenderer(null,null);_cleanupKeydown;add(t){super.add(t),this._isAttached||(this._ngZone.runOutsideAngular(()=>{this._cleanupKeydown=this._renderer.listen("body","keydown",this._keydownListener)}),this._isAttached=!0)}detach(){this._isAttached&&(this._cleanupKeydown?.(),this._isAttached=!1)}_keydownListener=t=>{let e=this._attachedOverlays;for(let a=e.length-1;a>-1;a--){let r=e[a];if(this.canReceiveEvent(r,t,r._keydownEvents)){this._ngZone.run(()=>r._keydownEvents.next(t));break}}};static \u0275fac=function(e){return new(e||n)};static \u0275prov=I({token:n,factory:n.\u0275fac})}return n})(),Ch=(()=>{class n extends wh{_platform=c(ut);_ngZone=c(O);_renderer=c(Jt).createRenderer(null,null);_cursorOriginalValue;_cursorStyleIsSet=!1;_pointerDownEventTarget=null;_cleanups;add(t){if(super.add(t),!this._isAttached){let e=this._document.body,a={capture:!0},r=this._renderer;this._cleanups=this._ngZone.runOutsideAngular(()=>[r.listen(e,"pointerdown",this._pointerDownListener,a),r.listen(e,"click",this._clickListener,a),r.listen(e,"auxclick",this._clickListener,a),r.listen(e,"contextmenu",this._clickListener,a)]),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=e.style.cursor,e.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){this._isAttached&&(this._cleanups?.forEach(t=>t()),this._cleanups=void 0,this._platform.IOS&&this._cursorStyleIsSet&&(this._document.body.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1)}_pointerDownListener=t=>{this._pointerDownEventTarget=ce(t)};_clickListener=t=>{let e=ce(t),a=t.type==="click"&&this._pointerDownEventTarget?this._pointerDownEventTarget:e;this._pointerDownEventTarget=null;let r=this._attachedOverlays.slice();for(let o=r.length-1;o>-1;o--){let s=r[o],l=s._outsidePointerEvents;if(!(!s.hasAttached()||!this.canReceiveEvent(s,t,l))){if(bh(s.overlayElement,e)||bh(s.overlayElement,a))break;this._ngZone?this._ngZone.run(()=>l.next(t)):l.next(t)}}};static \u0275fac=function(e){return new(e||n)};static \u0275prov=I({token:n,factory:n.\u0275fac})}return n})();function bh(n,i){let t=typeof ShadowRoot<"u"&&ShadowRoot,e=i;for(;e;){if(e===n)return!0;e=t&&e instanceof ShadowRoot?e.host:e.parentNode}return!1}var kh=(()=>{class n{static \u0275fac=function(e){return new(e||n)};static \u0275cmp=S({type:n,selectors:[["ng-component"]],hostAttrs:["cdk-overlay-style-loader",""],decls:0,vars:0,template:function(e,a){},styles:[`.cdk-overlay-container, .cdk-global-overlay-wrapper {
|
|
pointer-events: none;
|
|
top: 0;
|
|
left: 0;
|
|
height: 100%;
|
|
width: 100%;
|
|
}
|
|
|
|
.cdk-overlay-container {
|
|
position: fixed;
|
|
}
|
|
@layer cdk-overlay {
|
|
.cdk-overlay-container {
|
|
z-index: 1000;
|
|
}
|
|
}
|
|
.cdk-overlay-container:empty {
|
|
display: none;
|
|
}
|
|
|
|
.cdk-global-overlay-wrapper {
|
|
display: flex;
|
|
position: absolute;
|
|
}
|
|
@layer cdk-overlay {
|
|
.cdk-global-overlay-wrapper {
|
|
z-index: 1000;
|
|
}
|
|
}
|
|
|
|
.cdk-overlay-pane {
|
|
position: absolute;
|
|
pointer-events: auto;
|
|
box-sizing: border-box;
|
|
display: flex;
|
|
max-width: 100%;
|
|
max-height: 100%;
|
|
}
|
|
@layer cdk-overlay {
|
|
.cdk-overlay-pane {
|
|
z-index: 1000;
|
|
}
|
|
}
|
|
|
|
.cdk-overlay-backdrop {
|
|
position: absolute;
|
|
top: 0;
|
|
bottom: 0;
|
|
left: 0;
|
|
right: 0;
|
|
pointer-events: auto;
|
|
-webkit-tap-highlight-color: transparent;
|
|
opacity: 0;
|
|
touch-action: manipulation;
|
|
}
|
|
@layer cdk-overlay {
|
|
.cdk-overlay-backdrop {
|
|
z-index: 1000;
|
|
transition: opacity 400ms cubic-bezier(0.25, 0.8, 0.25, 1);
|
|
}
|
|
}
|
|
@media (prefers-reduced-motion) {
|
|
.cdk-overlay-backdrop {
|
|
transition-duration: 1ms;
|
|
}
|
|
}
|
|
|
|
.cdk-overlay-backdrop-showing {
|
|
opacity: 1;
|
|
}
|
|
@media (forced-colors: active) {
|
|
.cdk-overlay-backdrop-showing {
|
|
opacity: 0.6;
|
|
}
|
|
}
|
|
|
|
@layer cdk-overlay {
|
|
.cdk-overlay-dark-backdrop {
|
|
background: rgba(0, 0, 0, 0.32);
|
|
}
|
|
}
|
|
|
|
.cdk-overlay-transparent-backdrop {
|
|
transition: visibility 1ms linear, opacity 1ms linear;
|
|
visibility: hidden;
|
|
opacity: 1;
|
|
}
|
|
.cdk-overlay-transparent-backdrop.cdk-overlay-backdrop-showing, .cdk-high-contrast-active .cdk-overlay-transparent-backdrop {
|
|
opacity: 0;
|
|
visibility: visible;
|
|
}
|
|
|
|
.cdk-overlay-backdrop-noop-animation {
|
|
transition: none;
|
|
}
|
|
|
|
.cdk-overlay-connected-position-bounding-box {
|
|
position: absolute;
|
|
display: flex;
|
|
flex-direction: column;
|
|
min-width: 1px;
|
|
min-height: 1px;
|
|
}
|
|
@layer cdk-overlay {
|
|
.cdk-overlay-connected-position-bounding-box {
|
|
z-index: 1000;
|
|
}
|
|
}
|
|
|
|
.cdk-global-scrollblock {
|
|
position: fixed;
|
|
width: 100%;
|
|
overflow-y: scroll;
|
|
}
|
|
|
|
.cdk-overlay-popover {
|
|
background: none;
|
|
border: none;
|
|
padding: 0;
|
|
outline: 0;
|
|
overflow: visible;
|
|
position: fixed;
|
|
pointer-events: none;
|
|
white-space: normal;
|
|
color: inherit;
|
|
text-decoration: none;
|
|
width: 100%;
|
|
height: 100%;
|
|
inset: auto;
|
|
top: 0;
|
|
left: 0;
|
|
}
|
|
.cdk-overlay-popover::backdrop {
|
|
display: none;
|
|
}
|
|
.cdk-overlay-popover .cdk-overlay-backdrop {
|
|
position: fixed;
|
|
z-index: auto;
|
|
}
|
|
`],encapsulation:2})}return n})(),ps=(()=>{class n{_platform=c(ut);_containerElement;_document=c(F);_styleLoader=c(Bt);ngOnDestroy(){this._containerElement?.remove()}getContainerElement(){return this._loadStyles(),this._containerElement||this._createContainer(),this._containerElement}_createContainer(){let t="cdk-overlay-container";if(this._platform.isBrowser||Oc()){let a=this._document.querySelectorAll(`.${t}[platform="server"], .${t}[platform="test"]`);for(let r=0;r<a.length;r++)a[r].remove()}let e=this._document.createElement("div");e.classList.add(t),Oc()?e.setAttribute("platform","test"):this._platform.isBrowser||e.setAttribute("platform","server"),this._document.body.appendChild(e),this._containerElement=e}_loadStyles(){this._styleLoader.load(kh)}static \u0275fac=function(e){return new(e||n)};static \u0275prov=I({token:n,factory:n.\u0275fac})}return n})(),Bc=class{_renderer;_ngZone;element;_cleanupClick;_cleanupTransitionEnd;_fallbackTimeout;constructor(i,t,e,a){this._renderer=t,this._ngZone=e,this.element=i.createElement("div"),this.element.classList.add("cdk-overlay-backdrop"),this._cleanupClick=t.listen(this.element,"click",a)}detach(){this._ngZone.runOutsideAngular(()=>{let i=this.element;clearTimeout(this._fallbackTimeout),this._cleanupTransitionEnd?.(),this._cleanupTransitionEnd=this._renderer.listen(i,"transitionend",this.dispose),this._fallbackTimeout=setTimeout(this.dispose,500),i.style.pointerEvents="none",i.classList.remove("cdk-overlay-backdrop-showing")})}dispose=()=>{clearTimeout(this._fallbackTimeout),this._cleanupClick?.(),this._cleanupTransitionEnd?.(),this._cleanupClick=this._cleanupTransitionEnd=this._fallbackTimeout=void 0,this.element.remove()}};function zc(n){return n&&n.nodeType===1}var Pc=X([]),oa=class{_portalOutlet;_host;_pane;_config;_ngZone;_keyboardDispatcher;_document;_location;_outsideClickDispatcher;_animationsDisabled;_injector;_renderer;_backdropClick=new E;_attachments=new E;_detachments=new E;_positionStrategy;_scrollStrategy;_locationChanges;_backdropRef=null;_detachContentMutationObserver;_detachContentAfterRenderRef;_disposed=!1;_previousHostParent;_keydownEvents=new E;_outsidePointerEvents=new E;_afterNextRenderRef;constructor(i,t,e,a,r,o,s,l,d,m=!1,_,b){this._portalOutlet=i,this._host=t,this._pane=e,this._config=a,this._ngZone=r,this._keyboardDispatcher=o,this._document=s,this._location=l,this._outsideClickDispatcher=d,this._animationsDisabled=m,this._injector=_,this._renderer=b,a.scrollStrategy&&(this._scrollStrategy=a.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=a.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropRef?.element||null}get hostElement(){return this._host}get eventPredicate(){return this._config?.eventPredicate||null}attach(i){if(this._disposed)return null;this._attachHost();let t=this._portalOutlet.attach(i);if(this._positionStrategy?.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),et(()=>{Pc.update(e=>e.includes(this)?e:[...e,this])}),this._scrollStrategy&&this._scrollStrategy.enable(),this._afterNextRenderRef?.destroy(),this._afterNextRenderRef=Pt(()=>{this.hasAttached()&&this.updatePosition()},{injector:this._injector}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._completeDetachContent(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation===!0||this._config.disposeOnNavigation==="pop-state"){let e=this._location.subscribe(()=>this.dispose());this._locationChanges=()=>e.unsubscribe()}else this._config.disposeOnNavigation==="url-change"&&(this._locationChanges=this._location.onUrlChange(()=>this.dispose()));return this._outsideClickDispatcher.add(this),typeof t?.onDestroy=="function"&&t.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),t}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();let i=this._portalOutlet.detach();return this._detachments.next(),this._completeDetachContent(),this._keyboardDispatcher.remove(this),this._detachContentWhenEmpty(),this._locationChanges?.(),this._outsideClickDispatcher.remove(this),et(()=>{Pc.update(t=>t.filter(e=>e!==this))}),i}dispose(){if(this._disposed)return;let i=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._backdropRef?.dispose(),this._locationChanges?.(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),this._host?.remove(),this._afterNextRenderRef?.destroy(),this._previousHostParent=this._pane=this._host=this._backdropRef=null,i&&this._detachments.next(),this._detachments.complete(),this._completeDetachContent(),this._disposed=!0,et(()=>{Pc.update(t=>t.filter(e=>e!==this))})}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(i){i!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=i,this.hasAttached()&&(i.attach(this),this.updatePosition()))}updateSize(i){this._config=g(g({},this._config),i),this._updateElementSize()}setDirection(i){this._config=ct(g({},this._config),{direction:i}),this._updateElementDirection()}addPanelClass(i){this._pane&&this._toggleClasses(this._pane,i,!0)}removePanelClass(i){this._pane&&this._toggleClasses(this._pane,i,!1)}getDirection(){let i=this._config.direction;return i?typeof i=="string"?i:i.value:"ltr"}updateScrollStrategy(i){i!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=i,this.hasAttached()&&(i.attach(this),i.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;let i=this._pane.style;i.width=Vt(this._config.width),i.height=Vt(this._config.height),i.minWidth=Vt(this._config.minWidth),i.minHeight=Vt(this._config.minHeight),i.maxWidth=Vt(this._config.maxWidth),i.maxHeight=Vt(this._config.maxHeight)}_togglePointerEvents(i){this._pane.style.pointerEvents=i?"":"none"}_attachHost(){if(!this._host.parentElement){let i=this._config.usePopover?this._positionStrategy?.getPopoverInsertionPoint?.():null;zc(i)?i.after(this._host):i?.type==="parent"?i.element.appendChild(this._host):this._previousHostParent?.appendChild(this._host)}if(this._config.usePopover)try{this._host.showPopover()}catch(i){}}_attachBackdrop(){let i="cdk-overlay-backdrop-showing";this._backdropRef?.dispose(),this._backdropRef=new Bc(this._document,this._renderer,this._ngZone,t=>{this._backdropClick.next(t)}),this._animationsDisabled&&this._backdropRef.element.classList.add("cdk-overlay-backdrop-noop-animation"),this._config.backdropClass&&this._toggleClasses(this._backdropRef.element,this._config.backdropClass,!0),this._config.usePopover?this._host.prepend(this._backdropRef.element):this._host.parentElement.insertBefore(this._backdropRef.element,this._host),!this._animationsDisabled&&typeof requestAnimationFrame<"u"?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this._backdropRef?.element.classList.add(i))}):this._backdropRef.element.classList.add(i)}_updateStackingOrder(){!this._config.usePopover&&this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){this._animationsDisabled?(this._backdropRef?.dispose(),this._backdropRef=null):this._backdropRef?.detach()}_toggleClasses(i,t,e){let a=kn(t||[]).filter(r=>!!r);a.length&&(e?i.classList.add(...a):i.classList.remove(...a))}_detachContentWhenEmpty(){let i=!1;try{this._detachContentAfterRenderRef=Pt(()=>{i=!0,this._detachContent()},{injector:this._injector})}catch(t){if(i)throw t;this._detachContent()}globalThis.MutationObserver&&this._pane&&(this._detachContentMutationObserver||=new globalThis.MutationObserver(()=>{this._detachContent()}),this._detachContentMutationObserver.observe(this._pane,{childList:!0}))}_detachContent(){(!this._pane||!this._host||this._pane.children.length===0)&&(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._host.remove()),this._completeDetachContent())}_completeDetachContent(){this._detachContentAfterRenderRef?.destroy(),this._detachContentAfterRenderRef=void 0,this._detachContentMutationObserver?.disconnect()}_disposeScrollStrategy(){let i=this._scrollStrategy;i?.disable(),i?.detach?.()}},vh="cdk-overlay-connected-position-bounding-box",zv=/([A-Za-z%]+)$/;function vr(n,i){return new us(i,n.get(fi),n.get(F),n.get(ut),n.get(ps))}var us=class{_viewportRuler;_document;_platform;_overlayContainer;_overlayRef;_isInitialRender=!1;_lastBoundingBoxSize={width:0,height:0};_isPushed=!1;_canPush=!0;_growAfterOpen=!1;_hasFlexibleDimensions=!0;_positionLocked=!1;_originRect;_overlayRect;_viewportRect;_containerRect;_viewportMargin=0;_scrollables=[];_preferredPositions=[];_origin;_pane;_isDisposed=!1;_boundingBox=null;_lastPosition=null;_lastScrollVisibility=null;_positionChanges=new E;_resizeSubscription=Et.EMPTY;_offsetX=0;_offsetY=0;_transformOriginSelector;_appliedPanelClasses=[];_previousPushAmount=null;_popoverLocation="global";positionChanges=this._positionChanges;get positions(){return this._preferredPositions}constructor(i,t,e,a,r){this._viewportRuler=t,this._document=e,this._platform=a,this._overlayContainer=r,this.setOrigin(i)}attach(i){this._overlayRef&&this._overlayRef,this._validatePositions(),i.hostElement.classList.add(vh),this._overlayRef=i,this._boundingBox=i.hostElement,this._pane=i.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition){this.reapplyLastPosition();return}this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._containerRect=this._getContainerRect();let i=this._originRect,t=this._overlayRect,e=this._viewportRect,a=this._containerRect,r=[],o;for(let s of this._preferredPositions){let l=this._getOriginPoint(i,a,s),d=this._getOverlayPoint(l,t,s),m=this._getOverlayFit(d,t,e,s);if(m.isCompletelyWithinViewport){this._isPushed=!1,this._applyPosition(s,l);return}if(this._canFitWithFlexibleDimensions(m,d,e)){r.push({position:s,origin:l,overlayRect:t,boundingBoxRect:this._calculateBoundingBoxRect(l,s)});continue}(!o||o.overlayFit.visibleArea<m.visibleArea)&&(o={overlayFit:m,overlayPoint:d,originPoint:l,position:s,overlayRect:t})}if(r.length){let s=null,l=-1;for(let d of r){let m=d.boundingBoxRect.width*d.boundingBoxRect.height*(d.position.weight||1);m>l&&(l=m,s=d)}this._isPushed=!1,this._applyPosition(s.position,s.origin);return}if(this._canPush){this._isPushed=!0,this._applyPosition(o.position,o.originPoint);return}this._applyPosition(o.position,o.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&gi(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(vh),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;let i=this._lastPosition;i?(this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._getContainerRect(),this._applyPosition(i,this._getOriginPoint(this._originRect,this._containerRect,i))):this.apply()}withScrollableContainers(i){return this._scrollables=i,this}withPositions(i){return this._preferredPositions=i,i.indexOf(this._lastPosition)===-1&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(i){return this._viewportMargin=i,this}withFlexibleDimensions(i=!0){return this._hasFlexibleDimensions=i,this}withGrowAfterOpen(i=!0){return this._growAfterOpen=i,this}withPush(i=!0){return this._canPush=i,this}withLockedPosition(i=!0){return this._positionLocked=i,this}setOrigin(i){return this._origin=i,this}withDefaultOffsetX(i){return this._offsetX=i,this}withDefaultOffsetY(i){return this._offsetY=i,this}withTransformOriginOn(i){return this._transformOriginSelector=i,this}withPopoverLocation(i){return this._popoverLocation=i,this}getPopoverInsertionPoint(){return this._popoverLocation==="global"?null:this._popoverLocation!=="inline"?this._popoverLocation:this._origin instanceof R?this._origin.nativeElement:zc(this._origin)?this._origin:null}_getOriginPoint(i,t,e){let a;if(e.originX=="center")a=i.left+i.width/2;else{let o=this._isRtl()?i.right:i.left,s=this._isRtl()?i.left:i.right;a=e.originX=="start"?o:s}t.left<0&&(a-=t.left);let r;return e.originY=="center"?r=i.top+i.height/2:r=e.originY=="top"?i.top:i.bottom,t.top<0&&(r-=t.top),{x:a,y:r}}_getOverlayPoint(i,t,e){let a;e.overlayX=="center"?a=-t.width/2:e.overlayX==="start"?a=this._isRtl()?-t.width:0:a=this._isRtl()?0:-t.width;let r;return e.overlayY=="center"?r=-t.height/2:r=e.overlayY=="top"?0:-t.height,{x:i.x+a,y:i.y+r}}_getOverlayFit(i,t,e,a){let r=yh(t),{x:o,y:s}=i,l=this._getOffset(a,"x"),d=this._getOffset(a,"y");l&&(o+=l),d&&(s+=d);let m=0-o,_=o+r.width-e.width,b=0-s,M=s+r.height-e.height,D=this._subtractOverflows(r.width,m,_),Z=this._subtractOverflows(r.height,b,M),lt=D*Z;return{visibleArea:lt,isCompletelyWithinViewport:r.width*r.height===lt,fitsInViewportVertically:Z===r.height,fitsInViewportHorizontally:D==r.width}}_canFitWithFlexibleDimensions(i,t,e){if(this._hasFlexibleDimensions){let a=e.bottom-t.y,r=e.right-t.x,o=_h(this._overlayRef.getConfig().minHeight),s=_h(this._overlayRef.getConfig().minWidth),l=i.fitsInViewportVertically||o!=null&&o<=a,d=i.fitsInViewportHorizontally||s!=null&&s<=r;return l&&d}return!1}_pushOverlayOnScreen(i,t,e){if(this._previousPushAmount&&this._positionLocked)return{x:i.x+this._previousPushAmount.x,y:i.y+this._previousPushAmount.y};let a=yh(t),r=this._viewportRect,o=Math.max(i.x+a.width-r.width,0),s=Math.max(i.y+a.height-r.height,0),l=Math.max(r.top-e.top-i.y,0),d=Math.max(r.left-e.left-i.x,0),m=0,_=0;return a.width<=r.width?m=d||-o:m=i.x<this._getViewportMarginStart()?r.left-e.left-i.x:0,a.height<=r.height?_=l||-s:_=i.y<this._getViewportMarginTop()?r.top-e.top-i.y:0,this._previousPushAmount={x:m,y:_},{x:i.x+m,y:i.y+_}}_applyPosition(i,t){if(this._setTransformOrigin(i),this._setOverlayElementStyles(t,i),this._setBoundingBoxStyles(t,i),i.panelClass&&this._addPanelClasses(i.panelClass),this._positionChanges.observers.length){let e=this._getScrollVisibility();if(i!==this._lastPosition||!this._lastScrollVisibility||!jv(this._lastScrollVisibility,e)){let a=new ms(i,e);this._positionChanges.next(a)}this._lastScrollVisibility=e}this._lastPosition=i,this._isInitialRender=!1}_setTransformOrigin(i){if(!this._transformOriginSelector)return;let t=this._boundingBox.querySelectorAll(this._transformOriginSelector),e,a=i.overlayY;i.overlayX==="center"?e="center":this._isRtl()?e=i.overlayX==="start"?"right":"left":e=i.overlayX==="start"?"left":"right";for(let r=0;r<t.length;r++)t[r].style.transformOrigin=`${e} ${a}`}_calculateBoundingBoxRect(i,t){let e=this._viewportRect,a=this._isRtl(),r,o,s;if(t.overlayY==="top")o=i.y,r=e.height-o+this._getViewportMarginBottom();else if(t.overlayY==="bottom")s=e.height-i.y+this._getViewportMarginTop()+this._getViewportMarginBottom(),r=e.height-s+this._getViewportMarginTop();else{let M=Math.min(e.bottom-i.y+e.top,i.y),D=this._lastBoundingBoxSize.height;r=M*2,o=i.y-M,r>D&&!this._isInitialRender&&!this._growAfterOpen&&(o=i.y-D/2)}let l=t.overlayX==="start"&&!a||t.overlayX==="end"&&a,d=t.overlayX==="end"&&!a||t.overlayX==="start"&&a,m,_,b;if(d)b=e.width-i.x+this._getViewportMarginStart()+this._getViewportMarginEnd(),m=i.x-this._getViewportMarginStart();else if(l)_=i.x,m=e.right-i.x-this._getViewportMarginEnd();else{let M=Math.min(e.right-i.x+e.left,i.x),D=this._lastBoundingBoxSize.width;m=M*2,_=i.x-M,m>D&&!this._isInitialRender&&!this._growAfterOpen&&(_=i.x-D/2)}return{top:o,left:_,bottom:s,right:b,width:m,height:r}}_setBoundingBoxStyles(i,t){let e=this._calculateBoundingBoxRect(i,t);!this._isInitialRender&&!this._growAfterOpen&&(e.height=Math.min(e.height,this._lastBoundingBoxSize.height),e.width=Math.min(e.width,this._lastBoundingBoxSize.width));let a={};if(this._hasExactPosition())a.top=a.left="0",a.bottom=a.right="auto",a.maxHeight=a.maxWidth="",a.width=a.height="100%";else{let r=this._overlayRef.getConfig().maxHeight,o=this._overlayRef.getConfig().maxWidth;a.width=Vt(e.width),a.height=Vt(e.height),a.top=Vt(e.top)||"auto",a.bottom=Vt(e.bottom)||"auto",a.left=Vt(e.left)||"auto",a.right=Vt(e.right)||"auto",t.overlayX==="center"?a.alignItems="center":a.alignItems=t.overlayX==="end"?"flex-end":"flex-start",t.overlayY==="center"?a.justifyContent="center":a.justifyContent=t.overlayY==="bottom"?"flex-end":"flex-start",r&&(a.maxHeight=Vt(r)),o&&(a.maxWidth=Vt(o))}this._lastBoundingBoxSize=e,gi(this._boundingBox.style,a)}_resetBoundingBoxStyles(){gi(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){gi(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(i,t){let e={},a=this._hasExactPosition(),r=this._hasFlexibleDimensions,o=this._overlayRef.getConfig();if(a){let m=this._viewportRuler.getViewportScrollPosition();gi(e,this._getExactOverlayY(t,i,m)),gi(e,this._getExactOverlayX(t,i,m))}else e.position="static";let s="",l=this._getOffset(t,"x"),d=this._getOffset(t,"y");l&&(s+=`translateX(${l}px) `),d&&(s+=`translateY(${d}px)`),e.transform=s.trim(),o.maxHeight&&(a?e.maxHeight=Vt(o.maxHeight):r&&(e.maxHeight="")),o.maxWidth&&(a?e.maxWidth=Vt(o.maxWidth):r&&(e.maxWidth="")),gi(this._pane.style,e)}_getExactOverlayY(i,t,e){let a={top:"",bottom:""},r=this._getOverlayPoint(t,this._overlayRect,i);if(this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,e)),i.overlayY==="bottom"){let o=this._document.documentElement.clientHeight;a.bottom=`${o-(r.y+this._overlayRect.height)}px`}else a.top=Vt(r.y);return a}_getExactOverlayX(i,t,e){let a={left:"",right:""},r=this._getOverlayPoint(t,this._overlayRect,i);this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,e));let o;if(this._isRtl()?o=i.overlayX==="end"?"left":"right":o=i.overlayX==="end"?"right":"left",o==="right"){let s=this._document.documentElement.clientWidth;a.right=`${s-(r.x+this._overlayRect.width)}px`}else a.left=Vt(r.x);return a}_getScrollVisibility(){let i=this._getOriginRect(),t=this._pane.getBoundingClientRect(),e=this._scrollables.map(a=>a.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:gh(i,e),isOriginOutsideView:Lc(i,e),isOverlayClipped:gh(t,e),isOverlayOutsideView:Lc(t,e)}}_subtractOverflows(i,...t){return t.reduce((e,a)=>e-Math.max(a,0),i)}_getNarrowedViewportRect(){let i=this._document.documentElement.clientWidth,t=this._document.documentElement.clientHeight,e=this._viewportRuler.getViewportScrollPosition();return{top:e.top+this._getViewportMarginTop(),left:e.left+this._getViewportMarginStart(),right:e.left+i-this._getViewportMarginEnd(),bottom:e.top+t-this._getViewportMarginBottom(),width:i-this._getViewportMarginStart()-this._getViewportMarginEnd(),height:t-this._getViewportMarginTop()-this._getViewportMarginBottom()}}_isRtl(){return this._overlayRef.getDirection()==="rtl"}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(i,t){return t==="x"?i.offsetX==null?this._offsetX:i.offsetX:i.offsetY==null?this._offsetY:i.offsetY}_validatePositions(){}_addPanelClasses(i){this._pane&&kn(i).forEach(t=>{t!==""&&this._appliedPanelClasses.indexOf(t)===-1&&(this._appliedPanelClasses.push(t),this._pane.classList.add(t))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(i=>{this._pane.classList.remove(i)}),this._appliedPanelClasses=[])}_getViewportMarginStart(){return typeof this._viewportMargin=="number"?this._viewportMargin:this._viewportMargin?.start??0}_getViewportMarginEnd(){return typeof this._viewportMargin=="number"?this._viewportMargin:this._viewportMargin?.end??0}_getViewportMarginTop(){return typeof this._viewportMargin=="number"?this._viewportMargin:this._viewportMargin?.top??0}_getViewportMarginBottom(){return typeof this._viewportMargin=="number"?this._viewportMargin:this._viewportMargin?.bottom??0}_getOriginRect(){let i=this._origin;if(i instanceof R)return i.nativeElement.getBoundingClientRect();if(i instanceof Element)return i.getBoundingClientRect();let t=i.width||0,e=i.height||0;return{top:i.y,bottom:i.y+e,left:i.x,right:i.x+t,height:e,width:t}}_getContainerRect(){let i=this._overlayRef.getConfig().usePopover&&this._popoverLocation!=="global",t=this._overlayContainer.getContainerElement();i&&(t.style.display="block");let e=t.getBoundingClientRect();return i&&(t.style.display=""),e}};function gi(n,i){for(let t in i)Object.hasOwn(i,t)&&(n[t]=i[t]);return n}function _h(n){if(typeof n!="number"&&n!=null){let[i,t]=n.split(zv);return!t||t==="px"?parseFloat(i):null}return n||null}function yh(n){return{top:Math.floor(n.top),right:Math.floor(n.right),bottom:Math.floor(n.bottom),left:Math.floor(n.left),width:Math.floor(n.width),height:Math.floor(n.height)}}function jv(n,i){return n===i?!0:n.isOriginClipped===i.isOriginClipped&&n.isOriginOutsideView===i.isOriginOutsideView&&n.isOverlayClipped===i.isOverlayClipped&&n.isOverlayOutsideView===i.isOverlayOutsideView}var xh="cdk-global-overlay-wrapper";function bi(n){return new hs}var hs=class{_overlayRef;_cssPosition="static";_topOffset="";_bottomOffset="";_alignItems="";_xPosition="";_xOffset="";_width="";_height="";_isDisposed=!1;attach(i){let t=i.getConfig();this._overlayRef=i,this._width&&!t.width&&i.updateSize({width:this._width}),this._height&&!t.height&&i.updateSize({height:this._height}),i.hostElement.classList.add(xh),this._isDisposed=!1}top(i=""){return this._bottomOffset="",this._topOffset=i,this._alignItems="flex-start",this}left(i=""){return this._xOffset=i,this._xPosition="left",this}bottom(i=""){return this._topOffset="",this._bottomOffset=i,this._alignItems="flex-end",this}right(i=""){return this._xOffset=i,this._xPosition="right",this}start(i=""){return this._xOffset=i,this._xPosition="start",this}end(i=""){return this._xOffset=i,this._xPosition="end",this}width(i=""){return this._overlayRef?this._overlayRef.updateSize({width:i}):this._width=i,this}height(i=""){return this._overlayRef?this._overlayRef.updateSize({height:i}):this._height=i,this}centerHorizontally(i=""){return this.left(i),this._xPosition="center",this}centerVertically(i=""){return this.top(i),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;let i=this._overlayRef.overlayElement.style,t=this._overlayRef.hostElement.style,e=this._overlayRef.getConfig(),{width:a,height:r,maxWidth:o,maxHeight:s}=e,l=(a==="100%"||a==="100vw")&&(!o||o==="100%"||o==="100vw"),d=(r==="100%"||r==="100vh")&&(!s||s==="100%"||s==="100vh"),m=this._xPosition,_=this._xOffset,b=this._overlayRef.getConfig().direction==="rtl",M="",D="",Z="";l?Z="flex-start":m==="center"?(Z="center",b?D=_:M=_):b?m==="left"||m==="end"?(Z="flex-end",M=_):(m==="right"||m==="start")&&(Z="flex-start",D=_):m==="left"||m==="start"?(Z="flex-start",M=_):(m==="right"||m==="end")&&(Z="flex-end",D=_),i.position=this._cssPosition,i.marginLeft=l?"0":M,i.marginTop=d?"0":this._topOffset,i.marginBottom=this._bottomOffset,i.marginRight=l?"0":D,t.justifyContent=Z,t.alignItems=d?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;let i=this._overlayRef.overlayElement.style,t=this._overlayRef.hostElement,e=t.style;t.classList.remove(xh),e.justifyContent=e.alignItems=i.marginTop=i.marginBottom=i.marginLeft=i.marginRight=i.position="",this._overlayRef=null,this._isDisposed=!0}};var Mh=new v("OVERLAY_DEFAULT_CONFIG");function Dn(n,i){n.get(Bt).load(kh);let t=n.get(ps),e=n.get(F),a=n.get(St),r=n.get(Ye),o=n.get(de),s=n.get(pt,null,{optional:!0})||n.get(Jt).createRenderer(null,null),l=new je(i),d=n.get(Mh,null,{optional:!0})?.usePopover??!0;l.direction=l.direction||o.value,!e.body||!("showPopover"in e.body)?l.usePopover=!1:l.usePopover=i?.usePopover??d;let m=e.createElement("div"),_=e.createElement("div");m.id=a.getId("cdk-overlay-"),m.classList.add("cdk-overlay-pane"),_.appendChild(m),l.usePopover&&(_.setAttribute("popover","manual"),_.classList.add("cdk-overlay-popover"));let b=l.usePopover?l.positionStrategy?.getPopoverInsertionPoint?.():null;return zc(b)?b.after(_):b?.type==="parent"?b.element.appendChild(_):t.getContainerElement().appendChild(_),new oa(new fr(m,r,n),_,m,l,n.get(O),n.get(Sh),e,n.get(ln),n.get(Ch),i?.disableAnimations??n.get(Ti,null,{optional:!0})==="NoopAnimations",n.get(zt),s)}var sa,Dh=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function jc(){if(sa)return sa;if(typeof document!="object"||!document)return sa=new Set(Dh),sa;let n=document.createElement("input");return sa=new Set(Dh.filter(i=>(n.setAttribute("type",i),n.type===i))),sa}var Uv=new v("MATERIAL_ANIMATIONS"),Eh=null;function Hv(){return c(Uv,{optional:!0})?.animationsDisabled||c(Ti,{optional:!0})==="NoopAnimations"?"di-disabled":(Eh??=c(ts).matchMedia("(prefers-reduced-motion)").matches,Eh?"reduced-motion":"enabled")}function Ct(){return Hv()!=="enabled"}function _e(n){return n!=null&&`${n}`!="false"}var Ue=(function(n){return n[n.FADING_IN=0]="FADING_IN",n[n.VISIBLE=1]="VISIBLE",n[n.FADING_OUT=2]="FADING_OUT",n[n.HIDDEN=3]="HIDDEN",n})(Ue||{}),Uc=class{_renderer;element;config;_animationForciblyDisabledThroughCss;state=Ue.HIDDEN;constructor(i,t,e,a=!1){this._renderer=i,this.element=t,this.config=e,this._animationForciblyDisabledThroughCss=a}fadeOut(){this._renderer.fadeOutRipple(this)}},Nh=ea({passive:!0,capture:!0}),Hc=class{_events=new Map;addHandler(i,t,e,a){let r=this._events.get(t);if(r){let o=r.get(e);o?o.add(a):r.set(e,new Set([a]))}else this._events.set(t,new Map([[e,new Set([a])]])),i.runOutsideAngular(()=>{document.addEventListener(t,this._delegateEventHandler,Nh)})}removeHandler(i,t,e){let a=this._events.get(i);if(!a)return;let r=a.get(t);r&&(r.delete(e),r.size===0&&a.delete(t),a.size===0&&(this._events.delete(i),document.removeEventListener(i,this._delegateEventHandler,Nh)))}_delegateEventHandler=i=>{let t=ce(i);t&&this._events.get(i.type)?.forEach((e,a)=>{(a===t||a.contains(t))&&e.forEach(r=>r.handleEvent(i))})}},yr={enterDuration:225,exitDuration:150},$v=800,Ih=ea({passive:!0,capture:!0}),Ah=["mousedown","touchstart"],Rh=["mouseup","mouseleave","touchend","touchcancel"],Gv=(()=>{class n{static \u0275fac=function(e){return new(e||n)};static \u0275cmp=S({type:n,selectors:[["ng-component"]],hostAttrs:["mat-ripple-style-loader",""],decls:0,vars:0,template:function(e,a){},styles:[`.mat-ripple {
|
|
overflow: hidden;
|
|
position: relative;
|
|
}
|
|
.mat-ripple:not(:empty) {
|
|
transform: translateZ(0);
|
|
}
|
|
|
|
.mat-ripple.mat-ripple-unbounded {
|
|
overflow: visible;
|
|
}
|
|
|
|
.mat-ripple-element {
|
|
position: absolute;
|
|
border-radius: 50%;
|
|
pointer-events: none;
|
|
transition: opacity, transform 0ms cubic-bezier(0, 0, 0.2, 1);
|
|
transform: scale3d(0, 0, 0);
|
|
background-color: var(--%NS%mat-ripple-color, color-mix(in srgb, var(--%NS%mat-sys-on-surface) 10%, transparent));
|
|
}
|
|
@media (forced-colors: active) {
|
|
.mat-ripple-element {
|
|
display: none;
|
|
}
|
|
}
|
|
.cdk-drag-preview .mat-ripple-element, .cdk-drag-placeholder .mat-ripple-element {
|
|
display: none;
|
|
}
|
|
`],encapsulation:2})}return n})(),vi=class n{_target;_ngZone;_platform;_containerElement;_triggerElement=null;_isPointerDown=!1;_activeRipples=new Map;_mostRecentTransientRipple=null;_lastTouchStartEvent;_pointerUpEventsRegistered=!1;_containerRect=null;static _eventManager=new Hc;constructor(i,t,e,a,r){this._target=i,this._ngZone=t,this._platform=a,a.isBrowser&&(this._containerElement=ve(e)),r&&r.get(Bt).load(Gv)}fadeInRipple(i,t,e={}){let a=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),r=g(g({},yr),e.animation);e.centered&&(i=a.left+a.width/2,t=a.top+a.height/2);let o=e.radius||Wv(i,t,a),s=i-a.left,l=t-a.top,d=r.enterDuration,m=document.createElement("div");m.classList.add("mat-ripple-element"),m.style.left=`${s-o}px`,m.style.top=`${l-o}px`,m.style.height=`${o*2}px`,m.style.width=`${o*2}px`,e.color!=null&&(m.style.backgroundColor=e.color),m.style.transitionDuration=`${d}ms`,this._containerElement.appendChild(m);let _=window.getComputedStyle(m),b=_.transitionProperty,M=_.transitionDuration,D=b==="none"||M==="0s"||M==="0s, 0s"||a.width===0&&a.height===0,Z=new Uc(this,m,e,D);m.style.transform="scale3d(1, 1, 1)",Z.state=Ue.FADING_IN,e.persistent||(this._mostRecentTransientRipple=Z);let lt=null;return!D&&(d||r.exitDuration)&&this._ngZone.runOutsideAngular(()=>{let $t=()=>{lt&&(lt.fallbackTimer=null),clearTimeout(it),this._finishRippleTransition(Z)},nt=()=>this._destroyRipple(Z),it=setTimeout(nt,d+100);m.addEventListener("transitionend",$t),m.addEventListener("transitioncancel",nt),lt={onTransitionEnd:$t,onTransitionCancel:nt,fallbackTimer:it}}),this._activeRipples.set(Z,lt),(D||!d)&&this._finishRippleTransition(Z),Z}fadeOutRipple(i){if(i.state===Ue.FADING_OUT||i.state===Ue.HIDDEN)return;let t=i.element,e=g(g({},yr),i.config.animation);t.style.transitionDuration=`${e.exitDuration}ms`,t.style.opacity="0",i.state=Ue.FADING_OUT,(i._animationForciblyDisabledThroughCss||!e.exitDuration)&&this._finishRippleTransition(i)}fadeOutAll(){this._getActiveRipples().forEach(i=>i.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(i=>{i.config.persistent||i.fadeOut()})}setupTriggerEvents(i){let t=ve(i);!this._platform.isBrowser||!t||t===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=t,Ah.forEach(e=>{n._eventManager.addHandler(this._ngZone,e,t,this)}))}handleEvent(i){i.type==="mousedown"?this._onMousedown(i):i.type==="touchstart"?this._onTouchStart(i):this._onPointerUp(),this._pointerUpEventsRegistered||(this._ngZone.runOutsideAngular(()=>{Rh.forEach(t=>{this._triggerElement.addEventListener(t,this,Ih)})}),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(i){i.state===Ue.FADING_IN?this._startFadeOutTransition(i):i.state===Ue.FADING_OUT&&this._destroyRipple(i)}_startFadeOutTransition(i){let t=i===this._mostRecentTransientRipple,{persistent:e}=i.config;i.state=Ue.VISIBLE,!e&&(!t||!this._isPointerDown)&&i.fadeOut()}_destroyRipple(i){let t=this._activeRipples.get(i)??null;this._activeRipples.delete(i),this._activeRipples.size||(this._containerRect=null),i===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),i.state=Ue.HIDDEN,t!==null&&(i.element.removeEventListener("transitionend",t.onTransitionEnd),i.element.removeEventListener("transitioncancel",t.onTransitionCancel),t.fallbackTimer!==null&&clearTimeout(t.fallbackTimer)),i.element.remove()}_onMousedown(i){let t=ci(i),e=this._lastTouchStartEvent&&Date.now()<this._lastTouchStartEvent+$v;!this._target.rippleDisabled&&!t&&!e&&(this._isPointerDown=!0,this.fadeInRipple(i.clientX,i.clientY,this._target.rippleConfig))}_onTouchStart(i){if(!this._target.rippleDisabled&&!di(i)){this._lastTouchStartEvent=Date.now(),this._isPointerDown=!0;let t=i.changedTouches;if(t)for(let e=0;e<t.length;e++)this.fadeInRipple(t[e].clientX,t[e].clientY,this._target.rippleConfig)}}_onPointerUp(){this._isPointerDown&&(this._isPointerDown=!1,this._getActiveRipples().forEach(i=>{let t=i.state===Ue.VISIBLE||i.config.terminateOnPointerUp&&i.state===Ue.FADING_IN;!i.config.persistent&&t&&i.fadeOut()}))}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){let i=this._triggerElement;i&&(Ah.forEach(t=>n._eventManager.removeHandler(t,i,this)),this._pointerUpEventsRegistered&&(Rh.forEach(t=>i.removeEventListener(t,this,Ih)),this._pointerUpEventsRegistered=!1))}};function Wv(n,i,t){let e=Math.max(Math.abs(n-t.left),Math.abs(n-t.right)),a=Math.max(Math.abs(i-t.top),Math.abs(i-t.bottom));return Math.sqrt(e*e+a*a)}var _i=new v("mat-ripple-global-options"),fs=(()=>{class n{_elementRef=c(R);_animationsDisabled=Ct();color;unbounded=!1;centered=!1;radius=0;animation;get disabled(){return this._disabled}set disabled(t){t&&this.fadeOutAllNonPersistent(),this._disabled=t,this._setupTriggerEventsIfEnabled()}_disabled=!1;get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(t){this._trigger=t,this._setupTriggerEventsIfEnabled()}_trigger;_rippleRenderer;_globalOptions;_isInitialized=!1;constructor(){let t=c(O),e=c(ut),a=c(_i,{optional:!0}),r=c(K);this._globalOptions=a||{},this._rippleRenderer=new vi(this,t,this._elementRef,e,r)}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:g(g(g({},this._globalOptions.animation),this._animationsDisabled?{enterDuration:0,exitDuration:0}:{}),this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(t,e=0,a){return typeof t=="number"?this._rippleRenderer.fadeInRipple(t,e,g(g({},this.rippleConfig),a)):this._rippleRenderer.fadeInRipple(0,0,g(g({},this.rippleConfig),t))}static \u0275fac=function(e){return new(e||n)};static \u0275dir=x({type:n,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(e,a){e&2&&z("mat-ripple-unbounded",a.unbounded)},inputs:{color:[0,"matRippleColor","color"],unbounded:[0,"matRippleUnbounded","unbounded"],centered:[0,"matRippleCentered","centered"],radius:[0,"matRippleRadius","radius"],animation:[0,"matRippleAnimation","animation"],disabled:[0,"matRippleDisabled","disabled"],trigger:[0,"matRippleTrigger","trigger"]},exportAs:["matRipple"]})}return n})();var qv={capture:!0},Kv=["focus","mousedown","mouseenter","touchstart"],$c="mat-ripple-loader-uninitialized",Gc="mat-ripple-loader-class-name",Th="mat-ripple-loader-centered",gs="mat-ripple-loader-disabled",bs=(()=>{class n{_document=c(F);_animationsDisabled=Ct();_globalRippleOptions=c(_i,{optional:!0});_platform=c(ut);_ngZone=c(O);_injector=c(K);_eventCleanups;_hosts=new Map;constructor(){let t=c(Jt).createRenderer(null,null);this._eventCleanups=this._ngZone.runOutsideAngular(()=>Kv.map(e=>t.listen(this._document,e,this._onInteraction,qv)))}ngOnDestroy(){let t=this._hosts.keys();for(let e of t)this.destroyRipple(e);this._eventCleanups.forEach(e=>e())}configureRipple(t,e){t.setAttribute($c,this._globalRippleOptions?.namespace??""),(e.className||!t.hasAttribute(Gc))&&t.setAttribute(Gc,e.className||""),e.centered&&t.setAttribute(Th,""),e.disabled&&t.setAttribute(gs,"")}setDisabled(t,e){let a=this._hosts.get(t);a?(a.target.rippleDisabled=e,!e&&!a.hasSetUpEvents&&(a.hasSetUpEvents=!0,a.renderer.setupTriggerEvents(t))):e?t.setAttribute(gs,""):t.removeAttribute(gs)}_onInteraction=t=>{let e=ce(t);if(e instanceof HTMLElement){let a=e.closest(`[${$c}="${this._globalRippleOptions?.namespace??""}"]`);a&&this._createRipple(a)}};_createRipple(t){if(!this._document||this._hosts.has(t))return;t.querySelector(".mat-ripple")?.remove();let e=this._document.createElement("span");e.classList.add("mat-ripple",t.getAttribute(Gc)),t.append(e);let a=this._globalRippleOptions,r=this._animationsDisabled?0:a?.animation?.enterDuration??yr.enterDuration,o=this._animationsDisabled?0:a?.animation?.exitDuration??yr.exitDuration,s={rippleDisabled:this._animationsDisabled||a?.disabled||t.hasAttribute(gs),rippleConfig:{centered:t.hasAttribute(Th),terminateOnPointerUp:a?.terminateOnPointerUp,animation:{enterDuration:r,exitDuration:o}}},l=new vi(s,this._ngZone,e,this._platform,this._injector),d=!s.rippleDisabled;d&&l.setupTriggerEvents(t),this._hosts.set(t,{target:s,renderer:l,hasSetUpEvents:d}),t.removeAttribute($c)}destroyRipple(t){let e=this._hosts.get(t);e&&(e.renderer._removeTriggerEvents(),this._hosts.delete(t))}static \u0275fac=function(e){return new(e||n)};static \u0275prov=I({token:n,factory:n.\u0275fac})}return n})();var en=(()=>{class n{static \u0275fac=function(e){return new(e||n)};static \u0275cmp=S({type:n,selectors:[["structural-styles"]],decls:0,vars:0,template:function(e,a){},styles:[`.mat-focus-indicator {
|
|
position: relative;
|
|
}
|
|
.mat-focus-indicator::before {
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
position: absolute;
|
|
box-sizing: border-box;
|
|
pointer-events: none;
|
|
display: var(--%NS%mat-focus-indicator-display, none);
|
|
border-width: var(--%NS%mat-focus-indicator-border-width, 3px);
|
|
border-style: var(--%NS%mat-focus-indicator-border-style, solid);
|
|
border-color: var(--%NS%mat-focus-indicator-border-color, transparent);
|
|
border-radius: var(--%NS%mat-focus-indicator-border-radius, 4px);
|
|
}
|
|
.mat-focus-indicator:focus-visible::before {
|
|
content: "";
|
|
}
|
|
|
|
@media (forced-colors: active) {
|
|
html {
|
|
--%NS%mat-focus-indicator-display: block;
|
|
--%NS%mat-focus-indicator-fallback-border-style: none;
|
|
}
|
|
}
|
|
`],encapsulation:2})}return n})();var Yv=new v("MAT_BUTTON_CONFIG");function Oh(n){return n==null?void 0:Li(n)}var Wc=(()=>{class n{_elementRef=c(R);_ngZone=c(O);_animationsDisabled=Ct();_config=c(Yv,{optional:!0});_focusMonitor=c(fn);_cleanupClick;_renderer=c(pt);_rippleLoader=c(bs);_isAnchor;_isFab=!1;color;get disableRipple(){return this._disableRipple}set disableRipple(t){this._disableRipple=t,this._updateRippleDisabled()}_disableRipple=!1;get disabled(){return this._disabled}set disabled(t){this._disabled=t,this._updateRippleDisabled()}_disabled=!1;ariaDisabled;disabledInteractive;tabIndex;set _tabindex(t){this.tabIndex=t}showProgress=ii(!1,{transform:j});constructor(){c(Bt).load(en);let t=this._elementRef.nativeElement;this._isAnchor=t.tagName==="A",this.disabledInteractive=this._config?.disabledInteractive??!1,this.color=this._config?.color??null,this._rippleLoader?.configureRipple(t,{className:"mat-mdc-button-ripple"})}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0),this._isAnchor&&this._setupAsAnchor()}ngOnDestroy(){this._cleanupClick?.(),this._focusMonitor.stopMonitoring(this._elementRef),this._rippleLoader?.destroyRipple(this._elementRef.nativeElement)}focus(t="program",e){t?this._focusMonitor.focusVia(this._elementRef.nativeElement,t,e):this._elementRef.nativeElement.focus(e)}_getAriaDisabled(){return this.ariaDisabled!=null?this.ariaDisabled:this._isAnchor?this.disabled||null:this.disabled&&this.disabledInteractive?!0:null}_getDisabledAttribute(){return this.disabledInteractive||!this.disabled?null:!0}_updateRippleDisabled(){this._rippleLoader?.setDisabled(this._elementRef.nativeElement,this.disableRipple||this.disabled)}_getTabIndex(){return this._isAnchor?this.disabled&&!this.disabledInteractive?-1:this.tabIndex:this.tabIndex}_setupAsAnchor(){this._cleanupClick=this._ngZone.runOutsideAngular(()=>this._renderer.listen(this._elementRef.nativeElement,"click",t=>{this.disabled&&(t.preventDefault(),t.stopImmediatePropagation())}))}static \u0275fac=function(e){return new(e||n)};static \u0275dir=x({type:n,hostAttrs:[1,"mat-mdc-button-base"],hostVars:15,hostBindings:function(e,a){e&2&&(H("disabled",a._getDisabledAttribute())("aria-disabled",a._getAriaDisabled())("tabindex",a._getTabIndex()),Fe(a.color?"mat-"+a.color:""),z("mat-mdc-button-progress-indicator-shown",a.showProgress())("mat-mdc-button-disabled",a.disabled)("mat-mdc-button-disabled-interactive",a.disabledInteractive)("mat-unthemed",!a.color)("_mat-animation-noopable",a._animationsDisabled))},inputs:{color:"color",disableRipple:[2,"disableRipple","disableRipple",j],disabled:[2,"disabled","disabled",j],ariaDisabled:[2,"aria-disabled","ariaDisabled",j],disabledInteractive:[2,"disabledInteractive","disabledInteractive",j],tabIndex:[2,"tabIndex","tabIndex",Oh],_tabindex:[2,"tabindex","_tabindex",Oh],showProgress:[1,"showProgress"]}})}return n})(),xr=(()=>{class n extends Wc{constructor(){super(),this._rippleLoader.configureRipple(this._elementRef.nativeElement,{centered:!0})}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=(function(){let t=["*",[["","progressIndicator",""]]],e=["*","[progressIndicator]"];function a(r,o){r&1&&(qt(0,"div",1),V(1,1),te())}return S({type:n,selectors:[["button","mat-icon-button",""],["a","mat-icon-button",""],["button","matIconButton",""],["a","matIconButton",""]],hostAttrs:[1,"mdc-icon-button","mat-mdc-icon-button"],exportAs:["matButton","matAnchor"],features:[ot],ngContentSelectors:e,decls:5,vars:1,consts:[[1,"mat-mdc-button-persistent-ripple","mdc-icon-button__ripple"],[1,"mat-mdc-button-progress-indicator-container"],[1,"mat-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(o,s){o&1&&(_t(t),sn(0,"span",0),V(1),C(2,a,2,0,"div",1),sn(3,"span",2)(4,"span",3)),o&2&&(p(2),k(s.showProgress()?2:-1))},styles:[`.mat-mdc-icon-button {
|
|
-webkit-user-select: none;
|
|
user-select: none;
|
|
display: inline-block;
|
|
position: relative;
|
|
box-sizing: border-box;
|
|
border: none;
|
|
outline: none;
|
|
background-color: transparent;
|
|
fill: currentColor;
|
|
text-decoration: none;
|
|
cursor: pointer;
|
|
z-index: 0;
|
|
overflow: visible;
|
|
border-radius: var(--%NS%mat-icon-button-container-shape, var(--%NS%mat-sys-corner-full, 50%));
|
|
flex-shrink: 0;
|
|
text-align: center;
|
|
width: var(--%NS%mat-icon-button-state-layer-size, 40px);
|
|
height: var(--%NS%mat-icon-button-state-layer-size, 40px);
|
|
padding: calc(calc(var(--%NS%mat-icon-button-state-layer-size, 40px) - var(--%NS%mat-icon-button-icon-size, 24px)) / 2);
|
|
font-size: var(--%NS%mat-icon-button-icon-size, 24px);
|
|
color: var(--%NS%mat-icon-button-icon-color, var(--%NS%mat-sys-on-surface-variant));
|
|
-webkit-tap-highlight-color: transparent;
|
|
}
|
|
.mat-mdc-icon-button .mat-mdc-button-ripple,
|
|
.mat-mdc-icon-button .mat-mdc-button-persistent-ripple,
|
|
.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before {
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
position: absolute;
|
|
pointer-events: none;
|
|
border-radius: inherit;
|
|
}
|
|
.mat-mdc-icon-button .mat-mdc-button-ripple {
|
|
overflow: hidden;
|
|
}
|
|
.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before {
|
|
content: "";
|
|
opacity: 0;
|
|
}
|
|
.mat-mdc-icon-button .mdc-button__label,
|
|
.mat-mdc-icon-button .mat-icon {
|
|
z-index: 1;
|
|
position: relative;
|
|
}
|
|
.mat-mdc-icon-button .mat-focus-indicator {
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
position: absolute;
|
|
border-radius: inherit;
|
|
}
|
|
.mat-mdc-icon-button:focus-visible > .mat-focus-indicator::before {
|
|
content: "";
|
|
border-radius: inherit;
|
|
}
|
|
.mat-mdc-icon-button .mat-ripple-element {
|
|
background-color: var(--%NS%mat-icon-button-ripple-color, color-mix(in srgb, var(--%NS%mat-sys-on-surface-variant) calc(var(--%NS%mat-sys-pressed-state-layer-opacity) * 100%), transparent));
|
|
}
|
|
.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before {
|
|
background-color: var(--%NS%mat-icon-button-state-layer-color, var(--%NS%mat-sys-on-surface-variant));
|
|
}
|
|
.mat-mdc-icon-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before {
|
|
background-color: var(--%NS%mat-icon-button-disabled-state-layer-color, var(--%NS%mat-sys-on-surface-variant));
|
|
}
|
|
.mat-mdc-icon-button:hover > .mat-mdc-button-persistent-ripple::before {
|
|
opacity: var(--%NS%mat-icon-button-hover-state-layer-opacity, var(--%NS%mat-sys-hover-state-layer-opacity));
|
|
}
|
|
.mat-mdc-icon-button.cdk-program-focused > .mat-mdc-button-persistent-ripple::before, .mat-mdc-icon-button.cdk-keyboard-focused > .mat-mdc-button-persistent-ripple::before, .mat-mdc-icon-button.mat-mdc-button-disabled-interactive:focus > .mat-mdc-button-persistent-ripple::before {
|
|
opacity: var(--%NS%mat-icon-button-focus-state-layer-opacity, var(--%NS%mat-sys-focus-state-layer-opacity));
|
|
}
|
|
.mat-mdc-icon-button:active > .mat-mdc-button-persistent-ripple::before {
|
|
opacity: var(--%NS%mat-icon-button-pressed-state-layer-opacity, var(--%NS%mat-sys-pressed-state-layer-opacity));
|
|
}
|
|
.mat-mdc-icon-button .mat-mdc-button-touch-target {
|
|
position: absolute;
|
|
top: 50%;
|
|
height: var(--%NS%mat-icon-button-touch-target-size, 48px);
|
|
display: var(--%NS%mat-icon-button-touch-target-display, block);
|
|
left: 50%;
|
|
width: var(--%NS%mat-icon-button-touch-target-size, 48px);
|
|
transform: translate(-50%, -50%);
|
|
}
|
|
.mat-mdc-icon-button._mat-animation-noopable {
|
|
transition: none !important;
|
|
animation: none !important;
|
|
}
|
|
.mat-mdc-icon-button[disabled], .mat-mdc-icon-button.mat-mdc-button-disabled {
|
|
cursor: default;
|
|
pointer-events: none;
|
|
color: var(--%NS%mat-icon-button-disabled-icon-color, color-mix(in srgb, var(--%NS%mat-sys-on-surface) 38%, transparent));
|
|
}
|
|
.mat-mdc-icon-button.mat-mdc-button-disabled-interactive {
|
|
pointer-events: auto;
|
|
}
|
|
.mat-mdc-icon-button img,
|
|
.mat-mdc-icon-button svg {
|
|
width: var(--%NS%mat-icon-button-icon-size, 24px);
|
|
height: var(--%NS%mat-icon-button-icon-size, 24px);
|
|
vertical-align: baseline;
|
|
}
|
|
.mat-mdc-icon-button .mat-mdc-button-progress-indicator-container .mdc-circular-progress__determinate-circle-graphic {
|
|
width: inherit;
|
|
height: inherit;
|
|
}
|
|
.mat-mdc-icon-button .mat-mdc-button-progress-indicator-container .mdc-circular-progress__indeterminate-circle-graphic {
|
|
height: 100%;
|
|
}
|
|
.mat-mdc-icon-button .mat-mdc-button-persistent-ripple {
|
|
border-radius: var(--%NS%mat-icon-button-container-shape, var(--%NS%mat-sys-corner-full, 50%));
|
|
}
|
|
.mat-mdc-icon-button[hidden] {
|
|
display: none;
|
|
}
|
|
.mat-mdc-icon-button.mat-unthemed:not(.mdc-ripple-upgraded):focus::before, .mat-mdc-icon-button.mat-primary:not(.mdc-ripple-upgraded):focus::before, .mat-mdc-icon-button.mat-accent:not(.mdc-ripple-upgraded):focus::before, .mat-mdc-icon-button.mat-warn:not(.mdc-ripple-upgraded):focus::before {
|
|
background: transparent;
|
|
opacity: 1;
|
|
}
|
|
|
|
.mat-mdc-button-progress-indicator-container {
|
|
position: absolute;
|
|
inset-inline-start: 0;
|
|
inset-block-start: 0;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 100%;
|
|
height: 100%;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.mat-mdc-button-progress-indicator-shown mat-icon {
|
|
visibility: hidden;
|
|
}
|
|
`,`@media (forced-colors: active) {
|
|
.mat-mdc-button:not(.mdc-button--outlined),
|
|
.mat-mdc-unelevated-button:not(.mdc-button--outlined),
|
|
.mat-mdc-raised-button:not(.mdc-button--outlined),
|
|
.mat-mdc-outlined-button:not(.mdc-button--outlined),
|
|
.mat-mdc-button-base.mat-tonal-button,
|
|
.mat-mdc-icon-button.mat-mdc-icon-button,
|
|
.mat-mdc-outlined-button .mdc-button__ripple {
|
|
outline: solid 1px;
|
|
}
|
|
}
|
|
`],encapsulation:2})})()}return n})();var vs=(()=>{class n{static \u0275fac=function(e){return new(e||n)};static \u0275mod=Y({type:n});static \u0275inj=q({imports:[Xt]})}return n})();var Fh=new Map([["text",["mat-mdc-button"]],["filled",["mdc-button--unelevated","mat-mdc-unelevated-button"]],["elevated",["mdc-button--raised","mat-mdc-raised-button"]],["outlined",["mdc-button--outlined","mat-mdc-outlined-button"]],["tonal",["mat-tonal-button"]]]),He=(()=>{class n extends Wc{get appearance(){return this._appearance}set appearance(t){this.setAppearance(t||this._config?.defaultAppearance||"text")}_appearance=null;constructor(){super();let t=Xv(this._elementRef.nativeElement);t&&this.setAppearance(t)}setAppearance(t){if(t===this._appearance)return;let e=this._elementRef.nativeElement.classList,a=this._appearance?Fh.get(this._appearance):null,r=Fh.get(t);a&&e.remove(...a),e.add(...r),this._appearance=t}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=(function(){let t=[[["",8,"material-icons",3,"iconPositionEnd",""],["mat-icon",3,"iconPositionEnd",""],["","matButtonIcon","",3,"iconPositionEnd",""],["",8,"material-symbols-outlined",3,"iconPositionEnd",""],["",8,"material-symbols-rounded",3,"iconPositionEnd",""],["",8,"material-symbols-sharp",3,"iconPositionEnd",""]],"*",[["","iconPositionEnd","",8,"material-icons"],["mat-icon","iconPositionEnd",""],["","matButtonIcon","","iconPositionEnd",""],["","iconPositionEnd","",8,"material-symbols-outlined"],["","iconPositionEnd","",8,"material-symbols-rounded"],["","iconPositionEnd","",8,"material-symbols-sharp"]],[["","progressIndicator",""]]],e=[".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd]), [matButtonIcon]:not([iconPositionEnd]), .material-symbols-outlined:not([iconPositionEnd]), .material-symbols-rounded:not([iconPositionEnd]), .material-symbols-sharp:not([iconPositionEnd])","*",".material-icons[iconPositionEnd], mat-icon[iconPositionEnd], [matButtonIcon][iconPositionEnd], .material-symbols-outlined[iconPositionEnd], .material-symbols-rounded[iconPositionEnd], .material-symbols-sharp[iconPositionEnd]","[progressIndicator]"];function a(r,o){r&1&&(qt(0,"div",2),V(1,3),te())}return S({type:n,selectors:[["button","matButton",""],["a","matButton",""],["button","mat-button",""],["button","mat-raised-button",""],["button","mat-flat-button",""],["button","mat-stroked-button",""],["a","mat-button",""],["a","mat-raised-button",""],["a","mat-flat-button",""],["a","mat-stroked-button",""]],hostAttrs:[1,"mdc-button"],inputs:{appearance:[0,"matButton","appearance"]},exportAs:["matButton","matAnchor"],features:[ot],ngContentSelectors:e,decls:8,vars:5,consts:[[1,"mat-mdc-button-persistent-ripple"],[1,"mdc-button__label"],[1,"mat-mdc-button-progress-indicator-container"],[1,"mat-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(o,s){o&1&&(_t(t),sn(0,"span",0),V(1),qt(2,"span",1),V(3,1),te(),V(4,2),C(5,a,2,0,"div",2),sn(6,"span",3)(7,"span",4)),o&2&&(z("mdc-button__ripple",!s._isFab)("mdc-fab__ripple",s._isFab),p(5),k(s.showProgress()?5:-1))},styles:[`.mat-mdc-button-base {
|
|
text-decoration: none;
|
|
}
|
|
.mat-mdc-button-base .mat-icon {
|
|
min-height: fit-content;
|
|
flex-shrink: 0;
|
|
}
|
|
@media (hover: none) {
|
|
.mat-mdc-button-base:hover > span.mat-mdc-button-persistent-ripple::before {
|
|
opacity: 0;
|
|
}
|
|
}
|
|
|
|
.mdc-button {
|
|
-webkit-user-select: none;
|
|
user-select: none;
|
|
position: relative;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
box-sizing: border-box;
|
|
min-width: 64px;
|
|
border: none;
|
|
outline: none;
|
|
line-height: inherit;
|
|
-webkit-appearance: none;
|
|
overflow: visible;
|
|
vertical-align: middle;
|
|
background: transparent;
|
|
padding: 0 8px;
|
|
}
|
|
.mdc-button::-moz-focus-inner {
|
|
padding: 0;
|
|
border: 0;
|
|
}
|
|
.mdc-button:active {
|
|
outline: none;
|
|
}
|
|
.mdc-button:hover {
|
|
cursor: pointer;
|
|
}
|
|
.mdc-button:disabled {
|
|
cursor: default;
|
|
pointer-events: none;
|
|
}
|
|
.mdc-button[hidden] {
|
|
display: none;
|
|
}
|
|
.mdc-button .mdc-button__label {
|
|
position: relative;
|
|
}
|
|
|
|
.mat-mdc-button {
|
|
padding: 0 var(--%NS%mat-button-text-horizontal-padding, 12px);
|
|
height: var(--%NS%mat-button-text-container-height, 40px);
|
|
font-family: var(--%NS%mat-button-text-label-text-font, var(--%NS%mat-sys-label-large-font));
|
|
font-size: var(--%NS%mat-button-text-label-text-size, var(--%NS%mat-sys-label-large-size));
|
|
letter-spacing: var(--%NS%mat-button-text-label-text-tracking, var(--%NS%mat-sys-label-large-tracking));
|
|
text-transform: var(--%NS%mat-button-text-label-text-transform);
|
|
font-weight: var(--%NS%mat-button-text-label-text-weight, var(--%NS%mat-sys-label-large-weight));
|
|
}
|
|
.mat-mdc-button, .mat-mdc-button .mdc-button__ripple {
|
|
border-radius: var(--%NS%mat-button-text-container-shape, var(--%NS%mat-sys-corner-full));
|
|
}
|
|
.mat-mdc-button:not(:disabled) {
|
|
color: var(--%NS%mat-button-text-label-text-color, var(--%NS%mat-sys-primary));
|
|
}
|
|
.mat-mdc-button[disabled], .mat-mdc-button.mat-mdc-button-disabled {
|
|
cursor: default;
|
|
pointer-events: none;
|
|
color: var(--%NS%mat-button-text-disabled-label-text-color, color-mix(in srgb, var(--%NS%mat-sys-on-surface) 38%, transparent));
|
|
}
|
|
.mat-mdc-button.mat-mdc-button-disabled-interactive {
|
|
pointer-events: auto;
|
|
}
|
|
.mat-mdc-button:has(.material-icons, .material-symbols-outlined, .material-symbols-rounded,
|
|
.material-symbols-sharp, mat-icon, [matButtonIcon]) {
|
|
padding: 0 var(--%NS%mat-button-text-with-icon-horizontal-padding, 16px);
|
|
}
|
|
.mat-mdc-button > .mat-icon {
|
|
margin-right: var(--%NS%mat-button-text-icon-spacing, 8px);
|
|
margin-left: var(--%NS%mat-button-text-icon-offset, -4px);
|
|
}
|
|
[dir=rtl] .mat-mdc-button > .mat-icon {
|
|
margin-right: var(--%NS%mat-button-text-icon-offset, -4px);
|
|
margin-left: var(--%NS%mat-button-text-icon-spacing, 8px);
|
|
}
|
|
.mat-mdc-button .mdc-button__label + .mat-icon {
|
|
margin-right: var(--%NS%mat-button-text-icon-offset, -4px);
|
|
margin-left: var(--%NS%mat-button-text-icon-spacing, 8px);
|
|
}
|
|
[dir=rtl] .mat-mdc-button .mdc-button__label + .mat-icon {
|
|
margin-right: var(--%NS%mat-button-text-icon-spacing, 8px);
|
|
margin-left: var(--%NS%mat-button-text-icon-offset, -4px);
|
|
}
|
|
.mat-mdc-button .mat-ripple-element {
|
|
background-color: var(--%NS%mat-button-text-ripple-color, color-mix(in srgb, var(--%NS%mat-sys-primary) calc(var(--%NS%mat-sys-pressed-state-layer-opacity) * 100%), transparent));
|
|
}
|
|
.mat-mdc-button .mat-mdc-button-persistent-ripple::before {
|
|
background-color: var(--%NS%mat-button-text-state-layer-color, var(--%NS%mat-sys-primary));
|
|
}
|
|
.mat-mdc-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before {
|
|
background-color: var(--%NS%mat-button-text-disabled-state-layer-color, var(--%NS%mat-sys-on-surface-variant));
|
|
}
|
|
.mat-mdc-button:hover > .mat-mdc-button-persistent-ripple::before {
|
|
opacity: var(--%NS%mat-button-text-hover-state-layer-opacity, var(--%NS%mat-sys-hover-state-layer-opacity));
|
|
}
|
|
.mat-mdc-button.cdk-program-focused > .mat-mdc-button-persistent-ripple::before, .mat-mdc-button.cdk-keyboard-focused > .mat-mdc-button-persistent-ripple::before, .mat-mdc-button.mat-mdc-button-disabled-interactive:focus > .mat-mdc-button-persistent-ripple::before {
|
|
opacity: var(--%NS%mat-button-text-focus-state-layer-opacity, var(--%NS%mat-sys-focus-state-layer-opacity));
|
|
}
|
|
.mat-mdc-button:active > .mat-mdc-button-persistent-ripple::before {
|
|
opacity: var(--%NS%mat-button-text-pressed-state-layer-opacity, var(--%NS%mat-sys-pressed-state-layer-opacity));
|
|
}
|
|
.mat-mdc-button .mat-mdc-button-touch-target {
|
|
position: absolute;
|
|
top: 50%;
|
|
height: var(--%NS%mat-button-text-touch-target-size, 48px);
|
|
display: var(--%NS%mat-button-text-touch-target-display, block);
|
|
left: 0;
|
|
right: 0;
|
|
transform: translateY(-50%);
|
|
}
|
|
|
|
.mat-mdc-unelevated-button {
|
|
transition: box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);
|
|
height: var(--%NS%mat-button-filled-container-height, 40px);
|
|
font-family: var(--%NS%mat-button-filled-label-text-font, var(--%NS%mat-sys-label-large-font));
|
|
font-size: var(--%NS%mat-button-filled-label-text-size, var(--%NS%mat-sys-label-large-size));
|
|
letter-spacing: var(--%NS%mat-button-filled-label-text-tracking, var(--%NS%mat-sys-label-large-tracking));
|
|
text-transform: var(--%NS%mat-button-filled-label-text-transform);
|
|
font-weight: var(--%NS%mat-button-filled-label-text-weight, var(--%NS%mat-sys-label-large-weight));
|
|
padding: 0 var(--%NS%mat-button-filled-horizontal-padding, 24px);
|
|
}
|
|
.mat-mdc-unelevated-button > .mat-icon {
|
|
margin-right: var(--%NS%mat-button-filled-icon-spacing, 8px);
|
|
margin-left: var(--%NS%mat-button-filled-icon-offset, -8px);
|
|
}
|
|
[dir=rtl] .mat-mdc-unelevated-button > .mat-icon {
|
|
margin-right: var(--%NS%mat-button-filled-icon-offset, -8px);
|
|
margin-left: var(--%NS%mat-button-filled-icon-spacing, 8px);
|
|
}
|
|
.mat-mdc-unelevated-button .mdc-button__label + .mat-icon {
|
|
margin-right: var(--%NS%mat-button-filled-icon-offset, -8px);
|
|
margin-left: var(--%NS%mat-button-filled-icon-spacing, 8px);
|
|
}
|
|
[dir=rtl] .mat-mdc-unelevated-button .mdc-button__label + .mat-icon {
|
|
margin-right: var(--%NS%mat-button-filled-icon-spacing, 8px);
|
|
margin-left: var(--%NS%mat-button-filled-icon-offset, -8px);
|
|
}
|
|
.mat-mdc-unelevated-button .mat-ripple-element {
|
|
background-color: var(--%NS%mat-button-filled-ripple-color, color-mix(in srgb, var(--%NS%mat-sys-on-primary) calc(var(--%NS%mat-sys-pressed-state-layer-opacity) * 100%), transparent));
|
|
}
|
|
.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before {
|
|
background-color: var(--%NS%mat-button-filled-state-layer-color, var(--%NS%mat-sys-on-primary));
|
|
}
|
|
.mat-mdc-unelevated-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before {
|
|
background-color: var(--%NS%mat-button-filled-disabled-state-layer-color, var(--%NS%mat-sys-on-surface-variant));
|
|
}
|
|
.mat-mdc-unelevated-button:hover > .mat-mdc-button-persistent-ripple::before {
|
|
opacity: var(--%NS%mat-button-filled-hover-state-layer-opacity, var(--%NS%mat-sys-hover-state-layer-opacity));
|
|
}
|
|
.mat-mdc-unelevated-button.cdk-program-focused > .mat-mdc-button-persistent-ripple::before, .mat-mdc-unelevated-button.cdk-keyboard-focused > .mat-mdc-button-persistent-ripple::before, .mat-mdc-unelevated-button.mat-mdc-button-disabled-interactive:focus > .mat-mdc-button-persistent-ripple::before {
|
|
opacity: var(--%NS%mat-button-filled-focus-state-layer-opacity, var(--%NS%mat-sys-focus-state-layer-opacity));
|
|
}
|
|
.mat-mdc-unelevated-button:active > .mat-mdc-button-persistent-ripple::before {
|
|
opacity: var(--%NS%mat-button-filled-pressed-state-layer-opacity, var(--%NS%mat-sys-pressed-state-layer-opacity));
|
|
}
|
|
.mat-mdc-unelevated-button .mat-mdc-button-touch-target {
|
|
position: absolute;
|
|
top: 50%;
|
|
height: var(--%NS%mat-button-filled-touch-target-size, 48px);
|
|
display: var(--%NS%mat-button-filled-touch-target-display, block);
|
|
left: 0;
|
|
right: 0;
|
|
transform: translateY(-50%);
|
|
}
|
|
.mat-mdc-unelevated-button:not(:disabled) {
|
|
color: var(--%NS%mat-button-filled-label-text-color, var(--%NS%mat-sys-on-primary));
|
|
background-color: var(--%NS%mat-button-filled-container-color, var(--%NS%mat-sys-primary));
|
|
}
|
|
.mat-mdc-unelevated-button, .mat-mdc-unelevated-button .mdc-button__ripple {
|
|
border-radius: var(--%NS%mat-button-filled-container-shape, var(--%NS%mat-sys-corner-full));
|
|
}
|
|
.mat-mdc-unelevated-button .mat-mdc-button-progress-indicator-container {
|
|
--%NS%mat-progress-spinner-active-indicator-color: var(--%NS%mat-button-filled-progress-active-indicator-color, var(--%NS%mat-sys-on-primary));
|
|
}
|
|
.mat-mdc-unelevated-button[disabled], .mat-mdc-unelevated-button.mat-mdc-button-disabled {
|
|
cursor: default;
|
|
pointer-events: none;
|
|
color: var(--%NS%mat-button-filled-disabled-label-text-color, color-mix(in srgb, var(--%NS%mat-sys-on-surface) 38%, transparent));
|
|
background-color: var(--%NS%mat-button-filled-disabled-container-color, color-mix(in srgb, var(--%NS%mat-sys-on-surface) 12%, transparent));
|
|
}
|
|
.mat-mdc-unelevated-button.mat-mdc-button-disabled-interactive {
|
|
pointer-events: auto;
|
|
}
|
|
|
|
.mat-mdc-raised-button {
|
|
transition: box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);
|
|
box-shadow: var(--%NS%mat-button-protected-container-elevation-shadow, var(--%NS%mat-sys-level1));
|
|
height: var(--%NS%mat-button-protected-container-height, 40px);
|
|
font-family: var(--%NS%mat-button-protected-label-text-font, var(--%NS%mat-sys-label-large-font));
|
|
font-size: var(--%NS%mat-button-protected-label-text-size, var(--%NS%mat-sys-label-large-size));
|
|
letter-spacing: var(--%NS%mat-button-protected-label-text-tracking, var(--%NS%mat-sys-label-large-tracking));
|
|
text-transform: var(--%NS%mat-button-protected-label-text-transform);
|
|
font-weight: var(--%NS%mat-button-protected-label-text-weight, var(--%NS%mat-sys-label-large-weight));
|
|
padding: 0 var(--%NS%mat-button-protected-horizontal-padding, 24px);
|
|
}
|
|
.mat-mdc-raised-button > .mat-icon {
|
|
margin-right: var(--%NS%mat-button-protected-icon-spacing, 8px);
|
|
margin-left: var(--%NS%mat-button-protected-icon-offset, -8px);
|
|
}
|
|
[dir=rtl] .mat-mdc-raised-button > .mat-icon {
|
|
margin-right: var(--%NS%mat-button-protected-icon-offset, -8px);
|
|
margin-left: var(--%NS%mat-button-protected-icon-spacing, 8px);
|
|
}
|
|
.mat-mdc-raised-button .mdc-button__label + .mat-icon {
|
|
margin-right: var(--%NS%mat-button-protected-icon-offset, -8px);
|
|
margin-left: var(--%NS%mat-button-protected-icon-spacing, 8px);
|
|
}
|
|
[dir=rtl] .mat-mdc-raised-button .mdc-button__label + .mat-icon {
|
|
margin-right: var(--%NS%mat-button-protected-icon-spacing, 8px);
|
|
margin-left: var(--%NS%mat-button-protected-icon-offset, -8px);
|
|
}
|
|
.mat-mdc-raised-button .mat-ripple-element {
|
|
background-color: var(--%NS%mat-button-protected-ripple-color, color-mix(in srgb, var(--%NS%mat-sys-primary) calc(var(--%NS%mat-sys-pressed-state-layer-opacity) * 100%), transparent));
|
|
}
|
|
.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before {
|
|
background-color: var(--%NS%mat-button-protected-state-layer-color, var(--%NS%mat-sys-primary));
|
|
}
|
|
.mat-mdc-raised-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before {
|
|
background-color: var(--%NS%mat-button-protected-disabled-state-layer-color, var(--%NS%mat-sys-on-surface-variant));
|
|
}
|
|
.mat-mdc-raised-button:hover > .mat-mdc-button-persistent-ripple::before {
|
|
opacity: var(--%NS%mat-button-protected-hover-state-layer-opacity, var(--%NS%mat-sys-hover-state-layer-opacity));
|
|
}
|
|
.mat-mdc-raised-button.cdk-program-focused > .mat-mdc-button-persistent-ripple::before, .mat-mdc-raised-button.cdk-keyboard-focused > .mat-mdc-button-persistent-ripple::before, .mat-mdc-raised-button.mat-mdc-button-disabled-interactive:focus > .mat-mdc-button-persistent-ripple::before {
|
|
opacity: var(--%NS%mat-button-protected-focus-state-layer-opacity, var(--%NS%mat-sys-focus-state-layer-opacity));
|
|
}
|
|
.mat-mdc-raised-button:active > .mat-mdc-button-persistent-ripple::before {
|
|
opacity: var(--%NS%mat-button-protected-pressed-state-layer-opacity, var(--%NS%mat-sys-pressed-state-layer-opacity));
|
|
}
|
|
.mat-mdc-raised-button .mat-mdc-button-touch-target {
|
|
position: absolute;
|
|
top: 50%;
|
|
height: var(--%NS%mat-button-protected-touch-target-size, 48px);
|
|
display: var(--%NS%mat-button-protected-touch-target-display, block);
|
|
left: 0;
|
|
right: 0;
|
|
transform: translateY(-50%);
|
|
}
|
|
.mat-mdc-raised-button:not(:disabled) {
|
|
color: var(--%NS%mat-button-protected-label-text-color, var(--%NS%mat-sys-primary));
|
|
background-color: var(--%NS%mat-button-protected-container-color, var(--%NS%mat-sys-surface));
|
|
}
|
|
.mat-mdc-raised-button, .mat-mdc-raised-button .mdc-button__ripple {
|
|
border-radius: var(--%NS%mat-button-protected-container-shape, var(--%NS%mat-sys-corner-full));
|
|
}
|
|
@media (hover: hover) {
|
|
.mat-mdc-raised-button:hover {
|
|
box-shadow: var(--%NS%mat-button-protected-hover-container-elevation-shadow, var(--%NS%mat-sys-level2));
|
|
}
|
|
}
|
|
.mat-mdc-raised-button:focus {
|
|
box-shadow: var(--%NS%mat-button-protected-focus-container-elevation-shadow, var(--%NS%mat-sys-level1));
|
|
}
|
|
.mat-mdc-raised-button:active, .mat-mdc-raised-button:focus:active {
|
|
box-shadow: var(--%NS%mat-button-protected-pressed-container-elevation-shadow, var(--%NS%mat-sys-level1));
|
|
}
|
|
.mat-mdc-raised-button[disabled], .mat-mdc-raised-button.mat-mdc-button-disabled {
|
|
cursor: default;
|
|
pointer-events: none;
|
|
color: var(--%NS%mat-button-protected-disabled-label-text-color, color-mix(in srgb, var(--%NS%mat-sys-on-surface) 38%, transparent));
|
|
background-color: var(--%NS%mat-button-protected-disabled-container-color, color-mix(in srgb, var(--%NS%mat-sys-on-surface) 12%, transparent));
|
|
}
|
|
.mat-mdc-raised-button[disabled].mat-mdc-button-disabled, .mat-mdc-raised-button.mat-mdc-button-disabled.mat-mdc-button-disabled {
|
|
box-shadow: var(--%NS%mat-button-protected-disabled-container-elevation-shadow, var(--%NS%mat-sys-level0));
|
|
}
|
|
.mat-mdc-raised-button.mat-mdc-button-disabled-interactive {
|
|
pointer-events: auto;
|
|
}
|
|
|
|
.mat-mdc-outlined-button {
|
|
border-style: solid;
|
|
transition: border 280ms cubic-bezier(0.4, 0, 0.2, 1);
|
|
height: var(--%NS%mat-button-outlined-container-height, 40px);
|
|
font-family: var(--%NS%mat-button-outlined-label-text-font, var(--%NS%mat-sys-label-large-font));
|
|
font-size: var(--%NS%mat-button-outlined-label-text-size, var(--%NS%mat-sys-label-large-size));
|
|
letter-spacing: var(--%NS%mat-button-outlined-label-text-tracking, var(--%NS%mat-sys-label-large-tracking));
|
|
text-transform: var(--%NS%mat-button-outlined-label-text-transform);
|
|
font-weight: var(--%NS%mat-button-outlined-label-text-weight, var(--%NS%mat-sys-label-large-weight));
|
|
border-radius: var(--%NS%mat-button-outlined-container-shape, var(--%NS%mat-sys-corner-full));
|
|
border-width: var(--%NS%mat-button-outlined-outline-width, 1px);
|
|
padding: 0 var(--%NS%mat-button-outlined-horizontal-padding, 24px);
|
|
}
|
|
.mat-mdc-outlined-button > .mat-icon {
|
|
margin-right: var(--%NS%mat-button-outlined-icon-spacing, 8px);
|
|
margin-left: var(--%NS%mat-button-outlined-icon-offset, -8px);
|
|
}
|
|
[dir=rtl] .mat-mdc-outlined-button > .mat-icon {
|
|
margin-right: var(--%NS%mat-button-outlined-icon-offset, -8px);
|
|
margin-left: var(--%NS%mat-button-outlined-icon-spacing, 8px);
|
|
}
|
|
.mat-mdc-outlined-button .mdc-button__label + .mat-icon {
|
|
margin-right: var(--%NS%mat-button-outlined-icon-offset, -8px);
|
|
margin-left: var(--%NS%mat-button-outlined-icon-spacing, 8px);
|
|
}
|
|
[dir=rtl] .mat-mdc-outlined-button .mdc-button__label + .mat-icon {
|
|
margin-right: var(--%NS%mat-button-outlined-icon-spacing, 8px);
|
|
margin-left: var(--%NS%mat-button-outlined-icon-offset, -8px);
|
|
}
|
|
.mat-mdc-outlined-button .mat-ripple-element {
|
|
background-color: var(--%NS%mat-button-outlined-ripple-color, color-mix(in srgb, var(--%NS%mat-sys-primary) calc(var(--%NS%mat-sys-pressed-state-layer-opacity) * 100%), transparent));
|
|
}
|
|
.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before {
|
|
background-color: var(--%NS%mat-button-outlined-state-layer-color, var(--%NS%mat-sys-primary));
|
|
}
|
|
.mat-mdc-outlined-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before {
|
|
background-color: var(--%NS%mat-button-outlined-disabled-state-layer-color, var(--%NS%mat-sys-on-surface-variant));
|
|
}
|
|
.mat-mdc-outlined-button:hover > .mat-mdc-button-persistent-ripple::before {
|
|
opacity: var(--%NS%mat-button-outlined-hover-state-layer-opacity, var(--%NS%mat-sys-hover-state-layer-opacity));
|
|
}
|
|
.mat-mdc-outlined-button.cdk-program-focused > .mat-mdc-button-persistent-ripple::before, .mat-mdc-outlined-button.cdk-keyboard-focused > .mat-mdc-button-persistent-ripple::before, .mat-mdc-outlined-button.mat-mdc-button-disabled-interactive:focus > .mat-mdc-button-persistent-ripple::before {
|
|
opacity: var(--%NS%mat-button-outlined-focus-state-layer-opacity, var(--%NS%mat-sys-focus-state-layer-opacity));
|
|
}
|
|
.mat-mdc-outlined-button:active > .mat-mdc-button-persistent-ripple::before {
|
|
opacity: var(--%NS%mat-button-outlined-pressed-state-layer-opacity, var(--%NS%mat-sys-pressed-state-layer-opacity));
|
|
}
|
|
.mat-mdc-outlined-button .mat-mdc-button-touch-target {
|
|
position: absolute;
|
|
top: 50%;
|
|
height: var(--%NS%mat-button-outlined-touch-target-size, 48px);
|
|
display: var(--%NS%mat-button-outlined-touch-target-display, block);
|
|
left: 0;
|
|
right: 0;
|
|
transform: translateY(-50%);
|
|
}
|
|
.mat-mdc-outlined-button:not(:disabled) {
|
|
color: var(--%NS%mat-button-outlined-label-text-color, var(--%NS%mat-sys-primary));
|
|
border-color: var(--%NS%mat-button-outlined-outline-color, var(--%NS%mat-sys-outline));
|
|
}
|
|
.mat-mdc-outlined-button[disabled], .mat-mdc-outlined-button.mat-mdc-button-disabled {
|
|
cursor: default;
|
|
pointer-events: none;
|
|
color: var(--%NS%mat-button-outlined-disabled-label-text-color, color-mix(in srgb, var(--%NS%mat-sys-on-surface) 38%, transparent));
|
|
border-color: var(--%NS%mat-button-outlined-disabled-outline-color, color-mix(in srgb, var(--%NS%mat-sys-on-surface) 12%, transparent));
|
|
}
|
|
.mat-mdc-outlined-button.mat-mdc-button-disabled-interactive {
|
|
pointer-events: auto;
|
|
}
|
|
|
|
.mat-tonal-button {
|
|
transition: box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);
|
|
height: var(--%NS%mat-button-tonal-container-height, 40px);
|
|
font-family: var(--%NS%mat-button-tonal-label-text-font, var(--%NS%mat-sys-label-large-font));
|
|
font-size: var(--%NS%mat-button-tonal-label-text-size, var(--%NS%mat-sys-label-large-size));
|
|
letter-spacing: var(--%NS%mat-button-tonal-label-text-tracking, var(--%NS%mat-sys-label-large-tracking));
|
|
text-transform: var(--%NS%mat-button-tonal-label-text-transform);
|
|
font-weight: var(--%NS%mat-button-tonal-label-text-weight, var(--%NS%mat-sys-label-large-weight));
|
|
padding: 0 var(--%NS%mat-button-tonal-horizontal-padding, 24px);
|
|
}
|
|
.mat-tonal-button:not(:disabled) {
|
|
color: var(--%NS%mat-button-tonal-label-text-color, var(--%NS%mat-sys-on-secondary-container));
|
|
background-color: var(--%NS%mat-button-tonal-container-color, var(--%NS%mat-sys-secondary-container));
|
|
}
|
|
.mat-tonal-button, .mat-tonal-button .mdc-button__ripple {
|
|
border-radius: var(--%NS%mat-button-tonal-container-shape, var(--%NS%mat-sys-corner-full));
|
|
}
|
|
.mat-tonal-button[disabled], .mat-tonal-button.mat-mdc-button-disabled {
|
|
cursor: default;
|
|
pointer-events: none;
|
|
color: var(--%NS%mat-button-tonal-disabled-label-text-color, color-mix(in srgb, var(--%NS%mat-sys-on-surface) 38%, transparent));
|
|
background-color: var(--%NS%mat-button-tonal-disabled-container-color, color-mix(in srgb, var(--%NS%mat-sys-on-surface) 12%, transparent));
|
|
}
|
|
.mat-tonal-button.mat-mdc-button-disabled-interactive {
|
|
pointer-events: auto;
|
|
}
|
|
.mat-tonal-button > .mat-icon {
|
|
margin-right: var(--%NS%mat-button-tonal-icon-spacing, 8px);
|
|
margin-left: var(--%NS%mat-button-tonal-icon-offset, -8px);
|
|
}
|
|
[dir=rtl] .mat-tonal-button > .mat-icon {
|
|
margin-right: var(--%NS%mat-button-tonal-icon-offset, -8px);
|
|
margin-left: var(--%NS%mat-button-tonal-icon-spacing, 8px);
|
|
}
|
|
.mat-tonal-button .mdc-button__label + .mat-icon {
|
|
margin-right: var(--%NS%mat-button-tonal-icon-offset, -8px);
|
|
margin-left: var(--%NS%mat-button-tonal-icon-spacing, 8px);
|
|
}
|
|
[dir=rtl] .mat-tonal-button .mdc-button__label + .mat-icon {
|
|
margin-right: var(--%NS%mat-button-tonal-icon-spacing, 8px);
|
|
margin-left: var(--%NS%mat-button-tonal-icon-offset, -8px);
|
|
}
|
|
.mat-tonal-button .mat-ripple-element {
|
|
background-color: var(--%NS%mat-button-tonal-ripple-color, color-mix(in srgb, var(--%NS%mat-sys-on-secondary-container) calc(var(--%NS%mat-sys-pressed-state-layer-opacity) * 100%), transparent));
|
|
}
|
|
.mat-tonal-button .mat-mdc-button-persistent-ripple::before {
|
|
background-color: var(--%NS%mat-button-tonal-state-layer-color, var(--%NS%mat-sys-on-secondary-container));
|
|
}
|
|
.mat-tonal-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before {
|
|
background-color: var(--%NS%mat-button-tonal-disabled-state-layer-color, var(--%NS%mat-sys-on-surface-variant));
|
|
}
|
|
.mat-tonal-button:hover > .mat-mdc-button-persistent-ripple::before {
|
|
opacity: var(--%NS%mat-button-tonal-hover-state-layer-opacity, var(--%NS%mat-sys-hover-state-layer-opacity));
|
|
}
|
|
.mat-tonal-button.cdk-program-focused > .mat-mdc-button-persistent-ripple::before, .mat-tonal-button.cdk-keyboard-focused > .mat-mdc-button-persistent-ripple::before, .mat-tonal-button.mat-mdc-button-disabled-interactive:focus > .mat-mdc-button-persistent-ripple::before {
|
|
opacity: var(--%NS%mat-button-tonal-focus-state-layer-opacity, var(--%NS%mat-sys-focus-state-layer-opacity));
|
|
}
|
|
.mat-tonal-button:active > .mat-mdc-button-persistent-ripple::before {
|
|
opacity: var(--%NS%mat-button-tonal-pressed-state-layer-opacity, var(--%NS%mat-sys-pressed-state-layer-opacity));
|
|
}
|
|
.mat-tonal-button .mat-mdc-button-touch-target {
|
|
position: absolute;
|
|
top: 50%;
|
|
height: var(--%NS%mat-button-tonal-touch-target-size, 48px);
|
|
display: var(--%NS%mat-button-tonal-touch-target-display, block);
|
|
left: 0;
|
|
right: 0;
|
|
transform: translateY(-50%);
|
|
}
|
|
|
|
.mat-mdc-button,
|
|
.mat-mdc-unelevated-button,
|
|
.mat-mdc-raised-button,
|
|
.mat-mdc-outlined-button,
|
|
.mat-tonal-button {
|
|
-webkit-tap-highlight-color: transparent;
|
|
}
|
|
.mat-mdc-button .mat-mdc-button-ripple,
|
|
.mat-mdc-button .mat-mdc-button-persistent-ripple,
|
|
.mat-mdc-button .mat-mdc-button-persistent-ripple::before,
|
|
.mat-mdc-unelevated-button .mat-mdc-button-ripple,
|
|
.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple,
|
|
.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,
|
|
.mat-mdc-raised-button .mat-mdc-button-ripple,
|
|
.mat-mdc-raised-button .mat-mdc-button-persistent-ripple,
|
|
.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,
|
|
.mat-mdc-outlined-button .mat-mdc-button-ripple,
|
|
.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple,
|
|
.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before,
|
|
.mat-tonal-button .mat-mdc-button-ripple,
|
|
.mat-tonal-button .mat-mdc-button-persistent-ripple,
|
|
.mat-tonal-button .mat-mdc-button-persistent-ripple::before {
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
position: absolute;
|
|
pointer-events: none;
|
|
border-radius: inherit;
|
|
}
|
|
.mat-mdc-button .mat-mdc-button-ripple,
|
|
.mat-mdc-unelevated-button .mat-mdc-button-ripple,
|
|
.mat-mdc-raised-button .mat-mdc-button-ripple,
|
|
.mat-mdc-outlined-button .mat-mdc-button-ripple,
|
|
.mat-tonal-button .mat-mdc-button-ripple {
|
|
overflow: hidden;
|
|
}
|
|
.mat-mdc-button .mat-mdc-button-persistent-ripple::before,
|
|
.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,
|
|
.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,
|
|
.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before,
|
|
.mat-tonal-button .mat-mdc-button-persistent-ripple::before {
|
|
content: "";
|
|
opacity: 0;
|
|
}
|
|
.mat-mdc-button .mdc-button__label,
|
|
.mat-mdc-button .mat-icon,
|
|
.mat-mdc-unelevated-button .mdc-button__label,
|
|
.mat-mdc-unelevated-button .mat-icon,
|
|
.mat-mdc-raised-button .mdc-button__label,
|
|
.mat-mdc-raised-button .mat-icon,
|
|
.mat-mdc-outlined-button .mdc-button__label,
|
|
.mat-mdc-outlined-button .mat-icon,
|
|
.mat-tonal-button .mdc-button__label,
|
|
.mat-tonal-button .mat-icon {
|
|
z-index: 1;
|
|
position: relative;
|
|
}
|
|
.mat-mdc-button .mat-focus-indicator,
|
|
.mat-mdc-unelevated-button .mat-focus-indicator,
|
|
.mat-mdc-raised-button .mat-focus-indicator,
|
|
.mat-mdc-outlined-button .mat-focus-indicator,
|
|
.mat-tonal-button .mat-focus-indicator {
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
position: absolute;
|
|
border-radius: inherit;
|
|
}
|
|
.mat-mdc-button:focus-visible > .mat-focus-indicator::before,
|
|
.mat-mdc-unelevated-button:focus-visible > .mat-focus-indicator::before,
|
|
.mat-mdc-raised-button:focus-visible > .mat-focus-indicator::before,
|
|
.mat-mdc-outlined-button:focus-visible > .mat-focus-indicator::before,
|
|
.mat-tonal-button:focus-visible > .mat-focus-indicator::before {
|
|
content: "";
|
|
border-radius: inherit;
|
|
}
|
|
.mat-mdc-button._mat-animation-noopable,
|
|
.mat-mdc-unelevated-button._mat-animation-noopable,
|
|
.mat-mdc-raised-button._mat-animation-noopable,
|
|
.mat-mdc-outlined-button._mat-animation-noopable,
|
|
.mat-tonal-button._mat-animation-noopable {
|
|
transition: none !important;
|
|
animation: none !important;
|
|
}
|
|
.mat-mdc-button > .mat-icon,
|
|
.mat-mdc-unelevated-button > .mat-icon,
|
|
.mat-mdc-raised-button > .mat-icon,
|
|
.mat-mdc-outlined-button > .mat-icon,
|
|
.mat-tonal-button > .mat-icon {
|
|
display: inline-block;
|
|
position: relative;
|
|
vertical-align: top;
|
|
font-size: 1.125rem;
|
|
height: 1.125rem;
|
|
width: 1.125rem;
|
|
}
|
|
|
|
.mat-mdc-outlined-button .mat-mdc-button-ripple,
|
|
.mat-mdc-outlined-button .mdc-button__ripple {
|
|
top: -1px;
|
|
left: -1px;
|
|
bottom: -1px;
|
|
right: -1px;
|
|
}
|
|
|
|
.mat-mdc-unelevated-button .mat-focus-indicator::before,
|
|
.mat-tonal-button .mat-focus-indicator::before,
|
|
.mat-mdc-raised-button .mat-focus-indicator::before {
|
|
margin: calc(calc(var(--%NS%mat-focus-indicator-border-width, 3px) + 2px) * -1);
|
|
}
|
|
|
|
.mat-mdc-outlined-button .mat-focus-indicator::before {
|
|
margin: calc(calc(var(--%NS%mat-focus-indicator-border-width, 3px) + 3px) * -1);
|
|
}
|
|
|
|
.mat-mdc-button-progress-indicator-container {
|
|
position: absolute;
|
|
inset-inline-start: 0;
|
|
inset-block-start: 0;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 100%;
|
|
height: 100%;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.mat-mdc-button-progress-indicator-shown mat-icon,
|
|
.mat-mdc-button-progress-indicator-shown [matButtonIcon],
|
|
.mat-mdc-button-progress-indicator-shown .mdc-button__label {
|
|
visibility: hidden;
|
|
}
|
|
`,`@media (forced-colors: active) {
|
|
.mat-mdc-button:not(.mdc-button--outlined),
|
|
.mat-mdc-unelevated-button:not(.mdc-button--outlined),
|
|
.mat-mdc-raised-button:not(.mdc-button--outlined),
|
|
.mat-mdc-outlined-button:not(.mdc-button--outlined),
|
|
.mat-mdc-button-base.mat-tonal-button,
|
|
.mat-mdc-icon-button.mat-mdc-icon-button,
|
|
.mat-mdc-outlined-button .mdc-button__ripple {
|
|
outline: solid 1px;
|
|
}
|
|
}
|
|
`],encapsulation:2})})()}return n})();function Xv(n){return n.hasAttribute("mat-raised-button")?"elevated":n.hasAttribute("mat-stroked-button")?"outlined":n.hasAttribute("mat-flat-button")?"filled":n.hasAttribute("mat-button")?"text":null}var wr=(()=>{class n{static \u0275fac=function(e){return new(e||n)};static \u0275mod=Y({type:n});static \u0275inj=q({imports:[vs,Xt]})}return n})();var Zv=Math.pow(2,31)-1,Cr=class{_overlayRef;instance;containerInstance;_afterDismissed=new E;_afterOpened=new E;_onAction=new E;_durationTimeoutId;_dismissedByAction=!1;constructor(i,t){this._overlayRef=t,this.containerInstance=i,i._onExit.subscribe(()=>this._finishDismiss())}dismiss(){this._afterDismissed.closed||this.containerInstance.exit(),clearTimeout(this._durationTimeoutId)}dismissWithAction(){this._onAction.closed||(this._dismissedByAction=!0,this._onAction.next(),this._onAction.complete(),this.dismiss()),clearTimeout(this._durationTimeoutId)}closeWithAction(){this.dismissWithAction()}_dismissAfter(i){this._durationTimeoutId=setTimeout(()=>this.dismiss(),Math.min(i,Zv))}_open(){this._afterOpened.closed||(this._afterOpened.next(),this._afterOpened.complete())}_finishDismiss(){this._overlayRef.dispose(),this._onAction.closed||this._onAction.complete(),this._afterDismissed.next({dismissedByAction:this._dismissedByAction}),this._afterDismissed.complete(),this._dismissedByAction=!1}afterDismissed(){return this._afterDismissed}afterOpened(){return this.containerInstance._onEnter}onAction(){return this._onAction}},Ph=new v("MatSnackBarData"),la=class{politeness="polite";announcementMessage="";viewContainerRef;duration=0;panelClass;direction;data=null;horizontalPosition="center";verticalPosition="bottom"},Qv=(()=>{class n{static \u0275fac=function(e){return new(e||n)};static \u0275dir=x({type:n,selectors:[["","matSnackBarLabel",""]],hostAttrs:[1,"mat-mdc-snack-bar-label","mdc-snackbar__label"]})}return n})(),Jv=(()=>{class n{static \u0275fac=function(e){return new(e||n)};static \u0275dir=x({type:n,selectors:[["","matSnackBarActions",""]],hostAttrs:[1,"mat-mdc-snack-bar-actions","mdc-snackbar__actions"]})}return n})(),t_=(()=>{class n{static \u0275fac=function(e){return new(e||n)};static \u0275dir=x({type:n,selectors:[["","matSnackBarAction",""]],hostAttrs:[1,"mat-mdc-snack-bar-action","mdc-snackbar__action"]})}return n})(),e_=(()=>{class n{snackBarRef=c(Cr);data=c(Ph);action(){this.snackBarRef.dismissWithAction()}get hasAction(){return!!this.data.action}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=(function(){function t(e,a){if(e&1){let r=Nt();h(0,"div",1)(1,"button",2),B("click",function(){at(r);let s=w();return rt(s.action())}),f(2),u()()}if(e&2){let r=w();p(2),It(" ",r.data.action," ")}}return S({type:n,selectors:[["simple-snack-bar"]],hostAttrs:[1,"mat-mdc-simple-snack-bar"],exportAs:["matSnackBar"],decls:3,vars:2,consts:[["matSnackBarLabel",""],["matSnackBarActions",""],["matButton","","matSnackBarAction","",3,"click"]],template:function(a,r){a&1&&(h(0,"div",0),f(1),u(),C(2,t,3,1,"div",1)),a&2&&(p(),It(" ",r.data.message,`
|
|
`),p(),k(r.hasAction?2:-1))},dependencies:[He,Qv,Jv,t_],styles:[`.mat-mdc-simple-snack-bar {
|
|
display: flex;
|
|
}
|
|
.mat-mdc-simple-snack-bar .mat-mdc-snack-bar-label {
|
|
max-height: 50vh;
|
|
overflow: auto;
|
|
}
|
|
`],encapsulation:2})})()}return n})(),qc="_mat-snack-bar-enter",Kc="_mat-snack-bar-exit",n_=(()=>{class n extends Hn{_ngZone=c(O);_elementRef=c(R);_changeDetectorRef=c(xt);_platform=c(ut);_animationsDisabled=Ct();snackBarConfig=c(la);_document=c(F);_trackedModals=new Set;_enterFallback;_exitFallback;_injector=c(K);_announceDelay=150;_announceTimeoutId;_destroyed=!1;_portalOutlet;_onAnnounce=new E;_onExit=new E;_onEnter=new E;_animationState="void";_live;_label;_role;_liveElementId=c(St).getId("mat-snack-bar-container-live-");constructor(){super();let t=this.snackBarConfig;t.politeness==="assertive"&&!t.announcementMessage?this._live="assertive":t.politeness==="off"?this._live="off":this._live="polite",this._platform.FIREFOX&&(this._live==="polite"&&(this._role="status"),this._live==="assertive"&&(this._role="alert"))}attachComponentPortal(t){this._assertNotAttached();let e=this._portalOutlet.attachComponentPortal(t);return this._afterPortalAttached(),e}attachTemplatePortal(t){this._assertNotAttached();let e=this._portalOutlet.attachTemplatePortal(t);return this._afterPortalAttached(),e}attachDomPortal=t=>{this._assertNotAttached();let e=this._portalOutlet.attachDomPortal(t);return this._afterPortalAttached(),e};onAnimationEnd(t){t===Kc?this._completeExit():t===qc&&(clearTimeout(this._enterFallback),this._ngZone.run(()=>{this._onEnter.next(),this._onEnter.complete()}))}enter(){this._destroyed||(this._animationState="visible",this._changeDetectorRef.markForCheck(),this._changeDetectorRef.detectChanges(),this._screenReaderAnnounce(),this._animationsDisabled?Pt(()=>{this._ngZone.run(()=>queueMicrotask(()=>this.onAnimationEnd(qc)))},{injector:this._injector}):(clearTimeout(this._enterFallback),this._enterFallback=setTimeout(()=>{this._elementRef.nativeElement.classList.add("mat-snack-bar-fallback-visible"),this.onAnimationEnd(qc)},200)))}exit(){return this._destroyed?A(void 0):(this._ngZone.run(()=>{this._animationState="hidden",this._changeDetectorRef.markForCheck(),this._elementRef.nativeElement.setAttribute("mat-exit",""),clearTimeout(this._announceTimeoutId),this._animationsDisabled?Pt(()=>{this._ngZone.run(()=>queueMicrotask(()=>this.onAnimationEnd(Kc)))},{injector:this._injector}):(clearTimeout(this._exitFallback),this._exitFallback=setTimeout(()=>this.onAnimationEnd(Kc),200))}),this._onExit)}ngOnDestroy(){this._destroyed=!0,this._clearFromModals(),this._completeExit()}_completeExit(){clearTimeout(this._exitFallback),queueMicrotask(()=>{this._onExit.next(),this._onExit.complete()})}_afterPortalAttached(){let t=this._elementRef.nativeElement,e=this.snackBarConfig.panelClass;e&&(Array.isArray(e)?e.forEach(o=>t.classList.add(o)):t.classList.add(e)),this._exposeToModals();let a=this._label.nativeElement,r="mdc-snackbar__label";a.classList.toggle(r,!a.querySelector(`.${r}`))}_exposeToModals(){let t=this._liveElementId,e=this._document.querySelectorAll('body > .cdk-overlay-container [aria-modal="true"]');for(let a=0;a<e.length;a++){let r=e[a],o=r.getAttribute("aria-owns");this._trackedModals.add(r),o?o.indexOf(t)===-1&&r.setAttribute("aria-owns",o+" "+t):r.setAttribute("aria-owns",t)}}_clearFromModals(){this._trackedModals.forEach(t=>{let e=t.getAttribute("aria-owns");if(e){let a=e.replace(this._liveElementId,"").trim();a.length>0?t.setAttribute("aria-owns",a):t.removeAttribute("aria-owns")}}),this._trackedModals.clear()}_assertNotAttached(){this._portalOutlet.hasAttached()}_screenReaderAnnounce(){this._announceTimeoutId||this._ngZone.runOutsideAngular(()=>{this._announceTimeoutId=setTimeout(()=>{if(this._destroyed)return;let t=this._elementRef.nativeElement,e=t.querySelector("[aria-hidden]"),a=t.querySelector("[aria-live]");if(e&&a){let r=null;this._platform.isBrowser&&document.activeElement instanceof HTMLElement&&e.contains(document.activeElement)&&(r=document.activeElement),e.removeAttribute("aria-hidden"),a.appendChild(e),r?.focus(),this._onAnnounce.next(),this._onAnnounce.complete()}},this._announceDelay)})}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=(function(){let t=["label"];function e(a,r){}return S({type:n,selectors:[["mat-snack-bar-container"]],viewQuery:function(r,o){if(r&1&&Kt($n,7)(t,7),r&2){let s;P(s=L())&&(o._portalOutlet=s.first),P(s=L())&&(o._label=s.first)}},hostAttrs:[1,"mdc-snackbar","mat-mdc-snack-bar-container"],hostVars:6,hostBindings:function(r,o){r&1&&B("animationend",function(l){return o.onAnimationEnd(l.animationName)})("animationcancel",function(l){return o.onAnimationEnd(l.animationName)}),r&2&&z("mat-snack-bar-container-enter",o._animationState==="visible")("mat-snack-bar-container-exit",o._animationState==="hidden")("mat-snack-bar-container-animations-enabled",!o._animationsDisabled)},features:[ot],decls:6,vars:3,consts:[["label",""],[1,"mdc-snackbar__surface","mat-mdc-snackbar-surface"],[1,"mat-mdc-snack-bar-label"],["aria-hidden","true"],["cdkPortalOutlet",""]],template:function(r,o){r&1&&(h(0,"div",1)(1,"div",2,0)(3,"div",3),Ke(4,e,0,0,"ng-template",4),u(),dt(5,"div"),u()()),r&2&&(p(5),H("aria-live",o._live)("role",o._role)("id",o._liveElementId))},dependencies:[$n],styles:[`@keyframes _mat-snack-bar-enter {
|
|
from {
|
|
transform: scale(0.8);
|
|
opacity: 0;
|
|
}
|
|
to {
|
|
transform: scale(1);
|
|
opacity: 1;
|
|
}
|
|
}
|
|
@keyframes _mat-snack-bar-exit {
|
|
from {
|
|
opacity: 1;
|
|
}
|
|
to {
|
|
opacity: 0;
|
|
}
|
|
}
|
|
.mat-mdc-snack-bar-container {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
box-sizing: border-box;
|
|
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
|
|
margin: 8px;
|
|
}
|
|
.mat-mdc-snack-bar-handset .mat-mdc-snack-bar-container {
|
|
width: 100vw;
|
|
}
|
|
|
|
.mat-snack-bar-container-animations-enabled {
|
|
opacity: 0;
|
|
}
|
|
.mat-snack-bar-container-animations-enabled.mat-snack-bar-fallback-visible {
|
|
opacity: 1;
|
|
}
|
|
.mat-snack-bar-container-animations-enabled.mat-snack-bar-container-enter {
|
|
animation: _mat-snack-bar-enter 150ms cubic-bezier(0, 0, 0.2, 1) forwards;
|
|
}
|
|
.mat-snack-bar-container-animations-enabled.mat-snack-bar-container-exit {
|
|
animation: _mat-snack-bar-exit 75ms cubic-bezier(0.4, 0, 1, 1) forwards;
|
|
}
|
|
|
|
.mat-mdc-snackbar-surface {
|
|
box-shadow: 0px 3px 5px -1px rgba(0, 0, 0, 0.2), 0px 6px 10px 0px rgba(0, 0, 0, 0.14), 0px 1px 18px 0px rgba(0, 0, 0, 0.12);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: flex-start;
|
|
box-sizing: border-box;
|
|
padding-left: 0;
|
|
padding-right: 8px;
|
|
}
|
|
[dir=rtl] .mat-mdc-snackbar-surface {
|
|
padding-right: 0;
|
|
padding-left: 8px;
|
|
}
|
|
.mat-mdc-snack-bar-container .mat-mdc-snackbar-surface {
|
|
min-width: 344px;
|
|
max-width: 672px;
|
|
}
|
|
.mat-mdc-snack-bar-handset .mat-mdc-snackbar-surface {
|
|
width: 100%;
|
|
min-width: 0;
|
|
}
|
|
@media (forced-colors: active) {
|
|
.mat-mdc-snackbar-surface {
|
|
outline: solid 1px;
|
|
}
|
|
}
|
|
.mat-mdc-snack-bar-container .mat-mdc-snackbar-surface {
|
|
color: var(--%NS%mat-snack-bar-supporting-text-color, var(--%NS%mat-sys-inverse-on-surface));
|
|
border-radius: var(--%NS%mat-snack-bar-container-shape, var(--%NS%mat-sys-corner-extra-small));
|
|
background-color: var(--%NS%mat-snack-bar-container-color, var(--%NS%mat-sys-inverse-surface));
|
|
}
|
|
|
|
.mdc-snackbar__label {
|
|
width: 100%;
|
|
flex-grow: 1;
|
|
box-sizing: border-box;
|
|
margin: 0;
|
|
padding: 14px 8px 14px 16px;
|
|
}
|
|
[dir=rtl] .mdc-snackbar__label {
|
|
padding-left: 8px;
|
|
padding-right: 16px;
|
|
}
|
|
.mat-mdc-snack-bar-container .mdc-snackbar__label {
|
|
font-family: var(--%NS%mat-snack-bar-supporting-text-font, var(--%NS%mat-sys-body-medium-font));
|
|
font-size: var(--%NS%mat-snack-bar-supporting-text-size, var(--%NS%mat-sys-body-medium-size));
|
|
font-weight: var(--%NS%mat-snack-bar-supporting-text-weight, var(--%NS%mat-sys-body-medium-weight));
|
|
line-height: var(--%NS%mat-snack-bar-supporting-text-line-height, var(--%NS%mat-sys-body-medium-line-height));
|
|
}
|
|
|
|
.mat-mdc-snack-bar-actions {
|
|
display: flex;
|
|
flex-shrink: 0;
|
|
align-items: center;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.mat-mdc-snack-bar-handset,
|
|
.mat-mdc-snack-bar-container,
|
|
.mat-mdc-snack-bar-label {
|
|
flex: 1 1 auto;
|
|
}
|
|
|
|
.mat-mdc-snack-bar-container .mat-mdc-button.mat-mdc-snack-bar-action:not(:disabled).mat-unthemed {
|
|
color: var(--%NS%mat-snack-bar-button-color, var(--%NS%mat-sys-inverse-primary));
|
|
}
|
|
.mat-mdc-snack-bar-container .mat-mdc-button.mat-mdc-snack-bar-action:not(:disabled) {
|
|
--%NS%mat-button-text-state-layer-color: currentColor;
|
|
--%NS%mat-button-text-ripple-color: currentColor;
|
|
}
|
|
.mat-mdc-snack-bar-container .mat-mdc-button.mat-mdc-snack-bar-action:not(:disabled) .mat-ripple-element {
|
|
opacity: 0.1;
|
|
}
|
|
`],encapsulation:2,changeDetection:1})})()}return n})(),i_=new v("mat-snack-bar-default-options",{providedIn:"root",factory:()=>new la}),ca=(()=>{class n{_live=c(Ac);_injector=c(K);_breakpointObserver=c(ur);_parentSnackBar=c(n,{optional:!0,skipSelf:!0});_defaultConfig=c(i_);_animationsDisabled=Ct();_snackBarRefAtThisLevel=null;simpleSnackBarComponent=e_;snackBarContainerComponent=n_;handsetCssClass="mat-mdc-snack-bar-handset";get _openedSnackBarRef(){let t=this._parentSnackBar;return t?t._openedSnackBarRef:this._snackBarRefAtThisLevel}set _openedSnackBarRef(t){this._parentSnackBar?this._parentSnackBar._openedSnackBarRef=t:this._snackBarRefAtThisLevel=t}openFromComponent(t,e){return this._attach(t,e)}openFromTemplate(t,e){return this._attach(t,e)}open(t,e="",a){let r=g(g({},this._defaultConfig),a);return r.data={message:t,action:e},r.announcementMessage===t&&(r.announcementMessage=void 0),this.openFromComponent(this.simpleSnackBarComponent,r)}dismiss(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss()}ngOnDestroy(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss()}_attachSnackBarContainer(t,e){let a=e&&e.viewContainerRef&&e.viewContainerRef.injector,r=K.create({parent:a||this._injector,providers:[{provide:la,useValue:e}]}),o=new Mn(this.snackBarContainerComponent,e.viewContainerRef,r),s=t.attach(o);return s.instance.snackBarConfig=e,s.instance}_attach(t,e){let a=g(g(g({},new la),this._defaultConfig),e),r=this._createOverlay(a),o=this._attachSnackBarContainer(r,a),s=new Cr(o,r);if(t instanceof Te){let l=new ze(t,null,{$implicit:a.data,snackBarRef:s});s.instance=o.attachTemplatePortal(l)}else{let l=this._createInjector(a,s),d=new Mn(t,void 0,l),m=o.attachComponentPortal(d);s.instance=m.instance}return this._breakpointObserver.observe(as.HandsetPortrait).pipe(kt(r.detachments())).subscribe(l=>{r.overlayElement.classList.toggle(this.handsetCssClass,l.matches)}),a.announcementMessage&&o._onAnnounce.subscribe(()=>{this._live.announce(a.announcementMessage,a.politeness)}),this._animateSnackBar(s,a),this._openedSnackBarRef=s,this._openedSnackBarRef}_animateSnackBar(t,e){t.afterDismissed().subscribe(()=>{this._openedSnackBarRef==t&&(this._openedSnackBarRef=null),e.announcementMessage&&this._live.clear()}),e.duration&&e.duration>0&&t.afterOpened().subscribe(()=>t._dismissAfter(e.duration)),this._openedSnackBarRef?(this._openedSnackBarRef.afterDismissed().subscribe(()=>{t.containerInstance.enter()}),this._openedSnackBarRef.dismiss()):t.containerInstance.enter()}_createOverlay(t){let e=new je;e.direction=t.direction;let a=bi(this._injector),r=t.direction==="rtl",o=t.horizontalPosition==="left"||t.horizontalPosition==="start"&&!r||t.horizontalPosition==="end"&&r,s=!o&&t.horizontalPosition!=="center";return o?a.left("0"):s?a.right("0"):a.centerHorizontally(),t.verticalPosition==="top"?a.top("0"):a.bottom("0"),e.positionStrategy=a,e.disableAnimations=this._animationsDisabled,Dn(this._injector,e)}_createInjector(t,e){let a=t&&t.viewContainerRef&&t.viewContainerRef.injector;return K.create({parent:a||this._injector,providers:[{provide:Cr,useValue:e},{provide:Ph,useValue:t.data}]})}static \u0275fac=function(e){return new(e||n)};static \u0275prov=I({token:n,factory:n.\u0275fac})}return n})();function da(n){switch(n.status){case 401:return"Please log in to continue";case 403:return"You do not have permission to do this";case 404:return"Tutorial not found";default:return n.error?.message??"Something went wrong, please try again"}}var _s="auth-user",gn=(()=>{class n{constructor(){}saveUser(t){window.sessionStorage.removeItem(_s),window.sessionStorage.setItem(_s,JSON.stringify(t))}getUser(){let t=window.sessionStorage.getItem(_s);return t?JSON.parse(t):{}}clean(){window.sessionStorage.clear()}isLoggedIn(){return!!window.sessionStorage.getItem(_s)}static \u0275fac=function(e){return new(e||n)};static \u0275prov=$({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();var yi="/api/tutorials",ma=(()=>{class n{http;constructor(t){this.http=t}getAll(){return this.http.get(yi)}get(t){return this.http.get(`${yi}/${t}`)}create(t){return this.http.post(yi,t)}update(t,e){return this.http.put(`${yi}/${t}`,e)}delete(t){return this.http.delete(`${yi}/${t}`)}deleteAll(){return this.http.delete(yi)}findByTitle(t){return this.http.get(`${yi}?title=${t}`)}static \u0275fac=function(e){return new(e||n)(T(Le))};static \u0275prov=$({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();var $h=(()=>{class n{_renderer;_elementRef;onChange=t=>{};onTouched=()=>{};constructor(t,e){this._renderer=t,this._elementRef=e}setProperty(t,e){this._renderer.setProperty(this._elementRef.nativeElement,t,e)}registerOnTouched(t){this.onTouched=t}registerOnChange(t){this.onChange=t}setDisabledState(t){this.setProperty("disabled",t)}static \u0275fac=function(e){return new(e||n)(U(pt),U(R))};static \u0275dir=x({type:n})}return n})(),a_=(()=>{class n extends $h{static \u0275fac=(()=>{let t;return function(a){return(t||(t=Rt(n)))(a||n)}})();static \u0275dir=x({type:n,features:[ot]})}return n})(),fa=new v("");var r_={provide:fa,useExisting:se(()=>me),multi:!0};function o_(){let n=Me()?Me().getUserAgent():"";return/android (\d+)/.test(n.toLowerCase())}var s_=new v(""),me=(()=>{class n extends $h{_compositionMode;_composing=!1;constructor(t,e,a){super(t,e),this._compositionMode=a,this._compositionMode==null&&(this._compositionMode=!o_())}writeValue(t){let e=t??"";this.setProperty("value",e)}_handleInput(t){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(t)}_compositionStart(){this._composing=!0}_compositionEnd(t){this._composing=!1,this._compositionMode&&this.onChange(t)}static \u0275fac=function(e){return new(e||n)(U(pt),U(R),U(s_,8))};static \u0275dir=x({type:n,selectors:[["input","formControlName","",3,"type","checkbox",3,"ngNoCva",""],["textarea","formControlName","",3,"ngNoCva",""],["input","formControl","",3,"type","checkbox",3,"ngNoCva",""],["textarea","formControl","",3,"ngNoCva",""],["input","ngModel","",3,"type","checkbox",3,"ngNoCva",""],["textarea","ngModel","",3,"ngNoCva",""],["","ngDefaultControl",""]],hostBindings:function(e,a){e&1&&B("input",function(o){return a._handleInput(o.target.value)})("blur",function(){return a.onTouched()})("compositionstart",function(){return a._compositionStart()})("compositionend",function(o){return a._compositionEnd(o.target.value)})},standalone:!1,features:[ft([r_]),ot]})}return n})();function Qc(n){return n==null||Jc(n)===0}function Jc(n){return n==null?null:Array.isArray(n)||typeof n=="string"?n.length:n instanceof Set?n.size:null}var qn=new v(""),Rs=new v(""),l_=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,xi=class{static min(i){return c_(i)}static max(i){return d_(i)}static required(i){return Gh(i)}static requiredTrue(i){return m_(i)}static email(i){return Wh(i)}static minLength(i){return qh(i)}static maxLength(i){return Kh(i)}static pattern(i){return u_(i)}static nullValidator(i){return xs()}static compose(i){return tp(i)}static composeAsync(i){return ep(i)}};function c_(n){return i=>{if(i.value==null||n==null)return null;let t=parseFloat(i.value);return!isNaN(t)&&t<n?{min:{min:n,actual:i.value}}:null}}function d_(n){return i=>{if(i.value==null||n==null)return null;let t=parseFloat(i.value);return!isNaN(t)&&t>n?{max:{max:n,actual:i.value}}:null}}function Gh(n){return Qc(n.value)?{required:!0}:null}function m_(n){return n.value===!0?null:{required:!0}}function Wh(n){return Qc(n.value)||l_.test(n.value)?null:{email:!0}}function qh(n){return i=>{let t=i.value?.length??Jc(i.value);return t===null||t===0?null:t<n?{minlength:{requiredLength:n,actualLength:t}}:null}}function Kh(n){return i=>{let t=i.value?.length??Jc(i.value);return t!==null&&t>n?{maxlength:{requiredLength:n,actualLength:t}}:null}}function u_(n){if(!n)return xs;let i,t;return typeof n=="string"?(t="",n.charAt(0)!=="^"&&(t+="^"),t+=n,n.charAt(n.length-1)!=="$"&&(t+="$"),i=new RegExp(t)):(t=n.toString(),i=n),e=>{if(Qc(e.value))return null;let a=e.value;return i.test(a)?null:{pattern:{requiredPattern:t,actualValue:a}}}}function xs(n){return null}function Yh(n){return n!=null}function Xh(n){return Pi(n)?Zt(n):n}function Zh(n){let i={};return n.forEach(t=>{i=t!=null?g(g({},i),t):i}),Object.keys(i).length===0?null:i}function Qh(n,i){return i.map(t=>t(n))}function h_(n){return!n.validate}function Jh(n){return n.map(i=>h_(i)?i:t=>i.validate(t))}function tp(n){if(!n)return null;let i=n.filter(Yh);return i.length==0?null:function(t){return Zh(Qh(t,i))}}function td(n){return n!=null?tp(Jh(n)):null}function ep(n){if(!n)return null;let i=n.filter(Yh);return i.length==0?null:function(t){let e=Qh(t,i).map(Xh);return Ur(e).pipe(st(Zh))}}function ed(n){return n!=null?ep(Jh(n)):null}function Bh(n,i){return n===null?[i]:Array.isArray(n)?[...n,i]:[n,i]}function np(n){return n._rawValidators}function ip(n){return n._rawAsyncValidators}function Yc(n){return n?Array.isArray(n)?n:[n]:[]}function ws(n,i){return Array.isArray(n)?n.includes(i):n===i}function Vh(n,i){let t=Yc(i);return Yc(n).forEach(a=>{ws(t,a)||t.push(a)}),t}function zh(n,i){return Yc(i).filter(t=>!ws(n,t))}var Ss=class{get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators=[];_rawAsyncValidators=[];_setValidators(i){this._rawValidators=i||[],this._composedValidatorFn=td(this._rawValidators)}_setAsyncValidators(i){this._rawAsyncValidators=i||[],this._composedAsyncValidatorFn=ed(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_onDestroyCallbacks=[];_registerOnDestroy(i){this._onDestroyCallbacks.push(i)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(i=>i()),this._onDestroyCallbacks=[]}reset(i=void 0){this.control?.reset(i)}hasError(i,t){return this.control?this.control.hasError(i,t):!1}getError(i,t){return this.control?this.control.getError(i,t):null}},Gn=class extends Ss{name;get formDirective(){return null}get path(){return null}};var kr="VALID",ys="INVALID",ua="PENDING",Mr="DISABLED",Wn=class{},Cs=class extends Wn{value;source;constructor(i,t){super(),this.value=i,this.source=t}},Er=class extends Wn{pristine;source;constructor(i,t){super(),this.pristine=i,this.source=t}},Nr=class extends Wn{touched;source;constructor(i,t){super(),this.touched=i,this.source=t}},ha=class extends Wn{status;source;constructor(i,t){super(),this.status=i,this.source=t}},ks=class extends Wn{source;constructor(i){super(),this.source=i}},pa=class extends Wn{source;constructor(i){super(),this.source=i}};function ap(n){return(Ts(n)?n.validators:n)||null}function p_(n){return Array.isArray(n)?td(n):n||null}function rp(n,i){return(Ts(i)?i.asyncValidators:n)||null}function f_(n){return Array.isArray(n)?ed(n):n||null}function Ts(n){return n!=null&&!Array.isArray(n)&&typeof n=="object"}function g_(n,i,t){let e=n.controls;if(!(i?Object.keys(e):e).length)throw new W(1e3,"");if(!op(e,t))throw new W(1001,"")}function b_(n,i,t){n._forEachChild((e,a)=>{if(t[a]===void 0)throw new W(-1002,"")})}var Ms=class{_pendingDirty=!1;_hasOwnPendingAsyncValidator=null;_pendingTouched=!1;_onCollectionChange=()=>{};_updateOn;_hasRequired=X(!1);_parent=null;_asyncValidationSubscription;_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators;_rawAsyncValidators;value;constructor(i,t){this._assignValidators(i),this._assignAsyncValidators(t)}get validator(){return this._composedValidatorFn}set validator(i){this._rawValidators=this._composedValidatorFn=i,this._updateHasRequiredValidator()}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(i){this._rawAsyncValidators=this._composedAsyncValidatorFn=i}get parent(){return this._parent}get status(){return et(this.statusReactive)}set status(i){et(()=>this.statusReactive.set(i))}_status=pe(()=>this.statusReactive());statusReactive=X(void 0);get valid(){return this.status===kr}get invalid(){return this.status===ys}get pending(){return this.status===ua}get disabled(){return this.status===Mr}get enabled(){return this.status!==Mr}errors;get pristine(){return et(this.pristineReactive)}set pristine(i){et(()=>this.pristineReactive.set(i))}_pristine=pe(()=>this.pristineReactive());pristineReactive=X(!0);get dirty(){return!this.pristine}get touched(){return et(this.touchedReactive)}set touched(i){et(()=>this.touchedReactive.set(i))}_touched=pe(()=>this.touchedReactive());touchedReactive=X(!1);get untouched(){return!this.touched}_events=new E;events=this._events.asObservable();valueChanges;statusChanges;get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(i){this._assignValidators(i)}setAsyncValidators(i){this._assignAsyncValidators(i)}addValidators(i){this.setValidators(Vh(i,this._rawValidators))}addAsyncValidators(i){this.setAsyncValidators(Vh(i,this._rawAsyncValidators))}removeValidators(i){this.setValidators(zh(i,this._rawValidators))}removeAsyncValidators(i){this.setAsyncValidators(zh(i,this._rawAsyncValidators))}hasValidator(i){return ws(this._rawValidators,i)}hasAsyncValidator(i){return ws(this._rawAsyncValidators,i)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(i={}){let t=this.touched===!1;this.touched=!0;let e=i.sourceControl??this;i.onlySelf||this._parent?.markAsTouched(ct(g({},i),{sourceControl:e})),t&&i.emitEvent!==!1&&this._events.next(new Nr(!0,e))}markAllAsDirty(i={}){this.markAsDirty({onlySelf:!0,emitEvent:i.emitEvent,sourceControl:this}),this._forEachChild(t=>t.markAllAsDirty(i))}markAllAsTouched(i={}){this.markAsTouched({onlySelf:!0,emitEvent:i.emitEvent,sourceControl:this}),this._forEachChild(t=>t.markAllAsTouched(i))}markAsUntouched(i={}){let t=this.touched===!0;this.touched=!1,this._pendingTouched=!1;let e=i.sourceControl??this;this._forEachChild(a=>{a.markAsUntouched({onlySelf:!0,emitEvent:i.emitEvent,sourceControl:e})}),i.onlySelf||this._parent?._updateTouched(i,e),t&&i.emitEvent!==!1&&this._events.next(new Nr(!1,e))}markAsDirty(i={}){let t=this.pristine===!0;this.pristine=!1;let e=i.sourceControl??this;i.onlySelf||this._parent?.markAsDirty(ct(g({},i),{sourceControl:e})),t&&i.emitEvent!==!1&&this._events.next(new Er(!1,e))}markAsPristine(i={}){let t=this.pristine===!1;this.pristine=!0,this._pendingDirty=!1;let e=i.sourceControl??this;this._forEachChild(a=>{a.markAsPristine({onlySelf:!0,emitEvent:i.emitEvent})}),i.onlySelf||this._parent?._updatePristine(i,e),t&&i.emitEvent!==!1&&this._events.next(new Er(!0,e))}markAsPending(i={}){this.status=ua;let t=i.sourceControl??this;i.emitEvent!==!1&&(this._events.next(new ha(this.status,t)),this.statusChanges.emit(this.status)),i.onlySelf||this._parent?.markAsPending(ct(g({},i),{sourceControl:t}))}disable(i={}){let t=this._parentMarkedDirty(i.onlySelf);this.status=Mr,this.errors=null,this._forEachChild(a=>{a.disable(ct(g({},i),{onlySelf:!0}))}),this._updateValue();let e=i.sourceControl??this;i.emitEvent!==!1&&(this._events.next(new Cs(this.value,e)),this._events.next(new ha(this.status,e)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(ct(g({},i),{skipPristineCheck:t}),this),this._onDisabledChange.forEach(a=>a(!0))}enable(i={}){let t=this._parentMarkedDirty(i.onlySelf);this.status=kr,this._forEachChild(e=>{e.enable(ct(g({},i),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:i.emitEvent}),this._updateAncestors(ct(g({},i),{skipPristineCheck:t}),this),this._onDisabledChange.forEach(e=>e(!1))}_updateAncestors(i,t){i.onlySelf||(this._parent?.updateValueAndValidity(i),i.skipPristineCheck||this._parent?._updatePristine({},t),this._parent?._updateTouched({},t))}setParent(i){this._parent=i}getRawValue(){return this.value}updateValueAndValidity(i={}){if(this._setInitialStatus(),this._updateValue(),this.enabled){let e=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===kr||this.status===ua)&&this._runAsyncValidator(e,i.emitEvent)}let t=i.sourceControl??this;i.emitEvent!==!1&&(this._events.next(new Cs(this.value,t)),this._events.next(new ha(this.status,t)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),i.onlySelf||this._parent?.updateValueAndValidity(ct(g({},i),{sourceControl:t}))}_updateTreeValidity(i={emitEvent:!0}){this._forEachChild(t=>t._updateTreeValidity(i)),this.updateValueAndValidity({onlySelf:!0,emitEvent:i.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Mr:kr}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(i,t){if(this.asyncValidator){this.status=ua,this._hasOwnPendingAsyncValidator={emitEvent:t!==!1,shouldHaveEmitted:i!==!1};let e=Xh(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(a=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(a,{emitEvent:t,shouldHaveEmitted:i})})}}_cancelExistingSubscription(){if(this._asyncValidationSubscription){this._asyncValidationSubscription.unsubscribe();let i=(this._hasOwnPendingAsyncValidator?.emitEvent||this._hasOwnPendingAsyncValidator?.shouldHaveEmitted)??!1;return this._hasOwnPendingAsyncValidator=null,i}return!1}setErrors(i,t={}){this.errors=i,this._updateControlsErrors(t.emitEvent!==!1,this,t.shouldHaveEmitted)}get(i){let t=i;return t==null||(Array.isArray(t)||(t=t.split(".")),t.length===0)?null:t.reduce((e,a)=>e&&e._find(a),this)}getError(i,t){let e=t?this.get(t):this;return e?.errors?e.errors[i]:null}hasError(i,t){return!!this.getError(i,t)}get root(){let i=this;for(;i._parent;)i=i._parent;return i}_updateControlsErrors(i,t,e){this.status=this._calculateStatus(),i&&this.statusChanges.emit(this.status),(i||e)&&this._events.next(new ha(this.status,t)),this._parent&&this._parent._updateControlsErrors(i,t,e)}_initObservables(){this.valueChanges=new Q,this.statusChanges=new Q}_calculateStatus(){return this._allControlsDisabled()?Mr:this.errors?ys:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(ua)?ua:this._anyControlsHaveStatus(ys)?ys:kr}_anyControlsHaveStatus(i){return this._anyControls(t=>t.status===i)}_anyControlsDirty(){return this._anyControls(i=>i.dirty)}_anyControlsTouched(){return this._anyControls(i=>i.touched)}_updatePristine(i,t){let e=!this._anyControlsDirty(),a=this.pristine!==e;this.pristine=e,i.onlySelf||this._parent?._updatePristine(i,t),a&&this._events.next(new Er(this.pristine,t))}_updateTouched(i={},t){this.touched=this._anyControlsTouched(),this._events.next(new Nr(this.touched,t)),i.onlySelf||this._parent?._updateTouched(i,t)}_onDisabledChange=[];_registerOnCollectionChange(i){this._onCollectionChange=i}_setUpdateStrategy(i){Ts(i)&&i.updateOn!=null&&(this._updateOn=i.updateOn)}_parentMarkedDirty(i){return!i&&!!this._parent?.dirty&&!this._parent._anyControlsDirty()}_find(i){return null}_assignValidators(i){this._rawValidators=Array.isArray(i)?i.slice():i,this._composedValidatorFn=p_(this._rawValidators),this._updateHasRequiredValidator()}_assignAsyncValidators(i){this._rawAsyncValidators=Array.isArray(i)?i.slice():i,this._composedAsyncValidatorFn=f_(this._rawAsyncValidators)}_updateHasRequiredValidator(){et(()=>this._hasRequired.set(this.hasValidator(xi.required)))}};function op(n,i){return Object.hasOwn(n,i)}function v_(n){return n.tagName==="INPUT"||n.tagName==="SELECT"||n.tagName==="TEXTAREA"}function __(n,i,t,e){switch(t){case"name":n.setAttribute(i,t,e);break;case"disabled":case"readonly":case"required":e?n.setAttribute(i,t,""):n.removeAttribute(i,t);break;case"max":case"min":case"minLength":case"maxLength":e!==void 0?n.setAttribute(i,t,e.toString()):n.removeAttribute(i,t);break}}var Xc=class{kind;context;control;message;constructor({kind:i,context:t,control:e}){this.kind=i,this.context=t,this.control=e}};function sp(n){return typeof n=="number"?n:parseInt(n,10)}var Os=(()=>{class n{_validator=xs;_onChange;_enabled;ngOnChanges(t){if(this.inputName in t){let e=this.normalizeInput(t[this.inputName].currentValue);this._enabled=this.enabled(e),this._validator=this._enabled?this.createValidator(e):xs,this._onChange?.()}}validate(t){return this._validator(t)}registerOnValidatorChange(t){this._onChange=t}enabled(t){return t!=null}static \u0275fac=function(e){return new(e||n)};static \u0275dir=x({type:n,features:[Dt]})}return n})();var y_={provide:qn,useExisting:se(()=>bn),multi:!0};var bn=(()=>{class n extends Os{required;inputName="required";normalizeInput=j;createValidator=t=>Gh;enabled(t){return t}static \u0275fac=(()=>{let t;return function(a){return(t||(t=Rt(n)))(a||n)}})();static \u0275dir=x({type:n,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(e,a){e&2&&H("required",a._enabled?"":null)},inputs:{required:"required"},standalone:!1,features:[ft([y_]),ot]})}return n})();var x_={provide:qn,useExisting:se(()=>nd),multi:!0},nd=(()=>{class n extends Os{email;inputName="email";normalizeInput=j;createValidator=t=>Wh;enabled(t){return t}static \u0275fac=(()=>{let t;return function(a){return(t||(t=Rt(n)))(a||n)}})();static \u0275dir=x({type:n,selectors:[["","email","","formControlName",""],["","email","","formControl",""],["","email","","ngModel",""]],inputs:{email:"email"},standalone:!1,features:[ft([x_]),ot]})}return n})(),w_={provide:qn,useExisting:se(()=>Ir),multi:!0},Ir=(()=>{class n extends Os{minlength;inputName="minlength";normalizeInput=t=>sp(t);createValidator=t=>qh(t);static \u0275fac=(()=>{let t;return function(a){return(t||(t=Rt(n)))(a||n)}})();static \u0275dir=x({type:n,selectors:[["","minlength","","formControlName",""],["","minlength","","formControl",""],["","minlength","","ngModel",""]],hostVars:1,hostBindings:function(e,a){e&2&&H("minlength",a._enabled?a.minlength:null)},inputs:{minlength:"minlength"},standalone:!1,features:[ft([w_]),ot]})}return n})(),S_={provide:qn,useExisting:se(()=>wi),multi:!0},wi=(()=>{class n extends Os{maxlength;inputName="maxlength";normalizeInput=t=>sp(t);createValidator=t=>Kh(t);static \u0275fac=(()=>{let t;return function(a){return(t||(t=Rt(n)))(a||n)}})();static \u0275dir=x({type:n,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(e,a){e&2&&H("maxlength",a._enabled?a.maxlength:null)},inputs:{maxlength:"maxlength"},standalone:!1,features:[ft([S_]),ot]})}return n})();var C_=new v(""),ga=new v("",{factory:()=>Fs}),Fs="always";function k_(n,i){return[...i.path,n]}function Zc(n,i,t=Fs){id(n,i),i.valueAccessor.writeValue(n.value),(n.disabled||t==="always")&&i.valueAccessor.setDisabledState?.(n.disabled),D_(n,i),N_(n,i),E_(n,i),M_(n,i)}function Ds(n,i,t=!0){let e=()=>{};i?.valueAccessor?.registerOnChange(e),i?.valueAccessor?.registerOnTouched(e),Ns(n,i),n&&(i._invokeOnDestroyCallbacks(),n._registerOnCollectionChange(()=>{}))}function Es(n,i){n.forEach(t=>{t.registerOnValidatorChange&&t.registerOnValidatorChange(i)})}function M_(n,i){if(i.valueAccessor.setDisabledState){let t=e=>{i.valueAccessor.setDisabledState(e)};n.registerOnDisabledChange(t),i._registerOnDestroy(()=>{n._unregisterOnDisabledChange(t)})}}function id(n,i){let t=np(n);i.validator!==null?n.setValidators(Bh(t,i.validator)):typeof t=="function"&&n.setValidators([t]);let e=ip(n);i.asyncValidator!==null?n.setAsyncValidators(Bh(e,i.asyncValidator)):typeof e=="function"&&n.setAsyncValidators([e]);let a=()=>n.updateValueAndValidity();Es(i._rawValidators,a),Es(i._rawAsyncValidators,a)}function Ns(n,i){let t=!1;if(n!==null){if(i.validator!==null){let a=np(n);if(Array.isArray(a)&&a.length>0){let r=a.filter(o=>o!==i.validator);r.length!==a.length&&(t=!0,n.setValidators(r))}}if(i.asyncValidator!==null){let a=ip(n);if(Array.isArray(a)&&a.length>0){let r=a.filter(o=>o!==i.asyncValidator);r.length!==a.length&&(t=!0,n.setAsyncValidators(r))}}}let e=()=>{};return Es(i._rawValidators,e),Es(i._rawAsyncValidators,e),t}function D_(n,i){i.valueAccessor.registerOnChange(t=>{n._pendingValue=t,n._pendingChange=!0,n._pendingDirty=!0,n.updateOn==="change"&&lp(n,i)})}function E_(n,i){i.valueAccessor.registerOnTouched(()=>{n._pendingTouched=!0,n.updateOn==="blur"&&n._pendingChange&&lp(n,i),n.updateOn!=="submit"&&n.markAsTouched()})}function lp(n,i){n._pendingDirty&&n.markAsDirty(),n.setValue(n._pendingValue,{emitModelToViewChange:!1}),i.viewToModelUpdate(n._pendingValue),n._pendingChange=!1}function N_(n,i){let t=(e,a)=>{i.valueAccessor.writeValue(e),a&&i.viewToModelUpdate(e)};n.registerOnChange(t),i._registerOnDestroy(()=>{n._unregisterOnChange(t)})}function cp(n,i){n==null,id(n,i)}function I_(n,i){return Ns(n,i)}function dp(n,i){if(!Object.hasOwn(n,"model"))return!1;let t=n.model;return t.isFirstChange()?!0:!Object.is(i,t.currentValue)}function A_(n){return Object.getPrototypeOf(n.constructor)===a_}function mp(n,i){n._syncPendingControls(),i.forEach(t=>{let e=t.control;e.updateOn==="submit"&&e._pendingChange&&(t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1)})}function R_(n,i){if(!i)return null;Array.isArray(i);let t,e,a;return i.forEach(r=>{r.constructor===me?t=r:A_(r)?e=r:a=r}),a||e||t||null}function T_(n,i){let t=n.indexOf(i);t>-1&&n.splice(t,1)}var up={provide:C_,useFactory:()=>{let n=c($e,{self:!0});return{setParseErrors:i=>{n.setParseErrorSource(i)},set onReset(i){n.onReset=i}}}},$e=class extends Ss{_parent=null;name=null;valueAccessor=null;isCustomControlBased=!1;userOnReset;resetSubscription;set onReset(i){this.userOnReset=i,this.resetSubscription?.unsubscribe(),this.resetSubscription=void 0,this.control&&(this.resetSubscription=this.control.events.subscribe(t=>{t instanceof pa&&this.control&&this.userOnReset?.(this.control.value)}),this.subscription?.add(this.resetSubscription))}isNativeFormElement=!1;rawValueAccessors;_selectedValueAccessor=null;get selectedValueAccessor(){return this._selectedValueAccessor??=R_(this,this.rawValueAccessors)}parseErrorsValidator=null;renderer;injector;requiredValidatorViaDi;subscription;customControlBindings=null;constructor(i,t,e){super(),this.injector=i,this.renderer=t,this.rawValueAccessors=e,this.injector?.get(on)?.onDestroy(()=>{this.removeParseErrorsValidator(this.control),this.subscription?.unsubscribe()})}setupCustomControl(){this.subscription?.unsubscribe();let i=this.injector?.get(xt);if(!this.control||!i)return;let t=i.markForCheck.bind(i);this.subscription=new Et,this.subscription.add(this.control.valueChanges.subscribe(t)),this.subscription.add(this.control.statusChanges.subscribe(t)),this.resetSubscription?.unsubscribe(),this.resetSubscription=void 0,this.userOnReset&&(this.resetSubscription=this.control.events.subscribe(e=>{e instanceof pa&&this.control&&this.userOnReset?.(this.control.value)}),this.subscription.add(this.resetSubscription)),this.parseErrorsValidator&&this.control.addValidators(this.parseErrorsValidator)}ngControlCreate(i){!i.nativeElement.hasAttribute?.("ngNoCva")&&(this.rawValueAccessors&&this.rawValueAccessors.length>0||this.valueAccessor!==null)||!i.customControl||(this.isCustomControlBased=!0,i.listenToCustomControlModel(a=>{this.control?.markAsDirty(),this.control?.setValue(a,{emitModelToViewChange:!1}),this.viewToModelUpdate(a)}),i.listenToCustomControlOutput("touch",()=>{this.control?.markAsTouched()}),this.customControlBindings={},this.isNativeFormElement=v_(i.nativeElement),this.requiredValidatorViaDi=this._rawValidators.find(a=>a instanceof bn))}ngControlUpdate(i,t){if(!this.isCustomControlBased)return;let e=this.control,a=this.customControlBindings;Object.is(a.value,e.value)||(a.value=e.value,i.setCustomControlModelInput(e.value)),this.bindControlProperty(i,a,"touched",e.touched),this.bindControlProperty(i,a,"dirty",e.dirty),this.bindControlProperty(i,a,"valid",e.valid),this.bindControlProperty(i,a,"invalid",e.invalid),this.bindControlProperty(i,a,"pending",e.pending),this.bindControlProperty(i,a,"disabled",e.disabled),this.shouldBindRequired&&this.bindControlProperty(i,a,"required",this.isRequired);let r=e.errors;if(a.errors!==r){a.errors=r;let o=this._convertErrors(r);i.setInputOnDirectives("errors",o)}}get isRequired(){return(this.requiredValidatorViaDi?._enabled||this.control?._hasRequired())??!1}get shouldBindRequired(){return!0}bindControlProperty(i,t,e,a){if(t[e]===a)return;t[e]=a;let r=i.setInputOnDirectives(e,a);this.isNativeFormElement&&!r&&(e==="disabled"||e==="required")&&this.renderer&&__(this.renderer,i.nativeElement,e,a)}_convertErrors(i){if(i===null)return[];let t=this.control;return Object.entries(i).map(([e,a])=>new Xc({context:a,kind:e,control:t}))}setParseErrorSource(i){if(i===void 0)return;let t=null,e=pe(()=>{let a=i();return a.length===0?null:a.reduce((r,o)=>(r[o.kind]=o,r),{})});this.parseErrorsValidator=(()=>t).bind(this),qe(()=>{t=e(),this.control?.updateValueAndValidity({emitEvent:!1})},{injector:this.injector})}removeParseErrorsValidator(i){this.parseErrorsValidator&&(i?.removeValidators(this.parseErrorsValidator),i?.updateValueAndValidity({emitEvent:!1}))}},Is=class{_cd;constructor(i){this._cd=i}get isTouched(){return this._cd?.control?._touched?.(),!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return this._cd?.control?._pristine?.(),!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return this._cd?.control?._status?.(),!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return this._cd?._submitted?.(),!!this._cd?.submitted}};var Se=(()=>{class n extends Is{constructor(t){super(t)}static \u0275fac=function(e){return new(e||n)(U($e,2))};static \u0275dir=x({type:n,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(e,a){e&2&&z("ng-untouched",a.isUntouched)("ng-touched",a.isTouched)("ng-pristine",a.isPristine)("ng-dirty",a.isDirty)("ng-valid",a.isValid)("ng-invalid",a.isInvalid)("ng-pending",a.isPending)},standalone:!1,features:[ot]})}return n})(),vn=(()=>{class n extends Is{constructor(t){super(t)}static \u0275fac=function(e){return new(e||n)(U(Gn,10))};static \u0275dir=x({type:n,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["","formArray",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(e,a){e&2&&z("ng-untouched",a.isUntouched)("ng-touched",a.isTouched)("ng-pristine",a.isPristine)("ng-dirty",a.isDirty)("ng-valid",a.isValid)("ng-invalid",a.isInvalid)("ng-pending",a.isPending)("ng-submitted",a.isSubmitted)},standalone:!1,features:[ot]})}return n})(),As=class extends Ms{constructor(i,t,e){super(ap(t),rp(e,t)),this.controls=i,this._initObservables(),this._setUpdateStrategy(t),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}controls;registerControl(i,t){let e=this._find(i);return e||(this.controls[i]=t,t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange),t)}addControl(i,t,e={}){this.registerControl(i,t),this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}removeControl(i,t={}){let e=this._find(i);e&&e._registerOnCollectionChange(()=>{}),delete this.controls[i],this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}setControl(i,t,e={}){let a=this._find(i);a&&a._registerOnCollectionChange(()=>{}),delete this.controls[i],t&&this.registerControl(i,t),this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}contains(i){return this._find(i)?.enabled===!0}setValue(i,t={}){et(()=>{b_(this,!0,i),Object.keys(i).forEach(e=>{g_(this,!0,e),this.controls[e].setValue(i[e],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)})}patchValue(i,t={}){i!=null&&(Object.keys(i).forEach(e=>{let a=this._find(e);a&&a.patchValue(i[e],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t))}reset(i={},t={}){this._forEachChild((e,a)=>{e.reset(i?i[a]:null,ct(g({},t),{onlySelf:!0}))}),this._updatePristine(t,this),this._updateTouched(t,this),this.updateValueAndValidity(t),t?.emitEvent!==!1&&this._events.next(new pa(this))}getRawValue(){return this._reduceChildren({},(i,t,e)=>(i[e]=t.getRawValue(),i))}_syncPendingControls(){let i=this._reduceChildren(!1,(t,e)=>e._syncPendingControls()?!0:t);return i&&this.updateValueAndValidity({onlySelf:!0}),i}_forEachChild(i){Object.keys(this.controls).forEach(t=>{let e=this.controls[t];e&&i(e,t)})}_setUpControls(){this._forEachChild(i=>{i.setParent(this),i._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(i){for(let[t,e]of Object.entries(this.controls))if(this.contains(t)&&i(e))return!0;return!1}_reduceValue(){let i={};return this._reduceChildren(i,(t,e,a)=>((e.enabled||this.disabled)&&(t[a]=e.value),t))}_reduceChildren(i,t){let e=i;return this._forEachChild((a,r)=>{e=t(e,a,r)}),e}_allControlsDisabled(){for(let i of Object.keys(this.controls))if(this.controls[i].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(i){return op(this.controls,i)?this.controls[i]:null}};var O_={provide:Gn,useExisting:se(()=>ye)},Dr=Promise.resolve(),ye=(()=>{class n extends Gn{callSetDisabledState;get submitted(){return et(this.submittedReactive)}_submitted=pe(()=>this.submittedReactive());submittedReactive=X(!1);_directives=new Set;form;ngSubmit=new Q;options;constructor(t,e,a){super(),this.callSetDisabledState=a,this.form=new As({},td(t),ed(e))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(t){Dr.then(()=>{let e=this._findContainer(t.path);t.control=e.registerControl(t.name,t.control),t._setupWithForm(this.callSetDisabledState),t.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(t)})}getControl(t){return this.form.get(t.path)}removeControl(t){Dr.then(()=>{this._findContainer(t.path)?.removeControl(t.name),this._directives.delete(t)})}addFormGroup(t){Dr.then(()=>{let e=this._findContainer(t.path),a=new As({});cp(a,t),e.registerControl(t.name,a),a.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(t){Dr.then(()=>{this._findContainer(t.path)?.removeControl?.(t.name)})}getFormGroup(t){return this.form.get(t.path)}updateModel(t,e){Dr.then(()=>{this.form.get(t.path).setValue(e)})}setValue(t){this.control.setValue(t)}onSubmit(t){return this.submittedReactive.set(!0),mp(this.form,this._directives),this.ngSubmit.emit(t),this.form._events.next(new ks(this.control)),t?.target?.method==="dialog"}onReset(){this.resetForm()}resetForm(t=void 0){this.form.reset(t),this.submittedReactive.set(!1)}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.form._updateOn=this.options.updateOn)}_findContainer(t){return t.pop(),t.length?this.form.get(t):this.form}static \u0275fac=function(e){return new(e||n)(U(qn,10),U(Rs,10),U(ga,8))};static \u0275dir=x({type:n,selectors:[["form",3,"ngNoForm","",3,"formGroup","",3,"formArray",""],["ng-form"],["","ngForm",""]],hostBindings:function(e,a){e&1&&B("submit",function(o){return a.onSubmit(o)})("reset",function(){return a.onReset()})},inputs:{options:[0,"ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],standalone:!1,features:[ft([O_]),ot]})}return n})();function jh(n,i){let t=n.indexOf(i);t>-1&&n.splice(t,1)}function Uh(n){return typeof n=="object"&&n!==null&&Object.keys(n).length===2&&"value"in n&&"disabled"in n}var Ar=class extends Ms{defaultValue=null;_onChange=[];_pendingValue;_pendingChange=!1;constructor(i=null,t,e){super(ap(t),rp(e,t)),this._applyFormState(i),this._setUpdateStrategy(t),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),Ts(t)&&(t.nonNullable||t.initialValueIsDefault)&&(Uh(i)?this.defaultValue=i.value:this.defaultValue=i)}setValue(i,t={}){et(()=>{this.value=this._pendingValue=i,this._onChange.length&&t.emitModelToViewChange!==!1&&this._onChange.forEach(e=>e(this.value,t.emitViewToModelChange!==!1)),this.updateValueAndValidity(t)})}patchValue(i,t={}){this.setValue(i,t)}reset(i=this.defaultValue,t={}){this._applyFormState(i),this.markAsPristine(t),this.markAsUntouched(t),this.setValue(this.value,t),t.overwriteDefaultValue&&(this.defaultValue=this.value),this._pendingChange=!1,t?.emitEvent!==!1&&this._events.next(new pa(this))}_updateValue(){}_anyControls(i){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(i){this._onChange.push(i)}_unregisterOnChange(i){jh(this._onChange,i)}registerOnDisabledChange(i){this._onDisabledChange.push(i)}_unregisterOnDisabledChange(i){jh(this._onDisabledChange,i)}_forEachChild(i){}_syncPendingControls(){return this.updateOn==="submit"&&(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),this._pendingChange)?(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),!0):!1}_applyFormState(i){Uh(i)?(this.value=this._pendingValue=i.value,i.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=i}};var F_=n=>n instanceof Ar;var P_=(()=>{class n extends Gn{callSetDisabledState;get submitted(){return et(this._submittedReactive)}set submitted(t){this._submittedReactive.set(t)}_submitted=pe(()=>this._submittedReactive());_submittedReactive=X(!1);_oldForm;_onCollectionChange=()=>this._updateDomValue();directives=[];constructor(t,e,a){super(),this.callSetDisabledState=a,this._setValidators(t),this._setAsyncValidators(e)}ngOnChanges(t){this.onChanges(t)}ngOnDestroy(){this.onDestroy()}onChanges(t){if(!this.form)throw new W(1052,!1);Object.hasOwn(t,"form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}onDestroy(){this.form&&(Ns(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get path(){return[]}addControl(t){let e=this.form.get(t.path);return t._setupWithForm(e,this.callSetDisabledState),e.updateValueAndValidity({emitEvent:!1}),this.directives.push(t),e}getControl(t){return this.form.get(t.path)}removeControl(t){Ds(t.control||null,t,!1),T_(this.directives,t)}addFormGroup(t){this._setUpFormContainer(t)}removeFormGroup(t){this._cleanUpFormContainer(t)}getFormGroup(t){return this.form.get(t.path)}getFormArray(t){return this.form.get(t.path)}addFormArray(t){this._setUpFormContainer(t)}removeFormArray(t){this._cleanUpFormContainer(t)}updateModel(t,e){this.form.get(t.path).setValue(e)}onReset(){this.resetForm()}resetForm(t=void 0,e={}){this.form.reset(t,e),this._submittedReactive.set(!1)}onSubmit(t){return this.submitted=!0,mp(this.form,this.directives),this.ngSubmit.emit(t),this.form._events.next(new ks(this.control)),t?.target?.method==="dialog"}_updateDomValue(){this.directives.forEach(t=>{let e=t.control,a=this.form.get(t.path);e!==a&&(Ds(e||null,t),F_(a)&&t._setupWithForm(a,this.callSetDisabledState))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(t){let e=this.form.get(t.path);cp(e,t),e.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(t){let e=this.form?.get(t.path);e&&I_(e,t)&&e.updateValueAndValidity({emitEvent:!1})}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm?._registerOnCollectionChange(()=>{})}_updateValidators(){id(this.form,this),this._oldForm&&Ns(this._oldForm,this)}static \u0275fac=function(e){return new(e||n)(U(qn,10),U(Rs,10),U(ga,8))};static \u0275dir=x({type:n,features:[ot,Dt]})}return n})(),L_={provide:Gn,useExisting:se(()=>Rr)},Rr=(()=>{class n extends P_{form=null;ngSubmit=new Q;get control(){return this.form}static \u0275fac=(()=>{let t;return function(a){return(t||(t=Rt(n)))(a||n)}})();static \u0275dir=x({type:n,selectors:[["","formGroup",""]],hostBindings:function(e,a){e&1&&B("submit",function(o){return a.onSubmit(o)})("reset",function(){return a.onReset()})},inputs:{form:[0,"formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],standalone:!1,features:[ft([L_]),ot]})}return n})(),B_={provide:$e,useExisting:se(()=>Ne)},Hh=Promise.resolve(),Ne=(()=>{class n extends $e{_changeDetectorRef;callSetDisabledState;control=new Ar;static ngAcceptInputType_isDisabled;_registered=!1;_ngModelInjector;viewModel;name="";isDisabled;model;options;update=new Q;constructor(t,e,a,r,o,s,l,d){super(l,d,r),this._changeDetectorRef=o,this.callSetDisabledState=s,this._parent=t,this._setValidators(e),this._setAsyncValidators(a)}ngOnChanges(t){if(this._registered,this._checkForErrors(),!this._registered||"name"in t){if(this._registered&&(this._checkName(),this.formDirective)){let e=t.name.previousValue;this.formDirective.removeControl({name:e,path:this._getPath(e)})}this._setUpControl()}"isDisabled"in t&&this._updateDisabled(t),dp(t,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective?.removeControl(this)}\u0275ngControlCreate(t){super.ngControlCreate(t)}\u0275ngControlUpdate(t){super.ngControlUpdate(t,!1)}get shouldBindRequired(){return!1}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!!(this.options&&this.options.standalone)}_setUpStandalone(){this.isCustomControlBased?this.setupCustomControl():(this.valueAccessor??=this.selectedValueAccessor,Zc(this.control,this,this.callSetDisabledState)),this.control.updateValueAndValidity({emitEvent:!1})}_setupWithForm(t){this.isCustomControlBased?this.setupCustomControl():(this.valueAccessor??=this.selectedValueAccessor,Zc(this.control,this,t))}_checkForErrors(){this._checkName()}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),!this._isStandalone()&&this.name}_updateValue(t){Hh.then(()=>{this.control.setValue(t,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(t){let e=t.isDisabled.currentValue,a=e!==0&&j(e);Hh.then(()=>{a&&!this.control.disabled?this.control.disable():!a&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(t){return this._parent?k_(t,this._parent):[t]}static \u0275fac=function(e){return new(e||n)(U(Gn,9),U(qn,10),U(Rs,10),U(fa,10),U(xt,8),U(ga,8),U(K,8),U(pt,8))};static \u0275dir=x({type:n,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"],options:[0,"ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],standalone:!1,features:[ft([B_,up]),ot,Dt,cl(null)]})}return n})();var _n=(()=>{class n{static \u0275fac=function(e){return new(e||n)};static \u0275dir=x({type:n,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""],standalone:!1})}return n})();var hp=new v(""),V_={provide:$e,useExisting:se(()=>ad)},ad=(()=>{class n extends $e{_ngModelWarningConfig;callSetDisabledState;viewModel;form;set isDisabled(t){}model;update=new Q;static _ngModelWarningSentOnce=!1;_ngModelWarningSent=!1;constructor(t,e,a,r,o,s,l){super(l,s,a),this._ngModelWarningConfig=r,this.callSetDisabledState=o,this._setValidators(t),this._setAsyncValidators(e)}ngOnChanges(t){if(this._isControlChanged(t)){let e=t.form.previousValue;e&&(Ds(e,this,!1),this.removeParseErrorsValidator(e)),this.isCustomControlBased?this.setupCustomControl():(this.valueAccessor??=this.selectedValueAccessor,Zc(this.form,this,this.callSetDisabledState)),this.form.updateValueAndValidity({emitEvent:!1})}dp(t,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&Ds(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}_isControlChanged(t){return Object.hasOwn(t,"form")}\u0275ngControlCreate(t){super.ngControlCreate(t)}\u0275ngControlUpdate(t){super.ngControlUpdate(t,!0)}static \u0275fac=function(e){return new(e||n)(U(qn,10),U(Rs,10),U(fa,10),U(hp,8),U(ga,8),U(pt,8),U(K,8))};static \u0275dir=x({type:n,selectors:[["","formControl",""]],inputs:{form:[0,"formControl","form"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],standalone:!1,features:[ft([V_,up]),ot,Dt,cl(null)]})}return n})();var pp=(()=>{class n{static \u0275fac=function(e){return new(e||n)};static \u0275mod=Y({type:n});static \u0275inj=q({})}return n})();var ba=(()=>{class n{static withConfig(t){return{ngModule:n,providers:[{provide:ga,useValue:t.callSetDisabledState??Fs}]}}static \u0275fac=function(e){return new(e||n)};static \u0275mod=Y({type:n});static \u0275inj=q({imports:[pp]})}return n})(),fp=(()=>{class n{static withConfig(t){return{ngModule:n,providers:[{provide:hp,useValue:t.warnOnNgModelWithFormControl??"always"},{provide:ga,useValue:t.callSetDisabledState??Fs}]}}static \u0275fac=function(e){return new(e||n)};static \u0275mod=Y({type:n});static \u0275inj=q({imports:[pp]})}return n})();var z_=new v("MAT_CARD_CONFIG"),va=(()=>{class n{appearance;constructor(){let t=c(z_,{optional:!0});this.appearance=t?.appearance||"raised"}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=(function(){return S({type:n,selectors:[["mat-card"]],hostAttrs:[1,"mat-mdc-card","mdc-card"],hostVars:8,hostBindings:function(a,r){a&2&&z("mat-mdc-card-outlined",r.appearance==="outlined")("mdc-card--outlined",r.appearance==="outlined")("mat-mdc-card-filled",r.appearance==="filled")("mdc-card--filled",r.appearance==="filled")},inputs:{appearance:"appearance"},exportAs:["matCard"],ngContentSelectors:["*"],decls:1,vars:0,template:function(a,r){a&1&&(_t(),V(0))},styles:[`.mat-mdc-card {
|
|
display: flex;
|
|
flex-direction: column;
|
|
box-sizing: border-box;
|
|
position: relative;
|
|
border-style: solid;
|
|
border-width: 0;
|
|
background-color: var(--%NS%mat-card-elevated-container-color, var(--%NS%mat-sys-surface-container-low));
|
|
border-color: var(--%NS%mat-card-elevated-container-color, var(--%NS%mat-sys-surface-container-low));
|
|
border-radius: var(--%NS%mat-card-elevated-container-shape, var(--%NS%mat-sys-corner-medium));
|
|
box-shadow: var(--%NS%mat-card-elevated-container-elevation, var(--%NS%mat-sys-level1));
|
|
}
|
|
.mat-mdc-card::after {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
border: solid 1px transparent;
|
|
content: "";
|
|
display: block;
|
|
pointer-events: none;
|
|
box-sizing: border-box;
|
|
border-radius: var(--%NS%mat-card-elevated-container-shape, var(--%NS%mat-sys-corner-medium));
|
|
}
|
|
|
|
.mat-mdc-card-outlined {
|
|
background-color: var(--%NS%mat-card-outlined-container-color, var(--%NS%mat-sys-surface));
|
|
border-radius: var(--%NS%mat-card-outlined-container-shape, var(--%NS%mat-sys-corner-medium));
|
|
border-width: var(--%NS%mat-card-outlined-outline-width, 1px);
|
|
border-color: var(--%NS%mat-card-outlined-outline-color, var(--%NS%mat-sys-outline-variant));
|
|
box-shadow: var(--%NS%mat-card-outlined-container-elevation, var(--%NS%mat-sys-level0));
|
|
}
|
|
.mat-mdc-card-outlined::after {
|
|
border: none;
|
|
}
|
|
|
|
.mat-mdc-card-filled {
|
|
background-color: var(--%NS%mat-card-filled-container-color, var(--%NS%mat-sys-surface-container-highest));
|
|
border-radius: var(--%NS%mat-card-filled-container-shape, var(--%NS%mat-sys-corner-medium));
|
|
box-shadow: var(--%NS%mat-card-filled-container-elevation, var(--%NS%mat-sys-level0));
|
|
}
|
|
|
|
.mdc-card__media {
|
|
position: relative;
|
|
box-sizing: border-box;
|
|
background-repeat: no-repeat;
|
|
background-position: center;
|
|
background-size: cover;
|
|
}
|
|
.mdc-card__media::before {
|
|
display: block;
|
|
content: "";
|
|
}
|
|
.mdc-card__media:first-child {
|
|
border-top-left-radius: inherit;
|
|
border-top-right-radius: inherit;
|
|
}
|
|
.mdc-card__media:last-child {
|
|
border-bottom-left-radius: inherit;
|
|
border-bottom-right-radius: inherit;
|
|
}
|
|
|
|
.mat-mdc-card-actions {
|
|
display: flex;
|
|
flex-direction: row;
|
|
align-items: center;
|
|
box-sizing: border-box;
|
|
min-height: 52px;
|
|
padding: 8px;
|
|
}
|
|
|
|
.mat-mdc-card-title {
|
|
font-family: var(--%NS%mat-card-title-text-font, var(--%NS%mat-sys-title-large-font));
|
|
line-height: var(--%NS%mat-card-title-text-line-height, var(--%NS%mat-sys-title-large-line-height));
|
|
font-size: var(--%NS%mat-card-title-text-size, var(--%NS%mat-sys-title-large-size));
|
|
letter-spacing: var(--%NS%mat-card-title-text-tracking, var(--%NS%mat-sys-title-large-tracking));
|
|
font-weight: var(--%NS%mat-card-title-text-weight, var(--%NS%mat-sys-title-large-weight));
|
|
}
|
|
|
|
.mat-mdc-card-subtitle {
|
|
color: var(--%NS%mat-card-subtitle-text-color, var(--%NS%mat-sys-on-surface));
|
|
font-family: var(--%NS%mat-card-subtitle-text-font, var(--%NS%mat-sys-title-medium-font));
|
|
line-height: var(--%NS%mat-card-subtitle-text-line-height, var(--%NS%mat-sys-title-medium-line-height));
|
|
font-size: var(--%NS%mat-card-subtitle-text-size, var(--%NS%mat-sys-title-medium-size));
|
|
letter-spacing: var(--%NS%mat-card-subtitle-text-tracking, var(--%NS%mat-sys-title-medium-tracking));
|
|
font-weight: var(--%NS%mat-card-subtitle-text-weight, var(--%NS%mat-sys-title-medium-weight));
|
|
}
|
|
|
|
.mat-mdc-card-title,
|
|
.mat-mdc-card-subtitle {
|
|
display: block;
|
|
margin: 0;
|
|
}
|
|
.mat-mdc-card-avatar ~ .mat-mdc-card-header-text .mat-mdc-card-title,
|
|
.mat-mdc-card-avatar ~ .mat-mdc-card-header-text .mat-mdc-card-subtitle {
|
|
padding: 16px 16px 0;
|
|
}
|
|
|
|
.mat-mdc-card-header {
|
|
display: flex;
|
|
padding: 16px 16px 0;
|
|
}
|
|
|
|
.mat-mdc-card-content {
|
|
display: block;
|
|
padding: 0 16px;
|
|
}
|
|
.mat-mdc-card-content:first-child {
|
|
padding-top: 16px;
|
|
}
|
|
.mat-mdc-card-content:last-child {
|
|
padding-bottom: 16px;
|
|
}
|
|
|
|
.mat-mdc-card-title-group {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
width: 100%;
|
|
}
|
|
|
|
.mat-mdc-card-avatar {
|
|
height: 40px;
|
|
width: 40px;
|
|
border-radius: 50%;
|
|
flex-shrink: 0;
|
|
margin-bottom: 16px;
|
|
object-fit: cover;
|
|
}
|
|
.mat-mdc-card-avatar ~ .mat-mdc-card-header-text .mat-mdc-card-subtitle,
|
|
.mat-mdc-card-avatar ~ .mat-mdc-card-header-text .mat-mdc-card-title {
|
|
line-height: normal;
|
|
}
|
|
|
|
.mat-mdc-card-sm-image {
|
|
width: 80px;
|
|
height: 80px;
|
|
}
|
|
|
|
.mat-mdc-card-md-image {
|
|
width: 112px;
|
|
height: 112px;
|
|
}
|
|
|
|
.mat-mdc-card-lg-image {
|
|
width: 152px;
|
|
height: 152px;
|
|
}
|
|
|
|
.mat-mdc-card-xl-image {
|
|
width: 240px;
|
|
height: 240px;
|
|
}
|
|
|
|
.mat-mdc-card-subtitle ~ .mat-mdc-card-title,
|
|
.mat-mdc-card-title ~ .mat-mdc-card-subtitle,
|
|
.mat-mdc-card-header .mat-mdc-card-header-text .mat-mdc-card-title,
|
|
.mat-mdc-card-header .mat-mdc-card-header-text .mat-mdc-card-subtitle,
|
|
.mat-mdc-card-title-group .mat-mdc-card-title,
|
|
.mat-mdc-card-title-group .mat-mdc-card-subtitle {
|
|
padding-top: 0;
|
|
}
|
|
|
|
.mat-mdc-card-content > :last-child:not(.mat-mdc-card-footer) {
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
.mat-mdc-card-actions-align-end {
|
|
justify-content: flex-end;
|
|
}
|
|
`],encapsulation:2})})()}return n})(),gp=(()=>{class n{static \u0275fac=function(e){return new(e||n)};static \u0275dir=x({type:n,selectors:[["mat-card-title"],["","mat-card-title",""],["","matCardTitle",""]],hostAttrs:[1,"mat-mdc-card-title"]})}return n})();var _a=(()=>{class n{static \u0275fac=function(e){return new(e||n)};static \u0275dir=x({type:n,selectors:[["mat-card-content"]],hostAttrs:[1,"mat-mdc-card-content"]})}return n})(),Ps=(()=>{class n{static \u0275fac=function(e){return new(e||n)};static \u0275dir=x({type:n,selectors:[["mat-card-subtitle"],["","mat-card-subtitle",""],["","matCardSubtitle",""]],hostAttrs:[1,"mat-mdc-card-subtitle"]})}return n})(),ya=(()=>{class n{align="start";static \u0275fac=function(e){return new(e||n)};static \u0275dir=x({type:n,selectors:[["mat-card-actions"]],hostAttrs:[1,"mat-mdc-card-actions","mdc-card__actions"],hostVars:2,hostBindings:function(e,a){e&2&&z("mat-mdc-card-actions-align-end",a.align==="end")},inputs:{align:"align"},exportAs:["matCardActions"]})}return n})(),Ls=(()=>{class n{static \u0275fac=function(e){return new(e||n)};static \u0275cmp=(function(){let t=[[["","mat-card-avatar",""],["","matCardAvatar",""]],[["mat-card-title"],["mat-card-subtitle"],["","mat-card-title",""],["","mat-card-subtitle",""],["","matCardTitle",""],["","matCardSubtitle",""]],"*"];return S({type:n,selectors:[["mat-card-header"]],hostAttrs:[1,"mat-mdc-card-header"],ngContentSelectors:["[mat-card-avatar], [matCardAvatar]",`mat-card-title, mat-card-subtitle,
|
|
[mat-card-title], [mat-card-subtitle],
|
|
[matCardTitle], [matCardSubtitle]`,"*"],decls:4,vars:0,consts:[[1,"mat-mdc-card-header-text"]],template:function(r,o){r&1&&(_t(t),V(0),qt(1,"div",0),V(2,1),te(),V(3,2))},encapsulation:2})})()}return n})();var bp=(()=>{class n{static \u0275fac=function(e){return new(e||n)};static \u0275mod=Y({type:n});static \u0275inj=q({imports:[Xt]})}return n})();var j_=(()=>{class n{static \u0275fac=function(e){return new(e||n)};static \u0275cmp=S({type:n,selectors:[["ng-component"]],hostAttrs:["cdk-text-field-style-loader",""],decls:0,vars:0,template:function(e,a){},styles:[`textarea.cdk-textarea-autosize {
|
|
resize: none;
|
|
}
|
|
|
|
textarea.cdk-textarea-autosize-measuring {
|
|
padding: 2px 0 !important;
|
|
box-sizing: content-box !important;
|
|
height: auto !important;
|
|
overflow: hidden !important;
|
|
}
|
|
|
|
textarea.cdk-textarea-autosize-measuring-firefox {
|
|
padding: 2px 0 !important;
|
|
box-sizing: content-box !important;
|
|
height: 0 !important;
|
|
}
|
|
|
|
@keyframes cdk-text-field-autofill-start { /*!*/ }
|
|
@keyframes cdk-text-field-autofill-end { /*!*/ }
|
|
.cdk-text-field-autofill-monitored:-webkit-autofill {
|
|
animation: cdk-text-field-autofill-start 0s 1ms;
|
|
}
|
|
|
|
.cdk-text-field-autofill-monitored:not(:-webkit-autofill) {
|
|
animation: cdk-text-field-autofill-end 0s 1ms;
|
|
}
|
|
`],encapsulation:2})}return n})(),U_={passive:!0},vp=(()=>{class n{_platform=c(ut);_ngZone=c(O);_renderer=c(Jt).createRenderer(null,null);_styleLoader=c(Bt);_monitoredElements=new Map;monitor(t){if(!this._platform.isBrowser)return we;this._styleLoader.load(j_);let e=ve(t),a=this._monitoredElements.get(e);if(a)return a.subject;let r=new E,o="cdk-text-field-autofilled",s=d=>{d.animationName==="cdk-text-field-autofill-start"&&!e.classList.contains(o)?(e.classList.add(o),this._ngZone.run(()=>r.next({target:d.target,isAutofilled:!0}))):d.animationName==="cdk-text-field-autofill-end"&&e.classList.contains(o)&&(e.classList.remove(o),this._ngZone.run(()=>r.next({target:d.target,isAutofilled:!1})))},l=this._ngZone.runOutsideAngular(()=>(e.classList.add("cdk-text-field-autofill-monitored"),this._renderer.listen(e,"animationstart",s,U_)));return this._monitoredElements.set(e,{subject:r,unlisten:l}),r}stopMonitoring(t){let e=ve(t),a=this._monitoredElements.get(e);a&&(a.unlisten(),a.subject.complete(),e.classList.remove("cdk-text-field-autofill-monitored"),e.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(e))}ngOnDestroy(){this._monitoredElements.forEach((t,e)=>this.stopMonitoring(e))}static \u0275fac=function(e){return new(e||n)};static \u0275prov=I({token:n,factory:n.\u0275fac})}return n})();var _p=(()=>{class n{static \u0275fac=function(e){return new(e||n)};static \u0275mod=Y({type:n});static \u0275inj=q({})}return n})();var xp=Symbol("FIELD_TREE");var wp=Symbol("IS_ASYNC_VALIDATION_RESOURCE"),yp=class{reducer;create;brand;[wp];constructor(i,t){this.reducer=i,this.create=t}};function Tr(n){return typeof n=="function"&&n[xp]===!0}var Bs=new v("");var Sp=new v("MAT_INPUT_VALUE_ACCESSOR");var od=class{_box;_destroyed=new E;_resizeSubject=new E;_resizeObserver;_elementObservables=new Map;constructor(i){this._box=i,typeof ResizeObserver<"u"&&(this._resizeObserver=new ResizeObserver(t=>this._resizeSubject.next(t)))}observe(i){return this._elementObservables.has(i)||this._elementObservables.set(i,new oe(t=>{let e=this._resizeSubject.subscribe(t);return this._resizeObserver?.observe(i,{box:this._box}),()=>{this._resizeObserver?.unobserve(i),e.unsubscribe(),this._elementObservables.delete(i)}}).pipe(vt(t=>t.some(e=>e.target===i)),rl({bufferSize:1,refCount:!0}),kt(this._destroyed))),this._elementObservables.get(i)}destroy(){this._destroyed.next(),this._destroyed.complete(),this._resizeSubject.complete(),this._elementObservables.clear()}},Cp=(()=>{class n{_cleanupErrorListener;_observers=new Map;_ngZone=c(O);constructor(){typeof ResizeObserver<"u"}ngOnDestroy(){for(let[,t]of this._observers)t.destroy();this._observers.clear(),this._cleanupErrorListener?.()}observe(t,e){let a=e?.box||"content-box";return this._observers.has(a)||this._observers.set(a,new od(a)),this._observers.get(a).observe(t)}static \u0275fac=function(e){return new(e||n)};static \u0275prov=I({token:n,factory:n.\u0275fac})}return n})();var Ge=(()=>{class n{static \u0275fac=function(e){return new(e||n)};static \u0275dir=x({type:n,selectors:[["mat-label"]]})}return n})(),Ap=new v("MatError"),xa=(()=>{class n{id=c(St).getId("mat-mdc-error-");static \u0275fac=function(e){return new(e||n)};static \u0275dir=x({type:n,selectors:[["mat-error"],["","matError",""]],hostAttrs:[1,"mat-mdc-form-field-error","mat-mdc-form-field-bottom-align"],hostVars:1,hostBindings:function(e,a){e&2&&ee("id",a.id)},inputs:{id:"id"},features:[ft([{provide:Ap,useExisting:n}])]})}return n})(),Kn=(()=>{class n{align="start";id=c(St).getId("mat-mdc-hint-");static \u0275fac=function(e){return new(e||n)};static \u0275dir=x({type:n,selectors:[["mat-hint"]],hostAttrs:[1,"mat-mdc-form-field-hint","mat-mdc-form-field-bottom-align"],hostVars:4,hostBindings:function(e,a){e&2&&(ee("id",a.id),H("align",null),z("mat-mdc-form-field-hint-end",a.align==="end"))},inputs:{align:"align",id:"id"}})}return n})(),Rp=new v("MatPrefix"),zs=(()=>{class n{set _isTextSelector(t){this._isText=!0}_isText=!1;static \u0275fac=function(e){return new(e||n)};static \u0275dir=x({type:n,selectors:[["","matPrefix",""],["","matIconPrefix",""],["","matTextPrefix",""]],inputs:{_isTextSelector:[0,"matTextPrefix","_isTextSelector"]},features:[ft([{provide:Rp,useExisting:n}])]})}return n})(),Tp=new v("MatSuffix"),wa=(()=>{class n{set _isTextSelector(t){this._isText=!0}_isText=!1;static \u0275fac=function(e){return new(e||n)};static \u0275dir=x({type:n,selectors:[["","matSuffix",""],["","matIconSuffix",""],["","matTextSuffix",""]],inputs:{_isTextSelector:[0,"matTextSuffix","_isTextSelector"]},features:[ft([{provide:Tp,useExisting:n}])]})}return n})(),Op=new v("FloatingLabelParent"),kp=(()=>{class n{_elementRef=c(R);get floating(){return this._floating}set floating(t){this._floating=t,this.monitorResize&&this._handleResize()}_floating=!1;get monitorResize(){return this._monitorResize}set monitorResize(t){this._monitorResize=t,this._monitorResize?this._subscribeToResize():this._resizeSubscription.unsubscribe()}_monitorResize=!1;_resizeObserver=c(Cp);_ngZone=c(O);_parent=c(Op);_resizeSubscription=new Et;ngOnDestroy(){this._resizeSubscription.unsubscribe()}getWidth(){return H_(this._elementRef.nativeElement)}get element(){return this._elementRef.nativeElement}_handleResize(){setTimeout(()=>this._parent._handleLabelResized())}_subscribeToResize(){this._resizeSubscription.unsubscribe(),this._ngZone.runOutsideAngular(()=>{this._resizeSubscription=this._resizeObserver.observe(this._elementRef.nativeElement,{box:"border-box"}).subscribe(()=>this._handleResize())})}static \u0275fac=function(e){return new(e||n)};static \u0275dir=x({type:n,selectors:[["label","matFormFieldFloatingLabel",""]],hostAttrs:[1,"mdc-floating-label","mat-mdc-floating-label"],hostVars:2,hostBindings:function(e,a){e&2&&z("mdc-floating-label--float-above",a.floating)},inputs:{floating:"floating",monitorResize:"monitorResize"}})}return n})();function H_(n){let i=n;if(i.offsetParent!==null)return i.scrollWidth;let t=i.cloneNode(!0);t.style.setProperty("position","absolute"),t.style.setProperty("transform","translate(-9999px, -9999px)"),document.documentElement.appendChild(t);let e=t.scrollWidth;return t.remove(),e}var Mp="mdc-line-ripple--active",Vs="mdc-line-ripple--deactivating",Dp=(()=>{class n{_elementRef=c(R);_cleanupTransitionEnd;constructor(){let t=c(O),e=c(pt);t.runOutsideAngular(()=>{this._cleanupTransitionEnd=e.listen(this._elementRef.nativeElement,"transitionend",this._handleTransitionEnd)})}activate(){let t=this._elementRef.nativeElement.classList;t.remove(Vs),t.add(Mp)}deactivate(){this._elementRef.nativeElement.classList.add(Vs)}_handleTransitionEnd=t=>{let e=this._elementRef.nativeElement.classList,a=e.contains(Vs);t.propertyName==="opacity"&&a&&e.remove(Mp,Vs)};ngOnDestroy(){this._cleanupTransitionEnd()}static \u0275fac=function(e){return new(e||n)};static \u0275dir=x({type:n,selectors:[["div","matFormFieldLineRipple",""]],hostAttrs:[1,"mdc-line-ripple"]})}return n})(),Ep=(()=>{class n{_elementRef=c(R);_ngZone=c(O);open=!1;_notch;ngAfterViewInit(){let t=this._elementRef.nativeElement,e=t.querySelector(".mdc-floating-label");e?(t.classList.add("mdc-notched-outline--upgraded"),typeof requestAnimationFrame=="function"&&(e.style.transitionDuration="0s",this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>e.style.transitionDuration="")}))):t.classList.add("mdc-notched-outline--no-label")}_setNotchWidth(t){let e=this._notch.nativeElement;!this.open||!t?e.style.width="":e.style.width=`calc(${t}px * var(--mat-mdc-form-field-floating-label-scale, 0.75) + 9px)`}_setMaxWidth(t){this._notch.nativeElement.style.setProperty("--mat-form-field-notch-max-width",`calc(100% - ${t}px)`)}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=(function(){let t=["notch"];return S({type:n,selectors:[["div","matFormFieldNotchedOutline",""]],viewQuery:function(r,o){if(r&1&&Kt(t,5),r&2){let s;P(s=L())&&(o._notch=s.first)}},hostAttrs:[1,"mdc-notched-outline"],hostVars:2,hostBindings:function(r,o){r&2&&z("mdc-notched-outline--notched",o.open)},inputs:{open:[0,"matFormFieldNotchedOutlineOpen","open"]},ngContentSelectors:["*"],decls:5,vars:0,consts:[["notch",""],[1,"mat-mdc-notch-piece","mdc-notched-outline__leading"],[1,"mat-mdc-notch-piece","mdc-notched-outline__notch"],[1,"mat-mdc-notch-piece","mdc-notched-outline__trailing"]],template:function(r,o){r&1&&(_t(),sn(0,"div",1),qt(1,"div",2,0),V(3),te(),sn(4,"div",3))},encapsulation:2})})()}return n})(),Or=(()=>{class n{id;ngField=null;ngControl=null;focused=!1;empty=!1;shouldLabelFloat=!1;required=!1;disabled=!1;errorState=!1;controlType;autofilled;userAriaDescribedBy;disableAutomaticLabeling;describedByIds;stateChanges=null;value;static \u0275fac=function(e){return new(e||n)};static \u0275dir=x({type:n})}return n})();var Ci=new v("MatFormField"),$_=new v("MAT_FORM_FIELD_DEFAULT_OPTIONS"),Np="fill",G_="auto",Ip="fixed",W_="translateY(-50%)",Ie=(()=>{class n{_elementRef=c(R);_changeDetectorRef=c(xt);_platform=c(ut);_idGenerator=c(St);_ngZone=c(O);_defaults=c($_,{optional:!0});_currentDirection;_unwrapMaybeSignal(t){return Re(t)?t():t}_textField;_iconPrefixContainer;_textPrefixContainer;_iconSuffixContainer;_textSuffixContainer;_floatingLabel;_notchedOutline;_lineRipple;_iconPrefixContainerSignal=Fa("iconPrefixContainer");_textPrefixContainerSignal=Fa("textPrefixContainer");_iconSuffixContainerSignal=Fa("iconSuffixContainer");_textSuffixContainerSignal=Fa("textSuffixContainer");_prefixSuffixContainers=pe(()=>[this._iconPrefixContainerSignal(),this._textPrefixContainerSignal(),this._iconSuffixContainerSignal(),this._textSuffixContainerSignal()].map(t=>t?.nativeElement).filter(t=>t!==void 0));_formFieldControl;_prefixChildren;_suffixChildren;_errorChildren;_hintChildren;_labelChild=cm(Ge);get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(t){this._hideRequiredMarker=_e(t)}_hideRequiredMarker=!1;color="primary";get floatLabel(){return this._floatLabel||this._defaults?.floatLabel||G_}set floatLabel(t){t!==this._floatLabel&&(this._floatLabel=t,this._changeDetectorRef.markForCheck())}_floatLabel;get appearance(){return this._appearanceSignal()}set appearance(t){let e=t||this._defaults?.appearance||Np;this._appearanceSignal.set(e)}_appearanceSignal=X(Np);get subscriptSizing(){return this._subscriptSizing||this._defaults?.subscriptSizing||Ip}set subscriptSizing(t){this._subscriptSizing=t||this._defaults?.subscriptSizing||Ip}_subscriptSizing=null;get hintLabel(){return this._hintLabel}set hintLabel(t){this._hintLabel=t,this._processHints()}_hintLabel="";_hasIconPrefix=!1;_hasTextPrefix=!1;_hasIconSuffix=!1;_hasTextSuffix=!1;_labelId=this._idGenerator.getId("mat-mdc-form-field-label-");_hintLabelId=this._idGenerator.getId("mat-mdc-hint-");_describedByIds;get _control(){return this._explicitFormFieldControl||this._formFieldControl}set _control(t){this._explicitFormFieldControl=t}_destroyed=new E;_isFocused=null;_explicitFormFieldControl;_previousControl=null;_previousControlValidatorFn=null;_stateChanges;_valueChanges;_describedByChanges;_outlineLabelOffsetResizeObserver=null;_animationsDisabled=Ct();constructor(){let t=this._defaults,e=c(de);t&&(t.appearance&&(this.appearance=t.appearance),this._hideRequiredMarker=!!t?.hideRequiredMarker,t.color&&(this.color=t.color)),qe(()=>this._currentDirection=e.valueSignal()),this._syncOutlineLabelOffset()}ngAfterViewInit(){this._updateFocusState(),this._animationsDisabled||this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{this._elementRef.nativeElement.classList.add("mat-form-field-animations-enabled")},300)}),this._changeDetectorRef.detectChanges()}ngAfterContentInit(){this._assertFormFieldControl(),this._initializeSubscript(),this._initializePrefixAndSuffix()}ngAfterContentChecked(){this._assertFormFieldControl(),this._control!==this._previousControl&&(this._initializeControl(this._previousControl),this._control.ngControl&&this._control.ngControl.control&&(this._previousControlValidatorFn=Tr(this._control.ngField)?null:this._control.ngControl.control.validator),this._previousControl=this._control,this._changeDetectorRef.markForCheck()),this._control.ngControl&&this._control.ngControl.control&&!Tr(this._control.ngField)&&this._control.ngControl.control.validator!==this._previousControlValidatorFn&&this._changeDetectorRef.markForCheck()}ngOnDestroy(){this._outlineLabelOffsetResizeObserver?.disconnect(),this._stateChanges?.unsubscribe(),this._valueChanges?.unsubscribe(),this._describedByChanges?.unsubscribe(),this._destroyed.next(),this._destroyed.complete()}getLabelId=pe(()=>this._hasFloatingLabel()?this._labelId:null);getConnectedOverlayOrigin(){return this._textField||this._elementRef}_animateAndLockLabel(){this._hasFloatingLabel()&&(this.floatLabel="always")}_initializeControl(t){let e=this._control,a="mat-mdc-form-field-type-";t&&this._elementRef.nativeElement.classList.remove(a+t.controlType),e.controlType&&this._elementRef.nativeElement.classList.add(a+e.controlType),this._stateChanges?.unsubscribe(),this._stateChanges=e.stateChanges?.subscribe(()=>{this._updateFocusState(),this._changeDetectorRef.markForCheck()}),this._describedByChanges?.unsubscribe(),this._describedByChanges=e.stateChanges?.pipe(Ft([void 0,void 0]),st(()=>[this._unwrapMaybeSignal(e.errorState),e.userAriaDescribedBy]),al(),vt(([[r,o],[s,l]])=>r!==s||o!==l)).subscribe(()=>this._syncDescribedByIds()),this._valueChanges?.unsubscribe(),e.ngControl&&e.ngControl.valueChanges&&!Tr(e.ngField)&&(this._valueChanges=e.ngControl.valueChanges.pipe(kt(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()))}_checkPrefixAndSuffixTypes(){this._hasIconPrefix=!!this._prefixChildren.find(t=>!t._isText),this._hasTextPrefix=!!this._prefixChildren.find(t=>t._isText),this._hasIconSuffix=!!this._suffixChildren.find(t=>!t._isText),this._hasTextSuffix=!!this._suffixChildren.find(t=>t._isText)}_initializePrefixAndSuffix(){this._checkPrefixAndSuffixTypes(),Qt(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._checkPrefixAndSuffixTypes(),this._changeDetectorRef.markForCheck()})}_initializeSubscript(){this._hintChildren.changes.subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._validateHints(),this._syncDescribedByIds()}_assertFormFieldControl(){this._control}_updateFocusState(){let t=this._unwrapMaybeSignal(this._control.focused);t&&!this._isFocused?(this._isFocused=!0,this._lineRipple?.activate()):!t&&(this._isFocused||this._isFocused===null)&&(this._isFocused=!1,this._lineRipple?.deactivate()),this._elementRef.nativeElement.classList.toggle("mat-focused",t),this._textField?.nativeElement.classList.toggle("mdc-text-field--focused",t)}_syncOutlineLabelOffset(){bl({earlyRead:()=>{if(this._appearanceSignal()!=="outline")return this._outlineLabelOffsetResizeObserver?.disconnect(),null;if(globalThis.ResizeObserver){this._outlineLabelOffsetResizeObserver||=new globalThis.ResizeObserver(()=>{this._writeOutlinedLabelStyles(this._getOutlinedLabelOffset())});for(let t of this._prefixSuffixContainers())this._outlineLabelOffsetResizeObserver.observe(t,{box:"border-box"})}return this._getOutlinedLabelOffset()},write:t=>this._writeOutlinedLabelStyles(t())})}_shouldAlwaysFloat(){return this.floatLabel==="always"}_hasOutline(){return this.appearance==="outline"}_forceDisplayInfixLabel(){return!this._platform.isBrowser&&this._prefixChildren.length&&!this._shouldLabelFloat()}_hasFloatingLabel=pe(()=>!!this._labelChild());_shouldLabelFloat(){return this._hasFloatingLabel()?this._shouldAlwaysFloat()||this._unwrapMaybeSignal(this._control.shouldLabelFloat):!1}_shouldForward(t){let e=this._control?.ngField||this._control?.ngControl;if(!e)return!1;if(Tr(e)){let a=e();return t==="valid"?a.valid():t==="dirty"?a.dirty():t==="touched"?a.touched():t==="pending"?a.pending():t==="untouched"?!a.touched():t==="pristine"?!a.dirty():t==="invalid"?!a.valid():!1}else{let a=e;return t==="valid"?a.valid:t==="dirty"?a.dirty:t==="touched"?a.touched:t==="pending"?a.pending:t==="untouched"?a.untouched:t==="pristine"?a.pristine:t==="invalid"?a.invalid:!1}}_getSubscriptMessageType(){return this._errorChildren&&this._errorChildren.length>0&&this._unwrapMaybeSignal(this._control.errorState)?"error":"hint"}_handleLabelResized(){this._refreshOutlineNotchWidth()}_refreshOutlineNotchWidth(){!this._hasOutline()||!this._floatingLabel||!this._shouldLabelFloat()?this._notchedOutline?._setNotchWidth(0):this._notchedOutline?._setNotchWidth(this._floatingLabel.getWidth())}_processHints(){this._validateHints(),this._syncDescribedByIds()}_validateHints(){this._hintChildren}_syncDescribedByIds(){if(this._control){let t=[];if(this._control.userAriaDescribedBy&&typeof this._control.userAriaDescribedBy=="string"&&t.push(...this._control.userAriaDescribedBy.split(" ")),this._getSubscriptMessageType()==="hint"){let r=this._hintChildren?this._hintChildren.find(s=>s.align==="start"):null,o=this._hintChildren?this._hintChildren.find(s=>s.align==="end"):null;r?t.push(r.id):this._hintLabel&&t.push(this._hintLabelId),o&&t.push(o.id)}else this._errorChildren&&t.push(...this._errorChildren.map(r=>r.id));let e=this._control.describedByIds,a;if(e){let r=this._describedByIds||t;a=t.concat(e.filter(o=>o&&!r.includes(o)))}else a=t;this._control.setDescribedByIds(a),this._describedByIds=t}}_getOutlinedLabelOffset(){if(!this._hasOutline()||!this._floatingLabel)return null;if(!this._iconPrefixContainer&&!this._textPrefixContainer)return["",null];if(!this._isAttachedToDom())return null;let t=this._iconPrefixContainer?.nativeElement,e=this._textPrefixContainer?.nativeElement,a=this._iconSuffixContainer?.nativeElement,r=this._textSuffixContainer?.nativeElement,o=t?.getBoundingClientRect().width??0,s=e?.getBoundingClientRect().width??0,l=a?.getBoundingClientRect().width??0,d=r?.getBoundingClientRect().width??0,m=this._currentDirection==="rtl"?"-1":"1",_=`${o+s}px`,M=`calc(${m} * (${_} + var(--mat-mdc-form-field-label-offset-x, 0px)))`,D=`var(--mat-mdc-form-field-label-transform, ${W_} translateX(${M}))`,Z=o+s+l+d;return[D,Z]}_writeOutlinedLabelStyles(t){if(t!==null){let[e,a]=t;this._floatingLabel&&(this._floatingLabel.element.style.transform=e),a!==null&&this._notchedOutline?._setMaxWidth(a)}}_isAttachedToDom(){let t=this._elementRef.nativeElement;if(t.getRootNode){let e=t.getRootNode();return e&&e!==t}return document.documentElement.contains(t)}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=(function(){let t=["iconPrefixContainer"],e=["textPrefixContainer"],a=["iconSuffixContainer"],r=["textSuffixContainer"],o=["textField"],s=["*",[["mat-label"]],[["","matPrefix",""],["","matIconPrefix",""]],[["","matTextPrefix",""]],[["","matTextSuffix",""]],[["","matSuffix",""],["","matIconSuffix",""]],[["mat-error"],["","matError",""]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],l=["*","mat-label","[matPrefix], [matIconPrefix]","[matTextPrefix]","[matTextSuffix]","[matSuffix], [matIconSuffix]","mat-error, [matError]","mat-hint:not([align='end'])","mat-hint[align='end']"];function d(J,ht){J&1&&dt(0,"span",21)}function m(J,ht){if(J&1&&(h(0,"label",20),V(1,1),C(2,d,1,0,"span",21),u()),J&2){let y=w(2);mt("floating",y._shouldLabelFloat())("monitorResize",y._hasOutline())("id",y._labelId),H("for",y._control.disableAutomaticLabeling?null:y._control.id),p(2),k(!y.hideRequiredMarker&&y._unwrapMaybeSignal(y._control.required)?2:-1)}}function _(J,ht){if(J&1&&C(0,m,3,5,"label",20),J&2){let y=w();k(y._hasFloatingLabel()?0:-1)}}function b(J,ht){J&1&&dt(0,"div",7)}function M(J,ht){}function D(J,ht){if(J&1&&Ke(0,M,0,0,"ng-template",13),J&2){w(2);let y=yt(1);mt("ngTemplateOutlet",y)}}function Z(J,ht){if(J&1&&(h(0,"div",9),C(1,D,1,1,null,13),u()),J&2){let y=w();mt("matFormFieldNotchedOutlineOpen",y._shouldLabelFloat()),p(),k(y._forceDisplayInfixLabel()?-1:1)}}function lt(J,ht){J&1&&(h(0,"div",10,2),V(2,2),u())}function $t(J,ht){J&1&&(h(0,"div",11,3),V(2,3),u())}function nt(J,ht){}function it(J,ht){if(J&1&&Ke(0,nt,0,0,"ng-template",13),J&2){w();let y=yt(1);mt("ngTemplateOutlet",y)}}function re(J,ht){J&1&&(h(0,"div",14,4),V(2,4),u())}function ke(J,ht){J&1&&(h(0,"div",15,5),V(2,5),u())}function At(J,ht){J&1&&dt(0,"div",16)}function We(J,ht){J&1&&(h(0,"div",18),V(1,6),u())}function nn(J,ht){if(J&1&&(h(0,"mat-hint",22),f(1),u()),J&2){let y=w(2);mt("id",y._hintLabelId),p(),Lt(y.hintLabel)}}function Ae(J,ht){if(J&1&&(h(0,"div",19),C(1,nn,2,2,"mat-hint",22),V(2,7),dt(3,"div",23),V(4,8),u()),J&2){let y=w();p(),k(y.hintLabel?1:-1)}}return S({type:n,selectors:[["mat-form-field"]],contentQueries:function(ht,y,bt){if(ht&1&&(im(bt,y._labelChild,Ge,5),ne(bt,Or,5)(bt,Rp,5)(bt,Tp,5)(bt,Ap,5)(bt,Kn,5)),ht&2){hl();let ue;P(ue=L())&&(y._formFieldControl=ue.first),P(ue=L())&&(y._prefixChildren=ue),P(ue=L())&&(y._suffixChildren=ue),P(ue=L())&&(y._errorChildren=ue),P(ue=L())&&(y._hintChildren=ue)}},viewQuery:function(ht,y){if(ht&1&&(am(y._iconPrefixContainerSignal,t,5)(y._textPrefixContainerSignal,e,5)(y._iconSuffixContainerSignal,a,5)(y._textSuffixContainerSignal,r,5),Kt(o,5)(t,5)(e,5)(a,5)(r,5)(kp,5)(Ep,5)(Dp,5)),ht&2){hl(4);let bt;P(bt=L())&&(y._textField=bt.first),P(bt=L())&&(y._iconPrefixContainer=bt.first),P(bt=L())&&(y._textPrefixContainer=bt.first),P(bt=L())&&(y._iconSuffixContainer=bt.first),P(bt=L())&&(y._textSuffixContainer=bt.first),P(bt=L())&&(y._floatingLabel=bt.first),P(bt=L())&&(y._notchedOutline=bt.first),P(bt=L())&&(y._lineRipple=bt.first)}},hostAttrs:[1,"mat-mdc-form-field"],hostVars:38,hostBindings:function(ht,y){ht&2&&z("mat-mdc-form-field-label-always-float",y._shouldAlwaysFloat())("mat-mdc-form-field-has-icon-prefix",y._hasIconPrefix)("mat-mdc-form-field-has-icon-suffix",y._hasIconSuffix)("mat-form-field-invalid",y._unwrapMaybeSignal(y._control.errorState))("mat-form-field-disabled",y._unwrapMaybeSignal(y._control.disabled))("mat-form-field-autofilled",y._unwrapMaybeSignal(y._control.autofilled))("mat-form-field-appearance-fill",y.appearance=="fill")("mat-form-field-appearance-outline",y.appearance=="outline")("mat-form-field-hide-placeholder",y._hasFloatingLabel()&&!y._shouldLabelFloat())("mat-primary",y.color!=="accent"&&y.color!=="warn")("mat-accent",y.color==="accent")("mat-warn",y.color==="warn")("ng-untouched",y._shouldForward("untouched"))("ng-touched",y._shouldForward("touched"))("ng-pristine",y._shouldForward("pristine"))("ng-dirty",y._shouldForward("dirty"))("ng-valid",y._shouldForward("valid"))("ng-invalid",y._shouldForward("invalid"))("ng-pending",y._shouldForward("pending"))},inputs:{hideRequiredMarker:"hideRequiredMarker",color:"color",floatLabel:"floatLabel",appearance:"appearance",subscriptSizing:"subscriptSizing",hintLabel:"hintLabel"},exportAs:["matFormField"],features:[ft([{provide:Ci,useExisting:n},{provide:Op,useExisting:n}])],ngContentSelectors:l,decls:18,vars:21,consts:[["labelTemplate",""],["textField",""],["iconPrefixContainer",""],["textPrefixContainer",""],["textSuffixContainer",""],["iconSuffixContainer",""],[1,"mat-mdc-text-field-wrapper","mdc-text-field",3,"click"],[1,"mat-mdc-form-field-focus-overlay"],[1,"mat-mdc-form-field-flex"],["matFormFieldNotchedOutline","",3,"matFormFieldNotchedOutlineOpen"],[1,"mat-mdc-form-field-icon-prefix"],[1,"mat-mdc-form-field-text-prefix"],[1,"mat-mdc-form-field-infix"],[3,"ngTemplateOutlet"],[1,"mat-mdc-form-field-text-suffix"],[1,"mat-mdc-form-field-icon-suffix"],["matFormFieldLineRipple",""],["aria-atomic","true","aria-live","polite",1,"mat-mdc-form-field-subscript-wrapper","mat-mdc-form-field-bottom-align"],[1,"mat-mdc-form-field-error-wrapper"],[1,"mat-mdc-form-field-hint-wrapper"],["matFormFieldFloatingLabel","",3,"floating","monitorResize","id"],["aria-hidden","true",1,"mat-mdc-form-field-required-marker","mdc-floating-label--required"],[3,"id"],[1,"mat-mdc-form-field-hint-spacer"]],template:function(ht,y){if(ht&1&&(_t(s),Ke(0,_,1,1,"ng-template",null,0,pl),h(2,"div",6,1),B("click",function(ue){return y._control.onContainerClick(ue)}),C(4,b,1,0,"div",7),h(5,"div",8),C(6,Z,2,2,"div",9),C(7,lt,3,0,"div",10),C(8,$t,3,0,"div",11),h(9,"div",12),C(10,it,1,1,null,13),V(11),u(),C(12,re,3,0,"div",14),C(13,ke,3,0,"div",15),u(),C(14,At,1,0,"div",16),u(),h(15,"div",17),C(16,We,2,0,"div",18)(17,Ae,5,1,"div",19),u()),ht&2){let bt,ue=y._unwrapMaybeSignal(y._control.disabled);p(2),z("mdc-text-field--filled",!y._hasOutline())("mdc-text-field--outlined",y._hasOutline())("mdc-text-field--no-label",!y._hasFloatingLabel())("mdc-text-field--disabled",ue)("mdc-text-field--invalid",y._unwrapMaybeSignal(y._control.errorState)),p(2),k(!y._hasOutline()&&!ue?4:-1),p(2),k(y._hasOutline()?6:-1),p(),k(y._hasIconPrefix?7:-1),p(),k(y._hasTextPrefix?8:-1),p(2),k(!y._hasOutline()||y._forceDisplayInfixLabel()?10:-1),p(2),k(y._hasTextSuffix?12:-1),p(),k(y._hasIconSuffix?13:-1),p(),k(y._hasOutline()?-1:14),p(),z("mat-mdc-form-field-subscript-dynamic-size",y.subscriptSizing==="dynamic");let Bf=y._getSubscriptMessageType();p(),k((bt=Bf)==="error"?16:bt==="hint"?17:-1)}},dependencies:[kp,Ep,wl,Dp,Kn],styles:[`.mdc-text-field {
|
|
display: inline-flex;
|
|
align-items: baseline;
|
|
padding: 0 16px;
|
|
position: relative;
|
|
box-sizing: border-box;
|
|
overflow: hidden;
|
|
will-change: opacity, transform, color;
|
|
border-top-left-radius: 4px;
|
|
border-top-right-radius: 4px;
|
|
border-bottom-right-radius: 0;
|
|
border-bottom-left-radius: 0;
|
|
}
|
|
|
|
.mdc-text-field__input {
|
|
width: 100%;
|
|
min-width: 0;
|
|
border: none;
|
|
border-radius: 0;
|
|
background: none;
|
|
padding: 0;
|
|
-moz-appearance: none;
|
|
-webkit-appearance: none;
|
|
height: 28px;
|
|
}
|
|
.mdc-text-field__input::-webkit-calendar-picker-indicator, .mdc-text-field__input::-webkit-search-cancel-button {
|
|
display: none;
|
|
}
|
|
.mdc-text-field__input::-ms-clear {
|
|
display: none;
|
|
}
|
|
.mdc-text-field__input:focus {
|
|
outline: none;
|
|
}
|
|
.mdc-text-field__input:invalid {
|
|
box-shadow: none;
|
|
}
|
|
.mdc-text-field__input::placeholder {
|
|
opacity: 0;
|
|
}
|
|
.mdc-text-field__input::-moz-placeholder {
|
|
opacity: 0;
|
|
}
|
|
.mdc-text-field__input::-webkit-input-placeholder {
|
|
opacity: 0;
|
|
}
|
|
.mdc-text-field__input:-ms-input-placeholder {
|
|
opacity: 0;
|
|
}
|
|
.mdc-text-field--no-label .mdc-text-field__input::placeholder, .mdc-text-field--focused .mdc-text-field__input::placeholder {
|
|
opacity: 1;
|
|
}
|
|
.mdc-text-field--no-label .mdc-text-field__input::-moz-placeholder, .mdc-text-field--focused .mdc-text-field__input::-moz-placeholder {
|
|
opacity: 1;
|
|
}
|
|
.mdc-text-field--no-label .mdc-text-field__input::-webkit-input-placeholder, .mdc-text-field--focused .mdc-text-field__input::-webkit-input-placeholder {
|
|
opacity: 1;
|
|
}
|
|
.mdc-text-field--no-label .mdc-text-field__input:-ms-input-placeholder, .mdc-text-field--focused .mdc-text-field__input:-ms-input-placeholder {
|
|
opacity: 1;
|
|
}
|
|
.mdc-text-field--%NS%disabled:not(.mdc-text-field--no-label) .mdc-text-field__input.mat-mdc-input-disabled-interactive::placeholder {
|
|
opacity: 0;
|
|
}
|
|
.mdc-text-field--%NS%disabled:not(.mdc-text-field--no-label) .mdc-text-field__input.mat-mdc-input-disabled-interactive::-moz-placeholder {
|
|
opacity: 0;
|
|
}
|
|
.mdc-text-field--%NS%disabled:not(.mdc-text-field--no-label) .mdc-text-field__input.mat-mdc-input-disabled-interactive::-webkit-input-placeholder {
|
|
opacity: 0;
|
|
}
|
|
.mdc-text-field--%NS%disabled:not(.mdc-text-field--no-label) .mdc-text-field__input.mat-mdc-input-disabled-interactive:-ms-input-placeholder {
|
|
opacity: 0;
|
|
}
|
|
.mdc-text-field--outlined .mdc-text-field__input, .mdc-text-field--filled.mdc-text-field--no-label .mdc-text-field__input {
|
|
height: 100%;
|
|
}
|
|
.mdc-text-field--outlined .mdc-text-field__input {
|
|
display: flex;
|
|
border: none !important;
|
|
background-color: transparent;
|
|
}
|
|
.mdc-text-field--disabled .mdc-text-field__input {
|
|
pointer-events: auto;
|
|
}
|
|
.mdc-text-field--%NS%filled:not(.mdc-text-field--disabled) .mdc-text-field__input {
|
|
color: var(--%NS%mat-form-field-filled-input-text-color, var(--%NS%mat-sys-on-surface));
|
|
caret-color: var(--%NS%mat-form-field-filled-caret-color, var(--%NS%mat-sys-primary));
|
|
}
|
|
.mdc-text-field--%NS%filled:not(.mdc-text-field--disabled) .mdc-text-field__input::placeholder {
|
|
color: var(--%NS%mat-form-field-filled-input-text-placeholder-color, var(--%NS%mat-sys-on-surface-variant));
|
|
}
|
|
.mdc-text-field--%NS%filled:not(.mdc-text-field--disabled) .mdc-text-field__input::-moz-placeholder {
|
|
color: var(--%NS%mat-form-field-filled-input-text-placeholder-color, var(--%NS%mat-sys-on-surface-variant));
|
|
}
|
|
.mdc-text-field--%NS%filled:not(.mdc-text-field--disabled) .mdc-text-field__input::-webkit-input-placeholder {
|
|
color: var(--%NS%mat-form-field-filled-input-text-placeholder-color, var(--%NS%mat-sys-on-surface-variant));
|
|
}
|
|
.mdc-text-field--%NS%filled:not(.mdc-text-field--disabled) .mdc-text-field__input:-ms-input-placeholder {
|
|
color: var(--%NS%mat-form-field-filled-input-text-placeholder-color, var(--%NS%mat-sys-on-surface-variant));
|
|
}
|
|
.mdc-text-field--%NS%outlined:not(.mdc-text-field--disabled) .mdc-text-field__input {
|
|
color: var(--%NS%mat-form-field-outlined-input-text-color, var(--%NS%mat-sys-on-surface));
|
|
caret-color: var(--%NS%mat-form-field-outlined-caret-color, var(--%NS%mat-sys-primary));
|
|
}
|
|
.mdc-text-field--%NS%outlined:not(.mdc-text-field--disabled) .mdc-text-field__input::placeholder {
|
|
color: var(--%NS%mat-form-field-outlined-input-text-placeholder-color, var(--%NS%mat-sys-on-surface-variant));
|
|
}
|
|
.mdc-text-field--%NS%outlined:not(.mdc-text-field--disabled) .mdc-text-field__input::-moz-placeholder {
|
|
color: var(--%NS%mat-form-field-outlined-input-text-placeholder-color, var(--%NS%mat-sys-on-surface-variant));
|
|
}
|
|
.mdc-text-field--%NS%outlined:not(.mdc-text-field--disabled) .mdc-text-field__input::-webkit-input-placeholder {
|
|
color: var(--%NS%mat-form-field-outlined-input-text-placeholder-color, var(--%NS%mat-sys-on-surface-variant));
|
|
}
|
|
.mdc-text-field--%NS%outlined:not(.mdc-text-field--disabled) .mdc-text-field__input:-ms-input-placeholder {
|
|
color: var(--%NS%mat-form-field-outlined-input-text-placeholder-color, var(--%NS%mat-sys-on-surface-variant));
|
|
}
|
|
.mdc-text-field--filled.mdc-text-field--%NS%invalid:not(.mdc-text-field--disabled) .mdc-text-field__input {
|
|
caret-color: var(--%NS%mat-form-field-filled-error-caret-color, var(--%NS%mat-sys-error));
|
|
}
|
|
.mdc-text-field--outlined.mdc-text-field--%NS%invalid:not(.mdc-text-field--disabled) .mdc-text-field__input {
|
|
caret-color: var(--%NS%mat-form-field-outlined-error-caret-color, var(--%NS%mat-sys-error));
|
|
}
|
|
.mdc-text-field--filled.mdc-text-field--disabled .mdc-text-field__input {
|
|
color: var(--%NS%mat-form-field-filled-disabled-input-text-color, color-mix(in srgb, var(--%NS%mat-sys-on-surface) 38%, transparent));
|
|
}
|
|
.mdc-text-field--outlined.mdc-text-field--disabled .mdc-text-field__input {
|
|
color: var(--%NS%mat-form-field-outlined-disabled-input-text-color, color-mix(in srgb, var(--%NS%mat-sys-on-surface) 38%, transparent));
|
|
}
|
|
@media (forced-colors: active) {
|
|
.mdc-text-field--disabled .mdc-text-field__input {
|
|
background-color: Window;
|
|
}
|
|
}
|
|
|
|
.mdc-text-field--filled {
|
|
height: 56px;
|
|
border-bottom-right-radius: 0;
|
|
border-bottom-left-radius: 0;
|
|
border-top-left-radius: var(--%NS%mat-form-field-filled-container-shape, var(--%NS%mat-sys-corner-extra-small));
|
|
border-top-right-radius: var(--%NS%mat-form-field-filled-container-shape, var(--%NS%mat-sys-corner-extra-small));
|
|
}
|
|
.mdc-text-field--%NS%filled:not(.mdc-text-field--disabled) {
|
|
background-color: var(--%NS%mat-form-field-filled-container-color, var(--%NS%mat-sys-surface-variant));
|
|
}
|
|
.mdc-text-field--filled.mdc-text-field--disabled {
|
|
background-color: var(--%NS%mat-form-field-filled-disabled-container-color, color-mix(in srgb, var(--%NS%mat-sys-on-surface) 4%, transparent));
|
|
}
|
|
|
|
.mdc-text-field--outlined {
|
|
height: 56px;
|
|
overflow: visible;
|
|
padding-right: max(16px, var(--%NS%mat-form-field-outlined-container-shape, var(--%NS%mat-sys-corner-extra-small)));
|
|
padding-left: max(16px, var(--%NS%mat-form-field-outlined-container-shape, var(--%NS%mat-sys-corner-extra-small)) + 4px);
|
|
}
|
|
[dir=rtl] .mdc-text-field--outlined {
|
|
padding-right: max(16px, var(--%NS%mat-form-field-outlined-container-shape, var(--%NS%mat-sys-corner-extra-small)) + 4px);
|
|
padding-left: max(16px, var(--%NS%mat-form-field-outlined-container-shape, var(--%NS%mat-sys-corner-extra-small)));
|
|
}
|
|
|
|
.mdc-floating-label {
|
|
position: absolute;
|
|
left: 0;
|
|
transform-origin: left top;
|
|
line-height: 1.15rem;
|
|
text-align: left;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
cursor: text;
|
|
overflow: hidden;
|
|
will-change: transform;
|
|
}
|
|
[dir=rtl] .mdc-floating-label {
|
|
right: 0;
|
|
left: auto;
|
|
transform-origin: right top;
|
|
text-align: right;
|
|
}
|
|
.mdc-text-field .mdc-floating-label {
|
|
top: 50%;
|
|
transform: translateY(-50%);
|
|
pointer-events: none;
|
|
}
|
|
.mdc-notched-outline .mdc-floating-label {
|
|
display: inline-block;
|
|
position: relative;
|
|
max-width: 100%;
|
|
}
|
|
.mdc-text-field--outlined .mdc-floating-label {
|
|
left: 4px;
|
|
right: auto;
|
|
}
|
|
[dir=rtl] .mdc-text-field--outlined .mdc-floating-label {
|
|
left: auto;
|
|
right: 4px;
|
|
}
|
|
.mdc-text-field--filled .mdc-floating-label {
|
|
left: 16px;
|
|
right: auto;
|
|
}
|
|
[dir=rtl] .mdc-text-field--filled .mdc-floating-label {
|
|
left: auto;
|
|
right: 16px;
|
|
}
|
|
.mdc-text-field--disabled .mdc-floating-label {
|
|
cursor: default;
|
|
}
|
|
@media (forced-colors: active) {
|
|
.mdc-text-field--disabled .mdc-floating-label {
|
|
z-index: 1;
|
|
}
|
|
}
|
|
.mdc-text-field--filled.mdc-text-field--no-label .mdc-floating-label {
|
|
display: none;
|
|
}
|
|
.mdc-text-field--%NS%filled:not(.mdc-text-field--disabled) .mdc-floating-label {
|
|
color: var(--%NS%mat-form-field-filled-label-text-color, var(--%NS%mat-sys-on-surface-variant));
|
|
}
|
|
.mdc-text-field--%NS%filled:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label {
|
|
color: var(--%NS%mat-form-field-filled-focus-label-text-color, var(--%NS%mat-sys-primary));
|
|
}
|
|
.mdc-text-field--%NS%filled:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label {
|
|
color: var(--%NS%mat-form-field-filled-hover-label-text-color, var(--%NS%mat-sys-on-surface-variant));
|
|
}
|
|
.mdc-text-field--filled.mdc-text-field--disabled .mdc-floating-label {
|
|
color: var(--%NS%mat-form-field-filled-disabled-label-text-color, color-mix(in srgb, var(--%NS%mat-sys-on-surface) 38%, transparent));
|
|
}
|
|
.mdc-text-field--%NS%filled:not(.mdc-text-field--disabled).mdc-text-field--invalid .mdc-floating-label {
|
|
color: var(--%NS%mat-form-field-filled-error-label-text-color, var(--%NS%mat-sys-error));
|
|
}
|
|
.mdc-text-field--%NS%filled:not(.mdc-text-field--disabled).mdc-text-field--invalid.mdc-text-field--focused .mdc-floating-label {
|
|
color: var(--%NS%mat-form-field-filled-error-focus-label-text-color, var(--%NS%mat-sys-error));
|
|
}
|
|
.mdc-text-field--%NS%filled:not(.mdc-text-field--disabled).mdc-text-field--%NS%invalid:not(.mdc-text-field--disabled):hover .mdc-floating-label {
|
|
color: var(--%NS%mat-form-field-filled-error-hover-label-text-color, var(--%NS%mat-sys-on-error-container));
|
|
}
|
|
.mdc-text-field--filled .mdc-floating-label {
|
|
font-family: var(--%NS%mat-form-field-filled-label-text-font, var(--%NS%mat-sys-body-large-font));
|
|
font-size: var(--%NS%mat-form-field-filled-label-text-size, var(--%NS%mat-sys-body-large-size));
|
|
font-weight: var(--%NS%mat-form-field-filled-label-text-weight, var(--%NS%mat-sys-body-large-weight));
|
|
letter-spacing: var(--%NS%mat-form-field-filled-label-text-tracking, var(--%NS%mat-sys-body-large-tracking));
|
|
}
|
|
.mdc-text-field--%NS%outlined:not(.mdc-text-field--disabled) .mdc-floating-label {
|
|
color: var(--%NS%mat-form-field-outlined-label-text-color, var(--%NS%mat-sys-on-surface-variant));
|
|
}
|
|
.mdc-text-field--%NS%outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label {
|
|
color: var(--%NS%mat-form-field-outlined-focus-label-text-color, var(--%NS%mat-sys-primary));
|
|
}
|
|
.mdc-text-field--%NS%outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label {
|
|
color: var(--%NS%mat-form-field-outlined-hover-label-text-color, var(--%NS%mat-sys-on-surface));
|
|
}
|
|
.mdc-text-field--outlined.mdc-text-field--disabled .mdc-floating-label {
|
|
color: var(--%NS%mat-form-field-outlined-disabled-label-text-color, color-mix(in srgb, var(--%NS%mat-sys-on-surface) 38%, transparent));
|
|
}
|
|
.mdc-text-field--%NS%outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid .mdc-floating-label {
|
|
color: var(--%NS%mat-form-field-outlined-error-label-text-color, var(--%NS%mat-sys-error));
|
|
}
|
|
.mdc-text-field--%NS%outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid.mdc-text-field--focused .mdc-floating-label {
|
|
color: var(--%NS%mat-form-field-outlined-error-focus-label-text-color, var(--%NS%mat-sys-error));
|
|
}
|
|
.mdc-text-field--%NS%outlined:not(.mdc-text-field--disabled).mdc-text-field--%NS%invalid:not(.mdc-text-field--disabled):hover .mdc-floating-label {
|
|
color: var(--%NS%mat-form-field-outlined-error-hover-label-text-color, var(--%NS%mat-sys-on-error-container));
|
|
}
|
|
.mdc-text-field--outlined .mdc-floating-label {
|
|
font-family: var(--%NS%mat-form-field-outlined-label-text-font, var(--%NS%mat-sys-body-large-font));
|
|
font-size: var(--%NS%mat-form-field-outlined-label-text-size, var(--%NS%mat-sys-body-large-size));
|
|
font-weight: var(--%NS%mat-form-field-outlined-label-text-weight, var(--%NS%mat-sys-body-large-weight));
|
|
letter-spacing: var(--%NS%mat-form-field-outlined-label-text-tracking, var(--%NS%mat-sys-body-large-tracking));
|
|
}
|
|
|
|
.mdc-floating-label--float-above {
|
|
cursor: auto;
|
|
transform: translateY(-106%) scale(0.75);
|
|
}
|
|
.mdc-text-field--filled .mdc-floating-label--float-above {
|
|
transform: translateY(-106%) scale(0.75);
|
|
}
|
|
.mdc-text-field--outlined .mdc-floating-label--float-above {
|
|
transform: translateY(-37.25px) scale(1);
|
|
font-size: 0.75rem;
|
|
}
|
|
.mdc-notched-outline .mdc-floating-label--float-above {
|
|
text-overflow: clip;
|
|
}
|
|
.mdc-notched-outline--upgraded .mdc-floating-label--float-above {
|
|
max-width: 133.3333333333%;
|
|
}
|
|
.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above, .mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above {
|
|
transform: translateY(-34.75px) scale(0.75);
|
|
}
|
|
.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above, .mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above {
|
|
font-size: 1rem;
|
|
}
|
|
|
|
.mdc-floating-label--%NS%required:not(.mdc-floating-label--hide-required-marker)::after {
|
|
margin-left: 1px;
|
|
margin-right: 0;
|
|
content: "*";
|
|
}
|
|
[dir=rtl] .mdc-floating-label--%NS%required:not(.mdc-floating-label--hide-required-marker)::after {
|
|
margin-left: 0;
|
|
margin-right: 1px;
|
|
}
|
|
|
|
.mdc-notched-outline {
|
|
display: flex;
|
|
position: absolute;
|
|
top: 0;
|
|
right: 0;
|
|
left: 0;
|
|
box-sizing: border-box;
|
|
width: 100%;
|
|
max-width: 100%;
|
|
height: 100%;
|
|
text-align: left;
|
|
pointer-events: none;
|
|
}
|
|
[dir=rtl] .mdc-notched-outline {
|
|
text-align: right;
|
|
}
|
|
.mdc-text-field--outlined .mdc-notched-outline {
|
|
z-index: 1;
|
|
}
|
|
|
|
.mat-mdc-notch-piece {
|
|
box-sizing: border-box;
|
|
height: 100%;
|
|
pointer-events: none;
|
|
border: none;
|
|
border-top: 1px solid;
|
|
border-bottom: 1px solid;
|
|
}
|
|
.mdc-text-field--focused .mat-mdc-notch-piece {
|
|
border-width: 2px;
|
|
}
|
|
.mdc-text-field--%NS%outlined:not(.mdc-text-field--disabled) .mat-mdc-notch-piece {
|
|
border-color: var(--%NS%mat-form-field-outlined-outline-color, var(--%NS%mat-sys-outline));
|
|
border-width: var(--%NS%mat-form-field-outlined-outline-width, 1px);
|
|
}
|
|
.mdc-text-field--%NS%outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mat-mdc-notch-piece {
|
|
border-color: var(--%NS%mat-form-field-outlined-hover-outline-color, var(--%NS%mat-sys-on-surface));
|
|
}
|
|
.mdc-text-field--%NS%outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mat-mdc-notch-piece {
|
|
border-color: var(--%NS%mat-form-field-outlined-focus-outline-color, var(--%NS%mat-sys-primary));
|
|
}
|
|
.mdc-text-field--outlined.mdc-text-field--disabled .mat-mdc-notch-piece {
|
|
border-color: var(--%NS%mat-form-field-outlined-disabled-outline-color, color-mix(in srgb, var(--%NS%mat-sys-on-surface) 12%, transparent));
|
|
}
|
|
.mdc-text-field--%NS%outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid .mat-mdc-notch-piece {
|
|
border-color: var(--%NS%mat-form-field-outlined-error-outline-color, var(--%NS%mat-sys-error));
|
|
}
|
|
.mdc-text-field--%NS%outlined:not(.mdc-text-field--disabled).mdc-text-field--%NS%invalid:not(.mdc-text-field--focused):hover .mdc-notched-outline .mat-mdc-notch-piece {
|
|
border-color: var(--%NS%mat-form-field-outlined-error-hover-outline-color, var(--%NS%mat-sys-on-error-container));
|
|
}
|
|
.mdc-text-field--%NS%outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid.mdc-text-field--focused .mat-mdc-notch-piece {
|
|
border-color: var(--%NS%mat-form-field-outlined-error-focus-outline-color, var(--%NS%mat-sys-error));
|
|
}
|
|
.mdc-text-field--%NS%outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline .mat-mdc-notch-piece {
|
|
border-width: var(--%NS%mat-form-field-outlined-focus-outline-width, 2px);
|
|
}
|
|
|
|
.mdc-notched-outline__leading {
|
|
border-left: 1px solid;
|
|
border-right: none;
|
|
border-top-right-radius: 0;
|
|
border-bottom-right-radius: 0;
|
|
border-top-left-radius: var(--%NS%mat-form-field-outlined-container-shape, var(--%NS%mat-sys-corner-extra-small));
|
|
border-bottom-left-radius: var(--%NS%mat-form-field-outlined-container-shape, var(--%NS%mat-sys-corner-extra-small));
|
|
}
|
|
.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading {
|
|
width: max(12px, var(--%NS%mat-form-field-outlined-container-shape, var(--%NS%mat-sys-corner-extra-small)));
|
|
}
|
|
[dir=rtl] .mdc-notched-outline__leading {
|
|
border-left: none;
|
|
border-right: 1px solid;
|
|
border-bottom-left-radius: 0;
|
|
border-top-left-radius: 0;
|
|
border-top-right-radius: var(--%NS%mat-form-field-outlined-container-shape, var(--%NS%mat-sys-corner-extra-small));
|
|
border-bottom-right-radius: var(--%NS%mat-form-field-outlined-container-shape, var(--%NS%mat-sys-corner-extra-small));
|
|
}
|
|
|
|
.mdc-notched-outline__trailing {
|
|
flex-grow: 1;
|
|
border-left: none;
|
|
border-right: 1px solid;
|
|
border-top-left-radius: 0;
|
|
border-bottom-left-radius: 0;
|
|
border-top-right-radius: var(--%NS%mat-form-field-outlined-container-shape, var(--%NS%mat-sys-corner-extra-small));
|
|
border-bottom-right-radius: var(--%NS%mat-form-field-outlined-container-shape, var(--%NS%mat-sys-corner-extra-small));
|
|
}
|
|
[dir=rtl] .mdc-notched-outline__trailing {
|
|
border-left: 1px solid;
|
|
border-right: none;
|
|
border-top-right-radius: 0;
|
|
border-bottom-right-radius: 0;
|
|
border-top-left-radius: var(--%NS%mat-form-field-outlined-container-shape, var(--%NS%mat-sys-corner-extra-small));
|
|
border-bottom-left-radius: var(--%NS%mat-form-field-outlined-container-shape, var(--%NS%mat-sys-corner-extra-small));
|
|
}
|
|
|
|
.mdc-notched-outline__notch {
|
|
flex: 0 0 auto;
|
|
width: auto;
|
|
}
|
|
.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__notch {
|
|
max-width: min(var(--%NS%mat-form-field-notch-max-width, 100%), calc(100% - max(12px, var(--%NS%mat-form-field-outlined-container-shape, var(--%NS%mat-sys-corner-extra-small))) * 2));
|
|
}
|
|
.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch {
|
|
max-width: min(100%, calc(100% - max(12px, var(--%NS%mat-form-field-outlined-container-shape, var(--%NS%mat-sys-corner-extra-small))) * 2));
|
|
}
|
|
.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch {
|
|
padding-top: 1px;
|
|
}
|
|
.mdc-text-field--focused.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch {
|
|
padding-top: 2px;
|
|
}
|
|
.mdc-notched-outline--notched .mdc-notched-outline__notch {
|
|
padding-left: 0;
|
|
padding-right: 8px;
|
|
border-top: none;
|
|
}
|
|
[dir=rtl] .mdc-notched-outline--notched .mdc-notched-outline__notch {
|
|
padding-left: 8px;
|
|
padding-right: 0;
|
|
}
|
|
.mdc-notched-outline--no-label .mdc-notched-outline__notch {
|
|
display: none;
|
|
}
|
|
|
|
.mdc-line-ripple::before, .mdc-line-ripple::after {
|
|
position: absolute;
|
|
bottom: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
border-bottom-style: solid;
|
|
content: "";
|
|
}
|
|
.mdc-line-ripple::before {
|
|
z-index: 1;
|
|
border-bottom-width: var(--%NS%mat-form-field-filled-active-indicator-height, 1px);
|
|
}
|
|
.mdc-text-field--%NS%filled:not(.mdc-text-field--disabled) .mdc-line-ripple::before {
|
|
border-bottom-color: var(--%NS%mat-form-field-filled-active-indicator-color, var(--%NS%mat-sys-on-surface-variant));
|
|
}
|
|
.mdc-text-field--%NS%filled:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-line-ripple::before {
|
|
border-bottom-color: var(--%NS%mat-form-field-filled-hover-active-indicator-color, var(--%NS%mat-sys-on-surface));
|
|
}
|
|
.mdc-text-field--filled.mdc-text-field--disabled .mdc-line-ripple::before {
|
|
border-bottom-color: var(--%NS%mat-form-field-filled-disabled-active-indicator-color, color-mix(in srgb, var(--%NS%mat-sys-on-surface) 38%, transparent));
|
|
}
|
|
.mdc-text-field--%NS%filled:not(.mdc-text-field--disabled).mdc-text-field--invalid .mdc-line-ripple::before {
|
|
border-bottom-color: var(--%NS%mat-form-field-filled-error-active-indicator-color, var(--%NS%mat-sys-error));
|
|
}
|
|
.mdc-text-field--%NS%filled:not(.mdc-text-field--disabled).mdc-text-field--%NS%invalid:not(.mdc-text-field--focused):hover .mdc-line-ripple::before {
|
|
border-bottom-color: var(--%NS%mat-form-field-filled-error-hover-active-indicator-color, var(--%NS%mat-sys-on-error-container));
|
|
}
|
|
.mdc-line-ripple::after {
|
|
transform: scaleX(0);
|
|
opacity: 0;
|
|
z-index: 2;
|
|
}
|
|
.mdc-text-field--filled .mdc-line-ripple::after {
|
|
border-bottom-width: var(--%NS%mat-form-field-filled-focus-active-indicator-height, 2px);
|
|
}
|
|
.mdc-text-field--%NS%filled:not(.mdc-text-field--disabled) .mdc-line-ripple::after {
|
|
border-bottom-color: var(--%NS%mat-form-field-filled-focus-active-indicator-color, var(--%NS%mat-sys-primary));
|
|
}
|
|
.mdc-text-field--filled.mdc-text-field--%NS%invalid:not(.mdc-text-field--disabled) .mdc-line-ripple::after {
|
|
border-bottom-color: var(--%NS%mat-form-field-filled-error-focus-active-indicator-color, var(--%NS%mat-sys-error));
|
|
}
|
|
|
|
.mdc-line-ripple--%NS%active::after {
|
|
transform: scaleX(1);
|
|
opacity: 1;
|
|
}
|
|
|
|
.mdc-line-ripple--%NS%deactivating::after {
|
|
opacity: 0;
|
|
}
|
|
|
|
.mdc-text-field--disabled {
|
|
pointer-events: none;
|
|
}
|
|
|
|
.mat-mdc-form-field-textarea-control {
|
|
vertical-align: middle;
|
|
resize: vertical;
|
|
box-sizing: border-box;
|
|
height: auto;
|
|
margin: 0;
|
|
padding: 0;
|
|
border: none;
|
|
overflow: auto;
|
|
}
|
|
|
|
.mat-mdc-form-field-input-control.mat-mdc-form-field-input-control {
|
|
-moz-osx-font-smoothing: grayscale;
|
|
-webkit-font-smoothing: antialiased;
|
|
font: inherit;
|
|
letter-spacing: inherit;
|
|
text-decoration: inherit;
|
|
text-transform: inherit;
|
|
border: none;
|
|
}
|
|
|
|
.mat-mdc-form-field .mat-mdc-floating-label.mdc-floating-label {
|
|
-moz-osx-font-smoothing: grayscale;
|
|
-webkit-font-smoothing: antialiased;
|
|
line-height: normal;
|
|
pointer-events: all;
|
|
will-change: auto;
|
|
}
|
|
|
|
.mat-mdc-form-field:not(.mat-form-field-disabled) .mat-mdc-floating-label.mdc-floating-label {
|
|
cursor: inherit;
|
|
}
|
|
|
|
.mdc-text-field--%NS%no-label:not(.mdc-text-field--textarea) .mat-mdc-form-field-input-control.mdc-text-field__input,
|
|
.mat-mdc-text-field-wrapper .mat-mdc-form-field-input-control {
|
|
height: auto;
|
|
}
|
|
|
|
.mat-mdc-text-field-wrapper .mat-mdc-form-field-input-control.mdc-text-field__input[type=color] {
|
|
height: 23px;
|
|
}
|
|
|
|
.mat-mdc-text-field-wrapper {
|
|
height: auto;
|
|
flex: auto;
|
|
will-change: auto;
|
|
}
|
|
|
|
.mat-mdc-form-field-has-icon-prefix .mat-mdc-text-field-wrapper {
|
|
padding-left: 0;
|
|
--%NS%mat-mdc-form-field-label-offset-x: -16px;
|
|
}
|
|
|
|
.mat-mdc-form-field-has-icon-suffix .mat-mdc-text-field-wrapper {
|
|
padding-right: 0;
|
|
}
|
|
|
|
[dir=rtl] .mat-mdc-text-field-wrapper {
|
|
padding-left: 16px;
|
|
padding-right: 16px;
|
|
}
|
|
[dir=rtl] .mat-mdc-form-field-has-icon-suffix .mat-mdc-text-field-wrapper {
|
|
padding-left: 0;
|
|
}
|
|
[dir=rtl] .mat-mdc-form-field-has-icon-prefix .mat-mdc-text-field-wrapper {
|
|
padding-right: 0;
|
|
}
|
|
|
|
.mat-form-field-disabled .mdc-text-field__input::placeholder {
|
|
color: var(--%NS%mat-form-field-disabled-input-text-placeholder-color, color-mix(in srgb, var(--%NS%mat-sys-on-surface) 38%, transparent));
|
|
}
|
|
.mat-form-field-disabled .mdc-text-field__input::-moz-placeholder {
|
|
color: var(--%NS%mat-form-field-disabled-input-text-placeholder-color, color-mix(in srgb, var(--%NS%mat-sys-on-surface) 38%, transparent));
|
|
}
|
|
.mat-form-field-disabled .mdc-text-field__input::-webkit-input-placeholder {
|
|
color: var(--%NS%mat-form-field-disabled-input-text-placeholder-color, color-mix(in srgb, var(--%NS%mat-sys-on-surface) 38%, transparent));
|
|
}
|
|
.mat-form-field-disabled .mdc-text-field__input:-ms-input-placeholder {
|
|
color: var(--%NS%mat-form-field-disabled-input-text-placeholder-color, color-mix(in srgb, var(--%NS%mat-sys-on-surface) 38%, transparent));
|
|
}
|
|
|
|
.mat-mdc-form-field-label-always-float .mdc-text-field__input::placeholder {
|
|
transition-delay: 40ms;
|
|
transition-duration: 110ms;
|
|
opacity: 1;
|
|
}
|
|
|
|
.mat-mdc-text-field-wrapper .mat-mdc-form-field-infix .mat-mdc-floating-label {
|
|
left: auto;
|
|
right: auto;
|
|
}
|
|
|
|
.mat-mdc-text-field-wrapper.mdc-text-field--outlined .mdc-text-field__input {
|
|
display: inline-block;
|
|
}
|
|
|
|
.mat-mdc-form-field .mat-mdc-text-field-wrapper.mdc-text-field .mdc-notched-outline__notch {
|
|
padding-top: 0;
|
|
}
|
|
|
|
.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field .mdc-notched-outline__notch {
|
|
border-left: 1px solid transparent;
|
|
}
|
|
|
|
[dir=rtl] .mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field .mdc-notched-outline__notch {
|
|
border-left: none;
|
|
border-right: 1px solid transparent;
|
|
}
|
|
|
|
.mat-mdc-form-field-infix {
|
|
min-height: var(--%NS%mat-form-field-container-height, 56px);
|
|
padding-top: var(--%NS%mat-form-field-filled-with-label-container-padding-top, 24px);
|
|
padding-bottom: var(--%NS%mat-form-field-filled-with-label-container-padding-bottom, 8px);
|
|
}
|
|
.mdc-text-field--outlined .mat-mdc-form-field-infix, .mdc-text-field--no-label .mat-mdc-form-field-infix {
|
|
padding-top: var(--%NS%mat-form-field-container-vertical-padding, 16px);
|
|
padding-bottom: var(--%NS%mat-form-field-container-vertical-padding, 16px);
|
|
}
|
|
|
|
.mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-floating-label {
|
|
top: calc(var(--%NS%mat-form-field-container-height, 56px) / 2);
|
|
}
|
|
|
|
.mdc-text-field--filled .mat-mdc-floating-label {
|
|
display: var(--%NS%mat-form-field-filled-label-display, block);
|
|
}
|
|
|
|
.mat-mdc-text-field-wrapper.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above {
|
|
--%NS%mat-mdc-form-field-label-transform: translateY(calc(calc(6.75px + var(--%NS%mat-form-field-container-height, 56px) / 2) * -1))
|
|
scale(var(--%NS%mat-mdc-form-field-floating-label-scale, 0.75));
|
|
transform: var(--%NS%mat-mdc-form-field-label-transform);
|
|
}
|
|
|
|
@keyframes _mat-form-field-subscript-animation {
|
|
from {
|
|
opacity: 0;
|
|
transform: translateY(-5px);
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
transform: translateY(0);
|
|
}
|
|
}
|
|
.mat-mdc-form-field-subscript-wrapper {
|
|
box-sizing: border-box;
|
|
width: 100%;
|
|
position: relative;
|
|
}
|
|
|
|
.mat-mdc-form-field-hint-wrapper,
|
|
.mat-mdc-form-field-error-wrapper {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
padding: 0 16px;
|
|
opacity: 1;
|
|
transform: translateY(0);
|
|
animation: _mat-form-field-subscript-animation 0ms cubic-bezier(0.55, 0, 0.55, 0.2);
|
|
}
|
|
|
|
.mat-mdc-form-field-subscript-dynamic-size .mat-mdc-form-field-hint-wrapper,
|
|
.mat-mdc-form-field-subscript-dynamic-size .mat-mdc-form-field-error-wrapper {
|
|
position: static;
|
|
}
|
|
|
|
.mat-mdc-form-field-bottom-align::before {
|
|
content: "";
|
|
display: inline-block;
|
|
height: 16px;
|
|
}
|
|
|
|
.mat-mdc-form-field-bottom-align.mat-mdc-form-field-subscript-dynamic-size::before {
|
|
content: unset;
|
|
}
|
|
|
|
.mat-mdc-form-field-hint-end {
|
|
order: 1;
|
|
}
|
|
|
|
.mat-mdc-form-field-hint-wrapper {
|
|
display: flex;
|
|
}
|
|
|
|
.mat-mdc-form-field-hint-spacer {
|
|
flex: 1 0 1em;
|
|
}
|
|
|
|
.mat-mdc-form-field-error {
|
|
display: block;
|
|
color: var(--%NS%mat-form-field-error-text-color, var(--%NS%mat-sys-error));
|
|
}
|
|
|
|
.mat-mdc-form-field-subscript-wrapper,
|
|
.mat-mdc-form-field-bottom-align::before {
|
|
-moz-osx-font-smoothing: grayscale;
|
|
-webkit-font-smoothing: antialiased;
|
|
font-family: var(--%NS%mat-form-field-subscript-text-font, var(--%NS%mat-sys-body-small-font));
|
|
line-height: var(--%NS%mat-form-field-subscript-text-line-height, var(--%NS%mat-sys-body-small-line-height));
|
|
font-size: var(--%NS%mat-form-field-subscript-text-size, var(--%NS%mat-sys-body-small-size));
|
|
letter-spacing: var(--%NS%mat-form-field-subscript-text-tracking, var(--%NS%mat-sys-body-small-tracking));
|
|
font-weight: var(--%NS%mat-form-field-subscript-text-weight, var(--%NS%mat-sys-body-small-weight));
|
|
}
|
|
|
|
.mat-mdc-form-field-focus-overlay {
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
position: absolute;
|
|
opacity: 0;
|
|
pointer-events: none;
|
|
background-color: var(--%NS%mat-form-field-state-layer-color, var(--%NS%mat-sys-on-surface));
|
|
}
|
|
.mat-mdc-text-field-wrapper:hover .mat-mdc-form-field-focus-overlay {
|
|
opacity: var(--%NS%mat-form-field-hover-state-layer-opacity, var(--%NS%mat-sys-hover-state-layer-opacity));
|
|
}
|
|
.mat-mdc-form-field.mat-focused .mat-mdc-form-field-focus-overlay {
|
|
opacity: var(--%NS%mat-form-field-focus-state-layer-opacity, 0);
|
|
}
|
|
|
|
select.mat-mdc-form-field-input-control {
|
|
-moz-appearance: none;
|
|
-webkit-appearance: none;
|
|
background-color: transparent;
|
|
display: inline-flex;
|
|
box-sizing: border-box;
|
|
}
|
|
select.mat-mdc-form-field-input-control:not(:disabled) {
|
|
cursor: pointer;
|
|
}
|
|
select.mat-mdc-form-field-input-control:not(.mat-mdc-native-select-inline) option {
|
|
color: var(--%NS%mat-form-field-select-option-text-color, var(--%NS%mat-sys-neutral10));
|
|
}
|
|
select.mat-mdc-form-field-input-control:not(.mat-mdc-native-select-inline) option:disabled {
|
|
color: var(--%NS%mat-form-field-select-disabled-option-text-color, color-mix(in srgb, var(--%NS%mat-sys-neutral10) 38%, transparent));
|
|
}
|
|
|
|
.mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-infix::after {
|
|
content: "";
|
|
width: 0;
|
|
height: 0;
|
|
border-left: 5px solid transparent;
|
|
border-right: 5px solid transparent;
|
|
border-top: 5px solid;
|
|
position: absolute;
|
|
right: 0;
|
|
top: 50%;
|
|
margin-top: -2.5px;
|
|
pointer-events: none;
|
|
color: var(--%NS%mat-form-field-enabled-select-arrow-color, var(--%NS%mat-sys-on-surface-variant));
|
|
}
|
|
[dir=rtl] .mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-infix::after {
|
|
right: auto;
|
|
left: 0;
|
|
}
|
|
.mat-mdc-form-field-type-mat-native-select.mat-focused .mat-mdc-form-field-infix::after {
|
|
color: var(--%NS%mat-form-field-focus-select-arrow-color, var(--%NS%mat-sys-primary));
|
|
}
|
|
.mat-mdc-form-field-type-mat-native-select.mat-form-field-disabled .mat-mdc-form-field-infix::after {
|
|
color: var(--%NS%mat-form-field-disabled-select-arrow-color, color-mix(in srgb, var(--%NS%mat-sys-on-surface) 38%, transparent));
|
|
}
|
|
.mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-input-control {
|
|
padding-right: 15px;
|
|
}
|
|
[dir=rtl] .mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-input-control {
|
|
padding-right: 0;
|
|
padding-left: 15px;
|
|
}
|
|
|
|
@media (forced-colors: active) {
|
|
.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper {
|
|
outline: solid 1px;
|
|
}
|
|
}
|
|
@media (forced-colors: active) {
|
|
.mat-form-field-appearance-fill.mat-form-field-disabled .mat-mdc-text-field-wrapper {
|
|
outline-color: GrayText;
|
|
}
|
|
}
|
|
|
|
@media (forced-colors: active) {
|
|
.mat-form-field-appearance-fill.mat-focused .mat-mdc-text-field-wrapper {
|
|
outline: dashed 3px;
|
|
}
|
|
}
|
|
|
|
@media (forced-colors: active) {
|
|
.mat-mdc-form-field.mat-focused .mdc-notched-outline {
|
|
border: dashed 3px;
|
|
}
|
|
}
|
|
|
|
.mat-mdc-form-field-input-control[type=date], .mat-mdc-form-field-input-control[type=datetime], .mat-mdc-form-field-input-control[type=datetime-local], .mat-mdc-form-field-input-control[type=month], .mat-mdc-form-field-input-control[type=week], .mat-mdc-form-field-input-control[type=time] {
|
|
line-height: 1;
|
|
}
|
|
.mat-mdc-form-field-input-control::-webkit-datetime-edit {
|
|
line-height: 1;
|
|
padding: 0;
|
|
margin-bottom: -2px;
|
|
}
|
|
|
|
.mat-mdc-form-field {
|
|
--%NS%mat-mdc-form-field-floating-label-scale: 0.75;
|
|
display: inline-flex;
|
|
flex-direction: column;
|
|
min-width: 0;
|
|
text-align: left;
|
|
-moz-osx-font-smoothing: grayscale;
|
|
-webkit-font-smoothing: antialiased;
|
|
font-family: var(--%NS%mat-form-field-container-text-font, var(--%NS%mat-sys-body-large-font));
|
|
line-height: var(--%NS%mat-form-field-container-text-line-height, var(--%NS%mat-sys-body-large-line-height));
|
|
font-size: var(--%NS%mat-form-field-container-text-size, var(--%NS%mat-sys-body-large-size));
|
|
letter-spacing: var(--%NS%mat-form-field-container-text-tracking, var(--%NS%mat-sys-body-large-tracking));
|
|
font-weight: var(--%NS%mat-form-field-container-text-weight, var(--%NS%mat-sys-body-large-weight));
|
|
}
|
|
.mat-mdc-form-field .mdc-text-field--outlined .mdc-floating-label--float-above {
|
|
font-size: calc(var(--%NS%mat-form-field-outlined-label-text-populated-size) * var(--%NS%mat-mdc-form-field-floating-label-scale));
|
|
}
|
|
.mat-mdc-form-field .mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above {
|
|
font-size: var(--%NS%mat-form-field-outlined-label-text-populated-size);
|
|
}
|
|
[dir=rtl] .mat-mdc-form-field {
|
|
text-align: right;
|
|
}
|
|
|
|
.mat-mdc-form-field-flex {
|
|
display: inline-flex;
|
|
align-items: baseline;
|
|
box-sizing: border-box;
|
|
width: 100%;
|
|
}
|
|
|
|
.mat-mdc-text-field-wrapper {
|
|
width: 100%;
|
|
z-index: 0;
|
|
}
|
|
|
|
.mat-mdc-form-field-icon-prefix,
|
|
.mat-mdc-form-field-icon-suffix {
|
|
align-self: center;
|
|
line-height: 0;
|
|
pointer-events: auto;
|
|
position: relative;
|
|
z-index: 1;
|
|
}
|
|
.mat-mdc-form-field-icon-prefix > .mat-icon,
|
|
.mat-mdc-form-field-icon-suffix > .mat-icon {
|
|
padding: 0 12px;
|
|
box-sizing: content-box;
|
|
}
|
|
|
|
.mat-mdc-form-field-icon-prefix {
|
|
color: var(--%NS%mat-form-field-leading-icon-color, var(--%NS%mat-sys-on-surface-variant));
|
|
}
|
|
.mat-form-field-disabled .mat-mdc-form-field-icon-prefix {
|
|
color: var(--%NS%mat-form-field-disabled-leading-icon-color, color-mix(in srgb, var(--%NS%mat-sys-on-surface) 38%, transparent));
|
|
}
|
|
|
|
.mat-mdc-form-field-icon-suffix {
|
|
color: var(--%NS%mat-form-field-trailing-icon-color, var(--%NS%mat-sys-on-surface-variant));
|
|
}
|
|
.mat-form-field-disabled .mat-mdc-form-field-icon-suffix {
|
|
color: var(--%NS%mat-form-field-disabled-trailing-icon-color, color-mix(in srgb, var(--%NS%mat-sys-on-surface) 38%, transparent));
|
|
}
|
|
.mat-form-field-invalid .mat-mdc-form-field-icon-suffix {
|
|
color: var(--%NS%mat-form-field-error-trailing-icon-color, var(--%NS%mat-sys-error));
|
|
}
|
|
.mat-form-field-invalid:not(.mat-focused):not(.mat-form-field-disabled) .mat-mdc-text-field-wrapper:hover .mat-mdc-form-field-icon-suffix {
|
|
color: var(--%NS%mat-form-field-error-hover-trailing-icon-color, var(--%NS%mat-sys-on-error-container));
|
|
}
|
|
.mat-form-field-invalid.mat-focused .mat-mdc-text-field-wrapper .mat-mdc-form-field-icon-suffix {
|
|
color: var(--%NS%mat-form-field-error-focus-trailing-icon-color, var(--%NS%mat-sys-error));
|
|
}
|
|
|
|
.mat-mdc-form-field-icon-prefix,
|
|
[dir=rtl] .mat-mdc-form-field-icon-suffix {
|
|
padding: 0 4px 0 0;
|
|
}
|
|
|
|
.mat-mdc-form-field-icon-suffix,
|
|
[dir=rtl] .mat-mdc-form-field-icon-prefix {
|
|
padding: 0 0 0 4px;
|
|
}
|
|
|
|
.mat-mdc-form-field-subscript-wrapper .mat-icon,
|
|
.mat-mdc-form-field label .mat-icon {
|
|
width: 1em;
|
|
height: 1em;
|
|
font-size: inherit;
|
|
}
|
|
|
|
.mat-mdc-form-field-infix {
|
|
flex: auto;
|
|
min-width: 0;
|
|
width: 180px;
|
|
position: relative;
|
|
box-sizing: border-box;
|
|
}
|
|
.mat-mdc-form-field-infix:has(textarea[cols]) {
|
|
width: auto;
|
|
}
|
|
|
|
.mat-mdc-form-field .mdc-notched-outline__notch {
|
|
margin-left: -1px;
|
|
-webkit-clip-path: inset(-9em -999em -9em 1px);
|
|
clip-path: inset(-9em -999em -9em 1px);
|
|
}
|
|
[dir=rtl] .mat-mdc-form-field .mdc-notched-outline__notch {
|
|
margin-left: 0;
|
|
margin-right: -1px;
|
|
-webkit-clip-path: inset(-9em 1px -9em -999em);
|
|
clip-path: inset(-9em 1px -9em -999em);
|
|
}
|
|
|
|
.mat-mdc-form-field.mat-form-field-animations-enabled .mdc-floating-label {
|
|
transition: transform 150ms cubic-bezier(0.4, 0, 0.2, 1), color 150ms cubic-bezier(0.4, 0, 0.2, 1);
|
|
}
|
|
.mat-mdc-form-field.mat-form-field-animations-enabled .mdc-text-field__input {
|
|
transition: opacity 150ms cubic-bezier(0.4, 0, 0.2, 1);
|
|
}
|
|
.mat-mdc-form-field.mat-form-field-animations-enabled .mdc-text-field__input::placeholder {
|
|
transition: opacity 67ms cubic-bezier(0.4, 0, 0.2, 1);
|
|
}
|
|
.mat-mdc-form-field.mat-form-field-animations-enabled .mdc-text-field__input::-moz-placeholder {
|
|
transition: opacity 67ms cubic-bezier(0.4, 0, 0.2, 1);
|
|
}
|
|
.mat-mdc-form-field.mat-form-field-animations-enabled .mdc-text-field__input::-webkit-input-placeholder {
|
|
transition: opacity 67ms cubic-bezier(0.4, 0, 0.2, 1);
|
|
}
|
|
.mat-mdc-form-field.mat-form-field-animations-enabled .mdc-text-field__input:-ms-input-placeholder {
|
|
transition: opacity 67ms cubic-bezier(0.4, 0, 0.2, 1);
|
|
}
|
|
.mat-mdc-form-field.mat-form-field-animations-enabled.mdc-text-field--no-label .mdc-text-field__input::placeholder, .mat-mdc-form-field.mat-form-field-animations-enabled.mdc-text-field--focused .mdc-text-field__input::placeholder {
|
|
transition-delay: 40ms;
|
|
transition-duration: 110ms;
|
|
}
|
|
.mat-mdc-form-field.mat-form-field-animations-enabled.mdc-text-field--no-label .mdc-text-field__input::-moz-placeholder, .mat-mdc-form-field.mat-form-field-animations-enabled.mdc-text-field--focused .mdc-text-field__input::-moz-placeholder {
|
|
transition-delay: 40ms;
|
|
transition-duration: 110ms;
|
|
}
|
|
.mat-mdc-form-field.mat-form-field-animations-enabled.mdc-text-field--no-label .mdc-text-field__input::-webkit-input-placeholder, .mat-mdc-form-field.mat-form-field-animations-enabled.mdc-text-field--focused .mdc-text-field__input::-webkit-input-placeholder {
|
|
transition-delay: 40ms;
|
|
transition-duration: 110ms;
|
|
}
|
|
.mat-mdc-form-field.mat-form-field-animations-enabled.mdc-text-field--no-label .mdc-text-field__input:-ms-input-placeholder, .mat-mdc-form-field.mat-form-field-animations-enabled.mdc-text-field--focused .mdc-text-field__input:-ms-input-placeholder {
|
|
transition-delay: 40ms;
|
|
transition-duration: 110ms;
|
|
}
|
|
.mat-mdc-form-field.mat-form-field-animations-enabled .mdc-text-field--%NS%filled:not(.mdc-ripple-upgraded):focus .mdc-text-field__ripple::before {
|
|
transition-duration: 75ms;
|
|
}
|
|
.mat-mdc-form-field.mat-form-field-animations-enabled .mdc-line-ripple::after {
|
|
transition: transform 180ms cubic-bezier(0.4, 0, 0.2, 1), opacity 180ms cubic-bezier(0.4, 0, 0.2, 1);
|
|
}
|
|
.mat-mdc-form-field.mat-form-field-animations-enabled .mat-mdc-form-field-hint-wrapper,
|
|
.mat-mdc-form-field.mat-form-field-animations-enabled .mat-mdc-form-field-error-wrapper {
|
|
animation-duration: 300ms;
|
|
}
|
|
|
|
.mdc-notched-outline .mdc-floating-label {
|
|
max-width: calc(100% + 1px);
|
|
}
|
|
|
|
.mdc-notched-outline--upgraded .mdc-floating-label--float-above {
|
|
max-width: calc(133.3333333333% + 1px);
|
|
}
|
|
`],encapsulation:2})})()}return n})();var js=(()=>{class n{isErrorState(t,e){return!!(t&&t.invalid&&(t.touched||e&&e.submitted))}isSignalErrorState(t){if(!t)return!1;let e=t().invalid(),a=t().touched();return e&&a}static \u0275fac=function(e){return new(e||n)};static \u0275prov=I({token:n,factory:n.\u0275fac})}return n})();var Sa=class{_defaultMatcher;_parentFormGroup;_parentForm;_stateChanges;errorState=!1;matcher;ngControl;formField;constructor(i,t,e,a,r){this._defaultMatcher=i,this._parentFormGroup=e,this._parentForm=a,this._stateChanges=r,t?Re(t.field)&&!t.updateValueAndValidity?(this.formField=t,this.ngControl=null):(this.formField=null,this.ngControl=t):this.ngControl=this.formField=null}updateErrorState(){let i=this.errorState,t=this._getCurrentErrorState(this.matcher||this._defaultMatcher);t!==i&&(this.errorState=t,this._stateChanges.next())}_getCurrentErrorState(i){if(this.formField&&i?.isSignalErrorState)return i.isSignalErrorState(this.formField.field())??!1;let t=this._parentFormGroup||this._parentForm,e=this.ngControl?this.ngControl.control:null;return i?.isErrorState(e,t)??!1}};var sd=(()=>{class n{static \u0275fac=function(e){return new(e||n)};static \u0275mod=Y({type:n});static \u0275inj=q({imports:[es,Ie,Xt]})}return n})();var q_=["button","checkbox","file","hidden","image","radio","range","reset","submit"],K_=new v("MAT_INPUT_CONFIG"),Yn=(()=>{class n{_elementRef=c(R);_platform=c(ut);ngControl=c($e,{optional:!0,self:!0});_autofillMonitor=c(vp);_ngZone=c(O);_formField=c(Ci,{optional:!0});_renderer=c(pt);_uid=c(St).getId("mat-input-");_previousNativeValue;_inputValueAccessor;_signalBasedValueAccessor;_previousPlaceholder=null;_errorStateTracker;_config=c(K_,{optional:!0});_cleanupIosKeyup;_cleanupWebkitWheel;_isServer=!1;_isNativeSelect=!1;_isTextarea=!1;_isInFormField=!1;focused=!1;stateChanges=new E;controlType="mat-input";autofilled=!1;get disabled(){return this._disabled}set disabled(t){this._disabled=_e(t),this.focused&&(this.focused=!1,this.stateChanges.next())}_disabled=!1;get id(){return this._id}set id(t){this._id=t||this._uid}_id;placeholder;name;get required(){return this._required??this.ngControl?.control?.hasValidator(xi.required)??!1}set required(t){this._required=_e(t)}_required;get type(){return this._type}set type(t){this._type=t||"text",this._validateType(),!this._isTextarea&&jc().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}_type="text";get errorStateMatcher(){return this._errorStateTracker.matcher}set errorStateMatcher(t){this._errorStateTracker.matcher=t}userAriaDescribedBy;get value(){return this._signalBasedValueAccessor?this._signalBasedValueAccessor.value():this._inputValueAccessor.value}set value(t){t!==this.value&&(this._signalBasedValueAccessor?this._signalBasedValueAccessor.value.set(t):this._inputValueAccessor.value=t,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(t){this._readonly=_e(t)}_readonly=!1;disabledInteractive;get errorState(){return this._errorStateTracker.errorState}set errorState(t){this._errorStateTracker.errorState=t}_neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(t=>jc().has(t));constructor(){let t=c(ye,{optional:!0}),e=c(Rr,{optional:!0}),a=c(js),r=c(Sp,{optional:!0,self:!0}),o=c(Bs,{optional:!0,self:!0}),s=this._elementRef.nativeElement,l=s.nodeName.toLowerCase();r?Re(r.value)?this._signalBasedValueAccessor=r:this._inputValueAccessor=r:this._inputValueAccessor=s,this._previousNativeValue=this.value,this.id=this.id,this._platform.IOS&&this._ngZone.runOutsideAngular(()=>{this._cleanupIosKeyup=this._renderer.listen(s,"keyup",this._iOSKeyupListener)}),this._errorStateTracker=new Sa(a,o||this.ngControl,e,t,this.stateChanges),this._isServer=!this._platform.isBrowser,this._isNativeSelect=l==="select",this._isTextarea=l==="textarea",this._isInFormField=!!this._formField,this.disabledInteractive=this._config?.disabledInteractive||!1,this._isNativeSelect&&(this.controlType=s.multiple?"mat-native-select-multiple":"mat-native-select"),this._signalBasedValueAccessor&&qe(()=>{this._signalBasedValueAccessor.value(),this.stateChanges.next()})}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(t=>{this.autofilled=t.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement),this._cleanupIosKeyup?.(),this._cleanupWebkitWheel?.()}ngDoCheck(){this.ngControl&&(this.updateErrorState(),this.ngControl.disabled!==null&&this.ngControl.disabled!==this.disabled&&(this.disabled=this.ngControl.disabled,this.stateChanges.next())),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}focus(t){this._elementRef.nativeElement.focus(t)}updateErrorState(){this._errorStateTracker.updateErrorState()}_focusChanged(t){if(t!==this.focused){if(!this._isNativeSelect&&t&&this.disabled&&this.disabledInteractive){let e=this._elementRef.nativeElement;e.type==="number"?(e.type="text",e.setSelectionRange(0,0),e.type="number"):e.setSelectionRange(0,0)}this.focused=t,this.stateChanges.next()}}_onInput(){}_dirtyCheckNativeValue(){let t=this._elementRef.nativeElement.value;this._previousNativeValue!==t&&(this._previousNativeValue=t,this.stateChanges.next())}_dirtyCheckPlaceholder(){let t=this._getPlaceholder();if(t!==this._previousPlaceholder){let e=this._elementRef.nativeElement;this._previousPlaceholder=t,t?e.setAttribute("placeholder",t):e.removeAttribute("placeholder")}}_getPlaceholder(){return this.placeholder||null}_validateType(){q_.indexOf(this._type)>-1}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let t=this._elementRef.nativeElement.validity;return t&&t.badInput}get empty(){return!this._isNeverEmpty()&&!this._elementRef.nativeElement.value&&!this._isBadInput()&&!this.autofilled}get shouldLabelFloat(){if(this._isNativeSelect){let t=this._elementRef.nativeElement,e=t.options[0];return this.focused||t.multiple||!this.empty||!!(t.selectedIndex>-1&&e&&e.label)}else return this.focused&&!this.disabled||!this.empty}get describedByIds(){return this._elementRef.nativeElement.getAttribute("aria-describedby")?.split(" ")||[]}setDescribedByIds(t){let e=this._elementRef.nativeElement;t.length?e.setAttribute("aria-describedby",t.join(" ")):e.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}_isInlineSelect(){let t=this._elementRef.nativeElement;return this._isNativeSelect&&(t.multiple||t.size>1)}_iOSKeyupListener=t=>{let e=t.target;!e.value&&e.selectionStart===0&&e.selectionEnd===0&&(e.setSelectionRange(1,1),e.setSelectionRange(0,0))};_getReadonlyAttribute(){return this._isNativeSelect?null:this.readonly||this.disabled&&this.disabledInteractive?"true":null}static \u0275fac=function(e){return new(e||n)};static \u0275dir=x({type:n,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-mdc-input-element"],hostVars:21,hostBindings:function(e,a){e&1&&B("focus",function(){return a._focusChanged(!0)})("blur",function(){return a._focusChanged(!1)})("input",function(){return a._onInput()}),e&2&&(ee("id",a.id)("disabled",a.disabled&&!a.disabledInteractive)("required",a.required),H("name",a.name||null)("readonly",a._getReadonlyAttribute())("aria-disabled",a.disabled&&a.disabledInteractive?"true":null)("aria-invalid",a.empty&&a.required?null:a.errorState)("aria-required",a.required)("id",a.id),z("mat-input-server",a._isServer)("mat-mdc-form-field-textarea-control",a._isInFormField&&a._isTextarea)("mat-mdc-form-field-input-control",a._isInFormField)("mat-mdc-input-disabled-interactive",a.disabledInteractive)("mdc-text-field__input",a._isInFormField)("mat-mdc-native-select-inline",a._isInlineSelect()))},inputs:{disabled:"disabled",id:"id",placeholder:"placeholder",name:"name",required:"required",type:"type",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:[0,"aria-describedby","userAriaDescribedBy"],value:"value",readonly:"readonly",disabledInteractive:[2,"disabledInteractive","disabledInteractive",j]},exportAs:["matInput"],features:[ft([{provide:Or,useExisting:n}]),Dt]})}return n})(),Fp=(()=>{class n{static \u0275fac=function(e){return new(e||n)};static \u0275mod=Y({type:n});static \u0275inj=q({imports:[sd,sd,_p,Xt]})}return n})();var Hs=(()=>{class n{get vertical(){return this._vertical}set vertical(t){this._vertical=_e(t)}_vertical=!1;get inset(){return this._inset}set inset(t){this._inset=_e(t)}_inset=!1;static \u0275fac=function(e){return new(e||n)};static \u0275cmp=S({type:n,selectors:[["mat-divider"]],hostAttrs:["role","separator",1,"mat-divider"],hostVars:7,hostBindings:function(e,a){e&2&&(H("aria-orientation",a.vertical?"vertical":"horizontal"),z("mat-divider-vertical",a.vertical)("mat-divider-horizontal",!a.vertical)("mat-divider-inset",a.inset))},inputs:{vertical:"vertical",inset:"inset"},decls:0,vars:0,template:function(e,a){},styles:[`.mat-divider {
|
|
display: block;
|
|
margin: 0;
|
|
border-top-style: solid;
|
|
border-top-color: var(--%NS%mat-divider-color, var(--%NS%mat-sys-outline-variant));
|
|
border-top-width: var(--%NS%mat-divider-width, 1px);
|
|
}
|
|
.mat-divider.mat-divider-vertical {
|
|
border-top: 0;
|
|
border-right-style: solid;
|
|
border-right-color: var(--%NS%mat-divider-color, var(--%NS%mat-sys-outline-variant));
|
|
border-right-width: var(--%NS%mat-divider-width, 1px);
|
|
}
|
|
.mat-divider.mat-divider-inset {
|
|
margin-left: 80px;
|
|
}
|
|
[dir=rtl] .mat-divider.mat-divider-inset {
|
|
margin-left: auto;
|
|
margin-right: 80px;
|
|
}
|
|
`],encapsulation:2})}return n})(),Pp=(()=>{class n{static \u0275fac=function(e){return new(e||n)};static \u0275mod=Y({type:n});static \u0275inj=q({imports:[Xt]})}return n})();var Lp=(()=>{class n{_animationsDisabled=Ct();state="unchecked";disabled=!1;appearance="full";static \u0275fac=function(e){return new(e||n)};static \u0275cmp=S({type:n,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:12,hostBindings:function(e,a){e&2&&z("mat-pseudo-checkbox-indeterminate",a.state==="indeterminate")("mat-pseudo-checkbox-checked",a.state==="checked")("mat-pseudo-checkbox-disabled",a.disabled)("mat-pseudo-checkbox-minimal",a.appearance==="minimal")("mat-pseudo-checkbox-full",a.appearance==="full")("_mat-animation-noopable",a._animationsDisabled)},inputs:{state:"state",disabled:"disabled",appearance:"appearance"},decls:0,vars:0,template:function(e,a){},styles:[`.mat-pseudo-checkbox {
|
|
border-radius: 2px;
|
|
cursor: pointer;
|
|
display: inline-block;
|
|
vertical-align: middle;
|
|
box-sizing: border-box;
|
|
position: relative;
|
|
flex-shrink: 0;
|
|
transition: border-color 90ms cubic-bezier(0, 0, 0.2, 0.1), background-color 90ms cubic-bezier(0, 0, 0.2, 0.1);
|
|
}
|
|
.mat-pseudo-checkbox::after {
|
|
position: absolute;
|
|
opacity: 0;
|
|
content: "";
|
|
border-bottom: 2px solid currentColor;
|
|
transition: opacity 90ms cubic-bezier(0, 0, 0.2, 0.1);
|
|
}
|
|
.mat-pseudo-checkbox._mat-animation-noopable {
|
|
transition: none !important;
|
|
animation: none !important;
|
|
}
|
|
.mat-pseudo-checkbox._mat-animation-noopable::after {
|
|
transition: none;
|
|
}
|
|
|
|
.mat-pseudo-checkbox-disabled {
|
|
cursor: default;
|
|
}
|
|
|
|
.mat-pseudo-checkbox-indeterminate::after {
|
|
left: 1px;
|
|
opacity: 1;
|
|
border-radius: 2px;
|
|
}
|
|
|
|
.mat-pseudo-checkbox-checked::after {
|
|
left: 1px;
|
|
border-left: 2px solid currentColor;
|
|
transform: rotate(-45deg);
|
|
opacity: 1;
|
|
box-sizing: content-box;
|
|
}
|
|
|
|
.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked::after, .mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate::after {
|
|
color: var(--%NS%mat-pseudo-checkbox-minimal-selected-checkmark-color, var(--%NS%mat-sys-primary));
|
|
}
|
|
.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled::after, .mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled::after {
|
|
color: var(--%NS%mat-pseudo-checkbox-minimal-disabled-selected-checkmark-color, color-mix(in srgb, var(--%NS%mat-sys-on-surface) 38%, transparent));
|
|
}
|
|
|
|
.mat-pseudo-checkbox-full {
|
|
border-color: var(--%NS%mat-pseudo-checkbox-full-unselected-icon-color, var(--%NS%mat-sys-on-surface-variant));
|
|
border-width: 2px;
|
|
border-style: solid;
|
|
}
|
|
.mat-pseudo-checkbox-full.mat-pseudo-checkbox-disabled {
|
|
border-color: var(--%NS%mat-pseudo-checkbox-full-disabled-unselected-icon-color, color-mix(in srgb, var(--%NS%mat-sys-on-surface) 38%, transparent));
|
|
}
|
|
.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked, .mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate {
|
|
background-color: var(--%NS%mat-pseudo-checkbox-full-selected-icon-color, var(--%NS%mat-sys-primary));
|
|
border-color: transparent;
|
|
}
|
|
.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked::after, .mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate::after {
|
|
color: var(--%NS%mat-pseudo-checkbox-full-selected-checkmark-color, var(--%NS%mat-sys-on-primary));
|
|
}
|
|
.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled, .mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled {
|
|
background-color: var(--%NS%mat-pseudo-checkbox-full-disabled-selected-icon-color, color-mix(in srgb, var(--%NS%mat-sys-on-surface) 38%, transparent));
|
|
}
|
|
.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled::after, .mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled::after {
|
|
color: var(--%NS%mat-pseudo-checkbox-full-disabled-selected-checkmark-color, var(--%NS%mat-sys-surface));
|
|
}
|
|
|
|
.mat-pseudo-checkbox {
|
|
width: 18px;
|
|
height: 18px;
|
|
}
|
|
|
|
.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked::after {
|
|
width: 14px;
|
|
height: 6px;
|
|
transform-origin: center;
|
|
top: -4.2426406871px;
|
|
left: 0;
|
|
bottom: 0;
|
|
right: 0;
|
|
margin: auto;
|
|
}
|
|
.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate::after {
|
|
top: 8px;
|
|
width: 16px;
|
|
}
|
|
|
|
.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked::after {
|
|
width: 10px;
|
|
height: 4px;
|
|
transform-origin: center;
|
|
top: -2.8284271247px;
|
|
left: 0;
|
|
bottom: 0;
|
|
right: 0;
|
|
margin: auto;
|
|
}
|
|
.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate::after {
|
|
top: 6px;
|
|
width: 12px;
|
|
}
|
|
`],encapsulation:2})}return n})();var Bp=(()=>{class n{static \u0275fac=function(e){return new(e||n)};static \u0275mod=Y({type:n});static \u0275inj=q({imports:[Xt]})}return n})();var X_=new v("ListOption"),cd=(()=>{class n{_elementRef=c(R);static \u0275fac=function(e){return new(e||n)};static \u0275dir=x({type:n,selectors:[["","matListItemTitle",""]],hostAttrs:[1,"mat-mdc-list-item-title","mdc-list-item__primary-text"]})}return n})(),dd=(()=>{class n{_elementRef=c(R);static \u0275fac=function(e){return new(e||n)};static \u0275dir=x({type:n,selectors:[["","matListItemLine",""]],hostAttrs:[1,"mat-mdc-list-item-line","mdc-list-item__secondary-text"]})}return n})(),Z_=(()=>{class n{static \u0275fac=function(e){return new(e||n)};static \u0275dir=x({type:n,selectors:[["","matListItemMeta",""]],hostAttrs:[1,"mat-mdc-list-item-meta","mdc-list-item__end"]})}return n})(),Vp=(()=>{class n{_listOption=c(X_,{optional:!0});_isAlignedAtStart(){return!this._listOption||this._listOption?._getTogglePosition()==="after"}static \u0275fac=function(e){return new(e||n)};static \u0275dir=x({type:n,hostVars:4,hostBindings:function(e,a){e&2&&z("mdc-list-item__start",a._isAlignedAtStart())("mdc-list-item__end",!a._isAlignedAtStart())}})}return n})(),Q_=(()=>{class n extends Vp{static \u0275fac=(()=>{let t;return function(a){return(t||(t=Rt(n)))(a||n)}})();static \u0275dir=x({type:n,selectors:[["","matListItemAvatar",""]],hostAttrs:[1,"mat-mdc-list-item-avatar"],features:[ot]})}return n})(),md=(()=>{class n extends Vp{static \u0275fac=(()=>{let t;return function(a){return(t||(t=Rt(n)))(a||n)}})();static \u0275dir=x({type:n,selectors:[["","matListItemIcon",""]],hostAttrs:[1,"mat-mdc-list-item-icon"],features:[ot]})}return n})(),J_=new v("MAT_LIST_CONFIG"),ld=(()=>{class n{_isNonInteractive=!0;get disableRipple(){return this._disableRipple}set disableRipple(t){this._disableRipple=_e(t)}_disableRipple=!1;get disabled(){return this._disabled()}set disabled(t){this._disabled.set(_e(t))}_disabled=X(!1);_defaultOptions=c(J_,{optional:!0});static \u0275fac=function(e){return new(e||n)};static \u0275dir=x({type:n,hostVars:1,hostBindings:function(e,a){e&2&&H("aria-disabled",a.disabled)},inputs:{disableRipple:"disableRipple",disabled:"disabled"}})}return n})(),ty=(()=>{class n{_elementRef=c(R);_ngZone=c(O);_listBase=c(ld,{optional:!0});_platform=c(ut);_hostElement;_isButtonElement;_noopAnimations=Ct();_avatars;_icons;set lines(t){this._explicitLines=pn(t,null),this._updateItemLines(!1)}_explicitLines=null;get disableRipple(){return this.disabled||this._disableRipple||this._noopAnimations||!!this._listBase?.disableRipple}set disableRipple(t){this._disableRipple=_e(t)}_disableRipple=!1;get disabled(){return this._disabled()||!!this._listBase?.disabled}set disabled(t){this._disabled.set(_e(t))}_disabled=X(!1);_subscriptions=new Et;_rippleRenderer=null;_hasUnscopedTextContent=!1;rippleConfig;get rippleDisabled(){return this.disableRipple||!!this.rippleConfig.disabled}constructor(){c(Bt).load(en);let t=c(_i,{optional:!0});this.rippleConfig=t||{},this._hostElement=this._elementRef.nativeElement,this._isButtonElement=this._hostElement.nodeName.toLowerCase()==="button",this._listBase&&!this._listBase._isNonInteractive&&this._initInteractiveListItem(),this._isButtonElement&&!this._hostElement.hasAttribute("type")&&this._hostElement.setAttribute("type","button")}ngAfterViewInit(){this._monitorProjectedLinesAndTitle(),this._updateItemLines(!0)}ngOnDestroy(){this._subscriptions.unsubscribe(),this._rippleRenderer!==null&&this._rippleRenderer._removeTriggerEvents()}_hasIconOrAvatar(){return!!(this._avatars.length||this._icons.length)}_initInteractiveListItem(){this._hostElement.classList.add("mat-mdc-list-item-interactive"),this._rippleRenderer=new vi(this,this._ngZone,this._hostElement,this._platform,c(K)),this._rippleRenderer.setupTriggerEvents(this._hostElement)}_monitorProjectedLinesAndTitle(){this._ngZone.runOutsideAngular(()=>{this._subscriptions.add(Qt(this._lines.changes,this._titles.changes).subscribe(()=>this._updateItemLines(!1)))})}_updateItemLines(t){if(!this._lines||!this._titles||!this._unscopedContent)return;t&&this._checkDomForUnscopedTextContent();let e=this._explicitLines??this._inferLinesFromContent(),a=this._unscopedContent.nativeElement;if(this._hostElement.classList.toggle("mat-mdc-list-item-single-line",e<=1),this._hostElement.classList.toggle("mdc-list-item--with-one-line",e<=1),this._hostElement.classList.toggle("mdc-list-item--with-two-lines",e===2),this._hostElement.classList.toggle("mdc-list-item--with-three-lines",e===3),this._hasUnscopedTextContent){let r=this._titles.length===0&&e===1;a.classList.toggle("mdc-list-item__primary-text",r),a.classList.toggle("mdc-list-item__secondary-text",!r)}else a.classList.remove("mdc-list-item__primary-text"),a.classList.remove("mdc-list-item__secondary-text")}_inferLinesFromContent(){let t=this._titles.length+this._lines.length;return this._hasUnscopedTextContent&&(t+=1),t}_checkDomForUnscopedTextContent(){this._hasUnscopedTextContent=Array.from(this._unscopedContent.nativeElement.childNodes).filter(t=>t.nodeType!==t.COMMENT_NODE).some(t=>!!(t.textContent&&t.textContent.trim()))}static \u0275fac=function(e){return new(e||n)};static \u0275dir=x({type:n,contentQueries:function(e,a,r){if(e&1&&ne(r,Q_,4)(r,md,4),e&2){let o;P(o=L())&&(a._avatars=o),P(o=L())&&(a._icons=o)}},hostVars:4,hostBindings:function(e,a){e&2&&(H("aria-disabled",a.disabled)("disabled",a._isButtonElement&&a.disabled||null),z("mdc-list-item--disabled",a.disabled))},inputs:{lines:"lines",disableRipple:"disableRipple",disabled:"disabled"}})}return n})();var zp=(()=>{class n extends ld{_isNonInteractive=!1;static \u0275fac=(()=>{let t;return function(a){return(t||(t=Rt(n)))(a||n)}})();static \u0275cmp=(function(){let t=["*"];return S({type:n,selectors:[["mat-action-list"]],hostAttrs:["role","group",1,"mat-mdc-action-list","mat-mdc-list-base","mdc-list"],exportAs:["matActionList"],features:[ft([{provide:ld,useExisting:n}]),ot],ngContentSelectors:t,decls:1,vars:0,template:function(a,r){a&1&&(_t(),V(0))},styles:[`.mdc-list {
|
|
margin: 0;
|
|
padding: 8px 0;
|
|
list-style-type: none;
|
|
}
|
|
.mdc-list:focus {
|
|
outline: none;
|
|
}
|
|
|
|
.mdc-list-item {
|
|
display: flex;
|
|
position: relative;
|
|
justify-content: flex-start;
|
|
overflow: hidden;
|
|
padding: 0;
|
|
align-items: stretch;
|
|
cursor: pointer;
|
|
padding-left: 16px;
|
|
padding-right: 16px;
|
|
background-color: var(--%NS%mat-list-list-item-container-color, transparent);
|
|
border-radius: var(--%NS%mat-list-list-item-container-shape, var(--%NS%mat-sys-corner-none));
|
|
}
|
|
.mdc-list-item.mdc-list-item--selected {
|
|
background-color: var(--%NS%mat-list-list-item-selected-container-color);
|
|
}
|
|
.mdc-list-item:focus {
|
|
outline: 0;
|
|
}
|
|
.mdc-list-item.mdc-list-item--disabled {
|
|
cursor: auto;
|
|
}
|
|
.mdc-list-item.mdc-list-item--with-one-line {
|
|
height: var(--%NS%mat-list-list-item-one-line-container-height, 48px);
|
|
}
|
|
.mdc-list-item.mdc-list-item--with-one-line .mdc-list-item__start {
|
|
align-self: center;
|
|
margin-top: 0;
|
|
}
|
|
.mdc-list-item.mdc-list-item--with-one-line .mdc-list-item__end {
|
|
align-self: center;
|
|
margin-top: 0;
|
|
}
|
|
.mdc-list-item.mdc-list-item--with-two-lines {
|
|
height: var(--%NS%mat-list-list-item-two-line-container-height, 64px);
|
|
}
|
|
.mdc-list-item.mdc-list-item--with-two-lines .mdc-list-item__start {
|
|
align-self: flex-start;
|
|
margin-top: 16px;
|
|
}
|
|
.mdc-list-item.mdc-list-item--with-two-lines .mdc-list-item__end {
|
|
align-self: center;
|
|
margin-top: 0;
|
|
}
|
|
.mdc-list-item.mdc-list-item--with-three-lines {
|
|
height: var(--%NS%mat-list-list-item-three-line-container-height, 88px);
|
|
}
|
|
.mdc-list-item.mdc-list-item--with-three-lines .mdc-list-item__start {
|
|
align-self: flex-start;
|
|
margin-top: 16px;
|
|
}
|
|
.mdc-list-item.mdc-list-item--with-three-lines .mdc-list-item__end {
|
|
align-self: flex-start;
|
|
margin-top: 16px;
|
|
}
|
|
.mdc-list-item.mdc-list-item--%NS%selected::before, .mdc-list-item.mdc-list-item--%NS%selected:focus::before, .mdc-list-item:not(.mdc-list-item--selected):focus::before {
|
|
position: absolute;
|
|
box-sizing: border-box;
|
|
width: 100%;
|
|
height: 100%;
|
|
top: 0;
|
|
left: 0;
|
|
content: "";
|
|
pointer-events: none;
|
|
}
|
|
|
|
a.mdc-list-item {
|
|
color: inherit;
|
|
text-decoration: none;
|
|
}
|
|
|
|
.mdc-list-item__start {
|
|
fill: currentColor;
|
|
flex-shrink: 0;
|
|
pointer-events: none;
|
|
}
|
|
.mdc-list-item--with-leading-icon .mdc-list-item__start {
|
|
color: var(--%NS%mat-list-list-item-leading-icon-color, var(--%NS%mat-sys-on-surface-variant));
|
|
width: var(--%NS%mat-list-list-item-leading-icon-size, 24px);
|
|
height: var(--%NS%mat-list-list-item-leading-icon-size, 24px);
|
|
margin-left: 16px;
|
|
margin-right: 32px;
|
|
}
|
|
[dir=rtl] .mdc-list-item--with-leading-icon .mdc-list-item__start {
|
|
margin-left: 32px;
|
|
margin-right: 16px;
|
|
}
|
|
.mdc-list-item--%NS%with-leading-icon:hover .mdc-list-item__start {
|
|
color: var(--%NS%mat-list-list-item-hover-leading-icon-color);
|
|
}
|
|
.mdc-list-item--with-leading-avatar .mdc-list-item__start {
|
|
width: var(--%NS%mat-list-list-item-leading-avatar-size, 40px);
|
|
height: var(--%NS%mat-list-list-item-leading-avatar-size, 40px);
|
|
margin-left: 16px;
|
|
margin-right: 16px;
|
|
border-radius: 50%;
|
|
}
|
|
.mdc-list-item--with-leading-avatar .mdc-list-item__start, [dir=rtl] .mdc-list-item--with-leading-avatar .mdc-list-item__start {
|
|
margin-left: 16px;
|
|
margin-right: 16px;
|
|
border-radius: 50%;
|
|
}
|
|
|
|
.mdc-list-item__end {
|
|
flex-shrink: 0;
|
|
pointer-events: none;
|
|
}
|
|
.mdc-list-item--with-trailing-meta .mdc-list-item__end {
|
|
font-family: var(--%NS%mat-list-list-item-trailing-supporting-text-font, var(--%NS%mat-sys-label-small-font));
|
|
line-height: var(--%NS%mat-list-list-item-trailing-supporting-text-line-height, var(--%NS%mat-sys-label-small-line-height));
|
|
font-size: var(--%NS%mat-list-list-item-trailing-supporting-text-size, var(--%NS%mat-sys-label-small-size));
|
|
font-weight: var(--%NS%mat-list-list-item-trailing-supporting-text-weight, var(--%NS%mat-sys-label-small-weight));
|
|
letter-spacing: var(--%NS%mat-list-list-item-trailing-supporting-text-tracking, var(--%NS%mat-sys-label-small-tracking));
|
|
}
|
|
.mdc-list-item--with-trailing-icon .mdc-list-item__end {
|
|
color: var(--%NS%mat-list-list-item-trailing-icon-color, var(--%NS%mat-sys-on-surface-variant));
|
|
width: var(--%NS%mat-list-list-item-trailing-icon-size, 24px);
|
|
height: var(--%NS%mat-list-list-item-trailing-icon-size, 24px);
|
|
}
|
|
.mdc-list-item--%NS%with-trailing-icon:hover .mdc-list-item__end {
|
|
color: var(--%NS%mat-list-list-item-hover-trailing-icon-color);
|
|
}
|
|
.mdc-list-item.mdc-list-item--with-trailing-meta .mdc-list-item__end {
|
|
color: var(--%NS%mat-list-list-item-trailing-supporting-text-color, var(--%NS%mat-sys-on-surface-variant));
|
|
}
|
|
.mdc-list-item--selected.mdc-list-item--with-trailing-icon .mdc-list-item__end {
|
|
color: var(--%NS%mat-list-list-item-selected-trailing-icon-color, var(--%NS%mat-sys-primary));
|
|
}
|
|
|
|
.mdc-list-item__content {
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
align-self: center;
|
|
flex: 1;
|
|
pointer-events: none;
|
|
}
|
|
.mdc-list-item--with-two-lines .mdc-list-item__content, .mdc-list-item--with-three-lines .mdc-list-item__content {
|
|
align-self: stretch;
|
|
}
|
|
|
|
.mdc-list-item__primary-text {
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
color: var(--%NS%mat-list-list-item-label-text-color, var(--%NS%mat-sys-on-surface));
|
|
font-family: var(--%NS%mat-list-list-item-label-text-font, var(--%NS%mat-sys-body-large-font));
|
|
line-height: var(--%NS%mat-list-list-item-label-text-line-height, var(--%NS%mat-sys-body-large-line-height));
|
|
font-size: var(--%NS%mat-list-list-item-label-text-size, var(--%NS%mat-sys-body-large-size));
|
|
font-weight: var(--%NS%mat-list-list-item-label-text-weight, var(--%NS%mat-sys-body-large-weight));
|
|
letter-spacing: var(--%NS%mat-list-list-item-label-text-tracking, var(--%NS%mat-sys-body-large-tracking));
|
|
}
|
|
.mdc-list-item:hover .mdc-list-item__primary-text {
|
|
color: var(--%NS%mat-list-list-item-hover-label-text-color, var(--%NS%mat-sys-on-surface));
|
|
}
|
|
.mdc-list-item:focus .mdc-list-item__primary-text {
|
|
color: var(--%NS%mat-list-list-item-focus-label-text-color, var(--%NS%mat-sys-on-surface));
|
|
}
|
|
.mdc-list-item--with-two-lines .mdc-list-item__primary-text, .mdc-list-item--with-three-lines .mdc-list-item__primary-text {
|
|
display: block;
|
|
margin-top: 0;
|
|
line-height: normal;
|
|
margin-bottom: -20px;
|
|
}
|
|
.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before, .mdc-list-item--with-three-lines .mdc-list-item__primary-text::before {
|
|
display: inline-block;
|
|
width: 0;
|
|
height: 28px;
|
|
content: "";
|
|
vertical-align: 0;
|
|
}
|
|
.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after, .mdc-list-item--with-three-lines .mdc-list-item__primary-text::after {
|
|
display: inline-block;
|
|
width: 0;
|
|
height: 20px;
|
|
content: "";
|
|
vertical-align: -20px;
|
|
}
|
|
|
|
.mdc-list-item__secondary-text {
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
display: block;
|
|
margin-top: 0;
|
|
color: var(--%NS%mat-list-list-item-supporting-text-color, var(--%NS%mat-sys-on-surface-variant));
|
|
font-family: var(--%NS%mat-list-list-item-supporting-text-font, var(--%NS%mat-sys-body-medium-font));
|
|
line-height: var(--%NS%mat-list-list-item-supporting-text-line-height, var(--%NS%mat-sys-body-medium-line-height));
|
|
font-size: var(--%NS%mat-list-list-item-supporting-text-size, var(--%NS%mat-sys-body-medium-size));
|
|
font-weight: var(--%NS%mat-list-list-item-supporting-text-weight, var(--%NS%mat-sys-body-medium-weight));
|
|
letter-spacing: var(--%NS%mat-list-list-item-supporting-text-tracking, var(--%NS%mat-sys-body-medium-tracking));
|
|
}
|
|
.mdc-list-item__secondary-text::before {
|
|
display: inline-block;
|
|
width: 0;
|
|
height: 20px;
|
|
content: "";
|
|
vertical-align: 0;
|
|
}
|
|
.mdc-list-item--with-three-lines .mdc-list-item__secondary-text {
|
|
white-space: normal;
|
|
line-height: 20px;
|
|
}
|
|
.mdc-list-item--with-overline .mdc-list-item__secondary-text {
|
|
white-space: nowrap;
|
|
line-height: auto;
|
|
}
|
|
|
|
.mdc-list-item--with-leading-radio.mdc-list-item,
|
|
.mdc-list-item--with-leading-checkbox.mdc-list-item,
|
|
.mdc-list-item--with-leading-icon.mdc-list-item,
|
|
.mdc-list-item--with-leading-avatar.mdc-list-item {
|
|
padding-left: 0;
|
|
padding-right: 16px;
|
|
}
|
|
[dir=rtl] .mdc-list-item--with-leading-radio.mdc-list-item,
|
|
[dir=rtl] .mdc-list-item--with-leading-checkbox.mdc-list-item,
|
|
[dir=rtl] .mdc-list-item--with-leading-icon.mdc-list-item,
|
|
[dir=rtl] .mdc-list-item--with-leading-avatar.mdc-list-item {
|
|
padding-left: 16px;
|
|
padding-right: 0;
|
|
}
|
|
.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines .mdc-list-item__primary-text,
|
|
.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines .mdc-list-item__primary-text,
|
|
.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines .mdc-list-item__primary-text,
|
|
.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines .mdc-list-item__primary-text {
|
|
display: block;
|
|
margin-top: 0;
|
|
line-height: normal;
|
|
margin-bottom: -20px;
|
|
}
|
|
.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before,
|
|
.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before,
|
|
.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before,
|
|
.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before {
|
|
display: inline-block;
|
|
width: 0;
|
|
height: 32px;
|
|
content: "";
|
|
vertical-align: 0;
|
|
}
|
|
.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after,
|
|
.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after,
|
|
.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after,
|
|
.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after {
|
|
display: inline-block;
|
|
width: 0;
|
|
height: 20px;
|
|
content: "";
|
|
vertical-align: -20px;
|
|
}
|
|
.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end,
|
|
.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end,
|
|
.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end,
|
|
.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end {
|
|
display: block;
|
|
margin-top: 0;
|
|
line-height: normal;
|
|
}
|
|
.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end::before,
|
|
.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end::before,
|
|
.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end::before,
|
|
.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end::before {
|
|
display: inline-block;
|
|
width: 0;
|
|
height: 32px;
|
|
content: "";
|
|
vertical-align: 0;
|
|
}
|
|
|
|
.mdc-list-item--with-trailing-icon.mdc-list-item, [dir=rtl] .mdc-list-item--with-trailing-icon.mdc-list-item {
|
|
padding-left: 0;
|
|
padding-right: 0;
|
|
}
|
|
.mdc-list-item--with-trailing-icon .mdc-list-item__end {
|
|
margin-left: 16px;
|
|
margin-right: 16px;
|
|
}
|
|
|
|
.mdc-list-item--with-trailing-meta.mdc-list-item {
|
|
padding-left: 16px;
|
|
padding-right: 0;
|
|
}
|
|
[dir=rtl] .mdc-list-item--with-trailing-meta.mdc-list-item {
|
|
padding-left: 0;
|
|
padding-right: 16px;
|
|
}
|
|
.mdc-list-item--with-trailing-meta .mdc-list-item__end {
|
|
-webkit-user-select: none;
|
|
user-select: none;
|
|
margin-left: 28px;
|
|
margin-right: 16px;
|
|
}
|
|
[dir=rtl] .mdc-list-item--with-trailing-meta .mdc-list-item__end {
|
|
margin-left: 16px;
|
|
margin-right: 28px;
|
|
}
|
|
.mdc-list-item--with-trailing-meta.mdc-list-item--with-three-lines .mdc-list-item__end, .mdc-list-item--with-trailing-meta.mdc-list-item--with-two-lines .mdc-list-item__end {
|
|
display: block;
|
|
line-height: normal;
|
|
align-self: flex-start;
|
|
margin-top: 0;
|
|
}
|
|
.mdc-list-item--with-trailing-meta.mdc-list-item--with-three-lines .mdc-list-item__end::before, .mdc-list-item--with-trailing-meta.mdc-list-item--with-two-lines .mdc-list-item__end::before {
|
|
display: inline-block;
|
|
width: 0;
|
|
height: 28px;
|
|
content: "";
|
|
vertical-align: 0;
|
|
}
|
|
|
|
.mdc-list-item--with-leading-radio .mdc-list-item__start,
|
|
.mdc-list-item--with-leading-checkbox .mdc-list-item__start {
|
|
margin-left: 8px;
|
|
margin-right: 24px;
|
|
}
|
|
[dir=rtl] .mdc-list-item--with-leading-radio .mdc-list-item__start,
|
|
[dir=rtl] .mdc-list-item--with-leading-checkbox .mdc-list-item__start {
|
|
margin-left: 24px;
|
|
margin-right: 8px;
|
|
}
|
|
.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines .mdc-list-item__start,
|
|
.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines .mdc-list-item__start {
|
|
align-self: flex-start;
|
|
margin-top: 8px;
|
|
}
|
|
|
|
.mdc-list-item--with-trailing-radio.mdc-list-item,
|
|
.mdc-list-item--with-trailing-checkbox.mdc-list-item {
|
|
padding-left: 16px;
|
|
padding-right: 0;
|
|
}
|
|
[dir=rtl] .mdc-list-item--with-trailing-radio.mdc-list-item,
|
|
[dir=rtl] .mdc-list-item--with-trailing-checkbox.mdc-list-item {
|
|
padding-left: 0;
|
|
padding-right: 16px;
|
|
}
|
|
.mdc-list-item--with-trailing-radio.mdc-list-item--with-leading-icon, .mdc-list-item--with-trailing-radio.mdc-list-item--with-leading-avatar,
|
|
.mdc-list-item--with-trailing-checkbox.mdc-list-item--with-leading-icon,
|
|
.mdc-list-item--with-trailing-checkbox.mdc-list-item--with-leading-avatar {
|
|
padding-left: 0;
|
|
}
|
|
[dir=rtl] .mdc-list-item--with-trailing-radio.mdc-list-item--with-leading-icon, [dir=rtl] .mdc-list-item--with-trailing-radio.mdc-list-item--with-leading-avatar,
|
|
[dir=rtl] .mdc-list-item--with-trailing-checkbox.mdc-list-item--with-leading-icon,
|
|
[dir=rtl] .mdc-list-item--with-trailing-checkbox.mdc-list-item--with-leading-avatar {
|
|
padding-right: 0;
|
|
}
|
|
.mdc-list-item--with-trailing-radio .mdc-list-item__end,
|
|
.mdc-list-item--with-trailing-checkbox .mdc-list-item__end {
|
|
margin-left: 24px;
|
|
margin-right: 8px;
|
|
}
|
|
[dir=rtl] .mdc-list-item--with-trailing-radio .mdc-list-item__end,
|
|
[dir=rtl] .mdc-list-item--with-trailing-checkbox .mdc-list-item__end {
|
|
margin-left: 8px;
|
|
margin-right: 24px;
|
|
}
|
|
.mdc-list-item--with-trailing-radio.mdc-list-item--with-three-lines .mdc-list-item__end,
|
|
.mdc-list-item--with-trailing-checkbox.mdc-list-item--with-three-lines .mdc-list-item__end {
|
|
align-self: flex-start;
|
|
margin-top: 8px;
|
|
}
|
|
|
|
.mdc-list-group__subheader {
|
|
margin: 0.75rem 16px;
|
|
}
|
|
|
|
.mdc-list-item--disabled .mdc-list-item__start,
|
|
.mdc-list-item--disabled .mdc-list-item__content,
|
|
.mdc-list-item--disabled .mdc-list-item__end {
|
|
opacity: 1;
|
|
}
|
|
.mdc-list-item--disabled .mdc-list-item__primary-text,
|
|
.mdc-list-item--disabled .mdc-list-item__secondary-text {
|
|
opacity: var(--%NS%mat-list-list-item-disabled-label-text-opacity, 0.3);
|
|
}
|
|
.mdc-list-item--disabled.mdc-list-item--with-leading-icon .mdc-list-item__start {
|
|
color: var(--%NS%mat-list-list-item-disabled-leading-icon-color, var(--%NS%mat-sys-on-surface));
|
|
opacity: var(--%NS%mat-list-list-item-disabled-leading-icon-opacity, 0.38);
|
|
}
|
|
.mdc-list-item--disabled.mdc-list-item--with-trailing-icon .mdc-list-item__end {
|
|
color: var(--%NS%mat-list-list-item-disabled-trailing-icon-color, var(--%NS%mat-sys-on-surface));
|
|
opacity: var(--%NS%mat-list-list-item-disabled-trailing-icon-opacity, 0.38);
|
|
}
|
|
|
|
.mat-mdc-list-item.mat-mdc-list-item-both-leading-and-trailing, [dir=rtl] .mat-mdc-list-item.mat-mdc-list-item-both-leading-and-trailing {
|
|
padding-left: 0;
|
|
padding-right: 0;
|
|
}
|
|
|
|
.mdc-list-item.mdc-list-item--disabled .mdc-list-item__primary-text {
|
|
color: var(--%NS%mat-list-list-item-disabled-label-text-color, var(--%NS%mat-sys-on-surface));
|
|
}
|
|
|
|
.mdc-list-item:hover::before {
|
|
background-color: var(--%NS%mat-list-list-item-hover-state-layer-color, var(--%NS%mat-sys-on-surface));
|
|
opacity: var(--%NS%mat-list-list-item-hover-state-layer-opacity, var(--%NS%mat-sys-hover-state-layer-opacity));
|
|
}
|
|
|
|
.mdc-list-item.mdc-list-item--%NS%disabled::before {
|
|
background-color: var(--%NS%mat-list-list-item-disabled-state-layer-color, var(--%NS%mat-sys-on-surface));
|
|
opacity: var(--%NS%mat-list-list-item-disabled-state-layer-opacity, var(--%NS%mat-sys-focus-state-layer-opacity));
|
|
}
|
|
|
|
.mdc-list-item:focus::before {
|
|
background-color: var(--%NS%mat-list-list-item-focus-state-layer-color, var(--%NS%mat-sys-on-surface));
|
|
opacity: var(--%NS%mat-list-list-item-focus-state-layer-opacity, var(--%NS%mat-sys-focus-state-layer-opacity));
|
|
}
|
|
|
|
.mdc-list-item--disabled .mdc-radio,
|
|
.mdc-list-item--disabled .mdc-checkbox {
|
|
opacity: var(--%NS%mat-list-list-item-disabled-label-text-opacity, 0.3);
|
|
}
|
|
|
|
.mdc-list-item--with-leading-avatar .mat-mdc-list-item-avatar {
|
|
border-radius: var(--%NS%mat-list-list-item-leading-avatar-shape, var(--%NS%mat-sys-corner-full));
|
|
background-color: var(--%NS%mat-list-list-item-leading-avatar-color, var(--%NS%mat-sys-primary-container));
|
|
}
|
|
|
|
.mat-mdc-list-item-icon {
|
|
font-size: var(--%NS%mat-list-list-item-leading-icon-size, 24px);
|
|
}
|
|
|
|
@media (forced-colors: active) {
|
|
a.mdc-list-item--%NS%activated::after {
|
|
content: "";
|
|
position: absolute;
|
|
top: 50%;
|
|
right: 16px;
|
|
transform: translateY(-50%);
|
|
width: 10px;
|
|
height: 0;
|
|
border-bottom: solid 10px;
|
|
border-radius: 10px;
|
|
}
|
|
a.mdc-list-item--activated [dir=rtl]::after {
|
|
right: auto;
|
|
left: 16px;
|
|
}
|
|
}
|
|
|
|
.mat-mdc-list-base {
|
|
display: block;
|
|
}
|
|
.mat-mdc-list-base .mdc-list-item__start,
|
|
.mat-mdc-list-base .mdc-list-item__end,
|
|
.mat-mdc-list-base .mdc-list-item__content {
|
|
pointer-events: auto;
|
|
}
|
|
|
|
.mat-mdc-list-item,
|
|
.mat-mdc-list-option {
|
|
width: 100%;
|
|
box-sizing: border-box;
|
|
-webkit-tap-highlight-color: transparent;
|
|
}
|
|
.mat-mdc-list-item:not(.mat-mdc-list-item-interactive),
|
|
.mat-mdc-list-option:not(.mat-mdc-list-item-interactive) {
|
|
cursor: default;
|
|
}
|
|
.mat-mdc-list-item .mat-divider-inset,
|
|
.mat-mdc-list-option .mat-divider-inset {
|
|
position: absolute;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
}
|
|
.mat-mdc-list-item .mat-mdc-list-item-avatar ~ .mat-divider-inset,
|
|
.mat-mdc-list-option .mat-mdc-list-item-avatar ~ .mat-divider-inset {
|
|
margin-left: 72px;
|
|
}
|
|
[dir=rtl] .mat-mdc-list-item .mat-mdc-list-item-avatar ~ .mat-divider-inset,
|
|
[dir=rtl] .mat-mdc-list-option .mat-mdc-list-item-avatar ~ .mat-divider-inset {
|
|
margin-right: 72px;
|
|
}
|
|
|
|
.mat-mdc-list-item-interactive::before {
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
position: absolute;
|
|
content: "";
|
|
opacity: 0;
|
|
pointer-events: none;
|
|
border-radius: inherit;
|
|
}
|
|
|
|
.mat-mdc-list-item > .mat-focus-indicator {
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
position: absolute;
|
|
pointer-events: none;
|
|
}
|
|
.mat-mdc-list-item:focus-visible > .mat-focus-indicator::before {
|
|
content: "";
|
|
}
|
|
|
|
.mat-mdc-list-item.mdc-list-item--with-three-lines .mat-mdc-list-item-line.mdc-list-item__secondary-text {
|
|
white-space: nowrap;
|
|
line-height: normal;
|
|
}
|
|
.mat-mdc-list-item.mdc-list-item--with-three-lines .mat-mdc-list-item-unscoped-content.mdc-list-item__secondary-text {
|
|
display: -webkit-box;
|
|
-webkit-box-orient: vertical;
|
|
-webkit-line-clamp: 2;
|
|
}
|
|
|
|
mat-action-list button {
|
|
background: none;
|
|
color: inherit;
|
|
border: none;
|
|
font: inherit;
|
|
outline: inherit;
|
|
-webkit-tap-highlight-color: transparent;
|
|
text-align: start;
|
|
}
|
|
mat-action-list button::-moz-focus-inner {
|
|
border: 0;
|
|
}
|
|
|
|
.mdc-list-item--with-leading-icon .mdc-list-item__start {
|
|
margin-inline-start: var(--%NS%mat-list-list-item-leading-icon-start-space, 16px);
|
|
margin-inline-end: var(--%NS%mat-list-list-item-leading-icon-end-space, 16px);
|
|
}
|
|
|
|
.mat-mdc-nav-list .mat-mdc-list-item {
|
|
border-radius: var(--%NS%mat-list-active-indicator-shape, var(--%NS%mat-sys-corner-full));
|
|
--%NS%mat-focus-indicator-border-radius: var(--%NS%mat-list-active-indicator-shape, var(--%NS%mat-sys-corner-full));
|
|
}
|
|
.mat-mdc-nav-list .mat-mdc-list-item.mdc-list-item--activated {
|
|
background-color: var(--%NS%mat-list-active-indicator-color, var(--%NS%mat-sys-secondary-container));
|
|
}
|
|
`],encapsulation:2})})()}return n})();var jp=(()=>{class n extends ty{_lines;_titles;_meta;_unscopedContent;_itemText;get activated(){return this._activated}set activated(t){this._activated=_e(t)}_activated=!1;_getAriaCurrent(){return this._hostElement.nodeName==="A"&&this._activated?"page":null}_hasBothLeadingAndTrailing(){return this._meta.length!==0&&(this._avatars.length!==0||this._icons.length!==0)}static \u0275fac=(()=>{let t;return function(a){return(t||(t=Rt(n)))(a||n)}})();static \u0275cmp=(function(){let t=["unscopedContent"],e=["text"],a=[[["","matListItemAvatar",""],["","matListItemIcon",""]],[["","matListItemTitle",""]],[["","matListItemLine",""]],"*",[["","matListItemMeta",""]],[["mat-divider"]]];return S({type:n,selectors:[["mat-list-item"],["a","mat-list-item",""],["button","mat-list-item",""]],contentQueries:function(s,l,d){if(s&1&&ne(d,dd,5)(d,cd,5)(d,Z_,5),s&2){let m;P(m=L())&&(l._lines=m),P(m=L())&&(l._titles=m),P(m=L())&&(l._meta=m)}},viewQuery:function(s,l){if(s&1&&Kt(t,5)(e,5),s&2){let d;P(d=L())&&(l._unscopedContent=d.first),P(d=L())&&(l._itemText=d.first)}},hostAttrs:[1,"mat-mdc-list-item","mdc-list-item"],hostVars:13,hostBindings:function(s,l){s&2&&(H("aria-current",l._getAriaCurrent()),z("mdc-list-item--activated",l.activated)("mdc-list-item--with-leading-avatar",l._avatars.length!==0)("mdc-list-item--with-leading-icon",l._icons.length!==0)("mdc-list-item--with-trailing-meta",l._meta.length!==0)("mat-mdc-list-item-both-leading-and-trailing",l._hasBothLeadingAndTrailing())("_mat-animation-noopable",l._noopAnimations))},inputs:{activated:"activated"},exportAs:["matListItem"],features:[ot],ngContentSelectors:["[matListItemAvatar],[matListItemIcon]","[matListItemTitle]","[matListItemLine]","*","[matListItemMeta]","mat-divider"],decls:10,vars:0,consts:[["unscopedContent",""],[1,"mdc-list-item__content"],[1,"mat-mdc-list-item-unscoped-content",3,"cdkObserveContent"],[1,"mat-focus-indicator"]],template:function(s,l){s&1&&(_t(a),V(0),h(1,"span",1),V(2,1),V(3,2),h(4,"span",2,0),B("cdkObserveContent",function(){return l._updateItemLines(!0)}),V(6,3),u()(),V(7,4),V(8,5),dt(9,"div",3))},dependencies:[sh],encapsulation:2})})()}return n})();var Up=(()=>{class n{static \u0275fac=function(e){return new(e||n)};static \u0275mod=Y({type:n});static \u0275inj=q({imports:[es,vs,Bp,Xt,Pp]})}return n})();function Hp(n){return Error(`Unable to find icon with the name "${n}"`)}function ny(){return Error("Could not find HttpClient for use with Angular Material icons. Please add provideHttpClient() to your providers.")}function $p(n){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${n}".`)}function Gp(n){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${n}".`)}var En=class{url;svgText;options;svgElement=null;constructor(i,t,e){this.url=i,this.svgText=t,this.options=e}},qp=(()=>{class n{_httpClient;_sanitizer;_errorHandler;_document;_svgIconConfigs=new Map;_iconSetConfigs=new Map;_cachedIconsByUrl=new Map;_inProgressUrlFetches=new Map;_fontCssClassesByAlias=new Map;_resolvers=[];_defaultFontSetClass;constructor(t,e,a,r){this._httpClient=t,this._sanitizer=e,this._errorHandler=r,this._document=a}addSvgIcon(t,e,a){return this.addSvgIconInNamespace("",t,e,a)}addSvgIconLiteral(t,e,a){return this.addSvgIconLiteralInNamespace("",t,e,a)}addSvgIconInNamespace(t,e,a,r){return this._addSvgIconConfig(t,e,new En(a,null,r))}addSvgIconResolver(t){return this._resolvers.push(t),this}addSvgIconLiteralInNamespace(t,e,a,r){let o=this._sanitizer.sanitize(he.HTML,a);if(!o)throw Gp(a);let s=mi(o);return this._addSvgIconConfig(t,e,new En("",s,r))}addSvgIconSet(t,e){return this.addSvgIconSetInNamespace("",t,e)}addSvgIconSetLiteral(t,e){return this.addSvgIconSetLiteralInNamespace("",t,e)}addSvgIconSetInNamespace(t,e,a){return this._addSvgIconSetConfig(t,new En(e,null,a))}addSvgIconSetLiteralInNamespace(t,e,a){let r=this._sanitizer.sanitize(he.HTML,e);if(!r)throw Gp(e);let o=mi(r);return this._addSvgIconSetConfig(t,new En("",o,a))}registerFontClassAlias(t,e=t){return this._fontCssClassesByAlias.set(t,e),this}classNameForFontAlias(t){return this._fontCssClassesByAlias.get(t)||t}setDefaultFontSetClass(...t){return this._defaultFontSetClass=t,this}getDefaultFontSetClass(){return this._defaultFontSetClass??=ay(this._document),this._defaultFontSetClass}getSvgIconFromUrl(t){let e=this._sanitizer.sanitize(he.RESOURCE_URL,t);if(!e)throw $p(t);let a=this._cachedIconsByUrl.get(e);return a?A($s(a)):this._loadSvgIconFromConfig(new En(t,null)).pipe(Wt(r=>this._cachedIconsByUrl.set(e,r)),st(r=>$s(r)))}getNamedSvgIcon(t,e=""){let a=Wp(e,t),r=this._svgIconConfigs.get(a);if(r)return this._getSvgFromConfig(r);if(r=this._getIconConfigFromResolvers(e,t),r)return this._svgIconConfigs.set(a,r),this._getSvgFromConfig(r);let o=this._iconSetConfigs.get(e);return o?this._getSvgFromIconSetConfigs(t,o):Vr(Hp(a))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(t){return t.svgText?A($s(this._svgElementFromConfig(t))):this._loadSvgIconFromConfig(t).pipe(st(e=>$s(e)))}_getSvgFromIconSetConfigs(t,e){let a=this._extractIconWithNameFromAnySet(t,e);if(a)return A(a);let r=e.filter(o=>!o.svgText).map(o=>this._loadSvgIconSetFromConfig(o).pipe(Ni(s=>{let d=`Loading icon set URL: ${this._sanitizer.sanitize(he.RESOURCE_URL,o.url)} failed: ${s.message}`;return this._errorHandler.handleError(new Error(d)),A(null)})));return Ur(r).pipe(st(()=>{let o=this._extractIconWithNameFromAnySet(t,e);if(!o)throw Hp(t);return o}))}_extractIconWithNameFromAnySet(t,e){for(let a=e.length-1;a>=0;a--){let r=e[a];if(r.svgText&&r.svgText.toString().indexOf(t)>-1){let o=this._svgElementFromConfig(r),s=this._extractSvgIconFromSet(o,t,r.options);if(s)return s}}return null}_loadSvgIconFromConfig(t){return this._fetchIcon(t).pipe(Wt(e=>t.svgText=e),st(()=>this._svgElementFromConfig(t)))}_loadSvgIconSetFromConfig(t){return t.svgText?A(null):this._fetchIcon(t).pipe(Wt(e=>t.svgText=e))}_extractSvgIconFromSet(t,e,a){let r=t.querySelector(`[id="${e}"]`);if(!r)return null;let o=r.cloneNode(!0);if(o.removeAttribute("id"),o.nodeName.toLowerCase()==="svg")return this._setSvgAttributes(o,a);if(o.nodeName.toLowerCase()==="symbol")return this._setSvgAttributes(this._toSvgElement(o),a);let s=this._svgElementFromString(mi("<svg></svg>"));return s.appendChild(o),this._setSvgAttributes(s,a)}_svgElementFromString(t){let e=this._document.createElement("DIV");e.innerHTML=t;let a=e.querySelector("svg");if(!a)throw Error("<svg> tag not found");return a}_toSvgElement(t){let e=this._svgElementFromString(mi("<svg></svg>")),a=t.attributes;for(let r=0;r<a.length;r++){let{name:o,value:s}=a[r],l=o.toLowerCase();l!=="id"&&!l.startsWith("on")&&e.setAttribute(o,s)}for(let r=0;r<t.childNodes.length;r++)t.childNodes[r].nodeType===this._document.ELEMENT_NODE&&e.appendChild(t.childNodes[r].cloneNode(!0));return e}_setSvgAttributes(t,e){return t.setAttribute("fit",""),t.setAttribute("height","100%"),t.setAttribute("width","100%"),t.setAttribute("preserveAspectRatio","xMidYMid meet"),t.setAttribute("focusable","false"),e&&e.viewBox&&t.setAttribute("viewBox",e.viewBox),t}_fetchIcon(t){let{url:e,options:a}=t,r=a?.withCredentials??!1;if(!this._httpClient)throw ny();if(e==null)throw Error(`Cannot fetch icon from URL "${e}".`);let o=this._sanitizer.sanitize(he.RESOURCE_URL,e);if(!o)throw $p(e);let s=this._inProgressUrlFetches.get(o);if(s)return s;let l=this._httpClient.get(o,{responseType:"text",withCredentials:r}).pipe(st(d=>mi(d)),Ai(()=>this._inProgressUrlFetches.delete(o)),Td());return this._inProgressUrlFetches.set(o,l),l}_addSvgIconConfig(t,e,a){return this._svgIconConfigs.set(Wp(t,e),a),this}_addSvgIconSetConfig(t,e){let a=this._iconSetConfigs.get(t);return a?a.push(e):this._iconSetConfigs.set(t,[e]),this}_svgElementFromConfig(t){if(!t.svgElement){let e=this._svgElementFromString(t.svgText);this._setSvgAttributes(e,t.options),t.svgElement=e}return t.svgElement}_getIconConfigFromResolvers(t,e){for(let a=0;a<this._resolvers.length;a++){let r=this._resolvers[a](e,t);if(r)return iy(r)?new En(r.url,null,r.options):new En(r,null)}}static \u0275fac=function(e){return new(e||n)(T(Le,8),T(Ga),T(F,8),T(Jn))};static \u0275prov=$({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();function $s(n){return n.cloneNode(!0)}function Wp(n,i){return n+":"+i}function iy(n){return!!(n.url&&n.options)}function ay(n){let i=null,t=!1;return n.fonts&&typeof n.fonts.forEach=="function"&&n.fonts.forEach(e=>{let a=e.family.replace(/['"]/g,"").trim().toLowerCase();(a==="material icons"||a.startsWith("material icons "))&&(t=!0),a.startsWith("material symbols rounded")?i="rounded":a.startsWith("material symbols sharp")?i="sharp":a.startsWith("material symbols")&&(i="outlined")}),[i&&!t?`material-symbols-${i}`:"material-icons","mat-ligature-font"]}var ry=new v("MAT_ICON_DEFAULT_OPTIONS"),oy=new v("mat-icon-location",{providedIn:"root",factory:()=>{let n=c(F),i=n?n.location:null;return{getPathname:()=>i?i.pathname+i.search:""}}}),Kp=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],sy=Kp.map(n=>`[${n}]`).join(", "),ly=/^url\(['"]?#(.*?)['"]?\)$/,Ce=(()=>{class n{_elementRef=c(R);_iconRegistry=c(qp);_location=c(oy);_errorHandler=c(Jn);_defaultColor;get color(){return this._color||this._defaultColor}set color(t){this._color=t}_color;inline=!1;get svgIcon(){return this._svgIcon}set svgIcon(t){t!==this._svgIcon&&(t?this._updateSvgIcon(t):this._svgIcon&&this._clearSvgElement(),this._svgIcon=t)}_svgIcon;get fontSet(){return this._fontSet}set fontSet(t){let e=this._cleanupFontValue(t);e!==this._fontSet&&(this._fontSet=e,this._updateFontIconClasses())}_fontSet;get fontIcon(){return this._fontIcon}set fontIcon(t){let e=this._cleanupFontValue(t);e!==this._fontIcon&&(this._fontIcon=e,this._updateFontIconClasses())}_fontIcon;_previousFontSetClass=[];_previousFontIconClass;_svgName=null;_svgNamespace=null;_previousPath;_elementsWithExternalReferences;_currentIconFetch=Et.EMPTY;constructor(){let t=c(new Jr("aria-hidden"),{optional:!0}),e=c(ry,{optional:!0});e&&(e.color&&(this.color=this._defaultColor=e.color),e.fontSet&&(this.fontSet=e.fontSet)),t||this._elementRef.nativeElement.setAttribute("aria-hidden","true")}_splitIconName(t){if(!t)return["",""];let e=t.split(":");switch(e.length){case 1:return["",e[0]];case 2:return e;default:throw Error(`Invalid icon name: "${t}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){let t=this._elementsWithExternalReferences;if(t&&t.size){let e=this._location.getPathname();e!==this._previousPath&&(this._previousPath=e,this._prependPathToReferences(e))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(t){this._clearSvgElement();let e=this._location.getPathname();this._previousPath=e,this._cacheChildrenWithExternalReferences(t),this._prependPathToReferences(e),this._elementRef.nativeElement.appendChild(t)}_clearSvgElement(){let t=this._elementRef.nativeElement,e=t.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();e--;){let a=t.childNodes[e];(a.nodeType!==1||a.nodeName.toLowerCase()==="svg")&&a.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;let t=this._elementRef.nativeElement,e=(this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet).split(/ +/):this._iconRegistry.getDefaultFontSetClass()).filter(a=>a.length>0);this._previousFontSetClass.forEach(a=>t.classList.remove(a)),e.forEach(a=>t.classList.add(a)),this._previousFontSetClass=e,this.fontIcon!==this._previousFontIconClass&&!e.includes("mat-ligature-font")&&(this._previousFontIconClass&&t.classList.remove(this._previousFontIconClass),this.fontIcon&&t.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(t){return typeof t=="string"?t.trim().split(" ")[0]:t}_prependPathToReferences(t){let e=this._elementsWithExternalReferences,a=t.startsWith("//")?`/.${t}`:t;e&&e.forEach((r,o)=>{r.forEach(s=>{o.setAttribute(s.name,`url('${a}#${s.value}')`)})})}_cacheChildrenWithExternalReferences(t){let e=t.querySelectorAll(sy),a=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let r=0;r<e.length;r++)Kp.forEach(o=>{let s=e[r],l=s.getAttribute(o),d=l?l.match(ly):null;if(d){let m=a.get(s);m||(m=[],a.set(s,m)),m.push({name:o,value:d[1]})}})}_updateSvgIcon(t){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),t){let[e,a]=this._splitIconName(t);e&&(this._svgNamespace=e),a&&(this._svgName=a),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(a,e).pipe(Gt(1)).subscribe(r=>this._setSvgElement(r),r=>{let o=`Error retrieving icon ${e}:${a}! ${r.message}`;this._errorHandler.handleError(new Error(o))})}}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=(function(){return S({type:n,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:10,hostBindings:function(a,r){a&2&&(H("data-mat-icon-type",r._usingFontIcon()?"font":"svg")("data-mat-icon-name",r._svgName||r.fontIcon)("data-mat-icon-namespace",r._svgNamespace||r.fontSet)("fontIcon",r._usingFontIcon()?r.fontIcon:null),Fe(r.color?"mat-"+r.color:""),z("mat-icon-inline",r.inline)("mat-icon-no-color",r.color!=="primary"&&r.color!=="accent"&&r.color!=="warn"))},inputs:{color:"color",inline:[2,"inline","inline",j],svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],ngContentSelectors:["*"],decls:1,vars:0,template:function(a,r){a&1&&(_t(),V(0))},styles:[`mat-icon, mat-icon.mat-primary, mat-icon.mat-accent, mat-icon.mat-warn {
|
|
color: var(--%NS%mat-icon-color, inherit);
|
|
}
|
|
|
|
.mat-icon {
|
|
-webkit-user-select: none;
|
|
user-select: none;
|
|
background-repeat: no-repeat;
|
|
display: inline-block;
|
|
fill: currentColor;
|
|
height: 24px;
|
|
width: 24px;
|
|
overflow: hidden;
|
|
}
|
|
.mat-icon.mat-icon-inline {
|
|
font-size: inherit;
|
|
height: inherit;
|
|
line-height: inherit;
|
|
width: inherit;
|
|
}
|
|
.mat-icon.mat-ligature-font[fontIcon]::before {
|
|
content: attr(fontIcon);
|
|
}
|
|
|
|
[dir=rtl] .mat-icon-rtl-mirror {
|
|
transform: scale(-1, 1);
|
|
}
|
|
|
|
.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,
|
|
.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon {
|
|
display: block;
|
|
}
|
|
.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,
|
|
.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon {
|
|
margin: auto;
|
|
}
|
|
`],encapsulation:2})})()}return n})();var cy=n=>["/tutorials",n],dy=(n,i)=>i.id;function my(n,i){n&1&&(h(0,"a",3)(1,"mat-icon"),f(2,"add"),u(),f(3," New tutorial "),u())}function uy(n,i){if(n&1){let t=Nt();h(0,"button",13),B("click",function(){at(t);let a=w();return rt(a.clearSearch())}),h(1,"mat-icon"),f(2,"close"),u()()}}function hy(n,i){if(n&1){let t=Nt();h(0,"button",15),B("click",function(){let a=at(t),r=a.$implicit,o=a.$index,s=w(2);return rt(s.setActiveTutorial(r,o))}),h(1,"mat-icon",16),f(2),u(),h(3,"span",17),f(4),u(),h(5,"span",18),f(6),u()()}if(n&2){let t=i.$implicit,e=i.$index,a=w(2);mt("activated",e===a.currentIndex),p(2),Lt(t.published?"task":"draft"),p(2),Lt(t.title),p(2),Lt(t.published?"Published":"Pending")}}function py(n,i){if(n&1&&(h(0,"mat-action-list"),Tn(1,hy,7,4,"button",14,dy),u()),n&2){let t=w();p(),On(t.tutorials)}}function fy(n,i){if(n&1&&(h(0,"div",10)(1,"mat-icon"),f(2,"menu_book"),u(),h(3,"p"),f(4),u()()),n&2){let t=w();p(4),Lt(t.title?"Nothing found":"No tutorials yet")}}function gy(n,i){if(n&1){let t=Nt();h(0,"mat-card-actions",11)(1,"button",19),B("click",function(){at(t);let a=w();return rt(a.removeAllTutorials())}),h(2,"mat-icon"),f(3,"delete_sweep"),u(),f(4," Remove all "),u()()}}function by(n,i){if(n&1&&(h(0,"mat-card-actions",11)(1,"a",22)(2,"mat-icon"),f(3,"edit"),u(),f(4," Edit "),u()()),n&2){let t=w(2);p(),mt("routerLink",rm(1,cy,t.currentTutorial.id))}}function vy(n,i){if(n&1&&(h(0,"mat-card-header")(1,"mat-card-title"),f(2),u(),h(3,"mat-card-subtitle")(4,"span",20),f(5),u()()(),h(6,"mat-card-content")(7,"p",21),f(8),u()(),C(9,by,5,3,"mat-card-actions",11)),n&2){let t=w();p(2),Lt(t.currentTutorial.title),p(2),z("published",t.currentTutorial.published),p(),It(" ",t.currentTutorial.published?"Published":"Pending"," "),p(3),Lt(t.currentTutorial.description||"No description"),p(),k(t.isLoggedIn?9:-1)}}function _y(n,i){n&1&&(h(0,"div",10)(1,"mat-icon"),f(2,"touch_app"),u(),h(3,"p"),f(4,"Select a tutorial to see the details"),u()())}var Yp=(()=>{class n{tutorialService=c(ma);tokenStorage=c(gn);snackBar=c(ca);tutorials=[];currentTutorial={};currentIndex=-1;title="";isAdmin=!1;isLoggedIn=!1;ngOnInit(){this.isLoggedIn=this.tokenStorage.isLoggedIn(),this.isAdmin=(this.tokenStorage.getUser().roles??[]).includes("ROLE_ADMIN"),this.retrieveTutorials()}setActiveTutorial(t,e){this.currentTutorial=t,this.currentIndex=e}searchTitle(){this.resetSelection(),(this.title?this.tutorialService.findByTitle(this.title):this.tutorialService.getAll()).subscribe({next:e=>this.tutorials=e??[],error:e=>this.showError(e)})}clearSearch(){this.title="",this.searchTitle()}removeAllTutorials(){confirm("Delete all tutorials? This cannot be undone.")&&this.tutorialService.deleteAll().subscribe({next:()=>{this.snackBar.open("All tutorials were deleted","OK",{duration:3e3}),this.retrieveTutorials()},error:t=>this.showError(t)})}retrieveTutorials(){this.resetSelection(),this.tutorialService.getAll().subscribe({next:t=>this.tutorials=t??[],error:t=>this.showError(t)})}resetSelection(){this.currentTutorial={},this.currentIndex=-1}showError(t){this.snackBar.open(da(t),"OK",{duration:5e3})}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=S({type:n,selectors:[["app-tutorials-list"]],standalone:!1,decls:20,vars:6,consts:[[1,"page"],[1,"page-header"],[1,"page-title"],["mat-flat-button","","routerLink","/add"],["appearance","outline","subscriptSizing","dynamic",1,"search"],["matPrefix",""],["matInput","",3,"ngModelChange","keyup.enter","ngModel"],["matIconButton","","matSuffix","","aria-label","Clear search"],[1,"layout"],["appearance","outlined",1,"list-card"],[1,"empty"],["align","end"],["appearance","outlined",1,"details-card"],["matIconButton","","matSuffix","","aria-label","Clear search",3,"click"],["mat-list-item","",3,"activated"],["mat-list-item","",3,"click","activated"],["matListItemIcon",""],["matListItemTitle",""],["matListItemLine",""],["mat-button","",1,"danger",3,"click"],[1,"status"],[1,"description"],["mat-stroked-button","",3,"routerLink"]],template:function(e,a){e&1&&(h(0,"div",0)(1,"div",1)(2,"h1",2),f(3,"Tutorials"),u(),C(4,my,4,0,"a",3),u(),h(5,"mat-form-field",4)(6,"mat-label"),f(7,"Search by title"),u(),h(8,"mat-icon",5),f(9,"search"),u(),h(10,"input",6),Tt(),Ht("ngModelChange",function(o){return Ut(a.title,o)||(a.title=o),o}),B("keyup.enter",function(){return a.searchTitle()}),u(),C(11,uy,3,0,"button",7),u(),h(12,"div",8)(13,"mat-card",9),C(14,py,3,0,"mat-action-list")(15,fy,5,1,"div",10),C(16,gy,5,0,"mat-card-actions",11),u(),h(17,"mat-card",12),C(18,vy,10,6)(19,_y,5,0,"div",10),u()()()),e&2&&(p(4),k(a.isLoggedIn?4:-1),p(6),jt("ngModel",a.title),Ot(),p(),k(a.title?11:-1),p(3),k(a.tutorials.length?14:15),p(2),k(a.isAdmin&&a.tutorials.length?16:-1),p(2),k(a.currentTutorial.id?18:19))},dependencies:[Ve,me,Se,Ne,He,xr,va,ya,_a,Ls,Ps,gp,Yn,Ie,Ge,zs,wa,zp,jp,md,dd,cd,Ce],styles:[".page[_ngcontent-%COMP%]{max-width:960px;margin:0 auto}.page.narrow[_ngcontent-%COMP%]{max-width:560px}.page-header[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:16px}.page-title[_ngcontent-%COMP%]{margin:0;font:var(--%NS%mat-sys-headline-small);color:var(--%NS%mat-sys-on-surface)}a[_ngcontent-%COMP%], a[_ngcontent-%COMP%]:hover{text-decoration:none}.status[_ngcontent-%COMP%]{display:inline-block;padding:2px 10px;border-radius:8px;font:var(--%NS%mat-sys-label-medium);background-color:var(--%NS%mat-sys-surface-container-highest);color:var(--%NS%mat-sys-on-surface-variant)}.status.published[_ngcontent-%COMP%]{background-color:var(--%NS%mat-sys-tertiary-container);color:var(--%NS%mat-sys-on-tertiary-container)}.empty[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;gap:8px;padding:48px 16px;text-align:center;color:var(--%NS%mat-sys-on-surface-variant)}.empty[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{width:48px;height:48px;font-size:48px;opacity:.6}.empty[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0}.danger[_ngcontent-%COMP%]{--%NS%mat-button-text-label-text-color: var(--%NS%mat-sys-error)}.full-width[_ngcontent-%COMP%]{width:100%}.search[_ngcontent-%COMP%]{width:100%;margin-bottom:16px}.layout[_ngcontent-%COMP%]{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px;align-items:start}@media(max-width:768px){.layout[_ngcontent-%COMP%]{grid-template-columns:1fr}}.description[_ngcontent-%COMP%]{white-space:pre-line;color:var(--%NS%mat-sys-on-surface-variant)}"],changeDetection:1})}return n})();function yy(n,i){if(n&1){let t=Nt();h(0,"mat-card",6)(1,"form",7,0),B("ngSubmit",function(){at(t);let a=w();return rt(a.updateTutorial())}),h(3,"mat-card-header")(4,"mat-card-subtitle")(5,"span",8),f(6),u()()(),h(7,"mat-card-content")(8,"mat-form-field",9)(9,"mat-label"),f(10,"Title"),u(),h(11,"input",10),Tt(),Ht("ngModelChange",function(a){at(t);let r=w();return Ut(r.currentTutorial.title,a)||(r.currentTutorial.title=a),rt(a)}),u(),h(12,"mat-error"),f(13,"Title is required"),u()(),h(14,"mat-form-field",9)(15,"mat-label"),f(16,"Description"),u(),h(17,"textarea",11,1),Tt(),Ht("ngModelChange",function(a){at(t);let r=w();return Ut(r.currentTutorial.description,a)||(r.currentTutorial.description=a),rt(a)}),u(),h(19,"mat-hint",12),f(20),u()()(),h(21,"mat-card-actions",13)(22,"button",14),B("click",function(){at(t);let a=w();return rt(a.deleteTutorial())}),h(23,"mat-icon"),f(24,"delete"),u(),f(25," Delete "),u(),dt(26,"span",15),h(27,"button",16),B("click",function(){at(t);let a=w();return rt(a.updatePublished(!a.currentTutorial.published))}),h(28,"mat-icon"),f(29),u(),f(30),u(),h(31,"button",17)(32,"mat-icon"),f(33,"save"),u(),f(34," Save "),u()()()()}if(n&2){let t=yt(2),e=yt(18),a=w();p(5),z("published",a.currentTutorial.published),p(),It(" ",a.currentTutorial.published?"Published":"Pending"," "),p(5),jt("ngModel",a.currentTutorial.title),Ot(),p(6),jt("ngModel",a.currentTutorial.description),Ot(),p(3),It("",e.value.length," / 255"),p(9),Lt(a.currentTutorial.published?"unpublished":"publish"),p(),It(" ",a.currentTutorial.published?"Unpublish":"Publish"," "),p(),mt("disabled",t.invalid)}}function xy(n,i){n&1&&(h(0,"mat-card",6)(1,"div",18)(2,"mat-icon"),f(3,"search_off"),u(),h(4,"p"),f(5,"This tutorial could not be loaded"),u()()())}var Xp=(()=>{class n{tutorialService=c(ma);route=c(Je);router=c(be);snackBar=c(ca);currentTutorial={title:"",description:"",published:!1};notFound=!1;ngOnInit(){this.tutorialService.get(this.route.snapshot.params.id).subscribe({next:t=>this.currentTutorial=t,error:t=>{this.notFound=!0,this.showError(t)}})}updatePublished(t){let e=ct(g({},this.currentTutorial),{published:t});this.tutorialService.update(this.currentTutorial.id,e).subscribe({next:()=>{this.currentTutorial.published=t,this.notify(t?"Tutorial was published":"Tutorial was unpublished")},error:a=>this.showError(a)})}updateTutorial(){this.tutorialService.update(this.currentTutorial.id,this.currentTutorial).subscribe({next:()=>this.notify("Tutorial was saved"),error:t=>this.showError(t)})}deleteTutorial(){confirm(`Delete "${this.currentTutorial.title}"?`)&&this.tutorialService.delete(this.currentTutorial.id).subscribe({next:()=>{this.notify("Tutorial was deleted"),this.router.navigate(["/tutorials"])},error:t=>this.showError(t)})}notify(t){this.snackBar.open(t,"OK",{duration:3e3})}showError(t){this.snackBar.open(da(t),"OK",{duration:5e3})}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=S({type:n,selectors:[["app-tutorial-details"]],standalone:!1,decls:10,vars:1,consts:[["tutorialForm","ngForm"],["description",""],[1,"page","narrow"],[1,"page-header"],[1,"page-title"],["mat-button","","routerLink","/tutorials"],["appearance","outlined"],[3,"ngSubmit"],[1,"status"],["appearance","outline",1,"full-width"],["matInput","","name","title","required","","maxlength","255",3,"ngModelChange","ngModel"],["matInput","","name","description","rows","4","maxlength","255",3,"ngModelChange","ngModel"],["align","end"],[1,"actions"],["mat-button","","type","button",1,"danger",3,"click"],[1,"spacer"],["mat-stroked-button","","type","button",3,"click"],["mat-flat-button","","type","submit",3,"disabled"],[1,"empty"]],template:function(e,a){e&1&&(h(0,"div",2)(1,"div",3)(2,"h1",4),f(3,"Edit tutorial"),u(),h(4,"a",5)(5,"mat-icon"),f(6,"arrow_back"),u(),f(7," Back to list "),u()(),C(8,yy,35,9,"mat-card",6)(9,xy,6,0,"mat-card",6),u()),e&2&&(p(8),k(a.currentTutorial.id?8:a.notFound?9:-1))},dependencies:[Ve,_n,me,Se,vn,bn,wi,Ne,ye,He,va,ya,_a,Ls,Ps,Yn,Ie,Ge,Kn,xa,Ce],styles:[".page[_ngcontent-%COMP%]{max-width:960px;margin:0 auto}.page.narrow[_ngcontent-%COMP%]{max-width:560px}.page-header[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:16px}.page-title[_ngcontent-%COMP%]{margin:0;font:var(--%NS%mat-sys-headline-small);color:var(--%NS%mat-sys-on-surface)}a[_ngcontent-%COMP%], a[_ngcontent-%COMP%]:hover{text-decoration:none}.status[_ngcontent-%COMP%]{display:inline-block;padding:2px 10px;border-radius:8px;font:var(--%NS%mat-sys-label-medium);background-color:var(--%NS%mat-sys-surface-container-highest);color:var(--%NS%mat-sys-on-surface-variant)}.status.published[_ngcontent-%COMP%]{background-color:var(--%NS%mat-sys-tertiary-container);color:var(--%NS%mat-sys-on-tertiary-container)}.empty[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;gap:8px;padding:48px 16px;text-align:center;color:var(--%NS%mat-sys-on-surface-variant)}.empty[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{width:48px;height:48px;font-size:48px;opacity:.6}.empty[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0}.danger[_ngcontent-%COMP%]{--%NS%mat-button-text-label-text-color: var(--%NS%mat-sys-error)}.full-width[_ngcontent-%COMP%]{width:100%}mat-card-content[_ngcontent-%COMP%]{padding-top:16px}.actions[_ngcontent-%COMP%]{gap:8px;padding:8px 16px 16px}.spacer[_ngcontent-%COMP%]{flex:1 1 auto}"],changeDetection:1})}return n})();function wy(n,i){if(n&1){let t=Nt();h(0,"form",8,0),B("ngSubmit",function(){at(t);let a=w();return rt(a.saveTutorial())}),h(2,"mat-card-content")(3,"mat-form-field",9)(4,"mat-label"),f(5,"Title"),u(),h(6,"input",10),Tt(),Ht("ngModelChange",function(a){at(t);let r=w();return Ut(r.tutorial.title,a)||(r.tutorial.title=a),rt(a)}),u(),h(7,"mat-error"),f(8,"Title is required"),u()(),h(9,"mat-form-field",9)(10,"mat-label"),f(11,"Description"),u(),h(12,"textarea",11,1),Tt(),Ht("ngModelChange",function(a){at(t);let r=w();return Ut(r.tutorial.description,a)||(r.tutorial.description=a),rt(a)}),u(),h(14,"mat-hint",12),f(15),u()()(),h(16,"mat-card-actions",12)(17,"button",13)(18,"mat-icon"),f(19,"add"),u(),f(20," Create "),u()()()}if(n&2){let t=yt(1),e=yt(13),a=w();p(6),jt("ngModel",a.tutorial.title),Ot(),p(6),jt("ngModel",a.tutorial.description),Ot(),p(3),It("",e.value.length," / 255"),p(2),mt("disabled",t.invalid||a.saving)}}function Sy(n,i){if(n&1){let t=Nt();h(0,"div",7)(1,"mat-icon"),f(2,"check_circle"),u(),h(3,"p"),f(4,"Tutorial was created successfully!"),u(),h(5,"div",14)(6,"a",15),f(7,"Go to list"),u(),h(8,"button",16),B("click",function(){at(t);let a=w();return rt(a.newTutorial())}),h(9,"mat-icon"),f(10,"add"),u(),f(11," Add another "),u()()()}}var Zp=(()=>{class n{tutorialService=c(ma);snackBar=c(ca);tutorial=this.emptyTutorial();submitted=!1;saving=!1;saveTutorial(){let t={title:this.tutorial.title,description:this.tutorial.description};this.saving=!0,this.tutorialService.create(t).subscribe({next:()=>{this.saving=!1,this.submitted=!0},error:e=>{this.saving=!1,this.snackBar.open(da(e),"OK",{duration:5e3})}})}newTutorial(){this.submitted=!1,this.tutorial=this.emptyTutorial()}emptyTutorial(){return{title:"",description:"",published:!1}}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=S({type:n,selectors:[["app-add-tutorial"]],standalone:!1,decls:11,vars:1,consts:[["tutorialForm","ngForm"],["description",""],[1,"page","narrow"],[1,"page-header"],[1,"page-title"],["mat-button","","routerLink","/tutorials"],["appearance","outlined"],[1,"empty","success"],[3,"ngSubmit"],["appearance","outline",1,"full-width"],["matInput","","name","title","required","","maxlength","255",3,"ngModelChange","ngModel"],["matInput","","name","description","rows","4","maxlength","255",3,"ngModelChange","ngModel"],["align","end"],["mat-flat-button","","type","submit",3,"disabled"],[1,"success-actions"],["mat-stroked-button","","routerLink","/tutorials"],["mat-flat-button","",3,"click"]],template:function(e,a){e&1&&(h(0,"div",2)(1,"div",3)(2,"h1",4),f(3,"New tutorial"),u(),h(4,"a",5)(5,"mat-icon"),f(6,"arrow_back"),u(),f(7," Back to list "),u()(),h(8,"mat-card",6),C(9,wy,21,4,"form")(10,Sy,12,0,"div",7),u()()),e&2&&(p(9),k(a.submitted?10:9))},dependencies:[Ve,_n,me,Se,vn,bn,wi,Ne,ye,He,va,ya,_a,Yn,Ie,Ge,Kn,xa,Ce],styles:[".page[_ngcontent-%COMP%]{max-width:960px;margin:0 auto}.page.narrow[_ngcontent-%COMP%]{max-width:560px}.page-header[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:16px}.page-title[_ngcontent-%COMP%]{margin:0;font:var(--%NS%mat-sys-headline-small);color:var(--%NS%mat-sys-on-surface)}a[_ngcontent-%COMP%], a[_ngcontent-%COMP%]:hover{text-decoration:none}.status[_ngcontent-%COMP%]{display:inline-block;padding:2px 10px;border-radius:8px;font:var(--%NS%mat-sys-label-medium);background-color:var(--%NS%mat-sys-surface-container-highest);color:var(--%NS%mat-sys-on-surface-variant)}.status.published[_ngcontent-%COMP%]{background-color:var(--%NS%mat-sys-tertiary-container);color:var(--%NS%mat-sys-on-tertiary-container)}.empty[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;gap:8px;padding:48px 16px;text-align:center;color:var(--%NS%mat-sys-on-surface-variant)}.empty[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{width:48px;height:48px;font-size:48px;opacity:.6}.empty[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0}.danger[_ngcontent-%COMP%]{--%NS%mat-button-text-label-text-color: var(--%NS%mat-sys-error)}.full-width[_ngcontent-%COMP%]{width:100%}mat-card-content[_ngcontent-%COMP%]{padding-top:16px}mat-card-actions[_ngcontent-%COMP%]{padding:8px 16px 16px}.success[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{color:var(--%NS%mat-sys-primary);opacity:1}.success-actions[_ngcontent-%COMP%]{display:flex;gap:8px;margin-top:8px}"],changeDetection:1})}return n})();var Cy="/api/users",Qp=(()=>{class n{http;constructor(t){this.http=t}getAdminBoard(){return this.http.get(Cy)}static \u0275fac=function(e){return new(e||n)(T(Le))};static \u0275prov=$({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();var My="/api/roles",Jp=(()=>{class n{http;constructor(t){this.http=t}getAllRoles(){return this.http.get(My)}static \u0275fac=function(e){return new(e||n)(T(Le))};static \u0275prov=$({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();var Ny=new v("mat-chips-default-options",{providedIn:"root",factory:()=>({separatorKeyCodes:[13]})}),tf=new v("MatChipAvatar"),ef=new v("MatChipTrailingIcon"),nf=new v("MatChipEdit"),af=new v("MatChipRemove"),fd=new v("MatChip"),of=(()=>{class n{_elementRef=c(R);_parentChip=c(fd);_isPrimary=!0;_isLeading=!1;get disabled(){return this._disabled||this._parentChip?.disabled||!1}set disabled(t){this._disabled=t}_disabled=!1;tabIndex=-1;_allowFocusWhenDisabled=!1;_getDisabledAttribute(){return this.disabled&&!this._allowFocusWhenDisabled?"":null}constructor(){c(Bt).load(en),this._elementRef.nativeElement.nodeName==="BUTTON"&&this._elementRef.nativeElement.setAttribute("type","button")}focus(){this._elementRef.nativeElement.focus()}static \u0275fac=function(e){return new(e||n)};static \u0275dir=x({type:n,selectors:[["","matChipContent",""]],hostAttrs:[1,"mat-mdc-chip-action","mdc-evolution-chip__action","mdc-evolution-chip__action--presentational"],hostVars:8,hostBindings:function(e,a){e&2&&(H("disabled",a._getDisabledAttribute())("aria-disabled",a.disabled),z("mdc-evolution-chip__action--primary",a._isPrimary)("mdc-evolution-chip__action--secondary",!a._isPrimary)("mdc-evolution-chip__action--trailing",!a._isPrimary&&!a._isLeading))},inputs:{disabled:[2,"disabled","disabled",j],tabIndex:[2,"tabIndex","tabIndex",t=>t==null?-1:Li(t)],_allowFocusWhenDisabled:"_allowFocusWhenDisabled"}})}return n})(),sf=(()=>{class n extends of{_getTabindex(){return this.disabled&&!this._allowFocusWhenDisabled?null:this.tabIndex.toString()}_handleClick(t){!this.disabled&&this._isPrimary&&(t.preventDefault(),this._parentChip._handlePrimaryActionInteraction())}_handleKeydown(t){(t.keyCode===13||t.keyCode===32)&&!this.disabled&&this._isPrimary&&!this._parentChip._isEditing&&(t.preventDefault(),this._parentChip._handlePrimaryActionInteraction())}static \u0275fac=(()=>{let t;return function(a){return(t||(t=Rt(n)))(a||n)}})();static \u0275dir=x({type:n,selectors:[["","matChipAction",""]],hostVars:3,hostBindings:function(e,a){e&1&&B("click",function(o){return a._handleClick(o)})("keydown",function(o){return a._handleKeydown(o)}),e&2&&(H("tabindex",a._getTabindex()),z("mdc-evolution-chip__action--presentational",!1))},features:[ot]})}return n})();var hd=(()=>{class n{_changeDetectorRef=c(xt);_elementRef=c(R);_tagName=c(sm);_ngZone=c(O);_focusMonitor=c(fn);_globalRippleOptions=c(_i,{optional:!0});_document=c(F);_onFocus=new E;_onBlur=new E;_isBasicChip=!1;role=null;_hasFocusInternal=!1;_pendingFocus=!1;_actionChanges;_animationsDisabled=Ct();_allLeadingIcons;_allTrailingIcons;_allEditIcons;_allRemoveIcons;_hasFocus(){return this._hasFocusInternal}id=c(St).getId("mat-mdc-chip-");ariaLabel=null;ariaDescription=null;_chipListDisabled=!1;_hadFocusOnRemove=!1;_textElement;get value(){return this._value!==void 0?this._value:this._textElement.textContent.trim()}set value(t){this._value=t}_value;color;removable=!0;highlighted=!1;disableRipple=!1;get disabled(){return this._disabled||this._chipListDisabled}set disabled(t){this._disabled=t}_disabled=!1;removed=new Q;destroyed=new Q;basicChipAttrName="mat-basic-chip";leadingIcon;editIcon;trailingIcon;removeIcon;primaryAction;_rippleLoader=c(bs);_injector=c(K);constructor(){let t=c(Bt);t.load(en),t.load(na),this._monitorFocus(),this._rippleLoader?.configureRipple(this._elementRef.nativeElement,{className:"mat-mdc-chip-ripple",disabled:this._isRippleDisabled()})}ngOnInit(){this._isBasicChip=this._elementRef.nativeElement.hasAttribute(this.basicChipAttrName)||this._tagName.toLowerCase()===this.basicChipAttrName}ngAfterViewInit(){this._textElement=this._elementRef.nativeElement.querySelector(".mat-mdc-chip-action-label"),this._pendingFocus&&(this._pendingFocus=!1,this.focus())}ngAfterContentInit(){this._actionChanges=Qt(this._allLeadingIcons.changes,this._allTrailingIcons.changes,this._allEditIcons.changes,this._allRemoveIcons.changes).subscribe(()=>this._changeDetectorRef.markForCheck())}ngDoCheck(){this._rippleLoader.setDisabled(this._elementRef.nativeElement,this._isRippleDisabled())}ngOnDestroy(){this.destroyed.emit({chip:this}),this.destroyed.complete(),this._focusMonitor.stopMonitoring(this._elementRef),this._rippleLoader?.destroyRipple(this._elementRef.nativeElement),this._actionChanges?.unsubscribe()}remove(){this.removable&&(this._hadFocusOnRemove=this._hasFocus(),this.removed.emit({chip:this}))}_isRippleDisabled(){return this.disabled||this.disableRipple||this._animationsDisabled||this._isBasicChip||!this._hasInteractiveActions()||!!this._globalRippleOptions?.disabled}_hasTrailingIcon(){return!!(this.trailingIcon||this.removeIcon)}_handleKeydown(t){(t.keyCode===8&&!t.repeat||t.keyCode===46)&&(t.preventDefault(),this.remove())}focus(){this.disabled||(this.primaryAction?this.primaryAction.focus():this._pendingFocus=!0)}_getSourceAction(t){return this._getActions().find(e=>{let a=e._elementRef.nativeElement;return a===t||a.contains(t)})}_getActions(){let t=[];return this.editIcon&&t.push(this.editIcon),this.primaryAction&&t.push(this.primaryAction),this.removeIcon&&t.push(this.removeIcon),t}_handlePrimaryActionInteraction(){}_hasInteractiveActions(){return this._getActions().length>0}_edit(t){}_monitorFocus(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(t=>{let e=t!==null;e!==this._hasFocusInternal&&(this._hasFocusInternal=e,e?this._onFocus.next({chip:this}):(this._changeDetectorRef.markForCheck(),setTimeout(()=>this._ngZone.run(()=>this._onBlur.next({chip:this})))))})}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=(function(){let t=["*",[["mat-chip-avatar"],["","matChipAvatar",""]],[["mat-chip-trailing-icon"],["","matChipRemove",""],["","matChipTrailingIcon",""]]],e=["*","mat-chip-avatar, [matChipAvatar]","mat-chip-trailing-icon,[matChipRemove],[matChipTrailingIcon]"];function a(o,s){o&1&&(h(0,"span",3),V(1,1),u())}function r(o,s){o&1&&(h(0,"span",7),V(1,2),u())}return S({type:n,selectors:[["mat-basic-chip"],["","mat-basic-chip",""],["mat-chip"],["","mat-chip",""]],contentQueries:function(s,l,d){if(s&1&&ne(d,tf,5)(d,nf,5)(d,ef,5)(d,af,5)(d,tf,5)(d,ef,5)(d,nf,5)(d,af,5),s&2){let m;P(m=L())&&(l.leadingIcon=m.first),P(m=L())&&(l.editIcon=m.first),P(m=L())&&(l.trailingIcon=m.first),P(m=L())&&(l.removeIcon=m.first),P(m=L())&&(l._allLeadingIcons=m),P(m=L())&&(l._allTrailingIcons=m),P(m=L())&&(l._allEditIcons=m),P(m=L())&&(l._allRemoveIcons=m)}},viewQuery:function(s,l){if(s&1&&Kt(sf,5),s&2){let d;P(d=L())&&(l.primaryAction=d.first)}},hostAttrs:[1,"mat-mdc-chip"],hostVars:31,hostBindings:function(s,l){s&1&&B("keydown",function(m){return l._handleKeydown(m)}),s&2&&(ee("id",l.id),H("role",l.role)("aria-label",l.ariaLabel),Fe("mat-"+(l.color||"primary")),z("mdc-evolution-chip",!l._isBasicChip)("mdc-evolution-chip--disabled",l.disabled)("mdc-evolution-chip--with-trailing-action",l._hasTrailingIcon())("mdc-evolution-chip--with-primary-graphic",l.leadingIcon)("mdc-evolution-chip--with-primary-icon",l.leadingIcon)("mdc-evolution-chip--with-avatar",l.leadingIcon)("mat-mdc-chip-with-avatar",l.leadingIcon)("mat-mdc-chip-highlighted",l.highlighted)("mat-mdc-chip-disabled",l.disabled)("mat-mdc-basic-chip",l._isBasicChip)("mat-mdc-standard-chip",!l._isBasicChip)("mat-mdc-chip-with-trailing-icon",l._hasTrailingIcon())("_mat-animation-noopable",l._animationsDisabled))},inputs:{role:"role",id:"id",ariaLabel:[0,"aria-label","ariaLabel"],ariaDescription:[0,"aria-description","ariaDescription"],value:"value",color:"color",removable:[2,"removable","removable",j],highlighted:[2,"highlighted","highlighted",j],disableRipple:[2,"disableRipple","disableRipple",j],disabled:[2,"disabled","disabled",j]},outputs:{removed:"removed",destroyed:"destroyed"},exportAs:["matChip"],features:[ft([{provide:fd,useExisting:n}])],ngContentSelectors:e,decls:9,vars:2,consts:[[1,"mat-mdc-chip-focus-overlay"],[1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--primary"],["matChipContent",""],[1,"mdc-evolution-chip__graphic","mat-mdc-chip-graphic"],[1,"mdc-evolution-chip__text-label","mat-mdc-chip-action-label"],[1,"mat-mdc-chip-primary-focus-indicator","mat-focus-indicator"],[1,"mat-mdc-chip-touch-target"],[1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--trailing"]],template:function(s,l){s&1&&(_t(t),dt(0,"span",0),h(1,"span",1)(2,"span",2),C(3,a,2,0,"span",3),h(4,"span",4),V(5),dt(6,"span",5),u(),dt(7,"span",6),u()(),C(8,r,2,0,"span",7)),s&2&&(p(3),k(l.leadingIcon?3:-1),p(5),k(l._hasTrailingIcon()?8:-1))},dependencies:[of],styles:[`.mdc-evolution-chip,
|
|
.mdc-evolution-chip__cell,
|
|
.mdc-evolution-chip__action {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
}
|
|
|
|
.mdc-evolution-chip {
|
|
position: relative;
|
|
max-width: 100%;
|
|
}
|
|
|
|
.mat-mdc-chip-touch-target {
|
|
position: absolute;
|
|
top: 50%;
|
|
left: 0;
|
|
right: 0;
|
|
height: 48px;
|
|
transform: translateY(-50%);
|
|
display: var(--%NS%mat-chip-touch-target-display, block);
|
|
pointer-events: auto;
|
|
}
|
|
|
|
.mdc-evolution-chip__cell,
|
|
.mdc-evolution-chip__action {
|
|
height: 100%;
|
|
}
|
|
|
|
.mdc-evolution-chip__cell--primary {
|
|
flex-basis: 100%;
|
|
overflow-x: hidden;
|
|
}
|
|
|
|
.mdc-evolution-chip__cell--trailing {
|
|
flex: 1 0 auto;
|
|
}
|
|
|
|
.mdc-evolution-chip__action {
|
|
align-items: center;
|
|
background: none;
|
|
border: none;
|
|
box-sizing: content-box;
|
|
cursor: pointer;
|
|
display: inline-flex;
|
|
justify-content: center;
|
|
outline: none;
|
|
padding: 0;
|
|
text-decoration: none;
|
|
color: inherit;
|
|
}
|
|
|
|
.mdc-evolution-chip__action--presentational {
|
|
cursor: auto;
|
|
}
|
|
|
|
.mdc-evolution-chip--disabled,
|
|
.mdc-evolution-chip__action:disabled {
|
|
pointer-events: none;
|
|
}
|
|
@media (forced-colors: active) {
|
|
.mdc-evolution-chip--disabled,
|
|
.mdc-evolution-chip__action:disabled {
|
|
forced-color-adjust: none;
|
|
}
|
|
}
|
|
|
|
.mdc-evolution-chip__action--primary {
|
|
font: inherit;
|
|
letter-spacing: inherit;
|
|
white-space: inherit;
|
|
overflow-x: hidden;
|
|
}
|
|
.mat-mdc-standard-chip .mdc-evolution-chip__action--%NS%primary::before {
|
|
border-width: var(--%NS%mat-chip-outline-width, 1px);
|
|
border-radius: var(--%NS%mat-chip-container-shape-radius, 8px);
|
|
box-sizing: border-box;
|
|
content: "";
|
|
height: 100%;
|
|
left: 0;
|
|
position: absolute;
|
|
pointer-events: none;
|
|
top: 0;
|
|
width: 100%;
|
|
z-index: 1;
|
|
border-style: solid;
|
|
}
|
|
.mat-mdc-standard-chip .mdc-evolution-chip__action--primary {
|
|
padding-left: 12px;
|
|
padding-right: 12px;
|
|
}
|
|
.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary {
|
|
padding-left: 0;
|
|
padding-right: 12px;
|
|
}
|
|
[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary {
|
|
padding-left: 12px;
|
|
padding-right: 0;
|
|
}
|
|
.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__action--%NS%primary::before {
|
|
border-color: var(--%NS%mat-chip-outline-color, var(--%NS%mat-sys-outline));
|
|
}
|
|
.mdc-evolution-chip__action--%NS%primary:not(.mdc-evolution-chip__action--presentational):not(.mdc-ripple-upgraded):focus::before {
|
|
border-color: var(--%NS%mat-chip-focus-outline-color, var(--%NS%mat-sys-on-surface-variant));
|
|
}
|
|
.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__action--%NS%primary::before {
|
|
border-color: var(--%NS%mat-chip-disabled-outline-color, color-mix(in srgb, var(--%NS%mat-sys-on-surface) 12%, transparent));
|
|
}
|
|
.mat-mdc-standard-chip.mdc-evolution-chip--selected .mdc-evolution-chip__action--%NS%primary::before {
|
|
border-width: var(--%NS%mat-chip-flat-selected-outline-width, 0);
|
|
}
|
|
.mat-mdc-basic-chip .mdc-evolution-chip__action--primary {
|
|
font: inherit;
|
|
}
|
|
.mat-mdc-standard-chip.mdc-evolution-chip--with-leading-action .mdc-evolution-chip__action--primary {
|
|
padding-left: 0;
|
|
padding-right: 12px;
|
|
}
|
|
[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-leading-action .mdc-evolution-chip__action--primary {
|
|
padding-left: 12px;
|
|
padding-right: 0;
|
|
}
|
|
.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary {
|
|
padding-left: 12px;
|
|
padding-right: 0;
|
|
}
|
|
[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary {
|
|
padding-left: 0;
|
|
padding-right: 12px;
|
|
}
|
|
.mat-mdc-standard-chip.mdc-evolution-chip--with-leading-action.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary {
|
|
padding-left: 0;
|
|
padding-right: 0;
|
|
}
|
|
.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary {
|
|
padding-left: 0;
|
|
padding-right: 0;
|
|
}
|
|
[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary {
|
|
padding-left: 0;
|
|
padding-right: 0;
|
|
}
|
|
.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary {
|
|
padding-left: 0;
|
|
padding-right: 12px;
|
|
}
|
|
[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary {
|
|
padding-left: 12px;
|
|
padding-right: 0;
|
|
}
|
|
.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary {
|
|
padding-left: 0;
|
|
padding-right: 0;
|
|
}
|
|
[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary {
|
|
padding-left: 0;
|
|
padding-right: 0;
|
|
}
|
|
|
|
.mdc-evolution-chip__action--secondary {
|
|
position: relative;
|
|
overflow: visible;
|
|
}
|
|
.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__action--secondary {
|
|
color: var(--%NS%mat-chip-with-trailing-icon-trailing-icon-color, var(--%NS%mat-sys-on-surface-variant));
|
|
}
|
|
.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__action--secondary {
|
|
color: var(--%NS%mat-chip-with-trailing-icon-disabled-trailing-icon-color, var(--%NS%mat-sys-on-surface));
|
|
}
|
|
.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--secondary, .mat-mdc-standard-chip.mdc-evolution-chip--with-leading-action .mdc-evolution-chip__action--secondary {
|
|
padding-left: 8px;
|
|
padding-right: 8px;
|
|
}
|
|
.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--secondary, .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-leading-action .mdc-evolution-chip__action--secondary {
|
|
padding-left: 8px;
|
|
padding-right: 8px;
|
|
}
|
|
.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--secondary, .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-leading-action .mdc-evolution-chip__action--secondary {
|
|
padding-left: 8px;
|
|
padding-right: 8px;
|
|
}
|
|
[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--secondary, [dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-leading-action .mdc-evolution-chip__action--secondary {
|
|
padding-left: 8px;
|
|
padding-right: 8px;
|
|
}
|
|
|
|
.mdc-evolution-chip__text-label {
|
|
-webkit-user-select: none;
|
|
user-select: none;
|
|
white-space: nowrap;
|
|
text-overflow: ellipsis;
|
|
overflow: hidden;
|
|
}
|
|
.mat-mdc-standard-chip .mdc-evolution-chip__text-label {
|
|
font-family: var(--%NS%mat-chip-label-text-font, var(--%NS%mat-sys-label-large-font));
|
|
line-height: var(--%NS%mat-chip-label-text-line-height, var(--%NS%mat-sys-label-large-line-height));
|
|
font-size: var(--%NS%mat-chip-label-text-size, var(--%NS%mat-sys-label-large-size));
|
|
font-weight: var(--%NS%mat-chip-label-text-weight, var(--%NS%mat-sys-label-large-weight));
|
|
letter-spacing: var(--%NS%mat-chip-label-text-tracking, var(--%NS%mat-sys-label-large-tracking));
|
|
}
|
|
.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__text-label {
|
|
color: var(--%NS%mat-chip-label-text-color, var(--%NS%mat-sys-on-surface-variant));
|
|
}
|
|
.mat-mdc-standard-chip.mdc-evolution-chip--%NS%selected:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__text-label {
|
|
color: var(--%NS%mat-chip-selected-label-text-color, var(--%NS%mat-sys-on-secondary-container));
|
|
}
|
|
.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__text-label, .mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled .mdc-evolution-chip__text-label {
|
|
color: var(--%NS%mat-chip-disabled-label-text-color, color-mix(in srgb, var(--%NS%mat-sys-on-surface) 38%, transparent));
|
|
}
|
|
|
|
.mdc-evolution-chip__graphic {
|
|
align-items: center;
|
|
display: inline-flex;
|
|
justify-content: center;
|
|
overflow: hidden;
|
|
pointer-events: none;
|
|
position: relative;
|
|
flex: 1 0 auto;
|
|
}
|
|
.mat-mdc-standard-chip .mdc-evolution-chip__graphic {
|
|
width: var(--%NS%mat-chip-with-avatar-avatar-size, 24px);
|
|
height: var(--%NS%mat-chip-with-avatar-avatar-size, 24px);
|
|
font-size: var(--%NS%mat-chip-with-avatar-avatar-size, 24px);
|
|
}
|
|
.mdc-evolution-chip--selecting .mdc-evolution-chip__graphic {
|
|
transition: width 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1);
|
|
}
|
|
.mdc-evolution-chip--%NS%selectable:not(.mdc-evolution-chip--selected):not(.mdc-evolution-chip--with-primary-icon) .mdc-evolution-chip__graphic {
|
|
width: 0;
|
|
}
|
|
.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic {
|
|
padding-left: 6px;
|
|
padding-right: 6px;
|
|
}
|
|
.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic {
|
|
padding-left: 4px;
|
|
padding-right: 8px;
|
|
}
|
|
[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic {
|
|
padding-left: 8px;
|
|
padding-right: 4px;
|
|
}
|
|
.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic {
|
|
padding-left: 6px;
|
|
padding-right: 6px;
|
|
}
|
|
.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic {
|
|
padding-left: 4px;
|
|
padding-right: 8px;
|
|
}
|
|
[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic {
|
|
padding-left: 8px;
|
|
padding-right: 4px;
|
|
}
|
|
.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-leading-action .mdc-evolution-chip__graphic {
|
|
padding-left: 0;
|
|
}
|
|
|
|
.mdc-evolution-chip__checkmark {
|
|
position: absolute;
|
|
opacity: 0;
|
|
top: 50%;
|
|
left: 50%;
|
|
height: 20px;
|
|
width: 20px;
|
|
}
|
|
.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__checkmark {
|
|
color: var(--%NS%mat-chip-with-icon-selected-icon-color, var(--%NS%mat-sys-on-secondary-container));
|
|
}
|
|
.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__checkmark {
|
|
color: var(--%NS%mat-chip-with-icon-disabled-icon-color, var(--%NS%mat-sys-on-surface));
|
|
}
|
|
.mdc-evolution-chip--selecting .mdc-evolution-chip__checkmark {
|
|
transition: transform 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1);
|
|
transform: translate(-75%, -50%);
|
|
}
|
|
.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark {
|
|
transform: translate(-50%, -50%);
|
|
opacity: 1;
|
|
}
|
|
|
|
.mdc-evolution-chip__checkmark-svg {
|
|
display: block;
|
|
}
|
|
|
|
.mdc-evolution-chip__checkmark-path {
|
|
stroke-width: 2px;
|
|
stroke-dasharray: 29.7833385;
|
|
stroke-dashoffset: 29.7833385;
|
|
stroke: currentColor;
|
|
}
|
|
.mdc-evolution-chip--selecting .mdc-evolution-chip__checkmark-path {
|
|
transition: stroke-dashoffset 150ms 45ms cubic-bezier(0.4, 0, 0.2, 1);
|
|
}
|
|
.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark-path {
|
|
stroke-dashoffset: 0;
|
|
}
|
|
@media (forced-colors: active) {
|
|
.mdc-evolution-chip__checkmark-path {
|
|
stroke: CanvasText !important;
|
|
}
|
|
}
|
|
|
|
.mat-mdc-standard-chip .mdc-evolution-chip__icon--trailing {
|
|
height: 18px;
|
|
width: 18px;
|
|
font-size: 18px;
|
|
}
|
|
.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing.mat-mdc-chip-remove {
|
|
opacity: calc(var(--%NS%mat-chip-trailing-action-opacity, 1) * var(--%NS%mat-chip-with-trailing-icon-disabled-trailing-icon-opacity, 0.38));
|
|
}
|
|
.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing.mat-mdc-chip-remove:focus {
|
|
opacity: calc(var(--%NS%mat-chip-trailing-action-focus-opacity, 1) * var(--%NS%mat-chip-with-trailing-icon-disabled-trailing-icon-opacity, 0.38));
|
|
}
|
|
|
|
.mat-mdc-standard-chip {
|
|
border-radius: var(--%NS%mat-chip-container-shape-radius, 8px);
|
|
height: var(--%NS%mat-chip-container-height, 32px);
|
|
}
|
|
.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) {
|
|
background-color: var(--%NS%mat-chip-elevated-container-color, transparent);
|
|
}
|
|
.mat-mdc-standard-chip.mdc-evolution-chip--disabled {
|
|
background-color: var(--%NS%mat-chip-elevated-disabled-container-color);
|
|
}
|
|
.mat-mdc-standard-chip.mdc-evolution-chip--%NS%selected:not(.mdc-evolution-chip--disabled) {
|
|
background-color: var(--%NS%mat-chip-elevated-selected-container-color, var(--%NS%mat-sys-secondary-container));
|
|
}
|
|
.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled {
|
|
background-color: var(--%NS%mat-chip-flat-disabled-selected-container-color, color-mix(in srgb, var(--%NS%mat-sys-on-surface) 12%, transparent));
|
|
}
|
|
@media (forced-colors: active) {
|
|
.mat-mdc-standard-chip {
|
|
outline: solid 1px;
|
|
}
|
|
}
|
|
|
|
.mat-mdc-standard-chip .mdc-evolution-chip__icon--primary {
|
|
border-radius: var(--%NS%mat-chip-with-avatar-avatar-shape-radius, 24px);
|
|
width: var(--%NS%mat-chip-with-icon-icon-size, 18px);
|
|
height: var(--%NS%mat-chip-with-icon-icon-size, 18px);
|
|
font-size: var(--%NS%mat-chip-with-icon-icon-size, 18px);
|
|
}
|
|
.mdc-evolution-chip--selected .mdc-evolution-chip__icon--primary {
|
|
opacity: 0;
|
|
}
|
|
.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__icon--primary {
|
|
color: var(--%NS%mat-chip-with-icon-icon-color, var(--%NS%mat-sys-on-surface-variant));
|
|
}
|
|
.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--primary {
|
|
color: var(--%NS%mat-chip-with-icon-disabled-icon-color, var(--%NS%mat-sys-on-surface));
|
|
}
|
|
|
|
.mat-mdc-chip-highlighted {
|
|
--%NS%mat-chip-with-icon-icon-color: var(--%NS%mat-chip-with-icon-selected-icon-color, var(--%NS%mat-sys-on-secondary-container));
|
|
--%NS%mat-chip-elevated-container-color: var(--%NS%mat-chip-elevated-selected-container-color, var(--%NS%mat-sys-secondary-container));
|
|
--%NS%mat-chip-label-text-color: var(--%NS%mat-chip-selected-label-text-color, var(--%NS%mat-sys-on-secondary-container));
|
|
--%NS%mat-chip-outline-width: var(--%NS%mat-chip-flat-selected-outline-width, 0);
|
|
}
|
|
|
|
.mat-mdc-chip-focus-overlay {
|
|
background: var(--%NS%mat-chip-focus-state-layer-color, var(--%NS%mat-sys-on-surface-variant));
|
|
}
|
|
.mat-mdc-chip-selected .mat-mdc-chip-focus-overlay, .mat-mdc-chip-highlighted .mat-mdc-chip-focus-overlay {
|
|
background: var(--%NS%mat-chip-selected-focus-state-layer-color, var(--%NS%mat-sys-on-secondary-container));
|
|
}
|
|
.mat-mdc-chip:hover .mat-mdc-chip-focus-overlay {
|
|
background: var(--%NS%mat-chip-hover-state-layer-color, var(--%NS%mat-sys-on-surface-variant));
|
|
opacity: var(--%NS%mat-chip-hover-state-layer-opacity, var(--%NS%mat-sys-hover-state-layer-opacity));
|
|
}
|
|
.mat-mdc-chip-focus-overlay .mat-mdc-chip-selected:hover, .mat-mdc-chip-highlighted:hover .mat-mdc-chip-focus-overlay {
|
|
background: var(--%NS%mat-chip-selected-hover-state-layer-color, var(--%NS%mat-sys-on-secondary-container));
|
|
opacity: var(--%NS%mat-chip-selected-hover-state-layer-opacity, var(--%NS%mat-sys-hover-state-layer-opacity));
|
|
}
|
|
.mat-mdc-chip.cdk-focused .mat-mdc-chip-focus-overlay {
|
|
background: var(--%NS%mat-chip-focus-state-layer-color, var(--%NS%mat-sys-on-surface-variant));
|
|
opacity: var(--%NS%mat-chip-focus-state-layer-opacity, var(--%NS%mat-sys-focus-state-layer-opacity));
|
|
}
|
|
.mat-mdc-chip-selected.cdk-focused .mat-mdc-chip-focus-overlay, .mat-mdc-chip-highlighted.cdk-focused .mat-mdc-chip-focus-overlay {
|
|
background: var(--%NS%mat-chip-selected-focus-state-layer-color, var(--%NS%mat-sys-on-secondary-container));
|
|
opacity: var(--%NS%mat-chip-selected-focus-state-layer-opacity, var(--%NS%mat-sys-focus-state-layer-opacity));
|
|
}
|
|
|
|
.mdc-evolution-chip--%NS%disabled:not(.mdc-evolution-chip--selected) .mat-mdc-chip-avatar {
|
|
opacity: var(--%NS%mat-chip-with-avatar-disabled-avatar-opacity, 0.38);
|
|
}
|
|
|
|
.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing {
|
|
opacity: var(--%NS%mat-chip-with-trailing-icon-disabled-trailing-icon-opacity, 0.38);
|
|
}
|
|
|
|
.mdc-evolution-chip--disabled.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark {
|
|
opacity: var(--%NS%mat-chip-with-icon-disabled-icon-opacity, 0.38);
|
|
}
|
|
|
|
.mat-mdc-standard-chip.mdc-evolution-chip--disabled {
|
|
opacity: var(--%NS%mat-chip-disabled-container-opacity, 1);
|
|
}
|
|
.mat-mdc-standard-chip.mdc-evolution-chip--selected .mdc-evolution-chip__icon--trailing, .mat-mdc-standard-chip.mat-mdc-chip-highlighted .mdc-evolution-chip__icon--trailing {
|
|
color: var(--%NS%mat-chip-selected-trailing-icon-color, var(--%NS%mat-sys-on-secondary-container));
|
|
}
|
|
.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing, .mat-mdc-standard-chip.mat-mdc-chip-highlighted.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing {
|
|
color: var(--%NS%mat-chip-selected-disabled-trailing-icon-color, var(--%NS%mat-sys-on-surface));
|
|
}
|
|
|
|
.mat-mdc-chip-edit, .mat-mdc-chip-remove {
|
|
opacity: var(--%NS%mat-chip-trailing-action-opacity, 1);
|
|
}
|
|
.mat-mdc-chip-edit:focus, .mat-mdc-chip-remove:focus {
|
|
opacity: var(--%NS%mat-chip-trailing-action-focus-opacity, 1);
|
|
}
|
|
.mat-mdc-chip-edit::after, .mat-mdc-chip-remove::after {
|
|
background-color: var(--%NS%mat-chip-trailing-action-state-layer-color, var(--%NS%mat-sys-on-surface-variant));
|
|
}
|
|
.mat-mdc-chip-edit:hover::after, .mat-mdc-chip-remove:hover::after {
|
|
opacity: calc(var(--%NS%mat-chip-hover-state-layer-opacity, var(--%NS%mat-sys-hover-state-layer-opacity)) + var(--%NS%mat-chip-trailing-action-hover-state-layer-opacity, var(--%NS%mat-sys-hover-state-layer-opacity)));
|
|
}
|
|
.mat-mdc-chip-edit:focus::after, .mat-mdc-chip-remove:focus::after {
|
|
opacity: calc(var(--%NS%mat-chip-hover-state-layer-opacity, var(--%NS%mat-sys-hover-state-layer-opacity)) + var(--%NS%mat-chip-trailing-action-focus-state-layer-opacity, var(--%NS%mat-sys-focus-state-layer-opacity)));
|
|
}
|
|
|
|
.mat-mdc-chip-selected .mat-mdc-chip-remove::after,
|
|
.mat-mdc-chip-highlighted .mat-mdc-chip-remove::after {
|
|
background-color: var(--%NS%mat-chip-selected-trailing-action-state-layer-color, var(--%NS%mat-sys-on-secondary-container));
|
|
}
|
|
|
|
.mat-mdc-chip.cdk-focused .mat-mdc-chip-edit:focus::after, .mat-mdc-chip.cdk-focused .mat-mdc-chip-remove:focus::after {
|
|
opacity: calc(var(--%NS%mat-chip-selected-focus-state-layer-opacity, var(--%NS%mat-sys-focus-state-layer-opacity)) + var(--%NS%mat-chip-trailing-action-focus-state-layer-opacity, var(--%NS%mat-sys-focus-state-layer-opacity)));
|
|
}
|
|
.mat-mdc-chip.cdk-focused .mat-mdc-chip-edit:hover::after, .mat-mdc-chip.cdk-focused .mat-mdc-chip-remove:hover::after {
|
|
opacity: calc(var(--%NS%mat-chip-selected-focus-state-layer-opacity, var(--%NS%mat-sys-focus-state-layer-opacity)) + var(--%NS%mat-chip-trailing-action-hover-state-layer-opacity, var(--%NS%mat-sys-hover-state-layer-opacity)));
|
|
}
|
|
|
|
.mat-mdc-standard-chip {
|
|
-webkit-tap-highlight-color: transparent;
|
|
}
|
|
.mat-mdc-standard-chip .mat-mdc-chip-graphic,
|
|
.mat-mdc-standard-chip .mat-mdc-chip-trailing-icon {
|
|
box-sizing: content-box;
|
|
}
|
|
.mat-mdc-standard-chip._mat-animation-noopable,
|
|
.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__graphic,
|
|
.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__checkmark,
|
|
.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__checkmark-path {
|
|
transition-duration: 1ms;
|
|
animation-duration: 1ms;
|
|
}
|
|
|
|
.mat-mdc-chip-focus-overlay {
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
position: absolute;
|
|
pointer-events: none;
|
|
opacity: 0;
|
|
border-radius: inherit;
|
|
transition: opacity 150ms linear;
|
|
}
|
|
._mat-animation-noopable .mat-mdc-chip-focus-overlay {
|
|
transition: none;
|
|
}
|
|
.mat-mdc-basic-chip .mat-mdc-chip-focus-overlay {
|
|
display: none;
|
|
}
|
|
|
|
.mat-mdc-chip .mat-ripple.mat-mdc-chip-ripple {
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
position: absolute;
|
|
pointer-events: none;
|
|
border-radius: inherit;
|
|
}
|
|
|
|
.mat-mdc-chip-avatar {
|
|
text-align: center;
|
|
line-height: 1;
|
|
color: var(--%NS%mat-chip-with-icon-icon-color, currentColor);
|
|
}
|
|
|
|
.mat-mdc-chip {
|
|
position: relative;
|
|
z-index: 0;
|
|
}
|
|
|
|
.mat-mdc-chip-action-label {
|
|
text-align: left;
|
|
z-index: 1;
|
|
}
|
|
[dir=rtl] .mat-mdc-chip-action-label {
|
|
text-align: right;
|
|
}
|
|
.mat-mdc-chip.mdc-evolution-chip--with-trailing-action .mat-mdc-chip-action-label {
|
|
position: relative;
|
|
}
|
|
.mat-mdc-chip-action-label .mat-mdc-chip-primary-focus-indicator {
|
|
position: absolute;
|
|
top: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
left: 0;
|
|
pointer-events: none;
|
|
}
|
|
.mat-mdc-chip-action-label .mat-focus-indicator::before {
|
|
margin: calc(calc(var(--%NS%mat-focus-indicator-border-width, 3px) + 2px) * -1);
|
|
}
|
|
|
|
.mat-mdc-chip-edit::before, .mat-mdc-chip-remove::before {
|
|
margin: calc(var(--%NS%mat-focus-indicator-border-width, 3px) * -1);
|
|
left: 8px;
|
|
right: 8px;
|
|
}
|
|
.mat-mdc-chip-edit::after, .mat-mdc-chip-remove::after {
|
|
content: "";
|
|
display: block;
|
|
opacity: 0;
|
|
position: absolute;
|
|
top: -3px;
|
|
bottom: -3px;
|
|
left: 5px;
|
|
right: 5px;
|
|
border-radius: 50%;
|
|
box-sizing: border-box;
|
|
padding: 12px;
|
|
margin: -12px;
|
|
background-clip: content-box;
|
|
}
|
|
.mat-mdc-chip-edit .mat-icon, .mat-mdc-chip-remove .mat-icon {
|
|
width: 18px;
|
|
height: 18px;
|
|
font-size: 18px;
|
|
box-sizing: content-box;
|
|
}
|
|
|
|
.mat-chip-edit-input {
|
|
cursor: text;
|
|
display: inline-block;
|
|
color: inherit;
|
|
outline: 0;
|
|
}
|
|
|
|
@media (forced-colors: active) {
|
|
.mat-mdc-chip-selected:not(.mat-mdc-chip-multiple) {
|
|
outline-width: 3px;
|
|
}
|
|
}
|
|
|
|
.mat-mdc-chip-action:focus-visible .mat-focus-indicator::before {
|
|
content: "";
|
|
}
|
|
|
|
.mdc-evolution-chip__icon, .mat-mdc-chip-edit .mat-icon, .mat-mdc-chip-remove .mat-icon {
|
|
min-height: fit-content;
|
|
}
|
|
|
|
img.mdc-evolution-chip__icon {
|
|
min-height: 0;
|
|
}
|
|
`],encapsulation:2})})()}return n})();var ud=(()=>{class n{_elementRef=c(R);_document=c(F);initialize(t){this.getNativeElement().focus(),this.setValue(t)}getNativeElement(){return this._elementRef.nativeElement}setValue(t){this.getNativeElement().textContent=t,this._moveCursorToEndOfInput()}getValue(){return this.getNativeElement().textContent||""}_moveCursorToEndOfInput(){let t=this._document.createRange();t.selectNodeContents(this.getNativeElement()),t.collapse(!1);let e=window.getSelection();e.removeAllRanges(),e.addRange(t)}static \u0275fac=function(e){return new(e||n)};static \u0275dir=x({type:n,selectors:[["span","matChipEditInput",""]],hostAttrs:["role","textbox","tabindex","-1","contenteditable","true",1,"mat-chip-edit-input"]})}return n})(),Lr=(()=>{class n extends hd{basicChipAttrName="mat-basic-chip-row";_renderer=c(pt);_cleanupMousedown;_editStartPending=!1;editable=!1;edited=new Q;defaultEditInput;contentEditInput;_alreadyFocused=!1;_isEditing=!1;constructor(){super(),this.role="row",this._onBlur.pipe(kt(this.destroyed)).subscribe(()=>{this._isEditing&&!this._editStartPending&&this._onEditFinish(),this._alreadyFocused=!1})}ngAfterViewInit(){super.ngAfterViewInit(),this._cleanupMousedown=this._ngZone.runOutsideAngular(()=>this._renderer.listen(this._elementRef.nativeElement,"mousedown",()=>{this._alreadyFocused=this._hasFocus()}))}ngOnDestroy(){super.ngOnDestroy(),this._cleanupMousedown?.()}_hasLeadingActionIcon(){return!this._isEditing&&!!this.editIcon}_hasTrailingIcon(){return!this._isEditing&&super._hasTrailingIcon()}_handleFocus(){!this._isEditing&&!this.disabled&&this.focus()}_handleKeydown(t){t.keyCode===13&&!this.disabled?this._isEditing?(t.preventDefault(),this._onEditFinish()):this.editable&&this._startEditing(t):this._isEditing?t.stopPropagation():super._handleKeydown(t)}_handleClick(t){!this.disabled&&this.editable&&!this._isEditing&&this._alreadyFocused&&(t.preventDefault(),t.stopPropagation(),this._startEditing(t))}_handleDoubleclick(t){!this.disabled&&this.editable&&this._startEditing(t)}_edit(){this._changeDetectorRef.markForCheck(),this._startEditing()}_startEditing(t){if(!this.primaryAction||this.removeIcon&&t&&this._getSourceAction(t.target)===this.removeIcon)return;let e=this.value;this._isEditing=this._editStartPending=!0,Pt(()=>{this._getEditInput().initialize(e),setTimeout(()=>this._ngZone.run(()=>this._editStartPending=!1))},{injector:this._injector})}_onEditFinish(){this._isEditing=this._editStartPending=!1,this.edited.emit({chip:this,value:this._getEditInput().getValue()}),(this._document.activeElement===this._getEditInput().getNativeElement()||this._document.activeElement===this._document.body)&&this.primaryAction.focus()}_isRippleDisabled(){return super._isRippleDisabled()||this._isEditing}_getEditInput(){return this.contentEditInput||this.defaultEditInput}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=(function(){let t=[[["","matChipEdit",""]],[["mat-chip-avatar"],["","matChipAvatar",""]],[["","matChipEditInput",""]],"*",[["mat-chip-trailing-icon"],["","matChipRemove",""],["","matChipTrailingIcon",""]]],e=["[matChipEdit]","mat-chip-avatar, [matChipAvatar]","[matChipEditInput]","*","mat-chip-trailing-icon,[matChipRemove],[matChipTrailingIcon]"];function a(b,M){b&1&&dt(0,"span",0)}function r(b,M){b&1&&(h(0,"span",1),V(1),u())}function o(b,M){b&1&&(h(0,"span",3),V(1,1),u())}function s(b,M){b&1&&V(0,2)}function l(b,M){b&1&&dt(0,"span",8)}function d(b,M){if(b&1&&C(0,s,1,0)(1,l,1,0,"span",8),b&2){let D=w();k(D.contentEditInput?0:1)}}function m(b,M){b&1&&V(0,3)}function _(b,M){b&1&&(h(0,"span",7),V(1,4),u())}return S({type:n,selectors:[["mat-chip-row"],["","mat-chip-row",""],["mat-basic-chip-row"],["","mat-basic-chip-row",""]],contentQueries:function(M,D,Z){if(M&1&&ne(Z,ud,5),M&2){let lt;P(lt=L())&&(D.contentEditInput=lt.first)}},viewQuery:function(M,D){if(M&1&&Kt(ud,5),M&2){let Z;P(Z=L())&&(D.defaultEditInput=Z.first)}},hostAttrs:[1,"mat-mdc-chip","mat-mdc-chip-row","mdc-evolution-chip"],hostVars:29,hostBindings:function(M,D){M&1&&B("focus",function(){return D._handleFocus()})("click",function(lt){return D._hasInteractiveActions()?D._handleClick(lt):null})("dblclick",function(lt){return D._handleDoubleclick(lt)}),M&2&&(ee("id",D.id),H("tabindex",D.disabled?null:-1)("aria-label",null)("aria-description",null)("role",D.role),z("mat-mdc-chip-with-avatar",D.leadingIcon)("mat-mdc-chip-disabled",D.disabled)("mat-mdc-chip-editing",D._isEditing)("mat-mdc-chip-editable",D.editable)("mdc-evolution-chip--disabled",D.disabled)("mdc-evolution-chip--with-leading-action",D._hasLeadingActionIcon())("mdc-evolution-chip--with-trailing-action",D._hasTrailingIcon())("mdc-evolution-chip--with-primary-graphic",D.leadingIcon)("mdc-evolution-chip--with-primary-icon",D.leadingIcon)("mdc-evolution-chip--with-avatar",D.leadingIcon)("mat-mdc-chip-highlighted",D.highlighted)("mat-mdc-chip-with-trailing-icon",D._hasTrailingIcon()))},inputs:{editable:"editable"},outputs:{edited:"edited"},features:[ft([{provide:hd,useExisting:n},{provide:fd,useExisting:n}]),ot],ngContentSelectors:e,decls:10,vars:8,consts:[[1,"mat-mdc-chip-focus-overlay"],["role","gridcell",1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--leading"],["role","gridcell","matChipAction","",1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--primary",3,"disabled"],[1,"mdc-evolution-chip__graphic","mat-mdc-chip-graphic"],[1,"mdc-evolution-chip__text-label","mat-mdc-chip-action-label"],["aria-hidden","true",1,"mat-mdc-chip-primary-focus-indicator","mat-focus-indicator"],[1,"mat-mdc-chip-touch-target"],["role","gridcell",1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--trailing"],["matChipEditInput",""]],template:function(M,D){M&1&&(_t(t),C(0,a,1,0,"span",0),C(1,r,2,0,"span",1),h(2,"span",2),C(3,o,2,0,"span",3),h(4,"span",4),C(5,d,2,1)(6,m,1,0),dt(7,"span",5),u(),dt(8,"span",6),u(),C(9,_,2,0,"span",7)),M&2&&(k(D._isEditing?-1:0),p(),k(D._hasLeadingActionIcon()?1:-1),p(),mt("disabled",D.disabled),H("aria-description",D.ariaDescription)("aria-label",D.ariaLabel),p(),k(D.leadingIcon?3:-1),p(2),k(D._isEditing?5:6),p(4),k(D._hasTrailingIcon()?9:-1))},dependencies:[sf,ud],styles:[`.mdc-evolution-chip,
|
|
.mdc-evolution-chip__cell,
|
|
.mdc-evolution-chip__action {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
}
|
|
|
|
.mdc-evolution-chip {
|
|
position: relative;
|
|
max-width: 100%;
|
|
}
|
|
|
|
.mat-mdc-chip-touch-target {
|
|
position: absolute;
|
|
top: 50%;
|
|
left: 0;
|
|
right: 0;
|
|
height: 48px;
|
|
transform: translateY(-50%);
|
|
display: var(--%NS%mat-chip-touch-target-display, block);
|
|
pointer-events: auto;
|
|
}
|
|
|
|
.mdc-evolution-chip__cell,
|
|
.mdc-evolution-chip__action {
|
|
height: 100%;
|
|
}
|
|
|
|
.mdc-evolution-chip__cell--primary {
|
|
flex-basis: 100%;
|
|
overflow-x: hidden;
|
|
}
|
|
|
|
.mdc-evolution-chip__cell--trailing {
|
|
flex: 1 0 auto;
|
|
}
|
|
|
|
.mdc-evolution-chip__action {
|
|
align-items: center;
|
|
background: none;
|
|
border: none;
|
|
box-sizing: content-box;
|
|
cursor: pointer;
|
|
display: inline-flex;
|
|
justify-content: center;
|
|
outline: none;
|
|
padding: 0;
|
|
text-decoration: none;
|
|
color: inherit;
|
|
}
|
|
|
|
.mdc-evolution-chip__action--presentational {
|
|
cursor: auto;
|
|
}
|
|
|
|
.mdc-evolution-chip--disabled,
|
|
.mdc-evolution-chip__action:disabled {
|
|
pointer-events: none;
|
|
}
|
|
@media (forced-colors: active) {
|
|
.mdc-evolution-chip--disabled,
|
|
.mdc-evolution-chip__action:disabled {
|
|
forced-color-adjust: none;
|
|
}
|
|
}
|
|
|
|
.mdc-evolution-chip__action--primary {
|
|
font: inherit;
|
|
letter-spacing: inherit;
|
|
white-space: inherit;
|
|
overflow-x: hidden;
|
|
}
|
|
.mat-mdc-standard-chip .mdc-evolution-chip__action--%NS%primary::before {
|
|
border-width: var(--%NS%mat-chip-outline-width, 1px);
|
|
border-radius: var(--%NS%mat-chip-container-shape-radius, 8px);
|
|
box-sizing: border-box;
|
|
content: "";
|
|
height: 100%;
|
|
left: 0;
|
|
position: absolute;
|
|
pointer-events: none;
|
|
top: 0;
|
|
width: 100%;
|
|
z-index: 1;
|
|
border-style: solid;
|
|
}
|
|
.mat-mdc-standard-chip .mdc-evolution-chip__action--primary {
|
|
padding-left: 12px;
|
|
padding-right: 12px;
|
|
}
|
|
.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary {
|
|
padding-left: 0;
|
|
padding-right: 12px;
|
|
}
|
|
[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary {
|
|
padding-left: 12px;
|
|
padding-right: 0;
|
|
}
|
|
.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__action--%NS%primary::before {
|
|
border-color: var(--%NS%mat-chip-outline-color, var(--%NS%mat-sys-outline));
|
|
}
|
|
.mdc-evolution-chip__action--%NS%primary:not(.mdc-evolution-chip__action--presentational):not(.mdc-ripple-upgraded):focus::before {
|
|
border-color: var(--%NS%mat-chip-focus-outline-color, var(--%NS%mat-sys-on-surface-variant));
|
|
}
|
|
.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__action--%NS%primary::before {
|
|
border-color: var(--%NS%mat-chip-disabled-outline-color, color-mix(in srgb, var(--%NS%mat-sys-on-surface) 12%, transparent));
|
|
}
|
|
.mat-mdc-standard-chip.mdc-evolution-chip--selected .mdc-evolution-chip__action--%NS%primary::before {
|
|
border-width: var(--%NS%mat-chip-flat-selected-outline-width, 0);
|
|
}
|
|
.mat-mdc-basic-chip .mdc-evolution-chip__action--primary {
|
|
font: inherit;
|
|
}
|
|
.mat-mdc-standard-chip.mdc-evolution-chip--with-leading-action .mdc-evolution-chip__action--primary {
|
|
padding-left: 0;
|
|
padding-right: 12px;
|
|
}
|
|
[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-leading-action .mdc-evolution-chip__action--primary {
|
|
padding-left: 12px;
|
|
padding-right: 0;
|
|
}
|
|
.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary {
|
|
padding-left: 12px;
|
|
padding-right: 0;
|
|
}
|
|
[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary {
|
|
padding-left: 0;
|
|
padding-right: 12px;
|
|
}
|
|
.mat-mdc-standard-chip.mdc-evolution-chip--with-leading-action.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary {
|
|
padding-left: 0;
|
|
padding-right: 0;
|
|
}
|
|
.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary {
|
|
padding-left: 0;
|
|
padding-right: 0;
|
|
}
|
|
[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary {
|
|
padding-left: 0;
|
|
padding-right: 0;
|
|
}
|
|
.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary {
|
|
padding-left: 0;
|
|
padding-right: 12px;
|
|
}
|
|
[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary {
|
|
padding-left: 12px;
|
|
padding-right: 0;
|
|
}
|
|
.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary {
|
|
padding-left: 0;
|
|
padding-right: 0;
|
|
}
|
|
[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary {
|
|
padding-left: 0;
|
|
padding-right: 0;
|
|
}
|
|
|
|
.mdc-evolution-chip__action--secondary {
|
|
position: relative;
|
|
overflow: visible;
|
|
}
|
|
.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__action--secondary {
|
|
color: var(--%NS%mat-chip-with-trailing-icon-trailing-icon-color, var(--%NS%mat-sys-on-surface-variant));
|
|
}
|
|
.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__action--secondary {
|
|
color: var(--%NS%mat-chip-with-trailing-icon-disabled-trailing-icon-color, var(--%NS%mat-sys-on-surface));
|
|
}
|
|
.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--secondary, .mat-mdc-standard-chip.mdc-evolution-chip--with-leading-action .mdc-evolution-chip__action--secondary {
|
|
padding-left: 8px;
|
|
padding-right: 8px;
|
|
}
|
|
.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--secondary, .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-leading-action .mdc-evolution-chip__action--secondary {
|
|
padding-left: 8px;
|
|
padding-right: 8px;
|
|
}
|
|
.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--secondary, .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-leading-action .mdc-evolution-chip__action--secondary {
|
|
padding-left: 8px;
|
|
padding-right: 8px;
|
|
}
|
|
[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--secondary, [dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-leading-action .mdc-evolution-chip__action--secondary {
|
|
padding-left: 8px;
|
|
padding-right: 8px;
|
|
}
|
|
|
|
.mdc-evolution-chip__text-label {
|
|
-webkit-user-select: none;
|
|
user-select: none;
|
|
white-space: nowrap;
|
|
text-overflow: ellipsis;
|
|
overflow: hidden;
|
|
}
|
|
.mat-mdc-standard-chip .mdc-evolution-chip__text-label {
|
|
font-family: var(--%NS%mat-chip-label-text-font, var(--%NS%mat-sys-label-large-font));
|
|
line-height: var(--%NS%mat-chip-label-text-line-height, var(--%NS%mat-sys-label-large-line-height));
|
|
font-size: var(--%NS%mat-chip-label-text-size, var(--%NS%mat-sys-label-large-size));
|
|
font-weight: var(--%NS%mat-chip-label-text-weight, var(--%NS%mat-sys-label-large-weight));
|
|
letter-spacing: var(--%NS%mat-chip-label-text-tracking, var(--%NS%mat-sys-label-large-tracking));
|
|
}
|
|
.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__text-label {
|
|
color: var(--%NS%mat-chip-label-text-color, var(--%NS%mat-sys-on-surface-variant));
|
|
}
|
|
.mat-mdc-standard-chip.mdc-evolution-chip--%NS%selected:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__text-label {
|
|
color: var(--%NS%mat-chip-selected-label-text-color, var(--%NS%mat-sys-on-secondary-container));
|
|
}
|
|
.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__text-label, .mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled .mdc-evolution-chip__text-label {
|
|
color: var(--%NS%mat-chip-disabled-label-text-color, color-mix(in srgb, var(--%NS%mat-sys-on-surface) 38%, transparent));
|
|
}
|
|
|
|
.mdc-evolution-chip__graphic {
|
|
align-items: center;
|
|
display: inline-flex;
|
|
justify-content: center;
|
|
overflow: hidden;
|
|
pointer-events: none;
|
|
position: relative;
|
|
flex: 1 0 auto;
|
|
}
|
|
.mat-mdc-standard-chip .mdc-evolution-chip__graphic {
|
|
width: var(--%NS%mat-chip-with-avatar-avatar-size, 24px);
|
|
height: var(--%NS%mat-chip-with-avatar-avatar-size, 24px);
|
|
font-size: var(--%NS%mat-chip-with-avatar-avatar-size, 24px);
|
|
}
|
|
.mdc-evolution-chip--selecting .mdc-evolution-chip__graphic {
|
|
transition: width 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1);
|
|
}
|
|
.mdc-evolution-chip--%NS%selectable:not(.mdc-evolution-chip--selected):not(.mdc-evolution-chip--with-primary-icon) .mdc-evolution-chip__graphic {
|
|
width: 0;
|
|
}
|
|
.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic {
|
|
padding-left: 6px;
|
|
padding-right: 6px;
|
|
}
|
|
.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic {
|
|
padding-left: 4px;
|
|
padding-right: 8px;
|
|
}
|
|
[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic {
|
|
padding-left: 8px;
|
|
padding-right: 4px;
|
|
}
|
|
.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic {
|
|
padding-left: 6px;
|
|
padding-right: 6px;
|
|
}
|
|
.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic {
|
|
padding-left: 4px;
|
|
padding-right: 8px;
|
|
}
|
|
[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic {
|
|
padding-left: 8px;
|
|
padding-right: 4px;
|
|
}
|
|
.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-leading-action .mdc-evolution-chip__graphic {
|
|
padding-left: 0;
|
|
}
|
|
|
|
.mdc-evolution-chip__checkmark {
|
|
position: absolute;
|
|
opacity: 0;
|
|
top: 50%;
|
|
left: 50%;
|
|
height: 20px;
|
|
width: 20px;
|
|
}
|
|
.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__checkmark {
|
|
color: var(--%NS%mat-chip-with-icon-selected-icon-color, var(--%NS%mat-sys-on-secondary-container));
|
|
}
|
|
.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__checkmark {
|
|
color: var(--%NS%mat-chip-with-icon-disabled-icon-color, var(--%NS%mat-sys-on-surface));
|
|
}
|
|
.mdc-evolution-chip--selecting .mdc-evolution-chip__checkmark {
|
|
transition: transform 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1);
|
|
transform: translate(-75%, -50%);
|
|
}
|
|
.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark {
|
|
transform: translate(-50%, -50%);
|
|
opacity: 1;
|
|
}
|
|
|
|
.mdc-evolution-chip__checkmark-svg {
|
|
display: block;
|
|
}
|
|
|
|
.mdc-evolution-chip__checkmark-path {
|
|
stroke-width: 2px;
|
|
stroke-dasharray: 29.7833385;
|
|
stroke-dashoffset: 29.7833385;
|
|
stroke: currentColor;
|
|
}
|
|
.mdc-evolution-chip--selecting .mdc-evolution-chip__checkmark-path {
|
|
transition: stroke-dashoffset 150ms 45ms cubic-bezier(0.4, 0, 0.2, 1);
|
|
}
|
|
.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark-path {
|
|
stroke-dashoffset: 0;
|
|
}
|
|
@media (forced-colors: active) {
|
|
.mdc-evolution-chip__checkmark-path {
|
|
stroke: CanvasText !important;
|
|
}
|
|
}
|
|
|
|
.mat-mdc-standard-chip .mdc-evolution-chip__icon--trailing {
|
|
height: 18px;
|
|
width: 18px;
|
|
font-size: 18px;
|
|
}
|
|
.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing.mat-mdc-chip-remove {
|
|
opacity: calc(var(--%NS%mat-chip-trailing-action-opacity, 1) * var(--%NS%mat-chip-with-trailing-icon-disabled-trailing-icon-opacity, 0.38));
|
|
}
|
|
.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing.mat-mdc-chip-remove:focus {
|
|
opacity: calc(var(--%NS%mat-chip-trailing-action-focus-opacity, 1) * var(--%NS%mat-chip-with-trailing-icon-disabled-trailing-icon-opacity, 0.38));
|
|
}
|
|
|
|
.mat-mdc-standard-chip {
|
|
border-radius: var(--%NS%mat-chip-container-shape-radius, 8px);
|
|
height: var(--%NS%mat-chip-container-height, 32px);
|
|
}
|
|
.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) {
|
|
background-color: var(--%NS%mat-chip-elevated-container-color, transparent);
|
|
}
|
|
.mat-mdc-standard-chip.mdc-evolution-chip--disabled {
|
|
background-color: var(--%NS%mat-chip-elevated-disabled-container-color);
|
|
}
|
|
.mat-mdc-standard-chip.mdc-evolution-chip--%NS%selected:not(.mdc-evolution-chip--disabled) {
|
|
background-color: var(--%NS%mat-chip-elevated-selected-container-color, var(--%NS%mat-sys-secondary-container));
|
|
}
|
|
.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled {
|
|
background-color: var(--%NS%mat-chip-flat-disabled-selected-container-color, color-mix(in srgb, var(--%NS%mat-sys-on-surface) 12%, transparent));
|
|
}
|
|
@media (forced-colors: active) {
|
|
.mat-mdc-standard-chip {
|
|
outline: solid 1px;
|
|
}
|
|
}
|
|
|
|
.mat-mdc-standard-chip .mdc-evolution-chip__icon--primary {
|
|
border-radius: var(--%NS%mat-chip-with-avatar-avatar-shape-radius, 24px);
|
|
width: var(--%NS%mat-chip-with-icon-icon-size, 18px);
|
|
height: var(--%NS%mat-chip-with-icon-icon-size, 18px);
|
|
font-size: var(--%NS%mat-chip-with-icon-icon-size, 18px);
|
|
}
|
|
.mdc-evolution-chip--selected .mdc-evolution-chip__icon--primary {
|
|
opacity: 0;
|
|
}
|
|
.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__icon--primary {
|
|
color: var(--%NS%mat-chip-with-icon-icon-color, var(--%NS%mat-sys-on-surface-variant));
|
|
}
|
|
.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--primary {
|
|
color: var(--%NS%mat-chip-with-icon-disabled-icon-color, var(--%NS%mat-sys-on-surface));
|
|
}
|
|
|
|
.mat-mdc-chip-highlighted {
|
|
--%NS%mat-chip-with-icon-icon-color: var(--%NS%mat-chip-with-icon-selected-icon-color, var(--%NS%mat-sys-on-secondary-container));
|
|
--%NS%mat-chip-elevated-container-color: var(--%NS%mat-chip-elevated-selected-container-color, var(--%NS%mat-sys-secondary-container));
|
|
--%NS%mat-chip-label-text-color: var(--%NS%mat-chip-selected-label-text-color, var(--%NS%mat-sys-on-secondary-container));
|
|
--%NS%mat-chip-outline-width: var(--%NS%mat-chip-flat-selected-outline-width, 0);
|
|
}
|
|
|
|
.mat-mdc-chip-focus-overlay {
|
|
background: var(--%NS%mat-chip-focus-state-layer-color, var(--%NS%mat-sys-on-surface-variant));
|
|
}
|
|
.mat-mdc-chip-selected .mat-mdc-chip-focus-overlay, .mat-mdc-chip-highlighted .mat-mdc-chip-focus-overlay {
|
|
background: var(--%NS%mat-chip-selected-focus-state-layer-color, var(--%NS%mat-sys-on-secondary-container));
|
|
}
|
|
.mat-mdc-chip:hover .mat-mdc-chip-focus-overlay {
|
|
background: var(--%NS%mat-chip-hover-state-layer-color, var(--%NS%mat-sys-on-surface-variant));
|
|
opacity: var(--%NS%mat-chip-hover-state-layer-opacity, var(--%NS%mat-sys-hover-state-layer-opacity));
|
|
}
|
|
.mat-mdc-chip-focus-overlay .mat-mdc-chip-selected:hover, .mat-mdc-chip-highlighted:hover .mat-mdc-chip-focus-overlay {
|
|
background: var(--%NS%mat-chip-selected-hover-state-layer-color, var(--%NS%mat-sys-on-secondary-container));
|
|
opacity: var(--%NS%mat-chip-selected-hover-state-layer-opacity, var(--%NS%mat-sys-hover-state-layer-opacity));
|
|
}
|
|
.mat-mdc-chip.cdk-focused .mat-mdc-chip-focus-overlay {
|
|
background: var(--%NS%mat-chip-focus-state-layer-color, var(--%NS%mat-sys-on-surface-variant));
|
|
opacity: var(--%NS%mat-chip-focus-state-layer-opacity, var(--%NS%mat-sys-focus-state-layer-opacity));
|
|
}
|
|
.mat-mdc-chip-selected.cdk-focused .mat-mdc-chip-focus-overlay, .mat-mdc-chip-highlighted.cdk-focused .mat-mdc-chip-focus-overlay {
|
|
background: var(--%NS%mat-chip-selected-focus-state-layer-color, var(--%NS%mat-sys-on-secondary-container));
|
|
opacity: var(--%NS%mat-chip-selected-focus-state-layer-opacity, var(--%NS%mat-sys-focus-state-layer-opacity));
|
|
}
|
|
|
|
.mdc-evolution-chip--%NS%disabled:not(.mdc-evolution-chip--selected) .mat-mdc-chip-avatar {
|
|
opacity: var(--%NS%mat-chip-with-avatar-disabled-avatar-opacity, 0.38);
|
|
}
|
|
|
|
.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing {
|
|
opacity: var(--%NS%mat-chip-with-trailing-icon-disabled-trailing-icon-opacity, 0.38);
|
|
}
|
|
|
|
.mdc-evolution-chip--disabled.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark {
|
|
opacity: var(--%NS%mat-chip-with-icon-disabled-icon-opacity, 0.38);
|
|
}
|
|
|
|
.mat-mdc-standard-chip.mdc-evolution-chip--disabled {
|
|
opacity: var(--%NS%mat-chip-disabled-container-opacity, 1);
|
|
}
|
|
.mat-mdc-standard-chip.mdc-evolution-chip--selected .mdc-evolution-chip__icon--trailing, .mat-mdc-standard-chip.mat-mdc-chip-highlighted .mdc-evolution-chip__icon--trailing {
|
|
color: var(--%NS%mat-chip-selected-trailing-icon-color, var(--%NS%mat-sys-on-secondary-container));
|
|
}
|
|
.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing, .mat-mdc-standard-chip.mat-mdc-chip-highlighted.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing {
|
|
color: var(--%NS%mat-chip-selected-disabled-trailing-icon-color, var(--%NS%mat-sys-on-surface));
|
|
}
|
|
|
|
.mat-mdc-chip-edit, .mat-mdc-chip-remove {
|
|
opacity: var(--%NS%mat-chip-trailing-action-opacity, 1);
|
|
}
|
|
.mat-mdc-chip-edit:focus, .mat-mdc-chip-remove:focus {
|
|
opacity: var(--%NS%mat-chip-trailing-action-focus-opacity, 1);
|
|
}
|
|
.mat-mdc-chip-edit::after, .mat-mdc-chip-remove::after {
|
|
background-color: var(--%NS%mat-chip-trailing-action-state-layer-color, var(--%NS%mat-sys-on-surface-variant));
|
|
}
|
|
.mat-mdc-chip-edit:hover::after, .mat-mdc-chip-remove:hover::after {
|
|
opacity: calc(var(--%NS%mat-chip-hover-state-layer-opacity, var(--%NS%mat-sys-hover-state-layer-opacity)) + var(--%NS%mat-chip-trailing-action-hover-state-layer-opacity, var(--%NS%mat-sys-hover-state-layer-opacity)));
|
|
}
|
|
.mat-mdc-chip-edit:focus::after, .mat-mdc-chip-remove:focus::after {
|
|
opacity: calc(var(--%NS%mat-chip-hover-state-layer-opacity, var(--%NS%mat-sys-hover-state-layer-opacity)) + var(--%NS%mat-chip-trailing-action-focus-state-layer-opacity, var(--%NS%mat-sys-focus-state-layer-opacity)));
|
|
}
|
|
|
|
.mat-mdc-chip-selected .mat-mdc-chip-remove::after,
|
|
.mat-mdc-chip-highlighted .mat-mdc-chip-remove::after {
|
|
background-color: var(--%NS%mat-chip-selected-trailing-action-state-layer-color, var(--%NS%mat-sys-on-secondary-container));
|
|
}
|
|
|
|
.mat-mdc-chip.cdk-focused .mat-mdc-chip-edit:focus::after, .mat-mdc-chip.cdk-focused .mat-mdc-chip-remove:focus::after {
|
|
opacity: calc(var(--%NS%mat-chip-selected-focus-state-layer-opacity, var(--%NS%mat-sys-focus-state-layer-opacity)) + var(--%NS%mat-chip-trailing-action-focus-state-layer-opacity, var(--%NS%mat-sys-focus-state-layer-opacity)));
|
|
}
|
|
.mat-mdc-chip.cdk-focused .mat-mdc-chip-edit:hover::after, .mat-mdc-chip.cdk-focused .mat-mdc-chip-remove:hover::after {
|
|
opacity: calc(var(--%NS%mat-chip-selected-focus-state-layer-opacity, var(--%NS%mat-sys-focus-state-layer-opacity)) + var(--%NS%mat-chip-trailing-action-hover-state-layer-opacity, var(--%NS%mat-sys-hover-state-layer-opacity)));
|
|
}
|
|
|
|
.mat-mdc-standard-chip {
|
|
-webkit-tap-highlight-color: transparent;
|
|
}
|
|
.mat-mdc-standard-chip .mat-mdc-chip-graphic,
|
|
.mat-mdc-standard-chip .mat-mdc-chip-trailing-icon {
|
|
box-sizing: content-box;
|
|
}
|
|
.mat-mdc-standard-chip._mat-animation-noopable,
|
|
.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__graphic,
|
|
.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__checkmark,
|
|
.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__checkmark-path {
|
|
transition-duration: 1ms;
|
|
animation-duration: 1ms;
|
|
}
|
|
|
|
.mat-mdc-chip-focus-overlay {
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
position: absolute;
|
|
pointer-events: none;
|
|
opacity: 0;
|
|
border-radius: inherit;
|
|
transition: opacity 150ms linear;
|
|
}
|
|
._mat-animation-noopable .mat-mdc-chip-focus-overlay {
|
|
transition: none;
|
|
}
|
|
.mat-mdc-basic-chip .mat-mdc-chip-focus-overlay {
|
|
display: none;
|
|
}
|
|
|
|
.mat-mdc-chip .mat-ripple.mat-mdc-chip-ripple {
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
position: absolute;
|
|
pointer-events: none;
|
|
border-radius: inherit;
|
|
}
|
|
|
|
.mat-mdc-chip-avatar {
|
|
text-align: center;
|
|
line-height: 1;
|
|
color: var(--%NS%mat-chip-with-icon-icon-color, currentColor);
|
|
}
|
|
|
|
.mat-mdc-chip {
|
|
position: relative;
|
|
z-index: 0;
|
|
}
|
|
|
|
.mat-mdc-chip-action-label {
|
|
text-align: left;
|
|
z-index: 1;
|
|
}
|
|
[dir=rtl] .mat-mdc-chip-action-label {
|
|
text-align: right;
|
|
}
|
|
.mat-mdc-chip.mdc-evolution-chip--with-trailing-action .mat-mdc-chip-action-label {
|
|
position: relative;
|
|
}
|
|
.mat-mdc-chip-action-label .mat-mdc-chip-primary-focus-indicator {
|
|
position: absolute;
|
|
top: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
left: 0;
|
|
pointer-events: none;
|
|
}
|
|
.mat-mdc-chip-action-label .mat-focus-indicator::before {
|
|
margin: calc(calc(var(--%NS%mat-focus-indicator-border-width, 3px) + 2px) * -1);
|
|
}
|
|
|
|
.mat-mdc-chip-edit::before, .mat-mdc-chip-remove::before {
|
|
margin: calc(var(--%NS%mat-focus-indicator-border-width, 3px) * -1);
|
|
left: 8px;
|
|
right: 8px;
|
|
}
|
|
.mat-mdc-chip-edit::after, .mat-mdc-chip-remove::after {
|
|
content: "";
|
|
display: block;
|
|
opacity: 0;
|
|
position: absolute;
|
|
top: -3px;
|
|
bottom: -3px;
|
|
left: 5px;
|
|
right: 5px;
|
|
border-radius: 50%;
|
|
box-sizing: border-box;
|
|
padding: 12px;
|
|
margin: -12px;
|
|
background-clip: content-box;
|
|
}
|
|
.mat-mdc-chip-edit .mat-icon, .mat-mdc-chip-remove .mat-icon {
|
|
width: 18px;
|
|
height: 18px;
|
|
font-size: 18px;
|
|
box-sizing: content-box;
|
|
}
|
|
|
|
.mat-chip-edit-input {
|
|
cursor: text;
|
|
display: inline-block;
|
|
color: inherit;
|
|
outline: 0;
|
|
}
|
|
|
|
@media (forced-colors: active) {
|
|
.mat-mdc-chip-selected:not(.mat-mdc-chip-multiple) {
|
|
outline-width: 3px;
|
|
}
|
|
}
|
|
|
|
.mat-mdc-chip-action:focus-visible .mat-focus-indicator::before {
|
|
content: "";
|
|
}
|
|
|
|
.mdc-evolution-chip__icon, .mat-mdc-chip-edit .mat-icon, .mat-mdc-chip-remove .mat-icon {
|
|
min-height: fit-content;
|
|
}
|
|
|
|
img.mdc-evolution-chip__icon {
|
|
min-height: 0;
|
|
}
|
|
`],encapsulation:2})})()}return n})(),Iy=(()=>{class n{_elementRef=c(R);_changeDetectorRef=c(xt);_dir=c(de,{optional:!0});_lastDestroyedFocusedChipIndex=null;_keyManager;_destroyed=new E;_defaultRole="presentation";get chipFocusChanges(){return this._getChipStream(t=>t._onFocus)}get chipDestroyedChanges(){return this._getChipStream(t=>t.destroyed)}get chipRemovedChanges(){return this._getChipStream(t=>t.removed)}get disabled(){return this._disabled}set disabled(t){this._disabled=t,this._syncChipsState()}_disabled=!1;get empty(){return!this._chips||this._chips.length===0}get role(){return this._explicitRole?this._explicitRole:this.empty?null:this._defaultRole}tabIndex=0;set role(t){this._explicitRole=t}_explicitRole=null;get focused(){return this._hasFocusedChip()}_chips;_chipActions=new ei;ngAfterViewInit(){this._setUpFocusManagement(),this._trackChipSetChanges(),this._trackDestroyedFocusedChip()}ngOnDestroy(){this._keyManager?.destroy(),this._chipActions.destroy(),this._destroyed.next(),this._destroyed.complete()}_hasFocusedChip(){return this._chips&&this._chips.some(t=>t._hasFocus())}_syncChipsState(){this._chips?.forEach(t=>{t._chipListDisabled=this._disabled,t._changeDetectorRef.markForCheck()})}focus(){}_handleKeydown(t){this._originatesFromChip(t)&&this._keyManager.onKeydown(t)}_isValidIndex(t){return t>=0&&t<this._chips.length}_allowFocusEscape(){let t=this._elementRef.nativeElement.tabIndex;t!==-1&&(this._elementRef.nativeElement.tabIndex=-1,setTimeout(()=>this._elementRef.nativeElement.tabIndex=t))}_getChipStream(t){return this._chips.changes.pipe(Ft(null),Mt(()=>Qt(...this._chips.map(t))))}_originatesFromChip(t){let e=t.target;for(;e&&e!==this._elementRef.nativeElement;){if(e.classList.contains("mat-mdc-chip"))return!0;e=e.parentElement}return!1}_setUpFocusManagement(){this._chips.changes.pipe(Ft(this._chips)).subscribe(t=>{let e=[];t.forEach(a=>a._getActions().forEach(r=>e.push(r))),this._chipActions.reset(e),this._chipActions.notifyOnChanges()}),this._keyManager=new hi(this._chipActions).withVerticalOrientation().withHorizontalOrientation(this._dir?this._dir.value:"ltr").withHomeAndEnd().skipPredicate(t=>this._skipPredicate(t)),this.chipFocusChanges.pipe(kt(this._destroyed)).subscribe(({chip:t})=>{let e=t._getSourceAction(document.activeElement);e&&this._keyManager.updateActiveItem(e)}),this._dir?.change.pipe(kt(this._destroyed)).subscribe(t=>this._keyManager.withHorizontalOrientation(t))}_skipPredicate(t){return t.disabled}_trackChipSetChanges(){this._chips.changes.pipe(Ft(null),kt(this._destroyed)).subscribe(()=>{this.disabled&&Promise.resolve().then(()=>this._syncChipsState()),this._redirectDestroyedChipFocus()})}_trackDestroyedFocusedChip(){this.chipDestroyedChanges.pipe(kt(this._destroyed)).subscribe(t=>{let a=this._chips.toArray().indexOf(t.chip),r=t.chip._hasFocus(),o=t.chip._hadFocusOnRemove&&this._keyManager.activeItem&&t.chip._getActions().includes(this._keyManager.activeItem),s=r||o;this._isValidIndex(a)&&s&&(this._lastDestroyedFocusedChipIndex=a)})}_redirectDestroyedChipFocus(){if(this._lastDestroyedFocusedChipIndex!=null){if(this._chips.length){let t=Math.min(this._lastDestroyedFocusedChipIndex,this._chips.length-1),e=this._chips.toArray()[t];e.disabled?this._chips.length===1?this.focus():this._keyManager.setPreviousItemActive():e.focus()}else this.focus();this._lastDestroyedFocusedChipIndex=null}}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=(function(){return S({type:n,selectors:[["mat-chip-set"]],contentQueries:function(a,r,o){if(a&1&&ne(o,hd,5),a&2){let s;P(s=L())&&(r._chips=s)}},hostAttrs:[1,"mat-mdc-chip-set","mdc-evolution-chip-set"],hostVars:1,hostBindings:function(a,r){a&1&&B("keydown",function(s){return r._handleKeydown(s)}),a&2&&H("role",r.role)},inputs:{disabled:[2,"disabled","disabled",j],role:"role",tabIndex:[2,"tabIndex","tabIndex",e=>e==null?0:Li(e)]},ngContentSelectors:["*"],decls:2,vars:0,consts:[["role","presentation",1,"mdc-evolution-chip-set__chips"]],template:function(a,r){a&1&&(_t(),qt(0,"div",0),V(1),te())},styles:[`.mat-mdc-chip-set {
|
|
display: flex;
|
|
}
|
|
.mat-mdc-chip-set:focus {
|
|
outline: none;
|
|
}
|
|
.mat-mdc-chip-set .mdc-evolution-chip-set__chips {
|
|
min-width: 100%;
|
|
margin-left: -8px;
|
|
margin-right: 0;
|
|
}
|
|
.mat-mdc-chip-set .mdc-evolution-chip {
|
|
margin: 8px 0 8px 8px;
|
|
}
|
|
[dir=rtl] .mat-mdc-chip-set .mdc-evolution-chip-set__chips {
|
|
margin-left: 0;
|
|
margin-right: -8px;
|
|
}
|
|
[dir=rtl] .mat-mdc-chip-set .mdc-evolution-chip {
|
|
margin-left: 0;
|
|
margin-right: 8px;
|
|
}
|
|
|
|
.mdc-evolution-chip-set__chips {
|
|
display: flex;
|
|
flex-flow: wrap;
|
|
min-width: 0;
|
|
}
|
|
|
|
.mat-mdc-chip-set-stacked {
|
|
flex-direction: column;
|
|
align-items: flex-start;
|
|
}
|
|
.mat-mdc-chip-set-stacked .mat-mdc-chip {
|
|
width: 100%;
|
|
}
|
|
.mat-mdc-chip-set-stacked .mdc-evolution-chip__graphic {
|
|
flex-grow: 0;
|
|
}
|
|
.mat-mdc-chip-set-stacked .mdc-evolution-chip__action--primary {
|
|
flex-basis: 100%;
|
|
justify-content: start;
|
|
}
|
|
|
|
input.mat-mdc-chip-input {
|
|
flex: 1 0 150px;
|
|
margin-left: 8px;
|
|
}
|
|
[dir=rtl] input.mat-mdc-chip-input {
|
|
margin-left: 0;
|
|
margin-right: 8px;
|
|
}
|
|
.mat-mdc-form-field:not(.mat-form-field-hide-placeholder) input.mat-mdc-chip-input::placeholder {
|
|
opacity: 1;
|
|
}
|
|
.mat-mdc-form-field:not(.mat-form-field-hide-placeholder) input.mat-mdc-chip-input::-moz-placeholder {
|
|
opacity: 1;
|
|
}
|
|
.mat-mdc-form-field:not(.mat-form-field-hide-placeholder) input.mat-mdc-chip-input::-webkit-input-placeholder {
|
|
opacity: 1;
|
|
}
|
|
.mat-mdc-form-field:not(.mat-form-field-hide-placeholder) input.mat-mdc-chip-input:-ms-input-placeholder {
|
|
opacity: 1;
|
|
}
|
|
.mat-mdc-chip-set + input.mat-mdc-chip-input {
|
|
margin-left: 0;
|
|
margin-right: 0;
|
|
}
|
|
`],encapsulation:2})})()}return n})();var pd=class{source;value;constructor(i,t){this.source=i,this.value=t}},Gs=(()=>{class n extends Iy{ngControl=c($e,{optional:!0,self:!0});controlType="mat-chip-grid";_chipInput;_defaultRole="grid";_errorStateTracker;_uid=c(St).getId("mat-chip-grid-");_ariaDescribedbyIds=[];_onTouched=()=>{};_onChange=()=>{};get disabled(){return this.ngControl?!!this.ngControl.disabled:this._disabled}set disabled(t){this._disabled=t,this._syncChipsState(),this.stateChanges.next()}get id(){return this._chipInput?this._chipInput.id:this._uid}get empty(){return(!this._chipInput||this._chipInput.empty)&&(!this._chips||this._chips.length===0)}get placeholder(){return this._chipInput?this._chipInput.placeholder:this._placeholder}set placeholder(t){this._placeholder=t,this.stateChanges.next()}_placeholder="";get focused(){return this._chipInput?.focused||this._hasFocusedChip()}get required(){return this._required??this.ngControl?.control?.hasValidator(xi.required)??!1}set required(t){this._required=t,this.stateChanges.next()}_required;get shouldLabelFloat(){return!this.empty||this.focused}get value(){return this._value}set value(t){this._value=t}_value=[];get errorStateMatcher(){return this._errorStateTracker.matcher}set errorStateMatcher(t){this._errorStateTracker.matcher=t}get chipBlurChanges(){return this._getChipStream(t=>t._onBlur)}change=new Q;valueChange=new Q;_chips=void 0;stateChanges=new E;get errorState(){return this._errorStateTracker.errorState}set errorState(t){this._errorStateTracker.errorState=t}constructor(){super();let t=c(ye,{optional:!0}),e=c(Rr,{optional:!0}),a=c(js),r=c(Bs,{optional:!0,self:!0});this.ngControl&&(this.ngControl.valueAccessor=this),this._errorStateTracker=new Sa(a,r||this.ngControl,e,t,this.stateChanges)}ngAfterContentInit(){this.chipBlurChanges.pipe(kt(this._destroyed)).subscribe(()=>{this._blur(),this.stateChanges.next()}),Qt(this.chipFocusChanges,this._chips.changes).pipe(kt(this._destroyed)).subscribe(()=>this.stateChanges.next())}ngDoCheck(){this.ngControl&&this.updateErrorState()}ngOnDestroy(){super.ngOnDestroy(),this.stateChanges.complete()}registerInput(t){this._chipInput=t,this._chipInput.setDescribedByIds(this._ariaDescribedbyIds),this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(t){!this.disabled&&!this._originatesFromChip(t)&&this.focus()}focus(){if(!(this.disabled||this._chipInput?.focused)){if(!this._chips.length||this._chips.first.disabled){if(!this._chipInput)return;Promise.resolve().then(()=>this._chipInput.focus())}else{let t=this._keyManager.activeItem;t?t.focus():this._keyManager.setFirstItemActive()}this.stateChanges.next()}}get describedByIds(){if(this._chipInput)return this._chipInput.describedByIds||[];let t=this._elementRef.nativeElement.getAttribute("aria-describedby");return t?t.split(" "):[]}setDescribedByIds(t){this._ariaDescribedbyIds=t,this._chipInput?this._chipInput.setDescribedByIds(t):t.length?this._elementRef.nativeElement.setAttribute("aria-describedby",t.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}writeValue(t){this._value=t}registerOnChange(t){this._onChange=t}registerOnTouched(t){this._onTouched=t}setDisabledState(t){this.disabled=t,this.stateChanges.next()}updateErrorState(){this._errorStateTracker.updateErrorState()}_blur(){this.disabled||setTimeout(()=>{this.focused||(this._propagateChanges(),this._markAsTouched())})}_allowFocusEscape(){this._chipInput?.focused||super._allowFocusEscape()}_handleKeydown(t){let e=t.keyCode,a=this._keyManager.activeItem;if(e===9)this._chipInput?.focused&&ie(t,"shiftKey")&&this._chips.length&&!this._chips.last.disabled?(t.preventDefault(),a?this._keyManager.setActiveItem(a):this._focusLastChip()):super._allowFocusEscape();else if(!this._chipInput?.focused)if((e===38||e===40)&&a){let r=this._chipActions.filter(l=>l._isPrimary===a._isPrimary&&!this._skipPredicate(l)),o=r.indexOf(a),s=t.keyCode===38?-1:1;t.preventDefault(),o>-1&&this._isValidIndex(o+s)&&this._keyManager.setActiveItem(r[o+s])}else super._handleKeydown(t);this.stateChanges.next()}_redirectDestroyedChipFocus(){this._lastDestroyedFocusedChipIndex!==null&&(super._redirectDestroyedChipFocus(),(!this._chips.length||this._chips.length===1&&this._chips.first.disabled)&&this._keyManager.updateActiveItem(-1))}_focusLastChip(){this._chips.length&&this._chips.last.focus()}_propagateChanges(){let t=this._chips.length?this._chips.toArray().map(e=>e.value):[];this._value=t,this.change.emit(new pd(this,t)),this.valueChange.emit(t),this._onChange(t),this._changeDetectorRef.markForCheck()}_markAsTouched(){this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next()}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=(function(){let t=["*"];return S({type:n,selectors:[["mat-chip-grid"]],contentQueries:function(a,r,o){if(a&1&&ne(o,Lr,5),a&2){let s;P(s=L())&&(r._chips=s)}},hostAttrs:[1,"mat-mdc-chip-set","mat-mdc-chip-grid","mdc-evolution-chip-set"],hostVars:10,hostBindings:function(a,r){a&1&&B("focus",function(){return r.focus()})("blur",function(){return r._blur()}),a&2&&(H("role",r.role)("tabindex",r.disabled||r._chips&&r._chips.length===0?-1:r.tabIndex)("aria-disabled",r.disabled.toString())("aria-invalid",r.errorState),z("mat-mdc-chip-list-disabled",r.disabled)("mat-mdc-chip-list-invalid",r.errorState)("mat-mdc-chip-list-required",r.required))},inputs:{disabled:[2,"disabled","disabled",j],placeholder:"placeholder",required:[2,"required","required",j],value:"value",errorStateMatcher:"errorStateMatcher"},outputs:{change:"change",valueChange:"valueChange"},features:[ft([{provide:Or,useExisting:n}]),ot],ngContentSelectors:t,decls:2,vars:0,consts:[["role","presentation",1,"mdc-evolution-chip-set__chips"]],template:function(a,r){a&1&&(_t(),qt(0,"div",0),V(1),te())},styles:[`.mat-mdc-chip-set {
|
|
display: flex;
|
|
}
|
|
.mat-mdc-chip-set:focus {
|
|
outline: none;
|
|
}
|
|
.mat-mdc-chip-set .mdc-evolution-chip-set__chips {
|
|
min-width: 100%;
|
|
margin-left: -8px;
|
|
margin-right: 0;
|
|
}
|
|
.mat-mdc-chip-set .mdc-evolution-chip {
|
|
margin: 8px 0 8px 8px;
|
|
}
|
|
[dir=rtl] .mat-mdc-chip-set .mdc-evolution-chip-set__chips {
|
|
margin-left: 0;
|
|
margin-right: -8px;
|
|
}
|
|
[dir=rtl] .mat-mdc-chip-set .mdc-evolution-chip {
|
|
margin-left: 0;
|
|
margin-right: 8px;
|
|
}
|
|
|
|
.mdc-evolution-chip-set__chips {
|
|
display: flex;
|
|
flex-flow: wrap;
|
|
min-width: 0;
|
|
}
|
|
|
|
.mat-mdc-chip-set-stacked {
|
|
flex-direction: column;
|
|
align-items: flex-start;
|
|
}
|
|
.mat-mdc-chip-set-stacked .mat-mdc-chip {
|
|
width: 100%;
|
|
}
|
|
.mat-mdc-chip-set-stacked .mdc-evolution-chip__graphic {
|
|
flex-grow: 0;
|
|
}
|
|
.mat-mdc-chip-set-stacked .mdc-evolution-chip__action--primary {
|
|
flex-basis: 100%;
|
|
justify-content: start;
|
|
}
|
|
|
|
input.mat-mdc-chip-input {
|
|
flex: 1 0 150px;
|
|
margin-left: 8px;
|
|
}
|
|
[dir=rtl] input.mat-mdc-chip-input {
|
|
margin-left: 0;
|
|
margin-right: 8px;
|
|
}
|
|
.mat-mdc-form-field:not(.mat-form-field-hide-placeholder) input.mat-mdc-chip-input::placeholder {
|
|
opacity: 1;
|
|
}
|
|
.mat-mdc-form-field:not(.mat-form-field-hide-placeholder) input.mat-mdc-chip-input::-moz-placeholder {
|
|
opacity: 1;
|
|
}
|
|
.mat-mdc-form-field:not(.mat-form-field-hide-placeholder) input.mat-mdc-chip-input::-webkit-input-placeholder {
|
|
opacity: 1;
|
|
}
|
|
.mat-mdc-form-field:not(.mat-form-field-hide-placeholder) input.mat-mdc-chip-input:-ms-input-placeholder {
|
|
opacity: 1;
|
|
}
|
|
.mat-mdc-chip-set + input.mat-mdc-chip-input {
|
|
margin-left: 0;
|
|
margin-right: 0;
|
|
}
|
|
`],encapsulation:2})})()}return n})(),lf=(()=>{class n{_elementRef=c(R);focused=!1;get chipGrid(){return this._chipGrid}set chipGrid(t){t&&(this._chipGrid=t,this._chipGrid.registerInput(this))}_chipGrid;addOnBlur=!1;separatorKeyCodes;chipEnd=new Q;placeholder="";id=c(St).getId("mat-mdc-chip-list-input-");get disabled(){return this._disabled||this._chipGrid&&this._chipGrid.disabled}set disabled(t){this._disabled=t}_disabled=!1;readonly=!1;disabledInteractive;get empty(){return!this.inputElement.value}inputElement;constructor(){let t=c(Ny),e=c(Ci,{optional:!0});this.inputElement=this._elementRef.nativeElement,this.separatorKeyCodes=t.separatorKeyCodes,this.disabledInteractive=t.inputDisabledInteractive??!1,e&&this.inputElement.classList.add("mat-mdc-form-field-input-control")}ngOnChanges(){this._chipGrid.stateChanges.next()}ngOnDestroy(){this.chipEnd.complete()}_keydown(t){this.empty&&t.keyCode===8?(t.repeat||this._chipGrid._focusLastChip(),t.preventDefault()):this._emitChipEnd(t)}_blur(){this.addOnBlur&&this._emitChipEnd(),this.focused=!1,this._chipGrid.focused||this._chipGrid._blur(),this._chipGrid.stateChanges.next()}_focus(){this.focused=!0,this._chipGrid.stateChanges.next()}_emitChipEnd(t){(!t||this._isSeparatorKey(t)&&!t.repeat)&&(this.chipEnd.emit({input:this.inputElement,value:this.inputElement.value,chipInput:this}),t?.preventDefault())}_onInput(){this._chipGrid.stateChanges.next()}focus(){this.inputElement.focus()}clear(){this.inputElement.value=""}get describedByIds(){return this._elementRef.nativeElement.getAttribute("aria-describedby")?.split(" ")||[]}setDescribedByIds(t){let e=this._elementRef.nativeElement;t.length?e.setAttribute("aria-describedby",t.join(" ")):e.removeAttribute("aria-describedby")}_isSeparatorKey(t){if(!this.separatorKeyCodes)return!1;for(let e of this.separatorKeyCodes){let a,r;typeof e=="number"?(a=e,r=null):(a=e.keyCode,r=e.modifiers);let o=r?.length?ie(t,...r):!ie(t);if(a===t.keyCode&&o)return!0}return!1}_getReadonlyAttribute(){return this.readonly||this.disabled&&this.disabledInteractive?"true":null}static \u0275fac=function(e){return new(e||n)};static \u0275dir=x({type:n,selectors:[["input","matChipInputFor",""]],hostAttrs:[1,"mat-mdc-chip-input","mat-mdc-input-element","mdc-text-field__input","mat-input-element"],hostVars:8,hostBindings:function(e,a){e&1&&B("keydown",function(o){return a._keydown(o)})("blur",function(){return a._blur()})("focus",function(){return a._focus()})("input",function(){return a._onInput()}),e&2&&(ee("id",a.id),H("disabled",a.disabled&&!a.disabledInteractive?"":null)("placeholder",a.placeholder||null)("aria-invalid",a._chipGrid&&a._chipGrid.ngControl?a._chipGrid.ngControl.invalid:null)("aria-required",a._chipGrid&&a._chipGrid.required||null)("aria-disabled",a.disabled&&a.disabledInteractive?"true":null)("readonly",a._getReadonlyAttribute())("required",a._chipGrid&&a._chipGrid.required||null))},inputs:{chipGrid:[0,"matChipInputFor","chipGrid"],addOnBlur:[2,"matChipInputAddOnBlur","addOnBlur",j],separatorKeyCodes:[0,"matChipInputSeparatorKeyCodes","separatorKeyCodes"],placeholder:"placeholder",id:"id",disabled:[2,"disabled","disabled",j],readonly:[2,"readonly","readonly",j],disabledInteractive:[2,"matChipInputDisabledInteractive","disabledInteractive",j]},outputs:{chipEnd:"matChipInputTokenEnd"},exportAs:["matChipInput","matChipInputFor"],features:[Dt]})}return n})();var gd=new v("MAT_OPTION_PARENT_COMPONENT"),bd=new v("MatOptgroup");var Br=class{source;isUserInput;constructor(i,t=!1){this.source=i,this.isUserInput=t}},Ca=(()=>{class n{_element=c(R);_changeDetectorRef=c(xt);_parent=c(gd,{optional:!0});group=c(bd,{optional:!0});_signalDisableRipple=!1;_selected=!1;_active=!1;_mostRecentViewValue="";get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}value;id=c(St).getId("mat-option-");get disabled(){return this.group&&this.group.disabled||this._disabled()}set disabled(t){this._disabled.set(t)}_disabled=X(!1);get disableRipple(){return this._signalDisableRipple?this._parent.disableRipple():!!this._parent?.disableRipple}get hideSingleSelectionIndicator(){return!!(this._parent&&this._parent.hideSingleSelectionIndicator)}onSelectionChange=new Q;_text;_stateChanges=new E;constructor(){let t=c(Bt);t.load(en),t.load(na),this._signalDisableRipple=!!this._parent&&Re(this._parent.disableRipple)}get active(){return this._active}get viewValue(){return(this._text?.nativeElement.textContent||"").trim()}select(t=!0){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),t&&this._emitSelectionChangeEvent())}deselect(t=!0){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),t&&this._emitSelectionChangeEvent())}focus(t,e){let a=this._getHostElement();typeof a.focus=="function"&&a.focus(e)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(t){(t.keyCode===13||t.keyCode===32)&&!ie(t)&&(this._selectViaInteraction(),t.preventDefault())}_selectViaInteraction(){this.disabled||(this._selected=this.multiple?!this._selected:!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._element.nativeElement}ngAfterViewChecked(){if(this._selected){let t=this.viewValue;t!==this._mostRecentViewValue&&(this._mostRecentViewValue&&this._stateChanges.next(),this._mostRecentViewValue=t)}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(t=!1){this.onSelectionChange.emit(new Br(this,t))}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=(function(){let t=["text"],e=[[["mat-icon"]],"*"],a=["mat-icon","*"];function r(l,d){if(l&1&&dt(0,"mat-pseudo-checkbox",1),l&2){let m=w();mt("disabled",m.disabled)("state",m.selected?"checked":"unchecked")}}function o(l,d){if(l&1&&dt(0,"mat-pseudo-checkbox",3),l&2){let m=w();mt("disabled",m.disabled)}}function s(l,d){if(l&1&&(h(0,"span",4),f(1),u()),l&2){let m=w();p(),It("(",m.group.label,")")}}return S({type:n,selectors:[["mat-option"]],viewQuery:function(d,m){if(d&1&&Kt(t,7),d&2){let _;P(_=L())&&(m._text=_.first)}},hostAttrs:["role","option",1,"mat-mdc-option","mdc-list-item"],hostVars:11,hostBindings:function(d,m){d&1&&B("click",function(){return m._selectViaInteraction()})("keydown",function(b){return m._handleKeydown(b)}),d&2&&(ee("id",m.id),H("aria-selected",m.selected)("aria-disabled",m.disabled.toString()),z("mdc-list-item--selected",m.selected)("mat-mdc-option-multiple",m.multiple)("mat-mdc-option-active",m.active)("mdc-list-item--disabled",m.disabled))},inputs:{value:"value",id:"id",disabled:[2,"disabled","disabled",j]},outputs:{onSelectionChange:"onSelectionChange"},exportAs:["matOption"],ngContentSelectors:a,decls:8,vars:5,consts:[["text",""],["aria-hidden","true",1,"mat-mdc-option-pseudo-checkbox",3,"disabled","state"],[1,"mdc-list-item__primary-text"],["state","checked","aria-hidden","true","appearance","minimal",1,"mat-mdc-option-pseudo-checkbox",3,"disabled"],[1,"cdk-visually-hidden"],["aria-hidden","true","mat-ripple","",1,"mat-mdc-option-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled"]],template:function(d,m){d&1&&(_t(e),C(0,r,1,2,"mat-pseudo-checkbox",1),V(1),h(2,"span",2,0),V(4,1),u(),C(5,o,1,1,"mat-pseudo-checkbox",3),C(6,s,2,1,"span",4),dt(7,"div",5)),d&2&&(k(m.multiple?0:-1),p(5),k(!m.multiple&&m.selected&&!m.hideSingleSelectionIndicator?5:-1),p(),k(m.group&&m.group._inert?6:-1),p(),mt("matRippleTrigger",m._getHostElement())("matRippleDisabled",m.disabled||m.disableRipple))},dependencies:[Lp,fs],styles:[`.mat-mdc-option {
|
|
-webkit-user-select: none;
|
|
user-select: none;
|
|
-moz-osx-font-smoothing: grayscale;
|
|
-webkit-font-smoothing: antialiased;
|
|
display: flex;
|
|
position: relative;
|
|
align-items: center;
|
|
justify-content: flex-start;
|
|
overflow: hidden;
|
|
min-height: 48px;
|
|
padding: 0 16px;
|
|
cursor: pointer;
|
|
-webkit-tap-highlight-color: transparent;
|
|
color: var(--%NS%mat-option-label-text-color, var(--%NS%mat-sys-on-surface));
|
|
font-family: var(--%NS%mat-option-label-text-font, var(--%NS%mat-sys-label-large-font));
|
|
line-height: var(--%NS%mat-option-label-text-line-height, var(--%NS%mat-sys-label-large-line-height));
|
|
font-size: var(--%NS%mat-option-label-text-size, var(--%NS%mat-sys-body-large-size));
|
|
letter-spacing: var(--%NS%mat-option-label-text-tracking, var(--%NS%mat-sys-label-large-tracking));
|
|
font-weight: var(--%NS%mat-option-label-text-weight, var(--%NS%mat-sys-body-large-weight));
|
|
}
|
|
.mat-mdc-option:hover:not(.mdc-list-item--disabled) {
|
|
background-color: var(--%NS%mat-option-hover-state-layer-color, color-mix(in srgb, var(--%NS%mat-sys-on-surface) calc(var(--%NS%mat-sys-hover-state-layer-opacity) * 100%), transparent));
|
|
}
|
|
.mat-mdc-option:focus.mdc-list-item, .mat-mdc-option.mat-mdc-option-active.mdc-list-item {
|
|
background-color: var(--%NS%mat-option-focus-state-layer-color, color-mix(in srgb, var(--%NS%mat-sys-on-surface) calc(var(--%NS%mat-sys-focus-state-layer-opacity) * 100%), transparent));
|
|
outline: 0;
|
|
}
|
|
.mat-mdc-option.mdc-list-item--%NS%selected:not(.mdc-list-item--disabled):not(.mat-mdc-option-active, .mat-mdc-option-multiple, :focus, :hover) {
|
|
background-color: var(--%NS%mat-option-selected-state-layer-color, var(--%NS%mat-sys-secondary-container));
|
|
}
|
|
.mat-mdc-option.mdc-list-item--%NS%selected:not(.mdc-list-item--disabled):not(.mat-mdc-option-active, .mat-mdc-option-multiple, :focus, :hover) .mdc-list-item__primary-text {
|
|
color: var(--%NS%mat-option-selected-state-label-text-color, var(--%NS%mat-sys-on-secondary-container));
|
|
}
|
|
.mat-mdc-option .mat-pseudo-checkbox {
|
|
--%NS%mat-pseudo-checkbox-minimal-selected-checkmark-color: var(--%NS%mat-option-selected-state-label-text-color, var(--%NS%mat-sys-on-secondary-container));
|
|
}
|
|
.mat-mdc-option.mdc-list-item {
|
|
align-items: center;
|
|
background: transparent;
|
|
}
|
|
.mat-mdc-option.mdc-list-item--disabled {
|
|
cursor: default;
|
|
pointer-events: none;
|
|
}
|
|
.mat-mdc-option.mdc-list-item--disabled .mat-mdc-option-pseudo-checkbox, .mat-mdc-option.mdc-list-item--disabled .mdc-list-item__primary-text, .mat-mdc-option.mdc-list-item--disabled > mat-icon {
|
|
opacity: 0.38;
|
|
}
|
|
.mat-mdc-optgroup .mat-mdc-option:not(.mat-mdc-option-multiple) {
|
|
padding-left: 32px;
|
|
}
|
|
[dir=rtl] .mat-mdc-optgroup .mat-mdc-option:not(.mat-mdc-option-multiple) {
|
|
padding-left: 16px;
|
|
padding-right: 32px;
|
|
}
|
|
.mat-mdc-option .mat-icon,
|
|
.mat-mdc-option .mat-pseudo-checkbox-full {
|
|
margin-right: 16px;
|
|
flex-shrink: 0;
|
|
}
|
|
[dir=rtl] .mat-mdc-option .mat-icon,
|
|
[dir=rtl] .mat-mdc-option .mat-pseudo-checkbox-full {
|
|
margin-right: 0;
|
|
margin-left: 16px;
|
|
}
|
|
.mat-mdc-option .mat-pseudo-checkbox-minimal {
|
|
margin-left: 16px;
|
|
flex-shrink: 0;
|
|
}
|
|
[dir=rtl] .mat-mdc-option .mat-pseudo-checkbox-minimal {
|
|
margin-right: 16px;
|
|
margin-left: 0;
|
|
}
|
|
.mat-mdc-option .mat-mdc-option-ripple {
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
position: absolute;
|
|
pointer-events: none;
|
|
}
|
|
.mat-mdc-option .mdc-list-item__primary-text {
|
|
white-space: normal;
|
|
font-size: inherit;
|
|
font-weight: inherit;
|
|
letter-spacing: inherit;
|
|
line-height: inherit;
|
|
font-family: inherit;
|
|
text-decoration: inherit;
|
|
text-transform: inherit;
|
|
margin-right: auto;
|
|
}
|
|
[dir=rtl] .mat-mdc-option .mdc-list-item__primary-text {
|
|
margin-right: 0;
|
|
margin-left: auto;
|
|
}
|
|
@media (forced-colors: active) {
|
|
.mat-mdc-option.mdc-list-item--%NS%selected:not(:has(.mat-mdc-option-pseudo-checkbox))::after {
|
|
content: "";
|
|
position: absolute;
|
|
top: 50%;
|
|
right: 16px;
|
|
transform: translateY(-50%);
|
|
width: 10px;
|
|
height: 0;
|
|
border-bottom: solid 10px;
|
|
border-radius: 10px;
|
|
}
|
|
[dir=rtl] .mat-mdc-option.mdc-list-item--%NS%selected:not(:has(.mat-mdc-option-pseudo-checkbox))::after {
|
|
right: auto;
|
|
left: 16px;
|
|
}
|
|
}
|
|
|
|
.mat-mdc-option-multiple {
|
|
--%NS%mat-list-list-item-selected-container-color: var(--%NS%mat-list-list-item-container-color, transparent);
|
|
}
|
|
|
|
.mat-mdc-option-active .mat-focus-indicator::before {
|
|
content: "";
|
|
}
|
|
`],encapsulation:2})})()}return n})();function cf(n,i,t){if(t.length){let e=i.toArray(),a=t.toArray(),r=0;for(let o=0;o<n+1;o++)e[o].group&&e[o].group===a[r]&&r++;return r}return 0}function df(n,i,t,e){return n<t?n:n+i>t+e?Math.max(0,n-e+i):t}var vd=class{source;option;constructor(i,t){this.source=i,this.option=t}},mf=new v("mat-autocomplete-default-options",{providedIn:"root",factory:()=>({autoActiveFirstOption:!1,autoSelectActiveOption:!1,hideSingleSelectionIndicator:!1,requireSelection:!1,hasBackdrop:!1})}),Ws=(()=>{class n{_changeDetectorRef=c(xt);_elementRef=c(R);_defaults=c(mf);_animationsDisabled=Ct();_activeOptionChanges=Et.EMPTY;_keyManager;showPanel=!1;get isOpen(){return this._isOpen&&this.showPanel}_isOpen=!1;_latestOpeningTrigger;_setColor(t){this._color=t,this._changeDetectorRef.markForCheck()}_color;template;panel;options;optionGroups;ariaLabel;ariaLabelledby;displayWith=null;autoActiveFirstOption;autoSelectActiveOption;requireSelection;panelWidth;disableRipple=!1;optionSelected=new Q;opened=new Q;closed=new Q;optionActivated=new Q;set classList(t){this._classList=t,this._elementRef.nativeElement.className=""}_classList;get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(t){this._hideSingleSelectionIndicator=t,this._syncParentProperties()}_hideSingleSelectionIndicator;_syncParentProperties(){if(this.options)for(let t of this.options)t._changeDetectorRef.markForCheck()}id=c(St).getId("mat-autocomplete-");inertGroups;constructor(){let t=c(ut);this.inertGroups=t?.SAFARI||!1,this.autoActiveFirstOption=!!this._defaults.autoActiveFirstOption,this.autoSelectActiveOption=!!this._defaults.autoSelectActiveOption,this.requireSelection=!!this._defaults.requireSelection,this._hideSingleSelectionIndicator=this._defaults.hideSingleSelectionIndicator??!1}ngAfterContentInit(){this._keyManager=new hr(this.options).withWrap().skipPredicate(this._skipPredicate),this._activeOptionChanges=this._keyManager.change.subscribe(t=>{this.isOpen&&this.optionActivated.emit({source:this,option:this.options.toArray()[t]||null})}),this._setVisibility()}ngOnDestroy(){this._keyManager?.destroy(),this._activeOptionChanges.unsubscribe()}_setScrollTop(t){this.panel&&(this.panel.nativeElement.scrollTop=t)}_getScrollTop(){return this.panel?this.panel.nativeElement.scrollTop:0}_setVisibility(){this.showPanel=!!this.options?.length,this._changeDetectorRef.markForCheck()}_emitSelectEvent(t){let e=new vd(this,t);this.optionSelected.emit(e)}_getPanelAriaLabelledby(t){if(this.ariaLabel)return null;let e=t?t+" ":"";return this.ariaLabelledby?e+this.ariaLabelledby:t}_skipPredicate(){return!1}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=(function(){let t=["panel"],e=["*"];function a(r,o){if(r&1&&(qt(0,"div",1,0),V(2),te()),r&2){let s=o.id,l=w();Fe(l._classList),z("mat-mdc-autocomplete-visible",l.showPanel)("mat-mdc-autocomplete-hidden",!l.showPanel)("mat-autocomplete-panel-animations-enabled",!l._animationsDisabled)("mat-primary",l._color==="primary")("mat-accent",l._color==="accent")("mat-warn",l._color==="warn"),ee("id",l.id),H("aria-label",l.ariaLabel||null)("aria-labelledby",l._getPanelAriaLabelledby(s))}}return S({type:n,selectors:[["mat-autocomplete"]],contentQueries:function(o,s,l){if(o&1&&ne(l,Ca,5)(l,bd,5),o&2){let d;P(d=L())&&(s.options=d),P(d=L())&&(s.optionGroups=d)}},viewQuery:function(o,s){if(o&1&&Kt(Te,7)(t,5),o&2){let l;P(l=L())&&(s.template=l.first),P(l=L())&&(s.panel=l.first)}},hostAttrs:[1,"mat-mdc-autocomplete"],inputs:{ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],displayWith:"displayWith",autoActiveFirstOption:[2,"autoActiveFirstOption","autoActiveFirstOption",j],autoSelectActiveOption:[2,"autoSelectActiveOption","autoSelectActiveOption",j],requireSelection:[2,"requireSelection","requireSelection",j],panelWidth:"panelWidth",disableRipple:[2,"disableRipple","disableRipple",j],classList:[0,"class","classList"],hideSingleSelectionIndicator:[2,"hideSingleSelectionIndicator","hideSingleSelectionIndicator",j]},outputs:{optionSelected:"optionSelected",opened:"opened",closed:"closed",optionActivated:"optionActivated"},exportAs:["matAutocomplete"],features:[ft([{provide:gd,useExisting:n}])],ngContentSelectors:e,decls:1,vars:0,consts:[["panel",""],["role","listbox",1,"mat-mdc-autocomplete-panel","mdc-menu-surface","mdc-menu-surface--open",3,"id"]],template:function(o,s){o&1&&(_t(),Kr(0,a,3,17,"ng-template"))},styles:[`div.mat-mdc-autocomplete-panel {
|
|
width: 100%;
|
|
max-height: 256px;
|
|
visibility: hidden;
|
|
transform-origin: center top;
|
|
overflow: auto;
|
|
padding: 8px 0;
|
|
box-sizing: border-box;
|
|
position: relative;
|
|
border-radius: var(--%NS%mat-autocomplete-container-shape, var(--%NS%mat-sys-corner-extra-small));
|
|
box-shadow: var(--%NS%mat-autocomplete-container-elevation-shadow, 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12));
|
|
background-color: var(--%NS%mat-autocomplete-background-color, var(--%NS%mat-sys-surface-container));
|
|
}
|
|
@media (forced-colors: active) {
|
|
div.mat-mdc-autocomplete-panel {
|
|
outline: solid 1px;
|
|
}
|
|
}
|
|
.cdk-overlay-pane:not(.mat-mdc-autocomplete-panel-above) div.mat-mdc-autocomplete-panel {
|
|
border-top-left-radius: 0;
|
|
border-top-right-radius: 0;
|
|
}
|
|
.mat-mdc-autocomplete-panel-above div.mat-mdc-autocomplete-panel {
|
|
border-bottom-left-radius: 0;
|
|
border-bottom-right-radius: 0;
|
|
transform-origin: center bottom;
|
|
}
|
|
div.mat-mdc-autocomplete-panel.mat-mdc-autocomplete-visible {
|
|
visibility: visible;
|
|
}
|
|
|
|
div.mat-mdc-autocomplete-panel.mat-mdc-autocomplete-hidden,
|
|
.cdk-overlay-pane:has(> .mat-mdc-autocomplete-hidden) {
|
|
visibility: hidden;
|
|
pointer-events: none;
|
|
}
|
|
|
|
@keyframes _mat-autocomplete-enter {
|
|
from {
|
|
opacity: 0;
|
|
transform: scaleY(0.8);
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
transform: none;
|
|
}
|
|
}
|
|
.mat-autocomplete-panel-animations-enabled {
|
|
animation: _mat-autocomplete-enter 120ms cubic-bezier(0, 0, 0.2, 1);
|
|
}
|
|
|
|
mat-autocomplete {
|
|
display: none;
|
|
}
|
|
`],encapsulation:2})})()}return n})();var Ry={provide:fa,useExisting:se(()=>_d),multi:!0};var Ty=new v("mat-autocomplete-scroll-strategy",{providedIn:"root",factory:()=>{let n=c(K);return()=>br(n)}}),_d=(()=>{class n{_environmentInjector=c(zt);_element=c(R);_injector=c(K);_viewContainerRef=c(Oe);_zone=c(O);_changeDetectorRef=c(xt);_dir=c(de,{optional:!0});_formField=c(Ci,{optional:!0,host:!0});_viewportRuler=c(fi);_scrollStrategy=c(Ty);_renderer=c(pt);_animationsDisabled=Ct();_defaults=c(mf,{optional:!0});_overlayRef=null;_portal;_componentDestroyed=!1;_initialized=new E;_keydownSubscription;_outsideClickSubscription;_cleanupWindowBlur;_previousValue=null;_valueOnAttach=null;_valueOnLastKeydown=null;_positionStrategy;_manuallyFloatingLabel=!1;_closingActionsSubscription;_viewportSubscription=Et.EMPTY;_breakpointObserver=c(ur);_handsetLandscapeSubscription=Et.EMPTY;_canOpenOnNextFocus=!0;_valueBeforeAutoSelection;_pendingAutoselectedOption=null;_closeKeyEventStream=new E;_overlayPanelClass=kn(this._defaults?.overlayPanelClass||[]);_windowBlurHandler=()=>{this._canOpenOnNextFocus=this.panelOpen||!this._hasFocus()};_onChange=()=>{};_onTouched=()=>{};autocomplete;position="auto";connectedTo;autocompleteAttribute="off";autocompleteDisabled=!1;_aboveClass="mat-mdc-autocomplete-panel-above";ngAfterViewInit(){this._initialized.next(),this._initialized.complete(),this._cleanupWindowBlur=this._renderer.listen("window","blur",this._windowBlurHandler)}ngOnChanges(t){t.position&&this._positionStrategy&&(this._setStrategyPositions(this._positionStrategy),this.panelOpen&&this._overlayRef.updatePosition())}ngOnDestroy(){this._cleanupWindowBlur?.(),this._handsetLandscapeSubscription.unsubscribe(),this._viewportSubscription.unsubscribe(),this._componentDestroyed=!0,this._destroyPanel(),this._closeKeyEventStream.complete()}get panelOpen(){return this._overlayAttached&&this.autocomplete.showPanel}_overlayAttached=!1;openPanel(){this._openPanelInternal()}closePanel(){this._resetLabel(),this._overlayAttached&&(this.panelOpen&&this._zone.run(()=>{this.autocomplete.closed.emit()}),this.autocomplete._latestOpeningTrigger===this&&(this.autocomplete._isOpen=!1,this.autocomplete._latestOpeningTrigger=null),this._overlayAttached=!1,this._pendingAutoselectedOption=null,this._overlayRef&&this._overlayRef.hasAttached()&&(this._overlayRef.detach(),this._closingActionsSubscription.unsubscribe()),this._updatePanelState(),this._componentDestroyed||this._changeDetectorRef.detectChanges())}updatePosition(){this._overlayAttached&&this._overlayRef.updatePosition()}get panelClosingActions(){return Qt(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe(vt(()=>this._overlayAttached)),this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef.detachments().pipe(vt(()=>this._overlayAttached)):A()).pipe(st(t=>t instanceof Br?t:null))}optionSelections=rn(()=>{let t=this.autocomplete?this.autocomplete.options:null;return t?t.changes.pipe(Ft(t),Mt(()=>Qt(...t.map(e=>e.onSelectionChange)))):this._initialized.pipe(Mt(()=>this.optionSelections))});get activeOption(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null}_getOutsideClickStream(){return new oe(t=>{let e=r=>{let o=ce(r),s=this._formField?this._formField.getConnectedOverlayOrigin().nativeElement:null,l=this.connectedTo?this.connectedTo.elementRef.nativeElement:null;this._overlayAttached&&o!==this._element.nativeElement&&!this._hasFocus()&&(!s||!s.contains(o))&&(!l||!l.contains(o))&&this._overlayRef&&!this._overlayRef.overlayElement.contains(o)&&t.next(r)},a=[this._renderer.listen("document","click",e),this._renderer.listen("document","auxclick",e),this._renderer.listen("document","touchend",e)];return()=>{a.forEach(r=>r())}})}writeValue(t){Promise.resolve(null).then(()=>this._assignOptionValue(t))}registerOnChange(t){this._onChange=t}registerOnTouched(t){this._onTouched=t}setDisabledState(t){this._element.nativeElement.disabled=t}_handleKeydown(t){let e=t,a=e.keyCode,r=ie(e);if(a===27&&!r&&e.preventDefault(),this._valueOnLastKeydown=this._element.nativeElement.value,this.activeOption&&a===13&&this.panelOpen&&!r)this.activeOption._selectViaInteraction(),this._resetActiveItem(),e.preventDefault();else if(this.autocomplete){let o=this.autocomplete._keyManager.activeItem,s=a===38||a===40;a===9||s&&!r&&this.panelOpen?this.autocomplete._keyManager.onKeydown(e):s&&this._canOpen()&&this._openPanelInternal(this._valueOnLastKeydown),(s||this.autocomplete._keyManager.activeItem!==o)&&(this._scrollToOption(this.autocomplete._keyManager.activeItemIndex||0),this.autocomplete.autoSelectActiveOption&&this.activeOption&&(this._pendingAutoselectedOption||(this._valueBeforeAutoSelection=this._valueOnLastKeydown),this._pendingAutoselectedOption=this.activeOption,this._assignOptionValue(this.activeOption.value)))}}_handleInput(t){let e=t.target,a=e.value;if(e.type==="number"&&(a=a==""?null:parseFloat(a)),this._previousValue!==a){if(this._previousValue=a,this._pendingAutoselectedOption=null,(!this.autocomplete||!this.autocomplete.requireSelection)&&this._onChange(a),!a)this._clearPreviousSelectedOption(null,!1);else if(this.panelOpen&&!this.autocomplete.requireSelection){let r=this.autocomplete.options?.find(o=>o.selected);if(r){let o=this._getDisplayValue(r.value);a!==o&&r.deselect(!1)}}if(this._canOpen()&&this._hasFocus()){let r=this._valueOnLastKeydown??this._element.nativeElement.value;this._valueOnLastKeydown=null,this._openPanelInternal(r)}}}_handleFocus(){this._canOpenOnNextFocus?this._canOpen()&&(this._previousValue=this._element.nativeElement.value,this._attachOverlay(this._previousValue),this._floatLabel(!0)):this._canOpenOnNextFocus=!0}_handleClick(){this._canOpen()&&!this.panelOpen&&this._openPanelInternal()}_hasFocus(){return jn()===this._element.nativeElement}_floatLabel(t=!1){this._formField&&this._formField.floatLabel==="auto"&&(t?this._formField._animateAndLockLabel():this._formField.floatLabel="always",this._manuallyFloatingLabel=!0)}_resetLabel(){this._manuallyFloatingLabel&&(this._formField&&(this._formField.floatLabel="auto"),this._manuallyFloatingLabel=!1)}_subscribeToClosingActions(){let t=new oe(a=>{Pt(()=>{a.next()},{injector:this._environmentInjector})}),e=this.autocomplete.options?.changes.pipe(Wt(()=>this._positionStrategy.reapplyLastPosition()),Rd(0))??A();return Qt(t,e).pipe(Mt(()=>this._zone.run(()=>{let a=this.panelOpen;return this._resetActiveItem(),this._updatePanelState(),this._changeDetectorRef.detectChanges(),this.panelOpen&&this._overlayRef.updatePosition(),a!==this.panelOpen&&(this.panelOpen?this._emitOpened():this.autocomplete.closed.emit()),this.panelClosingActions})),Gt(1)).subscribe(a=>this._setValueAndClose(a))}_emitOpened(){this.autocomplete.opened.emit()}_destroyPanel(){this._overlayRef&&(this.closePanel(),this._overlayRef.dispose(),this._overlayRef=null)}_getDisplayValue(t){let e=this.autocomplete;return e&&e.displayWith?e.displayWith(t):t}_assignOptionValue(t){let e=this._getDisplayValue(t);t==null&&this._clearPreviousSelectedOption(null,!1),this._updateNativeInputValue(e??"")}_updateNativeInputValue(t){let e=this._formField?._control;e?Vd(e.value)?e.value.set(t):e.value=t:this._element.nativeElement.value=t,this._previousValue=t}_setValueAndClose(t){let e=this.autocomplete,a=t?t.source:this._pendingAutoselectedOption;a?(this._clearPreviousSelectedOption(a),this._assignOptionValue(a.value),this._onChange(a.value),e._emitSelectEvent(a),this._element.nativeElement.focus()):e.requireSelection&&this._element.nativeElement.value!==this._valueOnAttach&&(this._clearPreviousSelectedOption(null),this._assignOptionValue(null),this._onChange(null)),this.closePanel()}_clearPreviousSelectedOption(t,e){this.autocomplete?.options?.forEach(a=>{a!==t&&a.selected&&a.deselect(e)})}_openPanelInternal(t=this._element.nativeElement.value){this._attachOverlay(t),this._floatLabel()}_attachOverlay(t){if(!this.autocomplete)return;let e=this._overlayRef;e?(this._positionStrategy.setOrigin(this._getConnectedElement()),e.updateSize({width:this._getPanelWidth()})):(this._portal=new ze(this.autocomplete.template,this._viewContainerRef,{id:this._formField?.getLabelId()}),e=Dn(this._injector,this._getOverlayConfig()),this._overlayRef=e,this._viewportSubscription=this._viewportRuler.change().subscribe(()=>{this.panelOpen&&e&&e.updateSize({width:this._getPanelWidth()})}),this._handsetLandscapeSubscription=this._breakpointObserver.observe(as.HandsetLandscape).subscribe(r=>{r.matches?this._positionStrategy.withFlexibleDimensions(!0).withGrowAfterOpen(!0).withViewportMargin(8):this._positionStrategy.withFlexibleDimensions(!1).withGrowAfterOpen(!1).withViewportMargin(0)})),e&&!e.hasAttached()&&(e.attach(this._portal),this._valueOnAttach=t,this._valueOnLastKeydown=null,this._closingActionsSubscription=this._subscribeToClosingActions());let a=this.panelOpen;this.autocomplete._isOpen=this._overlayAttached=!0,this.autocomplete._latestOpeningTrigger=this,this.autocomplete._setColor(this._formField?.color),this._updatePanelState(),this.panelOpen&&a!==this.panelOpen&&this._emitOpened()}_handlePanelKeydown=t=>{(t.keyCode===27&&!ie(t)||t.keyCode===38&&ie(t,"altKey"))&&(this._pendingAutoselectedOption&&(this._updateNativeInputValue(this._valueBeforeAutoSelection??""),this._pendingAutoselectedOption=null),this._closeKeyEventStream.next(),this._resetActiveItem(),t.stopPropagation(),t.preventDefault())};_updatePanelState(){if(this.autocomplete._setVisibility(),this.panelOpen){let t=this._overlayRef;this._keydownSubscription||(this._keydownSubscription=t.keydownEvents().subscribe(this._handlePanelKeydown)),this._outsideClickSubscription||(this._outsideClickSubscription=t.outsidePointerEvents().subscribe())}else this._keydownSubscription?.unsubscribe(),this._outsideClickSubscription?.unsubscribe(),this._keydownSubscription=this._outsideClickSubscription=void 0}_getOverlayConfig(){return new je({positionStrategy:this._getOverlayPosition(),scrollStrategy:this._scrollStrategy(),width:this._getPanelWidth(),direction:this._dir??void 0,hasBackdrop:this._defaults?.hasBackdrop,backdropClass:this._defaults?.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:this._overlayPanelClass,disableAnimations:this._animationsDisabled})}_getOverlayPosition(){let t=vr(this._injector,this._getConnectedElement()).withFlexibleDimensions(!1).withPush(!1).withPopoverLocation("inline");return this._setStrategyPositions(t),this._positionStrategy=t,t}_setStrategyPositions(t){let e=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],a=this._aboveClass,r=[{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:a},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:a}],o;this.position==="above"?o=r:this.position==="below"?o=e:o=[...e,...r],t.withPositions(o)}_getConnectedElement(){return this.connectedTo?this.connectedTo.elementRef:this._formField?this._formField.getConnectedOverlayOrigin():this._element}_getPanelWidth(){return this.autocomplete.panelWidth||this._getHostWidth()}_getHostWidth(){return this._getConnectedElement().nativeElement.getBoundingClientRect().width}_resetActiveItem(){let t=this.autocomplete;if(t.autoActiveFirstOption){let e=-1;for(let a=0;a<t.options.length;a++)if(!t.options.get(a).disabled){e=a;break}t._keyManager.setActiveItem(e)}else t._keyManager.setActiveItem(-1)}_canOpen(){let t=this._element.nativeElement;return!t.readOnly&&!t.disabled&&!this.autocompleteDisabled}_scrollToOption(t){let e=this.autocomplete,a=cf(t,e.options,e.optionGroups);if(t===0&&a===1)e._setScrollTop(0);else if(e.panel){let r=e.options.toArray()[t];if(r){let o=r._getHostElement(),s=df(o.offsetTop,o.offsetHeight,e._getScrollTop(),e.panel.nativeElement.offsetHeight);e._setScrollTop(s)}}}static \u0275fac=function(e){return new(e||n)};static \u0275dir=x({type:n,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],hostAttrs:[1,"mat-mdc-autocomplete-trigger"],hostVars:7,hostBindings:function(e,a){e&1&&B("focusin",function(){return a._handleFocus()})("blur",function(){return a._onTouched()})("input",function(o){return a._handleInput(o)})("keydown",function(o){return a._handleKeydown(o)})("click",function(){return a._handleClick()}),e&2&&H("autocomplete",a.autocompleteAttribute)("role",a.autocompleteDisabled?null:"combobox")("aria-autocomplete",a.autocompleteDisabled?null:"list")("aria-activedescendant",a.panelOpen&&a.activeOption?a.activeOption.id:null)("aria-expanded",a.autocompleteDisabled?null:a.panelOpen.toString())("aria-controls",a.autocompleteDisabled||!a.panelOpen?null:a.autocomplete?.id)("aria-haspopup",a.autocompleteDisabled?null:"listbox")},inputs:{autocomplete:[0,"matAutocomplete","autocomplete"],position:[0,"matAutocompletePosition","position"],connectedTo:[0,"matAutocompleteConnectedTo","connectedTo"],autocompleteAttribute:[0,"autocomplete","autocompleteAttribute"],autocompleteDisabled:[2,"matAutocompleteDisabled","autocompleteDisabled",j]},exportAs:["matAutocompleteTrigger"],features:[ft([Ry]),Dt]})}return n})();function Fy(n,i){if(n&1){let t=Nt();h(0,"mat-chip-row",11),B("removed",function(){let a=at(t).$implicit,r=w(2);return rt(r.remove(a))}),f(1),h(2,"button",12)(3,"mat-icon"),f(4,"cancel"),u()()()}if(n&2){let t=i.$implicit;p(),It(" ",t.name," "),p(),H("aria-label","remove "+t.name)}}function Py(n,i){if(n&1&&(h(0,"mat-option",10),f(1),u()),n&2){let t=i.$implicit;mt("value",t),p(),Lt(t.name)}}function Ly(n,i){if(n&1){let t=Nt();h(0,"li",5),f(1),h(2,"form")(3,"mat-form-field",6)(4,"mat-chip-grid",7,0),Tn(6,Fy,5,2,"mat-chip-row",null,em),u(),h(8,"input",8,1),Tt(),Tt(),Ht("ngModelChange",function(a){at(t);let r=w();return Ut(r.currentRole,a)||(r.currentRole=a),rt(a)}),B("matChipInputTokenEnd",function(a){at(t);let r=w();return rt(r.add(a))})("input",function(a){let r=at(t).$implicit,o=w();return rt(o.change(a,o.filteredRoles(r.roles)))}),u(),h(10,"mat-autocomplete",9,2),Tt(),B("optionSelected",function(a){let r=at(t).$implicit,o=w();return rt(o.selected(r.roles,a))}),Tn(12,Py,2,2,"mat-option",10,Oa),u()()()()}if(n&2){let t=i.$implicit,e=yt(5),a=yt(11),r=w();p(),Zr(" ",t.username," ",t.email," "),p(5),On(t.roles),p(2),jt("ngModel",r.currentRole),mt("matChipInputFor",e)("matAutocomplete",a)("matChipInputSeparatorKeyCodes",r.separatorKeysCodes)("formControl",r.myControl),Ot(),Ot(),p(2),mt("formControl",r.ac),Ot(),p(2),On(r.filteredRoles(t.roles))}}var uf=(()=>{class n{userService;roleService;separatorKeysCodes=[13,188];rowData;allRoles;currentRole=lm("");myControl=new Ar("");ac=new Ar("");constructor(t,e){this.userService=t,this.roleService=e,this.getAllRoles()}ngOnInit(){this.userService.getAdminBoard().subscribe(t=>{this.rowData=t},t=>{this.rowData=JSON.parse(t.error).message})}filteredRoles(t){return this.allRoles.filter(e=>!t.some(a=>a.id===e.id))}getAllRoles(){this.roleService.getAllRoles().subscribe(t=>{this.allRoles=t},t=>{this.allRoles=JSON.parse(t.error).message})}remove(t){}add(t){this.currentRole.set("")}selected(t,e){t.push(e.option.value),this.currentRole.set(""),e.option.deselect()}change(t,e){e.filter(a=>!e.some(r=>r.name?.toLowerCase()===a.id))}static \u0275fac=function(e){return new(e||n)(U(Qp),U(Jp))};static \u0275cmp=S({type:n,selectors:[["app-board-admin"]],inputs:{currentRole:[1,"currentRole"]},outputs:{currentRole:"currentRoleChange"},standalone:!1,decls:6,vars:0,consts:[["chipGrid",""],["fruitInput",""],["auto","matAutocomplete"],[1,"col-md-6"],[1,"list-group"],[1,"list-group-item"],[1,"example-chip-list"],["aria-label","Role selection"],["name","currentFruit","placeholder","Add role...",3,"ngModelChange","matChipInputTokenEnd","input","ngModel","matChipInputFor","matAutocomplete","matChipInputSeparatorKeyCodes","formControl"],["autoActiveFirstOption","",3,"optionSelected","formControl"],[3,"value"],[3,"removed"],["matChipRemove",""]],template:function(e,a){e&1&&(h(0,"div",3)(1,"h4"),f(2,"Users List"),u(),h(3,"ul",4),Tn(4,Ly,14,8,"li",5,Oa),u()()),e&2&&(p(4),On(a.rowData))},dependencies:[_n,me,Se,vn,ye,Ie,Ce,Gs,Lr,lf,_d,Ws,Ca,ad],styles:[".example-chip-list[_ngcontent-%COMP%]{width:100%}"],changeDetection:1})}return n})();var hf=(()=>{class n{constructor(){}ngOnInit(){}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=S({type:n,selectors:[["app-board-moderator"]],standalone:!1,decls:2,vars:0,template:function(e,a){e&1&&(h(0,"p"),f(1,"board-moderator works!"),u())},encapsulation:2,changeDetection:1})}return n})();var pf=(()=>{class n{constructor(){}ngOnInit(){}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=S({type:n,selectors:[["app-board-user"]],standalone:!1,decls:2,vars:0,template:function(e,a){e&1&&(h(0,"p"),f(1,"board-user works!"),u())},encapsulation:2,changeDetection:1})}return n})();function By(n,i){if(n&1&&(h(0,"li"),f(1),u()),n&2){let t=i.$implicit;p(),It(" ",t," ")}}function Vy(n,i){if(n&1&&(h(0,"div",0)(1,"header",1)(2,"h3")(3,"strong"),f(4),u(),f(5," Profile "),u()(),h(6,"p")(7,"strong"),f(8,"Token:"),u(),f(9),u(),h(10,"p")(11,"strong"),f(12,"Email:"),u(),f(13),u(),h(14,"strong"),f(15,"Roles:"),u(),h(16,"ul"),Tn(17,By,2,1,"li",null,Oa),u()()),n&2){let t=w();p(4),Lt(t.currentUser.username),p(5),Zr(" ",t.currentUser.accessToken.substring(0,20)," ... ",t.currentUser.accessToken.substr(t.currentUser.accessToken.length-20)," "),p(4),It(" ",t.currentUser.email," "),p(4),On(t.currentUser.roles)}}function zy(n,i){n&1&&f(0,` Please login.
|
|
`)}var ff=(()=>{class n{token;currentUser;constructor(t){this.token=t}ngOnInit(){this.currentUser=this.token.getUser()}static \u0275fac=function(e){return new(e||n)(U(gn))};static \u0275cmp=S({type:n,selectors:[["app-profile"]],standalone:!1,decls:2,vars:1,consts:[[1,"container"],[1,"jumbotron"]],template:function(e,a){e&1&&C(0,Vy,19,4,"div",0)(1,zy,1,0),e&2&&k(a.currentUser?0:1)},encapsulation:2,changeDetection:1})}return n})();var yd="/api/auth/",xd={headers:new Pe({"Content-Type":"application/json"})},ka=(()=>{class n{http;constructor(t){this.http=t}login(t,e){return this.http.post(yd+"signin",{username:t,password:e},xd)}register(t,e,a){return this.http.post(yd+"signup",{username:t,email:e,password:a},xd)}logout(){return this.http.post(yd+"signout",{},xd)}static \u0275fac=function(e){return new(e||n)(T(Le))};static \u0275prov=$({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();var wd=()=>({standalone:!0});function jy(n,i){n&1&&(h(0,"div"),f(1,"Username is required"),u())}function Uy(n,i){n&1&&(h(0,"div"),f(1," Username must be at least 3 characters "),u())}function Hy(n,i){n&1&&(h(0,"div"),f(1," Username must be at most 20 characters "),u())}function $y(n,i){if(n&1&&(h(0,"div",13),C(1,jy,2,0,"div"),C(2,Uy,2,0,"div"),C(3,Hy,2,0,"div"),u()),n&2){w();let t=yt(6);p(),k(t.errors.required?1:-1),p(),k(t.errors.minlength?2:-1),p(),k(t.errors.maxlength?3:-1)}}function Gy(n,i){n&1&&(h(0,"div"),f(1,"Email is required"),u())}function Wy(n,i){n&1&&(h(0,"div"),f(1," Email must be a valid email address "),u())}function qy(n,i){if(n&1&&(h(0,"div",13),C(1,Gy,2,0,"div"),C(2,Wy,2,0,"div"),u()),n&2){w();let t=yt(12);p(),k(t.errors.required?1:-1),p(),k(t.errors.email?2:-1)}}function Ky(n,i){n&1&&(h(0,"div"),f(1,"Password is required"),u())}function Yy(n,i){n&1&&(h(0,"div"),f(1," Password must be at least 6 characters "),u())}function Xy(n,i){if(n&1&&(h(0,"div",13),C(1,Ky,2,0,"div"),C(2,Yy,2,0,"div"),u()),n&2){w();let t=yt(18);p(),k(t.errors.required?1:-1),p(),k(t.errors.minlength?2:-1)}}function Zy(n,i){if(n&1&&(h(0,"div",19),f(1," Signup failed!"),dt(2,"br"),f(3),u()),n&2){let t=w(2);p(3),It("",t.errorMessage," ")}}function Qy(n,i){if(n&1){let t=Nt();h(0,"form",9,0),B("ngSubmit",function(){at(t);let a=yt(1),r=w();return rt(a.form.valid&&r.onSubmit())}),h(2,"div",10)(3,"label",11),f(4,"Username"),u(),h(5,"input",12,1),Tt(),Ht("ngModelChange",function(a){at(t);let r=w();return Ut(r.form.username,a)||(r.form.username=a),rt(a)}),u(),C(7,$y,4,3,"div",13),u(),h(8,"div",10)(9,"label",14),f(10,"Email"),u(),h(11,"input",15,2),Tt(),Ht("ngModelChange",function(a){at(t);let r=w();return Ut(r.form.email,a)||(r.form.email=a),rt(a)}),u(),C(13,qy,3,2,"div",13),u(),h(14,"div",10)(15,"label",16),f(16,"Password"),u(),h(17,"input",17,3),Tt(),Ht("ngModelChange",function(a){at(t);let r=w();return Ut(r.form.password,a)||(r.form.password=a),rt(a)}),u(),C(19,Xy,3,2,"div",13),u(),h(20,"div",10)(21,"button",18),f(22,"Sign Up"),u()(),C(23,Zy,4,1,"div",19),u()}if(n&2){let t=yt(1),e=yt(6),a=yt(12),r=yt(18),o=w();p(5),jt("ngModel",o.form.username),mt("ngModelOptions",Qr(10,wd)),Ot(),p(2),k(e.errors&&t.submitted?7:-1),p(4),jt("ngModel",o.form.email),mt("ngModelOptions",Qr(11,wd)),Ot(),p(2),k(a.errors&&t.submitted?13:-1),p(4),jt("ngModel",o.form.password),mt("ngModelOptions",Qr(12,wd)),Ot(),p(2),k(r.errors&&t.submitted?19:-1),p(4),k(t.submitted&&o.isSignUpFailed?23:-1)}}function Jy(n,i){n&1&&(h(0,"div",8),f(1," Your registration is successful! "),u())}var bf=(()=>{class n{authService;form={username:null,email:null,password:null};isSuccessful=!1;isSignUpFailed=!1;errorMessage="";constructor(t){this.authService=t}ngOnInit(){}onSubmit(){let{username:t,email:e,password:a}=this.form;this.authService.register(t,e,a).subscribe(r=>{console.log(r),this.isSuccessful=!0,this.isSignUpFailed=!1},r=>{this.errorMessage=r.error.message,this.isSignUpFailed=!0})}static \u0275fac=function(e){return new(e||n)(U(ka))};static \u0275cmp=S({type:n,selectors:[["app-register"]],standalone:!1,decls:5,vars:2,consts:[["f","ngForm"],["username","ngModel"],["email","ngModel"],["password","ngModel"],[1,"col-md-12"],["id","register"],["id","foto","id","profile-img","src","//ssl.gstatic.com/accounts/ui/avatar_2x.png",1,"profile-img-card"],["name","form","novalidate",""],[1,"alert","alert-success"],["name","form","novalidate","",3,"ngSubmit"],[1,"form-group"],["for","username"],["type","text","id","username","required","","minlength","3","maxlength","20",1,"form-control",3,"ngModelChange","ngModel","ngModelOptions"],[1,"alert-danger"],["for","email"],["type","email","id","email","required","","email","",1,"form-control",3,"ngModelChange","ngModel","ngModelOptions"],["for","password"],["type","password","id","password","required","","minlength","6",1,"form-control",3,"ngModelChange","ngModel","ngModelOptions"],[1,"btn","btn-primary","btn-block"],[1,"alert","alert-warning"]],template:function(e,a){e&1&&(h(0,"div",4)(1,"div",5),dt(2,"img",6),C(3,Qy,24,13,"form",7),C(4,Jy,2,0,"div",8),u()()),e&2&&(p(3),k(a.isSuccessful?-1:3),p(),k(a.isSuccessful?4:-1))},dependencies:[_n,me,Se,vn,bn,Ir,wi,nd,Ne,ye],encapsulation:2,changeDetection:1})}return n})();function t0(n,i){n&1&&(h(0,"div",12),f(1," Username is required! "),u())}function e0(n,i){n&1&&(h(0,"div"),f(1,"Password is required"),u())}function n0(n,i){n&1&&(h(0,"div"),f(1," Password must be at least 6 characters "),u())}function i0(n,i){if(n&1&&(h(0,"div",12),C(1,e0,2,0,"div"),C(2,n0,2,0,"div"),u()),n&2){w();let t=yt(12);p(),k(t.errors.required?1:-1),p(),k(t.errors.minlength?2:-1)}}function a0(n,i){if(n&1&&(h(0,"div",12),f(1),u()),n&2){let t=w(2);p(),It(" Login failed: ",t.errorMessage," ")}}function r0(n,i){if(n&1){let t=Nt();h(0,"form",8,0),B("ngSubmit",function(){at(t);let a=yt(1),r=w();return rt(a.form.valid&&r.onSubmit())}),h(2,"div",9)(3,"label",10),f(4,"Username"),u(),h(5,"input",11,1),Tt(),Ht("ngModelChange",function(a){at(t);let r=w();return Ut(r.form.username,a)||(r.form.username=a),rt(a)}),u(),C(7,t0,2,0,"div",12),u(),h(8,"div",9)(9,"label",13),f(10,"Password"),u(),h(11,"input",14,2),Tt(),Ht("ngModelChange",function(a){at(t);let r=w();return Ut(r.form.password,a)||(r.form.password=a),rt(a)}),u(),C(13,i0,3,2,"div",12),u(),h(14,"div",9)(15,"button",15),f(16," Login "),u()(),h(17,"div",9),C(18,a0,2,1,"div",12),u()()}if(n&2){let t=yt(1),e=yt(6),a=yt(12),r=w();p(5),jt("ngModel",r.form.username),Ot(),p(2),k(e.errors&&t.submitted?7:-1),p(4),jt("ngModel",r.form.password),Ot(),p(2),k(a.errors&&t.submitted?13:-1),p(5),k(t.submitted&&r.isLoginFailed?18:-1)}}function o0(n,i){if(n&1&&(h(0,"div",7),f(1),u()),n&2){let t=w();p(),It(" Logged in as ",t.roles,". ")}}var qs=(()=>{class n{authService;tokenStorage;form={username:null,password:null};isLoggedIn=!1;isLoginFailed=!1;errorMessage="";roles=[];constructor(t,e){this.authService=t,this.tokenStorage=e}ngOnInit(){this.tokenStorage.isLoggedIn()&&(this.isLoggedIn=!0,this.roles=this.tokenStorage.getUser().roles)}onSubmit(){let{username:t,password:e}=this.form;this.authService.login(t,e).subscribe(a=>{this.tokenStorage.saveUser(a),this.isLoginFailed=!1,this.isLoggedIn=!0,this.roles=this.tokenStorage.getUser().roles,this.reloadPage()},a=>{this.errorMessage=a.error.message,this.isLoginFailed=!0})}reloadPage(){window.location.reload()}static \u0275fac=function(e){return new(e||n)(U(ka),U(gn))};static \u0275cmp=S({type:n,selectors:[["app-login"]],decls:5,vars:2,consts:[["f","ngForm"],["username","ngModel"],["password","ngModel"],[1,"col-md-12"],[1,"card","card-container"],["id","profile-img","src","//ssl.gstatic.com/accounts/ui/avatar_2x.png",1,"profile-img-card"],["name","form","novalidate",""],[1,"alert","alert-success"],["name","form","novalidate","",3,"ngSubmit"],[1,"form-group"],["for","username"],["type","text","id","username","required","",1,"form-control",3,"ngModelChange","ngModel"],["role","alert",1,"alert","alert-danger"],["for","password"],["type","password","id","password","required","","minlength","6",1,"form-control",3,"ngModelChange","ngModel"],[1,"btn","btn-primary","btn-block"]],template:function(e,a){e&1&&(h(0,"div",3)(1,"div",4),dt(2,"img",5),C(3,r0,19,5,"form",6),C(4,o0,2,1,"div",7),u()()),e&2&&(p(3),k(a.isLoggedIn?-1:3),p(),k(a.isLoggedIn?4:-1))},dependencies:[ba,_n,me,Se,vn,bn,Ir,Ne,ye],encapsulation:2,changeDetection:1})}return n})();var vf=(()=>{class n{content;constructor(){}ngOnInit(){}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=S({type:n,selectors:[["app-home"]],standalone:!1,decls:4,vars:1,consts:[[1,"container"],[1,"jumbotron"]],template:function(e,a){e&1&&(h(0,"div",0)(1,"header",1)(2,"p"),f(3),u()()()),e&2&&(p(3),Lt(a.content))},encapsulation:2,changeDetection:1})}return n})();var Sd=()=>c(gn).isLoggedIn()||c(be).createUrlTree(["/login"]);var s0=[{path:"home",component:vf},{path:"login",component:qs},{path:"register",component:bf},{path:"profile",component:ff},{path:"user",component:pf},{path:"mod",component:hf},{path:"admin",component:uf},{path:"",redirectTo:"home",pathMatch:"full"},{path:"tutorials",component:Yp},{path:"tutorials/:id",component:Xp,canActivate:[Sd]},{path:"add",component:Zp,canActivate:[Sd]}],_f=(()=>{class n{static \u0275fac=function(e){return new(e||n)};static \u0275mod=Y({type:n});static \u0275inj=q({imports:[Yo.forRoot(s0,{useHash:!0}),Yo]})}return n})();var Xn=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;bindings};var kd=(()=>{class n extends Hn{_elementRef=c(R);_focusTrapFactory=c(Ic);_config;_interactivityChecker=c(Nc);_ngZone=c(O);_focusMonitor=c(fn);_renderer=c(pt);_changeDetectorRef=c(xt);_injector=c(K);_platform=c(ut);_document=c(F);_portalOutlet;_focusTrapped=new E;_focusTrap=null;_elementFocusedBeforeDialogWasOpened=null;_closeInteractionType=null;_ariaLabelledByQueue=[];_isDestroyed=!1;constructor(){super(),this._config=c(Xn,{optional:!0})||new Xn,this._config.ariaLabelledBy&&this._ariaLabelledByQueue.push(this._config.ariaLabelledBy)}_addAriaLabelledBy(t){this._ariaLabelledByQueue.push(t),this._changeDetectorRef.markForCheck()}_removeAriaLabelledBy(t){let e=this._ariaLabelledByQueue.indexOf(t);e>-1&&(this._ariaLabelledByQueue.splice(e,1),this._changeDetectorRef.markForCheck())}_contentAttached(){this._initializeFocusTrap(),this._captureInitialFocus()}_captureInitialFocus(){this._trapFocus()}ngOnDestroy(){this._focusTrapped.complete(),this._isDestroyed=!0,this._restoreFocus()}attachComponentPortal(t){this._portalOutlet.hasAttached();let e=this._portalOutlet.attachComponentPortal(t);return this._contentAttached(),e}attachTemplatePortal(t){this._portalOutlet.hasAttached();let e=this._portalOutlet.attachTemplatePortal(t);return this._contentAttached(),e}attachDomPortal=t=>{this._portalOutlet.hasAttached();let e=this._portalOutlet.attachDomPortal(t);return this._contentAttached(),e};_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(t,e){this._interactivityChecker.isFocusable(t)||(t.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{let a=()=>{r(),o(),t.removeAttribute("tabindex")},r=this._renderer.listen(t,"blur",a),o=this._renderer.listen(t,"mousedown",a)})),t.focus(e)}_focusByCssSelector(t,e){let a=this._elementRef.nativeElement.querySelector(t);a&&this._forceFocus(a,e)}_trapFocus(t){this._isDestroyed||Pt(()=>{let e=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||e.focus(t);break;case!0:case"first-tabbable":this._focusTrap?.focusInitialElement(t)||this._focusDialogContainer(t);break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]',t);break;default:this._focusByCssSelector(this._config.autoFocus,t);break}this._focusTrapped.next()},{injector:this._injector})}_restoreFocus(){let t=this._config.restoreFocus,e=null;if(typeof t=="string"?e=this._document.querySelector(t):typeof t=="boolean"?e=t?this._elementFocusedBeforeDialogWasOpened:null:t&&(e=t),this._config.restoreFocus&&e&&typeof e.focus=="function"){let a=jn(),r=this._elementRef.nativeElement;(!a||a===this._document.body||a===r||r.contains(a))&&(this._focusMonitor?(this._focusMonitor.focusVia(e,this._closeInteractionType),this._closeInteractionType=null):e.focus())}this._focusTrap&&this._focusTrap.destroy()}_focusDialogContainer(t){this._elementRef.nativeElement.focus?.(t)}_containsFocus(){let t=this._elementRef.nativeElement,e=jn();return t===e||t.contains(e)}_initializeFocusTrap(){this._platform.isBrowser&&(this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=jn()))}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=(function(){function t(e,a){}return S({type:n,selectors:[["cdk-dialog-container"]],viewQuery:function(a,r){if(a&1&&Kt($n,7),a&2){let o;P(o=L())&&(r._portalOutlet=o.first)}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(a,r){a&2&&H("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:[ot],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(a,r){a&1&&Ke(0,t,0,0,"ng-template",0)},dependencies:[$n],styles:[`.cdk-dialog-container {
|
|
display: block;
|
|
width: 100%;
|
|
height: 100%;
|
|
min-height: inherit;
|
|
max-height: inherit;
|
|
}
|
|
`],encapsulation:2,changeDetection:1})})()}return n})(),Mi=class{overlayRef;config;componentInstance=null;componentRef=null;containerInstance;disableClose;closed=new E;backdropClick;keydownEvents;outsidePointerEvents;id;_detachSubscription;constructor(i,t){this.overlayRef=i,this.config=t,this.disableClose=t.disableClose,this.backdropClick=i.backdropClick(),this.keydownEvents=i.keydownEvents(),this.outsidePointerEvents=i.outsidePointerEvents(),this.id=t.id,this.keydownEvents.subscribe(e=>{e.keyCode===27&&!this.disableClose&&!ie(e)&&(e.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=i.detachments().subscribe(()=>{t.closeOnOverlayDetachments!==!1&&this.close()})}close(i,t){if(this._canClose(i)){let e=this.closed;this.containerInstance._closeInteractionType=t?.focusOrigin||"program",this._detachSubscription.unsubscribe(),this.overlayRef.dispose(),e.next(i),e.complete(),this.componentInstance=this.containerInstance=null}}updatePosition(){return this.overlayRef.updatePosition(),this}updateSize(i="",t=""){return this.overlayRef.updateSize({width:i,height:t}),this}addPanelClass(i){return this.overlayRef.addPanelClass(i),this}removePanelClass(i){return this.overlayRef.removePanelClass(i),this}_canClose(i){let t=this.config;return!!this.containerInstance&&(!t.closePredicate||t.closePredicate(i,t,this.componentInstance))}},l0=new v("DialogScrollStrategy",{providedIn:"root",factory:()=>{let n=c(K);return()=>gr(n)}}),c0=new v("DialogData"),d0=new v("DefaultDialogConfig");function m0(n){let i=X(n),t=new Q;return{valueSignal:i,get value(){return i()},change:t,ngOnDestroy(){t.complete()}}}var yf=(()=>{class n{_injector=c(K);_defaultOptions=c(d0,{optional:!0});_parentDialog=c(n,{optional:!0,skipSelf:!0});_overlayContainer=c(ps);_idGenerator=c(St);_openDialogsAtThisLevel=[];_afterAllClosedAtThisLevel=new E;_afterOpenedAtThisLevel=new E;_ariaHiddenElements=new Map;_scrollStrategy=c(l0);get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}afterAllClosed=rn(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(Ft(void 0)));open(t,e){let a=this._defaultOptions||new Xn;e=g(g({},a),e),e.id=e.id||this._idGenerator.getId("cdk-dialog-"),e.id&&this.getDialogById(e.id);let r=this._getOverlayConfig(e),o=Dn(this._injector,r),s=new Mi(o,e),l=this._attachContainer(o,s,e);if(s.containerInstance=l,!this.openDialogs.length){let d=this._overlayContainer.getContainerElement();l._focusTrapped?l._focusTrapped.pipe(Gt(1)).subscribe(()=>{this._hideNonDialogContentFromAssistiveTechnology(d)}):this._hideNonDialogContentFromAssistiveTechnology(d)}return this._attachDialogContent(t,s,l,e),this.openDialogs.push(s),s.closed.subscribe(()=>this._removeOpenDialog(s,!0)),this.afterOpened.next(s),s}closeAll(){Cd(this.openDialogs,t=>t.close())}getDialogById(t){return this.openDialogs.find(e=>e.id===t)}ngOnDestroy(){Cd(this._openDialogsAtThisLevel,t=>{t.config.closeOnDestroy===!1&&this._removeOpenDialog(t,!1)}),Cd(this._openDialogsAtThisLevel,t=>t.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[]}_getOverlayConfig(t){let e=new je({positionStrategy:t.positionStrategy||bi().centerHorizontally().centerVertically(),scrollStrategy:t.scrollStrategy||this._scrollStrategy(),panelClass:t.panelClass,hasBackdrop:t.hasBackdrop,direction:t.direction,minWidth:t.minWidth,minHeight:t.minHeight,maxWidth:t.maxWidth,maxHeight:t.maxHeight,width:t.width,height:t.height,disposeOnNavigation:t.closeOnNavigation,disableAnimations:t.disableAnimations});return t.backdropClass&&(e.backdropClass=t.backdropClass),e}_attachContainer(t,e,a){let r=a.injector||a.viewContainerRef?.injector,o=[{provide:Xn,useValue:a},{provide:Mi,useValue:e},{provide:oa,useValue:t}],s;a.container?typeof a.container=="function"?s=a.container:(s=a.container.type,o.push(...a.container.providers(a))):s=kd;let l=new Mn(s,a.viewContainerRef,K.create({parent:r||this._injector,providers:o}));return t.attach(l).instance}_attachDialogContent(t,e,a,r){if(t instanceof Te){let o=this._createInjector(r,e,a,void 0),s={$implicit:r.data,dialogRef:e};r.templateContext&&(s=g(g({},s),typeof r.templateContext=="function"?r.templateContext():r.templateContext)),a.attachTemplatePortal(new ze(t,null,s,o))}else{let o=this._createInjector(r,e,a,this._injector),s=a.attachComponentPortal(new Mn(t,r.viewContainerRef,o,null,r.bindings));e.componentRef=s,e.componentInstance=s.instance}}_createInjector(t,e,a,r){let o=t.injector||t.viewContainerRef?.injector,s=[{provide:c0,useValue:t.data},{provide:Mi,useValue:e}];return t.providers&&(typeof t.providers=="function"?s.push(...t.providers(e,t,a)):s.push(...t.providers)),t.direction&&(!o||!o.get(de,null,{optional:!0}))&&s.push({provide:de,useValue:m0(t.direction)}),K.create({parent:o||r,providers:s})}_removeOpenDialog(t,e){let a=this.openDialogs.indexOf(t);a>-1&&(this.openDialogs.splice(a,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((r,o)=>{r?o.setAttribute("aria-hidden",r):o.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),e&&this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(t){if(t.parentElement){let e=t.parentElement.children;for(let a=e.length-1;a>-1;a--){let r=e[a];r!==t&&r.nodeName!=="SCRIPT"&&r.nodeName!=="STYLE"&&!r.hasAttribute("aria-live")&&!r.hasAttribute("popover")&&(this._ariaHiddenElements.set(r,r.getAttribute("aria-hidden")),r.setAttribute("aria-hidden","true"))}}}_getAfterAllClosed(){let t=this._parentDialog;return t?t._getAfterAllClosed():this._afterAllClosedAtThisLevel}static \u0275fac=function(e){return new(e||n)};static \u0275prov=I({token:n,factory:n.\u0275fac})}return n})();function Cd(n,i){let t=n.length;for(;t--;)i(n[t])}var Ys=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;bindings},Md="mdc-dialog--open",xf="mdc-dialog--opening",wf="mdc-dialog--closing",u0=150,h0=75,p0=(()=>{class n extends kd{_animationStateChanged=new Q;_animationsEnabled=!Ct();_actionSectionCount=0;_hostElement=this._elementRef.nativeElement;_enterAnimationDuration=this._animationsEnabled?Cf(this._config.enterAnimationDuration)??u0:0;_exitAnimationDuration=this._animationsEnabled?Cf(this._config.exitAnimationDuration)??h0:0;_animationTimer=null;_contentAttached(){super._contentAttached(),this._startOpenAnimation()}_startOpenAnimation(){this._animationStateChanged.emit({state:"opening",totalTime:this._enterAnimationDuration}),this._animationsEnabled?(this._hostElement.style.setProperty(Sf,`${this._enterAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(xf,Md)),this._waitForAnimationToComplete(this._enterAnimationDuration,this._finishDialogOpen)):(this._hostElement.classList.add(Md),Promise.resolve().then(()=>this._finishDialogOpen()))}_startExitAnimation(){this._animationStateChanged.emit({state:"closing",totalTime:this._exitAnimationDuration}),this._hostElement.classList.remove(Md),this._animationsEnabled?(this._hostElement.style.setProperty(Sf,`${this._exitAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(wf)),this._waitForAnimationToComplete(this._exitAnimationDuration,this._finishDialogClose)):Promise.resolve().then(()=>this._finishDialogClose())}_updateActionSectionCount(t){this._actionSectionCount+=t,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(xf,wf)}_waitForAnimationToComplete(t,e){this._animationTimer!==null&&clearTimeout(this._animationTimer),this._animationTimer=setTimeout(e,t)}_requestAnimationFrame(t){this._ngZone.runOutsideAngular(()=>{typeof requestAnimationFrame=="function"?requestAnimationFrame(t):t()})}_captureInitialFocus(){this._config.delayFocusTrap||this._trapFocus()}_openAnimationDone(t){this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:t})}ngOnDestroy(){super.ngOnDestroy(),this._animationTimer!==null&&clearTimeout(this._animationTimer)}attachComponentPortal(t){let e=super.attachComponentPortal(t);return e.location.nativeElement.classList.add("mat-mdc-dialog-component-host"),e}static \u0275fac=(()=>{let t;return function(a){return(t||(t=Rt(n)))(a||n)}})();static \u0275cmp=(function(){function t(e,a){}return S({type:n,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-mdc-dialog-container","mdc-dialog"],hostVars:10,hostBindings:function(a,r){a&2&&(ee("id",r._config.id),H("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),z("_mat-animation-noopable",!r._animationsEnabled)("mat-mdc-dialog-container-with-actions",r._actionSectionCount>0))},features:[ot],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(a,r){a&1&&(h(0,"div",0)(1,"div",1),Ke(2,t,0,0,"ng-template",2),u()())},dependencies:[$n],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(--%NS%mat-dialog-container-max-width, 560px);
|
|
min-width: var(--%NS%mat-dialog-container-min-width, 280px);
|
|
}
|
|
@media (max-width: 599px) {
|
|
.cdk-overlay-pane.mat-mdc-dialog-panel {
|
|
max-width: var(--%NS%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(--%NS%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(--%NS%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(--%NS%mat-dialog-container-elevation-shadow, none);
|
|
border-radius: var(--%NS%mat-dialog-container-shape, var(--%NS%mat-sys-corner-extra-large, 4px));
|
|
background-color: var(--%NS%mat-dialog-container-color, var(--%NS%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 transparent;
|
|
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(--%NS%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(--%NS%mat-dialog-subhead-color, var(--%NS%mat-sys-on-surface, rgba(0, 0, 0, 0.87)));
|
|
font-family: var(--%NS%mat-dialog-subhead-font, var(--%NS%mat-sys-headline-small-font, inherit));
|
|
line-height: var(--%NS%mat-dialog-subhead-line-height, var(--%NS%mat-sys-headline-small-line-height, 1.5rem));
|
|
font-size: var(--%NS%mat-dialog-subhead-size, var(--%NS%mat-sys-headline-small-size, 1rem));
|
|
font-weight: var(--%NS%mat-dialog-subhead-weight, var(--%NS%mat-sys-headline-small-weight, 400));
|
|
letter-spacing: var(--%NS%mat-dialog-subhead-tracking, var(--%NS%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(--%NS%mat-dialog-supporting-text-color, var(--%NS%mat-sys-on-surface-variant, rgba(0, 0, 0, 0.6)));
|
|
font-family: var(--%NS%mat-dialog-supporting-text-font, var(--%NS%mat-sys-body-medium-font, inherit));
|
|
line-height: var(--%NS%mat-dialog-supporting-text-line-height, var(--%NS%mat-sys-body-medium-line-height, 1.5rem));
|
|
font-size: var(--%NS%mat-dialog-supporting-text-size, var(--%NS%mat-sys-body-medium-size, 1rem));
|
|
font-weight: var(--%NS%mat-dialog-supporting-text-weight, var(--%NS%mat-sys-body-medium-weight, 400));
|
|
letter-spacing: var(--%NS%mat-dialog-supporting-text-tracking, var(--%NS%mat-sys-body-medium-tracking, 0.03125em));
|
|
}
|
|
.mat-mdc-dialog-container .mat-mdc-dialog-content {
|
|
padding: var(--%NS%mat-dialog-content-padding, 20px 24px);
|
|
}
|
|
.mat-mdc-dialog-container-with-actions .mat-mdc-dialog-content {
|
|
padding: var(--%NS%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 transparent;
|
|
padding: var(--%NS%mat-dialog-actions-padding, 16px 24px);
|
|
justify-content: var(--%NS%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;
|
|
}
|
|
`],encapsulation:2,changeDetection:1})})()}return n})(),Sf="--mat-dialog-transition-duration";function Cf(n){return n==null?null:typeof n=="number"?n:n.endsWith("ms")?pn(n.substring(0,n.length-2)):n.endsWith("s")?pn(n.substring(0,n.length-1))*1e3:n==="0"?0:null}var Ks=(function(n){return n[n.OPEN=0]="OPEN",n[n.CLOSING=1]="CLOSING",n[n.CLOSED=2]="CLOSED",n})(Ks||{}),Di=class{_ref;_config;_containerInstance;componentInstance;componentRef=null;disableClose;id;_afterOpened=new tl(1);_beforeClosed=new tl(1);_result;_closeFallbackTimeout;_state=Ks.OPEN;_closeInteractionType;constructor(i,t,e){this._ref=i,this._config=t,this._containerInstance=e,this.disableClose=t.disableClose,this.id=i.id,i.addPanelClass("mat-mdc-dialog-panel"),e._animationStateChanged.pipe(vt(a=>a.state==="opened"),Gt(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),e._animationStateChanged.pipe(vt(a=>a.state==="closed"),Gt(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),i.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose()}),Qt(this.backdropClick(),this.keydownEvents().pipe(vt(a=>a.keyCode===27&&!this.disableClose&&!ie(a)))).subscribe(a=>{this.disableClose||(a.preventDefault(),kf(this,a.type==="keydown"?"keyboard":"mouse"))})}close(i){let t=this._config.closePredicate;t&&!t(i,this._config,this.componentInstance)||(this._result=i,this._containerInstance._animationStateChanged.pipe(vt(e=>e.state==="closing"),Gt(1)).subscribe(e=>{this._beforeClosed.next(i),this._beforeClosed.complete(),this._ref.overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),e.totalTime+100)}),this._state=Ks.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(i){let t=this._ref.config.positionStrategy;return i&&(i.left||i.right)?i.left?t.left(i.left):t.right(i.right):t.centerHorizontally(),i&&(i.top||i.bottom)?i.top?t.top(i.top):t.bottom(i.bottom):t.centerVertically(),this._ref.updatePosition(),this}updateSize(i="",t=""){return this._ref.updateSize(i,t),this}addPanelClass(i){return this._ref.addPanelClass(i),this}removePanelClass(i){return this._ref.removePanelClass(i),this}getState(){return this._state}_finishDialogClose(){this._state=Ks.CLOSED,this._ref.close(this._result,{focusOrigin:this._closeInteractionType}),this.componentInstance=null}};function kf(n,i,t){return n._closeInteractionType=i,n.close(t)}var Dd=new v("MatMdcDialogData"),f0=new v("mat-mdc-dialog-default-options"),g0=new v("mat-mdc-dialog-scroll-strategy",{providedIn:"root",factory:()=>{let n=c(K);return()=>gr(n)}}),Xs=(()=>{class n{_defaultOptions=c(f0,{optional:!0});_scrollStrategy=c(g0);_parentDialog=c(n,{optional:!0,skipSelf:!0});_idGenerator=c(St);_injector=c(K);_dialog=c(yf);_animationsDisabled=Ct();_openDialogsAtThisLevel=[];_afterAllClosedAtThisLevel=new E;_afterOpenedAtThisLevel=new E;dialogConfigClass=Ys;_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 t=this._parentDialog;return t?t._getAfterAllClosed():this._afterAllClosedAtThisLevel}afterAllClosed=rn(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(Ft(void 0)));constructor(){this._dialogRefConstructor=Di,this._dialogContainerType=p0,this._dialogDataToken=Dd}open(t,e){let a;e=g(g({},this._defaultOptions||new Ys),e),e.id=e.id||this._idGenerator.getId("mat-mdc-dialog-"),e.scrollStrategy=e.scrollStrategy||this._scrollStrategy();let r=this._dialog.open(t,ct(g({},e),{positionStrategy:bi(this._injector).centerHorizontally().centerVertically(),disableClose:!0,closePredicate:void 0,closeOnDestroy:!1,closeOnOverlayDetachments:!1,disableAnimations:this._animationsDisabled||e.enterAnimationDuration?.toLocaleString()==="0"||e.exitAnimationDuration?.toString()==="0",container:{type:this._dialogContainerType,providers:()=>[{provide:this.dialogConfigClass,useValue:e},{provide:Xn,useValue:e}]},templateContext:()=>({dialogRef:a}),providers:(o,s,l)=>(a=new this._dialogRefConstructor(o,e,l),a.updatePosition(e?.position),[{provide:this._dialogContainerType,useValue:l},{provide:this._dialogDataToken,useValue:s.data},{provide:this._dialogRefConstructor,useValue:a},{provide:Mi,useValue:null}])}));return a.componentRef=r.componentRef,a.componentInstance=r.componentInstance,this.openDialogs.push(a),this.afterOpened.next(a),a.afterClosed().subscribe(()=>{let o=this.openDialogs.indexOf(a);o>-1&&(this.openDialogs.splice(o,1),this.openDialogs.length||this._getAfterAllClosed().next())}),a}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(t){return this.openDialogs.find(e=>e.id===t)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_closeDialogs(t){let e=t.length;for(;e--;)t[e].close()}static \u0275fac=function(e){return new(e||n)};static \u0275prov=I({token:n,factory:n.\u0275fac})}return n})(),Mf=(()=>{class n{dialogRef=c(Di,{optional:!0});_elementRef=c(R);_dialog=c(Xs);ariaLabel;type="button";dialogResult;_matDialogClose;ngOnInit(){this.dialogRef||(this.dialogRef=Af(this._elementRef,this._dialog.openDialogs))}ngOnChanges(t){let e=t._matDialogClose;e&&(this.dialogResult=e.currentValue)}_onButtonClick(t){this._elementRef.nativeElement.getAttribute("aria-disabled")!=="true"&&kf(this.dialogRef,t.screenX===0&&t.screenY===0?"keyboard":"mouse",this.dialogResult)}static \u0275fac=function(e){return new(e||n)};static \u0275dir=x({type:n,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(e,a){e&1&&B("click",function(o){return a._onButtonClick(o)}),e&2&&H("aria-label",a.ariaLabel||null)("type",a.type)},inputs:{ariaLabel:[0,"aria-label","ariaLabel"],type:"type",dialogResult:[0,"mat-dialog-close","dialogResult"],_matDialogClose:[0,"matDialogClose","_matDialogClose"]},exportAs:["matDialogClose"],features:[Dt]})}return n})(),Df=(()=>{class n{_dialogRef=c(Di,{optional:!0});_elementRef=c(R);_dialog=c(Xs);ngOnInit(){this._dialogRef||(this._dialogRef=Af(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{this._onAdd()})}ngOnDestroy(){this._dialogRef?._containerInstance&&Promise.resolve().then(()=>{this._onRemove()})}static \u0275fac=function(e){return new(e||n)};static \u0275dir=x({type:n})}return n})(),Ef=(()=>{class n extends Df{id=c(St).getId("mat-mdc-dialog-title-");_onAdd(){this._dialogRef._containerInstance?._addAriaLabelledBy?.(this.id)}_onRemove(){this._dialogRef?._containerInstance?._removeAriaLabelledBy?.(this.id)}static \u0275fac=(()=>{let t;return function(a){return(t||(t=Rt(n)))(a||n)}})();static \u0275dir=x({type:n,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-mdc-dialog-title","mdc-dialog__title"],hostVars:1,hostBindings:function(e,a){e&2&&ee("id",a.id)},inputs:{id:"id"},exportAs:["matDialogTitle"],features:[ot]})}return n})(),Nf=(()=>{class n{static \u0275fac=function(e){return new(e||n)};static \u0275dir=x({type:n,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-mdc-dialog-content","mdc-dialog__content"],features:[Jd([ph])]})}return n})(),If=(()=>{class n extends Df{align;_onAdd(){this._dialogRef._containerInstance?._updateActionSectionCount?.(1)}_onRemove(){this._dialogRef._containerInstance?._updateActionSectionCount?.(-1)}static \u0275fac=(()=>{let t;return function(a){return(t||(t=Rt(n)))(a||n)}})();static \u0275dir=x({type:n,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-mdc-dialog-actions","mdc-dialog__actions"],hostVars:6,hostBindings:function(e,a){e&2&&z("mat-mdc-dialog-actions-align-start",a.align==="start")("mat-mdc-dialog-actions-align-center",a.align==="center")("mat-mdc-dialog-actions-align-end",a.align==="end")},inputs:{align:"align"},features:[ot]})}return n})();function Af(n,i){let t=n.nativeElement.parentElement;for(;t&&!t.classList.contains("mat-mdc-dialog-container");)t=t.parentElement;return t?i.find(e=>e.id===t.id):null}var Rf=(()=>{class n{data;dialogRef=c(Di);hide=X(!0);constructor(t){this.data=t}onNoClick(){this.dialogRef.close()}clickEvent(t){this.hide.set(!this.hide()),t.stopPropagation()}static \u0275fac=function(e){return new(e||n)(U(Dd))};static \u0275cmp=S({type:n,selectors:[["app-dialog"]],decls:21,vars:7,consts:[["mat-dialog-title",""],["mat-dialog-content",""],[1,"fillField"],["matInput","",3,"ngModelChange","ngModel"],["matInput","",3,"ngModelChange","type","ngModel"],["mat-icon-button","","matSuffix","",3,"click"],["mat-dialog-actions",""],["mat-button","","mat-dialog-close","",3,"click"],["mat-button","","cdkFocusInitial","",3,"mat-dialog-close"]],template:function(e,a){e&1&&(h(0,"h1",0),f(1,"Hi "),u(),h(2,"div",1)(3,"p"),f(4,"User name"),u(),h(5,"mat-form-field",2)(6,"input",3),Tt(),Ht("ngModelChange",function(o){return Ut(a.data.username,o)||(a.data.username=o),o}),u()(),h(7,"p"),f(8,"Password"),u(),h(9,"mat-form-field",2)(10,"mat-label"),f(11,"Enter your password"),u(),h(12,"input",4),Tt(),Ht("ngModelChange",function(o){return Ut(a.data.password,o)||(a.data.password=o),o}),u(),h(13,"button",5),B("click",function(o){return a.clickEvent(o)}),h(14,"mat-icon"),f(15),u()()()(),h(16,"div",6)(17,"button",7),B("click",function(){return a.onNoClick()}),f(18,"No Thanks"),u(),h(19,"button",8),f(20,"Ok"),u()()),e&2&&(p(6),jt("ngModel",a.data.username),Ot(),p(6),mt("type",a.hide()?"password":"text"),jt("ngModel",a.data.password),Ot(),p(),H("aria-label","Hide password")("aria-pressed",a.hide()),p(2),Lt(a.hide()?"visibility_off":"visibility"),p(4),mt("mat-dialog-close",a.data))},dependencies:[wr,He,xr,Ge,If,Mf,Ef,Nf,Ie,Yn,ba,me,Se,Ne,Ce,wa],styles:[".fillField[_ngcontent-%COMP%]{width:100%}"]})}return n})();var b0=(()=>{class n{static \u0275fac=function(e){return new(e||n)};static \u0275dir=x({type:n,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]})}return n})(),Zs=(()=>{class n{_elementRef=c(R);_platform=c(ut);_document=c(F);color;_toolbarRows;ngAfterViewInit(){this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(()=>this._checkToolbarMixedModes()))}_checkToolbarMixedModes(){this._toolbarRows.length}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=(function(){let t=["*",[["mat-toolbar-row"]]];return S({type:n,selectors:[["mat-toolbar"]],contentQueries:function(r,o,s){if(r&1&&ne(s,b0,5),r&2){let l;P(l=L())&&(o._toolbarRows=l)}},hostAttrs:[1,"mat-toolbar"],hostVars:6,hostBindings:function(r,o){r&2&&(Fe(o.color?"mat-"+o.color:""),z("mat-toolbar-multiple-rows",o._toolbarRows.length>0)("mat-toolbar-single-row",o._toolbarRows.length===0))},inputs:{color:"color"},exportAs:["matToolbar"],ngContentSelectors:["*","mat-toolbar-row"],decls:2,vars:0,template:function(r,o){r&1&&(_t(t),V(0),V(1,1))},styles:[`.mat-toolbar {
|
|
background: var(--%NS%mat-toolbar-container-background-color, var(--%NS%mat-sys-surface));
|
|
color: var(--%NS%mat-toolbar-container-text-color, var(--%NS%mat-sys-on-surface));
|
|
}
|
|
.mat-toolbar, .mat-toolbar h1, .mat-toolbar h2, .mat-toolbar h3, .mat-toolbar h4, .mat-toolbar h5, .mat-toolbar h6 {
|
|
font-family: var(--%NS%mat-toolbar-title-text-font, var(--%NS%mat-sys-title-large-font));
|
|
font-size: var(--%NS%mat-toolbar-title-text-size, var(--%NS%mat-sys-title-large-size));
|
|
line-height: var(--%NS%mat-toolbar-title-text-line-height, var(--%NS%mat-sys-title-large-line-height));
|
|
font-weight: var(--%NS%mat-toolbar-title-text-weight, var(--%NS%mat-sys-title-large-weight));
|
|
letter-spacing: var(--%NS%mat-toolbar-title-text-tracking, var(--%NS%mat-sys-title-large-tracking));
|
|
margin: 0;
|
|
}
|
|
@media (forced-colors: active) {
|
|
.mat-toolbar {
|
|
outline: solid 1px;
|
|
}
|
|
}
|
|
.mat-toolbar .mat-form-field-underline,
|
|
.mat-toolbar .mat-form-field-ripple,
|
|
.mat-toolbar .mat-focused .mat-form-field-ripple {
|
|
background-color: currentColor;
|
|
}
|
|
.mat-toolbar .mat-form-field-label,
|
|
.mat-toolbar .mat-focused .mat-form-field-label,
|
|
.mat-toolbar .mat-select-value,
|
|
.mat-toolbar .mat-select-arrow,
|
|
.mat-toolbar .mat-form-field.mat-focused .mat-select-arrow {
|
|
color: inherit;
|
|
}
|
|
.mat-toolbar .mat-input-element {
|
|
caret-color: currentColor;
|
|
}
|
|
.mat-toolbar .mat-mdc-button-base.mat-mdc-button-base.mat-unthemed {
|
|
--%NS%mat-button-text-label-text-color: var(--%NS%mat-toolbar-container-text-color, var(--%NS%mat-sys-on-surface));
|
|
--%NS%mat-button-outlined-label-text-color: var(--%NS%mat-toolbar-container-text-color, var(--%NS%mat-sys-on-surface));
|
|
}
|
|
|
|
.mat-toolbar-row, .mat-toolbar-single-row {
|
|
display: flex;
|
|
box-sizing: border-box;
|
|
padding: 0 16px;
|
|
width: 100%;
|
|
flex-direction: row;
|
|
align-items: center;
|
|
white-space: nowrap;
|
|
height: var(--%NS%mat-toolbar-standard-height, 64px);
|
|
}
|
|
@media (max-width: 599px) {
|
|
.mat-toolbar-row, .mat-toolbar-single-row {
|
|
height: var(--%NS%mat-toolbar-mobile-height, 56px);
|
|
}
|
|
}
|
|
|
|
.mat-toolbar-multiple-rows {
|
|
display: flex;
|
|
box-sizing: border-box;
|
|
flex-direction: column;
|
|
width: 100%;
|
|
min-height: var(--%NS%mat-toolbar-standard-height, 64px);
|
|
}
|
|
@media (max-width: 599px) {
|
|
.mat-toolbar-multiple-rows {
|
|
min-height: var(--%NS%mat-toolbar-mobile-height, 56px);
|
|
}
|
|
}
|
|
`],encapsulation:2})})()}return n})();var Nd=new v("MAT_MENU_PANEL"),Ei=(()=>{class n{_isAnchor;_elementRef=c(R);_document=c(F);_focusMonitor=c(fn);_parentMenu=c(Nd,{optional:!0});_changeDetectorRef=c(xt);role="menuitem";disabled=!1;disabledInteractive=!1;disableRipple=!1;_hovered=new E;_focused=new E;_highlighted=!1;_triggersSubmenu=!1;constructor(){c(Bt).load(en),this._parentMenu?.addItem?.(this),this._isAnchor=this._elementRef.nativeElement.tagName==="A"}focus(t,e){this._focusMonitor&&t?this._focusMonitor.focusVia(this._getHostElement(),t,e):this._getHostElement().focus(e),this._focused.next(this)}ngAfterViewInit(){this._focusMonitor&&this._focusMonitor.monitor(this._elementRef,!1)}ngOnDestroy(){this._focusMonitor&&this._focusMonitor.stopMonitoring(this._elementRef),this._parentMenu&&this._parentMenu.removeItem&&this._parentMenu.removeItem(this),this._hovered.complete(),this._focused.complete()}_getTabIndex(){return this.disabled&&!this.disabledInteractive?"-1":"0"}_getAriaDisabled(){return this._isAnchor?this.disabled||null:this.disabled&&this.disabledInteractive?!0:null}_getDisabled(){return this.disabledInteractive||!this.disabled?null:!0}_getHostElement(){return this._elementRef.nativeElement}_checkDisabled(t){this.disabled&&(t.preventDefault(),t.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){let t=this._elementRef.nativeElement.cloneNode(!0),e=t.querySelectorAll("mat-icon, .material-icons, .material-symbols-outlined, .material-symbols-rounded, .material-symbols-sharp");for(let a=0;a<e.length;a++)e[a].remove();return t.textContent?.trim()||""}_setHighlighted(t){this._highlighted=t,this._changeDetectorRef.markForCheck()}_setTriggersSubmenu(t){this._triggersSubmenu=t,this._changeDetectorRef.markForCheck()}_hasFocus(){return this._document&&this._document.activeElement===this._getHostElement()}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=(function(){let t=[[["mat-icon"],["","matMenuItemIcon",""]],"*"],e=["mat-icon, [matMenuItemIcon]","*"];function a(r,o){r&1&&($r(),h(0,"svg",2),dt(1,"polygon",3),u())}return S({type:n,selectors:[["","mat-menu-item",""]],hostAttrs:[1,"mat-mdc-menu-item","mat-focus-indicator"],hostVars:12,hostBindings:function(o,s){o&1&&B("click",function(d){return s._checkDisabled(d)})("mouseenter",function(){return s._handleMouseEnter()}),o&2&&(H("role",s.role)("tabindex",s._getTabIndex())("aria-disabled",s._getAriaDisabled())("disabled",s._getDisabled()),z("mat-mdc-menu-item-highlighted",s._highlighted)("mat-mdc-menu-item-submenu-trigger",s._triggersSubmenu)("mat-mdc-menu-item-disabled",s.disabled)("mat-mdc-menu-item-disabled-interactive",s.disabledInteractive))},inputs:{role:"role",disabled:[2,"disabled","disabled",j],disabledInteractive:[2,"disabledInteractive","disabledInteractive",j],disableRipple:[2,"disableRipple","disableRipple",j]},exportAs:["matMenuItem"],ngContentSelectors:e,decls:5,vars:3,consts:[[1,"mat-mdc-menu-item-text"],["matRipple","",1,"mat-mdc-menu-ripple",3,"matRippleDisabled","matRippleTrigger"],["viewBox","0 0 5 10","focusable","false","aria-hidden","true",1,"mat-mdc-menu-submenu-icon"],["points","0,0 5,5 0,10"]],template:function(o,s){o&1&&(_t(t),V(0),h(1,"span",0),V(2,1),u(),dt(3,"div",1),C(4,a,2,0,"svg",2)),o&2&&(p(3),mt("matRippleDisabled",s.disableRipple||s.disabled)("matRippleTrigger",s._getHostElement()),p(),k(s._triggersSubmenu?4:-1))},dependencies:[fs],encapsulation:2})})()}return n})();var _0=new v("MatMenuContent");var y0=new v("mat-menu-default-options",{providedIn:"root",factory:()=>({overlapTrigger:!1,xPosition:"after",yPosition:"below",backdropClass:"cdk-overlay-transparent-backdrop"})}),Ed="_mat-menu-enter",Qs="_mat-menu-exit",Zn=(()=>{class n{_elementRef=c(R);_changeDetectorRef=c(xt);_injector=c(K);_keyManager;_xPosition;_yPosition;_firstItemFocusRef;_exitFallbackTimeout;_animationsDisabled=Ct();_allItems;_directDescendantItems=new ei;_classList={};_panelAnimationState="void";_animationDone=new E;_isAnimating=X(!1);parentMenu;direction;overlayPanelClass;backdropClass;ariaLabel;ariaLabelledby;ariaDescribedby;get xPosition(){return this._xPosition}set xPosition(t){this._xPosition=t,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(t){this._yPosition=t,this.setPositionClasses()}templateRef;items;lazyContent;overlapTrigger=!1;hasBackdrop;get panelClass(){return this._previousPanelClass}set panelClass(t){let e=this._previousPanelClass,a=g({},this._classList);e&&e.length&&e.split(" ").forEach(r=>{a[r]=!1}),this._previousPanelClass=t,t&&t.length&&(t.split(" ").forEach(r=>{a[r]=!0}),this._elementRef.nativeElement.className=""),this._classList=a}_previousPanelClass="";get classList(){return this.panelClass}set classList(t){this.panelClass=t}closed=new Q;close=this.closed;panelId=c(St).getId("mat-menu-panel-");constructor(){let t=c(y0);this.overlayPanelClass=t.overlayPanelClass||"",this._xPosition=t.xPosition,this._yPosition=t.yPosition,this.backdropClass=t.backdropClass,this.overlapTrigger=t.overlapTrigger,this.hasBackdrop=t.hasBackdrop}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new hi(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd().skipPredicate(t=>t.disabled&&!t.disabledInteractive),this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe(Ft(this._directDescendantItems),Mt(t=>Qt(...t.map(e=>e._focused)))).subscribe(t=>this._keyManager.updateActiveItem(t)),this._directDescendantItems.changes.subscribe(t=>{let e=this._keyManager;if(this._panelAnimationState==="enter"&&e.activeItem?._hasFocus()){let a=t.toArray(),r=Math.max(0,Math.min(a.length-1,e.activeItemIndex||0));a[r]&&!a[r].disabled?e.setActiveItem(r):e.setNextItemActive()}})}ngOnDestroy(){this._keyManager?.destroy(),this._directDescendantItems.destroy(),this.closed.complete(),this._firstItemFocusRef?.destroy(),clearTimeout(this._exitFallbackTimeout)}_hovered(){return this._directDescendantItems.changes.pipe(Ft(this._directDescendantItems),Mt(e=>Qt(...e.map(a=>a._hovered))))}addItem(t){}removeItem(t){}_handleKeydown(t){let e=t.keyCode,a=this._keyManager;switch(e){case 27:ie(t)||(t.preventDefault(),this.closed.emit("keydown"));break;case 37:this.parentMenu&&this.direction==="ltr"&&this.closed.emit("keydown");break;case 39:this.parentMenu&&this.direction==="rtl"&&this.closed.emit("keydown");break;default:(e===38||e===40)&&a.setFocusOrigin("keyboard"),a.onKeydown(t);return}}focusFirstItem(t="program"){this._firstItemFocusRef?.destroy(),this._firstItemFocusRef=Pt(()=>{let e=this._resolvePanel();if(!e||!e.contains(document.activeElement)){let a=this._keyManager;a.setFocusOrigin(t).setFirstItemActive(),!a.activeItem&&e&&e.focus()}},{injector:this._injector})}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(t){}setPositionClasses(t=this.xPosition,e=this.yPosition){this._classList=ct(g({},this._classList),{"mat-menu-before":t==="before","mat-menu-after":t==="after","mat-menu-above":e==="above","mat-menu-below":e==="below"}),this._changeDetectorRef.markForCheck()}_onAnimationDone(t){let e=t===Qs;(e||t===Ed)&&(e&&(clearTimeout(this._exitFallbackTimeout),this._exitFallbackTimeout=void 0),this._animationDone.next(e?"void":"enter"),this._isAnimating.set(!1))}_onAnimationStart(t){(t===Ed||t===Qs)&&this._isAnimating.set(!0)}_setIsOpen(t){if(this._panelAnimationState=t?"enter":"void",t){if(this._keyManager.activeItemIndex===0){let e=this._resolvePanel();e&&(e.scrollTop=0)}}else this._animationsDisabled||(this._exitFallbackTimeout=setTimeout(()=>this._onAnimationDone(Qs),200));this._animationsDisabled&&setTimeout(()=>{this._onAnimationDone(t?Ed:Qs)}),this._changeDetectorRef.markForCheck()}_updateDirectDescendants(){this._allItems.changes.pipe(Ft(this._allItems)).subscribe(t=>{this._directDescendantItems.reset(t.filter(e=>e._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}_resolvePanel(){let t=null;return this._directDescendantItems.length&&(t=this._directDescendantItems.first._getHostElement().closest('[role="menu"]')),t}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=(function(){let t=["*"];function e(a,r){if(a&1){let o=Nt();qt(0,"div",0),nm("click",function(){at(o);let l=w();return rt(l.closed.emit("click"))})("animationstart",function(l){at(o);let d=w();return rt(d._onAnimationStart(l.animationName))})("animationend",function(l){at(o);let d=w();return rt(d._onAnimationDone(l.animationName))})("animationcancel",function(l){at(o);let d=w();return rt(d._onAnimationDone(l.animationName))}),qt(1,"div",1),V(2),te()()}if(a&2){let o=w();Fe(o._classList),z("mat-menu-panel-animations-disabled",o._animationsDisabled)("mat-menu-panel-exit-animation",o._panelAnimationState==="void")("mat-menu-panel-animating",o._isAnimating()),ee("id",o.panelId),H("aria-label",o.ariaLabel||null)("aria-labelledby",o.ariaLabelledby||null)("aria-describedby",o.ariaDescribedby||null)}}return S({type:n,selectors:[["mat-menu"]],contentQueries:function(r,o,s){if(r&1&&ne(s,_0,5)(s,Ei,5)(s,Ei,4),r&2){let l;P(l=L())&&(o.lazyContent=l.first),P(l=L())&&(o._allItems=l),P(l=L())&&(o.items=l)}},viewQuery:function(r,o){if(r&1&&Kt(Te,5),r&2){let s;P(s=L())&&(o.templateRef=s.first)}},hostVars:3,hostBindings:function(r,o){r&2&&H("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},inputs:{backdropClass:"backdropClass",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],ariaDescribedby:[0,"aria-describedby","ariaDescribedby"],xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:[2,"overlapTrigger","overlapTrigger",j],hasBackdrop:[2,"hasBackdrop","hasBackdrop",a=>a==null?null:j(a)],panelClass:[0,"class","panelClass"],classList:"classList"},outputs:{closed:"closed",close:"close"},exportAs:["matMenu"],features:[ft([{provide:Nd,useExisting:n}])],ngContentSelectors:t,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-mdc-menu-panel",3,"click","animationstart","animationend","animationcancel","id"],[1,"mat-mdc-menu-content"]],template:function(r,o){r&1&&(_t(),Kr(0,e,3,12,"ng-template"))},styles:[`mat-menu {
|
|
display: none;
|
|
}
|
|
|
|
.mat-mdc-menu-content {
|
|
margin: 0;
|
|
padding: 8px 0;
|
|
outline: 0;
|
|
}
|
|
.mat-mdc-menu-content,
|
|
.mat-mdc-menu-content .mat-mdc-menu-item .mat-mdc-menu-item-text {
|
|
-moz-osx-font-smoothing: grayscale;
|
|
-webkit-font-smoothing: antialiased;
|
|
flex: 1;
|
|
white-space: normal;
|
|
font-family: var(--%NS%mat-menu-item-label-text-font, var(--%NS%mat-sys-label-large-font));
|
|
line-height: var(--%NS%mat-menu-item-label-text-line-height, var(--%NS%mat-sys-label-large-line-height));
|
|
font-size: var(--%NS%mat-menu-item-label-text-size, var(--%NS%mat-sys-label-large-size));
|
|
letter-spacing: var(--%NS%mat-menu-item-label-text-tracking, var(--%NS%mat-sys-label-large-tracking));
|
|
font-weight: var(--%NS%mat-menu-item-label-text-weight, var(--%NS%mat-sys-label-large-weight));
|
|
}
|
|
|
|
@keyframes _mat-menu-enter {
|
|
from {
|
|
opacity: 0;
|
|
transform: scale(0.8);
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
transform: none;
|
|
}
|
|
}
|
|
@keyframes _mat-menu-exit {
|
|
from {
|
|
opacity: 1;
|
|
}
|
|
to {
|
|
opacity: 0;
|
|
}
|
|
}
|
|
.mat-mdc-menu-panel {
|
|
min-width: 112px;
|
|
max-width: 280px;
|
|
overflow: auto;
|
|
box-sizing: border-box;
|
|
outline: 0;
|
|
animation: _mat-menu-enter 120ms cubic-bezier(0, 0, 0.2, 1);
|
|
border-radius: var(--%NS%mat-menu-container-shape, var(--%NS%mat-sys-corner-extra-small));
|
|
background-color: var(--%NS%mat-menu-container-color, var(--%NS%mat-sys-surface-container));
|
|
box-shadow: var(--%NS%mat-menu-container-elevation-shadow, 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12));
|
|
will-change: transform, opacity;
|
|
}
|
|
.mat-mdc-menu-panel.mat-menu-panel-exit-animation {
|
|
animation: _mat-menu-exit 100ms 25ms linear forwards;
|
|
}
|
|
.mat-mdc-menu-panel.mat-menu-panel-animations-disabled {
|
|
animation: none;
|
|
}
|
|
.mat-mdc-menu-panel.mat-menu-panel-animating {
|
|
pointer-events: none;
|
|
}
|
|
.mat-mdc-menu-panel.mat-menu-panel-animating:has(.mat-mdc-menu-content:empty) {
|
|
display: none;
|
|
}
|
|
@media (forced-colors: active) {
|
|
.mat-mdc-menu-panel {
|
|
outline: solid 1px;
|
|
}
|
|
}
|
|
.mat-mdc-menu-panel .mat-divider {
|
|
border-top-color: var(--%NS%mat-menu-divider-color, var(--%NS%mat-sys-surface-variant));
|
|
margin-bottom: var(--%NS%mat-menu-divider-bottom-spacing, 8px);
|
|
margin-top: var(--%NS%mat-menu-divider-top-spacing, 8px);
|
|
}
|
|
|
|
.mat-mdc-menu-item {
|
|
display: flex;
|
|
position: relative;
|
|
align-items: center;
|
|
justify-content: flex-start;
|
|
overflow: hidden;
|
|
padding: 0;
|
|
cursor: pointer;
|
|
width: 100%;
|
|
text-align: left;
|
|
box-sizing: border-box;
|
|
color: inherit;
|
|
font-size: inherit;
|
|
background: none;
|
|
text-decoration: none;
|
|
margin: 0;
|
|
min-height: 48px;
|
|
padding-left: var(--%NS%mat-menu-item-leading-spacing, 12px);
|
|
padding-right: var(--%NS%mat-menu-item-trailing-spacing, 12px);
|
|
-webkit-user-select: none;
|
|
user-select: none;
|
|
cursor: pointer;
|
|
outline: none;
|
|
border: none;
|
|
-webkit-tap-highlight-color: transparent;
|
|
}
|
|
.mat-mdc-menu-item::-moz-focus-inner {
|
|
border: 0;
|
|
}
|
|
[dir=rtl] .mat-mdc-menu-item {
|
|
padding-left: var(--%NS%mat-menu-item-trailing-spacing, 12px);
|
|
padding-right: var(--%NS%mat-menu-item-leading-spacing, 12px);
|
|
}
|
|
.mat-mdc-menu-item:has(.material-icons, .material-symbols-outlined, .material-symbols-rounded, .material-symbols-sharp, mat-icon, [matButtonIcon]) {
|
|
padding-left: var(--%NS%mat-menu-item-with-icon-leading-spacing, 12px);
|
|
padding-right: var(--%NS%mat-menu-item-with-icon-trailing-spacing, 12px);
|
|
}
|
|
[dir=rtl] .mat-mdc-menu-item:has(.material-icons, .material-symbols-outlined, .material-symbols-rounded, .material-symbols-sharp, mat-icon, [matButtonIcon]) {
|
|
padding-left: var(--%NS%mat-menu-item-with-icon-trailing-spacing, 12px);
|
|
padding-right: var(--%NS%mat-menu-item-with-icon-leading-spacing, 12px);
|
|
}
|
|
.mat-mdc-menu-item, .mat-mdc-menu-item:visited, .mat-mdc-menu-item:link {
|
|
color: var(--%NS%mat-menu-item-label-text-color, var(--%NS%mat-sys-on-surface));
|
|
}
|
|
.mat-mdc-menu-item .mat-icon-no-color,
|
|
.mat-mdc-menu-item .mat-mdc-menu-submenu-icon {
|
|
color: var(--%NS%mat-menu-item-icon-color, var(--%NS%mat-sys-on-surface-variant));
|
|
}
|
|
.mat-mdc-menu-item[disabled], .mat-mdc-menu-item.mat-mdc-menu-item-disabled {
|
|
cursor: default;
|
|
opacity: 0.38;
|
|
}
|
|
.mat-mdc-menu-item[disabled]::after, .mat-mdc-menu-item.mat-mdc-menu-item-disabled::after {
|
|
display: block;
|
|
position: absolute;
|
|
content: "";
|
|
top: 0;
|
|
left: 0;
|
|
bottom: 0;
|
|
right: 0;
|
|
}
|
|
.mat-mdc-menu-item:focus {
|
|
outline: 0;
|
|
}
|
|
.mat-mdc-menu-item .mat-icon {
|
|
flex-shrink: 0;
|
|
margin-right: var(--%NS%mat-menu-item-spacing, 12px);
|
|
height: var(--%NS%mat-menu-item-icon-size, 24px);
|
|
width: var(--%NS%mat-menu-item-icon-size, 24px);
|
|
}
|
|
[dir=rtl] .mat-mdc-menu-item {
|
|
text-align: right;
|
|
}
|
|
[dir=rtl] .mat-mdc-menu-item .mat-icon {
|
|
margin-right: 0;
|
|
margin-left: var(--%NS%mat-menu-item-spacing, 12px);
|
|
}
|
|
.mat-mdc-menu-item:not([disabled]):hover {
|
|
background-color: var(--%NS%mat-menu-item-hover-state-layer-color, color-mix(in srgb, var(--%NS%mat-sys-on-surface) calc(var(--%NS%mat-sys-hover-state-layer-opacity) * 100%), transparent));
|
|
}
|
|
.mat-mdc-menu-item:not([disabled]).cdk-program-focused, .mat-mdc-menu-item:not([disabled]).cdk-keyboard-focused, .mat-mdc-menu-item:not([disabled]).mat-mdc-menu-item-highlighted {
|
|
background-color: var(--%NS%mat-menu-item-focus-state-layer-color, color-mix(in srgb, var(--%NS%mat-sys-on-surface) calc(var(--%NS%mat-sys-focus-state-layer-opacity) * 100%), transparent));
|
|
}
|
|
@media (forced-colors: active) {
|
|
.mat-mdc-menu-item {
|
|
margin-top: 1px;
|
|
}
|
|
}
|
|
|
|
.mat-mdc-menu-submenu-icon {
|
|
width: var(--%NS%mat-menu-item-icon-size, 24px);
|
|
height: 10px;
|
|
fill: currentColor;
|
|
padding-left: var(--%NS%mat-menu-item-spacing, 12px);
|
|
}
|
|
[dir=rtl] .mat-mdc-menu-submenu-icon {
|
|
padding-right: var(--%NS%mat-menu-item-spacing, 12px);
|
|
padding-left: 0;
|
|
}
|
|
[dir=rtl] .mat-mdc-menu-submenu-icon polygon {
|
|
transform: scaleX(-1);
|
|
transform-origin: center;
|
|
}
|
|
@media (forced-colors: active) {
|
|
.mat-mdc-menu-submenu-icon {
|
|
fill: CanvasText;
|
|
}
|
|
}
|
|
|
|
.mat-mdc-menu-item .mat-mdc-menu-ripple {
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
position: absolute;
|
|
pointer-events: none;
|
|
}
|
|
`],encapsulation:2})})()}return n})(),x0=new v("mat-menu-scroll-strategy",{providedIn:"root",factory:()=>{let n=c(K);return()=>br(n)}});var Ma=new WeakMap,w0=(()=>{class n{_canHaveBackdrop;_element=c(R);_viewContainerRef=c(Oe);_menuItemInstance=c(Ei,{optional:!0,self:!0});_dir=c(de,{optional:!0});_focusMonitor=c(fn);_ngZone=c(O);_injector=c(K);_scrollStrategy=c(x0);_changeDetectorRef=c(xt);_animationsDisabled=Ct();_portal;_overlayRef=null;_menuOpen=!1;_closingActionsSubscription=Et.EMPTY;_menuCloseSubscription=Et.EMPTY;_pendingRemoval;_parentMaterialMenu;_parentInnerPadding;_openedBy=void 0;get _menu(){return this._menuInternal}set _menu(t){t!==this._menuInternal&&(this._menuInternal=t,this._menuCloseSubscription.unsubscribe(),t?(this._parentMaterialMenu,this._menuCloseSubscription=t.close.subscribe(e=>{this._destroyMenu(e),(e==="click"||e==="tab")&&this._parentMaterialMenu&&this._parentMaterialMenu.closed.emit(e)})):this._destroyMenu(),this._menuItemInstance?._setTriggersSubmenu(this._triggersSubmenu()))}_menuInternal=null;constructor(t){this._canHaveBackdrop=t;let e=c(Nd,{optional:!0});this._parentMaterialMenu=e instanceof Zn?e:void 0}ngOnDestroy(){this._menu&&this._ownsMenu(this._menu)&&Ma.delete(this._menu),this._pendingRemoval?.unsubscribe(),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null)}get menuOpen(){return this._menuOpen}get dir(){return this._dir&&this._dir.value==="rtl"?"rtl":"ltr"}_triggersSubmenu(){return!!(this._menuItemInstance&&this._parentMaterialMenu&&this._menu)}_closeMenu(){this._menu?.close.emit()}_openMenu(t){if(this._triggerIsAriaDisabled())return;let e=this._menu;if(this._menuOpen||!e)return;this._pendingRemoval?.unsubscribe();let a=Ma.get(e);Ma.set(e,this),a&&a!==this&&a._closeMenu();let r=this._createOverlay(e),o=r.getConfig(),s=o.positionStrategy;this._setPosition(e,s),this._canHaveBackdrop?o.hasBackdrop=e.hasBackdrop==null?!this._triggersSubmenu():e.hasBackdrop:o.hasBackdrop=e.hasBackdrop??!1,r.hasAttached()||(r.attach(this._getPortal(e)),e.lazyContent?.attach(this.menuData)),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this._closeMenu()),e.parentMenu=this._triggersSubmenu()?this._parentMaterialMenu:void 0,e.direction=this.dir,t&&e.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0),e instanceof Zn&&(e._setIsOpen(!0),e._directDescendantItems.changes.pipe(kt(e.close)).subscribe(()=>{s.withLockedPosition(!1).reapplyLastPosition(),s.withLockedPosition(!0)}))}focus(t,e){this._focusMonitor&&t?this._focusMonitor.focusVia(this._element,t,e):this._element.nativeElement.focus(e)}_destroyMenu(t){let e=this._overlayRef,a=this._menu;!e||!this.menuOpen||(this._closingActionsSubscription.unsubscribe(),this._pendingRemoval?.unsubscribe(),a instanceof Zn&&this._ownsMenu(a)?(this._pendingRemoval=a._animationDone.pipe(Gt(1)).subscribe(()=>{e.detach(),Ma.has(a)||a.lazyContent?.detach()}),a._setIsOpen(!1)):(e.detach(),a?.lazyContent?.detach()),a&&this._ownsMenu(a)&&Ma.delete(a),this.restoreFocus&&(t==="keydown"||!this._openedBy||!this._triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,this._setIsMenuOpen(!1))}_setIsMenuOpen(t){t!==this._menuOpen&&(this._menuOpen=t,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this._triggersSubmenu()&&this._menuItemInstance._setHighlighted(t),this._changeDetectorRef.markForCheck())}_createOverlay(t){if(!this._overlayRef){let e=this._getOverlayConfig(t);this._subscribeToPositions(t,e.positionStrategy),this._overlayRef=Dn(this._injector,e),this._overlayRef.keydownEvents().subscribe(a=>{this._menu instanceof Zn&&this._menu._handleKeydown(a)})}return this._overlayRef}_getOverlayConfig(t){return new je({positionStrategy:vr(this._injector,this._getOverlayOrigin()).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:t.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:t.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir||"ltr",disableAnimations:this._animationsDisabled})}_subscribeToPositions(t,e){t.setPositionClasses&&e.positionChanges.subscribe(a=>{this._ngZone.run(()=>{let r=a.connectionPair.overlayX==="start"?"after":"before",o=a.connectionPair.overlayY==="top"?"below":"above";t.setPositionClasses(r,o)})})}_setPosition(t,e){let[a,r]=t.xPosition==="before"?["end","start"]:["start","end"],[o,s]=t.yPosition==="above"?["bottom","top"]:["top","bottom"],[l,d]=[o,s],[m,_]=[a,r],b=0;if(this._triggersSubmenu()){if(_=a=t.xPosition==="before"?"start":"end",r=m=a==="end"?"start":"end",this._parentMaterialMenu){if(this._parentInnerPadding==null){let M=this._parentMaterialMenu.items.first;this._parentInnerPadding=M?M._getHostElement().offsetTop:0}b=o==="bottom"?this._parentInnerPadding:-this._parentInnerPadding}}else t.overlapTrigger||(l=o==="top"?"bottom":"top",d=s==="top"?"bottom":"top");e.withPositions([{originX:a,originY:l,overlayX:m,overlayY:o,offsetY:b},{originX:r,originY:l,overlayX:_,overlayY:o,offsetY:b},{originX:a,originY:d,overlayX:m,overlayY:s,offsetY:-b},{originX:r,originY:d,overlayX:_,overlayY:s,offsetY:-b}])}_menuClosingActions(){let t=this._getOutsideClickStream(this._overlayRef),e=this._overlayRef.detachments(),a=this._parentMaterialMenu?this._parentMaterialMenu.closed:A(),r=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe(vt(o=>this._menuOpen&&o!==this._menuItemInstance)):A();return Qt(t,a,r,e)}_getPortal(t){return(!this._portal||this._portal.templateRef!==t.templateRef)&&(this._portal=new ze(t.templateRef,this._viewContainerRef)),this._portal}_ownsMenu(t){return Ma.get(t)===this}_triggerIsAriaDisabled(){return j(this._element.nativeElement.getAttribute("aria-disabled"))}static \u0275fac=function(e){Rn()};static \u0275dir=x({type:n})}return n})(),Tf=(()=>{class n extends w0{_cleanupTouchstart;_hoverSubscription=Et.EMPTY;get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(t){this.menu=t}get menu(){return this._menu}set menu(t){this._menu=t}menuData;restoreFocus=!0;menuOpened=new Q;onMenuOpen=this.menuOpened;menuClosed=new Q;onMenuClose=this.menuClosed;constructor(){super(!0);let t=c(pt);this._cleanupTouchstart=t.listen(this._element.nativeElement,"touchstart",e=>{di(e)||(this._openedBy="touch")},{passive:!0})}triggersSubmenu(){return super._triggersSubmenu()}toggleMenu(){return this.menuOpen?this.closeMenu():this.openMenu()}openMenu(){this._openMenu(!0)}closeMenu(){this._closeMenu()}updatePosition(){this._overlayRef?.updatePosition()}ngAfterContentInit(){this._handleHover()}ngOnDestroy(){super.ngOnDestroy(),this._cleanupTouchstart(),this._hoverSubscription.unsubscribe()}_getOverlayOrigin(){return this._element}_getOutsideClickStream(t){return t.backdropClick()}_handleMousedown(t){ci(t)||(this._openedBy=t.button===0?"mouse":void 0,this.triggersSubmenu()&&t.preventDefault())}_handleKeydown(t){let e=t.keyCode;(e===13||e===32)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(e===39&&this.dir==="ltr"||e===37&&this.dir==="rtl")&&(this._openedBy="keyboard",this.openMenu())}_handleClick(t){this.triggersSubmenu()?(t.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){this.triggersSubmenu()&&this._parentMaterialMenu&&(this._hoverSubscription=this._parentMaterialMenu._hovered().subscribe(t=>{t===this._menuItemInstance&&!t.disabled&&this._parentMaterialMenu?._panelAnimationState!=="void"&&(this._openedBy="mouse",this._openMenu(!1))}))}static \u0275fac=function(e){return new(e||n)};static \u0275dir=x({type:n,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-mdc-menu-trigger"],hostVars:3,hostBindings:function(e,a){e&1&&B("click",function(o){return a._handleClick(o)})("mousedown",function(o){return a._handleMousedown(o)})("keydown",function(o){return a._handleKeydown(o)}),e&2&&H("aria-haspopup",a.menu?"menu":null)("aria-expanded",a.menuOpen)("aria-controls",a.menuOpen?a.menu?.panelId:null)},inputs:{_deprecatedMatMenuTriggerFor:[0,"mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:[0,"matMenuTriggerFor","menu"],menuData:[0,"matMenuTriggerData","menuData"],restoreFocus:[0,"matMenuTriggerRestoreFocus","restoreFocus"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"},exportAs:["matMenuTrigger"],features:[ot]})}return n})();function C0(n,i){n&1&&(h(0,"a",6)(1,"mat-icon"),f(2,"add_circle"),u(),h(3,"span",5),f(4,"Add"),u()())}function k0(n,i){n&1&&(h(0,"a",7)(1,"mat-icon"),f(2,"admin_panel_settings"),u(),h(3,"span",5),f(4,"Admin"),u()())}function M0(n,i){n&1&&(h(0,"a",8)(1,"mat-icon"),f(2,"shield_person"),u(),h(3,"span",5),f(4,"Moderator"),u()())}function D0(n,i){n&1&&(h(0,"a",9)(1,"mat-icon"),f(2,"dashboard"),u(),h(3,"span",5),f(4,"User"),u()())}function E0(n,i){if(n&1){let t=Nt();h(0,"div",11)(1,"a",13)(2,"mat-icon"),f(3,"app_registration"),u(),h(4,"span",5),f(5,"Register"),u()(),h(6,"button",14),B("click",function(){at(t);let a=w();return rt(a.openDialog())}),h(7,"mat-icon"),f(8,"login"),u(),h(9,"span",5),f(10,"Login"),u()()()}}function N0(n,i){if(n&1){let t=Nt();h(0,"button",15)(1,"mat-icon"),f(2,"account_circle"),u(),h(3,"span",5),f(4),u(),h(5,"mat-icon",16),f(6,"expand_more"),u()(),h(7,"mat-menu",17,0)(9,"a",18)(10,"mat-icon"),f(11,"person"),u(),h(12,"span"),f(13,"Profile"),u()(),dt(14,"mat-divider"),h(15,"button",19),B("click",function(){at(t);let a=w();return rt(a.logout())}),h(16,"mat-icon"),f(17,"logout"),u(),h(18,"span"),f(19,"Logout"),u()()()}if(n&2){let t=yt(8),e=w();mt("matMenuTriggerFor",t),p(4),Lt(e.username)}}var Of=(()=>{class n{dialog=c(Xs);authService=c(ka);storageService=c(gn);isLoggedIn=!1;showAdminBoard=!1;showModeratorBoard=!1;username;dialogData={username:"",password:""};ngOnInit(){if(this.isLoggedIn=this.storageService.isLoggedIn(),!this.isLoggedIn)return;let t=this.storageService.getUser(),e=t.roles??[];this.showAdminBoard=e.includes("ROLE_ADMIN"),this.showModeratorBoard=e.includes("ROLE_MODERATOR"),this.username=t.username}openDialog(){this.dialog.open(Rf,{width:"350px",enterAnimationDuration:"100ms",exitAnimationDuration:"5ms",data:g({},this.dialogData)}).afterClosed().subscribe(e=>{e&&(this.dialogData=e,this.login(e))})}logout(){this.authService.logout().subscribe({next:()=>{this.storageService.clean(),window.location.reload()},error:t=>console.error("Logout failed",t)})}login({username:t,password:e}){this.authService.login(t,e).subscribe({next:a=>{this.storageService.saveUser(a),window.location.reload()},error:a=>alert(a.error?.message??"Login failed")})}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=S({type:n,selectors:[["app-root"]],standalone:!1,decls:21,vars:5,consts:[["userMenu","matMenu"],[1,"app-toolbar"],["routerLink","/",1,"brand"],[1,"nav"],["mat-button","","routerLink","tutorials","routerLinkActive","active"],[1,"label"],["mat-button","","routerLink","add","routerLinkActive","active"],["mat-button","","routerLink","admin","routerLinkActive","active"],["mat-button","","routerLink","mod","routerLinkActive","active"],["mat-button","","routerLink","user","routerLinkActive","active"],[1,"spacer"],[1,"actions"],[1,"container","mt-4"],["mat-stroked-button","","routerLink","register"],["mat-flat-button","",3,"click"],["mat-button","",1,"user-button",3,"matMenuTriggerFor"],["iconPositionEnd",""],["xPosition","before"],["mat-menu-item","","routerLink","profile"],["mat-menu-item","",3,"click"]],template:function(e,a){e&1&&(h(0,"mat-toolbar",1)(1,"a",2)(2,"mat-icon"),f(3,"school"),u(),h(4,"span"),f(5,"Spring-AngularTS"),u()(),h(6,"nav",3)(7,"a",4)(8,"mat-icon"),f(9,"menu_book"),u(),h(10,"span",5),f(11,"Tutorials"),u()(),C(12,C0,5,0,"a",6),C(13,k0,5,0,"a",7),C(14,M0,5,0,"a",8),C(15,D0,5,0,"a",9),u(),dt(16,"span",10),C(17,E0,11,0,"div",11)(18,N0,20,2),u(),h(19,"main",12),dt(20,"router-outlet"),u()),e&2&&(p(12),k(a.isLoggedIn?12:-1),p(),k(a.showAdminBoard?13:-1),p(),k(a.showModeratorBoard?14:-1),p(),k(a.isLoggedIn?15:-1),p(2),k(a.isLoggedIn?18:17))},dependencies:[rr,Ve,wc,Zs,He,Hs,Ce,Zn,Ei,Tf],styles:[".app-toolbar[_ngcontent-%COMP%]{--%NS%mat-toolbar-container-background-color: var(--%NS%mat-sys-surface-container);--%NS%mat-toolbar-container-text-color: var(--%NS%mat-sys-on-surface);position:sticky;top:0;z-index:10;gap:8px;padding:0 16px;box-shadow:var(--%NS%mat-sys-level2)}a[_ngcontent-%COMP%], a[_ngcontent-%COMP%]:hover{text-decoration:none}.brand[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px;margin-right:16px;color:var(--%NS%mat-sys-primary);font:var(--%NS%mat-sys-title-large);white-space:nowrap}.nav[_ngcontent-%COMP%]{display:flex;gap:4px}.nav[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{--%NS%mat-button-text-label-text-color: var(--%NS%mat-sys-on-surface-variant)}.nav[_ngcontent-%COMP%] a.active[_ngcontent-%COMP%]{--%NS%mat-button-text-label-text-color: var(--%NS%mat-sys-on-secondary-container);background-color:var(--%NS%mat-sys-secondary-container)}.spacer[_ngcontent-%COMP%]{flex:1 1 auto}.actions[_ngcontent-%COMP%]{display:flex;gap:8px}@media(max-width:768px){.brand[_ngcontent-%COMP%] span[_ngcontent-%COMP%], .label[_ngcontent-%COMP%]{display:none}.user-button[_ngcontent-%COMP%] mat-icon[iconPositionEnd][_ngcontent-%COMP%]{display:none}.nav[_ngcontent-%COMP%] a[_ngcontent-%COMP%], .actions[_ngcontent-%COMP%] > *[_ngcontent-%COMP%], .user-button[_ngcontent-%COMP%]{min-width:48px;padding:0 12px}.nav[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%], .actions[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%], .user-button[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin:0}}"],changeDetection:1})}return n})();var I0="@",A0=(()=>{class n{doc;delegate;zone;animationType;moduleImpl;_rendererFactoryPromise=null;scheduler=null;injector=c(K);loadingSchedulerFn=c(R0,{optional:!0});_engine;constructor(t,e,a,r,o){this.doc=t,this.delegate=e,this.zone=a,this.animationType=r,this.moduleImpl=o}ngOnDestroy(){this._engine?.flush()}loadImpl(){let t=()=>this.moduleImpl??import("./chunk-5GNKSAOY.js").then(a=>a),e;return this.loadingSchedulerFn?e=this.loadingSchedulerFn(t):e=t(),e.catch(a=>{throw new W(5300,!1)}).then(({\u0275createEngine:a,\u0275AnimationRendererFactory:r})=>{this._engine=a(this.animationType,this.doc);let o=new r(this.delegate,this._engine,this.zone);return this.delegate=o,o})}createRenderer(t,e){let a=this.delegate.createRenderer(t,e);if(a.\u0275type===0)return a;km(a);let r=new Id(a);return e?.data?.animation&&!this._rendererFactoryPromise&&(this._rendererFactoryPromise=this.loadImpl()),this._rendererFactoryPromise?.then(o=>{let s=o.createRenderer(t,e);r.use(s),this.scheduler??=this.injector.get(Bd,null,{optional:!0}),this.scheduler?.notify(10)}).catch(o=>{r.use(a)}),r}begin(){this.delegate.begin?.()}end(){this.delegate.end?.()}whenRenderingDone(){return this.delegate.whenRenderingDone?.()??Promise.resolve()}componentReplaced(t){this._engine?.flush(),this.delegate.componentReplaced?.(t)}static \u0275fac=function(e){Rn()};static \u0275prov=$({token:n,factory:n.\u0275fac})}return n})(),Id=class{delegate;replay=[];\u0275type=1;constructor(i){this.delegate=i}use(i){if(this.delegate=i,this.replay!==null){for(let t of this.replay)t(i);this.replay=null}}get data(){return this.delegate.data}destroy(){this.replay=null,this.delegate.destroy()}createElement(i,t){return this.delegate.createElement(i,t)}createComment(i){return this.delegate.createComment(i)}createText(i){return this.delegate.createText(i)}get destroyNode(){return this.delegate.destroyNode}appendChild(i,t){this.delegate.appendChild(i,t)}insertBefore(i,t,e,a){this.delegate.insertBefore(i,t,e,a)}removeChild(i,t,e,a){this.delegate.removeChild(i,t,e,a)}selectRootElement(i,t){return this.delegate.selectRootElement(i,t)}parentNode(i){return this.delegate.parentNode(i)}nextSibling(i){return this.delegate.nextSibling(i)}setAttribute(i,t,e,a){this.delegate.setAttribute(i,t,e,a)}removeAttribute(i,t,e){this.delegate.removeAttribute(i,t,e)}addClass(i,t){this.delegate.addClass(i,t)}removeClass(i,t){this.delegate.removeClass(i,t)}setStyle(i,t,e,a){this.delegate.setStyle(i,t,e,a)}removeStyle(i,t,e){this.delegate.removeStyle(i,t,e)}setProperty(i,t,e){this.shouldReplay(t)&&this.replay.push(a=>a.setProperty(i,t,e)),this.delegate.setProperty(i,t,e)}setValue(i,t){this.delegate.setValue(i,t)}listen(i,t,e,a){return this.shouldReplay(t)&&this.replay.push(r=>r.listen(i,t,e,a)),this.delegate.listen(i,t,e,a)}shouldReplay(i){return this.replay!==null&&i.startsWith(I0)}},R0=new v("");function Ff(n="animations"){return Ra("NgAsyncAnimations"),An([{provide:Jt,useFactory:()=>new A0(c(F),c(za),c(O),n)},{provide:Ti,useValue:n==="noop"?"NoopAnimations":"BrowserAnimations"}])}var Pf=(()=>{class n{static \u0275fac=function(e){return new(e||n)};static \u0275mod=Y({type:n,bootstrap:[Of]});static \u0275inj=q({providers:[jl(Ul()),Ff()],imports:[Fl,_f,ba,qs,Zs,wr,bp,Fp,Up,Ce,Zn,Ei,Hs,Gs,Lr,Ws,Ca,fp]})}return n})();var Lf={production:!0};Lf.production&&void 0;Ol().bootstrapModule(Pf,{applicationProviders:[mm()]}).catch(n=>console.error(n));
|