93 lines
883 KiB
JavaScript
93 lines
883 KiB
JavaScript
import{$ as pi,$a as Pe,$b as Ee,A as tr,Aa as x,Ab as fe,Ac as q_,B as Gi,Ba as W,Bb as Co,Bc as St,C as d_,Ca as y_,Cb as Z,Cc as Vs,D as kt,Da as Jc,Db as ar,Dc as ml,E as u_,Ea as w_,Eb as F,F as pn,Fa as Ue,Fb as f,G as ir,Ga as ki,Gb as Ne,Gc as Y_,H as Fs,Ha as Os,Hb as be,Hc as Q_,I as Vh,Ia as el,Ib as rl,J as jt,Ja as _o,Jb as yt,Jc as Uh,K as m_,Ka as yo,Kb as X,Kc as K_,L as Zc,La as C_,Lb as L,Lc as Z_,M as fn,Ma as I_,Mb as z,N as bn,Na as k_,Nb as Qi,O as Lh,Oa as E_,Ob as S,P as h_,Pa as S_,Pb as xe,Q as g_,Qa as D_,Qb as oe,R as p_,Ra as T_,Rb as ge,S as f_,Sa as Vt,Sb as Oe,T as b_,Ta as sr,Tb as Io,U as nr,Ua as wo,Ub as ol,V as Xc,Va as M_,Vb as Bh,W as Xt,Wa as Ps,Wb as j_,X as re,Xa as Ns,Xb as Hh,Y as He,Ya as u,Yb as J,Z as v_,Za as c,Zb as ie,_ as Me,_a as js,_b as cr,a as V,aa as k,ab as F_,ac as sl,b as Be,ba as T,bb as Je,bc as al,c as s_,ca as x_,cb as tl,cc as cl,d as qc,da as K,db as We,dc as Et,e as Yc,ea as zh,eb as il,ec as V_,f as Jn,fa as v,fb as de,fc as $h,g as a_,ga as _,gb as Ei,gc as B,h as gi,ha as Rs,hb as C,hc as L_,i as Oh,ia as we,ib as Si,ic as z_,j as Ph,ja as I,jb as R_,jc as fi,k as ke,ka as M,kb as A_,kc as lr,l as nt,la as N,lb as nl,lc as B_,m as Nh,ma as As,mb as D,mc as H_,n as Ii,na as vn,nb as De,nc as ue,o as vo,oa as __,ob as m,oc as $_,p as Ct,pa as xo,pb as Ae,pc as ll,q as te,qa as qi,qb as U,qc as dl,r as er,ra as G,rb as O_,rc as Ki,s as c_,sa as R,sb as Yi,sc as rt,t as l_,ta as A,tb as ft,tc as je,u as le,ua as Ke,ub as P_,uc as U_,v as gn,va as xn,vb as N_,vc as W_,w as Zt,wa as ze,wb as h,wc as G_,x as Qc,xa as rr,xb as g,xc as _n,y as jh,ya as ve,yb as b,yc as ul,z as Kc,za as or,zb as pe,zc as q}from"./chunk-JIAP5FFR.js";var zs=class{},Bs=class{},Di=class i{constructor(t){this.normalizedNames=new Map,this.lazyUpdate=null,t?typeof t=="string"?this.lazyInit=()=>{this.headers=new Map,t.split(`
|
|
`).forEach(e=>{let n=e.indexOf(":");if(n>0){let r=e.slice(0,n),o=r.toLowerCase(),s=e.slice(n+1).trim();this.maybeSetNormalizedName(r,o),this.headers.has(o)?this.headers.get(o).push(s):this.headers.set(o,[s])}})}:typeof Headers<"u"&&t instanceof Headers?(this.headers=new Map,t.forEach((e,n)=>{this.setHeaderEntries(n,e)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(t).forEach(([e,n])=>{this.setHeaderEntries(e,n)})}:this.headers=new Map}has(t){return this.init(),this.headers.has(t.toLowerCase())}get(t){this.init();let e=this.headers.get(t.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(t){return this.init(),this.headers.get(t.toLowerCase())||null}append(t,e){return this.clone({name:t,value:e,op:"a"})}set(t,e){return this.clone({name:t,value:e,op:"s"})}delete(t,e){return this.clone({name:t,value:e,op:"d"})}maybeSetNormalizedName(t,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,t)}init(){this.lazyInit&&(this.lazyInit instanceof i?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(t=>this.applyUpdate(t)),this.lazyUpdate=null))}copyFrom(t){t.init(),Array.from(t.headers.keys()).forEach(e=>{this.headers.set(e,t.headers.get(e)),this.normalizedNames.set(e,t.normalizedNames.get(e))})}clone(t){let e=new i;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof i?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([t]),e}applyUpdate(t){let e=t.name.toLowerCase();switch(t.op){case"a":case"s":let n=t.value;if(typeof n=="string"&&(n=[n]),n.length===0)return;this.maybeSetNormalizedName(t.name,e);let r=(t.op==="a"?this.headers.get(e):void 0)||[];r.push(...n),this.headers.set(e,r);break;case"d":let o=t.value;if(!o)this.headers.delete(e),this.normalizedNames.delete(e);else{let s=this.headers.get(e);if(!s)return;s=s.filter(a=>o.indexOf(a)===-1),s.length===0?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,s)}break}}setHeaderEntries(t,e){let n=(Array.isArray(e)?e:[e]).map(o=>o.toString()),r=t.toLowerCase();this.headers.set(r,n),this.maybeSetNormalizedName(t,r)}forEach(t){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>t(this.normalizedNames.get(e),this.headers.get(e)))}};var qh=class{encodeKey(t){return X_(t)}encodeValue(t){return X_(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}};function ak(i,t){let e=new Map;return i.length>0&&i.replace(/^\?/,"").split("&").forEach(r=>{let o=r.indexOf("="),[s,a]=o==-1?[t.decodeKey(r),""]:[t.decodeKey(r.slice(0,o)),t.decodeValue(r.slice(o+1))],l=e.get(s)||[];l.push(a),e.set(s,l)}),e}var ck=/%(\d[a-f0-9])/gi,lk={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function X_(i){return encodeURIComponent(i).replace(ck,(t,e)=>lk[e]??t)}function hl(i){return`${i}`}var wn=class i{constructor(t={}){if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new qh,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=ak(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(e=>{let n=t.fromObject[e],r=Array.isArray(n)?n.map(hl):[hl(n)];this.map.set(e,r)})):this.map=null}has(t){return this.init(),this.map.has(t)}get(t){this.init();let e=this.map.get(t);return e?e[0]:null}getAll(t){return this.init(),this.map.get(t)||null}keys(){return this.init(),Array.from(this.map.keys())}append(t,e){return this.clone({param:t,value:e,op:"a"})}appendAll(t){let e=[];return Object.keys(t).forEach(n=>{let r=t[n];Array.isArray(r)?r.forEach(o=>{e.push({param:n,value:o,op:"a"})}):e.push({param:n,value:r,op:"a"})}),this.clone(e)}set(t,e){return this.clone({param:t,value:e,op:"s"})}delete(t,e){return this.clone({param:t,value:e,op:"d"})}toString(){return this.init(),this.keys().map(t=>{let e=this.encoder.encodeKey(t);return this.map.get(t).map(n=>e+"="+this.encoder.encodeValue(n)).join("&")}).filter(t=>t!=="").join("&")}clone(t){let e=new i({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat(t),e}init(){this.map===null&&(this.map=new Map),this.cloneFrom!==null&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(t=>this.map.set(t,this.cloneFrom.map.get(t))),this.updates.forEach(t=>{switch(t.op){case"a":case"s":let e=(t.op==="a"?this.map.get(t.param):void 0)||[];e.push(hl(t.value)),this.map.set(t.param,e);break;case"d":if(t.value!==void 0){let n=this.map.get(t.param)||[],r=n.indexOf(hl(t.value));r!==-1&&n.splice(r,1),n.length>0?this.map.set(t.param,n):this.map.delete(t.param)}else{this.map.delete(t.param);break}}}),this.cloneFrom=this.updates=null)}};var Yh=class{constructor(){this.map=new Map}set(t,e){return this.map.set(t,e),this}get(t){return this.map.has(t)||this.map.set(t,t.defaultValue()),this.map.get(t)}delete(t){return this.map.delete(t),this}has(t){return this.map.has(t)}keys(){return this.map.keys()}};function dk(i){switch(i){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function J_(i){return typeof ArrayBuffer<"u"&&i instanceof ArrayBuffer}function ey(i){return typeof Blob<"u"&&i instanceof Blob}function ty(i){return typeof FormData<"u"&&i instanceof FormData}function uk(i){return typeof URLSearchParams<"u"&&i instanceof URLSearchParams}var Ls=class i{constructor(t,e,n,r){this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase();let o;if(dk(this.method)||r?(this.body=n!==void 0?n:null,o=r):o=n,o&&(this.reportProgress=!!o.reportProgress,this.withCredentials=!!o.withCredentials,o.responseType&&(this.responseType=o.responseType),o.headers&&(this.headers=o.headers),o.context&&(this.context=o.context),o.params&&(this.params=o.params),this.transferCache=o.transferCache),this.headers??=new Di,this.context??=new Yh,!this.params)this.params=new wn,this.urlWithParams=e;else{let s=this.params.toString();if(s.length===0)this.urlWithParams=e;else{let a=e.indexOf("?"),l=a===-1?"?":a<e.length-1?"&":"";this.urlWithParams=e+l+s}}}serializeBody(){return this.body===null?null:typeof this.body=="string"||J_(this.body)||ey(this.body)||ty(this.body)||uk(this.body)?this.body:this.body instanceof wn?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||ty(this.body)?null:ey(this.body)?this.body.type||null:J_(this.body)?null:typeof this.body=="string"?"text/plain":this.body instanceof wn?"application/x-www-form-urlencoded;charset=UTF-8":typeof this.body=="object"||typeof this.body=="number"||typeof this.body=="boolean"?"application/json":null}clone(t={}){let e=t.method||this.method,n=t.url||this.url,r=t.responseType||this.responseType,o=t.transferCache??this.transferCache,s=t.body!==void 0?t.body:this.body,a=t.withCredentials??this.withCredentials,l=t.reportProgress??this.reportProgress,d=t.headers||this.headers,p=t.params||this.params,w=t.context??this.context;return t.setHeaders!==void 0&&(d=Object.keys(t.setHeaders).reduce((E,Q)=>E.set(Q,t.setHeaders[Q]),d)),t.setParams&&(p=Object.keys(t.setParams).reduce((E,Q)=>E.set(Q,t.setParams[Q]),p)),new i(e,n,s,{params:p,headers:d,context:w,reportProgress:l,responseType:r,withCredentials:a,transferCache:o})}},Cn=function(i){return i[i.Sent=0]="Sent",i[i.UploadProgress=1]="UploadProgress",i[i.ResponseHeader=2]="ResponseHeader",i[i.DownloadProgress=3]="DownloadProgress",i[i.Response=4]="Response",i[i.User=5]="User",i}(Cn||{}),Hs=class{constructor(t,e=$s.Ok,n="OK"){this.headers=t.headers||new Di,this.status=t.status!==void 0?t.status:e,this.statusText=t.statusText||n,this.url=t.url||null,this.ok=this.status>=200&&this.status<300}},pl=class i extends Hs{constructor(t={}){super(t),this.type=Cn.ResponseHeader}clone(t={}){return new i({headers:t.headers||this.headers,status:t.status!==void 0?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}},dr=class i extends Hs{constructor(t={}){super(t),this.type=Cn.Response,this.body=t.body!==void 0?t.body:null}clone(t={}){return new i({body:t.body!==void 0?t.body:this.body,headers:t.headers||this.headers,status:t.status!==void 0?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}},yn=class extends Hs{constructor(t){super(t,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.status>=200&&this.status<300?this.message=`Http failure during parsing for ${t.url||"(unknown url)"}`:this.message=`Http failure response for ${t.url||"(unknown url)"}: ${t.status} ${t.statusText}`,this.error=t.error||null}},$s=function(i){return i[i.Continue=100]="Continue",i[i.SwitchingProtocols=101]="SwitchingProtocols",i[i.Processing=102]="Processing",i[i.EarlyHints=103]="EarlyHints",i[i.Ok=200]="Ok",i[i.Created=201]="Created",i[i.Accepted=202]="Accepted",i[i.NonAuthoritativeInformation=203]="NonAuthoritativeInformation",i[i.NoContent=204]="NoContent",i[i.ResetContent=205]="ResetContent",i[i.PartialContent=206]="PartialContent",i[i.MultiStatus=207]="MultiStatus",i[i.AlreadyReported=208]="AlreadyReported",i[i.ImUsed=226]="ImUsed",i[i.MultipleChoices=300]="MultipleChoices",i[i.MovedPermanently=301]="MovedPermanently",i[i.Found=302]="Found",i[i.SeeOther=303]="SeeOther",i[i.NotModified=304]="NotModified",i[i.UseProxy=305]="UseProxy",i[i.Unused=306]="Unused",i[i.TemporaryRedirect=307]="TemporaryRedirect",i[i.PermanentRedirect=308]="PermanentRedirect",i[i.BadRequest=400]="BadRequest",i[i.Unauthorized=401]="Unauthorized",i[i.PaymentRequired=402]="PaymentRequired",i[i.Forbidden=403]="Forbidden",i[i.NotFound=404]="NotFound",i[i.MethodNotAllowed=405]="MethodNotAllowed",i[i.NotAcceptable=406]="NotAcceptable",i[i.ProxyAuthenticationRequired=407]="ProxyAuthenticationRequired",i[i.RequestTimeout=408]="RequestTimeout",i[i.Conflict=409]="Conflict",i[i.Gone=410]="Gone",i[i.LengthRequired=411]="LengthRequired",i[i.PreconditionFailed=412]="PreconditionFailed",i[i.PayloadTooLarge=413]="PayloadTooLarge",i[i.UriTooLong=414]="UriTooLong",i[i.UnsupportedMediaType=415]="UnsupportedMediaType",i[i.RangeNotSatisfiable=416]="RangeNotSatisfiable",i[i.ExpectationFailed=417]="ExpectationFailed",i[i.ImATeapot=418]="ImATeapot",i[i.MisdirectedRequest=421]="MisdirectedRequest",i[i.UnprocessableEntity=422]="UnprocessableEntity",i[i.Locked=423]="Locked",i[i.FailedDependency=424]="FailedDependency",i[i.TooEarly=425]="TooEarly",i[i.UpgradeRequired=426]="UpgradeRequired",i[i.PreconditionRequired=428]="PreconditionRequired",i[i.TooManyRequests=429]="TooManyRequests",i[i.RequestHeaderFieldsTooLarge=431]="RequestHeaderFieldsTooLarge",i[i.UnavailableForLegalReasons=451]="UnavailableForLegalReasons",i[i.InternalServerError=500]="InternalServerError",i[i.NotImplemented=501]="NotImplemented",i[i.BadGateway=502]="BadGateway",i[i.ServiceUnavailable=503]="ServiceUnavailable",i[i.GatewayTimeout=504]="GatewayTimeout",i[i.HttpVersionNotSupported=505]="HttpVersionNotSupported",i[i.VariantAlsoNegotiates=506]="VariantAlsoNegotiates",i[i.InsufficientStorage=507]="InsufficientStorage",i[i.LoopDetected=508]="LoopDetected",i[i.NotExtended=510]="NotExtended",i[i.NetworkAuthenticationRequired=511]="NetworkAuthenticationRequired",i}($s||{});function Wh(i,t){return{body:t,headers:i.headers,context:i.context,observe:i.observe,params:i.params,reportProgress:i.reportProgress,responseType:i.responseType,withCredentials:i.withCredentials,transferCache:i.transferCache}}var ur=(()=>{let t=class t{constructor(n){this.handler=n}request(n,r,o={}){let s;if(n instanceof Ls)s=n;else{let d;o.headers instanceof Di?d=o.headers:d=new Di(o.headers);let p;o.params&&(o.params instanceof wn?p=o.params:p=new wn({fromObject:o.params})),s=new Ls(n,r,o.body!==void 0?o.body:null,{headers:d,context:o.context,params:p,reportProgress:o.reportProgress,responseType:o.responseType||"json",withCredentials:o.withCredentials,transferCache:o.transferCache})}let a=te(s).pipe(ir(d=>this.handler.handle(d)));if(n instanceof Ls||o.observe==="events")return a;let l=a.pipe(kt(d=>d instanceof dr));switch(o.observe||"body"){case"body":switch(s.responseType){case"arraybuffer":return l.pipe(le(d=>{if(d.body!==null&&!(d.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return d.body}));case"blob":return l.pipe(le(d=>{if(d.body!==null&&!(d.body instanceof Blob))throw new Error("Response is not a Blob.");return d.body}));case"text":return l.pipe(le(d=>{if(d.body!==null&&typeof d.body!="string")throw new Error("Response is not a string.");return d.body}));case"json":default:return l.pipe(le(d=>d.body))}case"response":return l;default:throw new Error(`Unreachable: unhandled observe type ${o.observe}}`)}}delete(n,r={}){return this.request("DELETE",n,r)}get(n,r={}){return this.request("GET",n,r)}head(n,r={}){return this.request("HEAD",n,r)}jsonp(n,r){return this.request("JSONP",n,{params:new wn().append(r,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(n,r={}){return this.request("OPTIONS",n,r)}patch(n,r,o={}){return this.request("PATCH",n,Wh(o,r))}post(n,r,o={}){return this.request("POST",n,Wh(o,r))}put(n,r,o={}){return this.request("PUT",n,Wh(o,r))}};t.\u0275fac=function(r){return new(r||t)(v(zs))},t.\u0275prov=k({token:t,factory:t.\u0275fac});let i=t;return i})(),mk=/^\)\]\}',?\n/,hk="X-Request-URL";function iy(i){if(i.url)return i.url;let t=hk.toLocaleLowerCase();return i.headers.get(t)}var Gh=(()=>{let t=class t{constructor(){this.fetchImpl=_(Qh,{optional:!0})?.fetch??fetch.bind(globalThis),this.ngZone=_(de)}handle(n){return new gi(r=>{let o=new AbortController;return this.doRequest(n,o.signal,r).then(Kh,s=>r.error(new yn({error:s}))),()=>o.abort()})}doRequest(n,r,o){return Yc(this,null,function*(){let s=this.createRequestInit(n),a;try{let ne=this.fetchImpl(n.urlWithParams,V({signal:r},s));gk(ne),o.next({type:Cn.Sent}),a=yield ne}catch(ne){o.error(new yn({error:ne,status:ne.status??0,statusText:ne.statusText,url:n.urlWithParams,headers:ne.headers}));return}let l=new Di(a.headers),d=a.statusText,p=iy(a)??n.urlWithParams,w=a.status,E=null;if(n.reportProgress&&o.next(new pl({headers:l,status:w,statusText:d,url:p})),a.body){let ne=a.headers.get("content-length"),ce=[],O=a.body.getReader(),Y=0,Ie,pt,Qe=typeof Zone<"u"&&Zone.current;yield this.ngZone.runOutsideAngular(()=>Yc(this,null,function*(){for(;;){let{done:Ci,value:Wi}=yield O.read();if(Ci)break;if(ce.push(Wi),Y+=Wi.length,n.reportProgress){pt=n.responseType==="text"?(pt??"")+(Ie??=new TextDecoder).decode(Wi,{stream:!0}):void 0;let bo=()=>o.next({type:Cn.DownloadProgress,total:ne?+ne:void 0,loaded:Y,partialText:pt});Qe?Qe.run(bo):bo()}}}));let Ui=this.concatChunks(ce,Y);try{let Ci=a.headers.get("Content-Type")??"";E=this.parseBody(n,Ui,Ci)}catch(Ci){o.error(new yn({error:Ci,headers:new Di(a.headers),status:a.status,statusText:a.statusText,url:iy(a)??n.urlWithParams}));return}}w===0&&(w=E?$s.Ok:0),w>=200&&w<300?(o.next(new dr({body:E,headers:l,status:w,statusText:d,url:p})),o.complete()):o.error(new yn({error:E,headers:l,status:w,statusText:d,url:p}))})}parseBody(n,r,o){switch(n.responseType){case"json":let s=new TextDecoder().decode(r).replace(mk,"");return s===""?null:JSON.parse(s);case"text":return new TextDecoder().decode(r);case"blob":return new Blob([r],{type:o});case"arraybuffer":return r.buffer}}createRequestInit(n){let r={},o=n.withCredentials?"include":void 0;if(n.headers.forEach((s,a)=>r[s]=a.join(",")),r.Accept??="application/json, text/plain, */*",!r["Content-Type"]){let s=n.detectContentTypeHeader();s!==null&&(r["Content-Type"]=s)}return{body:n.serializeBody(),method:n.method,headers:r,credentials:o}}concatChunks(n,r){let o=new Uint8Array(r),s=0;for(let a of n)o.set(a,s),s+=a.length;return o}};t.\u0275fac=function(r){return new(r||t)},t.\u0275prov=k({token:t,factory:t.\u0275fac});let i=t;return i})(),Qh=class{};function Kh(){}function gk(i){i.then(Kh,Kh)}function pk(i,t){return t(i)}function fk(i,t,e){return(n,r)=>qi(e,()=>t(n,o=>i(o,r)))}var hy=new K(""),gy=new K(""),py=new K("");var ny=(()=>{let t=class t extends zs{constructor(n,r){super(),this.backend=n,this.injector=r,this.chain=null,this.pendingTasks=_(nl);let o=_(py,{optional:!0});this.backend=o??n}handle(n){if(this.chain===null){let o=Array.from(new Set([...this.injector.get(hy),...this.injector.get(gy,[])]));this.chain=o.reduceRight((s,a)=>fk(s,a,this.injector),pk)}let r=this.pendingTasks.add();return this.chain(n,o=>this.backend.handle(o)).pipe(fn(()=>this.pendingTasks.remove(r)))}};t.\u0275fac=function(r){return new(r||t)(v(Bs),v(xo))},t.\u0275prov=k({token:t,factory:t.\u0275fac});let i=t;return i})();var bk=/^\)\]\}',?\n/;function vk(i){return"responseURL"in i&&i.responseURL?i.responseURL:/^X-Request-URL:/m.test(i.getAllResponseHeaders())?i.getResponseHeader("X-Request-URL"):null}var ry=(()=>{let t=class t{constructor(n){this.xhrFactory=n}handle(n){if(n.method==="JSONP")throw new Me(-2800,!1);let r=this.xhrFactory;return(r.\u0275loadImpl?Ct(r.\u0275loadImpl()):te(null)).pipe(Xt(()=>new gi(s=>{let a=r.build();if(a.open(n.method,n.urlWithParams),n.withCredentials&&(a.withCredentials=!0),n.headers.forEach((O,Y)=>a.setRequestHeader(O,Y.join(","))),n.headers.has("Accept")||a.setRequestHeader("Accept","application/json, text/plain, */*"),!n.headers.has("Content-Type")){let O=n.detectContentTypeHeader();O!==null&&a.setRequestHeader("Content-Type",O)}if(n.responseType){let O=n.responseType.toLowerCase();a.responseType=O!=="json"?O:"text"}let l=n.serializeBody(),d=null,p=()=>{if(d!==null)return d;let O=a.statusText||"OK",Y=new Di(a.getAllResponseHeaders()),Ie=vk(a)||n.url;return d=new pl({headers:Y,status:a.status,statusText:O,url:Ie}),d},w=()=>{let{headers:O,status:Y,statusText:Ie,url:pt}=p(),Qe=null;Y!==$s.NoContent&&(Qe=typeof a.response>"u"?a.responseText:a.response),Y===0&&(Y=Qe?$s.Ok:0);let Ui=Y>=200&&Y<300;if(n.responseType==="json"&&typeof Qe=="string"){let Ci=Qe;Qe=Qe.replace(bk,"");try{Qe=Qe!==""?JSON.parse(Qe):null}catch(Wi){Qe=Ci,Ui&&(Ui=!1,Qe={error:Wi,text:Qe})}}Ui?(s.next(new dr({body:Qe,headers:O,status:Y,statusText:Ie,url:pt||void 0})),s.complete()):s.error(new yn({error:Qe,headers:O,status:Y,statusText:Ie,url:pt||void 0}))},E=O=>{let{url:Y}=p(),Ie=new yn({error:O,status:a.status||0,statusText:a.statusText||"Unknown Error",url:Y||void 0});s.error(Ie)},Q=!1,ne=O=>{Q||(s.next(p()),Q=!0);let Y={type:Cn.DownloadProgress,loaded:O.loaded};O.lengthComputable&&(Y.total=O.total),n.responseType==="text"&&a.responseText&&(Y.partialText=a.responseText),s.next(Y)},ce=O=>{let Y={type:Cn.UploadProgress,loaded:O.loaded};O.lengthComputable&&(Y.total=O.total),s.next(Y)};return a.addEventListener("load",w),a.addEventListener("error",E),a.addEventListener("timeout",E),a.addEventListener("abort",E),n.reportProgress&&(a.addEventListener("progress",ne),l!==null&&a.upload&&a.upload.addEventListener("progress",ce)),a.send(l),s.next({type:Cn.Sent}),()=>{a.removeEventListener("error",E),a.removeEventListener("abort",E),a.removeEventListener("load",w),a.removeEventListener("timeout",E),n.reportProgress&&(a.removeEventListener("progress",ne),l!==null&&a.upload&&a.upload.removeEventListener("progress",ce)),a.readyState!==a.DONE&&a.abort()}})))}};t.\u0275fac=function(r){return new(r||t)(v(ml))},t.\u0275prov=k({token:t,factory:t.\u0275fac});let i=t;return i})(),fy=new K(""),xk="XSRF-TOKEN",_k=new K("",{providedIn:"root",factory:()=>xk}),yk="X-XSRF-TOKEN",wk=new K("",{providedIn:"root",factory:()=>yk}),fl=class{},Ck=(()=>{let t=class t{constructor(n,r,o){this.doc=n,this.platform=r,this.cookieName=o,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if(this.platform==="server")return null;let n=this.doc.cookie||"";return n!==this.lastCookieString&&(this.parseCount++,this.lastToken=dl(n,this.cookieName),this.lastCookieString=n),this.lastToken}};t.\u0275fac=function(r){return new(r||t)(v(ue),v(Ue),v(_k))},t.\u0275prov=k({token:t,factory:t.\u0275fac});let i=t;return i})();function Ik(i,t){let e=i.url.toLowerCase();if(!_(fy)||i.method==="GET"||i.method==="HEAD"||e.startsWith("http://")||e.startsWith("https://"))return t(i);let n=_(fl).getToken(),r=_(wk);return n!=null&&!i.headers.has(r)&&(i=i.clone({headers:i.headers.set(r,n)})),t(i)}var by=function(i){return i[i.Interceptors=0]="Interceptors",i[i.LegacyInterceptors=1]="LegacyInterceptors",i[i.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",i[i.NoXsrfProtection=3]="NoXsrfProtection",i[i.JsonpSupport=4]="JsonpSupport",i[i.RequestsMadeViaParent=5]="RequestsMadeViaParent",i[i.Fetch=6]="Fetch",i}(by||{});function kk(i,t){return{\u0275kind:i,\u0275providers:t}}function vy(...i){let t=[ur,ry,ny,{provide:zs,useExisting:ny},{provide:Bs,useExisting:ry},{provide:hy,useValue:Ik,multi:!0},{provide:fy,useValue:!0},{provide:fl,useClass:Ck}];for(let e of i)t.push(...e.\u0275providers);return vn(t)}function xy(){return kk(by.Fetch,[Gh,{provide:Bs,useExisting:Gh},{provide:py,useExisting:Gh}])}var oy="b",sy="h",ay="s",cy="st",ly="u",dy="rt",gl=new K(""),Ek=["GET","HEAD"];function Sk(i,t){let w=_(gl),{isCacheActive:e}=w,n=s_(w,["isCacheActive"]),{transferCache:r,method:o}=i;if(!e||o==="POST"&&!n.includePostRequests&&!r||o!=="POST"&&!Ek.includes(o)||r===!1||n.filter?.(i)===!1)return t(i);let s=_(el),a=Tk(i),l=s.get(a,null),d=n.includeHeaders;if(typeof r=="object"&&r.includeHeaders&&(d=r.includeHeaders),l){let{[oy]:E,[dy]:Q,[sy]:ne,[ay]:ce,[cy]:O,[ly]:Y}=l,Ie=E;switch(Q){case"arraybuffer":Ie=new TextEncoder().encode(E).buffer;break;case"blob":Ie=new Blob([E]);break}let pt=new Di(ne);return te(new dr({body:Ie,headers:pt,status:ce,statusText:O,url:Y}))}let p=Vs(_(Ue));return t(i).pipe(He(E=>{E instanceof dr&&p&&s.set(a,{[oy]:E.body,[sy]:Dk(E.headers,d),[ay]:E.status,[cy]:E.statusText,[ly]:E.url||"",[dy]:i.responseType})}))}function Dk(i,t){if(!t)return{};let e={};for(let n of t){let r=i.getAll(n);r!==null&&(e[n]=r)}return e}function uy(i){return[...i.keys()].sort().map(t=>`${t}=${i.getAll(t)}`).join("&")}function Tk(i){let{params:t,method:e,responseType:n,url:r}=i,o=uy(t),s=i.serializeBody();s instanceof URLSearchParams?s=uy(s):typeof s!="string"&&(s="");let a=[e,n,r,s,o].join("|"),l=Mk(a);return l}function Mk(i){let t=0;for(let e of i)t=Math.imul(31,t)+e.charCodeAt(0)<<0;return t+=2147483648,t.toString()}function _y(i){return[{provide:gl,useFactory:()=>(il("NgHttpTransferCache"),V({isCacheActive:!0},i))},{provide:gy,useValue:Sk,multi:!0,deps:[el,gl]},{provide:cl,multi:!0,useFactory:()=>{let t=_(Et),e=_(gl);return()=>{V_(t).then(()=>{e.isCacheActive=!1})}}}]}var eg=class extends H_{constructor(){super(...arguments),this.supportsDOMEvents=!0}},tg=class i extends eg{static makeCurrent(){B_(new i)}onAndCancel(t,e,n){return t.addEventListener(e,n),()=>{t.removeEventListener(e,n)}}dispatchEvent(t,e){t.dispatchEvent(e)}remove(t){t.parentNode&&t.parentNode.removeChild(t)}createElement(t,e){return e=e||this.getDefaultDocument(),e.createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,e){return e==="window"?window:e==="document"?t:e==="body"?t.body:null}getBaseHref(t){let e=Rk();return e==null?null:Ak(e)}resetBaseElement(){Us=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return dl(document.cookie,t)}},Us=null;function Rk(){return Us=Us||document.querySelector("base"),Us?Us.getAttribute("href"):null}function Ak(i){return new URL(i,document.baseURI).pathname}var Ok=(()=>{let t=class t{build(){return new XMLHttpRequest}};t.\u0275fac=function(r){return new(r||t)},t.\u0275prov=k({token:t,factory:t.\u0275fac});let i=t;return i})(),ig=new K(""),Iy=(()=>{let t=class t{constructor(n,r){this._zone=r,this._eventNameToPlugin=new Map,n.forEach(o=>{o.manager=this}),this._plugins=n.slice().reverse()}addEventListener(n,r,o){return this._findPluginFor(r).addEventListener(n,r,o)}getZone(){return this._zone}_findPluginFor(n){let r=this._eventNameToPlugin.get(n);if(r)return r;if(r=this._plugins.find(s=>s.supports(n)),!r)throw new Me(5101,!1);return this._eventNameToPlugin.set(n,r),r}};t.\u0275fac=function(r){return new(r||t)(v(ig),v(de))},t.\u0275prov=k({token:t,factory:t.\u0275fac});let i=t;return i})(),bl=class{constructor(t){this._doc=t}},Xh="ng-app-id",ky=(()=>{let t=class t{constructor(n,r,o,s={}){this.doc=n,this.appId=r,this.nonce=o,this.platformId=s,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=Vs(s),this.resetHostNodes()}addStyles(n){for(let r of n)this.changeUsageCount(r,1)===1&&this.onStyleAdded(r)}removeStyles(n){for(let r of n)this.changeUsageCount(r,-1)<=0&&this.onStyleRemoved(r)}ngOnDestroy(){let n=this.styleNodesInDOM;n&&(n.forEach(r=>r.remove()),n.clear());for(let r of this.getAllStyles())this.onStyleRemoved(r);this.resetHostNodes()}addHost(n){this.hostNodes.add(n);for(let r of this.getAllStyles())this.addStyleToHost(n,r)}removeHost(n){this.hostNodes.delete(n)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(n){for(let r of this.hostNodes)this.addStyleToHost(r,n)}onStyleRemoved(n){let r=this.styleRef;r.get(n)?.elements?.forEach(o=>o.remove()),r.delete(n)}collectServerRenderedStyles(){let n=this.doc.head?.querySelectorAll(`style[${Xh}="${this.appId}"]`);if(n?.length){let r=new Map;return n.forEach(o=>{o.textContent!=null&&r.set(o.textContent,o)}),r}return null}changeUsageCount(n,r){let o=this.styleRef;if(o.has(n)){let s=o.get(n);return s.usage+=r,s.usage}return o.set(n,{usage:r,elements:[]}),r}getStyleElement(n,r){let o=this.styleNodesInDOM,s=o?.get(r);if(s?.parentNode===n)return o.delete(r),s.removeAttribute(Xh),s;{let a=this.doc.createElement("style");return this.nonce&&a.setAttribute("nonce",this.nonce),a.textContent=r,this.platformIsServer&&a.setAttribute(Xh,this.appId),n.appendChild(a),a}}addStyleToHost(n,r){let o=this.getStyleElement(n,r),s=this.styleRef,a=s.get(r)?.elements;a?a.push(o):s.set(r,{elements:[o],usage:1})}resetHostNodes(){let n=this.hostNodes;n.clear(),n.add(this.doc.head)}};t.\u0275fac=function(r){return new(r||t)(v(ue),v(Jc),v(Os,8),v(Ue))},t.\u0275prov=k({token:t,factory:t.\u0275fac});let i=t;return i})(),Jh={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},sg=/%COMP%/g,Ey="%COMP%",Pk=`_nghost-${Ey}`,Nk=`_ngcontent-${Ey}`,jk=!0,Vk=new K("",{providedIn:"root",factory:()=>jk});function Lk(i){return Nk.replace(sg,i)}function zk(i){return Pk.replace(sg,i)}function Sy(i,t){return t.map(e=>e.replace(sg,i))}var vl=(()=>{let t=class t{constructor(n,r,o,s,a,l,d,p=null){this.eventManager=n,this.sharedStylesHost=r,this.appId=o,this.removeStylesOnCompDestroy=s,this.doc=a,this.platformId=l,this.ngZone=d,this.nonce=p,this.rendererByCompId=new Map,this.platformIsServer=Vs(l),this.defaultRenderer=new Ws(n,a,d,this.platformIsServer)}createRenderer(n,r){if(!n||!r)return this.defaultRenderer;this.platformIsServer&&r.encapsulation===Rs.ShadowDom&&(r=Be(V({},r),{encapsulation:Rs.Emulated}));let o=this.getOrCreateRenderer(n,r);return o instanceof xl?o.applyToHost(n):o instanceof Gs&&o.applyStyles(),o}getOrCreateRenderer(n,r){let o=this.rendererByCompId,s=o.get(r.id);if(!s){let a=this.doc,l=this.ngZone,d=this.eventManager,p=this.sharedStylesHost,w=this.removeStylesOnCompDestroy,E=this.platformIsServer;switch(r.encapsulation){case Rs.Emulated:s=new xl(d,p,r,this.appId,w,a,l,E);break;case Rs.ShadowDom:return new ng(d,p,n,r,a,l,this.nonce,E);default:s=new Gs(d,p,r,w,a,l,E);break}o.set(r.id,s)}return s}ngOnDestroy(){this.rendererByCompId.clear()}};t.\u0275fac=function(r){return new(r||t)(v(Iy),v(ky),v(Jc),v(Vk),v(ue),v(Ue),v(de),v(Os))},t.\u0275prov=k({token:t,factory:t.\u0275fac});let i=t;return i})(),Ws=class{constructor(t,e,n,r){this.eventManager=t,this.doc=e,this.ngZone=n,this.platformIsServer=r,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(t,e){return e?this.doc.createElementNS(Jh[e]||e,t):this.doc.createElement(t)}createComment(t){return this.doc.createComment(t)}createText(t){return this.doc.createTextNode(t)}appendChild(t,e){(yy(t)?t.content:t).appendChild(e)}insertBefore(t,e,n){t&&(yy(t)?t.content:t).insertBefore(e,n)}removeChild(t,e){t&&t.removeChild(e)}selectRootElement(t,e){let n=typeof t=="string"?this.doc.querySelector(t):t;if(!n)throw new Me(-5104,!1);return e||(n.textContent=""),n}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,e,n,r){if(r){e=r+":"+e;let o=Jh[r];o?t.setAttributeNS(o,e,n):t.setAttribute(e,n)}else t.setAttribute(e,n)}removeAttribute(t,e,n){if(n){let r=Jh[n];r?t.removeAttributeNS(r,e):t.removeAttribute(`${n}:${e}`)}else t.removeAttribute(e)}addClass(t,e){t.classList.add(e)}removeClass(t,e){t.classList.remove(e)}setStyle(t,e,n,r){r&(Ns.DashCase|Ns.Important)?t.style.setProperty(e,n,r&Ns.Important?"important":""):t.style[e]=n}removeStyle(t,e,n){n&Ns.DashCase?t.style.removeProperty(e):t.style[e]=""}setProperty(t,e,n){t!=null&&(t[e]=n)}setValue(t,e){t.nodeValue=e}listen(t,e,n){if(typeof t=="string"&&(t=lr().getGlobalEventTarget(this.doc,t),!t))throw new Error(`Unsupported event target ${t} for event ${e}`);return this.eventManager.addEventListener(t,e,this.decoratePreventDefault(n))}decoratePreventDefault(t){return e=>{if(e==="__ngUnwrap__")return t;(this.platformIsServer?this.ngZone.runGuarded(()=>t(e)):t(e))===!1&&e.preventDefault()}}};function yy(i){return i.tagName==="TEMPLATE"&&i.content!==void 0}var ng=class extends Ws{constructor(t,e,n,r,o,s,a,l){super(t,o,s,l),this.sharedStylesHost=e,this.hostEl=n,this.shadowRoot=n.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let d=Sy(r.id,r.styles);for(let p of d){let w=document.createElement("style");a&&w.setAttribute("nonce",a),w.textContent=p,this.shadowRoot.appendChild(w)}}nodeOrShadowRoot(t){return t===this.hostEl?this.shadowRoot:t}appendChild(t,e){return super.appendChild(this.nodeOrShadowRoot(t),e)}insertBefore(t,e,n){return super.insertBefore(this.nodeOrShadowRoot(t),e,n)}removeChild(t,e){return super.removeChild(this.nodeOrShadowRoot(t),e)}parentNode(t){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(t)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},Gs=class extends Ws{constructor(t,e,n,r,o,s,a,l){super(t,o,s,a),this.sharedStylesHost=e,this.removeStylesOnCompDestroy=r,this.styles=l?Sy(l,n.styles):n.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}},xl=class extends Gs{constructor(t,e,n,r,o,s,a,l){let d=r+"-"+n.id;super(t,e,n,o,s,a,l,d),this.contentAttr=Lk(d),this.hostAttr=zk(d)}applyToHost(t){this.applyStyles(),this.setAttribute(t,this.hostAttr,"")}createElement(t,e){let n=super.createElement(t,e);return super.setAttribute(n,this.contentAttr,""),n}},Bk=(()=>{let t=class t extends bl{constructor(n){super(n)}supports(n){return!0}addEventListener(n,r,o){return n.addEventListener(r,o,!1),()=>this.removeEventListener(n,r,o)}removeEventListener(n,r,o){return n.removeEventListener(r,o)}};t.\u0275fac=function(r){return new(r||t)(v(ue))},t.\u0275prov=k({token:t,factory:t.\u0275fac});let i=t;return i})(),wy=["alt","control","meta","shift"],Hk={"\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"},$k={alt:i=>i.altKey,control:i=>i.ctrlKey,meta:i=>i.metaKey,shift:i=>i.shiftKey},Uk=(()=>{let t=class t extends bl{constructor(n){super(n)}supports(n){return t.parseEventName(n)!=null}addEventListener(n,r,o){let s=t.parseEventName(r),a=t.eventCallback(s.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>lr().onAndCancel(n,s.domEventName,a))}static parseEventName(n){let r=n.toLowerCase().split("."),o=r.shift();if(r.length===0||!(o==="keydown"||o==="keyup"))return null;let s=t._normalizeKey(r.pop()),a="",l=r.indexOf("code");if(l>-1&&(r.splice(l,1),a="code."),wy.forEach(p=>{let w=r.indexOf(p);w>-1&&(r.splice(w,1),a+=p+".")}),a+=s,r.length!=0||s.length===0)return null;let d={};return d.domEventName=o,d.fullKey=a,d}static matchEventFullKeyCode(n,r){let o=Hk[n.key]||n.key,s="";return r.indexOf("code.")>-1&&(o=n.code,s="code."),o==null||!o?!1:(o=o.toLowerCase(),o===" "?o="space":o==="."&&(o="dot"),wy.forEach(a=>{if(a!==o){let l=$k[a];l(n)&&(s+=a+".")}}),s+=o,s===r)}static eventCallback(n,r,o){return s=>{t.matchEventFullKeyCode(s,n)&&o.runGuarded(()=>r(s))}}static _normalizeKey(n){return n==="esc"?"escape":n}};t.\u0275fac=function(r){return new(r||t)(v(ue))},t.\u0275prov=k({token:t,factory:t.\u0275fac});let i=t;return i})();function Dy(i,t){return L_(V({rootComponent:i},Wk(t)))}function Wk(i){return{appProviders:[...Kk,...i?.providers??[]],platformProviders:Qk}}function Gk(){tg.makeCurrent()}function qk(){return new or}function Yk(){return y_(document),document}var Qk=[{provide:Ue,useValue:q_},{provide:w_,useValue:Gk,multi:!0},{provide:ue,useFactory:Yk,deps:[]}];var Kk=[{provide:__,useValue:"root"},{provide:or,useFactory:qk,deps:[]},{provide:ig,useClass:Bk,multi:!0,deps:[ue,de,Ue]},{provide:ig,useClass:Uk,multi:!0,deps:[ue]},vl,ky,Iy,{provide:tl,useExisting:vl},{provide:ml,useClass:Ok,deps:[]},[]];var Ty=(()=>{let t=class t{constructor(n){this._doc=n,this._dom=lr()}addTag(n,r=!1){return n?this._getOrCreateElement(n,r):null}addTags(n,r=!1){return n?n.reduce((o,s)=>(s&&o.push(this._getOrCreateElement(s,r)),o),[]):[]}getTag(n){return n&&this._doc.querySelector(`meta[${n}]`)||null}getTags(n){if(!n)return[];let r=this._doc.querySelectorAll(`meta[${n}]`);return r?[].slice.call(r):[]}updateTag(n,r){if(!n)return null;r=r||this._parseSelector(n);let o=this.getTag(r);return o?this._setMetaElementAttributes(n,o):this._getOrCreateElement(n,!0)}removeTag(n){this.removeTagElement(this.getTag(n))}removeTagElement(n){n&&this._dom.remove(n)}_getOrCreateElement(n,r=!1){if(!r){let a=this._parseSelector(n),l=this.getTags(a).filter(d=>this._containsAttributes(n,d))[0];if(l!==void 0)return l}let o=this._dom.createElement("meta");return this._setMetaElementAttributes(n,o),this._doc.getElementsByTagName("head")[0].appendChild(o),o}_setMetaElementAttributes(n,r){return Object.keys(n).forEach(o=>r.setAttribute(this._getMetaKeyMap(o),n[o])),r}_parseSelector(n){let r=n.name?"name":"property";return`${r}="${n[r]}"`}_containsAttributes(n,r){return Object.keys(n).every(o=>r.getAttribute(this._getMetaKeyMap(o))===n[o])}_getMetaKeyMap(n){return Zk[n]||n}};t.\u0275fac=function(r){return new(r||t)(v(ue))},t.\u0275prov=k({token:t,factory:t.\u0275fac,providedIn:"root"});let i=t;return i})(),Zk={httpEquiv:"http-equiv"},My=(()=>{let t=class t{constructor(n){this._doc=n}getTitle(){return this._doc.title}setTitle(n){this._doc.title=n||""}};t.\u0275fac=function(r){return new(r||t)(v(ue))},t.\u0275prov=k({token:t,factory:t.\u0275fac,providedIn:"root"});let i=t;return i})();var In=(()=>{let t=class t{};t.\u0275fac=function(r){return new(r||t)},t.\u0275prov=k({token:t,factory:function(r){let o=null;return r?o=new(r||t):o=v(Xk),o},providedIn:"root"});let i=t;return i})(),Xk=(()=>{let t=class t extends In{constructor(n){super(),this._doc=n}sanitize(n,r){if(r==null)return null;switch(n){case Vt.NONE:return r;case Vt.HTML:return yo(r,"HTML")?_o(r):T_(this._doc,String(r)).toString();case Vt.STYLE:return yo(r,"Style")?_o(r):r;case Vt.SCRIPT:if(yo(r,"Script"))return _o(r);throw new Me(5200,!1);case Vt.URL:return yo(r,"URL")?_o(r):D_(String(r));case Vt.RESOURCE_URL:if(yo(r,"ResourceURL"))return _o(r);throw new Me(5201,!1);default:throw new Me(5202,!1)}}bypassSecurityTrustHtml(n){return C_(n)}bypassSecurityTrustStyle(n){return I_(n)}bypassSecurityTrustScript(n){return k_(n)}bypassSecurityTrustUrl(n){return E_(n)}bypassSecurityTrustResourceUrl(n){return S_(n)}};t.\u0275fac=function(r){return new(r||t)(v(ue))},t.\u0275prov=k({token:t,factory:t.\u0275fac,providedIn:"root"});let i=t;return i})(),rg=function(i){return i[i.NoHttpTransferCache=0]="NoHttpTransferCache",i[i.HttpTransferCacheOptions=1]="HttpTransferCacheOptions",i}(rg||{});function Fy(...i){let t=[],e=new Set,n=e.has(rg.HttpTransferCacheOptions);for(let{\u0275providers:r,\u0275kind:o}of i)e.add(o),r.length&&t.push(r);return vn([[],z_(),e.has(rg.NoHttpTransferCache)||n?[]:_y({}),t])}var he="primary",aa=Symbol("RouteTitle"),mg=class{constructor(t){this.params=t||{}}has(t){return Object.prototype.hasOwnProperty.call(this.params,t)}get(t){if(this.has(t)){let e=this.params[t];return Array.isArray(e)?e[0]:e}return null}getAll(t){if(this.has(t)){let e=this.params[t];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}};function To(i){return new mg(i)}function eE(i,t,e){let n=e.path.split("/");if(n.length>i.length||e.pathMatch==="full"&&(t.hasChildren()||n.length<i.length))return null;let r={};for(let o=0;o<n.length;o++){let s=n[o],a=i[o];if(s.startsWith(":"))r[s.substring(1)]=a;else if(s!==a.path)return null}return{consumed:i.slice(0,n.length),posParams:r}}function tE(i,t){if(i.length!==t.length)return!1;for(let e=0;e<i.length;++e)if(!Ti(i[e],t[e]))return!1;return!0}function Ti(i,t){let e=i?hg(i):void 0,n=t?hg(t):void 0;if(!e||!n||e.length!=n.length)return!1;let r;for(let o=0;o<e.length;o++)if(r=e[o],!jy(i[r],t[r]))return!1;return!0}function hg(i){return[...Object.keys(i),...Object.getOwnPropertySymbols(i)]}function jy(i,t){if(Array.isArray(i)&&Array.isArray(t)){if(i.length!==t.length)return!1;let e=[...i].sort(),n=[...t].sort();return e.every((r,o)=>n[o]===r)}else return i===t}function Vy(i){return i.length>0?i[i.length-1]:null}function Sn(i){return c_(i)?i:al(i)?Ct(Promise.resolve(i)):te(i)}var iE={exact:zy,subset:By},Ly={exact:nE,subset:rE,ignored:()=>!0};function Ry(i,t,e){return iE[e.paths](i.root,t.root,e.matrixParams)&&Ly[e.queryParams](i.queryParams,t.queryParams)&&!(e.fragment==="exact"&&i.fragment!==t.fragment)}function nE(i,t){return Ti(i,t)}function zy(i,t,e){if(!hr(i.segments,t.segments)||!wl(i.segments,t.segments,e)||i.numberOfChildren!==t.numberOfChildren)return!1;for(let n in t.children)if(!i.children[n]||!zy(i.children[n],t.children[n],e))return!1;return!0}function rE(i,t){return Object.keys(t).length<=Object.keys(i).length&&Object.keys(t).every(e=>jy(i[e],t[e]))}function By(i,t,e){return Hy(i,t,t.segments,e)}function Hy(i,t,e,n){if(i.segments.length>e.length){let r=i.segments.slice(0,e.length);return!(!hr(r,e)||t.hasChildren()||!wl(r,e,n))}else if(i.segments.length===e.length){if(!hr(i.segments,e)||!wl(i.segments,e,n))return!1;for(let r in t.children)if(!i.children[r]||!By(i.children[r],t.children[r],n))return!1;return!0}else{let r=e.slice(0,i.segments.length),o=e.slice(i.segments.length);return!hr(i.segments,r)||!wl(i.segments,r,n)||!i.children[he]?!1:Hy(i.children[he],t,o,n)}}function wl(i,t,e){return t.every((n,r)=>Ly[e](i[r].parameters,n.parameters))}var kn=class{constructor(t=new Te([],{}),e={},n=null){this.root=t,this.queryParams=e,this.fragment=n}get queryParamMap(){return this._queryParamMap??=To(this.queryParams),this._queryParamMap}toString(){return aE.serialize(this)}},Te=class{constructor(t,e){this.segments=t,this.children=e,this.parent=null,Object.values(e).forEach(n=>n.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Cl(this)}},mr=class{constructor(t,e){this.path=t,this.parameters=e}get parameterMap(){return this._parameterMap??=To(this.parameters),this._parameterMap}toString(){return Uy(this)}};function oE(i,t){return hr(i,t)&&i.every((e,n)=>Ti(e.parameters,t[n].parameters))}function hr(i,t){return i.length!==t.length?!1:i.every((e,n)=>e.path===t[n].path)}function sE(i,t){let e=[];return Object.entries(i.children).forEach(([n,r])=>{n===he&&(e=e.concat(t(r,n)))}),Object.entries(i.children).forEach(([n,r])=>{n!==he&&(e=e.concat(t(r,n)))}),e}var Lg=(()=>{let t=class t{};t.\u0275fac=function(r){return new(r||t)},t.\u0275prov=k({token:t,factory:()=>new kl,providedIn:"root"});let i=t;return i})(),kl=class{parse(t){let e=new pg(t);return new kn(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(t){let e=`/${qs(t.root,!0)}`,n=dE(t.queryParams),r=typeof t.fragment=="string"?`#${cE(t.fragment)}`:"";return`${e}${n}${r}`}},aE=new kl;function Cl(i){return i.segments.map(t=>Uy(t)).join("/")}function qs(i,t){if(!i.hasChildren())return Cl(i);if(t){let e=i.children[he]?qs(i.children[he],!1):"",n=[];return Object.entries(i.children).forEach(([r,o])=>{r!==he&&n.push(`${r}:${qs(o,!1)}`)}),n.length>0?`${e}(${n.join("//")})`:e}else{let e=sE(i,(n,r)=>r===he?[qs(i.children[he],!1)]:[`${r}:${qs(n,!1)}`]);return Object.keys(i.children).length===1&&i.children[he]!=null?`${Cl(i)}/${e[0]}`:`${Cl(i)}/(${e.join("//")})`}}function $y(i){return encodeURIComponent(i).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function _l(i){return $y(i).replace(/%3B/gi,";")}function cE(i){return encodeURI(i)}function gg(i){return $y(i).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Il(i){return decodeURIComponent(i)}function Ay(i){return Il(i.replace(/\+/g,"%20"))}function Uy(i){return`${gg(i.path)}${lE(i.parameters)}`}function lE(i){return Object.entries(i).map(([t,e])=>`;${gg(t)}=${gg(e)}`).join("")}function dE(i){let t=Object.entries(i).map(([e,n])=>Array.isArray(n)?n.map(r=>`${_l(e)}=${_l(r)}`).join("&"):`${_l(e)}=${_l(n)}`).filter(e=>e);return t.length?`?${t.join("&")}`:""}var uE=/^[^\/()?;#]+/;function cg(i){let t=i.match(uE);return t?t[0]:""}var mE=/^[^\/()?;=#]+/;function hE(i){let t=i.match(mE);return t?t[0]:""}var gE=/^[^=?&#]+/;function pE(i){let t=i.match(gE);return t?t[0]:""}var fE=/^[^&#]+/;function bE(i){let t=i.match(fE);return t?t[0]:""}var pg=class{constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new Te([],{}):new Te([],this.parseChildren())}parseQueryParams(){let t={};if(this.consumeOptional("?"))do this.parseQueryParam(t);while(this.consumeOptional("&"));return t}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(this.remaining==="")return{};this.consumeOptional("/");let t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(t.length>0||Object.keys(e).length>0)&&(n[he]=new Te(t,e)),n}parseSegment(){let t=cg(this.remaining);if(t===""&&this.peekStartsWith(";"))throw new Me(4009,!1);return this.capture(t),new mr(Il(t),this.parseMatrixParams())}parseMatrixParams(){let t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){let e=hE(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){let r=cg(this.remaining);r&&(n=r,this.capture(n))}t[Il(e)]=Il(n)}parseQueryParam(t){let e=pE(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){let s=bE(this.remaining);s&&(n=s,this.capture(n))}let r=Ay(e),o=Ay(n);if(t.hasOwnProperty(r)){let s=t[r];Array.isArray(s)||(s=[s],t[r]=s),s.push(o)}else t[r]=o}parseParens(t){let e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let n=cg(this.remaining),r=this.remaining[n.length];if(r!=="/"&&r!==")"&&r!==";")throw new Me(4010,!1);let o;n.indexOf(":")>-1?(o=n.slice(0,n.indexOf(":")),this.capture(o),this.capture(":")):t&&(o=he);let s=this.parseChildren();e[o]=Object.keys(s).length===1?s[he]:new Te([],s),this.consumeOptional("//")}return e}peekStartsWith(t){return this.remaining.startsWith(t)}consumeOptional(t){return this.peekStartsWith(t)?(this.remaining=this.remaining.substring(t.length),!0):!1}capture(t){if(!this.consumeOptional(t))throw new Me(4011,!1)}};function Wy(i){return i.segments.length>0?new Te([],{[he]:i}):i}function Gy(i){let t={};for(let[n,r]of Object.entries(i.children)){let o=Gy(r);if(n===he&&o.segments.length===0&&o.hasChildren())for(let[s,a]of Object.entries(o.children))t[s]=a;else(o.segments.length>0||o.hasChildren())&&(t[n]=o)}let e=new Te(i.segments,t);return vE(e)}function vE(i){if(i.numberOfChildren===1&&i.children[he]){let t=i.children[he];return new Te(i.segments.concat(t.segments),t.children)}return i}function Mo(i){return i instanceof kn}function xE(i,t,e=null,n=null){let r=qy(i);return Yy(r,t,e,n)}function qy(i){let t;function e(o){let s={};for(let l of o.children){let d=e(l);s[l.outlet]=d}let a=new Te(o.url,s);return o===i&&(t=a),a}let n=e(i.root),r=Wy(n);return t??r}function Yy(i,t,e,n){let r=i;for(;r.parent;)r=r.parent;if(t.length===0)return lg(r,r,r,e,n);let o=_E(t);if(o.toRoot())return lg(r,r,new Te([],{}),e,n);let s=yE(o,r,i),a=s.processChildren?Ks(s.segmentGroup,s.index,o.commands):Ky(s.segmentGroup,s.index,o.commands);return lg(r,s.segmentGroup,a,e,n)}function El(i){return typeof i=="object"&&i!=null&&!i.outlets&&!i.segmentPath}function Js(i){return typeof i=="object"&&i!=null&&i.outlets}function lg(i,t,e,n,r){let o={};n&&Object.entries(n).forEach(([l,d])=>{o[l]=Array.isArray(d)?d.map(p=>`${p}`):`${d}`});let s;i===t?s=e:s=Qy(i,t,e);let a=Wy(Gy(s));return new kn(a,o,r)}function Qy(i,t,e){let n={};return Object.entries(i.children).forEach(([r,o])=>{o===t?n[r]=e:n[r]=Qy(o,t,e)}),new Te(i.segments,n)}var Sl=class{constructor(t,e,n){if(this.isAbsolute=t,this.numberOfDoubleDots=e,this.commands=n,t&&n.length>0&&El(n[0]))throw new Me(4003,!1);let r=n.find(Js);if(r&&r!==Vy(n))throw new Me(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function _E(i){if(typeof i[0]=="string"&&i.length===1&&i[0]==="/")return new Sl(!0,0,i);let t=0,e=!1,n=i.reduce((r,o,s)=>{if(typeof o=="object"&&o!=null){if(o.outlets){let a={};return Object.entries(o.outlets).forEach(([l,d])=>{a[l]=typeof d=="string"?d.split("/"):d}),[...r,{outlets:a}]}if(o.segmentPath)return[...r,o.segmentPath]}return typeof o!="string"?[...r,o]:s===0?(o.split("/").forEach((a,l)=>{l==0&&a==="."||(l==0&&a===""?e=!0:a===".."?t++:a!=""&&r.push(a))}),r):[...r,o]},[]);return new Sl(e,t,n)}var So=class{constructor(t,e,n){this.segmentGroup=t,this.processChildren=e,this.index=n}};function yE(i,t,e){if(i.isAbsolute)return new So(t,!0,0);if(!e)return new So(t,!1,NaN);if(e.parent===null)return new So(e,!0,0);let n=El(i.commands[0])?0:1,r=e.segments.length-1+n;return wE(e,r,i.numberOfDoubleDots)}function wE(i,t,e){let n=i,r=t,o=e;for(;o>r;){if(o-=r,n=n.parent,!n)throw new Me(4005,!1);r=n.segments.length}return new So(n,!1,r-o)}function CE(i){return Js(i[0])?i[0].outlets:{[he]:i}}function Ky(i,t,e){if(i??=new Te([],{}),i.segments.length===0&&i.hasChildren())return Ks(i,t,e);let n=IE(i,t,e),r=e.slice(n.commandIndex);if(n.match&&n.pathIndex<i.segments.length){let o=new Te(i.segments.slice(0,n.pathIndex),{});return o.children[he]=new Te(i.segments.slice(n.pathIndex),i.children),Ks(o,0,r)}else return n.match&&r.length===0?new Te(i.segments,{}):n.match&&!i.hasChildren()?fg(i,t,e):n.match?Ks(i,0,r):fg(i,t,e)}function Ks(i,t,e){if(e.length===0)return new Te(i.segments,{});{let n=CE(e),r={};if(Object.keys(n).some(o=>o!==he)&&i.children[he]&&i.numberOfChildren===1&&i.children[he].segments.length===0){let o=Ks(i.children[he],t,e);return new Te(i.segments,o.children)}return Object.entries(n).forEach(([o,s])=>{typeof s=="string"&&(s=[s]),s!==null&&(r[o]=Ky(i.children[o],t,s))}),Object.entries(i.children).forEach(([o,s])=>{n[o]===void 0&&(r[o]=s)}),new Te(i.segments,r)}}function IE(i,t,e){let n=0,r=t,o={match:!1,pathIndex:0,commandIndex:0};for(;r<i.segments.length;){if(n>=e.length)return o;let s=i.segments[r],a=e[n];if(Js(a))break;let l=`${a}`,d=n<e.length-1?e[n+1]:null;if(r>0&&l===void 0)break;if(l&&d&&typeof d=="object"&&d.outlets===void 0){if(!Py(l,d,s))return o;n+=2}else{if(!Py(l,{},s))return o;n++}r++}return{match:!0,pathIndex:r,commandIndex:n}}function fg(i,t,e){let n=i.segments.slice(0,t),r=0;for(;r<e.length;){let o=e[r];if(Js(o)){let l=kE(o.outlets);return new Te(n,l)}if(r===0&&El(e[0])){let l=i.segments[t];n.push(new mr(l.path,Oy(e[0]))),r++;continue}let s=Js(o)?o.outlets[he]:`${o}`,a=r<e.length-1?e[r+1]:null;s&&a&&El(a)?(n.push(new mr(s,Oy(a))),r+=2):(n.push(new mr(s,{})),r++)}return new Te(n,{})}function kE(i){let t={};return Object.entries(i).forEach(([e,n])=>{typeof n=="string"&&(n=[n]),n!==null&&(t[e]=fg(new Te([],{}),0,n))}),t}function Oy(i){let t={};return Object.entries(i).forEach(([e,n])=>t[e]=`${n}`),t}function Py(i,t,e){return i==e.path&&Ti(t,e.parameters)}var Zs="imperative",bt=function(i){return i[i.NavigationStart=0]="NavigationStart",i[i.NavigationEnd=1]="NavigationEnd",i[i.NavigationCancel=2]="NavigationCancel",i[i.NavigationError=3]="NavigationError",i[i.RoutesRecognized=4]="RoutesRecognized",i[i.ResolveStart=5]="ResolveStart",i[i.ResolveEnd=6]="ResolveEnd",i[i.GuardsCheckStart=7]="GuardsCheckStart",i[i.GuardsCheckEnd=8]="GuardsCheckEnd",i[i.RouteConfigLoadStart=9]="RouteConfigLoadStart",i[i.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",i[i.ChildActivationStart=11]="ChildActivationStart",i[i.ChildActivationEnd=12]="ChildActivationEnd",i[i.ActivationStart=13]="ActivationStart",i[i.ActivationEnd=14]="ActivationEnd",i[i.Scroll=15]="Scroll",i[i.NavigationSkipped=16]="NavigationSkipped",i}(bt||{}),Jt=class{constructor(t,e){this.id=t,this.url=e}},ea=class extends Jt{constructor(t,e,n="imperative",r=null){super(t,e),this.type=bt.NavigationStart,this.navigationTrigger=n,this.restoredState=r}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},gr=class extends Jt{constructor(t,e,n){super(t,e),this.urlAfterRedirects=n,this.type=bt.NavigationEnd}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},zt=function(i){return i[i.Redirect=0]="Redirect",i[i.SupersededByNewNavigation=1]="SupersededByNewNavigation",i[i.NoDataFromResolver=2]="NoDataFromResolver",i[i.GuardRejected=3]="GuardRejected",i}(zt||{}),bg=function(i){return i[i.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",i[i.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",i}(bg||{}),En=class extends Jt{constructor(t,e,n,r){super(t,e),this.reason=n,this.code=r,this.type=bt.NavigationCancel}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}},pr=class extends Jt{constructor(t,e,n,r){super(t,e),this.reason=n,this.code=r,this.type=bt.NavigationSkipped}},ta=class extends Jt{constructor(t,e,n,r){super(t,e),this.error=n,this.target=r,this.type=bt.NavigationError}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},Dl=class extends Jt{constructor(t,e,n,r){super(t,e),this.urlAfterRedirects=n,this.state=r,this.type=bt.RoutesRecognized}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},vg=class extends Jt{constructor(t,e,n,r){super(t,e),this.urlAfterRedirects=n,this.state=r,this.type=bt.GuardsCheckStart}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},xg=class extends Jt{constructor(t,e,n,r,o){super(t,e),this.urlAfterRedirects=n,this.state=r,this.shouldActivate=o,this.type=bt.GuardsCheckEnd}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},_g=class extends Jt{constructor(t,e,n,r){super(t,e),this.urlAfterRedirects=n,this.state=r,this.type=bt.ResolveStart}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},yg=class extends Jt{constructor(t,e,n,r){super(t,e),this.urlAfterRedirects=n,this.state=r,this.type=bt.ResolveEnd}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},wg=class{constructor(t){this.route=t,this.type=bt.RouteConfigLoadStart}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},Cg=class{constructor(t){this.route=t,this.type=bt.RouteConfigLoadEnd}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},Ig=class{constructor(t){this.snapshot=t,this.type=bt.ChildActivationStart}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},kg=class{constructor(t){this.snapshot=t,this.type=bt.ChildActivationEnd}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Eg=class{constructor(t){this.snapshot=t,this.type=bt.ActivationStart}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Sg=class{constructor(t){this.snapshot=t,this.type=bt.ActivationEnd}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}};var ia=class{},na=class{constructor(t){this.url=t}};var Dg=class{constructor(){this.outlet=null,this.route=null,this.injector=null,this.children=new Ol,this.attachRef=null}},Ol=(()=>{let t=class t{constructor(){this.contexts=new Map}onChildOutletCreated(n,r){let o=this.getOrCreateContext(n);o.outlet=r,this.contexts.set(n,o)}onChildOutletDestroyed(n){let r=this.getContext(n);r&&(r.outlet=null,r.attachRef=null)}onOutletDeactivated(){let n=this.contexts;return this.contexts=new Map,n}onOutletReAttached(n){this.contexts=n}getOrCreateContext(n){let r=this.getContext(n);return r||(r=new Dg,this.contexts.set(n,r)),r}getContext(n){return this.contexts.get(n)||null}};t.\u0275fac=function(r){return new(r||t)},t.\u0275prov=k({token:t,factory:t.\u0275fac,providedIn:"root"});let i=t;return i})(),Tl=class{constructor(t){this._root=t}get root(){return this._root.value}parent(t){let e=this.pathFromRoot(t);return e.length>1?e[e.length-2]:null}children(t){let e=Tg(t,this._root);return e?e.children.map(n=>n.value):[]}firstChild(t){let e=Tg(t,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(t){let e=Mg(t,this._root);return e.length<2?[]:e[e.length-2].children.map(r=>r.value).filter(r=>r!==t)}pathFromRoot(t){return Mg(t,this._root).map(e=>e.value)}};function Tg(i,t){if(i===t.value)return t;for(let e of t.children){let n=Tg(i,e);if(n)return n}return null}function Mg(i,t){if(i===t.value)return[t];for(let e of t.children){let n=Mg(i,e);if(n.length)return n.unshift(t),n}return[]}var Lt=class{constructor(t,e){this.value=t,this.children=e}toString(){return`TreeNode(${this.value})`}};function Eo(i){let t={};return i&&i.children.forEach(e=>t[e.value.outlet]=e),t}var Ml=class extends Tl{constructor(t,e){super(t),this.snapshot=e,Bg(this,t)}toString(){return this.snapshot.toString()}};function Zy(i){let t=EE(i),e=new nt([new mr("",{})]),n=new nt({}),r=new nt({}),o=new nt({}),s=new nt(""),a=new Fo(e,n,o,s,r,he,i,t.root);return a.snapshot=t.root,new Ml(new Lt(a,[]),t)}function EE(i){let t={},e={},n={},r="",o=new ra([],t,n,r,e,he,i,null,{});return new Fl("",new Lt(o,[]))}var Fo=class{constructor(t,e,n,r,o,s,a,l){this.urlSubject=t,this.paramsSubject=e,this.queryParamsSubject=n,this.fragmentSubject=r,this.dataSubject=o,this.outlet=s,this.component=a,this._futureSnapshot=l,this.title=this.dataSubject?.pipe(le(d=>d[aa]))??te(void 0),this.url=t,this.params=e,this.queryParams=n,this.fragment=r,this.data=o}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=this.params.pipe(le(t=>To(t))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(le(t=>To(t))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function zg(i,t,e="emptyOnly"){let n,{routeConfig:r}=i;return t!==null&&(e==="always"||r?.path===""||!t.component&&!t.routeConfig?.loadComponent)?n={params:V(V({},t.params),i.params),data:V(V({},t.data),i.data),resolve:V(V(V(V({},i.data),t.data),r?.data),i._resolvedData)}:n={params:V({},i.params),data:V({},i.data),resolve:V(V({},i.data),i._resolvedData??{})},r&&Jy(r)&&(n.resolve[aa]=r.title),n}var ra=class{get title(){return this.data?.[aa]}constructor(t,e,n,r,o,s,a,l,d){this.url=t,this.params=e,this.queryParams=n,this.fragment=r,this.data=o,this.outlet=s,this.component=a,this.routeConfig=l,this._resolve=d}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??=To(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=To(this.queryParams),this._queryParamMap}toString(){let t=this.url.map(n=>n.toString()).join("/"),e=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${t}', path:'${e}')`}},Fl=class extends Tl{constructor(t,e){super(e),this.url=t,Bg(this,e)}toString(){return Xy(this._root)}};function Bg(i,t){t.value._routerState=i,t.children.forEach(e=>Bg(i,e))}function Xy(i){let t=i.children.length>0?` { ${i.children.map(Xy).join(", ")} } `:"";return`${i.value}${t}`}function dg(i){if(i.snapshot){let t=i.snapshot,e=i._futureSnapshot;i.snapshot=e,Ti(t.queryParams,e.queryParams)||i.queryParamsSubject.next(e.queryParams),t.fragment!==e.fragment&&i.fragmentSubject.next(e.fragment),Ti(t.params,e.params)||i.paramsSubject.next(e.params),tE(t.url,e.url)||i.urlSubject.next(e.url),Ti(t.data,e.data)||i.dataSubject.next(e.data)}else i.snapshot=i._futureSnapshot,i.dataSubject.next(i._futureSnapshot.data)}function Fg(i,t){let e=Ti(i.params,t.params)&&oE(i.url,t.url),n=!i.parent!=!t.parent;return e&&!n&&(!i.parent||Fg(i.parent,t.parent))}function Jy(i){return typeof i.title=="string"||i.title===null}var Hg=(()=>{let t=class t{constructor(){this.activated=null,this._activatedRoute=null,this.name=he,this.activateEvents=new W,this.deactivateEvents=new W,this.attachEvents=new W,this.detachEvents=new W,this.parentContexts=_(Ol),this.location=_(Ei),this.changeDetector=_(B),this.environmentInjector=_(xo),this.inputBinder=_($g,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(n){if(n.name){let{firstChange:r,previousValue:o}=n.name;if(r)return;this.isTrackedInParentContexts(o)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(o)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(n){return this.parentContexts.getContext(n)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let n=this.parentContexts.getContext(this.name);n?.route&&(n.attachRef?this.attach(n.attachRef,n.route):this.activateWith(n.route,n.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new Me(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new Me(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new Me(4012,!1);this.location.detach();let n=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(n.instance),n}attach(n,r){this.activated=n,this._activatedRoute=r,this.location.insert(n.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(n.instance)}deactivate(){if(this.activated){let n=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(n)}}activateWith(n,r){if(this.isActivated)throw new Me(4013,!1);this._activatedRoute=n;let o=this.location,a=n.snapshot.component,l=this.parentContexts.getOrCreateContext(this.name).children,d=new Rg(n,l,o.injector);this.activated=o.createComponent(a,{index:o.length,injector:d,environmentInjector:r??this.environmentInjector}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}};t.\u0275fac=function(r){return new(r||t)},t.\u0275dir=N({type:t,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[G]});let i=t;return i})(),Rg=class i{__ngOutletInjector(t){return new i(this.route,this.childContexts,t)}constructor(t,e,n){this.route=t,this.childContexts=e,this.parent=n}get(t,e){return t===Fo?this.route:t===Ol?this.childContexts:this.parent.get(t,e)}},$g=new K("");function SE(i,t,e){let n=oa(i,t._root,e?e._root:void 0);return new Ml(n,t)}function oa(i,t,e){if(e&&i.shouldReuseRoute(t.value,e.value.snapshot)){let n=e.value;n._futureSnapshot=t.value;let r=DE(i,t,e);return new Lt(n,r)}else{if(i.shouldAttach(t.value)){let o=i.retrieve(t.value);if(o!==null){let s=o.route;return s.value._futureSnapshot=t.value,s.children=t.children.map(a=>oa(i,a)),s}}let n=TE(t.value),r=t.children.map(o=>oa(i,o));return new Lt(n,r)}}function DE(i,t,e){return t.children.map(n=>{for(let r of e.children)if(i.shouldReuseRoute(n.value,r.value.snapshot))return oa(i,n,r);return oa(i,n)})}function TE(i){return new Fo(new nt(i.url),new nt(i.params),new nt(i.queryParams),new nt(i.fragment),new nt(i.data),i.outlet,i.component,i)}var ew="ngNavigationCancelingError";function tw(i,t){let{redirectTo:e,navigationBehaviorOptions:n}=Mo(t)?{redirectTo:t,navigationBehaviorOptions:void 0}:t,r=iw(!1,zt.Redirect);return r.url=e,r.navigationBehaviorOptions=n,r}function iw(i,t){let e=new Error(`NavigationCancelingError: ${i||""}`);return e[ew]=!0,e.cancellationCode=t,e}function ME(i){return nw(i)&&Mo(i.url)}function nw(i){return!!i&&i[ew]}var FE=(()=>{let t=class t{};t.\u0275fac=function(r){return new(r||t)},t.\u0275cmp=I({type:t,selectors:[["ng-component"]],standalone:!0,features:[Oe],decls:1,vars:0,template:function(r,o){r&1&&b(0,"router-outlet")},dependencies:[Hg],encapsulation:2});let i=t;return i})();function RE(i,t){return i.providers&&!i._injector&&(i._injector=A_(i.providers,t,`Route: ${i.path}`)),i._injector??t}function Ug(i){let t=i.children&&i.children.map(Ug),e=t?Be(V({},i),{children:t}):V({},i);return!e.component&&!e.loadComponent&&(t||e.loadChildren)&&e.outlet&&e.outlet!==he&&(e.component=FE),e}function Mi(i){return i.outlet||he}function AE(i,t){let e=i.filter(n=>Mi(n)===t);return e.push(...i.filter(n=>Mi(n)!==t)),e}function ca(i){if(!i)return null;if(i.routeConfig?._injector)return i.routeConfig._injector;for(let t=i.parent;t;t=t.parent){let e=t.routeConfig;if(e?._loadedInjector)return e._loadedInjector;if(e?._injector)return e._injector}return null}var OE=(i,t,e,n)=>le(r=>(new Ag(t,r.targetRouterState,r.currentRouterState,e,n).activate(i),r)),Ag=class{constructor(t,e,n,r,o){this.routeReuseStrategy=t,this.futureState=e,this.currState=n,this.forwardEvent=r,this.inputBindingEnabled=o}activate(t){let e=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,n,t),dg(this.futureState.root),this.activateChildRoutes(e,n,t)}deactivateChildRoutes(t,e,n){let r=Eo(e);t.children.forEach(o=>{let s=o.value.outlet;this.deactivateRoutes(o,r[s],n),delete r[s]}),Object.values(r).forEach(o=>{this.deactivateRouteAndItsChildren(o,n)})}deactivateRoutes(t,e,n){let r=t.value,o=e?e.value:null;if(r===o)if(r.component){let s=n.getContext(r.outlet);s&&this.deactivateChildRoutes(t,e,s.children)}else this.deactivateChildRoutes(t,e,n);else o&&this.deactivateRouteAndItsChildren(e,n)}deactivateRouteAndItsChildren(t,e){t.value.component&&this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,e):this.deactivateRouteAndOutlet(t,e)}detachAndStoreRouteSubtree(t,e){let n=e.getContext(t.value.outlet),r=n&&t.value.component?n.children:e,o=Eo(t);for(let s of Object.values(o))this.deactivateRouteAndItsChildren(s,r);if(n&&n.outlet){let s=n.outlet.detach(),a=n.children.onOutletDeactivated();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:s,route:t,contexts:a})}}deactivateRouteAndOutlet(t,e){let n=e.getContext(t.value.outlet),r=n&&t.value.component?n.children:e,o=Eo(t);for(let s of Object.values(o))this.deactivateRouteAndItsChildren(s,r);n&&(n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated()),n.attachRef=null,n.route=null)}activateChildRoutes(t,e,n){let r=Eo(e);t.children.forEach(o=>{this.activateRoutes(o,r[o.value.outlet],n),this.forwardEvent(new Sg(o.value.snapshot))}),t.children.length&&this.forwardEvent(new kg(t.value.snapshot))}activateRoutes(t,e,n){let r=t.value,o=e?e.value:null;if(dg(r),r===o)if(r.component){let s=n.getOrCreateContext(r.outlet);this.activateChildRoutes(t,e,s.children)}else this.activateChildRoutes(t,e,n);else if(r.component){let s=n.getOrCreateContext(r.outlet);if(this.routeReuseStrategy.shouldAttach(r.snapshot)){let a=this.routeReuseStrategy.retrieve(r.snapshot);this.routeReuseStrategy.store(r.snapshot,null),s.children.onOutletReAttached(a.contexts),s.attachRef=a.componentRef,s.route=a.route.value,s.outlet&&s.outlet.attach(a.componentRef,a.route.value),dg(a.route.value),this.activateChildRoutes(t,null,s.children)}else{let a=ca(r.snapshot);s.attachRef=null,s.route=r,s.injector=a,s.outlet&&s.outlet.activateWith(r,s.injector),this.activateChildRoutes(t,null,s.children)}}else this.activateChildRoutes(t,null,n)}},Rl=class{constructor(t){this.path=t,this.route=this.path[this.path.length-1]}},Do=class{constructor(t,e){this.component=t,this.route=e}};function PE(i,t,e){let n=i._root,r=t?t._root:null;return Ys(n,r,e,[n.value])}function NE(i){let t=i.routeConfig?i.routeConfig.canActivateChild:null;return!t||t.length===0?null:{node:i,guards:t}}function Ao(i,t){let e=Symbol(),n=t.get(i,e);return n===e?typeof i=="function"&&!x_(i)?i:t.get(i):n}function Ys(i,t,e,n,r={canDeactivateChecks:[],canActivateChecks:[]}){let o=Eo(t);return i.children.forEach(s=>{jE(s,o[s.value.outlet],e,n.concat([s.value]),r),delete o[s.value.outlet]}),Object.entries(o).forEach(([s,a])=>Xs(a,e.getContext(s),r)),r}function jE(i,t,e,n,r={canDeactivateChecks:[],canActivateChecks:[]}){let o=i.value,s=t?t.value:null,a=e?e.getContext(i.value.outlet):null;if(s&&o.routeConfig===s.routeConfig){let l=VE(s,o,o.routeConfig.runGuardsAndResolvers);l?r.canActivateChecks.push(new Rl(n)):(o.data=s.data,o._resolvedData=s._resolvedData),o.component?Ys(i,t,a?a.children:null,n,r):Ys(i,t,e,n,r),l&&a&&a.outlet&&a.outlet.isActivated&&r.canDeactivateChecks.push(new Do(a.outlet.component,s))}else s&&Xs(t,a,r),r.canActivateChecks.push(new Rl(n)),o.component?Ys(i,null,a?a.children:null,n,r):Ys(i,null,e,n,r);return r}function VE(i,t,e){if(typeof e=="function")return e(i,t);switch(e){case"pathParamsChange":return!hr(i.url,t.url);case"pathParamsOrQueryParamsChange":return!hr(i.url,t.url)||!Ti(i.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Fg(i,t)||!Ti(i.queryParams,t.queryParams);case"paramsChange":default:return!Fg(i,t)}}function Xs(i,t,e){let n=Eo(i),r=i.value;Object.entries(n).forEach(([o,s])=>{r.component?t?Xs(s,t.children.getContext(o),e):Xs(s,null,e):Xs(s,t,e)}),r.component?t&&t.outlet&&t.outlet.isActivated?e.canDeactivateChecks.push(new Do(t.outlet.component,r)):e.canDeactivateChecks.push(new Do(null,r)):e.canDeactivateChecks.push(new Do(null,r))}function la(i){return typeof i=="function"}function LE(i){return typeof i=="boolean"}function zE(i){return i&&la(i.canLoad)}function BE(i){return i&&la(i.canActivate)}function HE(i){return i&&la(i.canActivateChild)}function $E(i){return i&&la(i.canDeactivate)}function UE(i){return i&&la(i.canMatch)}function rw(i){return i instanceof l_||i?.name==="EmptyError"}var yl=Symbol("INITIAL_VALUE");function Ro(){return Xt(i=>gn(i.map(t=>t.pipe(jt(1),Xc(yl)))).pipe(le(t=>{for(let e of t)if(e!==!0){if(e===yl)return yl;if(e===!1||e instanceof kn)return e}return!0}),kt(t=>t!==yl),jt(1)))}function WE(i,t){return Zt(e=>{let{targetSnapshot:n,currentSnapshot:r,guards:{canActivateChecks:o,canDeactivateChecks:s}}=e;return s.length===0&&o.length===0?te(Be(V({},e),{guardsResult:!0})):GE(s,n,r,i).pipe(Zt(a=>a&&LE(a)?qE(n,o,i,t):te(a)),le(a=>Be(V({},e),{guardsResult:a})))})}function GE(i,t,e,n){return Ct(i).pipe(Zt(r=>XE(r.component,r.route,e,t,n)),bn(r=>r!==!0,!0))}function qE(i,t,e,n){return Ct(t).pipe(ir(r=>Qc(QE(r.route.parent,n),YE(r.route,n),ZE(i,r.path,e),KE(i,r.route,e))),bn(r=>r!==!0,!0))}function YE(i,t){return i!==null&&t&&t(new Eg(i)),te(!0)}function QE(i,t){return i!==null&&t&&t(new Ig(i)),te(!0)}function KE(i,t,e){let n=t.routeConfig?t.routeConfig.canActivate:null;if(!n||n.length===0)return te(!0);let r=n.map(o=>jh(()=>{let s=ca(t)??e,a=Ao(o,s),l=BE(a)?a.canActivate(t,i):qi(s,()=>a(t,i));return Sn(l).pipe(bn())}));return te(r).pipe(Ro())}function ZE(i,t,e){let n=t[t.length-1],o=t.slice(0,t.length-1).reverse().map(s=>NE(s)).filter(s=>s!==null).map(s=>jh(()=>{let a=s.guards.map(l=>{let d=ca(s.node)??e,p=Ao(l,d),w=HE(p)?p.canActivateChild(n,i):qi(d,()=>p(n,i));return Sn(w).pipe(bn())});return te(a).pipe(Ro())}));return te(o).pipe(Ro())}function XE(i,t,e,n,r){let o=t&&t.routeConfig?t.routeConfig.canDeactivate:null;if(!o||o.length===0)return te(!0);let s=o.map(a=>{let l=ca(t)??r,d=Ao(a,l),p=$E(d)?d.canDeactivate(i,t,e,n):qi(l,()=>d(i,t,e,n));return Sn(p).pipe(bn())});return te(s).pipe(Ro())}function JE(i,t,e,n){let r=t.canLoad;if(r===void 0||r.length===0)return te(!0);let o=r.map(s=>{let a=Ao(s,i),l=zE(a)?a.canLoad(t,e):qi(i,()=>a(t,e));return Sn(l)});return te(o).pipe(Ro(),ow(n))}function ow(i){return a_(He(t=>{if(Mo(t))throw tw(i,t)}),le(t=>t===!0))}function eS(i,t,e,n){let r=t.canMatch;if(!r||r.length===0)return te(!0);let o=r.map(s=>{let a=Ao(s,i),l=UE(a)?a.canMatch(t,e):qi(i,()=>a(t,e));return Sn(l)});return te(o).pipe(Ro(),ow(n))}var sa=class{constructor(t){this.segmentGroup=t||null}},Al=class extends Error{constructor(t){super(),this.urlTree=t}};function ko(i){return er(new sa(i))}function tS(i){return er(new Me(4e3,!1))}function iS(i){return er(iw(!1,zt.GuardRejected))}var Og=class{constructor(t,e){this.urlSerializer=t,this.urlTree=e}lineralizeSegments(t,e){let n=[],r=e.root;for(;;){if(n=n.concat(r.segments),r.numberOfChildren===0)return te(n);if(r.numberOfChildren>1||!r.children[he])return tS(t.redirectTo);r=r.children[he]}}applyRedirectCommands(t,e,n){let r=this.applyRedirectCreateUrlTree(e,this.urlSerializer.parse(e),t,n);if(e.startsWith("/"))throw new Al(r);return r}applyRedirectCreateUrlTree(t,e,n,r){let o=this.createSegmentGroup(t,e.root,n,r);return new kn(o,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(t,e){let n={};return Object.entries(t).forEach(([r,o])=>{if(typeof o=="string"&&o.startsWith(":")){let a=o.substring(1);n[r]=e[a]}else n[r]=o}),n}createSegmentGroup(t,e,n,r){let o=this.createSegments(t,e.segments,n,r),s={};return Object.entries(e.children).forEach(([a,l])=>{s[a]=this.createSegmentGroup(t,l,n,r)}),new Te(o,s)}createSegments(t,e,n,r){return e.map(o=>o.path.startsWith(":")?this.findPosParam(t,o,r):this.findOrReturn(o,n))}findPosParam(t,e,n){let r=n[e.path.substring(1)];if(!r)throw new Me(4001,!1);return r}findOrReturn(t,e){let n=0;for(let r of e){if(r.path===t.path)return e.splice(n),r;n++}return t}},Pg={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function nS(i,t,e,n,r){let o=Wg(i,t,e);return o.matched?(n=RE(t,n),eS(n,t,e,r).pipe(le(s=>s===!0?o:V({},Pg)))):te(o)}function Wg(i,t,e){if(t.path==="**")return rS(e);if(t.path==="")return t.pathMatch==="full"&&(i.hasChildren()||e.length>0)?V({},Pg):{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};let r=(t.matcher||eE)(e,i,t);if(!r)return V({},Pg);let o={};Object.entries(r.posParams??{}).forEach(([a,l])=>{o[a]=l.path});let s=r.consumed.length>0?V(V({},o),r.consumed[r.consumed.length-1].parameters):o;return{matched:!0,consumedSegments:r.consumed,remainingSegments:e.slice(r.consumed.length),parameters:s,positionalParamSegments:r.posParams??{}}}function rS(i){return{matched:!0,parameters:i.length>0?Vy(i).parameters:{},consumedSegments:i,remainingSegments:[],positionalParamSegments:{}}}function Ny(i,t,e,n){return e.length>0&&aS(i,e,n)?{segmentGroup:new Te(t,sS(n,new Te(e,i.children))),slicedSegments:[]}:e.length===0&&cS(i,e,n)?{segmentGroup:new Te(i.segments,oS(i,e,n,i.children)),slicedSegments:e}:{segmentGroup:new Te(i.segments,i.children),slicedSegments:e}}function oS(i,t,e,n){let r={};for(let o of e)if(Pl(i,t,o)&&!n[Mi(o)]){let s=new Te([],{});r[Mi(o)]=s}return V(V({},n),r)}function sS(i,t){let e={};e[he]=t;for(let n of i)if(n.path===""&&Mi(n)!==he){let r=new Te([],{});e[Mi(n)]=r}return e}function aS(i,t,e){return e.some(n=>Pl(i,t,n)&&Mi(n)!==he)}function cS(i,t,e){return e.some(n=>Pl(i,t,n))}function Pl(i,t,e){return(i.hasChildren()||t.length>0)&&e.pathMatch==="full"?!1:e.path===""}function lS(i,t,e,n){return Mi(i)!==n&&(n===he||!Pl(t,e,i))?!1:Wg(t,i,e).matched}function dS(i,t,e){return t.length===0&&!i.children[e]}var Ng=class{};function uS(i,t,e,n,r,o,s="emptyOnly"){return new jg(i,t,e,n,r,s,o).recognize()}var mS=31,jg=class{constructor(t,e,n,r,o,s,a){this.injector=t,this.configLoader=e,this.rootComponentType=n,this.config=r,this.urlTree=o,this.paramsInheritanceStrategy=s,this.urlSerializer=a,this.applyRedirects=new Og(this.urlSerializer,this.urlTree),this.absoluteRedirectCount=0,this.allowRedirects=!0}noMatchError(t){return new Me(4002,`'${t.segmentGroup}'`)}recognize(){let t=Ny(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(t).pipe(le(e=>{let n=new ra([],Object.freeze({}),Object.freeze(V({},this.urlTree.queryParams)),this.urlTree.fragment,{},he,this.rootComponentType,null,{}),r=new Lt(n,e),o=new Fl("",r),s=xE(n,[],this.urlTree.queryParams,this.urlTree.fragment);return s.queryParams=this.urlTree.queryParams,o.url=this.urlSerializer.serialize(s),this.inheritParamsAndData(o._root,null),{state:o,tree:s}}))}match(t){return this.processSegmentGroup(this.injector,this.config,t,he).pipe(pn(n=>{if(n instanceof Al)return this.urlTree=n.urlTree,this.match(n.urlTree.root);throw n instanceof sa?this.noMatchError(n):n}))}inheritParamsAndData(t,e){let n=t.value,r=zg(n,e,this.paramsInheritanceStrategy);n.params=Object.freeze(r.params),n.data=Object.freeze(r.data),t.children.forEach(o=>this.inheritParamsAndData(o,n))}processSegmentGroup(t,e,n,r){return n.segments.length===0&&n.hasChildren()?this.processChildren(t,e,n):this.processSegment(t,e,n,n.segments,r,!0).pipe(le(o=>o instanceof Lt?[o]:[]))}processChildren(t,e,n){let r=[];for(let o of Object.keys(n.children))o==="primary"?r.unshift(o):r.push(o);return Ct(r).pipe(ir(o=>{let s=n.children[o],a=AE(e,o);return this.processSegmentGroup(t,a,s,o)}),p_((o,s)=>(o.push(...s),o)),Vh(null),h_(),Zt(o=>{if(o===null)return ko(n);let s=sw(o);return hS(s),te(s)}))}processSegment(t,e,n,r,o,s){return Ct(e).pipe(ir(a=>this.processSegmentAgainstRoute(a._injector??t,e,a,n,r,o,s).pipe(pn(l=>{if(l instanceof sa)return te(null);throw l}))),bn(a=>!!a),pn(a=>{if(rw(a))return dS(n,r,o)?te(new Ng):ko(n);throw a}))}processSegmentAgainstRoute(t,e,n,r,o,s,a){return lS(n,r,o,s)?n.redirectTo===void 0?this.matchSegmentAgainstRoute(t,r,n,o,s):this.allowRedirects&&a?this.expandSegmentAgainstRouteUsingRedirect(t,r,e,n,o,s):ko(r):ko(r)}expandSegmentAgainstRouteUsingRedirect(t,e,n,r,o,s){let{matched:a,consumedSegments:l,positionalParamSegments:d,remainingSegments:p}=Wg(e,r,o);if(!a)return ko(e);r.redirectTo.startsWith("/")&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>mS&&(this.allowRedirects=!1));let w=this.applyRedirects.applyRedirectCommands(l,r.redirectTo,d);return this.applyRedirects.lineralizeSegments(r,w).pipe(Zt(E=>this.processSegment(t,n,e,E.concat(p),s,!1)))}matchSegmentAgainstRoute(t,e,n,r,o){let s=nS(e,n,r,t,this.urlSerializer);return n.path==="**"&&(e.children={}),s.pipe(Xt(a=>a.matched?(t=n._injector??t,this.getChildConfig(t,n,r).pipe(Xt(({routes:l})=>{let d=n._loadedInjector??t,{consumedSegments:p,remainingSegments:w,parameters:E}=a,Q=new ra(p,E,Object.freeze(V({},this.urlTree.queryParams)),this.urlTree.fragment,pS(n),Mi(n),n.component??n._loadedComponent??null,n,fS(n)),{segmentGroup:ne,slicedSegments:ce}=Ny(e,p,w,l);if(ce.length===0&&ne.hasChildren())return this.processChildren(d,l,ne).pipe(le(Y=>Y===null?null:new Lt(Q,Y)));if(l.length===0&&ce.length===0)return te(new Lt(Q,[]));let O=Mi(n)===o;return this.processSegment(d,l,ne,ce,O?he:o,!0).pipe(le(Y=>new Lt(Q,Y instanceof Lt?[Y]:[])))}))):ko(e)))}getChildConfig(t,e,n){return e.children?te({routes:e.children,injector:t}):e.loadChildren?e._loadedRoutes!==void 0?te({routes:e._loadedRoutes,injector:e._loadedInjector}):JE(t,e,n,this.urlSerializer).pipe(Zt(r=>r?this.configLoader.loadChildren(t,e).pipe(He(o=>{e._loadedRoutes=o.routes,e._loadedInjector=o.injector})):iS(e))):te({routes:[],injector:t})}};function hS(i){i.sort((t,e)=>t.value.outlet===he?-1:e.value.outlet===he?1:t.value.outlet.localeCompare(e.value.outlet))}function gS(i){let t=i.value.routeConfig;return t&&t.path===""}function sw(i){let t=[],e=new Set;for(let n of i){if(!gS(n)){t.push(n);continue}let r=t.find(o=>n.value.routeConfig===o.value.routeConfig);r!==void 0?(r.children.push(...n.children),e.add(r)):t.push(n)}for(let n of e){let r=sw(n.children);t.push(new Lt(n.value,r))}return t.filter(n=>!e.has(n))}function pS(i){return i.data||{}}function fS(i){return i.resolve||{}}function bS(i,t,e,n,r,o){return Zt(s=>uS(i,t,e,n,s.extractedUrl,r,o).pipe(le(({state:a,tree:l})=>Be(V({},s),{targetSnapshot:a,urlAfterRedirects:l}))))}function vS(i,t){return Zt(e=>{let{targetSnapshot:n,guards:{canActivateChecks:r}}=e;if(!r.length)return te(e);let o=new Set(r.map(l=>l.route)),s=new Set;for(let l of o)if(!s.has(l))for(let d of aw(l))s.add(d);let a=0;return Ct(s).pipe(ir(l=>o.has(l)?xS(l,n,i,t):(l.data=zg(l,l.parent,i).resolve,te(void 0))),He(()=>a++),Lh(1),Zt(l=>a===s.size?te(e):Ii))})}function aw(i){let t=i.children.map(e=>aw(e)).flat();return[i,...t]}function xS(i,t,e,n){let r=i.routeConfig,o=i._resolve;return r?.title!==void 0&&!Jy(r)&&(o[aa]=r.title),_S(o,i,t,n).pipe(le(s=>(i._resolvedData=s,i.data=zg(i,i.parent,e).resolve,null)))}function _S(i,t,e,n){let r=hg(i);if(r.length===0)return te({});let o={};return Ct(r).pipe(Zt(s=>yS(i[s],t,e,n).pipe(bn(),He(a=>{o[s]=a}))),Lh(1),m_(o),pn(s=>rw(s)?Ii:er(s)))}function yS(i,t,e,n){let r=ca(t)??n,o=Ao(i,r),s=o.resolve?o.resolve(t,e):qi(r,()=>o(t,e));return Sn(s)}function ug(i){return Xt(t=>{let e=i(t);return e?Ct(e).pipe(le(()=>t)):te(t)})}var cw=(()=>{let t=class t{buildTitle(n){let r,o=n.root;for(;o!==void 0;)r=this.getResolvedTitleForRoute(o)??r,o=o.children.find(s=>s.outlet===he);return r}getResolvedTitleForRoute(n){return n.data[aa]}};t.\u0275fac=function(r){return new(r||t)},t.\u0275prov=k({token:t,factory:()=>_(wS),providedIn:"root"});let i=t;return i})(),wS=(()=>{let t=class t extends cw{constructor(n){super(),this.title=n}updateTitle(n){let r=this.buildTitle(n);r!==void 0&&this.title.setTitle(r)}};t.\u0275fac=function(r){return new(r||t)(v(My))},t.\u0275prov=k({token:t,factory:t.\u0275fac,providedIn:"root"});let i=t;return i})(),Gg=new K("",{providedIn:"root",factory:()=>({})}),qg=new K(""),CS=(()=>{let t=class t{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=_($h)}loadComponent(n){if(this.componentLoaders.get(n))return this.componentLoaders.get(n);if(n._loadedComponent)return te(n._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(n);let r=Sn(n.loadComponent()).pipe(le(lw),He(s=>{this.onLoadEndListener&&this.onLoadEndListener(n),n._loadedComponent=s}),fn(()=>{this.componentLoaders.delete(n)})),o=new Ph(r,()=>new ke).pipe(Oh());return this.componentLoaders.set(n,o),o}loadChildren(n,r){if(this.childrenLoaders.get(r))return this.childrenLoaders.get(r);if(r._loadedRoutes)return te({routes:r._loadedRoutes,injector:r._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(r);let s=IS(r,this.compiler,n,this.onLoadEndListener).pipe(fn(()=>{this.childrenLoaders.delete(r)})),a=new Ph(s,()=>new ke).pipe(Oh());return this.childrenLoaders.set(r,a),a}};t.\u0275fac=function(r){return new(r||t)},t.\u0275prov=k({token:t,factory:t.\u0275fac,providedIn:"root"});let i=t;return i})();function IS(i,t,e,n){return Sn(i.loadChildren()).pipe(le(lw),Zt(r=>r instanceof R_||Array.isArray(r)?te(r):Ct(t.compileModuleAsync(r))),le(r=>{n&&n(i);let o,s,a=!1;return Array.isArray(r)?(s=r,a=!0):(o=r.create(e).injector,s=o.get(qg,[],{optional:!0,self:!0}).flat()),{routes:s.map(Ug),injector:o}}))}function kS(i){return i&&typeof i=="object"&&"default"in i}function lw(i){return kS(i)?i.default:i}var Yg=(()=>{let t=class t{};t.\u0275fac=function(r){return new(r||t)},t.\u0275prov=k({token:t,factory:()=>_(ES),providedIn:"root"});let i=t;return i})(),ES=(()=>{let t=class t{shouldProcessUrl(n){return!0}extract(n){return n}merge(n,r){return n}};t.\u0275fac=function(r){return new(r||t)},t.\u0275prov=k({token:t,factory:t.\u0275fac,providedIn:"root"});let i=t;return i})(),SS=new K("");var DS=(()=>{let t=class t{get hasRequestedNavigation(){return this.navigationId!==0}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new ke,this.transitionAbortSubject=new ke,this.configLoader=_(CS),this.environmentInjector=_(xo),this.urlSerializer=_(Lg),this.rootContexts=_(Ol),this.location=_(ll),this.inputBindingEnabled=_($g,{optional:!0})!==null,this.titleStrategy=_(cw),this.options=_(Gg,{optional:!0})||{},this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlHandlingStrategy=_(Yg),this.createViewTransition=_(SS,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>te(void 0),this.rootComponentType=null;let n=o=>this.events.next(new wg(o)),r=o=>this.events.next(new Cg(o));this.configLoader.onLoadEndListener=r,this.configLoader.onLoadStartListener=n}complete(){this.transitions?.complete()}handleNavigationRequest(n){let r=++this.navigationId;this.transitions?.next(Be(V(V({},this.transitions.value),n),{id:r}))}setupNavigations(n,r,o){return this.transitions=new nt({id:0,currentUrlTree:r,currentRawUrl:r,extractedUrl:this.urlHandlingStrategy.extract(r),urlAfterRedirects:this.urlHandlingStrategy.extract(r),rawUrl:r,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:Zs,restoredState:null,currentSnapshot:o.snapshot,targetSnapshot:null,currentRouterState:o,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(kt(s=>s.id!==0),le(s=>Be(V({},s),{extractedUrl:this.urlHandlingStrategy.extract(s.rawUrl)})),Xt(s=>{let a=!1,l=!1;return te(s).pipe(Xt(d=>{if(this.navigationId>s.id)return this.cancelNavigationTransition(s,"",zt.SupersededByNewNavigation),Ii;this.currentTransition=s,this.currentNavigation={id:d.id,initialUrl:d.rawUrl,extractedUrl:d.extractedUrl,trigger:d.source,extras:d.extras,previousNavigation:this.lastSuccessfulNavigation?Be(V({},this.lastSuccessfulNavigation),{previousNavigation:null}):null};let p=!n.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),w=d.extras.onSameUrlNavigation??n.onSameUrlNavigation;if(!p&&w!=="reload"){let E="";return this.events.next(new pr(d.id,this.urlSerializer.serialize(d.rawUrl),E,bg.IgnoredSameUrlNavigation)),d.resolve(null),Ii}if(this.urlHandlingStrategy.shouldProcessUrl(d.rawUrl))return te(d).pipe(Xt(E=>{let Q=this.transitions?.getValue();return this.events.next(new ea(E.id,this.urlSerializer.serialize(E.extractedUrl),E.source,E.restoredState)),Q!==this.transitions?.getValue()?Ii:Promise.resolve(E)}),bS(this.environmentInjector,this.configLoader,this.rootComponentType,n.config,this.urlSerializer,this.paramsInheritanceStrategy),He(E=>{s.targetSnapshot=E.targetSnapshot,s.urlAfterRedirects=E.urlAfterRedirects,this.currentNavigation=Be(V({},this.currentNavigation),{finalUrl:E.urlAfterRedirects});let Q=new Dl(E.id,this.urlSerializer.serialize(E.extractedUrl),this.urlSerializer.serialize(E.urlAfterRedirects),E.targetSnapshot);this.events.next(Q)}));if(p&&this.urlHandlingStrategy.shouldProcessUrl(d.currentRawUrl)){let{id:E,extractedUrl:Q,source:ne,restoredState:ce,extras:O}=d,Y=new ea(E,this.urlSerializer.serialize(Q),ne,ce);this.events.next(Y);let Ie=Zy(this.rootComponentType).snapshot;return this.currentTransition=s=Be(V({},d),{targetSnapshot:Ie,urlAfterRedirects:Q,extras:Be(V({},O),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.finalUrl=Q,te(s)}else{let E="";return this.events.next(new pr(d.id,this.urlSerializer.serialize(d.extractedUrl),E,bg.IgnoredByUrlHandlingStrategy)),d.resolve(null),Ii}}),He(d=>{let p=new vg(d.id,this.urlSerializer.serialize(d.extractedUrl),this.urlSerializer.serialize(d.urlAfterRedirects),d.targetSnapshot);this.events.next(p)}),le(d=>(this.currentTransition=s=Be(V({},d),{guards:PE(d.targetSnapshot,d.currentSnapshot,this.rootContexts)}),s)),WE(this.environmentInjector,d=>this.events.next(d)),He(d=>{if(s.guardsResult=d.guardsResult,Mo(d.guardsResult))throw tw(this.urlSerializer,d.guardsResult);let p=new xg(d.id,this.urlSerializer.serialize(d.extractedUrl),this.urlSerializer.serialize(d.urlAfterRedirects),d.targetSnapshot,!!d.guardsResult);this.events.next(p)}),kt(d=>d.guardsResult?!0:(this.cancelNavigationTransition(d,"",zt.GuardRejected),!1)),ug(d=>{if(d.guards.canActivateChecks.length)return te(d).pipe(He(p=>{let w=new _g(p.id,this.urlSerializer.serialize(p.extractedUrl),this.urlSerializer.serialize(p.urlAfterRedirects),p.targetSnapshot);this.events.next(w)}),Xt(p=>{let w=!1;return te(p).pipe(vS(this.paramsInheritanceStrategy,this.environmentInjector),He({next:()=>w=!0,complete:()=>{w||this.cancelNavigationTransition(p,"",zt.NoDataFromResolver)}}))}),He(p=>{let w=new yg(p.id,this.urlSerializer.serialize(p.extractedUrl),this.urlSerializer.serialize(p.urlAfterRedirects),p.targetSnapshot);this.events.next(w)}))}),ug(d=>{let p=w=>{let E=[];w.routeConfig?.loadComponent&&!w.routeConfig._loadedComponent&&E.push(this.configLoader.loadComponent(w.routeConfig).pipe(He(Q=>{w.component=Q}),le(()=>{})));for(let Q of w.children)E.push(...p(Q));return E};return gn(p(d.targetSnapshot.root)).pipe(Vh(null),jt(1))}),ug(()=>this.afterPreactivation()),Xt(()=>{let{currentSnapshot:d,targetSnapshot:p}=s,w=this.createViewTransition?.(this.environmentInjector,d.root,p.root);return w?Ct(w).pipe(le(()=>s)):te(s)}),le(d=>{let p=SE(n.routeReuseStrategy,d.targetSnapshot,d.currentRouterState);return this.currentTransition=s=Be(V({},d),{targetRouterState:p}),this.currentNavigation.targetRouterState=p,s}),He(()=>{this.events.next(new ia)}),OE(this.rootContexts,n.routeReuseStrategy,d=>this.events.next(d),this.inputBindingEnabled),jt(1),He({next:d=>{a=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new gr(d.id,this.urlSerializer.serialize(d.extractedUrl),this.urlSerializer.serialize(d.urlAfterRedirects))),this.titleStrategy?.updateTitle(d.targetRouterState.snapshot),d.resolve(!0)},complete:()=>{a=!0}}),re(this.transitionAbortSubject.pipe(He(d=>{throw d}))),fn(()=>{!a&&!l&&this.cancelNavigationTransition(s,"",zt.SupersededByNewNavigation),this.currentTransition?.id===s.id&&(this.currentNavigation=null,this.currentTransition=null)}),pn(d=>{if(l=!0,nw(d))this.events.next(new En(s.id,this.urlSerializer.serialize(s.extractedUrl),d.message,d.cancellationCode)),ME(d)?this.events.next(new na(d.url)):s.resolve(!1);else{this.events.next(new ta(s.id,this.urlSerializer.serialize(s.extractedUrl),d,s.targetSnapshot??void 0));try{s.resolve(n.errorHandler(d))}catch(p){this.options.resolveNavigationPromiseOnError?s.resolve(!1):s.reject(p)}}return Ii}))}))}cancelNavigationTransition(n,r,o){let s=new En(n.id,this.urlSerializer.serialize(n.extractedUrl),r,o);this.events.next(s),n.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){return this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))).toString()!==this.currentTransition?.extractedUrl.toString()&&!this.currentTransition?.extras.skipLocationChange}};t.\u0275fac=function(r){return new(r||t)},t.\u0275prov=k({token:t,factory:t.\u0275fac,providedIn:"root"});let i=t;return i})();function TS(i){return i!==Zs}var MS=(()=>{let t=class t{};t.\u0275fac=function(r){return new(r||t)},t.\u0275prov=k({token:t,factory:()=>_(FS),providedIn:"root"});let i=t;return i})(),Vg=class{shouldDetach(t){return!1}store(t,e){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,e){return t.routeConfig===e.routeConfig}},FS=(()=>{let t=class t extends Vg{};t.\u0275fac=(()=>{let n;return function(o){return(n||(n=ze(t)))(o||t)}})(),t.\u0275prov=k({token:t,factory:t.\u0275fac,providedIn:"root"});let i=t;return i})(),dw=(()=>{let t=class t{};t.\u0275fac=function(r){return new(r||t)},t.\u0275prov=k({token:t,factory:()=>_(RS),providedIn:"root"});let i=t;return i})(),RS=(()=>{let t=class t extends dw{constructor(){super(...arguments),this.location=_(ll),this.urlSerializer=_(Lg),this.options=_(Gg,{optional:!0})||{},this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.urlHandlingStrategy=_(Yg),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.currentUrlTree=new kn,this.rawUrlTree=this.currentUrlTree,this.currentPageId=0,this.lastSuccessfulId=-1,this.routerState=Zy(null),this.stateMemento=this.createStateMemento()}getCurrentUrlTree(){return this.currentUrlTree}getRawUrlTree(){return this.rawUrlTree}restoredState(){return this.location.getState()}get browserPageId(){return this.canceledNavigationResolution!=="computed"?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}getRouterState(){return this.routerState}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}registerNonRouterCurrentEntryChangeListener(n){return this.location.subscribe(r=>{r.type==="popstate"&&n(r.url,r.state)})}handleRouterEvent(n,r){if(n instanceof ea)this.stateMemento=this.createStateMemento();else if(n instanceof pr)this.rawUrlTree=r.initialUrl;else if(n instanceof Dl){if(this.urlUpdateStrategy==="eager"&&!r.extras.skipLocationChange){let o=this.urlHandlingStrategy.merge(r.finalUrl,r.initialUrl);this.setBrowserUrl(o,r)}}else n instanceof ia?(this.currentUrlTree=r.finalUrl,this.rawUrlTree=this.urlHandlingStrategy.merge(r.finalUrl,r.initialUrl),this.routerState=r.targetRouterState,this.urlUpdateStrategy==="deferred"&&(r.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,r))):n instanceof En&&(n.code===zt.GuardRejected||n.code===zt.NoDataFromResolver)?this.restoreHistory(r):n instanceof ta?this.restoreHistory(r,!0):n instanceof gr&&(this.lastSuccessfulId=n.id,this.currentPageId=this.browserPageId)}setBrowserUrl(n,r){let o=this.urlSerializer.serialize(n);if(this.location.isCurrentPathEqualTo(o)||r.extras.replaceUrl){let s=this.browserPageId,a=V(V({},r.extras.state),this.generateNgRouterState(r.id,s));this.location.replaceState(o,"",a)}else{let s=V(V({},r.extras.state),this.generateNgRouterState(r.id,this.browserPageId+1));this.location.go(o,"",s)}}restoreHistory(n,r=!1){if(this.canceledNavigationResolution==="computed"){let o=this.browserPageId,s=this.currentPageId-o;s!==0?this.location.historyGo(s):this.currentUrlTree===n.finalUrl&&s===0&&(this.resetState(n),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(r&&this.resetState(n),this.resetUrlToCurrentUrlTree())}resetState(n){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,n.finalUrl??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(n,r){return this.canceledNavigationResolution==="computed"?{navigationId:n,\u0275routerPageId:r}:{navigationId:n}}};t.\u0275fac=(()=>{let n;return function(o){return(n||(n=ze(t)))(o||t)}})(),t.\u0275prov=k({token:t,factory:t.\u0275fac,providedIn:"root"});let i=t;return i})(),Qs=function(i){return i[i.COMPLETE=0]="COMPLETE",i[i.FAILED=1]="FAILED",i[i.REDIRECTING=2]="REDIRECTING",i}(Qs||{});function AS(i,t){i.events.pipe(kt(e=>e instanceof gr||e instanceof En||e instanceof ta||e instanceof pr),le(e=>e instanceof gr||e instanceof pr?Qs.COMPLETE:(e instanceof En?e.code===zt.Redirect||e.code===zt.SupersededByNewNavigation:!1)?Qs.REDIRECTING:Qs.FAILED),kt(e=>e!==Qs.REDIRECTING),jt(1)).subscribe(()=>{t()})}function OS(i){throw i}var PS={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},NS={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},Oo=(()=>{let t=class t{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}constructor(){this.disposed=!1,this.isNgZoneEnabled=!1,this.console=_(sl),this.stateManager=_(dw),this.options=_(Gg,{optional:!0})||{},this.pendingTasks=_(nl),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.navigationTransitions=_(DS),this.urlSerializer=_(Lg),this.location=_(ll),this.urlHandlingStrategy=_(Yg),this._events=new ke,this.errorHandler=this.options.errorHandler||OS,this.navigated=!1,this.routeReuseStrategy=_(MS),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.config=_(qg,{optional:!0})?.flat()??[],this.componentInputBindingEnabled=!!_($g,{optional:!0}),this.eventsSubscription=new Jn,this.isNgZoneEnabled=_(de)instanceof de&&de.isInAngularZone(),this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe({error:n=>{this.console.warn(n)}}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){let n=this.navigationTransitions.events.subscribe(r=>{try{let o=this.navigationTransitions.currentTransition,s=this.navigationTransitions.currentNavigation;if(o!==null&&s!==null){if(this.stateManager.handleRouterEvent(r,s),r instanceof En&&r.code!==zt.Redirect&&r.code!==zt.SupersededByNewNavigation)this.navigated=!0;else if(r instanceof gr)this.navigated=!0;else if(r instanceof na){let a=this.urlHandlingStrategy.merge(r.url,o.currentRawUrl),l={info:o.extras.info,skipLocationChange:o.extras.skipLocationChange,replaceUrl:this.urlUpdateStrategy==="eager"||TS(o.source)};this.scheduleNavigation(a,Zs,null,l,{resolve:o.resolve,reject:o.reject,promise:o.promise})}}VS(r)&&this._events.next(r)}catch(o){this.navigationTransitions.transitionAbortSubject.next(o)}});this.eventsSubscription.add(n)}resetRootComponentType(n){this.routerState.root.component=n,this.navigationTransitions.rootComponentType=n}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),Zs,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((n,r)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(n,"popstate",r)},0)})}navigateToSyncWithBrowser(n,r,o){let s={replaceUrl:!0},a=o?.navigationId?o:null;if(o){let d=V({},o);delete d.navigationId,delete d.\u0275routerPageId,Object.keys(d).length!==0&&(s.state=d)}let l=this.parseUrl(n);this.scheduleNavigation(l,r,a,s)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(n){this.config=n.map(Ug),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription&&(this.nonRouterCurrentEntryChangeSubscription.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(n,r={}){let{relativeTo:o,queryParams:s,fragment:a,queryParamsHandling:l,preserveFragment:d}=r,p=d?this.currentUrlTree.fragment:a,w=null;switch(l){case"merge":w=V(V({},this.currentUrlTree.queryParams),s);break;case"preserve":w=this.currentUrlTree.queryParams;break;default:w=s||null}w!==null&&(w=this.removeEmptyProps(w));let E;try{let Q=o?o.snapshot:this.routerState.snapshot.root;E=qy(Q)}catch{(typeof n[0]!="string"||!n[0].startsWith("/"))&&(n=[]),E=this.currentUrlTree.root}return Yy(E,n,w,p??null)}navigateByUrl(n,r={skipLocationChange:!1}){let o=Mo(n)?n:this.parseUrl(n),s=this.urlHandlingStrategy.merge(o,this.rawUrlTree);return this.scheduleNavigation(s,Zs,null,r)}navigate(n,r={skipLocationChange:!1}){return jS(n),this.navigateByUrl(this.createUrlTree(n,r),r)}serializeUrl(n){return this.urlSerializer.serialize(n)}parseUrl(n){try{return this.urlSerializer.parse(n)}catch{return this.urlSerializer.parse("/")}}isActive(n,r){let o;if(r===!0?o=V({},PS):r===!1?o=V({},NS):o=r,Mo(n))return Ry(this.currentUrlTree,n,o);let s=this.parseUrl(n);return Ry(this.currentUrlTree,s,o)}removeEmptyProps(n){return Object.entries(n).reduce((r,[o,s])=>(s!=null&&(r[o]=s),r),{})}scheduleNavigation(n,r,o,s,a){if(this.disposed)return Promise.resolve(!1);let l,d,p;a?(l=a.resolve,d=a.reject,p=a.promise):p=new Promise((E,Q)=>{l=E,d=Q});let w=this.pendingTasks.add();return AS(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(w))}),this.navigationTransitions.handleNavigationRequest({source:r,restoredState:o,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:n,extras:s,resolve:l,reject:d,promise:p,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),p.catch(E=>Promise.reject(E))}};t.\u0275fac=function(r){return new(r||t)},t.\u0275prov=k({token:t,factory:t.\u0275fac,providedIn:"root"});let i=t;return i})();function jS(i){for(let t=0;t<i.length;t++)if(i[t]==null)throw new Me(4008,!1)}function VS(i){return!(i instanceof ia)&&!(i instanceof na)}var LS=new K("");function uw(i,...t){return vn([{provide:qg,multi:!0,useValue:i},[],{provide:Fo,useFactory:zS,deps:[Oo]},{provide:cl,multi:!0,useFactory:BS},t.map(e=>e.\u0275providers)])}function zS(i){return i.routerState.root}function BS(){let i=_(ve);return t=>{let e=i.get(Et);if(t!==e.components[0])return;let n=i.get(Oo),r=i.get(HS);i.get($S)===1&&n.initialNavigation(),i.get(US,null,zh.Optional)?.setUpPreloading(),i.get(LS,null,zh.Optional)?.init(),n.resetRootComponentType(e.componentTypes[0]),r.closed||(r.next(),r.complete(),r.unsubscribe())}}var HS=new K("",{factory:()=>new ke}),$S=new K("",{providedIn:"root",factory:()=>1});var US=new K("");var Nl=class i{token;stringKey;constructor(t){this.token=t,this.stringKey=this.generateStringKey()}static from(t){return new i(t)}toString(){return this.stringKey}generateStringKey(){return typeof this.token!="string"?this.token.toString().split(" ")[1]||"":this.token}},da=class extends Nl{constructor(t){super(t)}getError(){return typeof this.token=="string"?"Key not found for the token: "+this.token:"Key not found for the token: "+this.token.toString()}},Qg=class{records=new Map;getKey(t){let e=this.records.get(t);return e||new da(t)}getKeyAndTryRegister(t,e){return this.has(t)||this.set(t,e),this.getKey(t)}has(t){return this.records.has(t)}set(t,e){this.records.set(t,Nl.from(t))}clear(){this.records.clear()}},Kg=class{providers=new Map;get(t){let e=this.providers.get(t);if(!e)throw new Error(`There is no provider for ${t.toString()}.`);return e}has(t){return this.providers.has(t)}set(t,e){this.providers.set(t,e)}clear(){this.providers.clear()}},Po=class{serviceToken;constructor(t){this.serviceToken=t}getToken(){return typeof this.serviceToken=="object"?this.serviceToken.inject:this.serviceToken}isOptional(){return typeof this.serviceToken!="string"&&typeof this.serviceToken=="object"&&this.serviceToken.optional!==void 0?this.serviceToken.optional:!1}isCollection(){return typeof this.serviceToken!="string"&&typeof this.serviceToken=="object"&&this.serviceToken.collection?this.serviceToken.collection:!1}},ua=class{provider;constructor(t){this.provider=t}getDeps(){return(this.provider.services||[]).map(t=>new Po(t))}},Zg=class extends ua{constructor(t){super(t)}create(t){return new this.provider(...t)}},Xg=class extends ua{constructor(t){super(t)}getDeps(){return[]}create(t){return this.provider}},Jg=class extends ua{constructor(t){super(t)}getDeps(){return(this.provider.deps||[]).map(t=>new Po(t))}create(t){return this.provider.create(...t)}},ma=class{},ep=class extends ma{providers=[];getDeps(){return this.providers.map(t=>(t.services||[]).map(e=>new Po(e)))}create(t){return t.map((e,n)=>new this.providers[n](...e))}addProvider(t){this.providers.push(t)}},tp=class extends ma{providers=[];getDeps(){return this.providers.map(t=>(t.deps||[]).map(e=>new Po(e)))}create(t){return t.map((e,n)=>this.providers[n].create(...e))}addProvider(t){this.providers.push(t)}},ip=class extends ma{providers=[];getDeps(){return[]}create(t){return[...this.providers]}addProvider(t){this.providers.push(t)}},np=class{keyRegister;providerManager=new Kg;collectionProviders=new Map;constructor(t){this.keyRegister=t}provide(t,e){return e===void 0?this.provide(t,t):this.provideClass(t,e)}provideClass(t,e){return this.addProvider(t,e,n=>new Zg(n))}provideValue(t,e){return this.addProvider(t,e,n=>new Xg(n))}provideFactory(t,e){return this.addProvider(t,e,n=>new Jg(n))}provideCollection(t,e){return this.addCollectionProvider(t,e,()=>new ep)}provideFactoryCollection(t,e){return this.addCollectionProvider(t,e,()=>new tp)}provideValueCollection(t,e){return this.addCollectionProvider(t,e,()=>new ip)}clear(){this.providerManager.clear(),this.collectionProviders.clear()}getRecordFactory(t){return this.providerManager.get(t)}getCollectionRecordFactory(t){return this.collectionProviders.get(t)}addProvider(t,e,n){let r=this.keyRegister.getKeyAndTryRegister(t,e);this.providerManager.set(r,n(e))}addCollectionProvider(t,e,n){let r=this.keyRegister.getKeyAndTryRegister(t,e);if(this.collectionProviders.has(r)){let o=this.collectionProviders.get(r);o&&o.addProvider(e)}else{let o=n();o.addProvider(e),this.collectionProviders.set(r,o)}}},rp=class{records=new Map;get(t){return this.records.get(t)}has(t){return this.records.has(t)}set(t,e){this.records.set(t,e)}clear(){this.records.clear()}},op=class{keyRegister;containerProvider;recordManager=new rp;collectionRecords=new Map;constructor(t,e){this.keyRegister=t,this.containerProvider=e}resolve(t){return this.innerResolve(t)}resolveCollection(t){return this.innerResolveCollection(t)}clear(){this.recordManager.clear(),this.collectionRecords.clear()}resolveDependencies(t){return t.getDeps().map(n=>n.isCollection()?this.innerResolveCollection(n.getToken(),n.isOptional()):this.resolveDependency(n))}resolveDependency(t){return this.innerResolve(t.getToken(),t.isOptional())}innerResolve(t,e){let n=this.keyRegister.getKey(t);if(n instanceof da){if(e)return null;throw new Error(n.getError())}if(!this.recordManager.has(n)){let r=this.containerProvider.getRecordFactory(n),o=this.resolveDependencies(r),s=r.create(o);this.recordManager.set(n,s)}return this.recordManager.get(n)}innerResolveCollection(t,e=!1){let n=this.keyRegister.getKey(t);if(n instanceof da){if(e)return null;throw new Error(n.getError())}if(!this.collectionRecords.has(n)){let r=this.containerProvider.getCollectionRecordFactory(n);if(r){let o=r.getDeps().map(a=>a.map(l=>l.isCollection()?this.innerResolveCollection(l.getToken(),l.isOptional()):this.resolveDependency(l))),s=r.create(o);this.collectionRecords.set(n,s)}}return this.collectionRecords.get(n)}},sp=class{keyRegister=new Qg;containerProvider=new np(this.keyRegister);containerRecord=new op(this.keyRegister,this.containerProvider);resolve(t){return this.containerRecord.resolve(t)}resolveCollection(t){return this.containerRecord.resolveCollection(t)}provide(t,e){return this.containerProvider.provide(t,e),this}provideClass(t,e){return this.containerProvider.provideClass(t,e),this}provideValue(t,e){return this.containerProvider.provideValue(t,e),this}provideFactory(t,e){return this.containerProvider.provideFactory(t,e),this}provideCollection(t,e){return this.containerProvider.provideCollection(t,e),this}provideFactoryCollection(t,e){return this.containerProvider.provideFactoryCollection(t,e),this}provideValueCollection(t,e){return this.containerProvider.provideValueCollection(t,e),this}clear(){this.keyRegister.clear(),this.containerProvider.clear(),this.containerRecord.clear()}clearOnlyRecords(){this.containerRecord.clear()}};function bp(){return new sp}var jl=class{subscriber;closed=!1;constructor(t,e){this.subscriber=t,e!=null&&(this.closed=e)}unsubscribe(){this.closed||(this.closed=!0,this.subscriber.unsubscribe())}getFinalize(){return this.subscriber.getFinalize()}},Dt=class{observer;finalize=()=>{};completed=!1;closed=!1;constructor(t){this.observer=t}next(t){this.isCompleted()||this.observer&&this.observer.next&&this.observer.next(t)}error(t){this.completed||(this.observer&&this.observer.error&&this.observer.error(t),this.unsubscribe())}complete(){this.completed||(this.completed=!0,this.observer&&this.observer.complete&&this.observer.complete(),this.unsubscribe())}unsubscribe(){this.closed||(this.closed=!0,this.completed=!0,this.finalize())}setFinalize(t){t&&typeof t=="function"&&(this.finalize=t)}getFinalize(){return this.finalize}isCompleted(){return this.completed}isClosed(){return this.closed}getObserver(){return this.observer}},ot=class{generatorFn;source;generatorFinalize;constructor(t){this.generatorFn=t}pipe(...t){this.source=this;for(let e of t)this.source=this.innerPipe(e,this.source);return this.source}subscribe(t){let e;if(t instanceof Dt)e=t;else if(t!==null&&this.isObserver(t)){let{next:n,error:r,complete:o}=t;e=this.createSubscriber(n,r,o)}else e=this.createSubscriber(arguments[0],arguments[1],arguments[2]);return this.generatorFn&&(this.generatorFinalize=this.generatorFn(e),e.setFinalize(this.generatorFinalize)),this.getSubscription(e)}createSubscriber(t,e,n){return new Dt({next:t,error:e,complete:n})}getSubscription(t){return new jl(t)}innerPipe(t,e){return(n=>t(n))(e)}isObserver(t){return typeof t=="object"}};function mw(){return new jl(new Dt({}),!0)}var Ze=class extends ot{thrownError=null;isCompleted=!1;isClosed=!1;subscribers=[];constructor(){super()}next(t){if(this.verifyNotClosed(),!(this.isCompleted||this.thrownError!==null))for(let e of this.subscribers)e.next(t)}error(t){if(this.verifyNotClosed(),!this.isCompleted){this.thrownError=t;for(let e of this.subscribers)e.error(t);this.subscribers.length=0}}complete(){if(this.verifyNotClosed(),!this.isCompleted){this.isCompleted=!0;for(let t of this.subscribers)t.complete();this.subscribers.length=0}}subscribe(t){this.verifyNotClosed();let e;return t instanceof Dt?e=t:e=this.createSubscriber(arguments[0],arguments[1],arguments[2]),this.thrownError!==null?(e.error(this.thrownError),mw()):this.isCompleted?(e.complete(),mw()):(this.subscribers.push(e),this.getSubscription(e))}unsubscribe(){this.isCompleted=!0,this.isClosed=!0,this.subscribers.length=0}toObservable(){return new ot(t=>{let e=this.subscribe(n=>t.next(n),n=>t.error(n),()=>t.complete());return()=>e.unsubscribe()})}verifyNotClosed(){if(this.isClosed)throw new Error("Observable already closed")}},No=class extends Ze{constructor(){super()}},Tn=(()=>{class i{static index=0;static generate(){return Math.random().toString(36).substring(2,15)+Math.random().toString(36).substring(2,15)+`${i.index++}`}}return i})(),Vl=class{aggregateId;messageType;messageId;constructor(t,e,n=Tn.generate()){this.aggregateId=t,this.messageType=e,this.messageId=n}getMessageType(){return this.messageType}getAggregateId(){return this.aggregateId}getMessageId(){return this.messageId}toString(){return this.messageType}equalsByType(t){return this.getMessageType()===t.getMessageType()}equals(t){return this.getMessageType()===t.getMessageType()&&this.messageId===t.messageId}ofMessageType(t){return Array.isArray(t)?!!t.find(n=>this.isMessageType(n)):this.isMessageType(t)}isMessageType(t){return this.getMessageType()===t}},Zi=class extends Vl{payload;constructor(t,e,n){super(t,n),this.payload=e}isSameType(t){return this.constructor.name===t.constructor.name}getPayload(){return this.payload}};function GS(...i){return new ot(t=>{i.forEach(e=>{t.next(e)}),t.complete()})}function vp(){return new ot(i=>{i.complete()})}function Er(i){return t=>i===0?vp():new ot(e=>{let n=0,r=new Dt({next:()=>{},error:s=>e.error(s),complete:()=>e.complete()});return r.observer.next=function(s){n<i&&(e.next(s),n++,n===i&&r.complete())},t.subscribe(r).getFinalize()})}function Zl(i,t,e){let n=t||(o=>{i.next(o)}),r=e||(()=>{i.complete()});return new Dt({next:n,error:o=>i.error(o),complete:r})}function qS(i){return new Dt({next:t=>i.next(t),error:t=>i.error(t),complete:()=>i.complete()})}function ye(i){return t=>new ot(e=>{let n=Zl(e,r=>{i(r)&&e.next(r)});return t.subscribe(n).getFinalize()})}var Ll=class{domainEvents=[];domainEvents$=new Ze;next(t){this.domainEvents.push(t),this.domainEvents$.next(t)}findEventByType(t){return this.getEvents().reverse().find(n=>n.constructor.name===t)}waitForEvent(t){let e=this.findEventByType(t);return e?GS(e):this.waitForNextEventOccurrence(t)}waitForNextEventOccurrence(t){let e;if(t instanceof Zi)e=t.constructor.name;else if(typeof t=="string")e=t;else return new ot(n=>{n.error(new Error("Unsupported argument type."))});return this.domainEvents$.toObservable().pipe(ye(n=>n.constructor.name===e),Er(1))}getEvents(){return this.domainEvents}},ha=class extends Ze{constructor(){super()}},ga=(()=>{class i extends ot{commandsStream;constructor(e){super(),this.commandsStream=e}static services=[ha];subscribe(){return this.commandsStream.toObservable().subscribe(arguments[0],arguments[1],arguments[2])}ofCommandHandler(...e){return this.commandsStream.toObservable().pipe(ye(n=>e.some(r=>r.forCommand(n))))}ofCreateAggregateHandler(...e){return this.commandsStream.toObservable().pipe(ye(n=>e.some(r=>r.forCommand(n))))}ofNullHandler(e,n){return this.commandsStream.toObservable().pipe(ye(r=>{if(!e&&!n)return!0;let o=!0;return e&&(o=!e.some(s=>s.forCommand(r))),n&&(o=o&&!n.some(s=>s.forCommand(r))),o}))}}return i})(),Xe=class i{value;constructor(t){return i.isValueEmpty(t)?this.value=null:this.value=t,this}static empty(){return new i(null)}static of(t){return new i(t)}static isValueEmpty(t){return typeof t>"u"||t===null}isEmpty(){return i.isValueEmpty(this.value)}isPresent(){return!this.isEmpty()}filter(t){return this.isPresent()&&t(this.value)?this:i.empty()}forEach(t){this.isPresent()&&t(this.value)}map(t){return this.isPresent()?new i(t(this.value)):i.empty()}getValueOrNullOrThrowError(){return this.value}getOrThrow(){if(this.isEmpty())throw new Error("Called getOrThrow on an empty Optional");return this.value}getOrElse(t){return this.isPresent()?this.value:t()}ifPresent(t){this.isPresent()&&t(this.value)}ifEmpty(t){this.isEmpty()&&t()}orElse(t){return this.isPresent()?this:t()}},jo=class{map=new Map;constructor(){}add(t,e){this.map.set(t,e)}get(t){return Xe.of(this.map.get(t))}has(t){return this.map.has(t)}},Vo=class{map=new Map;constructor(){}add(t,e){this.map.set(t,e)}get(t){return Xe.of(this.map.get(t))}has(t){return this.map.has(t)}},pa=class{aggregateFactoryArchive=y.resolve(jo);aggregateRepositoryArchive=y.resolve(Vo);constructor(){}register(t){if(t){let e=new Set,n=[];t.filter(r=>{e.has(r.key)||(e.add(r.key),n.push(r))}),n.forEach(r=>{let o=y.resolve(r.factory),s=y.resolve(r.repository);this.aggregateFactoryArchive.has(r.key)||this.aggregateFactoryArchive.add(r.key,o),this.aggregateRepositoryArchive.has(r.key)||this.aggregateRepositoryArchive.add(r.key,s)})}}};function Mt(i){return t=>new ot(e=>{let n=qS(e),r=new Dt({next:()=>n.complete()});return i.subscribe(r),t.subscribe(n).getFinalize()})}function Ji(i){return new gi(t=>{let e=i.subscribe(n=>t.next(n),n=>t.error(n),()=>t.complete());return()=>e.unsubscribe()})}var vt=class{hermesUnsubscribe$=new Ze;constructor(){}onDestroy(){this.hermesUnsubscribe()}takeUntil(){return re(Ji(this.hermesUnsubscribe$))}hermesUnsubscribe(){this.hermesUnsubscribe$.next(),this.hermesUnsubscribe$.complete()}hermesTakeUntil(){return Mt(this.hermesUnsubscribe$)}isNotStopped(){return!this.hermesUnsubscribe$.isCompleted}},fa=class extends vt{commandBus=y.resolve(ga);constructor(){super()}register(t){if(t){let e=new Set,n=[];t.filter(r=>{e.has(r.commandHandler)||(e.add(r.commandHandler),n.push(r))}),n.forEach(r=>{this.commandBus.ofCommandHandler(r).pipe(this.hermesTakeUntil()).subscribe(o=>{r.handleCommand(o)})})}}registerAggregateCommandHandlers(t){if(t){let e=new Set,n=[];t.filter(r=>{e.has(r.createAggregateCommandHandler)||(e.add(r.createAggregateCommandHandler),n.push(r))}),n.forEach(r=>{this.commandBus.ofCreateAggregateHandler(r).pipe(this.hermesTakeUntil()).subscribe(o=>{r.handleCommand(o)})})}}},ei=(()=>{class i extends ot{eventStream;constructor(e){super(),this.eventStream=e}static services=[No];subscribe(){return this.eventStream.toObservable().subscribe(arguments[0],arguments[1],arguments[2])}ofEvents(e){return this.eventStream.toObservable().pipe(ye(n=>e.some(r=>this.createEventInstance(r).equalsByType(n))))}ofEventHandlers(e){return this.eventStream.toObservable().pipe(ye(n=>e.some(r=>r.forEvents([n]))))}createEventInstance(e){let n=[],r=e.constructor.length;if(n.fill(void 0,0,r),n.length===0)return new e;if(n.length===1)return new e(n[0]);if(n.length===2)return new e(n[0],n[1]);if(n.length===3)return new e(n[0],n[1],n[2]);if(n.length===4)return new e(n[0],n[1],n[2],n[3]);if(n.length===5)return new e(n[0],n[1],n[2],n[3],n[4]);throw new Error("DomainEventBus constructor out of arguments")}}return i})(),ap=(()=>{class i extends vt{domainEventBus;unsub$=new Ze;constructor(e){super(),this.domainEventBus=e}static services=[ei];init(e){if(e){let n=new Set,r=[];e.filter(o=>{n.has(o.domainEventHandler)||(n.add(o.domainEventHandler),r.push(o))}),r.forEach(o=>{this.domainEventBus.ofEventHandlers([o]).pipe(Mt(this.unsub$),this.hermesTakeUntil()).subscribe(s=>{o.handleEvent(s)})})}}reinit(e){this.stop(),this.init(e)}stop(){this.unsub$.next(),this.unsub$.complete(),this.unsub$=new Ze}}return i})(),Xl="GUI - COMMAND_LOGGER_ENABLED",Jl="GUI - EVENT_LOGGER_ENABLED",zl=class{domainName;setDomain(t){this.domainName=t}log(t){this.shouldPrint(t)&&this.print(t)}shouldPrint(t){return this.domainName?t.toString().includes(this.domainName):!0}},Lo=class extends zl{},Bl=class extends Lo{enabled=!1;unsubscribe$=new Ze;commandBus=y.resolve(ga);constructor(){super(),this.commandBus.pipe(ye(()=>this.enabled),Mt(this.unsubscribe$)).subscribe(t=>{this.log(t)})}onDestroy(){this.unsubscribe$.next(),this.unsubscribe$.complete()}start(){this.enabled=!0}stop(){this.enabled=!1}print(t){console.log(t.toString(),t)}},Hl=class extends Lo{start(){}stop(){}print(t){}},zo=class extends zl{constructor(){super()}},$l=class extends zo{constructor(){super()}start(){}stop(){}print(t){}},ba=class{stores=[];register(t){this.stores.push(t)}captureAggregatesSnapshot(t){if(!t)return{};let e={};return this.stores.forEach(n=>{let r=n.findById(t);if(r){let o=r.constructor.name;e[o]=r}}),this.cloneAggregates(e)}cloneAggregates(t){return t}},Ul=class extends zo{enabled=!1;unsubscribe$=new Ze;eventBus=y.resolve(ei);aggregateStoreRegister=y.resolve(ba);constructor(){super(),this.eventBus.pipe(ye(()=>this.enabled),Mt(this.unsubscribe$)).subscribe(t=>{this.log(t)})}onDestroy(){this.unsubscribe$.next(),this.unsubscribe$.complete()}start(){this.enabled=!0}stop(){this.enabled=!1}print(t){let e=t.getAggregateId(),n=this.aggregateStoreRegister.captureAggregatesSnapshot(e);console.log(t.toString(),t,n)}},gw="Hermes - aggregateDefinitionToken",cp="HERMES - DOMAIN_EVENT_HANDLERS_TOKEN",pw="HERMES - CREATE_AGGREGATE_COMMAND_HANDLERS",fw="HERMES - COMMAND_HANDLERS_TOKEN",bw=(()=>{class i extends vt{aggregateDefinitionInitializer;commandHandlerInitializer;domainEventHandlerInitializer;commandBus;definedAggregate;eventHandlers;aggregateCommandHandlers;commandHandlers;started=!1;constructor(e,n,r,o,s,a,l,d){super(),this.aggregateDefinitionInitializer=e,this.commandHandlerInitializer=n,this.domainEventHandlerInitializer=r,this.commandBus=o,this.definedAggregate=s,this.eventHandlers=a,this.aggregateCommandHandlers=l,this.commandHandlers=d,this.eventHandlers===null&&(this.eventHandlers=[]),this.aggregateCommandHandlers===null&&(this.aggregateCommandHandlers=[]),this.commandHandlers===null&&(this.commandHandlers=[])}static services=[pa,fa,ap,ga,{inject:gw,collection:!0},{inject:cp,collection:!0,optional:!0},{inject:pw,collection:!0,optional:!0},{inject:fw,collection:!0,optional:!0}];run(){this.started||(this.checkNullCommand(this.commandHandlers,this.aggregateCommandHandlers),this.checkCommandHandlerIsCollection(this.commandHandlers),this.checkDomainEventHandlerIsCollection(this.eventHandlers),this.aggregateDefinitionInitializer.register(this.definedAggregate),this.commandHandlerInitializer.register(this.commandHandlers),this.commandHandlerInitializer.registerAggregateCommandHandlers(this.aggregateCommandHandlers),this.domainEventHandlerInitializer.init(this.eventHandlers),this.started=!0)}destroy(){this.commandHandlerInitializer.onDestroy(),this.domainEventHandlerInitializer.onDestroy()}checkNullCommand(e,n){this.commandBus.ofNullHandler(e,n).pipe(this.hermesTakeUntil()).subscribe(r=>{console.error(`Command ${r.toString()} was not intercepted by any CommandHandler.`)})}checkCommandHandlerIsCollection(e){e&&!Array.isArray(e)&&console.warn('You might provided commandHandler without specifying "multi: true".')}checkDomainEventHandlerIsCollection(e){e&&!Array.isArray(e)&&console.warn('You might provided eventHandler without specifying "multi: true".')}}return i})();function YS(i,t,e){return i?t:e}function QS(i,t,e){return i?t:e}function vw(){y.resolve(bw).run()}var ut=class{commandStream=y.resolve(ha);dispatch(t){this.commandStream.next(t)}},_e=(()=>{class i{eventStream;constructor(e){this.eventStream=e}static services=[No];publish(e){if(Array.isArray(e))for(let n of e)this.publishEvent(n);else this.publishEvent(e)}publishFromAggregate(e){[...e.getEvents()].forEach(r=>{this.publish(r.toDomainEvent())})}publishEvent(e){e||console.error(`${e} is not defined`),e instanceof Zi||console.error(`${e} is not a DomainEvent`),this.eventStream.next(e)}}return i})(),y=bp();y.provideValue(Jl,!0);y.provideValue(Xl,!0);y.provide(Bl);y.provide(Hl);y.provide($l);y.provide(Ul);y.provide(ei);y.provide(ba);y.provideFactory(Lo,{create:YS,deps:[Xl,Bl,Hl]});y.provideFactory(zo,{create:QS,deps:[Jl,Ul,$l]});y.provide(jo,jo);y.provide(_e);y.provide(Vo);y.provide(No,No);y.provide(Ll,Ll);y.provide(ga,ga);y.provide(ha);y.provide(ut);y.provide(pa,pa);y.provide(fa,fa);y.provide(ap,ap);y.provide(bw);var Dn=class extends Vl{};var fr=class{},br=class{aggregateId;type;constructor(t,e){this.aggregateId=t,this.type=e}getAggregateId(){return this.aggregateId}getType(){return this.type}equals(t){return this.equalsByType(t)&&this.getAggregateId().equals(t.getAggregateId())}equalsByType(t){return this.getType()===t.getType()}};var vr=class{},lp=class{},xr=class{type;aggregateId;events;constructor(t,e){this.type=e,this.aggregateId=t,this.events=[]}getId(){return this.aggregateId}getType(){return this.type}getEvents(){return this.events}addEvent(t){if(Array.isArray(t))for(let e of t)this.events.push(e);else this.events.push(t)}clearEvents(){this.events.length=0}equals(t){return t.getId().toString()===this.getId().toString()}},_r=class{uid;constructor(t){this.uid=t}getId(){return this.uid}equals(t){return this.uid===t.getId()}},yr=class extends _r{constructor(t){super(t)}toString(){return super.getId()}};var Wl=class extends vt{constructor(){super()}onDestroy(){this.hermesUnsubscribe()}},Bo=class{keys=new Map;values=new WeakMap;find(t){let e=this.getInternalKey(t);return e!==void 0?Xe.of(this.values.get(e)):Xe.empty()}has(t){let e=this.getInternalKey(t);return this.values.has(e)}set(t,e){this.keys.set(t.toString(),t),this.values.set(t,e)}size(){return this.keys.size}remove(t){this.hasInternalKey(t)&&(this.keys.delete(t.toString()),this.values.delete(t))}removeAll(){this.keys.forEach(t=>{this.values.delete(t)}),this.keys.clear()}getInternalKey(t){return this.keys.get(t.toString())}hasInternalKey(t){return this.keys.has(t.toString())}};function P(i){return t=>new ot(e=>{let n=0,r=Zl(e,o=>{e.next(i(o,n++))});return t.subscribe(r).getFinalize()})}function ti(i){let t=i||KS;return e=>new ot(n=>{let r=null,o=Zl(n,s=>{(r===null||!t(r,s))&&(r=s,n.next(s))});return e.subscribe(o).getFinalize()})}function KS(i,t){return i===t}var dp=class extends Ze{lastValue;constructor(t){super(),this.lastValue=t}next(t){this.lastValue=t,super.next(t)}subscribe(){let t=super.subscribe(arguments[0],arguments[1],arguments[2]);return super.next(this.lastValue),t}},Tt=class extends Ze{bufferSize;values=[];constructor(t=1){super(),this.bufferSize=t}pipe(...t){return super.pipe(...t)}next(t){this.values.push(t),this.bufferSize<this.values.length&&this.values.shift(),super.next(t)}subscribe(){let t;arguments[0]instanceof Dt?t=arguments[0]:t=this.createSubscriber(arguments[0],arguments[1],arguments[2]);let e=super.subscribe(t);for(let n of this.values)t.next(n);return e}},Gl=class extends Ze{constructor(){super()}static of(t){return t!==void 0?new dp(t):new Tt(1)}},up=class extends Dt{next(t){if(this.isCompleted())return;let e=this.getObserver();e&&e.next&&(e.next(t),this.complete())}},mp=class extends ot{createSubscriber(t,e,n){return new up({next:t,error:e,complete:n})}};function Sr(i){return new mp(t=>{let e=new Dt({next:r=>t.next(r),error:r=>t.error(r),complete:()=>{}});return i.subscribe(e).getFinalize()})}var hp=class extends Wl{archive=new Bo;archive$;defaultValue=Xe.empty();constructor(t){super(),this.archive$=Gl.of(),t!=null&&(this.defaultValue=Xe.of(t))}on(t){return this.tryToInitDefault(t),this.archive$.toObservable().pipe(ye(()=>this.isNotStopped()),P(e=>e.find(t)),ye(e=>e.isPresent()),P(e=>e.getValueOrNullOrThrowError()),ti(this.equals),this.hermesTakeUntil())}once(t){return Sr(this.on(t))}find(t){return this.tryToInitDefault(t),this.archive.find(t)}next(t,e){this.archive.set(t,e),this.archive$.next(this.archive)}equals(t,e){return t===e}createDefaultValue(t){return t}tryToInitDefault(t){this.defaultValue.ifPresent(e=>{this.archive.has(t)||this.next(t,e)})}},Fe=class extends hp{constructor(t){super(t)}},bi=class extends Fe{constructor(t){super(t)}handle(t){this.next(t.getAggregateId(),t.getPayload())}},ql=class{entityId;constructor(t){this.entityId=t}getId(){return this.entityId}},Yl=class{uid;constructor(t){this.uid=t}toString(){return this.uid}getId(){return this.uid}equals(t){return this.uid===t.getId()}},va=class{rootId;constructor(t){this.rootId=t}getId(){return this.rootId}},wr=class{uid;constructor(t){this.uid=t}toString(){return this.uid}getId(){return this.uid}equals(t){return this.uid===t.getId()}},Ql=class extends vt{domainEventBus=y.resolve(ei);constructor(){super(),this.domainEventBus.ofEvents(this.forEvents()).pipe(this.hermesTakeUntil()).subscribe(t=>{try{this.subscribe(t)}catch(e){console.error(e)}})}},gp=class{},Fi=class extends Wl{domainEventBus=y.resolve(ei);constructor(){super()}onEvent(t,e){return this.domainEventBus.ofEvents([e]).pipe(ye(n=>n.getAggregateId().toString()===t.toString()))}},Cr=class{entityId;constructor(t){this.entityId=t}getId(){return this.entityId}equals(t){return this.entityId.equals(t.getId())}},Xi=class extends _r{};function xp(i){}function ed(i){}var st=class{};function _p(i){return new ot(t=>{let e=setTimeout(()=>{t.next(0)},i);return()=>{clearTimeout(e),t.complete()}})}function ya(i,t){return new ot(e=>{let n=r=>{e.next(r)};return i.addEventListener(t,n),()=>{i.removeEventListener(t,n)}})}function Ht(i){return t=>new ot(e=>{let n=!1,r=null,o=function(){n&&!r&&e.complete()},s=Zl(e,a=>{r&&r.unsubscribe();let l=new Dt({next:p=>e.next(p),error:p=>e.error(p),complete:()=>{r=null,o()}});return r=l,i(a).subscribe(l).getFinalize()},()=>{n=!0,o()});return t.subscribe(s).getFinalize()})}function Mn(i){return new ot(t=>{let e=i.subscribe(n=>t.next(n),n=>t.error(n),()=>t.complete());return()=>e.unsubscribe()})}var Bt=class{archive$;constructor(t){this.archive$=Gl.of(t)}on(){return this.archive$.toObservable().pipe(ti(this.compare))}next(t){this.archive$.next(t)}compare(t,e){return t===e}},xw=(()=>{class i{static index=0;static generate(){return i.index++,i.index}}return i})();var Ir=class extends lp{inMemoryStore;aggregateStoreRegister=y.resolve(ba);constructor(t){super(),this.inMemoryStore=t,this.aggregateStoreRegister.register(this)}save(t){if(Array.isArray(t))t.forEach(e=>{this.inMemoryStore.set(e)});else{let e=t;this.inMemoryStore.set(e)}}findById(t){let e=this.inMemoryStore.get(t);return e.ifPresent(n=>n.clearEvents()),e}remove(t){this.inMemoryStore.delete(t)}},xa=class extends gp{inMemoryStore;constructor(t){super(),this.inMemoryStore=t}getById(t){return this.getValue(t)}getValue(t){return this.inMemoryStore.get(t).map(this.toReadModel.bind(this))}},kr=class{state=new Map;set(t){this.state.set(t.getId().toString(),t)}setMany(t){t.forEach(e=>{this.set(e)})}get(t){return Xe.of(this.state.get(t.toString()))}getAll(){return Array.from(this.state.values()).map(t=>Xe.of(t))}has(t){return this.state.has(t.toString())}delete(t){this.state.delete(t.toString())}clear(){this.state.clear()}};var _a=class extends Dn{constructor(t,e){super(t,e)}},hw="hermesApi";function _w(){let i=y.resolve(Lo),t=y.resolve(zo),e=()=>({set loggers(n){},set domain(n){n&&(i.setDomain(n),t.setDomain(n))}});window[hw]=e(),window[hw].loggers=!1}function ZS(i,t){return new pp(i,t)}var pp=class{createAggregateCommandHandler;aggregateType;aggregateFactoryArchive=y.resolve(jo);aggregateRepositoryArchive=y.resolve(Vo);domainEventPublisher=y.resolve(_e);commandType;constructor(t,e){this.createAggregateCommandHandler=t,this.aggregateType=e,this.commandType=this.createCommandInstance().getMessageType()}handleCommand(t){let e=t.getAggregateId();this.aggregateFactoryArchive.get(this.aggregateType).ifPresent(r=>{let o=r.create(e),s=o.getType(),a=o.createEvent(),l=new a(e,s);o.addEvent(l),this.aggregateRepositoryArchive.get(this.aggregateType).ifPresent(p=>{p.save(o),this.domainEventPublisher.publishFromAggregate(o)})})}forCommand(t){return this.commandType===t.getMessageType()}createCommandInstance(){let t=[],e=this.createAggregateCommandHandler.forCommand().constructor.length;if(t.fill(void 0,0,e),t.length===0)return new(this.createAggregateCommandHandler.forCommand());if(t.length===1)return new(this.createAggregateCommandHandler.forCommand())(t[0]);if(t.length===2)return new(this.createAggregateCommandHandler.forCommand())(t[0],t[1]);if(t.length===3)return new(this.createAggregateCommandHandler.forCommand())(t[0],t[1],t[2]);if(t.length===4)return new(this.createAggregateCommandHandler.forCommand())(t[0],t[1],t[2],t[3]);if(t.length===5)return new(this.createAggregateCommandHandler.forCommand())(t[0],t[1],t[2],t[3],t[4]);throw new Error("CreateAggregateCommandHandlerImpl constructor out of arguments")}};function XS(i,t){return new fp(i,t)}var fp=class{commandHandler;aggregateType;aggregateRepositoryArchive=y.resolve(Vo);domainEventPublisher=y.resolve(_e);commandType;constructor(t,e){this.commandHandler=t,this.aggregateType=e,this.commandType=this.createCommandInstance().getMessageType()}publishDomainEvents(t,e){this.commandHandler.publish?this.commandHandler.publish(t,e):this.domainEventPublisher.publishFromAggregate(t)}handleCommand(t){let e=t.getAggregateId();this.aggregateRepositoryArchive.get(this.aggregateType).ifPresent(r=>{r.findById(e).ifPresent(s=>{this.commandHandler.handle(s,t),this.publishDomainEvents(s,t)})})}forCommand(t){return this.commandType===t.getMessageType()}createCommandInstance(){let t=[],e=this.commandHandler.forCommand().constructor.length;if(t.fill(void 0,0,e),t.length===0)return new(this.commandHandler.forCommand());if(t.length===1)return new(this.commandHandler.forCommand())(t[0]);if(t.length===2)return new(this.commandHandler.forCommand())(t[0],t[1]);if(t.length===3)return new(this.commandHandler.forCommand())(t[0],t[1],t[2]);if(t.length===4)return new(this.commandHandler.forCommand())(t[0],t[1],t[2],t[3]);if(t.length===5)return new(this.commandHandler.forCommand())(t[0],t[1],t[2],t[3],t[4]);throw new Error("CommandHandlerImpl constructor out of arguments")}};function JS(i){return new Kl(i,[i.forEvent()])}function eD(i){return new Kl(i,i.forEvents())}var Kl=class{domainEventHandler;events;eventTypes;constructor(t,e){this.domainEventHandler=t,this.events=e,this.eventTypes=this.createDomainEventTypes()}handleEvent(t){this.domainEventHandler.handle(t)}forEvents(t){return t.some(e=>this.eventTypes.some(n=>n===e.getMessageType()))}createDomainEventTypes(){let t=[];for(let e of this.events){let n=this.createDomainEventInstance(e);t.push(n.getMessageType())}return t}createDomainEventInstance(t){let e=[],n=t.constructor.length;if(e.fill(void 0,0,n),e.length===0)return new t;if(e.length===1)return new t(e[0]);if(e.length===2)return new t(e[0],e[1]);if(e.length===3)return new t(e[0],e[1],e[2]);if(e.length===4)return new t(e[0],e[1],e[2],e[3]);if(e.length===5)return new t(e[0],e[1],e[2],e[3],e[4]);throw new Error("DomainEventHandler constructor out of arguments")}},wt=class{api;domain;container=y;initialized=!1;constructor(t,e){this.api=t,this.domain=e}init(){this.initialized||(this.defineAggregate(),this.registerApiProviders(),this.registerDomainProviders(),this.registerCommandHandlers(),this.registerEventHandlers(),this.registerMultiEventHandlers(),this.initialized=!0)}defineAggregate(){let t=this.domain.defineAggregate();t&&(this.container.provide(t.factory),this.container.provide(t.repository),this.container.provideValue(t.aggregateKey,t.aggregateKey),this.container.provideValueCollection(gw,{key:t.aggregateKey,factory:t.factory,repository:t.repository}),this.container.provide(t.createCommandHandler),this.container.provideFactoryCollection(pw,{create:ZS,deps:[t.createCommandHandler,t.aggregateKey]}))}registerApiProviders(){this.api.registerProviders(this.container)}registerDomainProviders(){this.domain.registerProviders(this.container)}registerCommandHandlers(){this.domain.registerCommandHandlers().forEach(t=>{this.container.provide(t),this.container.provideFactoryCollection(fw,{create:XS,deps:[t,this.domain.registerKey(this.container)]})})}registerEventHandlers(){this.domain.registerDomainEventHandler().forEach(t=>{this.container.provide(t),this.container.provideFactoryCollection(cp,{create:JS,deps:[t]})})}registerMultiEventHandlers(){this.domain.registerMultiDomainEventHandler().forEach(t=>{this.container.provide(t),this.container.provideFactoryCollection(cp,{create:eD,deps:[t]})})}};var Dw=(()=>{let t=class t{constructor(n,r){this._renderer=n,this._elementRef=r,this.onChange=o=>{},this.onTouched=()=>{}}setProperty(n,r){this._renderer.setProperty(this._elementRef.nativeElement,n,r)}registerOnTouched(n){this.onTouched=n}registerOnChange(n){this.onChange=n}setDisabledState(n){this.setProperty("disabled",n)}};t.\u0275fac=function(r){return new(r||t)(c(We),c(x))},t.\u0275dir=N({type:t});let i=t;return i})(),Tw=(()=>{let t=class t extends Dw{};t.\u0275fac=(()=>{let n;return function(o){return(n||(n=ze(t)))(o||t)}})(),t.\u0275dir=N({type:t,features:[C]});let i=t;return i})(),kp=new K("");var tD={provide:kp,useExisting:pi(()=>ii),multi:!0};function iD(){let i=lr()?lr().getUserAgent():"";return/android (\d+)/.test(i.toLowerCase())}var nD=new K(""),ii=(()=>{let t=class t extends Dw{constructor(n,r,o){super(n,r),this._compositionMode=o,this._composing=!1,this._compositionMode==null&&(this._compositionMode=!iD())}writeValue(n){let r=n??"";this.setProperty("value",r)}_handleInput(n){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(n)}_compositionStart(){this._composing=!0}_compositionEnd(n){this._composing=!1,this._compositionMode&&this.onChange(n)}};t.\u0275fac=function(r){return new(r||t)(c(We),c(x),c(nD,8))},t.\u0275dir=N({type:t,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(r,o){r&1&&F("input",function(a){return o._handleInput(a.target.value)})("blur",function(){return o.onTouched()})("compositionstart",function(){return o._compositionStart()})("compositionend",function(a){return o._compositionEnd(a.target.value)})},features:[ge([tD]),C]});let i=t;return i})();function Fn(i){return i==null||(typeof i=="string"||Array.isArray(i))&&i.length===0}function Mw(i){return i!=null&&typeof i.length=="number"}var ld=new K(""),Ep=new K(""),rD=/^(?=.{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])?)*$/,Dr=class{static min(t){return oD(t)}static max(t){return sD(t)}static required(t){return aD(t)}static requiredTrue(t){return cD(t)}static email(t){return lD(t)}static minLength(t){return dD(t)}static maxLength(t){return Fw(t)}static pattern(t){return uD(t)}static nullValidator(t){return nd(t)}static compose(t){return jw(t)}static composeAsync(t){return Vw(t)}};function oD(i){return t=>{if(Fn(t.value)||Fn(i))return null;let e=parseFloat(t.value);return!isNaN(e)&&e<i?{min:{min:i,actual:t.value}}:null}}function sD(i){return t=>{if(Fn(t.value)||Fn(i))return null;let e=parseFloat(t.value);return!isNaN(e)&&e>i?{max:{max:i,actual:t.value}}:null}}function aD(i){return Fn(i.value)?{required:!0}:null}function cD(i){return i.value===!0?null:{required:!0}}function lD(i){return Fn(i.value)||rD.test(i.value)?null:{email:!0}}function dD(i){return t=>Fn(t.value)||!Mw(t.value)?null:t.value.length<i?{minlength:{requiredLength:i,actualLength:t.value.length}}:null}function Fw(i){return t=>Mw(t.value)&&t.value.length>i?{maxlength:{requiredLength:i,actualLength:t.value.length}}:null}function uD(i){if(!i)return nd;let t,e;return typeof i=="string"?(e="",i.charAt(0)!=="^"&&(e+="^"),e+=i,i.charAt(i.length-1)!=="$"&&(e+="$"),t=new RegExp(e)):(e=i.toString(),t=i),n=>{if(Fn(n.value))return null;let r=n.value;return t.test(r)?null:{pattern:{requiredPattern:e,actualValue:r}}}}function nd(i){return null}function Rw(i){return i!=null}function Aw(i){return al(i)?Ct(i):i}function Ow(i){let t={};return i.forEach(e=>{t=e!=null?V(V({},t),e):t}),Object.keys(t).length===0?null:t}function Pw(i,t){return t.map(e=>e(i))}function mD(i){return!i.validate}function Nw(i){return i.map(t=>mD(t)?t:e=>t.validate(e))}function jw(i){if(!i)return null;let t=i.filter(Rw);return t.length==0?null:function(e){return Ow(Pw(e,t))}}function Sp(i){return i!=null?jw(Nw(i)):null}function Vw(i){if(!i)return null;let t=i.filter(Rw);return t.length==0?null:function(e){let n=Pw(e,t).map(Aw);return Kc(n).pipe(le(Ow))}}function Dp(i){return i!=null?Vw(Nw(i)):null}function yw(i,t){return i===null?[t]:Array.isArray(i)?[...i,t]:[i,t]}function Lw(i){return i._rawValidators}function zw(i){return i._rawAsyncValidators}function yp(i){return i?Array.isArray(i)?i:[i]:[]}function rd(i,t){return Array.isArray(i)?i.includes(t):i===t}function ww(i,t){let e=yp(t);return yp(i).forEach(r=>{rd(e,r)||e.push(r)}),e}function Cw(i,t){return yp(t).filter(e=>!rd(i,e))}var od=class{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(t){this._rawValidators=t||[],this._composedValidatorFn=Sp(this._rawValidators)}_setAsyncValidators(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=Dp(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(t){this._onDestroyCallbacks.push(t)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(t=>t()),this._onDestroyCallbacks=[]}reset(t=void 0){this.control&&this.control.reset(t)}hasError(t,e){return this.control?this.control.hasError(t,e):!1}getError(t,e){return this.control?this.control.getError(t,e):null}},Rn=class extends od{get formDirective(){return null}get path(){return null}},Tr=class extends od{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}},sd=class{constructor(t){this._cd=t}get isTouched(){return!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return!!this._cd?.submitted}},hD={"[class.ng-untouched]":"isUntouched","[class.ng-touched]":"isTouched","[class.ng-pristine]":"isPristine","[class.ng-dirty]":"isDirty","[class.ng-valid]":"isValid","[class.ng-invalid]":"isInvalid","[class.ng-pending]":"isPending"},Gj=Be(V({},hD),{"[class.ng-submitted]":"isSubmitted"}),Ri=(()=>{let t=class t extends sd{constructor(n){super(n)}};t.\u0275fac=function(r){return new(r||t)(c(Tr,2))},t.\u0275dir=N({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(r,o){r&2&&U("ng-untouched",o.isUntouched)("ng-touched",o.isTouched)("ng-pristine",o.isPristine)("ng-dirty",o.isDirty)("ng-valid",o.isValid)("ng-invalid",o.isInvalid)("ng-pending",o.isPending)},features:[C]});let i=t;return i})(),Ai=(()=>{let t=class t extends sd{constructor(n){super(n)}};t.\u0275fac=function(r){return new(r||t)(c(Rn,10))},t.\u0275dir=N({type:t,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(r,o){r&2&&U("ng-untouched",o.isUntouched)("ng-touched",o.isTouched)("ng-pristine",o.isPristine)("ng-dirty",o.isDirty)("ng-valid",o.isValid)("ng-invalid",o.isInvalid)("ng-pending",o.isPending)("ng-submitted",o.isSubmitted)},features:[C]});let i=t;return i})();var wa="VALID",td="INVALID",Ho="PENDING",Ca="DISABLED";function Tp(i){return(dd(i)?i.validators:i)||null}function gD(i){return Array.isArray(i)?Sp(i):i||null}function Mp(i,t){return(dd(t)?t.asyncValidators:i)||null}function pD(i){return Array.isArray(i)?Dp(i):i||null}function dd(i){return i!=null&&!Array.isArray(i)&&typeof i=="object"}function Bw(i,t,e){let n=i.controls;if(!(t?Object.keys(n):n).length)throw new Me(1e3,"");if(!n[e])throw new Me(1001,"")}function Hw(i,t,e){i._forEachChild((n,r)=>{if(e[r]===void 0)throw new Me(1002,"")})}var $o=class{constructor(t,e){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._assignValidators(t),this._assignAsyncValidators(e)}get validator(){return this._composedValidatorFn}set validator(t){this._rawValidators=this._composedValidatorFn=t}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(t){this._rawAsyncValidators=this._composedAsyncValidatorFn=t}get parent(){return this._parent}get valid(){return this.status===wa}get invalid(){return this.status===td}get pending(){return this.status==Ho}get disabled(){return this.status===Ca}get enabled(){return this.status!==Ca}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(t){this._assignValidators(t)}setAsyncValidators(t){this._assignAsyncValidators(t)}addValidators(t){this.setValidators(ww(t,this._rawValidators))}addAsyncValidators(t){this.setAsyncValidators(ww(t,this._rawAsyncValidators))}removeValidators(t){this.setValidators(Cw(t,this._rawValidators))}removeAsyncValidators(t){this.setAsyncValidators(Cw(t,this._rawAsyncValidators))}hasValidator(t){return rd(this._rawValidators,t)}hasAsyncValidator(t){return rd(this._rawAsyncValidators,t)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(t={}){this.touched=!0,this._parent&&!t.onlySelf&&this._parent.markAsTouched(t)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(t=>t.markAllAsTouched())}markAsUntouched(t={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(e=>{e.markAsUntouched({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}markAsDirty(t={}){this.pristine=!1,this._parent&&!t.onlySelf&&this._parent.markAsDirty(t)}markAsPristine(t={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(e=>{e.markAsPristine({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}markAsPending(t={}){this.status=Ho,t.emitEvent!==!1&&this.statusChanges.emit(this.status),this._parent&&!t.onlySelf&&this._parent.markAsPending(t)}disable(t={}){let e=this._parentMarkedDirty(t.onlySelf);this.status=Ca,this.errors=null,this._forEachChild(n=>{n.disable(Be(V({},t),{onlySelf:!0}))}),this._updateValue(),t.emitEvent!==!1&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Be(V({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach(n=>n(!0))}enable(t={}){let e=this._parentMarkedDirty(t.onlySelf);this.status=wa,this._forEachChild(n=>{n.enable(Be(V({},t),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(Be(V({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach(n=>n(!1))}_updateAncestors(t){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(t){this._parent=t}getRawValue(){return this.value}updateValueAndValidity(t={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===wa||this.status===Ho)&&this._runAsyncValidator(t.emitEvent)),t.emitEvent!==!1&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(t)}_updateTreeValidity(t={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(t)),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Ca:wa}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t){if(this.asyncValidator){this.status=Ho,this._hasOwnPendingAsyncValidator=!0;let e=Aw(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(n=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(n,{emitEvent:t})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(t,e={}){this.errors=t,this._updateControlsErrors(e.emitEvent!==!1)}get(t){let e=t;return e==null||(Array.isArray(e)||(e=e.split(".")),e.length===0)?null:e.reduce((n,r)=>n&&n._find(r),this)}getError(t,e){let n=e?this.get(e):this;return n&&n.errors?n.errors[t]:null}hasError(t,e){return!!this.getError(t,e)}get root(){let t=this;for(;t._parent;)t=t._parent;return t}_updateControlsErrors(t){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(t)}_initObservables(){this.valueChanges=new W,this.statusChanges=new W}_calculateStatus(){return this._allControlsDisabled()?Ca:this.errors?td:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Ho)?Ho:this._anyControlsHaveStatus(td)?td:wa}_anyControlsHaveStatus(t){return this._anyControls(e=>e.status===t)}_anyControlsDirty(){return this._anyControls(t=>t.dirty)}_anyControlsTouched(){return this._anyControls(t=>t.touched)}_updatePristine(t={}){this.pristine=!this._anyControlsDirty(),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}_updateTouched(t={}){this.touched=this._anyControlsTouched(),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}_registerOnCollectionChange(t){this._onCollectionChange=t}_setUpdateStrategy(t){dd(t)&&t.updateOn!=null&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){let e=this._parent&&this._parent.dirty;return!t&&!!e&&!this._parent._anyControlsDirty()}_find(t){return null}_assignValidators(t){this._rawValidators=Array.isArray(t)?t.slice():t,this._composedValidatorFn=gD(this._rawValidators)}_assignAsyncValidators(t){this._rawAsyncValidators=Array.isArray(t)?t.slice():t,this._composedAsyncValidatorFn=pD(this._rawAsyncValidators)}},Uo=class extends $o{constructor(t,e,n){super(Tp(e),Mp(n,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(t,e){return this.controls[t]?this.controls[t]:(this.controls[t]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(t,e,n={}){this.registerControl(t,e),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}removeControl(t,e={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(t,e,n={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],e&&this.registerControl(t,e),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}contains(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled}setValue(t,e={}){Hw(this,!0,t),Object.keys(t).forEach(n=>{Bw(this,!0,n),this.controls[n].setValue(t[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){t!=null&&(Object.keys(t).forEach(n=>{let r=this.controls[n];r&&r.patchValue(t[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(t={},e={}){this._forEachChild((n,r)=>{n.reset(t?t[r]:null,{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(t,e,n)=>(t[n]=e.getRawValue(),t))}_syncPendingControls(){let t=this._reduceChildren(!1,(e,n)=>n._syncPendingControls()?!0:e);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_forEachChild(t){Object.keys(this.controls).forEach(e=>{let n=this.controls[e];n&&t(n,e)})}_setUpControls(){this._forEachChild(t=>{t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(t){for(let[e,n]of Object.entries(this.controls))if(this.contains(e)&&t(n))return!0;return!1}_reduceValue(){let t={};return this._reduceChildren(t,(e,n,r)=>((n.enabled||this.disabled)&&(e[r]=n.value),e))}_reduceChildren(t,e){let n=t;return this._forEachChild((r,o)=>{n=e(n,r,o)}),n}_allControlsDisabled(){for(let t of Object.keys(this.controls))if(this.controls[t].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(t){return this.controls.hasOwnProperty(t)?this.controls[t]:null}};var wp=class extends Uo{};var Fp=new K("CallSetDisabledState",{providedIn:"root",factory:()=>Rp}),Rp="always";function fD(i,t){return[...t.path,i]}function Cp(i,t,e=Rp){Ap(i,t),t.valueAccessor.writeValue(i.value),(i.disabled||e==="always")&&t.valueAccessor.setDisabledState?.(i.disabled),vD(i,t),_D(i,t),xD(i,t),bD(i,t)}function Iw(i,t,e=!0){let n=()=>{};t.valueAccessor&&(t.valueAccessor.registerOnChange(n),t.valueAccessor.registerOnTouched(n)),cd(i,t),i&&(t._invokeOnDestroyCallbacks(),i._registerOnCollectionChange(()=>{}))}function ad(i,t){i.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(t)})}function bD(i,t){if(t.valueAccessor.setDisabledState){let e=n=>{t.valueAccessor.setDisabledState(n)};i.registerOnDisabledChange(e),t._registerOnDestroy(()=>{i._unregisterOnDisabledChange(e)})}}function Ap(i,t){let e=Lw(i);t.validator!==null?i.setValidators(yw(e,t.validator)):typeof e=="function"&&i.setValidators([e]);let n=zw(i);t.asyncValidator!==null?i.setAsyncValidators(yw(n,t.asyncValidator)):typeof n=="function"&&i.setAsyncValidators([n]);let r=()=>i.updateValueAndValidity();ad(t._rawValidators,r),ad(t._rawAsyncValidators,r)}function cd(i,t){let e=!1;if(i!==null){if(t.validator!==null){let r=Lw(i);if(Array.isArray(r)&&r.length>0){let o=r.filter(s=>s!==t.validator);o.length!==r.length&&(e=!0,i.setValidators(o))}}if(t.asyncValidator!==null){let r=zw(i);if(Array.isArray(r)&&r.length>0){let o=r.filter(s=>s!==t.asyncValidator);o.length!==r.length&&(e=!0,i.setAsyncValidators(o))}}}let n=()=>{};return ad(t._rawValidators,n),ad(t._rawAsyncValidators,n),e}function vD(i,t){t.valueAccessor.registerOnChange(e=>{i._pendingValue=e,i._pendingChange=!0,i._pendingDirty=!0,i.updateOn==="change"&&$w(i,t)})}function xD(i,t){t.valueAccessor.registerOnTouched(()=>{i._pendingTouched=!0,i.updateOn==="blur"&&i._pendingChange&&$w(i,t),i.updateOn!=="submit"&&i.markAsTouched()})}function $w(i,t){i._pendingDirty&&i.markAsDirty(),i.setValue(i._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(i._pendingValue),i._pendingChange=!1}function _D(i,t){let e=(n,r)=>{t.valueAccessor.writeValue(n),r&&t.viewToModelUpdate(n)};i.registerOnChange(e),t._registerOnDestroy(()=>{i._unregisterOnChange(e)})}function Uw(i,t){i==null,Ap(i,t)}function yD(i,t){return cd(i,t)}function wD(i,t){if(!i.hasOwnProperty("model"))return!1;let e=i.model;return e.isFirstChange()?!0:!Object.is(t,e.currentValue)}function CD(i){return Object.getPrototypeOf(i.constructor)===Tw}function Ww(i,t){i._syncPendingControls(),t.forEach(e=>{let n=e.control;n.updateOn==="submit"&&n._pendingChange&&(e.viewToModelUpdate(n._pendingValue),n._pendingChange=!1)})}function ID(i,t){if(!t)return null;Array.isArray(t);let e,n,r;return t.forEach(o=>{o.constructor===ii?e=o:CD(o)?n=o:r=o}),r||n||e||null}function kD(i,t){let e=i.indexOf(t);e>-1&&i.splice(e,1)}var ED={provide:Rn,useExisting:pi(()=>Op)},Ia=Promise.resolve(),Op=(()=>{let t=class t extends Rn{constructor(n,r,o){super(),this.callSetDisabledState=o,this.submitted=!1,this._directives=new Set,this.ngSubmit=new W,this.form=new Uo({},Sp(n),Dp(r))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(n){Ia.then(()=>{let r=this._findContainer(n.path);n.control=r.registerControl(n.name,n.control),Cp(n.control,n,this.callSetDisabledState),n.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(n)})}getControl(n){return this.form.get(n.path)}removeControl(n){Ia.then(()=>{let r=this._findContainer(n.path);r&&r.removeControl(n.name),this._directives.delete(n)})}addFormGroup(n){Ia.then(()=>{let r=this._findContainer(n.path),o=new Uo({});Uw(o,n),r.registerControl(n.name,o),o.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(n){Ia.then(()=>{let r=this._findContainer(n.path);r&&r.removeControl(n.name)})}getFormGroup(n){return this.form.get(n.path)}updateModel(n,r){Ia.then(()=>{this.form.get(n.path).setValue(r)})}setValue(n){this.control.setValue(n)}onSubmit(n){return this.submitted=!0,Ww(this.form,this._directives),this.ngSubmit.emit(n),n?.target?.method==="dialog"}onReset(){this.resetForm()}resetForm(n=void 0){this.form.reset(n),this.submitted=!1}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.form._updateOn=this.options.updateOn)}_findContainer(n){return n.pop(),n.length?this.form.get(n):this.form}};t.\u0275fac=function(r){return new(r||t)(c(ld,10),c(Ep,10),c(Fp,8))},t.\u0275dir=N({type:t,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(r,o){r&1&&F("submit",function(a){return o.onSubmit(a)})("reset",function(){return o.onReset()})},inputs:{options:[we.None,"ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[ge([ED]),C]});let i=t;return i})();function kw(i,t){let e=i.indexOf(t);e>-1&&i.splice(e,1)}function Ew(i){return typeof i=="object"&&i!==null&&Object.keys(i).length===2&&"value"in i&&"disabled"in i}var id=class extends $o{constructor(t=null,e,n){super(Tp(e),Mp(n,e)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(t),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),dd(e)&&(e.nonNullable||e.initialValueIsDefault)&&(Ew(t)?this.defaultValue=t.value:this.defaultValue=t)}setValue(t,e={}){this.value=this._pendingValue=t,this._onChange.length&&e.emitModelToViewChange!==!1&&this._onChange.forEach(n=>n(this.value,e.emitViewToModelChange!==!1)),this.updateValueAndValidity(e)}patchValue(t,e={}){this.setValue(t,e)}reset(t=this.defaultValue,e={}){this._applyFormState(t),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(t){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(t){this._onChange.push(t)}_unregisterOnChange(t){kw(this._onChange,t)}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_unregisterOnDisabledChange(t){kw(this._onDisabledChange,t)}_forEachChild(t){}_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(t){Ew(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t}};var SD=i=>i instanceof id;var Oi=(()=>{let t=class t{};t.\u0275fac=function(r){return new(r||t)},t.\u0275dir=N({type:t,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]});let i=t;return i})(),DD={provide:kp,useExisting:pi(()=>ka),multi:!0},ka=(()=>{let t=class t extends Tw{writeValue(n){let r=n??"";this.setProperty("value",r)}registerOnChange(n){this.onChange=r=>{n(r==""?null:parseFloat(r))}}};t.\u0275fac=(()=>{let n;return function(o){return(n||(n=ze(t)))(o||t)}})(),t.\u0275dir=N({type:t,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(r,o){r&1&&F("input",function(a){return o.onChange(a.target.value)})("blur",function(){return o.onTouched()})},features:[ge([DD]),C]});let i=t;return i})();var Gw=new K("");var TD={provide:Rn,useExisting:pi(()=>$t)},$t=(()=>{let t=class t extends Rn{constructor(n,r,o){super(),this.callSetDisabledState=o,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new W,this._setValidators(n),this._setAsyncValidators(r)}ngOnChanges(n){this._checkFormPresent(),n.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(cd(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(n){let r=this.form.get(n.path);return Cp(r,n,this.callSetDisabledState),r.updateValueAndValidity({emitEvent:!1}),this.directives.push(n),r}getControl(n){return this.form.get(n.path)}removeControl(n){Iw(n.control||null,n,!1),kD(this.directives,n)}addFormGroup(n){this._setUpFormContainer(n)}removeFormGroup(n){this._cleanUpFormContainer(n)}getFormGroup(n){return this.form.get(n.path)}addFormArray(n){this._setUpFormContainer(n)}removeFormArray(n){this._cleanUpFormContainer(n)}getFormArray(n){return this.form.get(n.path)}updateModel(n,r){this.form.get(n.path).setValue(r)}onSubmit(n){return this.submitted=!0,Ww(this.form,this.directives),this.ngSubmit.emit(n),n?.target?.method==="dialog"}onReset(){this.resetForm()}resetForm(n=void 0){this.form.reset(n),this.submitted=!1}_updateDomValue(){this.directives.forEach(n=>{let r=n.control,o=this.form.get(n.path);r!==o&&(Iw(r||null,n),SD(o)&&(Cp(o,n,this.callSetDisabledState),n.control=o))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(n){let r=this.form.get(n.path);Uw(r,n),r.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(n){if(this.form){let r=this.form.get(n.path);r&&yD(r,n)&&r.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){Ap(this.form,this),this._oldForm&&cd(this._oldForm,this)}_checkFormPresent(){this.form}};t.\u0275fac=function(r){return new(r||t)(c(ld,10),c(Ep,10),c(Fp,8))},t.\u0275dir=N({type:t,selectors:[["","formGroup",""]],hostBindings:function(r,o){r&1&&F("submit",function(a){return o.onSubmit(a)})("reset",function(){return o.onReset()})},inputs:{form:[we.None,"formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[ge([TD]),C,G]});let i=t;return i})();var MD={provide:Tr,useExisting:pi(()=>vi)},vi=(()=>{let t=class t extends Tr{set isDisabled(n){}constructor(n,r,o,s,a){super(),this._ngModelWarningConfig=a,this._added=!1,this.name=null,this.update=new W,this._ngModelWarningSent=!1,this._parent=n,this._setValidators(r),this._setAsyncValidators(o),this.valueAccessor=ID(this,s)}ngOnChanges(n){this._added||this._setUpControl(),wD(n,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(n){this.viewModel=n,this.update.emit(n)}get path(){return fD(this.name==null?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this._added=!0}};t._ngModelWarningSentOnce=!1,t.\u0275fac=function(r){return new(r||t)(c(Rn,13),c(ld,10),c(Ep,10),c(kp,10),c(Gw,8))},t.\u0275dir=N({type:t,selectors:[["","formControlName",""]],inputs:{name:[we.None,"formControlName","name"],isDisabled:[we.None,"disabled","isDisabled"],model:[we.None,"ngModel","model"]},outputs:{update:"ngModelChange"},features:[ge([MD]),C,G]});let i=t;return i})();function FD(i){return typeof i=="number"?i:parseInt(i,10)}var RD=(()=>{let t=class t{constructor(){this._validator=nd}ngOnChanges(n){if(this.inputName in n){let r=this.normalizeInput(n[this.inputName].currentValue);this._enabled=this.enabled(r),this._validator=this._enabled?this.createValidator(r):nd,this._onChange&&this._onChange()}}validate(n){return this._validator(n)}registerOnValidatorChange(n){this._onChange=n}enabled(n){return n!=null}};t.\u0275fac=function(r){return new(r||t)},t.\u0275dir=N({type:t,features:[G]});let i=t;return i})();var AD={provide:ld,useExisting:pi(()=>Pp),multi:!0},Pp=(()=>{let t=class t extends RD{constructor(){super(...arguments),this.inputName="maxlength",this.normalizeInput=n=>FD(n),this.createValidator=n=>Fw(n)}};t.\u0275fac=(()=>{let n;return function(o){return(n||(n=ze(t)))(o||t)}})(),t.\u0275dir=N({type:t,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(r,o){r&2&&De("maxlength",o._enabled?o.maxlength:null)},inputs:{maxlength:"maxlength"},features:[ge([AD]),C]});let i=t;return i})();var OD=(()=>{let t=class t{};t.\u0275fac=function(r){return new(r||t)},t.\u0275mod=M({type:t}),t.\u0275inj=T({});let i=t;return i})(),Ip=class extends $o{constructor(t,e,n){super(Tp(e),Mp(n,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(t){return this.controls[this._adjustIndex(t)]}push(t,e={}){this.controls.push(t),this._registerControl(t),this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}insert(t,e,n={}){this.controls.splice(t,0,e),this._registerControl(e),this.updateValueAndValidity({emitEvent:n.emitEvent})}removeAt(t,e={}){let n=this._adjustIndex(t);n<0&&(n=0),this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),this.controls.splice(n,1),this.updateValueAndValidity({emitEvent:e.emitEvent})}setControl(t,e,n={}){let r=this._adjustIndex(t);r<0&&(r=0),this.controls[r]&&this.controls[r]._registerOnCollectionChange(()=>{}),this.controls.splice(r,1),e&&(this.controls.splice(r,0,e),this._registerControl(e)),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(t,e={}){Hw(this,!1,t),t.forEach((n,r)=>{Bw(this,!1,r),this.at(r).setValue(n,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){t!=null&&(t.forEach((n,r)=>{this.at(r)&&this.at(r).patchValue(n,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(t=[],e={}){this._forEachChild((n,r)=>{n.reset(t[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this.controls.map(t=>t.getRawValue())}clear(t={}){this.controls.length<1||(this._forEachChild(e=>e._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:t.emitEvent}))}_adjustIndex(t){return t<0?t+this.length:t}_syncPendingControls(){let t=this.controls.reduce((e,n)=>n._syncPendingControls()?!0:e,!1);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_forEachChild(t){this.controls.forEach((e,n)=>{t(e,n)})}_updateValue(){this.value=this.controls.filter(t=>t.enabled||this.disabled).map(t=>t.value)}_anyControls(t){return this.controls.some(e=>e.enabled&&t(e))}_setUpControls(){this._forEachChild(t=>this._registerControl(t))}_allControlsDisabled(){for(let t of this.controls)if(t.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(t){t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)}_find(t){return this.at(t)??null}};function Sw(i){return!!i&&(i.asyncValidators!==void 0||i.validators!==void 0||i.updateOn!==void 0)}var xi=(()=>{let t=class t{constructor(){this.useNonNullable=!1}get nonNullable(){let n=new t;return n.useNonNullable=!0,n}group(n,r=null){let o=this._reduceControls(n),s={};return Sw(r)?s=r:r!==null&&(s.validators=r.validator,s.asyncValidators=r.asyncValidator),new Uo(o,s)}record(n,r=null){let o=this._reduceControls(n);return new wp(o,r)}control(n,r,o){let s={};return this.useNonNullable?(Sw(r)?s=r:(s.validators=r,s.asyncValidators=o),new id(n,Be(V({},s),{nonNullable:!0}))):new id(n,r,o)}array(n,r,o){let s=n.map(a=>this._createControl(a));return new Ip(s,r,o)}_reduceControls(n){let r={};return Object.keys(n).forEach(o=>{r[o]=this._createControl(n[o])}),r}_createControl(n){if(n instanceof id)return n;if(n instanceof $o)return n;if(Array.isArray(n)){let r=n[0],o=n.length>1?n[1]:null,s=n.length>2?n[2]:null;return this.control(r,o,s)}else return this.control(n)}};t.\u0275fac=function(r){return new(r||t)},t.\u0275prov=k({token:t,factory:t.\u0275fac,providedIn:"root"});let i=t;return i})();var Pi=(()=>{let t=class t{static withConfig(n){return{ngModule:t,providers:[{provide:Gw,useValue:n.warnOnNgModelWithFormControl??"always"},{provide:Fp,useValue:n.callSetDisabledState??Rp}]}}};t.\u0275fac=function(r){return new(r||t)},t.\u0275mod=M({type:t}),t.\u0275inj=T({imports:[OD]});let i=t;return i})();var rn=["*"],PD=["gui-button",""];var ND=["input"];function jD(i,t){if(i&1&&(h(0,"div"),S(1),g()),i&2){let e=t.$implicit;u(),xe(e)}}function VD(i,t){if(i&1){let e=Z();h(0,"div",6),F("click",function(){let r=R(e).$implicit,o=f(2);return A(o.selectDate(r))}),S(1),g()}if(i&2){let e=t.$implicit,n=f(2);U("gui-date-picker-current-day",n.isDate(n.currentDay,e))("gui-date-picker-selected-day",n.isDate(n.selectedDate,e))("gui-date-picker-selected-month",n.displayMonthDays(e.getMonth())),u(),oe(" ",e.getDate()," ")}}function LD(i,t){if(i&1&&(h(0,"div",4),D(1,VD,2,7,"div",5),g()),i&2){let e=t.$implicit;u(),m("ngForOf",e)}}function zD(i,t){if(i&1){let e=Z();h(0,"div",4),F("click",function(){let r=R(e).$implicit,o=f(2);return A(o.selectMonth(r.nr))}),S(1),g()}if(i&2){let e=t.$implicit,n=f(2);U("gui-date-picker-current-month",n.isMonth(n.currentDay,e.nr))("gui-date-picker-selected-month",n.isMonth(n.selectedDate,e.nr)),u(),oe(" ",e.name," ")}}function BD(i,t){if(i&1&&(h(0,"div",2),D(1,zD,2,5,"div",3),g()),i&2){let e=t.$implicit;u(),m("ngForOf",e)}}function HD(i,t){if(i&1){let e=Z();h(0,"div",4),F("click",function(){let r=R(e).$implicit,o=f(2);return A(o.selectYear(r))}),S(1),g()}if(i&2){let e=t.$implicit,n=f(2);U("gui-date-picker-current-year",n.isYear(n.currentDay,e))("gui-date-picker-selected-year",n.isYear(n.selectedDate,e)),u(),oe(" ",e," ")}}function $D(i,t){if(i&1&&(h(0,"div",2),D(1,HD,2,5,"div",3),g()),i&2){let e=t.$implicit;u(),m("ngForOf",e)}}var UD=["gui-input",""];function WD(i,t){if(i&1){let e=Z();h(0,"div",4)(1,"gui-arrow-icon",5),F("click",function(){R(e);let r=f();return A(r.changeTimeItem("hours",r.steps))}),g(),b(2,"input",6),h(3,"gui-arrow-icon",5),F("click",function(){R(e);let r=f();return A(r.changeTimeItem("hours",-r.steps))}),g()()}if(i&2){let e=f();u(),m("direction",e.Direction.TOP),u(2),m("direction",e.Direction.BOTTOM)}}function GD(i,t){if(i&1){let e=Z();h(0,"div",4)(1,"gui-arrow-icon",5),F("click",function(){R(e);let r=f();return A(r.changeTimeItem("minutes",r.steps))}),g(),b(2,"input",7),h(3,"gui-arrow-icon",5),F("click",function(){R(e);let r=f();return A(r.changeTimeItem("minutes",-r.steps))}),g()()}if(i&2){let e=f();u(),m("direction",e.Direction.TOP),u(2),m("direction",e.Direction.BOTTOM)}}function qD(i,t){if(i&1){let e=Z();h(0,"div",4)(1,"gui-arrow-icon",5),F("click",function(){R(e);let r=f();return A(r.changeTimeItem("seconds",r.steps))}),g(),b(2,"input",8),h(3,"gui-arrow-icon",5),F("click",function(){R(e);let r=f();return A(r.changeTimeItem("seconds",-r.steps))}),g()()}if(i&2){let e=f();u(),m("direction",e.Direction.TOP),u(2),m("direction",e.Direction.BOTTOM)}}function YD(i,t){if(i&1&&b(0,"gui-date-picker-days-view",7),i&2){let e=f(2);m("activeMonth",e.activeMonth)("selectedDate",e.selectedDate)("weeks",e.weeks)}}function QD(i,t){if(i&1&&b(0,"gui-date-picker-months-view",8),i&2){let e=f(2);m("activeYear",e.activeYear)("selectedDate",e.selectedDate)}}function KD(i,t){if(i&1&&b(0,"gui-date-picker-years-view",9),i&2){let e=f(2);m("selectedDate",e.selectedDate)("years",e.years)}}function ZD(i,t){if(i&1&&(pe(0),b(1,"gui-date-picker-view-panel",2),pe(2,3),D(3,YD,1,3,"gui-date-picker-days-view",4)(4,QD,1,2,"gui-date-picker-months-view",5)(5,KD,1,2,"gui-date-picker-years-view",6),fe()()),i&2){let e=f();u(),m("activeMonth",e.activeMonth)("activeYear",e.activeYear)("fabricCalendarView",e.fabricCalendarView)("selectedDate",e.selectedDate)("years",e.years),u(),m("ngSwitch",e.getCalendarView()),u(),m("ngSwitchCase",e.FabricCalendarView.DAYS),u(),m("ngSwitchCase",e.FabricCalendarView.MONTHS),u(),m("ngSwitchCase",e.FabricCalendarView.YEARS)}}function XD(i,t){if(i&1&&b(0,"gui-time-picker",10),i&2){let e=f();m("datePickerComposition",e.datePickerComposition)("selectedDate",e.selectedDate)}}var Sa=["container"];function JD(i,t){}var eT=["datePicker"];function tT(i,t){}var iT=["dropdownMenu"];function nT(i,t){if(i&1&&(h(0,"div"),b(1,"gui-arrow-icon",6),g()),i&2){let e=f();U("gui-dropdown-arrow",e.isArrowEnabled),u(),m("direction",e.arrowDirection)}}function rT(i,t){}var oT=["guiNotification"];function sT(i,t){if(i&1){let e=Z();h(0,"gui-notification",1),F("onNotificationClose",function(r){R(e);let o=f();return A(o.emitClosedNotification(r))}),g()}if(i&2){let e=t.$implicit;m("notification",e)}}function aT(i,t){if(i&1){let e=Z();h(0,"gui-notifications-container",1),F("onNotificationClose",function(r){R(e);let o=f();return A(o.removeNotification(r))}),g()}if(i&2){let e=f();m("notifications",e.notificationsTopRight)("position",e.FabricNotificationPosition.TOP_RIGHT)}}function cT(i,t){if(i&1){let e=Z();h(0,"gui-notifications-container",1),F("onNotificationClose",function(r){R(e);let o=f();return A(o.removeNotification(r))}),g()}if(i&2){let e=f();m("notifications",e.notificationsTopLeft)("position",e.FabricNotificationPosition.TOP_LEFT)}}function lT(i,t){if(i&1){let e=Z();h(0,"gui-notifications-container",1),F("onNotificationClose",function(r){R(e);let o=f();return A(o.removeNotification(r))}),g()}if(i&2){let e=f();m("notifications",e.notificationsBottomRight)("position",e.FabricNotificationPosition.BOTTOM_RIGHT)}}function dT(i,t){if(i&1){let e=Z();h(0,"gui-notifications-container",1),F("onNotificationClose",function(r){R(e);let o=f();return A(o.removeNotification(r))}),g()}if(i&2){let e=f();m("notifications",e.notificationsBottomLeft)("position",e.FabricNotificationPosition.BOTTOM_LEFT)}}var uT=["svgEl"],mT=["tab"],hT=["tabItem"],gT=["tabMenuList"];function pT(i,t){if(i&1){let e=Z();h(0,"div",8),F("click",function(){R(e);let r=f();return A(r.scrollTabList(!1))}),b(1,"gui-arrow-icon",9),g()}if(i&2){let e=f();u(),m("direction",e.Direction.LEFT)}}function fT(i,t){if(i&1&&(h(0,"span"),S(1),g()),i&2){let e=f().$implicit;u(),xe(e)}}function bT(i,t){if(i&1&&(pe(0),b(1,"gui-svg-template",12),fe()),i&2){let e=f().$implicit;u(),m("svg",e.svg)}}function vT(i,t){if(i&1){let e=Z();h(0,"div",10,2),F("click",function(){let r=R(e).$implicit,o=f();return A(o.toggleTab(r))}),D(2,fT,2,1,"span",11)(3,bT,2,1,"ng-container",11),g()}if(i&2){let e=t.$implicit,n=f();De("data-tab",n.getTabName(e)),u(2),m("ngIf",!n.isSvg(e)),u(),m("ngIf",n.isSvg(e))}}function xT(i,t){if(i&1){let e=Z();h(0,"div",8),F("click",function(){R(e);let r=f();return A(r.scrollTabList(!0))}),b(1,"gui-arrow-icon"),g()}}var _T=["optionList"];function yT(i,t){if(i&1){let e=Z();h(0,"div",3),F("click",function(){let r=R(e).$implicit,o=f();return A(o.selectOption(r))}),S(1),g()}if(i&2){let e=t.$implicit,n=f();Ae("width",n.width,"px"),U("gui-option-selected",n.isOptionSelected(e)),u(),oe(" ",n.getOptionValue(e)," ")}}var Ce=function(i){return i.FABRIC="FABRIC",i.MATERIAL="MATERIAL",i.GENERIC="GENERIC",i.LIGHT="LIGHT",i.DARK="DARK",i}(Ce||{}),iC=(()=>{class i{elementRef;renderer;static PRIMARY_CLASS_NAME="gui-primary";static SECONDARY_CLASS_NAME="gui-secondary";static OUTLINE_CLASS_NAME="gui-outline";primary=!1;secondary=!1;outline=!1;constructor(e,n){this.elementRef=e,this.renderer=n}ngOnChanges(e){e.primary&&(this.primary?this.addClass(i.PRIMARY_CLASS_NAME):this.removeClass(i.PRIMARY_CLASS_NAME)),e.secondary&&(this.secondary?this.addClass(i.SECONDARY_CLASS_NAME):this.removeClass(i.SECONDARY_CLASS_NAME)),e.outline&&(this.outline?this.addClass(i.OUTLINE_CLASS_NAME):this.removeClass(i.OUTLINE_CLASS_NAME))}addClass(e){this.renderer.addClass(this.elementRef.nativeElement,e)}removeClass(e){this.renderer.removeClass(this.elementRef.nativeElement,e)}static \u0275fac=function(n){return new(n||i)(c(x),c(We))};static \u0275dir=N({type:i,inputs:{primary:"primary",secondary:"secondary",outline:"outline"},features:[G]})}return i})();var Wo=(()=>{class i{static \u0275fac=function(n){return new(n||i)};static \u0275mod=M({type:i});static \u0275inj=T({imports:[q]})}return i})(),on=(()=>{class i extends iC{link=!1;text=!1;constructor(e,n){super(e,n)}ngOnChanges(e){super.ngOnChanges(e),e.link&&(this.link?this.addClass("gui-link"):this.removeClass("gui-link")),e.text&&(this.text?this.addClass("gui-text"):this.removeClass("gui-text"))}static \u0275fac=function(n){return new(n||i)(c(x),c(We))};static \u0275cmp=I({type:i,selectors:[["button","gui-button",""],["a","gui-button",""]],hostVars:2,hostBindings:function(n,r){n&2&&U("gui-button",!0)},inputs:{link:"link",text:"text"},features:[C,G],attrs:PD,ngContentSelectors:rn,decls:1,vars:0,template:function(n,r){n&1&&(Ne(),be(0))},styles:[`.gui-button{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-ms-flex-align:start;align-items:flex-start;background:#e6e6e6;border-radius:4px;border-style:none;box-sizing:border-box;color:#595959;cursor:pointer;display:inline-block;font-family:Arial;font-size:13.3333px;letter-spacing:normal;outline:none;padding:10px 20px;text-align:center;text-indent:0;text-rendering:auto;text-shadow:none;text-transform:none;transition:background .2s;word-spacing:normal;-ms-writing-mode:lr-tb!important;writing-mode:horizontal-tb!important}.gui-button.gui-outline:focus{box-shadow:0 0 0 2px #d6d6d6}.gui-button.gui-outline.gui-primary:focus{box-shadow:0 0 0 2px #439de1}.gui-button.gui-outline.gui-secondary:focus{box-shadow:0 0 0 2px #5ac88b}.gui-button.gui-primary{background:#2185d0;color:#fff}.gui-button.gui-primary.gui-outline{color:#2185d0}.gui-button.gui-primary:hover:not(.gui-chip,.gui-badge){background:#1e77ba}.gui-button.gui-primary:active{background:#1a69a4;color:#fff}.gui-button.gui-primary:disabled{background:#6fb4e8;color:#439de1}.gui-button.gui-primary.gui-badge{background:#439de1}.gui-button.gui-secondary{background:#3cb371;color:#fff}.gui-button.gui-secondary.gui-outline{color:#3cb371}.gui-button.gui-secondary.gui-button:hover{background:#36a065}.gui-button.gui-secondary.gui-button:active{background:#32945e;color:#fff}.gui-button.gui-secondary.gui-button:disabled{background:#80d5a6;color:#5ac88b}.gui-button.gui-secondary.gui-badge{background:#5ac88b}.gui-button.gui-link{background:transparent;border:0;color:#2185d0}.gui-button.gui-link:hover{background:none;color:#1e77ba;text-decoration:underline}.gui-button.gui-link:focus{text-decoration:underline}.gui-button.gui-outline{background:transparent;color:#999;border-color:#d6d6d6;border-style:solid;border-width:1px}.gui-button.gui-outline.gui-button:hover{background:#cccccc;color:#fff}.gui-button.gui-outline.gui-button:disabled{border-color:#ccc;color:#ccc}.gui-button.gui-outline.gui-badge{background:#fff}.gui-button.gui-outline.gui-primary{border-color:#439de1}.gui-button.gui-outline.gui-primary.gui-button:hover{background:#2185d0;border-color:#2185d0}.gui-button.gui-outline.gui-primary.gui-button:disabled{background:transparent;border-color:#6fb4e8;color:#6fb4e8}.gui-button.gui-outline.gui-primary.gui-badge{background:#fff;border-color:#439de1;color:#439de1}.gui-button.gui-outline.gui-secondary{border-color:#5ac88b}.gui-button.gui-outline.gui-secondary.gui-button:hover{background:#3cb371;border-color:#3cb371}.gui-button.gui-outline.gui-secondary.gui-button:disabled{background:transparent;border-color:#80d5a6;color:#80d5a6}.gui-button.gui-outline.gui-secondary.gui-badge{background:#fff;border-color:#5ac88b;color:#5ac88b}.gui-button.gui-text{background:transparent;border:0}.gui-button.gui-text:hover{background:#e6e6e6}.gui-button.gui-text:focus{background:#e6e6e6}.gui-button.gui-text.gui-primary{color:#2185d0}.gui-button.gui-text.gui-primary:hover{background:#2185d0;color:#fff}.gui-button.gui-text.gui-primary:focus{background:#2185d0;color:#fff}.gui-button.gui-text.gui-secondary{color:#3cb371}.gui-button.gui-text.gui-secondary:hover{background:#3cb371;color:#fff}.gui-button.gui-text.gui-secondary:focus{background:#3cb371;color:#fff}.gui-button.gui-text.gui-button:disabled{background:transparent}.gui-button.gui-text.gui-button:disabled .gui-text-disabled{display:inline-block}.gui-button:hover{background:#cccccc;color:#333}.gui-button:active{background:#999;color:#333}.gui-button:disabled{color:#ccc;cursor:default;pointer-events:none}
|
|
`,`.gui-dark .gui-button{background:#424242;color:#bdbdbd}.gui-dark .gui-button.gui-outline:focus{box-shadow:0 0 0 2px #616161}.gui-dark .gui-button.gui-outline.gui-primary:focus{box-shadow:0 0 0 2px #ce93d8}.gui-dark .gui-button.gui-outline.gui-secondary:focus{box-shadow:0 0 0 2px #80cbc4}.gui-dark .gui-button.gui-primary{background:#ce93d8;color:#212121}.gui-dark .gui-button.gui-primary.gui-outline{color:#ce93d8}.gui-dark .gui-button.gui-primary.gui-button:hover{background:#c680d1}.gui-dark .gui-button.gui-primary.gui-button:active{background:#b55bc4;color:#212121}.gui-dark .gui-button.gui-primary.gui-button:disabled{background:#ce93d8;color:#212121;opacity:.5}.gui-dark .gui-button.gui-primary.gui-badge{background:#dfb8e6}.gui-dark .gui-button.gui-secondary{background:#80cbc4;color:#212121}.gui-dark .gui-button.gui-secondary.gui-outline{color:#80cbc4}.gui-dark .gui-button.gui-secondary.gui-button:hover{background:#6ec4bc}.gui-dark .gui-button.gui-secondary.gui-button:active{background:#26a69a;color:#212121}.gui-dark .gui-button.gui-secondary.gui-button:disabled{background:#80cbc4;color:#212121;opacity:.5}.gui-dark .gui-button.gui-secondary.gui-badge{background:#a4dad5}.gui-dark .gui-button.gui-link{background:transparent;border:0;color:#2185d0}.gui-dark .gui-button.gui-link:hover{background:none;color:#1e77ba;text-decoration:underline}.gui-dark .gui-button.gui-link:focus{text-decoration:underline}.gui-dark .gui-button.gui-outline{background:transparent;color:#bdbdbd;border-color:#616161;border-style:solid;border-width:1px}.gui-dark .gui-button.gui-outline.gui-button:hover{background:#616161;color:#bdbdbd}.gui-dark .gui-button.gui-outline.gui-badge{background:#121212}.gui-dark .gui-button.gui-outline.gui-primary{border-color:#ce93d8}.gui-dark .gui-button.gui-outline.gui-primary.gui-button:hover{background:#ce93d8;border-color:#ce93d8;color:#212121}.gui-dark .gui-button.gui-outline.gui-primary.gui-button:disabled{background:transparent;border-color:#f0def3;color:#f0def3}.gui-dark .gui-button.gui-outline.gui-primary.gui-badge{background:#121212;border-color:#ce93d8;color:#dfb8e6}.gui-dark .gui-button.gui-outline.gui-secondary{border-color:#80cbc4}.gui-dark .gui-button.gui-outline.gui-secondary.gui-button:hover{background:#80cbc4;border-color:#80cbc4;color:#212121}.gui-dark .gui-button.gui-outline.gui-secondary.gui-button:disabled{background:transparent;border-color:#b2ebf2;color:#b2ebf2}.gui-dark .gui-button.gui-outline.gui-secondary.gui-badge{background:#121212;border-color:#80cbc4;color:#80cbc4}.gui-dark .gui-button:hover{background:#616161}.gui-dark .gui-button:active{background:#212121}.gui-dark .gui-button:disabled{opacity:.36}
|
|
`,`.gui-light .gui-button{background:#f6f5f4;border-color:#d8d7d6;color:#333;font-family:Roboto,Helvetica Neue,sans-serif}.gui-light .gui-button.gui-link{background:transparent;border:0;color:#2185d0}.gui-light .gui-button.gui-link:hover{background:none;color:#1e77ba;text-decoration:underline}.gui-light .gui-button.gui-link:focus{text-decoration:underline}.gui-light .gui-button:hover{background:#ecebeb}.gui-light .gui-button:active{background:#f6f5f4}.gui-light .gui-button:disabled{opacity:.5}
|
|
`,`.gui-material .gui-button{background:#3949ab;color:#fff;font-family:Roboto,Helvetica Neue,sans-serif;font-weight:500;padding:10px 16px}.gui-material .gui-button.gui-outline:focus{box-shadow:0 0 0 1px #5262c5}.gui-material .gui-button.gui-outline.gui-primary:focus{box-shadow:0 0 0 1px #6200ee}.gui-material .gui-button.gui-outline.gui-secondary:focus{box-shadow:0 0 0 1px #0097a7}.gui-material .gui-button.gui-primary{background:#6200ee;color:#fff}.gui-material .gui-button.gui-primary.gui-outline{color:#6200ee}.gui-material .gui-button.gui-primary.gui-button:hover{background:#974dff}.gui-material .gui-button.gui-primary.gui-button:active{background:#791aff;color:#fff}.gui-material .gui-button.gui-primary.gui-button:disabled{background:#d1c4e9;color:#7d22ff}.gui-material .gui-button.gui-primary.gui-badge{background:#6200ee}.gui-material .gui-button.gui-secondary{background:#0097a7;color:#fff}.gui-material .gui-button.gui-secondary.gui-outline{color:#0097a7}.gui-material .gui-button.gui-secondary.gui-button:hover{background:#00a1b3}.gui-material .gui-button.gui-secondary.gui-button:active{background:#00808e;color:#fff}.gui-material .gui-button.gui-secondary.gui-button:disabled{background:#b2ebf2;color:#00c5da}.gui-material .gui-button.gui-secondary.gui-badge{background:#0097a7}.gui-material .gui-button.gui-link{background:transparent;border:0;color:#3949ab}.gui-material .gui-button.gui-link:hover{color:#4051bf}.gui-material .gui-button.gui-outline{background:transparent;color:#3949ab;border-color:#5262c5}.gui-material .gui-button.gui-outline.gui-button:hover{background:#e8eaf6;color:#3949ab}.gui-material .gui-button.gui-outline.gui-button:active{background:#c5cae9}.gui-material .gui-button.gui-outline.gui-button:disabled{border-color:#c5cae9;color:#c5cae9}.gui-material .gui-button.gui-outline.gui-badge{background:#fff}.gui-material .gui-button.gui-outline.gui-primary{border-color:#6200ee}.gui-material .gui-button.gui-outline.gui-primary.gui-button:hover{background:#ede7f6;border-color:#6200ee;color:#6200ee}.gui-material .gui-button.gui-outline.gui-primary.gui-button:active{background:#d1c4e9}.gui-material .gui-button.gui-outline.gui-primary.gui-button:disabled{background:transparent;border-color:#d1c4e9;color:#d1c4e9}.gui-material .gui-button.gui-outline.gui-primary.gui-badge{background:#fff;border-color:#6200ee;color:#7d22ff}.gui-material .gui-button.gui-outline.gui-secondary{border-color:#0097a7}.gui-material .gui-button.gui-outline.gui-secondary.gui-button:hover{background:#e0f7fa;border-color:#0097a7;color:#0097a7}.gui-material .gui-button.gui-outline.gui-secondary.gui-button:active{background:#b2ebf2}.gui-material .gui-button.gui-outline.gui-secondary.gui-button:disabled{background:transparent;border-color:#b2ebf2;color:#b2ebf2}.gui-material .gui-button.gui-outline.gui-secondary.gui-badge{background:#fff;border-color:#0097a7;color:#0097a7}.gui-material .gui-button:hover{background:#5262c5}.gui-material .gui-button:active{background:#4051bf}.gui-material .gui-button:disabled{background:#c5cae9;color:#7885d2}
|
|
`],encapsulation:2,changeDetection:0})}return i})(),ni=(()=>{class i{static \u0275fac=function(n){return new(n||i)};static \u0275mod=M({type:i});static \u0275inj=T({imports:[q]})}return i})(),nC=(()=>{class i{static \u0275fac=function(n){return new(n||i)};static \u0275cmp=I({type:i,selectors:[["gui-button-group"]],hostVars:2,hostBindings:function(n,r){n&2&&U("gui-button-group",!0)},ngContentSelectors:rn,decls:1,vars:0,template:function(n,r){n&1&&(Ne(),be(0))},styles:[`.gui-button-group{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.gui-button-group .gui-button{border-radius:0}.gui-button-group .gui-button:not(:last-child){border-right:none;margin:0}.gui-button-group .gui-button:last-child{border-radius:0 4px 4px 0}.gui-button-group .gui-button:first-child{border-radius:4px 0 0 4px}.gui-button-group .gui-button-toggle .gui-button{border-radius:0}.gui-button-group .gui-button-toggle:not(:last-child) .gui-button{border-right:none;margin:0}.gui-button-group .gui-button-toggle:last-child .gui-button{border-radius:0 4px 4px 0}.gui-button-group .gui-button-toggle:first-child .gui-button{border-radius:4px 0 0 4px}
|
|
`],encapsulation:2,changeDetection:0})}return i})(),Go=(()=>{class i{static \u0275fac=function(n){return new(n||i)};static \u0275mod=M({type:i});static \u0275inj=T({imports:[q]})}return i})();var qw=(()=>{class i{static \u0275fac=function(n){return new(n||i)};static \u0275mod=M({type:i});static \u0275inj=T({imports:[q]})}return i})(),Pn=(()=>{class i{elementRef;renderer;inputRef;name="";inputChecked=!1;disabled=!1;readonly=!1;indeterminate=!1;changed=new W;checked=!1;constructor(e,n){this.elementRef=e,this.renderer=n}ngOnChanges(e){this.checked=this.inputChecked,e.disabled&&(this.disabled?this.renderer.addClass(this.elementRef.nativeElement,"gui-disabled"):this.renderer.removeClass(this.elementRef.nativeElement,"gui-disabled")),e.readonly&&(this.readonly?this.renderer.addClass(this.elementRef.nativeElement,"gui-readonly"):this.renderer.removeClass(this.elementRef.nativeElement,"gui-readonly")),e.indeterminate&&this.inputRef&&(this.indeterminate?this.inputRef.nativeElement.indeterminate=!0:(this.inputRef.nativeElement.indeterminate=!1,this.inputRef.nativeElement.checked=this.checked))}ngAfterViewInit(){this.inputRef&&(this.inputRef.nativeElement.indeterminate=this.indeterminate)}check(e){e.stopPropagation(),this.checked=!this.checked,this.changed.emit(this.checked)}static \u0275fac=function(n){return new(n||i)(c(x),c(We))};static \u0275cmp=I({type:i,selectors:[["gui-checkbox"]],viewQuery:function(n,r){if(n&1&&X(ND,5,x),n&2){let o;L(o=z())&&(r.inputRef=o.first)}},hostVars:2,hostBindings:function(n,r){n&2&&U("gui-checkbox",!0)},inputs:{name:"name",inputChecked:[we.None,"checked","inputChecked"],disabled:"disabled",readonly:"readonly",indeterminate:"indeterminate"},outputs:{changed:"changed"},features:[G],ngContentSelectors:rn,decls:5,vars:3,consts:[["input",""],["type","checkbox",3,"click","checked","disabled"],[1,"gui-checkmark"]],template:function(n,r){if(n&1){let o=Z();Ne(),h(0,"label")(1,"input",1,0),F("click",function(a){return R(o),A(r.check(a))}),g(),b(3,"span",2),be(4),g()}n&2&&(u(),m("checked",r.checked)("disabled",r.disabled),De("name",r.name))},styles:[`.gui-checkbox{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;display:inline-block;line-height:24px;padding-left:32px;position:relative}.gui-checkbox label{cursor:pointer}.gui-checkbox label:hover .gui-checkmark{border-color:#999}.gui-checkbox input{height:0;opacity:0;position:absolute;width:0}.gui-checkbox .gui-checkmark{border-color:#575757;border-radius:4px;border-style:solid;border-width:2px;box-sizing:content-box;height:20px;left:0;position:absolute;width:20px}.gui-checkbox input:checked+.gui-checkmark{border-color:#575757}.gui-checkbox.gui-disabled.gui-checkbox{color:#ccc;pointer-events:none}.gui-checkbox.gui-readonly.gui-checkbox{pointer-events:none}.gui-checkbox .gui-checkmark:after{content:" ";display:none;left:6px;position:absolute;-ms-transform:rotate(45deg);transform:rotate(45deg)}.gui-checkbox input:checked+.gui-checkmark:after{box-sizing:content-box;display:block}.gui-checkbox .gui-checkmark:after{border-color:#575757;border-style:solid;border-width:0 3.2px 3.2px 0;height:12px;width:5.2px}.gui-checkbox input:indeterminate+.gui-checkmark:after{display:block;height:10px;left:9px;top:4px;-ms-transform:rotate(90deg);transform:rotate(90deg);width:0}
|
|
`,`.gui-material .gui-checkbox{font-family:Roboto,Helvetica Neue,sans-serif}.gui-material .gui-checkbox input:focus+.gui-checkmark{border-color:#3949ab}.gui-material .gui-checkbox label:hover .gui-checkmark{border-color:#575757}.gui-material .gui-checkbox .gui-checkmark{border-color:#999}.gui-material .gui-checkbox input:checked+.gui-checkmark{background:#3949ab;border-color:#3949ab}.gui-material .gui-checkbox .gui-checkmark:after{border-color:#fff}.gui-material .gui-checkbox.gui-indeterminate .gui-checkmark{background:#3949ab;border-color:#3949ab}
|
|
`,`.gui-dark .gui-checkbox{color:#bdbdbd}.gui-dark .gui-checkbox .gui-checkmark{border-color:#878787}.gui-dark .gui-checkbox input:checked+.gui-checkmark{border-color:#878787}.gui-dark .gui-checkbox .gui-checkmark:after{border-color:#878787}.gui-dark .gui-checkbox.gui-disabled.gui-checkbox{opacity:.36}
|
|
`],encapsulation:2,changeDetection:0})}return i})(),tn=(()=>{class i{static \u0275fac=function(n){return new(n||i)};static \u0275mod=M({type:i});static \u0275inj=T({imports:[q]})}return i})(),Up=(()=>{class i extends iC{constructor(e,n){super(e,n)}static \u0275fac=function(n){return new(n||i)(c(x),c(We))};static \u0275cmp=I({type:i,selectors:[["gui-chip"]],hostVars:2,hostBindings:function(n,r){n&2&&U("gui-chip",!0)},features:[C],ngContentSelectors:rn,decls:1,vars:0,template:function(n,r){n&1&&(Ne(),be(0))},styles:[`.gui-chip{background:#e6e6e6;border-radius:4px;box-sizing:border-box;color:#595959;display:inline-block;font-family:Arial;font-size:14px;font-weight:700;margin:0 2px;padding:9.6px 12px}.gui-chip.gui-primary{background:#2185d0;color:#fff}.gui-chip.gui-primary.gui-outline{color:#2185d0}.gui-chip.gui-primary:hover:not(.gui-chip,.gui-badge){background:#1e77ba}.gui-chip.gui-primary:active{background:#1a69a4;color:#fff}.gui-chip.gui-primary:disabled{background:#6fb4e8;color:#439de1}.gui-chip.gui-primary.gui-badge{background:#439de1}.gui-chip.gui-secondary{background:#3cb371;color:#fff}.gui-chip.gui-secondary.gui-outline{color:#3cb371}.gui-chip.gui-secondary.gui-button:hover{background:#36a065}.gui-chip.gui-secondary.gui-button:active{background:#32945e;color:#fff}.gui-chip.gui-secondary.gui-button:disabled{background:#80d5a6;color:#5ac88b}.gui-chip.gui-secondary.gui-badge{background:#5ac88b}.gui-chip.gui-outline{background:transparent;color:#999;border-color:#d6d6d6;border-style:solid;border-width:1px}.gui-chip.gui-outline.gui-button:hover{background:#cccccc;color:#fff}.gui-chip.gui-outline.gui-button:disabled{border-color:#ccc;color:#ccc}.gui-chip.gui-outline.gui-badge{background:#fff}.gui-chip.gui-outline.gui-primary{border-color:#439de1}.gui-chip.gui-outline.gui-primary.gui-button:hover{background:#2185d0;border-color:#2185d0}.gui-chip.gui-outline.gui-primary.gui-button:disabled{background:transparent;border-color:#6fb4e8;color:#6fb4e8}.gui-chip.gui-outline.gui-primary.gui-badge{background:#fff;border-color:#439de1;color:#439de1}.gui-chip.gui-outline.gui-secondary{border-color:#5ac88b}.gui-chip.gui-outline.gui-secondary.gui-button:hover{background:#3cb371;border-color:#3cb371}.gui-chip.gui-outline.gui-secondary.gui-button:disabled{background:transparent;border-color:#80d5a6;color:#80d5a6}.gui-chip.gui-outline.gui-secondary.gui-badge{background:#fff;border-color:#5ac88b;color:#5ac88b}
|
|
`,`.gui-material .gui-chip{background:#3949ab;color:#fff;font-family:Roboto,Helvetica Neue,sans-serif;font-weight:500;padding:10px 16px}.gui-material .gui-chip.gui-primary{background:#6200ee;color:#fff}.gui-material .gui-chip.gui-primary.gui-outline{color:#6200ee}.gui-material .gui-chip.gui-primary.gui-button:hover{background:#974dff}.gui-material .gui-chip.gui-primary.gui-button:active{background:#791aff;color:#fff}.gui-material .gui-chip.gui-primary.gui-button:disabled{background:#d1c4e9;color:#7d22ff}.gui-material .gui-chip.gui-primary.gui-badge{background:#6200ee}.gui-material .gui-chip.gui-secondary{background:#0097a7;color:#fff}.gui-material .gui-chip.gui-secondary.gui-outline{color:#0097a7}.gui-material .gui-chip.gui-secondary.gui-button:hover{background:#00a1b3}.gui-material .gui-chip.gui-secondary.gui-button:active{background:#00808e;color:#fff}.gui-material .gui-chip.gui-secondary.gui-button:disabled{background:#b2ebf2;color:#00c5da}.gui-material .gui-chip.gui-secondary.gui-badge{background:#0097a7}.gui-material .gui-chip.gui-outline{background:transparent;color:#3949ab;border-color:#5262c5}.gui-material .gui-chip.gui-outline.gui-button:hover{background:#e8eaf6;color:#3949ab}.gui-material .gui-chip.gui-outline.gui-button:active{background:#c5cae9}.gui-material .gui-chip.gui-outline.gui-button:disabled{border-color:#c5cae9;color:#c5cae9}.gui-material .gui-chip.gui-outline.gui-badge{background:#fff}.gui-material .gui-chip.gui-outline.gui-primary{border-color:#6200ee}.gui-material .gui-chip.gui-outline.gui-primary.gui-button:hover{background:#ede7f6;border-color:#6200ee;color:#6200ee}.gui-material .gui-chip.gui-outline.gui-primary.gui-button:active{background:#d1c4e9}.gui-material .gui-chip.gui-outline.gui-primary.gui-button:disabled{background:transparent;border-color:#d1c4e9;color:#d1c4e9}.gui-material .gui-chip.gui-outline.gui-primary.gui-badge{background:#fff;border-color:#6200ee;color:#7d22ff}.gui-material .gui-chip.gui-outline.gui-secondary{border-color:#0097a7}.gui-material .gui-chip.gui-outline.gui-secondary.gui-button:hover{background:#e0f7fa;border-color:#0097a7;color:#0097a7}.gui-material .gui-chip.gui-outline.gui-secondary.gui-button:active{background:#b2ebf2}.gui-material .gui-chip.gui-outline.gui-secondary.gui-button:disabled{background:transparent;border-color:#b2ebf2;color:#b2ebf2}.gui-material .gui-chip.gui-outline.gui-secondary.gui-badge{background:#fff;border-color:#0097a7;color:#0097a7}
|
|
`,`.gui-dark .gui-chip{background:#333;color:#bdbdbd}.gui-dark .gui-chip.gui-primary{background:#ce93d8;color:#212121}.gui-dark .gui-chip.gui-primary.gui-outline{color:#ce93d8}.gui-dark .gui-chip.gui-primary.gui-button:hover{background:#c680d1}.gui-dark .gui-chip.gui-primary.gui-button:active{background:#b55bc4;color:#212121}.gui-dark .gui-chip.gui-primary.gui-button:disabled{background:#ce93d8;color:#212121;opacity:.5}.gui-dark .gui-chip.gui-primary.gui-badge{background:#dfb8e6}.gui-dark .gui-chip.gui-secondary{background:#80cbc4;color:#212121}.gui-dark .gui-chip.gui-secondary.gui-outline{color:#80cbc4}.gui-dark .gui-chip.gui-secondary.gui-button:hover{background:#6ec4bc}.gui-dark .gui-chip.gui-secondary.gui-button:active{background:#26a69a;color:#212121}.gui-dark .gui-chip.gui-secondary.gui-button:disabled{background:#80cbc4;color:#212121;opacity:.5}.gui-dark .gui-chip.gui-secondary.gui-badge{background:#a4dad5}.gui-dark .gui-chip.gui-outline{background:transparent;color:#bdbdbd;border-color:#616161;border-style:solid;border-width:1px}.gui-dark .gui-chip.gui-outline.gui-button:hover{background:#616161;color:#bdbdbd}.gui-dark .gui-chip.gui-outline.gui-badge{background:#121212}.gui-dark .gui-chip.gui-outline.gui-primary{border-color:#ce93d8}.gui-dark .gui-chip.gui-outline.gui-primary.gui-button:hover{background:#ce93d8;border-color:#ce93d8;color:#212121}.gui-dark .gui-chip.gui-outline.gui-primary.gui-button:disabled{background:transparent;border-color:#f0def3;color:#f0def3}.gui-dark .gui-chip.gui-outline.gui-primary.gui-badge{background:#121212;border-color:#ce93d8;color:#dfb8e6}.gui-dark .gui-chip.gui-outline.gui-secondary{border-color:#80cbc4}.gui-dark .gui-chip.gui-outline.gui-secondary.gui-button:hover{background:#80cbc4;border-color:#80cbc4;color:#212121}.gui-dark .gui-chip.gui-outline.gui-secondary.gui-button:disabled{background:transparent;border-color:#b2ebf2;color:#b2ebf2}.gui-dark .gui-chip.gui-outline.gui-secondary.gui-badge{background:#121212;border-color:#80cbc4;color:#80cbc4}
|
|
`,`.gui-light .gui-chip{background:#f6f5f4;border-color:#333;border-style:solid;border-width:1px;color:#333}
|
|
`],encapsulation:2,changeDetection:0})}return i})(),An=(()=>{class i{static \u0275fac=function(n){return new(n||i)};static \u0275mod=M({type:i});static \u0275inj=T({imports:[q]})}return i})(),sn=(()=>{class i{unsubscribe$=new ke;constructor(){}ngOnDestroy(){this.unsubscribe()}unsubscribe(){this.unsubscribe$.isStopped||(this.unsubscribe$.next(),this.unsubscribe$.complete())}static \u0275fac=function(n){return new(n||i)};static \u0275dir=N({type:i})}return i})(),mt=function(i){return i[i.DAYS=0]="DAYS",i[i.MONTHS=1]="MONTHS",i[i.YEARS=2]="YEARS",i}(mt||{}),ht=function(i){return i[i.NONE=0]="NONE",i[i.DATE_PICKER=1]="DATE_PICKER",i[i.TIME_PICKER=2]="TIME_PICKER",i[i.TIME_PICKER_HOURS=4]="TIME_PICKER_HOURS",i[i.TIME_PICKER_MINUTES=8]="TIME_PICKER_MINUTES",i[i.TIME_PICKER_SECONDS=16]="TIME_PICKER_SECONDS",i[i.TIME_PICKER_MERIDIAN=32]="TIME_PICKER_MERIDIAN",i[i.ALL=63]="ALL",i}(ht||{}),Wp=new Date().getMonth(),Gp=new Date().getFullYear(),Da=(()=>{class i{selectedDate=new Date;selectedTime;selectedDate$=new nt(this.selectedDate);observeSelectedDate(){return this.selectedDate$.asObservable()}dateSelected(e){this.selectedDate=new Date(e.getTime()),this.setSelectedDateTime(),this.selectedDate$.next(this.selectedDate)}changeTime(e,n){this.selectedTime=e,this.selectedDate||(this.selectedDate=n),this.setSelectedDateTime()}next(){this.dateSelected(this.selectedDate)}setSelectedDateTime(){this.selectedTime&&(this.selectedDate.setHours(this.selectedTime.hours),this.selectedDate.setMinutes(this.selectedTime.minutes),this.selectedDate.setSeconds(this.selectedTime.seconds))}static \u0275fac=function(n){return new(n||i)};static \u0275prov=k({token:i,factory:i.\u0275fac})}return i})(),qp=(()=>{class i{datePickerFormat$=new nt(ht.DATE_PICKER);onComposition(){return this.datePickerFormat$.asObservable()}next(e){this.datePickerFormat$.next(this.getComposition(e))}getComposition(e){let n=e.split(":").join(" "),r=n.split("/").join(" "),o=r.split(".").join(" "),s=o.split(",").join(" "),a=s.split(" "),l=ht.NONE;return a.forEach(d=>{let p=d.toLowerCase().includes("d"),w=d.includes("M"),E=d.toLowerCase().includes("y"),Q=d.toLowerCase().includes("h"),ne=d.includes("m"),ce=d.toLowerCase().includes("s"),O=d.includes("h"),Y=p||w||E,Ie=Q||ne||ce;Y&&(l=l|ht.DATE_PICKER),Ie&&(l=l|ht.TIME_PICKER),O&&(l=l|ht.TIME_PICKER_MERIDIAN),Q&&(l=l|ht.TIME_PICKER_HOURS),ne&&(l=l|ht.TIME_PICKER_MINUTES),ce&&(l=l|ht.TIME_PICKER_SECONDS)}),l}static \u0275fac=function(n){return new(n||i)};static \u0275prov=k({token:i,factory:i.\u0275fac})}return i})(),rC=(()=>{class i{weeks=[];getDaysInMonths(e,n){this.resetWeeks();let r=new Date(e,n+1,0).getDate();for(let o=1;o<=r;o++)this.createWeeks(new Date(e,n,o));return this.weeks}createWeeks(e){let n=e.getDate(),r=6;for(let o=0;o<r;o++)n===1?this.addDaysToWeek(o,e):this.canAddDaysToWeek(o,n)&&this.addDaysToWeek(o,this.getLastDayDate(this.weeks[o-1]));this.weeks=[this.weeks[0],this.weeks[1],this.weeks[2],this.weeks[3],this.weeks[4],this.weeks[5]]}addDaysToWeek(e,n){let r=this.weeks[e];for(let o=1;o<=7;o++){let s=n.getDay()===0&&this.weeks[0].length===0,a;s?a=n.getDate()-6:a=n.getDate()-n.getDay()+o;let l=new Date(n.setDate(a));r.length<7&&r.push(l)}}getLastDayNumber(e){return e.length===7?e[e.length-1].getDate():0}getLastDayDate(e){let n=e[e.length-1].getDate();return new Date(e[e.length-1].setDate(n))}canAddDaysToWeek(e,n){return this.weeks[e].length===0&&this.weeks[e-1].length===7&&n>this.getLastDayNumber(this.weeks[e-1])}resetWeeks(){this.weeks=[],this.weeks[0]=[],this.weeks[1]=[],this.weeks[2]=[],this.weeks[3]=[],this.weeks[4]=[],this.weeks[5]=[]}static \u0275fac=function(n){return new(n||i)};static \u0275prov=k({token:i,factory:i.\u0275fac})}return i})(),Yp=(()=>{class i{rowsForDisplay=[];minYear=0;maxYear=0;selectedYear=0;inc=10;getYears(e){this.minYear=e-50,this.maxYear=e+50;let n=this.maxYear-this.minYear,r=[],o=[];return r=this.createYearsPool(this.minYear,n,r),o=this.divideYearsPool(r,o),this.rowsForDisplay=this.createRowsForDisplay(o,e)}prevYearRange(e){return this.selectedYear||(this.selectedYear=e),this.selectedYear>this.minYear&&(this.selectedYear-=this.inc),this.selectedYear>this.minYear?this.getYears(this.selectedYear):this.rowsForDisplay}nextYearRange(e){return this.selectedYear||(this.selectedYear=e),this.selectedYear<this.maxYear&&(this.selectedYear+=this.inc),this.selectedYear<this.maxYear?this.getYears(this.selectedYear):this.rowsForDisplay}createYearsPool(e,n,r){for(let o=0;o<=n;o++)r.push(e+o);return r}divideYearsPool(e,n){for(let r=0;r<e.length;r+=5)n.push(e.slice(r,r+5));return n}createRowsForDisplay(e,n){if(n>=this.minYear||n<=this.maxYear){for(let r=0;r<e.length;r++)if(e[r].indexOf(n)>-1)return e[r-1]?e[r-2]?e[r+1]?e[r+2]?this.rowsForDisplay=[e[r-2],e[r-1],e[r],e[r+1],e[r+2]]:[e[r-3],e[r-2],e[r-1],e[r],e[r+1]]:[e[r-4],e[r-3],e[r-2],e[r-1],e[r]]:[e[r-1],e[r],e[r+1],e[r+2],e[r+3]]:[e[r],e[r+1],e[r+2],e[r+3],e[r+4]]}return[[]]}static \u0275fac=function(n){return new(n||i)};static \u0275prov=k({token:i,factory:i.\u0275fac})}return i})(),Qp=(()=>{class i{years$=new ke;onYears(){return this.years$.asObservable()}next(e){this.years$.next(e)}static \u0275fac=function(n){return new(n||i)};static \u0275prov=k({token:i,factory:i.\u0275fac})}return i})(),Ta=(()=>{class i{activeMonth$=new ke;activeYear$=new ke;onActiveMonth(){return this.activeMonth$.asObservable()}onActiveYear(){return this.activeYear$.asObservable()}nextMonth(e,n){n===11?(this.activeYear$.next(e+1),this.selectMonth(0)):this.selectMonth(n+1)}prevMonth(e,n){n===0?(this.activeYear$.next(e-1),this.selectMonth(11)):this.selectMonth(n-1)}selectYear(e){this.activeYear$.next(e)}selectMonth(e){this.activeMonth$.next(e)}static \u0275fac=function(n){return new(n||i)};static \u0275prov=k({token:i,factory:i.\u0275fac})}return i})(),Ma=(()=>{class i{activeView$=new ke;onActiveView(){return this.activeView$.asObservable()}switchView(e){this.activeView$.next(e)}static \u0275fac=function(n){return new(n||i)};static \u0275prov=k({token:i,factory:i.\u0275fac})}return i})(),wT=["Mo","Tu","We","Th","Fr","Sa","Su"],Ea=class{static areDatesSame(t,e){return t&&e&&t.getDate()===e.getDate()&&t.getMonth()===e.getMonth()&&t.getFullYear()===e.getFullYear()}static isMonth(t,e,n){return t.getMonth()===e&&t.getFullYear()===n}},CT=(()=>{class i{datePickerService;selectedDate;activeMonth=Wp;weeks=[];daysOfTheWeek=wT;currentDay=new Date;constructor(e){this.datePickerService=e}selectDate(e){this.datePickerService.dateSelected(e)}isDate(e,n){return Ea.areDatesSame(e,n)}displayMonthDays(e){return e===this.activeMonth}static \u0275fac=function(n){return new(n||i)(c(Da))};static \u0275cmp=I({type:i,selectors:[["gui-date-picker-days-view"]],inputs:{selectedDate:"selectedDate",activeMonth:"activeMonth",weeks:"weeks"},decls:4,vars:2,consts:[[1,"gui-display-grid","gui-grid-rows-gap-8","gui-py-6"],[1,"gui-display-grid","gui-grid-cols-7","gui-py-4","gui-date-picker-header"],[4,"ngFor","ngForOf"],["class","gui-display-grid gui-grid-cols-7",4,"ngFor","ngForOf"],[1,"gui-display-grid","gui-grid-cols-7"],["class","gui-date-picker-cell gui-date-picker-day",3,"gui-date-picker-current-day","gui-date-picker-selected-day","gui-date-picker-selected-month","click",4,"ngFor","ngForOf"],[1,"gui-date-picker-cell","gui-date-picker-day",3,"click"]],template:function(n,r){n&1&&(h(0,"div",0)(1,"div",1),D(2,jD,2,1,"div",2),g(),D(3,LD,2,1,"div",3),g()),n&2&&(u(2),m("ngForOf",r.daysOfTheWeek),u(),m("ngForOf",r.weeks))},dependencies:[rt],encapsulation:2,changeDetection:0})}return i})(),IT=[[{nr:0,name:"Jan"},{nr:1,name:"Feb"},{nr:2,name:"Mar"}],[{nr:3,name:"Apr"},{nr:4,name:"May"},{nr:5,name:"Jun"}],[{nr:6,name:"Jul"},{nr:7,name:"Aug"},{nr:8,name:"Sep"}],[{nr:9,name:"Oct"},{nr:10,name:"Nov"},{nr:11,name:"Dec"}]],kT=(()=>{class i{calendarService;calendarViewService;selectedDate;activeYear=Gp;currentDay=new Date;monthsPerQuarters=IT;constructor(e,n){this.calendarService=e,this.calendarViewService=n}isMonth(e,n){return Ea.isMonth(e,n,this.activeYear)}selectMonth(e){this.calendarService.selectMonth(e),this.calendarViewService.switchView(mt.DAYS)}static \u0275fac=function(n){return new(n||i)(c(Ta),c(Ma))};static \u0275cmp=I({type:i,selectors:[["gui-date-picker-months-view"]],inputs:{selectedDate:"selectedDate",activeYear:"activeYear"},decls:2,vars:1,consts:[[1,"gui-display-grid","gui-grid-rows-gap-8","gui-py-6","gui-date-picker-view-border-top"],["class","gui-display-grid gui-grid-cols-3",4,"ngFor","ngForOf"],[1,"gui-display-grid","gui-grid-cols-3"],["class","gui-date-picker-cell gui-date-picker-month",3,"gui-date-picker-current-month","gui-date-picker-selected-month","click",4,"ngFor","ngForOf"],[1,"gui-date-picker-cell","gui-date-picker-month",3,"click"]],template:function(n,r){n&1&&(h(0,"div",0),D(1,BD,2,1,"div",1),g()),n&2&&(u(),m("ngForOf",r.monthsPerQuarters))},dependencies:[rt],encapsulation:2,changeDetection:0})}return i})(),ET=(()=>{class i{calendarService;calendarViewService;selectedDate;years=[];currentDay=new Date;constructor(e,n){this.calendarService=e,this.calendarViewService=n}selectYear(e){this.calendarService.selectYear(e),this.calendarViewService.switchView(mt.MONTHS)}isYear(e,n){return e?e.getFullYear()===n:!1}static \u0275fac=function(n){return new(n||i)(c(Ta),c(Ma))};static \u0275cmp=I({type:i,selectors:[["gui-date-picker-years-view"]],inputs:{selectedDate:"selectedDate",years:"years"},decls:2,vars:1,consts:[[1,"gui-display-grid","gui-grid-rows-gap-8","gui-py-6","gui-date-picker-view-border-top"],["class","gui-display-grid gui-grid-cols-5",4,"ngFor","ngForOf"],[1,"gui-display-grid","gui-grid-cols-5"],["class","gui-date-picker-cell gui-date-picker-year",3,"gui-date-picker-current-year","gui-date-picker-selected-year","click",4,"ngFor","ngForOf"],[1,"gui-date-picker-cell","gui-date-picker-year",3,"click"]],template:function(n,r){n&1&&(h(0,"div",0),D(1,$D,2,1,"div",1),g()),n&2&&(u(),m("ngForOf",r.years))},dependencies:[rt],encapsulation:2,changeDetection:0})}return i})(),Np=function(i){return i[i.NEXT=0]="NEXT",i[i.PREV=1]="PREV",i}(Np||{}),en=function(i){return i[i.TOP=-90]="TOP",i[i.BOTTOM=90]="BOTTOM",i[i.LEFT=180]="LEFT",i[i.RIGHT=0]="RIGHT",i}(en||{}),Yw=["January","February","March","April","May","June","July","August","September","October","November","December"],gd=(()=>{class i{direction=en.RIGHT;static \u0275fac=function(n){return new(n||i)};static \u0275cmp=I({type:i,selectors:[["gui-arrow-icon"]],hostVars:4,hostBindings:function(n,r){n&2&&U("gui-arrow-icon",!0)("gui-icon",!0)},inputs:{direction:"direction"},decls:2,vars:2,consts:[["height","10.661","viewBox","0 0 6.081 10.661","width","6.081","xmlns","http://www.w3.org/2000/svg"],["d","M.75.75,5.02,5.02.75,9.29","fill","none","stroke-linecap","round","stroke-linejoin","round","stroke-width","1.5","transform","translate(0.311 0.311)"]],template:function(n,r){n&1&&(Ke(),h(0,"svg",0),b(1,"path",1),g()),n&2&&Ae("transform","rotate("+r.direction+"deg)")},styles:[`.gui-arrow-icon{cursor:pointer}.gui-arrow-icon svg path{stroke:#aaa;transition:stroke .2s ease-in-out}.gui-arrow-icon:hover svg path{stroke:#464646}
|
|
`],encapsulation:2,changeDetection:0})}return i})(),ST=(()=>{class i{calendarViewService;calendarService;datePickerYearsService;datePickerYears;fabricCalendarView=mt.DAYS;selectedDate;activeMonth=Wp;activeYear=Gp;years=[];Direction=en;FabricCalendarCardView=Np;constructor(e,n,r,o){this.calendarViewService=e,this.calendarService=n,this.datePickerYearsService=r,this.datePickerYears=o}getDisplayedDate(){switch(this.fabricCalendarView){case mt.DAYS:return`${Yw[this.activeMonth]} ${this.activeYear}`;case mt.MONTHS:return`${Yw[this.activeMonth]} ${this.activeYear}`;case mt.YEARS:return`${this.getDisplayedYearRange()}`;default:return""}}switchCalendarView(){switch(this.fabricCalendarView){case mt.DAYS:this.calendarViewService.switchView(mt.YEARS);break;case mt.MONTHS:this.calendarViewService.switchView(mt.DAYS);break;case mt.YEARS:this.calendarViewService.switchView(mt.DAYS);break;default:break}}switchCard(e){let n=e===Np.NEXT,r=n?1:-1,o=this.activeYear+r,s=n?this.datePickerYears.nextYearRange(this.activeYear):this.datePickerYears.prevYearRange(this.activeYear);switch(this.fabricCalendarView){case mt.DAYS:this.handleMonthChange(n);break;case mt.MONTHS:this.calendarService.selectYear(o);break;case mt.YEARS:this.datePickerYearsService.next(s);break;default:break}}getDisplayedYearRange(){return this.years[0][0].toString()+"-"+this.years[4][this.years[4].length-1].toString()}handleMonthChange(e){e?this.calendarService.nextMonth(this.activeYear,this.activeMonth):this.calendarService.prevMonth(this.activeYear,this.activeMonth)}static \u0275fac=function(n){return new(n||i)(c(Ma),c(Ta),c(Qp),c(Yp))};static \u0275cmp=I({type:i,selectors:[["gui-date-picker-view-panel"]],inputs:{fabricCalendarView:"fabricCalendarView",selectedDate:"selectedDate",activeMonth:"activeMonth",activeYear:"activeYear",years:"years"},decls:6,vars:3,consts:[[1,"gui-date-picker-view-panel"],[1,"gui-date-picker-view-panel-date",3,"click"],[1,"gui-date-picker-arrows"],[1,"gui-date-picker-arrow",3,"click","direction"]],template:function(n,r){n&1&&(h(0,"div",0)(1,"div",1),F("click",function(){return r.switchCalendarView()}),S(2),g(),h(3,"div",2)(4,"gui-arrow-icon",3),F("click",function(){return r.switchCard(r.FabricCalendarCardView.PREV)}),g(),h(5,"gui-arrow-icon",3),F("click",function(){return r.switchCard(r.FabricCalendarCardView.NEXT)}),g()()()),n&2&&(u(2),oe(" ",r.getDisplayedDate()," "),u(2),m("direction",r.Direction.LEFT),u(),m("direction",r.Direction.RIGHT))},dependencies:[gd],encapsulation:2,changeDetection:0})}return i})(),jp=class{hours;minutes;seconds;constructor(t,e,n){this.hours=t,this.minutes=e,this.seconds=n}},pd=(()=>{class i{static \u0275fac=function(n){return new(n||i)};static \u0275cmp=I({type:i,selectors:[["input","gui-input",""]],hostVars:2,hostBindings:function(n,r){n&2&&U("gui-input",!0)},attrs:UD,decls:0,vars:0,template:function(n,r){},styles:[`.gui-input{background:#fff;border-color:#d6d6d6;border-radius:4px;border-style:solid;border-width:1px;color:#333;font:14px Arial;margin:0;max-width:100%;outline:0;padding:8px 12px;text-align:left;transition:border-color .3s ease-in-out}.gui-input:hover{border-color:#999}.gui-input:focus{border-color:#6fb4e8}.gui-input:disabled{color:#ccc;cursor:default;pointer-events:none}.gui-input:disabled::-moz-placeholder{color:#ccc}.gui-input:disabled:-ms-input-placeholder{color:#ccc}.gui-input:disabled::placeholder{color:#ccc}
|
|
`,`.gui-material .gui-input{border-color:#ccc;border-radius:0;border-style:solid;border-width:0 0 1px 0;font-family:Roboto,Helvetica Neue,sans-serif;padding-left:0;transition:border-color .3s ease-in-out}.gui-material .gui-input:not(:-moz-placeholder-shown){border-color:#6200ee}.gui-material .gui-input:not(:-ms-input-placeholder){border-color:#6200ee}.gui-material .gui-input:not(:placeholder-shown){border-color:#6200ee}.gui-material .gui-input:focus{border-color:#6200ee}
|
|
`,`.gui-dark .gui-input{background:#424242;border-color:#616161;color:#bdbdbd}.gui-dark .gui-input:hover{border-color:#757575}.gui-dark .gui-input:focus{border-color:#ce93d8}.gui-dark .gui-input:disabled{opacity:.36}
|
|
`],encapsulation:2,changeDetection:0})}return i})(),DT=(()=>{class i extends sn{formBuilder;datePickerService;selectedDate;datePickerComposition=ht.NONE;steps=1;form;Direction=en;FabricDatePickerComposition=ht;constructor(e,n){super(),this.formBuilder=e,this.datePickerService=n,this.form=this.formBuilder.group({hours:[""],minutes:[""],seconds:[""]})}ngOnChanges(e){e.selectedDate&&this.selectedDate}ngOnInit(){this.isActive(this.datePickerComposition,ht.TIME_PICKER_HOURS)&&this.form.controls.hours.valueChanges.pipe(re(this.unsubscribe$)).subscribe(n=>{let r=this.isMeridian()?1:0,o=this.isMeridian()?12:23;(n>o||n<r)&&this.form.controls.hours.setValue(r),this.changeSelectedDate()}),this.isActive(this.datePickerComposition,ht.TIME_PICKER_MINUTES)&&this.form.controls.minutes.valueChanges.pipe(re(this.unsubscribe$)).subscribe(e=>{this.controlFormItemValue(e,"minutes","hours"),this.changeSelectedDate()}),this.isActive(this.datePickerComposition,ht.TIME_PICKER_SECONDS)&&this.form.controls.seconds.valueChanges.pipe(re(this.unsubscribe$)).subscribe(e=>{this.controlFormItemValue(e,"seconds","minutes"),this.changeSelectedDate()}),this.setTimeFromSelectedDate()}changeTimeItem(e,n){let r=this.form.controls[e].value+n;this.form.controls[e].setValue(r)}changeSelectedDateTime(){this.datePickerService.next()}isActive(e,n){return!!(e&n)}isMeridian(){return this.isActive(this.datePickerComposition,ht.TIME_PICKER_MERIDIAN)}isOnlyTimePicker(){return!(this.datePickerComposition&ht.DATE_PICKER)}changeSelectedDate(){if(this.selectedDate){let e=this.form.controls.hours.value,n=this.form.controls.minutes.value,r=this.form.controls.seconds.value,o=new jp(e,n,r);this.datePickerService.changeTime(o,this.selectedDate)}}controlFormItemValue(e,n,r){if(e>59){let o=this.form.controls[r].value,s=o+1;this.form.controls[r].setValue(s),this.form.controls[n].setValue(0)}else e<0&&this.form.controls[n].setValue(0)}setTimeFromSelectedDate(){if(this.selectedDate){let e=this.selectedDate.getHours(),n=this.selectedDate.getMinutes(),r=this.selectedDate.getSeconds();this.form.controls.hours.setValue(e),this.form.controls.minutes.setValue(n),this.form.controls.seconds.setValue(r)}}static \u0275fac=function(n){return new(n||i)(c(xi),c(Da))};static \u0275cmp=I({type:i,selectors:[["gui-time-picker"]],hostVars:2,hostBindings:function(n,r){n&2&&U("only-time-picker",r.isOnlyTimePicker())},inputs:{selectedDate:"selectedDate",datePickerComposition:"datePickerComposition"},features:[C,G],decls:7,vars:5,consts:[[3,"formGroup"],["class","gui-time-picker-item",4,"ngIf"],[1,"gui-time-picker-button-wrapper",3,"click"],["gui-button","",3,"outline"],[1,"gui-time-picker-item"],[1,"gui-date-picker-arrow",3,"click","direction"],["formControlName","hours","gui-input","","maxlength","2"],["formControlName","minutes","gui-input","","maxlength","2","type","number"],["formControlName","seconds","gui-input","","maxlength","2","type","number"]],template:function(n,r){n&1&&(h(0,"form",0),D(1,WD,4,2,"div",1)(2,GD,4,2,"div",1)(3,qD,4,2,"div",1),g(),h(4,"div",2),F("click",function(){return r.changeSelectedDateTime()}),h(5,"button",3),S(6," Ok "),g()()),n&2&&(m("formGroup",r.form),u(),m("ngIf",r.isActive(r.datePickerComposition,r.FabricDatePickerComposition.TIME_PICKER_HOURS)),u(),m("ngIf",r.isActive(r.datePickerComposition,r.FabricDatePickerComposition.TIME_PICKER_MINUTES)),u(),m("ngIf",r.isActive(r.datePickerComposition,r.FabricDatePickerComposition.TIME_PICKER_SECONDS)),u(2),m("outline",!0))},dependencies:[je,Oi,ii,ka,Ri,Ai,Pp,$t,vi,pd,on,gd],encapsulation:2,changeDetection:0})}return i})(),TT=(()=>{class i extends sn{datePickerService;datePickerFormatService;datePickerWeeks;datePickerYears;datePickerYearsService;calendarService;calendarViewService;changeDetectorRef;weeks=[];years=[];selectedDate;activeMonth=Wp;activeYear=Gp;datePickerComposition=ht.NONE;FabricDatePickerComposition=ht;FabricCalendarView=mt;fabricCalendarView=mt.DAYS;constructor(e,n,r,o,s,a,l,d){super(),this.datePickerService=e,this.datePickerFormatService=n,this.datePickerWeeks=r,this.datePickerYears=o,this.datePickerYearsService=s,this.calendarService=a,this.calendarViewService=l,this.changeDetectorRef=d}ngOnInit(){this.datePickerFormatService.onComposition().pipe(re(this.unsubscribe$)).subscribe(e=>{this.datePickerComposition=e}),this.calendarService.onActiveMonth().pipe(re(this.unsubscribe$)).subscribe(e=>{this.activeMonth=e,this.calculateDatePickerData(),this.changeDetectorRef.detectChanges()}),this.calendarService.onActiveYear().pipe(re(this.unsubscribe$)).subscribe(e=>{this.activeYear=e,this.calculateDatePickerData(),this.changeDetectorRef.detectChanges()}),this.datePickerService.observeSelectedDate().pipe(re(this.unsubscribe$)).subscribe(e=>{this.selectedDate=e,this.activeYear=e.getFullYear(),this.activeMonth=e.getMonth()}),this.datePickerYearsService.onYears().pipe(re(this.unsubscribe$)).subscribe(e=>{this.years=e,this.changeDetectorRef.detectChanges()}),this.calendarViewService.onActiveView().pipe(re(this.unsubscribe$)).subscribe(e=>{this.fabricCalendarView=e,this.changeDetectorRef.detectChanges()}),this.calculateDatePickerData()}getCalendarView(){return event&&event.stopPropagation(),this.fabricCalendarView}isVisible(e,n){return!!(e&n)}calculateDatePickerData(){this.weeks=this.datePickerWeeks.getDaysInMonths(this.activeYear,this.activeMonth),this.years=this.datePickerYears.getYears(this.activeYear)}static \u0275fac=function(n){return new(n||i)(c(Da),c(qp),c(rC),c(Yp),c(Qp),c(Ta),c(Ma),c(B))};static \u0275cmp=I({type:i,selectors:[["gui-date-picker-toggle"]],hostVars:2,hostBindings:function(n,r){n&2&&U("gui-date-picker-calendar",!0)},features:[C],decls:2,vars:2,consts:[[4,"ngIf"],[3,"datePickerComposition","selectedDate",4,"ngIf"],[3,"activeMonth","activeYear","fabricCalendarView","selectedDate","years"],[3,"ngSwitch"],[3,"activeMonth","selectedDate","weeks",4,"ngSwitchCase"],[3,"activeYear","selectedDate",4,"ngSwitchCase"],[3,"selectedDate","years",4,"ngSwitchCase"],[3,"activeMonth","selectedDate","weeks"],[3,"activeYear","selectedDate"],[3,"selectedDate","years"],[3,"datePickerComposition","selectedDate"]],template:function(n,r){n&1&&D(0,ZD,6,9,"ng-container",0)(1,XD,1,2,"gui-time-picker",1),n&2&&(m("ngIf",r.isVisible(r.datePickerComposition,r.FabricDatePickerComposition.DATE_PICKER)),u(),m("ngIf",r.isVisible(r.datePickerComposition,r.FabricDatePickerComposition.TIME_PICKER)))},dependencies:[je,U_,W_,CT,kT,ET,ST,DT],styles:[`.gui-box-border{box-sizing:border-box}.gui-bg-transparent{background-color:transparent}.gui-border{border-width:1px}.gui-border-0{border-width:0}.gui-border-b{border-bottom-width:1px}.gui-border-t{border-top-width:1px}.gui-border-solid{border-style:solid}.gui-border-b-solid{border-bottom-style:solid}.gui-border-t-solid{border-top-style:solid}.gui-border-none{border-style:none}.gui-rounded{border-radius:4px}.gui-cursor-pointer{cursor:pointer}.gui-block{display:block}.gui-inline-block{display:inline-block}.gui-inline{display:inline}.gui-flex{display:-ms-flexbox;display:flex}.gui-hidden{display:none}.gui-display-grid{display:grid}.gui-flex-row{-ms-flex-direction:row;flex-direction:row}.gui-flex-row-reverse{-ms-flex-direction:row-reverse;flex-direction:row-reverse}.gui-flex-col{-ms-flex-direction:column;flex-direction:column}.gui-flex-col-reverse{-ms-flex-direction:column-reverse;flex-direction:column-reverse}.gui-justify-start{-ms-flex-pack:start;justify-content:flex-start}.gui-justify-end{-ms-flex-pack:end;justify-content:flex-end}.gui-justify-center{-ms-flex-pack:center;justify-content:center}.gui-justify-between{-ms-flex-pack:justify;justify-content:space-between}.gui-justify-around{-ms-flex-pack:distribute;justify-content:space-around}.gui-justify-evenly{-ms-flex-pack:space-evenly;justify-content:space-evenly}.gui-items-start{-ms-flex-align:start;align-items:flex-start}.gui-items-end{-ms-flex-align:end;align-items:flex-end}.gui-items-center{-ms-flex-align:center;align-items:center}.gui-items-between{-ms-flex-align:space-between;align-items:space-between}.gui-items-around{-ms-flex-align:space-around;align-items:space-around}.gui-items-evenly{-ms-flex-align:space-evenly;align-items:space-evenly}.gui-flex-wrap{-ms-flex-wrap:wrap;flex-wrap:wrap}.gui-flex-wrap-reverse{-ms-flex-wrap:wrap-reverse;flex-wrap:wrap-reverse}.gui-flex-nowrap{-ms-flex-wrap:nowrap;flex-wrap:nowrap}.gui-grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.gui-grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.gui-grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.gui-grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.gui-grid-cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}.gui-grid-cols-6{grid-template-columns:repeat(6,minmax(0,1fr))}.gui-grid-cols-7{grid-template-columns:repeat(7,minmax(0,1fr))}.gui-grid-cols-8{grid-template-columns:repeat(8,minmax(0,1fr))}.gui-grid-cols-9{grid-template-columns:repeat(9,minmax(0,1fr))}.gui-grid-rows-1{grid-template-rows:repeat(1,minmax(0,1fr))}.gui-grid-rows-2{grid-template-rows:repeat(2,minmax(0,1fr))}.gui-grid-rows-3{grid-template-rows:repeat(3,minmax(0,1fr))}.gui-grid-rows-4{grid-template-rows:repeat(4,minmax(0,1fr))}.gui-grid-rows-5{grid-template-rows:repeat(5,minmax(0,1fr))}.gui-grid-rows-6{grid-template-rows:repeat(6,minmax(0,1fr))}.gui-grid-rows-7{grid-template-rows:repeat(7,minmax(0,1fr))}.gui-grid-rows-8{grid-template-rows:repeat(8,minmax(0,1fr))}.gui-grid-rows-9{grid-template-rows:repeat(9,minmax(0,1fr))}.gui-grid-rows-gap-0{grid-row-gap:0}.gui-grid-rows-gap-1{grid-row-gap:1px}.gui-grid-rows-gap-2{grid-row-gap:2px}.gui-grid-rows-gap-3{grid-row-gap:3px}.gui-grid-rows-gap-4{grid-row-gap:4px}.gui-grid-rows-gap-5{grid-row-gap:6px}.gui-grid-rows-gap-6{grid-row-gap:8px}.gui-grid-rows-gap-7{grid-row-gap:10px}.gui-grid-rows-gap-8{grid-row-gap:12px}.gui-grid-rows-gap-10{grid-row-gap:16px}.gui-grid-rows-gap-13{grid-row-gap:22px}.gui-grid-rows-gap-23{grid-row-gap:42px}.gui-grid-cols-gap-0{grid-column-gap:0}.gui-grid-cols-gap-1{grid-column-gap:1px}.gui-grid-cols-gap-2{grid-column-gap:2px}.gui-grid-cols-gap-3{grid-column-gap:3px}.gui-grid-cols-gap-4{grid-column-gap:4px}.gui-grid-cols-gap-5{grid-column-gap:6px}.gui-grid-cols-gap-6{grid-column-gap:8px}.gui-grid-cols-gap-7{grid-column-gap:10px}.gui-grid-cols-gap-8{grid-column-gap:12px}.gui-grid-cols-gap-10{grid-column-gap:16px}.gui-grid-cols-gap-13{grid-column-gap:22px}.gui-grid-cols-gap-23{grid-column-gap:42px}.gui-h-full{height:100%}.gui-list-none{list-style-type:none}.gui-m-0{margin:0}.gui-mx-0{margin-left:0;margin-right:0}.gui-my-0{margin-bottom:0;margin-top:0}.-gui-m-0{margin:0}.-gui-mx-0{margin-left:0;margin-right:0}.-gui-my-0{margin-bottom:0;margin-top:0}.gui-m-1{margin:1px}.gui-mx-1{margin-left:1px;margin-right:1px}.gui-my-1{margin-bottom:1px;margin-top:1px}.-gui-m-1{margin:-1px}.-gui-mx-1{margin-left:-1px;margin-right:-1px}.-gui-my-1{margin-bottom:-1px;margin-top:-1px}.gui-m-2{margin:2px}.gui-mx-2{margin-left:2px;margin-right:2px}.gui-my-2{margin-bottom:2px;margin-top:2px}.-gui-m-2{margin:-2px}.-gui-mx-2{margin-left:-2px;margin-right:-2px}.-gui-my-2{margin-bottom:-2px;margin-top:-2px}.gui-m-3{margin:3px}.gui-mx-3{margin-left:3px;margin-right:3px}.gui-my-3{margin-bottom:3px;margin-top:3px}.-gui-m-3{margin:-3px}.-gui-mx-3{margin-left:-3px;margin-right:-3px}.-gui-my-3{margin-bottom:-3px;margin-top:-3px}.gui-m-4{margin:4px}.gui-mx-4{margin-left:4px;margin-right:4px}.gui-my-4{margin-bottom:4px;margin-top:4px}.-gui-m-4{margin:-4px}.-gui-mx-4{margin-left:-4px;margin-right:-4px}.-gui-my-4{margin-bottom:-4px;margin-top:-4px}.gui-m-5{margin:6px}.gui-mx-5{margin-left:6px;margin-right:6px}.gui-my-5{margin-bottom:6px;margin-top:6px}.-gui-m-5{margin:-6px}.-gui-mx-5{margin-left:-6px;margin-right:-6px}.-gui-my-5{margin-bottom:-6px;margin-top:-6px}.gui-m-6{margin:8px}.gui-mx-6{margin-left:8px;margin-right:8px}.gui-my-6{margin-bottom:8px;margin-top:8px}.-gui-m-6{margin:-8px}.-gui-mx-6{margin-left:-8px;margin-right:-8px}.-gui-my-6{margin-bottom:-8px;margin-top:-8px}.gui-m-7{margin:10px}.gui-mx-7{margin-left:10px;margin-right:10px}.gui-my-7{margin-bottom:10px;margin-top:10px}.-gui-m-7{margin:-10px}.-gui-mx-7{margin-left:-10px;margin-right:-10px}.-gui-my-7{margin-bottom:-10px;margin-top:-10px}.gui-m-8{margin:12px}.gui-mx-8{margin-left:12px;margin-right:12px}.gui-my-8{margin-bottom:12px;margin-top:12px}.-gui-m-8{margin:-12px}.-gui-mx-8{margin-left:-12px;margin-right:-12px}.-gui-my-8{margin-bottom:-12px;margin-top:-12px}.gui-m-10{margin:16px}.gui-mx-10{margin-left:16px;margin-right:16px}.gui-my-10{margin-bottom:16px;margin-top:16px}.-gui-m-10{margin:-16px}.-gui-mx-10{margin-left:-16px;margin-right:-16px}.-gui-my-10{margin-bottom:-16px;margin-top:-16px}.gui-m-13{margin:22px}.gui-mx-13{margin-left:22px;margin-right:22px}.gui-my-13{margin-bottom:22px;margin-top:22px}.-gui-m-13{margin:-22px}.-gui-mx-13{margin-left:-22px;margin-right:-22px}.-gui-my-13{margin-bottom:-22px;margin-top:-22px}.gui-m-23{margin:42px}.gui-mx-23{margin-left:42px;margin-right:42px}.gui-my-23{margin-bottom:42px;margin-top:42px}.-gui-m-23{margin:-42px}.-gui-mx-23{margin-left:-42px;margin-right:-42px}.-gui-my-23{margin-bottom:-42px;margin-top:-42px}.gui-mb-4{margin-bottom:4px}.gui-mb-6{margin-bottom:8px}.gui-mb-8{margin-bottom:12px}.gui-mb-10{margin-bottom:16px}.gui-mb-18{margin-bottom:32px}.gui-mr-0{margin-right:0}.gui-mr-5{margin-right:6px}.gui-mr-auto{margin-right:auto}.gui-ml-auto{margin-left:auto}.gui-ml-6{margin-left:8px}.gui-mt-0{margin-top:0}.gui-mt-4{margin-top:4px}.gui-mt-6{margin-top:8px}.gui-mt-10{margin-top:16px}.gui-mt-14{margin-top:24px}.gui-overflow-hidden{overflow:hidden}.gui-overflow-y-scroll{overflow-y:scroll}.gui-overflow-x-hidden{overflow-x:hidden}.gui-overflow-auto{overflow:auto}.gui-p-0{padding:0}.gui-px-0{padding-left:0;padding-right:0}.gui-py-0{padding-bottom:0;padding-top:0}.gui-p-1{padding:1px}.gui-px-1{padding-left:1px;padding-right:1px}.gui-py-1{padding-bottom:1px;padding-top:1px}.gui-p-2{padding:2px}.gui-px-2{padding-left:2px;padding-right:2px}.gui-py-2{padding-bottom:2px;padding-top:2px}.gui-p-3{padding:3px}.gui-px-3{padding-left:3px;padding-right:3px}.gui-py-3{padding-bottom:3px;padding-top:3px}.gui-p-4{padding:4px}.gui-px-4{padding-left:4px;padding-right:4px}.gui-py-4{padding-bottom:4px;padding-top:4px}.gui-p-5{padding:6px}.gui-px-5{padding-left:6px;padding-right:6px}.gui-py-5{padding-bottom:6px;padding-top:6px}.gui-p-6{padding:8px}.gui-px-6{padding-left:8px;padding-right:8px}.gui-py-6{padding-bottom:8px;padding-top:8px}.gui-p-7{padding:10px}.gui-px-7{padding-left:10px;padding-right:10px}.gui-py-7{padding-bottom:10px;padding-top:10px}.gui-p-8{padding:12px}.gui-px-8{padding-left:12px;padding-right:12px}.gui-py-8{padding-bottom:12px;padding-top:12px}.gui-p-10{padding:16px}.gui-px-10{padding-left:16px;padding-right:16px}.gui-py-10{padding-bottom:16px;padding-top:16px}.gui-p-13{padding:22px}.gui-px-13{padding-left:22px;padding-right:22px}.gui-py-13{padding-bottom:22px;padding-top:22px}.gui-p-23{padding:42px}.gui-px-23{padding-left:42px;padding-right:42px}.gui-py-23{padding-bottom:42px;padding-top:42px}.gui-pr-10{padding-right:16px}.gui-pl-9{padding-right:10px}.gui-pb-6{padding-bottom:8px}.gui-pb-12{padding-bottom:20px}.gui-pl-21{padding-left:38px}.gui-pt-4{padding-top:4px}.gui-pt-6{padding-top:8px}.gui-pt-10{padding-top:16px}.gui-pt-12{padding-top:20px}.gui-pt-14{padding-top:24px}.gui-static{position:static}.gui-fixed{position:fixed}.gui-relative{position:relative}.gui-absolute{position:absolute}.gui-text-xxs{font-size:11px}.gui-text-xs{font-size:12px}.gui-text-sm{font-size:13px}.gui-text-base{font-size:14px}.gui-text-lg{font-size:16px}.gui-text-xl{font-size:18px}.gui-text-2xl{font-size:20px}.gui-text-3xl{font-size:22px}.gui-leading-4{line-height:16px}.gui-leading-6{line-height:24px}.gui-font-thin{font-weight:100}.gui-font-extralight{font-weight:200}.gui-font-light{font-weight:300}.gui-font-normal{font-weight:400}.gui-font-medium{font-weight:500}.gui-font-semibold{font-weight:600}.gui-font-bold{font-weight:700}.gui-font-extrabold{font-weight:800}.gui-font-black{font-weight:900}.gui-italic{font-style:italic}.gui-not-italic{font-style:normal}.gui-whitespace-nowrap{white-space:nowrap}.gui-overflow-ellipsis{text-overflow:ellipsis}.gui-no-underline{text-decoration:none}.gui-text-center{text-align:center}.gui-w-full{width:100%}.gui-w-96{width:384px}.gui-w-3\\/5{width:60%}.gui-date-picker-calendar{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;box-sizing:border-box;font-family:Roboto,Helvetica Neue,sans-serif;border-radius:4px;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;padding:0 0 12px;width:268px}.gui-date-picker-header{font-size:13px;font-weight:400;text-align:center;border-top:1px solid #999}.gui-date-picker-cell{border-radius:4px;border-color:transparent;border-style:solid;border-width:1px;padding:2px 4px;position:relative;text-align:center;font-size:13px;z-index:0}.gui-date-picker-cell:before{border:1px solid #999;border-radius:50%;box-sizing:border-box;content:"";display:none;height:36px;left:50%;position:absolute;top:50%;-ms-transform:translateX(-50%) translateY(-50%);transform:translate(-50%) translateY(-50%);width:36px;z-index:-1}.gui-date-picker-cell:after{background:transparent;border-radius:50%;box-sizing:border-box;content:"";display:block;height:32px;left:50%;position:absolute;top:50%;-ms-transform:translateX(-50%) translateY(-50%);transform:translate(-50%) translateY(-50%);width:32px;z-index:-1}.gui-date-picker-cell:hover:after{background:#e6e6e6}.gui-date-picker-day{color:#333;cursor:pointer;opacity:.2}.gui-date-picker-day.gui-date-picker-selected-month{opacity:1}.gui-date-picker-month,.gui-date-picker-year{cursor:pointer}.gui-date-picker-year{font-size:13px}.gui-date-picker-day.gui-date-picker-current-day:before,.gui-date-picker-month.gui-date-picker-current-month:before,.gui-date-picker-year.gui-date-picker-current-year:before{display:block}.gui-date-picker-day.gui-date-picker-selected-day{pointer-events:none}.gui-date-picker-day.gui-date-picker-selected-day,.gui-date-picker-month.gui-date-picker-selected-month,.gui-date-picker-year.gui-date-picker-selected-year{color:#fff}.gui-date-picker-day.gui-date-picker-selected-day:after,.gui-date-picker-month.gui-date-picker-selected-month:after,.gui-date-picker-year.gui-date-picker-selected-year:after{background:#2185d0}.gui-date-picker-arrows{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;width:32px}.gui-date-picker-view-padding{padding:0 8px}.gui-date-picker-view-border-top{border-top:1px solid #999}gui-time-picker{border-top:1px solid #999;margin:6px 0 0;padding:12px 0 2.6666666667px}gui-time-picker form{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center}gui-time-picker.only-time-picker{border-top:none}.gui-time-picker-button-wrapper{display:-ms-flexbox;display:flex;-ms-flex-pack:end;justify-content:flex-end;padding-right:8px}.gui-time-picker-button-wrapper .gui-button{font-size:12px}.gui-time-picker-item{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;margin:0 8px;position:relative}.gui-time-picker-item input{box-sizing:border-box;max-width:24px;text-align:center}.gui-time-picker-item input::-webkit-outer-spin-button,.gui-time-picker-item input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.gui-time-picker-item input[type=number]{-moz-appearance:textfield}.gui-time-picker-item .gui-date-picker-arrow:nth-of-type(1){margin-bottom:2px}.gui-time-picker-item .gui-date-picker-arrow:nth-of-type(2){margin-top:6px}.gui-date-picker-view-panel{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;padding:16px 18px}.gui-date-picker-view-panel .gui-date-picker-view-panel-date{cursor:pointer;font-size:14px;font-weight:700;margin:0;pointer-events:auto}.gui-date-picker-arrow{position:relative;z-index:0}.gui-date-picker-arrow:hover:after{background:#e6e6e6;border-radius:50%;box-sizing:border-box;content:"";display:block;height:24px;left:50%;position:absolute;top:50%;-ms-transform:translateX(-50%) translateY(-50%);transform:translate(-50%) translateY(-50%);width:24px;z-index:-1}
|
|
`],encapsulation:2,changeDetection:0})}return i})(),Ni=function(i){return i[i.TOP=1]="TOP",i[i.BOTTOM=2]="BOTTOM",i[i.BEFORE=3]="BEFORE",i[i.AFTER=4]="AFTER",i}(Ni||{}),ns=new K("Theme token"),ri=(()=>{class i{fabricTheme$=new nt(Ce.FABRIC);onTheme(){return this.fabricTheme$.asObservable()}changeTheme(e){let n=typeof e=="string"?this.convertToTheme(e):e;this.fabricTheme$.next(n)}convertToTheme(e){switch(e.toLowerCase()){case"fabric":return Ce.FABRIC;case"material":return Ce.MATERIAL;case"generic":return Ce.GENERIC;case"light":return Ce.LIGHT;case"dark":return Ce.DARK;default:return Ce.FABRIC}}static \u0275fac=function(n){return new(n||i)};static \u0275prov=k({token:i,factory:i.\u0275fac})}return i})(),Fa=(()=>{class i extends sn{elementRef;renderer;themeService;static CSS_CLASS_PREFIX="gui-";constructor(e,n,r){super(),this.elementRef=e,this.renderer=n,this.themeService=r}ngAfterViewInit(){this.themeService.onTheme().pipe(Zc(),re(this.unsubscribe$)).subscribe(e=>{this.addTheme(e)})}addTheme(e){this.removeThemes();let n=i.CSS_CLASS_PREFIX+e.toLowerCase();this.renderer.addClass(this.elementRef.nativeElement,n)}removeThemes(){Object.keys(Ce).map(n=>Ce[n].toLowerCase()).filter(n=>!Number.isInteger(n)).forEach(n=>{let r=i.CSS_CLASS_PREFIX+n;this.renderer.removeClass(this.elementRef.nativeElement,r)})}getElementRef(){return this.elementRef}getRenderer(){return this.renderer}static \u0275fac=function(n){return new(n||i)(c(x),c(We),c(ri))};static \u0275dir=N({type:i,features:[C]})}return i})(),Vp=class{elementRef;containerClassName;constructor(t,e){this.elementRef=t,this.containerClassName=e}getHeight(){return this.elementRef.nativeElement.querySelector(`.${this.containerClassName}`).offsetHeight}getWidth(){return this.elementRef.nativeElement.querySelector(`.${this.containerClassName}`).offsetWidth}},Lp=class extends Vp{verticalPosition=0;horizontalPosition=0;constructor(t,e,n,r,o,s){super(n,r),this.calculateCords(t,e,s,o)}getVerticalPosition(){return this.verticalPosition}getHorizontalPosition(){return this.horizontalPosition}calculateCords(t,e,n,r){let o=e.nativeElement.getBoundingClientRect(),s=t.pageYOffset+o.bottom,a=t.pageXOffset+o.left,l=t.pageXOffset+o.right,d=t.pageYOffset+o.top,p=d+n-this.getHeight();switch(r){case Ni.BOTTOM:this.horizontalPosition=a,this.verticalPosition=s+n;break;case Ni.TOP:this.horizontalPosition=a,this.verticalPosition=p;break;case Ni.BEFORE:this.horizontalPosition=l+n-this.getWidth(),this.verticalPosition=s;break;case Ni.AFTER:this.horizontalPosition=a+n,this.verticalPosition=s;break;default:this.horizontalPosition=a,this.verticalPosition=s+n}this.calculateDirection(e,t,p)}calculateDirection(t,e,n){let r=e.innerHeight+e.pageYOffset,o=e.innerWidth+e.pageXOffset,s=t.nativeElement.offsetWidth,a=this.getHeight(),l=this.getWidth(),d=o-this.horizontalPosition-l<0,p=r-this.verticalPosition-a<0;d&&(this.horizontalPosition-=l-s),p&&(this.verticalPosition=n)}},MT=(()=>{class i extends Lp{static defaultInlineDialogOffset=8;constructor(e,n,r,o,s=i.defaultInlineDialogOffset){super(r,e,n,"gui-inline-dialog-wrapper",o,s)}}return i})(),Kp=(()=>{class i{platformId;inlineDialogGeometry;inlineDialogState$=new ke;constructor(e){this.platformId=e}observeInlineDialogCords(){return this.inlineDialogState$.asObservable()}changeGeometry(e){this.inlineDialogGeometry=e}getInlineDialogCords(e,n,r){if(St(this.platformId)){let o=new MT(e,this.inlineDialogGeometry,window,n,r);this.inlineDialogState$.next(o)}}static \u0275fac=function(n){return new(n||i)(v(Ue))};static \u0275prov=k({token:i,factory:i.\u0275fac})}return i})(),FT=(()=>{class i extends Fa{componentFactoryResolver;changeDetectorRef;inlineDialogService;elRef;inlineDialogGeometryService;container;customClass="";inlineDialogNestedComponent;inlineDialogNestedInjector;dialogTopAttribute;dialogLeftAttribute;visible=!1;width="400px";constructor(e,n,r,o,s,a,l,d){super(o,a,l),this.componentFactoryResolver=e,this.changeDetectorRef=n,this.inlineDialogService=r,this.elRef=o,this.inlineDialogGeometryService=s}ngOnInit(){this.inlineDialogGeometryService.observeInlineDialogCords().pipe(re(this.unsubscribe$)).subscribe(e=>{this.dialogTopAttribute=e.getVerticalPosition(),this.dialogLeftAttribute=e.getHorizontalPosition(),this.changeDetectorRef.detectChanges()})}ngAfterViewInit(){super.ngAfterViewInit(),this.createNestedComponent(this.inlineDialogNestedComponent),this.inlineDialogGeometryService.changeGeometry(this.elRef),this.changeDetectorRef.detectChanges(),Gi(0).pipe(re(this.unsubscribe$)).subscribe(()=>{this.visible=!0,this.changeDetectorRef.detectChanges()})}ngOnDestroy(){this.unsubscribe()}clickOutside(e){this.isContainerClicked(e)&&this.inlineDialogService.close()}isContainerClicked(e){return!this.elRef.nativeElement.contains(e.target)}createNestedComponent(e){if(this.container&&e){let n=this.componentFactoryResolver.resolveComponentFactory(e);this.inlineDialogNestedInjector?this.container.createComponent(n,void 0,this.inlineDialogNestedInjector):this.container.createComponent(n),this.changeDetectorRef.detectChanges()}}static \u0275fac=function(n){return new(n||i)(c(Je),c(B),c(pi(()=>rs)),c(x),c(Kp),c(We),c(ri),c(ns))};static \u0275cmp=I({type:i,selectors:[["ng-component"]],viewQuery:function(n,r){if(n&1&&X(Sa,5,Ei),n&2){let o;L(o=z())&&(r.container=o.first)}},features:[C],decls:4,vars:9,consts:[["container",""],[1,"gui-inline-dialog-wrapper",3,"ngClass"],[1,"gui-inline-dialog-content",3,"click"]],template:function(n,r){if(n&1){let o=Z();h(0,"div",1)(1,"div",2),F("click",function(a){return R(o),A(r.clickOutside(a))},!1,Ps),D(2,JD,0,0,"ng-template",null,0,Ee),g()()}n&2&&(Ae("left",r.dialogLeftAttribute,"px")("top",r.dialogTopAttribute,"px"),m("ngClass",r.customClass),u(),Ae("max-width",r.width),U("gui-inline-dialog-visible",r.visible))},dependencies:[Ki],styles:[`.gui-inline-dialog-wrapper{box-sizing:border-box;position:absolute;z-index:1}.gui-inline-dialog-wrapper .gui-inline-dialog-content{background-color:#fff;border-radius:4px;box-shadow:0 3px 6px -4px #0000001f,0 6px 16px #00000014,0 9px 28px 8px #0000000d;box-sizing:border-box;display:block;z-index:1000;opacity:0;transition:opacity .2s ease-in-out}.gui-inline-dialog-wrapper .gui-inline-dialog-content.gui-inline-dialog-visible{opacity:1}
|
|
`,`.gui-dark .gui-inline-dialog-content{background:#424242;box-shadow:0 1px 2px #424242;color:#bdbdbd}
|
|
`],encapsulation:2,changeDetection:0})}return i})(),rs=(()=>{class i{componentFactoryResolver;applicationRef;injector;document;inlineDialogGeometryService;inlineDialogRef=null;opened=!1;opened$=new nt(!1);destroy$=new ke;constructor(e,n,r,o,s){this.componentFactoryResolver=e,this.applicationRef=n,this.injector=r,this.document=o,this.inlineDialogGeometryService=s}ngOnDestroy(){this.removeInlineDialog()}open(e,n,r){if(event&&event.stopPropagation(),this.inlineDialogRef)this.close();else{let o=this.injector,s=Ni.BOTTOM,a=0,l=Ce.FABRIC,d="";r&&r.injector&&(o=r.injector),r&&r.placement&&(s=r.placement),r&&r.offset&&(a=r.offset),r&&r.theme&&(l=r.theme),r&&r.customClass&&(d=r.customClass);let p=ve.create({providers:[{provide:ns,useValue:l}],parent:o});this.setOpened(!0),this.appendInlineDialogToElement(n,p,d),this.inlineDialogGeometryService.getInlineDialogCords(e,s,a),this.closeOnEscKey()}}close(){this.removeInlineDialog(),this.destroy$.next(void 0),this.destroy$.complete(),this.setOpened(!1)}isOpened(){return this.opened}onOpened(){return this.opened$.asObservable()}appendInlineDialogToElement(e,n,r){let o=this.componentFactoryResolver.resolveComponentFactory(FT).create(n);r&&(o.instance.customClass=r),o.instance.inlineDialogNestedComponent=e,o.changeDetectorRef.detectChanges(),this.applicationRef.attachView(o.hostView);let s=o.hostView.rootNodes[0];this.document.body.appendChild(s),this.inlineDialogRef=o}removeInlineDialog(){this.inlineDialogRef&&(this.applicationRef.detachView(this.inlineDialogRef.hostView),this.inlineDialogRef.destroy(),this.inlineDialogRef=null)}setOpened(e){this.opened=e,this.opened$.next(this.opened)}closeOnEscKey(){tr(this.document,"keyup").pipe(kt(n=>n.code==="Escape"),re(this.destroy$)).subscribe(()=>this.close())}static \u0275fac=function(n){return new(n||i)(v(Je),v(Et),v(ve),v(ue),v(Kp))};static \u0275prov=k({token:i,factory:i.\u0275fac})}return i})(),oC=(()=>{class i{fabricInlineDialogService;constructor(e){this.fabricInlineDialogService=e}open(e,n,r){let o=Ce.FABRIC;r&&(o=r),this.fabricInlineDialogService.open(e,n,{placement:Ni.BOTTOM,offset:0,theme:o})}close(){this.fabricInlineDialogService.close()}isOpened(){return this.fabricInlineDialogService.isOpened()}onOpened(){return this.fabricInlineDialogService.onOpened()}static \u0275fac=function(n){return new(n||i)(v(rs))};static \u0275prov=k({token:i,factory:i.\u0275fac})}return i})(),RT=(()=>{class i{static \u0275fac=function(n){return new(n||i)};static \u0275cmp=I({type:i,selectors:[["gui-date-picker-icon"]],hostVars:2,hostBindings:function(n,r){n&2&&U("gui-date-picker-icon",!0)},decls:8,vars:0,consts:[["height","9.82","viewBox","0 0 8.76 9.82","width","8.76","xmlns","http://www.w3.org/2000/svg"],["d","M401.41,308.63l-.46.15h-.15a.34.34,0,0,1-.08-.67l.68-.22a1.539,1.539,0,0,1,.38-.07h0a.39.39,0,0,1,.39.39V312a.38.38,0,0,1-.39.39.39.39,0,0,1-.39-.39Z","fill","#8c8b8b","transform","translate(-397.19 -304.36)"],["fill","none","stroke-linecap","round","stroke-linejoin","round","stroke-width","1","transform","translate(0.64 9.32)","x1","7.39"],["fill","none","stroke-linecap","round","stroke-linejoin","round","stroke-width","1","transform","translate(0.64 2.16)","x1","7.39"],["fill","none","stroke-linecap","round","stroke-linejoin","round","stroke-width","1","transform","translate(0.5 0.5)","y2","8.82"],["fill","none","stroke-linecap","round","stroke-linejoin","round","stroke-width","1","transform","translate(3.09 0.5)","y2","1.66"],["fill","none","stroke-linecap","round","stroke-linejoin","round","stroke-width","1","transform","translate(5.68 0.5)","y2","1.66"],["fill","none","stroke-linecap","round","stroke-linejoin","round","stroke-width","1","transform","translate(8.26 0.5)","y2","8.82"]],template:function(n,r){n&1&&(Ke(),h(0,"svg",0),b(1,"path",1)(2,"line",2)(3,"line",3)(4,"line",4)(5,"line",5)(6,"line",6)(7,"line",7),g())},styles:[`.gui-date-picker-icon svg{height:16px;width:16px}.gui-date-picker-icon svg line,.gui-date-picker-icon svg path{transition:all .3s ease-in-out}.gui-date-picker-icon svg line{stroke:#aaa}.gui-date-picker-icon svg path{fill:#aaa}.gui-date-picker-icon svg:hover line{stroke:#464646}.gui-date-picker-icon svg:hover path{fill:#464646}
|
|
`,`.gui-dark .gui-date-picker-icon svg line{stroke:#bdbdbd}.gui-dark .gui-date-picker-icon svg path{fill:#bdbdbd}.gui-dark .gui-date-picker-icon svg:hover line{stroke:#616161}.gui-dark .gui-date-picker-icon svg:hover path{fill:#616161}
|
|
`],encapsulation:2})}return i})(),sC=(()=>{class i extends sn{fabricDatePickerInlineDialogService;datePickerService;datePickerCompositionService;changeDetectorRef;datePickerRef;parentElement;theme;selectDate;name="";openDialog=!1;onlyDialog=!1;datePipeOptions="dd/MM/yyyy";dateSelected=new W;dialogOpened=new W;datePickerForm;pickedDate=new Date;inputDisabled="";constructor(e,n,r,o,s){super(),this.fabricDatePickerInlineDialogService=e,this.datePickerService=n,this.datePickerCompositionService=r,this.changeDetectorRef=s,this.datePickerForm=o.group({date:[""]})}ngOnChanges(e){e.selectDate&&this.selectDate&&(!this.pickedDate||!Ea.areDatesSame(this.selectDate,this.pickedDate))&&this.datePickerService.dateSelected(this.selectDate),e.onlyDialog&&(this.inputDisabled=this.onlyDialog?"disabled":""),e.datePipeOptions&&this.datePickerCompositionService.next(this.datePipeOptions)}ngOnInit(){this.datePickerService.observeSelectedDate().pipe(nr(1),re(this.unsubscribe$)).subscribe(e=>{this.pickedDate=e,this.emitSelectedDate(e),this.changeDetectorRef.detectChanges(),this.closeDatePicker()}),this.fabricDatePickerInlineDialogService.onOpened().pipe(nr(1),re(this.unsubscribe$)).subscribe(e=>{this.dialogOpened.emit(e)})}ngAfterViewInit(){this.datePickerService.observeSelectedDate().pipe(jt(1),re(this.unsubscribe$)).subscribe(e=>{this.pickedDate=e,this.emitSelectedDate(e),this.changeDetectorRef.detectChanges()}),this.openDialog&&this.openDatePicker()}ngOnDestroy(){super.ngOnDestroy(),this.fabricDatePickerInlineDialogService.close()}openDatePicker(){let e=!this.parentElement&&this.datePickerRef,n=e?this.datePickerRef:this.parentElement;n&&this.fabricDatePickerInlineDialogService.open(n,TT,this.theme)}closeDatePicker(){this.fabricDatePickerInlineDialogService.close()}emitSelectedDate(e){this.dateSelected.emit(e)}static \u0275fac=function(n){return new(n||i)(c(oC),c(Da),c(qp),c(xi),c(B))};static \u0275cmp=I({type:i,selectors:[["gui-date-picker"]],viewQuery:function(n,r){if(n&1&&X(eT,5,x),n&2){let o;L(o=z())&&(r.datePickerRef=o.first)}},inputs:{parentElement:"parentElement",theme:"theme",selectDate:"selectDate",name:"name",openDialog:"openDialog",onlyDialog:"onlyDialog",datePipeOptions:"datePipeOptions"},outputs:{dateSelected:"dateSelected",dialogOpened:"dialogOpened"},features:[C,G],decls:6,vars:7,consts:[["datePicker",""],[1,"gui-date-picker"],[3,"formGroup"],["formControlName","date","gui-input","","readonly","",1,"gui-date-picker-input",3,"name","value"],[1,"gui-date-picker-icon",3,"click"]],template:function(n,r){if(n&1){let o=Z();h(0,"div",1,0)(2,"form",2),b(3,"input",3),J(4,"date"),g(),h(5,"gui-date-picker-icon",4),F("click",function(){return R(o),A(r.openDatePicker())}),g()()}n&2&&(u(2),m("formGroup",r.datePickerForm),u(),m("name",r.name)("value",cr(4,4,r.pickedDate,r.datePipeOptions)),De("disabled",r.inputDisabled))},dependencies:[Oi,ii,Ri,Ai,$t,vi,pd,RT,ul],styles:[`.gui-date-picker{-ms-flex-align:center;align-items:center;display:-ms-inline-flexbox;display:inline-flex;position:relative}.gui-date-picker .gui-date-picker-icon{cursor:pointer;position:absolute;right:0}.gui-date-picker input,.gui-date-picker-calendar input{background:transparent;border-radius:0;border-width:0 0 1px 0;font-family:Arial;font-size:14px;padding:4px}.gui-date-picker input:disabled,.gui-date-picker-calendar input:disabled{color:#333}.gui-date-picker .gui-date-picker-icon,.gui-date-picker-calendar .gui-date-picker-icon{cursor:pointer;position:absolute;right:0}
|
|
`,`.gui-dark .gui-input{background:transparent;color:#bdbdbd}.gui-dark .gui-date-picker-calendar .gui-arrow-icon:hover:after{background:#757575}.gui-dark .gui-date-picker-calendar .gui-date-picker-cell{color:#bdbdbd}.gui-dark .gui-date-picker-calendar .gui-date-picker-cell:hover:after{background:#757575}.gui-dark .gui-date-picker-calendar .gui-date-picker-day.gui-date-picker-selected-day,.gui-dark .gui-date-picker-calendar .gui-date-picker-month.gui-date-picker-selected-month,.gui-dark .gui-date-picker-calendar .gui-date-picker-year.gui-date-picker-selected-year{color:#333}.gui-dark .gui-date-picker-calendar .gui-date-picker-day.gui-date-picker-selected-day:after,.gui-dark .gui-date-picker-calendar .gui-date-picker-month.gui-date-picker-selected-month:after,.gui-dark .gui-date-picker-calendar .gui-date-picker-year.gui-date-picker-selected-year:after{background:#dfb8e6}
|
|
`,`.gui-material .gui-date-picker-calendar .gui-date-picker-day.gui-date-picker-selected-day:after,.gui-material .gui-date-picker-calendar .gui-date-picker-month.gui-date-picker-selected-month:after,.gui-material .gui-date-picker-calendar .gui-date-picker-year.gui-date-picker-selected-year:after{background:#6200ee}
|
|
`],encapsulation:2,changeDetection:0})}return i})(),Fr=(()=>{class i{static \u0275fac=function(n){return new(n||i)};static \u0275mod=M({type:i});static \u0275inj=T({providers:[rs,Kp],imports:[q]})}return i})(),nn=(()=>{class i{static \u0275fac=function(n){return new(n||i)};static \u0275mod=M({type:i});static \u0275inj=T({imports:[q]})}return i})(),Zp=(()=>{class i{static \u0275fac=function(n){return new(n||i)};static \u0275mod=M({type:i});static \u0275inj=T({imports:[q]})}return i})(),AT=(()=>{class i{static \u0275fac=function(n){return new(n||i)};static \u0275mod=M({type:i});static \u0275inj=T({imports:[q]})}return i})(),md=(()=>{class i{static \u0275fac=function(n){return new(n||i)};static \u0275mod=M({type:i});static \u0275inj=T({providers:[Da,qp,Ta,Ma,Qp,rC,Yp,oC],imports:[q,Fr,Pi,nn,ni,AT,Zp]})}return i})(),Ra=(()=>{class i extends sn{componentFactoryResolver;applicationRef;injector;document;componentRef="destroyed";constructor(e,n,r,o){super(),this.componentFactoryResolver=e,this.applicationRef=n,this.injector=r,this.document=o}ngOnDestroy(){this.removeComponent()}createAndAppend(e){let n=e?.injector?e.injector:this.injector;this.componentRef=this.componentFactoryResolver.resolveComponentFactory(this.getComponent()).create(n),this.applicationRef.attachView(this.componentRef.hostView);let r=this.componentRef.hostView.rootNodes[0];this.getElement(e?.appendToElement).appendChild(r),e?.afterCompCreation&&e?.afterCompCreation(),this.componentRef.changeDetectorRef.detectChanges()}removeComponent(){this.componentRef!=="destroyed"&&(this.applicationRef.detachView(this.componentRef.hostView),this.componentRef.destroy(),this.componentRef="destroyed",this.unsubscribe())}getComponentRef(){return this.componentRef}getInjector(){return this.injector}getDocument(){return this.document}onCloseOnEsc(){return tr(this.getDocument(),"keyup").pipe(kt(n=>n.code==="Escape"),re(this.unsubscribe$))}isComponentCreated(){return this.componentRef!=="destroyed"}getElement(e){return e?e.nativeElement:this.document.body}static \u0275fac=function(n){return new(n||i)(c(Je),c(Et),c(ve),c(ue))};static \u0275dir=N({type:i,features:[C]})}return i})(),fd=(()=>{class i extends Ra{inProgress=!1;constructor(e,n,r,o){super(e,n,r,o)}getComponent(){return OT}open(e){event&&event.stopPropagation(),!(this.isComponentCreated()&&e?.preventReopeningDrawer)&&(this.isComponentCreated()&&!this.inProgress&&!e?.preventReopeningDrawer?this.waitAndCreateNewDrawer(e):this.createDrawer(e))}close(){if(this.isComponentCreated()){let e=this.getComponentRef();e.instance.visible=!1,e.instance.detectChanges(),Gi(300).pipe(re(this.unsubscribe$)).subscribe(()=>{this.removeComponent(),this.inProgress=!1})}}createDrawer(e){this.isComponentCreated()&&this.removeComponent();let n=Ce.FABRIC,r=this.getInjector();e&&e.theme&&(n=e.theme),e&&e.injector&&(r=e.injector);let o=ve.create({providers:[{provide:ns,useValue:n}],parent:r});this.createAndAppend({injector:o,afterCompCreation:()=>this.applyInstanceVars(e),appendToElement:e?.appendToElement}),this.closeOnEscKey()}waitAndCreateNewDrawer(e){this.inProgress=!0,this.close(),Gi(400).pipe(re(this.unsubscribe$)).subscribe(()=>{this.createDrawer(e)})}applyInstanceVars(e){if(this.isComponentCreated()){let n=this.getComponentRef();e?.width&&(n.instance.width=e.width),e?.closeOnClickOutside&&(n.instance.closeOnClickOutside=e.closeOnClickOutside),n.instance.dialogNestedComponent=e?.component,n.instance.isFixed=!e?.appendToElement}}closeOnEscKey(){this.onCloseOnEsc().subscribe(()=>this.close())}static \u0275fac=function(n){return new(n||i)(v(Je),v(Et),v(ve),v(ue))};static \u0275prov=k({token:i,factory:i.\u0275fac})}return i})();var Xp=(()=>{class i{static \u0275fac=function(n){return new(n||i)};static \u0275cmp=I({type:i,selectors:[["gui-close-icon"]],hostVars:2,hostBindings:function(n,r){n&2&&U("gui-close-icon-wrapper",!0)},decls:1,vars:0,consts:[[1,"gui-close-icon"]],template:function(n,r){n&1&&b(0,"span",0)},styles:[`.gui-close-icon-wrapper .gui-close-icon{cursor:pointer;height:16px;position:absolute;right:8px;top:8px;width:16px}.gui-close-icon-wrapper .gui-close-icon:before,.gui-close-icon-wrapper .gui-close-icon:after{background-color:#aaa;content:" ";height:16px;left:7px;position:absolute;width:2px}.gui-close-icon-wrapper .gui-close-icon:before{-ms-transform:rotate(45deg);transform:rotate(45deg)}.gui-close-icon-wrapper .gui-close-icon:after{-ms-transform:rotate(-45deg);transform:rotate(-45deg)}.gui-close-icon-wrapper .gui-close-icon:hover:before,.gui-close-icon-wrapper .gui-close-icon:hover:after{background-color:#464646}
|
|
`],encapsulation:2,changeDetection:0})}return i})(),OT=(()=>{class i extends Fa{componentFactoryResolver;changeDetectorRef;elRef;dialogService;container;width="400px";closeOnClickOutside=!1;dialogNestedComponent;visible=!1;isFixed=!1;constructor(e,n,r,o,s,a){super(r,a,s),this.componentFactoryResolver=e,this.changeDetectorRef=n,this.elRef=r,this.dialogService=o}ngAfterViewInit(){super.ngAfterViewInit(),this.createNestedComponent(),Gi(50).pipe(re(this.unsubscribe$)).subscribe(()=>{this.visible=!0,this.changeDetectorRef.detectChanges()})}closeDrawer(){this.dialogService.close()}clickOutside(e){this.closeOnClickOutside&&this.isContainerClicked(e)&&this.closeDrawer()}detectChanges(){this.changeDetectorRef.detectChanges()}isContainerClicked(e){let n=this.elRef.nativeElement.querySelector(".gui-drawer-content");return n?!n.contains(e.target):!1}createNestedComponent(){if(this.container){let e=this.componentFactoryResolver.resolveComponentFactory(this.dialogNestedComponent);this.container.createComponent(e),this.changeDetectorRef.detectChanges()}}static \u0275fac=function(n){return new(n||i)(c(Je),c(B),c(x),c(fd),c(ri),c(We))};static \u0275cmp=I({type:i,selectors:[["ng-component"]],viewQuery:function(n,r){if(n&1&&X(Sa,5,Ei),n&2){let o;L(o=z())&&(r.container=o.first)}},features:[C],decls:5,vars:6,consts:[["container",""],[1,"gui-drawer-wrapper",3,"click"],[1,"gui-drawer-content"],[3,"click"]],template:function(n,r){if(n&1){let o=Z();h(0,"div",1),F("click",function(a){return R(o),A(r.clickOutside(a))},!1,Ps),h(1,"div",2)(2,"gui-close-icon",3),F("click",function(){return R(o),A(r.closeDrawer())}),g(),D(3,tT,0,0,"ng-template",null,0,Ee),g()()}n&2&&(Ae("max-width",r.width),U("gui-drawer-fixed",r.isFixed)("gui-drawer-visible",r.visible))},dependencies:[Xp],styles:[`.gui-drawer-wrapper{display:-ms-flexbox;display:flex;font-family:Arial;height:100%;width:auto;position:absolute;padding-left:50px;right:0;top:0;overflow:hidden;z-index:1000}.gui-drawer-wrapper .gui-drawer-content{background-color:#fff;height:100%;position:relative;margin-left:auto;-ms-transform:translateX(100%);transform:translate(100%);transition:all .3s ease-in-out}.gui-drawer-wrapper.gui-drawer-visible .gui-drawer-content{-ms-transform:translateX(0);transform:translate(0);box-shadow:-6px 0 16px -8px #00000014,-9px 0 28px #0000000d,-12px 0 48px 16px #00000008}.gui-drawer-wrapper.gui-drawer-fixed{position:fixed;height:100vh}
|
|
`,`.gui-dark .gui-drawer-wrapper .gui-drawer-content{background:#424242;box-shadow:0 1px 2px #424242;color:#bdbdbd}
|
|
`],encapsulation:2,changeDetection:0})}return i})(),Jp=(()=>{class i{static \u0275fac=function(n){return new(n||i)};static \u0275mod=M({type:i});static \u0275inj=T({imports:[q]})}return i})(),qo=(()=>{class i{static \u0275fac=function(n){return new(n||i)};static \u0275mod=M({type:i});static \u0275inj=T({providers:[fd],imports:[q,Jp]})}return i})(),zp=class{container;menu;windowSize;containerHeight=0;containerWidth=0;availableBottomSpace=0;availableTopSpace=0;constructor(t,e,n){this.container=t,this.menu=e,this.windowSize=n,this.calculate(this.menu,this.windowSize)}getContainerHeight(){return this.containerHeight}getContainerWidth(){return this.containerWidth}canOpenDownward(){return this.availableBottomSpace>0}canOpenUpward(){return this.availableTopSpace>0}calculate(t,e){let n=this.container.nativeElement,r=t.nativeElement.offsetHeight,o=n.getBoundingClientRect().bottom;this.containerHeight=n.offsetHeight,this.containerWidth=n.offsetWidth,this.availableBottomSpace=e-o-r,this.availableTopSpace=o-r-this.containerHeight}},Qw=(()=>{class i{geometryResults$=new ke;watchGeometry(){return this.geometryResults$.asObservable()}changeGeometry(e,n,r){let o=new zp(e,n,r);this.geometryResults$.next(o)}static \u0275fac=function(n){return new(n||i)};static \u0275prov=k({token:i,factory:i.\u0275fac})}return i})(),Mr=function(i){return i[i.Right=0]="Right",i[i.Left=1]="Left",i}(Mr||{}),aC=(()=>{class i extends sn{platformId;elementRef;renderer;changeDetectorRef;geometryService;dropdownMenuRef;containerRef;onResize(){St(this.platformId)&&(this.windowSize=window.innerHeight)}disabled=!1;dropdownText="Dropdown";isArrowEnabled=!0;placement;width=120;showOnHover=!1;containerWidth=0;containerHeight=0;windowSize=0;horizontalPosition=0;bottomPosition=0;topPosition=0;arrowDirection=en.BOTTOM;canOpenDownward=!1;canOpenUpward=!1;open=!1;topBorderWidth=1;constructor(e,n,r,o,s){super(),this.platformId=e,this.elementRef=n,this.renderer=r,this.changeDetectorRef=o,this.geometryService=s,this.onResize()}ngOnChanges(e){e.placement&&this.changePlacement()}ngOnInit(){this.geometryService.watchGeometry().pipe(re(this.unsubscribe$)).subscribe(e=>{this.containerHeight=e.getContainerHeight(),this.containerWidth=e.getContainerWidth(),this.canOpenUpward=e.canOpenUpward(),this.canOpenDownward=e.canOpenDownward()})}tryToOpen(e){this.isContainerDisabled(e)?e.stopPropagation():(this.openMenu(!this.open),this.changeDetectorRef.detectChanges())}tryToOpenOnHover(){this.showOnHover&&(this.openMenu(!this.open),this.changeDetectorRef.detectChanges())}hideOnHover(){this.showOnHover&&(this.hideItems(),this.open=!1)}clickOutside(e){this.isContainerClicked(e)&&this.openMenu(!1)}isDirectionLeft(){return this.isArrowEnabled&&this.arrowDirection===en.LEFT}openMenu(e){this.open=e,this.open?this.showItems():this.hideItems()}showItems(){this.containerRef&&this.dropdownMenuRef&&(this.addClass(this.elementRef.nativeElement,"gui-menu-opened"),this.geometryService.changeGeometry(this.containerRef,this.dropdownMenuRef,this.windowSize),this.canOpenDownward||!this.canOpenUpward?this.openDownward():this.openUpward(),this.placement===Mr.Right&&this.openRight(),this.placement===Mr.Left&&this.openLeft())}openDownward(){this.topPosition=null,this.bottomPosition=this.containerHeight}openUpward(){this.bottomPosition=null,this.topPosition=this.containerHeight}openRight(){this.bottomPosition=-this.topBorderWidth,this.topPosition=null,this.horizontalPosition=this.containerWidth}openLeft(){this.bottomPosition=-this.topBorderWidth,this.topPosition=null,this.horizontalPosition=-(this.containerWidth+1)}changePlacement(){if(this.dropdownMenuRef)switch(this.placement){case Mr.Right:{this.removeClass(this.dropdownMenuRef.nativeElement,"gui-dropdown-left"),this.addClass(this.dropdownMenuRef.nativeElement,"gui-dropdown-right"),this.arrowDirection=en.RIGHT;break}case Mr.Left:{this.removeClass(this.dropdownMenuRef.nativeElement,"gui-dropdown-right"),this.addClass(this.dropdownMenuRef.nativeElement,"gui-dropdown-left"),this.arrowDirection=en.LEFT;break}default:break}}hideItems(){this.elementRef.nativeElement.classList.contains("gui-menu-opened")&&this.removeClass(this.elementRef.nativeElement,"gui-menu-opened")}isContainerClicked(e){return!this.elementRef.nativeElement.contains(e.target)}isContainerDisabled(e){return e.target.classList.contains("gui-disabled")}addClass(e,n){this.renderer.addClass(e,n)}removeClass(e,n){this.renderer.removeClass(e,n)}static \u0275fac=function(n){return new(n||i)(c(Ue),c(x),c(We),c(B),c(Qw))};static \u0275cmp=I({type:i,selectors:[["gui-dropdown"]],viewQuery:function(n,r){if(n&1&&(X(iT,7,x),X(Sa,7,x)),n&2){let o;L(o=z())&&(r.dropdownMenuRef=o.first),L(o=z())&&(r.containerRef=o.first)}},hostVars:2,hostBindings:function(n,r){n&1&&F("resize",function(){return r.onResize()},!1,M_),n&2&&U("gui-dropdown",!0)},inputs:{disabled:"disabled",dropdownText:"dropdownText",isArrowEnabled:"isArrowEnabled",placement:"placement",width:"width",showOnHover:"showOnHover"},features:[ge([Qw]),C,G],ngContentSelectors:rn,decls:8,vars:14,consts:[["container",""],["dropdownMenu",""],[1,"gui-dropdown-container",3,"click","mouseenter","mouseleave"],[1,"gui-dropdown-text"],[3,"gui-dropdown-arrow",4,"ngIf"],[1,"gui-dropdown-menu"],[3,"direction"]],template:function(n,r){if(n&1){let o=Z();Ne(),h(0,"div",2,0),F("click",function(a){return R(o),A(r.tryToOpen(a))})("click",function(a){return R(o),A(r.clickOutside(a))},!1,Ps)("mouseenter",function(){return R(o),A(r.tryToOpenOnHover())})("mouseleave",function(){return R(o),A(r.hideOnHover())}),h(2,"div",3),S(3),g(),D(4,nT,2,3,"div",4),h(5,"div",5,1),be(7),g()()}n&2&&(Ae("width",r.width,"px"),U("gui-arrow-left",r.isDirectionLeft())("gui-disabled",r.disabled),u(3),xe(r.dropdownText),u(),m("ngIf",r.isArrowEnabled),u(),Ae("bottom",r.topPosition,"px")("left",r.horizontalPosition,"px")("top",r.bottomPosition,"px"))},dependencies:[je,gd],styles:[`.gui-dropdown .gui-dropdown-container{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;background:#fff;border-color:#d6d6d6;border-radius:4px;border-style:solid;border-width:1px;box-sizing:border-box;color:#333;cursor:pointer;display:inline-block;font:14px Arial;padding:8px 12px;position:relative;width:auto}.gui-dropdown .gui-dropdown-container:hover{border-color:#999}.gui-dropdown .gui-dropdown-container:hover .gui-arrow-icon svg path{stroke:#464646}.gui-dropdown .gui-dropdown-container .gui-dropdown-arrow{cursor:pointer;position:absolute;right:12px;top:8px}.gui-dropdown .gui-dropdown-container .gui-dropdown-right.gui-dropdown-menu,.gui-dropdown .gui-dropdown-container .gui-dropdown-left.gui-dropdown-menu{margin:0}.gui-dropdown .gui-dropdown-container .gui-dropdown-menu{background:inherit;border-color:#d6d6d6;border-radius:4px;border-style:solid;border-width:1px;box-sizing:border-box;display:none;left:-1px;overflow:hidden;position:absolute;width:inherit;z-index:2}.gui-dropdown .gui-dropdown-container .gui-dropdown-menu .gui-item{list-style-type:none;padding:8px 12px;width:inherit}.gui-dropdown .gui-dropdown-container .gui-dropdown-menu .gui-item:hover{background:#cccccc}.gui-dropdown .gui-dropdown-container.gui-arrow-left{padding:8px 12px 8px 32px}.gui-dropdown .gui-dropdown-container.gui-arrow-left .gui-dropdown-arrow{left:12px;right:initial}.gui-dropdown.gui-menu-opened .gui-dropdown-container{border-color:#999}.gui-dropdown.gui-menu-opened .gui-dropdown-menu{display:block}.gui-dropdown .gui-disabled{color:#ccc;pointer-events:none}
|
|
`,`.gui-material .gui-dropdown .gui-dropdown-container{font-family:Roboto,Helvetica Neue,sans-serif}
|
|
`,`.gui-dark .gui-dropdown .gui-dropdown-container{background:#424242;border-color:#616161;color:#bdbdbd}.gui-dark .gui-dropdown .gui-dropdown-container:hover{border-color:#ce93d8}.gui-dark .gui-dropdown .gui-dropdown-container:hover .gui-dropdown-arrow svg path{stroke:#ce93d8}.gui-dark .gui-dropdown .gui-dropdown-container .gui-dropdown-menu{border-color:#616161}.gui-dark .gui-dropdown .gui-dropdown-container .gui-dropdown-menu .gui-item{border-top-color:#757575}.gui-dark .gui-dropdown .gui-dropdown-container .gui-dropdown-menu .gui-item:hover{background:#616161}.gui-dark .gui-dropdown.gui-options-opened .gui-dropdown-container{border-color:#ce93d8}.gui-dark .gui-dropdown .gui-disabled{opacity:.36}
|
|
`],encapsulation:2,changeDetection:0})}return i})(),cC=(()=>{class i{static \u0275fac=function(n){return new(n||i)};static \u0275cmp=I({type:i,selectors:[["gui-dropdown-item"]],ngContentSelectors:rn,decls:2,vars:0,consts:[[1,"gui-item"]],template:function(n,r){n&1&&(Ne(),h(0,"div",0),be(1),g())},encapsulation:2,changeDetection:0})}return i})(),Yo=(()=>{class i{static \u0275fac=function(n){return new(n||i)};static \u0275mod=M({type:i});static \u0275inj=T({imports:[q,Zp]})}return i})(),Ar=(()=>{class i extends Ra{constructor(e,n,r,o){super(e,n,r,o)}getComponent(){return PT}open(e){if(this.isComponentCreated())return;let n=Ce.FABRIC,r=this.getInjector();e&&e.theme&&(n=e.theme),e&&e.injector&&(r=e.injector);let o=ve.create({providers:[{provide:ns,useValue:n}],parent:r});this.createAndAppend({afterCompCreation:()=>this.afterComponentCreation(e),injector:o}),this.closeOnEscKey()}close(){if(this.isComponentCreated()){let e=this.getComponentRef();e.instance.visible=!1,e.instance.detectChanges(),Gi(400).pipe(re(this.unsubscribe$)).subscribe(()=>{this.removeComponent()})}}closeOnEscKey(){this.onCloseOnEsc().subscribe(()=>this.close())}afterComponentCreation(e){if(this.isComponentCreated()){let n=this.getComponentRef();n.instance.dialogNestedComponent=e.component,e?.width&&(n.instance.width=e.width),e?.height&&(n.instance.height=e.height),n.instance.setTransformOrigin(event)}}static \u0275fac=function(n){return new(n||i)(v(Je),v(Et),v(ve),v(ue))};static \u0275prov=k({token:i,factory:i.\u0275fac})}return i})(),PT=(()=>{class i extends Fa{componentFactoryResolver;changeDetectorRef;elRef;platformId;dialogService;container;dialogNestedComponent;visible=!1;width="400px";height="90vh";triggerPosition="";constructor(e,n,r,o,s,a,l){super(r,a,s),this.componentFactoryResolver=e,this.changeDetectorRef=n,this.elRef=r,this.platformId=o,this.dialogService=l}ngAfterViewInit(){super.ngAfterViewInit(),this.createNestedComponent(),Gi(0).pipe(re(this.unsubscribe$)).subscribe(()=>{this.visible=!0,this.detectChanges()})}detectChanges(){this.changeDetectorRef.detectChanges()}closeDialog(){this.dialogService.close()}clickOutside(e){this.isContainerClicked(e)&&this.dialogService.close()}setTransformOrigin(e){if(St(this.platformId)&&e){let n=e.clientX-window.innerWidth/2,r=e.clientY-window.innerHeight/2;this.triggerPosition=`${n}px ${r}px`}}isContainerClicked(e){let n=this.elRef.nativeElement.querySelector(".gui-dialog-content");return n?!n.contains(e.target):!1}createNestedComponent(){if(this.dialogNestedComponent&&this.container){let e=this.componentFactoryResolver.resolveComponentFactory(this.dialogNestedComponent);this.container.createComponent(e),this.detectChanges()}}static \u0275fac=function(n){return new(n||i)(c(Je),c(B),c(x),c(Ue),c(ri),c(We),c(pi(()=>Ar)))};static \u0275cmp=I({type:i,selectors:[["gui-fabric-dialog"]],viewQuery:function(n,r){if(n&1&&X(Sa,5,Ei),n&2){let o;L(o=z())&&(r.container=o.first)}},hostVars:2,hostBindings:function(n,r){n&2&&U("gui-fabric-dialog",!0)},features:[C],decls:6,vars:8,consts:[["container",""],[1,"gui-dialog-blanket"],[1,"gui-dialog-wrapper",3,"click"],[1,"gui-dialog-content"],[3,"click"]],template:function(n,r){if(n&1){let o=Z();b(0,"div",1),h(1,"div",2),F("click",function(a){return R(o),A(r.clickOutside(a))}),h(2,"div",3),D(3,rT,0,0,"ng-template",null,0,Ee),h(5,"gui-close-icon",4),F("click",function(){return R(o),A(r.closeDialog())}),g()()()}n&2&&(u(2),Ae("max-height",r.height)("max-width",r.width)("transform-origin",r.triggerPosition),U("gui-dialog-visible",r.visible))},dependencies:[Xp],styles:[`.gui-box-border{box-sizing:border-box}.gui-bg-transparent{background-color:transparent}.gui-border{border-width:1px}.gui-border-0{border-width:0}.gui-border-b{border-bottom-width:1px}.gui-border-t{border-top-width:1px}.gui-border-solid{border-style:solid}.gui-border-b-solid{border-bottom-style:solid}.gui-border-t-solid{border-top-style:solid}.gui-border-none{border-style:none}.gui-rounded{border-radius:4px}.gui-cursor-pointer{cursor:pointer}.gui-block{display:block}.gui-inline-block{display:inline-block}.gui-inline{display:inline}.gui-flex{display:-ms-flexbox;display:flex}.gui-hidden{display:none}.gui-display-grid{display:grid}.gui-flex-row{-ms-flex-direction:row;flex-direction:row}.gui-flex-row-reverse{-ms-flex-direction:row-reverse;flex-direction:row-reverse}.gui-flex-col{-ms-flex-direction:column;flex-direction:column}.gui-flex-col-reverse{-ms-flex-direction:column-reverse;flex-direction:column-reverse}.gui-justify-start{-ms-flex-pack:start;justify-content:flex-start}.gui-justify-end{-ms-flex-pack:end;justify-content:flex-end}.gui-justify-center{-ms-flex-pack:center;justify-content:center}.gui-justify-between{-ms-flex-pack:justify;justify-content:space-between}.gui-justify-around{-ms-flex-pack:distribute;justify-content:space-around}.gui-justify-evenly{-ms-flex-pack:space-evenly;justify-content:space-evenly}.gui-items-start{-ms-flex-align:start;align-items:flex-start}.gui-items-end{-ms-flex-align:end;align-items:flex-end}.gui-items-center{-ms-flex-align:center;align-items:center}.gui-items-between{-ms-flex-align:space-between;align-items:space-between}.gui-items-around{-ms-flex-align:space-around;align-items:space-around}.gui-items-evenly{-ms-flex-align:space-evenly;align-items:space-evenly}.gui-flex-wrap{-ms-flex-wrap:wrap;flex-wrap:wrap}.gui-flex-wrap-reverse{-ms-flex-wrap:wrap-reverse;flex-wrap:wrap-reverse}.gui-flex-nowrap{-ms-flex-wrap:nowrap;flex-wrap:nowrap}.gui-grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.gui-grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.gui-grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.gui-grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.gui-grid-cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}.gui-grid-cols-6{grid-template-columns:repeat(6,minmax(0,1fr))}.gui-grid-cols-7{grid-template-columns:repeat(7,minmax(0,1fr))}.gui-grid-cols-8{grid-template-columns:repeat(8,minmax(0,1fr))}.gui-grid-cols-9{grid-template-columns:repeat(9,minmax(0,1fr))}.gui-grid-rows-1{grid-template-rows:repeat(1,minmax(0,1fr))}.gui-grid-rows-2{grid-template-rows:repeat(2,minmax(0,1fr))}.gui-grid-rows-3{grid-template-rows:repeat(3,minmax(0,1fr))}.gui-grid-rows-4{grid-template-rows:repeat(4,minmax(0,1fr))}.gui-grid-rows-5{grid-template-rows:repeat(5,minmax(0,1fr))}.gui-grid-rows-6{grid-template-rows:repeat(6,minmax(0,1fr))}.gui-grid-rows-7{grid-template-rows:repeat(7,minmax(0,1fr))}.gui-grid-rows-8{grid-template-rows:repeat(8,minmax(0,1fr))}.gui-grid-rows-9{grid-template-rows:repeat(9,minmax(0,1fr))}.gui-grid-rows-gap-0{grid-row-gap:0}.gui-grid-rows-gap-1{grid-row-gap:1px}.gui-grid-rows-gap-2{grid-row-gap:2px}.gui-grid-rows-gap-3{grid-row-gap:3px}.gui-grid-rows-gap-4{grid-row-gap:4px}.gui-grid-rows-gap-5{grid-row-gap:6px}.gui-grid-rows-gap-6{grid-row-gap:8px}.gui-grid-rows-gap-7{grid-row-gap:10px}.gui-grid-rows-gap-8{grid-row-gap:12px}.gui-grid-rows-gap-10{grid-row-gap:16px}.gui-grid-rows-gap-13{grid-row-gap:22px}.gui-grid-rows-gap-23{grid-row-gap:42px}.gui-grid-cols-gap-0{grid-column-gap:0}.gui-grid-cols-gap-1{grid-column-gap:1px}.gui-grid-cols-gap-2{grid-column-gap:2px}.gui-grid-cols-gap-3{grid-column-gap:3px}.gui-grid-cols-gap-4{grid-column-gap:4px}.gui-grid-cols-gap-5{grid-column-gap:6px}.gui-grid-cols-gap-6{grid-column-gap:8px}.gui-grid-cols-gap-7{grid-column-gap:10px}.gui-grid-cols-gap-8{grid-column-gap:12px}.gui-grid-cols-gap-10{grid-column-gap:16px}.gui-grid-cols-gap-13{grid-column-gap:22px}.gui-grid-cols-gap-23{grid-column-gap:42px}.gui-h-full{height:100%}.gui-list-none{list-style-type:none}.gui-m-0{margin:0}.gui-mx-0{margin-left:0;margin-right:0}.gui-my-0{margin-bottom:0;margin-top:0}.-gui-m-0{margin:0}.-gui-mx-0{margin-left:0;margin-right:0}.-gui-my-0{margin-bottom:0;margin-top:0}.gui-m-1{margin:1px}.gui-mx-1{margin-left:1px;margin-right:1px}.gui-my-1{margin-bottom:1px;margin-top:1px}.-gui-m-1{margin:-1px}.-gui-mx-1{margin-left:-1px;margin-right:-1px}.-gui-my-1{margin-bottom:-1px;margin-top:-1px}.gui-m-2{margin:2px}.gui-mx-2{margin-left:2px;margin-right:2px}.gui-my-2{margin-bottom:2px;margin-top:2px}.-gui-m-2{margin:-2px}.-gui-mx-2{margin-left:-2px;margin-right:-2px}.-gui-my-2{margin-bottom:-2px;margin-top:-2px}.gui-m-3{margin:3px}.gui-mx-3{margin-left:3px;margin-right:3px}.gui-my-3{margin-bottom:3px;margin-top:3px}.-gui-m-3{margin:-3px}.-gui-mx-3{margin-left:-3px;margin-right:-3px}.-gui-my-3{margin-bottom:-3px;margin-top:-3px}.gui-m-4{margin:4px}.gui-mx-4{margin-left:4px;margin-right:4px}.gui-my-4{margin-bottom:4px;margin-top:4px}.-gui-m-4{margin:-4px}.-gui-mx-4{margin-left:-4px;margin-right:-4px}.-gui-my-4{margin-bottom:-4px;margin-top:-4px}.gui-m-5{margin:6px}.gui-mx-5{margin-left:6px;margin-right:6px}.gui-my-5{margin-bottom:6px;margin-top:6px}.-gui-m-5{margin:-6px}.-gui-mx-5{margin-left:-6px;margin-right:-6px}.-gui-my-5{margin-bottom:-6px;margin-top:-6px}.gui-m-6{margin:8px}.gui-mx-6{margin-left:8px;margin-right:8px}.gui-my-6{margin-bottom:8px;margin-top:8px}.-gui-m-6{margin:-8px}.-gui-mx-6{margin-left:-8px;margin-right:-8px}.-gui-my-6{margin-bottom:-8px;margin-top:-8px}.gui-m-7{margin:10px}.gui-mx-7{margin-left:10px;margin-right:10px}.gui-my-7{margin-bottom:10px;margin-top:10px}.-gui-m-7{margin:-10px}.-gui-mx-7{margin-left:-10px;margin-right:-10px}.-gui-my-7{margin-bottom:-10px;margin-top:-10px}.gui-m-8{margin:12px}.gui-mx-8{margin-left:12px;margin-right:12px}.gui-my-8{margin-bottom:12px;margin-top:12px}.-gui-m-8{margin:-12px}.-gui-mx-8{margin-left:-12px;margin-right:-12px}.-gui-my-8{margin-bottom:-12px;margin-top:-12px}.gui-m-10{margin:16px}.gui-mx-10{margin-left:16px;margin-right:16px}.gui-my-10{margin-bottom:16px;margin-top:16px}.-gui-m-10{margin:-16px}.-gui-mx-10{margin-left:-16px;margin-right:-16px}.-gui-my-10{margin-bottom:-16px;margin-top:-16px}.gui-m-13{margin:22px}.gui-mx-13{margin-left:22px;margin-right:22px}.gui-my-13{margin-bottom:22px;margin-top:22px}.-gui-m-13{margin:-22px}.-gui-mx-13{margin-left:-22px;margin-right:-22px}.-gui-my-13{margin-bottom:-22px;margin-top:-22px}.gui-m-23{margin:42px}.gui-mx-23{margin-left:42px;margin-right:42px}.gui-my-23{margin-bottom:42px;margin-top:42px}.-gui-m-23{margin:-42px}.-gui-mx-23{margin-left:-42px;margin-right:-42px}.-gui-my-23{margin-bottom:-42px;margin-top:-42px}.gui-mb-4{margin-bottom:4px}.gui-mb-6{margin-bottom:8px}.gui-mb-8{margin-bottom:12px}.gui-mb-10{margin-bottom:16px}.gui-mb-18{margin-bottom:32px}.gui-mr-0{margin-right:0}.gui-mr-5{margin-right:6px}.gui-mr-auto{margin-right:auto}.gui-ml-auto{margin-left:auto}.gui-ml-6{margin-left:8px}.gui-mt-0{margin-top:0}.gui-mt-4{margin-top:4px}.gui-mt-6{margin-top:8px}.gui-mt-10{margin-top:16px}.gui-mt-14{margin-top:24px}.gui-overflow-hidden{overflow:hidden}.gui-overflow-y-scroll{overflow-y:scroll}.gui-overflow-x-hidden{overflow-x:hidden}.gui-overflow-auto{overflow:auto}.gui-p-0{padding:0}.gui-px-0{padding-left:0;padding-right:0}.gui-py-0{padding-bottom:0;padding-top:0}.gui-p-1{padding:1px}.gui-px-1{padding-left:1px;padding-right:1px}.gui-py-1{padding-bottom:1px;padding-top:1px}.gui-p-2{padding:2px}.gui-px-2{padding-left:2px;padding-right:2px}.gui-py-2{padding-bottom:2px;padding-top:2px}.gui-p-3{padding:3px}.gui-px-3{padding-left:3px;padding-right:3px}.gui-py-3{padding-bottom:3px;padding-top:3px}.gui-p-4{padding:4px}.gui-px-4{padding-left:4px;padding-right:4px}.gui-py-4{padding-bottom:4px;padding-top:4px}.gui-p-5{padding:6px}.gui-px-5{padding-left:6px;padding-right:6px}.gui-py-5{padding-bottom:6px;padding-top:6px}.gui-p-6{padding:8px}.gui-px-6{padding-left:8px;padding-right:8px}.gui-py-6{padding-bottom:8px;padding-top:8px}.gui-p-7{padding:10px}.gui-px-7{padding-left:10px;padding-right:10px}.gui-py-7{padding-bottom:10px;padding-top:10px}.gui-p-8{padding:12px}.gui-px-8{padding-left:12px;padding-right:12px}.gui-py-8{padding-bottom:12px;padding-top:12px}.gui-p-10{padding:16px}.gui-px-10{padding-left:16px;padding-right:16px}.gui-py-10{padding-bottom:16px;padding-top:16px}.gui-p-13{padding:22px}.gui-px-13{padding-left:22px;padding-right:22px}.gui-py-13{padding-bottom:22px;padding-top:22px}.gui-p-23{padding:42px}.gui-px-23{padding-left:42px;padding-right:42px}.gui-py-23{padding-bottom:42px;padding-top:42px}.gui-pr-10{padding-right:16px}.gui-pl-9{padding-right:10px}.gui-pb-6{padding-bottom:8px}.gui-pb-12{padding-bottom:20px}.gui-pl-21{padding-left:38px}.gui-pt-4{padding-top:4px}.gui-pt-6{padding-top:8px}.gui-pt-10{padding-top:16px}.gui-pt-12{padding-top:20px}.gui-pt-14{padding-top:24px}.gui-static{position:static}.gui-fixed{position:fixed}.gui-relative{position:relative}.gui-absolute{position:absolute}.gui-text-xxs{font-size:11px}.gui-text-xs{font-size:12px}.gui-text-sm{font-size:13px}.gui-text-base{font-size:14px}.gui-text-lg{font-size:16px}.gui-text-xl{font-size:18px}.gui-text-2xl{font-size:20px}.gui-text-3xl{font-size:22px}.gui-leading-4{line-height:16px}.gui-leading-6{line-height:24px}.gui-font-thin{font-weight:100}.gui-font-extralight{font-weight:200}.gui-font-light{font-weight:300}.gui-font-normal{font-weight:400}.gui-font-medium{font-weight:500}.gui-font-semibold{font-weight:600}.gui-font-bold{font-weight:700}.gui-font-extrabold{font-weight:800}.gui-font-black{font-weight:900}.gui-italic{font-style:italic}.gui-not-italic{font-style:normal}.gui-whitespace-nowrap{white-space:nowrap}.gui-overflow-ellipsis{text-overflow:ellipsis}.gui-no-underline{text-decoration:none}.gui-text-center{text-align:center}.gui-w-full{width:100%}.gui-w-96{width:384px}.gui-w-3\\/5{width:60%}.gui-fabric-dialog *,.gui-fabric-dialog *:after,.gui-fabric-dialog *:before{box-sizing:border-box}.gui-fabric-dialog input{font-size:13px;outline:0}.gui-dialog-blanket{background:rgba(0,0,0,.32);height:100%;left:0;pointer-events:none;position:fixed;top:0;width:100%;z-index:1000}.gui-dialog-wrapper{font-family:Arial;height:100%;width:100%;position:fixed;pointer-events:auto;left:0;top:0;z-index:1000}.gui-dialog-content{background-color:#fff;border-radius:4px;box-shadow:0 3px 7px #999;padding:24px 16px;position:fixed;left:50%;top:50%;transform:scale3d(0,0,0) translate(-50%) translateY(-50%);opacity:0;transition:all .4s;overflow:auto;z-index:1000}.gui-dialog-content.gui-dialog-visible{transform:scaleZ(1) translate(-50%) translateY(-50%);opacity:1}
|
|
`,`.gui-dark .gui-dialog-wrapper .gui-dialog-content{background:#424242;box-shadow:0 1px 2px #424242;color:#bdbdbd}.gui-dark .gui-dialog-wrapper .gui-dialog-content .gui-dialog-close:before,.gui-dark .gui-dialog-wrapper .gui-dialog-content .gui-dialog-close:after{background:#bdbdbd}
|
|
`],encapsulation:2,changeDetection:0})}return i})(),NT=(()=>{class i{theme$=new ke;onTheme(){return this.theme$.asObservable()}nextTheme(e){this.theme$.next(this.toTheme(e))}toTheme(e){switch(e.toLowerCase()){case"fabric":return Ce.FABRIC;case"material":return Ce.MATERIAL;case"generic":return Ce.GENERIC;case"light":return Ce.LIGHT;case"dark":return Ce.DARK;default:return Ce.FABRIC}}static \u0275fac=function(n){return new(n||i)};static \u0275prov=k({token:i,factory:i.\u0275fac})}return i})(),Qo=(()=>{class i{static \u0275fac=function(n){return new(n||i)};static \u0275mod=M({type:i});static \u0275inj=T({providers:[Ar,NT],imports:[q,Jp]})}return i})();var Ko=(()=>{class i{static \u0275fac=function(n){return new(n||i)};static \u0275mod=M({type:i});static \u0275inj=T({imports:[q]})}return i})(),jT=(()=>{class i{elementRef;renderer;width=5;diameter=90;primary=!1;secondary=!1;r=0;circumference=0;croppedCircle=0;circleSize=0;constructor(e,n){this.elementRef=e,this.renderer=n}ngOnChanges(e){this.calculateCircle(),e.primary&&(this.primary?this.addClass("gui-primary"):this.removeClass("gui-primary")),e.secondary&&(this.secondary?this.addClass("gui-secondary"):this.removeClass("gui-secondary"))}ngOnInit(){this.calculateCircle()}calculateCircle(){this.circumference=this.calculateCircumference(this.diameter),this.r=this.calculateR(this.diameter),this.croppedCircle=this.calculateDashes(this.circumference),this.circleSize=this.calculateSize(this.diameter,this.width)}calculateCircumference(e){return e*Math.PI}calculateR(e){return e/2}calculateDashes(e){return e*.25}calculateSize(e,n){return e+n}addClass(e){this.renderer.addClass(this.elementRef.nativeElement,e)}removeClass(e){this.renderer.removeClass(this.elementRef.nativeElement,e)}static \u0275fac=function(n){return new(n||i)(c(x),c(We))};static \u0275dir=N({type:i,inputs:{width:"width",diameter:"diameter",primary:"primary",secondary:"secondary"},features:[G]})}return i})();var Zo=(()=>{class i{static \u0275fac=function(n){return new(n||i)};static \u0275mod=M({type:i});static \u0275inj=T({imports:[q]})}return i})(),lC=(()=>{class i{elementRef;renderer;name="";checked=!1;disabled=!1;changed=new W;constructor(e,n){this.elementRef=e,this.renderer=n}ngOnChanges(){this.disabled?this.renderer.addClass(this.elementRef.nativeElement,"gui-disabled"):this.renderer.removeClass(this.elementRef.nativeElement,"gui-disabled")}check(){this.checked=!0,this.changed.emit(this.checked)}static \u0275fac=function(n){return new(n||i)(c(x),c(We))};static \u0275cmp=I({type:i,selectors:[["gui-radio-button"]],hostVars:2,hostBindings:function(n,r){n&2&&U("gui-radio-button",!0)},inputs:{name:"name",checked:"checked",disabled:"disabled"},outputs:{changed:"changed"},features:[G],ngContentSelectors:rn,decls:4,vars:3,consts:[["type","radio",3,"click","checked","disabled"],[1,"gui-radio-checkmark"]],template:function(n,r){n&1&&(Ne(),h(0,"label")(1,"input",0),F("click",function(){return r.check()}),g(),b(2,"span",1),be(3),g()),n&2&&(u(),m("checked",r.checked)("disabled",r.disabled),De("name",r.name))},styles:[`.gui-radio-button{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;display:inline-block;font:14px Arial;line-height:18px;padding-left:32px;position:relative}.gui-radio-button label{cursor:pointer}.gui-radio-button label:hover .gui-radio-checkmark{border-color:#999}.gui-radio-button input{height:0;opacity:0;position:absolute;width:0}.gui-radio-button .gui-radio-checkmark{border-color:#d6d6d6;border-radius:50%;border-style:solid;border-width:1px;box-sizing:content-box;height:16px;left:0;position:absolute;width:16px}.gui-radio-button input:checked+.gui-radio-checkmark{border-color:#999}.gui-radio-button input:focus+.gui-radio-checkmark{border-color:#6fb4e8}.gui-radio-button.gui-disabled.gui-radio-button{color:#ccc;pointer-events:none}.gui-radio-button .gui-radio-checkmark:after{content:"";display:none;position:absolute}.gui-radio-button input:checked+.gui-radio-checkmark:after{box-sizing:content-box;display:block}.gui-radio-button .gui-radio-checkmark:after{background:#333;border-radius:50%;height:16px;-ms-transform:scale(.5);transform:scale(.5);width:16px}
|
|
`,`.gui-material .gui-radio-button{font-family:Roboto,Helvetica Neue,sans-serif}
|
|
`,`.gui-dark .gui-radio-button{color:#bdbdbd}.gui-dark .gui-radio-button .gui-radio-checkmark{border-color:#878787}.gui-dark .gui-radio-button input:checked+.gui-radio-checkmark{border-color:#878787}.gui-dark .gui-radio-button input:focus+.gui-radio-checkmark{border-color:#ce93d8}.gui-dark .gui-radio-button .gui-radio-checkmark:after{background:#878787}.gui-dark .gui-radio-button.gui-disabled.gui-radio-button{opacity:.36}
|
|
`],encapsulation:2,changeDetection:0})}return i})(),Xo=(()=>{class i{static \u0275fac=function(n){return new(n||i)};static \u0275mod=M({type:i});static \u0275inj=T({imports:[q]})}return i})();var Jo=(()=>{class i{static \u0275fac=function(n){return new(n||i)};static \u0275mod=M({type:i});static \u0275inj=T({imports:[q]})}return i})(),Ft=function(i){return i[i.TOP_RIGHT=0]="TOP_RIGHT",i[i.TOP_LEFT=1]="TOP_LEFT",i[i.BOTTOM_RIGHT=2]="BOTTOM_RIGHT",i[i.BOTTOM_LEFT=3]="BOTTOM_LEFT",i}(Ft||{}),VT=(()=>{class i{renderer;notificationRef;notification;onNotificationClose=new W;unsub$=new ke;constructor(e){this.renderer=e}ngOnInit(){this.notification?.timer.enabled&&Gi(this.notification.timer.duration||0).pipe(re(this.unsub$)).subscribe(()=>this.closeNotification())}ngOnDestroy(){this.unsub$.next(),this.unsub$.complete()}closeNotification(){this.addCloseAnimation(),Gi(200).pipe(re(this.unsub$)).subscribe(()=>this.onNotificationClose.emit(this.notification))}addCloseAnimation(){if(this.notificationRef){let e=this.notificationRef.nativeElement;this.renderer.addClass(e,"gui-notification-active")}}isRightSide(){return this.notification?.position===Ft.TOP_RIGHT||this.notification?.position===Ft.BOTTOM_RIGHT}static \u0275fac=function(n){return new(n||i)(c(We))};static \u0275cmp=I({type:i,selectors:[["gui-notification"]],viewQuery:function(n,r){if(n&1&&X(oT,5,x),n&2){let o;L(o=z())&&(r.notificationRef=o.first)}},inputs:{notification:"notification"},outputs:{onNotificationClose:"onNotificationClose"},decls:4,vars:5,consts:[["guiNotification",""],[1,"gui-notification"],[3,"click"]],template:function(n,r){if(n&1){let o=Z();h(0,"div",1,0)(2,"gui-close-icon",2),F("click",function(){return R(o),A(r.closeNotification())}),g(),S(3),g()}n&2&&(U("gui-notification-right-side",r.isRightSide())("gui-notification-left-side",!r.isRightSide()),u(3),oe(" ",r.notification.description," "))},dependencies:[Xp],encapsulation:2,changeDetection:0})}return i})(),Bp=class{description;index;timer;position;constructor(t,e,n,r){this.description=t,this.index=e,this.timer=n,this.position=r}},dC=(()=>{class i extends Ra{static DEFAULT_DURATION=4e3;fabricNotification;notificationIndex=0;unsub$=new ke;constructor(e,n,r,o){super(e,n,r,o)}ngOnDestroy(){this.removeNotificationContainer()}getComponent(){return zT}open(e,n){let r=Ft.TOP_RIGHT;if(n&&n.position&&(r=n.position),this.createFabricNotification(e,r,n),this.isComponentCreated())this.pushNotification(r);else{let o=Ce.FABRIC,s=this.getInjector();n&&n.theme&&(o=n.theme),n&&n.injector&&(s=n.injector);let a=ve.create({providers:[{provide:ns,useValue:o}],parent:s});this.createAndAppend({injector:a}),this.pushNotification(r)}}close(){this.removeNotificationContainer(),this.unsub$.next(),this.unsub$.complete()}removeNotificationContainer(){this.isComponentCreated()&&(this.removeComponent(),this.notificationIndex=0)}createFabricNotification(e,n,r){let o=i.DEFAULT_DURATION,s=!0;r&&r.timer&&(r.timer.duration&&(o=r.timer.duration,r.timer.extendTimer&&(o=r.timer.duration*(this.notificationIndex+1))),r.timer.enabled!==void 0&&(s=r.timer.enabled)),this.fabricNotification=new Bp(e,this.notificationIndex,{duration:o,enabled:s},n),this.notificationIndex+=1}pushNotification(e){if(!this.fabricNotification||!this.isComponentCreated())return;let n=this.getComponentRef();switch(e){case Ft.TOP_RIGHT:n.instance.notificationsTopRight=n.instance.notificationsTopRight.concat(this.fabricNotification);break;case Ft.TOP_LEFT:n.instance.notificationsTopLeft=n.instance.notificationsTopLeft.concat(this.fabricNotification);break;case Ft.BOTTOM_RIGHT:n.instance.notificationsBottomRight=n.instance.notificationsBottomRight.concat(this.fabricNotification);break;case Ft.BOTTOM_LEFT:n.instance.notificationsBottomLeft=n.instance.notificationsBottomLeft.concat(this.fabricNotification);break;default:break}n.instance.detectChanges()}static \u0275fac=function(n){return new(n||i)(v(Je),v(Et),v(ve),v(ue))};static \u0275prov=k({token:i,factory:i.\u0275fac})}return i})(),LT=(()=>{class i{notifications=[];position;onNotificationClose=new W;FabricNotificationPosition=Ft;emitClosedNotification(e){this.onNotificationClose.emit(e)}isPosition(e){return this.position===e}static \u0275fac=function(n){return new(n||i)};static \u0275cmp=I({type:i,selectors:[["gui-notifications-container"]],hostVars:8,hostBindings:function(n,r){n&2&&U("gui-notifications-top-right",r.isPosition(r.FabricNotificationPosition.TOP_RIGHT))("gui-notifications-top-left",r.isPosition(r.FabricNotificationPosition.TOP_LEFT))("gui-notifications-bottom-right",r.isPosition(r.FabricNotificationPosition.BOTTOM_RIGHT))("gui-notifications-bottom-left",r.isPosition(r.FabricNotificationPosition.BOTTOM_LEFT))},inputs:{notifications:"notifications",position:"position"},outputs:{onNotificationClose:"onNotificationClose"},decls:1,vars:1,consts:[[3,"notification","onNotificationClose",4,"ngFor","ngForOf"],[3,"onNotificationClose","notification"]],template:function(n,r){n&1&&D(0,sT,1,1,"gui-notification",0),n&2&&m("ngForOf",r.notifications)},dependencies:[rt,VT],encapsulation:2,changeDetection:0})}return i})(),zT=(()=>{class i extends Fa{changeDetectorRef;notificationsService;notificationsTopRight=[];notificationsTopLeft=[];notificationsBottomRight=[];notificationsBottomLeft=[];FabricNotificationPosition=Ft;constructor(e,n,r,o,s,a){super(n,r,o),this.changeDetectorRef=e,this.notificationsService=a}removeNotification(e){switch(e.position){case Ft.TOP_RIGHT:this.notificationsTopRight=this.notificationsTopRight.filter(n=>n.index!==e.index);break;case Ft.TOP_LEFT:this.notificationsTopLeft=this.notificationsTopLeft.filter(n=>n.index!==e.index);break;case Ft.BOTTOM_RIGHT:this.notificationsBottomRight=this.notificationsBottomRight.filter(n=>n.index!==e.index);break;case Ft.BOTTOM_LEFT:this.notificationsBottomLeft=this.notificationsBottomLeft.filter(n=>n.index!==e.index);break;default:break}this.detectChanges(),this.checkNotificationsLength()}detectChanges(){this.changeDetectorRef.detectChanges()}checkNotificationsLength(){this.notificationsTopRight.length===0&&this.notificationsTopLeft.length===0&&this.notificationsBottomRight.length===0&&this.notificationsBottomLeft.length===0&&this.notificationsService.close()}isContainerNotEmpty(e){return e&&e.length>0}static \u0275fac=function(n){return new(n||i)(c(B),c(x),c(We),c(ri),c(ns),c(pi(()=>dC)))};static \u0275cmp=I({type:i,selectors:[["ng-component"]],hostVars:2,hostBindings:function(n,r){n&2&&U("gui-notifications-overlay",!0)},features:[C],decls:4,vars:4,consts:[[3,"notifications","position","onNotificationClose",4,"ngIf"],[3,"onNotificationClose","notifications","position"]],template:function(n,r){n&1&&D(0,aT,1,2,"gui-notifications-container",0)(1,cT,1,2,"gui-notifications-container",0)(2,lT,1,2,"gui-notifications-container",0)(3,dT,1,2,"gui-notifications-container",0),n&2&&(m("ngIf",r.isContainerNotEmpty(r.notificationsTopRight)),u(),m("ngIf",r.isContainerNotEmpty(r.notificationsTopLeft)),u(),m("ngIf",r.isContainerNotEmpty(r.notificationsBottomRight)),u(),m("ngIf",r.isContainerNotEmpty(r.notificationsBottomLeft)))},dependencies:[je,LT],styles:[`.gui-notifications-overlay{-ms-flex-align:center;align-items:center;font-family:Arial;-ms-flex-pack:center;justify-content:center;max-width:400px;position:fixed;z-index:1000}.gui-notifications-overlay gui-notifications-container{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;position:fixed}.gui-notifications-overlay gui-notifications-container.gui-notifications-top-left{left:0;top:0}.gui-notifications-overlay gui-notifications-container.gui-notifications-top-right{right:0;top:0}.gui-notifications-overlay gui-notifications-container.gui-notifications-bottom-left{bottom:0;left:0}.gui-notifications-overlay gui-notifications-container.gui-notifications-bottom-right{bottom:0;right:0}.gui-notifications-overlay .gui-notification{background:#fff;box-shadow:0 3px 6px -4px #0000001f,0 6px 16px #00000014,0 9px 28px 8px #0000000d;display:block;margin:16px;padding:32px;position:relative}.gui-notifications-overlay .gui-notification.gui-notification-right-side{animation:loadNotificationRightSide .1s forwards}.gui-notifications-overlay .gui-notification.gui-notification-left-side{animation:loadNotificationLeftSide .1s forwards}@keyframes loadNotificationRightSide{0%{transform:translate(50%)}to{transform:translate(0)}}@keyframes loadNotificationLeftSide{0%{transform:translate(-50%)}to{transform:translate(0)}}.gui-notifications-overlay .gui-notification.gui-notification-active.gui-notification-right-side{animation:closeNotificationRightSide .2s forwards}@keyframes closeNotificationRightSide{0%{transform:translate(0)}to{transform:translate(100%)}}.gui-notifications-overlay .gui-notification.gui-notification-active.gui-notification-left-side{animation:closeNotificationLeftSide .2s forwards}@keyframes closeNotificationLeftSide{0%{transform:translate(0)}to{transform:translate(-100%)}}
|
|
`,`.gui-dark .gui-notification{background:#424242}
|
|
`,`.gui-material .gui-notification{background:#3949ab;color:#fff;font-family:Roboto,Helvetica Neue,sans-serif;font-weight:500}
|
|
`],encapsulation:2,changeDetection:0})}return i})(),Kw=(()=>{class i{static \u0275fac=function(n){return new(n||i)};static \u0275mod=M({type:i});static \u0275inj=T({providers:[dC],imports:[q,Jp]})}return i})(),uC=(()=>{class i extends Ra{constructor(e,n,r,o){super(e,n,r,o)}getComponent(){return BT}open(e){this.createAndAppend({afterCompCreation:()=>this.afterCompCreation(e)})}close(){this.removeComponent()}afterCompCreation(e){if(this.isComponentCreated()){let n=this.getComponentRef();n.instance.text=e,n.instance.detectChanges()}}static \u0275fac=function(n){return new(n||i)(v(Je),v(Et),v(ve),v(ue))};static \u0275prov=k({token:i,factory:i.\u0275fac})}return i})(),BT=(()=>{class i{messageService;changeDetectorRef;text="";constructor(e,n){this.messageService=e,this.changeDetectorRef=n}detectChanges(){this.changeDetectorRef.detectChanges()}close(){this.messageService.close()}static \u0275fac=function(n){return new(n||i)(c(uC),c(B))};static \u0275cmp=I({type:i,selectors:[["gui-message"]],decls:4,vars:1,consts:[[1,"gui-message"],[3,"click"]],template:function(n,r){n&1&&(h(0,"div",0),S(1),h(2,"button",1),F("click",function(){return r.close()}),S(3,"X"),g()()),n&2&&(u(),oe(" ",r.text," "))},styles:[`.gui-message{left:50%;position:fixed;top:50%}
|
|
`],encapsulation:2,changeDetection:0})}return i})(),Zw=(()=>{class i{static \u0275fac=function(n){return new(n||i)};static \u0275mod=M({type:i});static \u0275inj=T({providers:[uC],imports:[q]})}return i})(),HT=(()=>{class i{svgRef;svg="";ngAfterViewInit(){this.svgRef&&(this.svgRef.nativeElement.innerHTML=this.svg)}static \u0275fac=function(n){return new(n||i)};static \u0275cmp=I({type:i,selectors:[["gui-svg-template"]],viewQuery:function(n,r){if(n&1&&X(uT,5,x),n&2){let o;L(o=z())&&(r.svgRef=o.first)}},inputs:{svg:"svg"},decls:2,vars:0,consts:[["svgEl",""]],template:function(n,r){n&1&&b(0,"div",null,0)},encapsulation:2,changeDetection:0})}return i})(),mC=(()=>{class i extends sn{renderer;changeDetectorRef;platformId;tabRef;tabItemRef;tabMenuList;menu=[];active="";scrollActive=!1;Direction=en;listPosition=0;menuListWidth=0;scrollAmount=60;ACTIVE_TAB_CLASS_NAME="gui-active";constructor(e,n,r){super(),this.renderer=e,this.changeDetectorRef=n,this.platformId=r}ngAfterViewInit(){this.toggleTab(this.active),this.calculateMenuWidth(),this.showMenuArrows(),this.checkIfMenuFitsOnResize()}toggleTab(e){this.removeActive(),this.setActive(e)}isSvg(e){return typeof e=="object"}getTabName(e){return typeof e=="object"?e.name:e}scrollTabList(e){if(this.tabRef){let n=this.tabRef.nativeElement.querySelector(".gui-tab-menu-list").offsetWidth,r=this.menuListWidth-n;e&&r>this.listPosition?this.listPosition+=this.scrollAmount:!e&&this.listPosition>0&&(this.listPosition-=this.scrollAmount),this.tabRef.nativeElement.querySelector(".gui-tab-menu-list").scrollLeft=this.listPosition}}setActive(e){if(this.tabRef&&this.tabItemRef){typeof e=="object"&&(e=e.name);let n=this.tabRef.nativeElement.querySelector('[data-tab="'+e+'"]'),r=this.tabItemRef.nativeElement.querySelector('[data-tab="'+e+'"]');this.addClass(n,this.ACTIVE_TAB_CLASS_NAME),this.addClass(r,this.ACTIVE_TAB_CLASS_NAME)}}removeActive(){if(this.tabRef&&this.tabItemRef){let e=this.tabRef.nativeElement.querySelector("."+this.ACTIVE_TAB_CLASS_NAME),n=this.tabItemRef.nativeElement.querySelector("."+this.ACTIVE_TAB_CLASS_NAME);this.removeClass(e,this.ACTIVE_TAB_CLASS_NAME),this.removeClass(n,this.ACTIVE_TAB_CLASS_NAME)}}addClass(e,n){e&&this.renderer.addClass(e,n)}removeClass(e,n){e&&this.renderer.removeClass(e,n)}checkIfMenuFitsOnResize(){St(this.platformId)&&tr(window,"resize").pipe(re(this.unsubscribe$)).subscribe(()=>this.showMenuArrows())}calculateMenuWidth(){this.tabMenuList&&(this.menuListWidth=0,this.tabMenuList.forEach(e=>{this.menuListWidth+=e.nativeElement.offsetWidth}))}showMenuArrows(){if(this.tabRef){let e=this.tabRef.nativeElement.querySelector(".gui-tab-menu").offsetWidth;this.scrollActive=e<this.menuListWidth,this.changeDetectorRef.detectChanges()}}static \u0275fac=function(n){return new(n||i)(c(We),c(B),c(Ue))};static \u0275cmp=I({type:i,selectors:[["gui-tab"]],viewQuery:function(n,r){if(n&1&&(X(mT,5,x),X(hT,5,x),X(gT,5,x)),n&2){let o;L(o=z())&&(r.tabRef=o.first),L(o=z())&&(r.tabItemRef=o.first),L(o=z())&&(r.tabMenuList=o)}},hostVars:2,hostBindings:function(n,r){n&2&&U("gui-tab",!0)},inputs:{menu:"menu",active:"active",scrollActive:"scrollActive"},features:[C],ngContentSelectors:rn,decls:10,vars:3,consts:[["tab",""],["tabItem",""],["tabMenuList",""],[1,"gui-tab-menu"],["class","scroll-button",3,"click",4,"ngIf"],[1,"gui-tab-menu-list"],["class","gui-tab-menu-item",3,"click",4,"ngFor","ngForOf"],[1,"gui-tab-content"],[1,"scroll-button",3,"click"],[3,"direction"],[1,"gui-tab-menu-item",3,"click"],[4,"ngIf"],[3,"svg"]],template:function(n,r){n&1&&(Ne(),h(0,"div",null,0)(2,"div",3),D(3,pT,2,1,"div",4),h(4,"div",5),D(5,vT,4,3,"div",6),g(),D(6,xT,2,0,"div",4),g(),h(7,"div",7,1),be(9),g()()),n&2&&(u(3),m("ngIf",r.scrollActive),u(2),m("ngForOf",r.menu),u(),m("ngIf",r.scrollActive))},dependencies:[rt,je,gd,HT],styles:[`.gui-tab{font:14px Arial}.gui-tab .gui-tab-content{background:#fff;border-color:#d6d6d6;border-radius:0 0 4px 4px;border-style:solid;border-width:1px;padding:12px}.gui-tab .gui-tab-menu{display:-ms-flexbox;display:flex;margin-bottom:-1px}.gui-tab .gui-tab-menu .gui-tab-menu-list{border-radius:4px 4px 0 0;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-wrap:nowrap;flex-wrap:nowrap;overflow:hidden}.gui-tab .gui-tab-menu .gui-tab-menu-item{background:#fafafa;border-color:#d6d6d6;border-radius:4px 4px 0 0;border-style:solid;border-width:1px;box-sizing:border-box;cursor:pointer;display:inline-block;height:34px;margin-right:2px;padding:8px 16px;position:relative;text-align:center;white-space:nowrap}.gui-tab .gui-tab-menu .gui-tab-menu-item:nth-last-child(1){margin-right:0}.gui-tab .gui-tab-menu .gui-tab-menu-item svg{height:16px;width:16px}.gui-tab .gui-tab-menu .gui-tab-menu-item svg path{fill:#aaa}.gui-tab .gui-tab-menu .scroll-button{background:transparent;box-sizing:border-box;color:#ccc;cursor:pointer;font-weight:700;height:34px;padding:8px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.gui-tab .gui-tab-menu .scroll-button:hover svg path{stroke:#464646}.gui-tab .gui-tab-item{display:none}.gui-tab .gui-active.gui-tab-menu-item{background:#fff;border-color:#d6d6d6 #d6d6d6 #fff #d6d6d6;border-radius:4px 4px 0 0;border-style:solid;border-width:1px;color:#2185d0}.gui-tab .gui-active.gui-tab-menu-item svg path{fill:#2185d0}.gui-tab .gui-active.gui-tab-item{display:block}
|
|
`,`.gui-material .gui-tab{font:14px Roboto,Helvetica Neue,sans-serif}
|
|
`,`.gui-dark .gui-tab{color:#bdbdbd}.gui-dark .gui-tab .gui-tab-content{background:#424242;border-color:#616161}.gui-dark .gui-tab .gui-tab-menu-item{background:#616161;border-color:transparent}.gui-dark .gui-tab .gui-active.gui-tab-menu-item{background:#424242;border-color:#616161 #616161 transparent #616161;color:#ce93d8}
|
|
`],encapsulation:2,changeDetection:0})}return i})(),hC=(()=>{class i{tab="";static \u0275fac=function(n){return new(n||i)};static \u0275cmp=I({type:i,selectors:[["gui-tab-item"]],inputs:{tab:"tab"},ngContentSelectors:rn,decls:2,vars:1,consts:[[1,"gui-tab-item"]],template:function(n,r){n&1&&(Ne(),h(0,"div",0),be(1),g()),n&2&&De("data-tab",r.tab)},encapsulation:2,changeDetection:0})}return i})(),$T=(()=>{class i{static \u0275fac=function(n){return new(n||i)};static \u0275mod=M({type:i});static \u0275inj=T({imports:[q]})}return i})(),On=(()=>{class i{static \u0275fac=function(n){return new(n||i)};static \u0275mod=M({type:i});static \u0275inj=T({imports:[q,Zp,$T]})}return i})(),UT=(()=>{class i{elementRef;text="";left=0;top=0;constructor(e){this.elementRef=e}correctPosition(){this.top-=this.elementRef.nativeElement.offsetHeight}static \u0275fac=function(n){return new(n||i)(c(x))};static \u0275cmp=I({type:i,selectors:[["ng-component"]],hostVars:6,hostBindings:function(n,r){n&2&&(Ae("left",r.left,"px")("top",r.top,"px"),U("gui-tooltip",!0))},decls:1,vars:1,template:function(n,r){n&1&&S(0),n&2&&oe(" ",r.text," ")},styles:[`.gui-tooltip{background:rgba(0,0,0,.8);border-radius:4px;border-style:solid;border-width:0;box-sizing:border-box;color:#fff;display:block;font:14px Arial;font-weight:400;padding:8px 12px;position:absolute;-ms-transform:translateX(-50%);transform:translate(-50%);vertical-align:middle;z-index:10}.gui-tooltip:after{border-color:#333 transparent transparent transparent;border-style:solid;border-width:5px;content:"";left:50%;margin-left:-5px;position:absolute;top:100%}
|
|
`],encapsulation:2,changeDetection:0})}return i})(),bd=(()=>{class i extends sn{componentFactoryResolver;injector;elementRef;applicationRef;document;platformId;static tooltipOffset=8;text="";tooltipRef=null;tooltipTopPosition;tooltipLeftPosition;constructor(e,n,r,o,s,a){super(),this.componentFactoryResolver=e,this.injector=n,this.elementRef=r,this.applicationRef=o,this.document=s,this.platformId=a}ngOnInit(){let e=tr(this.elementRef.nativeElement,"mouseenter"),n=tr(this.elementRef.nativeElement,"mouseleave");e.pipe(re(this.unsubscribe$)).subscribe(()=>this.show()),n.pipe(re(this.unsubscribe$)).subscribe(()=>{this.tooltipRef&&this.hide()})}show(){let e=this.componentFactoryResolver.resolveComponentFactory(UT).create(this.injector);e.instance.text=this.text,e.changeDetectorRef.detectChanges();let n=e.hostView.rootNodes[0];this.document.body.appendChild(n),this.tooltipRef=e,this.calculateCords(),this.tooltipRef.instance.correctPosition(),this.tooltipRef.changeDetectorRef.detectChanges()}hide(){this.tooltipRef&&(this.applicationRef.detachView(this.tooltipRef.hostView),this.tooltipRef.destroy(),this.tooltipRef=null)}calculateCords(){if(this.tooltipRef){let e=this.elementRef.nativeElement,n=e.getBoundingClientRect(),r=n.bottom,o=n.left;St(this.platformId)&&(this.tooltipTopPosition=r+window.scrollY-e.offsetHeight-i.tooltipOffset,this.tooltipLeftPosition=window.scrollX+o+e.offsetWidth/2,this.tooltipTopPosition&&(this.tooltipRef.instance.top=this.tooltipTopPosition),this.tooltipLeftPosition&&(this.tooltipRef.instance.left=this.tooltipLeftPosition),this.tooltipRef.changeDetectorRef.detectChanges())}}static \u0275fac=function(n){return new(n||i)(c(Je),c(ve),c(x),c(Et),c(ue),c(Ue))};static \u0275dir=N({type:i,selectors:[["","gui-tooltip",""]],inputs:{text:[we.None,"gui-tooltip","text"]},exportAs:["guiTooltip"],features:[C]})}return i})(),Rr=(()=>{class i{static \u0275fac=function(n){return new(n||i)};static \u0275mod=M({type:i});static \u0275inj=T({})}return i})(),WT=(()=>{class i{window;static BORDER_WIDTH=1;verticalPosition=0;horizontalPosition=0;canOpenUpward=!1;constructor(e,n,r){this.window=r,this.calculateCords(e,n)}getVerticalPosition(){return this.verticalPosition}getHorizontalPosition(){return this.horizontalPosition}getCanOpenUpward(){return this.canOpenUpward}calculateCords(e,n){let r=e.nativeElement.getBoundingClientRect(),o=this.window.pageYOffset+r.bottom,s=this.window.pageXOffset+r.left;this.horizontalPosition=s,this.verticalPosition=o-i.BORDER_WIDTH,this.calculateDirection(n,e)}calculateDirection(e,n){let r=this.window.innerHeight+this.window.pageYOffset,o=n.nativeElement.offsetHeight,s=e.getHeight();r-this.verticalPosition-s<0&&(this.canOpenUpward=!0,this.verticalPosition-=s+o-i.BORDER_WIDTH)}}return i})(),Hp=class{selectOptionsGeometry;constructor(t){this.selectOptionsGeometry=t}getHeight(){return this.selectOptionsGeometry.nativeElement.querySelector(".gui-options-list").offsetHeight}getWidth(){return this.selectOptionsGeometry.nativeElement.querySelector(".gui-options-list").offsetWidth}},hd=(()=>{class i{platformId;selectContainerGeometry;selectOptionsCords$=new Nh(1);constructor(e){this.platformId=e}onSelectOptionsCords(){return this.selectOptionsCords$.asObservable()}setGeometry(e){this.selectContainerGeometry=new Hp(e)}nextCords(e){if(St(this.platformId)&&this.selectContainerGeometry){let n=new WT(e,this.selectContainerGeometry,window);this.selectOptionsCords$.next(n)}}static \u0275fac=function(n){return new(n||i)(v(Ue))};static \u0275prov=k({token:i,factory:i.\u0275fac})}return i})(),$p=(()=>{class i{selectedOption$=new Nh(1);onSelectedOption(){return this.selectedOption$.asObservable()}next(e){this.selectedOption$.next(e)}static \u0275fac=function(n){return new(n||i)};static \u0275prov=k({token:i,factory:i.\u0275fac})}return i})(),GT=(()=>{class i extends Fa{selectOptionsGeometryService;selectService;changeDetectorRef;optionListRef;options=[];optionsContainerLeftAttribute=0;optionsContainerTopAttribute=0;width=100;selectedOption;canOpenUpward=!1;constructor(e,n,r,o,s,a){super(o,s,a),this.selectOptionsGeometryService=e,this.selectService=n,this.changeDetectorRef=r}ngOnInit(){this.selectOptionsGeometryService.onSelectOptionsCords().pipe(re(this.unsubscribe$)).subscribe(e=>{this.optionsContainerTopAttribute=e.getVerticalPosition(),this.optionsContainerLeftAttribute=e.getHorizontalPosition(),this.canOpenUpward=e.getCanOpenUpward(),this.changeDetectorRef.detectChanges()}),this.selectService.onSelectedOption().pipe(re(this.unsubscribe$)).subscribe(e=>{this.selectedOption=e,this.changeDetectorRef.detectChanges()})}ngAfterViewInit(){super.ngAfterViewInit(),this.initOpenAnimation()}getElementRef(){return super.getElementRef()}detectChanges(){this.changeDetectorRef.detectChanges()}selectOption(e){this.selectService.next(e)}isOptionSelected(e){return this.selectedOption?.name===e.name}getOptionValue(e){return e.value?e.value:e.name}initOpenAnimation(){if(this.optionListRef){let e=this.optionListRef.nativeElement;this.getRenderer().addClass(e,"gui-options-opened")}}static \u0275fac=function(n){return new(n||i)(c(hd),c($p),c(B),c(x),c(We),c(ri))};static \u0275cmp=I({type:i,selectors:[["ng-component"]],viewQuery:function(n,r){if(n&1&&X(_T,5,x),n&2){let o;L(o=z())&&(r.optionListRef=o.first)}},features:[C],decls:3,vars:9,consts:[["optionList",""],[1,"gui-options-list"],["class","gui-option",3,"gui-option-selected","width","click",4,"ngFor","ngForOf"],[1,"gui-option",3,"click"]],template:function(n,r){n&1&&(h(0,"div",1,0),D(2,yT,2,5,"div",2),g()),n&2&&(Ae("left",r.optionsContainerLeftAttribute,"px")("top",r.optionsContainerTopAttribute,"px"),U("gui-upward",r.canOpenUpward)("gui-downward",!r.canOpenUpward),u(2),m("ngForOf",r.options))},dependencies:[rt],encapsulation:2,changeDetection:0})}return i})(),Xw=(()=>{class i extends Ra{selectOptionsGeometryService;constructor(e,n,r,o,s){super(n,r,o,s),this.selectOptionsGeometryService=e}getComponent(){return GT}open(e,n){this.createAndAppend({afterCompCreation:()=>this.afterCompCreation(e,n)})}closeOptions(){this.removeComponent()}afterCompCreation(e,n){if(this.isComponentCreated()){let r=this.getComponentRef();r.instance.options=e,r.instance.width=n,r.instance.detectChanges(),this.selectOptionsGeometryService.setGeometry(r.instance.getElementRef()),r.instance.detectChanges()}}static \u0275fac=function(n){return new(n||i)(v(hd),v(Je),v(Et),v(ve),v(ue))};static \u0275prov=k({token:i,factory:i.\u0275fac})}return i})(),vd=(()=>{class i extends sn{selectService;selectOptionsGeometryService;selectOptionModalService;changeDetectorRef;platformId;elementRef;renderer;containerRef;options=[];placeholder="...";selected;width=100;disabled=!1;optionChanged=new W;selectedOption;containerText;scrollListenerFn;doNotEmitValues=!1;opened=!1;constructor(e,n,r,o,s,a,l){super(),this.selectService=e,this.selectOptionsGeometryService=n,this.selectOptionModalService=r,this.changeDetectorRef=o,this.platformId=s,this.elementRef=a,this.renderer=l}ngOnChanges(e){e.placeholder&&(this.containerText=this.placeholder),e.selected&&this.selected&&this.tryToSelect(this.selected)}ngOnInit(){this.selectService.onSelectedOption().pipe(re(this.unsubscribe$)).subscribe(e=>{this.emitSelectedOption(e),this.selectedOption=e,this.containerText=e.value??"",this.doNotEmitValues=!1,this.changeDetectorRef.detectChanges()}),this.selectOptionsGeometryService.onSelectOptionsCords().pipe(re(this.unsubscribe$)).subscribe(e=>{e.getCanOpenUpward()?this.openUpward():this.openDownward()})}tryToOpen(e){this.isContainerDisabled(e)?e.stopPropagation():(this.open(this.options,this.width),this.toggleOptions(!this.opened),this.changeDetectorRef.detectChanges())}clickOutside(e){this.isContainerClicked(e)&&this.toggleOptions(!1)}toggleOptions(e){this.opened=e,this.maintainOptionsListPosition(),this.opened||this.closeOptions()}isOptionSelected(e){return this.selectedOption?.name===e.name}getOptionValue(e){return e?e.value?e.value:e.name:""}open(e,n){this.containerRef&&(this.closeSelect(),this.selectOptionModalService.open(e,n),this.selectOptionsGeometryService.nextCords(this.containerRef))}tryToSelect(e){(this.selectedOption?e.name!==this.selectedOption.name:!0)&&(this.doNotEmitValues=!0,this.selectService.next(e),this.selectedOption=e,this.containerText=this.getOptionValue(e))}maintainOptionsListPosition(){St(this.platformId)&&(this.opened?this.scrollListenerFn=this.renderer.listen("window","scroll",()=>{this.containerRef&&this.selectOptionsGeometryService.nextCords(this.containerRef)}):this.scrollListenerFn&&this.scrollListenerFn())}closeSelect(){this.selectOptionModalService.closeOptions()}emitSelectedOption(e){this.doNotEmitValues||this.isOptionSelected(e)||this.optionChanged.emit(e)}openDownward(){this.addClass("gui-options-opened"),this.addClass("gui-downward"),this.removeClass("gui-upward")}openUpward(){this.addClass("gui-options-opened"),this.addClass("gui-upward"),this.removeClass("gui-downward")}closeOptions(){this.elementRef.nativeElement.classList.contains("gui-options-opened")&&(this.removeClass("gui-options-opened"),this.closeSelect())}isContainerClicked(e){return!this.elementRef.nativeElement.contains(e.target)}isContainerDisabled(e){return e.target.classList.contains("gui-disabled")}addClass(e){this.renderer.addClass(this.elementRef.nativeElement,e)}removeClass(e){this.renderer.removeClass(this.elementRef.nativeElement,e)}static \u0275fac=function(n){return new(n||i)(c($p),c(hd),c(Xw),c(B),c(Ue),c(x),c(We))};static \u0275cmp=I({type:i,selectors:[["gui-select"]],viewQuery:function(n,r){if(n&1&&X(Sa,5,x),n&2){let o;L(o=z())&&(r.containerRef=o.first)}},hostVars:2,hostBindings:function(n,r){n&2&&U("gui-select",!0)},inputs:{options:"options",placeholder:"placeholder",selected:"selected",width:"width",disabled:"disabled"},outputs:{optionChanged:"optionChanged"},features:[ge([$p,hd,Xw]),C,G],decls:5,vars:5,consts:[["container",""],[1,"gui-select-container",3,"click"],[1,"gui-select-value"],[1,"gui-select-arrow"]],template:function(n,r){if(n&1){let o=Z();h(0,"div",1,0),F("click",function(a){return R(o),A(r.tryToOpen(a))})("click",function(a){return R(o),A(r.clickOutside(a))},!1,Ps),h(2,"div",2),S(3),g(),b(4,"span",3),g()}n&2&&(Ae("width",r.width,"px"),U("gui-disabled",r.disabled),u(3),oe(" ",r.containerText," "))},styles:[`.gui-select .gui-select-container{min-height:16px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;background:#fff;border-color:#d6d6d6;border-radius:4px;border-style:solid;border-width:1px;box-sizing:content-box;color:#333;cursor:pointer;display:inline-block;font:14px Arial;padding:8px 24px 8px 12px;position:relative}.gui-select .gui-select-container:hover{border-color:#999}.gui-select .gui-select-container .gui-select-arrow{border:4px solid transparent;border-color:#595959 transparent transparent transparent;height:0;margin:8px;position:absolute;right:5px;top:5px;width:0}.gui-select.gui-options-opened .gui-select-container{border-color:#6fb4e8 #6fb4e8 transparent #6fb4e8;border-radius:4px 4px 0 0;border-width:1px}.gui-select.gui-downward .gui-options-list{border-color:#6fb4e8;border-radius:0 0 4px 4px;border-style:solid;border-top:none;border-width:1px}.gui-select.gui-downward .gui-option{border-color:#e6e6e6;border-style:solid;border-width:1px 0 0 0}.gui-select.gui-upward .gui-select-container{padding:8px 12px 8px 24px;-ms-transform:rotate(180deg);transform:rotate(180deg)}.gui-select.gui-upward .gui-select-container .gui-select-value{-ms-transform:rotate(180deg);transform:rotate(180deg)}.gui-select.gui-upward .gui-select-container .gui-select-arrow{border:4px solid transparent;border-color:transparent transparent #595959 transparent;bottom:5px;left:5px;top:auto}.gui-select.gui-upward .gui-options-list{border-color:#6fb4e8;border-radius:0 0 4px 4px;border-style:solid;border-top:none;border-width:1px}.gui-select.gui-upward .gui-option{border-color:#e6e6e6;border-style:solid;border-width:0 0 1px 0;-ms-transform:rotate(180deg);transform:rotate(180deg)}.gui-select .gui-disabled{color:#ccc;pointer-events:none}.gui-select .gui-disabled .gui-select-arrow{border-color:#cccccc transparent transparent transparent}.gui-select .initAnimationDisabled.gui-options-list{display:none}.gui-options-list{background:#fff;border-color:#6fb4e8;border-radius:0 0 4px 4px;border-style:solid;border-width:0 1px 1px 1px;overflow:hidden;padding:0;position:absolute;z-index:1000}.gui-options-list .gui-option{box-sizing:content-box;cursor:pointer;font-size:14px;list-style-type:none;padding:8px 24px 8px 12px}.gui-options-list .gui-option:hover{background:#dcdcdc}.gui-options-list .gui-option-selected{background:#e6e6e6;font-weight:700}.gui-options-list.gui-upward{animation:loadUpward .2s forwards;border-bottom:none;border-color:#6fb4e8;border-radius:4px 4px 0 0;border-style:solid;border-width:1px}@keyframes loadUpward{0%{transform:translateY(50%) scaleY(0)}to{transform:translateY(0) scaleY(1)}}.gui-options-list.gui-downward{animation:loadDownward .2s forwards;border-color:#6fb4e8;border-radius:0 0 4px 4px;border-style:solid;border-width:0 1px 1px 1px}@keyframes loadDownward{0%{transform:translateY(-50%) scaleY(0)}to{transform:translateY(0) scaleY(1)}}
|
|
`,`.gui-material .gui-select .gui-select-container,.gui-material .gui-options-list .gui-option{font-family:Roboto,Helvetica Neue,sans-serif}
|
|
`,`.gui-dark .gui-select .gui-select-container{background:#424242;border-color:#616161;color:#bdbdbd}.gui-dark .gui-select .gui-select-container:hover{border-color:#ce93d8}.gui-dark .gui-select .gui-select-container .gui-select-arrow{border-color:#ce93d8 transparent transparent transparent}.gui-dark .gui-select.gui-options-opened .gui-select-container{border-color:#ce93d8}.gui-dark .gui-select.gui-upward .gui-select-container .gui-select-arrow{border-color:transparent transparent #ce93d8 transparent}.gui-dark .gui-select .gui-disabled{opacity:.36}.gui-dark .gui-options-list{border-color:#ce93d8}.gui-dark .gui-options-list .gui-option{background:#424242;border-color:#757575;color:#bdbdbd}.gui-dark .gui-options-list .gui-option:hover{background:#616161}.gui-dark .gui-options-list .gui-option-selected{background:#757575}
|
|
`,`.gui-light .gui-select .gui-select-container{background:#fff;color:#333;font-family:Roboto,Helvetica Neue,sans-serif}.gui-light .gui-options-list .gui-option:hover{background:#f6f6f5}
|
|
`],encapsulation:2,changeDetection:0})}return i})(),es=(()=>{class i{static \u0275fac=function(n){return new(n||i)};static \u0275mod=M({type:i});static \u0275inj=T({imports:[q]})}return i})();var Jw=(()=>{class i{static \u0275fac=function(n){return new(n||i)};static \u0275mod=M({type:i});static \u0275inj=T({imports:[q]})}return i})(),gC=(()=>{class i extends jT{color="";constructor(e,n){super(e,n)}ngOnInit(){super.ngOnInit()}static \u0275fac=function(n){return new(n||i)(c(x),c(We))};static \u0275cmp=I({type:i,selectors:[["gui-spinner"]],hostVars:2,hostBindings:function(n,r){n&2&&U("gui-spinner",!0)},inputs:{color:"color"},features:[C],decls:5,vars:30,consts:[[1,"gui-spinner"],[1,"circle-outer"],["cx","50%","cy","50%"],[1,"circle-inner"]],template:function(n,r){n&1&&(h(0,"div",0),Ke(),h(1,"svg",1),b(2,"circle",2),g(),h(3,"svg",3),b(4,"circle",2),g()()),n&2&&(Ae("height",r.circleSize,"px")("width",r.circleSize,"px"),u(),Ae("height",r.circleSize,"px")("width",r.circleSize,"px"),u(),Ae("stroke-dasharray",r.croppedCircle)("stroke-dashoffset",r.circumference)("stroke-width",r.width)("stroke",r.color),De("r",r.r),u(),Ae("height",r.circleSize,"px")("width",r.circleSize,"px"),u(),Ae("stroke-dasharray",r.croppedCircle)("stroke-dashoffset",r.circumference)("stroke-width",r.width)("stroke",r.color),De("r",r.r))},styles:[`@keyframes gui-spin{0%{transform:rotate(-90deg)}to{transform:rotate(270deg)}}@keyframes gui-spin-reverse{0%{transform:rotate(-90deg) scale(.8)}to{transform:rotate(270deg) scale(.8)}}.gui-spinner{display:inline-block;margin:4px;position:relative;-ms-transform:rotate(-90deg);transform:rotate(-90deg)}.gui-spinner circle{fill:transparent;stroke:#999}.gui-spinner svg{position:absolute}.gui-spinner .circle-inner{animation:gui-spin-reverse 2s infinite linear forwards reverse}.gui-spinner .circle-outer{animation:gui-spin 2s infinite linear forwards}.gui-primary .gui-spinner.gui-spinner circle{stroke:#2185d0}.gui-secondary .gui-spinner.gui-spinner circle{stroke:#3cb371}
|
|
`,`.gui-material .gui-spinner circle{stroke:#3949ab}.gui-material .gui-primary .gui-spinner circle{stroke:#6200ee}.gui-material .gui-secondary .gui-spinner circle{stroke:#0097a7}
|
|
`,`.gui-dark .gui-spinner circle{stroke:#424242}.gui-dark .gui-primary .gui-spinner circle{stroke:#ce93d8}.gui-dark .gui-secondary .gui-spinner circle{stroke:#80cbc4}
|
|
`],encapsulation:2,changeDetection:0})}return i})(),ts=(()=>{class i{static \u0275fac=function(n){return new(n||i)};static \u0275mod=M({type:i});static \u0275inj=T({imports:[q]})}return i})();var is=(()=>{class i{static \u0275fac=function(n){return new(n||i)};static \u0275mod=M({type:i});static \u0275inj=T({imports:[q,ni,ni]})}return i})();var eC=(()=>{class i{static \u0275fac=function(n){return new(n||i)};static \u0275mod=M({type:i});static \u0275inj=T({imports:[q]})}return i})();var qT=(()=>{class i{static \u0275fac=function(n){return new(n||i)};static \u0275mod=M({type:i});static \u0275inj=T({imports:[q]})}return i})(),tC=(()=>{class i{static \u0275fac=function(n){return new(n||i)};static \u0275mod=M({type:i});static \u0275inj=T({imports:[q,qT]})}return i})(),Nn=(()=>{class i{static \u0275fac=function(n){return new(n||i)};static \u0275mod=M({type:i});static \u0275inj=T({providers:[ri],imports:[q,Wo,ni,Go,qw,tn,An,md,qo,Yo,Qo,Fr,Xo,Jo,tC,Kw,Zw,On,Rr,Ko,Zo,es,Jw,ts,is,eC,nn,Wo,ni,Go,qw,tn,An,md,qo,Yo,Qo,Fr,Xo,Jo,tC,Kw,Zw,On,Rr,Ko,Zo,es,Jw,ts,is,eC,nn]})}return i})();var QT=["gui-row-detail",""],KT=["gui-paging-navigator","","paging",""],ZT=["gui-paging-select","","paging",""],XT=["gui-paging-stats","","paging",""];function JT(i,t){if(i&1&&(pe(0),h(1,"span",2)(2,"span"),S(3),g(),S(4," - "),h(5,"span"),S(6),g()(),h(7,"span"),S(8),J(9,"guiTranslate"),g(),h(10,"span",3),S(11),g(),fe()),i&2){let e=f();u(3),xe(e.firstItemIndex),u(3),xe(e.lastItemIndex),u(2),oe(" ",ie(9,4,"pagingOf")," "),u(3),oe(" ",e.sourceSize," ")}}function eM(i,t){i&1&&(h(0,"span",4),S(1),J(2,"guiTranslate"),g()),i&2&&(u(),oe(" ",ie(2,1,"pagingNoItems")," "))}var tM=["gui-paging-alternative-navigator","","paging","","sourceSize",""],iM=["*"],nM=["gui-paging-alternative-pages","","paging",""];function rM(i,t){if(i&1){let e=Z();h(0,"div")(1,"div",3)(2,"div",4),F("click",function(){let r=R(e).$implicit,o=f(2);return A(o.goToPage(r))}),S(3),g()()()}if(i&2){let e=t.$implicit,n=f(2);u(),U("gui-paging-active-page",n.activePage(e))("gui-paging-visible-page",n.calculateVisiblePages(e)),u(2),oe(" ",e," ")}}function oM(i,t){if(i&1&&(pe(0),D(1,rM,4,5,"div",2),fe()),i&2){let e=f();u(),m("ngForOf",e.pages)}}function sM(i,t){i&1&&(h(0,"span",5),S(1),J(2,"guiTranslate"),g()),i&2&&(u(),oe(" ",ie(2,1,"pagingNoItems")," "))}var aM=["gui-paging","","position",""];function cM(i,t){if(i&1){let e=Z();pe(0),h(1,"div",4),F("pageSizeChanged",function(r){R(e);let o=f(3);return A(o.changePageSize(r))}),g(),b(2,"div",5),h(3,"div",6),F("nextPageChanged",function(){R(e);let r=f(2).$implicit,o=f();return A(o.nextPage(r.sourceSize))})("prevPageChanged",function(){R(e);let r=f(3);return A(r.prevPage())}),g(),fe()}if(i&2){let e=f(2).$implicit;u(),m("paging",e.paging),u(),m("paging",e.paging),u(),m("paging",e.paging)("sourceSize",e.sourceSize)}}function lM(i,t){if(i&1){let e=Z();b(0,"div",5),h(1,"div",6),F("nextPageChanged",function(){R(e);let r=f(2).$implicit,o=f();return A(o.nextPage(r.sourceSize))})("prevPageChanged",function(){R(e);let r=f(3);return A(r.prevPage())}),g()}if(i&2){let e=f(2).$implicit;m("paging",e.paging),u(),m("paging",e.paging)("sourceSize",e.sourceSize)}}function dM(i,t){if(i&1&&(pe(0),D(1,cM,4,4,"ng-container",3)(2,lM,2,3,"ng-template",null,0,Ee),fe()),i&2){let e=Qi(3),n=f(2);u(),m("ngIf",!n.minimal)("ngIfElse",e)}}function uM(i,t){if(i&1){let e=Z();pe(0),h(1,"div",4),F("pageSizeChanged",function(r){R(e);let o=f(2);return A(o.changePageSize(r))}),g(),h(2,"div",7),F("nextPageChanged",function(){R(e);let r=f().$implicit,o=f();return A(o.nextPage(r.sourceSize))})("prevPageChanged",function(){R(e);let r=f(2);return A(r.prevPage())}),b(3,"div",8),g(),fe()}if(i&2){let e=f().$implicit;u(),m("paging",e.paging),u(),m("paging",e.paging)("sourceSize",e.sourceSize),u(),m("paging",e.paging)("sourceSize",e.sourceSize)}}function mM(i,t){if(i&1&&(pe(0),D(1,dM,4,2,"ng-container",2)(2,uM,4,5,"ng-container",2),fe()),i&2){let e=t.$implicit;u(),m("ngIf",e.isPagingVisible&&!e.alternativeDisplay),u(),m("ngIf",e.isPagingVisible&&e.alternativeDisplay)}}var sx=["value",""];function hM(i,t){if(i&1&&b(0,"gui-percentage-view",3),i&2){let e=f();m("value",e.value)}}function gM(i,t){if(i&1&&(pe(0),b(1,"span",2),J(2,"guiSafe"),fe()),i&2){let e=f();u(),m("innerHTML",cr(2,1,e.value.value,"html"),sr)}}function pM(i,t){if(i&1&&(h(0,"span"),S(1),g()),i&2){let e=f();u(),oe(" ",e.value.value," ")}}var fM=["text"],wC=["number"],bM=["chip"],vM=["link"],xM=["image"],CC=["checkbox"],_M=["bold"],yM=["italic"],wM=["custom"],CM=["function"],IM=["html"],IC=["date"],kM=["bar"],EM=["percentageBar"],SM=["percentage"];function DM(i,t){if(i&1&&b(0,"gui-view-text",15),i&2){let e=t.element;m("value",e)}}function TM(i,t){if(i&1&&(h(0,"span",16),S(1),g()),i&2){let e=t.element;u(),oe(" ",e.value," ")}}function MM(i,t){if(i&1&&(h(0,"gui-chip"),b(1,"gui-view-text",15),g()),i&2){let e=t.element;u(),m("value",e)}}function FM(i,t){if(i&1&&(h(0,"a",17),b(1,"gui-view-text",15),g()),i&2){let e=t.element;rl("href",e.value,wo),u(),m("value",e)}}function RM(i,t){if(i&1&&b(0,"img",18),i&2){let e=t.element;rl("src",e.value,wo)}}function AM(i,t){if(i&1&&(h(0,"span",19),b(1,"gui-checkbox",20),g()),i&2){let e=t.element;u(),m("checked",!!e.value)("disabled",!0)}}function OM(i,t){if(i&1&&b(0,"gui-view-text",21),i&2){let e=t.element;m("value",e)}}function PM(i,t){if(i&1&&b(0,"gui-view-text",22),i&2){let e=t.element;m("value",e)}}function NM(i,t){if(i&1&&S(0),i&2){let e=t.element;oe(" ",e.value," ")}}function jM(i,t){if(i&1&&b(0,"gui-function-view",23),i&2){let e=t.element;m("element",e)}}function VM(i,t){if(i&1&&b(0,"gui-html-view",23),i&2){let e=t.element;m("element",e)}}function LM(i,t){if(i&1&&(h(0,"span",24),S(1),J(2,"date"),g()),i&2){let e=t.element;u(),xe(cr(2,1,e.value,"dd/MM/yyyy"))}}function zM(i,t){if(i&1&&b(0,"gui-bar-view",25),i&2){let e=t.element;m("value",e.value)("showPercentage",!1)}}function BM(i,t){if(i&1&&b(0,"gui-bar-view",25),i&2){let e=t.element;m("value",e.value)("showPercentage",!0)}}function HM(i,t){if(i&1&&b(0,"gui-percentage-view",15),i&2){let e=t.element;m("value",e.value)}}var $M=["input"],UM=["datepicker"],WM=["string"],GM=["boolean"],qM=["empty"];function YM(i,t){if(i&1&&b(0,"gui-string-edit",5),i&2){let e=t.valueChanges,n=t.value,r=t.status,o=t.focus;m("valueChanges",e)("value",n)("status",r)("focus",o)}}function QM(i,t){if(i&1&&b(0,"gui-number-edit",5),i&2){let e=t.valueChanges,n=t.value,r=t.status,o=t.focus;m("valueChanges",e)("value",n)("status",r)("focus",o)}}function KM(i,t){if(i&1&&b(0,"gui-boolean-edit",5),i&2){let e=t.valueChanges,n=t.value,r=t.status,o=t.focus;m("valueChanges",e)("value",n)("status",r)("focus",o)}}function ZM(i,t){if(i&1&&b(0,"gui-date-edit",6),i&2){let e=t.valueChanges,n=t.value,r=t.status,o=t.focus,s=t.parent;m("valueChanges",e)("value",n)("status",r)("focus",o)("parent",s)}}function XM(i,t){}var JM=["gui-structure-summaries-panel","","enabled",""];function e2(i,t){i&1&&b(0,"div",4)}function t2(i,t){if(i&1&&(h(0,"div",7)(1,"span",8),S(2),J(3,"guiTranslate"),g(),h(4,"span",9),S(5),g()()),i&2){let e=f(2).$implicit,n=f(2).$implicit;u(),m("gui-tooltip",n.summariesTranslations.countTooltip),u(),xe(ie(3,3,"summariesCount")),u(3),xe(n.summaries.get(e.getFieldId().getId()).count)}}function i2(i,t){if(i&1&&(h(0,"div",7)(1,"span",8),S(2),J(3,"guiTranslate"),g(),h(4,"span",9),S(5),g()()),i&2){let e=f(2).$implicit,n=f(2).$implicit;u(),m("gui-tooltip",n.summariesTranslations.distinctTooltip),u(),xe(ie(3,3,"summariesDist")),u(3),xe(n.summaries.get(e.getFieldId().getId()).distinct)}}function n2(i,t){if(i&1&&(h(0,"div",7)(1,"span"),S(2),J(3,"guiTranslate"),g(),h(4,"span",9),S(5),g()()),i&2){let e=f(2).$implicit,n=f(2).$implicit;u(2),oe(" ",ie(3,2,"summariesSum")," "),u(3),xe(n.summaries.get(e.getFieldId().getId()).sum)}}function r2(i,t){if(i&1&&(h(0,"div",7)(1,"span",8),S(2),J(3,"guiTranslate"),g(),h(4,"span",9),S(5),g()()),i&2){let e=f(2).$implicit,n=f(2).$implicit;u(),m("gui-tooltip",n.summariesTranslations.averageTooltip),u(),xe(ie(3,3,"summariesAvg")),u(3),xe(n.summaries.get(e.getFieldId().getId()).average)}}function o2(i,t){if(i&1&&(h(0,"div",7)(1,"span",8),S(2),J(3,"guiTranslate"),g(),h(4,"span",9),S(5),g()()),i&2){let e=f(2).$implicit,n=f(2).$implicit;u(),m("gui-tooltip",n.summariesTranslations.minTooltip),u(),oe(" ",ie(3,3,"summariesMin")," "),u(3),xe(n.summaries.get(e.getFieldId().getId()).min)}}function s2(i,t){if(i&1&&(h(0,"div",7)(1,"span",8),S(2),J(3,"guiTranslate"),g(),h(4,"span",9),S(5),g()()),i&2){let e=f(2).$implicit,n=f(2).$implicit;u(),m("gui-tooltip",n.summariesTranslations.maxTooltip),u(),oe(" ",ie(3,3,"summariesMax")," "),u(3),xe(n.summaries.get(e.getFieldId().getId()).max)}}function a2(i,t){if(i&1&&(h(0,"div",7)(1,"span",8),S(2),J(3,"guiTranslate"),g(),h(4,"span",9),S(5),g()()),i&2){let e=f(2).$implicit,n=f(2).$implicit;u(),m("gui-tooltip",n.summariesTranslations.medTooltip),u(),xe(ie(3,3,"summariesMed")),u(3),xe(n.summaries.get(e.getFieldId().getId()).median)}}function c2(i,t){if(i&1&&(h(0,"div",7)(1,"span"),S(2),J(3,"guiTranslate"),g(),h(4,"span",9),S(5),g()()),i&2){let e=f(2).$implicit,n=f(2).$implicit;u(2),xe(ie(3,2,"summariesTruthy")),u(3),xe(n.summaries.get(e.getFieldId().getId()).truthy)}}function l2(i,t){if(i&1&&(h(0,"div",7)(1,"span"),S(2),J(3,"guiTranslate"),g(),h(4,"span",9),S(5),g()()),i&2){let e=f(2).$implicit,n=f(2).$implicit;u(2),xe(ie(3,2,"summariesFalsy")),u(3),xe(n.summaries.get(e.getFieldId().getId()).falsy)}}function d2(i,t){if(i&1&&(pe(0),D(1,t2,6,5,"div",6)(2,i2,6,5,"div",6)(3,n2,6,4,"div",6)(4,r2,6,5,"div",6)(5,o2,6,5,"div",6)(6,s2,6,5,"div",6)(7,a2,6,5,"div",6)(8,c2,6,4,"div",6)(9,l2,6,4,"div",6),fe()),i&2){let e=f().$implicit,n=f(2).$implicit,r=f();u(),m("ngIf",r.isSummariesTypePresent(n.summaries.get(e.getFieldId().getId()).count)),u(),m("ngIf",r.isSummariesTypePresent(n.summaries.get(e.getFieldId().getId()).distinct)),u(),m("ngIf",r.isSummariesTypePresent(n.summaries.get(e.getFieldId().getId()).sum)),u(),m("ngIf",r.isSummariesTypePresent(n.summaries.get(e.getFieldId().getId()).average)),u(),m("ngIf",r.isSummariesTypePresent(n.summaries.get(e.getFieldId().getId()).min)),u(),m("ngIf",r.isSummariesTypePresent(n.summaries.get(e.getFieldId().getId()).max)),u(),m("ngIf",r.isSummariesTypePresent(n.summaries.get(e.getFieldId().getId()).median)),u(),m("ngIf",r.isSummariesTypePresent(n.summaries.get(e.getFieldId().getId()).truthy)),u(),m("ngIf",r.isSummariesTypePresent(n.summaries.get(e.getFieldId().getId()).falsy))}}function u2(i,t){if(i&1&&(h(0,"div",5),D(1,d2,10,9,"ng-container",1),g()),i&2){let e=t.$implicit,n=f(2).$implicit;Ae("width",e.width,"px"),u(),m("ngIf",n.summaries&&!!n.summaries.get(e.getFieldId().getId()))}}function m2(i,t){if(i&1&&(pe(0),D(1,e2,1,0,"div",2),J(2,"guiPush"),D(3,u2,2,3,"div",3),J(4,"guiPush"),fe()),i&2){let e=f(2);u(),m("ngIf",ie(2,2,e.checkboxSelection$)),u(2),m("ngForOf",ie(4,4,e.headerColumns$))}}function h2(i,t){if(i&1&&(pe(0),D(1,m2,5,6,"ng-container",1),fe()),i&2){let e=t.$implicit,n=f();u(),m("ngIf",n.enabled&&e.summaries&&!e.sourceEmpty)}}var g2=["gui-info-dialog",""],p2=["gui-structure-column-manager",""];function f2(i,t){i&1&&Co(0)}function b2(i,t){if(i&1){let e=Z();h(0,"li",3),F("click",function(){let r=R(e).$implicit,o=f(2);return A(o.toggleColumn(r))}),h(1,"gui-checkbox",4),D(2,f2,1,0,"ng-container",5),g()()}if(i&2){let e=t.$implicit,n=f().$implicit;u(),m("checked",e.isEnabled())("disabled",n.enabledColumnsCount===1&&e.isEnabled()),u(),m("ngTemplateOutlet",e.viewTemplate)("ngTemplateOutletContext",e.context)}}function v2(i,t){if(i&1&&(h(0,"ol",1),D(1,b2,3,4,"li",2),g()),i&2){let e=t.$implicit;u(),m("ngForOf",e.columns)}}var x2=["gui-structure-dialog-column-manager",""],_2=["gui-structure-schema-manager",""];function y2(i,t){if(i&1){let e=Z();h(0,"li",7),F("click",function(){let r=R(e).$implicit,o=f();return A(o.toggleVerticalGrid(r))}),h(1,"gui-checkbox",8),S(2),J(3,"guiTranslate"),g()()}if(i&2){let e=t.$implicit;u(),m("checked",e),u(),oe(" ",ie(3,2,"themeManagerModalVerticalGrid")," ")}}function w2(i,t){if(i&1){let e=Z();h(0,"li",7),F("click",function(){let r=R(e).$implicit,o=f();return A(o.toggleHorizontalGrid(r))}),h(1,"gui-checkbox",8),S(2),J(3,"guiTranslate"),g()()}if(i&2){let e=t.$implicit;u(),m("checked",e),u(),oe(" ",ie(3,2,"themeManagerModalHorizontalGrid")," ")}}var C2=["gui-schema-manager-dialog",""],I2=["gui-structure-column-manager-icon",""],k2=["gui-structure-schema-manager-icon",""],E2=["gui-active-search",""];function S2(i,t){if(i&1){let e=Z();pe(0),h(1,"div"),S(2," Active search by: "),g(),h(3,"div")(4,"gui-chip"),S(5),g()(),h(6,"div")(7,"button",1),F("click",function(){R(e);let r=f();return A(r.clearSearch())}),S(8," Clear search "),g()(),fe()}if(i&2){let e=t.$implicit;u(5),xe(e),u(2),m("outline",!0)("primary",!0)}}var D2=["gui-active-filter-list",""];function T2(i,t){if(i&1){let e=Z();h(0,"div"),S(1),h(2,"span",3),F("click",function(){let r=R(e).$implicit,o=f(2);return A(o.removeFilter(r))}),S(3,"X"),g()()}if(i&2){let e=t.$implicit;u(),oe(" ",e.getText()," ")}}function M2(i,t){if(i&1&&(pe(0),D(1,T2,4,1,"div",2),fe()),i&2){let e=t.$implicit;u(),m("ngForOf",e)}}var F2=["gui-structure-info-icon",""],R2=["gui-structure-info-panel",""];function A2(i,t){if(i&1&&(pe(0),S(1),J(2,"guiTranslate"),h(3,"b"),S(4),J(5,"numberFormatter"),g(),S(6),J(7,"guiTranslate"),fe()),i&2){let e=f(3).$implicit;u(),oe(" ",ie(2,3,"infoPanelShowing")," "),u(3),xe(ie(5,5,e)),u(2),oe(" ",ie(7,7,"infoPanelItems")," ")}}function O2(i,t){if(i&1&&(h(0,"span",5),S(1),J(2,"guiTranslate"),h(3,"b"),S(4),J(5,"numberFormatter"),g(),S(6),J(7,"guiTranslate"),h(8,"b"),S(9),J(10,"numberFormatter"),g(),S(11),J(12,"guiTranslate"),g()),i&2){let e=f(3).$implicit,n=f().$implicit;u(),oe(" ",ie(2,5,"infoPanelShowing")," "),u(3),xe(ie(5,7,n.preparedItemsSize)),u(2),oe(" ",ie(7,9,"infoPanelOutOf")," "),u(3),xe(ie(10,11,e)),u(2),oe(" ",ie(12,13,"infoPanelItems")," ")}}function P2(i,t){if(i&1&&(pe(0),D(1,A2,8,9,"ng-container",3)(2,O2,13,15,"span",4),fe()),i&2){let e=f(2).$implicit,n=f().$implicit;u(),m("ngIf",n.preparedItemsSize===e),u(),m("ngIf",n.preparedItemsSize!==e)}}function N2(i,t){if(i&1&&(h(0,"div"),D(1,P2,3,2,"ng-container",3),g()),i&2){let e=f().$implicit,n=f().$implicit;u(),m("ngIf",n.preparedItemsSize!==void 0&&e!==void 0)}}function j2(i,t){if(i&1&&(h(0,"div"),D(1,N2,2,1,"div",3),g()),i&2){let e=f().$implicit;u(),m("ngIf",e.infoPanelConfig.isSourceSizeEnabled())}}function V2(i,t){if(i&1){let e=Z();h(0,"div",6),F("click",function(){R(e);let r=f(2);return A(r.openSchemaManager())}),b(1,"div",7),g()}if(i&2){let e=f().$implicit;u(),m("gui-tooltip",e.translations.infoPanelThemeMangerTooltipText)}}function L2(i,t){if(i&1){let e=Z();h(0,"div",6),F("click",function(){R(e);let r=f(2);return A(r.openColumnManager())}),b(1,"div",8),g()}if(i&2){let e=f().$implicit;u(),m("gui-tooltip",e.translations.infoPanelColumnManagerTooltipText)}}function z2(i,t){if(i&1){let e=Z();h(0,"div",6),F("click",function(){R(e);let r=f(2);return A(r.openInfo())}),b(1,"div",9),g()}if(i&2){let e=f().$implicit;u(),m("gui-tooltip",e.translations.infoPanelInfoTooltipText)}}function B2(i,t){if(i&1&&(pe(0),D(1,j2,2,1,"div",0),h(2,"div")(3,"div",1),D(4,V2,2,1,"div",2)(5,L2,2,1,"div",2)(6,z2,2,1,"div",2),g()(),fe()),i&2){let e=t.$implicit,n=f();u(),m("guiLet",n.totalItemsSize$),u(3),m("ngIf",e.infoPanelConfig.isSchemaManagerEnabled()),u(),m("ngIf",e.infoPanelConfig.isColumnsManagerEnabled()),u(),m("ngIf",e.infoPanelConfig.isInfoDialogEnabled())}}var H2=["gui-search-icon",""],$2=["formRef"],U2=["gui-search-bar",""];function W2(i,t){if(i&1){let e=Z();h(0,"span",6),F("click",function(){R(e);let r=f(2);return A(r.clear())}),g()}}function G2(i,t){if(i&1&&(pe(0),h(1,"form",2,0),b(3,"div",3)(4,"input",4),J(5,"guiPush"),D(6,W2,1,0,"span",5),g(),fe()),i&2){let e=f();u(),m("formGroup",e.searchForm),u(3),m("placeholder",ie(5,3,e.placeholder$)),u(2),m("ngIf",e.searchForm.controls.searchPhrase.value)}}var q2=["gui-structure-top-panel",""],Y2=["gui-empty-source","","items",""];function Q2(i,t){i&1&&(pe(0),S(1),J(2,"guiTranslate"),fe()),i&2&&(u(),oe(" ",ie(2,1,"sourceEmpty"),`
|
|
`))}var K2=["gui-structure-menu-column-manager",""],Z2=["gui-unique-value-list","","fieldId",""];function X2(i,t){if(i&1){let e=Z();h(0,"div")(1,"gui-checkbox",6),F("changed",function(){let r=R(e).$implicit,o=f(2);return A(o.toggleSelect(r))}),S(2),g()()}if(i&2){let e=t.$implicit;u(),m("checked",e.isEnabled()),u(),oe(" ",e.getValue()," ")}}function J2(i,t){if(i&1){let e=Z();pe(0),h(1,"gui-checkbox",1),F("changed",function(){R(e);let r=f();return A(r.toggleAllSelect())}),S(2," Select all "),g(),h(3,"div",2),D(4,X2,3,2,"div",3),g(),h(5,"div",4)(6,"button",5),F("click",function(){R(e);let r=f();return A(r.clearFilters())}),S(7," Clear "),g()(),fe()}if(i&2){let e=t.$implicit;u(),m("checked",e.selectAllChecked)("indeterminate",e.selectAllIndeterminate),u(3),m("ngForOf",e.uniqueValues),u(2),m("outline",!0)("primary",!0)}}var eF=["gui-structure-arrow-icon",""],tF=["gui-structure-column-config-sort","","column","","dropdownTextTranslation",""];function iF(i,t){if(i&1){let e=Z();h(0,"gui-dropdown",1)(1,"gui-dropdown-item",2),F("click",function(){R(e);let r=f();return A(r.setSortOrder(r.status.ASC))}),h(2,"div",3),S(3),J(4,"guiTranslate"),b(5,"div",4),g()(),h(6,"gui-dropdown-item",2),F("click",function(){R(e);let r=f();return A(r.setSortOrder(r.status.DESC))}),h(7,"div",3),S(8),J(9,"guiTranslate"),b(10,"div",5),g()(),h(11,"gui-dropdown-item",2),F("click",function(){R(e);let r=f();return A(r.setSortOrder(r.status.NONE))}),S(12),J(13,"guiTranslate"),g()()}if(i&2){let e=f();m("dropdownText",e.dropdownTextTranslation)("placement",e.placement)("showOnHover",!0)("width",225),u(),U("gui-header-item-active",e.isAscSort()),u(2),oe(" ",ie(4,16,"headerMenuMainTabColumnSortAscending")," "),u(2),m("sort",!0),u(),U("gui-header-item-active",e.isDescSort()),u(2),oe(" ",ie(9,18,"headerMenuMainTabColumnSortDescending")," "),u(2),m("position",e.StructureArrowPosition.DOWN)("sort",!0),u(),U("gui-header-item-active",e.isNoneSort()),u(),oe(" ",ie(13,20,"headerMenuMainTabColumnSortNone")," ")}}var nF=["gui-structure-column-config-column-hide",""],rF=["gui-structure-column-config-column-move","","column",""],oF=["headerSortMenu"],sF=["gui-column-config",""];function aF(i,t){if(i&1&&b(0,"div",10),i&2){let e=f(3).$implicit,n=f();m("column",n.column)("dropdownTextTranslation",e.translations.headerMenuMainTabColumnSort)}}function cF(i,t){if(i&1){let e=Z();pe(0),h(1,"gui-tab-item",5),D(2,aF,1,2,"div",6),h(3,"div",7),F("columnHidden",function(){R(e);let r=f(3);return A(r.hideColumn())}),g(),h(4,"div",8),F("click",function(){R(e);let r=f(3);return A(r.highlightColumn())}),S(5),J(6,"guiTranslate"),g(),h(7,"div",9),F("movedLeft",function(){R(e);let r=f(3);return A(r.moveLeft())})("movedRight",function(){R(e);let r=f(3);return A(r.moveRight())}),g()(),fe()}if(i&2){let e=f(2).$implicit,n=f();u(),m("tab",e.translations.headerMenuMainTab),u(),m("ngIf",n.column.isSortEnabled()),u(),m("column",n.column),u(2),oe(" ",ie(6,5,"headerMenuMainTabHighlightColumn")," "),u(2),m("column",n.column)}}function lF(i,t){if(i&1&&(pe(0),h(1,"gui-tab-item",11),b(2,"div",12),g(),fe()),i&2){let e=f(2).$implicit,n=f();u(),m("tab",e.translations.headerMenuFilterTab),u(),m("fieldId",n.column.getFieldId())}}function dF(i,t){if(i&1&&(pe(0),h(1,"gui-tab-item",11),b(2,"div",13),g(),fe()),i&2){let e=f(2).$implicit;u(),m("tab",e.translations.headerMenuColumnsTab)}}function uF(i,t){if(i&1&&(h(0,"div",2)(1,"gui-tab",3),D(2,cF,8,7,"ng-container",4)(3,lF,3,2,"ng-container",4)(4,dF,3,1,"ng-container",4),g()()),i&2){let e=f().$implicit;u(),m("active",e.config.getActiveMenu())("menu",e.config.getMenus()),u(),m("ngIf",e.config.isMainEnabled()),u(),m("ngIf",e.config.isFilteringEnabled()),u(),m("ngIf",e.config.isColumnManagerEnabled())}}function mF(i,t){if(i&1&&(pe(0),D(1,uF,5,5,"div",1),fe()),i&2){let e=t.$implicit;u(),m("ngIf",e.isEnabled)}}var hF=["gui-select-custom-modal",""];function gF(i,t){if(i&1){let e=Z();h(0,"li",2),F("click",function(){let r=R(e).$implicit,o=f(2);return A(o.selectCustom(r.getCustomSelectId()))}),S(1),g()}if(i&2){let e=t.$implicit;De("id",e.key),u(),oe(" ",e.text," ")}}function pF(i,t){if(i&1&&(h(0,"ul"),D(1,gF,2,2,"li",1),g()),i&2){let e=t.$implicit;u(),m("ngForOf",e.getSelections())}}var fF=["gui-select-all",""];function bF(i,t){if(i&1){let e=Z();h(0,"gui-checkbox",2),F("changed",function(){R(e);let r=f().$implicit,o=f();return A(o.toggleSelectAll(r.isAllIndeterminate,r.isAllChecked))}),g()}if(i&2){let e=f().$implicit;m("checked",e.isAllChecked)("gui-tooltip","Select")("indeterminate",e.isAllIndeterminate)}}function vF(i,t){if(i&1&&(pe(0),D(1,bF,1,3,"gui-checkbox",1),fe()),i&2){let e=t.$implicit;u(),m("ngIf",e.modeMulti)}}var xF=["gui-structure-menu-icon",""],_F=["headerDialogContainer"],yF=["gui-structure-column-config-trigger",""];function wF(i,t){if(i&1){let e=Z();h(0,"div",2,0),F("click",function(){R(e);let r=f();return A(r.openConfigDialog())}),b(2,"div",3),g()}i&2&&(u(2),m("ngClass","gui-header-menu-icon"))}var CF=["selectCustomContainer"],IF=["gui-structure-header-columns","","columns",""],kF=i=>({"gui-header-sortable":i});function EF(i,t){i&1&&(h(0,"div",2),b(1,"div",3),g())}function SF(i,t){i&1&&Co(0)}function DF(i,t){if(i&1&&b(0,"div",10),i&2){let e=f().$implicit;m("position",e.getSortStatus())("sort",!0)}}function TF(i,t){if(i&1){let e=Z();h(0,"div",4),F("click",function(){let r=R(e).$implicit,o=f();return A(o.toggleSort(r))}),h(1,"div",5),D(2,SF,1,0,"ng-container",6)(3,DF,1,2,"div",7),g(),h(4,"div",8),b(5,"div",9),g()()}if(i&2){let e=t.$implicit;O_(e.getStyles()),Yi(e.getCssClasses()),Ae("width",e.width,"px"),m("ngClass",ol(11,kF,e.isSortEnabled())),u(2),m("ngTemplateOutlet",e.viewTemplate)("ngTemplateOutletContext",e.context),u(),m("ngIf",!e.isNoSort()),u(2),m("column",e)}}var MF=["gui-structure-header-groups","","groups","","checkboxSelection",""];function FF(i,t){i&1&&(h(0,"div",2),b(1,"div",3),g())}function RF(i,t){if(i&1&&(h(0,"div",4)(1,"div",5),S(2),g()()),i&2){let e=t.$implicit;Ae("width",e.width,"px"),u(2),oe(" ",e.header," ")}}var AF=["gui-structure-header-filters","","columns",""],OF=()=>["has value","is the same as","starts with","ends with"];function PF(i,t){if(i&1){let e=Z();h(0,"div",2)(1,"button",3),F("click",function(){R(e);let r=f(2);return A(r.turnOnFilterMode())}),S(2,"Add Filter"),g()()}if(i&2){let e=t.$implicit;Ae("width",e.width,"px")}}function NF(i,t){if(i&1&&(pe(0),D(1,PF,3,2,"div",1),fe()),i&2){let e=f();u(),m("ngForOf",e.columns)}}function jF(i,t){if(i&1){let e=Z();pe(0),b(1,"gui-select",4),h(2,"form",5),b(3,"input",6),g(),h(4,"button",7),F("click",function(){R(e);let r=f();return A(r.clearFilters())}),S(5,"Clear All"),g(),h(6,"button",7),F("click",function(){R(e);let r=f();return A(r.turnOffFilterMode())}),S(7,"Close"),g(),fe()}if(i&2){let e=f();u(),m("options",Io(4,OF))("selected","has value"),u(),m("formGroup",e.filterForm),u(),m("formControlName",e.filterFieldName)}}var VF=["gui-structure-header",""];function LF(i,t){if(i&1&&b(0,"div",3),i&2){let e=f().$implicit;m("checkboxSelection",e.showSelection)("groups",e.groups)}}function zF(i,t){if(i&1&&(pe(0),D(1,LF,1,2,"div",2),fe()),i&2){let e=t.$implicit;u(),m("ngIf",e.showGroups)}}function BF(i,t){if(i&1&&b(0,"div",4),i&2){let e=t.$implicit,n=f();m("columns",e.headerColumns)("guiStyle",n.width$)("showSelection",e.showSelection)}}function HF(i,t){if(i&1&&b(0,"div",6),i&2){let e=f().$implicit,n=f();m("columns",e.headerColumns)("guiStyle",n.filterHeaderHeight$)}}function $F(i,t){if(i&1&&(pe(0),D(1,HF,1,2,"div",5),fe()),i&2){let e=t.$implicit;u(),m("ngIf",e.filterRowEnabled)}}var UF=["cellContainer"],WF=["gui-structure-cell-edit-boolean","","entity","","cell",""];function GF(i,t){i&1&&Co(0)}var qF=["gui-structure-cell","","entity","","cell",""],YF=(i,t,e,n)=>({"gui-cell-view":!0,"gui-align-left":i,"gui-align-center":t,"gui-align-right":e,"gui-column-highlighted":n}),QF=(i,t,e,n)=>({element:i,index:t,value:e,item:n});function KF(i,t){i&1&&Co(0)}function ZF(i,t){if(i&1){let e=Z();h(0,"span",3),F("click",function(){R(e);let r=f(2);return A(r.enterEditMode())}),D(1,KF,1,0,"ng-container",4),g()}if(i&2){let e=f(2);m("ngClass",Hh(3,YF,e.cell.isAlignLeft(),e.cell.isAlignCenter(),e.cell.isAlignRight(),e.isHighlighted)),u(),m("ngTemplateOutlet",e.cell.template)("ngTemplateOutletContext",Hh(8,QF,e.cell.getValue(e.entity,e.searchPhrase),e.entity.getPosition(),e.cell.getValue(e.entity,e.searchPhrase).value,e.entity.getSourceItem()))}}function XF(i,t){i&1&&Co(0)}function JF(i,t){if(i&1&&(h(0,"span",5),D(1,XF,1,0,"ng-container",4),g()),i&2){let e=f(2);u(),m("ngTemplateOutlet",e.cell.editTemplate)("ngTemplateOutletContext",e.editContext)}}function eR(i,t){if(i&1&&(pe(0),D(1,ZF,2,13,"span",1)(2,JF,2,2,"span",2),fe()),i&2){let e=f();u(),m("ngIf",!e.inEditMode),u(),m("ngIf",e.inEditMode)}}function tR(i,t){if(i&1&&(pe(0),b(1,"div",6),fe()),i&2){let e=f();u(),m("cell",e.cell)("entity",e.entity)}}var iR=["gui-structure-row",""];function nR(i,t){if(i&1){let e=Z();h(0,"div",3)(1,"gui-checkbox",4),F("changed",function(){R(e);let r=f();return A(r.selectCheckbox())}),g()()}if(i&2){let e=f();u(),m("checked",e.selectedItem)}}function rR(i,t){if(i&1){let e=Z();h(0,"div",5)(1,"gui-radio-button",4),F("changed",function(){R(e);let r=f();return A(r.selectRadio())}),g()()}if(i&2){let e=f();u(),m("checked",e.selectedItem)}}function oR(i,t){if(i&1&&b(0,"div",6),i&2){let e=t.$implicit,n=t.index,r=f();Ae("width",e.width,"px"),m("cellEditorManager",r.cellEditing)("cell",e)("columnIndex",n)("editMode",r.editMode)("entity",r.entity)("rowIndex",r.index)("searchPhrase",r.searchPhrase)}}var sR=["gui-structure-content",""],aR=(i,t)=>({even:i,odd:t}),cR=i=>({transform:i});function lR(i,t){if(i&1){let e=Z();h(0,"div",3),F("click",function(){let r=R(e).$implicit,o=f().$implicit,s=f();return A(s.toggleSelectedRow(r,o.selectionEnabled,o.checkboxSelection,o.radioSelection))}),g()}if(i&2){let e=t.$implicit,n=t.index,r=f().$implicit,o=f();Ae("height",r.rowHeight,"px"),m("cellEditing",r.cellEditing)("checkboxSelection",r.checkboxSelection)("columns",o.columns)("editMode",r.editMode)("entity",e)("id",e.getUiId())("index",e.getPosition())("ngClass",Bh(15,aR,e.isEven(),e.isOdd()))("ngStyle",ol(18,cR,o.translateY(n,r.rowHeight)))("radioSelection",r.radioSelection)("rowClass",r.schemaRowClass)("rowStyle",r.schemaRowStyle)("searchPhrase",r.searchPhrase)}}function dR(i,t){if(i&1&&(h(0,"div",1),D(1,lR,1,20,"div",2),g()),i&2){let e=f();u(),m("ngForOf",e.source)("ngForTrackBy",e.trackByFn)}}var uR=["sourceCollection"],mR=["gui-structure-container",""],hR=["gui-structure-title-panel",""],gR=["gui-structure-footer-panel",""],pR=["gui-structure-blueprint",""];function fR(i,t){i&1&&b(0,"div",8)}function bR(i,t){i&1&&b(0,"div",9)}function vR(i,t){i&1&&b(0,"div",11),i&2&&m("position",0)}function xR(i,t){if(i&1&&(pe(0),D(1,vR,1,1,"div",10),fe()),i&2){let e=t.$implicit,n=f();u(),m("ngIf",n.isPagingTopEnabled(e))}}function _R(i,t){if(i&1&&b(0,"div",13),i&2){let e=f(2);m("ngClass",e.headerTopClasses)}}function yR(i,t){if(i&1&&(pe(0),D(1,_R,1,1,"div",12),fe()),i&2){let e=t.$implicit,n=f();u(),m("ngIf",n.isColumnHeaderTopEnabled(e))}}function wR(i,t){if(i&1&&b(0,"div",13),i&2){let e=f(2);m("ngClass",e.headerBottomClasses)}}function CR(i,t){if(i&1&&(pe(0),D(1,wR,1,1,"div",12),fe()),i&2){let e=t.$implicit,n=f();u(),m("ngIf",n.isColumnHeaderBottomEnabled(e))}}function IR(i,t){i&1&&b(0,"div",15)}function kR(i,t){if(i&1&&(pe(0),D(1,IR,1,0,"div",14),fe()),i&2){let e=t.$implicit;u(),m("ngIf",e)}}function ER(i,t){i&1&&b(0,"div",11),i&2&&m("position",1)}function SR(i,t){if(i&1&&(pe(0),D(1,ER,1,1,"div",10),fe()),i&2){let e=t.$implicit,n=f();u(),m("ngIf",n.isPagingBottomEnabled(e))}}function DR(i,t){i&1&&b(0,"div",16)}var TR=(i,t)=>({"gui-loader-visible":i,"gui-loader-hidden":t});function MR(i,t){i&1&&b(0,"gui-spinner",3),i&2&&m("diameter",120)("primary",!0)}var FR=["structure"];var RR={sourceEmpty:"There are no items to show.",pagingItemsPerPage:"Items per page:",pagingOf:"of",pagingNextPage:"Next",pagingPrevPage:"Prev",pagingNoItems:"There is no items.",infoPanelShowing:"Showing",infoPanelItems:"items",infoPanelOutOf:"out of",infoPanelThemeMangerTooltipText:"Theme manager",infoPanelColumnManagerTooltipText:"Column manager",infoPanelInfoTooltipText:"info",themeManagerModalTitle:"Theme manager",themeManagerModalTheme:"Theme:",themeManagerModalRowColoring:"Row coloring:",themeManagerModalVerticalGrid:"Vertical grid",themeManagerModalHorizontalGrid:"HorizontalGrid",columnManagerModalTitle:"Manage columns",headerMenuMainTab:"Menu",headerMenuMainTabColumnSort:"Column sort",headerMenuMainTabHideColumn:"Hide column",headerMenuMainTabHighlightColumn:"Highlight",headerMenuMainTabMoveLeft:"Move left",headerMenuMainTabMoveRight:"Move right",headerMenuMainTabColumnSortAscending:"Ascending",headerMenuMainTabColumnSortDescending:"Descending",headerMenuMainTabColumnSortNone:"None",headerMenuFilterTab:"Filter",headerMenuColumnsTab:"Columns",summariesCount:"Count",summariesDist:"Dist",summariesSum:"Sum",summariesAvg:"Avg",summariesMin:"Min",summariesMax:"Max",summariesMed:"Med",summariesTruthy:"Truthy",summariesFalsy:"Falsy",summariesDistinctValuesTooltip:"Distinct values",summariesAverageTooltip:"Average",summariesMinTooltip:"Min",summariesMaxTooltip:"Max",summariesMedTooltip:"Median",summariesCountTooltip:"Number of items in the grid"};var Or=function(i){return i[i.UNKNOWN=0]="UNKNOWN",i[i.NUMBER=1]="NUMBER",i[i.STRING=2]="STRING",i[i.BOOLEAN=3]="BOOLEAN",i[i.DATE=4]="DATE",i[i.CUSTOM=5]="CUSTOM",i}(Or||{}),oi=function(i){return i[i.TEXT=0]="TEXT",i[i.CHIP=1]="CHIP",i[i.LINK=2]="LINK",i[i.IMAGE=3]="IMAGE",i[i.BOLD=4]="BOLD",i[i.ITALIC=5]="ITALIC",i[i.CHECKBOX=6]="CHECKBOX",i[i.CUSTOM=7]="CUSTOM",i[i.BAR=8]="BAR",i[i.PERCENTAGE_BAR=9]="PERCENTAGE_BAR",i[i.PERCENTAGE=10]="PERCENTAGE",i}(oi||{});var si=function(i){return i[i.FABRIC=0]="FABRIC",i[i.MATERIAL=1]="MATERIAL",i[i.LIGHT=2]="LIGHT",i[i.DARK=3]="DARK",i[i.GENERIC=4]="GENERIC",i}(si||{}),Vn=function(i){return i[i.NONE=0]="NONE",i[i.EVEN=1]="EVEN",i[i.ODD=2]="ODD",i}(Vn||{});var Va=function(i){return i[i.BASIC=0]="BASIC",i[i.ADVANCED=1]="ADVANCED",i}(Va||{}),_d=function(i){return i[i.RIGHT=0]="RIGHT",i[i.CENTER=1]="CENTER",i[i.LEFT=2]="LEFT",i}(_d||{}),yd=function(i){return i[i.ROW=0]="ROW",i[i.CHECKBOX=1]="CHECKBOX",i[i.RADIO=2]="RADIO",i}(yd||{}),tf=function(i){return i[i.SINGLE=0]="SINGLE",i[i.MULTIPLE=1]="MULTIPLE",i}(tf||{});var $=function(i){return i[i.UNKNOWN=0]="UNKNOWN",i[i.NUMBER=1]="NUMBER",i[i.STRING=2]="STRING",i[i.BOOLEAN=3]="BOOLEAN",i[i.DATE=4]="DATE",i[i.CUSTOM=5]="CUSTOM",i}($||{}),nf=class{convertType(t){return typeof t=="string"?this.convertTypeString(t):this.convertTypeEnum(t)}convertTypeEnum(t){switch(t){case Or.STRING:return $.STRING;case Or.NUMBER:return $.NUMBER;case Or.BOOLEAN:return $.BOOLEAN;case Or.DATE:return $.DATE;case Or.UNKNOWN:return $.UNKNOWN;case Or.CUSTOM:return $.CUSTOM;default:return $.STRING}}convertTypeString(t){switch(t.toLocaleLowerCase()){case"string":return $.STRING;case"number":return $.NUMBER;case"boolean":return $.BOOLEAN;case"date":return $.DATE;case"unknown":return $.UNKNOWN;case"custom":return $.CUSTOM;default:return $.STRING}}},ee=function(i){return i[i.COUNT=1024]="COUNT",i[i.DISTINCT=1]="DISTINCT",i[i.SUM=2]="SUM",i[i.AVERAGE=4]="AVERAGE",i[i.MIN=8]="MIN",i[i.MAX=16]="MAX",i[i.MEDIAN=32]="MEDIAN",i[i.TRUTHY=64]="TRUTHY",i[i.FALSY=128]="FALSY",i[i.EARLIEST=256]="EARLIEST",i[i.LATEST=512]="LATEST",i}(ee||{}),rf=class{convert(t){let e={};return t.enabled!==void 0&&t.enabled!==null&&(e.enabled=t.enabled),t.summariesTypes!==void 0&&t.summariesTypes!==null&&(e.summariesTypes=this.convertSummariesTypes(t.summariesTypes)),e}convertSummariesTypes(t){let e=[];return t.forEach(n=>{let r=this.convertSummariesType(n);r!=null&&e.push(r)}),e}convertSummariesType(t){switch(t.toLocaleLowerCase()){case"count":return ee.COUNT;case"distinct":return ee.DISTINCT;case"sum":return ee.SUM;case"average":return ee.AVERAGE;case"min":return ee.MIN;case"max":return ee.MAX;case"median":return ee.MEDIAN;case"truthy":return ee.TRUTHY;case"falsy":return ee.FALSY;case"earliest":return ee.EARLIEST;case"latest":return ee.LATEST;default:return null}}},j=function(i){return i[i.TEXT=0]="TEXT",i[i.NUMBER=1]="NUMBER",i[i.CHIP=2]="CHIP",i[i.LINK=3]="LINK",i[i.IMAGE=4]="IMAGE",i[i.BOLD=5]="BOLD",i[i.ITALIC=6]="ITALIC",i[i.CHECKBOX=7]="CHECKBOX",i[i.CUSTOM=8]="CUSTOM",i[i.FUNCTION=9]="FUNCTION",i[i.DATE=10]="DATE",i[i.BAR=11]="BAR",i[i.PERCENTAGE_BAR=12]="PERCENTAGE_BAR",i[i.PERCENTAGE=13]="PERCENTAGE",i[i.NG_TEMPLATE=14]="NG_TEMPLATE",i[i.HTML=15]="HTML",i}(j||{}),of=class{convert(t){return typeof t=="string"?this.convertString(t):typeof t=="function"?t:this.convertEnum(t)}convertString(t){switch(t.toLocaleLowerCase()){case"text":return j.TEXT;case"chip":return j.CHIP;case"link":return j.LINK;case"image":return j.IMAGE;case"bold":return j.BOLD;case"italic":return j.ITALIC;case"checkbox":return j.CHECKBOX;case"custom":return j.CUSTOM;case"bar":return j.BAR;case"percentage_bar":return j.PERCENTAGE_BAR;case"percentage":return j.PERCENTAGE;default:return j.TEXT}}convertEnum(t){switch(t){case oi.TEXT:return j.TEXT;case oi.CHIP:return j.CHIP;case oi.LINK:return j.LINK;case oi.IMAGE:return j.IMAGE;case oi.BOLD:return j.BOLD;case oi.ITALIC:return j.ITALIC;case oi.CHECKBOX:return j.CHECKBOX;case oi.CUSTOM:return j.CUSTOM;case oi.BAR:return j.BAR;case oi.PERCENTAGE_BAR:return j.PERCENTAGE_BAR;case oi.PERCENTAGE:return j.PERCENTAGE;default:return j.TEXT}}},sf=class{convert(t){return typeof t=="boolean"?{enabled:t}:t}},af=class{convert(t){return typeof t=="boolean"?{enabled:t}:t}},$e=function(i){return i[i.RIGHT=0]="RIGHT",i[i.CENTER=1]="CENTER",i[i.LEFT=2]="LEFT",i}($e||{}),cf=class{convert(t){return typeof t=="string"?this.convertTypeString(t):this.convertTypeEnum(t)}convertTypeEnum(t){switch(t){case _d.RIGHT:return $e.RIGHT;case _d.CENTER:return $e.CENTER;case _d.LEFT:return $e.LEFT;default:return $e.LEFT}}convertTypeString(t){switch(t.toLocaleLowerCase()){case"right":return $e.RIGHT;case"center":return $e.CENTER;case"left":return $e.LEFT;default:return $e.LEFT}}},lf=class{columnTypeConverter=new nf;columnSummariesConverter=new rf;columnViewConverter=new of;columnSortingConverter=new sf;columnCellEditingConverter=new af;columnAlignConverter=new cf;convert(t){return t.map(e=>{if(e.columns!==void 0){let n=e.columns.map(r=>this.convertColumn(r));return{header:e.header,columns:n}}else return this.convertColumn(e)})}convertColumn(t){let e={};return t.name!==void 0&&t.name!==null?e.name=t.name:t.field!==void 0&&t.field!==null&&typeof t.field=="string"&&(e.name=t.field),t.type!==void 0&&t.type!==null&&(e.type=this.columnTypeConverter.convertType(t.type)),t.header!==void 0&&t.header!==null&&(e.header=t.header),t.enabled!==void 0&&t.enabled!==null&&(e.enabled=t.enabled),t.field!==void 0&&t.field!==null&&(e.field=t.field),t.width!==void 0&&t.width!==null&&(e.width=t.width),t.align!==void 0&&t.align!==null&&(e.align=this.columnAlignConverter.convert(t.align)),t.view!==void 0&&t.view!==null&&(e.view=this.columnViewConverter.convert(t.view)),t.summaries!==void 0&&t.summaries!==null&&(e.summaries=this.columnSummariesConverter.convert(t.summaries)),t.sorting!==void 0&&t.sorting!==null&&(e.sorting=this.columnSortingConverter.convert(t.sorting)),t.cellEditing!==void 0&&t.cellEditing!==null&&(e.cellEditing=this.columnCellEditingConverter.convert(t.cellEditing)),t.formatter!==void 0&&t.formatter!==null&&(e.formatter=t.formatter),t.matcher!==void 0&&t.matcher!==null&&(e.matcher=t.matcher),t.cssClasses!==void 0&&t.cssClasses!==null&&(e.cssClasses=t.cssClasses),t.styles!==void 0&&t.styles!==null&&(e.styles=t.styles),t.templateRef!==void 0&&t.templateRef!==null&&(e.templateRef=t.templateRef,e.view=j.NG_TEMPLATE),e}},H=function(i){return i[i.FABRIC=0]="FABRIC",i[i.MATERIAL=1]="MATERIAL",i[i.LIGHT=2]="LIGHT",i[i.DARK=3]="DARK",i[i.GENERIC=4]="GENERIC",i}(H||{}),df=class{convert(t){return typeof t=="string"?this.convertString(t):this.convertEnum(t)}convertToGuiTheme(t){switch(t){case H.MATERIAL:return si.MATERIAL;case H.FABRIC:return si.FABRIC;case H.LIGHT:return si.LIGHT;case H.DARK:return si.DARK;case H.GENERIC:return si.GENERIC;default:return si.GENERIC}}convertString(t){switch(t.toLocaleLowerCase()){case"material":return H.MATERIAL;case"fabric":return H.FABRIC;case"light":return H.LIGHT;case"dark":return H.DARK;case"generic":return H.GENERIC;default:return H.FABRIC}}convertEnum(t){switch(t){case si.MATERIAL:return H.MATERIAL;case si.FABRIC:return H.FABRIC;case si.LIGHT:return H.LIGHT;case si.DARK:return H.DARK;case si.GENERIC:return H.GENERIC;default:return H.FABRIC}}},at=function(i){return i[i.NONE=0]="NONE",i[i.EVEN=1]="EVEN",i[i.ODD=2]="ODD",i}(at||{}),uf=class{convert(t){return typeof t=="string"?this.convertString(t):this.convertEnum(t)}convertToGuiRowColoring(t){switch(t){case at.NONE:return Vn.NONE;case at.EVEN:return Vn.EVEN;case at.ODD:return Vn.ODD;default:return Vn.EVEN}}convertString(t){switch(t.toLocaleLowerCase()){case"none":return at.NONE;case"even":return at.EVEN;case"odd":return at.ODD;default:return at.EVEN}}convertEnum(t){switch(t){case Vn.NONE:return at.NONE;case Vn.EVEN:return at.EVEN;case Vn.ODD:return at.ODD;default:return at.EVEN}}},AR=(()=>{class i{convert(e){return e}static \u0275fac=function(n){return new(n||i)};static \u0275prov=k({token:i,factory:i.\u0275fac})}return i})(),an=function(i){return i[i.BASIC=0]="BASIC",i[i.ADVANCED=1]="ADVANCED",i}(an||{}),mf=class{convert(t){let e={};return t.enabled!==void 0&&t.enabled!==null&&(e.enabled=t.enabled),t.page!==void 0&&t.page!==null&&(e.page=t.page),t.pageSize!==void 0&&t.pageSize!==null&&(e.pageSize=t.pageSize),t.pageSizes!==void 0&&t.pageSizes!==null&&(e.pageSizes=t.pageSizes),t.pagerTop!==void 0&&t.pagerTop!==null&&(e.pagerTop=t.pagerTop),t.pagerBottom!==void 0&&t.pagerBottom!==null&&(e.pagerBottom=t.pagerBottom),t.display!==void 0&&t.display!==null&&(e.displayMode=this.convertDisplay(t.display)),e}convertDisplay(t){return typeof t=="string"?this.convertString(t):this.convertEnum(t)}convertString(t){switch(t.toLocaleLowerCase()){case"basic":return an.BASIC;case"advanced":return an.ADVANCED;default:return an.BASIC}}convertEnum(t){switch(t){case Va.BASIC:return an.BASIC;case Va.ADVANCED:return an.ADVANCED;default:return an.BASIC}}},La=class{build(){return this.buildObject()}},xt=function(i){return i.ROW="ROW",i.CHECKBOX="CHECKBOX",i.RADIO="RADIO",i}(xt||{}),ai=function(i){return i.SINGLE="SINGLE",i.MULTIPLE="MULTIPLE",i}(ai||{}),OR=(()=>{class i{enabled;selectedRowIndexes;selectedRowIds;type;mode;matcher;customConfig;constructor(e){e.enabled!==void 0&&(this.enabled=e.enabled),e?.selectedRowIndexes&&(this.selectedRowIndexes=e.selectedRowIndexes),e?.selectedRowIds&&(this.selectedRowIds=e.selectedRowIds),e?.mode&&(this.mode=e.mode),e?.type&&(this.type=e.type),e?.matcher&&(this.matcher=e.matcher),e?.config&&(this.customConfig=e.config)}isModeDefined(){return this.mode!==void 0}isTypeDefined(){return this.type!==void 0}isSelectedRowIndexesDefined(){return this.selectedRowIndexes!==void 0}isSelectedRowIdsDefined(){return this.selectedRowIds!==void 0}isEnabledDefined(){return this.enabled!==void 0}isMatcherDefined(){return this.matcher!==void 0}isEnabled(){return this.enabled}isCustomSelectConfig(){return this.customConfig!==void 0}getSelectedRowIndexes(){return this.selectedRowIndexes}getSelectedRowIds(){return this.selectedRowIds}getMode(){return this.mode}getType(){return this.type}getMatcher(){return this.matcher}getCustomSelectConfig(){return this.customConfig}static Builder=class extends La{enabled;selectedRowIndexes;selectedRowIds;type;mode;config;matcher;constructor(){super()}buildObject(){return new i({enabled:this.enabled,selectedRowIndexes:this.selectedRowIndexes,selectedRowIds:this.selectedRowIds,type:this.type,mode:this.mode,matcher:this.matcher,config:this.config})}withEnabled(n){return this.enabled=n,this}withSelectedRowIndexes(n){return this.selectedRowIndexes=n,this}withSelectedRowIds(n){return this.selectedRowIds=n,this}withType(n){return this.type=n,this}withMode(n){return this.mode=n,this}withMatcher(n){return this.matcher=n,this}witCustomSelection(n){return this.config=n,this}}}return i})(),hf=class{enabled;selections},gf=class{convert(t){let e=new OR.Builder;if(typeof t=="boolean")return e.withEnabled(t).build();if(t.enabled!==void 0&&e.withEnabled(t.enabled),t.selectedRowIndexes!==void 0&&e.withSelectedRowIndexes(t.selectedRowIndexes),t.selectedRowIds!==void 0&&e.withSelectedRowIds(t.selectedRowIds),t.mode!==void 0){let n=this.convertMode(t.mode);e.withMode(n)}if(t.type!==void 0){let n=this.convertType(t.type);e.withType(n)}if(t.matcher!==void 0){let n=this.convertMatcher(t.matcher);e.withMatcher(n)}if(t.custom!==void 0){let n=this.convertCustomSelection(t.custom);e.witCustomSelection(n)}return e.build()}convertMode(t){if(typeof t=="string")switch(t.toLowerCase()){case"single":return ai.SINGLE;case"multiple":return ai.MULTIPLE;default:return ai.SINGLE}else switch(t){case tf.SINGLE:return ai.SINGLE;case tf.MULTIPLE:return ai.MULTIPLE;default:return ai.SINGLE}}convertType(t){if(typeof t=="string")switch(t.toLowerCase()){case"row":return xt.ROW;case"checkbox":return xt.CHECKBOX;case"radio":return xt.RADIO;default:return xt.ROW}else switch(t){case yd.ROW:return xt.ROW;case yd.CHECKBOX:return xt.CHECKBOX;case yd.RADIO:return xt.RADIO;default:return xt.ROW}}convertMatcher(t){return typeof t=="string"?e=>e[t]:t}convertCustomSelection(t){let e=new hf;return t?.enabled&&(e.enabled=t.enabled),t?.selections&&Array.isArray(t?.selections)&&(e.selections=t.selections.map(n=>n)),e}},ax=(()=>{class i{templateRef;name;field;type;view;header;width;enabled;align;summaries;sorting;cellEditing;formatter;matcher;cssClasses;styles;static \u0275fac=function(n){return new(n||i)};static \u0275cmp=I({type:i,selectors:[["gui-grid-column"]],contentQueries:function(n,r,o){if(n&1&&yt(o,Pe,7),n&2){let s;L(s=z())&&(r.templateRef=s.first)}},inputs:{name:"name",field:"field",type:"type",view:"view",header:"header",width:"width",enabled:"enabled",align:"align",summaries:"summaries",sorting:"sorting",cellEditing:"cellEditing",formatter:"formatter",matcher:"matcher",cssClasses:"cssClasses",styles:"styles"},decls:0,vars:0,template:function(n,r){},encapsulation:2})}return i})(),pf=class{convert(t){return typeof t=="boolean"?{enabled:t}:t}};function Re(i,t){PR(i)&&t(i.currentValue)}function PR(i){return i!==void 0&&i.currentValue!==void 0}var NR=(()=>{class i{guiGridColumnComponent;columnHeaderTop;columnHeaderBottom;maxHeight;width;rowHeight;autoResizeWidth;source=[];columns=[];paging;verticalGrid;horizontalGrid;theme;rowColoring;rowSelection;rowStyle;rowClass;loading;virtualScroll;sorting;searching;titlePanel;footerPanel;filtering;quickFilters;editMode;cellEditing;infoPanel;summaries;columnMenu;rowDetail;localization;pageChanged=new W;pageSizeChanged=new W;itemsSelected=new W;selectedRows=new W;columnsChanged=new W;containerWidthChanged=new W;sourceEdited=new W;cellEditEntered=new W;cellEditCanceled=new W;cellEditSubmitted=new W;searchPhraseChanged=new W;themeChanged=new W;horizontalGridChanged=new W;verticalGridChanged=new W;rowColoringChanged=new W;columnsConfig;themeConfig;rowColoringConfig;columnMenuConfig;rowSelectionConfig;cellEditingConfig;gridColumnConverter=new lf;gridThemeConverter=new df;gridRowColoringConverter=new uf;gridColumnMenuConverter=new AR;gridPagingConverter=new mf;gridRowSelectionConverter=new gf;guiGridCellEditConverter=new pf;constructor(){}ngOnChanges(e){Re(e.columns,()=>{this.columnsConfig=this.gridColumnConverter.convert(this.columns)}),Re(e.theme,()=>{this.themeConfig=this.gridThemeConverter.convert(this.theme)}),Re(e.rowColoring,()=>{this.rowColoringConfig=this.gridRowColoringConverter.convert(this.rowColoring)}),Re(e.columnMenu,()=>{this.columnMenuConfig=this.gridColumnMenuConverter.convert(this.columnMenu)}),Re(e.rowSelection,()=>{this.rowSelectionConfig=this.gridRowSelectionConverter.convert(this.rowSelection)}),Re(e.cellEditing,()=>{this.cellEditingConfig=this.guiGridCellEditConverter.convert(this.cellEditing)}),Re(e.paging,()=>{typeof this.paging!="boolean"&&(this.paging=this.gridPagingConverter.convert(this.paging))})}ngAfterContentInit(){this.guiGridColumnComponent&&this.guiGridColumnComponent.toArray().length>0&&(this.columnsConfig=this.gridColumnConverter.convert(this.guiGridColumnComponent.toArray()))}onPageChange(e){this.pageChanged.emit(e)}onPageSizeChange(e){this.pageSizeChanged.emit(e)}onItemSelect(e){this.itemsSelected.emit(e)}onRowsSelect(e){let n=e.map(r=>({index:r.getIndex(),source:r.getItem(),itemId:r.getItemId()}));this.selectedRows.emit(n)}onColumnsChange(){this.columnsChanged.emit()}onContainerWidthChange(e){this.containerWidthChanged.emit(e)}onSourceEdit(e){this.sourceEdited.emit(e)}onCellEditEnter(){this.cellEditEntered.emit()}onCellEditSubmit(){this.cellEditSubmitted.emit()}onCellEditCancel(){this.cellEditCanceled.emit()}onSearchPhrase(e){this.searchPhraseChanged.emit(e)}onTheme(e){this.themeChanged.emit(this.gridThemeConverter.convertToGuiTheme(e))}onHorizontalGrid(e){this.horizontalGridChanged.emit(e)}onVerticalGrid(e){this.verticalGridChanged.emit(e)}onRowColoring(e){this.rowColoringChanged.emit(this.gridRowColoringConverter.convertToGuiRowColoring(e))}static \u0275fac=function(n){return new(n||i)};static \u0275dir=N({type:i,contentQueries:function(n,r,o){if(n&1&&yt(o,ax,4),n&2){let s;L(s=z())&&(r.guiGridColumnComponent=s)}},inputs:{columnHeaderTop:"columnHeaderTop",columnHeaderBottom:"columnHeaderBottom",maxHeight:"maxHeight",width:"width",rowHeight:"rowHeight",autoResizeWidth:"autoResizeWidth",source:"source",columns:"columns",paging:"paging",verticalGrid:"verticalGrid",horizontalGrid:"horizontalGrid",theme:"theme",rowColoring:"rowColoring",rowSelection:"rowSelection",rowStyle:"rowStyle",rowClass:"rowClass",loading:"loading",virtualScroll:"virtualScroll",sorting:"sorting",searching:"searching",titlePanel:"titlePanel",footerPanel:"footerPanel",filtering:"filtering",quickFilters:"quickFilters",editMode:"editMode",cellEditing:"cellEditing",infoPanel:"infoPanel",summaries:"summaries",columnMenu:"columnMenu",rowDetail:"rowDetail",localization:"localization"},outputs:{pageChanged:"pageChanged",pageSizeChanged:"pageSizeChanged",itemsSelected:"itemsSelected",selectedRows:"selectedRows",columnsChanged:"columnsChanged",containerWidthChanged:"containerWidthChanged",sourceEdited:"sourceEdited",cellEditEntered:"cellEditEntered",cellEditCanceled:"cellEditCanceled",cellEditSubmitted:"cellEditSubmitted",searchPhraseChanged:"searchPhraseChanged",themeChanged:"themeChanged",horizontalGridChanged:"horizontalGridChanged",verticalGridChanged:"verticalGridChanged",rowColoringChanged:"rowColoringChanged"},features:[G]})}return i})(),kC=new K("StructureParentComponent"),as=class{index;itemId;item;constructor(t,e,n){this.item=t,this.index=e,this.itemId=n}getItem(){return this.item}getIndex(){return this.index}getItemId(){return this.itemId}},ff=class{structureId;compositionId;schemaId;formationCommandInvoker;formationWarehouse;compositionCommandInvoker;compositionWarehouse;filterIntegration;sourceCommandInvoker;searchCommandInvoker;gridThemeCommandInvoker;structureCommandInvoker;summariesCommandInvoker;sortingCommandInvoker;pagingCommandInvoker;constructor(t,e,n,r,o,s,a,l,d,p,w,E,Q,ne,ce){this.structureId=t,this.compositionId=e,this.schemaId=n,this.formationCommandInvoker=r,this.formationWarehouse=o,this.compositionCommandInvoker=s,this.compositionWarehouse=a,this.filterIntegration=l,this.sourceCommandInvoker=d,this.searchCommandInvoker=p,this.gridThemeCommandInvoker=w,this.structureCommandInvoker=E,this.summariesCommandInvoker=Q,this.sortingCommandInvoker=ne,this.pagingCommandInvoker=ce}provide(){let t=this.structureId,e=this.compositionId,n=this.schemaId,r=this.formationCommandInvoker,o=this.formationWarehouse,s=this.compositionCommandInvoker,a=this.compositionWarehouse,l=this.filterIntegration,d=this.sourceCommandInvoker,p=this.searchCommandInvoker,w=this.gridThemeCommandInvoker,E=this.structureCommandInvoker,Q=this.summariesCommandInvoker,ne=this.sortingCommandInvoker,ce=this.pagingCommandInvoker;return{setSource(O){d.setOrigin(O,t)},showLoading(){d.setLoading(!0,t)},hideLoading(){d.setLoading(!1,t)},deleteRow(O){d.deleteRow(new as(O.source,O.index,O.itemId),t)},deleteRows(O){let Y=O.map(Ie=>new as(Ie.source,Ie.index,Ie.itemId));d.deleteRows(Y,t)},deleteSelectedRows(){},getSelectedRows(){return o.findSelectedRows(t).getValueOrNullOrThrowError().map(Y=>({source:Y.getItem(),index:Y.getIndex(),itemId:Y.getItemId()}))},selectAll(){r.selectAll(t)},unselectAll(){r.unselectAll(t)},getColumns(){let O=[];return a.onTemplateColumns(e).subscribe(Y=>{O=Y}),O},getFilters(){let O=l.findFilters(e,t),Y={};return Object.keys(O).forEach(Ie=>{Y[Ie]=O[Ie].map(pt=>({columnName:pt.columnName,filterId:pt.filterId,filterType:pt.type,value:pt.value}))}),Y},getFiltersForColumn(O){return[]},getFilterTypes(){return[]},getFilterTypesForColumn(O){return l.findFilterTypes(O,e,t)},removeAll(){},removeFilter(O){},removeFiltersFromColumn(O){},filter(O,Y,Ie){l.filter(O,Y,Ie,e,t)},enablePaging(){ce.enable(t)},disablePaging(){ce.disable(t)},nextPage(){ce.nextPage(t)},prevPage(){ce.prevPage(t)},changePageSize(O){ce.changePageSize(O,t)},setPagingConfig(O){ce.setPaging(O,t)},setSearchingConfig(O){p.setSearchingConfig(O,t)},search(O){p.search(O,t)},clearSearchPhrase(){p.search("",t)},scrollToTop(){E.scrollToTop(t)},scrollToBottom(){E.scrollToBottom(t)},scrollToRowByIndex(O){E.scrollToIndex(O,t)},setTheme(O){w.setTheme(O,n,t)},setVerticalGrid(O){w.setVerticalGrid(O,n)},setHorizontalGrid(O){w.setHorizontalGrid(O,n)},setRowColoring(O){w.setRowColoring(O,n)},enableVirtualScroll(){E.enableVirtualScroll(t)},disableVirtualScroll(){E.disableVirtualScroll(t)},enableSummaries(){Q.setSummariesEnabled(!0,t)},disableSummaries(){Q.setSummariesEnabled(!1,t)},setSortConfig(O){ne.setSortingConfig(O,t)}}}},bf=class{schemaCommandInvoker;gridThemeConverter;gridRowColoringConverter;constructor(t,e,n){this.schemaCommandInvoker=t,this.gridThemeConverter=e,this.gridRowColoringConverter=n}setTheme(t,e,n){let r=this.gridThemeConverter.convert(t);this.schemaCommandInvoker.setTheme(r,e,n)}setRowColoring(t,e){let n=this.gridRowColoringConverter.convert(t);this.schemaCommandInvoker.setRowColoring(n,e)}setVerticalGrid(t,e){this.schemaCommandInvoker.setVerticalGrid(t,e)}setHorizontalGrid(t,e){this.schemaCommandInvoker.setHorizontalGrid(t,e)}},za=class{hostElement;constructor(t){this.hostElement=t}getElement(t){return this.createModifier(t)}getHost(){if(!this.hostElement)throw new Error("Missing host element in DomRenderer constructor.");return this.createModifier(this.hostElement)}},zc=(()=>{class i extends za{htmlElement;constructor(e){super(e),this.htmlElement=e}createModifier(e){return new i.ClassModifier(e)}static ClassModifier=class{htmlElement;constructor(e){this.htmlElement=e}add(...e){this.addClassToDomElement(this.htmlElement,e)}remove(...e){this.removeClassFromDomElement(this.htmlElement,e)}clear(){this.htmlElement.removeAttribute("class")}addClassToDomElement(e,n){for(let r=0;r<n.length;r++)e.classList.add(n[r])}removeClassFromDomElement(e,n){for(let r=0;r<n.length;r++)e.classList.remove(n[r])}}}return i})(),jR=(()=>{class i extends za{htmlElement;static AttributeModifier=class{htmlElement;constructor(e){this.htmlElement=e}setAttribute(e,n){this.htmlElement.setAttribute(e,n)}removeAttribute(e){this.htmlElement.removeAttribute(e)}};constructor(e){super(e),this.htmlElement=e}createModifier(e){return new i.AttributeModifier(e)}}return i})(),Id=class extends La{enabled;constructor(t){super(),this.enabled=t}withEnabled(t){return this.enabled=t,this}buildObject(){return new vf(this.enabled)}},VR=(()=>{class i extends Id{static defaultEnabled=!0;constructor(){super(i.defaultEnabled)}}return i})(),vf=(()=>{class i{static Builder=Id;static DefaultBuilder=VR;enabled;constructor(e){this.enabled=e}isEnabled(){return this.enabled}}return i})(),kd=class extends La{headerEnabled;bottomPaging;topPaging;border=!0;constructor(t,e,n){super(),this.headerEnabled=t,this.bottomPaging=e,this.topPaging=n}withHeader(t){return this.headerEnabled=t,this}withBottomPaging(t){return this.bottomPaging=t,this}withTopPaging(t){return this.topPaging=t,this}withBorder(t){return this.border=t,this}buildObject(){return new lo(this.headerEnabled,this.bottomPaging,this.topPaging,this.border)}},xf=class i extends kd{static defaultHeaderEnabled=!0;static defaultBottomPaging=new vf.DefaultBuilder().build();static defaultTopPaging=new vf.DefaultBuilder().build();constructor(){super(i.defaultHeaderEnabled,i.defaultBottomPaging,i.defaultTopPaging)}},lo=(()=>{class i{static Builder=kd;static DefaultBuilder=xf;headerEnabled;bottomPaging;topPaging;border;constructor(e,n,r,o){this.headerEnabled=e,this.bottomPaging=n,this.topPaging=r,this.border=o}isHeaderEnabled(){return this.headerEnabled}isBorderEnabled(){return this.border}getBottomPaging(){return this.bottomPaging}getTopPaging(){return this.topPaging}}return i})(),LR=new lo.DefaultBuilder().build(),EC=(()=>{class i{gridMap=new Map;register(e,n,r){this.gridMap.set(e,{component:n,structureId:r})}unregister(e){this.gridMap.delete(e)}getValues(e){return this.gridMap.get(e)}static \u0275fac=function(n){return new(n||i)};static \u0275prov=k({token:i,factory:i.\u0275fac})}return i})(),Vr=class{generateId(){return xw.generate()}},_t=class{constructor(){}},Rt=class{constructor(){}},ci=class{constructor(){}},At=class{constructor(){}},Vi=class{constructor(){}},Lr=class extends Xi{id;constructor(t){super(t),this.id=t}getId(){return this.id}equals(t){return t.toString()===this.id}toString(){return this.id}},_i=class{constructor(){}},dh=(()=>{class i{compositionWarehouse;filterCommandInvoker;filterWarehouse;constructor(e,n,r){this.compositionWarehouse=e,this.filterCommandInvoker=n,this.filterWarehouse=r}static services=[At,_i,Vi];findFilterTypes(e,n,r){let o=[];return this.compositionWarehouse.onTemplateColumns(n).pipe(P(s=>s.find(a=>a.getName()===e)),ye(s=>s!==void 0),Er(1),Ht(s=>this.filterWarehouse.onFilterTypesForFieldId(new Lr(s.columnFieldId.getId()),r))).subscribe(s=>{o=s.map(a=>a.getName())}),o}findFilters(e,n){let r=this.filterWarehouse.findFilters(n).getValueOrNullOrThrowError(),o=this.compositionWarehouse.findColumnNames(e),s={};for(let a=0;a<o.length;a+=1)s[o[a]]=r.filter(l=>l.getFieldName()===o[a]).map(l=>({columnName:l.getFieldName(),filterId:l.getFilterId().toString(),type:l.getFilterTypeName(),value:l.getValue()}));return s}filter(e,n,r,o,s){this.compositionWarehouse.onTemplateColumns(o).pipe(P(a=>a.find(l=>l.getName()===e)),ye(a=>a!==void 0),Er(1),Ht(a=>this.filterWarehouse.onceFilterTypeId(new Lr(a.columnFieldId.getId()),n,s).pipe(P(l=>({fieldId:new Lr(a.columnFieldId.getId()),filterTypeId:l}))))).subscribe(a=>{let{fieldId:l,filterTypeId:d}=a;d.ifPresent(p=>{this.filterCommandInvoker.add(l,p,r,s)})})}}return i})(),Wt=class{constructor(){}},Gt=class{constructor(){}},Ot=class{constructor(){}},Pt=class{constructor(){}},Hn=class{constructor(){}},qt=class{constructor(){}},Nt=class{constructor(){}},_f=class extends wr{constructor(t){super(t)}toAggregateId(){return new se(this.toString())}},se=class extends yr{constructor(t){super(t)}toReadModelRootId(){return new _f(this.getId())}},yf=class extends wr{constructor(t){super(t)}toAggregateId(){return new et(this.toString())}},et=class extends yr{constructor(t){super(t)}toReadModelRootId(){return new yf(this.getId())}},Ge=function(i){return i[i.NONE=0]="NONE",i[i.EVEN=1]="EVEN",i[i.ODD=2]="ODD",i}(Ge||{}),Yt=class{},pC=(()=>{class i extends vt{schemaReadModelRepository;static VERTICAL_GRID_CLASS_NAME="gui-vertical-grid";static HORIZONTAL_GRID_CLASS_NAME="gui-horizontal-grid";static THEME_FABRIC_CLASS_NAME="gui-fabric";static THEME_MATERIAL_CLASS_NAME="gui-material";static THEME_LIGHT_CLASS_NAME="gui-light";static THEME_DARK_CLASS_NAME="gui-dark";static THEME_GENERIC_CLASS_NAME="gui-generic";static ROW_COLORING_ODD="gui-rows-odd";static ROW_COLORING_EVEN="gui-rows-even";classModifier;cssClass=null;cssHostRef;constructor(e){super(),this.schemaReadModelRepository=e,this.classModifier=new zc}init(e,n){this.cssHostRef=e,this.schemaReadModelRepository.onCssClasses(n).pipe(this.hermesTakeUntil()).subscribe(r=>{let o=this.updateState(r);this.renderCssClasses(o)})}updateState(e){if(this.cssClass){let n={};return Object.keys(this.cssClass).forEach(r=>{e[r]!==this.cssClass[r]&&(n[r]=e[r])}),this.cssClass=e,n}else return this.cssClass=e,this.cssClass}renderCssClasses(e){e.hasOwnProperty("verticalGrid")&&this.toggleCssClass(e.verticalGrid,i.VERTICAL_GRID_CLASS_NAME),e.hasOwnProperty("horizontalGrid")&&this.toggleCssClass(e.horizontalGrid,i.HORIZONTAL_GRID_CLASS_NAME),e.hasOwnProperty("theme")&&(this.removeThemeCssClasses(),this.addClass(this.resolveThemeClassName(e.theme))),e.hasOwnProperty("rowColoring")&&(this.removeRowColoringClasses(),this.addClass(this.resolveRowColoringClassName(e.rowColoring)))}toggleCssClass(e,n){e?this.addClass(n):this.removeClass(n)}removeThemeCssClasses(){Object.keys(H).map(e=>H[e]).map(e=>this.resolveThemeClassName(e)).filter(e=>!!e).forEach(e=>{this.removeClass(e)})}resolveThemeClassName(e){switch(e){case H.FABRIC:case H[H.FABRIC]:return i.THEME_FABRIC_CLASS_NAME;case H.MATERIAL:case H[H.MATERIAL]:return i.THEME_MATERIAL_CLASS_NAME;case H.LIGHT:case H[H.LIGHT]:return i.THEME_LIGHT_CLASS_NAME;case H.DARK:case H[H.DARK]:return i.THEME_DARK_CLASS_NAME;case H.GENERIC:case H[H.GENERIC]:return i.THEME_GENERIC_CLASS_NAME;default:return i.THEME_FABRIC_CLASS_NAME}}resolveRowColoringClassName(e){switch(e){case Ge.ODD:case Ge[Ge.ODD]:return i.ROW_COLORING_ODD;case Ge.EVEN:case Ge[Ge.EVEN]:return i.ROW_COLORING_EVEN;default:return null}}removeRowColoringClasses(){Object.keys(Ge).map(e=>Ge[e]).map(e=>this.resolveRowColoringClassName(e)).filter(e=>!!e).forEach(e=>{this.removeClass(e)})}addClass(e){e&&this.classModifier.getElement(this.cssHostRef.nativeElement).add(e)}removeClass(e){e&&this.classModifier.getElement(this.cssHostRef.nativeElement).remove(e)}static \u0275fac=function(n){return new(n||i)(v(Yt))};static \u0275prov=k({token:i,factory:i.\u0275fac})}return i})(),Ed=(()=>{class i extends Bt{constructor(){super()}static \u0275fac=function(n){return new(n||i)};static \u0275prov=k({token:i,factory:i.\u0275fac})}return i})(),Sd=(()=>{class i extends Bt{constructor(){super()}static \u0275fac=function(n){return new(n||i)};static \u0275prov=k({token:i,factory:i.\u0275fac})}return i})(),Dd=class{enabled=!1;infoDialog=!0;columnsManager=!0;schemaManager=!0;sourceSize=!0;constructor(t,e,n,r,o){this.isNotUndefinedOrNull(t)&&(this.enabled=t),this.isNotUndefinedOrNull(e)&&(this.infoDialog=e),this.isNotUndefinedOrNull(n)&&(this.columnsManager=n),this.isNotUndefinedOrNull(o)&&(this.sourceSize=o),this.isNotUndefinedOrNull(r)&&(this.schemaManager=r)}isEnabled(){return this.enabled}isInfoDialogEnabled(){return this.infoDialog}isColumnsManagerEnabled(){return this.columnsManager}isSourceSizeEnabled(){return this.sourceSize}isSchemaManagerEnabled(){return this.schemaManager}isNotUndefinedOrNull(t){return t!=null}},$n=class extends Bt{constructor(){super(new Dd)}},zR=new K("StructureComponentToken"),uo=(()=>{class i{innerElementRef;innerClassModifier;constructor(e){this.innerElementRef=e,this.initClassModifier(),this.addHostClass()}addClassToHost(e){this.innerClassModifier.getHost().add(e)}removeClassFromHost(e){this.innerClassModifier.getHost().remove(e)}hasChanged(e){return e!==void 0&&e.currentValue!==void 0}ifChanged(e,n){this.hasChanged(e)&&n()}initClassModifier(){this.innerClassModifier=new zc(this.innerElementRef.nativeElement)}addHostClass(){this.innerClassModifier.getHost().add(this.getSelectorName())}static \u0275fac=function(n){return new(n||i)(c(x))};static \u0275dir=N({type:i})}return i})(),qe=(()=>{class i extends uo{detector;viewInDom=!1;unsubscribe$=new Ze;constructor(e,n){super(n),this.detector=e}ngAfterViewInit(){this.viewInDom=!0}ngOnDestroy(){this.unsubscribe()}reRender(){this.isViewInDom()&&this.detector.detectChanges()}isViewInDom(){return this.viewInDom}subscribe(e,n){e.pipe(this.takeUntil()).subscribe(r=>{n(r),this.reRender()})}subscribeWithoutRender(e,n){e.pipe(this.takeUntil()).subscribe(r=>{n(r)})}subscribeAndEmit(e,n,r=o=>o){e.pipe(this.takeUntil()).subscribe(o=>{n.emit(r(o))})}unsubscribe(){this.unsubscribe$.next(),this.unsubscribe$.complete()}takeUntil(){return Mt(this.unsubscribe$)}static \u0275fac=function(n){return new(n||i)(c(B),c(x))};static \u0275dir=N({type:i,features:[C]})}return i})(),zr=function(i){return i[i.ENTER=0]="ENTER",i[i.SUBMIT=1]="SUBMIT",i[i.CANCEL=2]="CANCEL",i}(zr||{}),ae=class extends Dn{},Ba=class extends ae{fieldConfigs;constructor(t,e){super(t,"InitFieldsCommand"),this.fieldConfigs=e}getFieldConfigs(){return this.fieldConfigs}},me=class extends Zi{},cs=class extends me{fieldConfigs;fields;constructor(t,e,n){super(t,{fieldConfigs:e,fields:n},"FieldsInitedEvent"),this.fieldConfigs=e,this.fields=n}getFields(){return this.fields}},Ha=class{id;constructor(t){this.id=t}getId(){return this.id}},wf=class{column;field;constructor(t,e){this.column=t,this.field=e}getColumn(){return this.column}getField(){return this.field}},Cf=class{structureId;compositionId;columnFieldFactory;columnAutoConfigurator;compositionCommandInvoker;commandDispatcher=y.resolve(ut);domainEventBus=y.resolve(ei);columns;constructor(t,e,n,r,o){this.structureId=t,this.compositionId=e,this.columnFieldFactory=n,this.columnAutoConfigurator=r,this.compositionCommandInvoker=o}handle(t){let e=[];if(t.columns!==void 0&&t.columns.currentValue!==void 0)e=t.columns.currentValue,this.columns=e;else if(this.columns===void 0&&t.source!==void 0&&t.source!==null)e=this.columnAutoConfigurator.configure(t.source.currentValue),this.columns=e;else return;this.compositionCommandInvoker.setGroups(e,this.compositionId);let{columns:n,groups:r}=this.getConfigs(e),o=this.getFieldConfigs(n),s=new Ba(this.structureId,o);this.domainEventBus.ofEvents([cs]).pipe(ye(a=>a.getAggregateId().toString()===this.structureId.toString()),Er(1)).subscribe(a=>{let l=a.getFields(),d=this.convertColumnFieldIds(l),p=this.convertColumns(n,l,d);this.compositionCommandInvoker.setColumns(p,this.compositionId)}),this.commandDispatcher.dispatch(s)}getConfigs(t){let e=[],n=[];for(let r=0;r<t.length;r+=1){let o=t[r];o.columns!==void 0?(n.push(o),e=e.concat(o.columns)):e.push(o)}return{columns:e,groups:n}}getFieldConfigs(t){return t.map(e=>({field:e.field,type:e.type,matcher:e.matcher,summaries:e.summaries,sorting:e.sorting}))}convertColumnFieldIds(t){return t?t.map(e=>new Ha(e.getId().getId())):[]}convertColumns(t,e,n){return t?t.map((r,o)=>{let s=n[o],a=e[o],l=this.columnFieldFactory.create(s,a.getAccessorMethod(),a.getDataType(),a.getSearchAccessorMethod());return new wf(r,l)}):[]}},Un=class{},If=class extends yr{constructor(t){super(t)}toReadModelRootId(){return new lt(this.getId())}},lt=class extends wr{constructor(t){super(t)}toAggregateId(){return new If(this.getId())}},Li=class extends Fi{},kf=class{after;before;constructor(t,e){this.after=t,this.before=e}},$a=class extends me{beforeItem;afterItem;constructor(t,e,n){super(t,{beforeItem:e,afterItem:n},"StructureSourceItemEditedEvent"),this.beforeItem=e,this.afterItem=n}getBeforeItem(){return this.beforeItem}getAfterItem(){return this.afterItem}},$r=class{domainEventBus=y.resolve(ei);onSourceEdited(t){return this.domainEventBus.ofEvents([$a]).pipe(ye(e=>e.getAggregateId().toString()===t.toString()),P(e=>{let n=e.getAfterItem().getSourceItem(),r=e.getBeforeItem().getSourceItem();return new kf(n,r)}))}},Wn=class extends Fi{},Qt=class{constructor(){}},Ua=class extends me{selectedRows;allSelected;allUnselected;constructor(t,e,n,r){super(t,{selectedRows:e,allSelected:n,allUnselected:r},"SelectedRowChangedEvent"),this.selectedRows=e,this.allSelected=n,this.allUnselected=r}getSelectedRows(){return this.selectedRows}isAllSelected(){return this.allSelected}isAllUnselected(){return this.allUnselected}},Qn=(()=>{class i extends Fi{sourceWarehouse;domainEventBusTOREMOVE;map=new Map;subject$=new Ze;constructor(e,n){super(),this.sourceWarehouse=e,this.domainEventBusTOREMOVE=n,this.domainEventBusTOREMOVE.ofEvents([Ua]).pipe(Ht(r=>{let o=r.getSelectedRows(),s=r.getAggregateId();return this.sourceWarehouse.onPreparedItems(s).pipe(Er(1),P(a=>{let l=[],d=a.length,p=new Map;for(let w=0;w<d;w+=1)p.set(a[w].getId().toString(),a[w]);for(let w=0;w<o.length;w+=1){let E=p.get(o[w]);l.push(new as(E.getSourceItem(),w,E.getId()))}return{id:s,items:l}}))})).subscribe(r=>{this.map.set(r.id.toString(),r.items),this.subject$.next(this.map)})}static services=[Qt,ei];onItemSelected(e){return this.subject$.toObservable().pipe(ye(n=>n.has(e.toString())),P(n=>n.get(e.toString())))}}return i})(),Td=class{enabled=!1;rowEdit=()=>!0;cellEdit=()=>!0;constructor(t){t.enabled!==void 0&&(this.enabled=t.enabled),t.rowEdit!==void 0&&(this.rowEdit=t.rowEdit),t.cellEdit!==void 0&&(this.cellEdit=t.cellEdit)}isEnabled(t,e,n){return this.enabled&&this.rowEdit(t,e,n)&&this.cellEdit(t,e,n)}},cn=class i extends Fe{static default=new Td({enabled:!1});constructor(){super(i.default)}static \u0275fac=function(e){return new(e||i)};static \u0275prov=k({token:i,factory:i.\u0275fac})},Wa=class{convert(t){let e,n,r,o;return t.infoDialog!==void 0&&(e=t.infoDialog),t.columnsManager!==void 0&&(n=t.columnsManager),t.schemaManager!==void 0&&(o=t.schemaManager),t.sourceSize!==void 0&&(r=t.sourceSize),new Dd(t.enabled,e,n,o,r)}},Md=(()=>{class i{structureInfoPanelConfigConverter;structureInfoPanelArchive;constructor(e,n){this.structureInfoPanelConfigConverter=e,this.structureInfoPanelArchive=n}static services=[Wa,$n];set(e){let n=this.structureInfoPanelConfigConverter.convert(e);this.structureInfoPanelArchive.next(n)}static \u0275fac=function(n){return new(n||i)(v(Wa),v($n))};static \u0275prov=k({token:i,factory:i.\u0275fac})}return i})(),Ef=class{fieldId;accessor;searchAccessor;dataType;constructor(t,e,n,r){this.fieldId=t,this.accessor=e,this.dataType=n,this.searchAccessor=r}getId(){return this.fieldId}getValue(t){return this.accessor(t)}getAccessor(){return this.accessor}getSearchAccessor(){return this.searchAccessor}getDataType(){return this.dataType}},Ur=class{create(t,e,n,r){return new Ef(t,e,n,r)}},zi=class extends Fi{constructor(){super()}},Ga=(()=>{class i extends Bt{constructor(){super(!1)}static \u0275fac=function(n){return new(n||i)};static \u0275prov=k({token:i,factory:i.\u0275fac})}return i})(),Bi=class extends Fi{constructor(){super()}},yi=class{},ks=(()=>{class i extends Fe{static default=!1;constructor(){super(i.default)}on(e){return super.on(e).pipe(ye(n=>n))}once(e){return Sr(this.on(e))}}return i})(),BR=(()=>{class i extends qe{changeDetectorRef;columnAutoConfigurator;structureId;compositionId;schemaId;structureCommandInvoker;structurePagingCommandDispatcher;pagingEventRepository;sortingCommandInvoker;searchCommandInvoker;sourceCommandService;sourceEventService;schemaCommandInvoker;compositionCommandDispatcher;compositionEventRepository;formationEventService;structureEditModeArchive;structureCellEditArchive;structureInfoPanelConfigService;structureCellEditStore;columnFieldFactory;formationCommandDispatcher;searchEventRepository;structureHeaderBottomEnabledArchive;schemaEventRepository;translationService;structureInitialValuesReadyArchive;maxHeight;width;rowHeight;autoResizeWidth;source=[];columns;editMode;cellEditing;theme;themeChanged=new W;columnsChanged=new W;containerWidthChanged=new W;sourceEdited=new W;cellEditEntered=new W;cellEditCanceled=new W;cellEditSubmitted=new W;structureColumnInputHandler;changeAfterInit=!1;constructor(e,n,r,o,s,a,l,d,p,w,E,Q,ne,ce,O,Y,Ie,pt,Qe,Ui,Ci,Wi,bo,Rh,Ah,e_,t_,i_){super(e,n),this.changeDetectorRef=e,this.columnAutoConfigurator=r,this.structureId=o,this.compositionId=s,this.schemaId=a,this.structureCommandInvoker=l,this.structurePagingCommandDispatcher=d,this.pagingEventRepository=p,this.sortingCommandInvoker=w,this.searchCommandInvoker=E,this.sourceCommandService=Q,this.sourceEventService=ne,this.schemaCommandInvoker=ce,this.compositionCommandDispatcher=O,this.compositionEventRepository=Y,this.formationEventService=Ie,this.structureEditModeArchive=pt,this.structureCellEditArchive=Qe,this.structureInfoPanelConfigService=Ui,this.structureCellEditStore=Ci,this.columnFieldFactory=Wi,this.formationCommandDispatcher=bo,this.searchEventRepository=Rh,this.structureHeaderBottomEnabledArchive=Ah,this.schemaEventRepository=e_,this.translationService=t_,this.structureInitialValuesReadyArchive=i_,this.structureColumnInputHandler=new Cf(o,s,Wi,r,O),this.translationService.setDefaultTranslation()}ngOnChanges(e){Re(e.editMode,()=>{this.structureEditModeArchive.next(this.editMode)}),Re(e.cellEditing,()=>{let n;typeof this.cellEditing=="boolean"?n={enabled:this.cellEditing}:n=this.cellEditing,this.structureCommandInvoker.setCellEdit(n,this.structureId)}),Re(e.width,n=>{this.compositionCommandDispatcher.setWidth(n,this.compositionId)}),Re(e.theme,()=>{this.schemaCommandInvoker.setTheme(this.theme,this.schemaId,this.structureId)}),Re(e.rowHeight,()=>{this.structureCommandInvoker.setRowHeight(this.rowHeight,this.structureId)}),Re(e.autoResizeWidth,()=>{this.compositionCommandDispatcher.setResizeWidth(this.autoResizeWidth,this.compositionId)}),this.structureColumnInputHandler.handle(e),Re(e.maxHeight,()=>{this.structureCommandInvoker.setContainerHeight(this.maxHeight,this.structureId)}),Re(e.source,()=>{this.sourceCommandService.setOrigin(this.source,this.structureId)})}ngOnInit(){this.compositionEventRepository.onColumnsChanged(this.compositionId.toReadModelRootId()).pipe(this.takeUntil()).subscribe(()=>{this.columnsChanged.emit()}),this.compositionEventRepository.onContainerWidthChanged(this.compositionId.toReadModelRootId()).pipe(this.takeUntil()).subscribe(e=>{this.containerWidthChanged.emit(e)}),this.sourceEventService.onSourceEdited(this.structureId).subscribe(e=>{this.sourceEdited.emit(e)}),this.structureCellEditStore.on().pipe(this.takeUntil()).subscribe(e=>{switch(e){case zr.ENTER:this.cellEditEntered.emit();break;case zr.SUBMIT:this.cellEditSubmitted.emit();break;case zr.CANCEL:this.cellEditCanceled.emit();break;default:break}}),this.subscribeAndEmit(this.schemaEventRepository.onThemeChanged(this.schemaId),this.themeChanged),this.componentInitialized()}componentInitialized(){this.changeAfterInit=!0}static \u0275fac=function(n){return new(n||i)(c(B),c(x),c(Un),c(se),c(et),c(lt),c(Pt),c(Nt),c(Li),c(qt),c(Gt),c(Wt),c($r),c(Ot),c(ci),c(Wn),c(Qn),c(Sd),c(cn),c(Md),c(Ed),c(Ur),c(_t),c(zi),c(Ga),c(Bi),c(yi),c(ks))};static \u0275dir=N({type:i,inputs:{maxHeight:"maxHeight",width:"width",rowHeight:"rowHeight",autoResizeWidth:"autoResizeWidth",source:"source",columns:"columns",editMode:"editMode",cellEditing:"cellEditing",theme:"theme"},outputs:{themeChanged:"themeChanged",columnsChanged:"columnsChanged",containerWidthChanged:"containerWidthChanged",sourceEdited:"sourceEdited",cellEditEntered:"cellEditEntered",cellEditCanceled:"cellEditCanceled",cellEditSubmitted:"cellEditSubmitted"},features:[C,G]})}return i})(),Fd=class i{enabled;sort;filter;columnsManager;mainMenu="Menu";filterMenu="Filter";columnsMenu="Columns";constructor(t=!1,e=!0,n=!1,r=!1){this.enabled=t,this.sort=e,this.filter=n,this.columnsManager=r}static default(){return new i}static fromConfig(t){return new i(t.enabled,t.sort,t.filter,t.columnsManager)}isEnabled(){return this.enabled&&(this.sort||this.filter||this.columnsManager)}isMainEnabled(){return this.sort}isSortingEnabled(){return this.sort}isFilteringEnabled(){return this.filter}isColumnManagerEnabled(){return this.columnsManager}getMenus(){let t=[];return this.isMainEnabled()&&t.push(this.getMainMenu()),this.isFilteringEnabled()&&t.push(this.getFilterMenu()),this.isColumnManagerEnabled()&&t.push(this.getColumnMenu()),t}getActiveMenu(){return this.getMenus()[0]}getMainMenu(){return this.mainMenu}getFilterMenu(){return this.filterMenu}getColumnMenu(){return this.columnsMenu}setMainMenu(t){this.mainMenu=t}setFilterMenu(t){this.filterMenu=t}setColumnsMenu(t){this.columnsMenu=t}},qa=(()=>{class i extends Bt{constructor(){super(Fd.default())}nextConfig(e){let n=Fd.fromConfig(e);this.next(n)}static \u0275fac=function(n){return new(n||i)};static \u0275prov=k({token:i,factory:i.\u0275fac})}return i})(),SC=(()=>{class i{closeAll$=new Ze;closeAll(){this.closeAll$.next()}onCloseAll(){return this.closeAll$.toObservable()}static \u0275fac=function(n){return new(n||i)};static \u0275prov=k({token:i,factory:i.\u0275fac})}return i})(),cx=(()=>{class i extends Bt{constructor(){super(!0)}static \u0275fac=function(n){return new(n||i)};static \u0275prov=k({token:i,factory:i.\u0275fac})}return i})(),Rd=(()=>{class i extends Bt{constructor(){super({enabled:!1,template:e=>"Detail View"})}static \u0275fac=function(n){return new(n||i)};static \u0275prov=k({token:i,factory:i.\u0275fac})}return i})(),DC=new K("structureRowDetailViewItem"),TC=new K("structureRowDetailViewTemplate"),MC=(()=>{class i extends uo{subClassConstructor;constructor(e){super(e),this.subClassConstructor=this.constructor,this.hasInputs()&&this.throwError("it cannot have properties annotated with @Inputs().")}hasInputs(){return!this.isEmpty(this.constructor.\u0275cmp.inputs)}throwError(e){throw new Error(`Component "${this.subClassConstructor.name}" is a DynamicallyCreatedComponent, ${e}.`)}isEmpty(e){for(let n in e)if(e.hasOwnProperty(n))return!1;return!0}static \u0275fac=function(n){return new(n||i)(c(x))};static \u0275dir=N({type:i,features:[C]})}return i})(),HR=(()=>{class i extends MC{item;template;sanitizer;selectedRowValue;safeHTML;constructor(e,n,r,o){super(e),this.item=n,this.template=r,this.sanitizer=o,this.safeHTML=this.sanitizer.bypassSecurityTrustHtml(this.template(this.item.getItem(),this.item.getIndex())),this.selectedRowValue=this.item.getItem()}getSelectorName(){return"gui-row-detail"}static \u0275fac=function(n){return new(n||i)(c(x),c(DC),c(TC),c(In))};static \u0275cmp=I({type:i,selectors:[["div","gui-row-detail",""]],features:[C],attrs:QT,decls:1,vars:1,consts:[[3,"innerHTML"]],template:function(n,r){n&1&&b(0,"div",0),n&2&&m("innerHTML",r.safeHTML,sr)},encapsulation:2,changeDetection:0})}return i})(),fC=(()=>{class i extends vt{injector;structureId;structureDetailViewConfigArchive;formationEventService;drawerService;enabled=!1;config;elementRef;constructor(e,n,r,o,s){super(),this.injector=e,this.structureId=n,this.structureDetailViewConfigArchive=r,this.formationEventService=o,this.drawerService=s}init(e){this.elementRef=e,this.structureDetailViewConfigArchive.on().pipe(this.hermesTakeUntil()).subscribe(n=>{this.config=n,n.enabled===!0?this.turnOn():n.enabled===!1&&this.turnOff()}),this.formationEventService.onItemSelected(this.structureId).pipe(this.hermesTakeUntil()).subscribe(n=>{if(!this.enabled||(this.drawerService.close(),n.length===0))return;let r=n[0],o=ve.create({parent:this.injector,providers:[{provide:DC,useValue:r},{provide:TC,useValue:this.config.template}]});this.drawerService.open({appendToElement:this.elementRef,component:HR,injector:o})})}turnOn(){this.enabled=!0}turnOff(){this.enabled=!1}static \u0275fac=function(n){return new(n||i)(v(ve),v(se),v(Rd),v(Qn),v(fd))};static \u0275prov=k({token:i,factory:i.\u0275fac})}return i})(),wd=function(i){return i[i.TOP=0]="TOP",i[i.BOTTOM=1]="BOTTOM",i}(wd||{}),Nr=function(i){return i.SELECTED="selected",i.PAGING_TOP_CLASS_NAME="gui-paging-top",i.PAGING_BOTTOM_CLASS_NAME="gui-paging-bottom",i}(Nr||{}),tt=(()=>{class i{state={};state$=new Tt;destroy$=new Tt;ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}setValue(e){this.state=Object.assign({},this.state,e),this.state$.next(this.state)}getValue(e){return e!==void 0?this.state[e]:this.state}select(e){let n=this.state$;return e!==void 0&&(n=this.state$.pipe(P(r=>r[e]))),n.pipe(ti())}connect(e,n){typeof e=="string"?n.pipe(Mt(this.destroy$)).subscribe(r=>{this.setPartialState(e,r)}):e.pipe(Mt(this.destroy$)).subscribe(r=>{this.setValue(r)})}setPartialState(e,n){let r={};r[e]=n,this.state=Object.assign({},this.state,r),this.state$.next(this.state)}static \u0275fac=function(n){return new(n||i)};static \u0275prov=k({token:i,factory:i.\u0275fac})}return i})(),Ad=class{unsubscribe$=new Ze;constructor(){}takeUntil(){return Mt(this.unsubscribe$)}unsubscribe(){this.unsubscribe$.isCompleted||(this.unsubscribe$.next(),this.unsubscribe$.complete())}},dt=(()=>{class i{streamCloser=new Ad;hermesUnsubscribe$=new Ze;constructor(){}ngOnDestroy(){this.streamCloser.unsubscribe(),this.hermesUnsubscribe()}isDefined(e,n){return n[e]!==void 0&&n[e].currentValue!==void 0}subscribeAndEmit(e,n){e.pipe(this.hermesTakeUntil()).subscribe(r=>{n.emit(r)})}unsubscribe(){this.streamCloser.unsubscribe()}hermesUnsubscribe(){this.hermesUnsubscribe$.next(),this.hermesUnsubscribe$.complete()}hermesTakeUntil(){return Mt(this.hermesUnsubscribe$)}takeUntil(){return this.streamCloser.takeUntil()}static \u0275fac=function(n){return new(n||i)};static \u0275dir=N({type:i})}return i})(),FC=(()=>{class i extends uo{changeDetectorRef;constructor(e,n){super(e),this.changeDetectorRef=n}ngOnInit(){this.changeDetectorRef.detach()}static \u0275fac=function(n){return new(n||i)(c(x),c(B))};static \u0275dir=N({type:i,features:[C]})}return i})(),Es=(()=>{class i extends FC{constructor(e,n){super(e,n),this.addClassToHost("gui-icon")}static \u0275fac=function(n){return new(n||i)(c(x),c(B))};static \u0275dir=N({type:i,features:[C]})}return i})(),gt=(()=>{class i extends uo{subClassConstructor;subClassNgOnInit;constructor(e){super(e),this.subClassConstructor=this.constructor,this.subClassNgOnInit=this.ngOnInit,this.hasConstructorOnlyElementRefInjected(arguments)||this.throwError("it should not inject services"),this.subClassNgOnInit&&this.throwError("it should not use ngOnInit")}hasConstructorOnlyElementRefInjected(e){return arguments.length>1?!1:arguments.length===1?this.isElementRef(arguments[0]):!1}isElementRef(e){return e.nativeElement!==null}throwError(e){throw new Error(`Component "${this.subClassConstructor.name}" is a PureComponent, ${e}.`)}static \u0275fac=function(n){return new(n||i)(c(x))};static \u0275dir=N({type:i,features:[C]})}return i})();var Wr=class{classModifier=new zc;select(t){this.classModifier.getElement(t).add(Nr.SELECTED)}unselect(t){this.classModifier.getElement(t).remove(Nr.SELECTED)}add(t,e){this.classModifier.getElement(t).add(e)}remove(t,e){this.classModifier.getElement(t).remove(e)}toggle(t){}},ln=class{constructor(){}},uh=(()=>{class i extends Bt{constructor(){super(an.BASIC)}static \u0275fac=function(n){return new(n||i)};static \u0275prov=k({token:i,factory:i.\u0275fac})}return i})(),Gn=class{destroy$=new Tt(1);subscription;subscribe(t,e){this.subscription!==void 0&&this.subscription.unsubscribe(),this.subscription=t.pipe(ti(),Mt(this.destroy$)).subscribe(n=>e(n),n=>this.onError(n),()=>this.onComplete())}destroy(){this.destroy$.next(),this.destroy$.complete()}onError(t){}onComplete(){}},Sf=class{cd;vcr;template;constructor(t,e,n){this.cd=t,this.vcr=e,this.template=n}onNext(t){this.vcr.clear(),this.vcr.createEmbeddedView(this.template,{$implicit:t}),this.cd.detectChanges()}},It=(()=>{class i{subscriber;cd;vcr;template;guiLet;guiLetViewChanger;constructor(e,n,r,o){this.subscriber=e,this.cd=n,this.vcr=r,this.template=o,this.guiLetViewChanger=new Sf(this.cd,this.vcr,this.template)}ngOnChanges(e){e.guiLet!==void 0&&this.subscriber.subscribe(this.guiLet,n=>{this.guiLetViewChanger.onNext(n)})}ngOnDestroy(){this.subscriber.destroy()}static \u0275fac=function(n){return new(n||i)(c(Gn),c(B),c(Ei),c(Pe))};static \u0275dir=N({type:i,selectors:[["","guiLet",""]],inputs:{guiLet:"guiLet"},features:[ge([Gn]),G]})}return i})(),Kt=(()=>{class i{changeDetectorRef;translationService;actualTranslationValue="";subscription;constructor(e,n){this.changeDetectorRef=e,this.translationService=n}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}transform(e){return this.subscription&&this.subscription.unsubscribe(),this.subscription=this.translationService.onTranslation().subscribe(n=>{let r=n[e];r||(this.actualTranslationValue=e),this.actualTranslationValue=r,this.changeDetectorRef.markForCheck()}),this.actualTranslationValue}static \u0275fac=function(n){return new(n||i)(c(B,16),c(yi,16))};static \u0275pipe=As({name:"guiTranslate",type:i,pure:!1})}return i})(),$R=(()=>{class i extends gt{paging;sourceSize;nextPageChanged=new W;prevPageChanged=new W;prevDisabled=!1;nextDisabled=!1;constructor(e){super(e)}ngOnChanges(){this.calculatePrev(),this.calculateNext()}prevPage(){this.prevPageChanged.emit()}nextPage(){this.nextPageChanged.emit()}getSelectorName(){return"gui-paging-navigator"}calculatePrev(){this.paging&&(this.prevDisabled=this.paging.isPrevPageDisabled())}calculateNext(){!this.paging&&!this.sourceSize||(this.nextDisabled=this.paging.isNextPageDisabled())}static \u0275fac=function(n){return new(n||i)(c(x))};static \u0275cmp=I({type:i,selectors:[["div","gui-paging-navigator","","paging",""]],inputs:{paging:"paging",sourceSize:"sourceSize"},outputs:{nextPageChanged:"nextPageChanged",prevPageChanged:"prevPageChanged"},features:[C,G],attrs:KT,decls:7,vars:8,consts:[["gui-button","",1,"gui-paging-navigator-prev","gui-mr-5",3,"click","disabled"],["gui-button","",1,"gui-paging-navigator-next","gui-mr-0",3,"click","disabled"]],template:function(n,r){n&1&&(h(0,"gui-button-group")(1,"button",0),F("click",function(){return r.prevPage()}),S(2),J(3,"guiTranslate"),g(),h(4,"button",1),F("click",function(){return r.nextPage()}),S(5),J(6,"guiTranslate"),g()()),n&2&&(u(),m("disabled",r.prevDisabled),u(),oe(" ",ie(3,4,"pagingPrevPage")," "),u(2),m("disabled",r.nextDisabled),u(),oe(" ",ie(6,6,"pagingNextPage")," "))},dependencies:[on,nC,Kt],encapsulation:2,changeDetection:0})}return i})(),UR=(()=>{class i extends gt{paging;pageSizeChanged=new W;selectPageSizes;selectPageSize;constructor(e){super(e)}ngOnChanges(e){Re(e.paging,()=>{this.paging&&(this.selectPageSizes=this.getSelectPageSizes(),this.selectPageSize=this.getSelectPageSize(this.paging.getPageSize()))})}changePageSize(e){this.pageSizeChanged.emit(+e.value)}getSelectorName(){return"gui-paging-select"}getSelectPageSizes(){let e=[];return this.paging.getPageSizes().forEach(r=>{let o=this.getSelectPageSize(r);e.push(o)}),e}getSelectPageSize(e){return{name:e.toString(),value:e.toString()}}static \u0275fac=function(n){return new(n||i)(c(x))};static \u0275cmp=I({type:i,selectors:[["div","gui-paging-select","","paging",""]],inputs:{paging:"paging"},outputs:{pageSizeChanged:"pageSizeChanged"},features:[C,G],attrs:ZT,decls:4,vars:6,consts:[[1,"gui-inline-block","gui-mr-5"],[3,"optionChanged","options","selected","width"]],template:function(n,r){n&1&&(h(0,"span",0),S(1),J(2,"guiTranslate"),g(),h(3,"gui-select",1),F("optionChanged",function(s){return r.changePageSize(s)}),g()),n&2&&(u(),oe(" ",ie(2,4,"pagingItemsPerPage"),`
|
|
`),u(2),m("options",r.selectPageSizes)("selected",r.selectPageSize)("width",25))},dependencies:[vd,Kt],encapsulation:2,changeDetection:0})}return i})(),WR=(()=>{class i extends gt{paging;sourceSize;firstItemIndex;lastItemIndex;constructor(e){super(e),this.addClassToHost("gui-mx-6")}ngOnChanges(){this.calculate()}calculate(){this.paging&&(this.firstItemIndex=this.paging.getStart(),this.lastItemIndex=this.paging.getEnd(),this.sourceSize=this.paging.getSourceSize())}isSourceNotEmpty(){return this.sourceSize>0}getSelectorName(){return"gui-paging-stats"}static \u0275fac=function(n){return new(n||i)(c(x))};static \u0275cmp=I({type:i,selectors:[["div","gui-paging-stats","","paging",""]],inputs:{paging:"paging"},features:[C,G],attrs:XT,decls:3,vars:2,consts:[["noSource",""],[4,"ngIf","ngIfElse"],[1,"gui-paging-source-stats"],[1,"gui-paging-source-size"],[1,"gui-paging-source-stats","gui-paging-no-items"]],template:function(n,r){if(n&1&&D(0,JT,12,6,"ng-container",1)(1,eM,3,3,"ng-template",null,0,Ee),n&2){let o=Qi(2);m("ngIf",r.isSourceNotEmpty())("ngIfElse",o)}},dependencies:[je,Kt],encapsulation:2,changeDetection:0})}return i})(),GR=(()=>{class i extends gt{structureId;pagingCommandInvoker;paging;sourceSize;nextPageChanged=new W;prevPageChanged=new W;prevDisabled=!1;nextDisabled=!1;constructor(e,n,r){super(e),this.structureId=n,this.pagingCommandInvoker=r}ngOnChanges(){this.calculatePrev(),this.calculateNext()}prevPage(){this.prevPageChanged.emit()}nextPage(){this.nextPageChanged.emit()}firstPage(){this.pagingCommandInvoker.goToPage(1,this.paging.getPage(),this.structureId)}lastPage(){let e=Math.ceil(this.sourceSize/this.paging.getPageSize());this.pagingCommandInvoker.goToPage(e,this.paging.getPage(),this.structureId)}getSelectorName(){return"gui-paging-alternative-navigator"}calculatePrev(){this.paging&&(this.prevDisabled=this.paging.isPrevPageDisabled())}calculateNext(){!this.paging&&!this.sourceSize||(this.nextDisabled=this.paging.isNextPageDisabled())}static \u0275fac=function(n){return new(n||i)(c(x),c(se),c(Nt))};static \u0275cmp=I({type:i,selectors:[["div","gui-paging-alternative-navigator","","paging","","sourceSize",""]],inputs:{paging:"paging",sourceSize:"sourceSize"},outputs:{nextPageChanged:"nextPageChanged",prevPageChanged:"prevPageChanged"},features:[C,G],attrs:tM,ngContentSelectors:iM,decls:17,vars:4,consts:[["gui-button","",3,"click","disabled"],["height","10.661","viewBox","0 0 11.081 10.661","width","11.081","xmlns","http://www.w3.org/2000/svg"],["transform","translate(-522.98 669.601) rotate(180)"],["d","M.75.75,5.02,5.02.75,9.29","fill","none","stroke-linecap","round","stroke-linejoin","round","stroke-width","1.5","transform","translate(-533.75 659.25)"],["d","M.75.75,5.02,5.02.75,9.29","fill","none","stroke-linecap","round","stroke-linejoin","round","stroke-width","1.5","transform","translate(-528.75 659.25)"],["gui-button","",1,"gui-paging-navigator-prev",3,"click","disabled"],["height","10.661","viewBox","0 0 6.081 10.661","width","6.081","xmlns","http://www.w3.org/2000/svg"],["d","M.75.75,5.02,5.02.75,9.29","fill","none","stroke-linecap","round","stroke-linejoin","round","stroke-width","1.5","transform","translate(5.77 10.351) rotate(180)"],["gui-button","",1,"gui-paging-navigator-next",3,"click","disabled"],["d","M.75.75,5.02,5.02.75,9.29","fill","none","stroke-linecap","round","stroke-linejoin","round","stroke-width","1.5","transform","translate(0.311 0.311)"],["transform","translate(534.061 -658.939)"]],template:function(n,r){n&1&&(Ne(),h(0,"button",0),F("click",function(){return r.firstPage()}),Ke(),h(1,"svg",1)(2,"g",2),b(3,"path",3)(4,"path",4),g()()(),xn(),h(5,"button",5),F("click",function(){return r.prevPage()}),Ke(),h(6,"svg",6),b(7,"path",7),g()(),be(8),xn(),h(9,"button",8),F("click",function(){return r.nextPage()}),Ke(),h(10,"svg",6),b(11,"path",9),g()(),xn(),h(12,"button",0),F("click",function(){return r.lastPage()}),Ke(),h(13,"svg",1)(14,"g",10),b(15,"path",3)(16,"path",4),g()()()),n&2&&(m("disabled",r.prevDisabled),u(5),m("disabled",r.prevDisabled),u(4),m("disabled",r.nextDisabled),u(3),m("disabled",r.nextDisabled))},dependencies:[on],encapsulation:2,changeDetection:0})}return i})(),qR=(()=>{class i extends gt{structureId;pagingCommandService;paging;sourceSize=0;currentPage;pages;numberOfVisiblePages=3;constructor(e,n,r){super(e),this.structureId=n,this.pagingCommandService=r}ngOnChanges(e){this.calculate()}calculate(){if(this.paging&&this.sourceSize){let e=Math.ceil(this.sourceSize/this.paging.getPageSize());if(this.currentPage=this.paging.getPage(),this.pages=[],this.pages.length<=e)for(let n=1;n<=e;n++)this.pages.push(n)}}isSourceNotEmpty(){return this.sourceSize>0}goToPage(e){let n=this.paging.getPage();this.pagingCommandService.goToPage(e,n,this.structureId)}calculateVisiblePages(e){return this.paging.calculateVisiblePages(this.currentPage,this.numberOfVisiblePages,e)}activePage(e){return this.currentPage===e}getSelectorName(){return"gui-paging-alternative-pages"}static \u0275fac=function(n){return new(n||i)(c(x),c(se),c(Nt))};static \u0275cmp=I({type:i,selectors:[["div","gui-paging-alternative-pages","","paging",""]],inputs:{paging:"paging",sourceSize:"sourceSize"},features:[C,G],attrs:nM,decls:3,vars:2,consts:[["noSource",""],[4,"ngIf","ngIfElse"],[4,"ngFor","ngForOf"],[1,"relative"],[1,"gui-paging-page","gui-select-none","gui-cursor-pointer","gui-py-0","gui-px-6","gui-font-base",3,"click"],[1,"gui-paging-source-stats","gui-paging-no-items"]],template:function(n,r){if(n&1&&D(0,oM,2,1,"ng-container",1)(1,sM,3,3,"ng-template",null,0,Ee),n&2){let o=Qi(2);m("ngIf",r.isSourceNotEmpty())("ngIfElse",o)}},dependencies:[rt,je,Kt],encapsulation:2,changeDetection:0})}return i})(),YR=(()=>{class i extends uo{elRef;cssClassModifier;structureId;pagingWarehouse;pagingCommandInvoker;sourceWarehouse;pagingDisplayModeArchive;position;minimal;state=_(tt);state$=this.state.select();constructor(e,n,r,o,s,a,l){super(e),this.elRef=e,this.cssClassModifier=n,this.structureId=r,this.pagingWarehouse=o,this.pagingCommandInvoker=s,this.sourceWarehouse=a,this.pagingDisplayModeArchive=l,this.addClassToHost("gui-flex"),this.addClassToHost("gui-justify-end"),this.addClassToHost("gui-items-center"),this.addClassToHost("gui-p-4"),this.state.setValue({alternativeDisplay:!1,isPagingVisible:!1}),this.state.connect("sourceSize",this.sourceWarehouse.onOriginSize(this.structureId)),this.state.connect("alternativeDisplay",this.selectIsAdvancedPagingEnabled()),this.state.connect("paging",this.pagingWarehouse.onPaging(this.structureId)),this.state.connect("isPagingVisible",this.selectIsPagingVisible())}ngOnChanges(e){e.position&&(this.position===wd.BOTTOM?(this.cssClassModifier.remove(this.elRef.nativeElement,Nr.PAGING_TOP_CLASS_NAME),this.cssClassModifier.add(this.elRef.nativeElement,Nr.PAGING_BOTTOM_CLASS_NAME)):(this.cssClassModifier.remove(this.elRef.nativeElement,Nr.PAGING_BOTTOM_CLASS_NAME),this.cssClassModifier.add(this.elRef.nativeElement,Nr.PAGING_TOP_CLASS_NAME)))}changePageSize(e){this.pagingCommandInvoker.changePageSize(e,this.structureId)}nextPage(e){e&&this.pagingCommandInvoker.nextPage(this.structureId)}prevPage(){this.pagingCommandInvoker.prevPage(this.structureId)}getSelectorName(){return"gui-paging"}selectIsPagingVisible(){return this.pagingWarehouse.onPaging(this.structureId).pipe(P(e=>this.mapIsPagingVisible(e)))}mapIsPagingVisible(e){return e&&e.isEnabled()&&(this.position===wd.TOP&&e.isPagerTop()||this.position===wd.BOTTOM&&e.isPagerBottom())}selectIsAdvancedPagingEnabled(){return this.pagingDisplayModeArchive.on().pipe(P(e=>e===an.ADVANCED))}static \u0275fac=function(n){return new(n||i)(c(x),c(Wr),c(se),c(ln),c(Nt),c(Qt),c(uh))};static \u0275cmp=I({type:i,selectors:[["div","gui-paging","","position",""]],inputs:{position:"position",minimal:"minimal"},features:[ge([tt]),C,G],attrs:aM,decls:1,vars:1,consts:[["minimalTemplate",""],[4,"guiLet"],[4,"ngIf"],[4,"ngIf","ngIfElse"],["gui-paging-select","",3,"pageSizeChanged","paging"],["gui-paging-stats","",3,"paging"],["gui-paging-navigator","",3,"nextPageChanged","prevPageChanged","paging","sourceSize"],["gui-paging-alternative-navigator","",1,"gui-flex","gui-p-0",3,"nextPageChanged","prevPageChanged","paging","sourceSize"],["gui-paging-alternative-pages","",1,"gui-flex","gui-justify-center",3,"paging","sourceSize"]],template:function(n,r){n&1&&D(0,mM,3,2,"ng-container",1),n&2&&m("guiLet",r.state$)},dependencies:[je,It,$R,UR,WR,GR,qR],styles:[`.gui-paging-alternative-navigator .gui-button{-ms-flex-line-pack:center;align-content:center;background:transparent;display:-ms-flexbox;display:flex;font-size:14px;line-height:21px;margin:0 2px;padding:0}.gui-paging-alternative-navigator .gui-button svg{-ms-flex-item-align:center;align-self:center;height:12px;margin:-1px 2px 0;width:auto}.gui-paging-alternative-navigator .gui-button svg path{stroke:#ccc;transition:stroke .3s ease-in-out}.gui-paging-alternative-navigator .gui-button:hover{background:transparent}.gui-paging-alternative-navigator .gui-button:hover svg path{stroke:#333}.gui-paging-alternative-navigator .gui-button:disabled svg{opacity:.4}.gui-paging-alternative-navigator .gui-material .gui-button{padding:2px 16px}.gui-paging-alternative-pages{line-height:21px}.gui-paging-alternative-pages .gui-paging-page{display:none}.gui-paging-alternative-pages .gui-paging-visible-page .gui-paging-page{display:block;font-family:Arial,serif}.gui-paging-alternative-pages .gui-paging-visible-page.gui-paging-active-page{color:#333}.gui-paging-alternative-pages .gui-paging-visible-page.gui-paging-active-page .gui-paging-page{font-weight:700}.gui-paging-bottom{border-top:1px solid;border-top-color:inherit}.gui-paging-top{border-bottom:1px solid;border-bottom-color:inherit}
|
|
`,`.gui-generic .gui-paging,.gui-generic .gui-paging *{border-color:#2224261a;font-size:14px}
|
|
`],encapsulation:2,changeDetection:0})}return i})(),qn=class{},ls=class extends me{constructor(t){super(t,null,"PageChangedEvent")}},Le=class extends br{},Df=class extends Le{constructor(t){super(t,"PageChangedAggregateEvent")}toDomainEvent(){return new ls(this.getAggregateId())}},ds=class extends me{constructor(t){super(t,null,"PagesizeChangedEvent")}},Tf=class extends Le{constructor(t){super(t,"PagesizeChangedAggregateEvent")}toDomainEvent(){return new ds(this.getAggregateId())}},Od=class i{enabled;page;pageSize;pageSizes;pagerTop;pagerBottom;sourceSize;events=[];logger;constructor(t,e,n,r,o,s,a,l){this.enabled=t,this.page=e,this.pageSize=n,this.pageSizes=r,this.pagerTop=o,this.pagerBottom=s,this.sourceSize=a,this.logger=l}static default(t){return new i(!1,1,25,[10,25,50,100],!1,!0,0,t)}static fromConfig(t,e){let n=i.default(e),r=t.enabled||n.isEnabled(),o=t.page||n.getPage(),s=t.pageSize||n.getPageSize(),a=t.pageSizes||n.getPageSizes(),l=t.pagerTop||n.isPagerTop(),d=t.pagerBottom||n.isPagerBottom();return new i(r,o,s,a,l,d,0,e)}isEnabled(){return this.enabled}isDisabled(){return!this.enabled}getPage(){return this.page}getPageSize(){return this.pageSize}getPageSizes(){return this.pageSizes}isPagerTop(){return this.isDisabled()?!1:this.pagerTop}isPagerBottom(){return this.isDisabled()?!1:this.pagerBottom}getSourceSize(){return this.sourceSize}change(t){t.enabled!==void 0&&(this.enabled=t.enabled),t.page!==void 0&&(this.page=t.page,t.enabled===void 0&&(this.enabled=!0)),t.pageSize!==void 0&&(this.pageSize=t.pageSize,t.enabled===void 0&&(this.enabled=!0)),t.pageSizes!==void 0&&(this.pageSizes=t.pageSizes,t.enabled===void 0&&(this.enabled=!0)),t.pagerTop!==void 0&&(this.pagerTop=t.pagerTop,t.enabled===void 0&&(this.enabled=!0)),t.pagerBottom!==void 0&&(this.pagerBottom=t.pagerBottom,t.enabled===void 0&&(this.enabled=!0)),this.enabled===!0&&t.pagerTop===!1&&t.pagerBottom===!1&&(this.pagerBottom=!0,this.logger.warn("Pagers cannot be turn off when paging is enabled."))}setSourceSize(t){this.sourceSize=t}nextPage(){let t=this.page;this.isNextPageDisabled()||(t+=1),this.page=t}prevPage(){let t=this.page;this.isPrevPageDisabled()||(t-=1),this.page=t}changePageSize(t){return this.pageSizes.find(e=>e===t)&&(this.setPage(1),this.setPageSize(t)),this.events}isNextPageDisabled(){return this.sourceSize===0?!0:this.page===Math.ceil(this.sourceSize/this.pageSize)}isPrevPageDisabled(){return this.page===1}calculateStart(){let t=1+(this.page-1)*this.pageSize;return this.sourceSize<t?0:t}calculateEnd(){let t=this.page*this.pageSize;return this.sourceSize<t?this.sourceSize:t}sample(t){if(this.isDisabled())return t;let e=this.calculateStart();return e!==0&&(e-=1),t.slice(e,this.calculateEnd())}clearEvents(){this.events.length=0}setPage(t){this.page=t,this.events.push(new Df(new se("TODO need to be changed")))}setPageSize(t){this.pageSize=t,this.events.push(new Tf(new se("TODO need to be changed")))}},RC=(()=>{class i{logger;constructor(e){this.logger=e}static services=[qn];createDefault(){return Od.default(this.logger)}createFromConfig(e){return Od.fromConfig(e,this.logger)}}return i})(),Pd=class extends ae{config;constructor(t,e){super(t,"SetPagingCommand"),this.config=e}getPagingConfig(){return this.config}},Nd=class extends ae{pageSize;constructor(t,e){super(t,"ChangePagesizeCommand"),this.pageSize=e}getPageSize(){return this.pageSize}},jd=class extends ae{constructor(t){super(t,"NextPageCommand")}},Vd=class extends ae{constructor(t){super(t,"PrevPageCommand")}},AC=(()=>{class i{commandDispatcher;constructor(e){this.commandDispatcher=e}static services=[ut];setPaging(e,n){this.commandDispatcher.dispatch(new Pd(n,e))}changePageSize(e,n){this.commandDispatcher.dispatch(new Nd(n,e))}nextPage(e){this.commandDispatcher.dispatch(new jd(e))}prevPage(e){this.commandDispatcher.dispatch(new Vd(e))}}return i})(),Ya=class extends me{constructor(t){super(t,null,"PagingSetEvent")}},Mf=class{domainEventPublisher=y.resolve(_e);forCommand(){return Pd}handle(t,e){let n=e.getPagingConfig();t.changePaging(n)}publish(t,e){this.domainEventPublisher.publish(new Ya(e.getAggregateId()))}},Qa=class extends me{constructor(t){super(t,null,"NextPageEvent")}},Ff=class{domainEventPublisher=y.resolve(_e);forCommand(){return jd}handle(t,e){t.nextPage()}publish(t,e){this.domainEventPublisher.publish(new Qa(e.getAggregateId()))}},Ka=class extends me{constructor(t){super(t,null,"PrevPageEvent")}},Rf=class{domainEventPublisher=y.resolve(_e);forCommand(){return Vd}handle(t,e){t.prevPage()}publish(t,e){this.domainEventPublisher.publish(new Ka(e.getAggregateId()))}},Af=class{domainEventPublisher=y.resolve(_e);forCommand(){return Nd}handle(t,e){let n=e.getPageSize();t.changePageSize(n)}publish(t,e){let n=t.getEvents();n.forEach(r=>{r.aggregateId=t.getId()}),this.publishAggregateEvents(n,e),t.clearEvents()}publishAggregateEvents(t,e){for(let n of t)this.publishAggregateEvent(n,e)}publishAggregateEvent(t,e){switch(t.getType()){case"PageChangedAggregateEvent":let n=new ls(e.getAggregateId());this.domainEventPublisher.publish(n);break;case"PagesizeChangedAggregateEvent":let r=new ds(e.getAggregateId());this.domainEventPublisher.publish(r);break;case"StructurePreparedEntitiesSetAggregateEvent":this.domainEventPublisher.publish(t.toDomainEvent());break;default:break}}},li="StructureAggregate",Of=class{defineAggregate(){return null}registerKey(){return li}registerProviders(t){t.provide(AC),t.provide(RC)}registerCommandHandlers(){return[Mf,Ff,Rf,Af]}registerDomainEventHandler(){return[]}registerMultiDomainEventHandler(){return[]}},QR=(()=>{let i=class{enabled;page;pageSize;pageSizes;pagerTop;pagerBottom;isNextDisabled;isPrevDisabled;start;end;sourceSize;constructor(e,n,r,o,s,a,l,d,p,w,E){this.enabled=e,this.page=n,this.pageSize=r,this.pageSizes=o,this.pagerTop=s,this.pagerBottom=a,this.isNextDisabled=l,this.isPrevDisabled=d,this.start=p,this.end=w,this.sourceSize=E}isEnabled(){return this.enabled}getPage(){return this.page}getPageSize(){return this.pageSize}getPageSizes(){return this.pageSizes}isPagerTop(){return this.pagerTop}isPagerBottom(){return this.pagerBottom}isNextPageDisabled(){return this.isNextDisabled}isPrevPageDisabled(){return this.isPrevDisabled}getStart(){return this.start}getEnd(){return this.end}getSourceSize(){return this.sourceSize}calculateVisiblePages(e,n,r){return e-n<r&&r<e+n}sample(e){let n=this.getStart();return n!==0&&(n-=1),e.slice(n,this.getEnd())}compare(e){return JSON.stringify(this)===JSON.stringify(e)}};return i=vo([ed],i),i})(),Ld=class{convert(t){return new QR(t.isEnabled(),t.getPage(),t.getPageSize(),t.getPageSizes(),t.isPagerTop(),t.isPagerBottom(),t.isNextPageDisabled(),t.isPrevPageDisabled(),t.calculateStart(),t.calculateEnd(),t.getSourceSize())}},Gr=class extends vt{domainEventBus=y.resolve(ei);constructor(){super(),this.domainEventBus.ofEvents(this.forEvents()).pipe(this.hermesTakeUntil()).subscribe(t=>{try{this.subs(t)}catch(e){console.error(e)}})}},OC=(()=>{class i{structureRepository;constructor(e){this.structureRepository=e}static services=[Gr];on(e){return this.structureRepository.on(e).pipe(ye(n=>n.getId().toString()===e.toString()),P(n=>n.getPaging()))}}return i})(),KR=(()=>{class i extends ln{pagingRepository;constructor(e){super(),this.pagingRepository=e}static services=[OC];onPaging(e){return this.pagingRepository.on(e)}oncePaging(e){return Sr(this.pagingRepository.on(e))}}return i})(),ZR=(()=>{class i extends Nt{pagingDispatcher;constructor(e){super(),this.pagingDispatcher=e}static services=[AC];enable(e){this.pagingDispatcher.setPaging({enabled:!0},e)}disable(e){this.pagingDispatcher.setPaging({enabled:!1},e)}setPaging(e,n){this.pagingDispatcher.setPaging(e,n)}changePageSize(e,n){this.pagingDispatcher.changePageSize(e,n)}nextPage(e){this.pagingDispatcher.nextPage(e)}prevPage(e){this.pagingDispatcher.prevPage(e)}goToPage(e,n,r){if(n<e)for(;n!==e;)this.nextPage(r),n+=1;else for(;n!==e;)this.prevPage(r),n-=1}changePagerTop(e,n){this.pagingDispatcher.setPaging({pagerTop:e},n)}changePagerBottom(e,n){this.pagingDispatcher.setPaging({pagerBottom:e},n)}}return i})(),XR=(()=>{class i extends Li{pagingWarehouse;eventBusToRemove=y.resolve(ei);constructor(e){super(),this.pagingWarehouse=e}static services=[ln];onPageChange(e){return this.eventBusToRemove.ofEvents([Ka,Qa,ls]).pipe(ye(n=>n.getAggregateId().toString()===e.toAggregateId().toString()),Ht(n=>this.pagingWarehouse.oncePaging(e.toAggregateId()).pipe(P(r=>r.getPage()))))}onPageSizeChange(e){return this.eventBusToRemove.ofEvents([ds]).pipe(ye(n=>n.getAggregateId().toString()===e.toAggregateId().toString()),Ht(n=>this.pagingWarehouse.oncePaging(e.toAggregateId()).pipe(P(r=>r.getPageSize()))))}}return i})(),Pf=class{registerProviders(t){t.provide(Nt,ZR),t.provide(ln,KR),t.provide(Li,XR),t.provide(OC),t.provide(Ld)}};function JR(){new wt(new Pf,new Of).init()}var Nf=class{translation=new Map;resolver=(t,e)=>e;changeTranslation(t){for(let e of Object.keys(t))this.translation.set(e,t[e])}getTranslation(){return Array.from(this.translation).reduce((t,[e,n])=>Object.assign(t,{[e]:this.resolver(e,n)}),{})}setResolver(t){this.resolver=t}},jf=class extends yi{defaultTranslation=RR;dictionary=new Nf;dictionary$=new Tt(1);constructor(){super()}getTranslation(){return this.dictionary.getTranslation()}onTranslation(){return this.dictionary$.toObservable()}setDefaultTranslation(){this.changeTranslationAndPropagate(this.defaultTranslation)}changeTranslation(t){this.changeTranslationAndPropagate(t)}setResolver(t){this.setResolverAndPropagate(t)}changeTranslationAndPropagate(t){this.dictionary.changeTranslation(t),this.dictionary$.next(this.dictionary.getTranslation())}setResolverAndPropagate(t){this.dictionary.setResolver(t),this.dictionary$.next(this.dictionary.getTranslation())}},mn=(()=>{class i extends st{static forComponent(){return[{provide:yi,useClass:jf}]}static \u0275fac=(()=>{let e;return function(r){return(e||(e=ze(i)))(r||i)}})();static \u0275mod=M({type:i});static \u0275inj=T({imports:[q]})}return i})(),Vf=class{cd;value;actualObs$;baseValues$=new Ze;destroy$=new Tt(1);constructor(t){this.cd=t,this.baseValues$.pipe(ye(e=>e!==this.actualObs$),Ht(e=>(this.actualObs$=e,e)),ti(),Mt(this.destroy$)).subscribe(e=>{this.value=e,this.scheduleCD()})}destroy(){this.destroy$.next(),this.destroy$.complete()}subscribe(t){return this.baseValues$.next(t),this.value}scheduleCD(){setTimeout(()=>{this.cd.detectChanges()})}},Ss=(()=>{class i{cd=_(B);subscriber=new Vf(this.cd);transform(e){return this.subscriber.subscribe(e)}ngOnDestroy(){this.subscriber.destroy()}static \u0275fac=function(n){return new(n||i)};static \u0275pipe=As({name:"guiPush",type:i,pure:!1})}return i})(),lx=(()=>{class i{subscriber;vcr;template;guiIf;constructor(e,n,r){this.subscriber=e,this.vcr=n,this.template=r}ngOnChanges(e){e.guiIf!==void 0&&this.subscriber.subscribe(this.guiIf,n=>{n?this.vcr.createEmbeddedView(this.template):this.vcr.clear()})}ngOnDestroy(){this.subscriber.destroy()}static \u0275fac=function(n){return new(n||i)(c(Gn),c(Ei),c(Pe))};static \u0275dir=N({type:i,selectors:[["","guiIf",""]],inputs:{guiIf:"guiIf"},features:[ge([Gn]),G]})}return i})();var eA=(()=>{class i{subscriber;elementRef;static STYLE="style";guiStyle;constructor(e,n){this.subscriber=e,this.elementRef=n}ngOnChanges(e){e.guiStyle!==void 0&&this.subscriber.subscribe(this.guiStyle,n=>{Object.keys(n).forEach(r=>{this.setStyleByName(r,n[r])})})}ngOnDestroy(){this.subscriber.destroy()}setStyleByName(e,n){this.set(e,n)}set(e,n){this.elementRef.nativeElement[i.STYLE][e]=n}static \u0275fac=function(n){return new(n||i)(c(Gn),c(x))};static \u0275dir=N({type:i,selectors:[["","guiStyle",""]],inputs:{guiStyle:"guiStyle"},features:[ge([Gn]),G]})}return i})();var mi=(()=>{class i{static \u0275fac=function(n){return new(n||i)};static \u0275mod=M({type:i});static \u0275inj=T({imports:[q]})}return i})();JR();function tA(){return y.resolve(Nt)}function iA(){return y.resolve(ln)}function nA(){return y.resolve(Li)}var mh=(()=>{class i extends st{static forComponent(){return[uh]}static \u0275fac=(()=>{let e;return function(r){return(e||(e=ze(i)))(r||i)}})();static \u0275mod=M({type:i});static \u0275inj=T({providers:[{provide:Nt,useFactory:tA},{provide:ln,useFactory:iA},{provide:Li,useFactory:nA}],imports:[q,Nn,mn,mi]})}return i})(),Za=(()=>{class i extends Bt{static titlePanelConfig={enabled:!1,template:"Title Panel"};constructor(){super(V({},i.titlePanelConfig))}}return i})(),Xa=(()=>{class i extends Bt{static footerPanelConfig={enabled:!1,template:"Footer Panel"};constructor(){super(V({},i.footerPanelConfig))}}return i})(),rA="Filter container token",Cd=function(i){return i.WIDTH="width",i.HEIGHT="height",i.PADDING_TOP="padding-top",i}(Cd||{}),xd="style",hh=(()=>{class i extends za{constructor(e){super(e)}createModifier(e){return new i.StyleModifier(e)}static StyleModifier=class{htmlElement;constructor(e){this.htmlElement=e}setStyleByName(e,n){this.set(e,n)}setWidth(e){this.set(Cd.WIDTH,this.toPx(e))}setHeight(e){this.set(Cd.HEIGHT,this.toPx(e))}setPaddingTop(e){this.set(Cd.PADDING_TOP,this.toPx(e))}remove(e){this.htmlElement[xd][e]=""}removeStyleByName(e){this.htmlElement[xd][e]=""}clear(){this.htmlElement.removeAttribute(xd)}set(e,n){this.htmlElement[xd][e]=n}toPx(e){return e>0?`${e}px`:`${e}`}}}return i})(),qr=class{constructor(){}},mo=(()=>{class i{structureRepository;structureCellEditArchive;constructor(e,n){this.structureRepository=e,this.structureCellEditArchive=n}static services=[Gr,cn];on(e){return this.structureRepository.on(e)}onEditManager(e){return this.structureCellEditArchive.on(e)}}return i})(),Hi=class{constructor(){}},oA="Structure -",Lf=new K(`${oA} - css className`),Yr=class{constructor(){}},zf=class{distinctTooltip;averageTooltip;minTooltip;maxTooltip;medTooltip;countTooltip;constructor(t,e,n,r,o,s){this.distinctTooltip=t,this.averageTooltip=e,this.minTooltip=n,this.maxTooltip=r,this.medTooltip=o,this.countTooltip=s}},ct=function(i){return i[i.ASC=0]="ASC",i[i.DESC=1]="DESC",i[i.NONE=2]="NONE",i}(ct||{}),zd=class{header;dataType;context;width;fieldId;columnDefinitionId;sortStatus;enabled;cssClasses;styles;sortable;align;constructor(t,e,n,r,o,s,a,l,d,p,w,E){this.header=t,this.dataType=e,this.context=n,this.width=r,this.fieldId=o,this.columnDefinitionId=s,this.sortStatus=a,this.enabled=l,this.cssClasses=d,this.styles=p,this.sortable=w,this.align=E}getHeader(){return this.header}getDataType(){return this.dataType}getColumnDefinitionId(){return this.columnDefinitionId}getFieldId(){return this.fieldId}getSortStatus(){return this.sortStatus}getCssClasses(){return this.cssClasses}getStyles(){return this.styles}isSortEnabled(){return this.sortable}isAscSort(){return this.sortStatus===ct.ASC}isDescSort(){return this.sortStatus===ct.DESC}isNoSort(){return this.sortStatus===ct.NONE}isEnabled(){return this.enabled}isAlignLeft(){return this.align===$e.LEFT}isAlignCenter(){return this.align===$e.CENTER}isAlignRight(){return this.align===$e.RIGHT}getAlign(){return this.align}},Bd=class extends zd{viewTemplate;editTemplate;constructor(t=null,e=null,n){super(n.getHeader(),n.getDataType(),n.context,n.width,n.getFieldId(),n.getColumnDefinitionId(),n.getSortStatus(),n.isEnabled(),n.getCssClasses(),n.getStyles(),n.isSortEnabled(),n.getAlign()),this.viewTemplate=t,this.editTemplate=e}},Hd=function(i){return i[i.TEXT=0]="TEXT",i[i.HTML=1]="HTML",i}(Hd||{}),Bn=class i{value;type;constructor(t,e){this.value=t,this.type=e}static text(t){return new i(t,Hd.TEXT)}static HTML(t){return new i(t,Hd.HTML)}},$d=class{columnConfig;columnDefinitionId;name;editable;templateFun;formatterFun;accessor;searchAccessor;width;columnFieldId;align;cellEditingEnabled;type;view;constructor(t,e,n,r,o,s,a,l,d,p,w,E,Q,ne){this.columnConfig=t,this.columnDefinitionId=e,this.name=n,this.editable=r,this.templateFun=o,this.formatterFun=s,this.accessor=a,this.searchAccessor=l,this.width=d,this.columnFieldId=p,this.align=w,this.cellEditingEnabled=E,this.type=Q,this.view=ne}getDataType(){return this.type}getCellView(){return this.view.getCellView()}getColumnConfig(){return this.columnConfig}isCellEditingEnabled(){return this.cellEditingEnabled}isBooleanDataType(){return this.type===$.BOOLEAN}isAlignLeft(){return this.align===$e.LEFT}isAlignCenter(){return this.align===$e.CENTER}isAlignRight(){return this.align===$e.RIGHT}getAlign(){return this.align}getType(){return this.type}getView(){return this.view}getName(){return this.name}getValue(t,e){let n=this.findValue(t,e);return n.value=this.templateFun(n.value,t.getSourceItem()),this.formatterFun&&(n.value=this.formatterFun(n.value,t.getSourceItem())),n}getClasses(){return"gui-cell-highlighted"}findValue(t,e){let n=this.accessor(t);if(this.type!==$.STRING||this.view&&this.view.getCellView()===j.FUNCTION)return Bn.text(n);if(e){let r=""+this.searchAccessor(t),o=r.toLocaleLowerCase(),s=e.toLocaleLowerCase(),a=[],l=0;for(;l<s.length;){let p=o.indexOf(s,l);p>=0?(a.push(p),l=p+e.length):l=s.length}let d=r.split("");return a.forEach(p=>{for(let w=0;w<e.length;w+=1){let E;w===0?E=`<span class="gui-text-highlight">${d[p+w]}`:E=d[p+w],w===e.length-1&&(E+="</span>"),d[p+w]=E}}),r=d.join(""),Bn.HTML(r)}else return Bn.text(n)}},Bf=class extends $d{template;editTemplate;constructor(t=null,e=null,n){super(n.getColumnConfig(),n.columnDefinitionId,n.getName(),n.editable,n.templateFun,n.formatterFun,n.accessor,n.searchAccessor,n.width,n.columnFieldId,n.getAlign(),n.isCellEditingEnabled(),n.getType(),n.getView()),this.template=t,this.editTemplate=e}},jn={CompositionResizeWidthSetAggregateEvent:"CompositionResizeWidthSetAggregateEvent",ColumnsSetAggregateEvent:"ColumnsSetAggregateEvent",CompositionContainerWidthSetAggregateEvent:"CompositionContainerWidthSetAggregateEvent",CompositionWidthSetAggregateEvent:"CompositionWidthSetAggregateEvent",CompositionColumnSetEnabledAggregateEvent:"CompositionColumnSetEnabledAggregateEvent",CompositionColumnMovedLeftAggregateEvent:"CompositionColumnMovedLeftAggregateEvent",CompositionColumnMovedRightAggregateEvent:"CompositionColumnMovedRightAggregateEvent",GroupsSetAggregateEvent:"GroupsSetAggregateEvent"},di=class extends Zi{},Qr=class extends di{constructor(t){super(t,null,"CompositionResizeWidthSetEvent")}},us=class extends di{constructor(t){super(t,null,"CompositionColumnsSetEvent")}},ms=class extends di{constructor(t,e){super(t,e,"CompositionContainerWidthSetEvent")}},hs=class extends di{constructor(t){super(t,null,"CompositionWidthSetEvent")}},Ja=class extends di{constructor(t){super(t,null,"CompositionColumnSetEnabledEvent")}},ec=class extends di{constructor(t){super(t,null,"CompositionColumnMovedLeftEvent")}},tc=class extends di{constructor(t){super(t,null,"CompositionColumnMovedRightEvent")}},Hf=class extends di{constructor(t){super(t,null,"CompositionGroupsSetEvent")}},dn=class{convert(t){return Array.isArray(t)?this.convertEvents(t):this.convertEvent(t)}convertEvents(t){return t.map(e=>this.convertEvent(e))}convertEvent(t){switch(t.getType()){case jn.CompositionResizeWidthSetAggregateEvent:return new Qr(t.getAggregateId());case jn.ColumnsSetAggregateEvent:return new us(t.getAggregateId());case jn.CompositionContainerWidthSetAggregateEvent:let e=t.containerWidth;return new ms(t.getAggregateId(),e);case jn.CompositionWidthSetAggregateEvent:return new hs(t.getAggregateId());case jn.CompositionColumnSetEnabledAggregateEvent:return new Ja(t.getAggregateId());case jn.CompositionColumnMovedLeftAggregateEvent:return new ec(t.getAggregateId());case jn.CompositionColumnMovedRightAggregateEvent:return new tc(t.getAggregateId());case jn.GroupsSetAggregateEvent:return new Hf(t.getAggregateId());default:return new Qr(t.getAggregateId())}}},ui=class extends Dn{},Ud=class extends ui{compositionId;columns;constructor(t,e){super(t,"SetColumnsCommand"),this.compositionId=t,this.columns=e}getParams(){return this.columns}},sA=(()=>{class i{compositionEventConverter;domainEventPublisher=y.resolve(_e);constructor(e){this.compositionEventConverter=e}static services=[dn];forCommand(){return Ud}handle(e,n){let r=n.getParams();e.setColumns(r)}publish(e,n){this.publishEvents(e,n)}publishEvents(e,n){let r=e.getEvents(),o=this.compositionEventConverter.convert(r);this.domainEventPublisher.publish(o)}}return i})(),Wd=class extends ui{structureId;width;constructor(t,e){super(t,"SetCompositionWidthCommand"),this.structureId=t,this.width=e}getWidth(){return this.width}},$f=class{domainEventPublisher=y.resolve(_e);forCommand(){return Wd}handle(t,e){let n=e.getWidth();t.setWidth(n)}publish(t,e){this.domainEventPublisher.publish(new hs(e.getAggregateId()))}},Gd=class extends ui{structureId;enabled;constructor(t,e){super(t,"SetCompositionResizeWidthCommand"),this.structureId=t,this.enabled=e}getEnabled(){return this.enabled}},Uf=class{domainEventPublisher=y.resolve(_e);forCommand(){return Gd}handle(t,e){let n=e.getEnabled();t.setResizeWidth(n)}publish(t,e){this.domainEventPublisher.publish(new Qr(e.getAggregateId()))}},qd=class extends ui{structureId;width;constructor(t,e){super(t,"SetCompositionContainerWidthCommand"),this.structureId=t,this.width=e}getWidth(){return this.width}},aA=(()=>{class i{compositionEventConverter;domainEventPublisher=y.resolve(_e);constructor(e){this.compositionEventConverter=e}static services=[dn];forCommand(){return qd}handle(e,n){let r=n.getWidth();e.setContainerWidth(r)}publish(e,n){this.publishAggregateEvents(e.getEvents())}publishAggregateEvents(e){let n=this.compositionEventConverter.convert(e);this.domainEventPublisher.publish(n)}}return i})(),Yd=class extends ui{compositionId;columnId;enabled;constructor(t,e,n){super(t,"CompositionSetColumnEnabledCommand"),this.compositionId=t,this.columnId=e,this.enabled=n}getColumnId(){return this.columnId}isEnabled(){return this.enabled}},cA=(()=>{class i{compositionEventConverter;domainEventPublisher=y.resolve(_e);constructor(e){this.compositionEventConverter=e}static services=[dn];forCommand(){return Yd}handle(e,n){let r=n.getColumnId(),o=n.isEnabled();e.enableColumn(r,o)}publish(e,n){this.publishEvents(e,n)}publishEvents(e,n){let r=e.getEvents(),o=this.compositionEventConverter.convert(r);o&&o.length>0&&this.domainEventPublisher.publish(o)}}return i})(),Qd=class extends ui{compositionId;sortParams;constructor(t,e){super(t,"CompositionChangeSortStatusCommand"),this.compositionId=t,this.sortParams=e}getCompositionId(){return this.compositionId}getSortParams(){return this.sortParams}},ic=class extends di{activeColumns;constructor(t,e){super(t,e,"CompositionChangeSortStatusEvent"),this.activeColumns=e}getCompositionId(){return this.getAggregateId()}getActiveColumns(){return this.activeColumns}},Wf=class{domainEventPublisher=y.resolve(_e);forCommand(){return Qd}handle(t,e){let n=e.getSortParams();t.changeSort(n)}publish(t,e){let n=e.getAggregateId(),r=t.getActiveColumns();this.domainEventPublisher.publish(new ic(n,r))}},Kd=class extends ui{compositionId;columnId;constructor(t,e){super(t,"CompositionMoveLeftColumnCommand"),this.compositionId=t,this.columnId=e}getColumnId(){return this.columnId}},lA=(()=>{class i{compositionEventConverter;domainEventPublisher=y.resolve(_e);constructor(e){this.compositionEventConverter=e}static services=[dn];forCommand(){return Kd}handle(e,n){let r=n.getColumnId();e.moveLeft(r)}publish(e,n){this.publishEvents(e,n)}publishEvents(e,n){let r=e.getEvents(),o=this.compositionEventConverter.convert(r);o&&o.length>0&&this.domainEventPublisher.publish(o)}}return i})(),Zd=class extends ui{columnId;constructor(t,e){super(t,"CompositionMoveRightColumnCommand"),this.columnId=e}getColumnId(){return this.columnId}},dA=(()=>{class i{compositionEventConverter;domainEventPublisher=y.resolve(_e);constructor(e){this.compositionEventConverter=e}static services=[dn];forCommand(){return Zd}handle(e,n){let r=n.getColumnId();e.moveRight(r)}publish(e,n){this.publishEvents(e,n)}publishEvents(e,n){let r=e.getEvents(),o=this.compositionEventConverter.convert(r);o&&o.length>0&&this.domainEventPublisher.publish(o)}}return i})(),nc=class extends me{compositionId;directions;constructor(t,e,n){super(t,{compositionId:e,directions:n},"SortToggledEvent"),this.compositionId=e,this.directions=n}getCompositionId(){return this.compositionId}getDirections(){return this.directions}},Xd=class extends ui{compositionId;constructor(t){super(t,"CreateCompositionCommand"),this.compositionId=t}},Jd=class extends ui{compositionId;configs;constructor(t,e){super(t,"SetGroupsCommand"),this.compositionId=t,this.configs=e}getConfigs(){return this.configs}},rc=class{commandDispatcher=y.resolve(ut);create(t){this.commandDispatcher.dispatch(new Xd(t))}setColumns(t,e){this.commandDispatcher.dispatch(new Ud(t,e))}setGroups(t,e){this.commandDispatcher.dispatch(new Jd(t,e))}setWidth(t,e){this.commandDispatcher.dispatch(new Wd(t,e))}setContainerWidth(t,e){this.commandDispatcher.dispatch(new qd(t,e))}setResizeWidth(t,e){this.commandDispatcher.dispatch(new Gd(t,e))}changeSort(t,e){this.commandDispatcher.dispatch(new Qd(t,e))}setColumnEnabled(t,e,n){this.commandDispatcher.dispatch(new Yd(t,e,n))}moveLeft(t,e){this.commandDispatcher.dispatch(new Kd(t,e))}moveRight(t,e){this.commandDispatcher.dispatch(new Zd(t,e))}},eu=class{fieldId;direction;constructor(t,e){this.fieldId=t,this.direction=e}},oc=class extends me{compositionId;directions;constructor(t,e,n){super(t,{compositionId:e,directions:n},"SortOrderSetEvent"),this.compositionId=e,this.directions=n}getCompositionId(){return this.compositionId}getDirections(){return this.directions}},uA=(()=>{class i{compositionDispatcher;constructor(e){this.compositionDispatcher=e}static services=[rc];forEvents(){return[nc,oc]}handle(e){if(e.ofMessageType("SortToggledEvent")){let n=e.getCompositionId(),o=e.getDirections().map(s=>{let a=new Ha(s.fieldId.getId());return new eu(a,s.direction)});this.compositionDispatcher.changeSort(n,o)}if(e.ofMessageType("SortOrderSetEvent")){let n=e.getCompositionId(),o=e.getDirections().map(s=>{let a=new Ha(s.fieldId.getId());return new eu(a,s.direction)});this.compositionDispatcher.changeSort(n,o)}}}return i})(),sc=class i{view;templateFunction=(t,e)=>t;constructor(t){typeof t=="function"?(this.view=j.FUNCTION,this.templateFunction=t):this.view=t}static fromDataType(t){return t===$.DATE?new i(j.DATE):new i(j.TEXT)}getCellView(){return this.view}getTemplateFunction(){return this.templateFunction}},Gf=class extends Cr{columnField;header;width;columnConfig;view;align;presentation;constructor(t,e,n,r,o,s,a,l){super(t),this.columnField=e,this.columnConfig=n,this.presentation=r,this.view=sc.fromDataType(e.getDataType()),o&&(this.header=o),a&&(this.view=a),l&&(this.width=l),this.setInitialAlign(e,s)}getPresentation(){return this.presentation}getColumnConfig(){return this.columnConfig}getField(){return this.columnField}getHeader(){return this.header}getDataType(){return this.columnField.getDataType()}getCellView(){return this.view.getCellView()}getTemplateFunction(){return this.view.getTemplateFunction()}getFormatterFunction(){return this.columnConfig.formatter}setView(t){this.view=t}setHeader(t){this.header=t}getView(){return this.view}getAlign(){return this.align}setWidth(t){this.width=t}getWidth(){return this.width}isSortingEnabled(){let t=this.columnConfig;return t.sorting!==void 0&&t.sorting!==null?t.sorting.enabled===void 0||t.sorting.enabled===null?!0:t.sorting.enabled:!0}isCellEditingEnabled(){let t=this.columnConfig;return t.cellEditing!==void 0&&t.cellEditing!==null?t.cellEditing.enabled===void 0||t.cellEditing.enabled===null?!0:t.cellEditing.enabled:!0}setInitialAlign(t,e){e!=null?this.align=e:t.getDataType()===$.NUMBER?this.align=$e.RIGHT:this.align=$e.LEFT}},ac=class extends Gf{sortable;sortStatus=ct.NONE;enabled=!0;constructor(t,e,n,r,o,s,a,l,d){super(t,e,n,o,s,a,l,d),this.enabled=r,l===void 0&&(this.view=new sc(this.presentation.getDefaultView())),a===void 0&&(this.align=this.presentation.getDefaultAlign(this.view))}isEnabled(){return this.enabled}setEnabled(t){this.enabled=t}getSortStatus(){return this.sortStatus}setSortStatus(t){this.sortStatus=t}},gs=class extends Xi{constructor(t){super(t)}toString(){return this.getId()}},Kr=class{},mA=(()=>{class i extends Kr{static instance=null;constructor(){super()}static getInstance(){return i.instance||(i.instance=new i),i.instance}getPossibleViews(){return[j.TEXT,j.BAR,j.PERCENTAGE_BAR,j.PERCENTAGE]}getDefaultView(){return j.NUMBER}getDefaultAlign(e){return $e.RIGHT}}return i})(),hA=(()=>{class i extends Kr{static instance=null;constructor(){super()}static getInstance(){return i.instance||(i.instance=new i),i.instance}getPossibleViews(){return[j.TEXT,j.ITALIC,j.CHIP,j.BOLD,j.CHECKBOX]}getDefaultView(){return j.TEXT}getDefaultAlign(e){return e.getCellView()===j.CHECKBOX?$e.CENTER:$e.LEFT}}return i})(),gA=(()=>{class i extends Kr{static getInstance(){return i.instance||(i.instance=new i),i.instance}static instance=null;constructor(){super()}getPossibleViews(){return[j.DATE,j.TEXT,j.ITALIC,j.BOLD,j.CHIP]}getDefaultView(){return j.DATE}getDefaultAlign(){return $e.LEFT}}return i})(),pA=(()=>{class i extends Kr{static instance=null;constructor(){super()}static getInstance(){return i.instance||(i.instance=new i),i.instance}getPossibleViews(){return[j.TEXT,j.ITALIC,j.BOLD,j.IMAGE,j.LINK,j.CHIP]}getDefaultView(){return j.TEXT}getDefaultAlign(){return $e.LEFT}}return i})(),fA=(()=>{class i extends Kr{static instance=null;constructor(){super()}static getInstance(){return i.instance||(i.instance=new i),i.instance}getPossibleViews(){return[j.TEXT]}getDefaultView(){return j.TEXT}getDefaultAlign(){return $e.LEFT}}return i})(),tu=class{convert(t){return t===$.NUMBER?mA.getInstance():t===$.BOOLEAN?hA.getInstance():t===$.DATE?gA.getInstance():t===$.STRING?pA.getInstance():fA.getInstance()}},PC=(()=>{class i{columnPresentationConverter;constructor(e){this.columnPresentationConverter=e}static services=[tu];create(e){return Array.isArray(e)?this.createColumns(e):this.createColumn(e)}createColumn(e){let n=e.getColumn(),r=e.getField(),o=r.getDataType(),s=this.convertWidth(n.width)||void 0,a,l;n.view!==void 0&&(a=new sc(n.view)),n.enabled!==void 0?l=n.enabled:l=!0;let d=this.getPresentation(o),p=new ac(new gs(Tn.generate()),r,n,l,d,void 0,n.align,a,s);return n.header!==void 0&&p.setHeader(n.header),p}createColumns(e){let n=[];return e.forEach(r=>{n.push(this.createColumn(r))}),n}convertWidth(e){return+e}getPresentation(e){return this.columnPresentationConverter.convert(e)}}return i})(),iu=class{id;header;width;constructor(t,e,n){this.id=t,this.header=e,this.width=n}},nu=class extends _r{constructor(t){super(t)}toString(){return this.getId()}},ru=class{create(t){return new iu(new nu(Tn.generate()),t.header,t.width)}},bA=(()=>{class i{compositionEventConverter;domainEventPublisher=y.resolve(_e);constructor(e){this.compositionEventConverter=e}static services=[dn];forCommand(){return Jd}handle(e,n){let r=n.getConfigs();e.setGroups(r)}publish(e,n){this.publishEvents(e,n)}publishEvents(e,n){let r=e.getEvents(),o=this.compositionEventConverter.convert(r);this.domainEventPublisher.publish(o)}}return i})(),ou=class{enabled=!0;highlightedColumns=new Set;isHighlighted(t){return this.highlightedColumns.has(t.toString())}toggle(t){this.highlightedColumns.has(t.toString())?this.highlightedColumns.delete(t.toString()):this.highlightedColumns.add(t.toString())}remove(t){this.highlightedColumns.delete(t.toString())}},cc=class extends Fe{constructor(){super(new ou)}toggle(t,e){this.find(t).ifPresent(n=>{n.toggle(e),this.next(t,n)})}equals(t,e){return!1}createDefaultValue(t){return new ou}},ps=class extends kr{},NC=(()=>{class i extends Ir{constructor(e){super(e)}static services=[ps]}return i})(),su=class extends vr{},bC=(()=>{class i extends su{inMemoryCompositionAggregateStore;constructor(e){super(),this.inMemoryCompositionAggregateStore=e}static services=[NC];findById(e){return this.inMemoryCompositionAggregateStore.findById(e)}save(e){this.inMemoryCompositionAggregateStore.save(e)}}return i})(),au=class{element;constructor(t){this.element=t}},cu=class extends ql{columnConfig;name;type;view;align;cssClasses;styles;width;templateFunction;formatterFunction;columnDefinitionId;field;header;sortStatus;sortable=!0;enabled;cellEditingEnabled;constructor(t,e,n,r,o,s,a,l,d,p,w,E,Q=ct.NONE,ne=!0){super(e),this.columnConfig=n,this.name=r,this.type=s,this.view=a,this.align=l,this.cssClasses=w,this.styles=E,this.field=t,this.columnDefinitionId=e,this.enabled=o,this.header=d,this.cellEditingEnabled=p,this.sortStatus=Q,this.sortable=ne}getName(){return this.name}isEnabled(){return this.enabled}setHeader(t){this.header=t}setField(t){this.field=t}setTemplateFunction(t){this.templateFunction=t}setFormatterFunction(t){this.formatterFunction=t}toHeaderCellTemplateWithContext(t){let e=this.header||"",n;typeof e=="string"?n=new au(Bn.text(e)):typeof e=="function"&&(n=new au(Bn.text(e(t))));let r=new Lr(this.field.getId().getId());return new zd(e,this.type,n,this.width,r,this.columnDefinitionId,this.sortStatus,this.enabled,this.cssClasses,this.styles,this.sortable,this.align)}toContentCellTemplateWithAccessor(){let t=n=>this.field.getAccessor()(n),e=n=>this.field.getSearchAccessor()(n);return new $d(this.columnConfig,this.columnDefinitionId,this.name,!0,this.templateFunction,this.formatterFunction,t,e,this.width,this.field.getId(),this.align,this.cellEditingEnabled,this.type,this.view)}},lu=class extends Yl{constructor(t){super(t)}},du=class{create(t){return t instanceof ac?this.createFromColumnEntity(t):this.createFromActiveColumnEntity(t)}createColumns(t){return t.map(e=>this.create(e))}createFromColumnEntity(t){let e=new cu(t.getField(),new lu(t.getId().toString()),t.getColumnConfig(),t.getColumnConfig().name,t.isEnabled(),t.getDataType(),t.getView(),t.getAlign(),t.getHeader(),t.isCellEditingEnabled(),t.getColumnConfig().cssClasses,t.getColumnConfig().styles,t.getSortStatus(),t.isSortingEnabled());return e.setTemplateFunction(t.getTemplateFunction()),e.setFormatterFunction(t.getFormatterFunction()),e.width=+t.getWidth(),e}createFromActiveColumnEntity(t){let e=new cu(t.getField(),new lu(t.getId().toString()),t.getColumnConfig(),t.getColumnConfig().name,!0,t.getDataType(),t.getView(),t.getAlign(),t.getHeader(),t.isCellEditingEnabled(),t.getColumnConfig().cssClasses,t.getColumnConfig().styles,t.getSortStatus(),t.isSortingEnabled());return e.setTemplateFunction(t.getTemplateFunction()),e.setFormatterFunction(t.getFormatterFunction()),e.width=+t.getWidth(),e}},qf=class extends va{ready;allColumns;activeColumns;width;resizeWidth;constructor(t,e,n,r,o,s){super(t),this.ready=e,this.allColumns=n,this.activeColumns=r,this.width=o,this.resizeWidth=s}getActiveColumns(){return this.activeColumns}getAllColumns(){return this.allColumns}getActiveHeaderColumns(){return this.getActiveColumns().map((t,e)=>t.toHeaderCellTemplateWithContext(e))}getHeaderColumns(){return this.getAllColumns().map((t,e)=>t.toHeaderCellTemplateWithContext(e))}getTemplateColumns(){return this.getActiveColumns().map(t=>t.toContentCellTemplateWithAccessor())}getWidth(){return this.width}getContainerWidth(){return+this.width-2}isReady(){return this.ready}isResizeWidthEnabled(){return this.resizeWidth}equals(t){return this.width===t.width&&this.resizeWidth===t.resizeWidth&&this.equalsByColumns(t.allColumns)}equalsByColumns(t){return this.allColumns.length===t.length}},jC=(()=>{class i{columnDefinitionFactory;constructor(e){this.columnDefinitionFactory=e}static services=[du];convert(e){let n=e.isReady(),r=e.getColumns(),o=e.getActiveColumns(),s=this.convertToColumnDef(r),a=this.convertActiveColumnsToColumnDef(o),l=e.getWidth(),d=e.isResizeEnabled(),p=e.getId();return new qf(p.toReadModelRootId(),n,s,a,l,d)}convertToColumnDef(e){let n=[];return e.forEach(r=>{let o=this.columnDefinitionFactory.create(r);n.push(o)}),n}convertActiveColumnsToColumnDef(e){let n=[];return e.forEach(r=>{let o=this.columnDefinitionFactory.create(r);n.push(o)}),n}}return i})(),dx=(()=>{class i extends xa{inMemoryCompositionStore;compositionConverter;constructor(e,n){super(e),this.inMemoryCompositionStore=e,this.compositionConverter=n}static services=[ps,jC];toReadModel(e){return this.compositionConverter.convert(e)}}return i})(),fs=class extends Ql{constructor(){super()}},uu=class extends di{constructor(t){super(t,null,"CompositionCreatedEvent")}},VC=(()=>{class i extends fs{inMemoryCompositionReadStore;compositionIdToComposition=new Map;composition$=new Tt(1);constructor(e){super(),this.inMemoryCompositionReadStore=e}static services=[dx];on(e){return this.composition$.toObservable().pipe(ye(n=>{let r=e.getId();return n.has(r)}),P(n=>n.get(e.getId())))}find(e){let n=e.getId();return Xe.of(this.compositionIdToComposition.get(n))}forEvents(){return[uu,Qr,us,ms,hs,Ja,ec,tc,ic]}subscribe(e){let n=e.getAggregateId();this.inMemoryCompositionReadStore.getById(n).ifPresent(o=>{let s=o.getId().toString();this.compositionIdToComposition.set(s,o),this.composition$.next(this.compositionIdToComposition)})}}return i})(),Yf=class{forCommand(){return Xd}},lc=class{MIN_COLUMN_WIDTH;constructor(t){this.MIN_COLUMN_WIDTH=t}calculateMinWidth(t){let{staticColumns:e,fluidColumns:n}=this.segregateColumns(t),r=0;return e.forEach(o=>{r+=o.getWidth()}),r+=n.length*this.MIN_COLUMN_WIDTH,r}segregateColumns(t){let e=t.filter(r=>r.isTypeNumber()&&r.getWidth()>this.MIN_COLUMN_WIDTH),n=t.filter(r=>r.isTypeAuto()||r.isTypePercentage()||r.isTypeNumber()&&r.getWidth()<=this.MIN_COLUMN_WIDTH);return{staticColumns:e,fluidColumns:n}}},wi=class extends br{},Qf=class extends wi{constructor(t){super(t,"CompositionWidthSetAggregateEvent")}toDomainEvent(){return new hs(this.getAggregateId())}},Kf=class extends wi{containerWidth;constructor(t,e){super(t,"CompositionContainerWidthSetAggregateEvent"),this.containerWidth=e}toDomainEvent(){return new ms(this.getAggregateId(),this.containerWidth)}},Zf=class extends wi{constructor(t){super(t,"CompositionResizeWidthSetAggregateEvent")}toDomainEvent(){return new Qr(this.getAggregateId())}},Xf=class extends wi{activeColumns;constructor(t,e){super(t,"CompositionColumnSetEnabledAggregateEvent"),this.activeColumns=e}toDomainEvent(){return new Ja(this.getAggregateId())}getActiveColumns(){return this.activeColumns}},ji=function(i){return i[i.PERCENTAGE=0]="PERCENTAGE",i[i.NUMBER=1]="NUMBER",i[i.AUTO=2]="AUTO",i}(ji||{}),os=class i{template;baseWidth;width;constructor(t){this.baseWidth=t,this.setWidthAndType(t)}getWidth(){return this.width}getColumnType(){return this.template}isTypePercentage(){return this.template===ji.PERCENTAGE}isTypeAuto(){return this.template===ji.AUTO}isTypeNumber(){return this.template===ji.NUMBER}setWidth(t){this.width=t}setWidthAndType(t){t==null||t==="auto"?(this.template=ji.AUTO,this.setWidth(null)):this.isPercentage(t)?(this.template=ji.PERCENTAGE,this.setWidth(this.percentageToNumber(""+t))):this.isStringNumber(t)?(this.template=ji.NUMBER,this.setWidth(+t)):(this.template=ji.NUMBER,this.setWidth(+t))}clone(){return new i(this.baseWidth)}isPercentage(t){return typeof t=="string"&&t[t.length-1]==="%"}percentageToNumber(t){return+t.slice(0,-1)}isStringNumber(t){let e=+t;return Number.isNaN(e)}},Jf=class{source;width;MIN_COLUMN_WIDTH;columns;constructor(t,e,n){this.source=t,this.width=e,this.MIN_COLUMN_WIDTH=n,this.columns=this.source.map(r=>r.clone())}calculate(){let t=this.width,e=Array.from(this.columns);this.adjustMinimalWidth(e);let n=[];if(e.forEach((r,o)=>{r.isTypeNumber()?t-=r.getWidth():n.push(r)}),e=n,e.length!==0){let r=t/e.length;e.forEach((o,s)=>{o.setWidth(r)})}return this.columns}adjustMinimalWidth(t){t.forEach(e=>{e.isTypeNumber()&&e.getWidth()<this.MIN_COLUMN_WIDTH&&e.setWidthAndType(this.MIN_COLUMN_WIDTH)})}adjustPercentageWidth(){let t=this.columns.filter(e=>e.isTypePercentage());for(let e of this.columns)e.getColumnType()===ji.PERCENTAGE&&e.setWidth(this.width*e.getWidth()*.01)}adjustAutoWidth(){let t=this.width,e=[];for(let n=0;n<this.columns.length;n+=1){let r=this.columns[n];r.getColumnType()!==ji.AUTO?t-=r.getWidth():e.push(r)}if(e.length>0){let n=t/e.length;for(let r of e)r.setWidth(n)}}},mu=class{MIN_COLUMN_WIDTH;baseColumnWidths;columnWidths;width;constructor(t,e=[],n=100){this.MIN_COLUMN_WIDTH=t,this.baseColumnWidths=e.map(r=>new os(r.width)),this.columnWidths=e.map(r=>new os(r.width)),this.setContainerWidth(n),this.calculate()}getColumnWidths(){return this.baseColumnWidths}getColumnsWidth(){return this.width}getWidths(){return this.columnWidths.map(t=>t.getWidth())}getMinWidth(){return new lc(this.MIN_COLUMN_WIDTH).calculateMinWidth(this.columnWidths)}setWidth(t){this.setContainerWidth(t),this.calculate()}setColumns(t){this.baseColumnWidths=t.map(e=>new os(e.width)),this.columnWidths=t.map(e=>new os(e.width)),this.calculate()}getMinColumnWidth(){return this.MIN_COLUMN_WIDTH}calculate(){if(this.baseColumnWidths&&this.width){let t=new Jf(this.baseColumnWidths,this.width,this.MIN_COLUMN_WIDTH);this.columnWidths=t.calculate()}}setContainerWidth(t){this.getMinWidth()>t?this.width=this.getMinWidth():this.width=t,this.calculate()}},eb=class extends wi{activeColumns;constructor(t,e){super(t,"CompositionChangeSortStatusAggregateEvent"),this.activeColumns=e}toDomainEvent(){return new ic(this.getAggregateId(),this.activeColumns)}},tb=class{compositionId;MIN_COLUMN_WIDTH=50;columns;columnWidthCollection=new mu(this.MIN_COLUMN_WIDTH);constructor(t,e=[],n,r){this.compositionId=t,this.columns=e,n&&r&&(this.columnWidthCollection=new mu(this.MIN_COLUMN_WIDTH,r,n))}getColumnWidths(){return this.columnWidthCollection.getColumnWidths()}getColumns(){return this.columns}setWidth(t){this.columnWidthCollection.setWidth(t)}addColumn(t,e){this.columns.splice(e,0,t)}removeColumn(t){this.columns.splice(t,1)}setColumns(t,e){this.columns=t,this.columnWidthCollection.setColumns(e);let n=this.columnWidthCollection.getWidths();this.columns.forEach((r,o)=>{r.setWidth(n[o])})}changeSort(t){this.columns.forEach(e=>{e.setSortStatus(ct.NONE)});for(let e of t){let n=e.fieldId,r=e.direction,o=r?ct.ASC:ct.DESC,s=this.columns.filter(a=>a.getField().getId().getId()===n.getId());s.length>0&&s.forEach(a=>{a.setSortStatus(o)})}return new eb(this.getCompositionId(),this.columns)}moveLeft(t){let e=this.findColumnIndex(t);this.move(e,e-1)}moveRight(t){let e=this.findColumnIndex(t);this.move(e,e+1)}getMinColumnWidth(){return this.MIN_COLUMN_WIDTH}move(t,e){if(!this.validateMoveIndex(t)||!this.validateMoveIndex(e))return;let n=this.columns[t];this.columns[t]=this.columns[e],this.columns[e]=n}validateMoveIndex(t){return t>=0}getCompositionId(){return this.compositionId}findColumnIndex(t){return this.columns.findIndex(e=>e.getId().equals(t))}},ib=class i extends ac{constructor(t,e,n,r,o,s,a){super(t,e,s,!0,a,n,r,o,void 0)}static fromEntity(t){return new i(t.getId(),t.getField(),t.getHeader(),t.getAlign(),t.getView(),t.getColumnConfig(),t.getPresentation())}},nb=class{convertMany(t){return t.map(e=>this.convert(e))}convert(t){return ib.fromEntity(t)}},rb=class extends wi{constructor(t){super(t,"CompositionColumnMovedLeftAggregateEvent")}toDomainEvent(){return new ec(this.getAggregateId())}},ob=class extends wi{constructor(t){super(t,"CompositionColumnMovedRightAggregateEvent")}toDomainEvent(){return new tc(this.getAggregateId())}},sb=class extends wi{constructor(t){super(t,"ColumnsSetAggregateEvent")}toDomainEvent(){return new us(this.getAggregateId())}},ab=class extends wi{constructor(t){super(t,"SchemaCreatedEvent")}toDomainEvent(){return new uu(this.getAggregateId())}},vA=new iu(new nu("-1"),"",100),cb=class extends xr{allColumns=[];baseColumns;baseParams;width;containerInDOMWidth;resizeWidthEnabled=!0;columnFactory;groupFactory;activeColumnContainer;activeColumnEntityConverter=new nb;groups=new Bo;columnNameToGroupId=new Map;constructor(t,e,n,r=[],o,s){super(t,"CompositionAggregate");let a=r.map(d=>d.getColumn());this.baseParams=r,this.baseColumns=a,this.columnFactory=e,this.groupFactory=n,this.width=o,this.allColumns=this.columnFactory.create(r);let l=this.activeColumnEntityConverter.convertMany(this.getEnabledColumns());this.activeColumnContainer=new tb(this.getId(),l,o,a),s!=null&&(this.resizeWidthEnabled=s)}createEvent(){return ab}getColumns(){return this.allColumns}getActiveColumns(){return this.activeColumnContainer.getColumns()}getWidth(){return this.resizeWidthEnabled?this.containerInDOMWidth:this.width}isResizeEnabled(){return this.resizeWidthEnabled}isReady(){return!!this.getWidth()&&this.getActiveColumns().length>0}setGroups(t){for(let e=0;e<t.length;e+=1){let n=t[e];if(n.columns!==void 0){let r=this.groupFactory.create(n);this.groups.set(r.id,r),n.columns.forEach((o,s)=>{this.columnNameToGroupId.set(o.header,r.id)})}else this.columnNameToGroupId.set(n.header,vA.id)}}setColumns(t){this.allColumns=this.columnFactory.create(t);let e=t.map(r=>r.getColumn()),n=this.activeColumnEntityConverter.convertMany(this.getEnabledColumns());this.activeColumnContainer.setColumns(n,e),this.addEvent(new sb(this.getId()))}setContainerWidth(t){this.setContainerWidthWithEvent(t),this.recalculateColumns()}setWidth(t){this.setWidthWithEvent(t),this.setResizeWidthWithEvent(!1),this.recalculateColumns()}setResizeWidth(t){this.setResizeWidthWithEvent(t)}changeSort(t){this.addEvent(this.activeColumnContainer.changeSort(t))}enableColumn(t,e){let n=-1;if(this.allColumns.forEach((r,o)=>{if(r.getId().getId()===t.getId()){let s=r.isEnabled();r.setEnabled(e),s!==e&&(n=o)}}),n>0)if(e){let r=this.activeColumnEntityConverter.convert(this.allColumns[n]);this.activeColumnContainer.addColumn(r,n)}else this.activeColumnContainer.removeColumn(n);this.recalculateColumns(),this.addEvent(new Xf(this.getId(),this.getActiveColumns()))}moveLeft(t){let e=this.findColumnIndex(t),n,r=-1;for(let o=e-1;o>=0;o-=1){let s=this.allColumns[o];if(s.isEnabled()){n=s,r=o;break}}if(n&&r>=0&&e>=0){let o=this.allColumns[e];this.allColumns[e]=n,this.allColumns[r]=o}this.activeColumnContainer.moveLeft(t),this.addEvent(new rb(this.getId()))}moveRight(t){let e=this.findColumnIndex(t),n,r=-1;for(let o=e+1;o<this.allColumns.length;o+=1){let s=this.allColumns[o];if(s.isEnabled()){n=s,r=o;break}}if(n&&r>=0&&e>=0){let o=this.allColumns[e];this.allColumns[e]=n,this.allColumns[r]=o}this.activeColumnContainer.moveRight(t),this.addEvent(new ob(this.getId()))}recalculateColumns(){let t=this.activeColumnEntityConverter.convertMany(this.getEnabledColumns());this.activeColumnContainer.setColumns(t,t.map(e=>e.getColumnConfig()))}setWidthWithEvent(t){let n=new lc(this.getMinColumnWidth()).calculateMinWidth(this.activeColumnContainer.getColumnWidths());n>t?this.width=n:this.width=t,this.activeColumnContainer.setWidth(this.getWidth()),this.addEvent(new Qf(this.getId()))}setContainerWidthWithEvent(t){let n=new lc(this.getMinColumnWidth()).calculateMinWidth(this.activeColumnContainer.getColumnWidths());n>t?this.containerInDOMWidth=n:this.containerInDOMWidth=t,this.activeColumnContainer.setWidth(this.getWidth()),this.addEvent(new Kf(this.getId(),t))}setResizeWidthWithEvent(t){this.resizeWidthEnabled=t,this.activeColumnContainer.setWidth(this.getWidth()),this.addEvent(new Zf(this.getId()))}getEnabledColumns(){return this.allColumns.filter(t=>t.isEnabled())}findColumnIndex(t){return this.allColumns.findIndex(e=>e.getId().equals(t))}getMinColumnWidth(){return this.activeColumnContainer.getMinColumnWidth()}},xA=(()=>{class i extends fr{columnFactory;groupFactory;constructor(e,n){super(),this.columnFactory=e,this.groupFactory=n}static services=[PC,ru];create(e){return new cb(e,this.columnFactory,this.groupFactory)}}return i})(),vC="CompositionAggregate",lb=class{defineAggregate(){return{aggregateKey:vC,createCommandHandler:Yf,factory:xA,repository:bC}}registerKey(){return vC}registerProviders(t){t.provide(NC),t.provide(su,bC),t.provide(rc),t.provide(PC),t.provide(tu),t.provide(dn),t.provide(Ur),t.provide(ru),t.provide(cc),t.provide(ps),t.provide(dx),t.provide(fs,VC)}registerCommandHandlers(){return[sA,$f,Uf,aA,cA,Wf,lA,dA,bA]}registerDomainEventHandler(){return[]}registerMultiDomainEventHandler(){return[uA]}},_A=(()=>{class i extends gt{sanitizer;element;safeHTML;constructor(e,n){super(n),this.sanitizer=e,this.addClassToHost("gui-h-full"),this.addClassToHost("gui-w-full")}ngOnChanges(){this.safeHTML=this.sanitizer.bypassSecurityTrustHtml(this.element.value)}getSelectorName(){return"gui-function-view"}static \u0275fac=function(n){return new(n||i)(c(In),c(x))};static \u0275cmp=I({type:i,selectors:[["gui-function-view"]],inputs:{element:"element"},features:[C,G],decls:1,vars:1,consts:[[1,"gui-h-full","gui-flex","gui-items-center",3,"innerHTML"]],template:function(n,r){n&1&&b(0,"div",0),n&2&&m("innerHTML",r.safeHTML,sr)},encapsulation:2,changeDetection:0})}return i})(),LC=(()=>{class i extends gt{value;constructor(e){super(e)}getSelectorName(){return"gui-percentage-view"}static \u0275fac=function(n){return new(n||i)(c(x))};static \u0275cmp=I({type:i,selectors:[["gui-percentage-view","value",""]],inputs:{value:"value"},features:[C],attrs:sx,decls:1,vars:1,template:function(n,r){n&1&&S(0),n&2&&oe(" ",r.value," % ")},encapsulation:2,changeDetection:0})}return i})(),yA=(()=>{class i extends gt{value;showPercentage=!1;width;constructor(e){super(e)}ngOnChanges(e){Re(e.value,()=>{this.width=this.value>100?100:this.value})}getSelectorName(){return"gui-bar-view"}static \u0275fac=function(n){return new(n||i)(c(x))};static \u0275cmp=I({type:i,selectors:[["gui-bar-view","value",""]],inputs:{value:"value",showPercentage:"showPercentage"},features:[C,G],attrs:sx,decls:3,vars:3,consts:[[1,"gui-percentage-bar"],[1,"gui-percentage"],[3,"value",4,"ngIf"],[3,"value"]],template:function(n,r){n&1&&(h(0,"div",0),b(1,"div",1),D(2,hM,1,1,"gui-percentage-view",2),g()),n&2&&(u(),Ae("width",r.width,"%"),u(),m("ngIf",r.showPercentage))},dependencies:[je,LC],encapsulation:2,changeDetection:0})}return i})(),ux=(()=>{class i{sanitizer;constructor(e){this.sanitizer=e}transform(e,n){switch(n){case"html":return this.sanitizer.bypassSecurityTrustHtml(e);case"style":return this.sanitizer.bypassSecurityTrustStyle(e);case"script":return this.sanitizer.bypassSecurityTrustScript(e);case"url":return this.sanitizer.bypassSecurityTrustUrl(e);case"resourceUrl":return this.sanitizer.bypassSecurityTrustResourceUrl(e);default:throw new Error(`Invalid safe type specified: ${n}`)}}static \u0275fac=function(n){return new(n||i)(c(In,16))};static \u0275pipe=As({name:"guiSafe",type:i,pure:!0})}return i})(),wA=(()=>{class i extends gt{value;isHtml=!1;constructor(e,n,r){super(r),e!==null&&this.addClassToHost("gui-bold"),n!==null&&this.addClassToHost("gui-italic")}ngOnChanges(){this.isHtml=this.value.type===Hd.HTML}getSelectorName(){return"gui-text-view"}static \u0275fac=function(n){return new(n||i)(rr("bold"),rr("italic"),c(x))};static \u0275cmp=I({type:i,selectors:[["gui-view-text","value",""]],inputs:{value:"value"},features:[C,G],attrs:sx,decls:3,vars:2,consts:[["text",""],[4,"ngIf","ngIfElse"],[3,"innerHTML"]],template:function(n,r){if(n&1&&D(0,gM,3,4,"ng-container",1)(1,pM,2,1,"ng-template",null,0,Ee),n&2){let o=Qi(2);m("ngIf",r.isHtml)("ngIfElse",o)}},dependencies:[je,ux],encapsulation:2,changeDetection:0})}return i})(),CA=(()=>{class i extends gt{sanitizer;element;safeHTML;constructor(e,n){super(n),this.sanitizer=e,this.addClassToHost("gui-h-full"),this.addClassToHost("gui-w-full")}ngOnChanges(){this.safeHTML=this.sanitizer.bypassSecurityTrustHtml(this.element.value)}getSelectorName(){return"gui-html-view"}static \u0275fac=function(n){return new(n||i)(c(In),c(x))};static \u0275cmp=I({type:i,selectors:[["gui-html-view"]],inputs:{element:"element"},features:[C,G],decls:1,vars:1,consts:[[1,"gui-h-full","gui-flex","gui-items-center",3,"innerHTML"]],template:function(n,r){n&1&&b(0,"div",0),n&2&&m("innerHTML",r.safeHTML,sr)},encapsulation:2,changeDetection:0})}return i})(),IA=(()=>{class i{textTemplate;numberTemplate;chipTemplate;linkTemplate;imageTemplate;checkboxTemplate;boldTemplate;italicTemplate;customTemplate;functionTemplate;htmlTemplate;dateTemplate;barTemplate;percentageBarTemplate;percentageTemplate;getTemplate(e){switch(e){case j.TEXT:return this.textTemplate;case j.NUMBER:return this.numberTemplate;case j.CHIP:return this.chipTemplate;case j.LINK:return this.linkTemplate;case j.IMAGE:return this.imageTemplate;case j.CHECKBOX:return this.checkboxTemplate;case j.BOLD:return this.boldTemplate;case j.ITALIC:return this.italicTemplate;case j.CUSTOM:return this.customTemplate;case j.FUNCTION:return this.functionTemplate;case j.HTML:return this.htmlTemplate;case j.DATE:return this.dateTemplate;case j.BAR:return this.barTemplate;case j.PERCENTAGE_BAR:return this.percentageBarTemplate;case j.PERCENTAGE:return this.percentageTemplate;default:return this.textTemplate}}static \u0275fac=function(n){return new(n||i)};static \u0275cmp=I({type:i,selectors:[["ng-component"]],viewQuery:function(n,r){if(n&1&&(X(fM,7,Pe),X(wC,7,Pe),X(bM,7,Pe),X(vM,7,Pe),X(xM,7,Pe),X(CC,7,Pe),X(_M,7,Pe),X(yM,7,Pe),X(wM,7,Pe),X(CM,7,Pe),X(IM,7,Pe),X(IC,7,Pe),X(kM,7,Pe),X(EM,7,Pe),X(SM,7,Pe)),n&2){let o;L(o=z())&&(r.textTemplate=o.first),L(o=z())&&(r.numberTemplate=o.first),L(o=z())&&(r.chipTemplate=o.first),L(o=z())&&(r.linkTemplate=o.first),L(o=z())&&(r.imageTemplate=o.first),L(o=z())&&(r.checkboxTemplate=o.first),L(o=z())&&(r.boldTemplate=o.first),L(o=z())&&(r.italicTemplate=o.first),L(o=z())&&(r.customTemplate=o.first),L(o=z())&&(r.functionTemplate=o.first),L(o=z())&&(r.htmlTemplate=o.first),L(o=z())&&(r.dateTemplate=o.first),L(o=z())&&(r.barTemplate=o.first),L(o=z())&&(r.percentageBarTemplate=o.first),L(o=z())&&(r.percentageTemplate=o.first)}},decls:30,vars:0,consts:[["text",""],["number",""],["chip",""],["link",""],["image",""],["checkbox",""],["bold",""],["italic",""],["custom",""],["function",""],["html",""],["date",""],["bar",""],["percentageBar",""],["percentage",""],[3,"value"],[1,"gui-cell-number"],["gui-button","","link","true",3,"href"],[3,"src"],[1,"gui-cell-boolean"],[3,"checked","disabled"],["bold","",3,"value"],["italic","",3,"value"],[3,"element"],[1,"gui-view-text"],[3,"value","showPercentage"]],template:function(n,r){n&1&&D(0,DM,1,1,"ng-template",null,0,Ee)(2,TM,2,1,"ng-template",null,1,Ee)(4,MM,2,1,"ng-template",null,2,Ee)(6,FM,2,2,"ng-template",null,3,Ee)(8,RM,1,1,"ng-template",null,4,Ee)(10,AM,2,2,"ng-template",null,5,Ee)(12,OM,1,1,"ng-template",null,6,Ee)(14,PM,1,1,"ng-template",null,7,Ee)(16,NM,1,1,"ng-template",null,8,Ee)(18,jM,1,1,"ng-template",null,9,Ee)(20,VM,1,1,"ng-template",null,10,Ee)(22,LM,3,4,"ng-template",null,11,Ee)(24,zM,1,2,"ng-template",null,12,Ee)(26,BM,1,2,"ng-template",null,13,Ee)(28,HM,1,1,"ng-template",null,14,Ee)},dependencies:[Up,Pn,on,_A,yA,LC,wA,CA,ul],encapsulation:2})}return i})(),hu=class{templatesComponentDefinition;componentFactoryResolver;templates=new Map;templatesComponent=null;constructor(t,e){this.templatesComponentDefinition=t,this.componentFactoryResolver=e,this.createTemplatesComponent()}getTemplates(){return this.templates}destroy(){this.templatesComponent&&(this.templatesComponent.destroy(),this.templatesComponent=null)}createTemplatesComponent(){let t=this.componentFactoryResolver.resolveComponentFactory(this.templatesComponentDefinition),e=ve.create({providers:[]});this.templatesComponent=t.create(e),this.generateMap()}generateMap(){this.generateMapKeys().forEach(t=>{this.findAndSetTemplate(t)})}findAndSetTemplate(t){let e=this.templatesComponent.instance.getTemplate(t);this.templates.set(t,e)}},gu=(()=>{class i extends hu{constructor(e){super(IA,e)}static services=[Je];generateMapKeys(){return Object.keys(j).map(e=>j[e])}static \u0275fac=function(n){return new(n||i)(v(Je))};static \u0275prov=k({token:i,factory:i.\u0275fac})}return i})(),mx=(()=>{class i{columnTemplateFactory;constructor(e){this.columnTemplateFactory=e}static services=[gu];findTemplate(e){return this.columnTemplateFactory.getTemplates().get(e)}static \u0275fac=function(n){return new(n||i)(v(gu))};static \u0275prov=k({token:i,factory:i.\u0275fac})}return i})(),bs=function(i){return i[i.SUBMIT=0]="SUBMIT",i[i.BLUR=1]="BLUR",i[i.CANCEL=2]="CANCEL",i}(bs||{}),hx=(()=>{class i extends qe{value;valueChanges;status;focus;parent;ENTER_KEY_CODE=13;ESC_KEY_CODE=27;constructor(e,n){super(e,n)}submit(){this.emitStatus(bs.SUBMIT)}cancel(){this.emitStatus(bs.CANCEL)}emitStatus(e){this.status&&this.status.emit(e)}static \u0275fac=function(n){return new(n||i)(c(B),c(x))};static \u0275dir=N({type:i,inputs:{value:"value",valueChanges:"valueChanges",status:"status",focus:"focus",parent:"parent"},features:[C]})}return i})(),zC=(()=>{class i extends hx{formBuilder;inputRef;filterForm;filterFieldName="phrase";constructor(e,n,r){super(e,n),this.formBuilder=r,this.filterForm=this.formBuilder.group({[this.filterFieldName]:[""]})}ngOnChanges(e){e.value!==void 0&&this.filterForm.get(this.filterFieldName).setValue(this.value)}ngOnInit(){this.observeChanges()}ngAfterViewInit(){let e=this.inputRef.nativeElement;this.focusField(e),this.emitValueChange(e.value),ya(e,"blur").pipe(this.takeUntil()).subscribe(()=>{this.unsubscribe(),this.submit()});let n=ya(e,"keyup");n.pipe(ye(r=>r.keyCode===this.ENTER_KEY_CODE),this.takeUntil()).subscribe(()=>{this.unsubscribe(),this.submit()}),n.pipe(ye(r=>r.keyCode===this.ESC_KEY_CODE),this.takeUntil()).subscribe(()=>{this.unsubscribe(),this.cancel()})}focusField(e){this.focus&&e.focus()}observeChanges(){Mn(this.filterForm.controls[this.filterFieldName].valueChanges).pipe(this.takeUntil()).subscribe(e=>{this.emitValueChange(e)})}emitValueChange(e){this.valueChanges&&this.valueChanges.emit(e)}static \u0275fac=function(n){return new(n||i)(c(B),c(x),c(xi))};static \u0275dir=N({type:i,viewQuery:function(n,r){if(n&1&&X($M,7),n&2){let o;L(o=z())&&(r.inputRef=o.first)}},features:[C,G]})}return i})(),kA=(()=>{class i extends zC{constructor(e,n,r){super(e,n,r)}focusField(e){this.focus&&(e.focus(),e.setSelectionRange(0,e.value.length))}getSelectorName(){return"gui-string-edit"}static \u0275fac=function(n){return new(n||i)(c(B),c(x),c(xi))};static \u0275cmp=I({type:i,selectors:[["gui-string-edit"]],features:[C],decls:3,vars:2,consts:[["input",""],[3,"formGroup"],["type","type",1,"gui-input",3,"formControlName"]],template:function(n,r){n&1&&(h(0,"form",1),b(1,"input",2,0),g()),n&2&&(m("formGroup",r.filterForm),u(),m("formControlName",r.filterFieldName))},dependencies:[Oi,ii,Ri,Ai,$t,vi],encapsulation:2,changeDetection:0})}return i})(),EA=(()=>{class i extends zC{constructor(e,n,r){super(e,n,r)}getSelectorName(){return"gui-number-edit"}static \u0275fac=function(n){return new(n||i)(c(B),c(x),c(xi))};static \u0275cmp=I({type:i,selectors:[["gui-number-edit"]],features:[C],decls:3,vars:2,consts:[["input",""],[3,"formGroup"],["type","number",1,"gui-input",3,"formControlName"]],template:function(n,r){n&1&&(h(0,"form",1),b(1,"input",2,0),g()),n&2&&(m("formGroup",r.filterForm),u(),m("formControlName",r.filterFieldName))},dependencies:[Oi,ii,ka,Ri,Ai,$t,vi],encapsulation:2,changeDetection:0})}return i})(),SA=(()=>{class i extends hx{changeDetectorRef;checkboxRef;filterFieldName="booleanEdit";constructor(e,n){super(e,n),this.changeDetectorRef=e}toggle(e){this.valueChanges.emit(e),this.submit()}getSelectorName(){return"gui-boolean-edit"}static \u0275fac=function(n){return new(n||i)(c(B),c(x))};static \u0275cmp=I({type:i,selectors:[["gui-boolean-edit"]],viewQuery:function(n,r){if(n&1&&X(CC,7,x),n&2){let o;L(o=z())&&(r.checkboxRef=o.first)}},features:[C],decls:3,vars:2,consts:[["checkbox",""],[1,"gui-cell-boolean"],[3,"changed","checked","name"]],template:function(n,r){if(n&1){let o=Z();h(0,"span",1)(1,"gui-checkbox",2,0),F("changed",function(a){return R(o),A(r.toggle(a))}),g()()}n&2&&(u(),m("checked",r.value)("name",r.filterFieldName))},dependencies:[Pn],encapsulation:2,changeDetection:0})}return i})(),DA=(()=>{class i extends hx{changeDetectorRef;datePickerRef;filterFieldName="dateEdit";opened=!1;localStreamCloser=new Ad;constructor(e,n){super(e,n),this.changeDetectorRef=e}ngAfterViewInit(){let e=this.datePickerRef.nativeElement.querySelector(".gui-date-picker-input"),n=ya(e,"keyup");n.pipe(ye(r=>r.keyCode===this.ENTER_KEY_CODE),this.localStreamCloser.takeUntil()).subscribe(()=>{this.localStreamCloser.unsubscribe(),this.submit()}),n.pipe(ye(r=>r.keyCode===this.ESC_KEY_CODE),this.localStreamCloser.takeUntil()).subscribe(()=>{this.localStreamCloser.unsubscribe(),this.cancel()})}ngOnDestroy(){this.localStreamCloser.unsubscribe(),super.ngOnDestroy()}toggle(e){this.valueChanges.emit(e)}dialogOpened(e){this.opened=e,e||(this.localStreamCloser.unsubscribe(),this.submit())}getSelectorName(){return"gui-date-edit"}static \u0275fac=function(n){return new(n||i)(c(B),c(x))};static \u0275cmp=I({type:i,selectors:[["gui-date-edit"]],viewQuery:function(n,r){if(n&1&&X(UM,7,x),n&2){let o;L(o=z())&&(r.datePickerRef=o.first)}},features:[C],decls:2,vars:5,consts:[["datepicker",""],[3,"dialogOpened","dateSelected","selectDate","name","openDialog","onlyDialog","parentElement"]],template:function(n,r){if(n&1){let o=Z();h(0,"gui-date-picker",1,0),F("dialogOpened",function(a){return R(o),A(r.dialogOpened(a))})("dateSelected",function(a){return R(o),A(r.toggle(a))}),g()}n&2&&m("selectDate",r.value)("name",r.filterFieldName)("openDialog",!0)("onlyDialog",!1)("parentElement",r.parent)},dependencies:[sC],encapsulation:2,changeDetection:0})}return i})(),TA=(()=>{class i{stringTemplate;numberTemplate;booleanTemplate;dateTemplate;emptyTemplate;getTemplate(e){switch(e){case $.STRING:return this.stringTemplate;case $.NUMBER:return this.numberTemplate;case $.BOOLEAN:return this.booleanTemplate;case $.DATE:return this.dateTemplate;default:return this.emptyTemplate}}static \u0275fac=function(n){return new(n||i)};static \u0275cmp=I({type:i,selectors:[["ng-component"]],viewQuery:function(n,r){if(n&1&&(X(WM,7,Pe),X(wC,7,Pe),X(GM,7,Pe),X(IC,7,Pe),X(qM,7,Pe)),n&2){let o;L(o=z())&&(r.stringTemplate=o.first),L(o=z())&&(r.numberTemplate=o.first),L(o=z())&&(r.booleanTemplate=o.first),L(o=z())&&(r.dateTemplate=o.first),L(o=z())&&(r.emptyTemplate=o.first)}},decls:10,vars:0,consts:[["string",""],["number",""],["boolean",""],["date",""],["empty",""],[3,"valueChanges","value","status","focus"],[3,"valueChanges","value","status","focus","parent"]],template:function(n,r){n&1&&D(0,YM,1,4,"ng-template",null,0,Ee)(2,QM,1,4,"ng-template",null,1,Ee)(4,KM,1,4,"ng-template",null,2,Ee)(6,ZM,1,5,"ng-template",null,3,Ee)(8,XM,0,0,"ng-template",null,4,Ee)},dependencies:[kA,EA,SA,DA],encapsulation:2})}return i})(),pu=(()=>{class i extends hu{constructor(e){super(TA,e)}static services=[Je];generateMapKeys(){return Object.keys($).map(e=>$[e])}static \u0275fac=function(n){return new(n||i)(v(Je))};static \u0275prov=k({token:i,factory:i.\u0275fac})}return i})(),gx=(()=>{class i{editTemplateFactory;constructor(e){this.editTemplateFactory=e}static services=[pu];findTemplate(e){return this.editTemplateFactory.getTemplates().get(e)}static \u0275fac=function(n){return new(n||i)(v(pu))};static \u0275prov=k({token:i,factory:i.\u0275fac})}return i})(),db=class{groups;showGroups;constructor(t,e){this.groups=t,this.showGroups=e}getGroups(){return this.groups}isVisible(){return this.showGroups}},dc=class i extends Fe{static default=new db([],!1);constructor(){super(i.default)}},MA=(()=>{class i extends ci{compositionDispatcher;compositionGroupRepository;columnHighlightArchive;constructor(e,n,r){super(),this.compositionDispatcher=e,this.compositionGroupRepository=n,this.columnHighlightArchive=r}static services=[rc,dc,cc];create(e){this.compositionDispatcher.create(e)}setColumns(e,n){this.compositionDispatcher.setColumns(n,e)}setGroups(e,n){this.compositionDispatcher.setGroups(n,e)}setWidth(e,n){this.compositionDispatcher.setWidth(n,e)}setContainerWidth(e,n){this.compositionDispatcher.setContainerWidth(n,e)}setResizeWidth(e,n){this.compositionDispatcher.setResizeWidth(n,e)}enableColumn(e,n){this.compositionDispatcher.setColumnEnabled(n,this.toColumnId(e),!0)}disableColumn(e,n){this.compositionDispatcher.setColumnEnabled(n,this.toColumnId(e),!1)}moveLeft(e,n){this.compositionDispatcher.moveLeft(n,this.toColumnId(e))}moveRight(e,n){this.compositionDispatcher.moveRight(n,this.toColumnId(e))}highlightColumn(e,n){this.columnHighlightArchive.toggle(n,new gs(e.getId()))}toColumnId(e){return new gs(e.getId())}}return i})(),FA=(()=>{class i extends At{compositionRepository;compositionGroupArchive;columnHighlightArchive;constructor(e,n,r){super(),this.compositionRepository=e,this.compositionGroupArchive=n,this.columnHighlightArchive=r}static services=[fs,dc,cc];onWidth(e){return this.compositionRepository.on(e).pipe(P(n=>n.getWidth()))}onContainerWidth(e){return this.compositionRepository.on(e).pipe(P(n=>n.getContainerWidth()))}onWidthForEachColumn(e){return this.compositionRepository.on(e).pipe(P(n=>n.getAllColumns().map(r=>r.width)))}onHeaderColumns(e){return this.compositionRepository.on(e).pipe(P(n=>n.getActiveHeaderColumns()))}onAllColumns(e){return this.compositionRepository.on(e).pipe(P(n=>n.getHeaderColumns()))}onSortOrder(e,n){return this.compositionRepository.on(n).pipe(P(r=>r.getActiveHeaderColumns()),P(r=>r.filter(o=>o.getFieldId().equals(e))),ye(r=>r.length>0),P(r=>r[0].getSortStatus()))}onTemplateColumns(e){return this.compositionRepository.on(e).pipe(P(n=>n.getTemplateColumns()))}onResizeWidth(e){return this.compositionRepository.on(e).pipe(P(n=>n.isResizeWidthEnabled()))}onGroups(e){return this.compositionGroupArchive.on(e)}onHighlightedColumn(e,n){return this.columnHighlightArchive.on(n).pipe(P(r=>r.isHighlighted(e)))}findColumnNames(e){let n=[];return this.compositionRepository.find(e).ifPresent(r=>{n=r.getAllColumns().map(o=>o.getName())}),n}}return i})(),ub=class extends Wn{constructor(){super()}onColumnsChanged(t){return this.onEvent(t,us)}onContainerWidthChanged(t){return this.onEvent(t,ms).pipe(P(e=>e.getPayload()),ye(e=>!!e))}},mb=class extends Un{configure(t){if(t!=null&&Array.isArray(t)&&t.length===0)return[];let e=t[0];return Object.keys(e).map((n,r)=>this.toColumnConfig(n,e))}toColumnConfig(t,e){return{field:this.getField(t),header:this.getHeader(t),type:this.getType(t,e)}}getField(t){return t}getHeader(t){return t[0].toUpperCase()+t.slice(1)}getType(t,e){return typeof e[t]=="string"?$.STRING:typeof e[t]=="number"?$.NUMBER:e[t]instanceof Date?$.DATE:typeof e[t]=="boolean"?$.BOOLEAN:$.UNKNOWN}},hb=class{registerProviders(t){t.provide(dx),t.provide(fs,VC),t.provide(du),t.provide(mx),t.provide(gu),t.provide(pu),t.provide(gx),t.provide(ps),t.provide(jC),t.provide(dc),t.provide(ci,MA),t.provide(At,FA),t.provide(Wn,ub),t.provide(Un,mb)}};function RA(){new wt(new hb,new lb).init()}var Bc=(()=>{class i{compositionWarehouse;viewTemplateRepository;editTemplateRepository;constructor(e,n,r){this.compositionWarehouse=e,this.viewTemplateRepository=n,this.editTemplateRepository=r}onHeaderCols(e){return this.compositionWarehouse.onHeaderColumns(e).pipe(P(n=>n.map(r=>{let o;typeof r.getHeader()=="function"?o=this.findViewTemplate(j.FUNCTION):o=this.findViewTemplate(j.HTML);let s=this.findEditTemplate(r.getDataType());return new Bd(o,s,r)})))}onAll(e){return this.compositionWarehouse.onAllColumns(e).pipe(P(n=>n.map(r=>{let o;typeof r.getHeader()=="function"?o=this.findViewTemplate(j.FUNCTION):o=this.findViewTemplate(j.HTML);let s=this.findEditTemplate(r.getDataType());return new Bd(o,s,r)})))}onTemplateCols(e){return this.compositionWarehouse.onTemplateColumns(e).pipe(P(n=>n.map(r=>{let o;r.getCellView()===j.NG_TEMPLATE?o=r.getColumnConfig().templateRef:o=this.findViewTemplate(r.getCellView());let s=this.findEditTemplate(r.getDataType());return new Bf(o,s,r)})))}findViewTemplate(e){return e===j.FUNCTION?this.viewTemplateRepository.findTemplate(j.FUNCTION):this.viewTemplateRepository.findTemplate(e)}findEditTemplate(e){return this.editTemplateRepository.findTemplate(e)}static \u0275fac=function(n){return new(n||i)(v(At),v(mx),v(gx))};static \u0275prov=k({token:i,factory:i.\u0275fac})}return i})(),Zr=class extends Fi{constructor(){super()}},AA=(()=>{class i extends qe{structureSummariesEventRepository;translationService;sourceWarehouse;enabled;state=_(tt);compositionId=_(et);structureId=_(se);formationWarehouse=_(Rt);compositionTemplateWarehouse=_(Bc);headerColumns$=this.compositionTemplateWarehouse.onHeaderCols(this.compositionId);state$=this.state.select();checkboxSelection$=this.selectCheckboxSelection();constructor(e,n,r,o,s){super(e,n),this.structureSummariesEventRepository=r,this.translationService=o,this.sourceWarehouse=s,this.addClassToHost("gui-flex"),this.state.connect("summariesTranslations",this.selectSummariesTranslations()),this.state.connect("sourceEmpty",this.selectSourceEmpty()),this.state.connect("summaries",this.selectSummaries())}isSummariesTypePresent(e){return e!=null}getSelectorName(){return"gui-structure-summaries-panel"}selectCheckboxSelection(){return this.formationWarehouse.onType(this.structureId).pipe(P(e=>e===xt.CHECKBOX))}selectSourceEmpty(){return this.sourceWarehouse.onItemsSize(this.structureId).pipe(P(e=>e===0))}selectSummariesTranslations(){return this.translationService.onTranslation().pipe(P(e=>new zf(e.summariesDistinctValuesTooltip,e.summariesAverageTooltip,e.summariesMinTooltip,e.summariesMaxTooltip,e.summariesMedTooltip,e.summariesCountTooltip)))}selectSummaries(){return this.structureSummariesEventRepository.onSummariesChanged(this.structureId.toReadModelRootId()).pipe(P(e=>e.getSummaries()))}static \u0275fac=function(n){return new(n||i)(c(B),c(x),c(Zr),c(yi),c(Qt))};static \u0275cmp=I({type:i,selectors:[["div","gui-structure-summaries-panel","","enabled",""]],inputs:{enabled:"enabled"},features:[ge([tt]),C],attrs:JM,decls:1,vars:1,consts:[[4,"guiLet"],[4,"ngIf"],["class",`gui-structure-summaries-cell gui-row-checkbox gui-flex gui-justify-between
|
|
gui-overflow-hidden gui-relative gui-py-0 gui-px-6 gui-box-border
|
|
gui-leading-4 gui-whitespace-nowrap gui-overflow-ellipsis`,4,"ngIf"],["class","gui-structure-summaries-cell",3,"width",4,"ngFor","ngForOf"],[1,"gui-structure-summaries-cell","gui-row-checkbox","gui-flex","gui-justify-between","gui-overflow-hidden","gui-relative","gui-py-0","gui-px-6","gui-box-border","gui-leading-4","gui-whitespace-nowrap","gui-overflow-ellipsis"],[1,"gui-structure-summaries-cell"],["class","gui-structure-summaries-value",4,"ngIf"],[1,"gui-structure-summaries-value"],[3,"gui-tooltip"],[1,"gui-summaries-value"]],template:function(n,r){n&1&&D(0,h2,2,1,"ng-container",0),n&2&&m("guiLet",r.state$)},dependencies:[rt,je,bd,It,Kt,Ss],encapsulation:2,changeDetection:0})}return i})(),OA=(()=>{class i extends FC{constructor(e,n){super(e,n)}getSelectorName(){return"gui-info-dialog"}static \u0275fac=function(n){return new(n||i)(c(x),c(B))};static \u0275cmp=I({type:i,selectors:[["div","gui-info-dialog",""]],features:[C],attrs:g2,decls:31,vars:0,consts:[[1,"gui-structure-info-modal","gui-flex","gui-flex-col","gui-p-0","gui-text-lg","gui-w-full"],[1,"gui-text-3xl","gui-mb-8","gui-font-bold"],[1,"gui-text-xl","gui-mb-18","gui-font-bold"],[1,"gui-quote","gui-text-2xl","gui-italic","gui-font-light"],[1,"gui-m-0","gui-px-0","gui-pt-10","gui-pb-6"],[1,"gui-font-bold"],[1,"gui-m-0","gui-pl-9","gui-list-none"],["href","https://generic-ui.com/",1,"gui-mb-6","gui-no-underline","gui-leading-6"],["href","https://generic-ui.com/guide/",1,"gui-mb-6","gui-no-underline","gui-leading-6"],["href","https://github.com/generic-ui/generic-ui/tree/master/ngx-grid",1,"gui-mb-6","gui-no-underline","gui-leading-6"],["href","https://github.com/generic-ui/generic-ui/issues",1,"gui-mb-6","gui-no-underline","gui-leading-6"]],template:function(n,r){n&1&&(h(0,"div",0)(1,"p",1),S(2," Generic UI Grid "),g(),h(3,"p",2),S(4," ver. 0.21.0 "),g(),h(5,"p",3),S(6,' "The best way to success is to help others succeed." '),g(),b(7,"br"),h(8,"section",4)(9,"p",5),S(10,"Links:"),g(),h(11,"ul",6)(12,"li")(13,"a",7),S(14,"Website"),g()(),h(15,"li")(16,"a",8),S(17,"Documentation"),g()(),h(18,"li")(19,"a",9),S(20,"Github"),g()()(),b(21,"br"),h(22,"p",5),S(23,"Feedback:"),g(),h(24,"ul",6)(25,"li")(26,"a",10),S(27,"Report a bug"),g()(),h(28,"li")(29,"a",10),S(30,"Suggest an idea"),g()()()()())},encapsulation:2,changeDetection:0})}return i})(),BC=(()=>{class i extends qe{compositionId;compositionCommandInvoker;compositionTemplateWarehouse;state=_(tt);state$=this.state.select();constructor(e,n,r,o,s){super(e,n),this.compositionId=r,this.compositionCommandInvoker=o,this.compositionTemplateWarehouse=s,this.addClassToHost("gui-block"),this.state.connect("columns",this.selectColumns()),this.state.connect("enabledColumnsCount",this.selectEnabledColumnsCount())}toggleColumn(e){event.stopPropagation(),e.isEnabled()?this.compositionCommandInvoker.disableColumn(e.getColumnDefinitionId(),this.compositionId):this.compositionCommandInvoker.enableColumn(e.getColumnDefinitionId(),this.compositionId)}getSelectorName(){return"gui-structure-column-manager"}selectColumns(){return this.compositionTemplateWarehouse.onAll(this.compositionId)}selectEnabledColumnsCount(){return this.compositionTemplateWarehouse.onAll(this.compositionId).pipe(P(e=>e.map(n=>+n.isEnabled()).reduce((n,r)=>n+r)))}static \u0275fac=function(n){return new(n||i)(c(B),c(x),c(et),c(ci),c(Bc))};static \u0275cmp=I({type:i,selectors:[["div","gui-structure-column-manager",""]],features:[ge([tt]),C],attrs:p2,decls:1,vars:1,consts:[["class","gui-structure-ordered-list gui-p-0 gui-my-4 gui-list-none gui-overflow-auto",4,"guiLet"],[1,"gui-structure-ordered-list","gui-p-0","gui-my-4","gui-list-none","gui-overflow-auto"],["class","gui-px-13 gui-py-6 gui-cursor-pointer",3,"click",4,"ngFor","ngForOf"],[1,"gui-px-13","gui-py-6","gui-cursor-pointer",3,"click"],[3,"checked","disabled"],[4,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(n,r){n&1&&D(0,v2,2,1,"ol",0),n&2&&m("guiLet",r.state$)},dependencies:[rt,_n,Pn,It],encapsulation:2,changeDetection:0})}return i})(),PA=(()=>{class i extends qe{constructor(e,n){super(e,n)}getSelectorName(){return"gui-structure-dialog-column-manager"}static \u0275fac=function(n){return new(n||i)(c(B),c(x))};static \u0275cmp=I({type:i,selectors:[["div","gui-structure-dialog-column-manager",""]],features:[C],attrs:x2,decls:4,vars:3,consts:[[1,"gui-dialog-title"],["gui-structure-column-manager","",1,"-gui-mx-10"]],template:function(n,r){n&1&&(h(0,"div",0),S(1),J(2,"guiTranslate"),g(),b(3,"div",1)),n&2&&(u(),xe(ie(2,1,"columnManagerModalTitle")))},dependencies:[BC,Kt],encapsulation:2,changeDetection:0})}return i})(),Hc=(()=>{class i{convertTheme(e){switch(e){case H.FABRIC:return Ce.FABRIC;case H.MATERIAL:return Ce.MATERIAL;case H.GENERIC:return Ce.GENERIC;case H.LIGHT:return Ce.LIGHT;case H.DARK:return Ce.DARK;default:return Ce.FABRIC}}static \u0275fac=function(n){return new(n||i)};static \u0275prov=k({token:i,factory:i.\u0275fac})}return i})(),HC=(()=>{class i extends vt{injector;schemaWarehouse;structureThemeConverter;fabricDialogService;constructor(e,n,r,o){super(),this.injector=e,this.schemaWarehouse=n,this.structureThemeConverter=r,this.fabricDialogService=o}open(e,n,r){r||(r=this.injector);let o=ve.create({parent:r,providers:[{provide:et,useValue:e}]});this.schemaWarehouse.findTheme(n).ifPresent(s=>{this.fabricDialogService.open({injector:o,component:PA,theme:this.structureThemeConverter.convertTheme(s)})})}static \u0275fac=function(n){return new(n||i)(v(ve),v(Yt),v(Hc),v(Ar))};static \u0275prov=k({token:i,factory:i.\u0275fac})}return i})(),NA=(()=>{class i extends qe{structureId;schemaPublisher;schemaWarehouse=_(Yt);schemaReadModelRootId=_(lt);coloring=this.createColoringOptions();themes=this.createThemeOptions();rowColoring$=this.selectRowColoring();theme$=this.selectTheme();verticalGrid$=this.schemaWarehouse.onVerticalGrid(this.schemaReadModelRootId);horizontalGrid$=this.schemaWarehouse.onHorizontalGrid(this.schemaReadModelRootId);constructor(e,n,r,o){super(e,n),this.structureId=r,this.schemaPublisher=o}toggleTheme(e){this.schemaPublisher.setTheme(this.toTheme(e.value),this.schemaReadModelRootId,this.structureId)}toggleRowColoring(e){this.schemaPublisher.setRowColoring(this.toRowColoring(e.value),this.schemaReadModelRootId)}toggleVerticalGrid(e){event.stopPropagation(),this.schemaPublisher.setVerticalGrid(!e,this.schemaReadModelRootId)}toggleHorizontalGrid(e){event.stopPropagation(),this.schemaPublisher.setHorizontalGrid(!e,this.schemaReadModelRootId)}getSelectorName(){return"gui-structure-schema-manager"}createColoringOptions(){return Object.keys(Ge).map(e=>Ge[e]).filter(e=>!Number.isInteger(e)).map(e=>({value:e,name:e}))}createThemeOptions(){return Object.keys(H).map(e=>H[e]).filter(e=>!Number.isInteger(e)).map(e=>({value:e,name:e}))}selectRowColoring(){return this.schemaWarehouse.onRowColoring(this.schemaReadModelRootId).pipe(P(e=>({value:Ge[e],name:Ge[e]})))}selectTheme(){return this.schemaWarehouse.onTheme(this.schemaReadModelRootId).pipe(P(e=>({value:H[e],name:H[e]})))}toTheme(e){switch(e.toLowerCase()){case"fabric":return H.FABRIC;case"material":return H.MATERIAL;case"generic":return H.GENERIC;case"light":return H.LIGHT;case"dark":return H.DARK;default:return H.FABRIC}}toRowColoring(e){switch(e.toLowerCase()){case"none":return at.NONE;case"odd":return at.ODD;case"even":return at.EVEN;default:return at.NONE}}static \u0275fac=function(n){return new(n||i)(c(B),c(x),c(se),c(Ot))};static \u0275cmp=I({type:i,selectors:[["div","gui-structure-schema-manager",""]],features:[C],attrs:_2,decls:19,vars:21,consts:[[1,"gui-schema-manager","gui-flex","gui-flex-col"],[1,"gui-dialog-title","gui-mb-8"],[1,"gui-structure-schema-manager-select","gui-flex","gui-flex-col"],[1,"gui-mb-4","gui-text-xs"],[3,"optionChanged","options","selected","width"],[1,"gui-structure-ordered-list","gui-mx-10","gui-p-0","gui-my-4","gui-list-none","gui-overflow-auto"],["class","gui-px-13 gui-py-6 gui-cursor-pointer",3,"click",4,"guiLet"],[1,"gui-px-13","gui-py-6","gui-cursor-pointer",3,"click"],[3,"checked"]],template:function(n,r){n&1&&(h(0,"div",0)(1,"div",1),S(2),J(3,"guiTranslate"),g(),h(4,"div",2)(5,"span",3),S(6),J(7,"guiTranslate"),g(),h(8,"gui-select",4),J(9,"guiPush"),F("optionChanged",function(s){return r.toggleTheme(s)}),g()(),h(10,"div",2)(11,"span",3),S(12),J(13,"guiTranslate"),g(),h(14,"gui-select",4),J(15,"guiPush"),F("optionChanged",function(s){return r.toggleRowColoring(s)}),g()(),h(16,"ol",5),D(17,y2,4,4,"li",6)(18,w2,4,4,"li",6),g()()),n&2&&(u(2),xe(ie(3,11,"themeManagerModalTitle")),u(4),xe(ie(7,13,"themeManagerModalTheme")),u(2),m("options",r.themes)("selected",ie(9,15,r.theme$))("width",180),u(4),oe(" ",ie(13,17,"themeManagerModalRowColoring")," "),u(2),m("options",r.coloring)("selected",ie(15,19,r.rowColoring$))("width",180),u(3),m("guiLet",r.verticalGrid$),u(),m("guiLet",r.horizontalGrid$))},dependencies:[Pn,vd,It,Kt,Ss],encapsulation:2,changeDetection:0})}return i})(),jA=(()=>{class i extends gt{constructor(e){super(e)}getSelectorName(){return"gui-schema-manager-dialog"}static \u0275fac=function(n){return new(n||i)(c(x))};static \u0275cmp=I({type:i,selectors:[["div","gui-schema-manager-dialog",""]],features:[C],attrs:C2,decls:1,vars:0,consts:[["gui-structure-schema-manager",""]],template:function(n,r){n&1&&b(0,"div",0)},dependencies:[NA],encapsulation:2,changeDetection:0})}return i})(),$C=(()=>{class i extends vt{injector;fabricDialogService;constructor(e,n){super(),this.injector=e,this.fabricDialogService=n}open(e,n){n||(n=this.injector);let r=ve.create({providers:[{provide:lt,useValue:e}],parent:n});this.fabricDialogService.open({injector:r,component:jA})}static \u0275fac=function(n){return new(n||i)(v(ve),v(Ar))};static \u0275prov=k({token:i,factory:i.\u0275fac})}return i})(),VA=(()=>{class i extends Es{constructor(e,n){super(e,n)}getSelectorName(){return"gui-structure-column-manager-icon"}static \u0275fac=function(n){return new(n||i)(c(x),c(B))};static \u0275cmp=I({type:i,selectors:[["div","gui-structure-column-manager-icon",""]],features:[C],attrs:I2,decls:7,vars:0,consts:[["data-name","Layer 1","xmlns","http://www.w3.org/2000/svg","viewBox","0 0 10.32 10.31"],["x1","9.57","y1","3.65","x2","0.75","y2","3.65",1,"cls-1"],["x1","9.57","y1","0.75","x2","0.75","y2","0.75",1,"cls-2"],["x1","0.75","y1","9.56","x2","0.75","y2","0.88",1,"cls-2"],["x1","3.69","y1","9.65","x2","3.69","y2","3.89",1,"cls-1"],["x1","6.63","y1","9.56","x2","6.63","y2","3.89",1,"cls-1"],["x1","9.57","y1","9.56","x2","9.57","y2","0.88",1,"cls-2"]],template:function(n,r){n&1&&(Ke(),h(0,"svg",0),b(1,"line",1)(2,"line",2)(3,"line",3)(4,"line",4)(5,"line",5)(6,"line",6),g())},encapsulation:2,changeDetection:0})}return i})(),LA=(()=>{class i extends Es{constructor(e,n){super(e,n)}getSelectorName(){return"gui-structure-schema-manager-icon"}static \u0275fac=function(n){return new(n||i)(c(x),c(B))};static \u0275cmp=I({type:i,selectors:[["div","gui-structure-schema-manager-icon",""]],features:[C],attrs:k2,decls:11,vars:0,consts:[["height","24","viewBox","0 0 32 24","width","32","xmlns","http://www.w3.org/2000/svg"],["transform","translate(0 -4)"],["d","M23.337,4H32v6H23.337Z","data-name","Path 303","id","Path_303"],["d","M11.662,4h8.662v6H11.662Z","data-name","Path 304","id","Path_304"],["d","M0,4H8.662v6H0Z","data-name","Path 305","id","Path_305"],["d","M23.337,22H32v6H23.337Z","data-name","Path 306","id","Path_306"],["d","M0,22H8.662v6H0Z","data-name","Path 307","id","Path_307"],["d","M11.662,22h8.662v6H11.662Z","data-name","Path 308","id","Path_308"],["d","M23.337,13H32v6H23.337Z","data-name","Path 309","id","Path_309"],["d","M11.662,13h8.662v6H11.662Z","data-name","Path 310","id","Path_310"],["d","M0,13H8.662v6H0Z","data-name","Path 311","id","Path_311"]],template:function(n,r){n&1&&(Ke(),h(0,"svg",0)(1,"g",1),b(2,"path",2)(3,"path",3)(4,"path",4)(5,"path",5)(6,"path",6)(7,"path",7)(8,"path",8)(9,"path",9)(10,"path",10),g()())},encapsulation:2,changeDetection:0})}return i})(),zA=(()=>{class i extends qe{structureId=_(se);searchCommandDispatcher=_(Gt);searchWarehouse=_(Hi);phrase$=this.searchWarehouse.onPhrase(this.structureId);constructor(e,n){super(e,n)}clearSearch(){event.stopPropagation(),this.searchCommandDispatcher.search("",this.structureId)}getSelectorName(){return"gui-active-search"}static \u0275fac=function(n){return new(n||i)(c(B),c(x))};static \u0275cmp=I({type:i,selectors:[["div","gui-active-search",""]],features:[C],attrs:E2,decls:1,vars:1,consts:[[4,"guiLet"],["gui-button","",3,"click","outline","primary"]],template:function(n,r){n&1&&D(0,S2,9,3,"ng-container",0),n&2&&m("guiLet",r.phrase$)},dependencies:[on,Up,It],encapsulation:2,changeDetection:0})}return i})(),BA=(()=>{class i extends qe{filterCommandDispatcher;structureId=_(se);filterWarehouse=_(Vi);activeFilters$=this.filterWarehouse.onActiveFilters(this.structureId);constructor(e,n,r){super(e,n),this.filterCommandDispatcher=r}removeFilter(e){this.filterCommandDispatcher.remove(e.getFilterId(),this.structureId)}getSelectorName(){return"gui-active-filter-list"}static \u0275fac=function(n){return new(n||i)(c(B),c(x),c(_i))};static \u0275cmp=I({type:i,selectors:[["div","gui-active-filter-list",""]],features:[C],attrs:D2,decls:2,vars:1,consts:[[4,"guiLet"],["gui-active-search",""],[4,"ngFor","ngForOf"],[3,"click"]],template:function(n,r){n&1&&(D(0,M2,2,1,"ng-container",0),b(1,"div",1)),n&2&&m("guiLet",r.activeFilters$)},dependencies:[rt,It,zA],encapsulation:2,changeDetection:0})}return i})(),HA=(()=>{class i{static \u0275fac=function(n){return new(n||i)};static \u0275cmp=I({type:i,selectors:[["ng-component"]],decls:8,vars:3,consts:[["gui-active-filter-list",""],["gui-button","",3,"text"],["gui-button","",3,"outline","primary"]],template:function(n,r){n&1&&(h(0,"h3"),S(1,"Active filters"),g(),b(2,"div",0),h(3,"div")(4,"button",1),S(5," Cancel "),g(),h(6,"button",2),S(7," Clear All "),g()()),n&2&&(u(4),m("text",!0),u(2),m("outline",!0)("primary",!0))},dependencies:[BA,on],encapsulation:2})}return i})(),UC=(()=>{class i extends vt{injector;schemaWarehouse;structureThemeConverter;fabricDialogService;constructor(e,n,r,o){super(),this.injector=e,this.schemaWarehouse=n,this.structureThemeConverter=r,this.fabricDialogService=o}open(e,n){let r=ve.create({parent:this.injector,providers:[{provide:lt,useValue:e},{provide:se,useValue:n}]});this.schemaWarehouse.findTheme(e).ifPresent(o=>{this.fabricDialogService.open({injector:r,component:HA,theme:this.structureThemeConverter.convertTheme(o)})})}static \u0275fac=function(n){return new(n||i)(v(ve),v(Yt),v(Hc),v(Ar))};static \u0275prov=k({token:i,factory:i.\u0275fac})}return i})(),$A=(()=>{class i{el;structureId;activeFilterService;schemaReadModelRootId;constructor(e,n,r,o){this.el=e,this.structureId=n,this.activeFilterService=r,this.schemaReadModelRootId=o}ngOnInit(){}static \u0275fac=function(n){return new(n||i)(c(x),c(se),c(UC),c(lt))};static \u0275dir=N({type:i,selectors:[["","gui-active-filter-menu-trigger",""]]})}return i})(),UA=(()=>{class i extends Es{constructor(e,n){super(e,n)}getSelectorName(){return"gui-structure-info-icon"}static \u0275fac=function(n){return new(n||i)(c(x),c(B))};static \u0275cmp=I({type:i,selectors:[["div","gui-structure-info-icon",""]],features:[C],attrs:F2,decls:3,vars:0,consts:[["data-name","Layer 1","viewBox","0 0 10.08 10.08","xmlns","http://www.w3.org/2000/svg"],["d","M401.64,307.76c0-.28.23-.45.54-.45s.55.17.55.45v0a.49.49,0,0,1-.55.46.48.48,0,0,1-.54-.46Zm.05,1.27a.49.49,0,0,1,1,0v2.54a.49.49,0,0,1-1,0Z","transform","translate(-397.14 -304.64)",1,"cls-1"],["cx","5.04","cy","5.04","r","4.54",1,"cls-2"]],template:function(n,r){n&1&&(Ke(),h(0,"svg",0),b(1,"path",1)(2,"circle",2),g())},encapsulation:2,changeDetection:0})}return i})(),WA=(()=>{class i{transform(e){return e.toString().replace(/\B(?=(\d{3})+(?!\d))/g," ")}static \u0275fac=function(n){return new(n||i)};static \u0275pipe=As({name:"numberFormatter",type:i,pure:!0})}return i})(),GA=(()=>{class i extends qe{injector;dialog;compositionId;schemaReadModelRootId;menuColumnManagerService;translationService;schemaManagerService;structureInfoPanelArchive;state=_(tt);sourceWarehouse=_(Qt);structureId=_(se);state$=this.state.select();totalItemsSize$=this.sourceWarehouse.onOriginSize(this.structureId);infoModal=OA;constructor(e,n,r,o,s,a,l,d,p,w){super(e,n),this.injector=r,this.dialog=o,this.compositionId=s,this.schemaReadModelRootId=a,this.menuColumnManagerService=l,this.translationService=d,this.schemaManagerService=p,this.structureInfoPanelArchive=w,this.state.connect("infoPanelConfig",this.structureInfoPanelArchive.on()),this.state.connect("preparedItemsSize",this.sourceWarehouse.onPreparedItems(this.structureId).pipe(P(E=>E.length))),this.state.connect("translations",this.translationService.onTranslation())}openInfo(){this.dialog.open({component:this.infoModal})}openColumnManager(){this.menuColumnManagerService.open(this.compositionId,this.schemaReadModelRootId,this.injector)}openSchemaManager(){this.schemaManagerService.open(this.schemaReadModelRootId,this.injector)}getSelectorName(){return"gui-structure-info-panel"}static \u0275fac=function(n){return new(n||i)(c(B),c(x),c(ve),c(Ar),c(et),c(lt),c(HC),c(yi),c($C),c($n))};static \u0275cmp=I({type:i,selectors:[["div","gui-structure-info-panel",""]],features:[ge([tt]),C],attrs:R2,decls:1,vars:1,consts:[[4,"guiLet"],[1,"gui-right-section"],[3,"click",4,"ngIf"],[4,"ngIf"],["gui-active-filter-menu-trigger","",4,"ngIf"],["gui-active-filter-menu-trigger",""],[3,"click"],["gui-structure-schema-manager-icon","",3,"gui-tooltip"],["gui-structure-column-manager-icon","",3,"gui-tooltip"],["gui-structure-info-icon","",3,"gui-tooltip"]],template:function(n,r){n&1&&D(0,B2,7,4,"ng-container",0),n&2&&m("guiLet",r.state$)},dependencies:[je,bd,VA,LA,$A,It,UA,WA,Kt],encapsulation:2,changeDetection:0})}return i})(),fu=(()=>{class i{destroy$=new Tt(1);register(e,n,r){return e.pipe(Mt(this.destroy$)).subscribe(o=>n(o),o=>console.log(o),r?()=>r():()=>{})}destroy(){this.destroy$.next(),this.destroy$.complete()}ngOnDestroy(){this.destroy()}static \u0275fac=function(n){return new(n||i)};static \u0275prov=k({token:i,factory:i.\u0275fac})}return i})(),qA=(()=>{class i extends Es{constructor(e,n){super(e,n)}getSelectorName(){return"gui-search-icon"}static \u0275fac=function(n){return new(n||i)(c(x),c(B))};static \u0275cmp=I({type:i,selectors:[["div","gui-search-icon",""]],features:[C],attrs:H2,decls:3,vars:0,consts:[["xmlns","http://www.w3.org/2000/svg","width","10.231","height","10.601","viewBox","0 0 10.231 10.601",1,"gui-search-icon-svg"],["x2","1.77","y2","1.77","transform","translate(7.4 7.77)","fill","none","stroke-linecap","round","stroke-linejoin","round","stroke-width","1.5"],["cx","4.02","cy","4.02","r","4.02","transform","translate(0.5 0.5)","stroke-width","1","stroke-linecap","round","stroke-linejoin","round","fill","none"]],template:function(n,r){n&1&&(Ke(),h(0,"svg",0),b(1,"line",1)(2,"circle",2),g())},encapsulation:2,changeDetection:0})}return i})(),YA=(()=>{class i extends qe{formBuilder;effects;searchCommandDispatcher;static FORM_SEARCH_NAME="searchPhrase";formRef;structureId=_(se);searchWarehouse=_(Hi);searchForm;placeholder$=this.searchWarehouse.onPlaceholder(this.structureId);searchingEnabled$=this.searchWarehouse.onSearchEnabled(this.structureId);searchInputSubscription;constructor(e,n,r,o,s){super(n,r),this.formBuilder=e,this.effects=o,this.searchCommandDispatcher=s;let a={};a[i.FORM_SEARCH_NAME]="",this.searchForm=this.formBuilder.group(a),this.registerOnPhraseEffect()}ngOnInit(){this.registerOnChangesEffect()}clear(){this.searchForm.reset()}getSelectorName(){return"gui-search-bar"}selectPhrase(){let e=this.searchForm.controls[i.FORM_SEARCH_NAME].valueChanges;return Mn(e.pipe(Fs(200)))}registerOnChangesEffect(){this.searchInputSubscription=this.effects.register(this.selectPhrase(),e=>{this.searchCommandDispatcher.search(e,this.structureId)})}registerOnPhraseEffect(){this.effects.register(this.searchWarehouse.onPhrase(this.structureId),e=>{e===void 0&&(e=null);let n={};n[i.FORM_SEARCH_NAME]=e,e!==this.searchForm.get([i.FORM_SEARCH_NAME]).value&&(this.unregisterObserveChangesEffect(),this.searchForm.setValue(n),this.registerOnChangesEffect())})}unregisterObserveChangesEffect(){this.searchInputSubscription.unsubscribe()}static \u0275fac=function(n){return new(n||i)(c(xi),c(B),c(x),c(fu),c(Gt))};static \u0275cmp=I({type:i,selectors:[["div","gui-search-bar",""]],viewQuery:function(n,r){if(n&1&&X($2,5,x),n&2){let o;L(o=z())&&(r.formRef=o.first)}},features:[ge([fu]),C],attrs:U2,decls:1,vars:1,consts:[["formRef",""],[4,"guiIf"],[1,"gui-flex","gui-relative","gui-w-full",3,"formGroup"],["gui-search-icon",""],["formControlName","searchPhrase",1,"gui-border-0","gui-w-full","gui-h-full","gui-py-5","gui-pr-5","gui-pl-21",3,"placeholder"],["class","gui-clear-search-icon",3,"click",4,"ngIf"],[1,"gui-clear-search-icon",3,"click"]],template:function(n,r){n&1&&D(0,G2,7,5,"ng-container",1),n&2&&m("guiIf",r.searchingEnabled$)},dependencies:[je,Oi,ii,Ri,Ai,$t,vi,lx,qA,Ss],styles:[`.gui-search-bar form{background:#fff}.gui-search-bar form:hover .gui-search-icon-svg line,.gui-search-bar form:hover .gui-search-icon-svg circle{stroke:#333}.gui-search-bar .gui-search-icon-svg{height:17px;left:10px;position:absolute;top:6px;width:17px}.gui-search-bar .gui-search-icon-svg line,.gui-search-bar .gui-search-icon-svg circle{stroke:#ccc;transition:stroke .3s ease-in-out}
|
|
`],encapsulation:2,changeDetection:0})}return i})(),QA=(()=>{class i extends gt{constructor(e){super(e),this.addClassToHost("gui-p-6"),this.addClassToHost("gui-border-b"),this.addClassToHost("gui-border-b-solid")}getSelectorName(){return"gui-structure-top-panel"}static \u0275fac=function(n){return new(n||i)(c(x))};static \u0275cmp=I({type:i,selectors:[["div","gui-structure-top-panel",""]],features:[C],attrs:q2,decls:1,vars:0,consts:[["gui-search-bar","",1,"gui-flex","gui-items-center","gui-h-full","gui-w-3/5","gui-mr-auto"]],template:function(n,r){n&1&&b(0,"div",0)},dependencies:[YA],encapsulation:2,changeDetection:0})}return i})(),KA=(()=>{class i extends gt{items;constructor(e){super(e),this.addClassToHost("gui-py-23"),this.addClassToHost("gui-px-6")}ngOnChanges(e){Re(e.items,()=>{this.items.length===0?(this.removeClassFromHost("gui-hidden"),this.addClassToHost("gui-block")):(this.removeClassFromHost("gui-block"),this.addClassToHost("gui-hidden"))})}getSelectorName(){return"gui-empty-source"}static \u0275fac=function(n){return new(n||i)(c(x))};static \u0275cmp=I({type:i,selectors:[["div","gui-empty-source","","items",""]],inputs:{items:"items"},features:[C,G],attrs:Y2,decls:1,vars:1,consts:[[4,"ngIf"]],template:function(n,r){n&1&&D(0,Q2,3,3,"ng-container",0),n&2&&m("ngIf",r.items.length===0)},dependencies:[je,Kt],encapsulation:2,changeDetection:0})}return i})(),un=class{constructor(){}},ZA=(()=>{class i extends gt{constructor(e){super(e)}getSelectorName(){return"gui-structure-menu-column-manager"}static \u0275fac=function(n){return new(n||i)(c(x))};static \u0275cmp=I({type:i,selectors:[["div","gui-structure-menu-column-manager",""]],features:[C],attrs:K2,decls:1,vars:0,consts:[["gui-structure-column-manager",""]],template:function(n,r){n&1&&b(0,"div",0)},dependencies:[BC],encapsulation:2,changeDetection:0})}return i})(),XA=(()=>{class i extends qe{structureId;filterWarehouse;filterCommandInvoker;set fieldId(e){this.state.setValue({fieldId:e})}state=_(tt);state$=this.state.select();constructor(e,n,r,o,s){super(e,n),this.structureId=r,this.filterWarehouse=o,this.filterCommandInvoker=s,this.state.connect("uniqueValues",this.selectUniqueValues()),this.state.connect("selectAllChecked",this.isSelectAllChecked()),this.state.connect("selectAllIndeterminate",this.isSelectAllIndeterminate())}toggleAllSelect(){event.stopPropagation();let e=this.state.getValue("fieldId");this.state.getValue("selectAllChecked")?this.filterCommandInvoker.unselectAllUniqueFilter(e,this.structureId):this.filterCommandInvoker.selectAllUniqueFilter(e,this.structureId)}toggleSelect(e){event.stopPropagation();let n=this.state.getValue("fieldId");e.isEnabled()?this.filterCommandInvoker.unselectUniqueFilter(n,e.getId(),this.structureId):this.filterCommandInvoker.selectUniqueFilter(n,e.getId(),this.structureId)}clearFilters(){let e=this.state.getValue("fieldId");this.filterCommandInvoker.selectAllUniqueFilter(e,this.structureId)}getSelectorName(){return"gui-unique-value-list"}selectUniqueValues(){return this.state.select("fieldId").pipe(Ht(e=>this.filterWarehouse.onUniqueValues(this.structureId).pipe(P(n=>n.getValues(e)))))}isSelectAllChecked(){return this.state.select("fieldId").pipe(Ht(e=>this.filterWarehouse.onUniqueValues(this.structureId).pipe(P(n=>n.isSelectAllChecked(e)))))}isSelectAllIndeterminate(){return this.state.select("fieldId").pipe(Ht(e=>this.filterWarehouse.onUniqueValues(this.structureId).pipe(P(n=>n.isIndeterminate(e)))))}static \u0275fac=function(n){return new(n||i)(c(B),c(x),c(se),c(Vi),c(_i))};static \u0275cmp=I({type:i,selectors:[["div","gui-unique-value-list","","fieldId",""]],inputs:{fieldId:"fieldId"},features:[ge([tt]),C],attrs:Z2,decls:1,vars:1,consts:[[4,"guiLet"],[3,"changed","checked","indeterminate"],[1,"gui-unique-value-list-container","gui-overflow-y-auto","gui-overflow-x-hidden"],[4,"ngFor","ngForOf"],[1,"gui-unique-value-list-actions","gui-px-4","gui-pb-4","gui-pt-2","gui-flex","gui-justify-end"],["gui-button","",1,"gui-clear-unique-filters","gui-px-4","gui-py-2",3,"click","outline","primary"],[3,"changed","checked"]],template:function(n,r){n&1&&D(0,J2,8,5,"ng-container",0),n&2&&m("guiLet",r.state$)},dependencies:[rt,on,Pn,It],styles:[`.gui-unique-value-list-container{max-height:300px}
|
|
`],encapsulation:2,changeDetection:0})}return i})(),Ln=function(i){return i[i.UP=0]="UP",i[i.DOWN=1]="DOWN",i[i.LEFT=2]="LEFT",i[i.RIGHT=3]="RIGHT",i}(Ln||{}),px=(()=>{class i extends Es{position=Ln.UP;sort;styleModifier;constructor(e,n){super(e,n),this.sort&&this.addClassToHost("gui-structure-column-menu-sort-icon"),this.styleModifier=new hh(e.nativeElement)}ngOnChanges(e){Re(e.position,()=>{this.position&&this.styleModifier.getHost().setStyleByName("transform",this.getTransformValue())})}getSelectorName(){return"gui-structure-column-menu-arrow-icon"}getTransformValue(){return"rotate("+this.getRotationDeg()+"deg)"}getRotationDeg(){switch(this.position){case Ln.UP:return 0;case Ln.DOWN:return 180;case Ln.LEFT:return-90;case Ln.RIGHT:return 90;default:return 0}}static \u0275fac=function(n){return new(n||i)(c(x),c(B))};static \u0275cmp=I({type:i,selectors:[["div","gui-structure-arrow-icon",""]],inputs:{position:"position",sort:"sort"},features:[C,G],attrs:eF,decls:4,vars:0,consts:[["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 10.04 11.72"],["x1","5.02","y1","2.15","x2","5.02","y2","10.97",1,"cls-1"],["x1","5.02","y1","0.75","x2","9.29","y2","5.02",1,"cls-1"],["x1","5.02","y1","0.75","x2","0.75","y2","5.02",1,"cls-1"]],template:function(n,r){n&1&&(Ke(),h(0,"svg",0),b(1,"line",1)(2,"line",2)(3,"line",3),g())},encapsulation:2,changeDetection:0})}return i})(),JA=(()=>{class i extends qe{changeDetectorRef;compositionId;structureId;sortingCommandDispatcher;compositionReadModelService;set column(e){this.state.setValue({fieldId:e.getFieldId()})}dropdownTextTranslation;state=_(tt);placement=Mr.Right;status=ct;StructureArrowPosition=Ln;sortOrder$=this.state.select("sortOrder");constructor(e,n,r,o,s,a){super(e,n),this.changeDetectorRef=e,this.compositionId=r,this.structureId=o,this.sortingCommandDispatcher=s,this.compositionReadModelService=a,this.state.connect("sortOrder",this.selectSortOrder())}isAscSort(){return this.state.getValue("sortOrder")===ct.ASC}isDescSort(){return this.state.getValue("sortOrder")===ct.DESC}isNoneSort(){return this.state.getValue("sortOrder")===ct.NONE}setSortOrder(e){event.preventDefault(),event.stopPropagation();let n=this.state.getValue("fieldId");this.sortingCommandDispatcher.setSortOrder(n,e,this.compositionId,this.structureId)}getSelectorName(){return"gui-structure-column-config-sort"}selectSortOrder(){return this.state.select("fieldId").pipe(Ht(e=>this.compositionReadModelService.onSortOrder(e,this.compositionId)))}static \u0275fac=function(n){return new(n||i)(c(B),c(x),c(et),c(se),c(qt),c(At))};static \u0275cmp=I({type:i,selectors:[["div","gui-structure-column-config-sort","","column","","dropdownTextTranslation",""]],inputs:{column:"column",dropdownTextTranslation:"dropdownTextTranslation"},features:[ge([tt]),C],attrs:tF,decls:1,vars:1,consts:[["class","gui-header-menu-dropdown",3,"dropdownText","placement","showOnHover","width",4,"guiLet"],[1,"gui-header-menu-dropdown",3,"dropdownText","placement","showOnHover","width"],[3,"click"],[1,"gui-sort-title"],["gui-structure-arrow-icon","",3,"sort"],["gui-structure-arrow-icon","",3,"position","sort"]],template:function(n,r){n&1&&D(0,iF,14,22,"gui-dropdown",0),n&2&&m("guiLet",r.sortOrder$)},dependencies:[aC,cC,It,px,Kt],encapsulation:2,changeDetection:0})}return i})(),eO=(()=>{class i extends gt{column;columnHidden=new W;constructor(e){super(e)}hideColumn(){this.columnHidden.emit()}getSelectorName(){return"gui-structure-column-config-column-hide"}static \u0275fac=function(n){return new(n||i)(c(x))};static \u0275cmp=I({type:i,selectors:[["div","gui-structure-column-config-column-hide",""]],inputs:{column:"column"},outputs:{columnHidden:"columnHidden"},features:[C],attrs:nF,decls:3,vars:3,consts:[[1,"gui-header-menu-item",3,"click"]],template:function(n,r){n&1&&(h(0,"div",0),F("click",function(){return r.hideColumn()}),S(1),J(2,"guiTranslate"),g()),n&2&&(u(),oe(" ",ie(2,1,"headerMenuMainTabHideColumn"),`
|
|
`))},dependencies:[Kt],encapsulation:2,changeDetection:0})}return i})(),tO=(()=>{class i extends gt{column;movedLeft=new W;movedRight=new W;StructureArrowPosition=Ln;constructor(e){super(e)}moveLeft(){this.movedLeft.emit()}moveRight(){this.movedRight.emit()}getSelectorName(){return"gui-structure-column-config-column-move"}static \u0275fac=function(n){return new(n||i)(c(x))};static \u0275cmp=I({type:i,selectors:[["div","gui-structure-column-config-column-move","","column",""]],inputs:{column:"column"},outputs:{movedLeft:"movedLeft",movedRight:"movedRight"},features:[C],attrs:rF,decls:9,vars:8,consts:[[1,"gui-header-menu-column-move"],[1,"gui-header-menu-column-move-item","left",3,"click"],["gui-structure-arrow-icon","",3,"position"],[1,"gui-header-menu-column-move-item","right",3,"click"]],template:function(n,r){n&1&&(h(0,"div",0)(1,"div",1),F("click",function(){return r.moveLeft()}),b(2,"div",2),S(3),J(4,"guiTranslate"),g(),h(5,"div",3),F("click",function(){return r.moveRight()}),S(6),J(7,"guiTranslate"),b(8,"div",2),g()()),n&2&&(u(2),m("position",r.StructureArrowPosition.LEFT),u(),oe(" ",ie(4,4,"headerMenuMainTabMoveLeft")," "),u(3),oe(" ",ie(7,6,"headerMenuMainTabMoveRight")," "),u(2),m("position",r.StructureArrowPosition.RIGHT))},dependencies:[px,Kt],encapsulation:2,changeDetection:0})}return i})(),iO=(()=>{class i extends qe{translationFacade;structureColumnMenuConfigArchive;compositionId;compositionCommandInvoker;injector;column;headerSortMenu;state=_(tt);state$=this.state.select();structureColumnConfigService;constructor(e,n,r,o,s,a,l,d){super(e,n),this.translationFacade=r,this.structureColumnMenuConfigArchive=o,this.compositionId=s,this.compositionCommandInvoker=a,this.injector=l,this.column=d,this.structureColumnConfigService=this.injector.get(gh),this.state.connect("isEnabled",this.selectIsEnabled()),this.state.connect("config",this.structureColumnMenuConfigArchive.on()),this.state.connect("translations",this.translationFacade.onTranslation())}isEnabled(e){return e.isEnabled()}hideColumn(){this.compositionCommandInvoker.disableColumn(this.column.getColumnDefinitionId(),this.compositionId),this.structureColumnConfigService.close()}moveLeft(){this.compositionCommandInvoker.moveLeft(this.column.getColumnDefinitionId(),this.compositionId),this.structureColumnConfigService.close()}moveRight(){this.compositionCommandInvoker.moveRight(this.column.getColumnDefinitionId(),this.compositionId),this.structureColumnConfigService.close()}highlightColumn(){this.compositionCommandInvoker.highlightColumn(this.column.getColumnDefinitionId(),this.compositionId),this.structureColumnConfigService.close()}getSelectorName(){return"gui-column-config"}selectIsEnabled(){return this.structureColumnMenuConfigArchive.on().pipe(P(e=>e.isEnabled()))}static \u0275fac=function(n){return new(n||i)(c(B),c(x),c(yi),c(qa),c(et),c(ci),c(ve),c("column"))};static \u0275cmp=I({type:i,selectors:[["div","gui-column-config",""]],viewQuery:function(n,r){if(n&1&&X(oF,5,x),n&2){let o;L(o=z())&&(r.headerSortMenu=o.first)}},features:[ge([tt]),C],attrs:sF,decls:1,vars:1,consts:[[4,"guiLet"],["class","gui-header-menu-tab",4,"ngIf"],[1,"gui-header-menu-tab"],[3,"active","menu"],[4,"ngIf"],[1,"gui-tab-item-dropdown",3,"tab"],["gui-structure-column-config-sort","",3,"column","dropdownTextTranslation",4,"ngIf"],["gui-structure-column-config-column-hide","",3,"columnHidden","column"],[1,"gui-header-menu-item",3,"click"],["gui-structure-column-config-column-move","",3,"movedLeft","movedRight","column"],["gui-structure-column-config-sort","",3,"column","dropdownTextTranslation"],[3,"tab"],["gui-unique-value-list","",3,"fieldId"],["gui-structure-menu-column-manager",""]],template:function(n,r){n&1&&D(0,mF,2,1,"ng-container",0),n&2&&m("guiLet",r.state$)},dependencies:[je,mC,hC,It,ZA,XA,JA,eO,tO,Kt],encapsulation:2,changeDetection:0})}return i})(),gh=(()=>{class i extends vt{injector;schemaReadModelRootId;schemaWarehouse;structureThemeConverter;inlineDialogService;constructor(e,n,r,o,s){super(),this.injector=e,this.schemaReadModelRootId=n,this.schemaWarehouse=r,this.structureThemeConverter=o,this.inlineDialogService=s}open(e,n){this.close();let r=ve.create({providers:[{provide:"column",useValue:n}],parent:this.injector});this.schemaWarehouse.onceTheme(this.schemaReadModelRootId).pipe(this.hermesTakeUntil()).subscribe(o=>{this.inlineDialogService.open(e,iO,{injector:r,placement:Ni.BOTTOM,offset:-34,theme:this.structureThemeConverter.convertTheme(o),customClass:"gui-inline-dialog-header-menu"})})}close(){this.inlineDialogService.close()}static \u0275fac=function(n){return new(n||i)(v(ve),v(lt),v(Yt),v(Hc),v(rs))};static \u0275prov=k({token:i,factory:i.\u0275fac})}return i})(),nO=(()=>{class i extends MC{formationPublisher;structureId=_(se);formationWarehouse=_(Rt);selection$=this.formationWarehouse.onCustomSelections(this.structureId);constructor(e,n){super(e),this.formationPublisher=n}selectCustom(e){this.formationPublisher.selectCustom(e,this.structureId)}getSelectorName(){return"gui-select-custom-modal"}static \u0275fac=function(n){return new(n||i)(c(x),c(_t))};static \u0275cmp=I({type:i,selectors:[["div","gui-select-custom-modal",""]],features:[C],attrs:hF,decls:1,vars:1,consts:[[4,"guiLet"],[3,"click",4,"ngFor","ngForOf"],[3,"click"]],template:function(n,r){n&1&&D(0,pF,2,1,"ul",0),n&2&&m("guiLet",r.selection$)},dependencies:[rt,It],styles:[`.gui-select-custom-modal{background:#fff;border:1px solid #d6d6d6;border-radius:0 0 4px 4px}.gui-select-custom-modal ul{list-style:none;margin:0;padding:0}.gui-select-custom-modal ul li{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;background:#fff;border-color:#d6d6d6;box-sizing:border-box;color:#333;cursor:pointer;display:block;font:14px Arial;padding:8px 12px}
|
|
`],encapsulation:2,changeDetection:0})}return i})(),xC=(()=>{class i extends vt{injector;schemaReadModelRootId;schemaWarehouse;structureThemeConverter;inlineDialogService;constructor(e,n,r,o,s){super(),this.injector=e,this.schemaReadModelRootId=n,this.schemaWarehouse=r,this.structureThemeConverter=o,this.inlineDialogService=s}open(e){this.close(),this.schemaWarehouse.findTheme(this.schemaReadModelRootId).ifPresent(n=>{this.inlineDialogService.open(e,nO,{injector:this.injector,placement:Ni.BOTTOM,offset:0,theme:this.structureThemeConverter.convertTheme(n),customClass:"gui-inline-dialog-header-menu"})})}close(){this.inlineDialogService.close()}static \u0275fac=function(n){return new(n||i)(v(ve),v(lt),v(Yt),v(Hc),v(rs))};static \u0275prov=k({token:i,factory:i.\u0275fac})}return i})(),WC=(()=>{class i extends uo{structureId;formationCommandDispatcher;formationWarehouse;state=_(tt);state$=this.state.select();constructor(e,n,r,o){super(e),this.structureId=n,this.formationCommandDispatcher=r,this.formationWarehouse=o,this.state.setValue({modeMulti:!1}),this.state.connect("modeMulti",this.selectModeMulti()),this.state.connect("isAllChecked",this.selectAllChecked()),this.state.connect("isAllIndeterminate",this.selectAllIndeterminate())}toggleSelectAll(e,n){e?this.formationCommandDispatcher.unselectAll(this.structureId):n?this.formationCommandDispatcher.unselectAll(this.structureId):this.formationCommandDispatcher.selectAll(this.structureId)}getSelectorName(){return"gui-select-all"}selectModeMulti(){return this.formationWarehouse.onMode(this.structureId).pipe(P(e=>e===ai.MULTIPLE))}selectAllChecked(){return this.formationWarehouse.onRowSelectedReadModel(this.structureId).pipe(P(e=>e.isAllSelected()))}selectAllIndeterminate(){return this.formationWarehouse.onRowSelectedReadModel(this.structureId).pipe(P(e=>e.isIndeterminate()))}static \u0275fac=function(n){return new(n||i)(c(x),c(se),c(_t),c(Rt))};static \u0275cmp=I({type:i,selectors:[["div","gui-select-all",""]],features:[ge([tt]),C],attrs:fF,decls:1,vars:1,consts:[[4,"guiLet"],[3,"checked","gui-tooltip","indeterminate","changed",4,"ngIf"],[3,"changed","checked","gui-tooltip","indeterminate"]],template:function(n,r){n&1&&D(0,vF,2,1,"ng-container",0),n&2&&m("guiLet",r.state$)},dependencies:[je,It,Pn,bd],encapsulation:2,changeDetection:0})}return i})(),rO=(()=>{class i extends Es{constructor(e,n){super(e,n)}getSelectorName(){return"gui-structure-column-menu-icon"}static \u0275fac=function(n){return new(n||i)(c(x),c(B))};static \u0275cmp=I({type:i,selectors:[["div","gui-structure-menu-icon",""]],features:[C],attrs:xF,decls:4,vars:0,consts:[["data-name","Layer 1","xmlns","http://www.w3.org/2000/svg","viewBox","0 0 10.32 7.46"],["x1","9.57","y1","3.73","x2","0.75","y2","3.73",1,"cls-1"],["x1","9.57","y1","0.75","x2","0.75","y2","0.75",1,"cls-1"],["x1","9.57","y1","6.71","x2","0.75","y2","6.71",1,"cls-1"]],template:function(n,r){n&1&&(Ke(),h(0,"svg",0),b(1,"line",1)(2,"line",2)(3,"line",3),g())},encapsulation:2,changeDetection:0})}return i})(),oO=(()=>{class i extends qe{structureColumnConfigService;headerDialogContainer;column;structureColumnMenuConfigArchive=_(qa);isEnabled$=this.selectIsEnabled();constructor(e,n,r){super(n,e),this.structureColumnConfigService=r}openConfigDialog(){this.structureColumnConfigService.open(this.headerDialogContainer,this.column)}getSelectorName(){return"gui-structure-column-config-trigger"}selectIsEnabled(){return this.structureColumnMenuConfigArchive.on().pipe(P(e=>e.isEnabled()))}static \u0275fac=function(n){return new(n||i)(c(x),c(B),c(gh))};static \u0275cmp=I({type:i,selectors:[["div","gui-structure-column-config-trigger",""]],viewQuery:function(n,r){if(n&1&&X(_F,5,x),n&2){let o;L(o=z())&&(r.headerDialogContainer=o.first)}},inputs:{column:"column"},features:[C],attrs:yF,decls:1,vars:1,consts:[["headerDialogContainer",""],["class","gui-header-menu-icon-wrapper",3,"click",4,"guiIf"],[1,"gui-header-menu-icon-wrapper",3,"click"],["gui-structure-menu-icon","",3,"ngClass"]],template:function(n,r){n&1&&D(0,wF,3,1,"div",1),n&2&&m("guiIf",r.isEnabled$)},dependencies:[Ki,lx,rO],encapsulation:2,changeDetection:0})}return i})(),sO=(()=>{class i extends qe{elementRef;injector;changeDetectorRef;compositionId;structureId;structureSelectCustomService;formationCommandDispatcher;sortingCommandDispatcher;selectCustomContainer;columns;showSelection=!1;showCustom=!0;constructor(e,n,r,o,s,a,l,d){super(r,e),this.elementRef=e,this.injector=n,this.changeDetectorRef=r,this.compositionId=o,this.structureId=s,this.structureSelectCustomService=a,this.formationCommandDispatcher=l,this.sortingCommandDispatcher=d}toggleSort(e){e.isSortEnabled()&&this.sortingCommandDispatcher.toggleSort(e.getFieldId(),this.compositionId,this.structureId)}openConfigDialog(){this.structureSelectCustomService.open(this.selectCustomContainer)}getSelectorName(){return"gui-structure-header-columns"}static \u0275fac=function(n){return new(n||i)(c(x),c(ve),c(B),c(et),c(se),c(xC),c(_t),c(qt))};static \u0275cmp=I({type:i,selectors:[["div","gui-structure-header-columns","","columns",""]],viewQuery:function(n,r){if(n&1&&X(CF,5,x),n&2){let o;L(o=z())&&(r.selectCustomContainer=o.first)}},inputs:{columns:"columns",showSelection:"showSelection"},features:[ge([gh,xC]),C],attrs:IF,decls:2,vars:2,consts:[["class",`gui-header-cell gui-row-checkbox
|
|
gui-flex gui-justify-between
|
|
gui-overflow-hidden gui-relative gui-py-0 gui-px-6 gui-box-border
|
|
gui-leading-4 gui-whitespace-nowrap gui-overflow-ellipsis`,4,"ngIf"],["class",`gui-header-cell gui-flex gui-justify-between
|
|
gui-overflow-hidden gui-relative gui-py-0 gui-px-6 gui-box-border
|
|
gui-leading-4 gui-whitespace-nowrap gui-overflow-ellipsis`,3,"class","ngClass","width","style","click",4,"ngFor","ngForOf"],[1,"gui-header-cell","gui-row-checkbox","gui-flex","gui-justify-between","gui-overflow-hidden","gui-relative","gui-py-0","gui-px-6","gui-box-border","gui-leading-4","gui-whitespace-nowrap","gui-overflow-ellipsis"],["gui-select-all",""],[1,"gui-header-cell","gui-flex","gui-justify-between","gui-overflow-hidden","gui-relative","gui-py-0","gui-px-6","gui-box-border","gui-leading-4","gui-whitespace-nowrap","gui-overflow-ellipsis",3,"click","ngClass"],[1,"gui-header-title"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["class","gui-ml-6","gui-structure-arrow-icon","",3,"position","sort",4,"ngIf"],[1,"gui-header-menu"],["gui-structure-column-config-trigger","",3,"column"],["gui-structure-arrow-icon","",1,"gui-ml-6",3,"position","sort"]],template:function(n,r){n&1&&D(0,EF,2,0,"div",0)(1,TF,6,13,"div",1),n&2&&(m("ngIf",r.showSelection),u(),m("ngForOf",r.columns))},dependencies:[Ki,rt,je,_n,WC,oO,px],encapsulation:2,changeDetection:0})}return i})(),aO=(()=>{class i extends gt{elementRef;injector;changeDetectorRef;compositionId;structureId;formationCommandDispatcher;sortingCommandDispatcher;groups;showGroups;checkboxSelection=!1;globalSearching=!1;constructor(e,n,r,o,s,a,l){super(e),this.elementRef=e,this.injector=n,this.changeDetectorRef=r,this.compositionId=o,this.structureId=s,this.formationCommandDispatcher=a,this.sortingCommandDispatcher=l}toggleSort(e){e.isSortEnabled()&&this.sortingCommandDispatcher.toggleSort(e.getFieldId(),this.compositionId,this.structureId)}isSortAsc(e){return e.getSortStatus()===ct.ASC}isSortDesc(e){return e.getSortStatus()===ct.DESC}isGlobalSortEnabled(){return this.globalSearching}getSelectorName(){return"gui-structure-header-groups"}static \u0275fac=function(n){return new(n||i)(c(x),c(ve),c(B),c(et),c(se),c(_t),c(qt))};static \u0275cmp=I({type:i,selectors:[["div","gui-structure-header-groups","","groups","","checkboxSelection",""]],inputs:{groups:"groups",showGroups:"showGroups",checkboxSelection:"checkboxSelection"},features:[ge([gh]),C],attrs:MF,decls:2,vars:2,consts:[["class",`gui-header-cell gui-row-checkbox gui-flex gui-justify-between
|
|
gui-overflow-hidden gui-relative gui-py-0 gui-px-6 gui-box-border
|
|
gui-leading-4 gui-whitespace-nowrap gui-overflow-ellipsis`,4,"ngIf"],["class",`gui-header-cell gui-flex gui-justify-between
|
|
gui-overflow-hidden gui-relative gui-py-0 gui-px-6 gui-box-border
|
|
gui-leading-4 gui-whitespace-nowrap gui-overflow-ellipsis`,3,"width",4,"ngFor","ngForOf"],[1,"gui-header-cell","gui-row-checkbox","gui-flex","gui-justify-between","gui-overflow-hidden","gui-relative","gui-py-0","gui-px-6","gui-box-border","gui-leading-4","gui-whitespace-nowrap","gui-overflow-ellipsis"],["gui-select-all",""],[1,"gui-header-cell","gui-flex","gui-justify-between","gui-overflow-hidden","gui-relative","gui-py-0","gui-px-6","gui-box-border","gui-leading-4","gui-whitespace-nowrap","gui-overflow-ellipsis"],[1,"gui-header-title"]],template:function(n,r){n&1&&D(0,FF,2,0,"div",0)(1,RF,3,3,"div",1),n&2&&(m("ngIf",r.checkboxSelection),u(),m("ngForOf",r.groups))},dependencies:[rt,je,WC],encapsulation:2,changeDetection:0})}return i})(),cO=(()=>{class i extends gt{structureFilterCommandService;formBuilder;cd;effects;structureId;columns;closed=new W;filterFieldName="phrase";filterForm;filterMode=!1;constructor(e,n,r,o,s,a){super(s),this.structureFilterCommandService=e,this.formBuilder=n,this.cd=r,this.effects=o,this.structureId=a,this.filterForm=this.formBuilder.group({[this.filterFieldName]:[""]})}ngOnInit(){this.effects.register(this.selectFilterFormChanges(),e=>{this.filter(e[this.filterFieldName])})}filter(e){e==null&&(e="")}clearFilters(){this.filterForm.reset()}turnOnFilterMode(){this.filterMode=!0,this.cd.detectChanges()}turnOffFilterMode(){this.filterMode=!1,this.cd.detectChanges()}getSelectorName(){return""}selectFilterFormChanges(){return Mn(this.filterForm.valueChanges)}static \u0275fac=function(n){return new(n||i)(c(_i),c(xi),c(B),c(fu),c(x),c(se))};static \u0275cmp=I({type:i,selectors:[["div","gui-structure-header-filters","","columns",""]],inputs:{columns:"columns"},outputs:{closed:"closed"},features:[ge([fu]),C],attrs:AF,decls:2,vars:2,consts:[[4,"ngIf"],["class",`gui-header-cell gui-flex gui-justify-between
|
|
gui-overflow-hidden gui-relative gui-py-0 gui-px-6 gui-box-border
|
|
gui-leading-4 gui-whitespace-nowrap gui-overflow-ellipsis`,3,"width",4,"ngFor","ngForOf"],[1,"gui-header-cell","gui-flex","gui-justify-between","gui-overflow-hidden","gui-relative","gui-py-0","gui-px-6","gui-box-border","gui-leading-4","gui-whitespace-nowrap","gui-overflow-ellipsis"],[3,"click"],[3,"options","selected"],[3,"formGroup"],["type","text","gui-input","",3,"formControlName"],["gui-button","",3,"click"]],template:function(n,r){n&1&&D(0,NF,2,1,"ng-container",0)(1,jF,8,5,"ng-container",0),n&2&&(m("ngIf",!r.filterMode),u(),m("ngIf",r.filterMode))},dependencies:[rt,je,Oi,ii,Ri,Ai,$t,vi,on,vd,pd],encapsulation:2,changeDetection:0})}return i})(),GC=(()=>{class i extends uo{filterWarehouse;formationWarehouse;compositionTemplateWarehouse;state=_(tt);compositionWarehouse=_(At);structureId=_(se);compositionId=_(et);verticalFormationWarehouse=_(un);state$=this.state.select();width$=this.compositionWarehouse.onContainerWidth(this.compositionId).pipe(P(e=>({width:e})));filterHeaderHeight$=this.verticalFormationWarehouse.onRowHeight(this.structureId).pipe(P(e=>({height:+e+2})));constructor(e,n,r,o){super(e),this.filterWarehouse=n,this.formationWarehouse=r,this.compositionTemplateWarehouse=o,this.state.setValue({headerColumns:[],filterRowEnabled:!1,showGroups:!1}),this.state.connect("showSelection",this.selectShowSelection()),this.state.connect("headerColumns",this.compositionTemplateWarehouse.onHeaderCols(this.compositionId)),this.state.connect("filterRowEnabled",this.filterWarehouse.onFilteringEnabled(this.structureId)),this.state.connect("showGroups",this.selectShowGroups()),this.state.connect("groups",this.selectGroups())}getSelectorName(){return"gui-structure-header"}selectGroups(){return this.compositionWarehouse.onGroups(this.compositionId).pipe(P(e=>e.getGroups()))}selectShowGroups(){return this.compositionWarehouse.onGroups(this.compositionId).pipe(P(e=>e.isVisible()))}selectShowSelection(){return this.formationWarehouse.onType(this.structureId).pipe(P(e=>e===xt.CHECKBOX||e===xt.RADIO))}static \u0275fac=function(n){return new(n||i)(c(x),c(Vi),c(Rt),c(Bc))};static \u0275cmp=I({type:i,selectors:[["div","gui-structure-header",""]],features:[ge([tt]),C],attrs:VF,decls:3,vars:3,consts:[[4,"guiLet"],["class","gui-header","gui-structure-header-columns","",3,"columns","guiStyle","showSelection",4,"guiLet"],["class","gui-header","gui-structure-header-groups","",3,"checkboxSelection","groups",4,"ngIf"],["gui-structure-header-groups","",1,"gui-header",3,"checkboxSelection","groups"],["gui-structure-header-columns","",1,"gui-header",3,"columns","guiStyle","showSelection"],["class","gui-header","gui-structure-header-filters","",3,"columns","guiStyle",4,"ngIf"],["gui-structure-header-filters","",1,"gui-header",3,"columns","guiStyle"]],template:function(n,r){n&1&&D(0,zF,2,1,"ng-container",0)(1,BF,1,3,"div",1)(2,$F,2,1,"ng-container",0),n&2&&(m("guiLet",r.state$),u(),m("guiLet",r.state$),u(),m("guiLet",r.state$))},dependencies:[je,It,eA,sO,aO,cO],encapsulation:2,changeDetection:0})}return i})(),qC=(()=>{class i{platformId;constructor(e){this.platformId=e}on(e){return St(this.platformId)?Mn(new gi(n=>{let r=new ResizeObserver(o=>{o&&o.length>0&&n.next(o[0].contentRect)});return r.observe(e),()=>r.disconnect()}).pipe(v_(25))):vp()}destroy(e){}static \u0275fac=function(n){return new(n||i)(v(Ue))};static \u0275prov=k({token:i,factory:i.\u0275fac})}return i})(),Ut=function(i){return i[i.NONE=0]="NONE",i[i.ADD=1]="ADD",i[i.RANGE=2]="RANGE",i}(Ut||{}),vs=class{subject$=new Tt(1);constructor(){}emit(t){this.subject$.next(t)}on(){return this.subject$.toObservable()}},uc=class{itemId;columnFieldId;value;constructor(t,e,n){this.itemId=t,this.columnFieldId=e,this.value=n}getItemId(){return this.itemId}getColumnFieldId(){return this.columnFieldId}getValue(){return this.value}},lO=(()=>{class i extends qe{changeDetectorRef;structureId;sourceCommandService;cellContainerRef;entity;cell;editContext;valueChanges$;status$;actualValue;constructor(e,n,r,o){super(e,n),this.changeDetectorRef=e,this.structureId=r,this.sourceCommandService=o}ngOnChanges(e){Re(e.entity,()=>{this.initEditContext()}),Re(e.cell,()=>{this.initEditContext()})}ngOnInit(){this.initEditContext()}getSelectorName(){return"gui-structure-cell-edit-boolean"}submitChanges(){let e=this.entity.getId(),n=this.actualValue,r=this.cell.columnFieldId;this.sourceCommandService.editItem(new uc(e,r,n),this.structureId)}initEditContext(){this.valueChanges$=new vs,this.status$=new vs,this.editContext={status:this.status$,valueChanges:this.valueChanges$,value:this.cell.getValue(this.entity).value,focus:!1,parent:this.cellContainerRef},this.observeValueChanges(),this.status$.on().pipe(this.takeUntil()).subscribe(e=>{switch(e){case bs.SUBMIT:this.submitChanges();break;default:break}})}observeValueChanges(){this.valueChanges$.on().pipe(this.takeUntil()).subscribe(e=>{this.actualValue=e})}static \u0275fac=function(n){return new(n||i)(c(B),c(x),c(se),c(Wt))};static \u0275cmp=I({type:i,selectors:[["div","gui-structure-cell-edit-boolean","","entity","","cell",""]],viewQuery:function(n,r){if(n&1&&X(UF,7),n&2){let o;L(o=z())&&(r.cellContainerRef=o.first)}},inputs:{entity:"entity",cell:"cell"},features:[C,G],attrs:WF,decls:3,vars:2,consts:[["cellContainer",""],[4,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(n,r){n&1&&(h(0,"span",null,0),D(2,GF,1,0,"ng-container",1),g()),n&2&&(u(2),m("ngTemplateOutlet",r.cell.editTemplate)("ngTemplateOutletContext",r.editContext))},dependencies:[_n],encapsulation:2,changeDetection:0})}return i})(),dO=(()=>{class i extends qe{changeDetectorRef;elementRef;structureId;compositionId;structureCellEditStore;cellEditCloseAllService;sourceCommandService;compositionWarehouse;entity;cell;editMode;cellEditorManager;searchPhrase;rowIndex;columnIndex;inEditMode=!1;editContext;valueChanges$;status$;actualValue;isHighlighted;constructor(e,n,r,o,s,a,l,d){super(e,n),this.changeDetectorRef=e,this.elementRef=n,this.structureId=r,this.compositionId=o,this.structureCellEditStore=s,this.cellEditCloseAllService=a,this.sourceCommandService=l,this.compositionWarehouse=d}ngOnInit(){this.subscribe(this.compositionWarehouse.onHighlightedColumn(new gs(this.cell.columnDefinitionId.toString()),this.compositionId),e=>{this.isHighlighted=e})}ngAfterViewInit(){super.ngAfterViewInit(),this.subscribeWithoutRender(this.cellEditCloseAllService.onCloseAll(),()=>{this.exitEditMode()})}isCellEditingEnabled(){return this.cellEditorManager.isEnabled(this.cell.getValue(this.entity),this.entity.getSourceItem(),this.rowIndex)&&this.cell.isCellEditingEnabled()}enterEditMode(e=!0){this.isCellEditingEnabled()&&(this.cellEditCloseAllService.closeAll(),_p(0).pipe(this.takeUntil()).subscribe(()=>{this.inEditMode=!0,this.valueChanges$=new vs,this.status$=new vs,this.editContext={status:this.status$,valueChanges:this.valueChanges$,value:this.cell.getValue(this.entity).value,focus:e,parent:this.elementRef},this.observeFieldStatus(),this.observeValueChanges(),this.publishEditEnter(),e?this.changeDetectorRef.detectChanges():this.changeDetectorRef.markForCheck()}))}exitEditMode(){this.inEditMode=!1,this.changeDetectorRef.detectChanges()}submitChangesAndExit(){let e=this.entity.getId(),n=this.actualValue,r=this.cell.columnFieldId;this.sourceCommandService.editItem(new uc(e,r,n),this.structureId),this.exitEditMode()}getSelectorName(){return"gui-structure-cell"}observeFieldStatus(){this.status$.on().pipe(this.takeUntil()).subscribe(e=>{switch(e){case bs.SUBMIT:this.submitChangesAndExit(),this.publishEditSubmit();break;case bs.CANCEL:this.exitEditMode(),this.publishEditCancel();break;default:break}})}observeValueChanges(){this.valueChanges$.on().pipe(this.takeUntil()).subscribe(e=>{this.actualValue=e})}publishEditState(e){this.structureCellEditStore.next(e)}publishEditEnter(){this.publishEditState(zr.ENTER)}publishEditCancel(){this.publishEditState(zr.CANCEL)}publishEditSubmit(){this.publishEditState(zr.SUBMIT)}static \u0275fac=function(n){return new(n||i)(c(B),c(x),c(se),c(et),c(Ed),c(SC),c(Wt),c(At))};static \u0275cmp=I({type:i,selectors:[["div","gui-structure-cell","","entity","","cell",""]],inputs:{entity:"entity",cell:"cell",editMode:"editMode",cellEditorManager:"cellEditorManager",searchPhrase:"searchPhrase",rowIndex:"rowIndex",columnIndex:"columnIndex"},features:[C],attrs:qF,decls:2,vars:2,consts:[[4,"ngIf"],[3,"ngClass","click",4,"ngIf"],["class","gui-cell-edit-mode",4,"ngIf"],[3,"click","ngClass"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"gui-cell-edit-mode"],["gui-structure-cell-edit-boolean","",3,"cell","entity"]],template:function(n,r){n&1&&D(0,eR,3,2,"ng-container",0)(1,tR,2,2,"ng-container",0),n&2&&(m("ngIf",!r.cell.isBooleanDataType()||r.cell.isBooleanDataType()&&!r.isCellEditingEnabled()),u(),m("ngIf",r.cell.isBooleanDataType()&&r.isCellEditingEnabled()))},dependencies:[Ki,je,_n,lO],encapsulation:2,changeDetection:0})}return i})(),YC=(()=>{class i extends qe{changeDetectorRef;elRef;structureId;formationWarehouse;formationCommandDispatcher;cssClassModifier;entity;columns;editMode;cellEditing;searchPhrase;index;rowStyle;rowClass;checkboxSelection=!1;radioSelection=!1;selectedItem=!1;row;styleModifier;classModifier;constructor(e,n,r,o,s,a){super(e,n),this.changeDetectorRef=e,this.elRef=n,this.structureId=r,this.formationWarehouse=o,this.formationCommandDispatcher=s,this.cssClassModifier=a,this.styleModifier=new hh(this.elRef.nativeElement),this.classModifier=new zc(this.elRef.nativeElement)}ngOnChanges(e){Re(e.entity,()=>{this.checkSelectedItem(),this.updateRowClass(e.entity.previousValue),this.updateRowStyle(e.entity.previousValue)}),Re(e.rowClass,()=>{this.updateRowClass()}),Re(e.rowStyle,()=>{this.updateRowStyle()})}ngOnInit(){this.subscribeWithoutRender(this.formationWarehouse.onRowSelectedReadModel(this.structureId),e=>{this.row=e;let n=this.selectedItem;this.checkSelectedItem(),n!==this.selectedItem&&(n?this.cssClassModifier.unselect(this.elRef.nativeElement):this.cssClassModifier.select(this.elRef.nativeElement),this.changeDetectorRef.detectChanges())})}ngAfterViewInit(){super.ngAfterViewInit(),this.updateRowClass(),this.updateRowStyle()}trackByFn(){return 0}selectCheckbox(){event.stopPropagation(),this.formationCommandDispatcher.toggleSelectedRow(this.entity.getId(),Ut.ADD,this.structureId)}selectRadio(){event.stopPropagation(),this.formationCommandDispatcher.toggleSelectedRow(this.entity.getId(),Ut.NONE,this.structureId)}checkSelectedItem(){if(this.row){let e=this.selectedItem;this.selectedItem=this.row.isSelected(this.entity.getId()),e!==this.selectedItem&&(e?this.cssClassModifier.unselect(this.elRef.nativeElement):this.cssClassModifier.select(this.elRef.nativeElement))}}getSelectorName(){return"gui-structure-row"}calculateRowStyle(e){return this.rowStyle?typeof this.rowStyle.style=="string"?this.rowStyle.style||"":typeof this.rowStyle.styleFunction=="function"?this.rowStyle.styleFunction(e.getSourceItem(),e.getPosition()):"":""}updateRowStyle(e){if(e){let r=this.calculateRowStyle(e);this.removeRowStyles(r)}let n=this.calculateRowStyle(this.entity);this.renderRowStyles(n)}removeRowStyles(e){if(!e)return;let n=e.split(";");for(let r=0;r<n.length;r+=1){let o=n[r].split(":");o[0]&&o[1]&&this.styleModifier.getHost().removeStyleByName(o[0].trim())}}renderRowStyles(e){if(!e)return;let n=e.split(";");for(let r=0;r<n.length;r+=1){let o=n[r].split(":");o[0]&&o[1]&&this.styleModifier.getHost().setStyleByName(o[0].trim(),o[1].trim())}}updateRowClass(e){if(e){let r=this.calculateRowClass(e);r&&this.classModifier.getHost().remove(r)}let n=this.calculateRowClass(this.entity);n&&this.classModifier.getHost().add(n)}calculateRowClass(e){if(!this.rowClass)return"";let n;return typeof this.rowClass.class=="string"&&(n=this.rowClass.class||""),typeof this.rowClass.classFunction=="function"&&e&&(n=this.rowClass.classFunction(e.getSourceItem(),e.getPosition())||""),n}static \u0275fac=function(n){return new(n||i)(c(B),c(x),c(se),c(Rt),c(_t),c(Wr))};static \u0275cmp=I({type:i,selectors:[["div","gui-structure-row",""]],inputs:{entity:"entity",columns:"columns",editMode:"editMode",cellEditing:"cellEditing",searchPhrase:"searchPhrase",index:"index",rowStyle:"rowStyle",rowClass:"rowClass",checkboxSelection:"checkboxSelection",radioSelection:"radioSelection"},features:[C,G],attrs:iR,decls:3,vars:4,consts:[["class","gui-cell gui-row-checkbox",4,"ngIf"],["class","gui-cell gui-row-radio",4,"ngIf"],["class","gui-cell","gui-structure-cell","",3,"cellEditorManager","cell","columnIndex","editMode","entity","rowIndex","searchPhrase","width",4,"ngFor","ngForOf","ngForTrackBy"],[1,"gui-cell","gui-row-checkbox"],[3,"changed","checked"],[1,"gui-cell","gui-row-radio"],["gui-structure-cell","",1,"gui-cell",3,"cellEditorManager","cell","columnIndex","editMode","entity","rowIndex","searchPhrase"]],template:function(n,r){n&1&&D(0,nR,2,1,"div",0)(1,rR,2,1,"div",1)(2,oR,1,9,"div",2),n&2&&(m("ngIf",r.checkboxSelection),u(),m("ngIf",r.radioSelection),u(),m("ngForOf",r.columns)("ngForTrackBy",r.trackByFn))},dependencies:[rt,je,Pn,lC,dO],encapsulation:2,changeDetection:0})}return i})(),QC=(()=>{class i extends qe{formationPublisher;structureEditModeArchive;formationWarehouse;structureWarehouse;verticalFormationWarehouse;structureId;schemaReadModelRootId;searchWarehouse;schemaWarehouse;source;columns;state=_(tt);state$=this.state.select();constructor(e,n,r,o,s,a,l,d,p,w,E){super(n,e),this.formationPublisher=r,this.structureEditModeArchive=o,this.formationWarehouse=s,this.structureWarehouse=a,this.verticalFormationWarehouse=l,this.structureId=d,this.schemaReadModelRootId=p,this.searchWarehouse=w,this.schemaWarehouse=E,this.state.setValue({checkboxSelection:!1,radioSelection:!1,searchPhrase:""}),this.state.connect("editMode",this.structureEditModeArchive.on()),this.state.connect("selectionEnabled",this.formationWarehouse.onSelectionEnabled(this.structureId)),this.state.connect("rowHeight",this.verticalFormationWarehouse.onRowHeight(this.structureId)),this.state.connect("cellEditing",this.structureWarehouse.onEditManager(this.structureId)),this.state.connect("schemaRowClass",this.schemaWarehouse.onRowClass(this.schemaReadModelRootId)),this.state.connect("schemaRowStyle",this.schemaWarehouse.onRowStyle(this.schemaReadModelRootId)),this.state.connect("checkboxSelection",this.selectCheckboxSelection()),this.state.connect("radioSelection",this.selectRadioSelection()),this.state.connect("searchPhrase",this.selectSearchPhrase())}trackByFn(){return 0}translateY(e,n){return`translateY(${e*n}px)`}toggleSelectedRow(e,n,r,o){n&&!r&&!o&&this.formationPublisher.toggleSelectedRow(e.getId(),Ut.NONE,this.structureId)}getSelectorName(){return"gui-structure-content"}selectCheckboxSelection(){return this.formationWarehouse.onType(this.structureId).pipe(P(e=>e===xt.CHECKBOX))}selectRadioSelection(){return this.formationWarehouse.onType(this.structureId).pipe(P(e=>e===xt.RADIO))}selectSearchPhrase(){return Mn(gn(Ji(this.searchWarehouse.onPhrase(this.structureId)),Ji(this.searchWarehouse.onHighlight(this.structureId)))).pipe(P(([e,n])=>n?e:""))}static \u0275fac=function(n){return new(n||i)(c(x),c(B),c(_t),c(Sd),c(Rt),c(mo),c(un),c(se),c(lt),c(Hi),c(Yt))};static \u0275cmp=I({type:i,selectors:[["div","gui-structure-content",""]],inputs:{source:"source",columns:"columns"},features:[ge([tt]),C],attrs:sR,decls:1,vars:1,consts:[["class","gui-content",4,"guiLet"],[1,"gui-content"],["class","gui-row","gui-structure-row","",3,"cellEditing","checkboxSelection","columns","editMode","entity","id","index","ngClass","ngStyle","radioSelection","rowClass","rowStyle","searchPhrase","height","click",4,"ngFor","ngForOf","ngForTrackBy"],["gui-structure-row","",1,"gui-row",3,"click","cellEditing","checkboxSelection","columns","editMode","entity","id","index","ngClass","ngStyle","radioSelection","rowClass","rowStyle","searchPhrase"]],template:function(n,r){n&1&&D(0,dR,2,2,"div",0),n&2&&m("guiLet",r.state$)},dependencies:[Ki,rt,G_,It,YC],encapsulation:2,changeDetection:0})}return i})(),KC=(()=>{class i extends qe{elRef;ngZone;structureId;compositionId;structureCommandService;structureWarehouse;verticalFormationWarehouse;sourceWarehouse;compositionCommandInvoker;compositionWarehouse;compositionTemplateWarehouse;formationWarehouse;resizeDetector;structureInitialValuesReadyArchive;structureParent;sourceCollectionRef;columns=[];source=[];height;rowColoring;autoResizeWidthEnabled=!1;scrollObservation$=new Ze;styleModifier;constructor(e,n,r,o,s,a,l,d,p,w,E,Q,ne,ce,O,Y){super(e,n),this.elRef=n,this.ngZone=r,this.structureId=o,this.compositionId=s,this.structureCommandService=a,this.structureWarehouse=l,this.verticalFormationWarehouse=d,this.sourceWarehouse=p,this.compositionCommandInvoker=w,this.compositionWarehouse=E,this.compositionTemplateWarehouse=Q,this.formationWarehouse=ne,this.resizeDetector=ce,this.structureInitialValuesReadyArchive=O,this.structureParent=Y,this.styleModifier=new hh(this.elRef.nativeElement)}ngOnInit(){this.subscribeWithoutRender(this.verticalFormationWarehouse.onContainerHeight(this.structureId),e=>{this.setContainerHeight(e)}),this.subscribe(Mn(Ji(this.structureInitialValuesReadyArchive.once(this.structureId)).pipe(g_(()=>gn(Ji(this.sourceWarehouse.onItems(this.structureId)),Ji(this.compositionTemplateWarehouse.onTemplateCols(this.compositionId)))))),e=>{this.source=e[0],this.columns=e[1]}),this.subscribeWithoutRender(this.compositionWarehouse.onResizeWidth(this.compositionId),e=>{this.autoResizeWidthEnabled=e})}ngAfterViewInit(){super.ngAfterViewInit(),this.structureParent&&this.subscribeWithoutRender(this.resizeDetector.on(this.structureParent.getElementRef().nativeElement).pipe(ye(()=>this.autoResizeWidthEnabled),P(e=>e.width),ti()),e=>{this.recalculateContainer(e)}),this.subscribeWithoutRender(this.compositionWarehouse.onContainerWidth(this.compositionId),e=>{this.styleModifier.getElement(this.sourceCollectionRef.nativeElement).setWidth(e)}),this.subscribeWithoutRender(this.verticalFormationWarehouse.onEnabled(this.structureId),e=>{e?this.enableScrollObservation():this.disableScrollObservation()}),this.subscribeWithoutRender(this.structureWarehouse.on(this.structureId).pipe(ye(e=>e.isVerticalScrollEnabled())),e=>{let n=e.getTopMargin(),r=e.getSourceHeight();this.setSourceHeight(n,r)}),this.subscribeWithoutRender(this.verticalFormationWarehouse.onScrollBarPosition(this.structureId),e=>{this.elRef.nativeElement.scrollTop=e})}ngOnDestroy(){super.ngOnDestroy(),this.resizeDetector.destroy(this.elRef.nativeElement)}getSelectorName(){return"gui-structure-container"}setContainerHeight(e){this.height=e,this.styleModifier.getHost().setHeight(e)}setSourceHeight(e,n){this.styleModifier.getElement(this.sourceCollectionRef.nativeElement).setPaddingTop(e),this.styleModifier.getElement(this.sourceCollectionRef.nativeElement).setHeight(n)}recalculateContainer(e){this.autoResizeWidthEnabled&&this.compositionCommandInvoker.setContainerWidth(e,this.compositionId)}enableScrollObservation(){this.ngZone.runOutsideAngular(()=>{ya(this.elRef.nativeElement,"scroll").pipe(Mt(this.scrollObservation$)).subscribe(e=>{let n=e.target.scrollTop;this.structureCommandService.setScrollPosition(n,this.structureId)})})}disableScrollObservation(){this.scrollObservation$.next(),this.scrollObservation$.complete()}static \u0275fac=function(n){return new(n||i)(c(B),c(x),c(de),c(se),c(et),c(Pt),c(mo),c(un),c(Qt),c(ci),c(At),c(Bc),c(Rt),c(qC),c(ks),c(kC,8))};static \u0275cmp=I({type:i,selectors:[["div","gui-structure-container",""]],viewQuery:function(n,r){if(n&1&&X(uR,5,x),n&2){let o;L(o=z())&&(r.sourceCollectionRef=o.first)}},features:[C],attrs:mR,decls:3,vars:2,consts:[["sourceCollection",""],[1,"gui-h-full","gui-w-full","gui-absolute","gui-structure-container-element"],["gui-structure-content","",3,"columns","source"]],template:function(n,r){n&1&&(h(0,"div",1,0),b(2,"div",2),g()),n&2&&(u(2),m("columns",r.columns)("source",r.source))},dependencies:[QC],encapsulation:2,changeDetection:0})}return i})(),ZC=(()=>{class i extends qe{bannerPanel$;constructor(e,n){super(e,n)}initObservables(){this.bannerPanel$=this.selectBannerPanelTemplate()}selectBannerPanelTemplate(){return this.onBannerPanelConfig().pipe(P(e=>typeof e.template=="function"?e.template():e.template))}static \u0275fac=function(n){return new(n||i)(c(B),c(x))};static \u0275dir=N({type:i,features:[C]})}return i})(),uO=(()=>{class i extends ZC{structureTitlePanelConfigArchive;constructor(e,n,r){super(n,r),this.structureTitlePanelConfigArchive=e,this.initObservables()}onBannerPanelConfig(){return this.structureTitlePanelConfigArchive.on()}getSelectorName(){return"gui-structure-title-panel"}static \u0275fac=function(n){return new(n||i)(c(Za),c(B),c(x))};static \u0275cmp=I({type:i,selectors:[["div","gui-structure-title-panel",""]],features:[C],attrs:hR,decls:3,vars:6,consts:[[1,"gui-title-panel","gui-p-6","gui-border-b","gui-border-b-solid",3,"innerHTML"]],template:function(n,r){n&1&&(b(0,"div",0),J(1,"guiPush"),J(2,"guiSafe")),n&2&&m("innerHTML",cr(2,3,ie(1,1,r.bannerPanel$),"html"),sr)},dependencies:[Ss,ux],encapsulation:2,changeDetection:0})}return i})(),mO=(()=>{class i extends ZC{structureFooterPanelConfigArchive;constructor(e,n,r){super(n,r),this.structureFooterPanelConfigArchive=e,this.initObservables()}onBannerPanelConfig(){return this.structureFooterPanelConfigArchive.on()}getSelectorName(){return"gui-structure-footer-panel"}static \u0275fac=function(n){return new(n||i)(c(Xa),c(B),c(x))};static \u0275cmp=I({type:i,selectors:[["div","gui-structure-footer-panel",""]],features:[C],attrs:gR,decls:3,vars:6,consts:[[1,"gui-footer-panel","gui-p-6","gui-border-t","gui-border-t-solid",3,"innerHTML"]],template:function(n,r){n&1&&(b(0,"div",0),J(1,"guiPush"),J(2,"guiSafe")),n&2&&m("innerHTML",cr(2,3,ie(1,1,r.bannerPanel$),"html"),sr)},dependencies:[Ss,ux],encapsulation:2,changeDetection:0})}return i})(),hO=(()=>{class i extends qe{structureDefinition;className;structureId=_(se);summariesWarehouse=_(Yr);structureHeaderTopEnabledArchive=_(cx);structureHeaderBottomEnabledArchive=_(Ga);searchWarehouse=_(Hi);pagingWarehouse=_(ln);structureWarehouse=_(mo);structureInfoPanelArchive=_($n);structureTitlePanelConfigArchive=_(Za);structureFooterPanelConfigArchive=_(Xa);bottomSummariesPanelEnabled$=this.summariesWarehouse.onBottomEnabled(this.structureId);contentCssClass;headerCssClass;headerTopClasses;headerBottomClasses;topHeaderEnabled$=this.structureHeaderTopEnabledArchive.on();bottomHeaderEnabled$=this.structureHeaderBottomEnabledArchive.on();footerPanelEnabled$=this.selectFooterPanelEnabled();items$=this.selectItems();topSummariesPanelEnabled$=this.summariesWarehouse.onTopEnabled(this.structureId);searchEnabled$=this.searchWarehouse.onSearchEnabled(this.structureId);titlePanelEnabled$=this.selectTitlePanelEnabled();infoPanelEnabled$=this.selectInfoPanelEnabled();pagingModel$=this.pagingWarehouse.onPaging(this.structureId);constructor(e,n,r,o){super(e,n),this.structureDefinition=r,this.className=o,this.headerCssClass=`gui-${this.className}-header`,this.contentCssClass=`gui-${this.className}-content`,this.headerTopClasses=this.headerCssClass+" gui-header-top",this.headerBottomClasses=this.headerCssClass+" gui-header-bottom"}isColumnHeaderTopEnabled(e){return this.structureDefinition.isHeaderEnabled()&&e}isColumnHeaderBottomEnabled(e){return this.structureDefinition.isHeaderEnabled()&&e}isPagingTopEnabled(e){return this.structureDefinition.getTopPaging().isEnabled()&&e.isPagerTop()}isPagingBottomEnabled(e){return this.structureDefinition.getBottomPaging().isEnabled()&&e.isPagerBottom()}getSelectorName(){return"gui-structure-blueprint"}selectTitlePanelEnabled(){return this.structureTitlePanelConfigArchive.on().pipe(P(e=>e.enabled))}selectInfoPanelEnabled(){return this.structureInfoPanelArchive.on().pipe(P(e=>e.isEnabled()))}selectFooterPanelEnabled(){return this.structureFooterPanelConfigArchive.on().pipe(P(e=>e.enabled))}selectItems(){return this.structureWarehouse.on(this.structureId).pipe(P(e=>e.getEntities()))}static \u0275fac=function(n){return new(n||i)(c(B),c(x),c(lo),c(Lf))};static \u0275cmp=I({type:i,selectors:[["div","gui-structure-blueprint",""]],features:[C],attrs:pR,decls:15,vars:18,consts:[["gui-structure-title-panel","",4,"guiIf"],["gui-structure-top-panel","",4,"guiIf"],[4,"guiLet"],["gui-structure-summaries-panel","",1,"gui-structure-summaries-panel-top",3,"enabled"],["gui-structure-container","",3,"ngClass"],["gui-empty-source","",3,"items"],["gui-structure-summaries-panel","",1,"gui-structure-summaries-panel-bottom",3,"enabled"],["gui-structure-info-panel","",4,"guiIf"],["gui-structure-title-panel",""],["gui-structure-top-panel",""],["gui-paging","",3,"position",4,"ngIf"],["gui-paging","",3,"position"],["gui-structure-header","",3,"ngClass",4,"ngIf"],["gui-structure-header","",3,"ngClass"],["gui-structure-footer-panel","",4,"ngIf"],["gui-structure-footer-panel",""],["gui-structure-info-panel",""]],template:function(n,r){n&1&&(D(0,fR,1,0,"div",0)(1,bR,1,0,"div",1)(2,xR,2,1,"ng-container",2),b(3,"div",3),J(4,"guiPush"),D(5,yR,2,1,"ng-container",2),b(6,"div",4)(7,"div",5),J(8,"guiPush"),D(9,CR,2,1,"ng-container",2),b(10,"div",6),J(11,"guiPush"),D(12,kR,2,1,"ng-container",2)(13,SR,2,1,"ng-container",2)(14,DR,1,0,"div",7)),n&2&&(m("guiIf",r.titlePanelEnabled$),u(),m("guiIf",r.searchEnabled$),u(),m("guiLet",r.pagingModel$),u(),m("enabled",ie(4,12,r.topSummariesPanelEnabled$)),u(2),m("guiLet",r.topHeaderEnabled$),u(),m("ngClass",r.contentCssClass),u(),m("items",ie(8,14,r.items$)),u(2),m("guiLet",r.bottomHeaderEnabled$),u(),m("enabled",ie(11,16,r.bottomSummariesPanelEnabled$)),u(2),m("guiLet",r.footerPanelEnabled$),u(),m("guiLet",r.pagingModel$),u(),m("guiIf",r.infoPanelEnabled$))},dependencies:[Ki,je,It,lx,YR,AA,GA,QA,KA,GC,KC,uO,mO,Ss],encapsulation:2,changeDetection:0})}return i})();function gO(i){return new se("gui-grid-"+i.generateId())}function pO(i){return new et("gui-grid-"+i.generateId())}function fO(i){return new lt("gui-grid-"+i.generateId())}var XC=(()=>{class i extends BR{elementRef;detectorRef;injector;structureDefinition;structureWarehouse;compositionWarehouse;schemaStylesManager;schemaReadModelRootId;structureDetailViewService;loaderEnabled=!1;circleLoaderEnabled=!0;initialLoaderAnimation=!1;styleModifier;constructor(e,n,r,o,s,a,l,d,p,w,E,Q,ne,ce,O,Y,Ie,pt,Qe,Ui,Ci,Wi,bo,Rh,Ah,e_,t_,i_,Q1,K1,Z1,X1,n_,r_,J1,ek,tk,ik,nk,o_,rk){super(r_,n_,X1,e,n,o_,ce,r,o,l,d,s,a,w,E,Q,ne,O,Y,pt,Qe,Ui,bo,Rh,Ah,Q1,K1,Z1),this.elementRef=n_,this.detectorRef=r_,this.injector=J1,this.structureDefinition=ek,this.structureWarehouse=tk,this.compositionWarehouse=ik,this.schemaStylesManager=nk,this.schemaReadModelRootId=o_,this.structureDetailViewService=rk,this.styleModifier=new hh(this.elementRef.nativeElement),ce.create(this.structureId),E.create(this.compositionId),w.create(this.schemaId)}ngOnInit(){super.ngOnInit(),this.subscribe(this.structureWarehouse.on(this.structureId),e=>{this.loaderEnabled=e.getSource().isLoading(),this.circleLoaderEnabled=e.isLoaderVisible(),this.loaderEnabled&&!this.initialLoaderAnimation&&(this.initialLoaderAnimation=!0),this.detectorRef.detectChanges()}),this.structureDetailViewService.init(this.elementRef)}ngAfterViewInit(){this.structureInitialValuesReadyArchive.next(this.structureId,!0);let e=this.elementRef.nativeElement.offsetWidth;e>0?this.compositionCommandDispatcher.setContainerWidth(e,this.compositionId):_p(0).pipe(this.takeUntil()).subscribe(()=>{e=this.elementRef.nativeElement.offsetWidth,e>0&&this.compositionCommandDispatcher.setContainerWidth(e,this.compositionId)}),this.schemaStylesManager.init(this.elementRef,this.schemaReadModelRootId),this.subscribeWithoutRender(this.compositionWarehouse.onWidth(this.compositionId),n=>{this.styleModifier.getHost().setWidth(n)})}isBorderEnabled(){return this.structureDefinition.isBorderEnabled()}getStructureId(){return this.structureId}getElementRef(){return this.elementRef}getSelectorName(){return"gui-structure"}static \u0275fac=function(n){return new(n||i)(c(se),c(et),c(Nt),c(Li),c(Wt),c($r),c(qt),c(Gt),c(qr),c(Ot),c(ci),c(Wn),c(Qn),c(Pt),c(Sd),c(cn),c($n),c(Md),c(Ed),c(Ur),c(qa),c(uh),c(_t),c(zi),c(Ga),c(Rd),c(Za),c(Xa),c(Bi),c(yi),c(ks),c(Un),c(x),c(B),c(ve),c(lo),c(mo),c(At),c(pC),c(lt),c(fC))};static \u0275cmp=I({type:i,selectors:[["gui-structure"]],hostVars:3,hostBindings:function(n,r){n&2&&(ar("id",r.structureId.toString()),U("gui-structure-border",r.isBorderEnabled()))},features:[ge([{provide:se,useFactory:gO,deps:[Vr]},{provide:et,useFactory:pO,deps:[Vr]},{provide:lt,useFactory:fO,deps:[Vr]},pC,SC,Ed,Sd,$n,Md,qa,mh.forComponent(),mn.forComponent(),cx,Ga,Rd,fC,Za,Xa,{provide:zR,useExisting:i},{provide:rA,useExisting:i}]),C],decls:3,vars:5,consts:[["gui-structure-blueprint",""],[1,"gui-loading",3,"ngClass"],[3,"diameter","primary",4,"ngIf"],[3,"diameter","primary"]],template:function(n,r){n&1&&(b(0,"div",0),h(1,"div",1),D(2,MR,1,2,"gui-spinner",2),g()),n&2&&(u(),m("ngClass",Bh(2,TR,r.loaderEnabled,!r.loaderEnabled&&r.initialLoaderAnimation)),u(),m("ngIf",r.circleLoaderEnabled))},dependencies:[Ki,je,gC,hO],styles:[`.gui-box-border{box-sizing:border-box}.gui-bg-transparent{background-color:transparent}.gui-border{border-width:1px}.gui-border-0{border-width:0}.gui-border-b{border-bottom-width:1px}.gui-border-t{border-top-width:1px}.gui-border-solid{border-style:solid}.gui-border-b-solid{border-bottom-style:solid}.gui-border-t-solid{border-top-style:solid}.gui-border-none{border-style:none}.gui-rounded{border-radius:4px}.gui-cursor-pointer{cursor:pointer}.gui-block{display:block}.gui-inline-block{display:inline-block}.gui-inline{display:inline}.gui-flex{display:-ms-flexbox;display:flex}.gui-hidden{display:none}.gui-display-grid{display:grid}.gui-flex-row{-ms-flex-direction:row;flex-direction:row}.gui-flex-row-reverse{-ms-flex-direction:row-reverse;flex-direction:row-reverse}.gui-flex-col{-ms-flex-direction:column;flex-direction:column}.gui-flex-col-reverse{-ms-flex-direction:column-reverse;flex-direction:column-reverse}.gui-justify-start{-ms-flex-pack:start;justify-content:flex-start}.gui-justify-end{-ms-flex-pack:end;justify-content:flex-end}.gui-justify-center{-ms-flex-pack:center;justify-content:center}.gui-justify-between{-ms-flex-pack:justify;justify-content:space-between}.gui-justify-around{-ms-flex-pack:distribute;justify-content:space-around}.gui-justify-evenly{-ms-flex-pack:space-evenly;justify-content:space-evenly}.gui-items-start{-ms-flex-align:start;align-items:flex-start}.gui-items-end{-ms-flex-align:end;align-items:flex-end}.gui-items-center{-ms-flex-align:center;align-items:center}.gui-items-between{-ms-flex-align:space-between;align-items:space-between}.gui-items-around{-ms-flex-align:space-around;align-items:space-around}.gui-items-evenly{-ms-flex-align:space-evenly;align-items:space-evenly}.gui-flex-wrap{-ms-flex-wrap:wrap;flex-wrap:wrap}.gui-flex-wrap-reverse{-ms-flex-wrap:wrap-reverse;flex-wrap:wrap-reverse}.gui-flex-nowrap{-ms-flex-wrap:nowrap;flex-wrap:nowrap}.gui-grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.gui-grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.gui-grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.gui-grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.gui-grid-cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}.gui-grid-cols-6{grid-template-columns:repeat(6,minmax(0,1fr))}.gui-grid-cols-7{grid-template-columns:repeat(7,minmax(0,1fr))}.gui-grid-cols-8{grid-template-columns:repeat(8,minmax(0,1fr))}.gui-grid-cols-9{grid-template-columns:repeat(9,minmax(0,1fr))}.gui-grid-rows-1{grid-template-rows:repeat(1,minmax(0,1fr))}.gui-grid-rows-2{grid-template-rows:repeat(2,minmax(0,1fr))}.gui-grid-rows-3{grid-template-rows:repeat(3,minmax(0,1fr))}.gui-grid-rows-4{grid-template-rows:repeat(4,minmax(0,1fr))}.gui-grid-rows-5{grid-template-rows:repeat(5,minmax(0,1fr))}.gui-grid-rows-6{grid-template-rows:repeat(6,minmax(0,1fr))}.gui-grid-rows-7{grid-template-rows:repeat(7,minmax(0,1fr))}.gui-grid-rows-8{grid-template-rows:repeat(8,minmax(0,1fr))}.gui-grid-rows-9{grid-template-rows:repeat(9,minmax(0,1fr))}.gui-grid-rows-gap-0{grid-row-gap:0}.gui-grid-rows-gap-1{grid-row-gap:1px}.gui-grid-rows-gap-2{grid-row-gap:2px}.gui-grid-rows-gap-3{grid-row-gap:3px}.gui-grid-rows-gap-4{grid-row-gap:4px}.gui-grid-rows-gap-5{grid-row-gap:6px}.gui-grid-rows-gap-6{grid-row-gap:8px}.gui-grid-rows-gap-7{grid-row-gap:10px}.gui-grid-rows-gap-8{grid-row-gap:12px}.gui-grid-rows-gap-10{grid-row-gap:16px}.gui-grid-rows-gap-13{grid-row-gap:22px}.gui-grid-rows-gap-23{grid-row-gap:42px}.gui-grid-cols-gap-0{grid-column-gap:0}.gui-grid-cols-gap-1{grid-column-gap:1px}.gui-grid-cols-gap-2{grid-column-gap:2px}.gui-grid-cols-gap-3{grid-column-gap:3px}.gui-grid-cols-gap-4{grid-column-gap:4px}.gui-grid-cols-gap-5{grid-column-gap:6px}.gui-grid-cols-gap-6{grid-column-gap:8px}.gui-grid-cols-gap-7{grid-column-gap:10px}.gui-grid-cols-gap-8{grid-column-gap:12px}.gui-grid-cols-gap-10{grid-column-gap:16px}.gui-grid-cols-gap-13{grid-column-gap:22px}.gui-grid-cols-gap-23{grid-column-gap:42px}.gui-h-full{height:100%}.gui-list-none{list-style-type:none}.gui-m-0{margin:0}.gui-mx-0{margin-left:0;margin-right:0}.gui-my-0{margin-bottom:0;margin-top:0}.-gui-m-0{margin:0}.-gui-mx-0{margin-left:0;margin-right:0}.-gui-my-0{margin-bottom:0;margin-top:0}.gui-m-1{margin:1px}.gui-mx-1{margin-left:1px;margin-right:1px}.gui-my-1{margin-bottom:1px;margin-top:1px}.-gui-m-1{margin:-1px}.-gui-mx-1{margin-left:-1px;margin-right:-1px}.-gui-my-1{margin-bottom:-1px;margin-top:-1px}.gui-m-2{margin:2px}.gui-mx-2{margin-left:2px;margin-right:2px}.gui-my-2{margin-bottom:2px;margin-top:2px}.-gui-m-2{margin:-2px}.-gui-mx-2{margin-left:-2px;margin-right:-2px}.-gui-my-2{margin-bottom:-2px;margin-top:-2px}.gui-m-3{margin:3px}.gui-mx-3{margin-left:3px;margin-right:3px}.gui-my-3{margin-bottom:3px;margin-top:3px}.-gui-m-3{margin:-3px}.-gui-mx-3{margin-left:-3px;margin-right:-3px}.-gui-my-3{margin-bottom:-3px;margin-top:-3px}.gui-m-4{margin:4px}.gui-mx-4{margin-left:4px;margin-right:4px}.gui-my-4{margin-bottom:4px;margin-top:4px}.-gui-m-4{margin:-4px}.-gui-mx-4{margin-left:-4px;margin-right:-4px}.-gui-my-4{margin-bottom:-4px;margin-top:-4px}.gui-m-5{margin:6px}.gui-mx-5{margin-left:6px;margin-right:6px}.gui-my-5{margin-bottom:6px;margin-top:6px}.-gui-m-5{margin:-6px}.-gui-mx-5{margin-left:-6px;margin-right:-6px}.-gui-my-5{margin-bottom:-6px;margin-top:-6px}.gui-m-6{margin:8px}.gui-mx-6{margin-left:8px;margin-right:8px}.gui-my-6{margin-bottom:8px;margin-top:8px}.-gui-m-6{margin:-8px}.-gui-mx-6{margin-left:-8px;margin-right:-8px}.-gui-my-6{margin-bottom:-8px;margin-top:-8px}.gui-m-7{margin:10px}.gui-mx-7{margin-left:10px;margin-right:10px}.gui-my-7{margin-bottom:10px;margin-top:10px}.-gui-m-7{margin:-10px}.-gui-mx-7{margin-left:-10px;margin-right:-10px}.-gui-my-7{margin-bottom:-10px;margin-top:-10px}.gui-m-8{margin:12px}.gui-mx-8{margin-left:12px;margin-right:12px}.gui-my-8{margin-bottom:12px;margin-top:12px}.-gui-m-8{margin:-12px}.-gui-mx-8{margin-left:-12px;margin-right:-12px}.-gui-my-8{margin-bottom:-12px;margin-top:-12px}.gui-m-10{margin:16px}.gui-mx-10{margin-left:16px;margin-right:16px}.gui-my-10{margin-bottom:16px;margin-top:16px}.-gui-m-10{margin:-16px}.-gui-mx-10{margin-left:-16px;margin-right:-16px}.-gui-my-10{margin-bottom:-16px;margin-top:-16px}.gui-m-13{margin:22px}.gui-mx-13{margin-left:22px;margin-right:22px}.gui-my-13{margin-bottom:22px;margin-top:22px}.-gui-m-13{margin:-22px}.-gui-mx-13{margin-left:-22px;margin-right:-22px}.-gui-my-13{margin-bottom:-22px;margin-top:-22px}.gui-m-23{margin:42px}.gui-mx-23{margin-left:42px;margin-right:42px}.gui-my-23{margin-bottom:42px;margin-top:42px}.-gui-m-23{margin:-42px}.-gui-mx-23{margin-left:-42px;margin-right:-42px}.-gui-my-23{margin-bottom:-42px;margin-top:-42px}.gui-mb-4{margin-bottom:4px}.gui-mb-6{margin-bottom:8px}.gui-mb-8{margin-bottom:12px}.gui-mb-10{margin-bottom:16px}.gui-mb-18{margin-bottom:32px}.gui-mr-0{margin-right:0}.gui-mr-5{margin-right:6px}.gui-mr-auto{margin-right:auto}.gui-ml-auto{margin-left:auto}.gui-ml-6{margin-left:8px}.gui-mt-0{margin-top:0}.gui-mt-4{margin-top:4px}.gui-mt-6{margin-top:8px}.gui-mt-10{margin-top:16px}.gui-mt-14{margin-top:24px}.gui-overflow-hidden{overflow:hidden}.gui-overflow-y-scroll{overflow-y:scroll}.gui-overflow-x-hidden{overflow-x:hidden}.gui-overflow-auto{overflow:auto}.gui-p-0{padding:0}.gui-px-0{padding-left:0;padding-right:0}.gui-py-0{padding-bottom:0;padding-top:0}.gui-p-1{padding:1px}.gui-px-1{padding-left:1px;padding-right:1px}.gui-py-1{padding-bottom:1px;padding-top:1px}.gui-p-2{padding:2px}.gui-px-2{padding-left:2px;padding-right:2px}.gui-py-2{padding-bottom:2px;padding-top:2px}.gui-p-3{padding:3px}.gui-px-3{padding-left:3px;padding-right:3px}.gui-py-3{padding-bottom:3px;padding-top:3px}.gui-p-4{padding:4px}.gui-px-4{padding-left:4px;padding-right:4px}.gui-py-4{padding-bottom:4px;padding-top:4px}.gui-p-5{padding:6px}.gui-px-5{padding-left:6px;padding-right:6px}.gui-py-5{padding-bottom:6px;padding-top:6px}.gui-p-6{padding:8px}.gui-px-6{padding-left:8px;padding-right:8px}.gui-py-6{padding-bottom:8px;padding-top:8px}.gui-p-7{padding:10px}.gui-px-7{padding-left:10px;padding-right:10px}.gui-py-7{padding-bottom:10px;padding-top:10px}.gui-p-8{padding:12px}.gui-px-8{padding-left:12px;padding-right:12px}.gui-py-8{padding-bottom:12px;padding-top:12px}.gui-p-10{padding:16px}.gui-px-10{padding-left:16px;padding-right:16px}.gui-py-10{padding-bottom:16px;padding-top:16px}.gui-p-13{padding:22px}.gui-px-13{padding-left:22px;padding-right:22px}.gui-py-13{padding-bottom:22px;padding-top:22px}.gui-p-23{padding:42px}.gui-px-23{padding-left:42px;padding-right:42px}.gui-py-23{padding-bottom:42px;padding-top:42px}.gui-pr-10{padding-right:16px}.gui-pl-9{padding-right:10px}.gui-pb-6{padding-bottom:8px}.gui-pb-12{padding-bottom:20px}.gui-pl-21{padding-left:38px}.gui-pt-4{padding-top:4px}.gui-pt-6{padding-top:8px}.gui-pt-10{padding-top:16px}.gui-pt-12{padding-top:20px}.gui-pt-14{padding-top:24px}.gui-static{position:static}.gui-fixed{position:fixed}.gui-relative{position:relative}.gui-absolute{position:absolute}.gui-text-xxs{font-size:11px}.gui-text-xs{font-size:12px}.gui-text-sm{font-size:13px}.gui-text-base{font-size:14px}.gui-text-lg{font-size:16px}.gui-text-xl{font-size:18px}.gui-text-2xl{font-size:20px}.gui-text-3xl{font-size:22px}.gui-leading-4{line-height:16px}.gui-leading-6{line-height:24px}.gui-font-thin{font-weight:100}.gui-font-extralight{font-weight:200}.gui-font-light{font-weight:300}.gui-font-normal{font-weight:400}.gui-font-medium{font-weight:500}.gui-font-semibold{font-weight:600}.gui-font-bold{font-weight:700}.gui-font-extrabold{font-weight:800}.gui-font-black{font-weight:900}.gui-not-italic{font-style:normal}.gui-whitespace-nowrap{white-space:nowrap}.gui-overflow-ellipsis{text-overflow:ellipsis}.gui-no-underline{text-decoration:none}.gui-text-center{text-align:center}.gui-w-full{width:100%}.gui-w-96{width:384px}.gui-w-3\\/5{width:60%}.gui-structure *,.gui-structure *:after,.gui-structure *:before{box-sizing:border-box}.gui-structure input{font-size:13px;outline:0}.gui-bold{font-weight:700}.gui-italic{font-style:italic}.gui-bar-view{width:100%}.gui-align-right{display:-ms-flexbox;display:flex;-ms-flex-pack:end;justify-content:flex-end;text-align:right;width:100%}.gui-align-left{text-align:left;width:100%}.gui-align-center{-ms-flex-pack:center;justify-content:center;text-align:center;width:100%}.gui-icon{cursor:pointer}.gui-icon svg{fill:#aaa;stroke:#aaa;transition:stroke .3s ease-in-out}.gui-icon svg:hover{fill:#464646!important;stroke:#464646!important}.gui-view-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.gui-percentage-bar{background:#deebff;border-radius:4px;box-shadow:inset 1px 1px 2px #ccc;color:#0747a6;height:22px;padding:4px;position:relative;text-align:center;width:100%}.gui-percentage-bar .gui-percentage{background:#8abcfc;border-radius:4px;height:22px;left:0;position:absolute;top:0}.gui-percentage-bar .gui-percentage-view{color:#031d44;position:relative;width:100%}.gui-clear-search-icon{cursor:pointer;height:16px;position:absolute;right:8px;top:50%;-ms-transform:translateY(-50%);transform:translateY(-50%);width:16px}.gui-clear-search-icon:before,.gui-clear-search-icon:after{background-color:#aaa;border-radius:8px;content:" ";height:16px;left:7px;position:absolute;width:2px}.gui-clear-search-icon:before{-ms-transform:rotate(45deg);transform:rotate(45deg)}.gui-clear-search-icon:after{-ms-transform:rotate(-45deg);transform:rotate(-45deg)}.gui-clear-search-icon:hover:before,.gui-clear-search-icon:hover:after{background-color:#464646}
|
|
`,`.gui-structure,.gui-structure *{border-color:#d6d6d6;font-size:14px}.gui-structure input{color:#333;font-family:Arial}.gui-header{background:#f2f3f4;border-bottom:1px solid;border-color:inherit;height:36px}.gui-header .gui-header-cell.gui-header-sortable{cursor:pointer}.gui-header .gui-header-cell.gui-header-sortable:hover{background:#e6e7e8}.gui-header .gui-header-cell .gui-header-menu-icon{display:none}.gui-header .gui-header-cell:hover .gui-header-menu{cursor:pointer}.gui-header .gui-header-cell:hover .gui-header-menu .gui-header-menu-icon-wrapper .gui-header-menu-icon{display:block}.gui-header .gui-header-cell:last-of-type{border-right:0}.gui-header .gui-header-cell .gui-header-title{display:-ms-flexbox;display:flex;line-height:1.4em}.gui-header .gui-header-cell .gui-header-menu{display:-ms-flexbox;display:flex}.gui-header .gui-header-cell .gui-header-menu .gui-header-menu-icon-wrapper{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;height:16px;padding:16px;position:relative;right:0;width:16px}.gui-header .gui-header-cell .gui-header-menu .gui-header-menu-icon-wrapper .gui-header-menu-icon{display:none;height:16px;width:16px}.gui-header-bottom .gui-header{border-bottom:0;border-color:inherit;border-top:1px solid}.gui-structure{background:#fff;border-color:#d6d6d6;box-sizing:border-box;color:#333;display:block;font-family:Arial;font-size:14px;position:relative}.gui-structure *{box-sizing:border-box}.gui-structure .gui-structure-header{display:block;height:100%;width:100%}.gui-structure .gui-structure-header .gui-structure-header-filters.gui-header{height:32px}.gui-structure .gui-structure-header .gui-structure-header-filters.gui-header .gui-header-cell{padding:4px}.gui-structure .gui-structure-header .gui-structure-header-filters.gui-header .gui-header-cell input{box-sizing:border-box;height:100%;padding:2px;position:relative;width:100%;border-color:#d6d6d6;border-style:solid;border-width:1px;font-size:13px}.gui-structure-container{display:block;height:100%;overflow:auto;overflow-x:hidden;position:relative;width:100%}.gui-structure-container .gui-structure-container-element{height:100%;position:absolute;width:100%}.gui-structure-container .gui-structure-container-element .gui-content{height:100%;position:relative}.gui-structure-container .gui-structure-container-element .gui-content .gui-row{border-bottom:1px solid transparent;position:absolute;width:100%}.gui-structure-container .gui-structure-container-element .gui-content .gui-row:last-child{border-bottom:0}.gui-structure-container .gui-structure-container-element .gui-content .gui-row:hover{background:#ecedee}.gui-structure-container .gui-structure-container-element .gui-content .gui-row.selected{background:#d0e8fb}.gui-structure-container .gui-structure-container-element .gui-content .gui-row .gui-cell{border-right:1px solid transparent;box-sizing:border-box;line-height:1em;overflow:hidden;padding:0;white-space:nowrap}.gui-structure-container .gui-structure-container-element .gui-content .gui-row .gui-cell .gui-cell-view span{line-height:1.4em}.gui-structure-container .gui-structure-container-element .gui-content .gui-row .gui-cell .gui-button{padding:0}.gui-structure-container .gui-structure-container-element .gui-content .gui-row .gui-cell .gui-cell-boolean{-ms-flex-pack:center;justify-content:center}.gui-structure-container .gui-structure-container-element .gui-content .gui-row .gui-cell .gui-checkbox{line-height:24px;position:relative}.gui-structure-container .gui-structure-container-element .gui-content .gui-row .gui-cell .gui-checkbox input{position:relative}.gui-structure-container .gui-structure-container-element .gui-content .gui-row .gui-cell .gui-chip{line-height:1em;margin:0;padding:4px 8px}.gui-structure-container .gui-structure-container-element .gui-content .gui-row .gui-cell .gui-badge{padding:0}.gui-structure-container .gui-structure-container-element .gui-content .gui-row .gui-cell .gui-input{background:transparent;font-size:14px;padding:0;border-radius:0;border-style:none}.gui-structure-container .gui-cell{display:inline-block}.gui-structure-container .gui-cell:last-child .gui-cell-view{padding-right:20px}.gui-structure-container .gui-cell>span{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;height:100%;padding:0 8px;width:100%}.gui-structure-container .gui-cell .gui-cell-edit-mode{border:2px solid #2185d0;height:100%;padding:6px}.gui-structure-container .gui-cell .gui-cell-edit-mode .gui-boolean-edit{margin-left:calc(50% - 11px)}.gui-structure-container .gui-cell .gui-cell-edit-mode input:focus{box-shadow:none;outline:none}.gui-vertical-grid .gui-structure-summaries-cell,.gui-vertical-grid .gui-structure-container-element .gui-content .gui-row .gui-cell,.gui-vertical-grid .gui-structure-header .gui-header .gui-header-cell{border-right:1px solid;border-right-color:inherit}.gui-vertical-grid .gui-structure-container-element .gui-content .gui-row .gui-cell:last-of-type,.gui-vertical-grid .gui-structure-header .gui-header .gui-header-cell:last-of-type{border-right:0}.gui-vertical-grid .gui-row-checkbox{border-right:1px solid!important;border-right-color:inherit!important}.gui-horizontal-grid .gui-structure-container-element .gui-content .gui-row{border-bottom:1px solid;border-bottom-color:inherit}.gui-horizontal-grid .gui-structure-container-element .gui-content .gui-row:last-of-type{border-bottom:0}.gui-rows-even .gui-row.even,.gui-rows-odd .gui-row.odd{background:#f7f8f9}.gui-structure-info-panel{-ms-flex-align:center;align-items:center;background:#f2f3f4;box-sizing:border-box;display:-ms-flexbox;display:flex;height:36px;-ms-flex-pack:justify;justify-content:space-between;padding:0 6px;width:100%;border-top-color:inherit;border-top-style:solid;border-top-width:1px}.gui-structure-info-panel p{margin:0}.gui-structure-info-panel p b{font-weight:700}.gui-structure-info-panel div button{background:#ccc;color:#fff;cursor:pointer;font-family:Arial;font-weight:700;height:16px;line-height:14px;padding:0;width:16px;border-color:transparent;border-radius:50%;border-style:solid;border-width:1px}.gui-structure-info-panel div button:focus{box-shadow:0 0 4px #ccc;outline:none}.gui-structure-border{border:1px solid;border-color:#d6d6d6}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}@keyframes fadeOut{0%{opacity:1}to{opacity:0}}.gui-loading{-ms-flex-line-pack:center;align-content:center;animation-duration:.2s;background:rgba(255,255,255,.8);border:1px solid;border-color:inherit;display:-ms-flexbox;display:flex;height:100%;-ms-flex-pack:center;justify-content:center;left:0;opacity:0;position:absolute;top:0;visibility:hidden;width:100%}.gui-loading .gui-spinner{-ms-flex-item-align:center;align-self:center}.gui-loading.gui-loader-hidden{animation-name:fadeOut;opacity:0;visibility:visible;z-index:-1}.gui-loading.gui-loader-visible{animation-name:fadeIn;opacity:1;visibility:visible;z-index:1}.gui-text-highlight{background:#fff799;padding:0!important}.gui-title-panel{border-bottom-color:#d6d6d6}.gui-footer-panel{border-top-color:#d6d6d6}.gui-structure-schema-manager-icon{margin-right:16px}.gui-structure-schema-manager-icon svg{height:18px;margin-bottom:-1px;width:18px}.gui-row-radio{-ms-flex-align:center;align-items:center;cursor:pointer;display:-ms-flexbox!important;display:flex!important;-ms-flex-pack:center;justify-content:center;padding:0 12px!important;width:48px!important}.gui-row-radio .gui-radio-button{height:24px;margin:0;padding:0;width:24px}.gui-row-checkbox{-ms-flex-align:center;align-items:center;cursor:pointer;display:-ms-flexbox!important;display:flex!important;-ms-flex-pack:center;justify-content:center;padding:0 12px!important;width:48px!important}.gui-row-checkbox .gui-checkbox{height:24px;margin:0;padding:0;width:24px}.gui-select-all .gui-checkbox .gui-checkmark{top:0}.gui-structure-cell-edit-boolean{height:100%}.gui-column-highlighted{background:#fffddd}.gui-structure-column-manager>div:hover{background:#ecedee}.gui-structure-column-manager label{margin-bottom:0}.gui-structure-ordered-list li:hover{background:#ecedee}
|
|
`,`.gui-structure-column-menu-icon svg{height:16px;width:16px}.gui-structure-column-menu-icon .cls-1{fill:none;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.5px}.gui-structure-column-menu-arrow-icon{display:inline-block}.gui-structure-column-menu-arrow-icon svg{height:10px;width:12px}.gui-structure-column-menu-arrow-icon .gui-structure-column-menu-sort-icon svg{height:16px}.gui-structure-column-menu-arrow-icon .cls-1{fill:none;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.5px}
|
|
`,`.gui-summaries-value{font-weight:700}.gui-structure-summaries-panel{background:#f2f3f4}.gui-structure-summaries-panel.gui-structure-summaries-panel-bottom .gui-structure-summaries-cell{border-top:1px solid #d6d6d6}.gui-structure-summaries-panel.gui-structure-summaries-panel-top .gui-structure-summaries-cell{border-bottom:1px solid #d6d6d6}.gui-structure-summaries-panel .gui-structure-summaries-cell{font-size:14px;padding-left:16px;padding-right:16px}.gui-structure-summaries-panel .gui-structure-summaries-cell:last-child{padding-right:20px}.gui-structure-summaries-panel .gui-structure-summaries-value{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;line-height:1em;overflow:hidden;padding:8px 0}.gui-structure-summaries-panel .gui-structure-summaries-value div .gui-math-symbol{position:relative;top:-1px}.gui-structure-summaries-panel .gui-structure-summaries-value .gui-mean,.gui-structure-summaries-panel .gui-structure-summaries-value .gui-median{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;position:relative}.gui-structure-summaries-panel .gui-structure-summaries-value .gui-mean span:nth-child(1){left:1px;position:absolute;top:-15px}.gui-structure-summaries-panel .gui-structure-summaries-value .gui-median span:nth-child(1){left:1px;position:absolute;top:-8px}
|
|
`,`.gui-structure-column-manager-icon svg{height:16px;width:16px}.gui-structure-column-manager-icon .cls-1,.gui-structure-column-manager-icon .cls-2{fill:none;stroke-linecap:round;stroke-linejoin:round}.gui-structure-column-manager-icon .cls-2{stroke-width:1.5px}.gui-structure-info-icon svg{height:16px;width:16px}.gui-structure-info-icon .cls-1{stroke-width:0}.gui-structure-info-icon .cls-2{fill:none;stroke-linecap:round;stroke-linejoin:round}.gui-structure-info-panel div,.gui-structure-info-panel div button{display:inline-block}.gui-structure-info-panel .gui-right-section .gui-structure-column-manager-icon{margin-right:16px;position:relative}.gui-structure-info-panel .gui-right-section .gui-structure-info-icon{margin-right:4px;position:relative}.gui-structure-info-modal .gui-quote{color:#575757}.gui-structure-info-modal p{color:#333}.gui-structure-info-modal a{color:#2185d0}.gui-structure-info-modal a:hover{color:#59a9e5;text-decoration:underline}
|
|
`,`@media (max-width: 500px){.gui-paging>*{padding-left:4px}.gui-paging .gui-paging-stats{padding-left:4px}}
|
|
`,`.gui-header{display:-ms-flexbox;display:flex}.gui-header .gui-header-cell{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex}.gui-content{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}.gui-content .gui-structure-cell-container,.gui-content .gui-row{display:-ms-flexbox;display:flex}.gui-content .gui-structure-cell-container .gui-cell,.gui-content .gui-row .gui-cell{display:inline-block}.gui-content .gui-structure-row-details{background:#80cbc4;display:block;height:200px;position:absolute;-ms-transform:translateY(0);transform:translateY(0);width:100%}
|
|
`,`.gui-inline-dialog-header-menu.gui-inline-dialog-wrapper .gui-inline-dialog-content{background:transparent;box-shadow:none}.gui-inline-dialog-header-menu .gui-header-menu-tab .gui-header-item-active{font-weight:700}.gui-inline-dialog-header-menu .gui-header-menu-tab .gui-tab .gui-tab-menu .gui-tab-menu-list{background:#fff}.gui-inline-dialog-header-menu .gui-header-menu-tab .gui-tab .gui-tab-menu .gui-tab-menu-item{color:#333}.gui-inline-dialog-header-menu .gui-header-menu-tab .gui-tab .gui-tab-menu .gui-tab-menu-item:hover{background:#ecedee}.gui-inline-dialog-header-menu .gui-header-menu-tab .gui-tab .gui-tab-menu .gui-tab-menu-item.gui-active{color:#2185d0}.gui-inline-dialog-header-menu .gui-header-menu-tab .gui-tab .gui-tab-content{box-shadow:0 3px 7px #ccc;box-sizing:content-box;padding:0;width:225px}.gui-inline-dialog-header-menu .gui-header-menu-tab .gui-header-menu-column-move{color:#333;display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;padding:0}.gui-inline-dialog-header-menu .gui-header-menu-tab .gui-header-menu-column-move .gui-header-menu-column-move-item{-ms-flex-align:center;align-items:center;cursor:pointer;display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between}.gui-inline-dialog-header-menu .gui-header-menu-tab .gui-header-menu-column-move .gui-header-menu-column-move-item svg line{stroke:#aaa}.gui-inline-dialog-header-menu .gui-header-menu-tab .gui-header-menu-column-move .gui-header-menu-column-move-item.left{padding:12px 16px 12px 12px;width:48%}.gui-inline-dialog-header-menu .gui-header-menu-tab .gui-header-menu-column-move .gui-header-menu-column-move-item.right{padding:12px 10px;width:52%}.gui-inline-dialog-header-menu .gui-header-menu-tab .gui-header-menu-column-move .gui-header-menu-column-move-item:hover{background:#ecedee}.gui-inline-dialog-header-menu .gui-header-menu-tab .gui-header-menu-column-move .gui-header-menu-column-move-item:hover svg line{stroke:#464646}.gui-inline-dialog-header-menu .gui-header-menu-tab .gui-tab-item-dropdown .gui-header-menu-dropdown.gui-dropdown .gui-dropdown-container{border:none;border-radius:0}.gui-inline-dialog-header-menu .gui-header-menu-tab .gui-tab-item-dropdown .gui-header-menu-dropdown.gui-dropdown .gui-dropdown-container:hover{background:#ecedee}.gui-inline-dialog-header-menu .gui-header-menu-tab .gui-tab-item-dropdown .gui-header-menu-dropdown.gui-dropdown .gui-dropdown-container:hover .gui-dropdown-arrow{opacity:1}.gui-inline-dialog-header-menu .gui-header-menu-tab .gui-tab-item-dropdown .gui-header-menu-dropdown.gui-dropdown .gui-dropdown-menu{width:125px}.gui-inline-dialog-header-menu .gui-header-menu-tab .gui-tab-item-dropdown .gui-header-menu-dropdown.gui-dropdown .gui-dropdown-menu .gui-item{background:#fff;color:#333;display:-ms-flexbox;display:flex;padding:8px 8px 8px 12px}.gui-inline-dialog-header-menu .gui-header-menu-tab .gui-tab-item-dropdown .gui-header-menu-dropdown.gui-dropdown .gui-dropdown-menu .gui-item:hover{background:#ecedee}.gui-inline-dialog-header-menu .gui-header-menu-tab .gui-tab-item-dropdown .gui-header-menu-dropdown.gui-dropdown .gui-dropdown-menu .gui-item:hover .gui-sort-title svg line{stroke:#464646}.gui-inline-dialog-header-menu .gui-header-menu-tab .gui-tab-item-dropdown .gui-header-menu-dropdown.gui-dropdown .gui-dropdown-menu .gui-item .gui-sort-title{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;width:100%}.gui-inline-dialog-header-menu .gui-header-menu-tab .gui-tab-item-dropdown .gui-header-menu-dropdown.gui-dropdown .gui-dropdown-menu .gui-item .gui-sort-title svg{margin-top:3px}.gui-inline-dialog-header-menu .gui-header-menu-tab .gui-tab-item-dropdown .gui-header-menu-dropdown.gui-dropdown .gui-dropdown-menu .gui-item .gui-sort-title svg line{stroke:#aaa}.gui-inline-dialog-header-menu .gui-header-menu-tab .gui-header-menu-item{color:#333;cursor:pointer;display:block;padding:8px 12px}.gui-inline-dialog-header-menu .gui-header-menu-tab .gui-header-menu-item:hover{background:#ecedee}.gui-inline-dialog-header-menu .gui-header-menu-tab .gui-checkbox{color:#333;margin-left:12px;padding:8px 12px 8px 32px;width:169px}.gui-inline-dialog-header-menu .gui-header-menu-tab .gui-checkbox label{display:inline-block;width:inherit}
|
|
`,`.gui-schema-manager-dialog .gui-schema-manager{min-width:180px}.gui-schema-manager-dialog .gui-schema-manager .gui-structure-schema-manager-select,.gui-schema-manager-dialog .gui-schema-manager .gui-checkbox{color:#333}.gui-schema-manager-dialog .gui-schema-manager .gui-structure-schema-manager-select:nth-last-child(1),.gui-schema-manager-dialog .gui-schema-manager .gui-checkbox:nth-last-child(1){margin-bottom:0}.gui-dialog-title{border-bottom:solid 1px #d6d6d6;font-size:18px;font-weight:700;margin-left:-16px;margin-right:-16px;padding-bottom:16px;text-align:center;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.gui-structure-schema-manager-select{padding:8px 0 24px}.gui-structure-dialog-column-manager ol{max-height:400px;min-width:250px}
|
|
`,`.gui-cell .gui-checkbox{display:block}.gui-cell .gui-chip{margin:0;padding:2px 8px}.gui-cell .gui-input{display:block;font-size:11px;padding:2px 4px;width:100%}.gui-cell .gui-button{padding:2px 8px}.gui-cell .gui-cell-number{display:block;width:100%}.gui-cell .gui-cell-boolean{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;height:100%;text-align:center;width:100%}.gui-cell .gui-string-edit{width:100%}
|
|
`,`.gui-fabric{border-color:#d6d6d6;font-family:Arial;font-size:14px}.gui-fabric .gui-header-cell,.gui-fabric .gui-structure-header-columns,.gui-fabric .gui-structure-top-panel,.gui-fabric .gui-structure-info-panel,.gui-fabric .gui-paging{height:42px}
|
|
`,`.gui-material{border-color:#0000001f;font-family:Arial;font-size:14px}.gui-material *{border-color:#0000001f}.gui-material.gui-structure{border:0;border-radius:0;box-shadow:0 2px 2px #00000024,0 3px 1px -2px #0000001f,0 1px 5px #0003}.gui-material.gui-structure,.gui-material .gui-header{font-family:Arial}.gui-material .gui-header-cell,.gui-material .gui-structure-header-columns{height:56px}.gui-material .gui-header .gui-header-cell.gui-header-sortable:hover{background:transparent}.gui-material .gui-header-cell{padding-left:16px;padding-right:16px}.gui-material .gui-structure-container-element .gui-structure-cell>span{padding-left:16px;padding-right:16px}.gui-material .gui-structure-container .gui-structure-container-element .gui-content .gui-row:hover{background:rgba(0,0,0,.04)}.gui-material .gui-structure-container .gui-structure-container-element .gui-content .gui-row.selected{background:#e6f7ff}.gui-material .gui-structure-header .gui-header{background:transparent;color:#464646;font-weight:700}.gui-material .gui-structure-header .gui-header .gui-header-cell{border-color:inherit}.gui-material .gui-cell .gui-button,.gui-material .gui-cell .gui-badge{padding:0}.gui-material .gui-paging-alternative-navigator .gui-button{background:transparent;color:#333;margin:0 4px;padding:0}.gui-material .gui-paging-alternative-navigator .gui-button:hover{background:transparent}.gui-material .gui-paging-alternative-navigator .gui-button:disabled{background:transparent;color:#ccc;opacity:.4}.gui-material .gui-structure-summaries-panel{background:#fff}.gui-material gui-structure-top-panel,.gui-material .gui-structure-info-panel,.gui-material .gui-paging{height:52px;padding-left:16px;padding-right:16px}.gui-material .gui-structure-info-panel{background:#fff;border-radius:0}.gui-material gui-structure-top-panel{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;padding-right:0}.gui-material gui-structure-top-panel .gui-search-bar form input{border:0;outline:0}.gui-material .gui-search-bar form input{border:0;outline:none}
|
|
`,`.gui-dark{border-color:#575757;border-radius:2px;color:#f0f0f0;font-family:Arial;font-size:14px}.gui-dark *{border-color:#575757;color:#f0f0f0}.gui-dark.gui-structure{border-radius:2px}.gui-dark .gui-header-cell,.gui-dark .gui-structure-header-columns{background:#333;height:46px}.gui-dark .gui-structure-border{border:none;box-shadow:5px 5px 10px 2px #1f1f1f}.gui-dark .gui-header-cell{border-bottom:1px solid;border-color:inherit;padding-left:16px;padding-right:16px}.gui-dark .gui-structure-container-element .gui-structure-cell>span{padding-left:16px;padding-right:16px}.gui-dark .gui-structure-header .gui-header{border-bottom-color:#666;color:#bdbdbd}.gui-dark .gui-structure-header .gui-header .gui-header-cell:hover{background:#525252}.gui-dark .gui-structure-header .gui-header .gui-header-cell:hover .gui-header-menu .gui-header-menu-icon-wrapper{background-color:#525252}.gui-dark .gui-inline-dialog-header-menu .gui-header-menu-tab .gui-tab .gui-tab-menu .gui-tab-menu-list{background:#383838}.gui-dark .gui-inline-dialog-header-menu .gui-header-menu-tab .gui-tab .gui-tab-menu .gui-tab-menu-item{color:#f0f0f0}.gui-dark .gui-inline-dialog-header-menu .gui-header-menu-tab .gui-tab .gui-tab-menu .gui-tab-menu-item:hover{background:#525252}.gui-dark .gui-inline-dialog-header-menu .gui-header-menu-tab .gui-tab .gui-tab-menu .gui-tab-menu-item.gui-active{color:#ce93d8}.gui-dark .gui-inline-dialog-header-menu .gui-header-menu-tab .gui-tab .gui-tab-content{box-shadow:0 1px 2px #525252}.gui-dark .gui-inline-dialog-header-menu .gui-header-menu-tab .gui-tab .gui-structure-column-manager ol li:hover{background:#525252}.gui-dark .gui-inline-dialog-header-menu .gui-header-menu-tab .gui-header-menu-column-move{color:#f0f0f0}.gui-dark .gui-inline-dialog-header-menu .gui-header-menu-tab .gui-header-menu-column-move .gui-header-menu-column-move-item:hover{background:#525252}.gui-dark .gui-inline-dialog-header-menu .gui-header-menu-tab .gui-header-menu-column-move .gui-header-menu-column-move-item:hover svg line{stroke:#ce93d8}.gui-dark .gui-inline-dialog-header-menu .gui-header-menu-tab .gui-tab-item-dropdown .gui-header-menu-dropdown.gui-dropdown .gui-dropdown-container .gui-dropdown-menu{border-color:#666}.gui-dark .gui-inline-dialog-header-menu .gui-header-menu-tab .gui-tab-item-dropdown .gui-header-menu-dropdown.gui-dropdown .gui-dropdown-container .gui-dropdown-menu .gui-item:hover svg line{stroke:#ce93d8}.gui-dark .gui-inline-dialog-header-menu .gui-header-menu-tab .gui-tab-item-dropdown .gui-header-menu-dropdown.gui-dropdown .gui-dropdown-container:hover{background:#525252}.gui-dark .gui-inline-dialog-header-menu .gui-header-menu-tab .gui-tab-item-dropdown .gui-header-menu-dropdown.gui-dropdown .gui-item{background:#383838;color:#f0f0f0;display:-ms-flexbox;display:flex}.gui-dark .gui-inline-dialog-header-menu .gui-header-menu-tab .gui-tab-item-dropdown .gui-header-menu-dropdown.gui-dropdown .gui-item:hover{background:#525252}.gui-dark .gui-inline-dialog-header-menu .gui-header-menu-tab .gui-header-menu-item{color:#f0f0f0}.gui-dark .gui-inline-dialog-header-menu .gui-header-menu-tab .gui-header-menu-item:hover{background:#525252}.gui-dark .gui-inline-dialog-header-menu .gui-header-menu-tab .gui-checkbox{color:#f0f0f0}.gui-dark .gui-structure-column-manager>div:hover{background:#525252}.gui-dark .gui-structure-container .gui-structure-container-element .gui-content .gui-row:hover{background:#525252}.gui-dark .gui-structure-container .gui-structure-container-element .gui-content .gui-row.selected{background:rgba(124,185,246,.3215686275)}.gui-dark.gui-rows-odd .gui-row.odd,.gui-dark.gui-rows-even .gui-row.even{background:#4f4f4f}.gui-dark .gui-horizontal-grid .gui-structure-container-element .gui-row .gui-cell{border-bottom-color:#666}.gui-dark .gui-paging.gui-paging-bottom{border-top-color:#666}.gui-dark .gui-paging.gui-paging-top{border-bottom-color:#666}.gui-dark ::-webkit-scrollbar{width:15px}.gui-dark ::-webkit-scrollbar-track{background:#616161}.gui-dark ::-webkit-scrollbar-thumb{background:#424242}.gui-dark ::-webkit-scrollbar-thumb:hover{background:#212121}.gui-dark .gui-structure-top-panel,.gui-dark .gui-structure-info-panel,.gui-dark .gui-paging,.gui-dark .gui-structure-container-element,.gui-dark .gui-row{background:#444}.gui-dark .gui-structure-top-panel,.gui-dark .gui-structure-info-panel,.gui-dark .gui-paging{height:42px;padding-left:16px;padding-right:16px}.gui-dark .gui-structure-summaries-cell{background:#383838;color:#f0f0f0}.gui-dark .gui-structure-summaries-panel-bottom .gui-structure-summaries-cell{border-top-color:#666}.gui-dark .gui-structure-summaries-panel-top .gui-structure-summaries-cell{border-bottom-color:#666}.gui-dark .gui-structure-info-panel{background:#383838;border-top-color:#666}.gui-dark .gui-structure-info-panel div{color:#f0f0f0}.gui-dark .gui-structure-info-panel div button{background:#616161}.gui-dark .gui-structure-info-panel p,.gui-dark .gui-structure-info-modal p{color:#f0f0f0}.gui-dark gui-paging-alternative-navigator .gui-button{background:transparent;color:#f0f0f0;margin:0 4px;padding:0}.gui-dark gui-paging-alternative-navigator .gui-button:hover{background:transparent}.gui-dark gui-paging-alternative-navigator .gui-button:disabled{background:transparent;color:#f0f0f0;opacity:.4}.gui-dark gui-paging-alternative-navigator gui-paging-alternative-pages .gui-paging-active-page{box-shadow:0 1px #f0f0f0;color:#f0f0f0}.gui-dark .gui-search-bar form{background:#444}.gui-dark .gui-search-bar input{background:#444;border:0;color:#f0f0f0;cursor:pointer}.gui-dark .gui-search-bar:hover .gui-search-icon-svg line,.gui-dark .gui-search-bar:hover .gui-search-icon-svg circle{stroke:#878787}.gui-dark .gui-icon{cursor:pointer}.gui-dark .gui-icon svg{stroke:#aaa;transition:stroke .3s ease-in-out}.gui-dark .gui-icon svg:hover{stroke:#e6e6e6!important}.gui-dark .gui-empty-source div{background:#383838}.gui-dark .gui-dialog-wrapper .gui-dialog-content .gui-schema-manager-dialog .gui-dialog-title{color:#f0f0f0}.gui-dark .gui-title-panel,.gui-dark .gui-footer-panel{background:#383838}.gui-dark .gui-structure-ordered-list li:hover{background:#525252}
|
|
`,`.gui-light{border-color:#f0f0f0;font-family:Arial;font-size:14px}.gui-light *{border-color:#f0f0f0}.gui-light.gui-structure-border{border:0}.gui-light.gui-structure,.gui-light .gui-header{background:#fff;color:#333;font-family:Arial}.gui-light .gui-header-cell,.gui-light .gui-structure-header-columns{height:56px}.gui-light.gui-structure-border{border-color:#f0f0f0 transparent}.gui-light .gui-header-cell,.gui-light .gui-structure-container-element .gui-structure-cell>span{padding-left:16px;padding-right:16px}.gui-light .gui-structure-header .gui-header{color:#333;font-weight:700}.gui-light .gui-structure-header .gui-header .gui-header-cell:hover{background:#f3f9ff}.gui-light .gui-structure-header .gui-header .gui-header-cell:hover .gui-header-menu .gui-header-menu-icon-wrapper{background-color:#f3f9ff}.gui-light .gui-structure-container .gui-structure-container-element .gui-content .gui-row:hover{background:#f3f9ff}.gui-light .gui-structure-container .gui-structure-container-element .gui-content .gui-row.selected{background:rgba(124,185,246,.3215686275)}.gui-light.gui-rows-odd .gui-row.odd,.gui-light.gui-rows-even .gui-row.even{background:#f7f7f7}.gui-light gui-paging-alternative-navigator .gui-button{background:transparent;color:#333;margin:0 4px;padding:0}.gui-light gui-paging-alternative-navigator .gui-button:hover{background:transparent}.gui-light gui-paging-alternative-navigator .gui-button:disabled{background:transparent;color:#333;opacity:.4}.gui-light .gui-structure-top-panel,.gui-light .gui-structure-info-panel,.gui-light .gui-paging{height:56px;padding-left:16px;padding-right:16px}.gui-light .gui-structure-top-panel,.gui-light .gui-structure-info-panel,.gui-light .gui-paging,.gui-light .gui-structure-summaries-panel{background:#fff}.gui-light .gui-search-bar form input{border:0;outline:none}
|
|
`,`.gui-structure.gui-generic{border-color:#2224261a;font-family:Arial;font-size:14px}.gui-structure.gui-generic *{border-color:#2224261a}.gui-structure.gui-generic .gui-header-cell,.gui-structure.gui-generic .gui-structure-header-columns{height:46px}.gui-structure.gui-generic .gui-header .gui-header-cell.gui-header-sortable:hover{background:rgba(0,0,0,.04);transition:.15s all}.gui-structure.gui-generic .gui-header-cell,.gui-structure.gui-generic .gui-structure-container-element .gui-structure-cell>span{padding-left:12px;padding-right:12px}.gui-structure.gui-generic .gui-structure-container-element .gui-structure-cell:last-child>span{padding-right:20px}.gui-structure.gui-generic .gui-structure-header.gui-header-bottom .gui-header{border-color:inherit;border-style:solid;border-width:2px 0 0}.gui-structure.gui-generic .gui-structure-container .gui-structure-container-element .gui-content .gui-row:hover{background:rgba(0,0,0,.04)}.gui-structure.gui-generic .gui-structure-container .gui-structure-container-element .gui-content .gui-row.selected{background:#e6f7ff}.gui-structure.gui-generic .gui-structure-header .gui-header{background:#f9fafb;border-width:0 0 2px;color:#464646;font-weight:700}.gui-structure.gui-generic .gui-rows-odd .gui-row.odd,.gui-structure.gui-generic .gui-rows-even .gui-row.even{background:#f9fafb}.gui-structure.gui-generic .gui-cell .gui-button,.gui-structure.gui-generic .gui-cell .gui-badge{padding:0}.gui-structure.gui-generic .gui-paging-alternative-navigator .gui-button{background:transparent;color:#333;margin:0 4px;padding:0}.gui-structure.gui-generic .gui-paging-alternative-navigator .gui-button:hover{background:transparent}.gui-structure.gui-generic .gui-paging-alternative-navigator .gui-button:disabled{background:transparent;color:#ccc;opacity:.4}.gui-structure.gui-generic .gui-structure-summaries-panel{background:#f9fafb}.gui-structure.gui-generic .gui-structure-top-panel,.gui-structure.gui-generic .gui-structure-info-panel,.gui-structure.gui-generic .gui-paging{height:46px;padding-left:12px;padding-right:12px}.gui-structure.gui-generic .gui-structure-info-panel{background:#f9fafb;border-radius:0}.gui-structure.gui-generic .gui-structure-top-panel{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;padding-right:0}.gui-structure.gui-generic .gui-structure-top-panel .gui-search-bar form input{border:0;outline:0}.gui-structure.gui-generic .gui-rows-odd gui-row.odd,.gui-structure.gui-generic .gui-rows-even .gui-row.even{background:#f9fafb}.gui-structure.gui-generic .gui-row:hover{background:#f9fafb;transition:.15s all}
|
|
`],encapsulation:2,changeDetection:0})}return i})(),JC=(()=>{class i extends dt{structureHeaderTopEnabledArchive;structureHeaderBottomEnabledArchive;columnHeaderTop;columnHeaderBottom;constructor(e,n){super(),this.structureHeaderTopEnabledArchive=e,this.structureHeaderBottomEnabledArchive=n}ngOnChanges(e){this.isDefined("columnHeaderTop",e)&&this.structureHeaderTopEnabledArchive.next(this.columnHeaderTop),this.isDefined("columnHeaderBottom",e)&&this.structureHeaderBottomEnabledArchive.next(this.columnHeaderBottom)}static \u0275fac=function(n){return new(n||i)(c(cx),c(Ga))};static \u0275dir=N({type:i,selectors:[["gui-structure","columnHeaderTop","","columnHeaderBottom",""],["gui-structure","columnHeaderTop",""],["gui-structure","columnHeaderBottom",""]],inputs:{columnHeaderTop:"columnHeaderTop",columnHeaderBottom:"columnHeaderBottom"},features:[C,G]})}return i})(),bO=(()=>{class i extends dt{structureId;compositionId;pagingCommandInvoker;pagingEventRepository;paging;pageChanged=new W;pageSizeChanged=new W;constructor(e,n,r,o){super(),this.structureId=e,this.compositionId=n,this.pagingCommandInvoker=r,this.pagingEventRepository=o}ngOnChanges(e){if(this.isDefined("paging",e)){let n;typeof this.paging=="boolean"?n={enabled:this.paging}:n=this.paging,this.pagingCommandInvoker.setPaging(n,this.compositionId)}}ngOnInit(){this.subscribeAndEmit(this.pagingEventRepository.onPageChange(this.structureId.toReadModelRootId()),this.pageChanged),this.subscribeAndEmit(this.pagingEventRepository.onPageSizeChange(this.structureId.toReadModelRootId()),this.pageSizeChanged)}onPageChange(e){this.pageChanged.emit(e)}static \u0275fac=function(n){return new(n||i)(c(se),c(et),c(Nt),c(Li))};static \u0275dir=N({type:i,inputs:{paging:"paging"},outputs:{pageChanged:"pageChanged",pageSizeChanged:"pageSizeChanged"},features:[C,G]})}return i})(),eI=(()=>{class i extends bO{pagingDisplayModeArchive;constructor(e,n,r,o,s){super(e,n,r,o),this.pagingDisplayModeArchive=s}ngOnChanges(e){if(this.isDefined("paging",e)){let n;typeof this.paging=="boolean"?n={enabled:this.paging}:(n=this.paging,this.paging.displayMode!==void 0&&this.pagingDisplayModeArchive.next(this.paging.displayMode)),this.pagingCommandInvoker.setPaging(n,this.structureId)}}static \u0275fac=function(n){return new(n||i)(c(se),c(et),c(Nt),c(Li),c(uh))};static \u0275dir=N({type:i,selectors:[["gui-structure","paging",""]],features:[C,G]})}return i})(),vO=(()=>{class i extends dt{structureId;searchEventRepository;searchCommandInvoker;searching;searchPhraseChanged=new W;constructor(e,n,r){super(),this.structureId=e,this.searchEventRepository=n,this.searchCommandInvoker=r}ngOnChanges(e){if(this.isDefined("searching",e)){let n;typeof this.searching=="boolean"?n={enabled:this.searching}:n=this.searching,this.searchCommandInvoker.setSearchingConfig(n,this.structureId)}}ngOnInit(){this.subscribeAndEmit(this.searchEventRepository.onSearchPhrase(this.structureId.toReadModelRootId()),this.searchPhraseChanged)}static \u0275fac=function(n){return new(n||i)(c(se),c(zi),c(Gt))};static \u0275dir=N({type:i,inputs:{searching:"searching"},outputs:{searchPhraseChanged:"searchPhraseChanged"},features:[C,G]})}return i})(),tI=(()=>{class i extends vO{constructor(e,n,r){super(e,n,r)}static \u0275fac=function(n){return new(n||i)(c(se),c(zi),c(Gt))};static \u0275dir=N({type:i,selectors:[["gui-structure","searching",""]],features:[C]})}return i})(),xO=(()=>{class i extends dt{structureId;formationEventRepository;formationPublisher;rowSelection;itemsSelected=new W;selectedRows=new W;constructor(e,n,r){super(),this.structureId=e,this.formationEventRepository=n,this.formationPublisher=r}ngOnChanges(e){this.isDefined("rowSelection",e)&&(this.rowSelection.isEnabledDefined()&&this.formationPublisher.setSelection(this.rowSelection.isEnabled(),this.structureId),this.rowSelection.isTypeDefined()&&this.formationPublisher.changeType(this.rowSelection.getType(),this.structureId),this.rowSelection.isModeDefined()&&this.formationPublisher.changeMode(this.rowSelection.getMode(),this.structureId),this.rowSelection.isMatcherDefined()&&this.formationPublisher.setMatcher(this.rowSelection.getMatcher(),this.structureId),this.rowSelection.isSelectedRowIndexesDefined()&&this.formationPublisher.selectByIndex(this.rowSelection.getSelectedRowIndexes(),this.structureId),this.rowSelection.isSelectedRowIdsDefined()&&this.formationPublisher.selectByIds(this.rowSelection.getSelectedRowIds(),this.structureId),this.rowSelection.isCustomSelectConfig()&&this.formationPublisher.setCustomSelection(this.rowSelection.getCustomSelectConfig(),this.structureId))}ngOnInit(){this.subscribeAndEmit(this.formationEventRepository.onItemSelected(this.structureId),this.selectedRows),this.subscribeAndEmit(this.selectItemsSelected(),this.itemsSelected)}selectItemsSelected(){return this.formationEventRepository.onItemSelected(this.structureId).pipe(P(e=>e.map(n=>n.getItem())))}static \u0275fac=function(n){return new(n||i)(c(se),c(Qn),c(_t))};static \u0275dir=N({type:i,inputs:{rowSelection:"rowSelection"},outputs:{itemsSelected:"itemsSelected",selectedRows:"selectedRows"},features:[C,G]})}return i})(),iI=(()=>{class i extends xO{selectionGate;constructor(e,n,r){super(e,n,r)}static \u0275fac=function(n){return new(n||i)(c(se),c(Qn),c(_t))};static \u0275dir=N({type:i,selectors:[["gui-structure","rowSelection",""],["gui-structure","selectionGate",""]],inputs:{selectionGate:"selectionGate"},features:[C]})}return i})(),nI=(()=>{class i extends dt{translationService;localization;constructor(e){super(),this.translationService=e}ngOnChanges(e){this.isDefined("localization",e)&&(this.localization.translationResolver&&this.translationService.setResolver(this.localization.translationResolver),this.localization.translation&&this.translationService.changeTranslation(this.localization.translation))}static \u0275fac=function(n){return new(n||i)(c(yi))};static \u0275dir=N({type:i,selectors:[["gui-structure","localization",""]],inputs:{localization:"localization"},features:[C,G]})}return i})(),rI=(()=>{class i extends dt{structureTitlePanelConfigArchive;structureFooterPanelConfigArchive;titlePanel;footerPanel;constructor(e,n){super(),this.structureTitlePanelConfigArchive=e,this.structureFooterPanelConfigArchive=n}ngOnChanges(e){this.isDefined("titlePanel",e)&&this.structureTitlePanelConfigArchive.next(this.titlePanel),this.isDefined("footerPanel",e)&&this.structureFooterPanelConfigArchive.next(this.footerPanel)}static \u0275fac=function(n){return new(n||i)(c(Za),c(Xa))};static \u0275dir=N({type:i,selectors:[["gui-structure","titlePanel","","footerPanel",""]],inputs:{titlePanel:"titlePanel",footerPanel:"footerPanel"},features:[C,G]})}return i})(),oI=(()=>{class i extends dt{structureDetailViewConfigArchive;rowDetail;constructor(e){super(),this.structureDetailViewConfigArchive=e}ngOnChanges(e){this.isDefined("rowDetail",e)&&this.structureDetailViewConfigArchive.next(this.rowDetail)}static \u0275fac=function(n){return new(n||i)(c(Rd))};static \u0275dir=N({type:i,selectors:[["gui-structure","rowDetail",""]],inputs:{rowDetail:"rowDetail"},features:[C,G]})}return i})(),sI=(()=>{class i extends dt{structureColumnMenuConfigArchive;columnMenu;constructor(e){super(),this.structureColumnMenuConfigArchive=e}ngOnChanges(e){this.isDefined("columnMenu",e)&&this.structureColumnMenuConfigArchive.nextConfig(this.columnMenu)}static \u0275fac=function(n){return new(n||i)(c(qa))};static \u0275dir=N({type:i,selectors:[["gui-structure","columnMenu",""]],inputs:{columnMenu:"columnMenu"},features:[C,G]})}return i})(),aI=(()=>{class i extends dt{structureId;summariesCommandInvoker;summaries;constructor(e,n){super(),this.structureId=e,this.summariesCommandInvoker=n}ngOnChanges(e){Re(e.summaries,()=>{this.summariesCommandInvoker.setConfig(this.summaries,this.structureId)})}static \u0275fac=function(n){return new(n||i)(c(se),c(Hn))};static \u0275dir=N({type:i,selectors:[["gui-structure","summaries",""]],inputs:{summaries:"summaries"},features:[C,G]})}return i})(),cI=(()=>{class i extends dt{structureInfoPanelConfigService;infoPanel;constructor(e){super(),this.structureInfoPanelConfigService=e}ngOnChanges(e){this.isDefined("infoPanel",e)&&(typeof this.infoPanel=="boolean"&&(this.infoPanel={enabled:this.infoPanel}),this.structureInfoPanelConfigService.set(this.infoPanel))}static \u0275fac=function(n){return new(n||i)(c(Md))};static \u0275dir=N({type:i,selectors:[["gui-structure","infoPanel",""]],inputs:{infoPanel:"infoPanel"},features:[C,G]})}return i})(),lI=(()=>{class i extends dt{schemaReadModelRootId;schemaPublisher;rowClass;constructor(e,n){super(),this.schemaReadModelRootId=e,this.schemaPublisher=n}ngOnChanges(e){this.isDefined("rowClass",e)&&this.schemaPublisher.setRowClass(this.rowClass,this.schemaReadModelRootId)}static \u0275fac=function(n){return new(n||i)(c(lt),c(Ot))};static \u0275dir=N({type:i,selectors:[["gui-structure","rowClass",""]],inputs:{rowClass:"rowClass"},features:[C,G]})}return i})(),dI=(()=>{class i extends dt{schemaReadModelRootId;schemaPublisher;rowStyle;constructor(e,n){super(),this.schemaReadModelRootId=e,this.schemaPublisher=n}ngOnChanges(e){this.isDefined("rowStyle",e)&&this.schemaPublisher.setRowStyle(this.rowStyle,this.schemaReadModelRootId)}static \u0275fac=function(n){return new(n||i)(c(lt),c(Ot))};static \u0275dir=N({type:i,selectors:[["gui-structure","rowStyle",""]],inputs:{rowStyle:"rowStyle"},features:[C,G]})}return i})(),uI=(()=>{class i extends dt{schemaId;schemaCommandInvoker;schemaEventRepository;rowColoring;rowColoringChanged=new W;constructor(e,n,r){super(),this.schemaId=e,this.schemaCommandInvoker=n,this.schemaEventRepository=r}ngOnChanges(e){this.isDefined("rowColoring",e)&&this.schemaCommandInvoker.setRowColoring(this.rowColoring,this.schemaId)}ngOnInit(){this.subscribeAndEmit(this.schemaEventRepository.onRowColoring(this.schemaId),this.rowColoringChanged)}ngOnDestroy(){super.ngOnDestroy()}static \u0275fac=function(n){return new(n||i)(c(lt),c(Ot),c(Bi))};static \u0275dir=N({type:i,selectors:[["gui-structure","rowColoring",""]],inputs:{rowColoring:"rowColoring"},outputs:{rowColoringChanged:"rowColoringChanged"},features:[C,G]})}return i})(),mI=(()=>{class i extends dt{schemaId;schemaCommandInvoker;schemaEventRepository;verticalGrid;horizontalGrid;horizontalGridChanged=new W;verticalGridChanged=new W;constructor(e,n,r){super(),this.schemaId=e,this.schemaCommandInvoker=n,this.schemaEventRepository=r,this.subscribeAndEmit(this.schemaEventRepository.onHorizontalGridChanged(this.schemaId),this.horizontalGridChanged),this.subscribeAndEmit(this.schemaEventRepository.onVerticalGridChanged(this.schemaId),this.verticalGridChanged)}ngOnChanges(e){this.isDefined("verticalGrid",e)&&this.schemaCommandInvoker.setVerticalGrid(this.verticalGrid,this.schemaId),this.isDefined("horizontalGrid",e)&&this.schemaCommandInvoker.setHorizontalGrid(this.horizontalGrid,this.schemaId)}static \u0275fac=function(n){return new(n||i)(c(lt),c(Ot),c(Bi))};static \u0275dir=N({type:i,selectors:[["gui-structure","verticalGrid","","horizontalGrid",""]],inputs:{verticalGrid:"verticalGrid",horizontalGrid:"horizontalGrid"},outputs:{horizontalGridChanged:"horizontalGridChanged",verticalGridChanged:"verticalGridChanged"},features:[C,G]})}return i})(),hI=(()=>{class i extends dt{structureId;sortingCommandInvoker;sorting;constructor(e,n){super(),this.structureId=e,this.sortingCommandInvoker=n}ngOnChanges(e){Re(e.sorting,()=>{let n;typeof this.sorting=="boolean"?n={enabled:this.sorting}:n=this.sorting,this.sortingCommandInvoker.setSortingConfig(n,this.structureId)})}static \u0275fac=function(n){return new(n||i)(c(se),c(qt))};static \u0275dir=N({type:i,selectors:[["gui-structure","sorting",""]],inputs:{sorting:"sorting"},features:[C,G]})}return i})(),gI=(()=>{class i extends dt{structureId;sourceCommandInvoker;loading;constructor(e,n){super(),this.structureId=e,this.sourceCommandInvoker=n}ngOnChanges(e){this.isDefined("loading",e)&&this.sourceCommandInvoker.setLoading(this.loading,this.structureId)}ngOnInit(){}static \u0275fac=function(n){return new(n||i)(c(se),c(Wt))};static \u0275dir=N({type:i,selectors:[["gui-structure","loading",""]],inputs:{loading:"loading"},features:[C,G]})}return i})(),pI=(()=>{class i extends dt{structureId;structureCommandInvoker;filtering;constructor(e,n){super(),this.structureId=e,this.structureCommandInvoker=n}ngOnChanges(e){Re(e.filtering,()=>{let n;typeof this.filtering=="boolean"?n={enabled:this.filtering}:n=this.filtering,this.structureCommandInvoker.setFilterConfig(n,this.structureId)})}static \u0275fac=function(n){return new(n||i)(c(se),c(Pt))};static \u0275dir=N({type:i,selectors:[["gui-structure","filtering",""]],inputs:{filtering:"filtering"},features:[C,G]})}return i})(),fI=(()=>{class i extends dt{structureId;structureCommandInvoker;quickFilters;constructor(e,n){super(),this.structureId=e,this.structureCommandInvoker=n}ngOnChanges(e){Re(e.quickFilters,()=>{let n;typeof this.quickFilters=="boolean"?n={enabled:this.quickFilters}:n=this.quickFilters,this.structureCommandInvoker.setQuickFiltersConfig(n,this.structureId)})}static \u0275fac=function(n){return new(n||i)(c(se),c(Pt))};static \u0275dir=N({type:i,selectors:[["gui-structure","quickFilters",""]],inputs:{quickFilters:"quickFilters"},features:[C,G]})}return i})(),bI=(()=>{class i extends dt{structureId;structureCommandInvoker;virtualScroll;constructor(e,n){super(),this.structureId=e,this.structureCommandInvoker=n}ngOnChanges(e){this.isDefined("virtualScroll",e)&&(this.virtualScroll?this.structureCommandInvoker.enableVirtualScroll(this.structureId):this.structureCommandInvoker.disableVirtualScroll(this.structureId))}static \u0275fac=function(n){return new(n||i)(c(se),c(Pt))};static \u0275dir=N({type:i,selectors:[["gui-structure","virtualScroll",""]],inputs:{virtualScroll:"virtualScroll"},features:[C,G]})}return i})(),ph=(()=>{class i extends NR{platformId;elementRef;changeDetectorRef;gridRegister;structureIdGenerator;formationCommandDispatcher;formationWarehouse;compositionCommandInvoker;compositionWarehouse;filterIntegration;sourceCommandDispatcher;searchCommandInvoker;schemaCommandInvoker;structureCommandDispatcher;summariesCommandInvoker;sortingCommandInvoker;pagingCommandInvoker;static GUI_GRID_ID="gui-grid-id";structureRef;gridId;api;localGridId;gridThemeCommandInvoker;classModifier;attributeModifier;constructor(e,n,r,o,s,a,l,d,p,w,E,Q,ne,ce,O,Y,Ie){super(),this.platformId=e,this.elementRef=n,this.changeDetectorRef=r,this.gridRegister=o,this.structureIdGenerator=s,this.formationCommandDispatcher=a,this.formationWarehouse=l,this.compositionCommandInvoker=d,this.compositionWarehouse=p,this.filterIntegration=w,this.sourceCommandDispatcher=E,this.searchCommandInvoker=Q,this.schemaCommandInvoker=ne,this.structureCommandDispatcher=ce,this.summariesCommandInvoker=O,this.sortingCommandInvoker=Y,this.pagingCommandInvoker=Ie,this.gridThemeCommandInvoker=new bf(this.schemaCommandInvoker,this.gridThemeConverter,this.gridRowColoringConverter),this.classModifier=new zc(this.elementRef.nativeElement),this.attributeModifier=new jR(this.elementRef.nativeElement)}ngOnInit(){this.classModifier.getHost().add("gui-grid"),this.initApi();let e=this.gridId;e===void 0&&(e="gui-grid-"+this.structureIdGenerator.generateId()),this.localGridId=e,this.exposeGridId(),this.gridRegister.register(e,this,this.structureRef.getStructureId()),St(this.platformId)&&(window.getGuiGrid=n=>{if(this.gridRegister.getValues(n))return this.api})}ngOnDestroy(){this.gridRegister.unregister(this.localGridId)}getElementRef(){return this.elementRef}detectChanges(){this.changeDetectorRef.detectChanges()}exposeGridId(){this.attributeModifier.getHost().setAttribute(i.GUI_GRID_ID,this.localGridId)}initApi(){this.api=new ff(this.structureRef.structureId,this.structureRef.compositionId,this.structureRef.schemaReadModelRootId,this.formationCommandDispatcher,this.formationWarehouse,this.compositionCommandInvoker,this.compositionWarehouse,this.filterIntegration,this.sourceCommandDispatcher,this.searchCommandInvoker,this.gridThemeCommandInvoker,this.structureCommandDispatcher,this.summariesCommandInvoker,this.sortingCommandInvoker,this.pagingCommandInvoker).provide()}static \u0275fac=function(n){return new(n||i)(c(Ue),c(x),c(B),c(EC),c(Vr),c(_t),c(Rt),c(ci),c(At),c(dh),c(Wt),c(Gt),c(Ot),c(Pt),c(Hn),c(qt),c(Nt))};static \u0275cmp=I({type:i,selectors:[["gui-grid"]],viewQuery:function(n,r){if(n&1&&X(FR,7),n&2){let o;L(o=z())&&(r.structureRef=o.first)}},inputs:{gridId:"gridId"},features:[ge([{provide:lo,useValue:LR},{provide:kC,useExisting:i}]),C],decls:2,vars:31,consts:[["structure",""],[3,"cellEditCanceled","cellEditEntered","cellEditSubmitted","columnsChanged","containerWidthChanged","horizontalGridChanged","itemsSelected","pageChanged","pageSizeChanged","rowColoringChanged","searchPhraseChanged","selectedRows","sourceEdited","themeChanged","verticalGridChanged","autoResizeWidth","cellEditing","columnHeaderBottom","columnHeaderTop","columnMenu","columns","editMode","filtering","footerPanel","horizontalGrid","infoPanel","loading","localization","maxHeight","paging","quickFilters","rowClass","rowColoring","rowDetail","rowHeight","rowSelection","rowStyle","searching","sorting","source","summaries","theme","titlePanel","verticalGrid","virtualScroll","width"]],template:function(n,r){if(n&1){let o=Z();h(0,"gui-structure",1,0),F("cellEditCanceled",function(){return R(o),A(r.onCellEditCancel())})("cellEditEntered",function(){return R(o),A(r.onCellEditEnter())})("cellEditSubmitted",function(){return R(o),A(r.onCellEditSubmit())})("columnsChanged",function(){return R(o),A(r.onColumnsChange())})("containerWidthChanged",function(a){return R(o),A(r.onContainerWidthChange(a))})("horizontalGridChanged",function(a){return R(o),A(r.onHorizontalGrid(a))})("itemsSelected",function(a){return R(o),A(r.onItemSelect(a))})("pageChanged",function(a){return R(o),A(r.onPageChange(a))})("pageSizeChanged",function(a){return R(o),A(r.onPageSizeChange(a))})("rowColoringChanged",function(a){return R(o),A(r.onRowColoring(a))})("searchPhraseChanged",function(a){return R(o),A(r.onSearchPhrase(a))})("selectedRows",function(a){return R(o),A(r.onRowsSelect(a))})("sourceEdited",function(a){return R(o),A(r.onSourceEdit(a))})("themeChanged",function(a){return R(o),A(r.onTheme(a))})("verticalGridChanged",function(a){return R(o),A(r.onVerticalGrid(a))}),g()}n&2&&m("autoResizeWidth",r.autoResizeWidth)("cellEditing",r.cellEditingConfig)("columnHeaderBottom",r.columnHeaderBottom)("columnHeaderTop",r.columnHeaderTop)("columnMenu",r.columnMenuConfig)("columns",r.columnsConfig)("editMode",r.editMode)("filtering",r.filtering)("footerPanel",r.footerPanel)("horizontalGrid",r.horizontalGrid)("infoPanel",r.infoPanel)("loading",r.loading)("localization",r.localization)("maxHeight",r.maxHeight)("paging",r.paging)("quickFilters",r.quickFilters)("rowClass",r.rowClass)("rowColoring",r.rowColoringConfig)("rowDetail",r.rowDetail)("rowHeight",r.rowHeight)("rowSelection",r.rowSelectionConfig)("rowStyle",r.rowStyle)("searching",r.searching)("sorting",r.sorting)("source",r.source)("summaries",r.summaries)("theme",r.themeConfig)("titlePanel",r.titlePanel)("verticalGrid",r.verticalGrid)("virtualScroll",r.virtualScroll)("width",r.width)},dependencies:[XC,JC,eI,tI,iI,nI,rI,oI,sI,aI,cI,lI,dI,uI,mI,hI,gI,pI,fI,bI],styles:[`.gui-grid{display:block;width:100%}
|
|
`],encapsulation:2})}return i})(),ho=[Wo,ni,Go,tn,An,qo,Yo,Xo,Jo,Ko,Zo,es,ts,On,Rr,is,nn,Qo,Fr,On],_O=(()=>{class i{static \u0275fac=function(n){return new(n||i)};static \u0275mod=M({type:i});static \u0275inj=T({})}return i})();var fx=(()=>{class i{static \u0275fac=function(n){return new(n||i)};static \u0275mod=M({type:i});static \u0275inj=T({providers:[HC],imports:[q,ho,mi,mn]})}return i})(),vI=(()=>{class i{static \u0275fac=function(n){return new(n||i)};static \u0275mod=M({type:i});static \u0275inj=T({providers:[$C],imports:[q,ho,mn,mi]})}return i})();var Xr=class{constructor(){}};var gb=class extends ae{fieldId;externalFilterId;filterValue;constructor(t,e,n,r){super(t,"ToggleFilterCommand"),this.fieldId=e,this.externalFilterId=n,this.filterValue=r}getFieldId(){return this.fieldId}getExternalFilterId(){return this.externalFilterId}getFilterValue(){return this.filterValue}},mc=class extends me{constructor(t){super(t,null,"FilterToggledEvent")}},pb=class{domainEventPublisher=y.resolve(_e);forCommand(){return gb}handle(t,e){let n=e.getFieldId(),r=e.getExternalFilterId(),o=e.getFilterValue();t.toggleFilter(n,r,o)}publish(t,e){this.domainEventPublisher.publish(new mc(e.getAggregateId()))}},bu=class extends ae{fieldId;filterTypeId;value;constructor(t,e,n,r){super(t,"AddFilterCommand"),this.fieldId=e,this.filterTypeId=n,this.value=r}getFieldId(){return this.fieldId}getFilterTypeId(){return this.filterTypeId}getValue(){return this.value}},fb=class{forCommand(){return bu}handle(t,e){let n=e.getFieldId(),r=e.getFilterTypeId(),o=e.getValue();t.addFilter(n,r,o)}},vu=class extends ae{constructor(t){super(t,"RemoveAllFiltersCommand")}},bb=class{forCommand(){return vu}handle(t,e){t.removeAllFilters()}},xu=class extends ae{filterId;constructor(t,e){super(t,"RemoveFilterCommand"),this.filterId=e}getFilterId(){return this.filterId}},vb=class{forCommand(){return xu}handle(t,e){let n=e.getFilterId();t.removeFilter(n)}},_u=class extends ae{filterConfig;constructor(t,e){super(t,"SetConfigFilterCommand"),this.filterConfig=e}getConfig(){return this.filterConfig}},yu=class extends me{enabled;constructor(t,e){super(t,e,"ConfigFilterSetEvent"),this.enabled=e}getEnabled(){return this.enabled}},xb=class{domainEventPublisher=y.resolve(_e);forCommand(){return _u}handle(t,e){let n=e.getConfig();t.setFilterConfig(n)}publish(t,e){let n=e.getConfig();this.domainEventPublisher.publish(new yu(e.getAggregateId(),n.enabled))}},wu=class extends ae{quickFiltersConfig;constructor(t,e){super(t,"SetConfigQuickFilterCommand"),this.quickFiltersConfig=e}getConfig(){return this.quickFiltersConfig}},Cu=class extends me{enabled;constructor(t,e){super(t,e,"ConfigQuickFilterSetEvent"),this.enabled=e}getEnabled(){return this.enabled}},_b=class{domainEventPublisher=y.resolve(_e);forCommand(){return wu}handle(t,e){let n=e.getConfig();t.setQuickFiltersConfig(n)}publish(t,e){let n=e.getAggregateId(),r=e.getConfig();this.domainEventPublisher.publish(new Cu(n,r.enabled))}},yb=class extends Cr{filterId;fieldId;filterTypeId;filterValue;constructor(t,e,n,r){super(t),this.filterId=t,this.fieldId=e,this.filterTypeId=n,this.filterValue=r}getFilterId(){return this.filterId}getFilterTypeId(){return this.filterTypeId}getFieldId(){return this.fieldId}getFilterValue(){return this.filterValue}},wb=class{filteringEnabled=!1;searchEnabled=!1;quickFiltersEnabled=!1;constructor(t=!1,e=!1,n=!1){this.filteringEnabled=t,this.searchEnabled=e,this.quickFiltersEnabled=n}isFilteringEnabled(){return this.filteringEnabled}isQuickFilteringEnabled(){return this.quickFiltersEnabled}isSearchingEnabled(){return this.searchEnabled}setFilterConfig(t){t&&t.enabled!==void 0&&t.enabled!==null&&(this.filteringEnabled=t.enabled)}setSearchingConfig(t){t&&t.enabled!==void 0&&t.enabled!==null&&(this.searchEnabled=t.enabled)}setQuickFiltersConfig(t){t&&t.enabled!==void 0&&t.enabled!==null&&(this.quickFiltersEnabled=t.enabled)}},Cb=class extends Xi{constructor(t){super(t)}toString(){return this.getId().toString()}filterMany(t,e,n){return t.length===0?t:t.filter(r=>this.filterEntity(r,e,n))}filterOne(t,e,n){return this.filterEntity(t,e,n)}},Ib=class extends Cb{constructor(t){super(t)}getName(){return"Contains"}filterEntity(t,e,n){return!!e.getValue(t).includes(n)}},kb=class extends Xi{id;constructor(t){super(t),this.id=t}toString(){return this.id}},yO=(()=>{class i{static index=0;generate(){return i.index+=1,new kb(`${i.index}`)}}return i})(),Eb=class{filterTypeId;name;constructor(t,e){this.filterTypeId=t,this.name=e}getId(){return this.filterTypeId}getName(){return this.name}},Sb=class{fieldIds=[];map=new WeakMap;filterTypeMap=new WeakMap;dataTypeToFilterType=new Map;filterTypeIdGenerator=new yO;constructor(t){this.assignFilterTypes(),this.addFields(t)}getFilterType(t){return this.filterTypeMap.get(t)}getFieldIdsToFilterTypes(){let t=new Map;for(let e of this.fieldIds){let n=this.map.get(e),r=n.map(o=>new Eb(o.getId(),o.getName()));t.set(e.toString(),r)}return t}addFields(t){for(let e of t)this.addField(e)}addField(t){let e=t.getId(),n=t.getDataType(),r=this.dataTypeToFilterType.get(n);this.fieldIds.push(e),this.map.set(e,Array.from(r))}assignFilterTypes(){this.assignFilterTypesForDataTypeUnknown(),this.assignFilterTypesForDataTypeNumber(),this.assignFilterTypesForDataTypeString(),this.assignFilterTypesForDataTypeBoolean(),this.assignFilterTypesForDataTypeDate(),this.assignFilterTypesForDataTypeCustom()}assignFilterTypesForDataTypeUnknown(){this.dataTypeToFilterType.set($.UNKNOWN,[])}assignFilterTypesForDataTypeNumber(){this.dataTypeToFilterType.set($.NUMBER,[])}assignFilterTypesForDataTypeString(){let t=[new Ib(this.generateId())];this.dataTypeToFilterType.set($.STRING,t),this.addFilterTypes(t)}assignFilterTypesForDataTypeBoolean(){this.dataTypeToFilterType.set($.BOOLEAN,[])}assignFilterTypesForDataTypeDate(){this.dataTypeToFilterType.set($.DATE,[])}assignFilterTypesForDataTypeCustom(){this.dataTypeToFilterType.set($.CUSTOM,[])}generateId(){return this.filterTypeIdGenerator.generate()}addFilterTypes(t){for(let e of t)this.filterTypeMap.set(e.getId(),e)}},Db=class extends Xi{constructor(t){super(t)}toString(){return this.getId()}},wO=(()=>{class i{static index=0;static generateId(){return new Db(`${i.index}`)}}return i})(),Tb=class{filterId;fieldName;filterTypeName;value;constructor(t,e,n,r){this.filterId=t,this.fieldName=e,this.filterTypeName=n,this.value=r}getText(){return`${this.fieldName}: ${this.filterTypeName}: ${this.value}`}getFilterId(){return this.filterId}getFieldName(){return this.fieldName}getFilterTypeName(){return this.filterTypeName}getValue(){return this.value}},Mb=class{filterSettings=new wb;filters=new Map;activeFilters=[];filterTypeManager;constructor(){}getSettings(){return this.filterSettings}getAll(){return Array.from(this.filters).map(t=>t[1])}getAllActiveFilters(t){return this.activeFilters.map(e=>new Tb(e.getFilterId(),t.get(e.getFieldId().toString()).getName(),this.filterTypeManager.getFilterType(e.getFilterTypeId()).getName(),e.getFilterValue()))}getFilterTypes(){return this.filterTypeManager.getFieldIdsToFilterTypes()}assignFilterTypes(t){this.filterTypeManager=new Sb(t)}add(t,e,n){let r=new yb(wO.generateId(),t,e,n);this.activeFilters.push(r)}filter(t,e){let n=Array.from(t);for(let r of this.activeFilters){let o=r.getFilterTypeId(),s=this.getFilterType(o),a=r.getFilterValue();n=s.filterMany(n,e.get(r.getFieldId().toString()),a)}return n}removeAll(){this.activeFilters.length=0}remove(t){this.activeFilters=this.activeFilters.filter(e=>e.getFilterId()!==t)}getFilterType(t){return this.filterTypeManager.getFilterType(t)}},Iu=class{create(t=!1){return new Mb}},bx=(()=>{class i extends Fe{static default=!1;constructor(){super(i.default)}}return i})(),CO=(()=>{class i{quickFilterEnabledArchive;constructor(e){this.quickFilterEnabledArchive=e}static services=[bx];forEvent(){return Cu}handle(e){e.ofMessageType("ConfigQuickFilterSetEvent")&&this.quickFilterEnabledArchive.next(e.getAggregateId(),e.getEnabled())}}return i})(),vx=(()=>{class i extends Fe{static default=!1;constructor(){super(i.default)}}return i})(),IO=(()=>{class i{filterEnabledArchive;constructor(e){this.filterEnabledArchive=e}static services=[vx];forEvent(){return yu}handle(e){e.ofMessageType("ConfigFilterSetEvent")&&this.filterEnabledArchive.next(e.getAggregateId(),e.getEnabled())}}return i})(),ku=class{map;constructor(t){this.map=t}getFilterTypes(t){let e=this.map.get(t.toString());return e===void 0?[]:e}},hc=class i extends Fe{static default=new ku(new Map);constructor(){super(i.default)}},Eu=class extends me{map;constructor(t,e){super(t,e,"FilterTypesInitedEvent"),this.map=e}getMap(){return this.map}},xx=(()=>{class i extends Fe{static default=[];constructor(){super(i.default)}}return i})(),_x=bp();_x.provide(xx);_x.provide(hc);var Su=_x,Fb=class{filterTypeArchive=Su.resolve(hc);forEvent(){return Eu}handle(t){if(t.ofMessageType("FilterTypesInitedEvent")){let e=t.getMap();this.filterTypeArchive.next(t.getAggregateId(),new ku(e))}}},Yn=class extends me{filters;constructor(t,e){super(t,e,"ActiveFiltersSetEvent"),this.filters=e}getFilters(){return this.filters}},Rb=class{activeFilterRepository=Su.resolve(xx);forEvent(){return Yn}handle(t){if(t.ofMessageType("ActiveFiltersSetEvent")){let e=t.getFilters();this.activeFilterRepository.next(t.getAggregateId(),e)}}},Du=class extends me{map;constructor(t,e){super(t,e,"UniqueFilterCalculatedEvent"),this.map=e}getUniqueValues(){return this.map}},Tu=class{map=new Map;allSelected=new Map;allDisabled=new Map;constructor(t){this.map=t,this.calculateSelection()}getValues(t){return this.map.get(t.toString())}areAllSelected(t){return this.allSelected.get(t.toString())}areAllDisabled(t){return this.allDisabled.get(t.toString())}isSelectAllChecked(t){return this.areAllSelected(t)}isIndeterminate(t){return!(this.areAllSelected(t)||this.areAllDisabled(t))}calculateSelection(){for(let t of Array.from(this.map.keys())){let e=this.map.get(t);this.allSelected.set(t,!e.some(n=>!n.isEnabled())),this.allDisabled.set(t,!e.some(n=>n.isEnabled()))}}},gc=class i extends Fe{static default=new Tu(new Map);constructor(){super(i.default)}},Ab=class{id;value;displayValue;enabled;constructor(t,e,n){this.id=t,this.value=e,this.enabled=n}getId(){return this.id}getValue(){return this.value}geDisplayValue(){return this.displayValue}isEnabled(){return this.enabled}},kO=(()=>{class i{uniqueValuesRepository;constructor(e){this.uniqueValuesRepository=e}static services=[gc];forEvent(){return Du}handle(e){if(e.ofMessageType("UniqueFilterCalculatedEvent")){let n=new Map;e.getUniqueValues().forEach((o,s)=>{let a=o.map(l=>new Ab(l.getId(),l.getDisplayValue(),l.isEnabled()));n.set(s,a)});let r=new Tu(n);this.uniqueValuesRepository.next(e.getAggregateId(),r)}}}return i})(),Ob=class{forEvent(){return cs}handle(t){}},Mu=class extends ae{fieldId;constructor(t,e){super(t,"UnselectAllUniqueFilterCommand"),this.fieldId=e}getFieldId(){return this.fieldId}},Pb=class{forCommand(){return Mu}handle(t,e){let n=e.getFieldId();t.unselectAllUniqueFilter(n)}},Fu=class extends ae{fieldId;uniqueValueId;constructor(t,e,n){super(t,"UnselectUniqueFilterCommand"),this.fieldId=e,this.uniqueValueId=n}getFieldId(){return this.fieldId}getUniqueValueId(){return this.uniqueValueId}},Nb=class{forCommand(){return Fu}handle(t,e){let n=e.getFieldId(),r=e.getUniqueValueId();t.unselectUniqueFilter(n,r)}},Ru=class extends ae{fieldId;constructor(t,e){super(t,"SelectAllUniqueFilterCommand"),this.fieldId=e}getFieldId(){return this.fieldId}},jb=class{forCommand(){return Ru}handle(t,e){let n=e.getFieldId();t.selectAllUniqueFilter(n)}},Au=class extends ae{fieldId;uniqueValueId;constructor(t,e,n){super(t,"SelectUniqueFilterCommand"),this.fieldId=e,this.uniqueValueId=n}getFieldId(){return this.fieldId}getUniqueValueId(){return this.uniqueValueId}},Vb=class{forCommand(){return Au}handle(t,e){let n=e.getFieldId(),r=e.getUniqueValueId();t.selectUniqueFilter(n,r)}},Lb=class{defineAggregate(){return null}registerKey(){return li}registerProviders(t){t.provide(Iu)}registerCommandHandlers(){return[xb,_b,pb,fb,bb,vb,Vb,jb,Nb,Pb]}registerDomainEventHandler(){return[CO,IO,Fb,Rb,kO,Ob]}registerMultiDomainEventHandler(){return[]}},EO=(()=>{class i extends Vi{filterEnabledArchive;structureQuickFilterRepository;uniqueValuesArchive;activeFilterArchive=Su.resolve(xx);filterTypeArchive=Su.resolve(hc);constructor(e,n,r){super(),this.filterEnabledArchive=e,this.structureQuickFilterRepository=n,this.uniqueValuesArchive=r}static services=[vx,bx,gc];onFilteringEnabled(e){return this.filterEnabledArchive.on(e)}onQuickFiltersEnabled(e){return this.structureQuickFilterRepository.on(e)}onFilterTypes(e){return this.filterTypeArchive.on(e)}findFilterTypes(e){return this.filterTypeArchive.find(e)}onFilterTypesForFieldId(e,n){return this.onFilterTypes(n).pipe(P(r=>r.getFilterTypes(e)))}onActiveFilters(e){return this.activeFilterArchive.on(e)}findFilters(e){return this.activeFilterArchive.find(e)}onUniqueValues(e){return this.uniqueValuesArchive.on(e)}onceFilterTypeId(e,n,r){return Sr(this.onFilterTypes(r).pipe(P(o=>{let a=o.getFilterTypes(e).find(l=>l.getName()===n);return a===void 0?Xe.empty():Xe.of(a.getId())})))}}return i})(),SO=(()=>{class i extends _i{commandDispatcher;constructor(e){super(),this.commandDispatcher=e}static services=[ut];setConfig(e,n){this.commandDispatcher.dispatch(new _u(n,e))}add(e,n,r,o){this.commandDispatcher.dispatch(new bu(o,e,n,r))}removeAll(e){this.commandDispatcher.dispatch(new vu(e))}remove(e,n){this.commandDispatcher.dispatch(new xu(n,e))}selectAllUniqueFilter(e,n){this.commandDispatcher.dispatch(new Ru(n,e))}unselectAllUniqueFilter(e,n){this.commandDispatcher.dispatch(new Mu(n,e))}selectUniqueFilter(e,n,r){this.commandDispatcher.dispatch(new Au(r,e,n))}unselectUniqueFilter(e,n,r){this.commandDispatcher.dispatch(new Fu(r,e,n))}}return i})(),zb=class{registerProviders(t){t.provide(_i,SO),t.provide(Vi,EO),t.provide(gc),t.provide(vx),t.provide(bx),t.provide(dh)}};function DO(){new wt(new zb,new Lb).init()}DO();function TO(){return y.resolve(_i)}function MO(){return y.resolve(Vi)}function FO(){return y.resolve(dh)}var yx=(()=>{class i{static \u0275fac=function(n){return new(n||i)};static \u0275mod=M({type:i});static \u0275inj=T({providers:[{provide:_i,useFactory:TO},{provide:Vi,useFactory:MO},{provide:dh,useFactory:FO}]})}return i})(),xI=(()=>{class i extends st{static forComponent(){return[]}static \u0275fac=(()=>{let e;return function(r){return(e||(e=ze(i)))(r||i)}})();static \u0275mod=M({type:i});static \u0275inj=T({imports:[q,ho,mi,yx]})}return i})(),wx=(()=>{class i extends st{static forComponent(){return[]}static \u0275fac=(()=>{let e;return function(r){return(e||(e=ze(i)))(r||i)}})();static \u0275mod=M({type:i});static \u0275inj=T({imports:[q,Nn,Pi,mi,yx,xI]})}return i})(),RO=(()=>{class i extends st{static forComponent(){return[]}static \u0275fac=(()=>{let e;return function(r){return(e||(e=ze(i)))(r||i)}})();static \u0275mod=M({type:i});static \u0275inj=T({providers:[UC],imports:[q,wx,xI,ni]})}return i})(),AO=(()=>{class i{static \u0275fac=function(n){return new(n||i)};static \u0275mod=M({type:i});static \u0275inj=T({providers:[Wa],imports:[q,_O,Nn,fx,vI,RO,mn,mi]})}return i})();var Bb=class extends qn{warn(t){console.warn(t)}error(t){console.error(t)}};function OO(){y.provide(qn,Bb)}OO();function PO(){return y.resolve(qn)}var NO=(()=>{class i{static \u0275fac=function(n){return new(n||i)};static \u0275mod=M({type:i});static \u0275inj=T({providers:[{provide:qn,useFactory:PO}]})}return i})(),pc=class{id;source;position;version=0;constructor(t,e,n,r=0){this.source=t,this.position=e,this.version=r,n?this.id=n:this.id=Tn.generate()}getSourceItem(){return this.source}getUiId(){return"gui"+this.id.replace(/-/g,"")}getId(){return this.id}getVersion(){return this.version}getPosition(){return this.position}isSelected(){return!1}isEven(){return this.position%2===0}isOdd(){return this.position%2===1}equals(t){return this.id===t.id&&this.getVersion()===t.getVersion()}equalsById(t){return this.id===t}},Ou=class i extends Cr{sourceItem;version;position;constructor(t,e,n,r=0){super(t),this.sourceItem=e,this.position=n,this.version=r}getSourceItem(){return this.sourceItem}getVersion(){return this.version}getPosition(){return this.position}bumpVersion(){this.version+=1}setPosition(t){this.position=t}clone(){let t=V({},this.sourceItem);return new i(this.getId(),t,this.version)}},Hb=class{create(t){return Array.isArray(t)?this.createItems(t):this.createItem(t)}createItems(t){return t.map(e=>this.createItem(e))}createItem(t){return t instanceof Ou?new pc(t.sourceItem,t.getPosition(),t.getId().toString(),t.getVersion()):new pc(t,0)}},Pu=class extends ae{searchConfig;constructor(t,e){super(t,"SetConfigSearchingCommand"),this.searchConfig=e}getConfig(){return this.searchConfig}},Nu=class extends me{enabled;constructor(t,e){super(t,e,"ConfigSearchingSetEvent"),this.enabled=e}isEnabled(){return this.enabled}},$b=class{domainEventPublisher=y.resolve(_e);forCommand(){return Pu}handle(t,e){let n=e.getConfig();t.setSearchingConfig(n)}publish(t,e){let n=e.getConfig();this.domainEventPublisher.publish(new Nu(e.getAggregateId(),n.enabled))}},fc=class extends ae{phrase;initial;constructor(t,e,n){super(t,"SetSearchPhraseCommand"),this.phrase=e,this.initial=n}getPhrase(){return this.phrase}isInitial(){return this.initial}},Jr=class extends me{phrase;initial;constructor(t,e,n){super(t,{phrase:e,initial:n},"SearchPhraseSetDomainEvent"),this.phrase=e,this.initial=n}getPhrase(){return this.phrase}isInitial(){return this.initial}},eo=class extends me{origin;constructor(t,e){super(t,e,"OriginSetEvent"),this.origin=e}getOrigin(){return this.origin}},bc=class extends me{values;constructor(t,e){super(t,e,"StructureSummariesChangedEvent"),this.values=e}getSummaries(){return this.values}},vc=class extends me{preparedItems;constructor(t,e){super(t,e,"StructurePreparedEntitiesSetEvent"),this.preparedItems=e}getPreparedItems(){return this.preparedItems}},to=class{domainEventPublisher=y.resolve(_e);publish(t){t.forEach(e=>{this.publishEvent(e)})}publishEvent(t){if(t.getType()==="StructureOriginChangedAggregateEvent"){let e=t,n=new eo(e.getAggregateId(),e.getOrigin());this.domainEventPublisher.publish(n)}if(t.getType()==="StructureSourceItemEditedAggregateEvent"){let e=t,n=new $a(e.getAggregateId(),e.getBeforeItem(),e.getAfterItem());this.domainEventPublisher.publish(n)}if(t.getType()==="StructureSummariesChangedAggregateEvent"){let e=t,n=new bc(e.getAggregateId(),e.getSummaries());this.domainEventPublisher.publish(n)}if(t.getType()==="StructurePreparedEntitiesSetAggregateEvent"){let e=t,n=new vc(e.getAggregateId(),e.getPreparedItems());this.domainEventPublisher.publish(n)}if(t.getType()==="UniqueFilterCalculatedAggregateEvent"){let n=t.toDomainEvent();this.domainEventPublisher.publish(n)}}},jO=(()=>{class i{structureSourceDomainEventPublisher;domainEventPublisher=y.resolve(_e);constructor(e){this.structureSourceDomainEventPublisher=e}static services=[to];forCommand(){return fc}handle(e,n){let r=n.getPhrase();e.addSearchPhrase(r)}publish(e,n){let r=n.getPhrase(),o=n.isInitial();this.domainEventPublisher.publish(new Jr(n.getAggregateId(),r,o)),this.structureSourceDomainEventPublisher.publish(e.getEvents())}}return i})(),Ub=class{searchFields=[];searchPhrase;enabledDataTypes=[$.STRING];addSearchPhrase(t,e){if(!e){this.searchFields=[];return}let n=t.filter(r=>this.enabledDataTypes.some(o=>o===r.getDataType()));n.length!==0&&(this.searchFields=n,this.searchPhrase=e)}removeSearchFilters(){this.searchFields=[]}search(t){if(t.length===0||this.searchFields.length===0)return t;let e=new Set;for(let n=0;n<t.length;n+=1)this.searchFields.filter(r=>r.search(t[n],this.searchPhrase)).forEach(()=>{e.add(t[n])});return Array.from(e)}},ju=class{create(){return new Ub}},Cx=(()=>{class i extends Fe{static HIGHLIGHTING=!0;constructor(){super(i.HIGHLIGHTING)}}return i})(),Ix=(()=>{class i extends Fe{static PLACEHOLDER="Search...";constructor(){super(i.PLACEHOLDER)}}return i})(),_I=(()=>{class i{commandDispatcher;searchHighlightArchive;searchPlaceholderArchive;constructor(e,n,r){this.commandDispatcher=e,this.searchHighlightArchive=n,this.searchPlaceholderArchive=r}static services=[ut,Cx,Ix];setSearchingConfig(e,n){e.highlighting!==void 0&&e.highlighting!==null&&this.searchHighlightArchive.next(n,e.highlighting),e.placeholder!==void 0&&e.placeholder!==null&&this.searchPlaceholderArchive.next(n,e.placeholder),e.phrase!==void 0&&e.phrase!==null&&this.searchOnInit(e.phrase,n),this.commandDispatcher.dispatch(new Pu(n,e))}search(e,n){this.commandDispatcher.dispatch(new fc(n,e,!1))}searchOnInit(e,n){this.commandDispatcher.dispatch(new fc(n,e,!0))}}return i})(),kx=(()=>{class i extends Fe{static SEARCH_PHRASE="";constructor(){super(i.SEARCH_PHRASE)}}return i})(),VO=(()=>{class i{searchPhraseRepository;constructor(e){this.searchPhraseRepository=e}static services=[kx];forEvent(){return Jr}handle(e){e.ofMessageType("SearchPhraseSetDomainEvent")&&this.searchPhraseRepository.next(e.getAggregateId(),e.getPhrase())}}return i})(),Ex=(()=>{class i extends Fe{static ENABLED=!1;constructor(){super(i.ENABLED)}}return i})(),LO=(()=>{class i{searchingEnabledArchive;constructor(e){this.searchingEnabledArchive=e}static services=[Ex];forEvent(){return Nu}handle(e){e.ofMessageType("ConfigSearchingSetEvent")&&this.searchingEnabledArchive.next(e.getAggregateId(),e.isEnabled())}}return i})(),Wb=class extends ae{constructor(t){super(t,"RemoveSearchPhraseCommand")}},Gb=class{domainEventPublisher=y.resolve(_e);forCommand(){return Wb}handle(t,e){t.removeSearchPhrase()}publish(t,e){this.domainEventPublisher.publish(new mc(e.getAggregateId()))}},qb=class{defineAggregate(){return null}registerKey(){return li}registerProviders(t){t.provide(ju),t.provide(_I)}registerCommandHandlers(){return[$b,jO,Gb]}registerDomainEventHandler(){return[VO,LO]}registerMultiDomainEventHandler(){return[]}},zO=(()=>{class i extends Hi{searchingEnabledArchive;searchPhraseArchive;searchHighlightArchive;searchPlaceholderArchive;constructor(e,n,r,o){super(),this.searchingEnabledArchive=e,this.searchPhraseArchive=n,this.searchHighlightArchive=r,this.searchPlaceholderArchive=o}static services=[Ex,kx,Cx,Ix];onSearchEnabled(e){return this.searchingEnabledArchive.on(e)}onPhrase(e){return this.searchPhraseArchive.on(e)}onHighlight(e){return this.searchHighlightArchive.on(e)}onPlaceholder(e){return this.searchPlaceholderArchive.on(e)}}return i})(),Yb=class extends zi{constructor(){super()}onSearchPhrase(t){return this.onEvent(t,Jr).pipe(ye(e=>e.isInitial()===!1),P(e=>e.getPhrase()),ye(e=>e!==null))}},BO=(()=>{class i extends Gt{searchDispatcher;constructor(e){super(),this.searchDispatcher=e}static services=[_I];setSearchingConfig(e,n){this.searchDispatcher.setSearchingConfig(e,n)}search(e,n){this.searchDispatcher.search(e,n)}}return i})(),Qb=class{registerProviders(t){t.provide(Gt,BO),t.provide(Hi,zO),t.provide(zi,Yb),t.provide(kx),t.provide(Cx),t.provide(Ix),t.provide(Ex)}};function HO(){new wt(new Qb,new qb).init()}HO();function $O(){return y.resolve(Gt)}function UO(){return y.resolve(Hi)}function WO(){return y.resolve(zi)}var yI=(()=>{class i extends st{static forComponent(){return[]}static \u0275fac=(()=>{let e;return function(r){return(e||(e=ze(i)))(r||i)}})();static \u0275mod=M({type:i});static \u0275inj=T({providers:[{provide:Gt,useFactory:$O},{provide:Hi,useFactory:UO},{provide:zi,useFactory:WO}],imports:[q,Nn,Pi,mi]})}return i})(),GO=(()=>{class i{static \u0275fac=function(n){return new(n||i)};static \u0275mod=M({type:i});static \u0275inj=T({imports:[q,Pi,wx,yI]})}return i})(),qO=(()=>{class i extends st{static forComponent(){return[]}static \u0275fac=(()=>{let e;return function(r){return(e||(e=ze(i)))(r||i)}})();static \u0275mod=M({type:i});static \u0275inj=T({imports:[q,ho,mi,yx]})}return i})();var wI=(()=>{class i{static \u0275fac=function(n){return new(n||i)};static \u0275mod=M({type:i});static \u0275inj=T({})}return i})();var CI=(()=>{class i{static \u0275fac=function(n){return new(n||i)};static \u0275mod=M({type:i});static \u0275inj=T({})}return i})();var YO=[wI,CI],QO=(()=>{class i{static \u0275fac=function(n){return new(n||i)};static \u0275mod=M({type:i});static \u0275inj=T({imports:[q,ho,mi,fx,qO,mn,YO]})}return i})();var KO=(()=>{class i extends st{static forComponent(){return[]}static \u0275fac=(()=>{let e;return function(r){return(e||(e=ze(i)))(r||i)}})();static \u0275mod=M({type:i});static \u0275inj=T({imports:[q,mn]})}return i})(),Vu=class extends ae{compositionId;fieldId;constructor(t,e,n){super(t,"ToggleSortCommand"),this.compositionId=e,this.fieldId=n}getCompositionId(){return this.compositionId}getFieldId(){return this.fieldId}},Kb=class{domainEventPublisher=y.resolve(_e);forCommand(){return Vu}handle(t,e){let n=e.getAggregateId(),r=e.getCompositionId(),o=e.getFieldId(),s=t.toggleSort(o);this.publishSortEvent(n,r,o,s)}publish(t,e){}publishSortEvent(t,e,n,r){let o=r.map(s=>({direction:s.hasDirection(),fieldId:s.getField().getId()}));this.domainEventPublisher.publish(new nc(t,e,o))}},Lu=class extends ae{sortingConfig;constructor(t,e){super(t,"SetSortingCommand"),this.sortingConfig=e}getSortingConfig(){return this.sortingConfig}},Zb=class extends me{constructor(t){super(t,null,"SortingSetEvent")}},Xb=class{domainEventPublisher=y.resolve(_e);forCommand(){return Lu}handle(t,e){let n=e.getSortingConfig();t.setSortingConfig(n)}publish(t,e){this.domainEventPublisher.publish(new Zb(e.getAggregateId()))}},zu=class extends ae{compositionId;fieldId;sortOrder;constructor(t,e,n,r){super(t,"SetSortOrderCommand"),this.compositionId=e,this.fieldId=n,this.sortOrder=r}getCompositionId(){return this.compositionId}getFieldId(){return this.fieldId}getSortOrder(){return this.sortOrder}},Jb=class{domainEventPublisher=y.resolve(_e);forCommand(){return zu}handle(t,e){let n=e.getAggregateId(),r=e.getCompositionId(),o=e.getFieldId(),s=e.getSortOrder(),a=t.setSortOrder(o,s);this.publishSortEvent(n,r,o,a)}publish(t,e){}publishSortEvent(t,e,n,r){let o=r.map(s=>({direction:s.hasDirection(),fieldId:s.getField().getId()}));this.domainEventPublisher.publish(new oc(t,e,o))}},Bu=class{commandDispatcher=y.resolve(ut);setSortingConfig(t,e){this.commandDispatcher.dispatch(new Lu(e,t))}toggleSort(t,e,n){this.commandDispatcher.dispatch(new Vu(n,e,t))}setSortOrder(t,e,n,r){this.commandDispatcher.dispatch(new zu(r,n,t,e))}},ev=class{defineAggregate(){return null}registerKey(){return li}registerProviders(t){t.provide(Bu)}registerCommandHandlers(){return[Kb,Xb,Jb]}registerDomainEventHandler(){return[]}registerMultiDomainEventHandler(){return[]}},ZO=(()=>{class i extends qt{sortingDispatcher;constructor(e){super(),this.sortingDispatcher=e}static services=[Bu];setSortingConfig(e,n){this.sortingDispatcher.setSortingConfig(e,n)}toggleSort(e,n,r){this.sortingDispatcher.toggleSort(e,n,r)}setSortOrder(e,n,r,o){this.sortingDispatcher.setSortOrder(e,n,r,o)}}return i})(),tv=class{registerProviders(t){t.provide(qt,ZO)}};function XO(){new wt(new tv,new ev).init()}XO();function JO(){return y.resolve(qt)}var eP=(()=>{class i extends st{static forComponent(){return[]}static \u0275fac=(()=>{let e;return function(r){return(e||(e=ze(i)))(r||i)}})();static \u0275mod=M({type:i});static \u0275inj=T({providers:[{provide:qt,useFactory:JO}],imports:[q]})}return i})(),Sx=(()=>{class i extends Fe{static default=[];constructor(){super(i.default)}}return i})(),iv=class{id;dataType;name;constructor(t,e,n){this.id=t,this.dataType=e,this.name=n}getFieldId(){return this.id}getId(){return this.id.getId()}getDataType(){return this.dataType}getName(){return this.name}},Hu=class{convert(t){return t.map(e=>this.convertOne(e))}convertOne(t){return new iv(t.getId(),t.getDataType(),t.getName())}},nv=class{fieldFactory;fields=new Map;constructor(t){this.fieldFactory=t}getField(t){return t===null?this.getAllFields()[0]:this.fields.get(t.getId())}getAllFieldIds(){return Array.from(this.fields.keys())}getAllFields(){return Array.from(this.fields.values())}getFieldsAsMap(){return this.fields}initFields(t){let e=this.fieldFactory.create(t);this.clear(),this.addFields(e)}addFields(t){for(let e of t)this.addField(e)}addField(t){this.fields.set(t.getId().toString(),t)}clear(){this.fields.clear()}},rv=class i extends Cr{id;field;name;constructor(t,e,n){super(t),this.id=t,this.field=e,this.name=n}static of(t,e,n){return new i(t,e,n)}getId(){return this.id}getKey(){return this.getId().toString()}getDataType(){return this.field.getDataType()}getName(){return this.name}getField(){return this.field}getAccessor(){return this.field.getAccessor()}getAccessorMethod(){return this.field.getAccessorMethod()}getSearchAccessorMethod(){return this.field.getSearchAccessorMethod()}getValue(t){return this.field.getValue(t)}getDisplayValue(t){return this.field.getDisplayValue(t)}isSummaries(t){return this.field.isSummaries(t)}isSummariesEnabled(){return this.field.isSummariesEnabled()}search(t,e){return this.field.search(t,e)}filter(t,e){let n=this.field.getValue(t);return this.field.getDataType()===$.NUMBER?this.field.filter(n,e):this.field.getDataType()===$.BOOLEAN?this.field.filter(n,e):this.field.getDataType()===$.STRING?this.field.filter(n,e):this.field.getDataType()===$.DATE?this.field.filter(n,e):!0}sort(t,e,n){let r=n?this.field.getSortValue(t):this.field.getSortValue(e),o=n?this.field.getSortValue(e):this.field.getSortValue(t);return this.field.getDataType()===$.NUMBER?this.field.sort(r,o):this.field.getDataType()===$.BOOLEAN?this.field.sort(r,o):this.field.getDataType()===$.STRING?this.field.sort(r,o):this.field.getDataType()===$.DATE?this.field.sort(r,o):0}},ov=class{accessor;dataType;accessorMethod;matchers;constructor(t,e,n){this.accessor=t,this.dataType=e,this.matchers=n,typeof t=="string"?this.accessorMethod=r=>r.getSourceItem()[t]:typeof t=="function"?this.accessorMethod=r=>t(r.getSourceItem()):this.accessorMethod=r=>r}getDataType(){return this.dataType}getAccessor(){return this.accessor}getAccessorMethod(){return this.accessorMethod}getMatchers(){return this.matchers}getSearchAccessorMethod(){let t;return this.matchers.getSearchMatcher().ifPresent(e=>{t=e}),t?e=>{let n=this.accessorMethod(e);return t(n)}:e=>this.accessorMethod(e)}getValue(t){return this.accessorMethod(t)}getSortValue(t){let e=this.accessorMethod(t);return this.matchers.getSortMatcher().ifPresent(n=>{e=n(e)}),e}getSearchValue(t){let e=this.accessorMethod(t);return this.matchers.getSearchMatcher().ifPresent(n=>{e=n(e)}),e}},io=class extends ov{summariesEnabled=!0;summariesTypes;possibleSummaries;constructor(t,e,n,r){super(t,e,n),this.possibleSummaries=this.assignPossibleSummaries(),this.assignSummaries(r)}isSummaries(t){return this.isSummariesEnabled()?!!(this.summariesTypes&t):!1}isSummariesEnabled(){return this.summariesEnabled}setSummariesEnabled(t){this.summariesEnabled=t}assignSummaries(t){t&&Object.keys(t).length!==0?(t.enabled&&(this.summariesEnabled=!!t.enabled),t.summariesTypes?(this.summariesTypes=ee.DISTINCT,t.summariesTypes.forEach(e=>{this.summariesTypes|=e})):this.summariesTypes=this.assignDefaultSummaries()):this.summariesTypes=this.assignDefaultSummaries()}},$u=class extends io{constructor(t,e,n){super(t,$.UNKNOWN,e,n)}assignDefaultSummaries(){return ee.DISTINCT}assignPossibleSummaries(){return ee.COUNT|ee.DISTINCT}search(t,e){return!1}sort(t,e){return 0}filter(t,e){return!1}equals(t,e){return!1}getDisplayValue(t){return t}},sv=class extends io{constructor(t,e,n){super(t,$.NUMBER,e,n)}getField(){return this}assignDefaultSummaries(){return ee.DISTINCT}assignPossibleSummaries(){return ee.COUNT|ee.DISTINCT|ee.SUM|ee.MIN|ee.MAX|ee.AVERAGE|ee.MEDIAN}search(t,e){return!1}sort(t,e){let n=+t,r=+e;return n-r}filter(t,e){return t>e}equals(t,e){return this.getValue(t)===e}getDisplayValue(t){return`${t}`}},av=class extends io{constructor(t,e,n){super(t,$.STRING,e,n)}assignDefaultSummaries(){return ee.DISTINCT}assignPossibleSummaries(){return ee.COUNT|ee.DISTINCT}search(t,e){let n=this.getSearchValue(t);return typeof n=="string"?n.toLowerCase().indexOf(e.toLowerCase())>-1:!1}sort(t,e){let n=""+t,r=""+e;return n.localeCompare(r)}filter(t,e){return t.toLowerCase().indexOf(e.toLowerCase())>-1}equals(t,e){return this.getValue(t)===e}getDisplayValue(t){return t}},cv=class extends io{constructor(t,e,n){super(t,$.BOOLEAN,e,n)}assignDefaultSummaries(){return ee.DISTINCT}assignPossibleSummaries(){return ee.COUNT|ee.DISTINCT|ee.TRUTHY|ee.FALSY}search(t,e){return!1}sort(t,e){let n=!!t,r=!!e;return n===r?0:r?-1:1}filter(t,e){return t===e}equals(t,e){return this.getValue(t)===e}getDisplayValue(t){return t?"True":"False"}},lv=class extends io{constructor(t,e,n){super(t,$.DATE,e,n)}assignDefaultSummaries(){return ee.DISTINCT}assignPossibleSummaries(){return ee.COUNT|ee.DISTINCT}search(t,e){return!1}sort(t,e){return t-e}filter(t,e){return!1}equals(t,e){return this.getValue(t).getTime()===e.getTime()}getDisplayValue(t){return t.toDateString()}},dv=class{matcher;sortMatcher;searchMatcher;constructor(t,e,n){this.matcher=t,this.sortMatcher=e,this.searchMatcher=n}getMatcher(){return Xe.of(this.matcher)}getSortMatcher(){let t;return this.sortMatcher&&(t=this.sortMatcher),this.matcher&&(t=this.matcher),Xe.of(t)}getSearchMatcher(){let t;return this.searchMatcher&&(t=this.searchMatcher),this.matcher&&(t=this.matcher),Xe.of(t)}},Uu=class{create(t){let e=this.createMatchers(t),n=t.type;return n===void 0&&(n=$.STRING),n===$.UNKNOWN?new $u(t.field,e,t.summaries):n===$.NUMBER?new sv(t.field,e,t.summaries):n===$.STRING?new av(t.field,e):n===$.BOOLEAN?new cv(t.field,e):n===$.DATE?new lv(t.field,e):new $u(t.field,e,t.summaries)}createMatchers(t){let e=t.matcher,n;return t.sorting&&(n=t.sorting.matcher),new dv(e,n)}},Wu=class{generateId(){let t=Tn.generate();return new Lr(t)}},II=(()=>{class i{fieldIdGenerator;dataFieldFactory;constructor(e,n){this.fieldIdGenerator=e,this.dataFieldFactory=n}static services=[Wu,Uu];create(e){return e?e.map((n,r)=>{let o=this.fieldIdGenerator.generateId(),s=this.dataFieldFactory.create(n);return new rv(o,s,this.getFieldName(n,r))}):[]}getFieldName(e,n){return typeof e.field=="string"?e.field.toLowerCase():"Field #"+n}}return i})(),kI=(()=>{class i{fieldFactory;constructor(e){this.fieldFactory=e}static services=[II];create(){return new nv(this.fieldFactory)}}return i})(),uv=class{forCommand(){return Ba}handle(t,e){let n=e.getFieldConfigs();t.createFields(n)}},tP=(()=>{class i{fieldArchive;fieldConverter;constructor(e,n){this.fieldArchive=e,this.fieldConverter=n}static services=[Sx,Hu];forEvent(){return cs}handle(e){if(e.ofMessageType("FieldsInitedEvent")){let n=this.fieldConverter.convert(e.getFields());this.fieldArchive.next(e.getAggregateId(),n)}}}return i})(),mv=class{defineAggregate(){return null}registerKey(){return li}registerProviders(t){t.provide(kI),t.provide(II),t.provide(Wu),t.provide(Uu)}registerCommandHandlers(){return[uv]}registerDomainEventHandler(){return[tP]}registerMultiDomainEventHandler(){return[]}},iP=(()=>{class i extends Xr{fieldReadModelArchive;constructor(e){super(),this.fieldReadModelArchive=e}static services=[Sx];onFields(e){return this.fieldReadModelArchive.on(e)}findFields(e){return this.fieldReadModelArchive.find(e)}}return i})(),nP=(()=>{class i extends qr{commandDispatcher;constructor(e){super(),this.commandDispatcher=e}static services=[ut];initFields(e,n){this.commandDispatcher.dispatch(new Ba(n,e))}}return i})(),hv=class{registerProviders(t){t.provide(qr,nP),t.provide(Sx),t.provide(Hu),t.provide(Xr,iP)}};function rP(){new wt(new hv,new mv).init()}rP();function oP(){return y.resolve(qr)}function sP(){return y.resolve(Xr)}var aP=(()=>{class i extends st{static forComponent(){return[]}static \u0275fac=(()=>{let e;return function(r){return(e||(e=ze(i)))(r||i)}})();static \u0275mod=M({type:i});static \u0275inj=T({providers:[{provide:qr,useFactory:oP},{provide:Xr,useFactory:sP}],imports:[q]})}return i})(),Gu=class extends ae{enabled;constructor(t,e){super(t,"StructureSetSummariesEnabledCommand"),this.enabled=e}isEnabled(){return this.enabled}},cP="StructureSummariesEnabledSetEvent",qu=class extends me{enabled;constructor(t,e){super(t,e,cP),this.enabled=e}isEnabled(){return this.enabled}},lP=(()=>{class i{structureSourceDomainEventPublisher;domainEventPublisher=y.resolve(_e);constructor(e){this.structureSourceDomainEventPublisher=e}static services=[to];forCommand(){return Gu}handle(e,n){let r=n.isEnabled();e.setSummariesEnabled(r)}publish(e,n){let r=n.isEnabled(),o=e.getEvents();this.domainEventPublisher.publish(new qu(n.getAggregateId(),r)),this.structureSourceDomainEventPublisher.publish(o)}}return i})(),gv=class extends Le{summarizedValues;constructor(t,e){super(t,"StructureSummariesChangedAggregateEvent"),this.summarizedValues=e}toDomainEvent(){return new bc(this.getAggregateId(),this.summarizedValues)}getSummaries(){return this.summarizedValues}},pv=(()=>{class i{calculators;static DEFAULT_ENABLED=!1;structureId;enabled;values=new Map;constructor(e,n){this.calculators=n,this.structureId=e,this.enabled=i.DEFAULT_ENABLED}calculate(e,n){if(!this.enabled)return[];let r=new Map;return this.calculators.forEach(o=>{let s=o.calculate(e,n);s&&Array.from(s.keys()).forEach(a=>{r.set(a,s.get(a))})}),r.size>0?[new gv(this.structureId,r)]:[]}setEnabled(e){this.enabled=e}add(){}remove(){}update(){}}return i})(),xs=class extends Fe{constructor(){super(pv.DEFAULT_ENABLED)}init(t){this.next(t,pv.DEFAULT_ENABLED)}},dP=(()=>{class i{summariesEnabledArchive;constructor(e){this.summariesEnabledArchive=e}static services=[xs];forEvent(){return qu}handle(e){e.ofMessageType("StructureSummariesEnabledSetEvent")&&this.summariesEnabledArchive.next(e.getAggregateId(),e.isEnabled())}}return i})(),no=class{calculate(t,e){let n=t.filter(a=>this.forDataType(a.getDataType()));if(!n||n.length===0||e.length===0)return null;let r=new Map,o=new Map;n.forEach(a=>{let l=a.getKey();r.set(l,0),o.set(l,new Set),this.prepare(a)}),e.forEach(a=>{n.forEach(l=>{let d=l.getKey(),p=l.getValue(a);if(p!==null||p!==void 0||p!==""){if(l.isSummaries(ee.COUNT)){let w=r.get(d);r.set(d,w+1)}l.isSummaries(ee.DISTINCT)&&o.get(d).add(p)}this.aggregate(l,p)})}),n.forEach(a=>{this.postCalculate(a,e)});let s=new Map;return n.forEach(a=>{let l=a.getKey(),d=this.generateAggregatedValues(a);a.isSummaries(ee.COUNT)&&d.setCount(r.get(l)),a.isSummaries(ee.DISTINCT)&&d.setDistinct(o.get(l).size),s.set(l,d)}),s}},ro=class{count;distinct;setCount(t){this.count=t}setDistinct(t){this.distinct=t}},fv=class extends ro{truthy;falsy;constructor(t,e){super(),this.truthy=t,this.falsy=e}},Yu=class extends no{truthy=new Map;falsy=new Map;constructor(){super()}forDataType(t){return t===$.BOOLEAN}prepare(t){let e=t.getKey();t.isSummaries(ee.TRUTHY)&&this.truthy.set(e,0),t.isSummaries(ee.FALSY)&&this.falsy.set(e,0)}postCalculate(t,e){}aggregate(t,e){let n=e,r=t.getKey(),o=this.truthy.get(r),s=this.falsy.get(r);n?t.isSummaries(ee.TRUTHY)&&this.truthy.set(r,o+1):t.isSummaries(ee.FALSY)&&this.falsy.set(r,s+1)}generateAggregatedValues(t){let e=t.getKey();return new fv(this.truthy.get(e),this.falsy.get(e))}},bv=class extends ro{constructor(){super()}},Qu=class extends no{constructor(){super()}forDataType(t){return t===$.DATE}prepare(t){}postCalculate(t,e){}aggregate(t,e){}generateAggregatedValues(t){return new bv}},vv=class extends ro{sum;min;max;average;median;constructor(t,e,n,r,o){super(),this.sum=this.setValueWithPrecision(t),this.min=this.setValueWithPrecision(e),this.max=this.setValueWithPrecision(n),this.average=this.setValueWithPrecision(r),this.median=this.setValueWithPrecision(o)}setValueWithPrecision(t){return!t&&t!==0?null:t===0?0:+t.toFixed(2)}},Ku=class extends no{sum=new Map;min=new Map;max=new Map;average=new Map;median=new Map;constructor(){super()}forDataType(t){return t===$.NUMBER}prepare(t){let e=t.getKey();this.sum.set(e,0),this.min.set(e,Number.MAX_SAFE_INTEGER),this.max.set(e,0)}postCalculate(t,e){let n=t.getKey();t.isSummaries(ee.AVERAGE)&&this.average.set(n,this.sum.get(n)/e.length),t.isSummaries(ee.MEDIAN)&&this.median.set(n,t.getValue(e[Math.floor(e.length/2)]))}aggregate(t,e){let n=+e,r=t.getKey(),o=this.sum.get(r),s=this.min.get(r),a=this.max.get(r);(t.isSummaries(ee.SUM)||t.isSummaries(ee.AVERAGE))&&this.sum.set(r,o+n),t.isSummaries(ee.MIN)&&s>n&&this.min.set(r,n),t.isSummaries(ee.MAX)&&a<n&&this.max.set(r,n)}generateAggregatedValues(t){let e=t.getKey(),n=t.isSummaries(ee.SUM)?this.sum.get(e):void 0,r=t.isSummaries(ee.MIN)?this.min.get(e):void 0,o=t.isSummaries(ee.MAX)?this.max.get(e):void 0,s=t.isSummaries(ee.AVERAGE)?this.average.get(e):void 0,a=t.isSummaries(ee.MEDIAN)?this.median.get(e):void 0;return new vv(n,r,o,s,a)}},xv=class extends ro{constructor(){super()}},Zu=class extends no{constructor(){super()}forDataType(t){return t===$.STRING}prepare(t){}postCalculate(t,e){}aggregate(t,e){}generateAggregatedValues(t){return new xv}},_v=class extends ro{constructor(){super()}},Xu=class extends no{constructor(){super()}forDataType(t){return t===$.UNKNOWN}prepare(t){}postCalculate(t,e){}aggregate(t,e){}generateAggregatedValues(t){return new _v}},Pr="GUI - Summaries Calculators",EI=(()=>{class i{calculators;constructor(e){this.calculators=e}static services=[{inject:Pr,collection:!0}];create(e){return new pv(e,this.calculators)}}return i})(),Ju=class{commandDispatcher=y.resolve(ut);setSummariesEnabled(t,e){this.commandDispatcher.dispatch(new Gu(e,t))}},SI=(()=>{class i{static defaultTop=!1;static defaultBottom=!0;top=i.defaultTop;bottom=i.defaultBottom;setTop(e){this.top=e}setBottom(e){this.bottom=e}isTopEnabled(){return this.top}isBottomEnabled(){return this.bottom}}return i})(),xc=class i extends Fe{static default=new SI;constructor(){super(i.default)}},em=class{convert(t){let e=new SI;return t.top!==void 0&&t.top!==null&&e.setTop(t.top),t.bottom!==void 0&&t.bottom!==null&&e.setBottom(t.bottom),e}},yv=class{defineAggregate(){return null}registerKey(){return li}registerProviders(t){t.provide(EI),t.provide(Ju),t.provide(xc),t.provide(em),t.provideCollection(Pr,Yu),t.provideCollection(Pr,Qu),t.provideCollection(Pr,Ku),t.provideCollection(Pr,Zu),t.provideCollection(Pr,Xu)}registerCommandHandlers(){return[lP]}registerDomainEventHandler(){return[dP]}registerMultiDomainEventHandler(){return[]}},uP=(()=>{class i extends Yr{summariesEnabledArchive;structureSummariesArchive;constructor(e,n){super(),this.summariesEnabledArchive=e,this.structureSummariesArchive=n}static services=[xs,xc];onEnabled(e){return this.summariesEnabledArchive.on(e)}onTopEnabled(e){return this.onEnabled(e).pipe(Ht(n=>this.structureSummariesArchive.on(e).pipe(P(r=>n&&r.isTopEnabled()))))}onBottomEnabled(e){return this.onEnabled(e).pipe(Ht(n=>this.structureSummariesArchive.on(e).pipe(P(r=>n&&r.isBottomEnabled()))))}}return i})(),mP=(()=>{class i extends Hn{summariesDispatcher;configConverter;structureSummariesConfigArchive;constructor(e,n,r){super(),this.summariesDispatcher=e,this.configConverter=n,this.structureSummariesConfigArchive=r}static services=[Ju,em,xc];setSummariesEnabled(e,n){this.summariesDispatcher.setSummariesEnabled(e,n)}setConfig(e,n){let r=this.configConverter.convert(e);this.setSummariesEnabled(e.enabled,n),this.structureSummariesConfigArchive.next(n,r)}}return i})(),wv=class extends Zr{constructor(){super()}onSummariesChanged(t){return this.onEvent(t,bc)}},Cv=class{registerProviders(t){t.provide(Hn,mP),t.provide(Zr,wv),t.provide(Yr,uP),t.provide(xs)}};function hP(){new wt(new Cv,new yv).init()}function Aa(i){return{provide:Pr,useClass:i,multi:!0}}hP();function gP(){return y.resolve(Hn)}function pP(){return y.resolve(Yr)}function fP(){return y.resolve(Zr)}var bP=(()=>{class i extends st{static forComponent(){return[]}static \u0275fac=(()=>{let e;return function(r){return(e||(e=ze(i)))(r||i)}})();static \u0275mod=M({type:i});static \u0275inj=T({providers:[{provide:Hn,useFactory:gP},{provide:Yr,useFactory:pP},{provide:Zr,useFactory:fP},Aa(Yu),Aa(Qu),Aa(Ku),Aa(Zu),Aa(Xu)],imports:[q,Nn,mn,mi]})}return i})(),tm=class{start;end;margin;constructor(t,e,n){this.start=t,this.end=e,this.margin=n}getStart(){return this.start}getEnd(){return this.end}getMargin(){return this.margin}},vP=(()=>{let i=class{containerHeight=Xe.empty();sourceHeight;isContainerHeightProperForVirtualScroll(){return this.containerHeight.isPresent()?this.containerHeight.getValueOrNullOrThrowError()>0:!1}getVisibleContainerHeight(){return this.getHeight()}getHeight(){return this.containerHeight.isPresent()?this.getContainerHeight():this.sourceHeight}getSourceHeight(){return this.sourceHeight}setContainerHeight(e){e>=0&&(this.containerHeight=Xe.of(e))}setSourceSize(e){this.sourceHeight=e}getContainerHeight(){return this.containerHeight.getValueOrNullOrThrowError()>this.sourceHeight?this.sourceHeight:this.containerHeight.getValueOrNullOrThrowError()}};return i=vo([xp],i),i})(),im=class extends me{position;constructor(t,e){super(t,e,"ScrollBarPositionSetEvent"),this.position=e}getPosition(){return this.position}},Iv=class extends Le{position;constructor(t,e){super(t,"ScrollBarPositionSetAggregateEvent"),this.position=e}toDomainEvent(){return new im(this.getAggregateId(),this.position)}},Oa,zn,kv=(zn=class{structureId;enabled;rowHeight=Oa.ROW_HEIGHT;hiddenItemsTop=Oa.HIDDEN_ITEMS_TOP;hiddenItemsBottom=Oa.HIDDEN_ITEMS_BOTTOM;container=new vP;scrollPosition;range;sourceSize;logger;constructor(t,e=!1,n=0,r=0,o=0,s,a,l){this.structureId=t,this.enabled=e,this.sourceSize=r,this.container.setSourceSize(this.sourceSize*this.rowHeight),this.container.setContainerHeight(n),this.scrollPosition=o,Number.isInteger(s)&&(this.rowHeight=s),Number.isInteger(a)&&(this.hiddenItemsTop=a),Number.isInteger(l)&&(this.hiddenItemsBottom=l),this.calculateRange()}isEnabled(){return this.enabled&&this.container.getHeight()>0&&this.sourceSize>0}getViewPortHeight(){return this.container.getVisibleContainerHeight()}getSourceHeight(){return this.container.getSourceHeight()}getRowHeight(){return this.rowHeight}getRange(){return this.range}getTopMargin(){return this.range.getStart()*this.rowHeight}calculateRange(){if(this.calcFullHeight()<=this.container.getHeight()){this.range=new tm(0,this.sourceSize,0);return}let t=Math.ceil(this.container.getHeight()/this.rowHeight),e=Math.floor(this.scrollPosition/this.rowHeight),n=e+t+this.hiddenItemsBottom,r=e;r+t>=this.sourceSize&&(r=this.sourceSize-t);let o=Math.max(e-this.hiddenItemsTop,0);return n>this.sourceSize&&(n=this.sourceSize,o=n-t),this.range=new tm(o,n,r),{start:o,end:n,topMargin:r}}setEnabled(t){this.enabled=t,this.enabled&&!this.container.isContainerHeightProperForVirtualScroll()&&this.logger.warn("Height needs to be specified in order for virtual scroll to work."),this.calculateRange()}setSourceSize(t=0){this.sourceSize=t,this.container.setSourceSize(this.sourceSize*this.rowHeight),this.calculateRange()}setTopHiddenItemsCount(t){this.hiddenItemsTop=t,this.calculateRange()}setBottomHiddenItemsCount(t){this.hiddenItemsBottom=t,this.calculateRange()}setScrollPosition(t){this.scrollPosition=t,this.calculateRange()}scrollToIndex(t){t>=this.sourceSize&&(t=this.sourceSize),t<-1&&(t=0);let e=t*this.rowHeight;return new Iv(this.structureId,e)}setViewportHeight(t){this.container.setContainerHeight(t),this.calculateRange()}setRowHeight(t){this.rowHeight=t,this.container.setSourceSize(this.sourceSize*this.rowHeight),this.calculateRange()}setLogger(t){this.logger=t}calcFullHeight(){return this.sourceSize*this.rowHeight}},Oa=zn,qc(zn,"ROW_HEIGHT",42),qc(zn,"HIDDEN_ITEMS_TOP",5),qc(zn,"HIDDEN_ITEMS_BOTTOM",2),zn);kv=Oa=vo([xp],kv);var DI=(()=>{class i{logger;constructor(e){this.logger=e}static services=[qn];create(e,n=!1,r=-1,o=0,s=0,a,l,d){let p=new kv(e,n,r,o,s,a,l,d);return p.setLogger(this.logger),p}}return i})(),nm=class extends ae{position;constructor(t,e){super(t,"SetScrollPositionCommand"),this.position=e}getPosition(){return this.position}},_c=class extends me{constructor(t){super(t,null,"ScrollPositionSetEvent")}},Ev=class{domainEventPublisher=y.resolve(_e);forCommand(){return nm}handle(t,e){let n=e.getPosition();t.setScrollPosition(n)}publish(t,e){this.domainEventPublisher.publish(new _c(e.getAggregateId()))}},rm=class extends ae{enabled;constructor(t,e){super(t,"SetVerticalScrollEnabledCommand"),this.enabled=e}isEnabled(){return this.enabled}},yc=class extends me{constructor(t){super(t,null,"VerticalScrollEnabledSetEvent")}},Sv=class{domainEventPublisher=y.resolve(_e);forCommand(){return rm}handle(t,e){let n=e.isEnabled();t.setVerticalFormationEnabled(n)}publish(t,e){this.domainEventPublisher.publish(new yc(e.getAggregateId()))}},om=class extends ae{theme;constructor(t,e){super(t,"SetRowHeightBasedOnThemeCommand"),this.theme=e}getTheme(){return this.theme}},wc=class extends me{constructor(t){super(t,null,"RowHeightSetBasedOnThemeEvent")}},Dv=class{domainEventPublisher=y.resolve(_e);forCommand(){return om}handle(t,e){let n=e.getTheme();t.setTheme(n)}publish(t,e){this.domainEventPublisher.publish(new wc(e.getAggregateId()))}},sm=class extends ae{rowHeight;constructor(t,e){super(t,"SetRowHeightCommand"),this.rowHeight=e}getRowHeight(){return this.rowHeight}},Cc=class extends me{constructor(t){super(t,null,"RowHeightSetEvent")}},Tv=class{domainEventPublisher=y.resolve(_e);forCommand(){return sm}handle(t,e){let n=e.getRowHeight();t.getVerticalFormation().setRowHeight(n)}publish(t,e){this.domainEventPublisher.publish(new Cc(e.getAggregateId()))}},am=class extends ae{height;constructor(t,e){super(t,"StructureSetHeightCommand"),this.height=e}getHeight(){return this.height}},Ic=class extends me{constructor(t){super(t,null,"StructureHeightSetEvent")}},Mv=class{domainEventPublisher=y.resolve(_e);forCommand(){return am}handle(t,e){let n=e.getHeight();t.setHeight(n)}publish(t,e){this.domainEventPublisher.publish(new Ic(e.getAggregateId()))}},Dx=(()=>{class i extends Fe{static DEFAULT_POSITION=0;constructor(){super(i.DEFAULT_POSITION)}}return i})(),xP=(()=>{class i{positionRepository;constructor(e){this.positionRepository=e}static services=[Dx];forEvent(){return im}handle(e){e.ofMessageType("ScrollBarPositionSetEvent")&&this.positionRepository.next(e.getAggregateId(),e.getPosition())}}return i})(),cm=class extends ae{position;constructor(t,e){super(t,"SetScrollBarPositionCommand"),this.position=e}getPosition(){return this.position}},Fv=class{forCommand(){return cm}handle(t,e){let n=e.getPosition();t.scrollToIndex(n)}},lm=class{commandDispatcher=y.resolve(ut);setVirtualScrollEnabled(t,e){this.commandDispatcher.dispatch(new rm(e,t))}scrollTo(t,e){this.commandDispatcher.dispatch(new cm(e,t))}setScrollPosition(t,e){this.commandDispatcher.dispatch(new nm(e,t))}},Rv=class{defineAggregate(){return null}registerKey(){return li}registerProviders(t){t.provide(DI),t.provide(lm)}registerCommandHandlers(){return[Ev,Sv,Dv,Tv,Mv,Fv]}registerDomainEventHandler(){return[xP]}registerMultiDomainEventHandler(){return[]}},_P=(()=>{let i=class{enabled;topMargin;sourceHeight;viewportHeight;rowHeight;constructor(e,n,r,o,s){this.enabled=e,this.topMargin=n,this.sourceHeight=r,this.viewportHeight=o,this.rowHeight=s}isEnabled(){return this.enabled}getTopMargin(){return this.topMargin}getSourceHeight(){return this.sourceHeight}getViewPortHeight(){return this.viewportHeight}getRowHeight(){return this.rowHeight}};return i=vo([ed],i),i})(),dm=class{convert(t){let e=t.isEnabled(),n=t.getTopMargin(),r=t.getSourceHeight(),o=t.getViewPortHeight(),s=t.getRowHeight();return new _P(e,n,r,o,s)}},_s=class extends me{constructor(t){super(t,null,"StructureCreatedEvent")}},kc=class extends kr{},yP=(()=>{let i=class{loading;constructor(e){this.loading=e}isLoading(){return this.loading}};return i=vo([ed],i),i})(),um=class{convert(t){return new yP(t.isLoading())}},Av=class extends va{paging;entities;source;verticalFormation;constructor(t,e,n,r,o){super(t),this.paging=e,this.entities=n,this.source=r,this.verticalFormation=o}getPaging(){return this.paging}getEntities(){return this.entities}getSource(){return this.source}getVerticalFormation(){return this.verticalFormation}getTopMargin(){return this.verticalFormation.getTopMargin()}isLoaderVisible(){return this.getSource().isLoading()}getSourceHeight(){return this.verticalFormation.getSourceHeight()}isReadyToDisplay(){return this.entities.length>0}isVerticalScrollEnabled(){return this.verticalFormation.isEnabled()}},TI=(()=>{class i{pagingConverter;sourceConverter;verticalFormationConverter;constructor(e,n,r){this.pagingConverter=e,this.sourceConverter=n,this.verticalFormationConverter=r}static services=[Ld,um,dm];convert(e){let n=e.getPaging(),r=e.getEntities(),o=e.getSource(),s=e.getVerticalFormation();return new Av(e.getId().toReadModelRootId(),this.pagingConverter.convert(n),this.convertSource(r),this.sourceConverter.convert(o),this.verticalFormationConverter.convert(s))}convertSource(e){return e.map(n=>new pc(n.sourceItem,n.getPosition(),n.getId().toString(),n.getVersion()))}}return i})(),Tx=(()=>{class i extends xa{inMemoryProjectStore;structureConverter;constructor(e,n){super(e),this.inMemoryProjectStore=e,this.structureConverter=n}static services=[kc,TI];toReadModel(e){return this.structureConverter.convert(e)}}return i})(),oo=class extends Zi{},so=class extends oo{theme;constructor(t,e){super(t,e,"SchemaThemeSetEvent"),this.theme=e}getTheme(){return this.theme}},Ec=class extends me{constructor(t){super(t,null,"UniqueFilterUnselectedEvent")}},Sc=class extends me{constructor(t){super(t,null,"AllUniqueFilterUnselectedEvent")}},Dc=class extends me{constructor(t){super(t,null,"AllUniqueFilterSelectedEvent")}},Tc=class extends me{constructor(t){super(t,null,"UniqueFilterSelectedEvent")}},MI=(()=>{class i extends vt{inMemoryStructureReadStore;verticalFormation=new Map;verticalFormation$=new Tt(1);domainEventBus=y.resolve(ei);constructor(e){super(),this.inMemoryStructureReadStore=e,this.domainEventBus.ofEvents([_s,yc,eo,Ic,Cc,so,wc,_c,Jr,Ec,Sc,Dc,Tc,ls,Ya,Yn]).pipe(this.hermesTakeUntil()).subscribe(n=>{let r=n.getAggregateId();this.inMemoryStructureReadStore.getById(r).ifPresent(s=>{let a=s.getVerticalFormation();this.next(r,a)})})}static services=[Tx];onVerticalScrollEnabled(e){return this.onVerticalFormation(e).pipe(P(n=>n.isEnabled()),ti())}onRowHeight(e){return this.onVerticalFormation(e).pipe(P(n=>n.getRowHeight()),ti())}onContainerHeight(e){return this.onVerticalFormation(e).pipe(P(n=>n.getViewPortHeight()),ti())}onTopMargin(e){return this.onVerticalFormation(e).pipe(P(n=>n.getTopMargin()),ti())}onVerticalFormation(e){return this.verticalFormation$.toObservable().pipe(ye(n=>{let r=e.getId();return n.has(r)}),P(n=>n.get(e.getId())))}next(e,n){this.verticalFormation.set(e.toString(),n),this.verticalFormation$.next(this.verticalFormation)}}return i})(),wP=(()=>{class i extends un{verticalFormationRepository;positionRepository;constructor(e,n){super(),this.verticalFormationRepository=e,this.positionRepository=n}static services=[MI,Dx];onEnabled(e){return this.verticalFormationRepository.onVerticalScrollEnabled(e)}onRowHeight(e){return this.verticalFormationRepository.onRowHeight(e)}onContainerHeight(e){return this.verticalFormationRepository.onContainerHeight(e)}onTopMargin(e){return this.verticalFormationRepository.onTopMargin(e)}onScrollBarPosition(e){return this.positionRepository.on(e)}}return i})(),ao=class{constructor(){}},CP=(()=>{class i extends ao{verticalFormationDispatcher;constructor(e){super(),this.verticalFormationDispatcher=e}static services=[lm];enableVirtualScroll(e){this.verticalFormationDispatcher.setVirtualScrollEnabled(!0,e)}disableVirtualScroll(e){this.verticalFormationDispatcher.setVirtualScrollEnabled(!1,e)}scrollToTop(e){this.verticalFormationDispatcher.scrollTo(0,e)}scrollToBottom(e){this.verticalFormationDispatcher.scrollTo(Number.MAX_SAFE_INTEGER,e)}scrollToIndex(e,n){this.verticalFormationDispatcher.scrollTo(e,n)}setScrollPosition(e,n){this.verticalFormationDispatcher.setScrollPosition(e,n)}}return i})(),Ov=class{registerProviders(t){t.provide(dm),t.provide(MI),t.provide(un,wP),t.provide(ao,CP),t.provide(Dx)}};function IP(){new wt(new Ov,new Rv).init()}IP();function kP(){return y.resolve(ao)}function EP(){return y.resolve(un)}var SP=(()=>{class i extends st{static forComponent(){return[]}static \u0275fac=(()=>{let e;return function(r){return(e||(e=ze(i)))(r||i)}})();static \u0275mod=M({type:i});static \u0275inj=T({providers:[{provide:ao,useFactory:kP},{provide:un,useFactory:EP}],imports:[q]})}return i})(),mm=class extends vr{},hm=class extends kr{},FI=(()=>{class i extends Ir{constructor(e){super(e)}static services=[hm]}return i})(),RI=(()=>{class i extends mm{inMemorySchemaAggregateStore;constructor(e){super(),this.inMemorySchemaAggregateStore=e}static services=[FI];findById(e){return this.inMemorySchemaAggregateStore.findById(e)}save(e){this.inMemorySchemaAggregateStore.save(e)}}return i})(),ys=class extends Dn{},gm=class extends ys{theme;constructor(t,e){super(t,"SetSchemaThemeCommand"),this.theme=e}getTheme(){return this.theme}},Pv=class{forCommand(){return gm}handle(t,e){let n=e.getTheme();t.changeTheme(n)}},pm=class extends ys{coloring;constructor(t,e){super(t,"SetRowColoringCommand"),this.coloring=e}getColoring(){return this.coloring}},Nv=class{forCommand(){return pm}handle(t,e){let n=e.getColoring();t.setRowColoring(n)}},fm=class extends ys{enabled;constructor(t,e){super(t,"SetSchemaHorizontalGridCommand"),this.enabled=e}isEnabled(){return this.enabled}},jv=class{domainEventPublisher=y.resolve(_e);forCommand(){return fm}handle(t,e){let n=e.isEnabled();t.setHorizontalGrid(n)}publish(t,e){this.domainEventPublisher.publishFromAggregate(t)}},bm=class extends ys{enabled;constructor(t,e){super(t,"SetSchemaVerticalGridCommand"),this.enabled=e}isEnabled(){return this.enabled}},Vv=class{domainEventPublisher=y.resolve(_e);forCommand(){return bm}handle(t,e){let n=e.isEnabled();t.setVerticalGrid(n)}publish(t,e){this.domainEventPublisher.publishFromAggregate(t)}},Mc=class extends Fe{constructor(){super()}},ws=class extends oo{rowColoring;constructor(t,e){super(t,e,"RowColoringSetEvent"),this.rowColoring=e}getRowColoring(){return this.rowColoring}},Cs=class extends oo{horizontalGrid;constructor(t,e){super(t,e,"SchemaHorizontalGridSetEvent"),this.horizontalGrid=e}getHorizontalGrid(){return this.horizontalGrid}},Is=class extends oo{verticalGrid;constructor(t,e){super(t,e,"SchemaVerticalGridSetEvent"),this.verticalGrid=e}getVerticalGrid(){return this.verticalGrid}},Lv=class{verticalGrid;horizontalGrid;theme;rowColoring;constructor(t,e,n,r){this.verticalGrid=t,this.horizontalGrid=e,this.theme=n,this.rowColoring=r}getRowColoring(){return this.rowColoring}},DP=(()=>{class i{schemaCssClassesRepository;rowColoring;horizontalGrid;verticalGrid;schemaTheme;constructor(e){this.schemaCssClassesRepository=e}static services=[Mc];forEvents(){return[so,ws,Cs,Is]}handle(e){e.ofMessageType("RowColoringSetEvent")&&(this.rowColoring=e.getRowColoring()),e.ofMessageType("SchemaHorizontalGridSetEvent")&&(this.horizontalGrid=e.getHorizontalGrid()),e.ofMessageType("SchemaVerticalGridSetEvent")&&(this.verticalGrid=e.getVerticalGrid()),e.ofMessageType("SchemaThemeSetEvent")&&(this.schemaTheme=e.getTheme()),this.publish(e.getAggregateId())}publish(e){this.rowColoring!==void 0&&this.horizontalGrid!==void 0&&this.verticalGrid!==void 0&&this.schemaTheme!==void 0&&this.schemaCssClassesRepository.next(e,new Lv(this.verticalGrid,this.horizontalGrid,this.schemaTheme,this.rowColoring))}}return i})(),_C="SchemaAggregate",vm=class extends bi{constructor(){super()}forEvent(){return Is}},xm=class extends bi{constructor(){super()}forEvent(){return so}},_m=class extends bi{constructor(){super()}forEvent(){return ws}},ym=class extends bi{constructor(){super()}forEvent(){return Cs}},wm=class extends _a{constructor(t){super(t,"CreateSchemaCommand")}},zv=class{forCommand(){return wm}},co=class extends br{},Bv=class extends co{theme;constructor(t,e){super(t,"SchemaThemeSetAggregateEvent"),this.theme=e}toDomainEvent(){return new so(this.getAggregateId(),this.theme)}},Hv=class extends co{rowColoring;constructor(t,e){super(t,"RowColoringSetEvent"),this.rowColoring=e}toDomainEvent(){return new ws(this.getAggregateId(),this.rowColoring)}},$v=class extends co{verticalGrid;constructor(t,e){super(t,"SchemaHorizontalGridSetEvent"),this.verticalGrid=e}toDomainEvent(){return new Is(this.getAggregateId(),this.verticalGrid)}},Uv=class extends co{horizontalGrid;constructor(t,e){super(t,"SchemaHorizontalGridSetEvent"),this.horizontalGrid=e}toDomainEvent(){return new Cs(this.getAggregateId(),this.horizontalGrid)}},Wv=class extends oo{constructor(t){super(t,null,"SchemaCreatedEvent")}},Gv=class extends co{constructor(t){super(t,"SchemaCreatedAggregateEvent")}toDomainEvent(){return new Wv(this.getAggregateId())}},Cm=class i extends xr{static DEFAULT_THEME=H.GENERIC;static DEFAULT_ROW_COLORING=Ge.ODD;static DEFAULT_VERTICAL_GRID=!0;static DEFAULT_HORIZONTAL_GRID=!0;horizontalGrid;verticalGrid;theme;rowColoring;constructor(t){super(t,"SchemaAggregate"),this.setTheme(i.DEFAULT_THEME),this.setHorizontalGrid(i.DEFAULT_HORIZONTAL_GRID),this.setVerticalGrid(i.DEFAULT_VERTICAL_GRID),this.setRowColoring(i.DEFAULT_ROW_COLORING)}createEvent(){return Gv}changeTheme(t){this.setTheme(t),t===H.MATERIAL&&(this.setRowColoring(Ge.NONE),this.setVerticalGrid(!1)),t===H.LIGHT&&(this.setRowColoring(Ge.NONE),this.setVerticalGrid(!1)),t===H.DARK&&(this.setRowColoring(Ge.NONE),this.setVerticalGrid(!1)),t===H.GENERIC&&this.setRowColoring(Ge.ODD)}setRowColoring(t){this.rowColoring=t,this.addEvent(new Hv(this.getId(),this.rowColoring))}setVerticalGrid(t){this.verticalGrid=t,this.addEvent(new $v(this.getId(),this.verticalGrid))}setHorizontalGrid(t){this.horizontalGrid=t,this.addEvent(new Uv(this.getId(),this.horizontalGrid))}setTheme(t){this.theme=t,this.addEvent(new Bv(this.getId(),this.theme))}},qv=class extends fr{constructor(){super()}create(t){return new Cm(t)}},Fc=class extends Fe{constructor(){super()}},Rc=class extends Fe{constructor(){super()}},Yv=class{defineAggregate(){return{aggregateKey:_C,createCommandHandler:zv,factory:qv,repository:RI}}registerKey(){return _C}registerProviders(t){t.provide(Fc),t.provide(Rc)}registerCommandHandlers(){return[Pv,Nv,jv,Vv]}registerDomainEventHandler(){return[xm,ym,_m,vm]}registerMultiDomainEventHandler(){return[DP]}},Im=class{commandDispatcher=y.resolve(ut);create(t){this.commandDispatcher.dispatch(new wm(t))}setTheme(t,e){this.commandDispatcher.dispatch(new gm(e,t))}setRowColoring(t,e){this.commandDispatcher.dispatch(new pm(e,t))}setVerticalGrid(t,e){this.commandDispatcher.dispatch(new bm(e,t))}setHorizontalGrid(t,e){this.commandDispatcher.dispatch(new fm(e,t))}},TP=(()=>{class i extends Ot{schemaDispatcher;structurePublisher;fabricModalThemeService;schemaRowClassArchive;schemaRowStyleArchive;constructor(e,n,r,o,s){super(),this.schemaDispatcher=e,this.structurePublisher=n,this.fabricModalThemeService=r,this.schemaRowClassArchive=o,this.schemaRowStyleArchive=s}static services=[Im,Pt,ri,Fc,Rc];create(e){this.schemaDispatcher.create(e.toAggregateId())}setTheme(e,n,r){this.schemaDispatcher.setTheme(e,n.toAggregateId()),this.fabricModalThemeService.changeTheme(this.toFabricTheme(e)),this.structurePublisher.setRowHeightBasedOnTheme(e,r)}setRowColoring(e,n){let r=this.toSchemaRowColoring(e);this.schemaDispatcher.setRowColoring(r,n.toAggregateId())}setVerticalGrid(e,n){this.schemaDispatcher.setVerticalGrid(e,n.toAggregateId())}setHorizontalGrid(e,n){this.schemaDispatcher.setHorizontalGrid(e,n.toAggregateId())}setRowClass(e,n){return this.schemaRowClassArchive.next(n.toAggregateId(),e)}setRowStyle(e,n){return this.schemaRowStyleArchive.next(n.toAggregateId(),e)}toSchemaRowColoring(e){switch(e){case at.NONE:return Ge.NONE;case at.ODD:return Ge.ODD;case at.EVEN:return Ge.EVEN;default:return Ge.NONE}}toFabricTheme(e){switch(e){case H.DARK:return Ce.DARK;case H.FABRIC:return Ce.FABRIC;case H.GENERIC:return Ce.GENERIC;case H.LIGHT:return Ce.LIGHT;case H.MATERIAL:return Ce.MATERIAL;default:return Ce.FABRIC}}}return i})(),MP=(()=>{class i extends Yt{schemaCssClassesRepository;schemaThemeRepository;schemaHorizontalGridRepository;schemaRowColoringRepository;schemaVerticalGridRepository;schemaRowClassArchive;schemaRowStyleArchive;constructor(e,n,r,o,s,a,l){super(),this.schemaCssClassesRepository=e,this.schemaThemeRepository=n,this.schemaHorizontalGridRepository=r,this.schemaRowColoringRepository=o,this.schemaVerticalGridRepository=s,this.schemaRowClassArchive=a,this.schemaRowStyleArchive=l}static services=[Mc,xm,ym,_m,vm,Fc,Rc];onTheme(e){return this.schemaThemeRepository.on(e.toAggregateId())}onceTheme(e){return Sr(this.onTheme(e))}findTheme(e){return this.schemaThemeRepository.find(e.toAggregateId())}onHorizontalGrid(e){return this.schemaHorizontalGridRepository.on(e.toAggregateId())}onVerticalGrid(e){return this.schemaVerticalGridRepository.on(e.toAggregateId())}onRowColoring(e){return this.schemaRowColoringRepository.on(e.toAggregateId())}onCssClasses(e){return this.schemaCssClassesRepository.on(e.toAggregateId())}onRowClass(e){return this.schemaRowClassArchive.on(e.toAggregateId())}onRowStyle(e){return this.schemaRowStyleArchive.on(e.toAggregateId())}}return i})(),Qv=class extends Bi{constructor(){super()}onThemeChanged(t){return this.onEvent(t,so).pipe(P(e=>e.getTheme()))}onHorizontalGridChanged(t){return this.onEvent(t,Cs).pipe(P(e=>e.getHorizontalGrid()))}onVerticalGridChanged(t){return this.onEvent(t,Is).pipe(P(e=>e.getVerticalGrid()))}onRowColoring(t){return this.onEvent(t,ws).pipe(P(e=>e.getRowColoring()))}},Kv=class{registerProviders(t){t.provide(Im),t.provide(mm,RI),t.provide(FI),t.provide(hm),t.provide(Ot,TP),t.provide(Yt,MP),t.provide(Bi,Qv),t.provide(Mc)}},FP=()=>{new wt(new Kv,new Yv).init()};function RP(){return y.resolve(Ot)}function AP(){return y.resolve(Yt)}function OP(){return y.resolve(Bi)}FP();var PP=(()=>{class i extends st{constructor(){super()}static forComponent(){return[]}static \u0275fac=function(n){return new(n||i)};static \u0275mod=M({type:i});static \u0275inj=T({providers:[{provide:Ot,useFactory:RP},{provide:Yt,useFactory:AP},{provide:Bi,useFactory:OP}],imports:[q]})}return i})(),AI=(()=>{class i{static \u0275fac=function(n){return new(n||i)};static \u0275mod=M({type:i});static \u0275inj=T({imports:[q]})}return i})();RA();function NP(){return y.resolve(ci)}function jP(){return y.resolve(At)}function VP(){return y.resolve(Wn)}function LP(){return y.resolve(Un)}function zP(){return y.resolve(Ur)}var BP=(()=>{class i extends st{constructor(e){super(),y.provideValue(Je,e)}static forComponent(){return[]}static \u0275fac=function(n){return new(n||i)(v(Je))};static \u0275mod=M({type:i});static \u0275inj=T({providers:[{provide:ci,useFactory:NP},{provide:At,useFactory:jP},{provide:Wn,useFactory:VP},Bc,mx,gu,gx,pu,{provide:Un,useFactory:LP},{provide:Ur,useFactory:zP}],imports:[q,Pi,AI,An,tn,ni,nn,md,An,tn,ni,nn]})}return i})(),HP=[JC,eI,tI,iI,nI,rI,oI,sI,aI,cI,lI,dI,uI,mI,hI,gI,pI,fI,bI],km=class extends me{constructor(t){super(t,null,"SetSourceLoadingEvent")}},Em=class extends ae{enabled;constructor(t,e){super(t,"SourceSetLoadingCommand"),this.enabled=e}isEnabled(){return this.enabled}},Zv=class{domainEventPublisher=y.resolve(_e);forCommand(){return Em}handle(t,e){let n=e.isEnabled();t.getSource().setLoading(n)}publish(t,e){this.domainEventPublisher.publish(new km(e.getAggregateId()))}},Sm=class extends ae{items;constructor(t,e=[]){super(t,"SetOriginCommand"),this.items=e}getItems(){return this.items}},$P=(()=>{class i{structureSourceDomainEventPublisher;constructor(e){this.structureSourceDomainEventPublisher=e}static services=[to];forCommand(){return Sm}handle(e,n){let r=n.getItems();e.setOrigin(r)}publish(e,n){let r=e.getEvents();this.structureSourceDomainEventPublisher.publish(r)}}return i})(),Dm=class extends ae{params;constructor(t,e){super(t,"StructureEditSourceItemCommand"),this.params=e}getParams(){return this.params}},UP=(()=>{class i{structureSourceDomainEventPublisher;constructor(e){this.structureSourceDomainEventPublisher=e}static services=[to];forCommand(){return Dm}handle(e,n){let r=n.getParams();e.editItem(r)}publish(e,n){let r=e.getEvents();this.structureSourceDomainEventPublisher.publish(r)}}return i})(),Xv=class extends Le{beforeItem;afterItem;constructor(t,e,n){super(t,"StructureSourceItemEditedAggregateEvent"),this.beforeItem=e,this.afterItem=n}toDomainEvent(){return new $a(this.getAggregateId(),this.beforeItem,this.afterItem)}getBeforeItem(){return this.beforeItem}getAfterItem(){return this.afterItem}},Jv=class extends Le{origin;constructor(t,e){super(t,"StructureOriginChangedAggregateEvent"),this.origin=e}toDomainEvent(){return new eo(this.getAggregateId(),this.origin)}getOrigin(){return this.origin}},ss=class extends Xi{constructor(t){super(t)}toString(){return this.getId()}},Tm=class{events=[];loading=!1;fetched=!1;origin;entities=[];preparedEntities=[];slicedEntities=[];formationManager;constructor(t){this.formationManager=t,this.events.push(...this.formationManager.init(!0,ai.SINGLE,xt.ROW))}isLoading(){return this.loading}setLoading(t){this.loading=t}setEntities(t){this.entities=t,this.recalculatePositions()}getEntities(){return this.entities}setPreparedEntities(){this.preparedEntities=Array.from(this.entities)}getPreparedEntities(){return this.preparedEntities}setSlicedEntities(t){this.slicedEntities=t}getSlicedEntities(){return this.slicedEntities}setOrigin(t=[],e){return this.origin=this.convertItems(t),this.createOriginChangedEvent(e)}setConvertedOrigin(t=[],e){return this.origin=Array.from(t),this.createOriginChangedEvent(e)}getOrigin(){return this.origin}editOriginItem(t,e,n,r){let o=this.findOriginItem(t),s=o.clone();return o&&(o.sourceItem[n.getAccessor()]=e,o.bumpVersion()),[new Xv(r,s,o.clone()),this.createOriginChangedEvent(r)]}deleteAllSelected(t){let e=[];return this.formationManager.getSelectedItemIds().forEach(r=>{e=e.concat(this.deleteOriginItemByItemId(r,t))}),e}deleteOriginItem(t,e){if(t instanceof ss)return this.deleteOriginItemByItemId(t,e);if(Array.isArray(t)){let n=[];return t.forEach(r=>{n=n.concat(this.deleteOneOriginItem(r,e))}),n}else return Number.isInteger(t)?this.deleteOriginItemByIndex(t,e):[]}addOriginItem(t,e){return this.origin.push(t),[this.createOriginChangedEvent(e)]}setCustomConfig(t){return this.formationManager.setCustomConfig(t)}selectCustom(t){this.formationManager.selectCustom(t,this.getEntities())}selectAll(){this.formationManager.selectAll(this.getEntities().map(t=>t.getId()))}unselectAll(){this.formationManager.unselectAll()}selectByIndex(t){this.formationManager.selectByIndex(t,this.getEntities().map(e=>e.getId()))}selectByIds(t){this.formationManager.selectByIds(t,this.getEntities())}reSelect(){this.formationManager.reSelectByIds(this.getEntities())}setSelectedRows(t){this.formationManager.selectRows(t,this.getEntities().map(e=>e.getId()))}toggleRow(t,e){this.formationManager.toggleRow(t,e,this.getEntities().map(n=>n.getId()))}getFormation(){return this.formationManager}convertItems(t){return t.map((e,n)=>new Ou(new ss(Tn.generate()),e,n))}createOriginChangedEvent(t){return new Jv(t,this.origin)}findOriginItem(t){return this.origin.find(e=>e.getId().toString()===t)}findOriginItemIndex(t){return this.origin.findIndex(e=>e.getId().toString()===t)}recalculatePositions(){this.entities.forEach((t,e)=>{t.setPosition(e)})}deleteOneOriginItem(t,e){return t instanceof ss?this.deleteOriginItemByItemId(t,e):Number.isInteger(t)?this.deleteOriginItemByIndex(t,e):[]}deleteOriginItemByItemId(t,e){let n=this.findOriginItemIndex(t.toString());return this.deleteOriginItemByIndex(n,e)}deleteOriginItemByIndex(t,e){if(t>-1){let n=this.origin.splice(t,1);if(n.length>0){for(let r of n)this.formationManager.unselectRow(r.getId());this.formationManager.calculateAllSelected(n.map(r=>r.getId())),this.formationManager.calculateAllUnselected()}return[this.createOriginChangedEvent(e)]}return[]}deleteManyOriginItemByIndex(t,e){let n=[];return t.forEach(r=>{n=n.concat(this.deleteOriginItemByIndex(r,e))}),n}deleteManyOriginItemByItemID(t,e){let n=[];return t.forEach(r=>{n=n.concat(this.deleteOriginItemByItemId(r,e))}),n}},e0=class{mode;type;constructor(t,e){this.mode=t,this.type=e}setMode(t){this.mode=t}getMode(){return this.type===xt.RADIO?ai.SINGLE:this.mode}isSingle(){return this.getMode()===ai.SINGLE}setType(t){this.type=t}getType(){return this.type}},Mm=class extends me{mode;constructor(t,e){super(t,e,"SelectionModeSetEvent"),this.mode=e}getMode(){return this.mode}},Na=class extends Le{mode;constructor(t,e){super(t,"SelectionModeSetAggregateEvent"),this.mode=e}toDomainEvent(){return new Mm(this.getAggregateId(),this.mode)}},Fm=class extends me{selectionType;constructor(t,e){super(t,e,"SelectionTypeSetEvent"),this.selectionType=e}getType(){return this.selectionType}},ja=class extends Le{selectionType;constructor(t,e){super(t,"SelectionTypeSetAggregateEvent"),this.selectionType=e}toDomainEvent(){return new Fm(this.getAggregateId(),this.selectionType)}},Ac=class extends me{enabled;constructor(t,e){super(t,e,"SelectionEnabledSetEvent"),this.enabled=e}isEnabled(){return this.enabled}},Oc=class extends Le{enabled;constructor(t,e){super(t,"SelectionEnabledSetAggregateEvent"),this.enabled=e}toDomainEvent(){return new Ac(this.getAggregateId(),this.enabled)}},Br=class extends _r{constructor(t){super(t)}toString(){return super.getId()}},Hr=class{key;text;customSelectId;builtIn;method;constructor(t,e,n,r,o){this.key=t,this.text=e,this.customSelectId=n,this.builtIn=r,this.method=o}getKey(){return this.key}getText(){return this.text}getCustomSelectId(){return this.customSelectId}isBuiltIn(){return this.builtIn}customSelect(t){return this.method(t)}},Rm=class{enabled;selections;constructor(t,e){this.enabled=t,this.selections=e}isEnabled(){return this.enabled}getSelections(){return this.selections}},WP=(()=>{class i{enabled;selections;static id=0;constructor(e,n){this.enabled=e,this.selections=n}init(){return[]}isEnabled(){return this.enabled}setEnabled(e){this.enabled=e}getSelections(){return this.selections}setSelections(e){this.selections=e.map(n=>typeof n=="string"?new Hr("",n,new Br(n),!0):(i.id++,new Hr(n.key,n.text,new Br(`${i.id}`),!1,n.select)))}findSelection(e){return Xe.of(this.selections.find(n=>n.getCustomSelectId().equals(e)))}}return i})(),Am=class extends me{customSelection;constructor(t,e){super(t,e,"FormationCustomSelectionChangeEvent"),this.customSelection=e}getCustomSelection(){return this.customSelection}},Om=class extends Le{customSelection;constructor(t,e){super(t,"FormationCustomSelectionChangeAggregateEvent"),this.customSelection=e}toDomainEvent(){return new Am(this.getAggregateId(),this.customSelection)}},t0=class{id;selectedItemIds;enabled;selection=new e0(ai.SINGLE,xt.ROW);allSelected;allUnselected;customSelection;matcher=t=>t.id;constructor(t,e){this.id=t,this.selectedItemIds=e}init(t,e,n){return this.enabled=t,this.selection.setMode(e),this.selection.setType(n),this.customSelection=new WP(!1,[new Hr("select_all","SELECT_ALL",new Br("SELECT_ALL"),!0),new Hr("UNSELECT_ALL","UNSELECT_ALL",new Br("UNSELECT_ALL"),!0),new Hr("","INVERT",new Br("INVERT"),!0)]),[new Oc(this.getId(),this.enabled),new Na(this.getId(),this.selection.getMode()),new ja(this.getId(),this.selection.getType()),new Om(this.getId(),new Rm(this.customSelection.isEnabled(),this.customSelection.getSelections()))]}setSelection(t){return this.enabled=t,[new Oc(this.getId(),this.enabled)]}setMode(t){return this.selection.setMode(t),[new Na(this.getId(),this.selection.getMode()),new ja(this.getId(),this.selection.getType())]}setType(t){return this.selection.setType(t),[new Na(this.getId(),this.selection.getMode()),new ja(this.getId(),this.selection.getType())]}setMatcher(t){this.matcher=t}setCustomConfig(t){return t?.enabled&&this.customSelection.setEnabled(t.enabled),t?.selections&&this.customSelection.setSelections(t.selections),[new Om(this.getId(),new Rm(this.customSelection.isEnabled(),this.customSelection.getSelections()))]}isAllSelected(){return this.allSelected}isAllUnselected(){return this.allUnselected}getSelectedItemIds(){return Array.from(this.selectedItemIds).map(t=>new ss(t))}selectCustom(t,e){this.customSelection.findSelection(t).ifPresent(n=>{if(n.isBuiltIn())switch(n.getCustomSelectId().toString()){case"SELECT_ALL":this.selectAll(e.map(r=>r.getId()));break;case"UNSELECT_ALL":this.unselectAll();break;case"INVERT":this.invertSelected(e.map(r=>r.getId()));break;default:break}else{let r=n.customSelect(e);this.selectedItemIds=new Set(r.map(o=>o.getId().toString()))}})}selectAll(t){this.selectedItemIds=new Set(t.map(e=>e.toString())),this.allSelected=!0,this.allUnselected=!1}unselectAll(){this.selectedItemIds.clear(),this.allSelected=!1,this.allUnselected=!0}invertSelected(t){let e=this.getSelectedItemIds(),n=t.filter(r=>!e.some(o=>o.equals(r)));this.selectedItemIds=new Set(n.map(r=>r.toString())),this.calculateAllSelected(t),this.calculateAllUnselected()}reSelectByIds(t){this.selectByIds(this.getSelectedItemIds().map(e=>e.getId()),t),this.calculateAllSelected(t.map(e=>e.getId())),this.calculateAllUnselected()}selectByIds(t,e){if(!this.enabled)return;let n=[];for(let o=0;o<t.length;o++){let s=e.filter(a=>this.matcher(a.getSourceItem())===t[o]).map(a=>a.getId().toString());n.push(...s)}let r=Ut.ADD;this.selection.isSingle()&&(r=Ut.NONE),n.forEach(o=>{this.toggleRowByType(r,o)}),this.calculateAllSelected(e.map(o=>o.getId())),this.calculateAllUnselected()}selectByIndex(t,e){if(!this.enabled)return;let n=t.map(o=>(e[o]||console.error("Item not found"),e[o].toString())),r=Ut.ADD;this.selection.isSingle()&&(r=Ut.NONE),n.forEach(o=>{this.toggleRowByType(r,o)}),this.calculateAllSelected(e),this.calculateAllUnselected()}selectRows(t,e){}toggleRow(t,e,n){this.enabled&&(e===Ut.ADD&&this.selection.isSingle()&&(e=Ut.NONE),this.toggleRowByType(e,t),this.calculateAllSelected(n),this.calculateAllUnselected())}calculateAllSelected(t){if(t.length!==this.selectedItemIds.size)this.allSelected=!1;else{let e=Array.from(this.selectedItemIds),n=!0;e.sort(),t.sort();for(let r=0;r<e.length;r+=1)if(e[r]!==t[r].toString()){n=!1;break}this.allSelected=n}}calculateAllUnselected(){this.allUnselected=this.selectedItemIds.size===0}unselectRow(t){this.selectedItemIds.has(t.toString())&&this.selectedItemIds.delete(t.toString())}getId(){return this.id}getType(){return this.selection.getType()}toggleRowByType(t,e){switch(t){case Ut.NONE:this.selectedItemIds.has(e)?this.selectedItemIds.delete(e):(this.selectedItemIds.clear(),this.selectedItemIds.add(e));break;case Ut.ADD:this.selectedItemIds.has(e)?this.selectedItemIds.delete(e):this.selectedItemIds.add(e);break;case Ut.RANGE:break;default:break}}},Pm=class{create(t){return new t0(t,new Set)}},OI=(()=>{class i{formationManagerFactory;constructor(e){this.formationManagerFactory=e}static services=[Pm];createDefault(e){let n=this.formationManagerFactory.create(e);return new Tm(n)}create(e){let n=this.formationManagerFactory.create(e);return new Tm(n)}}return i})(),Pa=function(i){return i[i.INDEX=0]="INDEX",i[i.ITEM_ID=1]="ITEM_ID",i[i.MANY_INDEX=2]="MANY_INDEX",i[i.MANY_ITEM_ID=3]="MANY_ITEM_ID",i}(Pa||{}),jr=class i extends ae{payload;type;constructor(t,e,n){super(t,"DeleteOriginItemCommand"),this.payload=e,this.type=n}static byIndex(t,e){return new i(t,e,Pa.INDEX)}static byManyIndex(t,e){return new i(t,e,Pa.MANY_INDEX)}static byItemId(t,e){return new i(t,e,Pa.ITEM_ID)}static byManyItemId(t,e){return new i(t,e,Pa.MANY_ITEM_ID)}getType(){return this.type}getPayload(){return this.payload}},i0=class{forCommand(){return jr}handle(t,e){t.deleteItem(e.getPayload())}},Mx=(()=>{class i extends Fe{static default=[];constructor(){super(i.default)}}return i})(),GP=(()=>{class i{structureSourceOriginRepository;constructor(e){this.structureSourceOriginRepository=e}static services=[Mx];forEvent(){return eo}handle(e){if(e.ofMessageType("OriginSetEvent")){let n=e.getOrigin();this.structureSourceOriginRepository.next(e.getAggregateId(),n)}}}return i})(),Fx=(()=>{class i extends Fe{static default=[];constructor(){super(i.default)}getPreparedItems(e){return this.find(e).getValueOrNullOrThrowError()}}return i})(),qP=(()=>{class i{structurePreparedItemsRepository;constructor(e){this.structurePreparedItemsRepository=e}static services=[Fx];forEvent(){return vc}handle(e){if(e.ofMessageType("StructurePreparedEntitiesSetEvent")){let n=e.getPreparedItems();this.structurePreparedItemsRepository.next(e.getAggregateId(),n)}}}return i})(),n0=class{defineAggregate(){return null}registerKey(){return li}registerProviders(t){t.provide(Mx),t.provide(OI),t.provide(to)}registerCommandHandlers(){return[Zv,$P,UP,i0]}registerDomainEventHandler(){return[GP,qP]}registerMultiDomainEventHandler(){return[]}},YP=(()=>{class i extends Qt{structureRepository;structurePreparedItemsRepository;structureSourceOriginRepository;constructor(e,n,r){super(),this.structureRepository=e,this.structurePreparedItemsRepository=n,this.structureSourceOriginRepository=r}static services=[Gr,Fx,Mx];findItems(e){return this.structureRepository.getStructure(e).getEntities()}onItems(e){return this.structureRepository.on(e).pipe(P(n=>n.getEntities()),ti((n,r)=>{if(n.length!==r.length)return!1;let o=!0;return n.forEach((s,a)=>{if(!s.equals(r[a])){o=!1;return}}),o}))}onItemsSize(e){return this.onItems(e).pipe(P(n=>n.length))}onceItems(e){return Sr(this.onItems(e))}onOriginSize(e){return this.structureSourceOriginRepository.on(e).pipe(P(n=>n.length))}onLoading(e){return this.structureRepository.on(e).pipe(P(n=>n.getSource().isLoading()))}onPreparedItems(e){return this.structurePreparedItemsRepository.on(e)}findPreparedItems(e){return this.structurePreparedItemsRepository.getPreparedItems(e)}}return i})(),QP=(()=>{class i extends Wt{commandDispatcher;fieldWarehouse;sourceReadModelService;constructor(e,n,r){super(),this.commandDispatcher=e,this.fieldWarehouse=n,this.sourceReadModelService=r}static services=[ut,Xr,Qt];setOrigin(e,n){this.commandDispatcher.dispatch(new Sm(n,e))}setLoading(e,n){this.commandDispatcher.dispatch(new Em(n,e))}editItem(e,n){this.commandDispatcher.dispatch(new Dm(n,e))}editItemByIndex(e,n,r,o){let s=Ji(this.sourceReadModelService.onceItems(o).pipe(P(l=>l[e].getId()))),a=Ji(this.fieldWarehouse.onFields(o));Mn(u_(s,a)).pipe(Er(1)).subscribe(l=>{let d=l[0],p=l[1];this.editItem(new uc(d,p[n],r),o)})}deleteRow(e,n){e.getItemId()!==void 0?this.deleteItemById(e.getItemId(),n):e.getIndex()!==void 0&&this.deleteItemByIndex(e.getIndex(),n)}deleteRows(e,n){e.length>0&&(e[0].getItemId()!==void 0?this.deleteManyItemsByItemIds(e.map(r=>r.getItemId()),n):e[0].getIndex()!==void 0&&this.deleteManyItemsByIndex(e.map(r=>r.getIndex()),n))}deleteItemByIndex(e,n){this.commandDispatcher.dispatch(jr.byIndex(n,e))}deleteItemById(e,n){this.commandDispatcher.dispatch(jr.byItemId(n,e))}deleteManyItemsByIndex(e,n){this.commandDispatcher.dispatch(jr.byManyIndex(n,e))}deleteManyItemsByItemIds(e,n){this.commandDispatcher.dispatch(jr.byManyItemId(n,e))}}return i})(),r0=class{registerProviders(t){t.provide(Wt,QP),t.provide(Qt,YP),t.provide($r),t.provide(Fx),t.provide(um)}};function KP(){new wt(new r0,new n0).init()}KP();function ZP(){return y.resolve(Wt)}function XP(){return y.resolve(Qt)}function JP(){return y.resolve($r)}var eN=(()=>{class i extends st{static forComponent(){return[]}static \u0275fac=(()=>{let e;return function(r){return(e||(e=ze(i)))(r||i)}})();static \u0275mod=M({type:i});static \u0275inj=T({providers:[{provide:Wt,useFactory:ZP},{provide:Qt,useFactory:XP},{provide:$r,useFactory:JP}],imports:[q]})}return i})();y.provide(Wr);function tN(){return y.resolve(Wr)}var iN=(()=>{class i{static \u0275fac=function(n){return new(n||i)};static \u0275mod=M({type:i});static \u0275inj=T({providers:[{provide:Wr,useFactory:tN}]})}return i})(),nN=(()=>{class i{static \u0275fac=function(n){return new(n||i)};static \u0275mod=M({type:i});static \u0275inj=T({imports:[iN]})}return i})(),rN=(()=>{class i{static \u0275fac=function(n){return new(n||i)};static \u0275mod=M({type:i});static \u0275inj=T({providers:[qC]})}return i})(),Nm=class{itemIds;allSelected;allUnselected;constructor(t,e,n){this.itemIds=t,this.allSelected=e,this.allUnselected=n}getAll(){return this.itemIds}isSelected(t){return this.itemIds.some(e=>e===t)}isAllSelected(){return this.allSelected}isAllUnselected(){return this.allUnselected}isIndeterminate(){return!(this.isAllSelected()||this.isAllUnselected())}},Pc=class i extends Fe{static default=new Nm([],!1,!1);constructor(){super(i.default)}},jm=class extends ae{enabled;constructor(t,e){super(t,"SetEnabledSelectionCommand"),this.enabled=e}isEnabled(){return this.enabled}},o0=class{forCommand(){return jm}handle(t,e){t.setSelection(e.isEnabled())}},Vm=class extends ae{selectedRow;type;constructor(t,e,n){super(t,"ToggleSelectedRowCommand"),this.selectedRow=e,this.type=n}getSelectedRow(){return this.selectedRow}getType(){return this.type}},s0=class{forCommand(){return Vm}handle(t,e){let n=e.getSelectedRow(),r=e.getType();t.toggleRow(n,r)}},oN=(()=>{class i{rowSelectedArchive;constructor(e){this.rowSelectedArchive=e}static services=[Pc];forEvent(){return Ua}handle(e){if(e.ofMessageType("SelectedRowChangedEvent")){let n=new Nm(e.getSelectedRows(),e.isAllSelected(),e.isAllUnselected());this.rowSelectedArchive.next(e.getAggregateId(),n)}}}return i})(),Lm=class extends ae{mode;constructor(t,e){super(t,"SetSelectionModeCommand"),this.mode=e}getMode(){return this.mode}},a0=class{forCommand(){return Lm}handle(t,e){t.setSelectionMode(e.getMode())}},zm=class extends ae{constructor(t){super(t,"SelectAllRowsCommand")}},c0=class{forCommand(){return zm}handle(t,e){t.selectAll()}},Bm=class extends ae{constructor(t){super(t,"UnselectAllRowsCommand")}},l0=class{forCommand(){return Bm}handle(t,e){t.unselectAll()}},Hm=class extends ae{type;constructor(t,e){super(t,"SetSelectionTypeCommand"),this.type=e}getType(){return this.type}},d0=class{forCommand(){return Hm}handle(t,e){t.setSelectionType(e.getType())}},$m=class extends bi{constructor(){super()}forEvent(){return Fm}},Um=class extends bi{constructor(){super()}forEvent(){return Mm}},Wm=class extends bi{constructor(){super()}forEvent(){return Ac}},Gm=class extends ae{selectedRows;constructor(t,e){super(t,"SetSelectedRowCommand"),this.selectedRows=e}getSelectedRows(){return this.selectedRows}},u0=class{forCommand(){return Gm}handle(t,e){let n=e.getSelectedRows();t.setSelectedRows(n)}},qm=class extends ae{indexes;constructor(t,e){super(t,"SelectRowByIndexCommand"),this.indexes=e}getIndexes(){return this.indexes}},m0=class{forCommand(){return qm}handle(t,e){let n=e.getIndexes();t.selectByIndex(n)}},Ym=class extends ae{ids;constructor(t,e){super(t,"SelectRowByIdCommand"),this.ids=e}getIds(){return this.ids}},h0=class{forCommand(){return Ym}handle(t,e){let n=e.getIds();t.selectByIds(n)}},Qm=class extends ae{matcher;constructor(t,e){super(t,"FormationSetMatcherCommand"),this.matcher=e}getMatcher(){return this.matcher}},g0=class{forCommand(){return Qm}handle(t,e){let n=e.getMatcher();t.setFormationMatcher(n)}},Km=class extends bi{constructor(){super()}forEvent(){return Am}},Zm=class extends ae{customSelectId;constructor(t,e){super(t,"FormationCustomSelectCommand"),this.customSelectId=e}getCustomSelectId(){return this.customSelectId}},p0=class{forCommand(){return Zm}handle(t,e){let n=e.getCustomSelectId();t.selectCustom(n)}},Xm=class extends ae{config;constructor(t,e){super(t,"FormationSetCustomSelectConfigCommand"),this.config=e}getConfig(){return this.config}},f0=class{forCommand(){return Xm}handle(t,e){let n=e.getConfig();t.setSelectionCustomConfig(n)}},b0=class{defineAggregate(){return null}registerKey(){return li}registerProviders(t){t.provide(Pm)}registerCommandHandlers(){return[o0,a0,d0,c0,l0,s0,u0,m0,h0,g0,p0,f0]}registerDomainEventHandler(){return[oN,$m,Um,Wm,Km]}registerMultiDomainEventHandler(){return[]}},sN=(()=>{class i extends Rt{rowSelectedRepository;formationModeRepository;formationTypeRepository;formationEnabledRepository;formationCustomRepository;sourceWarehouse;constructor(e,n,r,o,s,a){super(),this.rowSelectedRepository=e,this.formationModeRepository=n,this.formationTypeRepository=r,this.formationEnabledRepository=o,this.formationCustomRepository=s,this.sourceWarehouse=a}static services=[Pc,Um,$m,Wm,Km,Qt];findSelectedRows(e){let n=this.sourceWarehouse.findPreparedItems(e),r=this.findSelectedItemIds(e).getValueOrNullOrThrowError(),o=[],s=n.length;for(let a=0;a<s;a+=1){let l=n[a];r.some(d=>d===l.getId().toString())&&o.push(new as(l.getSourceItem(),a,l.getId()))}return Xe.of(o)}onRowSelectedReadModel(e){return this.rowSelectedRepository.on(e)}findSelectedItemIds(e){return this.rowSelectedRepository.find(e).map(n=>n.getAll())}onSelectedRows(e){return this.rowSelectedRepository.on(e).pipe(P(n=>n.getAll()))}onMode(e){return this.formationModeRepository.on(e)}onType(e){return this.formationTypeRepository.on(e)}onSelectionEnabled(e){return this.formationEnabledRepository.on(e)}onCustomSelections(e){return this.formationCustomRepository.on(e)}}return i})(),aN=(()=>{class i extends _t{commandDispatcher;constructor(e){super(),this.commandDispatcher=e}static services=[ut];setSelection(e,n){this.commandDispatcher.dispatch(new jm(n,e))}selectRows(e,n){this.commandDispatcher.dispatch(new Gm(n,e))}selectByIndex(e,n){this.commandDispatcher.dispatch(new qm(n,e))}selectByIds(e,n){this.commandDispatcher.dispatch(new Ym(n,e))}toggleSelectedRow(e,n,r){this.commandDispatcher.dispatch(new Vm(r,e,n))}changeMode(e,n){this.commandDispatcher.dispatch(new Lm(n,e))}changeType(e,n){this.commandDispatcher.dispatch(new Hm(n,e))}setMatcher(e,n){this.commandDispatcher.dispatch(new Qm(n,e))}selectAll(e){this.commandDispatcher.dispatch(new zm(e))}unselectAll(e){this.commandDispatcher.dispatch(new Bm(e))}selectCustom(e,n){this.commandDispatcher.dispatch(new Zm(n,e))}setCustomSelection(e,n){this.commandDispatcher.dispatch(new Xm(n,e))}}return i})(),v0=class{registerProviders(t){t.provide(Pc),t.provide(Qn),t.provide(_t,aN),t.provide(Rt,sN)}};function cN(){new wt(new v0,new b0).init()}cN();function lN(){return y.resolve(_t)}function dN(){return y.resolve(Rt)}function uN(){return y.resolve(Qn)}var mN=(()=>{class i extends st{static \u0275fac=(()=>{let e;return function(r){return(e||(e=ze(i)))(r||i)}})();static \u0275mod=M({type:i});static \u0275inj=T({providers:[{provide:_t,useFactory:lN},{provide:Rt,useFactory:dN},{provide:Qn,useFactory:uN}],imports:[q,mi,tn,Rr]})}return i})(),Jm=class extends ae{constructor(t){super(t,"CreateStructureCommand")}},x0=class{forCommand(){return Jm}},_0=class extends Le{preparedItems;constructor(t,e){super(t,"StructurePreparedEntitiesSetAggregateEvent"),this.preparedItems=e}toDomainEvent(){return new vc(this.getAggregateId(),this.preparedItems)}getPreparedItems(){return this.preparedItems}},y0=class extends Le{fieldConfigs;fields;constructor(t,e,n){super(t,"FieldsInitedAggregateEvent"),this.fieldConfigs=e,this.fields=n}toDomainEvent(){return new cs(this.getAggregateId(),this.fieldConfigs,this.fields)}getFieldConfigs(){return this.fieldConfigs}getFields(){return this.fields}},w0=class extends Le{constructor(t){super(t,"StructureCreatedAggregateEvent")}toDomainEvent(){return new _s(this.getAggregateId())}},C0=class extends Le{filterTypes;constructor(t,e){super(t,"FilterTypesInitedAggregateEvent"),this.filterTypes=e}toDomainEvent(){return new Eu(this.getAggregateId(),this.filterTypes)}getFilterTypes(){return this.filterTypes}},I0=class extends Le{constructor(t){super(t,"FilterAddedEvent")}toDomainEvent(){return new Yn(this.getAggregateId(),[])}},k0=class extends Le{activeFilters;constructor(t,e){super(t,"FilterAddedEvent"),this.activeFilters=e}toDomainEvent(){return new Yn(this.getAggregateId(),this.activeFilters)}},E0=class extends Le{activeFilters;constructor(t,e){super(t,"FilterRemovedAggregateEvent"),this.activeFilters=e}toDomainEvent(){return new Yn(this.getAggregateId(),this.activeFilters)}},S0=class extends Le{map;constructor(t,e){super(t,"UniqueFilterCalculatedAggregateEvent"),this.map=e}toDomainEvent(){return new Du(this.getAggregateId(),this.map)}},D0=class extends Le{constructor(t){super(t,"UniqueFilterSelectedAggregateEvent")}toDomainEvent(){return new Tc(this.getAggregateId())}},T0=class extends Le{constructor(t){super(t,"UniqueFilterUnselectedAggregateEvent")}toDomainEvent(){return new Ec(this.getAggregateId())}},M0=class extends Le{constructor(t){super(t,"AllUniqueFilterUnselectedAggregateEvent")}toDomainEvent(){return new Sc(this.getAggregateId())}},F0=class extends Le{constructor(t){super(t,"AllUniqueFilterSelectedAggregateEvent")}toDomainEvent(){return new Dc(this.getAggregateId())}},R0=class extends Le{selectedRows;allSelected;allUnselected;constructor(t,e,n,r){super(t,"SelectedRowChangedAggregateEvent"),this.selectedRows=e,this.allSelected=n,this.allUnselected=r}toDomainEvent(){return new Ua(this.getAggregateId(),this.selectedRows,this.allSelected,this.allUnselected)}},A0=class extends xr{pagingManager;sourceManager;sorterManager;filterManager;searchManager;verticalFormation;fieldCollection;summariesManager;uniqueFilterManager;constructor(t,e,n,r,o,s,a,l,d,p){super(t,li),this.pagingManager=e,this.sourceManager=n,this.verticalFormation=r,this.summariesManager=o,this.sorterManager=s,this.filterManager=a,this.uniqueFilterManager=l,this.searchManager=d,this.fieldCollection=p,this.addEvent(this.sourceManager.events),this.sourceManager.events=[]}createEvent(){return w0}clearEvents(){super.clearEvents(),this.pagingManager.clearEvents()}init(){this.initTheme()}setVerticalFormationEnabled(t){this.verticalFormation.setEnabled(t),this.calculateSource()}getVerticalFormation(){return this.verticalFormation}setSummariesEnabled(t){return this.summariesManager.setEnabled(t),this.calculateSource(),this.getEvents()}setOrigin(t){return this.addEvent(this.sourceManager.setOrigin(t,this.getId())),this.calculateUniqueValues(),this.calculateSource(),this.getEvents()}deleteItem(t){this.addEvent(this.sourceManager.deleteOriginItem(t,this.getId())),this.generateSelectedRowChangedEvent(),this.calculateSource()}editItem(t){let e=t.getItemId(),n=t.getColumnFieldId(),r=this.fieldCollection.getField(n),o=t.getValue();return this.sourceManager.editOriginItem(e,o,r,this.getId()).forEach(a=>this.addEvent(a)),this.calculateUniqueValues(),this.calculateSource(),this.getEvents()}setHeight(t){this.verticalFormation.setViewportHeight(t),this.calculateSourceBasedOnVirtualScroll()}setTheme(t){t===H.MATERIAL&&this.getVerticalFormation().setRowHeight(52),t===H.GENERIC&&this.getVerticalFormation().setRowHeight(42),t===H.FABRIC&&this.getVerticalFormation().setRowHeight(36),t===H.LIGHT&&this.getVerticalFormation().setRowHeight(56),t===H.DARK&&this.getVerticalFormation().setRowHeight(38)}setScrollPosition(t){this.verticalFormation.setScrollPosition(t),this.calculateSourceBasedOnVirtualScroll()}scrollToIndex(t){this.addEvent(this.verticalFormation.scrollToIndex(t))}setSelection(t){this.sourceManager.getFormation().setSelection(t),this.addEvent(new Oc(this.getId(),t))}setSelectionMode(t){this.addEvent(this.sourceManager.getFormation().setMode(t))}setSelectionType(t){this.addEvent(this.sourceManager.getFormation().setType(t))}setFormationMatcher(t){this.getFormation().setMatcher(t),this.sourceManager.reSelect(),this.generateSelectedRowChangedEvent()}selectByIndex(t){this.sourceManager.selectByIndex(t),this.generateSelectedRowChangedEvent()}selectByIds(t){this.sourceManager.selectByIds(t),this.generateSelectedRowChangedEvent()}setSelectedRows(t){this.sourceManager.setSelectedRows(t),this.generateSelectedRowChangedEvent()}setSelectionCustomConfig(t){this.addEvent(this.sourceManager.setCustomConfig(t))}toggleRow(t,e){this.sourceManager.toggleRow(t,e),this.generateSelectedRowChangedEvent()}selectCustom(t){this.sourceManager.selectCustom(t),this.generateSelectedRowChangedEvent()}selectAll(){this.sourceManager.selectAll(),this.generateSelectedRowChangedEvent()}unselectAll(){this.sourceManager.unselectAll(),this.generateSelectedRowChangedEvent()}getFormation(){return this.sourceManager.getFormation()}getPaging(){return this.pagingManager}changePaging(t){this.pagingManager.change(t),this.calculateSource()}setPaging(t){this.pagingManager=t,this.calculateSource()}nextPage(){this.pagingManager.nextPage(),this.calculateSource()}prevPage(){this.pagingManager.prevPage(),this.calculateSource()}changePageSize(t){return this.pagingManager.changePageSize(t).forEach(n=>{this.addEvent(n)}),this.calculateSource(),this.getEvents()}getEntities(){return this.sourceManager.getSlicedEntities()}getSource(){return this.sourceManager}createFields(t){this.fieldCollection.initFields(t);let e=this.fieldCollection.getAllFields();return this.addEvent(new y0(this.getId(),t,e)),this.filterManager.assignFilterTypes(e),this.addEvent(new C0(this.getId(),this.filterManager.getFilterTypes())),this.getEvents()}setSortingConfig(t){this.sorterManager.setConfig(t)}toggleSort(t){let e=this.fieldCollection.getField(t);return this.sorterManager.toggle(e),this.calculateSource(),this.sorterManager.getAll()}setSortOrder(t,e){let n=this.fieldCollection.getField(t);return this.sorterManager.setSortOrder(n,e),this.calculateSource(),this.sorterManager.getAll()}setFilterConfig(t){this.filterManager.getSettings().setFilterConfig(t)}setQuickFiltersConfig(t){this.filterManager.getSettings().setQuickFiltersConfig(t)}toggleFilter(t,e,n){return this.fieldCollection.getField(t)===void 0?[]:(this.calculateSource(),[])}addFilter(t,e,n){this.filterManager.add(t,e,n);let r=this.fieldCollection.getFieldsAsMap(),o=this.filterManager.getAllActiveFilters(r);this.addEvent(new k0(this.getId(),o)),this.calculateSource()}removeAllFilters(){this.filterManager.removeAll(),this.addEvent(new I0(this.getId())),this.calculateSource()}removeFilter(t){this.filterManager.remove(t);let e=this.fieldCollection.getFieldsAsMap(),n=this.filterManager.getAllActiveFilters(e);this.addEvent(new E0(this.getId(),n)),this.calculateSource()}setSearchingConfig(t){this.filterManager.getSettings().setSearchingConfig(t)}addSearchPhrase(t){let e=this.fieldCollection.getAllFields();return this.searchManager.addSearchPhrase(e,t),this.calculateSource(),[]}removeSearchPhrase(){return this.searchManager.removeSearchFilters(),this.calculateSource(),[]}selectAllUniqueFilter(t){this.uniqueFilterManager.selectAll(t),this.addEvent(new F0(this.getId())),this.generateCalculateUniqueValuesAggregateEvent(),this.calculateSource()}selectUniqueFilter(t,e){this.uniqueFilterManager.select(t,e),this.addEvent(new D0(this.getId())),this.generateCalculateUniqueValuesAggregateEvent(),this.calculateSource()}unselectAllUniqueFilter(t){this.uniqueFilterManager.unselectAll(t),this.addEvent(new M0(this.getId())),this.generateCalculateUniqueValuesAggregateEvent(),this.calculateSource()}unselectUniqueFilter(t,e){this.uniqueFilterManager.unselect(t,e),this.addEvent(new T0(this.getId())),this.generateCalculateUniqueValuesAggregateEvent(),this.calculateSource()}calculateSource(){if(!this.sourceManager.getOrigin()||!this.pagingManager)return;this.sourceManager.setEntities(this.sourceManager.getOrigin()),this.sourceManager.setEntities(this.filterManager.filter(this.sourceManager.getEntities(),this.fieldCollection.getFieldsAsMap()));let t=this.searchManager.search(this.sourceManager.getEntities());this.sourceManager.setEntities(t);let e=this.sorterManager.sort(this.sourceManager.getEntities());this.sourceManager.setEntities(e),this.sourceManager.setPreparedEntities(),this.pagingManager.setSourceSize(this.sourceManager.getPreparedEntities().length),this.addEvent(new _0(this.getId(),e)),this.summariesManager.calculate(this.fieldCollection.getAllFields(),this.sourceManager.getEntities()).forEach(r=>{this.addEvent(r)}),this.sourceManager.setEntities(this.pagingManager.sample(this.sourceManager.getEntities())),this.verticalFormation.setSourceSize(this.sourceManager.getEntities().length),this.calculateSourceBasedOnVirtualScroll()}calculateSourceBasedOnVirtualScroll(){if(this.verticalFormation.isEnabled()){let t=this.verticalFormation.getRange();this.sourceManager.setSlicedEntities(this.sourceManager.getEntities().slice(t.getStart(),t.getEnd()))}else this.sourceManager.setSlicedEntities(this.sourceManager.getEntities())}initTheme(){let t=Cm.DEFAULT_THEME;this.setTheme(t)}calculateUniqueValues(){let t=this.fieldCollection.getAllFields(),e=this.sourceManager.getOrigin();this.uniqueFilterManager.calculateAll(e,t),this.generateCalculateUniqueValuesAggregateEvent()}generateCalculateUniqueValuesAggregateEvent(){this.addEvent(new S0(this.getId(),this.uniqueFilterManager.getAll(this.fieldCollection.getAllFields())))}generateSelectedRowChangedEvent(){this.addEvent(new R0(this.getId(),this.sourceManager.getFormation().getSelectedItemIds().map(t=>t.toString()),this.sourceManager.getFormation().isAllSelected(),this.sourceManager.getFormation().isAllUnselected()))}},O0=class{sorterId;columnId;field;rank=1;direction;constructor(t,e,n=!0){this.sorterId=t,this.field=e,this.direction=n}getId(){return this.sorterId}getRank(){return this.rank}getField(){return this.field}hasDirection(){return this.direction}changeDirection(){this.direction=!this.direction}setDirection(t){this.direction=t}sort(t){return t.length===0?t:t.sort((e,n)=>this.field.sort(e,n,this.direction))}},P0=class{sorterId;constructor(t){this.sorterId=t}getId(){return this.sorterId}},N0=class{enabled;multi;sorters=new Map;constructor(t=!1,e=!1){this.enabled=t,this.multi=e}setConfig(t){t&&t.enabled!==void 0&&t.enabled!==null&&(this.enabled=t.enabled),t&&t.multiSorting!==void 0&&t.multiSorting!==null&&(this.multi=t.multiSorting,this.sorters.clear())}toggle(t){let e=t.getId(),n=this.sorters.get(e.getId());n?n.hasDirection()?n.changeDirection():this.delete(e):this.add(t)}setSortOrder(t,e){let n=t.getId(),r=this.sorters.get(n.getId());if(e===ct.NONE)this.delete(n);else if(e===ct.ASC||e===ct.DESC){this.delete(n);let o=e===ct.ASC;this.add(t,o)}}add(t,e=!0){this.addSorter(t.getId(),new O0(new P0(Tn.generate()),t,e))}addSorter(t,e){this.multi||this.sorters.clear(),this.sorters.set(t.getId(),e)}delete(t){this.sorters.delete(t.getId())}update(){}sort(t){let e=this.getAll(),n=Array.from(t);for(let r of e)n=r.sort(n);return n}getAll(){return this.enabled?Array.from(this.sorters).map(t=>t[1]).sort((t,e)=>t.getRank()-e.getRank()).reverse():[]}},j0=class{id;value;displayValue;enabled;constructor(t,e,n,r){this.id=t,this.value=e,this.displayValue=n,this.enabled=r}getId(){return this.id}getValue(){return this.value}getDisplayValue(){return this.displayValue}isEnabled(){return this.enabled}isDisabled(){return!this.enabled}select(){this.enabled=!0}unselect(){this.enabled=!1}},V0=class{id;constructor(t){this.id=t}toString(){return this.id}equals(t){return t.toString()===this.id}},hN=(()=>{class i{static index=0;static generate(){return i.index+=1,new V0(`${i.index}`)}}return i})(),L0=class{values=[];allSelected;allDisabled;constructor(t,e){for(let n of t)this.values.push(new j0(hN.generate(),n,e.getDisplayValue(n),!0));this.calculateAllSelected(),this.calculateAllDisabled()}getAll(){return this.values}isAllSelected(){return this.allSelected}isAllDisabled(){return this.allDisabled}getNotSelected(){return this.values.filter(t=>t.isDisabled())}selectAll(){this.values.forEach(t=>{t.select()}),this.allSelected=!0,this.allDisabled=!1}select(t){this.values.filter(e=>e.getId().equals(t)).forEach(e=>{e.select()}),this.calculateAllSelected(),this.calculateAllDisabled()}unselectAll(){this.values.forEach(t=>{t.unselect()}),this.allSelected=!1,this.allDisabled=!0}unselect(t){this.values.filter(e=>e.getId().equals(t)).forEach(e=>{e.unselect()}),this.calculateAllSelected(),this.calculateAllDisabled()}calculateAllSelected(){this.allSelected=!this.values.some(t=>t.isDisabled())}calculateAllDisabled(){this.allDisabled=!this.values.some(t=>t.isEnabled())}},z0=class{uniqueValueMap=new Bo;calculate(t,e){let n=e.getId();this.uniqueValueMap.find(n).ifEmpty(()=>{let o=new Set;for(let l of t)o.add(e.getValue(l));let s=Array.from(o.values()).sort((l,d)=>e.getField().sort(l,d)),a=new L0(s,e);this.uniqueValueMap.set(e.getId(),a)})}calculateAll(t,e){for(let n of e)this.calculate(t,n)}filterAll(t,e){let n=t;for(let r of e)n=this.filter(n,r);return n}filter(t,e){let n=[];return this.uniqueValueMap.find(e.getId()).ifPresent(r=>{r.isAllSelected()?n=t:r.isAllDisabled()?n=[]:n=t.filter(o=>{for(let s of r.getNotSelected())if(e.getField().equals(o,s.getValue()))return!1;return!0})}),n}selectAll(t){this.uniqueValueMap.find(t).ifPresent(e=>{e.selectAll()})}select(t,e){this.uniqueValueMap.find(t).ifPresent(n=>{n.select(e)})}unselectAll(t){this.uniqueValueMap.find(t).ifPresent(e=>{e.unselectAll()})}unselect(t,e){this.uniqueValueMap.find(t).ifPresent(n=>{n.unselect(e)})}getAll(t){let e=new Map;for(let n of t)this.getValues(n).ifPresent(r=>{e.set(n.getId().toString(),r)});return e}getValues(t){return this.uniqueValueMap.find(t.getId()).map(e=>e.getAll())}},PI=(()=>{class i extends fr{pagingAggregateFactory;sourceManagerFactory;verticalFormationFactory;summariesManagerFactory;filterManagerFactory;searchManagerFactory;fieldCollectionFactory;constructor(e,n,r,o,s,a,l){super(),this.pagingAggregateFactory=e,this.sourceManagerFactory=n,this.verticalFormationFactory=r,this.summariesManagerFactory=o,this.filterManagerFactory=s,this.searchManagerFactory=a,this.fieldCollectionFactory=l}static services=[RC,OI,DI,EI,Iu,ju,kI];create(e){let n=this.pagingAggregateFactory.createDefault(),r=this.sourceManagerFactory.createDefault(e),o=this.verticalFormationFactory.create(e),s=new N0,a=this.filterManagerFactory.create(!1),l=this.fieldCollectionFactory.create(),d=this.summariesManagerFactory.create(e),p=this.searchManagerFactory.create(),w=new A0(e,n,r,o,d,s,a,new z0,p,l);return this.init(w),w}init(e){e.init()}}return i})(),eh=class extends vr{},NI=(()=>{class i extends Ir{constructor(e){super(e)}static services=[kc]}return i})(),jI=(()=>{class i extends eh{inMemoryStructureAggregateStore;constructor(e){super(),this.inMemoryStructureAggregateStore=e}static services=[NI];findById(e){return this.inMemoryStructureAggregateStore.findById(e)}save(e){this.inMemoryStructureAggregateStore.save(e)}}return i})(),gN=(()=>{class i{summariesEnabledArchive;constructor(e){this.summariesEnabledArchive=e}static services=[xs];forEvent(){return _s}handle(e){if(e.ofMessageType("StructureCreatedEvent")){let n=e.getAggregateId();this.summariesEnabledArchive.init(n)}}}return i})(),B0=class{defineAggregate(){return{aggregateKey:li,createCommandHandler:x0,factory:PI,repository:jI}}registerKey(){return li}registerProviders(t){}registerCommandHandlers(){return[]}registerDomainEventHandler(){return[gN]}registerMultiDomainEventHandler(){return[]}},H0=class extends me{fieldId;filterTypeId;value;constructor(t,e,n,r){super(t,{fieldId:e,filterTypeId:n,value:r},"FilterAddedEvent"),this.fieldId=e,this.filterTypeId=n,this.value=r}},pN=(()=>{class i extends Gr{inMemoryStructureReadStore;structureIdToStructure=new Map;hermesStructure$=new Tt(1);constructor(e){super(),this.inMemoryStructureReadStore=e}static services=[Tx];getStructure(e){return this.structureIdToStructure.get(e.getId())}on(e){return this.hermesStructure$.toObservable().pipe(ye(n=>{let r=e.getId();return n.has(r)}),P(n=>n.get(e.getId())))}forEvents(){return[_s,km,Ya,Ka,Qa,ds,Ac,yc,_c,nc,mc,Jr,oc,eo,Cc,Ic,wc,H0,Yn,Tc,Dc,Ec,Sc]}subs(e){let n=e.getAggregateId();this.inMemoryStructureReadStore.getById(n).ifPresent(o=>{let s=o.getId().toString();this.structureIdToStructure.set(s,o),this.hermesStructure$.next(this.structureIdToStructure)})}}return i})(),fN=(()=>{class i extends Pt{filterCommandInvoker;sourcePublisher;verticalFormationCommandInvoker;structureCellEditArchive;commandDispatcher=y.resolve(ut);constructor(e,n,r,o){super(),this.filterCommandInvoker=e,this.sourcePublisher=n,this.verticalFormationCommandInvoker=r,this.structureCellEditArchive=o}static services=[_i,Wt,ao,cn];create(e){this.commandDispatcher.dispatch(new Jm(e))}enableVirtualScroll(e){this.verticalFormationCommandInvoker.enableVirtualScroll(e)}disableVirtualScroll(e){this.verticalFormationCommandInvoker.disableVirtualScroll(e)}scrollToTop(e){this.verticalFormationCommandInvoker.scrollToTop(e)}scrollToBottom(e){this.verticalFormationCommandInvoker.scrollToBottom(e)}scrollToIndex(e,n){this.verticalFormationCommandInvoker.scrollToIndex(e,n)}setScrollPosition(e,n){this.verticalFormationCommandInvoker.setScrollPosition(e,n)}setFilterConfig(e,n){this.filterCommandInvoker.setConfig(e,n)}setQuickFiltersConfig(e,n){this.commandDispatcher.dispatch(new wu(n,e))}setRowHeight(e,n){this.commandDispatcher.dispatch(new sm(n,+e))}setContainerHeight(e,n){this.commandDispatcher.dispatch(new am(n,+e))}setRowHeightBasedOnTheme(e,n){this.commandDispatcher.dispatch(new om(n,e))}setCellEdit(e,n){this.structureCellEditArchive.next(n,new Td(e))}}return i})(),$0=class{registerProviders(t){t.provide(Tx),t.provide(Gr,pN),t.provide(PI),t.provide(TI),t.provide(mo),t.provide(Pt,fN),t.provide(ks),t.provide(NI),t.provide(kc),t.provide(eh,jI),t.provide(ri),t.provide(cn)}};function bN(){new wt(new $0,new B0).init()}var th=class extends _a{constructor(t){super(t,"CreateListViewCommand")}},ih=class extends Dn{},nh=class extends ih{mode;constructor(t,e){super(t,"SetListViewModeCommand"),this.mode=e}getMode(){return this.mode}},rh=class extends ih{enabled;constructor(t,e){super(t,"ToggleListViewSelectorCommand"),this.enabled=e}isEnabled(){return this.enabled}},oh=class{commandDispatcher=y.resolve(ut);create(t){this.commandDispatcher.dispatch(new th(t))}setMode(t,e){this.commandDispatcher.dispatch(new nh(e,t))}toggleSelector(t,e){this.commandDispatcher.dispatch(new rh(e,t))}},U0=class extends yr{constructor(t){super(t)}toReadModelRootId(){return new sh(this.getId())}},sh=class extends wr{constructor(t){super(t)}toAggregateId(){return new U0(this.getId())}},ef=new sh("-1"),vN=(()=>{class i{listViewDispatcher;constructor(e){this.listViewDispatcher=e}static services=[oh];create(e=ef){this.listViewDispatcher.create(e.toAggregateId())}setMode(e,n=ef){this.listViewDispatcher.setMode(e,n.toAggregateId())}toggleSelector(e,n=ef){this.listViewDispatcher.toggleSelector(e,n.toAggregateId())}}return i})(),Nc=class extends Zi{},jc=class extends Nc{mode;constructor(t,e){super(t,e,"ListViewModeSetEvent"),this.mode=e}getTheme(){return this.mode}},W0=class extends Fi{constructor(){super()}onModeChange(t){return this.onEvent(t,jc)}},Rx=function(i){return i.LIST="List",i.CARD="Card",i}(Rx||{}),Vc=class i extends Fe{static default=Rx.LIST;constructor(){super(i.default)}},Ax=(()=>{class i extends Fe{static default=!1;constructor(){super(i.default)}}return i})(),xN=(()=>{class i{listViewModeArchive;listViewSelectorArchive;constructor(e,n){this.listViewModeArchive=e,this.listViewSelectorArchive=n}static services=[Vc,Ax];onMode(e){return this.listViewModeArchive.on(e)}onSelector(e){return this.listViewSelectorArchive.on(e)}}return i})(),ah=class extends kr{},VI=(()=>{class i extends Ir{constructor(e){super(e)}static services=[ah]}return i})(),G0=class{forCommand(){return nh}handle(t,e){let n=e.getMode();t.setMode(n)}},q0=class{forCommand(){return rh}handle(t,e){let n=e.isEnabled();t.toggleModeSelector(n)}},_N=(()=>{class i{listViewModeArchive;constructor(e){this.listViewModeArchive=e}static services=[Vc];forEvent(){return jc}handle(e){e.ofMessageType("ListViewModeSetEvent")&&this.listViewModeArchive.next(e.getAggregateId(),e.getTheme())}}return i})(),ch=class extends Nc{enabled;constructor(t,e){super(t,e,"ListViewSelectorToggledEvent"),this.enabled=e}isEnabled(){return this.enabled}},yN=(()=>{class i{listViewSelectorArchive;constructor(e){this.listViewSelectorArchive=e}static services=[Ax];forEvent(){return ch}handle(e){e.ofMessageType("ListViewSelectorToggledEvent")&&this.listViewSelectorArchive.next(e.getAggregateId(),e.isEnabled())}}return i})(),Y0=class{forCommand(){return th}},Q0=class extends Nc{constructor(t){super(t,null,"ListViewCreatedEvent")}},Lc=class extends br{},K0=class extends Lc{constructor(t){super(t,"ListViewCreatedAggregateEvent")}toDomainEvent(){return new Q0(this.getAggregateId())}},Z0=class extends Lc{mode;constructor(t,e){super(t,"ListViewModeSetAggregateEvent"),this.mode=e}toDomainEvent(){return new jc(this.getAggregateId(),this.mode)}},X0=class{enabled=null;visible=!1;constructor(){}isVisible(){return this.enabled!==null?this.enabled:this.visible}setEnabled(t){this.enabled=t}setVisible(t){this.visible=t}},J0=class extends Lc{enabled;constructor(t,e){super(t,"ListViewSelectorToggledAggregateEvent"),this.enabled=e}toDomainEvent(){return new ch(this.getAggregateId(),this.enabled)}},ex=class extends xr{mode;selectorVisibility;constructor(t){super(t,"ListViewAggregate"),this.setMode(Rx.LIST),this.initSelectorVisibility()}createEvent(){return K0}setMode(t){this.mode=t,this.addEvent(new Z0(this.getId(),this.mode))}toggleModeSelector(t){this.selectorVisibility.setEnabled(t),this.emitEventAfterSelectorVisibilityChange()}initSelectorVisibility(){this.selectorVisibility=new X0,this.emitEventAfterSelectorVisibilityChange()}emitEventAfterSelectorVisibilityChange(){this.addEvent(new J0(this.getId(),this.selectorVisibility.isVisible()))}},tx=class extends fr{constructor(){super()}create(t){return new ex(t)}},ix=class extends vr{},wN=(()=>{class i extends ix{inMemorySchemaAggregateStore;constructor(e){super(),this.inMemorySchemaAggregateStore=e}static services=[VI];findById(e){return this.inMemorySchemaAggregateStore.findById(e)}save(e){this.inMemorySchemaAggregateStore.save(e)}}return i})(),nx=class{defineAggregate(){return{aggregateKey:yC,createCommandHandler:Y0,factory:tx,repository:wN}}registerKey(){return yC}registerProviders(t){t.provide(oh)}registerCommandHandlers(){return[G0,q0]}registerDomainEventHandler(){return[_N,yN]}registerMultiDomainEventHandler(){return[]}},yC="ListViewKey",rx=class{registerProviders(t){t.provide(vN),t.provide(W0),t.provide(xN),t.provide(Vc),t.provide(Ax),t.provide(VI),t.provide(ah)}};function CN(){new wt(new rx,new nx).init()}function IN(){return y.resolve(Pt)}function kN(){return y.resolve(mo)}function EN(){return y.resolve(ks)}var SN=[{provide:Pt,useFactory:IN},{provide:mo,useFactory:kN},{provide:ks,useFactory:EN}];function DN(){return new lo.DefaultBuilder().build()}var TN=[CI,wI],MN=[q,Pi,mn,mi,ho,rN,mh,eP,aP,mN,yI,wx,eN,bP,SP,PP,nN,AO,GO,QO,fx,vI,KO,BP,NO,AI,TN];var FN=[Nn,XC,GC,QC,YC,KC,ho,mh,HP];function RN(){return y.resolve(cn)}function AN(){return y.resolve(ri)}CN();bN();var ox=class i{platformId;static HERMES_API="hermesApi";static exportDeclarations=Array.from(FN);static withConfig(t={cssClassName:"",hermesModuleConfig:{loggers:!1}}){return{ngModule:i,providers:[{provide:Lf,useValue:t.cssClassName},{provide:Xl,useValue:t.hermesModuleConfig.loggers},{provide:Jl,useValue:t.hermesModuleConfig.loggers},{provide:Lf,useValue:"structure"},{provide:lo,useFactory:DN},Hb,Hc,Vr,{provide:cn,useFactory:RN},{provide:ri,useFactory:AN},SN]}}constructor(t){this.platformId=t,vw(),St(this.platformId)&&(_w(),window[i.HERMES_API].loggers=!1)}static \u0275fac=function(e){return new(e||i)(v(Ue))};static \u0275mod=M({type:i});static \u0275inj=T({imports:[MN,Nn,Wo,ni,Go,tn,An,qo,Yo,Xo,Jo,Ko,Zo,es,ts,On,Rr,is,nn,Qo,Fr,On,mh]})},ON=(()=>{class i{static PREFIX="gui-grid-";static index=0;generateId(){return i.index++,i.PREFIX+i.index}static \u0275fac=function(n){return new(n||i)};static \u0275prov=k({token:i,factory:i.\u0275fac})}return i})(),PN=[ox.withConfig({cssClassName:"grid",hermesModuleConfig:{loggers:!0}})];var NN=[ON,EC],jN=[ph,ax],VN=[ph,ax],lh=class i{static exportDeclarations=Array.from(jN);static elementComponents=Array.from(VN);static \u0275fac=function(e){return new(e||i)};static \u0275mod=M({type:i});static \u0275inj=T({providers:NN,imports:[PN]})};var Ds=new K("API_URL");var LI=(()=>{let t=class t{constructor(n){this.http=n;let r=_(Ds);this.url=`${r}/envelopereceiver`}getEnvelopeReceiver(){return this.http.get(this.url,{withCredentials:!0,headers:{"Content-Type":"application/json"}})}};t.\u0275fac=function(r){return new(r||t)(v(ur))},t.\u0275prov=k({token:t,factory:t.\u0275fac,providedIn:"root"});let i=t;return i})();var zI=(()=>{let t=class t{constructor(n){this.erService=n,this.columnMenu={enabled:!0,sort:!0,columnsManager:!0},this.sorting={enabled:!0,multiSorting:!0},this.paging={enabled:!0,page:1,pageSize:10,pageSizes:[10,25,50],pagerTop:!0,pagerBottom:!0,display:Va.ADVANCED},this.searching={enabled:!0},this.summaries={enabled:!0},this.infoPanel={enabled:!0,infoDialog:!1,columnsManager:!1,schemaManager:!0},this.localization={translationResolver:(r,o)=>"[de-DE]"},this.source=[],this.columns=[{header:"Title",field:r=>r.envelope.title},{header:"Status",field:r=>r.envelope.status},{header:"Type",field:r=>r.envelope.contractType},{header:"PrivateMessage",field:"privateMessage"},{header:"AddedWhen",field:"addedWhen"}]}ngOnInit(){this.erService.getEnvelopeReceiver().subscribe({next:n=>this.source=n,error:console.error})}};t.\u0275fac=function(r){return new(r||t)(c(LI))},t.\u0275cmp=I({type:t,selectors:[["app-envelope-table"]],standalone:!0,features:[Oe],decls:1,vars:9,consts:[[3,"columns","source","columnMenu","paging","sorting","searching","summaries","infoPanel","localization"]],template:function(r,o){r&1&&b(0,"gui-grid",0),r&2&&m("columns",o.columns)("source",o.source)("columnMenu",o.columnMenu)("paging",o.paging)("sorting",o.sorting)("searching",o.searching)("summaries",o.summaries)("infoPanel",o.infoPanel)("localization",o.localization)},dependencies:[lh,ph]});let i=t;return i})();var Px;try{Px=typeof Intl<"u"&&Intl.v8BreakIterator}catch{Px=!1}var Ye=(()=>{let t=class t{constructor(n){this._platformId=n,this.isBrowser=this._platformId?St(this._platformId):typeof document=="object"&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!!(window.chrome||Px)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}};t.\u0275fac=function(r){return new(r||t)(v(Ue))},t.\u0275prov=k({token:t,factory:t.\u0275fac,providedIn:"root"});let i=t;return i})();var Ts,BI=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function Nx(){if(Ts)return Ts;if(typeof document!="object"||!document)return Ts=new Set(BI),Ts;let i=document.createElement("input");return Ts=new Set(BI.filter(t=>(i.setAttribute("type",t),i.type===t))),Ts}var $c;function BN(){if($c==null&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>$c=!0}))}finally{$c=$c||!1}return $c}function Kn(i){return BN()?i:!!i.capture}var Ox;function HN(){if(Ox==null){let i=typeof document<"u"?document.head:null;Ox=!!(i&&(i.createShadowRoot||i.attachShadow))}return Ox}function HI(i){if(HN()){let t=i.getRootNode?i.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&t instanceof ShadowRoot)return t}return null}function Zn(i){return i.composedPath?i.composedPath()[0]:i.target}function $I(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}function go(i){return i!=null&&`${i}`!="false"}function jx(i){return Array.isArray(i)?i:[i]}function $i(i){return i instanceof x?i.nativeElement:i}var $N=(()=>{let t=class t{create(n){return typeof MutationObserver>"u"?null:new MutationObserver(n)}};t.\u0275fac=function(r){return new(r||t)},t.\u0275prov=k({token:t,factory:t.\u0275fac,providedIn:"root"});let i=t;return i})();var fh=(()=>{let t=class t{};t.\u0275fac=function(r){return new(r||t)},t.\u0275mod=M({type:t}),t.\u0275inj=T({providers:[$N]});let i=t;return i})();var UI=new Set,po,UN=(()=>{let t=class t{constructor(n,r){this._platform=n,this._nonce=r,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):GN}matchMedia(n){return(this._platform.WEBKIT||this._platform.BLINK)&&WN(n,this._nonce),this._matchMedia(n)}};t.\u0275fac=function(r){return new(r||t)(v(Ye),v(Os,8))},t.\u0275prov=k({token:t,factory:t.\u0275fac,providedIn:"root"});let i=t;return i})();function WN(i,t){if(!UI.has(i))try{po||(po=document.createElement("style"),t&&po.setAttribute("nonce",t),po.setAttribute("type","text/css"),document.head.appendChild(po)),po.sheet&&(po.sheet.insertRule(`@media ${i} {body{ }}`,0),UI.add(i))}catch(e){console.error(e)}}function GN(i){return{matches:i==="all"||i==="",media:i,addListener:()=>{},removeListener:()=>{}}}var GI=(()=>{let t=class t{constructor(n,r){this._mediaMatcher=n,this._zone=r,this._queries=new Map,this._destroySubject=new ke}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(n){return WI(jx(n)).some(o=>this._registerQuery(o).mql.matches)}observe(n){let o=WI(jx(n)).map(a=>this._registerQuery(a).observable),s=gn(o);return s=Qc(s.pipe(jt(1)),s.pipe(nr(1),Fs(0))),s.pipe(le(a=>{let l={matches:!1,breakpoints:{}};return a.forEach(({matches:d,query:p})=>{l.matches=l.matches||d,l.breakpoints[p]=d}),l}))}_registerQuery(n){if(this._queries.has(n))return this._queries.get(n);let r=this._mediaMatcher.matchMedia(n),s={observable:new gi(a=>{let l=d=>this._zone.run(()=>a.next(d));return r.addListener(l),()=>{r.removeListener(l)}}).pipe(Xc(r),le(({matches:a})=>({query:n,matches:a})),re(this._destroySubject)),mql:r};return this._queries.set(n,s),s}};t.\u0275fac=function(r){return new(r||t)(v(UN),v(de))},t.\u0275prov=k({token:t,factory:t.\u0275fac,providedIn:"root"});let i=t;return i})();function WI(i){return i.map(t=>t.split(",")).reduce((t,e)=>t.concat(e)).map(t=>t.trim())}function Lx(i){return i.buttons===0||i.detail===0}function zx(i){let t=i.touches&&i.touches[0]||i.changedTouches&&i.changedTouches[0];return!!t&&t.identifier===-1&&(t.radiusX==null||t.radiusX===1)&&(t.radiusY==null||t.radiusY===1)}var qN=new K("cdk-input-modality-detector-options"),YN={ignoreKeys:[18,17,224,91,16]},QI=650,Ms=Kn({passive:!0,capture:!0}),QN=(()=>{let t=class t{get mostRecentModality(){return this._modality.value}constructor(n,r,o,s){this._platform=n,this._mostRecentTarget=null,this._modality=new nt(null),this._lastTouchMs=0,this._onKeydown=a=>{this._options?.ignoreKeys?.some(l=>l===a.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=Zn(a))},this._onMousedown=a=>{Date.now()-this._lastTouchMs<QI||(this._modality.next(Lx(a)?"keyboard":"mouse"),this._mostRecentTarget=Zn(a))},this._onTouchstart=a=>{if(zx(a)){this._modality.next("keyboard");return}this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=Zn(a)},this._options=V(V({},YN),s),this.modalityDetected=this._modality.pipe(nr(1)),this.modalityChanged=this.modalityDetected.pipe(Zc()),n.isBrowser&&r.runOutsideAngular(()=>{o.addEventListener("keydown",this._onKeydown,Ms),o.addEventListener("mousedown",this._onMousedown,Ms),o.addEventListener("touchstart",this._onTouchstart,Ms)})}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,Ms),document.removeEventListener("mousedown",this._onMousedown,Ms),document.removeEventListener("touchstart",this._onTouchstart,Ms))}};t.\u0275fac=function(r){return new(r||t)(v(Ye),v(de),v(ue),v(qN,8))},t.\u0275prov=k({token:t,factory:t.\u0275fac,providedIn:"root"});let i=t;return i})();var vh=function(i){return i[i.IMMEDIATE=0]="IMMEDIATE",i[i.EVENTUAL=1]="EVENTUAL",i}(vh||{}),KN=new K("cdk-focus-monitor-default-options"),bh=Kn({passive:!0,capture:!0}),KI=(()=>{let t=class t{constructor(n,r,o,s,a){this._ngZone=n,this._platform=r,this._inputModalityDetector=o,this._origin=null,this._windowFocused=!1,this._originFromTouchInteraction=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=window.setTimeout(()=>this._windowFocused=!1)},this._stopInputModalityDetector=new ke,this._rootNodeFocusAndBlurListener=l=>{let d=Zn(l);for(let p=d;p;p=p.parentElement)l.type==="focus"?this._onFocus(l,p):this._onBlur(l,p)},this._document=s,this._detectionMode=a?.detectionMode||vh.IMMEDIATE}monitor(n,r=!1){let o=$i(n);if(!this._platform.isBrowser||o.nodeType!==1)return te();let s=HI(o)||this._getDocument(),a=this._elementInfo.get(o);if(a)return r&&(a.checkChildren=!0),a.subject;let l={checkChildren:r,subject:new ke,rootNode:s};return this._elementInfo.set(o,l),this._registerGlobalListeners(l),l.subject}stopMonitoring(n){let r=$i(n),o=this._elementInfo.get(r);o&&(o.subject.complete(),this._setClasses(r),this._elementInfo.delete(r),this._removeGlobalListeners(o))}focusVia(n,r,o){let s=$i(n),a=this._getDocument().activeElement;s===a?this._getClosestElementsInfo(s).forEach(([l,d])=>this._originChanged(l,r,d)):(this._setOrigin(r),typeof s.focus=="function"&&s.focus(o))}ngOnDestroy(){this._elementInfo.forEach((n,r)=>this.stopMonitoring(r))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(n){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(n)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:n&&this._isLastInteractionFromInputLabel(n)?"mouse":"program"}_shouldBeAttributedToTouch(n){return this._detectionMode===vh.EVENTUAL||!!n?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(n,r){n.classList.toggle("cdk-focused",!!r),n.classList.toggle("cdk-touch-focused",r==="touch"),n.classList.toggle("cdk-keyboard-focused",r==="keyboard"),n.classList.toggle("cdk-mouse-focused",r==="mouse"),n.classList.toggle("cdk-program-focused",r==="program")}_setOrigin(n,r=!1){this._ngZone.runOutsideAngular(()=>{if(this._origin=n,this._originFromTouchInteraction=n==="touch"&&r,this._detectionMode===vh.IMMEDIATE){clearTimeout(this._originTimeoutId);let o=this._originFromTouchInteraction?QI:1;this._originTimeoutId=setTimeout(()=>this._origin=null,o)}})}_onFocus(n,r){let o=this._elementInfo.get(r),s=Zn(n);!o||!o.checkChildren&&r!==s||this._originChanged(r,this._getFocusOrigin(s),o)}_onBlur(n,r){let o=this._elementInfo.get(r);!o||o.checkChildren&&n.relatedTarget instanceof Node&&r.contains(n.relatedTarget)||(this._setClasses(r),this._emitOrigin(o,null))}_emitOrigin(n,r){n.subject.observers.length&&this._ngZone.run(()=>n.subject.next(r))}_registerGlobalListeners(n){if(!this._platform.isBrowser)return;let r=n.rootNode,o=this._rootNodeFocusListenerCount.get(r)||0;o||this._ngZone.runOutsideAngular(()=>{r.addEventListener("focus",this._rootNodeFocusAndBlurListener,bh),r.addEventListener("blur",this._rootNodeFocusAndBlurListener,bh)}),this._rootNodeFocusListenerCount.set(r,o+1),++this._monitoredElementCount===1&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(re(this._stopInputModalityDetector)).subscribe(s=>{this._setOrigin(s,!0)}))}_removeGlobalListeners(n){let r=n.rootNode;if(this._rootNodeFocusListenerCount.has(r)){let o=this._rootNodeFocusListenerCount.get(r);o>1?this._rootNodeFocusListenerCount.set(r,o-1):(r.removeEventListener("focus",this._rootNodeFocusAndBlurListener,bh),r.removeEventListener("blur",this._rootNodeFocusAndBlurListener,bh),this._rootNodeFocusListenerCount.delete(r))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(n,r,o){this._setClasses(n,r),this._emitOrigin(o,r),this._lastFocusOrigin=r}_getClosestElementsInfo(n){let r=[];return this._elementInfo.forEach((o,s)=>{(s===n||o.checkChildren&&s.contains(n))&&r.push([s,o])}),r}_isLastInteractionFromInputLabel(n){let{_mostRecentTarget:r,mostRecentModality:o}=this._inputModalityDetector;if(o!=="mouse"||!r||r===n||n.nodeName!=="INPUT"&&n.nodeName!=="TEXTAREA"||n.disabled)return!1;let s=n.labels;if(s){for(let a=0;a<s.length;a++)if(s[a].contains(r))return!0}return!1}};t.\u0275fac=function(r){return new(r||t)(v(de),v(Ye),v(QN),v(ue,8),v(KN,8))},t.\u0275prov=k({token:t,factory:t.\u0275fac,providedIn:"root"});let i=t;return i})();var fo=function(i){return i[i.NONE=0]="NONE",i[i.BLACK_ON_WHITE=1]="BLACK_ON_WHITE",i[i.WHITE_ON_BLACK=2]="WHITE_ON_BLACK",i}(fo||{}),qI="cdk-high-contrast-black-on-white",YI="cdk-high-contrast-white-on-black",Vx="cdk-high-contrast-active",ZI=(()=>{let t=class t{constructor(n,r){this._platform=n,this._document=r,this._breakpointSubscription=_(GI).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return fo.NONE;let n=this._document.createElement("div");n.style.backgroundColor="rgb(1,2,3)",n.style.position="absolute",this._document.body.appendChild(n);let r=this._document.defaultView||window,o=r&&r.getComputedStyle?r.getComputedStyle(n):null,s=(o&&o.backgroundColor||"").replace(/ /g,"");switch(n.remove(),s){case"rgb(0,0,0)":case"rgb(45,50,54)":case"rgb(32,32,32)":return fo.WHITE_ON_BLACK;case"rgb(255,255,255)":case"rgb(255,250,239)":return fo.BLACK_ON_WHITE}return fo.NONE}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){let n=this._document.body.classList;n.remove(Vx,qI,YI),this._hasCheckedHighContrastMode=!0;let r=this.getHighContrastMode();r===fo.BLACK_ON_WHITE?n.add(Vx,qI):r===fo.WHITE_ON_BLACK&&n.add(Vx,YI)}}};t.\u0275fac=function(r){return new(r||t)(v(Ye),v(ue))},t.\u0275prov=k({token:t,factory:t.\u0275fac,providedIn:"root"});let i=t;return i})();var XN=new K("cdk-dir-doc",{providedIn:"root",factory:JN});function JN(){return _(ue)}var e3=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;function t3(i){let t=i?.toLowerCase()||"";return t==="auto"&&typeof navigator<"u"&&navigator?.language?e3.test(navigator.language)?"rtl":"ltr":t==="rtl"?"rtl":"ltr"}var XI=(()=>{let t=class t{constructor(n){if(this.value="ltr",this.change=new W,n){let r=n.body?n.body.dir:null,o=n.documentElement?n.documentElement.dir:null;this.value=t3(r||o||"ltr")}}ngOnDestroy(){this.change.complete()}};t.\u0275fac=function(r){return new(r||t)(v(XN,8))},t.\u0275prov=k({token:t,factory:t.\u0275fac,providedIn:"root"});let i=t;return i})();var Bx=(()=>{let t=class t{};t.\u0275fac=function(r){return new(r||t)},t.\u0275mod=M({type:t}),t.\u0275inj=T({});let i=t;return i})();function r3(){return!0}var o3=new K("mat-sanity-checks",{providedIn:"root",factory:r3}),Ve=(()=>{let t=class t{constructor(n,r,o){this._sanityChecks=r,this._document=o,this._hasDoneGlobalChecks=!1,n._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(n){return $I()?!1:typeof this._sanityChecks=="boolean"?this._sanityChecks:!!this._sanityChecks[n]}};t.\u0275fac=function(r){return new(r||t)(v(ZI),v(o3,8),v(ue))},t.\u0275mod=M({type:t}),t.\u0275inj=T({imports:[Bx,Bx]});let i=t;return i})();var _h=class{constructor(t,e,n,r,o){this._defaultMatcher=t,this.ngControl=e,this._parentFormGroup=n,this._parentForm=r,this._stateChanges=o,this.errorState=!1}updateErrorState(){let t=this.errorState,e=this._parentFormGroup||this._parentForm,n=this.matcher||this._defaultMatcher,r=this.ngControl?this.ngControl.control:null,o=n?.isErrorState(r,e)??!1;o!==t&&(this.errorState=o,this._stateChanges.next())}};var a1=(()=>{let t=class t{isErrorState(n,r){return!!(n&&n.invalid&&(n.touched||r&&r.submitted))}};t.\u0275fac=function(r){return new(r||t)},t.\u0275prov=k({token:t,factory:t.\u0275fac,providedIn:"root"});let i=t;return i})();var hi=function(i){return i[i.FADING_IN=0]="FADING_IN",i[i.VISIBLE=1]="VISIBLE",i[i.FADING_OUT=2]="FADING_OUT",i[i.HIDDEN=3]="HIDDEN",i}(hi||{}),Ux=class{constructor(t,e,n,r=!1){this._renderer=t,this.element=e,this.config=n,this._animationForciblyDisabledThroughCss=r,this.state=hi.HIDDEN}fadeOut(){this._renderer.fadeOutRipple(this)}},JI=Kn({passive:!0,capture:!0}),Wx=class{constructor(){this._events=new Map,this._delegateEventHandler=t=>{let e=Zn(t);e&&this._events.get(t.type)?.forEach((n,r)=>{(r===e||r.contains(e))&&n.forEach(o=>o.handleEvent(t))})}}addHandler(t,e,n,r){let o=this._events.get(e);if(o){let s=o.get(n);s?s.add(r):o.set(n,new Set([r]))}else this._events.set(e,new Map([[n,new Set([r])]])),t.runOutsideAngular(()=>{document.addEventListener(e,this._delegateEventHandler,JI)})}removeHandler(t,e,n){let r=this._events.get(t);if(!r)return;let o=r.get(e);o&&(o.delete(n),o.size===0&&r.delete(e),r.size===0&&(this._events.delete(t),document.removeEventListener(t,this._delegateEventHandler,JI)))}},e1={enterDuration:225,exitDuration:150},s3=800,t1=Kn({passive:!0,capture:!0}),i1=["mousedown","touchstart"],n1=["mouseup","mouseleave","touchend","touchcancel"],Uc=class Uc{constructor(t,e,n,r){this._target=t,this._ngZone=e,this._platform=r,this._isPointerDown=!1,this._activeRipples=new Map,this._pointerUpEventsRegistered=!1,r.isBrowser&&(this._containerElement=$i(n))}fadeInRipple(t,e,n={}){let r=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),o=V(V({},e1),n.animation);n.centered&&(t=r.left+r.width/2,e=r.top+r.height/2);let s=n.radius||a3(t,e,r),a=t-r.left,l=e-r.top,d=o.enterDuration,p=document.createElement("div");p.classList.add("mat-ripple-element"),p.style.left=`${a-s}px`,p.style.top=`${l-s}px`,p.style.height=`${s*2}px`,p.style.width=`${s*2}px`,n.color!=null&&(p.style.backgroundColor=n.color),p.style.transitionDuration=`${d}ms`,this._containerElement.appendChild(p);let w=window.getComputedStyle(p),E=w.transitionProperty,Q=w.transitionDuration,ne=E==="none"||Q==="0s"||Q==="0s, 0s"||r.width===0&&r.height===0,ce=new Ux(this,p,n,ne);p.style.transform="scale3d(1, 1, 1)",ce.state=hi.FADING_IN,n.persistent||(this._mostRecentTransientRipple=ce);let O=null;return!ne&&(d||o.exitDuration)&&this._ngZone.runOutsideAngular(()=>{let Y=()=>this._finishRippleTransition(ce),Ie=()=>this._destroyRipple(ce);p.addEventListener("transitionend",Y),p.addEventListener("transitioncancel",Ie),O={onTransitionEnd:Y,onTransitionCancel:Ie}}),this._activeRipples.set(ce,O),(ne||!d)&&this._finishRippleTransition(ce),ce}fadeOutRipple(t){if(t.state===hi.FADING_OUT||t.state===hi.HIDDEN)return;let e=t.element,n=V(V({},e1),t.config.animation);e.style.transitionDuration=`${n.exitDuration}ms`,e.style.opacity="0",t.state=hi.FADING_OUT,(t._animationForciblyDisabledThroughCss||!n.exitDuration)&&this._finishRippleTransition(t)}fadeOutAll(){this._getActiveRipples().forEach(t=>t.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(t=>{t.config.persistent||t.fadeOut()})}setupTriggerEvents(t){let e=$i(t);!this._platform.isBrowser||!e||e===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=e,i1.forEach(n=>{Uc._eventManager.addHandler(this._ngZone,n,e,this)}))}handleEvent(t){t.type==="mousedown"?this._onMousedown(t):t.type==="touchstart"?this._onTouchStart(t):this._onPointerUp(),this._pointerUpEventsRegistered||(this._ngZone.runOutsideAngular(()=>{n1.forEach(e=>{this._triggerElement.addEventListener(e,this,t1)})}),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(t){t.state===hi.FADING_IN?this._startFadeOutTransition(t):t.state===hi.FADING_OUT&&this._destroyRipple(t)}_startFadeOutTransition(t){let e=t===this._mostRecentTransientRipple,{persistent:n}=t.config;t.state=hi.VISIBLE,!n&&(!e||!this._isPointerDown)&&t.fadeOut()}_destroyRipple(t){let e=this._activeRipples.get(t)??null;this._activeRipples.delete(t),this._activeRipples.size||(this._containerRect=null),t===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),t.state=hi.HIDDEN,e!==null&&(t.element.removeEventListener("transitionend",e.onTransitionEnd),t.element.removeEventListener("transitioncancel",e.onTransitionCancel)),t.element.remove()}_onMousedown(t){let e=Lx(t),n=this._lastTouchStartEvent&&Date.now()<this._lastTouchStartEvent+s3;!this._target.rippleDisabled&&!e&&!n&&(this._isPointerDown=!0,this.fadeInRipple(t.clientX,t.clientY,this._target.rippleConfig))}_onTouchStart(t){if(!this._target.rippleDisabled&&!zx(t)){this._lastTouchStartEvent=Date.now(),this._isPointerDown=!0;let e=t.changedTouches;if(e)for(let n=0;n<e.length;n++)this.fadeInRipple(e[n].clientX,e[n].clientY,this._target.rippleConfig)}}_onPointerUp(){this._isPointerDown&&(this._isPointerDown=!1,this._getActiveRipples().forEach(t=>{let e=t.state===hi.VISIBLE||t.config.terminateOnPointerUp&&t.state===hi.FADING_IN;!t.config.persistent&&e&&t.fadeOut()}))}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){let t=this._triggerElement;t&&(i1.forEach(e=>Uc._eventManager.removeHandler(e,t,this)),this._pointerUpEventsRegistered&&(n1.forEach(e=>t.removeEventListener(e,this,t1)),this._pointerUpEventsRegistered=!1))}};Uc._eventManager=new Wx;var yh=Uc;function a3(i,t,e){let n=Math.max(Math.abs(i-e.left),Math.abs(i-e.right)),r=Math.max(Math.abs(t-e.top),Math.abs(t-e.bottom));return Math.sqrt(n*n+r*r)}var Gx=new K("mat-ripple-global-options"),c3=(()=>{let t=class t{get disabled(){return this._disabled}set disabled(n){n&&this.fadeOutAllNonPersistent(),this._disabled=n,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(n){this._trigger=n,this._setupTriggerEventsIfEnabled()}constructor(n,r,o,s,a){this._elementRef=n,this._animationMode=a,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=s||{},this._rippleRenderer=new yh(this,r,n,o)}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:V(V(V({},this._globalOptions.animation),this._animationMode==="NoopAnimations"?{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(n,r=0,o){return typeof n=="number"?this._rippleRenderer.fadeInRipple(n,r,V(V({},this.rippleConfig),o)):this._rippleRenderer.fadeInRipple(0,0,V(V({},this.rippleConfig),n))}};t.\u0275fac=function(r){return new(r||t)(c(x),c(de),c(Ye),c(Gx,8),c(ki,8))},t.\u0275dir=N({type:t,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(r,o){r&2&&U("mat-ripple-unbounded",o.unbounded)},inputs:{color:[we.None,"matRippleColor","color"],unbounded:[we.None,"matRippleUnbounded","unbounded"],centered:[we.None,"matRippleCentered","centered"],radius:[we.None,"matRippleRadius","radius"],animation:[we.None,"matRippleAnimation","animation"],disabled:[we.None,"matRippleDisabled","disabled"],trigger:[we.None,"matRippleTrigger","trigger"]},exportAs:["matRipple"],standalone:!0});let i=t;return i})(),wh=(()=>{let t=class t{};t.\u0275fac=function(r){return new(r||t)},t.\u0275mod=M({type:t}),t.\u0275inj=T({imports:[Ve,Ve]});let i=t;return i})();var c1=(()=>{let t=class t{};t.\u0275fac=function(r){return new(r||t)},t.\u0275mod=M({type:t}),t.\u0275inj=T({imports:[Ve]});let i=t;return i})();var r1={capture:!0},o1=["focus","click","mouseenter","touchstart"],Hx="mat-ripple-loader-uninitialized",$x="mat-ripple-loader-class-name",s1="mat-ripple-loader-centered",xh="mat-ripple-loader-disabled",l1=(()=>{let t=class t{constructor(){this._document=_(ue,{optional:!0}),this._animationMode=_(ki,{optional:!0}),this._globalRippleOptions=_(Gx,{optional:!0}),this._platform=_(Ye),this._ngZone=_(de),this._hosts=new Map,this._onInteraction=n=>{if(!(n.target instanceof HTMLElement))return;let o=n.target.closest(`[${Hx}]`);o&&this._createRipple(o)},this._ngZone.runOutsideAngular(()=>{for(let n of o1)this._document?.addEventListener(n,this._onInteraction,r1)})}ngOnDestroy(){let n=this._hosts.keys();for(let r of n)this.destroyRipple(r);for(let r of o1)this._document?.removeEventListener(r,this._onInteraction,r1)}configureRipple(n,r){n.setAttribute(Hx,""),(r.className||!n.hasAttribute($x))&&n.setAttribute($x,r.className||""),r.centered&&n.setAttribute(s1,""),r.disabled&&n.setAttribute(xh,"")}getRipple(n){return this._hosts.get(n)||this._createRipple(n)}setDisabled(n,r){let o=this._hosts.get(n);if(o){o.disabled=r;return}r?n.setAttribute(xh,""):n.removeAttribute(xh)}_createRipple(n){if(!this._document)return;let r=this._hosts.get(n);if(r)return r;n.querySelector(".mat-ripple")?.remove();let o=this._document.createElement("span");o.classList.add("mat-ripple",n.getAttribute($x)),n.append(o);let s=new c3(new x(o),this._ngZone,this._platform,this._globalRippleOptions?this._globalRippleOptions:void 0,this._animationMode?this._animationMode:void 0);return s._isInitialized=!0,s.trigger=n,s.centered=n.hasAttribute(s1),s.disabled=n.hasAttribute(xh),this.attachRipple(n,s),s}attachRipple(n,r){n.removeAttribute(Hx),this._hosts.set(n,r)}destroyRipple(n){let r=this._hosts.get(n);r&&(r.ngOnDestroy(),this._hosts.delete(n))}};t.\u0275fac=function(r){return new(r||t)},t.\u0275prov=k({token:t,factory:t.\u0275fac,providedIn:"root"});let i=t;return i})();var d3=["*"],Ch;function u3(){if(Ch===void 0&&(Ch=null,typeof window<"u")){let i=window;i.trustedTypes!==void 0&&(Ch=i.trustedTypes.createPolicy("angular#components",{createHTML:t=>t}))}return Ch}function Wc(i){return u3()?.createHTML(i)||i}function d1(i){return Error(`Unable to find icon with the name "${i}"`)}function m3(){return Error("Could not find HttpClient provider for use with Angular Material icons. Please include the HttpClientModule from @angular/common/http in your app imports.")}function u1(i){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${i}".`)}function m1(i){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${i}".`)}var hn=class{constructor(t,e,n){this.url=t,this.svgText=e,this.options=n}},h3=(()=>{let t=class t{constructor(n,r,o,s){this._httpClient=n,this._sanitizer=r,this._errorHandler=s,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._resolvers=[],this._defaultFontSetClass=["material-icons","mat-ligature-font"],this._document=o}addSvgIcon(n,r,o){return this.addSvgIconInNamespace("",n,r,o)}addSvgIconLiteral(n,r,o){return this.addSvgIconLiteralInNamespace("",n,r,o)}addSvgIconInNamespace(n,r,o,s){return this._addSvgIconConfig(n,r,new hn(o,null,s))}addSvgIconResolver(n){return this._resolvers.push(n),this}addSvgIconLiteralInNamespace(n,r,o,s){let a=this._sanitizer.sanitize(Vt.HTML,o);if(!a)throw m1(o);let l=Wc(a);return this._addSvgIconConfig(n,r,new hn("",l,s))}addSvgIconSet(n,r){return this.addSvgIconSetInNamespace("",n,r)}addSvgIconSetLiteral(n,r){return this.addSvgIconSetLiteralInNamespace("",n,r)}addSvgIconSetInNamespace(n,r,o){return this._addSvgIconSetConfig(n,new hn(r,null,o))}addSvgIconSetLiteralInNamespace(n,r,o){let s=this._sanitizer.sanitize(Vt.HTML,r);if(!s)throw m1(r);let a=Wc(s);return this._addSvgIconSetConfig(n,new hn("",a,o))}registerFontClassAlias(n,r=n){return this._fontCssClassesByAlias.set(n,r),this}classNameForFontAlias(n){return this._fontCssClassesByAlias.get(n)||n}setDefaultFontSetClass(...n){return this._defaultFontSetClass=n,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(n){let r=this._sanitizer.sanitize(Vt.RESOURCE_URL,n);if(!r)throw u1(n);let o=this._cachedIconsByUrl.get(r);return o?te(Ih(o)):this._loadSvgIconFromConfig(new hn(n,null)).pipe(He(s=>this._cachedIconsByUrl.set(r,s)),le(s=>Ih(s)))}getNamedSvgIcon(n,r=""){let o=h1(r,n),s=this._svgIconConfigs.get(o);if(s)return this._getSvgFromConfig(s);if(s=this._getIconConfigFromResolvers(r,n),s)return this._svgIconConfigs.set(o,s),this._getSvgFromConfig(s);let a=this._iconSetConfigs.get(r);return a?this._getSvgFromIconSetConfigs(n,a):er(d1(o))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(n){return n.svgText?te(Ih(this._svgElementFromConfig(n))):this._loadSvgIconFromConfig(n).pipe(le(r=>Ih(r)))}_getSvgFromIconSetConfigs(n,r){let o=this._extractIconWithNameFromAnySet(n,r);if(o)return te(o);let s=r.filter(a=>!a.svgText).map(a=>this._loadSvgIconSetFromConfig(a).pipe(pn(l=>{let p=`Loading icon set URL: ${this._sanitizer.sanitize(Vt.RESOURCE_URL,a.url)} failed: ${l.message}`;return this._errorHandler.handleError(new Error(p)),te(null)})));return Kc(s).pipe(le(()=>{let a=this._extractIconWithNameFromAnySet(n,r);if(!a)throw d1(n);return a}))}_extractIconWithNameFromAnySet(n,r){for(let o=r.length-1;o>=0;o--){let s=r[o];if(s.svgText&&s.svgText.toString().indexOf(n)>-1){let a=this._svgElementFromConfig(s),l=this._extractSvgIconFromSet(a,n,s.options);if(l)return l}}return null}_loadSvgIconFromConfig(n){return this._fetchIcon(n).pipe(He(r=>n.svgText=r),le(()=>this._svgElementFromConfig(n)))}_loadSvgIconSetFromConfig(n){return n.svgText?te(null):this._fetchIcon(n).pipe(He(r=>n.svgText=r))}_extractSvgIconFromSet(n,r,o){let s=n.querySelector(`[id="${r}"]`);if(!s)return null;let a=s.cloneNode(!0);if(a.removeAttribute("id"),a.nodeName.toLowerCase()==="svg")return this._setSvgAttributes(a,o);if(a.nodeName.toLowerCase()==="symbol")return this._setSvgAttributes(this._toSvgElement(a),o);let l=this._svgElementFromString(Wc("<svg></svg>"));return l.appendChild(a),this._setSvgAttributes(l,o)}_svgElementFromString(n){let r=this._document.createElement("DIV");r.innerHTML=n;let o=r.querySelector("svg");if(!o)throw Error("<svg> tag not found");return o}_toSvgElement(n){let r=this._svgElementFromString(Wc("<svg></svg>")),o=n.attributes;for(let s=0;s<o.length;s++){let{name:a,value:l}=o[s];a!=="id"&&r.setAttribute(a,l)}for(let s=0;s<n.childNodes.length;s++)n.childNodes[s].nodeType===this._document.ELEMENT_NODE&&r.appendChild(n.childNodes[s].cloneNode(!0));return r}_setSvgAttributes(n,r){return n.setAttribute("fit",""),n.setAttribute("height","100%"),n.setAttribute("width","100%"),n.setAttribute("preserveAspectRatio","xMidYMid meet"),n.setAttribute("focusable","false"),r&&r.viewBox&&n.setAttribute("viewBox",r.viewBox),n}_fetchIcon(n){let{url:r,options:o}=n,s=o?.withCredentials??!1;if(!this._httpClient)throw m3();if(r==null)throw Error(`Cannot fetch icon from URL "${r}".`);let a=this._sanitizer.sanitize(Vt.RESOURCE_URL,r);if(!a)throw u1(r);let l=this._inProgressUrlFetches.get(a);if(l)return l;let d=this._httpClient.get(a,{responseType:"text",withCredentials:s}).pipe(le(p=>Wc(p)),fn(()=>this._inProgressUrlFetches.delete(a)),f_());return this._inProgressUrlFetches.set(a,d),d}_addSvgIconConfig(n,r,o){return this._svgIconConfigs.set(h1(n,r),o),this}_addSvgIconSetConfig(n,r){let o=this._iconSetConfigs.get(n);return o?o.push(r):this._iconSetConfigs.set(n,[r]),this}_svgElementFromConfig(n){if(!n.svgElement){let r=this._svgElementFromString(n.svgText);this._setSvgAttributes(r,n.options),n.svgElement=r}return n.svgElement}_getIconConfigFromResolvers(n,r){for(let o=0;o<this._resolvers.length;o++){let s=this._resolvers[o](r,n);if(s)return g3(s)?new hn(s.url,null,s.options):new hn(s,null)}}};t.\u0275fac=function(r){return new(r||t)(v(ur,8),v(In),v(ue,8),v(or))},t.\u0275prov=k({token:t,factory:t.\u0275fac,providedIn:"root"});let i=t;return i})();function Ih(i){return i.cloneNode(!0)}function h1(i,t){return i+":"+t}function g3(i){return!!(i.url&&i.options)}var p3=new K("MAT_ICON_DEFAULT_OPTIONS"),f3=new K("mat-icon-location",{providedIn:"root",factory:b3});function b3(){let i=_(ue),t=i?i.location:null;return{getPathname:()=>t?t.pathname+t.search:""}}var g1=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],v3=g1.map(i=>`[${i}]`).join(", "),x3=/^url\(['"]?#(.*?)['"]?\)$/,kh=(()=>{let t=class t{get color(){return this._color||this._defaultColor}set color(n){this._color=n}get svgIcon(){return this._svgIcon}set svgIcon(n){n!==this._svgIcon&&(n?this._updateSvgIcon(n):this._svgIcon&&this._clearSvgElement(),this._svgIcon=n)}get fontSet(){return this._fontSet}set fontSet(n){let r=this._cleanupFontValue(n);r!==this._fontSet&&(this._fontSet=r,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(n){let r=this._cleanupFontValue(n);r!==this._fontIcon&&(this._fontIcon=r,this._updateFontIconClasses())}constructor(n,r,o,s,a,l){this._elementRef=n,this._iconRegistry=r,this._location=s,this._errorHandler=a,this.inline=!1,this._previousFontSetClass=[],this._currentIconFetch=Jn.EMPTY,l&&(l.color&&(this.color=this._defaultColor=l.color),l.fontSet&&(this.fontSet=l.fontSet)),o||n.nativeElement.setAttribute("aria-hidden","true")}_splitIconName(n){if(!n)return["",""];let r=n.split(":");switch(r.length){case 1:return["",r[0]];case 2:return r;default:throw Error(`Invalid icon name: "${n}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){let n=this._elementsWithExternalReferences;if(n&&n.size){let r=this._location.getPathname();r!==this._previousPath&&(this._previousPath=r,this._prependPathToReferences(r))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(n){this._clearSvgElement();let r=this._location.getPathname();this._previousPath=r,this._cacheChildrenWithExternalReferences(n),this._prependPathToReferences(r),this._elementRef.nativeElement.appendChild(n)}_clearSvgElement(){let n=this._elementRef.nativeElement,r=n.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();r--;){let o=n.childNodes[r];(o.nodeType!==1||o.nodeName.toLowerCase()==="svg")&&o.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;let n=this._elementRef.nativeElement,r=(this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet).split(/ +/):this._iconRegistry.getDefaultFontSetClass()).filter(o=>o.length>0);this._previousFontSetClass.forEach(o=>n.classList.remove(o)),r.forEach(o=>n.classList.add(o)),this._previousFontSetClass=r,this.fontIcon!==this._previousFontIconClass&&!r.includes("mat-ligature-font")&&(this._previousFontIconClass&&n.classList.remove(this._previousFontIconClass),this.fontIcon&&n.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(n){return typeof n=="string"?n.trim().split(" ")[0]:n}_prependPathToReferences(n){let r=this._elementsWithExternalReferences;r&&r.forEach((o,s)=>{o.forEach(a=>{s.setAttribute(a.name,`url('${n}#${a.value}')`)})})}_cacheChildrenWithExternalReferences(n){let r=n.querySelectorAll(v3),o=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let s=0;s<r.length;s++)g1.forEach(a=>{let l=r[s],d=l.getAttribute(a),p=d?d.match(x3):null;if(p){let w=o.get(l);w||(w=[],o.set(l,w)),w.push({name:a,value:p[1]})}})}_updateSvgIcon(n){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),n){let[r,o]=this._splitIconName(n);r&&(this._svgNamespace=r),o&&(this._svgName=o),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(o,r).pipe(jt(1)).subscribe(s=>this._setSvgElement(s),s=>{let a=`Error retrieving icon ${r}:${o}! ${s.message}`;this._errorHandler.handleError(new Error(a))})}}};t.\u0275fac=function(r){return new(r||t)(c(x),c(h3),rr("aria-hidden"),c(f3),c(or),c(p3,8))},t.\u0275cmp=I({type:t,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:10,hostBindings:function(r,o){r&2&&(De("data-mat-icon-type",o._usingFontIcon()?"font":"svg")("data-mat-icon-name",o._svgName||o.fontIcon)("data-mat-icon-namespace",o._svgNamespace||o.fontSet)("fontIcon",o._usingFontIcon()?o.fontIcon:null),Yi(o.color?"mat-"+o.color:""),U("mat-icon-inline",o.inline)("mat-icon-no-color",o.color!=="primary"&&o.color!=="accent"&&o.color!=="warn"))},inputs:{color:"color",inline:[we.HasDecoratorInputTransform,"inline","inline",fi],svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],standalone:!0,features:[Si,Oe],ngContentSelectors:d3,decls:1,vars:0,template:function(r,o){r&1&&(Ne(),be(0))},styles:["mat-icon,mat-icon.mat-primary,mat-icon.mat-accent,mat-icon.mat-warn{color:var(--mat-icon-color)}.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,changeDetection:0});let i=t;return i})(),Eh=(()=>{let t=class t{};t.\u0275fac=function(r){return new(r||t)},t.\u0275mod=M({type:t}),t.\u0275inj=T({imports:[Ve,Ve]});let i=t;return i})();var _3=["mat-button",""],y3=[[["",8,"material-icons",3,"iconPositionEnd",""],["mat-icon",3,"iconPositionEnd",""],["","matButtonIcon","",3,"iconPositionEnd",""]],"*",[["","iconPositionEnd","",8,"material-icons"],["mat-icon","iconPositionEnd",""],["","matButtonIcon","","iconPositionEnd",""]]],w3=[".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd]), [matButtonIcon]:not([iconPositionEnd])","*",".material-icons[iconPositionEnd], mat-icon[iconPositionEnd], [matButtonIcon][iconPositionEnd]"];var C3=".cdk-high-contrast-active .mat-mdc-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-unelevated-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-raised-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-outlined-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-icon-button{outline:solid 1px}";var I3=["mat-icon-button",""],k3=["*"];var E3=new K("MAT_BUTTON_CONFIG");var S3=[{attribute:"mat-button",mdcClasses:["mdc-button","mat-mdc-button"]},{attribute:"mat-flat-button",mdcClasses:["mdc-button","mdc-button--unelevated","mat-mdc-unelevated-button"]},{attribute:"mat-raised-button",mdcClasses:["mdc-button","mdc-button--raised","mat-mdc-raised-button"]},{attribute:"mat-stroked-button",mdcClasses:["mdc-button","mdc-button--outlined","mat-mdc-outlined-button"]},{attribute:"mat-fab",mdcClasses:["mdc-fab","mat-mdc-fab"]},{attribute:"mat-mini-fab",mdcClasses:["mdc-fab","mdc-fab--mini","mat-mdc-mini-fab"]},{attribute:"mat-icon-button",mdcClasses:["mdc-icon-button","mat-mdc-icon-button"]}],f1=(()=>{let t=class t{get ripple(){return this._rippleLoader?.getRipple(this._elementRef.nativeElement)}set ripple(n){this._rippleLoader?.attachRipple(this._elementRef.nativeElement,n)}get disableRipple(){return this._disableRipple}set disableRipple(n){this._disableRipple=n,this._updateRippleDisabled()}get disabled(){return this._disabled}set disabled(n){this._disabled=n,this._updateRippleDisabled()}constructor(n,r,o,s){this._elementRef=n,this._platform=r,this._ngZone=o,this._animationMode=s,this._focusMonitor=_(KI),this._rippleLoader=_(l1),this._isFab=!1,this._disableRipple=!1,this._disabled=!1;let a=_(E3,{optional:!0}),l=n.nativeElement,d=l.classList;this.disabledInteractive=a?.disabledInteractive??!1,this._rippleLoader?.configureRipple(l,{className:"mat-mdc-button-ripple"});for(let{attribute:p,mdcClasses:w}of S3)l.hasAttribute(p)&&d.add(...w)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._rippleLoader?.destroyRipple(this._elementRef.nativeElement)}focus(n="program",r){n?this._focusMonitor.focusVia(this._elementRef.nativeElement,n,r):this._elementRef.nativeElement.focus(r)}_getAriaDisabled(){return this.ariaDisabled!=null?this.ariaDisabled: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)}};t.\u0275fac=function(r){js()},t.\u0275dir=N({type:t,inputs:{color:"color",disableRipple:[we.HasDecoratorInputTransform,"disableRipple","disableRipple",fi],disabled:[we.HasDecoratorInputTransform,"disabled","disabled",fi],ariaDisabled:[we.HasDecoratorInputTransform,"aria-disabled","ariaDisabled",fi],disabledInteractive:[we.HasDecoratorInputTransform,"disabledInteractive","disabledInteractive",fi]},features:[Si]});let i=t;return i})();var b1=(()=>{let t=class t extends f1{constructor(n,r,o,s){super(n,r,o,s)}};t.\u0275fac=function(r){return new(r||t)(c(x),c(Ye),c(de),c(ki,8))},t.\u0275cmp=I({type:t,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-flat-button",""],["button","mat-stroked-button",""]],hostVars:14,hostBindings:function(r,o){r&2&&(De("disabled",o._getDisabledAttribute())("aria-disabled",o._getAriaDisabled()),Yi(o.color?"mat-"+o.color:""),U("mat-mdc-button-disabled",o.disabled)("mat-mdc-button-disabled-interactive",o.disabledInteractive)("_mat-animation-noopable",o._animationMode==="NoopAnimations")("mat-unthemed",!o.color)("mat-mdc-button-base",!0))},exportAs:["matButton"],standalone:!0,features:[C,Oe],attrs:_3,ngContentSelectors:w3,decls:7,vars:4,consts:[[1,"mat-mdc-button-persistent-ripple"],[1,"mdc-button__label"],[1,"mat-mdc-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(r,o){r&1&&(Ne(y3),b(0,"span",0),be(1),h(2,"span",1),be(3,1),g(),be(4,2),b(5,"span",2)(6,"span",3)),r&2&&U("mdc-button__ripple",!o._isFab)("mdc-fab__ripple",o._isFab)},styles:['.mdc-touch-target-wrapper{display:inline}.mdc-elevation-overlay{position:absolute;border-radius:inherit;pointer-events:none;opacity:var(--mdc-elevation-overlay-opacity, 0);transition:opacity 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-button{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;user-select:none;-webkit-appearance:none;overflow:visible;vertical-align:middle;background:rgba(0,0,0,0)}.mdc-button .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.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__icon{margin-left:0;margin-right:8px;display:inline-block;position:relative;vertical-align:top}[dir=rtl] .mdc-button .mdc-button__icon,.mdc-button .mdc-button__icon[dir=rtl]{margin-left:8px;margin-right:0}.mdc-button .mdc-button__progress-indicator{font-size:0;position:absolute;transform:translate(-50%, -50%);top:50%;left:50%;line-height:initial}.mdc-button .mdc-button__label{position:relative}.mdc-button .mdc-button__focus-ring{pointer-events:none;border:2px solid rgba(0,0,0,0);border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px);display:none}@media screen and (forced-colors: active){.mdc-button .mdc-button__focus-ring{border-color:CanvasText}}.mdc-button .mdc-button__focus-ring::after{content:"";border:2px solid rgba(0,0,0,0);border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-button .mdc-button__focus-ring::after{border-color:CanvasText}}@media screen and (forced-colors: active){.mdc-button.mdc-ripple-upgraded--background-focused .mdc-button__focus-ring,.mdc-button:not(.mdc-ripple-upgraded):focus .mdc-button__focus-ring{display:block}}.mdc-button .mdc-button__touch{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%)}.mdc-button__label+.mdc-button__icon{margin-left:8px;margin-right:0}[dir=rtl] .mdc-button__label+.mdc-button__icon,.mdc-button__label+.mdc-button__icon[dir=rtl]{margin-left:0;margin-right:8px}svg.mdc-button__icon{fill:currentColor}.mdc-button--touch{margin-top:6px;margin-bottom:6px}.mdc-button{padding:0 8px 0 8px}.mdc-button--unelevated{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 16px 0 16px}.mdc-button--unelevated.mdc-button--icon-trailing{padding:0 12px 0 16px}.mdc-button--unelevated.mdc-button--icon-leading{padding:0 16px 0 12px}.mdc-button--raised{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 16px 0 16px}.mdc-button--raised.mdc-button--icon-trailing{padding:0 12px 0 16px}.mdc-button--raised.mdc-button--icon-leading{padding:0 16px 0 12px}.mdc-button--outlined{border-style:solid;transition:border 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-button--outlined .mdc-button__ripple{border-style:solid;border-color:rgba(0,0,0,0)}.mat-mdc-button{font-family:var(--mdc-text-button-label-text-font);font-size:var(--mdc-text-button-label-text-size);letter-spacing:var(--mdc-text-button-label-text-tracking);font-weight:var(--mdc-text-button-label-text-weight);text-transform:var(--mdc-text-button-label-text-transform);height:var(--mdc-text-button-container-height);border-radius:var(--mdc-text-button-container-shape);padding:0 var(--mat-text-button-horizontal-padding, 8px)}.mat-mdc-button:not(:disabled){color:var(--mdc-text-button-label-text-color)}.mat-mdc-button:disabled{color:var(--mdc-text-button-disabled-label-text-color)}.mat-mdc-button .mdc-button__ripple{border-radius:var(--mdc-text-button-container-shape)}.mat-mdc-button:has(.material-icons,mat-icon,[matButtonIcon]){padding:0 var(--mat-text-button-with-icon-horizontal-padding, 8px)}.mat-mdc-button>.mat-icon{margin-right:var(--mat-text-button-icon-spacing, 8px);margin-left:var(--mat-text-button-icon-offset, 0)}[dir=rtl] .mat-mdc-button>.mat-icon{margin-right:var(--mat-text-button-icon-offset, 0);margin-left:var(--mat-text-button-icon-spacing, 8px)}.mat-mdc-button .mdc-button__label+.mat-icon{margin-right:var(--mat-text-button-icon-offset, 0);margin-left:var(--mat-text-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-button .mdc-button__label+.mat-icon{margin-right:var(--mat-text-button-icon-spacing, 8px);margin-left:var(--mat-text-button-icon-offset, 0)}.mat-mdc-button .mat-ripple-element{background-color:var(--mat-text-button-ripple-color)}.mat-mdc-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-text-button-state-layer-color)}.mat-mdc-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-text-button-disabled-state-layer-color)}.mat-mdc-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-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(--mat-text-button-focus-state-layer-opacity)}.mat-mdc-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-pressed-state-layer-opacity)}.mat-mdc-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-text-button-touch-target-display)}.mat-mdc-button[disabled],.mat-mdc-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-text-button-disabled-label-text-color)}.mat-mdc-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-unelevated-button{font-family:var(--mdc-filled-button-label-text-font);font-size:var(--mdc-filled-button-label-text-size);letter-spacing:var(--mdc-filled-button-label-text-tracking);font-weight:var(--mdc-filled-button-label-text-weight);text-transform:var(--mdc-filled-button-label-text-transform);height:var(--mdc-filled-button-container-height);border-radius:var(--mdc-filled-button-container-shape);padding:0 var(--mat-filled-button-horizontal-padding, 16px)}.mat-mdc-unelevated-button:not(:disabled){background-color:var(--mdc-filled-button-container-color)}.mat-mdc-unelevated-button:disabled{background-color:var(--mdc-filled-button-disabled-container-color)}.mat-mdc-unelevated-button:not(:disabled){color:var(--mdc-filled-button-label-text-color)}.mat-mdc-unelevated-button:disabled{color:var(--mdc-filled-button-disabled-label-text-color)}.mat-mdc-unelevated-button .mdc-button__ripple{border-radius:var(--mdc-filled-button-container-shape)}.mat-mdc-unelevated-button>.mat-icon{margin-right:var(--mat-filled-button-icon-spacing, 8px);margin-left:var(--mat-filled-button-icon-offset, -4px)}[dir=rtl] .mat-mdc-unelevated-button>.mat-icon{margin-right:var(--mat-filled-button-icon-offset, -4px);margin-left:var(--mat-filled-button-icon-spacing, 8px)}.mat-mdc-unelevated-button .mdc-button__label+.mat-icon{margin-right:var(--mat-filled-button-icon-offset, -4px);margin-left:var(--mat-filled-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-unelevated-button .mdc-button__label+.mat-icon{margin-right:var(--mat-filled-button-icon-spacing, 8px);margin-left:var(--mat-filled-button-icon-offset, -4px)}.mat-mdc-unelevated-button .mat-ripple-element{background-color:var(--mat-filled-button-ripple-color)}.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-filled-button-state-layer-color)}.mat-mdc-unelevated-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-filled-button-disabled-state-layer-color)}.mat-mdc-unelevated-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-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(--mat-filled-button-focus-state-layer-opacity)}.mat-mdc-unelevated-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-pressed-state-layer-opacity)}.mat-mdc-unelevated-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-filled-button-touch-target-display)}.mat-mdc-unelevated-button[disabled],.mat-mdc-unelevated-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-filled-button-disabled-label-text-color);background-color:var(--mdc-filled-button-disabled-container-color)}.mat-mdc-unelevated-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-raised-button{font-family:var(--mdc-protected-button-label-text-font);font-size:var(--mdc-protected-button-label-text-size);letter-spacing:var(--mdc-protected-button-label-text-tracking);font-weight:var(--mdc-protected-button-label-text-weight);text-transform:var(--mdc-protected-button-label-text-transform);height:var(--mdc-protected-button-container-height);border-radius:var(--mdc-protected-button-container-shape);padding:0 var(--mat-protected-button-horizontal-padding, 16px);box-shadow:var(--mdc-protected-button-container-elevation-shadow)}.mat-mdc-raised-button:not(:disabled){background-color:var(--mdc-protected-button-container-color)}.mat-mdc-raised-button:disabled{background-color:var(--mdc-protected-button-disabled-container-color)}.mat-mdc-raised-button:not(:disabled){color:var(--mdc-protected-button-label-text-color)}.mat-mdc-raised-button:disabled{color:var(--mdc-protected-button-disabled-label-text-color)}.mat-mdc-raised-button .mdc-button__ripple{border-radius:var(--mdc-protected-button-container-shape)}.mat-mdc-raised-button>.mat-icon{margin-right:var(--mat-protected-button-icon-spacing, 8px);margin-left:var(--mat-protected-button-icon-offset, -4px)}[dir=rtl] .mat-mdc-raised-button>.mat-icon{margin-right:var(--mat-protected-button-icon-offset, -4px);margin-left:var(--mat-protected-button-icon-spacing, 8px)}.mat-mdc-raised-button .mdc-button__label+.mat-icon{margin-right:var(--mat-protected-button-icon-offset, -4px);margin-left:var(--mat-protected-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-raised-button .mdc-button__label+.mat-icon{margin-right:var(--mat-protected-button-icon-spacing, 8px);margin-left:var(--mat-protected-button-icon-offset, -4px)}.mat-mdc-raised-button .mat-ripple-element{background-color:var(--mat-protected-button-ripple-color)}.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-protected-button-state-layer-color)}.mat-mdc-raised-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-protected-button-disabled-state-layer-color)}.mat-mdc-raised-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-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(--mat-protected-button-focus-state-layer-opacity)}.mat-mdc-raised-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-pressed-state-layer-opacity)}.mat-mdc-raised-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-protected-button-touch-target-display)}.mat-mdc-raised-button:hover{box-shadow:var(--mdc-protected-button-hover-container-elevation-shadow)}.mat-mdc-raised-button:focus{box-shadow:var(--mdc-protected-button-focus-container-elevation-shadow)}.mat-mdc-raised-button:active,.mat-mdc-raised-button:focus:active{box-shadow:var(--mdc-protected-button-pressed-container-elevation-shadow)}.mat-mdc-raised-button[disabled],.mat-mdc-raised-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-protected-button-disabled-label-text-color);background-color:var(--mdc-protected-button-disabled-container-color)}.mat-mdc-raised-button[disabled].mat-mdc-button-disabled,.mat-mdc-raised-button.mat-mdc-button-disabled.mat-mdc-button-disabled{box-shadow:var(--mdc-protected-button-disabled-container-elevation-shadow)}.mat-mdc-raised-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-outlined-button{font-family:var(--mdc-outlined-button-label-text-font);font-size:var(--mdc-outlined-button-label-text-size);letter-spacing:var(--mdc-outlined-button-label-text-tracking);font-weight:var(--mdc-outlined-button-label-text-weight);text-transform:var(--mdc-outlined-button-label-text-transform);height:var(--mdc-outlined-button-container-height);border-radius:var(--mdc-outlined-button-container-shape);padding:0 15px 0 15px;border-width:var(--mdc-outlined-button-outline-width);padding:0 var(--mat-outlined-button-horizontal-padding, 15px)}.mat-mdc-outlined-button:not(:disabled){color:var(--mdc-outlined-button-label-text-color)}.mat-mdc-outlined-button:disabled{color:var(--mdc-outlined-button-disabled-label-text-color)}.mat-mdc-outlined-button .mdc-button__ripple{border-radius:var(--mdc-outlined-button-container-shape)}.mat-mdc-outlined-button:not(:disabled){border-color:var(--mdc-outlined-button-outline-color)}.mat-mdc-outlined-button:disabled{border-color:var(--mdc-outlined-button-disabled-outline-color)}.mat-mdc-outlined-button.mdc-button--icon-trailing{padding:0 11px 0 15px}.mat-mdc-outlined-button.mdc-button--icon-leading{padding:0 15px 0 11px}.mat-mdc-outlined-button .mdc-button__ripple{top:-1px;left:-1px;bottom:-1px;right:-1px;border-width:var(--mdc-outlined-button-outline-width)}.mat-mdc-outlined-button .mdc-button__touch{left:calc(-1 * var(--mdc-outlined-button-outline-width));width:calc(100% + 2 * var(--mdc-outlined-button-outline-width))}.mat-mdc-outlined-button>.mat-icon{margin-right:var(--mat-outlined-button-icon-spacing, 8px);margin-left:var(--mat-outlined-button-icon-offset, -4px)}[dir=rtl] .mat-mdc-outlined-button>.mat-icon{margin-right:var(--mat-outlined-button-icon-offset, -4px);margin-left:var(--mat-outlined-button-icon-spacing, 8px)}.mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-right:var(--mat-outlined-button-icon-offset, -4px);margin-left:var(--mat-outlined-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-right:var(--mat-outlined-button-icon-spacing, 8px);margin-left:var(--mat-outlined-button-icon-offset, -4px)}.mat-mdc-outlined-button .mat-ripple-element{background-color:var(--mat-outlined-button-ripple-color)}.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-outlined-button-state-layer-color)}.mat-mdc-outlined-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-outlined-button-disabled-state-layer-color)}.mat-mdc-outlined-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-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(--mat-outlined-button-focus-state-layer-opacity)}.mat-mdc-outlined-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-pressed-state-layer-opacity)}.mat-mdc-outlined-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-outlined-button-touch-target-display)}.mat-mdc-outlined-button[disabled],.mat-mdc-outlined-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-outlined-button-disabled-label-text-color);border-color:var(--mdc-outlined-button-disabled-outline-color)}.mat-mdc-outlined-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-button-base{text-decoration:none}.mat-mdc-button,.mat-mdc-unelevated-button,.mat-mdc-raised-button,.mat-mdc-outlined-button{-webkit-tap-highlight-color:rgba(0,0,0,0)}.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{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{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{content:"";opacity:0}.mat-mdc-button .mdc-button__label,.mat-mdc-unelevated-button .mdc-button__label,.mat-mdc-raised-button .mdc-button__label,.mat-mdc-outlined-button .mdc-button__label{z-index:1}.mat-mdc-button .mat-mdc-focus-indicator,.mat-mdc-unelevated-button .mat-mdc-focus-indicator,.mat-mdc-raised-button .mat-mdc-focus-indicator,.mat-mdc-outlined-button .mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-unelevated-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-raised-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-outlined-button:focus .mat-mdc-focus-indicator::before{content:""}.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{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{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;border-width:-1px}.mat-mdc-unelevated-button .mat-mdc-focus-indicator::before,.mat-mdc-raised-button .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-mdc-outlined-button .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 3px)*-1)}',".cdk-high-contrast-active .mat-mdc-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-unelevated-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-raised-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-outlined-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-icon-button{outline:solid 1px}"],encapsulation:2,changeDetection:0});let i=t;return i})();var Sh=(()=>{let t=class t extends f1{constructor(n,r,o,s){super(n,r,o,s),this._rippleLoader.configureRipple(this._elementRef.nativeElement,{centered:!0})}};t.\u0275fac=function(r){return new(r||t)(c(x),c(Ye),c(de),c(ki,8))},t.\u0275cmp=I({type:t,selectors:[["button","mat-icon-button",""]],hostVars:14,hostBindings:function(r,o){r&2&&(De("disabled",o._getDisabledAttribute())("aria-disabled",o._getAriaDisabled()),Yi(o.color?"mat-"+o.color:""),U("mat-mdc-button-disabled",o.disabled)("mat-mdc-button-disabled-interactive",o.disabledInteractive)("_mat-animation-noopable",o._animationMode==="NoopAnimations")("mat-unthemed",!o.color)("mat-mdc-button-base",!0))},exportAs:["matButton"],standalone:!0,features:[C,Oe],attrs:I3,ngContentSelectors:k3,decls:4,vars:0,consts:[[1,"mat-mdc-button-persistent-ripple","mdc-icon-button__ripple"],[1,"mat-mdc-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(r,o){r&1&&(Ne(),b(0,"span",0),be(1),b(2,"span",1)(3,"span",2))},styles:['.mdc-icon-button{display:inline-block;position:relative;box-sizing:border-box;border:none;outline:none;background-color:rgba(0,0,0,0);fill:currentColor;color:inherit;text-decoration:none;cursor:pointer;user-select:none;z-index:0;overflow:visible}.mdc-icon-button .mdc-icon-button__touch{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}@media screen and (forced-colors: active){.mdc-icon-button.mdc-ripple-upgraded--background-focused .mdc-icon-button__focus-ring,.mdc-icon-button:not(.mdc-ripple-upgraded):focus .mdc-icon-button__focus-ring{display:block}}.mdc-icon-button:disabled{cursor:default;pointer-events:none}.mdc-icon-button[hidden]{display:none}.mdc-icon-button--display-flex{align-items:center;display:inline-flex;justify-content:center}.mdc-icon-button__focus-ring{pointer-events:none;border:2px solid rgba(0,0,0,0);border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:100%;width:100%;display:none}@media screen and (forced-colors: active){.mdc-icon-button__focus-ring{border-color:CanvasText}}.mdc-icon-button__focus-ring::after{content:"";border:2px solid rgba(0,0,0,0);border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-icon-button__focus-ring::after{border-color:CanvasText}}.mdc-icon-button__icon{display:inline-block}.mdc-icon-button__icon.mdc-icon-button__icon--on{display:none}.mdc-icon-button--on .mdc-icon-button__icon{display:none}.mdc-icon-button--on .mdc-icon-button__icon.mdc-icon-button__icon--on{display:inline-block}.mdc-icon-button__link{height:100%;left:0;outline:none;position:absolute;top:0;width:100%}.mat-mdc-icon-button{color:var(--mdc-icon-button-icon-color)}.mat-mdc-icon-button .mdc-button__icon{font-size:var(--mdc-icon-button-icon-size)}.mat-mdc-icon-button svg,.mat-mdc-icon-button img{width:var(--mdc-icon-button-icon-size);height:var(--mdc-icon-button-icon-size)}.mat-mdc-icon-button:disabled{color:var(--mdc-icon-button-disabled-icon-color)}.mat-mdc-icon-button{border-radius:50%;flex-shrink:0;text-align:center;width:var(--mdc-icon-button-state-layer-size, 48px);height:var(--mdc-icon-button-state-layer-size, 48px);padding:calc(calc(var(--mdc-icon-button-state-layer-size, 48px) - var(--mdc-icon-button-icon-size, 24px)) / 2);font-size:var(--mdc-icon-button-icon-size);-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-icon-button svg{vertical-align:baseline}.mat-mdc-icon-button[disabled],.mat-mdc-icon-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-icon-button-disabled-icon-color)}.mat-mdc-icon-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.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{z-index:1}.mat-mdc-icon-button .mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-icon-button:focus .mat-mdc-focus-indicator::before{content:""}.mat-mdc-icon-button .mat-ripple-element{background-color:var(--mat-icon-button-ripple-color)}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-icon-button-state-layer-color)}.mat-mdc-icon-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-icon-button-disabled-state-layer-color)}.mat-mdc-icon-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-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(--mat-icon-button-focus-state-layer-opacity)}.mat-mdc-icon-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-pressed-state-layer-opacity)}.mat-mdc-icon-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%);display:var(--mat-icon-button-touch-target-display)}.mat-mdc-icon-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple{border-radius:50%}.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:rgba(0,0,0,0);opacity:1}',C3],encapsulation:2,changeDetection:0});let i=t;return i})();var Dh=(()=>{let t=class t{};t.\u0275fac=function(r){return new(r||t)},t.\u0275mod=M({type:t}),t.\u0275inj=T({imports:[Ve,wh,Ve]});let i=t;return i})();var x1=Kn({passive:!0}),_1=(()=>{let t=class t{constructor(n,r){this._platform=n,this._ngZone=r,this._monitoredElements=new Map}monitor(n){if(!this._platform.isBrowser)return Ii;let r=$i(n),o=this._monitoredElements.get(r);if(o)return o.subject;let s=new ke,a="cdk-text-field-autofilled",l=d=>{d.animationName==="cdk-text-field-autofill-start"&&!r.classList.contains(a)?(r.classList.add(a),this._ngZone.run(()=>s.next({target:d.target,isAutofilled:!0}))):d.animationName==="cdk-text-field-autofill-end"&&r.classList.contains(a)&&(r.classList.remove(a),this._ngZone.run(()=>s.next({target:d.target,isAutofilled:!1})))};return this._ngZone.runOutsideAngular(()=>{r.addEventListener("animationstart",l,x1),r.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(r,{subject:s,unlisten:()=>{r.removeEventListener("animationstart",l,x1)}}),s}stopMonitoring(n){let r=$i(n),o=this._monitoredElements.get(r);o&&(o.unlisten(),o.subject.complete(),r.classList.remove("cdk-text-field-autofill-monitored"),r.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(r))}ngOnDestroy(){this._monitoredElements.forEach((n,r)=>this.stopMonitoring(r))}};t.\u0275fac=function(r){return new(r||t)(v(Ye),v(de))},t.\u0275prov=k({token:t,factory:t.\u0275fac,providedIn:"root"});let i=t;return i})();var y1=(()=>{let t=class t{};t.\u0275fac=function(r){return new(r||t)},t.\u0275mod=M({type:t}),t.\u0275inj=T({});let i=t;return i})();var qx=class{constructor(t){this._box=t,this._destroyed=new ke,this._resizeSubject=new ke,this._elementObservables=new Map,typeof ResizeObserver<"u"&&(this._resizeObserver=new ResizeObserver(e=>this._resizeSubject.next(e)))}observe(t){return this._elementObservables.has(t)||this._elementObservables.set(t,new gi(e=>{let n=this._resizeSubject.subscribe(e);return this._resizeObserver?.observe(t,{box:this._box}),()=>{this._resizeObserver?.unobserve(t),n.unsubscribe(),this._elementObservables.delete(t)}}).pipe(kt(e=>e.some(n=>n.target===t)),b_({bufferSize:1,refCount:!0}),re(this._destroyed))),this._elementObservables.get(t)}destroy(){this._destroyed.next(),this._destroyed.complete(),this._resizeSubject.complete(),this._elementObservables.clear()}},w1=(()=>{let t=class t{constructor(){this._observers=new Map,this._ngZone=_(de),typeof ResizeObserver<"u"}ngOnDestroy(){for(let[,n]of this._observers)n.destroy();this._observers.clear(),typeof ResizeObserver<"u"}observe(n,r){let o=r?.box||"content-box";return this._observers.has(o)||this._observers.set(o,new qx(o)),this._observers.get(o).observe(n)}};t.\u0275fac=function(r){return new(r||t)},t.\u0275prov=k({token:t,factory:t.\u0275fac,providedIn:"root"});let i=t;return i})();var T3=["notch"],M3=["matFormFieldNotchedOutline",""],F3=["*"],R3=["textField"],A3=["iconPrefixContainer"],O3=["textPrefixContainer"],P3=["*",[["mat-label"]],[["","matPrefix",""],["","matIconPrefix",""]],[["","matTextPrefix",""]],[["","matTextSuffix",""]],[["","matSuffix",""],["","matIconSuffix",""]],[["mat-error"],["","matError",""]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],N3=["*","mat-label","[matPrefix], [matIconPrefix]","[matTextPrefix]","[matTextSuffix]","[matSuffix], [matIconSuffix]","mat-error, [matError]","mat-hint:not([align='end'])","mat-hint[align='end']"];function j3(i,t){i&1&&b(0,"span",17)}function V3(i,t){if(i&1&&(h(0,"label",16),be(1,1),D(2,j3,1,0,"span",17),g()),i&2){let e=f(2);m("floating",e._shouldLabelFloat())("monitorResize",e._hasOutline())("id",e._labelId),De("for",e._control.disableAutomaticLabeling?null:e._control.id),u(2),ft(2,!e.hideRequiredMarker&&e._control.required?2:-1)}}function L3(i,t){if(i&1&&D(0,V3,3,5,"label",16),i&2){let e=f();ft(0,e._hasFloatingLabel()?0:-1)}}function z3(i,t){i&1&&b(0,"div",5)}function B3(i,t){}function H3(i,t){if(i&1&&D(0,B3,0,0,"ng-template",11),i&2){f(2);let e=Qi(1);m("ngTemplateOutlet",e)}}function $3(i,t){if(i&1&&(h(0,"div",7),D(1,H3,1,1,null,11),g()),i&2){let e=f();m("matFormFieldNotchedOutlineOpen",e._shouldLabelFloat()),u(),ft(1,e._forceDisplayInfixLabel()?-1:1)}}function U3(i,t){i&1&&(h(0,"div",8,2),be(2,2),g())}function W3(i,t){i&1&&(h(0,"div",9,3),be(2,3),g())}function G3(i,t){}function q3(i,t){if(i&1&&D(0,G3,0,0,"ng-template",11),i&2){f();let e=Qi(1);m("ngTemplateOutlet",e)}}function Y3(i,t){i&1&&(h(0,"div",12),be(1,4),g())}function Q3(i,t){i&1&&(h(0,"div",13),be(1,5),g())}function K3(i,t){i&1&&b(0,"div",14)}function Z3(i,t){if(i&1&&(h(0,"div",18),be(1,6),g()),i&2){let e=f();m("@transitionMessages",e._subscriptAnimationState)}}function X3(i,t){if(i&1&&(h(0,"mat-hint",20),S(1),g()),i&2){let e=f(2);m("id",e._hintLabelId),u(),xe(e.hintLabel)}}function J3(i,t){if(i&1&&(h(0,"div",19),D(1,X3,2,2,"mat-hint",20),be(2,7),b(3,"div",21),be(4,8),g()),i&2){let e=f();m("@transitionMessages",e._subscriptAnimationState),u(),ft(1,e.hintLabel?1:-1)}}var Mh=(()=>{let t=class t{};t.\u0275fac=function(r){return new(r||t)},t.\u0275dir=N({type:t,selectors:[["mat-label"]],standalone:!0});let i=t;return i})();var e4=new K("MatError");var t4=0,C1=(()=>{let t=class t{constructor(){this.align="start",this.id=`mat-mdc-hint-${t4++}`}};t.\u0275fac=function(r){return new(r||t)},t.\u0275dir=N({type:t,selectors:[["mat-hint"]],hostAttrs:[1,"mat-mdc-form-field-hint","mat-mdc-form-field-bottom-align"],hostVars:4,hostBindings:function(r,o){r&2&&(ar("id",o.id),De("align",null),U("mat-mdc-form-field-hint-end",o.align==="end"))},inputs:{align:"align",id:"id"},standalone:!0});let i=t;return i})(),i4=new K("MatPrefix");var F1=new K("MatSuffix"),R1=(()=>{let t=class t{constructor(){this._isText=!1}set _isTextSelector(n){this._isText=!0}};t.\u0275fac=function(r){return new(r||t)},t.\u0275dir=N({type:t,selectors:[["","matSuffix",""],["","matIconSuffix",""],["","matTextSuffix",""]],inputs:{_isTextSelector:[we.None,"matTextSuffix","_isTextSelector"]},standalone:!0,features:[ge([{provide:F1,useExisting:t}])]});let i=t;return i})(),A1=new K("FloatingLabelParent"),I1=(()=>{let t=class t{get floating(){return this._floating}set floating(n){this._floating=n,this.monitorResize&&this._handleResize()}get monitorResize(){return this._monitorResize}set monitorResize(n){this._monitorResize=n,this._monitorResize?this._subscribeToResize():this._resizeSubscription.unsubscribe()}constructor(n){this._elementRef=n,this._floating=!1,this._monitorResize=!1,this._resizeObserver=_(w1),this._ngZone=_(de),this._parent=_(A1),this._resizeSubscription=new Jn}ngOnDestroy(){this._resizeSubscription.unsubscribe()}getWidth(){return n4(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())})}};t.\u0275fac=function(r){return new(r||t)(c(x))},t.\u0275dir=N({type:t,selectors:[["label","matFormFieldFloatingLabel",""]],hostAttrs:[1,"mdc-floating-label","mat-mdc-floating-label"],hostVars:2,hostBindings:function(r,o){r&2&&U("mdc-floating-label--float-above",o.floating)},inputs:{floating:"floating",monitorResize:"monitorResize"},standalone:!0});let i=t;return i})();function n4(i){let t=i;if(t.offsetParent!==null)return t.scrollWidth;let e=t.cloneNode(!0);e.style.setProperty("position","absolute"),e.style.setProperty("transform","translate(-9999px, -9999px)"),document.documentElement.appendChild(e);let n=e.scrollWidth;return e.remove(),n}var k1="mdc-line-ripple--active",Th="mdc-line-ripple--deactivating",E1=(()=>{let t=class t{constructor(n,r){this._elementRef=n,this._handleTransitionEnd=o=>{let s=this._elementRef.nativeElement.classList,a=s.contains(Th);o.propertyName==="opacity"&&a&&s.remove(k1,Th)},r.runOutsideAngular(()=>{n.nativeElement.addEventListener("transitionend",this._handleTransitionEnd)})}activate(){let n=this._elementRef.nativeElement.classList;n.remove(Th),n.add(k1)}deactivate(){this._elementRef.nativeElement.classList.add(Th)}ngOnDestroy(){this._elementRef.nativeElement.removeEventListener("transitionend",this._handleTransitionEnd)}};t.\u0275fac=function(r){return new(r||t)(c(x),c(de))},t.\u0275dir=N({type:t,selectors:[["div","matFormFieldLineRipple",""]],hostAttrs:[1,"mdc-line-ripple"],standalone:!0});let i=t;return i})(),S1=(()=>{let t=class t{constructor(n,r){this._elementRef=n,this._ngZone=r,this.open=!1}ngAfterViewInit(){let n=this._elementRef.nativeElement.querySelector(".mdc-floating-label");n?(this._elementRef.nativeElement.classList.add("mdc-notched-outline--upgraded"),typeof requestAnimationFrame=="function"&&(n.style.transitionDuration="0s",this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>n.style.transitionDuration="")}))):this._elementRef.nativeElement.classList.add("mdc-notched-outline--no-label")}_setNotchWidth(n){!this.open||!n?this._notch.nativeElement.style.width="":this._notch.nativeElement.style.width=`calc(${n}px * var(--mat-mdc-form-field-floating-label-scale, 0.75) + 9px)`}};t.\u0275fac=function(r){return new(r||t)(c(x),c(de))},t.\u0275cmp=I({type:t,selectors:[["div","matFormFieldNotchedOutline",""]],viewQuery:function(r,o){if(r&1&&X(T3,5),r&2){let s;L(s=z())&&(o._notch=s.first)}},hostAttrs:[1,"mdc-notched-outline"],hostVars:2,hostBindings:function(r,o){r&2&&U("mdc-notched-outline--notched",o.open)},inputs:{open:[we.None,"matFormFieldNotchedOutlineOpen","open"]},standalone:!0,features:[Oe],attrs:M3,ngContentSelectors:F3,decls:5,vars:0,consts:[["notch",""],[1,"mdc-notched-outline__leading"],[1,"mdc-notched-outline__notch"],[1,"mdc-notched-outline__trailing"]],template:function(r,o){r&1&&(Ne(),b(0,"div",1),h(1,"div",2,0),be(3),g(),b(4,"div",3))},encapsulation:2,changeDetection:0});let i=t;return i})(),r4={transitionMessages:Y_("transitionMessages",[K_("enter",Uh({opacity:1,transform:"translateY(0%)"})),Z_("void => enter",[Uh({opacity:0,transform:"translateY(-5px)"}),Q_("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},Yx=(()=>{let t=class t{};t.\u0275fac=function(r){return new(r||t)},t.\u0275dir=N({type:t});let i=t;return i})();var Qx=new K("MatFormField"),o4=new K("MAT_FORM_FIELD_DEFAULT_OPTIONS"),D1=0,T1="fill",s4="auto",M1="fixed",a4="translateY(-50%)",O1=(()=>{let t=class t{get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(n){this._hideRequiredMarker=go(n)}get floatLabel(){return this._floatLabel||this._defaults?.floatLabel||s4}set floatLabel(n){n!==this._floatLabel&&(this._floatLabel=n,this._changeDetectorRef.markForCheck())}get appearance(){return this._appearance}set appearance(n){let r=this._appearance,o=n||this._defaults?.appearance||T1;this._appearance=o,this._appearance==="outline"&&this._appearance!==r&&(this._needsOutlineLabelOffsetUpdateOnStable=!0)}get subscriptSizing(){return this._subscriptSizing||this._defaults?.subscriptSizing||M1}set subscriptSizing(n){this._subscriptSizing=n||this._defaults?.subscriptSizing||M1}get hintLabel(){return this._hintLabel}set hintLabel(n){this._hintLabel=n,this._processHints()}get _control(){return this._explicitFormFieldControl||this._formFieldControl}set _control(n){this._explicitFormFieldControl=n}constructor(n,r,o,s,a,l,d,p){this._elementRef=n,this._changeDetectorRef=r,this._ngZone=o,this._dir=s,this._platform=a,this._defaults=l,this._animationMode=d,this._hideRequiredMarker=!1,this.color="primary",this._appearance=T1,this._subscriptSizing=null,this._hintLabel="",this._hasIconPrefix=!1,this._hasTextPrefix=!1,this._hasIconSuffix=!1,this._hasTextSuffix=!1,this._labelId=`mat-mdc-form-field-label-${D1++}`,this._hintLabelId=`mat-mdc-hint-${D1++}`,this._subscriptAnimationState="",this._destroyed=new ke,this._isFocused=null,this._needsOutlineLabelOffsetUpdateOnStable=!1,l&&(l.appearance&&(this.appearance=l.appearance),this._hideRequiredMarker=!!l?.hideRequiredMarker,l.color&&(this.color=l.color))}ngAfterViewInit(){this._updateFocusState(),this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}ngAfterContentInit(){this._assertFormFieldControl(),this._initializeControl(),this._initializeSubscript(),this._initializePrefixAndSuffix(),this._initializeOutlineLabelOffsetSubscriptions()}ngAfterContentChecked(){this._assertFormFieldControl()}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}getLabelId(){return this._hasFloatingLabel()?this._labelId:null}getConnectedOverlayOrigin(){return this._textField||this._elementRef}_animateAndLockLabel(){this._hasFloatingLabel()&&(this.floatLabel="always")}_initializeControl(){let n=this._control;n.controlType&&this._elementRef.nativeElement.classList.add(`mat-mdc-form-field-type-${n.controlType}`),n.stateChanges.subscribe(()=>{this._updateFocusState(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),n.ngControl&&n.ngControl.valueChanges&&n.ngControl.valueChanges.pipe(re(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck())}_checkPrefixAndSuffixTypes(){this._hasIconPrefix=!!this._prefixChildren.find(n=>!n._isText),this._hasTextPrefix=!!this._prefixChildren.find(n=>n._isText),this._hasIconSuffix=!!this._suffixChildren.find(n=>!n._isText),this._hasTextSuffix=!!this._suffixChildren.find(n=>n._isText)}_initializePrefixAndSuffix(){this._checkPrefixAndSuffixTypes(),d_(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(){this._control.focused&&!this._isFocused?(this._isFocused=!0,this._lineRipple?.activate()):!this._control.focused&&(this._isFocused||this._isFocused===null)&&(this._isFocused=!1,this._lineRipple?.deactivate()),this._textField?.nativeElement.classList.toggle("mdc-text-field--focused",this._control.focused)}_initializeOutlineLabelOffsetSubscriptions(){this._prefixChildren.changes.subscribe(()=>this._needsOutlineLabelOffsetUpdateOnStable=!0),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe(re(this._destroyed)).subscribe(()=>{this._needsOutlineLabelOffsetUpdateOnStable&&(this._needsOutlineLabelOffsetUpdateOnStable=!1,this._updateOutlineLabelOffset())})}),this._dir.change.pipe(re(this._destroyed)).subscribe(()=>this._needsOutlineLabelOffsetUpdateOnStable=!0)}_shouldAlwaysFloat(){return this.floatLabel==="always"}_hasOutline(){return this.appearance==="outline"}_forceDisplayInfixLabel(){return!this._platform.isBrowser&&this._prefixChildren.length&&!this._shouldLabelFloat()}_hasFloatingLabel(){return!!this._labelChildNonStatic||!!this._labelChildStatic}_shouldLabelFloat(){return this._control.shouldLabelFloat||this._shouldAlwaysFloat()}_shouldForward(n){let r=this._control?this._control.ngControl:null;return r&&r[n]}_getDisplayedMessages(){return this._errorChildren&&this._errorChildren.length>0&&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 n=[];if(this._control.userAriaDescribedBy&&typeof this._control.userAriaDescribedBy=="string"&&n.push(...this._control.userAriaDescribedBy.split(" ")),this._getDisplayedMessages()==="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?n.push(r.id):this._hintLabel&&n.push(this._hintLabelId),o&&n.push(o.id)}else this._errorChildren&&n.push(...this._errorChildren.map(r=>r.id));this._control.setDescribedByIds(n)}}_updateOutlineLabelOffset(){if(!this._platform.isBrowser||!this._hasOutline()||!this._floatingLabel)return;let n=this._floatingLabel.element;if(!(this._iconPrefixContainer||this._textPrefixContainer)){n.style.transform="";return}if(!this._isAttachedToDom()){this._needsOutlineLabelOffsetUpdateOnStable=!0;return}let r=this._iconPrefixContainer?.nativeElement,o=this._textPrefixContainer?.nativeElement,s=r?.getBoundingClientRect().width??0,a=o?.getBoundingClientRect().width??0,l=this._dir.value==="rtl"?"-1":"1",d=`${s+a}px`,w=`calc(${l} * (${d} + var(--mat-mdc-form-field-label-offset-x, 0px)))`;n.style.transform=`var(
|
|
--mat-mdc-form-field-label-transform,
|
|
${a4} translateX(${w})
|
|
)`}_isAttachedToDom(){let n=this._elementRef.nativeElement;if(n.getRootNode){let r=n.getRootNode();return r&&r!==n}return document.documentElement.contains(n)}};t.\u0275fac=function(r){return new(r||t)(c(x),c(B),c(de),c(XI),c(Ye),c(o4,8),c(ki,8),c(ue))},t.\u0275cmp=I({type:t,selectors:[["mat-form-field"]],contentQueries:function(r,o,s){if(r&1&&(yt(s,Mh,5),yt(s,Mh,7),yt(s,Yx,5),yt(s,i4,5),yt(s,F1,5),yt(s,e4,5),yt(s,C1,5)),r&2){let a;L(a=z())&&(o._labelChildNonStatic=a.first),L(a=z())&&(o._labelChildStatic=a.first),L(a=z())&&(o._formFieldControl=a.first),L(a=z())&&(o._prefixChildren=a),L(a=z())&&(o._suffixChildren=a),L(a=z())&&(o._errorChildren=a),L(a=z())&&(o._hintChildren=a)}},viewQuery:function(r,o){if(r&1&&(X(R3,5),X(A3,5),X(O3,5),X(I1,5),X(S1,5),X(E1,5)),r&2){let s;L(s=z())&&(o._textField=s.first),L(s=z())&&(o._iconPrefixContainer=s.first),L(s=z())&&(o._textPrefixContainer=s.first),L(s=z())&&(o._floatingLabel=s.first),L(s=z())&&(o._notchedOutline=s.first),L(s=z())&&(o._lineRipple=s.first)}},hostAttrs:[1,"mat-mdc-form-field"],hostVars:42,hostBindings:function(r,o){r&2&&U("mat-mdc-form-field-label-always-float",o._shouldAlwaysFloat())("mat-mdc-form-field-has-icon-prefix",o._hasIconPrefix)("mat-mdc-form-field-has-icon-suffix",o._hasIconSuffix)("mat-form-field-invalid",o._control.errorState)("mat-form-field-disabled",o._control.disabled)("mat-form-field-autofilled",o._control.autofilled)("mat-form-field-no-animations",o._animationMode==="NoopAnimations")("mat-form-field-appearance-fill",o.appearance=="fill")("mat-form-field-appearance-outline",o.appearance=="outline")("mat-form-field-hide-placeholder",o._hasFloatingLabel()&&!o._shouldLabelFloat())("mat-focused",o._control.focused)("mat-primary",o.color!=="accent"&&o.color!=="warn")("mat-accent",o.color==="accent")("mat-warn",o.color==="warn")("ng-untouched",o._shouldForward("untouched"))("ng-touched",o._shouldForward("touched"))("ng-pristine",o._shouldForward("pristine"))("ng-dirty",o._shouldForward("dirty"))("ng-valid",o._shouldForward("valid"))("ng-invalid",o._shouldForward("invalid"))("ng-pending",o._shouldForward("pending"))},inputs:{hideRequiredMarker:"hideRequiredMarker",color:"color",floatLabel:"floatLabel",appearance:"appearance",subscriptSizing:"subscriptSizing",hintLabel:"hintLabel"},exportAs:["matFormField"],standalone:!0,features:[ge([{provide:Qx,useExisting:t},{provide:A1,useExisting:t}]),Oe],ngContentSelectors:N3,decls:18,vars:21,consts:[["labelTemplate",""],["textField",""],["iconPrefixContainer",""],["textPrefixContainer",""],[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",""],[1,"mat-mdc-form-field-subscript-wrapper","mat-mdc-form-field-bottom-align"],["matFormFieldFloatingLabel","",3,"floating","monitorResize","id"],["aria-hidden","true",1,"mat-mdc-form-field-required-marker","mdc-floating-label--required"],[1,"mat-mdc-form-field-error-wrapper"],[1,"mat-mdc-form-field-hint-wrapper"],[3,"id"],[1,"mat-mdc-form-field-hint-spacer"]],template:function(r,o){if(r&1){let s=Z();Ne(P3),D(0,L3,1,1,"ng-template",null,0,Ee),h(2,"div",4,1),F("click",function(l){return R(s),A(o._control.onContainerClick(l))}),D(4,z3,1,0,"div",5),h(5,"div",6),D(6,$3,2,2,"div",7)(7,U3,3,0,"div",8)(8,W3,3,0,"div",9),h(9,"div",10),D(10,q3,1,1,null,11),be(11),g(),D(12,Y3,2,0,"div",12)(13,Q3,2,0,"div",13),g(),D(14,K3,1,0,"div",14),g(),h(15,"div",15),D(16,Z3,2,1)(17,J3,5,2),g()}if(r&2){let s;u(2),U("mdc-text-field--filled",!o._hasOutline())("mdc-text-field--outlined",o._hasOutline())("mdc-text-field--no-label",!o._hasFloatingLabel())("mdc-text-field--disabled",o._control.disabled)("mdc-text-field--invalid",o._control.errorState),u(2),ft(4,!o._hasOutline()&&!o._control.disabled?4:-1),u(2),ft(6,o._hasOutline()?6:-1),u(),ft(7,o._hasIconPrefix?7:-1),u(),ft(8,o._hasTextPrefix?8:-1),u(2),ft(10,!o._hasOutline()||o._forceDisplayInfixLabel()?10:-1),u(2),ft(12,o._hasTextSuffix?12:-1),u(),ft(13,o._hasIconSuffix?13:-1),u(),ft(14,o._hasOutline()?-1:14),u(),U("mat-mdc-form-field-subscript-dynamic-size",o.subscriptSizing==="dynamic"),u(),ft(16,(s=o._getDisplayedMessages())==="error"?16:s==="hint"?17:-1)}},dependencies:[I1,S1,_n,E1,C1],styles:['.mdc-text-field{border-top-left-radius:4px;border-top-left-radius:var(--mdc-shape-small, 4px);border-top-right-radius:4px;border-top-right-radius:var(--mdc-shape-small, 4px);border-bottom-right-radius:0;border-bottom-left-radius:0;display:inline-flex;align-items:baseline;padding:0 16px;position:relative;box-sizing:border-box;overflow:hidden;will-change:opacity,transform,color}.mdc-text-field .mdc-floating-label{top:50%;transform:translateY(-50%);pointer-events:none}.mdc-text-field__input{height:28px;width:100%;min-width:0;border:none;border-radius:0;background:none;appearance:none;padding:0}.mdc-text-field__input::-ms-clear{display:none}.mdc-text-field__input::-webkit-calendar-picker-indicator{display:none}.mdc-text-field__input:focus{outline:none}.mdc-text-field__input:invalid{box-shadow:none}@media all{.mdc-text-field__input::placeholder{opacity:0}}@media all{.mdc-text-field__input:-ms-input-placeholder{opacity:0}}@media all{.mdc-text-field--no-label .mdc-text-field__input::placeholder,.mdc-text-field--focused .mdc-text-field__input::placeholder{opacity:1}}@media all{.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__affix{height:28px;opacity:0;white-space:nowrap}.mdc-text-field--label-floating .mdc-text-field__affix,.mdc-text-field--no-label .mdc-text-field__affix{opacity:1}@supports(-webkit-hyphens: none){.mdc-text-field--outlined .mdc-text-field__affix{align-items:center;align-self:center;display:inline-flex;height:100%}}.mdc-text-field__affix--prefix{padding-left:0;padding-right:2px}[dir=rtl] .mdc-text-field__affix--prefix,.mdc-text-field__affix--prefix[dir=rtl]{padding-left:2px;padding-right:0}.mdc-text-field--end-aligned .mdc-text-field__affix--prefix{padding-left:0;padding-right:12px}[dir=rtl] .mdc-text-field--end-aligned .mdc-text-field__affix--prefix,.mdc-text-field--end-aligned .mdc-text-field__affix--prefix[dir=rtl]{padding-left:12px;padding-right:0}.mdc-text-field__affix--suffix{padding-left:12px;padding-right:0}[dir=rtl] .mdc-text-field__affix--suffix,.mdc-text-field__affix--suffix[dir=rtl]{padding-left:0;padding-right:12px}.mdc-text-field--end-aligned .mdc-text-field__affix--suffix{padding-left:2px;padding-right:0}[dir=rtl] .mdc-text-field--end-aligned .mdc-text-field__affix--suffix,.mdc-text-field--end-aligned .mdc-text-field__affix--suffix[dir=rtl]{padding-left:0;padding-right:2px}.mdc-text-field--filled{height:56px}.mdc-text-field--filled::before{display:inline-block;width:0;height:40px;content:"";vertical-align:0}.mdc-text-field--filled .mdc-floating-label{left:16px;right:initial}[dir=rtl] .mdc-text-field--filled .mdc-floating-label,.mdc-text-field--filled .mdc-floating-label[dir=rtl]{left:initial;right:16px}.mdc-text-field--filled .mdc-floating-label--float-above{transform:translateY(-106%) scale(0.75)}.mdc-text-field--filled.mdc-text-field--no-label .mdc-text-field__input{height:100%}.mdc-text-field--filled.mdc-text-field--no-label .mdc-floating-label{display:none}.mdc-text-field--filled.mdc-text-field--no-label::before{display:none}@supports(-webkit-hyphens: none){.mdc-text-field--filled.mdc-text-field--no-label .mdc-text-field__affix{align-items:center;align-self:center;display:inline-flex;height:100%}}.mdc-text-field--outlined{height:56px;overflow:visible}.mdc-text-field--outlined .mdc-floating-label--float-above{transform:translateY(-37.25px) scale(1)}.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-floating-label--float-above{font-size:.75rem}.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-text-field--outlined .mdc-text-field__input{height:100%}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{border-top-left-radius:4px;border-top-left-radius:var(--mdc-shape-small, 4px);border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:4px;border-bottom-left-radius:var(--mdc-shape-small, 4px)}[dir=rtl] .mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading[dir=rtl]{border-top-left-radius:0;border-top-right-radius:4px;border-top-right-radius:var(--mdc-shape-small, 4px);border-bottom-right-radius:4px;border-bottom-right-radius:var(--mdc-shape-small, 4px);border-bottom-left-radius:0}@supports(top: max(0%)){.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{width:max(12px,var(--mdc-shape-small, 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__notch{max-width:calc(100% - max(12px,var(--mdc-shape-small, 4px))*2)}}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing{border-top-left-radius:0;border-top-right-radius:4px;border-top-right-radius:var(--mdc-shape-small, 4px);border-bottom-right-radius:4px;border-bottom-right-radius:var(--mdc-shape-small, 4px);border-bottom-left-radius:0}[dir=rtl] .mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing,.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing[dir=rtl]{border-top-left-radius:4px;border-top-left-radius:var(--mdc-shape-small, 4px);border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:4px;border-bottom-left-radius:var(--mdc-shape-small, 4px)}@supports(top: max(0%)){.mdc-text-field--outlined{padding-left:max(16px,calc(var(--mdc-shape-small, 4px) + 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined{padding-right:max(16px,var(--mdc-shape-small, 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined+.mdc-text-field-helper-line{padding-left:max(16px,calc(var(--mdc-shape-small, 4px) + 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined+.mdc-text-field-helper-line{padding-right:max(16px,var(--mdc-shape-small, 4px))}}.mdc-text-field--outlined.mdc-text-field--with-leading-icon{padding-left:0}@supports(top: max(0%)){.mdc-text-field--outlined.mdc-text-field--with-leading-icon{padding-right:max(16px,var(--mdc-shape-small, 4px))}}[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-leading-icon,.mdc-text-field--outlined.mdc-text-field--with-leading-icon[dir=rtl]{padding-right:0}@supports(top: max(0%)){[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-leading-icon,.mdc-text-field--outlined.mdc-text-field--with-leading-icon[dir=rtl]{padding-left:max(16px,var(--mdc-shape-small, 4px))}}.mdc-text-field--outlined.mdc-text-field--with-trailing-icon{padding-right:0}@supports(top: max(0%)){.mdc-text-field--outlined.mdc-text-field--with-trailing-icon{padding-left:max(16px,calc(var(--mdc-shape-small, 4px) + 4px))}}[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-trailing-icon,.mdc-text-field--outlined.mdc-text-field--with-trailing-icon[dir=rtl]{padding-left:0}@supports(top: max(0%)){[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-trailing-icon,.mdc-text-field--outlined.mdc-text-field--with-trailing-icon[dir=rtl]{padding-right:max(16px,calc(var(--mdc-shape-small, 4px) + 4px))}}.mdc-text-field--outlined.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon{padding-left:0;padding-right:0}.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:1px}.mdc-text-field--outlined .mdc-floating-label{left:4px;right:initial}[dir=rtl] .mdc-text-field--outlined .mdc-floating-label,.mdc-text-field--outlined .mdc-floating-label[dir=rtl]{left:initial;right:4px}.mdc-text-field--outlined .mdc-text-field__input{display:flex;border:none !important;background-color:rgba(0,0,0,0)}.mdc-text-field--outlined .mdc-notched-outline{z-index:1}.mdc-text-field--textarea{flex-direction:column;align-items:center;width:auto;height:auto;padding:0}.mdc-text-field--textarea .mdc-floating-label{top:19px}.mdc-text-field--textarea .mdc-floating-label:not(.mdc-floating-label--float-above){transform:none}.mdc-text-field--textarea .mdc-text-field__input{flex-grow:1;height:auto;min-height:1.5rem;overflow-x:hidden;overflow-y:auto;box-sizing:border-box;resize:none;padding:0 16px}.mdc-text-field--textarea.mdc-text-field--filled::before{display:none}.mdc-text-field--textarea.mdc-text-field--filled .mdc-floating-label--float-above{transform:translateY(-10.25px) scale(0.75)}.mdc-text-field--textarea.mdc-text-field--filled .mdc-text-field__input{margin-top:23px;margin-bottom:9px}.mdc-text-field--textarea.mdc-text-field--filled.mdc-text-field--no-label .mdc-text-field__input{margin-top:16px;margin-bottom:16px}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:0}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label--float-above{transform:translateY(-27.25px) scale(1)}.mdc-text-field--textarea.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--textarea.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-24.75px) scale(0.75)}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label--float-above{font-size:.75rem}.mdc-text-field--textarea.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--textarea.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-text-field__input{margin-top:16px;margin-bottom:16px}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label{top:18px}.mdc-text-field--textarea.mdc-text-field--with-internal-counter .mdc-text-field__input{margin-bottom:2px}.mdc-text-field--textarea.mdc-text-field--with-internal-counter .mdc-text-field-character-counter{align-self:flex-end;padding:0 16px}.mdc-text-field--textarea.mdc-text-field--with-internal-counter .mdc-text-field-character-counter::after{display:inline-block;width:0;height:16px;content:"";vertical-align:-16px}.mdc-text-field--textarea.mdc-text-field--with-internal-counter .mdc-text-field-character-counter::before{display:none}.mdc-text-field__resizer{align-self:stretch;display:inline-flex;flex-direction:column;flex-grow:1;max-height:100%;max-width:100%;min-height:56px;min-width:fit-content;min-width:-moz-available;min-width:-webkit-fill-available;overflow:hidden;resize:both}.mdc-text-field--filled .mdc-text-field__resizer{transform:translateY(-1px)}.mdc-text-field--filled .mdc-text-field__resizer .mdc-text-field__input,.mdc-text-field--filled .mdc-text-field__resizer .mdc-text-field-character-counter{transform:translateY(1px)}.mdc-text-field--outlined .mdc-text-field__resizer{transform:translateX(-1px) translateY(-1px)}[dir=rtl] .mdc-text-field--outlined .mdc-text-field__resizer,.mdc-text-field--outlined .mdc-text-field__resizer[dir=rtl]{transform:translateX(1px) translateY(-1px)}.mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field__input,.mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field-character-counter{transform:translateX(1px) translateY(1px)}[dir=rtl] .mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field__input,[dir=rtl] .mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field-character-counter,.mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field__input[dir=rtl],.mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field-character-counter[dir=rtl]{transform:translateX(-1px) translateY(1px)}.mdc-text-field--with-leading-icon{padding-left:0;padding-right:16px}[dir=rtl] .mdc-text-field--with-leading-icon,.mdc-text-field--with-leading-icon[dir=rtl]{padding-left:16px;padding-right:0}.mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label{max-width:calc(100% - 48px);left:48px;right:initial}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label,.mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label[dir=rtl]{left:initial;right:48px}.mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label--float-above{max-width:calc(100%/0.75 - 64px/0.75)}.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label{left:36px;right:initial}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label,.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label[dir=rtl]{left:initial;right:36px}.mdc-text-field--with-leading-icon.mdc-text-field--outlined :not(.mdc-notched-outline--notched) .mdc-notched-outline__notch{max-width:calc(100% - 60px)}.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--float-above{transform:translateY(-37.25px) translateX(-32px) scale(1)}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--float-above,.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--float-above[dir=rtl]{transform:translateY(-37.25px) translateX(32px) scale(1)}.mdc-text-field--with-leading-icon.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-34.75px) translateX(-32px) scale(0.75)}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--with-leading-icon.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above[dir=rtl],.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above[dir=rtl]{transform:translateY(-34.75px) translateX(32px) scale(0.75)}.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--float-above{font-size:.75rem}.mdc-text-field--with-leading-icon.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-text-field--with-trailing-icon{padding-left:16px;padding-right:0}[dir=rtl] .mdc-text-field--with-trailing-icon,.mdc-text-field--with-trailing-icon[dir=rtl]{padding-left:0;padding-right:16px}.mdc-text-field--with-trailing-icon.mdc-text-field--filled .mdc-floating-label{max-width:calc(100% - 64px)}.mdc-text-field--with-trailing-icon.mdc-text-field--filled .mdc-floating-label--float-above{max-width:calc(100%/0.75 - 64px/0.75)}.mdc-text-field--with-trailing-icon.mdc-text-field--outlined :not(.mdc-notched-outline--notched) .mdc-notched-outline__notch{max-width:calc(100% - 60px)}.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon{padding-left:0;padding-right:0}.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon.mdc-text-field--filled .mdc-floating-label{max-width:calc(100% - 96px)}.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon.mdc-text-field--filled .mdc-floating-label--float-above{max-width:calc(100%/0.75 - 96px/0.75)}.mdc-text-field-helper-line{display:flex;justify-content:space-between;box-sizing:border-box}.mdc-text-field+.mdc-text-field-helper-line{padding-right:16px;padding-left:16px}.mdc-form-field>.mdc-text-field+label{align-self:flex-start}.mdc-text-field--focused .mdc-notched-outline__leading,.mdc-text-field--focused .mdc-notched-outline__notch,.mdc-text-field--focused .mdc-notched-outline__trailing{border-width:2px}.mdc-text-field--focused+.mdc-text-field-helper-line .mdc-text-field-helper-text:not(.mdc-text-field-helper-text--validation-msg){opacity:1}.mdc-text-field--focused.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:2px}.mdc-text-field--focused.mdc-text-field--outlined.mdc-text-field--textarea .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:0}.mdc-text-field--invalid+.mdc-text-field-helper-line .mdc-text-field-helper-text--validation-msg{opacity:1}.mdc-text-field--disabled{pointer-events:none}@media screen and (forced-colors: active){.mdc-text-field--disabled .mdc-text-field__input{background-color:Window}.mdc-text-field--disabled .mdc-floating-label{z-index:1}}.mdc-text-field--disabled .mdc-floating-label{cursor:default}.mdc-text-field--disabled.mdc-text-field--filled .mdc-text-field__ripple{display:none}.mdc-text-field--disabled .mdc-text-field__input{pointer-events:auto}.mdc-text-field--end-aligned .mdc-text-field__input{text-align:right}[dir=rtl] .mdc-text-field--end-aligned .mdc-text-field__input,.mdc-text-field--end-aligned .mdc-text-field__input[dir=rtl]{text-align:left}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__input,[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__input,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix{direction:ltr}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix--prefix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix--prefix{padding-left:0;padding-right:2px}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix--suffix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix--suffix{padding-left:12px;padding-right:0}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__icon--leading,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__icon--leading{order:1}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix--suffix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix--suffix{order:2}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__input,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__input{order:3}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix--prefix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix--prefix{order:4}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__icon--trailing,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__icon--trailing{order:5}[dir=rtl] .mdc-text-field--ltr-text.mdc-text-field--end-aligned .mdc-text-field__input,.mdc-text-field--ltr-text.mdc-text-field--end-aligned[dir=rtl] .mdc-text-field__input{text-align:right}[dir=rtl] .mdc-text-field--ltr-text.mdc-text-field--end-aligned .mdc-text-field__affix--prefix,.mdc-text-field--ltr-text.mdc-text-field--end-aligned[dir=rtl] .mdc-text-field__affix--prefix{padding-right:12px}[dir=rtl] .mdc-text-field--ltr-text.mdc-text-field--end-aligned .mdc-text-field__affix--suffix,.mdc-text-field--ltr-text.mdc-text-field--end-aligned[dir=rtl] .mdc-text-field__affix--suffix{padding-left:2px}.mdc-floating-label{position:absolute;left:0;-webkit-transform-origin:left top;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,.mdc-floating-label[dir=rtl]{right:0;left:auto;-webkit-transform-origin:right top;transform-origin:right top;text-align:right}.mdc-floating-label--float-above{cursor:auto}.mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)::after{margin-left:1px;margin-right:0px;content:"*"}[dir=rtl] .mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)::after,.mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)[dir=rtl]::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,.mdc-notched-outline[dir=rtl]{text-align:right}.mdc-notched-outline__leading,.mdc-notched-outline__notch,.mdc-notched-outline__trailing{box-sizing:border-box;height:100%;pointer-events:none}.mdc-notched-outline__trailing{flex-grow:1}.mdc-notched-outline__notch{flex:0 0 auto;width:auto}.mdc-notched-outline .mdc-floating-label{display:inline-block;position:relative;max-width:100%}.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-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,.mdc-notched-outline--notched .mdc-notched-outline__notch[dir=rtl]{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}.mdc-line-ripple::after{transform:scaleX(0);opacity:0;z-index:2}.mdc-line-ripple--active::after{transform:scaleX(1);opacity:1}.mdc-line-ripple--deactivating::after{opacity:0}.mdc-floating-label--float-above{transform:translateY(-106%) scale(0.75)}.mdc-notched-outline__leading,.mdc-notched-outline__notch,.mdc-notched-outline__trailing{border-top:1px solid;border-bottom:1px solid}.mdc-notched-outline__leading{border-left:1px solid;border-right:none;width:12px}[dir=rtl] .mdc-notched-outline__leading,.mdc-notched-outline__leading[dir=rtl]{border-left:none;border-right:1px solid}.mdc-notched-outline__trailing{border-left:none;border-right:1px solid}[dir=rtl] .mdc-notched-outline__trailing,.mdc-notched-outline__trailing[dir=rtl]{border-left:1px solid;border-right:none}.mdc-notched-outline__notch{max-width:calc(100% - 12px*2)}.mdc-line-ripple::before{border-bottom-width:1px}.mdc-line-ripple::after{border-bottom-width:2px}.mdc-text-field--filled{border-top-left-radius:var(--mdc-filled-text-field-container-shape);border-top-right-radius:var(--mdc-filled-text-field-container-shape);border-bottom-right-radius:0;border-bottom-left-radius:0}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input{caret-color:var(--mdc-filled-text-field-caret-color)}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-text-field__input{caret-color:var(--mdc-filled-text-field-error-caret-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input{color:var(--mdc-filled-text-field-input-text-color)}.mdc-text-field--filled.mdc-text-field--disabled .mdc-text-field__input{color:var(--mdc-filled-text-field-disabled-input-text-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-floating-label,.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-floating-label--float-above{color:var(--mdc-filled-text-field-label-text-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label,.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label--float-above{color:var(--mdc-filled-text-field-focus-label-text-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label,.mdc-text-field--filled:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label--float-above{color:var(--mdc-filled-text-field-hover-label-text-color)}.mdc-text-field--filled.mdc-text-field--disabled .mdc-floating-label,.mdc-text-field--filled.mdc-text-field--disabled .mdc-floating-label--float-above{color:var(--mdc-filled-text-field-disabled-label-text-color)}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-floating-label,.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-floating-label--float-above{color:var(--mdc-filled-text-field-error-label-text-color)}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label,.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label--float-above{color:var(--mdc-filled-text-field-error-focus-label-text-color)}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label,.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label--float-above{color:var(--mdc-filled-text-field-error-hover-label-text-color)}.mdc-text-field--filled .mdc-floating-label{font-family:var(--mdc-filled-text-field-label-text-font);font-size:var(--mdc-filled-text-field-label-text-size);font-weight:var(--mdc-filled-text-field-label-text-weight);letter-spacing:var(--mdc-filled-text-field-label-text-tracking)}@media all{.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input::placeholder{color:var(--mdc-filled-text-field-input-text-placeholder-color)}}@media all{.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input:-ms-input-placeholder{color:var(--mdc-filled-text-field-input-text-placeholder-color)}}.mdc-text-field--filled:not(.mdc-text-field--disabled){background-color:var(--mdc-filled-text-field-container-color)}.mdc-text-field--filled.mdc-text-field--disabled{background-color:var(--mdc-filled-text-field-disabled-container-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-active-indicator-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-hover-active-indicator-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-line-ripple::after{border-bottom-color:var(--mdc-filled-text-field-focus-active-indicator-color)}.mdc-text-field--filled.mdc-text-field--disabled .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-disabled-active-indicator-color)}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-error-active-indicator-color)}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-error-hover-active-indicator-color)}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-line-ripple::after{border-bottom-color:var(--mdc-filled-text-field-error-focus-active-indicator-color)}.mdc-text-field--filled .mdc-line-ripple::before{border-bottom-width:var(--mdc-filled-text-field-active-indicator-height)}.mdc-text-field--filled .mdc-line-ripple::after{border-bottom-width:var(--mdc-filled-text-field-focus-active-indicator-height)}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input{caret-color:var(--mdc-outlined-text-field-caret-color)}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-text-field__input{caret-color:var(--mdc-outlined-text-field-error-caret-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input{color:var(--mdc-outlined-text-field-input-text-color)}.mdc-text-field--outlined.mdc-text-field--disabled .mdc-text-field__input{color:var(--mdc-outlined-text-field-disabled-input-text-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-floating-label,.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-floating-label--float-above{color:var(--mdc-outlined-text-field-label-text-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label,.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label--float-above{color:var(--mdc-outlined-text-field-focus-label-text-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label,.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label--float-above{color:var(--mdc-outlined-text-field-hover-label-text-color)}.mdc-text-field--outlined.mdc-text-field--disabled .mdc-floating-label,.mdc-text-field--outlined.mdc-text-field--disabled .mdc-floating-label--float-above{color:var(--mdc-outlined-text-field-disabled-label-text-color)}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-floating-label,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-floating-label--float-above{color:var(--mdc-outlined-text-field-error-label-text-color)}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label--float-above{color:var(--mdc-outlined-text-field-error-focus-label-text-color)}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label--float-above{color:var(--mdc-outlined-text-field-error-hover-label-text-color)}.mdc-text-field--outlined .mdc-floating-label{font-family:var(--mdc-outlined-text-field-label-text-font);font-size:var(--mdc-outlined-text-field-label-text-size);font-weight:var(--mdc-outlined-text-field-label-text-weight);letter-spacing:var(--mdc-outlined-text-field-label-text-tracking)}@media all{.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input::placeholder{color:var(--mdc-outlined-text-field-input-text-placeholder-color)}}@media all{.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input:-ms-input-placeholder{color:var(--mdc-outlined-text-field-input-text-placeholder-color)}}.mdc-text-field--outlined.mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label--float-above{font-size:calc(.75*var(--mdc-outlined-text-field-label-text-size))}.mdc-text-field--outlined.mdc-text-field--textarea.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--outlined.mdc-text-field--textarea.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:var(--mdc-outlined-text-field-label-text-size)}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{border-top-left-radius:var(--mdc-outlined-text-field-container-shape);border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:var(--mdc-outlined-text-field-container-shape)}[dir=rtl] .mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading[dir=rtl]{border-top-left-radius:0;border-top-right-radius:var(--mdc-outlined-text-field-container-shape);border-bottom-right-radius:var(--mdc-outlined-text-field-container-shape);border-bottom-left-radius:0}@supports(top: max(0%)){.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{width:max(12px,var(--mdc-outlined-text-field-container-shape))}}@supports(top: max(0%)){.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__notch{max-width:calc(100% - max(12px,var(--mdc-outlined-text-field-container-shape))*2)}}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing{border-top-left-radius:0;border-top-right-radius:var(--mdc-outlined-text-field-container-shape);border-bottom-right-radius:var(--mdc-outlined-text-field-container-shape);border-bottom-left-radius:0}[dir=rtl] .mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing,.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing[dir=rtl]{border-top-left-radius:var(--mdc-outlined-text-field-container-shape);border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:var(--mdc-outlined-text-field-container-shape)}@supports(top: max(0%)){.mdc-text-field--outlined{padding-left:max(16px,calc(var(--mdc-outlined-text-field-container-shape) + 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined{padding-right:max(16px,var(--mdc-outlined-text-field-container-shape))}}@supports(top: max(0%)){.mdc-text-field--outlined+.mdc-text-field-helper-line{padding-left:max(16px,calc(var(--mdc-outlined-text-field-container-shape) + 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined+.mdc-text-field-helper-line{padding-right:max(16px,var(--mdc-outlined-text-field-container-shape))}}.mdc-text-field--outlined.mdc-text-field--with-leading-icon{padding-left:0}@supports(top: max(0%)){.mdc-text-field--outlined.mdc-text-field--with-leading-icon{padding-right:max(16px,var(--mdc-outlined-text-field-container-shape))}}[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-leading-icon,.mdc-text-field--outlined.mdc-text-field--with-leading-icon[dir=rtl]{padding-right:0}@supports(top: max(0%)){[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-leading-icon,.mdc-text-field--outlined.mdc-text-field--with-leading-icon[dir=rtl]{padding-left:max(16px,var(--mdc-outlined-text-field-container-shape))}}.mdc-text-field--outlined.mdc-text-field--with-trailing-icon{padding-right:0}@supports(top: max(0%)){.mdc-text-field--outlined.mdc-text-field--with-trailing-icon{padding-left:max(16px,calc(var(--mdc-outlined-text-field-container-shape) + 4px))}}[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-trailing-icon,.mdc-text-field--outlined.mdc-text-field--with-trailing-icon[dir=rtl]{padding-left:0}@supports(top: max(0%)){[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-trailing-icon,.mdc-text-field--outlined.mdc-text-field--with-trailing-icon[dir=rtl]{padding-right:max(16px,calc(var(--mdc-outlined-text-field-container-shape) + 4px))}}.mdc-text-field--outlined.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon{padding-left:0;padding-right:0}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline__leading,.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline__notch,.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-outline-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__notch,.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-hover-outline-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__leading,.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__notch,.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-focus-outline-color)}.mdc-text-field--outlined.mdc-text-field--disabled .mdc-notched-outline__leading,.mdc-text-field--outlined.mdc-text-field--disabled .mdc-notched-outline__notch,.mdc-text-field--outlined.mdc-text-field--disabled .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-disabled-outline-color)}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-notched-outline__leading,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-notched-outline__notch,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-error-outline-color)}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__notch,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-error-hover-outline-color)}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__leading,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__notch,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-error-focus-outline-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline .mdc-notched-outline__notch,.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline .mdc-notched-outline__trailing{border-width:var(--mdc-outlined-text-field-outline-width)}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline .mdc-notched-outline__notch,.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline .mdc-notched-outline__trailing{border-width:var(--mdc-outlined-text-field-focus-outline-width)}.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--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;--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(--mat-form-field-disabled-input-text-placeholder-color)}.mat-form-field-disabled .mdc-text-field__input::-moz-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color)}.mat-form-field-disabled .mdc-text-field__input::-webkit-input-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color)}.mat-form-field-disabled .mdc-text-field__input:-ms-input-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color)}.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-text-field-wrapper::before{content:none}.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 rgba(0,0,0,0)}[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 rgba(0,0,0,0)}.mat-mdc-form-field-infix{min-height:var(--mat-form-field-container-height);padding-top:var(--mat-form-field-filled-with-label-container-padding-top);padding-bottom:var(--mat-form-field-filled-with-label-container-padding-bottom)}.mdc-text-field--outlined .mat-mdc-form-field-infix,.mdc-text-field--no-label .mat-mdc-form-field-infix{padding-top:var(--mat-form-field-container-vertical-padding);padding-bottom:var(--mat-form-field-container-vertical-padding)}.mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-floating-label{top:calc(var(--mat-form-field-container-height)/2)}.mdc-text-field--filled .mat-mdc-floating-label{display:var(--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{--mat-mdc-form-field-label-transform: translateY(calc(calc(6.75px + var(--mat-form-field-container-height) / 2) * -1)) scale(var(--mat-mdc-form-field-floating-label-scale, 0.75));transform:var(--mat-mdc-form-field-label-transform)}.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}.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(--mat-form-field-error-text-color)}.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(--mat-form-field-subscript-text-font);line-height:var(--mat-form-field-subscript-text-line-height);font-size:var(--mat-form-field-subscript-text-size);letter-spacing:var(--mat-form-field-subscript-text-tracking);font-weight:var(--mat-form-field-subscript-text-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(--mat-form-field-state-layer-color)}.mat-mdc-text-field-wrapper:hover .mat-mdc-form-field-focus-overlay{opacity:var(--mat-form-field-hover-state-layer-opacity)}.mat-mdc-form-field.mat-focused .mat-mdc-form-field-focus-overlay{opacity:var(--mat-form-field-focus-state-layer-opacity)}select.mat-mdc-form-field-input-control{-moz-appearance:none;-webkit-appearance:none;background-color:rgba(0,0,0,0);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(--mat-form-field-select-option-text-color)}select.mat-mdc-form-field-input-control:not(.mat-mdc-native-select-inline) option:disabled{color:var(--mat-form-field-select-disabled-option-text-color)}.mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-infix::after{content:"";width:0;height:0;border-left:5px solid rgba(0,0,0,0);border-right:5px solid rgba(0,0,0,0);border-top:5px solid;position:absolute;right:0;top:50%;margin-top:-2.5px;pointer-events:none;color:var(--mat-form-field-enabled-select-arrow-color)}[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(--mat-form-field-focus-select-arrow-color)}.mat-mdc-form-field-type-mat-native-select.mat-form-field-disabled .mat-mdc-form-field-infix::after{color:var(--mat-form-field-disabled-select-arrow-color)}.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}.cdk-high-contrast-active .mat-form-field-appearance-fill .mat-mdc-text-field-wrapper{outline:solid 1px}.cdk-high-contrast-active .mat-form-field-appearance-fill.mat-form-field-disabled .mat-mdc-text-field-wrapper{outline-color:GrayText}.cdk-high-contrast-active .mat-form-field-appearance-fill.mat-focused .mat-mdc-text-field-wrapper{outline:dashed 3px}.cdk-high-contrast-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{--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(--mat-form-field-container-text-font);line-height:var(--mat-form-field-container-text-line-height);font-size:var(--mat-form-field-container-text-size);letter-spacing:var(--mat-form-field-container-text-tracking);font-weight:var(--mat-form-field-container-text-weight)}[dir=rtl] .mat-mdc-form-field{text-align:right}.mat-mdc-form-field .mdc-text-field--outlined .mdc-floating-label--float-above{font-size:calc(var(--mat-form-field-outlined-label-text-populated-size)*var(--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(--mat-form-field-outlined-label-text-populated-size)}.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(--mat-form-field-leading-icon-color)}.mat-form-field-disabled .mat-mdc-form-field-icon-prefix{color:var(--mat-form-field-disabled-leading-icon-color)}.mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-trailing-icon-color)}.mat-form-field-disabled .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-disabled-trailing-icon-color)}.mat-form-field-invalid .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-error-trailing-icon-color)}.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(--mat-form-field-error-hover-trailing-icon-color)}.mat-form-field-invalid.mat-focused .mat-mdc-text-field-wrapper .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-error-focus-trailing-icon-color)}.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 .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:not(.mat-form-field-no-animations) .mdc-text-field__input{transition:opacity 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}@media all{.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input::placeholder{transition:opacity 67ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}}@media all{.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input:-ms-input-placeholder{transition:opacity 67ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}}@media all{.mdc-text-field--no-label .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input::placeholder,.mdc-text-field--focused .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input::placeholder{transition-delay:40ms;transition-duration:110ms}}@media all{.mdc-text-field--no-label .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input:-ms-input-placeholder,.mdc-text-field--focused .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input:-ms-input-placeholder{transition-delay:40ms;transition-duration:110ms}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__affix{transition:opacity 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--filled.mdc-ripple-upgraded--background-focused .mdc-text-field__ripple::before,.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--filled:not(.mdc-ripple-upgraded):focus .mdc-text-field__ripple::before{transition-duration:75ms}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--outlined .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-text-field-outlined 250ms 1}@keyframes mdc-floating-label-shake-float-above-text-field-outlined{0%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 34.75px)) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(calc(0% - 34.75px)) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(calc(0% - 34.75px)) scale(0.75)}100%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 34.75px)) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--textarea{transition:none}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--textarea.mdc-text-field--filled .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-textarea-filled 250ms 1}@keyframes mdc-floating-label-shake-float-above-textarea-filled{0%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 10.25px)) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(calc(0% - 10.25px)) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(calc(0% - 10.25px)) scale(0.75)}100%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 10.25px)) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-textarea-outlined 250ms 1}@keyframes mdc-floating-label-shake-float-above-textarea-outlined{0%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 24.75px)) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(calc(0% - 24.75px)) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(calc(0% - 24.75px)) scale(0.75)}100%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 24.75px)) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-text-field-outlined-leading-icon 250ms 1}@keyframes mdc-floating-label-shake-float-above-text-field-outlined-leading-icon{0%{transform:translateX(calc(0% - 32px)) translateY(calc(0% - 34.75px)) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 32px)) translateY(calc(0% - 34.75px)) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 32px)) translateY(calc(0% - 34.75px)) scale(0.75)}100%{transform:translateX(calc(0% - 32px)) translateY(calc(0% - 34.75px)) scale(0.75)}}[dir=rtl] .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--shake,.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--with-leading-icon.mdc-text-field--outlined[dir=rtl] .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-text-field-outlined-leading-icon 250ms 1}@keyframes mdc-floating-label-shake-float-above-text-field-outlined-leading-icon-rtl{0%{transform:translateX(calc(0% - -32px)) translateY(calc(0% - 34.75px)) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - -32px)) translateY(calc(0% - 34.75px)) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - -32px)) translateY(calc(0% - 34.75px)) scale(0.75)}100%{transform:translateX(calc(0% - -32px)) translateY(calc(0% - 34.75px)) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-floating-label{transition:transform 150ms cubic-bezier(0.4, 0, 0.2, 1),color 150ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-standard 250ms 1}@keyframes mdc-floating-label-shake-float-above-standard{0%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 106%)) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(calc(0% - 106%)) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(calc(0% - 106%)) scale(0.75)}100%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 106%)) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .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)}.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,data:{animation:[r4.transitionMessages]},changeDetection:0});let i=t;return i})(),Gc=(()=>{let t=class t{};t.\u0275fac=function(r){return new(r||t)},t.\u0275mod=M({type:t}),t.\u0275inj=T({imports:[Ve,q,fh,Ve]});let i=t;return i})();var l4=new K("MAT_INPUT_VALUE_ACCESSOR"),d4=["button","checkbox","file","hidden","image","radio","range","reset","submit"],u4=0,P1=(()=>{let t=class t{get disabled(){return this._disabled}set disabled(n){this._disabled=go(n),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(n){this._id=n||this._uid}get required(){return this._required??this.ngControl?.control?.hasValidator(Dr.required)??!1}set required(n){this._required=go(n)}get type(){return this._type}set type(n){this._type=n||"text",this._validateType(),!this._isTextarea&&Nx().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}get errorStateMatcher(){return this._errorStateTracker.matcher}set errorStateMatcher(n){this._errorStateTracker.matcher=n}get value(){return this._inputValueAccessor.value}set value(n){n!==this.value&&(this._inputValueAccessor.value=n,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(n){this._readonly=go(n)}get errorState(){return this._errorStateTracker.errorState}set errorState(n){this._errorStateTracker.errorState=n}constructor(n,r,o,s,a,l,d,p,w,E){this._elementRef=n,this._platform=r,this.ngControl=o,this._autofillMonitor=p,this._formField=E,this._uid=`mat-input-${u4++}`,this.focused=!1,this.stateChanges=new ke,this.controlType="mat-input",this.autofilled=!1,this._disabled=!1,this._type="text",this._readonly=!1,this._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(ce=>Nx().has(ce)),this._iOSKeyupListener=ce=>{let O=ce.target;!O.value&&O.selectionStart===0&&O.selectionEnd===0&&(O.setSelectionRange(1,1),O.setSelectionRange(0,0))};let Q=this._elementRef.nativeElement,ne=Q.nodeName.toLowerCase();this._inputValueAccessor=d||Q,this._previousNativeValue=this.value,this.id=this.id,r.IOS&&w.runOutsideAngular(()=>{n.nativeElement.addEventListener("keyup",this._iOSKeyupListener)}),this._errorStateTracker=new _h(l,o,a,s,this.stateChanges),this._isServer=!this._platform.isBrowser,this._isNativeSelect=ne==="select",this._isTextarea=ne==="textarea",this._isInFormField=!!E,this._isNativeSelect&&(this.controlType=Q.multiple?"mat-native-select-multiple":"mat-native-select")}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(n=>{this.autofilled=n.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement),this._platform.IOS&&this._elementRef.nativeElement.removeEventListener("keyup",this._iOSKeyupListener)}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(n){this._elementRef.nativeElement.focus(n)}updateErrorState(){this._errorStateTracker.updateErrorState()}_focusChanged(n){n!==this.focused&&(this.focused=n,this.stateChanges.next())}_onInput(){}_dirtyCheckNativeValue(){let n=this._elementRef.nativeElement.value;this._previousNativeValue!==n&&(this._previousNativeValue=n,this.stateChanges.next())}_dirtyCheckPlaceholder(){let n=this._getPlaceholder();if(n!==this._previousPlaceholder){let r=this._elementRef.nativeElement;this._previousPlaceholder=n,n?r.setAttribute("placeholder",n):r.removeAttribute("placeholder")}}_getPlaceholder(){return this.placeholder||null}_validateType(){d4.indexOf(this._type)>-1}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let n=this._elementRef.nativeElement.validity;return n&&n.badInput}get empty(){return!this._isNeverEmpty()&&!this._elementRef.nativeElement.value&&!this._isBadInput()&&!this.autofilled}get shouldLabelFloat(){if(this._isNativeSelect){let n=this._elementRef.nativeElement,r=n.options[0];return this.focused||n.multiple||!this.empty||!!(n.selectedIndex>-1&&r&&r.label)}else return this.focused||!this.empty}setDescribedByIds(n){n.length?this._elementRef.nativeElement.setAttribute("aria-describedby",n.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}_isInlineSelect(){let n=this._elementRef.nativeElement;return this._isNativeSelect&&(n.multiple||n.size>1)}};t.\u0275fac=function(r){return new(r||t)(c(x),c(Ye),c(Tr,10),c(Op,8),c($t,8),c(a1),c(l4,10),c(_1),c(de),c(Qx,8))},t.\u0275dir=N({type:t,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-mdc-input-element"],hostVars:18,hostBindings:function(r,o){r&1&&F("focus",function(){return o._focusChanged(!0)})("blur",function(){return o._focusChanged(!1)})("input",function(){return o._onInput()}),r&2&&(ar("id",o.id)("disabled",o.disabled)("required",o.required),De("name",o.name||null)("readonly",o.readonly&&!o._isNativeSelect||null)("aria-invalid",o.empty&&o.required?null:o.errorState)("aria-required",o.required)("id",o.id),U("mat-input-server",o._isServer)("mat-mdc-form-field-textarea-control",o._isInFormField&&o._isTextarea)("mat-mdc-form-field-input-control",o._isInFormField)("mdc-text-field__input",o._isInFormField)("mat-mdc-native-select-inline",o._isInlineSelect()))},inputs:{disabled:"disabled",id:"id",placeholder:"placeholder",name:"name",required:"required",type:"type",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:[we.None,"aria-describedby","userAriaDescribedBy"],value:"value",readonly:"readonly"},exportAs:["matInput"],standalone:!0,features:[ge([{provide:Yx,useExisting:t}]),G]});let i=t;return i})(),N1=(()=>{let t=class t{};t.\u0275fac=function(r){return new(r||t)},t.\u0275mod=M({type:t}),t.\u0275inj=T({imports:[Ve,Gc,Gc,y1,Ve]});let i=t;return i})();var Fh=(()=>{let t=class t{constructor(n){this.http=n;let r=_(Ds);this.url=`${r}/auth`}login(n){return this.http.post(`${this.url}/login`,n,{withCredentials:!0,headers:{"Content-Type":"application/json"}})}logout(){return this.http.post(`${this.url}/logout`,{withCredentials:!0,headers:{"Content-Type":"application/json"}})}isAuthenticated(){return this.http.get(`${this.url}/check`,{withCredentials:!0,headers:{"Content-Type":"application/json"}})}};t.\u0275fac=function(r){return new(r||t)(v(ur))},t.\u0275prov=k({token:t,factory:t.\u0275fac,providedIn:"root"});let i=t;return i})();var j1=(()=>{let t=class t{constructor(n,r,o){this.fb=n,this.authService=r,this.router=o,this.hide=!0,this.loginForm=this.fb.group({username:["",Dr.required],password:["",Dr.required]})}togglePWVisibility(n){this.hide=!this.hide,n.stopPropagation()}onSubmit(){this.loginForm.valid&&this.authService.login(this.loginForm.value).subscribe({next:()=>{this.router.navigate(["/envelope"])},error:n=>{console.error("Login failed",n)}})}};t.\u0275fac=function(r){return new(r||t)(c(xi),c(Fh),c(Oo))},t.\u0275cmp=I({type:t,selectors:[["app-login"]],standalone:!0,features:[Oe],decls:17,vars:5,consts:[[3,"ngSubmit","formGroup"],[1,"mb-3"],["matInput","","formControlName","username"],["matInput","","formControlName","password",3,"type"],["type","button","mat-icon-button","","matSuffix","",3,"click"],["mat-flat-button","","color","primary","type","submit"]],template:function(r,o){r&1&&(h(0,"form",0),F("ngSubmit",function(){return o.onSubmit()}),h(1,"div",1)(2,"mat-form-field")(3,"mat-label"),S(4,"Username"),g(),b(5,"input",2),g()(),h(6,"div",1)(7,"mat-form-field")(8,"mat-label"),S(9,"Enter your password"),g(),b(10,"input",3),h(11,"button",4),F("click",function(a){return o.togglePWVisibility(a)}),h(12,"mat-icon"),S(13),g()()()(),h(14,"div",1)(15,"button",5),S(16,"Log In"),g()()()),r&2&&(m("formGroup",o.loginForm),u(10),m("type",o.hide?"password":"text"),u(),De("aria-label","Hide password")("aria-pressed",o.hide),u(2),xe(o.hide?"visibility_off":"visibility"))},dependencies:[Gc,O1,Mh,R1,N1,P1,Dh,b1,Sh,Eh,kh,Pi,Oi,ii,Ri,Ai,$t,vi],styles:["mat-form-field[_ngcontent-%COMP%]{width:100%}"]});let i=t;return i})();var g4=(i,t)=>t.title,p4=()=>({title:"Explore Digital Data",link:"https://digitaldata.works/"}),f4=()=>({title:"Learn signFlow",link:"/"}),b4=()=>({title:"API Docs",link:"/"}),v4=(i,t,e)=>[i,t,e];function x4(i,t){if(i&1&&(h(0,"a",6)(1,"span"),S(2),g(),Ke(),h(3,"svg",17),b(4,"path",18),g()()),i&2){let e=t.$implicit;m("href",e.link,wo),u(2),xe(e.title)}}var Kx=(()=>{let t=class t{};t.\u0275fac=function(r){return new(r||t)},t.\u0275cmp=I({type:t,selectors:[["app-home"]],standalone:!0,features:[Oe],decls:19,vars:7,consts:[[1,"main"],[1,"content"],[1,"left-side"],["role","separator","aria-label","Divider",1,"divider"],[1,"right-side"],[1,"pill-group"],["target","_blank","rel","noopener",1,"pill",3,"href"],[1,"social-links"],["href","/","aria-label","Github","target","_blank","rel","noopener"],["width","25","height","24","viewBox","0 0 25 24","fill","none","xmlns","http://www.w3.org/2000/svg","alt","Github"],["d","M12.3047 0C5.50634 0 0 5.50942 0 12.3047C0 17.7423 3.52529 22.3535 8.41332 23.9787C9.02856 24.0946 9.25414 23.7142 9.25414 23.3871C9.25414 23.0949 9.24389 22.3207 9.23876 21.2953C5.81601 22.0377 5.09414 19.6444 5.09414 19.6444C4.53427 18.2243 3.72524 17.8449 3.72524 17.8449C2.61064 17.082 3.81137 17.0973 3.81137 17.0973C5.04697 17.1835 5.69604 18.3647 5.69604 18.3647C6.79321 20.2463 8.57636 19.7029 9.27978 19.3881C9.39052 18.5924 9.70736 18.0499 10.0591 17.7423C7.32641 17.4347 4.45429 16.3765 4.45429 11.6618C4.45429 10.3185 4.9311 9.22133 5.72065 8.36C5.58222 8.04931 5.16694 6.79833 5.82831 5.10337C5.82831 5.10337 6.85883 4.77319 9.2121 6.36459C10.1965 6.09082 11.2424 5.95546 12.2883 5.94931C13.3342 5.95546 14.3801 6.09082 15.3644 6.36459C17.7023 4.77319 18.7328 5.10337 18.7328 5.10337C19.3942 6.79833 18.9789 8.04931 18.8559 8.36C19.6403 9.22133 20.1171 10.3185 20.1171 11.6618C20.1171 16.3888 17.2409 17.4296 14.5031 17.7321C14.9338 18.1012 15.3337 18.8559 15.3337 20.0084C15.3337 21.6552 15.3183 22.978 15.3183 23.3779C15.3183 23.7009 15.5336 24.0854 16.1642 23.9623C21.0871 22.3484 24.6094 17.7341 24.6094 12.3047C24.6094 5.50942 19.0999 0 12.3047 0Z"],["href","/","aria-label","Twitter","target","_blank","rel","noopener"],["width","24","height","24","viewBox","0 0 24 24","fill","none","xmlns","http://www.w3.org/2000/svg","alt","Twitter"],["d","M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z"],["href","/","aria-label","Youtube","target","_blank","rel","noopener"],["width","29","height","20","viewBox","0 0 29 20","fill","none","xmlns","http://www.w3.org/2000/svg","alt","Youtube"],["fill-rule","evenodd","clip-rule","evenodd","d","M27.4896 1.52422C27.9301 1.96749 28.2463 2.51866 28.4068 3.12258C29.0004 5.35161 29.0004 10 29.0004 10C29.0004 10 29.0004 14.6484 28.4068 16.8774C28.2463 17.4813 27.9301 18.0325 27.4896 18.4758C27.0492 18.9191 26.5 19.2389 25.8972 19.4032C23.6778 20 14.8068 20 14.8068 20C14.8068 20 5.93586 20 3.71651 19.4032C3.11363 19.2389 2.56449 18.9191 2.12405 18.4758C1.68361 18.0325 1.36732 17.4813 1.20683 16.8774C0.613281 14.6484 0.613281 10 0.613281 10C0.613281 10 0.613281 5.35161 1.20683 3.12258C1.36732 2.51866 1.68361 1.96749 2.12405 1.52422C2.56449 1.08095 3.11363 0.76113 3.71651 0.596774C5.93586 0 14.8068 0 14.8068 0C14.8068 0 23.6778 0 25.8972 0.596774C26.5 0.76113 27.0492 1.08095 27.4896 1.52422ZM19.3229 10L11.9036 5.77905V14.221L19.3229 10Z"],["xmlns","http://www.w3.org/2000/svg","height","14","viewBox","0 -960 960 960","width","14","fill","currentColor"],["d","M200-120q-33 0-56.5-23.5T120-200v-560q0-33 23.5-56.5T200-840h280v80H200v560h560v-280h80v280q0 33-23.5 56.5T760-120H200Zm188-212-56-56 372-372H560v-80h280v280h-80v-144L388-332Z"]],template:function(r,o){r&1&&(h(0,"div",0)(1,"div",1)(2,"div",2),b(3,"app-login"),g(),b(4,"div",3),h(5,"div",4)(6,"div",5),P_(7,x4,5,2,"a",6,g4),g(),h(9,"div",7)(10,"a",8),Ke(),h(11,"svg",9),b(12,"path",10),g()(),xn(),h(13,"a",11),Ke(),h(14,"svg",12),b(15,"path",13),g()(),xn(),h(16,"a",14),Ke(),h(17,"svg",15),b(18,"path",16),g()()()()()()),r&2&&(u(7),N_(j_(3,v4,Io(0,p4),Io(1,f4),Io(2,b4))))},dependencies:[j1],styles:['@charset "UTF-8";[_nghost-%COMP%]{--bright-blue: oklch(51.01% .274 263.83);--electric-violet: oklch(53.18% .28 296.97);--french-violet: oklch(47.66% .246 305.88);--vivid-pink: oklch(69.02% .277 332.77);--hot-red: oklch(61.42% .238 15.34);--orange-red: oklch(63.32% .24 31.68);--gray-900: oklch(19.37% .006 300.98);--gray-700: oklch(36.98% .014 302.71);--gray-400: oklch(70.9% .015 304.04);--red-to-pink-to-purple-vertical-gradient: linear-gradient(180deg, var(--orange-red) 0%, var(--vivid-pink) 50%, var(--electric-violet) 100%);--red-to-pink-to-purple-horizontal-gradient: linear-gradient(90deg, var(--orange-red) 0%, var(--vivid-pink) 50%, var(--electric-violet) 100%);--pill-accent: var(--bright-blue);font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol;box-sizing:border-box;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}h1[_ngcontent-%COMP%]{font-size:3.125rem;color:var(--gray-900);font-weight:500;line-height:100%;letter-spacing:-.125rem;margin:0;font-family:Inter Tight,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol}p[_ngcontent-%COMP%]{margin:0;color:var(--gray-700)}.main[_ngcontent-%COMP%]{width:100%;min-height:100%;display:flex;justify-content:center;align-items:center;padding:1rem;box-sizing:inherit;position:relative}.angular-logo[_ngcontent-%COMP%]{max-width:9.2rem}.content[_ngcontent-%COMP%]{display:flex;justify-content:space-around;width:100%;max-width:700px;margin-bottom:3rem}.content[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{margin-top:1.75rem}.content[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin-top:1.5rem}.divider[_ngcontent-%COMP%]{width:1px;background:var(--red-to-pink-to-purple-vertical-gradient);margin-inline:.5rem}.pill-group[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:start;flex-wrap:wrap;gap:1.25rem}.pill[_ngcontent-%COMP%]{display:flex;align-items:center;--pill-accent: var(--bright-blue);background:color-mix(in srgb,var(--pill-accent) 5%,transparent);color:var(--pill-accent);padding-inline:.75rem;padding-block:.375rem;border-radius:2.75rem;border:0;transition:background .3s ease;font-family:var(--inter-font);font-size:.875rem;font-style:normal;font-weight:500;line-height:1.4rem;letter-spacing:-.00875rem;text-decoration:none}.pill[_ngcontent-%COMP%]:hover{background:color-mix(in srgb,var(--pill-accent) 15%,transparent)}.pill-group[_ngcontent-%COMP%] .pill[_ngcontent-%COMP%]:nth-child(6n+1){--pill-accent: var(--bright-blue)}.pill-group[_ngcontent-%COMP%] .pill[_ngcontent-%COMP%]:nth-child(6n+2){--pill-accent: var(--french-violet)}.pill-group[_ngcontent-%COMP%] .pill[_ngcontent-%COMP%]:nth-child(6n+3), .pill-group[_ngcontent-%COMP%] .pill[_ngcontent-%COMP%]:nth-child(6n+4), .pill-group[_ngcontent-%COMP%] .pill[_ngcontent-%COMP%]:nth-child(6n+5){--pill-accent: var(--hot-red)}.pill-group[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{margin-inline-start:.25rem}.social-links[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.73rem;margin-top:1.5rem}.social-links[_ngcontent-%COMP%] path[_ngcontent-%COMP%]{transition:fill .3s ease;fill:var(--gray-400)}.social-links[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover svg[_ngcontent-%COMP%] path[_ngcontent-%COMP%]{fill:var(--gray-900)}@media screen and (max-width: 650px){.content[_ngcontent-%COMP%]{flex-direction:column;width:max-content}.divider[_ngcontent-%COMP%]{height:1px;width:100%;background:var(--red-to-pink-to-purple-horizontal-gradient);margin-block:1.5rem}}.sidenav-container[_ngcontent-%COMP%]{height:calc(100% - 64px)}.sidenav[_ngcontent-%COMP%]{margin-top:64px}']});let i=t;return i})();var V1=(i,t)=>{let e=_(Fh),n=_(Oo);return e.isAuthenticated().pipe(le(r=>(r||n.navigate(["/"]),r)))};var L1=[{path:"",component:Kx},{path:"login",component:Kx},{path:"envelope",component:zI,canActivate:[V1]}];var _4="@",y4=(()=>{let t=class t{constructor(n,r,o,s,a){this.doc=n,this.delegate=r,this.zone=o,this.animationType=s,this.moduleImpl=a,this._rendererFactoryPromise=null,this.scheduler=_(F_,{optional:!0})}ngOnDestroy(){this._engine?.flush()}loadImpl(){return(this.moduleImpl??import("./chunk-IVZQAEN6.js")).catch(r=>{throw new Me(5300,!1)}).then(({\u0275createEngine:r,\u0275AnimationRendererFactory:o})=>{this._engine=r(this.animationType,this.doc,this.scheduler);let s=new o(this.delegate,this._engine,this.zone);return this.delegate=s,s})}createRenderer(n,r){let o=this.delegate.createRenderer(n,r);if(o.\u0275type===0)return o;typeof o.throwOnSyntheticProps=="boolean"&&(o.throwOnSyntheticProps=!1);let s=new Zx(o);return r?.data?.animation&&!this._rendererFactoryPromise&&(this._rendererFactoryPromise=this.loadImpl()),this._rendererFactoryPromise?.then(a=>{let l=a.createRenderer(n,r);s.use(l)}).catch(a=>{s.use(o)}),s}begin(){this.delegate.begin?.()}end(){this.delegate.end?.()}whenRenderingDone(){return this.delegate.whenRenderingDone?.()??Promise.resolve()}};t.\u0275fac=function(r){js()},t.\u0275prov=k({token:t,factory:t.\u0275fac});let i=t;return i})(),Zx=class{constructor(t){this.delegate=t,this.replay=[],this.\u0275type=1}use(t){if(this.delegate=t,this.replay!==null){for(let e of this.replay)e(t);this.replay=null}}get data(){return this.delegate.data}destroy(){this.replay=null,this.delegate.destroy()}createElement(t,e){return this.delegate.createElement(t,e)}createComment(t){return this.delegate.createComment(t)}createText(t){return this.delegate.createText(t)}get destroyNode(){return this.delegate.destroyNode}appendChild(t,e){this.delegate.appendChild(t,e)}insertBefore(t,e,n,r){this.delegate.insertBefore(t,e,n,r)}removeChild(t,e,n){this.delegate.removeChild(t,e,n)}selectRootElement(t,e){return this.delegate.selectRootElement(t,e)}parentNode(t){return this.delegate.parentNode(t)}nextSibling(t){return this.delegate.nextSibling(t)}setAttribute(t,e,n,r){this.delegate.setAttribute(t,e,n,r)}removeAttribute(t,e,n){this.delegate.removeAttribute(t,e,n)}addClass(t,e){this.delegate.addClass(t,e)}removeClass(t,e){this.delegate.removeClass(t,e)}setStyle(t,e,n,r){this.delegate.setStyle(t,e,n,r)}removeStyle(t,e,n){this.delegate.removeStyle(t,e,n)}setProperty(t,e,n){this.shouldReplay(e)&&this.replay.push(r=>r.setProperty(t,e,n)),this.delegate.setProperty(t,e,n)}setValue(t,e){this.delegate.setValue(t,e)}listen(t,e,n){return this.shouldReplay(e)&&this.replay.push(r=>r.listen(t,e,n)),this.delegate.listen(t,e,n)}shouldReplay(t){return this.replay!==null&&t.startsWith(_4)}};function z1(i="animations"){return il("NgAsyncAnimations"),vn([{provide:tl,useFactory:(t,e,n)=>new y4(t,e,n,i),deps:[ue,vl,de]},{provide:ki,useValue:i==="noop"?"NoopAnimations":"BrowserAnimations"}])}var Xx=(()=>{let t=class t{constructor(){this.document=_(ue),this.meta=_(Ty)}getBaseHref(){return this.document.querySelector("base")?.getAttribute("href")||"/"}getApiUrl(){let n=this.meta.getTag('name="api-url"');return n?n.content:null}};t.\u0275fac=function(r){return new(r||t)},t.\u0275prov=k({token:t,factory:t.\u0275fac,providedIn:"root"});let i=t;return i})();var B1={providers:[uw(L1),Fy(),z1(),vy(xy()),{provide:$_,useFactory:i=>i.getBaseHref(),deps:[Xx]},{provide:Ds,useFactory:i=>i.getApiUrl(),deps:[Xx]}]};var w4=["*",[["mat-toolbar-row"]]],C4=["*","mat-toolbar-row"],I4=(()=>{let t=class t{};t.\u0275fac=function(r){return new(r||t)},t.\u0275dir=N({type:t,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"],standalone:!0});let i=t;return i})(),H1=(()=>{let t=class t{constructor(n,r,o){this._elementRef=n,this._platform=r,this._document=o}ngAfterViewInit(){this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(()=>this._checkToolbarMixedModes()))}_checkToolbarMixedModes(){this._toolbarRows.length}};t.\u0275fac=function(r){return new(r||t)(c(x),c(Ye),c(ue))},t.\u0275cmp=I({type:t,selectors:[["mat-toolbar"]],contentQueries:function(r,o,s){if(r&1&&yt(s,I4,5),r&2){let a;L(a=z())&&(o._toolbarRows=a)}},hostAttrs:[1,"mat-toolbar"],hostVars:6,hostBindings:function(r,o){r&2&&(Yi(o.color?"mat-"+o.color:""),U("mat-toolbar-multiple-rows",o._toolbarRows.length>0)("mat-toolbar-single-row",o._toolbarRows.length===0))},inputs:{color:"color"},exportAs:["matToolbar"],standalone:!0,features:[Oe],ngContentSelectors:C4,decls:2,vars:0,template:function(r,o){r&1&&(Ne(w4),be(0),be(1,1))},styles:[".mat-toolbar{background:var(--mat-toolbar-container-background-color);color:var(--mat-toolbar-container-text-color)}.mat-toolbar,.mat-toolbar h1,.mat-toolbar h2,.mat-toolbar h3,.mat-toolbar h4,.mat-toolbar h5,.mat-toolbar h6{font-family:var(--mat-toolbar-title-text-font);font-size:var(--mat-toolbar-title-text-size);line-height:var(--mat-toolbar-title-text-line-height);font-weight:var(--mat-toolbar-title-text-weight);letter-spacing:var(--mat-toolbar-title-text-tracking);margin:0}.cdk-high-contrast-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{--mdc-text-button-label-text-color:var(--mat-toolbar-container-text-color);--mdc-outlined-button-label-text-color:var(--mat-toolbar-container-text-color)}.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(--mat-toolbar-standard-height)}@media(max-width: 599px){.mat-toolbar-row,.mat-toolbar-single-row{height:var(--mat-toolbar-mobile-height)}}.mat-toolbar-multiple-rows{display:flex;box-sizing:border-box;flex-direction:column;width:100%;min-height:var(--mat-toolbar-standard-height)}@media(max-width: 599px){.mat-toolbar-multiple-rows{min-height:var(--mat-toolbar-mobile-height)}}"],encapsulation:2,changeDetection:0});let i=t;return i})();var $1=(()=>{let t=class t{};t.\u0275fac=function(r){return new(r||t)},t.\u0275mod=M({type:t}),t.\u0275inj=T({imports:[Ve,Ve]});let i=t;return i})();var Jx=(()=>{let t=class t{};t.\u0275fac=function(r){return new(r||t)},t.\u0275mod=M({type:t}),t.\u0275inj=T({});let i=t;return i})();var U1=(()=>{let t=class t{};t.\u0275fac=function(r){return new(r||t)},t.\u0275mod=M({type:t}),t.\u0275inj=T({imports:[Ve,Jx,Jx,Ve]});let i=t;return i})();var W1=(()=>{let t=class t{};t.\u0275fac=function(r){return new(r||t)},t.\u0275mod=M({type:t}),t.\u0275inj=T({imports:[Ve,Ve]});let i=t;return i})();var G1=(()=>{let t=class t{};t.\u0275fac=function(r){return new(r||t)},t.\u0275mod=M({type:t}),t.\u0275inj=T({imports:[fh,q,Ve,wh,c1,W1]});let i=t;return i})();var q1=(()=>{let t=class t{};t.\u0275fac=function(r){return new(r||t)},t.\u0275cmp=I({type:t,selectors:[["app-navbar"]],standalone:!0,features:[Oe],decls:6,vars:0,consts:[["color","primary",1,"toolbar"],["mat-icon-button",""]],template:function(r,o){r&1&&(h(0,"mat-toolbar",0)(1,"button",1)(2,"mat-icon"),S(3,"menu"),g()(),h(4,"span"),S(5,"signFlow"),g()())},dependencies:[$1,H1,Dh,Sh,Eh,kh,U1,G1],styles:["mat-toolbar[_ngcontent-%COMP%]{height:4rem}"]});let i=t;return i})();var Y1=(()=>{let t=class t{};t.\u0275fac=function(r){return new(r||t)},t.\u0275cmp=I({type:t,selectors:[["app-root"]],standalone:!0,features:[Oe],decls:3,vars:0,template:function(r,o){r&1&&(b(0,"app-navbar"),h(1,"main"),b(2,"router-outlet"),g())},dependencies:[Hg,q1],styles:["main[_ngcontent-%COMP%]{width:100%;min-height:calc(100% - 4rem);padding:0;margin:0;display:grid}router-outlet[_ngcontent-%COMP%]{display:none}"]});let i=t;return i})();Dy(Y1,B1).catch(i=>console.error(i));
|