PageSourceSearch

https://www.ysgolgymraegllangennech.cymru/chunk-BJD3J64M.js

js ysgolgymraegllangennech.cymru collected 2026-10-08 06:00:10 UTC 669,446 bytes, 17 lines download raw bytes

vendor: 4,155 bytes, line 1
1import{$ as lS,$b as _n,A as bm,Aa as Fe,Ab as Hu,Ac as nt,Ad as FS,B as Sc,Ba as Pe,Bb as xs,Bc as ke,C as No,Cb as Ns,Cc as Sn,Cd as PS,D as ws,Db as Br,Dc as qt,E as vr,Ea as Te,Eb as Tt,Ec as Nr,F as As,Fa as Ce,Fc as Yu,Ga as _t,Gc as Ku,H as Lo,Ha as mS,Hb as MS,Hc as Se,I as q,Ia as se,Ib as nn,Ic as _r,Id as _i,J as ri,Ja as Be,Jb as K,Jc as $,Jd as kS,K as Bu,Kb as RS,Kc as sn,Kd as jS,La as Ec,Lb as jn,Lc as an,Ld as it,M as U,Ma as Ms,Mb as IS,Mc as Lr,Md as US,Na as Ye,Nb as zu,Nc as Uo,Nd as BS,O as rn,Oa as Vu,Ob as Ge,Oc as Xe,Od as VS,P as oS,Pa as Tm,Pb as G,Pc as et,Pd as Un,Q as Oe,Qa as wm,Qb as Y,Qd as Lm,R as sS,Ra as Am,Rb as Ls,Rd as Xu,S as dr,Sb as xS,Sd as GS,T as aS,Ta as Ve,Tb as Wt,Tc as Sr,U as $i,Ua as Le,Ub as St,Uc as Cc,V as cS,Va as Rs,Vc as ce,W as Os,Wa as Me,Wb as Im,X as Fo,Xa as gS,Xb as Fs,Xc as Fr,Y as Hi,Ya as Om,Yb as NS,Yc as Et,Z as Dm,Za as yS,Zb as xm,Zc as tr,_ as Cm,_a as ie,_b as bc,_c as Ju,a as Pu,aa as uS,ab as Gu,b as rS,ba as dS,bb as vS,c as Ht,ca as Ct,cb as Mm,d as me,da as fS,db as Ft,e as Nt,ea as P,eb as _S,f as ku,fa as We,fb as Rm,fc as Ke,g as Sm,gb as $u,h as ju,ha as ge,hb as Wi,hc as we,i as _c,ia as fr,ib as Is,id as wt,jb as SS,jc as Ae,k as Lt,ka as ne,kb as ES,kc as Dc,kd as Ps,la as zi,lb as bS,lc as vi,ld as Zu,ma as zt,mb as DS,mc as Ir,md as Qu,n as Uu,na as h,nb as CS,nc as xr,o as nS,oa as V,ob as TS,oc as Qe,p as ur,pa as pS,pb as wS,pc as ye,q as _,qa as R,qb as ko,qc as _e,r as lt,ra as p,rc as on,s as tn,sa as f,sc as Re,t as iS,tc as $e,ua as yi,ub as AS,uc as ni,ud as pr,va as Po,vd as LS,w as Em,wd as ks,x as E,xa as hS,xb as H,xd as Ie,y as Dt,ya as Mr,yb as jo,yc as Wu,yd as Er,z as ze,za as Rr,zb as OS,zc as qu,zd as Nm}from"./chunk-IIIGC2WK.js";import{a as u,b as g,d as Or,f as j,i as He}from"./chunk-ERIHC7P2.js";var $S=null;function cn(){return $S}function Fm(e){$S??=e}var Tc=class{},Si=(()=>{class e{historyGo(t){throw new Error("")}static \u0275fac=function(n){return new(n||e)};static \u0275prov=h({token:e,factory:()=>f(HS),providedIn:"platform"})}return e})(),Pm=new R(""),HS=(()=>{class e extends Si{_location;_history;_doc=f(Ce);constructor(){super(),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return cn().getBaseHref(this._doc)}onPopState(t){let n=cn().getGlobalEventTarget(this._doc,"window");return n.addEventListener("popstate",t,!1),()=>n.removeEventListener("popstate",t)}onHashChange(t){let n=cn().getGlobalEventTarget(this._doc,"window");return n.addEventListener("hashchange",t,!1),()=>n.removeEventListener("hashchange",t)}get href(){return this._location.href}get protocol(){return this._location.protocol}get hostname(){return this._location.hostname}get port(){return this._location.port}get pathname(){return this._location.pathname}get search(){return this._location.search}get hash(){return this._location.hash}set pathname(t){this._location.pathname=t}pushState(t,n,i){this._history.pushState(t,n,i)}replaceState(t,n,i){this._history.replaceState(t,n,i)}forward(){this._history.forward()}back(){this._history.back()}historyGo(t=0){this._history.go(t)}getState(){return this._history.state}static \u0275fac=function(n){return new(n||e)};static \u0275prov=h({token:e,factory:()=>new e,providedIn:"platform"})}return e})();function ed(e,r){return e?r?e.endsWith("/")?r.startsWith("/")?e+r.slice(1):e+r:r.startsWith("/")?e+r:`${e}/${r}`:e:r}function zS(e){let r=e.search(/#|\?|$/);return e[r-1]==="/"?e.slice(0,r-1)+e.slice(r):e}function Bn(e){return e&&e[0]!=="?"?`?${e}`:e}var Vn=(()=>{class e{historyGo(t){throw new Error("")}static \u0275fac=function(n){return new(n||e)};static \u0275prov=h({token:e,factory:()=>f(rd),providedIn:"root"})}return e})(),td=new R(""),rd=(()=>{class e extends Vn{_platformLocation;_baseHref;_removeListenerFns=[];constructor(t,n){super(),this._platformLocation=t,this._baseHref=n??this._platformLocation.getBaseHrefFromDOM()??f(Ce).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(t){this._removeListenerFns.push(this._platformLocation.onPopState(t),this._platformLocation.on
vendor: 5,605 bytes, line 1
1HashChange(t))}getBaseHref(){return this._baseHref}prepareExternalUrl(t){return ed(this._baseHref,t)}path(t=!1){let n=this._platformLocation.pathname+Bn(this._platformLocation.search),i=this._platformLocation.hash;return i&&t?`${n}${i}`:n}pushState(t,n,i,o){let s=this.prepareExternalUrl(i+Bn(o));this._platformLocation.pushState(t,n,s)}replaceState(t,n,i,o){let s=this.prepareExternalUrl(i+Bn(o));this._platformLocation.replaceState(t,n,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(t=0){this._platformLocation.historyGo?.(t)}static \u0275fac=function(n){return new(n||e)(p(Si),p(td,8))};static \u0275prov=h({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var qi=(()=>{class e{_subject=new me;_basePath;_locationStrategy;_urlChangeListeners=[];_urlChangeSubscription=null;constructor(t){this._locationStrategy=t;let n=this._locationStrategy.getBaseHref();this._basePath=_x(zS(WS(n))),this._locationStrategy.onPopState(i=>{this._subject.next({url:this.path(!0),pop:!0,state:i.state,type:i.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(t=!1){return this.normalize(this._locationStrategy.path(t))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(t,n=""){return this.path()==this.normalize(t+Bn(n))}normalize(t){return e.stripTrailingSlash(vx(this._basePath,WS(t)))}prepareExternalUrl(t){return t&&t[0]!=="/"&&(t="/"+t),this._locationStrategy.prepareExternalUrl(t)}go(t,n="",i=null){this._locationStrategy.pushState(i,"",t,n),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+Bn(n)),i)}replaceState(t,n="",i=null){this._locationStrategy.replaceState(i,"",t,n),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+Bn(n)),i)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(t=0){this._locationStrategy.historyGo?.(t)}onUrlChange(t){return this._urlChangeListeners.push(t),this._urlChangeSubscription??=this.subscribe(n=>{this._notifyUrlChangeListeners(n.url,n.state)}),()=>{let n=this._urlChangeListeners.indexOf(t);this._urlChangeListeners.splice(n,1),this._urlChangeListeners.length===0&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(t="",n){this._urlChangeListeners.forEach(i=>i(t,n))}subscribe(t,n,i){return this._subject.subscribe({next:t,error:n??void 0,complete:i??void 0})}static normalizeQueryParams=Bn;static joinWithSlash=ed;static stripTrailingSlash=zS;static \u0275fac=function(n){return new(n||e)(p(Vn))};static \u0275prov=h({token:e,factory:()=>yx(),providedIn:"root"})}return e})();function yx(){return new qi(p(Vn))}function vx(e,r){if(!e||!r.startsWith(e))return r;let t=r.substring(e.length);return t===""||["/",";","?","#"].includes(t[0])?t:r}function WS(e){return e.replace(/\/index\.html$/,"")}function _x(e){if(new RegExp("^(https?:)?//").test(e)){let[,t]=e.split(/\/\/[^\/]+/);return t}return e}var $m=(()=>{class e extends Vn{_platformLocation;_baseHref="";_removeListenerFns=[];constructor(t,n){super(),this._platformLocation=t,n!=null&&(this._baseHref=n)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(t){this._removeListenerFns.push(this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t))}getBaseHref(){return this._baseHref}path(t=!1){let n=this._platformLocation.hash??"#";return n.length>0?n.substring(1):n}prepareExternalUrl(t){let n=ed(this._baseHref,t);return n.length>0?"#"+n:n}pushState(t,n,i,o){let s=this.prepareExternalUrl(i+Bn(o))||this._platformLocation.pathname;this._platformLocation.pushState(t,n,s)}replaceState(t,n,i,o){let s=this.prepareExternalUrl(i+Bn(o))||this._platformLocation.pathname;this._platformLocation.replaceState(t,n,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(t=0){this._platformLocation.historyGo?.(t)}static \u0275fac=function(n){return new(n||e)(p(Si),p(td,8))};static \u0275prov=h({token:e,factory:e.\u0275fac})}return e})();var br=(function(e){return e[e.Format=0]="Format",e[e.Standalone=1]="Standalone",e})(br||{}),Je=(function(e){return e[e.Narrow=0]="Narrow",e[e.Abbreviated=1]="Abbreviated",e[e.Wide=2]="Wide",e[e.Short=3]="Short",e})(Je||{}),Vr=(function(e){return e[e.Short=0]="Short",e[e.Medium=1]="Medium",e[e.Long=2]="Long",e[e.Full=3]="Full",e})(Vr||{}),bi={Decimal:0,Group:1,List:2,PercentSign:3,PlusSign:4,MinusSign:5,Exponential:6,SuperscriptingExponent:7,PerMille:8,Infinity:9,NaN:10,TimeSeparator:11,CurrencyDecimal:12,CurrencyGroup:13};function ZS(e){return Sn(e)[qt.LocaleId]}function QS(e,r,t){let n=Sn(e),i=[n[qt.DayPeriodsFormat],n[qt.DayPeriodsStandalone]],o=En(i,r);return En(o,t)}function XS(e,r,t){let n=Sn(e),i=[n[qt.DaysFormat],n[qt.DaysStandalone]],o=En(i,r);return En(o,t)}function eE(e,r,t){let n=Sn(e),i=[n[qt.MonthsFormat],n[qt.MonthsStandalone]],o=En(i,r);return En(o,t)}function tE(e,r){let n=Sn(e)[qt.Eras];return En(n,r)}function wc(e,r){let t=Sn(e);return En(t[qt.DateFormat],r)}function Ac(e,r){let t=Sn(e);return En(t[qt.TimeFormat],r)}function Oc(e,r){let n=Sn(e)[qt.DateTimeFormat];return En(n,r)}function Mc(e,r){let t=Sn(e),n=t[qt.NumberSymbols][r];if(typeof n>"u"){if(r===bi.CurrencyDecimal)return t[qt.NumberSymbols][bi.Decimal];if(r===bi.CurrencyGroup)return t[qt.NumberSymbols][bi.Group]}return n}function rE(e){if(!e[qt.ExtraData])throw new ne(2303,!1)}function nE(e){let r=Sn(e);return rE(r),(r[qt.ExtraData][2]||[]).map(n=>
vendor: 10,545 bytes, line 1
1typeof n=="string"?km(n):[km(n[0]),km(n[1])])}function iE(e,r,t){let n=Sn(e);rE(n);let i=[n[qt.ExtraData][0],n[qt.ExtraData][1]],o=En(i,r)||[];return En(o,t)||[]}function En(e,r){for(let t=r;t>-1;t--)if(typeof e[t]<"u")return e[t];throw new ne(2304,!1)}function km(e){let[r,t]=e.split(":");return{hours:+r,minutes:+t}}var Sx=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,nd={},Ex=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/,bx=256;function Bo(e,r,t,n){let i=xx(e);Dx(r),r=Ei(t,r)||r;let s=[],a;for(;r;)if(a=Ex.exec(r),a){s=s.concat(a.slice(1));let d=s.pop();if(!d)break;r=d}else{s.push(r);break}let c=i.getTimezoneOffset();n&&(c=sE(n,c),i=Ix(i,n));let l="";return s.forEach(d=>{let m=Mx(d);l+=m?m(i,t,c):d==="''"?"'":d.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),l}function Dx(e){if(e.length>bx)throw new ne(2300,!1)}function cd(e,r,t){let n=new Date(0);return n.setFullYear(e,r,t),n.setHours(0,0,0),n}function Ei(e,r){let t=ZS(e);if(nd[t]??={},nd[t][r])return nd[t][r];let n="";switch(r){case"shortDate":n=wc(e,Vr.Short);break;case"mediumDate":n=wc(e,Vr.Medium);break;case"longDate":n=wc(e,Vr.Long);break;case"fullDate":n=wc(e,Vr.Full);break;case"shortTime":n=Ac(e,Vr.Short);break;case"mediumTime":n=Ac(e,Vr.Medium);break;case"longTime":n=Ac(e,Vr.Long);break;case"fullTime":n=Ac(e,Vr.Full);break;case"short":let i=Ei(e,"shortTime"),o=Ei(e,"shortDate");n=id(Oc(e,Vr.Short),[i,o]);break;case"medium":let s=Ei(e,"mediumTime"),a=Ei(e,"mediumDate");n=id(Oc(e,Vr.Medium),[s,a]);break;case"long":let c=Ei(e,"longTime"),l=Ei(e,"longDate");n=id(Oc(e,Vr.Long),[c,l]);break;case"full":let d=Ei(e,"fullTime"),m=Ei(e,"fullDate");n=id(Oc(e,Vr.Full),[d,m]);break}return n&&(nd[t][r]=n),n}function id(e,r){return r&&(e=e.replace(/\{([^}]+)}/g,function(t,n){return r!=null&&n in r?r[n]:t})),e}function Gn(e,r,t="-",n,i){let o="";(e<0||i&&e<=0)&&(i?e=-e+1:(e=-e,o=t));let s=String(e);for(;s.length<r;)s="0"+s;return n&&(s=s.slice(s.length-r)),o+s}function Cx(e,r){return Gn(e,3).substring(0,r)}function Pt(e,r,t=0,n=!1,i=!1){return function(o,s){let a=Tx(e,o);if((t>0||a>-t)&&(a+=t),e===3)a===0&&t===-12&&(a=12);else if(e===6)return Cx(a,r);let c=Mc(s,bi.MinusSign);return Gn(a,r,c,n,i)}}function Tx(e,r){switch(e){case 0:return r.getFullYear();case 1:return r.getMonth();case 2:return r.getDate();case 3:return r.getHours();case 4:return r.getMinutes();case 5:return r.getSeconds();case 6:return r.getMilliseconds();case 7:return r.getDay();default:throw new ne(2301,!1)}}function ot(e,r,t=br.Format,n=!1){return function(i,o){return wx(i,o,e,r,t,n)}}function wx(e,r,t,n,i,o){switch(t){case 2:return eE(r,i,n)[e.getMonth()];case 1:return XS(r,i,n)[e.getDay()];case 0:let s=e.getHours(),a=e.getMinutes();if(o){let l=nE(r),d=iE(r,i,n),m=l.findIndex(y=>{if(Array.isArray(y)){let[S,N]=y,T=s>=S.hours&&a>=S.minutes,v=s<N.hours||s===N.hours&&a<N.minutes;if(S.hours<N.hours){if(T&&v)return!0}else if(T||v)return!0}else if(y.hours===s&&y.minutes===a)return!0;return!1});if(m!==-1)return d[m]}return QS(r,i,n)[s<12?0:1];case 3:return tE(r,n)[e.getFullYear()<=0?0:1];default:let c=t;throw new ne(2302,!1)}}function od(e){return function(r,t,n){let i=-1*n,o=Mc(t,bi.MinusSign),s=i>0?Math.floor(i/60):Math.ceil(i/60);switch(e){case 0:return(i>=0?"+":"")+Gn(s,2,o)+Gn(Math.abs(i%60),2,o);case 1:return"GMT"+(i>=0?"+":"")+Gn(s,1,o);case 2:return"GMT"+(i>=0?"+":"")+Gn(s,2,o)+":"+Gn(Math.abs(i%60),2,o);case 3:return n===0?"Z":(i>=0?"+":"")+Gn(s,2,o)+":"+Gn(Math.abs(i%60),2,o);default:throw new ne(2310,!1)}}}var Ax=0,ad=4;function Ox(e){let r=cd(e,Ax,1).getDay();return cd(e,0,1+(r<=ad?ad:ad+7)-r)}function oE(e){let r=e.getDay(),t=r===0?-3:ad-r;return cd(e.getFullYear(),e.getMonth(),e.getDate()+t)}function jm(e,r=!1){return function(t,n){let i;if(r){let o=new Date(t.getFullYear(),t.getMonth(),1).getDay()-1,s=t.getDate();i=1+Math.floor((s+o)/7)}else{let o=oE(t),s=Ox(o.getFullYear()),a=o.getTime()-s.getTime();i=1+Math.round(a/6048e5)}return Gn(i,e,Mc(n,bi.MinusSign))}}function sd(e,r=!1){return function(t,n){let o=oE(t).getFullYear();return Gn(o,e,Mc(n,bi.MinusSign),r)}}var Um={};function Mx(e){if(Um[e])return Um[e];let r;switch(e){case"G":case"GG":case"GGG":r=ot(3,Je.Abbreviated);break;case"GGGG":r=ot(3,Je.Wide);break;case"GGGGG":r=ot(3,Je.Narrow);break;case"y":r=Pt(0,1,0,!1,!0);break;case"yy":r=Pt(0,2,0,!0,!0);break;case"yyy":r=Pt(0,3,0,!1,!0);break;case"yyyy":r=Pt(0,4,0,!1,!0);break;case"Y":r=sd(1);break;case"YY":r=sd(2,!0);break;case"YYY":r=sd(3);break;case"YYYY":r=sd(4);break;case"M":case"L":r=Pt(1,1,1);break;case"MM":case"LL":r=Pt(1,2,1);break;case"MMM":r=ot(2,Je.Abbreviated);break;case"MMMM":r=ot(2,Je.Wide);break;case"MMMMM":r=ot(2,Je.Narrow);break;case"LLL":r=ot(2,Je.Abbreviated,br.Standalone);break;case"LLLL":r=ot(2,Je.Wide,br.Standalone);break;case"LLLLL":r=ot(2,Je.Narrow,br.Standalone);break;case"w":r=jm(1);break;case"ww":r=jm(2);break;case"W":r=jm(1,!0);break;case"d":r=Pt(2,1);break;case"dd":r=Pt(2,2);break;case"c":case"cc":r=Pt(7,1);break;case"ccc":r=ot(1,Je.Abbreviated,br.Standalone);break;case"cccc":r=ot(1,Je.Wide,br.Standalone);break;case"ccccc":r=ot(1,Je.Narrow,br.Standalone);break;case"cccccc":r=ot(1,Je.Short,br.Standalone);break;case"E":case"EE":case"EEE":r=ot(1,Je.Abbreviated);break;case"EEEE":r=ot(1,Je.Wide);break;case"EEEEE":r=ot(1,Je.Narrow);break;case"EEEEEE":r=ot(1,Je.Short);break;case"a":case"aa":case"aaa":r=ot(0,Je.Abbreviated);break;case"aaaa":r=ot(0,Je.Wide);break;case"aaaaa":r=ot(0,Je.Narrow);break;case"b":case"bb":case"bbb":r=ot(0,Je.Abbreviated,br.Standalone,!0);break;case"bbbb":r=ot(0,Je.Wide,br.Standalone,!0);break;case"bbbbb":r=ot(0,Je.Narrow,br.Standalone,!0);break;case"B":case"BB":case"BBB":r=ot(0,Je.Abbreviated,br.Format,!0);break;case"BBBB":r=ot(0,Je.Wide,br.Format,!0);break;case"BBBBB":r=ot(0,Je.Narrow,br.Format,!0);break;case"h":r=Pt(3,1,-12);break;case"hh":r=Pt(3,2,-12);break;case"H":r=Pt(3,1);break;case"HH":r=Pt(3,2);break;case"m":r=Pt(4,1);break;case"mm":r=Pt(4,2);break;case"s":r=Pt(5,1);break;case"ss":r=Pt(5,2);break;case"S":r=Pt(6,1);break;case"SS":r=Pt(6,2);break;case"SSS":r=Pt(6,3);break;case"Z":case"ZZ":case"ZZZ":r=od(0);break;case"ZZZZZ":r=od(3);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":r=od(1);break;case"OOOO":case"ZZZZ":case"zzzz":r=od(2);break;default:return null}return Um[e]=r,r}function sE(e,r){e=e.replace(/:/g,"");let t=Date.parse("Jan 01, 1970 00:00:00 "+e)/6e4;return isNaN(t)?r:t}function Rx(e,r){return e=new Date(e.getTime()),e.setMinutes(e.getMinutes()+r),e}function Ix(e,r,t){let i=e.getTimezoneOffset(),o=sE(r,i);return Rx(e,-1*(o-i))}function xx(e){if(qS(e))return e;if(typeof e=="number"&&!isNaN(e))return new Date(e);if(typeof e=="string"){if(e=e.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(e)){let[i,o=1,s=1]=e.split("-").map(a=>+a);return cd(i,o-1,s)}let t=parseFloat(e);if(!isNaN(e-t))return new Date(t);let n;if(n=e.match(Sx))return Nx(n)}let r=new Date(e);if(!qS(r))throw new ne(2311,!1);return r}function Nx(e){let r=new Date(0),t=0,n=0,i=e[8]?r.setUTCFullYear:r.setFullYear,o=e[8]?r.setUTCHours:r.setHours;e[9]&&(t=Number(e[9]+e[10]),n=Number(e[9]+e[11])),i.call(r,Number(e[1]),Number(e[2])-1,Number(e[3]));let s=Number(e[4]||0)-t,a=Number(e[5]||0)-n,c=Number(e[6]||0),l=Math.floor(parseFloat("0."+(e[7]||0))*1e3);return o.call(r,s,a,c,l),r}function qS(e){return e instanceof Date&&!isNaN(e.valueOf())}var Bm=/\s+/,YS=[],Lx=(()=>{class e{_ngEl;_renderer;initialClasses=YS;rawClass;stateMap=new Map;constructor(t,n){this._ngEl=t,this._renderer=n}set klass(t){this.initialClasses=t!=null?t.trim().split(Bm):YS}set ngClass(t){this.rawClass=typeof t=="string"?t.trim().split(Bm):t}ngDoCheck(){for(let n of this.initialClasses)this._updateState(n,!0);let t=this.rawClass;if(Array.isArray(t)||t instanceof Set)for(let n of t)this._updateState(n,!0);else if(t!=null)for(let n of Object.keys(t))this._updateState(n,!!t[n]);this._applyStateDiff()}_updateState(t,n){let i=this.stateMap.get(t);i!==void 0?(i.enabled!==n&&(i.changed=!0,i.enabled=n),i.touched=!0):this.stateMap.set(t,{enabled:n,changed:!0,touched:!0})}_applyStateDiff(){for(let t of this.stateMap){let n=t[0],i=t[1];i.changed?(this._toggleClass(n,i.enabled),i.changed=!1):i.touched||(i.enabled&&this._toggleClass(n,!1),this.stateMap.delete(n)),i.touched=!1}}_toggleClass(t,n){t=t.trim(),t.length>0&&t.split(Bm).forEach(i=>{n?this._renderer.addClass(this._ngEl.nativeElement,i):this._renderer.removeClass(this._ngEl.nativeElement,i)})}static \u0275fac=function(n){return new(n||e)(K(Me),K(nn))};static \u0275dir=Y({type:e,selectors:[["","ngClass",""]],inputs:{klass:[0,"class","klass"],ngClass:"ngClass"}})}return e})();var ld=class{$implicit;ngForOf;index;count;constructor(r,t,n,i){this.$implicit=r,this.ngForOf=t,this.index=n,this.count=i}get first(){return this.index===0}get last(){return this.index===this.count-1}get even(){return this.index%2===0}get odd(){return!this.even}},aE=(()=>{class e{_viewContainer;_template;_differs;set ngForOf(t){this._ngForOf=t,this._ngForOfDirty=!0}set ngForTrackBy(t){this._trackByFn=t}get ngForTrackBy(){return this._trackByFn}_ngForOf=null;_ngForOfDirty=!0;_differ=null;_trackByFn;constructor(t,n,i){this._viewContainer=t,this._template=n,this._differs=i}set ngForTemplate(t){t&&(this._template=t)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;let t=this._ngForOf;!this._differ&&t&&(this._differ=this._differs.find(t).create(this.ngForTrackBy))}if(this._differ){let t=this._differ.diff(this._ngForOf);t&&this._applyChanges(t)}}_applyChanges(t){let n=this._viewContainer;t.forEachOperation((i,o,s)=>{if(i.previousIndex==null)n.createEmbeddedView(this._template,new ld(i.item,this._ngForOf,-1,-1),s===null?void 0:s);else if(s==null)n.remove(o===null?void 0:o);else if(o!==null){let a=n.get(o);n.move(a,s),KS(a,i)}});for(let i=0,o=n.length;i<o;i++){let a=n.get(i).context;a.index=i,a.count=o,a.ngForOf=this._ngForOf}t.forEachIdentityChange(i=>{let o=n.get(i.currentIndex);KS(o,i)})}static ngTemplateContextGuard(t,n){return!0}static \u0275fac=function(n){return new(n||e)(K(jn),K(Tt),K(US))};static \u0275dir=Y({type:e,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}})}return e})();function KS(e,r){e.context.$implicit=r.item}var Fx=(()=>{class e{_viewContainer;_context=new ud;_thenTemplateRef=null;_elseTemplateRef=null;
vendor: 26,438 bytes, lines 1-2
1_thenViewRef=null;_elseViewRef=null;constructor(t,n){this._viewContainer=t,this._thenTemplateRef=n}set ngIf(t){this._context.$implicit=this._context.ngIf=t,this._updateView()}set ngIfThen(t){JS(t,!1),this._thenTemplateRef=t,this._thenViewRef=null,this._updateView()}set ngIfElse(t){JS(t,!1),this._elseTemplateRef=t,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngIfUseIfTypeGuard;static ngTemplateGuard_ngIf;static ngTemplateContextGuard(t,n){return!0}static \u0275fac=function(n){return new(n||e)(K(jn),K(Tt))};static \u0275dir=Y({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}})}return e})(),ud=class{$implicit=null;ngIf=null};function JS(e,r){if(e&&!e.createEmbeddedView)throw new ne(2020,!1)}var Px=(()=>{class e{_ngEl;_differs;_renderer;_ngStyle=null;_differ=null;constructor(t,n,i){this._ngEl=t,this._differs=n,this._renderer=i}set ngStyle(t){this._ngStyle=t,!this._differ&&t&&(this._differ=this._differs.find(t).create())}ngDoCheck(){if(this._differ){let t=this._differ.diff(this._ngStyle);t&&this._applyChanges(t)}}_setStyle(t,n){let[i,o]=t.split("."),s=i.indexOf("-")===-1?void 0:jo.DashCase;n!=null?this._renderer.setStyle(this._ngEl.nativeElement,i,o?`${n}${o}`:n,s):this._renderer.removeStyle(this._ngEl.nativeElement,i,s)}_applyChanges(t){t.forEachRemovedItem(n=>this._setStyle(n.key,null)),t.forEachAddedItem(n=>this._setStyle(n.key,n.currentValue)),t.forEachChangedItem(n=>this._setStyle(n.key,n.currentValue))}static \u0275fac=function(n){return new(n||e)(K(Me),K(BS),K(nn))};static \u0275dir=Y({type:e,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}})}return e})(),ii=(()=>{class e{_viewContainerRef;_viewRef=null;ngTemplateOutletContext=null;ngTemplateOutlet=null;ngTemplateOutletInjector=null;injector=f(Te);constructor(t){this._viewContainerRef=t}ngOnChanges(t){if(this._shouldRecreateView(t)){let n=this._viewContainerRef;if(this._viewRef&&n.remove(n.indexOf(this._viewRef)),!this.ngTemplateOutlet){this._viewRef=null;return}let i=this._createContextForwardProxy();this._viewRef=n.createEmbeddedView(this.ngTemplateOutlet,i,{injector:this._getInjector()})}}_getInjector(){return this.ngTemplateOutletInjector==="outlet"?this.injector:this.ngTemplateOutletInjector??void 0}_shouldRecreateView(t){return!!t.ngTemplateOutlet||!!t.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:(t,n,i)=>this.ngTemplateOutletContext?Reflect.set(this.ngTemplateOutletContext,n,i):!1,get:(t,n,i)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,n,i)}})}static \u0275fac=function(n){return new(n||e)(K(jn))};static \u0275dir=Y({type:e,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},features:[Ve]})}return e})();function Hm(e,r){return new ne(2100,!1)}var Vm=class{createSubscription(r,t,n){return Ie(()=>r.subscribe({next:t,error:n}))}dispose(r){Ie(()=>r.unsubscribe())}},Gm=class{createSubscription(r,t,n){return r.then(i=>t?.(i),i=>n?.(i)),{unsubscribe:()=>{t=null,n=null}}}dispose(r){r.unsubscribe()}},kx=new Gm,jx=new Vm,Ux=(()=>{class e{_ref;_latestValue=null;markForCheckOnValueUpdate=!0;_subscription=null;_obj=null;_strategy=null;applicationErrorHandler=f(Ms);constructor(t){this._ref=t}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(t){if(!this._obj){if(t)try{this.markForCheckOnValueUpdate=!1,this._subscribe(t)}finally{this.markForCheckOnValueUpdate=!0}return this._latestValue}return t!==this._obj?(this._dispose(),this.transform(t)):this._latestValue}_subscribe(t){this._obj=t,this._strategy=this._selectStrategy(t),this._subscription=this._strategy.createSubscription(t,n=>this._updateLatestValue(t,n),n=>this.applicationErrorHandler(n))}_selectStrategy(t){if(Fs(t))return kx;if(NS(t))return jx;throw Hm(e,t)}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(t,n){t===this._obj&&(this._latestValue=n,this.markForCheckOnValueUpdate&&this._ref?.markForCheck())}static \u0275fac=function(n){return new(n||e)(K(it,16))};static \u0275pipe=Ls({name:"async",type:e,pure:!1})}return e})();var Bx="mediumDate",cE=new R(""),lE=new R(""),Vx=(()=>{class e{locale;defaultTimezone;defaultOptions;constructor(t,n,i){this.locale=t,this.defaultTimezone=n,this.defaultOptions=i}transform(t,n,i,o){if(t==null||t===""||t!==t)return null;try{let s=n??this.defaultOptions?.dateFormat??Bx,a=i??this.defaultOptions?.timezone??this.defaultTimezone??void 0;return Bo(t,s,o||this.locale,a)}catch(s){throw Hm(e,s.message)}}static \u0275fac=function(n){return new(n||e)(K(ks,16),K(cE,24),K(lE,24))};static \u0275pipe=Ls({name:"date",type:e,pure:!0})}return e})();var Gx=(()=>{class e{transform(t,n,i){if(t==null)return null;if(!(typeof t=="string"||Array.isArray(t)))throw Hm(e,t);return t.slice(n,i)}static \u0275fac=function(n){return new(n||e)};static \u0275pipe=Ls({name:"slice",type:e,pure:!1})}return e})();var dd=(()=>{class e{static \u0275fac=function(n){return new(n||e)};static \u0275mod=G({type:e});static \u0275inj=V({})}return e})();function Rc(e,r){r=encodeURIComponent(r);for(let t of e.split(";")){let n=t.indexOf("="),[i,o]=n==-1?[t,""]:[t.slice(0,n),t.slice(n+1)];if(i.trim()===r)return decodeURIComponent(o)}return null}var Vo=class{};var Wm="browser",$x="server";function ut(e){return e===Wm}function te(e){return e===$x}var qm=(()=>{class e{static \u0275prov=h({token:e,providedIn:"root",factory:()=>new zm(f(Ce),window)})}return e})(),zm=class{document;window;offset=()=>[0,0];constructor(r,t){this.document=r,this.window=t}setOffset(r){Array.isArray(r)?this.offset=()=>r:this.offset=r}getScrollPosition(){return[this.window.scrollX,this.window.scrollY]}scrollToPosition(r,t){this.window.scrollTo(g(u({},t),{left:r[0],top:r[1]}))}scrollToAnchor(r,t){let n=Hx(this.document,r);n&&(this.scrollToElement(n,t),n.focus({preventScroll:!0}))}setHistoryScrollRestoration(r){try{this.window.history.scrollRestoration=r}catch(t){console.warn(zi(2400,!1))}}scrollToElement(r,t){let n=r.getBoundingClientRect(),i=n.left+this.window.pageXOffset,o=n.top+this.window.pageYOffset,s=this.offset();this.window.scrollTo(g(u({},t),{left:i-s[0],top:o-s[1]}))}};function Hx(e,r){let t=e.getElementById(r)||e.getElementsByName(r)[0];if(t)return t;if(typeof e.createTreeWalker=="function"&&e.body&&typeof e.body.attachShadow=="function"){let n=e.createTreeWalker(e.body,NodeFilter.SHOW_ELEMENT),i=n.currentNode;for(;i;){let o=i.shadowRoot;if(o){let s=o.getElementById(r)||o.querySelector(`[name="${r}"]`);if(s)return s}i=n.nextNode()}}return null}var pE=e=>e.src,zx=new R("",{factory:()=>pE});var uE=/^((\s*\d+w\s*(,|$)){1,})$/;var Wx=[1,2],qx=640;var Yx=1920,Kx=1080;var t7=(()=>{class e{imageLoader=f(zx);config=Jx(f(Mm));renderer=f(nn);imgElement=f(Me).nativeElement;injector=f(Te);destroyRef=f(_t);lcpObserver;_renderedSrc=null;ngSrc;ngSrcset;sizes;width;height;decoding;loading;priority=!1;loaderParams;disableOptimizedSrcset=!1;fill=!1;placeholder;placeholderConfig;src;srcset;constructor(){this.destroyRef.onDestroy(()=>{this.renderer.removeAttribute(this.imgElement,"loading")})}ngOnInit(){xs("NgOptimizedImage"),this.placeholder&&this.removePlaceholderOnLoad(this.imgElement),this.setHostAttributes()}setHostAttributes(){this.fill?this.sizes||="100vw":(this.setHostAttribute("width",this.width.toString()),this.setHostAttribute("height",this.height.toString())),this.setHostAttribute("loading",this.getLoadingBehavior()),this.setHostAttribute("fetchpriority",this.getFetchPriority()),this.setHostAttribute("decoding",this.getDecoding()),this.setHostAttribute("ng-img","true");let t=this.updateSrcAndSrcset();this.sizes?this.getLoadingBehavior()==="lazy"?this.setHostAttribute("sizes","auto, "+this.sizes):this.setHostAttribute("sizes",this.sizes):this.ngSrcset&&uE.test(this.ngSrcset)&&this.getLoadingBehavior()==="lazy"&&this.setHostAttribute("sizes","auto, 100vw")}ngOnChanges(t){if(t.ngSrc&&!t.ngSrc.isFirstChange()){let n=this._renderedSrc;this.updateSrcAndSrcset(!0)}}getAspectRatio(){return this.width&&this.height&&this.height!==0?this.width/this.height:null}callImageLoader(t){let n=t;this.loaderParams&&(n.loaderParams=this.loaderParams);let i=this.getAspectRatio();return i!==null&&n.width&&(n.height=Math.round(n.width/i)),this.imageLoader(n)}getLoadingBehavior(){return!this.priority&&this.loading!==void 0?this.loading:this.priority?"eager":"lazy"}getFetchPriority(){return this.priority?"high":"auto"}getDecoding(){return this.priority?"sync":this.decoding??"auto"}getRewrittenSrc(){if(!this._renderedSrc){let t={src:this.ngSrc};this._renderedSrc=this.callImageLoader(t)}return this._renderedSrc}getRewrittenSrcset(){let t=uE.test(this.ngSrcset);return this.ngSrcset.split(",").filter(i=>i!=="").map(i=>{i=i.trim();let o=t?parseFloat(i):parseFloat(i)*this.width;return`${this.callImageLoader({src:this.ngSrc,width:o})} ${i}`}).join(", ")}getAutomaticSrcset(){return this.sizes?this.getResponsiveSrcset():this.getFixedSrcset()}getResponsiveSrcset(){let{breakpoints:t}=this.config,n=t;return this.sizes?.trim()==="100vw"&&(n=t.filter(o=>o>=qx)),n.map(o=>`${this.callImageLoader({src:this.ngSrc,width:o})} ${o}w`).join(", ")}updateSrcAndSrcset(t=!1){t&&(this._renderedSrc=null);let n=this.getRewrittenSrc();this.setHostAttribute("src",n);let i;return this.ngSrcset?i=this.getRewrittenSrcset():this.shouldGenerateAutomaticSrcset()&&(i=this.getAutomaticSrcset()),i&&this.setHostAttribute("srcset",i),i}getFixedSrcset(){return Wx.map(n=>`${this.callImageLoader({src:this.ngSrc,width:this.width*n})} ${n}x`).join(", ")}shouldGenerateAutomaticSrcset(){let t=!1;return this.sizes||(t=this.width>Yx||this.height>Kx),!this.disableOptimizedSrcset&&!this.srcset&&this.imageLoader!==pE&&!t}generatePlaceholder(t){let{placeholderResolution:n}=this.config;return t===!0?`url("${dE(this.callImageLoader({src:this.ngSrc,width:n,isPlaceholder:!0}))}")`:typeof t=="string"?`url("${dE(t)}")`:null}shouldBlurPlaceholder(t){return!t||!t.hasOwnProperty("blur")?!0:!!t.blur}removePlaceholderOnLoad(t){let n=()=>{let s=this.injector.get(it);i(),o(),this.placeholder=!1,s.markForCheck()},i=this.renderer.listen(t,"load",n),o=this.renderer.listen(t,"error",n);this.destroyRef.onDestroy(()=>{i(),o()}),Zx(t,n)}setHostAttribute(t,n){this.renderer.setAttribute(this.imgElement,t,n)}static \u0275fac=function(n){return new(n||e)};static \u0275dir=Y({type:e,selectors:[["img","ngSrc",""]],hostVars:18,hostBindings:function(n,i){n&2&&Cc("position",i.fill?"absolute":null)("width",i.fill?"100%":null)("height",i.fill?"100%":null)("inset",i.fill?"0":null)("background-size",i.placeholder?"cover":null)("background-position",i.placeholder?"50% 50%":null)("background-repeat",i.placeholder?"no-repeat":null)("background-image",i.placeholder?i.generatePlaceholder(i.placeholder):null)("filter",i.placeholder&&i.shouldBlurPlaceholder(i.placeholderConfig)?"blur(15px)":null)},inputs:{ngSrc:[2,"ngSrc","ngSrc",Qx],ngSrcset:"ngSrcset",sizes:"sizes",width:[2,"width","width",Lm],height:[2,"height","height",Lm],decoding:"decoding",loading:"loading",priority:[2,"priority","priority",Un],loaderParams:"loaderParams",disableOptimizedSrcset:[2,"disableOptimizedSrcset","disableOptimizedSrcset",Un],fill:[2,"fill","fill",Un],placeholder:[2,"placeholder","placeholder",Xx],placeholderConfig:"placeholderConfig",src:"src",srcset:"srcset"},features:[Ve]})}return e})();function Jx(e){let r={};return e.breakpoints&&(r.breakpoints=e.breakpoints.sort((t,n)=>t-n)),Object.assign({},vS,e,r)}function Zx(e,r){e.complete&&e.naturalWidth&&r()}function Qx(e){return typeof e=="string"?e:Wi(e)}function dE(e){return e.replace(/\\/g,"\\\\").replace(/"/g,'\\"')}function Xx(e){return typeof e=="string"&&e!=="true"&&e!=="false"&&e!==""?e:Un(e)}var Ic=class{_doc;constructor(r){this._doc=r}manager},fd=(()=>{class e extends Ic{constructor(t){super(t)}supports(t){return!0}addEventListener(t,n,i,o){return t.addEventListener(n,i,o),()=>this.removeEventListener(t,n,i,o)}removeEventListener(t,n,i,o){return t.removeEventListener(n,i,o)}static \u0275fac=function(n){return new(n||e)(p(Ce))};static \u0275prov=h({token:e,factory:e.\u0275fac})}return e})(),md=new R(""),Zm=(()=>{class e{_zone;_plugins;_eventNameToPlugin=new Map;constructor(t,n){this._zone=n,t.forEach(s=>{s.manager=this});let i=t.filter(s=>!(s instanceof fd));this._plugins=i.slice().reverse();let o=t.find(s=>s instanceof fd);o&&this._plugins.push(o)}addEventListener(t,n,i,o){return this._findPluginFor(n).addEventListener(t,n,i,o)}getZone(){return this._zone}_findPluginFor(t){let n=this._eventNameToPlugin.get(t);if(n)return n;if(n=this._plugins.find(o=>o.supports(t)),!n)throw new ne(5101,!1);return this._eventNameToPlugin.set(t,n),n}static \u0275fac=function(n){return new(n||e)(p(md),p(Be))};static \u0275prov=h({token:e,factory:e.\u0275fac})}return e})(),Ym="ng-app-id";function hE(e){for(let r of e)r.remove()}function mE(e,r){let t=r.createElement("style");return t.textContent=e,t}function tN(e,r,t,n){let i=e.head?.querySelectorAll(`style[${Ym}="${r}"],link[${Ym}="${r}"]`);if(i)for(let o of i)o.removeAttribute(Ym),o instanceof HTMLLinkElement?n.set(o.href.slice(o.href.lastIndexOf("/")+1),{usage:0,elements:[o]}):o.textContent&&t.set(o.textContent,{usage:0,elements:[o]})}function Jm(e,r){let t=r.createElement("link");return t.setAttribute("rel","stylesheet"),t.setAttribute("href",e),t}var Qm=(()=>{class e{doc;appId;nonce;inline=new Map;external=new Map;hosts=new Set;constructor(t,n,i,o={}){this.doc=t,this.appId=n,this.nonce=i,tN(t,n,this.inline,this.external),this.hosts.add(t.head)}addStyles(t,n){for(let i of t)this.addUsage(i,this.inline,mE);n?.forEach(i=>this.addUsage(i,this.external,Jm))}removeStyles(t,n){for(let i of t)this.removeUsage(i,this.inline);n?.forEach(i=>this.removeUsage(i,this.external))}addUsage(t,n,i){let o=n.get(t);o?o.usage++:n.set(t,{usage:1,elements:[...this.hosts].map(s=>this.addElement(s,i(t,this.doc)))})}removeUsage(t,n){let i=n.get(t);i&&(i.usage--,i.usage<=0&&(hE(i.elements),n.delete(t)))}ngOnDestroy(){for(let[,{elements:t}]of[...this.inline,...this.external])hE(t);this.hosts.clear()}addHost(t){this.hosts.add(t);for(let[n,{elements:i}]of this.inline)i.push(this.addElement(t,mE(n,this.doc)));for(let[n,{elements:i}]of this.external)i.push(this.addElement(t,Jm(n,this.doc)))}removeHost(t){this.hosts.delete(t)}addElement(t,n){return this.nonce&&n.setAttribute("nonce",this.nonce),t.appendChild(n)}static \u0275fac=function(n){return new(n||e)(p(Ce),p(Om),p(Gu,8),p(ie))};static \u0275prov=h({token:e,factory:e.\u0275fac})}return e})(),Km={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/Math/MathML"},Xm=/%COMP%/g;var yE="%COMP%",rN=`_nghost-${yE}`,nN=`_ngcontent-${yE}`,iN=!0,oN=new R("",{factory:()=>iN});function sN(e){return nN.replace(Xm,e)}function aN(e){return rN.replace(Xm,e)}function vE(e,r){return r.map(t=>t.replace(Xm,e))}var eg=(()=>{class e{eventManager;sharedStylesHost;appId;removeStylesOnCompDestroy;doc;ngZone;nonce;tracingService;rendererByCompId=new Map;defaultRenderer;constructor(t,n,i,o,s,a,c=null,l=null){this.eventManager=t,this.sharedStylesHost=n,this.appId=i,this.removeStylesOnCompDestroy=o,this.doc=s,this.ngZone=a,this.nonce=c,this.tracingService=l,this.defaultRenderer=new xc(t,s,a,this.tracingService)}createRenderer(t,n){if(!t||!n)return this.defaultRenderer;let i=this.getOrCreateRenderer(t,n);return i instanceof hd?i.applyToHost(t):i instanceof Nc&&i.applyStyles(),i}getOrCreateRenderer(t,n){let i=this.rendererByCompId,o=i.get(n.id);if(!o){let s=this.doc,a=this.ngZone,c=this.eventManager,l=this.sharedStylesHost,d=this.removeStylesOnCompDestroy,m=this.tracingService;switch(n.encapsulation){case $u.Emulated:o=new hd(c,l,n,this.appId,d,s,a,m);break;case $u.ShadowDom:return new pd(c,t,n,s,a,this.nonce,m,l);case $u.ExperimentalIsolatedShadowDom:return new pd(c,t,n,s,a,this.nonce,m);default:o=new Nc(c,l,n,d,s,a,m);break}i.set(n.id,o)}return o}ngOnDestroy(){this.rendererByCompId.clear()}componentReplaced(t){this.rendererByCompId.delete(t)}static \u0275fac=function(n){return new(n||e)(p(Zm),p(Qm),p(Om),p(oN),p(Ce),p(Be),p(Gu),p(Hu,8))};static \u0275prov=h({token:e,factory:e.\u0275fac})}return e})(),xc=class{eventManager;doc;ngZone;tracingService;data=Object.create(null);throwOnSyntheticProps=!0;constructor(r,t,n,i){this.eventManager=r,this.doc=t,this.ngZone=n,this.tracingService=i}destroy(){}destroyNode=null;createElement(r,t){return t?this.doc.createElementNS(Km[t]||t,r):this.doc.createElement(r)}createComment(r){return this.doc.createComment(r)}createText(r){return this.doc.createTextNode(r)}appendChild(r,t){(gE(r)?r.content:r).appendChild(t)}insertBefore(r,t,n){r&&(gE(r)?r.content:r).insertBefore(t,n)}removeChild(r,t){t.remove()}selectRootElement(r,t){let n=typeof r=="string"?this.doc.querySelector(r):r;if(!n)throw new ne(-5104,!1);return t||(n.textContent=""),n}parentNode(r){return r.parentNode}nextSibling(r){return r.nextSibling}setAttribute(r,t,n,i){if(i){t=i+":"+t;let o=Km[i];o?r.setAttributeNS(o,t,n):r.setAttribute(t,n)}else r.setAttribute(t,n)}removeAttribute(r,t,n){if(n){let i=Km[n];i?r.removeAttributeNS(i,t):r.removeAttribute(`${n}:${t}`)}else r.removeAttribute(t)}addClass(r,t){r.classList.add(t)}removeClass(r,t){r.classList.remove(t)}setStyle(r,t,n,i){i&(jo.DashCase|jo.Important)?r.style.setProperty(t,n,i&jo.Important?"important":""):r.style[t]=n}removeStyle(r,t,n){n&jo.DashCase?r.style.removeProperty(t):r.style[t]=""}setProperty(r,t,n){r!=null&&(r[t]=n)}setValue(r,t){r.nodeValue=t}listen(r,t,n,i){if(typeof r=="string"&&(r=cn().getGlobalEventTarget(this.doc,r),!r))throw new ne(5102,!1);let o=this.decoratePreventDefault(n);return this.tracingService?.wrapEventListener&&(o=this.tracingService.wrapEventListener(r,t,o)),this.eventManager.addEventListener(r,t,o,i)}decoratePreventDefault(r){return t=>{if(t==="__ngUnwrap__")return r;r(t)===!1&&t.preventDefault()}}};function gE(e){return e.tagName==="TEMPLATE"&&e.content!==void 0}var pd=class extends xc{hostEl;sharedStylesHost;shadowRoot;constructor(r,t,n,i,o,s,a,c){super(r,i,o,a),this.hostEl=t,this.sharedStylesHost=c,this.shadowRoot=t.attachShadow({mode:"open"}),this.sharedStylesHost&&this.sharedStylesHost.addHost(this.shadowRoot);let l=n.styles;l=vE(n.id,l);for(let m of l){let y=document.createElement("style");s&&y.setAttribute("nonce",s),y.textContent=m,this.shadowRoot.appendChild(y)}let d=n.getExternalStyles?.();if(d)for(let m of d){let y=Jm(m,i);s&&y.setAttribute("nonce",s),this.shadowRoot.appendChild(y)}}nodeOrShadowRoot(r){return r===this.hostEl?this.shadowRoot:r}appendChild(r,t){return super.appendChild(this.nodeOrShadowRoot(r),t)}insertBefore(r,t,n){return super.insertBefore(this.nodeOrShadowRoot(r),t,n)}removeChild(r,t){return super.removeChild(null,t)}parentNode(r){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(r)))}destroy(){this.sharedStylesHost&&this.sharedStylesHost.removeHost(this.shadowRoot)}},Nc=class extends xc{sharedStylesHost;removeStylesOnCompDestroy;styles;styleUrls;constructor(r,t,n,i,o,s,a,c){super(r,o,s,a),this.sharedStylesHost=t,this.removeStylesOnCompDestroy=i;let l=n.styles;this.styles=c?vE(c,l):l,this.styleUrls=n.getExternalStyles?.(c)}applyStyles(){this.sharedStylesHost.addStyles(this.styles,this.styleUrls)}destroy(){this.removeStylesOnCompDestroy&&OS.size===0&&this.sharedStylesHost.removeStyles(this.styles,this.styleUrls)}},hd=class extends Nc{contentAttr;hostAttr;constructor(r,t,n,i,o,s,a,c){let l=i+"-"+n.id;super(r,t,n,o,s,a,c,l),this.contentAttr=sN(l),this.hostAttr=aN(l)}applyToHost(r){this.applyStyles(),this.setAttribute(r,this.hostAttr,"")}createElement(r,t){let n=super.createElement(r,t);return super.setAttribute(n,this.contentAttr,""),n}};var gd=class e extends Tc{supportsDOMEvents=!0;static makeCurrent(){Fm(new e)}onAndCancel(r,t,n,i){return r.addEventListener(t,n,i),()=>{r.removeEventListener(t,n,i)}}dispatchEvent(r,t){r.dispatchEvent(t)}remove(r){r.remove()}createElement(r,t){return t=t||this.getDefaultDocument(),t.createElement(r)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(r){return r.nodeType===Node.ELEMENT_NODE}isShadowRoot(r){return r instanceof DocumentFragment}getGlobalEventTarget(r,t){return t==="window"?window:t==="document"?r:t==="body"?r.body:null}getBaseHref(r){let t=lN();return t==null?null:uN(t)}resetBaseElement(){Lc=null}getUserAgent(){return window.navigator.userAgent}getCookie(r){return Rc(document.cookie,r)}},Lc=null;function lN(){return Lc=Lc||document.head.querySelector("base"),Lc?Lc.getAttribute("href"):null}function uN(e){return new URL(e,document.baseURI).pathname}var dN=(()=>{class e{build(){return new XMLHttpRequest}static \u0275fac=function(n){return new(n||e)};static \u0275prov=h({token:e,factory:e.\u0275fac})}return e})(),_E=["alt","control","meta","shift"],fN={"\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"},pN={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey},SE=(()=>{class e extends Ic{constructor(t){super(t)}supports(t){return e.parseEventName(t)!=null}addEventListener(t,n,i,o){let s=e.parseEventName(n),a=e.eventCallback(s.fullKey,i,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>cn().onAndCancel(t,s.domEventName,a,o))}static parseEventName(t){let n=t.toLowerCase().split("."),i=n.shift();if(n.length===0||!(i==="keydown"||i==="keyup"))return null;let o=e._normalizeKey(n.pop()),s="",a=n.indexOf("code");if(a>-1&&(n.splice(a,1),s="code."),_E.forEach(l=>{let d=n.indexOf(l);d>-1&&(n.splice(d,1),s+=l+".")}),s+=o,n.length!=0||o.length===0)return null;let c={};return c.domEventName=i,c.fullKey=s,c}static matchEventFullKeyCode(t,n){let i=fN[t.key]||t.key,o="";return n.indexOf("code.")>-1&&(i=t.code,o="code."),i==null||!i?!1:(i=i.toLowerCase(),i===" "?i="space":i==="."&&(i="dot"),_E.forEach(s=>{if(s!==i){let a=pN[s];a(t)&&(o+=s+".")}}),o+=i,o===n)}static eventCallback(t,n,i){return o=>{e.matchEventFullKeyCode(o,t)&&i.runGuarded(()=>n(o))}}static _normalizeKey(t){return t==="esc"?"escape":t}static \u0275fac=function(n){return new(n||e)(p(Ce))};static \u0275prov=h({token:e,factory:e.\u0275fac})}return e})();function hN(e,r,t){return He(this,null,function*(){let n=u({rootComponent:e},mN(r,t));return VS(n)})}function mN(e,r){return{platformRef:r?.platformRef,appProviders:[...SN,...e?.providers??[]],platformProviders:_N}}function gN(){gd.makeCurrent()}function yN(){return new Ec}function vN(){return gS(document),document}var _N=[{provide:ie,useValue:Wm},{provide:yS,useValue:gN,multi:!0},{provide:Ce,useFactory:vN}];var SN=[{provide:hS,useValue:"root"},{provide:Ec,useFactory:yN},{provide:md,useClass:fd,multi:!0},{provide:md,useClass:SE,multi:!0},eg,Qm,Zm,{provide:MS,useExisting:eg},{provide:Vo,useClass:dN},[]];var Yt=class e{headers;normalizedNames=new Map;lazyInit;lazyUpdate=null;constructor(r){r?typeof r=="string"?this.lazyInit=()=>{this.headers=new Map,r.split(`
2`).forEach(t=>{let n=t.indexOf(":");if(n>0){let i=t.slice(0,n),o=t.slice(n+1).trim();this.addHeaderEntry(i,o)}})}:typeof Headers<"u"&&r instanceof Headers?(this.headers=new Map,r.forEach((t,n)=>{this.addHeaderEntry(n,t)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(r).forEach(([t,n])=>{this.setHeaderEntries(t,n)})}:this.headers=new Map}has(r){return this.init(),this.headers.has(r.toLowerCase())}get(r){this.init();let t=this.headers.get(r.toLowerCase());return t&&t.length>0?t[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(r){return this.init(),this.headers.get(r.toLowerCase())||null}append(r,t){return this.clone({name:r,value:t,op:"a"})}set(r,t){return this.clone({name:r,value:t,op:"s"})}delete(r,t){return this.clone({name:r,value:t,op:"d"})}maybeSetNormalizedName(r,t){this.normalizedNames.has(t)||this.normalizedNames.set(t,r)}init(){this.lazyInit&&(this.lazyInit instanceof e?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(r=>this.applyUpdate(r)),this.lazyUpdate=null))}copyFrom(r){r.init(),Array.from(r.headers.keys()).forEach(t=>{this.headers.set(t,r.headers.get(t)),this.normalizedNames.set(t,r.normalizedNames.get(t))})}clone(r){let t=new e;return t.lazyInit=this.lazyInit&&this.lazyInit instanceof e?this.lazyInit:this,t.lazyUpdate=(this.lazyUpdate||[]).concat([r]),t}applyUpdate(r){let t=r.name.toLowerCase();switch(r.op){case"a":case"s":let n=r.value;if(typeof n=="string"&&(n=[n]),n.length===0)return;this.maybeSetNormalizedName(r.name,t);let i=(r.op==="a"?this.headers.get(t):void 0)||[];i.push(...n),this.headers.set(t,i);break;case"d":let o=r.value;if(!o)this.headers.delete(t),this.normalizedNames.delete(t);else{let s=this.headers.get(t);if(!s)return;s=s.filter(a=>o.indexOf(a)===-1),s.length===0?(this.headers.delete(t),this.normalizedNames.delete(t)):this.headers.set(t,s)}break}}addHeaderEntry(r,t){let n=r.toLowerCase();this.maybeSetNormalizedName(r,n),this.headers.has(n)?this.headers.get(n).push(t):this.headers.set(n,[t])}setHeaderEntries(r,t){let n=(Array.isArray(t)?t:[t]).map(o=>o.toString()),i=r.toLowerCase();this.headers.set(i,n),this.maybeSetNormalizedName(r,i)}forEach(r){this.init(),Array.from(this.normalizedNames.keys()).forEach(t=>r(this.normalizedNames.get(t),this.headers.get(t)))}};var _d=class{map=new Map;set(r,t){return this.map.set(r,t),this}get(r){return this.map.has(r)||this.map.set(r,r.defaultValue()),this.map.get(r)}delete(r){return this.map.delete(r),this}has(r){return this.map.has(r)}keys(){return this.map.keys()}},Sd=class{encodeKey(r){return EE(r)}encodeValue(r){return EE(r)}
vendor: 4,245 bytes, line 2
2decodeKey(r){return decodeURIComponent(r)}decodeValue(r){return decodeURIComponent(r)}};function EN(e,r){let t=new Map;return e.length>0&&e.replace(/^\?/,"").split("&").forEach(i=>{let o=i.indexOf("="),[s,a]=o==-1?[r.decodeKey(i),""]:[r.decodeKey(i.slice(0,o)),r.decodeValue(i.slice(o+1))],c=t.get(s)||[];c.push(a),t.set(s,c)}),t}var bN=/%(\d[a-f0-9])/gi,DN={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function EE(e){return encodeURIComponent(e).replace(bN,(r,t)=>DN[t]??r)}function yd(e){return`${e}`}var kt=class e{map;encoder;updates=null;cloneFrom=null;constructor(r={}){if(this.encoder=r.encoder||new Sd,r.fromString){if(r.fromObject)throw new ne(2805,!1);this.map=EN(r.fromString,this.encoder)}else r.fromObject?(this.map=new Map,Object.keys(r.fromObject).forEach(t=>{let n=r.fromObject[t],i=Array.isArray(n)?n.map(yd):[yd(n)];this.map.set(t,i)})):this.map=null}has(r){return this.init(),this.map.has(r)}get(r){this.init();let t=this.map.get(r);return t?t[0]:null}getAll(r){return this.init(),this.map.get(r)||null}keys(){return this.init(),Array.from(this.map.keys())}append(r,t){return this.clone({param:r,value:t,op:"a"})}appendAll(r){let t=[];return Object.keys(r).forEach(n=>{let i=r[n];Array.isArray(i)?i.forEach(o=>{t.push({param:n,value:o,op:"a"})}):t.push({param:n,value:i,op:"a"})}),this.clone(t)}set(r,t){return this.clone({param:r,value:t,op:"s"})}delete(r,t){return this.clone({param:r,value:t,op:"d"})}toString(){return this.init(),this.keys().map(r=>{let t=this.encoder.encodeKey(r);return this.map.get(r).map(n=>t+"="+this.encoder.encodeValue(n)).join("&")}).filter(r=>r!=="").join("&")}clone(r){let t=new e({encoder:this.encoder});return t.cloneFrom=this.cloneFrom||this,t.updates=(this.updates||[]).concat(r),t}init(){this.map===null&&(this.map=new Map),this.cloneFrom!==null&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(r=>this.map.set(r,this.cloneFrom.map.get(r))),this.updates.forEach(r=>{switch(r.op){case"a":case"s":let t=(r.op==="a"?this.map.get(r.param):void 0)||[];t.push(yd(r.value)),this.map.set(r.param,t);break;case"d":if(r.value!==void 0){let n=this.map.get(r.param)||[],i=n.indexOf(yd(r.value));i!==-1&&n.splice(i,1),n.length>0?this.map.set(r.param,n):this.map.delete(r.param)}else{this.map.delete(r.param);break}}}),this.cloneFrom=this.updates=null)}};function CN(e){switch(e){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function bE(e){return typeof ArrayBuffer<"u"&&e instanceof ArrayBuffer}function DE(e){return typeof Blob<"u"&&e instanceof Blob}function CE(e){return typeof FormData<"u"&&e instanceof FormData}function TN(e){return typeof URLSearchParams<"u"&&e instanceof URLSearchParams}var Fc="Content-Type",Ed="Accept",wE="text/plain",AE="application/json",OE=`${AE}, ${wE}, */*`,js=class e{url;body=null;headers;context;reportProgress=!1;withCredentials=!1;credentials;keepalive=!1;cache;priority;mode;redirect;referrer;integrity;referrerPolicy;responseType="json";method;params;urlWithParams;transferCache;timeout;constructor(r,t,n,i){this.url=t,this.method=r.toUpperCase();let o;if(CN(this.method)||i?(this.body=n!==void 0?n:null,o=i):o=n,o){if(this.reportProgress=!!o.reportProgress,this.withCredentials=!!o.withCredentials,this.keepalive=!!o.keepalive,o.responseType&&(this.responseType=o.responseType),o.headers&&(this.headers=o.headers),o.context&&(this.context=o.context),o.params&&(this.params=o.params),o.priority&&(this.priority=o.priority),o.cache&&(this.cache=o.cache),o.credentials&&(this.credentials=o.credentials),typeof o.timeout=="number"){if(o.timeout<1||!Number.isInteger(o.timeout))throw new ne(2822,"");this.timeout=o.timeout}o.mode&&(this.mode=o.mode),o.redirect&&(this.redirect=o.redirect),o.integrity&&(this.integrity=o.integrity),o.referrer!==void 0&&(this.referrer=o.referrer),o.referrerPolicy&&(this.referrerPolicy=o.referrerPolicy),this.transferCache=o.transferCache}if(this.headers??=new Yt,this.context??=new _d,!this.params)this.params=new kt,this.urlWithParams=t;else{let s=this.params.toString();if(s.length===0)this.urlWithParams=t;else{let a=t.indexOf("?"),c=a===-1?"?":a<t.length-1?"&":"";this.urlWithParams=t+c+s}}}serializeBody(){return this.body===null?null:typeof this.body=="str
2ing"||bE(this.body)||DE(this.body)||CE(this.body)||TN(this.body)?this.body:this.body instanceof kt?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||CE(this.body)?null:DE(this.body)?this.body.type||null:bE(this.body)?null:typeof this.body=="string"?wE:this.body instanceof kt?"application/x-www-form-urlencoded;charset=UTF-8":typeof this.body=="object"||typeof this.body=="number"||typeof this.body=="boolean"?AE:null}clone(r={}){let t=r.method||this.method,n=r.url||this.url,i=r.responseType||this.responseType,o=r.keepalive??this.keepalive,s=r.priority||this.priority,a=r.cache||this.cache,c=r.mode||this.mode,l=r.redirect||this.redirect,d=r.credentials||this.credentials,m=r.referrer??this.referrer,y=r.integrity||this.integrity,S=r.referrerPolicy||this.referrerPolicy,N=r.transferCache??this.transferCache,T=r.timeout??this.timeout,v=r.body!==void 0?r.body:this.body,b=r.withCredentials??this.withCredentials,D=r.reportProgress??this.reportProgress,M=r.headers||this.headers,O=r.params||this.params,F=r.context??this.context;return r.setHeaders!==void 0&&(M=Object.keys(r.setHeaders).reduce((B,J)=>B.set(J,r.setHeaders[J]),M)),r.setParams&&(O=Object.keys(r.setParams).reduce((B,J)=>B.set(J,r.setParams[J]),O)),new e(t,n,v,{params:O,headers:M,context:F,reportProgress:D,responseType:i,withCredentials:b,transferCache:N,keepalive:o,cache:a,priority:s,timeout:T,mode:c,redirect:l,credentials:d,referrer:m,integrity:y,referrerPolicy:S})}},Di=(function(e){return e[e.Sent=0]="Sent",e[e.UploadProgress=1]="UploadProgress",e[e.ResponseHeader=2]="ResponseHeader",e[e.DownloadProgress=3]="DownloadProgress",e[e.Response=4]="Response",e[e.User=5]="User",e})(Di||{}),Us=class{headers;status;statusText;url;ok;type;redirected;responseType;constructor(r,t=200,n="OK"){this.headers=r.headers||new Yt,this.status=r.status!==void 0?r.status:t,this.statusText=r.statusText||n,this.url=r.url||null,this.redirected=r.redirected,this.responseType=r.responseType,this.ok=this.status>=200&&this.status<300}},Pc=class e extends Us{constructor(r={}){super(r)}type=Di.ResponseHeader;clone(r={}){return new e({headers:r.headers||this.headers,status:r.status!==void 0?r.status:this.status,statusText:r.statusText||this.statusText,url:r.url||this.url||void 0})}},Go=class e extends Us{body;constructor(r={}){super(r),this.body=r.body!==void 0?r.body:null}type=Di.Response;clone(r={}){return new e({body:r.body!==void 0?r.body:this.body,headers:r.headers||this.headers,status:r.status!==void 0?r.status:this.status,statusText:r.statusText||this.statusText,url:r.url||this.url||void 0,redirected:r.redirected??this.redirected,responseType:r.responseType??this.responseType})}},oi=class extends Us{name="HttpErrorResponse";message;error;ok=!1;constructor(r){super(r,0,"Unknown Error"),this.status>=200&&this.status<300?this.message=`Http failure during parsing for ${r.url||"(unknown url)"}`:this.message=`Http failure response for ${r.url||"(unknown url)"}: ${r.status} ${r.statusText}`,this.error=r.error||null}},ME=200,wN=204;var AN=/^\)\]\}',?\n/,RE=new R(""),vd=(()=>{class e{fetchImpl=f(rg,{optional:!0})?.fetch??((...t)=>globalThis.fetch(...t));ngZone=f(Be);destroyRef=f(_t);handle(t){return new Ht(n=>{let i=new AbortController;this.doRequest(t,i.signal,n).then(ng,s=>n.error(new oi({error:s})));let o;return t.timeout&&(o=this.ngZone.runOutsideAngular(()=>setTimeout(()=>{i.signal.aborted||i.abort(new DOMException("signal timed out","TimeoutError"))},t.timeout))),()=>{o!==void 0&&clearTimeout(o),i.abort()}})}
vendor: 5,623 bytes, line 2
2doRequest(t,n,i){return He(this,null,function*(){let o=this.createRequestInit(t),s;try{let T=this.ngZone.runOutsideAngular(()=>this.fetchImpl(t.urlWithParams,u({signal:n},o)));ON(T),i.next({type:Di.Sent}),s=yield T}catch(T){i.error(new oi({error:T,status:T.status??0,statusText:T.statusText,url:t.urlWithParams,headers:T.headers}));return}let a=new Yt(s.headers),c=s.statusText,l=s.url||t.urlWithParams,d=s.status,m=null;if(t.reportProgress&&i.next(new Pc({headers:a,status:d,statusText:c,url:l})),s.body){let T=s.headers.get("content-length"),v=[],b=s.body.getReader(),D=0,M,O,F=typeof Zone<"u"&&Zone.current,B=!1;if(yield this.ngZone.runOutsideAngular(()=>He(this,null,function*(){for(;;){if(this.destroyRef.destroyed){yield b.cancel(),B=!0;break}let{done:oe,value:De}=yield b.read();if(oe)break;if(v.push(De),D+=De.length,t.reportProgress){O=t.responseType==="text"?(O??"")+(M??=new TextDecoder).decode(De,{stream:!0}):void 0;let ue=()=>i.next({type:Di.DownloadProgress,total:T?+T:void 0,loaded:D,partialText:O});F?F.run(ue):ue()}}})),B){i.complete();return}let J=this.concatChunks(v,D);try{let oe=s.headers.get(Fc)??"";m=this.parseBody(t,J,oe,d)}catch(oe){i.error(new oi({error:oe,headers:new Yt(s.headers),status:s.status,statusText:s.statusText,url:s.url||t.urlWithParams}));return}}d===0&&(d=m?ME:0);let y=d>=200&&d<300,S=s.redirected,N=s.type;y?(i.next(new Go({body:m,headers:a,status:d,statusText:c,url:l,redirected:S,responseType:N})),i.complete()):i.error(new oi({error:m,headers:a,status:d,statusText:c,url:l,redirected:S,responseType:N}))})}parseBody(t,n,i,o){switch(t.responseType){case"json":let s=new TextDecoder().decode(n).replace(AN,"");if(s==="")return null;try{return JSON.parse(s)}catch(a){if(o<200||o>=300)return s;throw a}case"text":return new TextDecoder().decode(n);case"blob":return new Blob([n],{type:i});case"arraybuffer":return n.buffer}}createRequestInit(t){let n={},i;if(i=t.credentials,t.withCredentials&&(i="include"),t.headers.forEach((o,s)=>n[o]=s.join(",")),t.headers.has(Ed)||(n[Ed]=OE),!t.headers.has(Fc)){let o=t.detectContentTypeHeader();o!==null&&(n[Fc]=o)}return{body:t.serializeBody(),method:t.method,headers:n,credentials:i,keepalive:t.keepalive,cache:t.cache,priority:t.priority,mode:t.mode,redirect:t.redirect,referrer:t.referrer,integrity:t.integrity,referrerPolicy:t.referrerPolicy}}concatChunks(t,n){let i=new Uint8Array(n),o=0;for(let s of t)i.set(s,o),o+=s.length;return i}static \u0275fac=function(n){return new(n||e)};static \u0275prov=h({token:e,factory:e.\u0275fac})}return e})(),rg=class{};function ng(){}function ON(e){e.then(ng,ng)}var MN=/^\)\]\}',?\n/;var ig=(()=>{class e{xhrFactory;tracingService=f(Hu,{optional:!0});constructor(t){this.xhrFactory=t}maybePropagateTrace(t){return this.tracingService?.propagate?this.tracingService.propagate(t):t}handle(t){if(t.method==="JSONP")throw new ne(-2800,!1);let n=this.xhrFactory;return _(null).pipe(P(()=>new Ht(o=>{let s=n.build();if(s.open(t.method,t.urlWithParams),t.withCredentials&&(s.withCredentials=!0),t.headers.forEach((v,b)=>s.setRequestHeader(v,b.join(","))),t.headers.has(Ed)||s.setRequestHeader(Ed,OE),!t.headers.has(Fc)){let v=t.detectContentTypeHeader();v!==null&&s.setRequestHeader(Fc,v)}if(t.timeout&&(s.timeout=t.timeout),t.responseType){let v=t.responseType.toLowerCase();s.responseType=v!=="json"?v:"text"}let a=t.serializeBody(),c=null,l=()=>{if(c!==null)return c;let v=s.statusText||"OK",b=new Yt(s.getAllResponseHeaders()),D=s.responseURL||t.url;return c=new Pc({headers:b,status:s.status,statusText:v,url:D}),c},d=this.maybePropagateTrace(()=>{let{headers:v,status:b,statusText:D,url:M}=l(),O=null;b!==wN&&(O=typeof s.response>"u"?s.responseText:s.response),b===0&&(b=O?ME:0);let F=b>=200&&b<300;if(t.responseType==="json"&&typeof O=="string"){let B=O;O=O.replace(MN,"");try{O=O!==""?JSON.parse(O):null}catch(J){O=B,F&&(F=!1,O={error:J,text:O})}}F?(o.next(new Go({body:O,headers:v,status:b,statusText:D,url:M||void 0})),o.complete()):o.error(new oi({error:O,headers:v,status:b,statusText:D,url:M||void 0}))}),m=this.maybePropagateTrace(v=>{let{url:b}=l(),D=new oi({error:v,status:s.status||0,statusText:s.statusText||"Unknown Error",url:b||void 0});o.error(D)}),y=m;t.timeout&&(y=this.maybePropagateTrace(v=>{let{url:b}=l(),D=new oi({error:new DOMException("Request timed out","TimeoutError"),status:s.status||0,statusText:s.statusText||"Request timeout",url:b||void 0});o.error(D)}));let S=!1,N=this.maybePropagateTrace(v=>{S||(o.next(l()),S=!0);let b={type:Di.DownloadProgress,loaded:v.loaded};v.lengthComputable&&(b.total=v.total),t.responseType==="text"&&s.responseText&&(b.partialText=s.responseText),o.next(b)}),T=this.maybePropagateTrace(v=>{let b={type:Di.UploadProgress,loaded:v.loaded};v.lengthComputable&&(b.total=v.total),o.next(b)});return s.addEventListener("load",d),s.addEventListener("error",m),s.addEventListener("timeout",y),s.addEventListener("abort",m),t.reportProgress&&(s.addEventListener("progress",N),a!==null&&s.upload&&s.upload.addEventListener("progress",T)),s.send(a),o.next({type:Di.Sent}),()=>{s.removeEventListener("error",m),s.removeEventListener("abort",m),s.removeEventListener("load",d),s.removeEventListener("timeout",y),t.reportProgress&&(s.removeEventListener("progress",N),a!==null&&s.upload&&s.upload.removeEventListener("progress",T)),s.readyState!==s.DONE&&s.abort()}})))}static \u0275fac=function(n){return new(n||e)(p(Vo))};static \u0275prov=h({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function IE(e,r){return r(e)}function RN(e,r){return(t,n)=>r.intercept(t,{handle:i=>e(i,n)})}function IN(e,r,t){return(n,i)=>Rr(t,()=>r(n,o=>
2e(o,i)))}var Dd=new R(""),og=new R("",{factory:()=>[]}),sg=new R(""),ag=new R("",{factory:()=>!0});function xN(){let e=null;return(r,t)=>{e===null&&(e=(f(Dd,{optional:!0})??[]).reduceRight(RN,IE));let n=f(Vu);if(f(ag)){let o=n.add();return e(r,t).pipe(Fo(o))}else return e(r,t)}}var Cd=(()=>{class e{static \u0275fac=function(n){return new(n||e)};static \u0275prov=h({token:e,factory:function(n){let i=null;return n?i=new(n||e):i=p(ig),i},providedIn:"root"})}return e})();var bd=(()=>{class e{backend;injector;chain=null;pendingTasks=f(Vu);contributeToStability=f(ag);constructor(t,n){this.backend=t,this.injector=n}handle(t){if(this.chain===null){let n=Array.from(new Set([...this.injector.get(og),...this.injector.get(sg,[])]));this.chain=n.reduceRight((i,o)=>IN(i,o,this.injector),IE)}if(this.contributeToStability){let n=this.pendingTasks.add();return this.chain(t,i=>this.backend.handle(i)).pipe(Fo(n))}else return this.chain(t,n=>this.backend.handle(n))}static \u0275fac=function(n){return new(n||e)(p(Cd),p(Mr))};static \u0275prov=h({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),cg=(()=>{class e{static \u0275fac=function(n){return new(n||e)};static \u0275prov=h({token:e,factory:function(n){let i=null;return n?i=new(n||e):i=p(bd),i},providedIn:"root"})}return e})();function tg(e,r){return{body:r,headers:e.headers,context:e.context,observe:e.observe,params:e.params,reportProgress:e.reportProgress,responseType:e.responseType,withCredentials:e.withCredentials,credentials:e.credentials,transferCache:e.transferCache,timeout:e.timeout,keepalive:e.keepalive,priority:e.priority,cache:e.cache,mode:e.mode,redirect:e.redirect,integrity:e.integrity,referrer:e.referrer,referrerPolicy:e.referrerPolicy}}var At=(()=>{class e{handler;constructor(t){this.handler=t}request(t,n,i={}){let o;if(t instanceof js)o=t;else{let c;i.headers instanceof Yt?c=i.headers:c=new Yt(i.headers);let l;i.params&&(i.params instanceof kt?l=i.params:l=new kt({fromObject:i.params})),o=new js(t,n,i.body!==void 0?i.body:null,{headers:c,context:i.context,params:l,reportProgress:i.reportProgress,responseType:i.responseType||"json",withCredentials:i.withCredentials,transferCache:i.transferCache,keepalive:i.keepalive,priority:i.priority,cache:i.cache,mode:i.mode,redirect:i.redirect,credentials:i.credentials,referrer:i.referrer,referrerPolicy:i.referrerPolicy,integrity:i.integrity,timeout:i.timeout})}let s=_(o).pipe(rn(c=>this.handler.handle(c)));if(t instanceof js||i.observe==="events")return s;let a=s.pipe(q(c=>c instanceof Go));switch(i.observe||"body"){case"body":switch(o.responseType){case"arraybuffer":return a.pipe(E(c=>{if(c.body!==null&&!(c.body instanceof ArrayBuffer))throw new ne(2806,!1);return c.body}));case"blob":return a.pipe(E(c=>{if(c.body!==null&&!(c.body instanceof Blob))throw new ne(2807,!1);return c.body}));case"text":return a.pipe(E(c=>{if(c.body!==null&&typeof c.body!="string")throw new ne(2808,!1);return c.body}));default:return a.pipe(E(c=>c.body))}case"response":return a;default:throw new ne(2809,!1)}}delete(t,n={}){return this.request("DELETE",t,n)}get(t,n={}){return this.request("GET",t,n)}head(t,n={}){return this.request("HEAD",t,n)}jsonp(t,n){return this.request("JSONP",t,{params:new kt().append(n,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(t,n={}){return this.request("OPTIONS",t,n)}patch(t,n,i={}){return this.request("PATCH",t,tg(i,n))}post(t,n,i={}){return this.request("POST",t,tg(i,n))}put(t,n,i={}){return this.request("PUT",t,tg(i,n))}static \u0275fac=function(n){return new(n||e)(p(cg))};static \u0275prov=h({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var NN=new R("",{factory:()=>!0}),LN="XSRF-TOKEN",FN=new R("",{factory:()=>LN}),PN="X-XSRF-TOKEN",kN=new R("",{factory:()=>PN}),jN=(()=>{class e{cookieName=f(FN);doc=f(Ce);lastCookieString="";lastToken=null;parseCount=0;getToken(){let t=this.doc.cookie||"";return t!==this.lastCookieString&&(this.parseCount++,this.lastToken=Rc(t,this.cookieName),this.lastCookieString=t),this.lastToken}static \u0275fac=function(n){return new(n||e)};static \u0275prov=h({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),xE=(()=>{class e{static \u0275fac=function(n){return new(n||e)};static \u0275prov=h({token:e,factory:function(n){let i=null;return n?i=new(n||e):i=p(jN),i},providedIn:"root"})}return e})();function UN(e,r){if(!f(NN)||e.method==="GET"||e.method==="HEAD")return r(e);try{let i=f(Si).href,{origin:o}=new URL(i),{origin:s}=new URL(e.url,o);if(o!==s)return r(e)}catch(i){return r(e)}let t=f(xE).getToken(),n=f(kN);return t!=null&&!e.headers.has(n)&&(e=e.clone({headers:e.headers.set(n,t)})),r(e)}var Td=(function(e){return e[e.Interceptors=0]="Interceptors",e[e.LegacyInterceptors=1]="LegacyInterceptors",e[e.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",e[e.NoXsrfProtection=3]="NoXsrfProtection",e[e.JsonpSupport=4]="JsonpSupport",e[e.RequestsMadeViaParent=5]="RequestsMadeViaParent",e[e.Fetch=6]="Fetch",e})(Td||{});function NE(e,r){return{\u0275kind:e,\u0275providers:r}}function BN(...e){let r=[At,bd,{provide:cg,useExisting:bd},{provide:Cd,useFactory:()=>f(RE,{optional:!0})??f(ig)},{provide:og,useValue:UN,multi:!0}];for(let t of e)r.push(...t.\u0275providers);return yi(r)}var TE=new R("");function VN(){return NE(Td.LegacyInterceptors,[{provide:TE,useFactory:xN},{provide:og,useExisting:TE,multi:!0}])}function GN(){return NE(Td.Fetch,[vd,{provide:RE,useExisting:vd},{provide:Cd,useExisting:vd}])}var zN=new R(""),WN="b",qN="h",YN="s",KN="st",JN="u",ZN="rt",lg=new R(""),QN=["GET","HEAD"];function kE(e,r){let s=r,{isCacheActive:t}=s,n=Or(s,["isCacheActive"]),{transferCache:i,method:o}=e;return!(!t||i===!1||rL(e)||o==="POST"&&!n.includePostRequests&&!i||o!=="POST"&&!QN.includes(o)||!n.includeRequestsWithAuthHeaders&&tL(e)||iL(e.headers)||oL(e.cache)||n.filter?.(e)===!1)}function XN(e,r,t,n,i,o=!1){if(!o&&!kE(e,r))return null;if(n)throw new ne(2803,!1);if(!i){let T=e.url;i=jE(e,T)}let s=t.get(i,null);if(!s)return null;
2let{[WN]:a,[ZN]:c,[qN]:l,[YN]:d,[KN]:m,[JN]:y}=s,S=a;switch(c){case"arraybuffer":S=FE(a);break;case"blob":S=new Blob([FE(a)]);break}let N=new Yt(l);return new Go({body:S,headers:N,status:d,statusText:m,url:y})}function eL(e,r){let t=f(lg);if(!kE(e,t))return r(e);let n=f(Ft),i=f(zN,{optional:!0}),o=e.url,s=jE(e,o),a=XN(e,t,n,null,s,!0);return a?_(a):r(e)}function tL(e){let r=e.headers;return r.has("authorization")||r.has("proxy-authorization")||r.has("cookie")}function rL(e){let{withCredentials:r,credentials:t}=e;return r||t==="include"||t==="same-origin"}var nL=new Set(["no-store","private","no-cache"]);function iL(e){let r=e.get("cache-control");return r?r.split(",").some(t=>{let n=t.split("=",1)[0].trim().toLowerCase();return nL.has(n)}):!1}function oL(e){return e==="no-cache"||e==="no-store"}function LE(e){return[...e.keys()].sort().map(r=>`${r}=${e.getAll(r)}`).join("&")}function jE(e,r){let{params:t,method:n,responseType:i}=e,o=LE(t),s=e.serializeBody();s instanceof URLSearchParams?s=LE(s):typeof s!="string"&&(s="");let a=[n,i,r,s,o].join("|"),c=aL(a);return c}function FE(e){let r=atob(e);return Uint8Array.from(r,n=>n.charCodeAt(0)).buffer}function ug(e){return[{provide:lg,useFactory:()=>(xs("NgHttpTransferCache"),u({isCacheActive:!0},e))},{provide:sg,useValue:eL,multi:!0},{provide:bc,multi:!0,useFactory:()=>{let r=f(_n),t=f(lg);return()=>{r.whenStable().then(()=>{t.isCacheActive=!1})}}}]}var sL=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),PE;function aL(e){PE??=new TextEncoder;let r=PE.encode(e),t=1779033703,n=3144134277,i=1013904242,o=2773480762,s=1359893119,a=2600822924,c=528734635,l=1541459225,d=r.length*8,m=(r.length+8>>6)+1<<6,y=new Uint8Array(m);y.set(r),y[r.length]=128;let S=new DataView(y.buffer),N=d>>>0,T=d/4294967296>>>0;S.setUint32(m-8,T,!1),S.setUint32(m-4,N,!1);let v=new Uint32Array(64);for(let b=0;b<m;b+=64){for(let ue=0;ue<16;ue++)v[ue]=S.getUint32(b+ue*4,!1);for(let ue=16;ue<64;ue++){let rt=v[ue-15],wr=((rt>>>7|rt<<25)^(rt>>>18|rt<<14)^rt>>>3)>>>0,mt=v[ue-2],Pn=((mt>>>17|mt<<15)^(mt>>>19|mt<<13)^mt>>>10)>>>0;v[ue]=v[ue-16]+wr+v[ue-7]+Pn>>>0}let D=t,M=n,O=i,F=o,B=s,J=a,oe=c,De=l;for(let ue=0;ue<64;ue++){let rt=((B>>>6|B<<26)^(B>>>11|B<<21)^(B>>>25|B<<7))>>>0,wr=(B&J^~B&oe)>>>0,mt=De+rt+wr+sL[ue]+v[ue]>>>0,Pn=((D>>>2|D<<30)^(D>>>13|D<<19)^(D>>>22|D<<10))>>>0,gi=(D&M^D&O^M&O)>>>0,Ar=Pn+gi>>>0;De=oe,oe=J,J=B,B=F+mt>>>0,F=O,O=M,M=D,D=mt+Ar>>>0}t=t+D>>>0,n=n+M>>>0,i=i+O>>>0,o=o+F>>>0,s=s+B>>>0,a=a+J>>>0,c=c+oe>>>0,l=l+De>>>0}return[t,n,i,o,s,a,c,l].map(b=>b.toString(16).padStart(8,"0")).join("")}var TK=(()=>{class e{_doc;_dom;constructor(t){this._doc=t,this._dom=cn()}addTag(t,n=!1){return t?this._getOrCreateElement(t,n):null}addTags(t,n=!1){return t?t.reduce((i,o)=>(o&&i.push(this._getOrCreateElement(o,n)),i),[]):[]}getTag(t){if(!t)return null;let n=this._doc.querySelector(`meta[${t}]`);return n?.nodeName.toLowerCase()==="meta"?n:null}getTags(t){if(!t)return[];let n=this._doc.querySelectorAll(`meta[${t}]`);return n?[].slice.call(n).filter(i=>i.nodeName.toLowerCase()==="meta"):[]}updateTag(t,n){if(!t)return null;n=n||this._parseSelector(t);let i=this.getTag(n);return i?this._setMetaElementAttributes(t,i):this._getOrCreateElement(t,!0)}removeTag(t){this.removeTagElement(this.getTag(t))}removeTagElement(t){t&&this._dom.remove(t)}_getOrCreateElement(t,n=!1){if(!n){let s=this._parseSelector(t),a=this.getTags(s).filter(c=>this._containsAttributes(t,c))[0];if(a!==void 0)return a}let i=this._dom.createElement("meta");return this._setMetaElementAttributes(t,i),this._doc.getElementsByTagName("head")[0].appendChild(i),i}_setMetaElementAttributes(t,n){return Object.keys(t).forEach(i=>
2n.setAttribute(this._getMetaKeyMap(i),t[i])),n}_parseSelector(t){let n=t.name?"name":"property";return`${n}=${this._escapeSelectorValue(String(t[n]))}`}_escapeSelectorValue(t){return`"${t.replace(/\\/g,"\\\\").replace(/"/g,'\\"')}"`}_containsAttributes(t,n){return Object.keys(t).every(i=>n.getAttribute(this._getMetaKeyMap(i))===t[i])}_getMetaKeyMap(t){return lL[t]||t}static \u0275fac=function(n){return new(n||e)(p(Ce))};static \u0275prov=h({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),lL={httpEquiv:"http-equiv"},UE=(()=>{class e{_doc;constructor(t){this._doc=t}getTitle(){return this._doc.title}setTitle(t){this._doc.title=t||""}static \u0275fac=function(n){return new(n||e)(p(Ce))};static \u0275prov=h({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var uL=(()=>{class e{static \u0275fac=function(n){return new(n||e)};static \u0275prov=h({token:e,factory:function(n){let i=null;return n?i=new(n||e):i=p(dL),i},providedIn:"root"})}return e})(),dL=(()=>{class e extends uL{_doc;constructor(t){super(),this._doc=t}sanitize(t,n){if(n==null)return null;switch(t){case ko.NONE:return n;case ko.HTML:return Is(n,"HTML")?Wi(n):wS(this._doc,String(n)).toString();case ko.STYLE:return Is(n,"Style")?Wi(n):n;case ko.SCRIPT:if(Is(n,"Script"))return Wi(n);throw new ne(5200,!1);case ko.URL:return Is(n,"URL")?Wi(n):TS(String(n));case ko.RESOURCE_URL:if(Is(n,"ResourceURL"))return Wi(n);throw new ne(5201,!1);default:throw new ne(5202,!1)}}bypassSecurityTrustHtml(t){return SS(t)}bypassSecurityTrustStyle(t){return ES(t)}bypassSecurityTrustScript(t){return bS(t)}bypassSecurityTrustUrl(t){return DS(t)}bypassSecurityTrustResourceUrl(t){return CS(t)}static \u0275fac=function(n){return new(n||e)(p(Ce))};static \u0275prov=h({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),kc=(function(e){return e[e.NoHttpTransferCache=0]="NoHttpTransferCache",e[e.HttpTransferCacheOptions=1]="HttpTransferCacheOptions",e[e.I18nSupport=2]="I18nSupport",e[e.EventReplay=3]="EventReplay",e[e.IncrementalHydration=4]="IncrementalHydration",e})(kc||{});function BE(e,r=[],t={}){return{\u0275kind:e,\u0275providers:r}}function wK(e){return BE(kc.HttpTransferCacheOptions,ug(e))}function AK(){return BE(kc.EventReplay,kS())}function OK(...e){let r=[],t=new Set;for(let{\u0275providers:i,\u0275kind:o}of e)t.add(o),i.length&&r.push(i);let n=t.has(kc.HttpTransferCacheOptions);return yi([[],[],jS(),t.has(kc.NoHttpTransferCache)||n?[]:ug({}),r])}function pL(e){return e==null}var Ze=pL;var hL=typeof global=="object"&&global&&global.Object===Object&&global,wd=hL;var mL=typeof self=="object"&&self&&self.Object===Object&&self,gL=wd||mL||Function("return this")(),jt=gL;var yL=jt.Symbol,rr=yL;var VE=Object.prototype,vL=VE.hasOwnProperty,_L=VE.toString,jc=rr?rr.toStringTag:void 0;function SL(e){var r=vL.call(e,jc),t=e[jc];try{e[jc]=void 0;var n=!0}catch(o){}var i=_L.call(e);return n&&(r?e[jc]=t:delete e[jc]),i}var GE=SL;var EL=Object.prototype,bL=EL.toString;function DL(e){return bL.call(e)}var $E=DL;var CL="[object Null]",TL="[object Undefined]",HE=rr?rr.toStringTag:void 0;function wL(e){return e==null?e===void 0?TL:CL:HE&&HE in Object(e)?GE(e):$E(e)}var $n=wL;function AL(e){return e!=null&&typeof e=="object"}var Pr=AL;var OL="[object Symbol]";function ML(e){return typeof e=="symbol"||Pr(e)&&$n(e)==OL}var Ci=ML;function RL(e,r){for(var t=-1,n=e==null?0:e.length,i=Array(n);++t<n;)i[t]=r(e[t],t,e);return i}var Bs=RL;var IL=Array.isArray,qe=IL;var xL=1/0,zE=rr?rr.prototype:void 0,WE=zE?zE.toString:void 0;function qE(e){if(typeof e=="string")return e;if(qe(e))return Bs(e,qE)+"";if(Ci(e))return WE?WE.call(e):"";var r=e+"";return r=="0"&&1/e==-xL?"-0":r}var YE=qE;function NL(e){var r=typeof e;return e!=null&&(r=="object"||r=="function")}var Gr=NL;function LL(e){return e}var Ki=LL;var FL="[object AsyncFunction]",PL="[object Function]",kL="[object GeneratorFunction]",jL="[object Proxy]";function UL(e){if(!Gr(e))return!1;var r=$n(e);return r==PL||r==kL||r==FL||r==jL}var Ad=UL;var BL=jt["__core-js_shared__"],Od=BL;var KE=(function(){var e=/[^.]+$/.exec(Od&&Od.keys&&Od.keys.IE_PROTO||"");
2return e?"Symbol(src)_1."+e:""})();function VL(e){return!!KE&&KE in e}var JE=VL;var GL=Function.prototype,$L=GL.toString;function HL(e){if(e!=null){try{return $L.call(e)}catch(r){}try{return e+""}catch(r){}}return""}var Ti=HL;var zL=/[\\^$.*+?()[\]{}|]/g,WL=/^\[object .+?Constructor\]$/,qL=Function.prototype,YL=Object.prototype,KL=qL.toString,JL=YL.hasOwnProperty,ZL=RegExp("^"+KL.call(JL).replace(zL,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function QL(e){if(!Gr(e)||JE(e))return!1;var r=Ad(e)?ZL:WL;return r.test(Ti(e))}var ZE=QL;function XL(e,r){return e?.[r]}var QE=XL;function eF(e,r){var t=QE(e,r);return ZE(t)?t:void 0}var $r=eF;var tF=$r(jt,"WeakMap"),Md=tF;var XE=Object.create,rF=(function(){function e(){}return function(r){if(!Gr(r))return{};if(XE)return XE(r);e.prototype=r;var t=new e;return e.prototype=void 0,t}})(),eb=rF;function nF(e,r,t){switch(t.length){case 0:return e.call(r);case 1:return e.call(r,t[0]);case 2:return e.call(r,t[0],t[1]);case 3:return e.call(r,t[0],t[1],t[2])}return e.apply(r,t)}var tb=nF;function iF(e,r){var t=-1,n=e.length;for(r||(r=Array(n));++t<n;)r[t]=e[t];return r}var rb=iF;var oF=800,sF=16,aF=Date.now;function cF(e){var r=0,t=0;return function(){var n=aF(),i=sF-(n-t);if(t=n,i>0){if(++r>=oF)return arguments[0]}else r=0;return e.apply(void 0,arguments)}}var nb=cF;function lF(e){return function(){return e}}var ib=lF;var uF=(function(){try{var e=$r(Object,"defineProperty");return e({},"",{}),e}catch(r){}})(),Vs=uF;var dF=Vs?function(e,r){return Vs(e,"toString",{configurable:!0,enumerable:!1,value:ib(r),writable:!0})}:Ki,ob=dF;var fF=nb(ob),sb=fF;function pF(e,r){for(var t=-1,n=e==null?0:e.length;++t<n&&r(e[t],t,e)!==!1;);return e}var ab=pF;var hF=9007199254740991,mF=/^(?:0|[1-9]\d*)$/;function gF(e,r){var t=typeof e;return r=r??hF,!!r&&(t=="number"||t!="symbol"&&mF.test(e))&&e>-1&&e%1==0&&e<r}var Gs=gF;function yF(e,r,t){r=="__proto__"&&Vs?Vs(e,r,{configurable:!0,enumerable:!0,value:t,writable:!0}):e[r]=t}var Rd=yF;function vF(e,r){return e===r||e!==e&&r!==r}var Ji=vF;var _F=Object.prototype,SF=_F.hasOwnProperty;function EF(e,r,t){var n=e[r];(!(SF.call(e,r)&&Ji(n,t))||t===void 0&&!(r in e))&&Rd(e,r,t)}var Id=EF;function bF(e,r,t,n){var i=!t;t||(t={});for(var o=-1,s=r.length;++o<s;){var a=r[o],c=n?n(t[a],e[a],a,t,e):void 0;c===void 0&&(c=e[a]),i?Rd(t,a,c):Id(t,a,c)}return t}var Zi=bF;var cb=Math.max;function DF(e,r,t){return r=cb(r===void 0?e.length-1:r,0),function(){for(var n=arguments,i=-1,o=cb(n.length-r,0),s=Array(o);++i<o;)s[i]=n[r+i];i=-1;for(var a=Array(r+1);++i<r;)a[i]=n[i];return a[r]=t(s),tb(e,this,a)}}var lb=DF;function CF(e,r){return sb(lb(e,r,Ki),e+"")}var ub=CF;var TF=9007199254740991;function wF(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=TF}var $s=wF;function AF(e){return e!=null&&$s(e.length)&&!Ad(e)}var si=AF;function OF(e,r,t){if(!Gr(t))return!1;var n=typeof r;return(n=="number"?si(t)&&Gs(r,t.length):n=="string"&&r in t)?Ji(t[r],e):!1}var dg=OF;var MF=Object.prototype;function RF(e){var r=e&&e.constructor,t=typeof r=="function"&&r.prototype||MF;return e===t}var Hs=RF;function IF(e,r){for(var t=-1,n=Array(e);++t<e;)n[t]=r(t);return n}var db=IF;var xF="[object Arguments]";function NF(e){return Pr(e)&&$n(e)==xF}var fg=NF;var fb=Object.prototype,LF=fb.hasOwnProperty,FF=fb.propertyIsEnumerable,PF=fg((function(){return arguments})())?fg:function(e){return Pr(e)&&LF.call(e,"callee")&&!FF.call(e,"callee")},zs=PF;function kF(){return!1}var pb=kF;var gb=typeof exports=="object"&&exports&&!exports.nodeType&&exports,hb=gb&&typeof module=="object"&&module&&!module.nodeType&&module,jF=hb&&hb.exports===gb,mb=jF?jt.Buffer:void 0,UF=mb?mb.isBuffer:void 0,BF=UF||pb,$o=BF;var VF="[object Arguments]",GF="[object Array]",$F="[object Boolean]",HF="[object Date]",zF="[object Error]",WF="[object Function]",qF="[object Map]",YF="[object Number]",KF="[object Object]",JF="[object RegExp]",ZF="[object Set]",QF="[object String]",XF="[object WeakMap]",eP="[object ArrayBuffer]",tP="[object DataView]",rP="[object Float32Array]",nP="[object Float64Array]",iP="[object Int8Array]",oP="[object Int16Array]",sP="[object Int32Array]",aP="[object Uint8Array]",cP="[object Uint8ClampedArray]",lP="[object Uint16Array]",uP="[object Uint32Array]",dt={};dt[rP]=dt[nP]=dt[iP]=dt[oP]=dt[sP]=dt[aP]=dt[cP]=dt[lP]=dt[uP]=!0;dt[VF]=dt[GF]=dt[eP]=dt[$F]=dt[tP]=dt[HF]=dt[zF]=dt[WF]=dt[qF]=dt[YF]=dt[KF]=dt[JF]=dt[ZF]=dt[QF]=dt[XF]=!1;function dP(e){return Pr(e)&&$s(e.length)&&!!dt[$n(e)]}var yb=dP;function fP(e){return function(r){return e(r)}}var Qi=fP;var vb=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Uc=vb&&typeof module=="object"&&module&&!module.nodeType&&module,pP=Uc&&Uc.exports===vb,pg=pP&&wd.process,hP=(function(){try{var e=Uc&&Uc.require&&Uc.require("util").t
2ypes;return e||pg&&pg.binding&&pg.binding("util")}catch(r){}})(),wi=hP;var _b=wi&&wi.isTypedArray,mP=_b?Qi(_b):yb,xd=mP;var gP=Object.prototype,yP=gP.hasOwnProperty;function vP(e,r){var t=qe(e),n=!t&&zs(e),i=!t&&!n&&$o(e),o=!t&&!n&&!i&&xd(e),s=t||n||i||o,a=s?db(e.length,String):[],c=a.length;for(var l in e)(r||yP.call(e,l))&&!(s&&(l=="length"||i&&(l=="offset"||l=="parent")||o&&(l=="buffer"||l=="byteLength"||l=="byteOffset")||Gs(l,c)))&&a.push(l);return a}var Nd=vP;function _P(e,r){return function(t){return e(r(t))}}var Ld=_P;var SP=Ld(Object.keys,Object),Sb=SP;var EP=Object.prototype,bP=EP.hasOwnProperty;function DP(e){if(!Hs(e))return Sb(e);var r=[];for(var t in Object(e))bP.call(e,t)&&t!="constructor"&&r.push(t);return r}var Eb=DP;function CP(e){return si(e)?Nd(e):Eb(e)}var Hn=CP;function TP(e){var r=[];if(e!=null)for(var t in Object(e))r.push(t);return r}var bb=TP;var wP=Object.prototype,AP=wP.hasOwnProperty;function OP(e){if(!Gr(e))return bb(e);var r=Hs(e),t=[];for(var n in e)n=="constructor"&&(r||!AP.call(e,n))||t.push(n);return t}var Db=OP;function MP(e){return si(e)?Nd(e,!0):Db(e)}var Ws=MP;var RP=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,IP=/^\w*$/;function xP(e,r){if(qe(e))return!1;var t=typeof e;return t=="number"||t=="symbol"||t=="boolean"||e==null||Ci(e)?!0:IP.test(e)||!RP.test(e)||r!=null&&e in Object(r)}var qs=xP;var NP=$r(Object,"create"),Ai=NP;function LP(){this.__data__=Ai?Ai(null):{},this.size=0}var Cb=LP;function FP(e){var r=this.has(e)&&delete this.__data__[e];return this.size-=r?1:0,r}var Tb=FP;var PP="__lodash_hash_undefined__",kP=Object.prototype,jP=kP.hasOwnProperty;function UP(e){var r=this.__data__;if(Ai){var t=r[e];return t===PP?void 0:t}return jP.call(r,e)?r[e]:void 0}var wb=UP;var BP=Object.prototype,VP=BP.hasOwnProperty;function GP(e){var r=this.__data__;return Ai?r[e]!==void 0:VP.call(r,e)}var Ab=GP;var $P="__lodash_hash_undefined__";function HP(e,r){var t=this.__data__;return this.size+=this.has(e)?0:1,t[e]=Ai&&r===void 0?$P:r,this}var Ob=HP;function Ys(e){var r=-1,t=e==null?0:e.length;for(this.clear();++r<t;){var n=e[r];this.set(n[0],n[1])}}Ys.prototype.clear=Cb;Ys.prototype.delete=Tb;Ys.prototype.get=wb;Ys.prototype.has=Ab;Ys.prototype.set=Ob;var hg=Ys;function zP(){this.__data__=[],this.size=0}var Mb=zP;function WP(e,r){for(var t=e.length;t--;)if(Ji(e[t][0],r))return t;return-1}var Xi=WP;var qP=Array.prototype,YP=qP.splice;function KP(e){var r=this.__data__,t=Xi(r,e);if(t<0)return!1;var n=r.length-1;return t==n?r.pop():YP.call(r,t,1),--this.size,!0}var Rb=KP;function JP(e){var r=this.__data__,t=Xi(r,e);return t<0?void 0:r[t][1]}var Ib=JP;function ZP(e){return Xi(this.__data__,e)>-1}var xb=ZP;function QP(e,r){var t=this.__data__,n=Xi(t,e);return n<0?(++this.size,t.push([e,r])):t[n][1]=r,this}var Nb=QP;function Ks(e){var r=-1,t=e==null?0:e.length;for(this.clear();++r<t;){var n=e[r];this.set(n[0],n[1])}}Ks.prototype.clear=Mb;Ks.prototype.delete=Rb;Ks.prototype.get=Ib;Ks.prototype.has=xb;Ks.prototype.set=Nb;var eo=Ks;var XP=$r(jt,"Map"),to=XP;function ek(){this.size=0,this.__data__={hash:new hg,map:new(to||eo),string:new hg}}var Lb=ek;function tk(e){var r=typeof e;return r=="string"||r=="number"||r=="symbol"||r=="boolean"?e!=="__proto__":e===null}var Fb=tk;function rk(e,r){var t=e.__data__;return Fb(r)?t[typeof r=="string"?"string":"hash"]:t.map}var ro=rk;function nk(e){var r=ro(this,e).delete(e);return this.size-=r?1:0,r}var Pb=nk;function ik(e){return ro(this,e).get(e)}var kb=ik;function ok(e){return ro(this,e).has(e)}var jb=ok;function sk(e,r){var t=ro(this,e),n=t.size;return t.set(e,r),this.size+=t.size==n?0:1,this}var Ub=sk;function Js(e){var r=-1,t=e==null?0:e.length;for(this.clear();++r<t;){var n=e[r];this.set(n[0],n[1])}}Js.prototype.clear=Lb;Js.prototype.delete=Pb;Js.prototype.get=kb;Js.prototype.has=jb;Js.prototype.set=Ub;var Ho=Js;var ak="Expected a function";function mg(e,r){if(typeof e!="function"||r!=null&&typeof r!="function")throw new TypeError(ak);var t=function(){var n=arguments,i=r?r.apply(this,n):n[0],o=t.cache;if(o.has(i))return o.get(i);var s=e.apply(this,n);return t.cache=o.set(i,s)||o,s};return t.cache=new(mg.Cache||Ho),t}mg.Cache=Ho;var Bb=mg;var ck=500;function lk(e){var r=Bb(e,function(n){return t.size===ck&&t.clear(),n}),t=r.cache;return r}var Vb=lk;var uk=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,dk=/\\(\\)?/g,fk=Vb(function(e){var r=[];return e.charCodeAt(0)===46&&r.push(""),e.replace(uk,function(t,n,i,o){r.push(i?o.replace(dk,"$1"):n||t)}),r}),Gb=fk;function pk(e){return e==null?"":YE(e)}var $b=pk;function hk(e,r){return qe(e)?e:qs(e,r)?[e]:Gb($b(e))}var Fd=hk;var mk=1/0;function gk(e){if(typeof e=="string"||Ci(e))return e;var r=e+"";return r=="0"&&1/e==-mk?"-0":r}var no=gk;function yk(e,r){r=Fd(r,e);for(var t=0,n=r.length;e!=null&&t<n;)e=e[no(r[t++])];return t&&t==n?e:void 0}var Zs=yk;function vk(e,r,t){var n=e==null?void 0:Zs(e,r);return n===void 0?t:n}var Hb=vk;function _k(e,r){for(var t=-1,n=r.length,i=e.length;++t<n;)e[i+t]=r[t];return e}var Qs=_k;var zb=rr?rr.isConcatSpreadable:void 0;function Sk(e){return qe(e)||zs(e)||!!(zb&&e&&e[zb])}var Wb=Sk;function qb(e,r,t,n,i){var o=-1,s=e.length;for(t||(t=Wb),i||(i=[]);++o<s;){var a=e[o];r>0&&t(a)?r>
vendor: 4,792 bytes, line 2
21?qb(a,r-1,t,n,i):Qs(i,a):n||(i[i.length]=a)}return i}var Yb=qb;var Ek=Ld(Object.getPrototypeOf,Object),Pd=Ek;function bk(){this.__data__=new eo,this.size=0}var Kb=bk;function Dk(e){var r=this.__data__,t=r.delete(e);return this.size=r.size,t}var Jb=Dk;function Ck(e){return this.__data__.get(e)}var Zb=Ck;function Tk(e){return this.__data__.has(e)}var Qb=Tk;var wk=200;function Ak(e,r){var t=this.__data__;if(t instanceof eo){var n=t.__data__;if(!to||n.length<wk-1)return n.push([e,r]),this.size=++t.size,this;t=this.__data__=new Ho(n)}return t.set(e,r),this.size=t.size,this}var Xb=Ak;function Xs(e){var r=this.__data__=new eo(e);this.size=r.size}Xs.prototype.clear=Kb;Xs.prototype.delete=Jb;Xs.prototype.get=Zb;Xs.prototype.has=Qb;Xs.prototype.set=Xb;var io=Xs;function Ok(e,r){return e&&Zi(r,Hn(r),e)}var eD=Ok;function Mk(e,r){return e&&Zi(r,Ws(r),e)}var tD=Mk;var oD=typeof exports=="object"&&exports&&!exports.nodeType&&exports,rD=oD&&typeof module=="object"&&module&&!module.nodeType&&module,Rk=rD&&rD.exports===oD,nD=Rk?jt.Buffer:void 0,iD=nD?nD.allocUnsafe:void 0;function Ik(e,r){if(r)return e.slice();var t=e.length,n=iD?iD(t):new e.constructor(t);return e.copy(n),n}var sD=Ik;function xk(e,r){for(var t=-1,n=e==null?0:e.length,i=0,o=[];++t<n;){var s=e[t];r(s,t,e)&&(o[i++]=s)}return o}var aD=xk;function Nk(){return[]}var kd=Nk;var Lk=Object.prototype,Fk=Lk.propertyIsEnumerable,cD=Object.getOwnPropertySymbols,Pk=cD?function(e){return e==null?[]:(e=Object(e),aD(cD(e),function(r){return Fk.call(e,r)}))}:kd,ea=Pk;function kk(e,r){return Zi(e,ea(e),r)}var lD=kk;var jk=Object.getOwnPropertySymbols,Uk=jk?function(e){for(var r=[];e;)Qs(r,ea(e)),e=Pd(e);return r}:kd,jd=Uk;function Bk(e,r){return Zi(e,jd(e),r)}var uD=Bk;function Vk(e,r,t){var n=r(e);return qe(e)?n:Qs(n,t(e))}var Ud=Vk;function Gk(e){return Ud(e,Hn,ea)}var Bc=Gk;function $k(e){return Ud(e,Ws,jd)}var dD=$k;var Hk=$r(jt,"DataView"),Bd=Hk;var zk=$r(jt,"Promise"),Vd=zk;var Wk=$r(jt,"Set"),Gd=Wk;var fD="[object Map]",qk="[object Object]",pD="[object Promise]",hD="[object Set]",mD="[object WeakMap]",gD="[object DataView]",Yk=Ti(Bd),Kk=Ti(to),Jk=Ti(Vd),Zk=Ti(Gd),Qk=Ti(Md),zo=$n;(Bd&&zo(new Bd(new ArrayBuffer(1)))!=gD||to&&zo(new to)!=fD||Vd&&zo(Vd.resolve())!=pD||Gd&&zo(new Gd)!=hD||Md&&zo(new Md)!=mD)&&(zo=function(e){var r=$n(e),t=r==qk?e.constructor:void 0,n=t?Ti(t):"";if(n)switch(n){case Yk:return gD;case Kk:return fD;case Jk:return pD;case Zk:return hD;case Qk:return mD}return r});var Oi=zo;var Xk=Object.prototype,ej=Xk.hasOwnProperty;function tj(e){var r=e.length,t=new e.constructor(r);return r&&typeof e[0]=="string"&&ej.call(e,"index")&&(t.index=e.index,t.input=e.input),t}var yD=tj;var rj=jt.Uint8Array,ta=rj;function nj(e){var r=new e.constructor(e.byteLength);return new ta(r).set(new ta(e)),r}var ra=nj;function ij(e,r){var t=r?ra(e.buffer):e.buffer;return new e.constructor(t,e.byteOffset,e.byteLength)}var vD=ij;var oj=/\w*$/;function sj(e){var r=new e.constructor(e.source,oj.exec(e));return r.lastIndex=e.lastIndex,r}var _D=sj;var SD=rr?rr.prototype:void 0,ED=SD?SD.valueOf:void 0;function aj(e){return ED?Object(ED.call(e)):{}}var bD=aj;function cj(e,r){var t=r?ra(e.buffer):e.buffer;return new e.constructor(t,e.byteOffset,e.length)}var DD=cj;var lj="[object Boolean]",uj="[object Date]",dj="[object Map]",fj="[object Number]",pj="[object RegExp]",hj="[object Set]",mj="[object String]",gj="[object Symbol]",yj="[object ArrayBuffer]",vj="[object DataView]",_j="[object Float32Array]",Sj="[object Float64Array]",Ej="[object Int8Array]",bj="[object Int16Array]",Dj="[object Int32Array]",Cj="[object Uint8Array]",Tj="[object Uint8ClampedArray]",wj="[object Uint16Array]",Aj="[object Uint32Array]";function Oj(e,r,t){var n=e.constructor;switch(r){case yj:return ra(e);case lj:case uj:return new n(+e);case vj:return vD(e,t);case _j:case Sj:case Ej:case bj:case Dj:case Cj:case Tj:case wj:case Aj:return DD(e,t);case dj:return new n;case fj:case mj:return new n(e);case pj:return _D(e);case hj:return new n;case gj:return bD(e)}}var CD=Oj;function Mj(e){return typeof e.constructor=="function"&&!Hs(e)?eb(Pd(e)):{}}var TD=Mj;var Rj="[object Map]";function Ij(e){return Pr(e)&&Oi(e)==Rj}var wD=Ij;var AD=wi&&wi.isMap,xj=AD?Qi(AD):wD,OD=xj;var Nj="[object Set]";function Lj(e){return Pr(e)&&Oi(e)==Nj}var MD=Lj;var RD=wi&&wi.isSet,Fj=RD?Qi(RD):MD,ID=Fj;var Pj=1,kj=2,jj=4,xD="[object Arguments]",Uj="[object Array]",Bj="[object Boolean]",Vj="[object Date]",Gj="[object Error]",ND="[object Function]",$j="[object GeneratorFunction]",Hj="[object Map]",zj="[object Number]",LD="[object Object]",Wj="[object RegExp]",qj="[object Set]",Yj="[object String]",Kj="[object Symbol]",Jj="[object WeakMap]",Zj="[object ArrayBuffer]",Qj="[object DataView]",Xj="[object Float32Array]",eU="[object Float64Array
2]",tU="[object Int8Array]",rU="[object Int16Array]",nU="[object Int32Array]",iU="[object Uint8Array]",oU="[object Uint8ClampedArray]",sU="[object Uint16Array]",aU="[object Uint32Array]",st={};st[xD]=st[Uj]=st[Zj]=st[Qj]=st[Bj]=st[Vj]=st[Xj]=st[eU]=st[tU]=st[rU]=st[nU]=st[Hj]=st[zj]=st[LD]=st[Wj]=st[qj]=st[Yj]=st[Kj]=st[iU]=st[oU]=st[sU]=st[aU]=!0;st[Gj]=st[ND]=st[Jj]=!1;function $d(e,r,t,n,i,o){var s,a=r&Pj,c=r&kj,l=r&jj;if(t&&(s=i?t(e,n,i,o):t(e)),s!==void 0)return s;if(!Gr(e))return e;var d=qe(e);if(d){if(s=yD(e),!a)return rb(e,s)}else{var m=Oi(e),y=m==ND||m==$j;if($o(e))return sD(e,a);if(m==LD||m==xD||y&&!i){if(s=c||y?{}:TD(e),!a)return c?uD(e,tD(s,e)):lD(e,eD(s,e))}else{if(!st[m])return i?e:{};s=CD(e,m,a)}}o||(o=new io);var S=o.get(e);if(S)return S;o.set(e,s),ID(e)?e.forEach(function(v){s.add($d(v,r,t,v,e,o))}):OD(e)&&e.forEach(function(v,b){s.set(b,$d(v,r,t,b,e,o))});var N=l?c?dD:Bc:c?Ws:Hn,T=d?void 0:N(e);return ab(T||e,function(v,b){T&&(b=v,v=e[b]),Id(s,b,$d(v,r,t,b,e,o))}),s}var FD=$d;var cU=1,lU=4;function uU(e){return FD(e,cU|lU)}var dU=uU;var fU="__lodash_hash_undefined__";function pU(e){return this.__data__.set(e,fU),this}var PD=pU;function hU(e){return this.__data__.has(e)}var kD=hU;function Hd(e){var r=-1,t=e==null?0:e.length;for(this.__data__=new Ho;++r<t;)this.add(e[r])}Hd.prototype.add=Hd.prototype.push=PD;Hd.prototype.has=kD;var jD=Hd;function mU(e,r){for(var t=-1,n=e==null?0:e.length;++t<n;)if(r(e[t],t,e))return!0;return!1}var UD=mU;function gU(e,r){return e.has(r)}var BD=gU;var yU=1,vU=2;function _U(e,r,t,n,i,o){var s=t&yU,a=e.length,c=r.length;if(a!=c&&!(s&&c>a))return!1;var l=o.get(e),d=o.get(r);if(l&&d)return l==r&&d==e;var m=-1,y=!0,S=t&vU?new jD:void 0;for(o.set(e,r),o.set(r,e);++m<a;){var N=e[m],T=r[m];if(n)var v=s?n(T,N,m,r,e,o):n(N,T,m,e,r,o);if(v!==void 0){if(v)continue;y=!1;break}if(S){if(!UD(r,function(b,D){if(!BD(S,D)&&(N===b||i(N,b,t,n,o)))return S.push(D)})){y=!1;break}}else if(!(N===T||i(N,T,t,n,o))){y=!1;break}}return o.delete(e),o.delete(r),y}var zd=_U;function SU(e){var r=-1,t=Array(e.size);return e.forEach(function(n,i){t[++r]=[i,n]}),t}var VD=SU;function EU(e){var r=-1,t=Array(e.size);return e.forEach(function(n){t[++r]=n}),t}var GD=EU;var bU=1,DU=2,CU="[object Boolean]",TU="[object Date]",wU="[object Error]",AU="[object Map]",OU="[object Number]",MU="[object RegExp]",RU="[object Set]",IU="[object String]",xU="[object Symbol]",NU="[object ArrayBuffer]",LU="[object DataView]",$D=rr?rr.prototype:void 0,gg=$D?$D.valueOf:void 0;function FU(e,r,t,n,i,o,s){switch(t){case LU:if(e.byteLength!=r.byteLength||e.byteOffset!=r.byteOffset)return!1;e=e.buffer,r=r.buffer;case NU:return!(e.byteLength!=r.byteLength||!o(new ta(e),new ta(r)));case CU:case TU:case OU:return Ji(+e,+r);case wU:return e.name==r.name&&e.message==r.message;case MU:case IU:return e==r+"";case AU:var a=VD;case RU:var c=n&bU;if(a||(a=GD),e.size!=r.size&&!c)return!1;var l=s.get(e);if(l)return l==r;n|=DU,s.set(e,r);var d=zd(a(e),a(r),n,i,o,s);return s.delete(e),d;case xU:if(gg)return gg.call(e)==gg.call(r)}return!1}var HD=FU;var PU=1,kU=Object.prototype,jU=kU.hasOwnProperty;function UU(e,r,t,n,i,o){var s=t&PU,a=Bc(e),c=a.length,l=Bc(r),d=l.length;if(c!=d&&!s)return!1;for(var m=c;m--;){var y=a[m];if(!(s?y in r:jU.call(r,y)))return!1}var S=o.get(e),N=o.get(r);if(S&&N)return S==r&&N==e;var T=!0;o.set(e,r),o.set(r,e);for(var v=s;++m<c;){y=a[m];var b=e[y],D=r[y];if(n)var M=s?n(D,b,y,r,e,o):n(b,D,y,e,r,o);if(!(M===void 0?b===D||i(b,D,t,n,o):M)){T=!1;break}v||(v=y=="constructor")}if(T&&!v){var O=e.constructor,F=r.constructor;O!=F&&"constructor"in e&&"constructor"in r&&!(typeof O=="function"&&O instanceof O&&typeof F=="function"&&F instanceof F)&&(T=!1)}return o.delete(e),o.delete(r),T}var zD=UU;var BU=1,WD="[object Arguments]",qD="[object Array]",Wd="[object Object]",VU=Object.prototype,YD=VU.hasOwnProperty;function GU(e,r,t,n,i,o){var s=qe(e),a=qe(r),c=s?qD:Oi(e),l=a?qD:Oi(r);c=c==WD?Wd:c,l=l==WD?Wd:l;var d=c==Wd,m=l==Wd,y=c==l;if(y&&$o(e)){if(!$o(r))return!1;s=!0,d=!1}if(y&&!d)return o||(o=new io),s||xd(e)?zd(e,r,t,n,i,o):HD(e,r,c,t,n,i,o);if(!(t&BU)){var S=d&&YD.call(e,"__wrapped__"),N=m&&YD.call(r,"__wrapped__");
2if(S||N){var T=S?e.value():e,v=N?r.value():r;return o||(o=new io),i(T,v,t,n,o)}}return y?(o||(o=new io),zD(e,r,t,n,i,o)):!1}var KD=GU;function JD(e,r,t,n,i){return e===r?!0:e==null||r==null||!Pr(e)&&!Pr(r)?e!==e&&r!==r:KD(e,r,t,n,JD,i)}var na=JD;var $U=1,HU=2;function zU(e,r,t,n){var i=t.length,o=i,s=!n;if(e==null)return!o;for(e=Object(e);i--;){var a=t[i];if(s&&a[2]?a[1]!==e[a[0]]:!(a[0]in e))return!1}for(;++i<o;){a=t[i];var c=a[0],l=e[c],d=a[1];if(s&&a[2]){if(l===void 0&&!(c in e))return!1}else{var m=new io;if(n)var y=n(l,d,c,e,r,m);if(!(y===void 0?na(d,l,$U|HU,n,m):y))return!1}}return!0}var ZD=zU;function WU(e){return e===e&&!Gr(e)}var qd=WU;function qU(e){for(var r=Hn(e),t=r.length;t--;){var n=r[t],i=e[n];r[t]=[n,i,qd(i)]}return r}var QD=qU;function YU(e,r){return function(t){return t==null?!1:t[e]===r&&(r!==void 0||e in Object(t))}}var Yd=YU;function KU(e){var r=QD(e);return r.length==1&&r[0][2]?Yd(r[0][0],r[0][1]):function(t){return t===e||ZD(t,e,r)}}var XD=KU;function JU(e,r){return e!=null&&r in Object(e)}var e1=JU;function ZU(e,r,t){r=Fd(r,e);for(var n=-1,i=r.length,o=!1;++n<i;){var s=no(r[n]);if(!(o=e!=null&&t(e,s)))break;e=e[s]}return o||++n!=i?o:(i=e==null?0:e.length,!!i&&$s(i)&&Gs(s,i)&&(qe(e)||zs(e)))}var t1=ZU;function QU(e,r){return e!=null&&t1(e,r,e1)}var r1=QU;var XU=1,e2=2;function t2(e,r){return qs(e)&&qd(r)?Yd(no(e),r):function(t){var n=Hb(t,e);return n===void 0&&n===r?r1(t,e):na(r,n,XU|e2)}}var n1=t2;function r2(e){return function(r){return r?.[e]}}var i1=r2;function n2(e){return function(r){return Zs(r,e)}}var o1=n2;function i2(e){return qs(e)?i1(no(e)):o1(e)}var s1=i2;function o2(e){return typeof e=="function"?e:e==null?Ki:typeof e=="object"?qe(e)?n1(e[0],e[1]):XD(e):s1(e)}var a1=o2;function s2(e){return function(r,t,n){for(var i=-1,o=Object(r),s=n(r),a=s.length;a--;){var c=s[e?a:++i];if(t(o[c],c,o)===!1)break}return r}}var c1=s2;var a2=c1(),l1=a2;function c2(e,r){return e&&l1(e,r,Hn)}var u1=c2;function l2(e,r){return function(t,n){if(t==null)return t;if(!si(t))return e(t,n);for(var i=t.length,o=r?i:-1,s=Object(t);(r?o--:++o<i)&&n(s[o],o,s)!==!1;);return t}}var d1=l2;var u2=d1(u1),f1=u2;function d2(e,r){var t=-1,n=si(e)?Array(e.length):[];return f1(e,function(i,o,s){n[++t]=r(i,o,s)}),n}var p1=d2;function f2(e,r){return na(e,r)}var p2=f2;function h2(e){return e===void 0}var m2=h2;function g2(e,r){var t=e.length;for(e.sort(r);t--;)e[t]=e[t].value;return e}var h1=g2;function y2(e,r){if(e!==r){var t=e!==void 0,n=e===null,i=e===e,o=Ci(e),s=r!==void 0,a=r===null,c=r===r,l=Ci(r);if(!a&&!l&&!o&&e>r||o&&s&&c&&!a&&!l||n&&s&&c||!t&&c||!i)return 1;if(!n&&!o&&!l&&e<r||l&&t&&i&&!n&&!o||a&&t&&i||!s&&i||!c)return-1}return 0}var m1=y2;function v2(e,r,t){for(var n=-1,i=e.criteria,o=r.criteria,s=i.length,a=t.length;++n<s;){var c=m1(i[n],o[n]);if(c){if(n>=a)return c;var l=t[n];return c*(l=="desc"?-1:1)}}return e.index-r.index}var g1=v2;function _2(e,r,t){r.length?r=Bs(r,function(o){return qe(o)?function(s){return Zs(s,o.length===1?o[0]:o)}:o}):r=[Ki];var n=-1;r=Bs(r,Qi(a1));var i=p1(e,function(o,s,a){var c=Bs(r,function(l){return l(o)});return{criteria:c,index:++n,value:o}});return h1(i,function(o,s){return g1(o,s,t)})}var Kd=_2;function S2(e,r,t,n){return e==null?[]:(qe(r)||(r=r==null?[]:[r]),t=n?void 0:t,qe(t)||(t=t==null?[]:[t]),Kd(e,r,t))}var E2=S2;var b2=ub(function(e,r){if(e==null)return[];var t=r.length;return t>1&&dg(e,r[0],r[1])?r=[]:t>2&&dg(r[0],r[1],r[2])&&(r=[r[0]]),Kd(e,Yb(r,1),[])}),D2=b2;var he="primary",Qc=Symbol("RouteTitle"),Eg=class{params;constructor(r){this.params=r||{}}has(r){return Object.prototype.hasOwnProperty.call(this.params,r)}get(r){if(this.has(r)){let t=this.params[r];return Array.isArray(t)?t[0]:t}return null}getAll(r){if(this.has(r)){let t=this.params[r];return Array.isArray(t)?t:[t]}return[]}get keys(){return Object.keys(this.params)}};function qo(e){return new Eg(e)}function yg(e,r,t){for(let n=0;n<e.length;n++){let i=e[n],o=r[n];if(i[0]===":")t[i.substring(1)]=o;else if(i!==o.path)return!1}return!0}function C1(e,r,t){let n=t.path.split("/"),i=n.indexOf("**");if(i===-1){if(n.length>e.length||t.pathMatch==="full"&&(r.hasChildren()||n.length<e.length))return null;
2let c={},l=e.slice(0,n.length);return yg(n,l,c)?{consumed:l,posParams:c}:null}if(i!==n.lastIndexOf("**"))return null;let o=n.slice(0,i),s=n.slice(i+1);if(o.length+s.length>e.length||t.pathMatch==="full"&&r.hasChildren()&&t.path!=="**")return null;let a={};return!yg(o,e.slice(0,o.length),a)||!yg(s,e.slice(e.length-s.length),a)?null:{consumed:e,posParams:a}}function tf(e){return new Promise((r,t)=>{e.pipe(Hi()).subscribe({next:n=>r(n),error:n=>t(n)})})}function C2(e,r){if(e.length!==r.length)return!1;for(let t=0;t<e.length;++t)if(!ai(e[t],r[t]))return!1;return!0}function ai(e,r){let t=e?bg(e):void 0,n=r?bg(r):void 0;if(!t||!n||t.length!=n.length)return!1;let i;for(let o=0;o<t.length;o++)if(i=t[o],!T1(e[i],r[i]))return!1;return!0}function bg(e){return[...Object.keys(e),...Object.getOwnPropertySymbols(e)]}function T1(e,r){if(Array.isArray(e)&&Array.isArray(r)){if(e.length!==r.length)return!1;let t=[...e].sort(),n=[...r].sort();return t.every((i,o)=>n[o]===i)}else return e===r}function T2(e){return e.length>0?e[e.length-1]:null}function Ko(e){return tn(e)?e:Fs(e)?ur(Promise.resolve(e)):_(e)}function w1(e){return tn(e)?tf(e):Promise.resolve(e)}var w2={exact:M1,subset:R1},A1={exact:A2,subset:O2,ignored:()=>!0},O1={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},Dg={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};function y1(e,r,t){return w2[t.paths](e.root,r.root,t.matrixParams)&&A1[t.queryParams](e.queryParams,r.queryParams)&&!(t.fragment==="exact"&&e.fragment!==r.fragment)}function A2(e,r){return ai(e,r)}function M1(e,r,t){if(!Wo(e.segments,r.segments)||!Qd(e.segments,r.segments,t)||e.numberOfChildren!==r.numberOfChildren)return!1;for(let n in r.children)if(!e.children[n]||!M1(e.children[n],r.children[n],t))return!1;return!0}function O2(e,r){return Object.keys(r).length<=Object.keys(e).length&&Object.keys(r).every(t=>T1(e[t],r[t]))}function R1(e,r,t){return I1(e,r,r.segments,t)}function I1(e,r,t,n){if(e.segments.length>t.length){let i=e.segments.slice(0,t.length);return!(!Wo(i,t)||r.hasChildren()||!Qd(i,t,n))}else if(e.segments.length===t.length){if(!Wo(e.segments,t)||!Qd(e.segments,t,n))return!1;for(let i in r.children)if(!e.children[i]||!R1(e.children[i],r.children[i],n))return!1;return!0}else{let i=t.slice(0,e.segments.length),o=t.slice(e.segments.length);return!Wo(e.segments,i)||!Qd(e.segments,i,n)||!e.children[he]?!1:I1(e.children[he],r,o,n)}}function Qd(e,r,t){return r.every((n,i)=>A1[t](e[i].parameters,n.parameters))}var un=class{root;queryParams;fragment;_queryParamMap;constructor(r=new je([],{}),t={},n=null){this.root=r,this.queryParams=t,this.fragment=n}get queryParamMap(){return this._queryParamMap??=qo(this.queryParams),this._queryParamMap}toString(){return I2.serialize(this)}},je=class{segments;children;parent=null;constructor(r,t){this.segments=r,this.children=t,Object.values(t).forEach(n=>n.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Xd(this)}},oo=class{path;parameters;_parameterMap;constructor(r,t){this.path=r,this.parameters=t}get parameterMap(){return this._parameterMap??=qo(this.parameters),this._parameterMap}toString(){return N1(this)}};function M2(e,r){return Wo(e,r)&&e.every((t,n)=>ai(t.parameters,r[n].parameters))}function Wo(e,r){return e.length!==r.length?!1:e.every((t,n)=>t.path===r[n].path)}function R2(e,r){let t=[];return Object.entries(e.children).forEach(([n,i])=>{n===he&&(t=t.concat(r(i,n)))}),Object.entries(e.children).forEach(([n,i])=>{n!==he&&(t=t.concat(r(i,n)))}),t}var co=(()=>{class e{static \u0275fac=function(n){return new(n||e)};static \u0275prov=h({token:e,factory:()=>new Ri,providedIn:"root"})}return e})(),Ri=class{parse(r){let t=new Tg(r);return new un(t.parseRootSegment(),t.parseQueryParams(),t.parseFragment())}serialize(r){let t=`/${Vc(r.root,!0)}`,n=L2(r.queryParams),i=typeof r.fragment=="string"?`#${x2(r.fragment)}`:"";return`${t}${n}${i}`}},I2=new Ri;function Xd(e){return e.segments.map(r=>N1(r)).join("/")}function Vc(e,r){if(!e.hasChildren())return Xd(e);if(r){let t=e.children[he]?Vc(e.children[he],!1):"",n=[];
vendor: 8,801 bytes, line 2
2return Object.entries(e.children).forEach(([i,o])=>{i!==he&&n.push(`${i}:${Vc(o,!1)}`)}),n.length>0?`${t}(${n.join("//")})`:t}else{let t=R2(e,(n,i)=>i===he?[Vc(e.children[he],!1)]:[`${i}:${Vc(n,!1)}`]);return Object.keys(e.children).length===1&&e.children[he]!=null?`${Xd(e)}/${t[0]}`:`${Xd(e)}/(${t.join("//")})`}}function x1(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Jd(e){return x1(e).replace(/%3B/gi,";")}function x2(e){return encodeURI(e)}function Cg(e){return x1(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function ef(e){return decodeURIComponent(e)}function v1(e){return ef(e.replace(/\+/g,"%20"))}function N1(e){return`${Cg(e.path)}${N2(e.parameters)}`}function N2(e){return Object.entries(e).map(([r,t])=>`;${Cg(r)}=${Cg(t)}`).join("")}function L2(e){let r=Object.entries(e).map(([t,n])=>Array.isArray(n)?n.map(i=>`${Jd(t)}=${Jd(i)}`).join("&"):`${Jd(t)}=${Jd(n)}`).filter(t=>t);return r.length?`?${r.join("&")}`:""}var F2=/^[^\/()?;#]+/;function vg(e){let r=e.match(F2);return r?r[0]:""}var P2=/^[^\/()?;=#]+/;function k2(e){let r=e.match(P2);return r?r[0]:""}var j2=/^[^=?&#]+/;function U2(e){let r=e.match(j2);return r?r[0]:""}var B2=/^[^&#]+/;function V2(e){let r=e.match(B2);return r?r[0]:""}var Tg=class{url;remaining;constructor(r){this.url=r,this.remaining=r}parseRootSegment(){for(;this.consumeOptional("/"););return this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new je([],{}):new je([],this.parseChildren())}parseQueryParams(){let r={};if(this.consumeOptional("?"))do this.parseQueryParam(r);while(this.consumeOptional("&"));return r}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(r=0){if(r>50)throw new ne(4010,!1);if(this.remaining==="")return{};this.consumeOptional("/");let t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());let n={};this.peekStartsWith("/(")&&(this.capture("/"),n=this.parseParens(!0,r));let i={};return this.peekStartsWith("(")&&(i=this.parseParens(!1,r)),(t.length>0||Object.keys(n).length>0)&&(i[he]=new je(t,n)),i}parseSegment(){let r=vg(this.remaining);if(r===""&&this.peekStartsWith(";"))throw new ne(4009,!1);return this.capture(r),new oo(ef(r),this.parseMatrixParams())}parseMatrixParams(){let r={};for(;this.consumeOptional(";");)this.parseParam(r);return r}parseParam(r){let t=k2(this.remaining);if(!t)return;this.capture(t);let n="";if(this.consumeOptional("=")){let i=vg(this.remaining);i&&(n=i,this.capture(n))}r[ef(t)]=ef(n)}parseQueryParam(r){let t=U2(this.remaining);if(!t)return;this.capture(t);let n="";if(this.consumeOptional("=")){let s=V2(this.remaining);s&&(n=s,this.capture(n))}let i=v1(t),o=v1(n);if(r.hasOwnProperty(i)){let s=r[i];Array.isArray(s)||(s=[s],r[i]=s),s.push(o)}else r[i]=o}parseParens(r,t){let n={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let i=vg(this.remaining),o=this.remaining[i.length];if(o!=="/"&&o!==")"&&o!==";")throw new ne(4010,!1);let s;i.indexOf(":")>-1?(s=i.slice(0,i.indexOf(":")),this.capture(s),this.capture(":")):r&&(s=he);let a=this.parseChildren(t+1);n[s??he]=Object.keys(a).length===1&&a[he]?a[he]:new je([],a),this.consumeOptional("//")}return n}peekStartsWith(r){return this.remaining.startsWith(r)}consumeOptional(r){return this.peekStartsWith(r)?(this.remaining=this.remaining.substring(r.length),!0):!1}capture(r){if(!this.consumeOptional(r))throw new ne(4011,!1)}};function L1(e){return e.segments.length>0?new je([],{[he]:e}):e}function F1(e){let r={};for(let[n,i]of Object.entries(e.children)){let o=F1(i);if(n===he&&o.segments.length===0&&o.hasChildren())for(let[s,a]of Object.entries(o.children))r[s]=a;else(o.segments.length>0||o.hasChildren())&&(r[n]=o)}let t=new je(e.segments,r);return G2(t)}function G2(e){if(e.numberOfChildren===1&&e.children[he]){let r=e.children[he];return new je(e.segments.concat(r.segments),r.children)}return e}function so(e){return e instanceof un}function P1(e,r,t=null,n=null,i=new Ri){let o=k1(e);return j1(o,r,t,n,i)}function k1(e){let r;function t(o){let s={};for(let c of o.children){let l=t(c);s[c.outlet]=l}let a=new je(o.url,s);return o===e&&(r=a),a}let n=t(e.root),i=L1(n);return r??i}function j1(e,r,t,n,i){let o=e;for(;o.parent;)o=o.parent;if(r.length===0)return _g(o,o,o,t,n,i);let s=$2(r);if(s.toRoot())return _g(o,o,new je([],{}),t,n,i);let a=H2(s,o,e),c=a.processChildren?$c(a.segmentGroup,a.index,s.commands):B1(a.segmentGroup,a.index,s.commands);return _g(o,a.segmentGroup,c,t,n,i)}function rf(e){return typeof e=="object"&&e!=null&&!e.outlets&&!e.segmentPath}function zc(e){return typeof e=="object"&&e!=null&&e.outlets}function _1(e,r,t){e||="\u0275";let n=new un;return n.queryParams={[e]:r},t.parse(t.serialize(n)).queryParams[e]}function _g(e,r,t,n,i,o){let s={};for(let[l,d]of Object.entries(n??{}))s[l]=Array.isArray(d)?d.map(m=>_1(l,m,o)):_1(l,d,o);let a;e===r?a=t:a=U1(e,r,t);let c=L1(F1(a));return new un(c,s,i)}function U1(e,r,t){let n={};return Object.entries(e.children).forEach(([i,o])=>{o===r?n[i]=t:n[i]=U1(o,r,t)}),new je(e.segments,n)}var nf=class{isAbsolute;numberOfDoubleDots;commands;constructor(r,t,n){if(this.isAbsolute=r,this.numberOfDoubleDots=t,this.commands=n,r&&n.length>0&&rf(n[0]))throw new ne(4003,!1);let i=n.find(zc);if(i&&i!==T2(n))throw new ne(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function $2(e){if(typeof e[0]=="string"&&e.length===1&&e[0]==="/")return new nf(!0,0,e);let r=0,t=!1,n=e.reduce((i,o,s)=>{if(typeof o=="object"&&o!=null){if(o.outlets){let a={};return Object.entries(o.outlets).forEach(([c,l])=>{a[c]=typeof l=="string"?l.split("/"):l}),[...i,{outlets:a}]}if(o.segmentPath)return[...i,o.segmentPath]}return typeof o!="string"?[...i,o]:s===0?(o.split("/").forEach((a,c)=>{c==0&&a==="."||(c==0&&a===""?t=!0:a===".."?r++:a!=""&&i.push(a))}),i):[...i,o]},[]);return new nf(t,r,n)}var oa=class{segmentGroup;processChildren;index;constructor(r,t,n){this.segmentGroup=r,this.processChildren=t,this.index=n}};function H2(e,r,t){if(e.isAbsolute)return new oa(r,!0,0);if(!t)return new oa(r,!1,NaN);if(t.parent===null)return new oa(t,!0,0);let n=rf(e.commands[0])?0:1,i=t.segments.length-1+n;return z2(t,i,e.numberOfDoubleDots)}function z2(e,r,t){let n=e,i=r,o=t;for(;o>i;){if(o-=i,n=n.parent,!n)throw new ne(4005,!1);i=n.segments.length}return new oa(n,!1,i-o)}function W2(e){return zc(e[0])?e[0].outlets:{[he]:e}}function B1(e,r,t){if(e??=new je([],{}),e.segments.length===0&&e.hasChildren())return $c(e,r,t);let n=q2(e,r,t),i=t.slice(n.commandIndex);if(n.match&&n.pathIndex<e.segments.length){let o=new je(e.segments.slice(0,n.pathIndex),{});return o.children[he]=new je(e.segments.slice(n.pathIndex),e.children),$c(o,0,i)}else return n.match&&i.length===0?new je(e.segments,{}):n.match&&!e.hasChildren()?wg(e,r,t):n.match?$c(e,0,i):wg(e,r,t)}function $c(e,r,t){if(t.length===0)return new je(e.segments,{});{let n=W2(t),i={};if(Object.keys(n).some(o=>o!==he)&&e.children[he]&&e.numberOfChildren===1&&e.children[he].segments.length===0){let o=$c(e.children[he],r,t);return new je(e.segments,o.children)}return Object.entries(n).forEach(([o,s])=>{typeof s=="string"&&(s=[s]),s!==null&&(i[o]=B1(e.children[o],r,s))}),Object.entries(e.children).forEach(([o,s])=>{n[o]===void 0&&(i[o]=s)}),new je(e.segments,i)}}function q2(e,r,t){let n=0,i=r,o={match:!1,pathIndex:0,commandIndex:0};for(;i<e.segments.length;){if(n>=t.length)return o;let s=e.segments[i],a=t[n];if(zc(a))break;let c=`${a}`,l=n<t.length-1?t[n+1]:null;if(i>0&&c===void 0)break;if(c&&l&&typeof l=="object"&&l.outlets===void 0){if(!E1(c,l,s))return o;n+=2}else{if(!E1(c,{},s))return o;n++}i++}return{match:!0,pathIndex:i,commandIndex:n}}function wg(e,r,t){let n=e.segments.slice(0,r),i=0;for(;i<t.length;){let o=t[i];if(zc(o)){let c=Y2(o.outlets);return new je(n,c)}if(i===0&&rf(t[0])){let c=e.segments[r];n.push(new oo(c.path,S1(t[0]))),i++;continue}let s=zc(o)?o.outlets[he]:`${o}`,a=i<t.length-1?t[i+1]:null;s&&a&&rf(a)?(n.push(new oo(s,S1(a))),i+=2):(n.push(new oo(s,{})),i++)}return new je(n,{})}function Y2(e){let r={};return Object.entries(e).forEach(([t,n])=>{typeof n=="string"&&(n=[n]),n!==null&&(r[t]=wg(new je([],{}),0,n))}),r}function S1(e){let r={};return Object.entries(e).forEach(([t,n])=>r[t]=`${n}`),r}function E1(e,r,t){return e==t.path&&ai(r,t.parameters)}var sa="imperative",Kt=(function(e){return e[e.NavigationStart=0]="NavigationStart",e[e.NavigationEnd=1]="NavigationEnd",e[e.NavigationCancel=2]="NavigationCancel",e[e.NavigationError=3]="NavigationError",e[e.RoutesRecognized=4]="RoutesRecognized",e[e.Re
2solveStart=5]="ResolveStart",e[e.ResolveEnd=6]="ResolveEnd",e[e.GuardsCheckStart=7]="GuardsCheckStart",e[e.GuardsCheckEnd=8]="GuardsCheckEnd",e[e.RouteConfigLoadStart=9]="RouteConfigLoadStart",e[e.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",e[e.ChildActivationStart=11]="ChildActivationStart",e[e.ChildActivationEnd=12]="ChildActivationEnd",e[e.ActivationStart=13]="ActivationStart",e[e.ActivationEnd=14]="ActivationEnd",e[e.Scroll=15]="Scroll",e[e.NavigationSkipped=16]="NavigationSkipped",e})(Kt||{}),dn=class{id;url;constructor(r,t){this.id=r,this.url=t}},ao=class extends dn{type=Kt.NavigationStart;navigationTrigger;restoredState;constructor(r,t,n="imperative",i=null){super(r,t),this.navigationTrigger=n,this.restoredState=i}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},Hr=class extends dn{urlAfterRedirects;type=Kt.NavigationEnd;constructor(r,t,n){super(r,t),this.urlAfterRedirects=n}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},Dr=(function(e){return e[e.Redirect=0]="Redirect",e[e.SupersededByNewNavigation=1]="SupersededByNewNavigation",e[e.NoDataFromResolver=2]="NoDataFromResolver",e[e.GuardRejected=3]="GuardRejected",e[e.Aborted=4]="Aborted",e})(Dr||{}),ca=(function(e){return e[e.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",e[e.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",e})(ca||{}),bn=class extends dn{reason;code;type=Kt.NavigationCancel;constructor(r,t,n,i){super(r,t),this.reason=n,this.code=i}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}};function V1(e){return e instanceof bn&&(e.code===Dr.Redirect||e.code===Dr.SupersededByNewNavigation)}var ci=class extends dn{reason;code;type=Kt.NavigationSkipped;constructor(r,t,n,i){super(r,t),this.reason=n,this.code=i}},Yo=class extends dn{error;target;type=Kt.NavigationError;constructor(r,t,n,i){super(r,t),this.error=n,this.target=i}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},Wc=class extends dn{urlAfterRedirects;state;type=Kt.RoutesRecognized;constructor(r,t,n,i){super(r,t),this.urlAfterRedirects=n,this.state=i}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},of=class extends dn{urlAfterRedirects;state;type=Kt.GuardsCheckStart;constructor(r,t,n,i){super(r,t),this.urlAfterRedirects=n,this.state=i}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},sf=class extends dn{urlAfterRedirects;state;shouldActivate;type=Kt.GuardsCheckEnd;constructor(r,t,n,i,o){super(r,t),this.urlAfterRedirects=n,this.state=i,this.shouldActivate=o}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},af=class extends dn{urlAfterRedirects;state;type=Kt.ResolveStart;constructor(r,t,n,i){super(r,t),this.urlAfterRedirects=n,this.state=i}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},cf=class extends dn{urlAfterRedirects;state;type=Kt.ResolveEnd;constructor(r,t,n,i){super(r,t),this.urlAfterRedirects=n,this.state=i}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},lf=class{route;type=Kt.RouteConfigLoadStart;constructor(r){this.route=r}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},uf=class{route;type=Kt.RouteConfigLoadEnd;constructor(r){this.route=r}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},df=class{snapshot;type=Kt.ChildActivationStart;constructor(r){this.snapshot=r}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},ff=class{snapshot;type=Kt.ChildActivationEnd;constructor(r){this.snapshot=r}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},pf=class{snapshot;type=Kt.ActivationStart;constructor(r){this.snapshot=r}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},hf=class{snapshot;type=Kt.ActivationEnd;constructor(r){this.snapshot=r}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},la=class{routerEvent;position;anchor;scrollBehavior;type=Kt.Scroll;constructor(r,t,n,i){this.routerEvent=r,this.position=t,this.anchor=n,this.scrollBehavior=i}toString(){let r=this.position?`${this.position[0]}, ${this.position[1]}`:null;return`Scroll(anchor: '${this.anchor}', position: '${r}')`}},ua=class{},qc=class{},da=class{url;navigationBehaviorOptions;constructor(r,t){this.url=r,this.navigationBehaviorOptions=t}};function K2(e){return!(e instanceof ua)&&!(e instanceof da)&&!(e instanceof qc)}var mf=class{rootInjector;outlet=null;route=null;children;attachRef=null;get injector(){return this.route?.snapshot._environmentInjector??this.rootInjector}constructor(r){this.rootInjector=r,this.children=new Jo(this.rootInjector)}},Jo=(()=>{class e{rootInjector;contexts=new Map;constructor(t){this.rootInjector=t}onChildOutletCreated(t,n){let i=this.getOrCreateContext(t);i.outlet=n,this.contexts.set(t,i)}onChildOutletDestroyed(t){let n=this.getContext(t);n&&(n.outlet=null,n.attachRef=null)}onOutletDeactivated(){let t=this.contexts;return this.contexts=new Map,t}onOutletReAttached(t){this.contexts=t}getOrCreateContext(t){let n=this.getContext(t);return n||(n=new mf(this.rootInjector),this.contexts.set(t,n)),n}getContext(t){return this.contexts.get(t)||null}static \u0275fac=function(n){return new(n||e)(p(Mr))};static \u0275prov=h({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),gf=class{_root;constructor(r){this._root=r}get root(){return this._root.value}
vendor: 17,646 bytes, line 2
2parent(r){let t=this.pathFromRoot(r);return t.length>1?t[t.length-2]:null}children(r){let t=Ag(r,this._root);return t?t.children.map(n=>n.value):[]}firstChild(r){let t=Ag(r,this._root);return t&&t.children.length>0?t.children[0].value:null}siblings(r){let t=Og(r,this._root);return t.length<2?[]:t[t.length-2].children.map(i=>i.value).filter(i=>i!==r)}pathFromRoot(r){return Og(r,this._root).map(t=>t.value)}};function Ag(e,r){if(e===r.value)return r;for(let t of r.children){let n=Ag(e,t);if(n)return n}return null}function Og(e,r){if(e===r.value)return[r];for(let t of r.children){let n=Og(e,t);if(n.length)return n.unshift(r),n}return[]}var ln=class{value;children;constructor(r,t){this.value=r,this.children=t}toString(){return`TreeNode(${this.value})`}};function ia(e){let r={};return e&&e.children.forEach(t=>r[t.value.outlet]=t),r}var Yc=class extends gf{snapshot;constructor(r,t){super(r),this.snapshot=t,kg(this,r)}toString(){return this.snapshot.toString()}};function G1(e,r){let t=J2(e,r),n=new Nt([new oo("",{})]),i=new Nt({}),o=new Nt({}),s=new Nt({}),a=new Nt(""),c=new zr(n,i,s,a,o,he,e,t.root);return c.snapshot=t.root,new Yc(new ln(c,[]),t)}function J2(e,r){let t={},n={},i={},s=new fa([],t,i,"",n,he,e,null,{},r);return new Kc("",new ln(s,[]))}var zr=class{urlSubject;paramsSubject;queryParamsSubject;fragmentSubject;dataSubject;outlet;component;snapshot;_futureSnapshot;_routerState;_paramMap;_queryParamMap;title;url;params;queryParams;fragment;data;constructor(r,t,n,i,o,s,a,c){this.urlSubject=r,this.paramsSubject=t,this.queryParamsSubject=n,this.fragmentSubject=i,this.dataSubject=o,this.outlet=s,this.component=a,this._futureSnapshot=c,this.title=this.dataSubject?.pipe(E(l=>l[Qc]))??_(void 0),this.url=r,this.params=t,this.queryParams=n,this.fragment=i,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(E(r=>qo(r))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(E(r=>qo(r))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function Pg(e,r,t="emptyOnly"){let n,{routeConfig:i}=e;return r!==null&&(t==="always"||i?.path===""||!r.component&&!r.routeConfig?.loadComponent)?n={params:u(u({},r.params),e.params),data:u(u({},r.data),e.data),resolve:u(u(u(u({},e.data),r.data),i?.data),e._resolvedData)}:n={params:u({},e.params),data:u({},e.data),resolve:u(u({},e.data),e._resolvedData??{})},i&&H1(i)&&(n.resolve[Qc]=i.title),n}var fa=class{url;params;queryParams;fragment;data;outlet;component;routeConfig;_resolve;_resolvedData;_routerState;_paramMap;_queryParamMap;_environmentInjector;get title(){return this.data?.[Qc]}constructor(r,t,n,i,o,s,a,c,l,d){this.url=r,this.params=t,this.queryParams=n,this.fragment=i,this.data=o,this.outlet=s,this.component=a,this.routeConfig=c,this._resolve=l,this._environmentInjector=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??=qo(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=qo(this.queryParams),this._queryParamMap}toString(){let r=this.url.map(n=>n.toString()).join("/"),t=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${r}', path:'${t}')`}},Kc=class extends gf{url;constructor(r,t){super(t),this.url=r,kg(this,t)}toString(){return $1(this._root)}};function kg(e,r){r.value._routerState=e,r.children.forEach(t=>kg(e,t))}function $1(e){let r=e.children.length>0?` { ${e.children.map($1).join(", ")} } `:"";return`${e.value}${r}`}function Sg(e){if(e.snapshot){let r=e.snapshot,t=e._futureSnapshot;e.snapshot=t,ai(r.queryParams,t.queryParams)||e.queryParamsSubject.next(t.queryParams),r.fragment!==t.fragment&&e.fragmentSubject.next(t.fragment),ai(r.params,t.params)||e.paramsSubject.next(t.params),C2(r.url,t.url)||e.urlSubject.next(t.url),ai(r.data,t.data)||e.dataSubject.next(t.data)}else e.snapshot=e._futureSnapshot,e.dataSubject.next(e._futureSnapshot.data)}function Mg(e,r){let t=ai(e.params,r.params)&&M2(e.url,r.url),n=!e.parent!=!r.parent;return t&&!n&&(!e.parent||Mg(e.parent,r.parent))}function H1(e){return typeof e.title=="string"||e.title===null}var z1=new R(""),jg=(()=>{class e{activated=null;get activatedComponentRef(){return this.activated}_activatedRoute=null;name=he;activateEvents=new se;deactivateEvents=new se;attachEvents=new se;detachEvents=new se;routerOutletData=PS();parentContexts=f(Jo);location=f(jn);changeDetector=f(it);inputBinder=f(Xc,{optional:!0});supportsBindingToComponentInputs=!0;ngOnChanges(t){if(t.name){let{firstChange:n,previousValue:i}=t.name;if(n)return;this.isTrackedInParentContexts(i)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(i)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(t){return this.parentContexts.getContext(t)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let t=this.parentContexts.getContext(this.name);t?.route&&(t.attachRef?this.attach(t.attachRef,t.route):this.activateWith(t.route,t.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new ne(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new ne(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new ne(4012,!1);this.location.detach();let t=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(t.instance),t}attach(t,n){this.activated=t,this._activatedRoute=n,this.location.insert(t.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(t.instance)}deactivate(){if(this.activated){let t=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(t)}}activateWith(t,n){if(this.isActivated)throw new ne(4013,!1);this._activatedRoute=t;let i=this.location,s=t.snapshot.component,a=this.parentContexts.getOrCreateContext(this.name).children,c=new Rg(t,a,i.injector,this.routerOutletData);this.activated=i.createComponent(s,{index:i.length,injector:c,environmentInjector:n}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static \u0275fac=function(n){return new(n||e)};static \u0275dir=Y({type:e,selectors:[["router-outlet"]],inputs:{name:"name",routerOutletData:[1,"routerOutletData"]},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],features:[Ve]})}return e})(),Rg=class{route;childContexts;parent;outletData;constructor(r,t,n,i){this.route=r,this.childContexts=t,this.parent=n,this.outletData=i}get(r,t){return r===zr?this.route:r===Jo?this.childContexts:r===z1?this.outletData:this.parent.get(r,t)}},Xc=new R(""),Ug=(()=>{class e{outletDataSubscriptions=new Map;bindActivatedRouteToOutletComponent(t){this.unsubscribeFromRouteData(t),this.subscribeToRouteData(t)}unsubscribeFromRouteData(t){this.outletDataSubscriptions.get(t)?.unsubscribe(),this.outletDataSubscriptions.delete(t)}subscribeToRouteData(t){let{activatedRoute:n}=t,i=Dt([n.queryParams,n.params,n.data]).pipe(P(([o,s,a],c)=>(a=u(u(u({},o),s),a),c===0?_(a):Promise.resolve(a)))).subscribe(o=>{if(!t.isActivated||!t.activatedComponentRef||t.activatedRoute!==n||n.component===null){this.unsubscribeFromRouteData(t);return}let s=GS(n.component);if(!s){this.unsubscribeFromRouteData(t);return}for(let{templateName:a}of s.inputs)t.activatedComponentRef.setInput(a,o[a])});this.outletDataSubscriptions.set(t,i)}static \u0275fac=function(n){return new(n||e)};static \u0275prov=h({token:e,factory:e.\u0275fac})}return e})(),Bg=(()=>{class e{static \u0275fac=function(n){return new(n||e)};static \u0275cmp=Ge({type:e,selectors:[["ng-component"]],exportAs:["emptyRouterOutlet"],decls:1,vars:0,template:function(n,i){n&1&&on(0,"router-outlet")},dependencies:[jg],encapsulation:2})}return e})();function Vg(e){let r=e.children&&e.children.map(Vg),t=r?g(u({},e),{children:r}):u({},e);return!t.component&&!t.loadComponent&&(r||t.loadChildren)&&t.outlet&&t.outlet!==he&&(t.component=Bg),t}function Z2(e,r,t){let n=Jc(e,r._root,t?t._root:void 0);return new Yc(n,r)}function Jc(e,r,t){if(t&&e.shouldReuseRoute(r.value,t.value.snapshot)){let n=t.value;n._futureSnapshot=r.value;let i=Q2(e,r,t);return new ln(n,i)}else{if(e.shouldAttach(r.value)){let o=e.retrieve(r.value);if(o!==null){let s=o.route;return s.value._futureSnapshot=r.value,s.children=r.children.map(a=>Jc(e,a)),s}}let n=X2(r.value),i=r.children.map(o=>Jc(e,o));return new ln(n,i)}}function Q2(e,r,t){return r.children.map(n=>{for(let i of t.children)if(e.shouldReuseRoute(n.value,i.value.snapshot))return Jc(e,n,i);return Jc(e,n)})}function X2(e){return new zr(new Nt(e.url),new Nt(e.params),new Nt(e.queryParams),new Nt(e.fragment),new Nt(e.data),e.outlet,e.component,e)}var pa=class{redirectTo;navigationBehaviorOptions;constructor(r,t){this.redirectTo=r,this.navigationBehaviorOptions=t}},W1="ngNavigationCancelingError";function yf(e,r){let{redirectTo:t,navigationBehaviorOptions:n}=so(r)?{redirectTo:r,navigationBehaviorOptions:void 0}:r,i=q1(!1,Dr.Redirect);return i.url=t,i.navigationBehaviorOptions=n,i}function q1(e,r){let t=new Error(`NavigationCancelingError: ${e||""}`);return t[W1]=!0,t.cancellationCode=r,t}function eB(e){return Y1(e)&&so(e.url)}function Y1(e){return!!e&&e[W1]}var Ig=class{routeReuseStrategy;futureState;currState;forwardEvent;inputBindingEnabled;constructor(r,t,n,i,o){this.routeReuseStrategy=r,this.futureState=t,this.currState=n,this.forwardEvent=i,this.inputBindingEnabled=o}activate(r){let t=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(t,n,r),Sg(this.futureState.root),this.activateChildRoutes(t,n,r)}deactivateChildRoutes(r,t,n){let i=ia(t);r.children.forEach(o=>{let s=o.value.outlet;this.deactivateRoutes(o,i[s],n),delete i[s]}),Object.values(i).forEach(o=>{this.deactivateRouteAndItsChildren(o,n)})}deactivateRoutes(r,t,n){let i=r.value,o=t?t.value:null;if(i===o)if(i.component){let s=n.getContext(i.outlet);s&&this.deactivateChildRoutes(r,t,s.children)}else this.deactivateChildRoutes(r,t,n);else o&&this.deactivateRouteAndItsChildren(t,n)}deactivateRouteAndItsChildren(r,t){r.value.component&&this.routeReuseStrategy.shouldDetach(r.value.snapshot)?this.detachAndStoreRouteSubtree(r,t):this.deactivateRouteAndOutlet(r,t)}detachAndStoreRouteSubtree(r,t){let n=t.getContext(r.value.outlet),i=n&&r.value.component?n.children:t,o=ia(r);for(let s of Object.values(o))this.deactivateRouteAndItsChildren(s,i);if(n&&n.outlet){let s=n.outlet.detach(),a=n.children.onOutletDeactivated();this.routeReuseStrategy.store(r.value.snapshot,{componentRef:s,route:r,contexts:a})}}deactivateRouteAndOutlet(r,t){let n=t.getContext(r.value.outlet),i=n&&r.value.component?n.children:t,o=ia(r);for(let s of Object.values(o))this.deactivateRouteAndItsChildren(s,i);n&&(n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated()),n.attachRef=null,n.route=null)}activateChildRoutes(r,t,n){let i=ia(t);r.children.forEach(o=>{this.activateRoutes(o,i[o.value.outlet],n),this.forwardEvent(new hf(o.value.snapshot))}),r.children.length&&this.forwardEvent(new ff(r.value.snapshot))}activateRoutes(r,t,n){let i=r.value,o=t?t.value:null;if(Sg(i),i===o)if(i.component){let s=n.getOrCreateContext(i.outlet);this.activateChildRoutes(r,t,s.children)}else this.activateChildRoutes(r,t,n);else if(i.component){let s=n.getOrCreateContext(i.outlet);if(this.routeReuseStrategy.shouldAttach(i.snapshot)){let a=this.routeReuseStrategy.retrieve(i.snapshot);this.routeReuseStrategy.store(i.snapshot,null),s.children.onOutletReAttached(a.contexts),s.attachRef=a.componentRef,s.route=a.route.value,s.outlet&&s.outlet.attach(a.componentRef,a.route.value),Sg(a.route.value),this.activateChildRoutes(r,null,s.children)}else s.attachRef=null,s.route=i,s.outlet&&s.outlet.activateWith(i,s.injector),this.activateChildRoutes(r,null,s.children)}else this.activateChildRoutes(r,null,n)}},vf=class{path;route;constructor(r){this.path=r,this.route=this.path[this.path.length-1]}},aa=class{component;route;constructor(r,t){this.component=r,this.route=t}};function tB(e,r,t){let n=e._root,i=r?r._root:null;return Gc(n,i,t,[n.value])}function rB(e){let r=e.routeConfig?e.routeConfig.canActivateChild:null;return!r||r.length===0?null:{node:e,guards:r}}function ma(e,r){let t=Symbol(),n=r.get(e,t);return n===t?typeof e=="function"&&!pS(e)?e:r.get(e):n}function Gc(e,r,t,n,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=ia(r);return e.children.forEach(s=>{nB(s,o[s.value.outlet],t,n.concat([s.value]),i),delete o[s.value.outlet]}),Object.entries(o).forEach(([s,a])=>Hc(a,t.getContext(s),i)),i}function nB(e,r,t,n,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=e.value,s=r?r.value:null,a=t?t.getContext(e.value.outlet):null;if(s&&o.routeConfig===s.routeConfig){let c=iB(s,o,o.routeConfig.runGuardsAndResolvers);c?i.canActivateChecks.push(new vf(n)):(o.data=s.data,o._resolvedData=s._resolvedData),o.component?Gc(e,r,a?a.children:null,n,i):Gc(e,r,t,n,i),c&&a&&a.outlet&&a.outlet.isActivated&&i.canDeactivateChecks.push(new aa(a.outlet.component,s))}else s&&Hc(r,a,i),i.canActivateChecks.push(new vf(n)),o.component?Gc(e,null,a?a.children:null,n,i):Gc(e,null,t,n,i);return i}function iB(e,r,t){if(typeof t=="function")return Rr(r._environmentInjector,()=>t(e,r));switch(t){case"pathParamsChange":return!Wo(e.url,r.url);case"pathParamsOrQueryParamsChange":return!Wo(e.url,r.url)||!ai(e.queryParams,r.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Mg(e,r)||!ai(e.queryParams,r.queryParams);default:return!Mg(e,r)}}function Hc(e,r,t){let n=ia(e),i=e.value;Object.entries(n).forEach(([o,s])=>{i.component?r?Hc(s,r.children.getContext(o),t):Hc(s,null,t):Hc(s,r,t)}),i.component?r&&r.outlet&&r.outlet.isActivated?t.canDeactivateChecks.push(new aa(r.outlet.component,i)):t.canDeactivateChecks.push(new aa(null,i)):t.canDeactivateChecks.push(new aa(null,i))}function el(e){return typeof e=="function"}function oB(e){return typeof e=="boolean"}function sB(e){return e&&el(e.canLoad)}function aB(e){return e&&el(e.canActivate)}function cB(e){return e&&el(e.canActivateChild)}function lB(e){return e&&el(e.canDeactivate)}function uB(e){return e&&el(e.canMatch)}function K1(e){return e instanceof iS||e?.name==="EmptyError"}var Zd=Symbol("INITIAL_VALUE");function ha(){return P(e=>Dt(e.map(r=>r.pipe(Oe(1),fS(Zd)))).pipe(E(r=>{for(let t of r)if(t!==!0){if(t===Zd)return Zd;if(t===!1||dB(t))return t}return!0}),q(r=>r!==Zd),Oe(1)))}function dB(e){return so(e)||e instanceof pa}function J1(e){return e.aborted?_(void 0).pipe(Oe(1)):new Ht(r=>{let t=()=>{r.next(),r.complete()};return e.addEventListener("abort",t),()=>e.removeEventListener("abort",t)})}function Z1(e){return We(J1(e))}function fB(e){return ze(r=>{let{targetSnapshot:t,currentSnapshot:n,guards:{canActivateChecks:i,canDeactivateChecks:o}}=r;return o.length===0&&i.length===0?_(g(u({},r),{guardsResult:!0})):pB(o,t,n).pipe(ze(s=>s&&oB(s)?hB(t,i,e):_(s)),E(s=>g(u({},r),{guardsResult:s})))})}function pB(e,r,t){return ur(e).pipe(ze(n=>_B(n.component,n.route,t,r)),Hi(n=>n!==!0,!0))}function hB(e,r,t){return ur(r).pipe(rn(n=>Sc(gB(n.route.parent,t),mB(n.route,t),vB(e,n.path),yB(e,n.route))),Hi(n=>n!==!0,!0))}function mB(e,r){return e!==null&&r&&r(new pf(e)),_(!0)}function gB(e,r){return e!==null&&r&&r(new df(e)),_(!0)}function yB(e,r){let t=r.routeConfig?r.routeConfig.canActivate:null;if(!t||t.length===0)return _(!0);let n=t.map(i=>No(()=>{let o=r._environmentInjector,s=ma(i,o),a=aB(s)?s.canActivate(r,e):Rr(o,()=>s(r,e));return Ko(a).pipe(Hi())}));return _(n).pipe(ha())}function vB(e,r){let t=r[r.length-1],i=r.slice(0,r.length-1).reverse().map(o=>rB(o)).filter(o=>o!==null).map(o=>No(()=>{let s=o.guards.map(a=>{let c=o.node._environmentInjector,l=ma(a,c),d=cB(l)?l.canActivateChild(t,e):Rr(c,()=>l(t,e));return Ko(d).pipe(Hi())});return _(s).pipe(ha())}));return _(i).pipe(ha())}function _B(e,r,t,n){let i=r&&r.routeConfig?r.routeConfig.canDeactivate:null;if(!i||i.length===0)return _(!0);let o=i.map(s=>{let a=r._environmentInjector,c=ma(s,a),l=lB(c)?c.canDeactivate(e,r,t,n):Rr(a,()=>c(e,r,t,n));return Ko(l).pipe(Hi())});return _(o).pipe(ha())}function SB(e,r,t,n,i){let o=r.canLoad;if(o===void 0||o.length===0)return _(!0);let s=o.map(a=>{let c=ma(a,e),l=sB(c)?c.canLoad(r,t):Rr(e,()=>c(r,t)),d=Ko(l);return i?d.pipe(Z1(i)):d});return _(s).pipe(ha(),Q1(n))}function Q1(e){return rS(ge(r=>{if(typeof r!="boolean")throw yf(e,r)}),E(r=>r===!0))}function EB(e,r,t,n,i,o){let s=r.canMatch;if(!s||s.length===0)return _(!0);let a=s.map(c=>{let l=ma(c,e),d=uB(l)?l.canMatch(r,t,i):Rr(e,()=>l(r,t,i));return Ko(d).pipe(Z1(o))});return _(a).pipe(ha(),Q1(n))}
2var Mi=class e extends Error{segmentGroup;constructor(r){super(),this.segmentGroup=r||null,Object.setPrototypeOf(this,e.prototype)}},Zc=class e extends Error{urlTree;constructor(r){super(),this.urlTree=r,Object.setPrototypeOf(this,e.prototype)}};function bB(e){throw new ne(4e3,!1)}function DB(e){throw q1(!1,Dr.GuardRejected)}var xg=class{urlSerializer;urlTree;constructor(r,t){this.urlSerializer=r,this.urlTree=t}lineralizeSegments(r,t){return He(this,null,function*(){let n=[],i=t.root;for(;;){if(n=n.concat(i.segments),i.numberOfChildren===0)return n;if(i.numberOfChildren>1||!i.children[he])throw bB(`${r.redirectTo}`);i=i.children[he]}})}applyRedirectCommands(r,t,n,i,o){return He(this,null,function*(){let s=yield CB(t,i,o);if(s instanceof un)throw new Zc(s);let a=this.applyRedirectCreateUrlTree(s,this.urlSerializer.parse(s),r,n);if(s[0]==="/")throw new Zc(a);return a})}applyRedirectCreateUrlTree(r,t,n,i){let o=this.createSegmentGroup(r,t.root,n,i);return new un(o,this.createQueryParams(t.queryParams,this.urlTree.queryParams),t.fragment)}createQueryParams(r,t){let n={};return Object.entries(r).forEach(([i,o])=>{if(typeof o=="string"&&o[0]===":"){let a=o.substring(1);n[i]=t[a]}else n[i]=o}),n}createSegmentGroup(r,t,n,i){let o=this.createSegments(r,t.segments,n,i),s={};return Object.entries(t.children).forEach(([a,c])=>{s[a]=this.createSegmentGroup(r,c,n,i)}),new je(o,s)}createSegments(r,t,n,i){return t.map(o=>o.path[0]===":"?this.findPosParam(r,o,i):this.findOrReturn(o,n))}findPosParam(r,t,n){let i=n[t.path.substring(1)];if(!i)throw new ne(4001,!1);return i}findOrReturn(r,t){let n=0;for(let i of t){if(i.path===r.path)return t.splice(n),i;n++}return r}};function CB(e,r,t){if(typeof e=="string")return Promise.resolve(e);let n=e;return tf(Ko(Rr(t,()=>n(r))))}function TB(e,r){return e.providers&&!e._injector&&(e._injector=zu(e.providers,r,`Route: ${e.path}`)),e._injector??r}function zn(e){return e.outlet||he}function wB(e,r){let t=e.filter(n=>zn(n)===r);return t.push(...e.filter(n=>zn(n)!==r)),t}var Ng={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function X1(e){return{routeConfig:e.routeConfig,url:e.url,params:e.params,queryParams:e.queryParams,fragment:e.fragment,data:e.data,outlet:e.outlet,title:e.title,paramMap:e.paramMap,queryParamMap:e.queryParamMap}}function AB(e,r,t,n,i,o,s){let a=eC(e,r,t);if(!a.matched)return _(a);let c=X1(o(a));return n=TB(r,n),EB(n,r,t,i,c,s).pipe(E(l=>l===!0?a:u({},Ng)))}function eC(e,r,t){if(r.path==="")return r.pathMatch==="full"&&(e.hasChildren()||t.length>0)?u({},Ng):{matched:!0,consumedSegments:[],remainingSegments:t,parameters:{},positionalParamSegments:{}};let i=(r.matcher||C1)(t,e,r);if(!i)return u({},Ng);let o={};Object.entries(i.posParams??{}).forEach(([a,c])=>{o[a]=c.path});let s=i.consumed.length>0?u(u({},o),i.consumed[i.consumed.length-1].parameters):o;return{matched:!0,consumedSegments:i.consumed,remainingSegments:t.slice(i.consumed.length),parameters:s,positionalParamSegments:i.posParams??{}}}function b1(e,r,t,n,i){return t.length>0&&RB(e,t,n,i)?{segmentGroup:new je(r,MB(n,new je(t,e.children))),slicedSegments:[]}:t.length===0&&IB(e,t,n)?{segmentGroup:new je(e.segments,OB(e,t,n,e.children)),slicedSegments:t}:{segmentGroup:new je(e.segments,e.children),slicedSegments:t}}function OB(e,r,t,n){let i={};for(let o of t)if(Sf(e,r,o)&&!n[zn(o)]){let s=new je([],{});i[zn(o)]=s}return u(u({},n),i)}function MB(e,r){let t={};t[he]=r;for(let n of e)if(n.path===""&&zn(n)!==he){let i=new je([],{});t[zn(n)]=i}return t}function RB(e,r,t,n){return t.some(i=>!Sf(e,r,i)||!(zn(i)!==he)?!1:!(n!==void 0&&zn(i)===n))}function IB(e,r,t){return t.some(n=>Sf(e,r,n))}function Sf(e,r,t){return(e.hasChildren()||r.length>0)&&t.pathMatch==="full"?!1:t.path===""}function xB(e,r,t){return r.length===0&&!e.children[t]}var Lg=class{};function NB(e,r,t,n,i,o,s="emptyOnly",a){return He(this,null,function*(){return new Fg(e,r,t,n,i,s,o,a).recognize()})}var LB=31,Fg=class{injector;configLoader;rootComponentType;config;urlTree;paramsInheritanceStrategy;urlSerializer;abortSignal;applyRedirects;absoluteRedirectCount=0;allowRedirects=!0;constructor(r,t,n,i,o,s,a,c){this.injector=r,this.configLoader=t,this.rootComponentType=n,this.config=i,this.urlTree=o,this.paramsInheritanceStrategy=s,this.urlSerializer
2=a,this.abortSignal=c,this.applyRedirects=new xg(this.urlSerializer,this.urlTree)}noMatchError(r){return new ne(4002,`'${r.segmentGroup}'`)}recognize(){return He(this,null,function*(){let r=b1(this.urlTree.root,[],[],this.config).segmentGroup,{children:t,rootSnapshot:n}=yield this.match(r),i=new ln(n,t),o=new Kc("",i),s=P1(n,[],this.urlTree.queryParams,this.urlTree.fragment);return s.queryParams=this.urlTree.queryParams,o.url=this.urlSerializer.serialize(s),{state:o,tree:s}})}match(r){return He(this,null,function*(){let t=new fa([],Object.freeze({}),Object.freeze(u({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),he,this.rootComponentType,null,{},this.injector);try{return{children:yield this.processSegmentGroup(this.injector,this.config,r,he,t),rootSnapshot:t}}catch(n){if(n instanceof Zc)return this.urlTree=n.urlTree,this.match(n.urlTree.root);throw n instanceof Mi?this.noMatchError(n):n}})}processSegmentGroup(r,t,n,i,o){return He(this,null,function*(){if(n.segments.length===0&&n.hasChildren())return this.processChildren(r,t,n,o);let s=yield this.processSegment(r,t,n,n.segments,i,!0,o);return s instanceof ln?[s]:[]})}processChildren(r,t,n,i){return He(this,null,function*(){let o=[];for(let c of Object.keys(n.children))c==="primary"?o.unshift(c):o.push(c);let s=[];for(let c of o){let l=n.children[c],d=wB(t,c),m=yield this.processSegmentGroup(r,d,l,c,i);s.push(...m)}let a=tC(s);return FB(a),a})}processSegment(r,t,n,i,o,s,a){return He(this,null,function*(){for(let c of t)try{return yield this.processSegmentAgainstRoute(c._injector??r,t,c,n,i,o,s,a)}catch(l){if(l instanceof Mi||K1(l))continue;throw l}if(xB(n,i,o))return new Lg;throw new Mi(n)})}processSegmentAgainstRoute(r,t,n,i,o,s,a,c){return He(this,null,function*(){if(zn(n)!==s&&(s===he||!Sf(i,o,n)))throw new Mi(i);if(n.redirectTo===void 0)return this.matchSegmentAgainstRoute(r,i,n,o,s,c);if(this.allowRedirects&&a)return this.expandSegmentAgainstRouteUsingRedirect(r,i,t,n,o,s,c);throw new Mi(i)})}expandSegmentAgainstRouteUsingRedirect(r,t,n,i,o,s,a){return He(this,null,function*(){let{matched:c,parameters:l,consumedSegments:d,positionalParamSegments:m,remainingSegments:y}=eC(t,i,o);if(!c)throw new Mi(t);typeof i.redirectTo=="string"&&i.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>LB&&(this.allowRedirects=!1));let S=this.createSnapshot(r,i,o,l,a);if(this.abortSignal.aborted)throw new Error(this.abortSignal.reason);let N=yield this.applyRedirects.applyRedirectCommands(d,i.redirectTo,m,X1(S),r),T=yield this.applyRedirects.lineralizeSegments(i,N);return this.processSegment(r,n,t,T.concat(y),s,!1,a)})}createSnapshot(r,t,n,i,o){let s=new fa(n,i,Object.freeze(u({},this.urlTree.queryParams)),this.urlTree.fragment,kB(t),zn(t),t.component??t._loadedComponent??null,t,jB(t),r),a=Pg(s,o,this.paramsInheritanceStrategy);return s.params=Object.freeze(a.params),s.data=Object.freeze(a.data),s}matchSegmentAgainstRoute(r,t,n,i,o,s){return He(this,null,function*(){if(this.abortSignal.aborted)throw new Error(this.abortSignal.reason);let a=M=>this.createSnapshot(r,n,M.consumedSegments,M.parameters,s),c=yield tf(AB(t,n,i,r,this.urlSerializer,a,this.abortSignal));if(n.path==="**"&&(t.children={}),!c?.matched)throw new Mi(t);r=n._injector??r;let{routes:l}=yield this.getChildConfig(r,n,i),d=n._loadedInjector??r,{parameters:m,consumedSegments:y,remainingSegments:S}=c,N=this.createSnapshot(r,n,y,m,s),{segmentGroup:T,slicedSegments:v}=b1(t,y,S,l,o);if(v.length===0&&T.hasChildren()){let M=yield this.processChildren(d,l,T,N);return new ln(N,M)}if(l.length===0&&v.length===0)return new ln(N,[]);let b=zn(n)===o,D=yield this.processSegment(d,l,T,v,b?he:o,!0,N);return new ln(N,D instanceof ln?[D]:[])})}getChildConfig(r,t,n){return He(this,null,function*(){if(t.children)return{routes:t.children,injector:r};if(t.loadChildren){if(t._loadedRoutes!==void 0){let o=t._loadedNgModuleFactory;return o&&!t._loadedInjector&&(t._loadedInjector=o.create(r).injector),{routes:t._loadedRoutes,injector:t._loadedInjector}}
2if(this.abortSignal.aborted)throw new Error(this.abortSignal.reason);if(yield tf(SB(r,t,n,this.urlSerializer,this.abortSignal))){let o=yield this.configLoader.loadChildren(r,t);return t._loadedRoutes=o.routes,t._loadedInjector=o.injector,t._loadedNgModuleFactory=o.factory,o}throw DB(t)}return{routes:[],injector:r}})}};function FB(e){e.sort((r,t)=>r.value.outlet===he?-1:t.value.outlet===he?1:r.value.outlet.localeCompare(t.value.outlet))}function PB(e){let r=e.value.routeConfig;return r&&r.path===""}function tC(e){let r=[],t=new Set;for(let n of e){if(!PB(n)){r.push(n);continue}let i=r.find(o=>n.value.routeConfig===o.value.routeConfig);i!==void 0?(i.children.push(...n.children),t.add(i)):r.push(n)}for(let n of t){let i=tC(n.children);r.push(new ln(n.value,i))}return r.filter(n=>!t.has(n))}function kB(e){return e.data||{}}function jB(e){return e.resolve||{}}function UB(e,r,t,n,i,o,s){return ze(a=>He(null,null,function*(){let{state:c,tree:l}=yield NB(e,r,t,n,a.extractedUrl,i,o,s);return g(u({},a),{targetSnapshot:c,urlAfterRedirects:l})}))}function BB(e){return ze(r=>{let{targetSnapshot:t,guards:{canActivateChecks:n}}=r;if(!n.length)return _(r);let i=new Set(n.map(a=>a.route)),o=new Set;for(let a of i)if(!o.has(a))for(let c of rC(a))o.add(c);let s=0;return ur(o).pipe(rn(a=>i.has(a)?VB(a,t,e):(a.data=Pg(a,a.parent,e).resolve,_(void 0))),ge(()=>s++),Cm(1),ze(a=>s===o.size?_(r):Lt))})}function rC(e){let r=e.children.map(t=>rC(t)).flat();return[e,...r]}function VB(e,r,t){let n=e.routeConfig,i=e._resolve;return n?.title!==void 0&&!H1(n)&&(i[Qc]=n.title),No(()=>(e.data=Pg(e,e.parent,t).resolve,GB(i,e,r).pipe(E(o=>(e._resolvedData=o,e.data=u(u({},e.data),o),null)))))}function GB(e,r,t){let n=bg(e);if(n.length===0)return _({});let i={};return ur(n).pipe(ze(o=>$B(e[o],r,t).pipe(Hi(),ge(s=>{if(s instanceof pa)throw yf(new Ri,s);i[o]=s}))),Cm(1),E(()=>i),U(o=>K1(o)?Lt:lt(o)))}function $B(e,r,t){let n=r._environmentInjector,i=ma(e,n),o=i.resolve?i.resolve(r,t):Rr(n,()=>i(r,t));return Ko(o)}function D1(e){return P(r=>{let t=e(r);return t?ur(t).pipe(E(()=>r)):_(r)})}var Gg=(()=>{class e{buildTitle(t){let n,i=t.root;for(;i!==void 0;)n=this.getResolvedTitleForRoute(i)??n,i=i.children.find(o=>o.outlet===he);return n}getResolvedTitleForRoute(t){return t.data[Qc]}static \u0275fac=function(n){return new(n||e)};static \u0275prov=h({token:e,factory:()=>f(nC),providedIn:"root"})}return e})(),nC=(()=>{class e extends Gg{title;constructor(t){super(),this.title=t}updateTitle(t){let n=this.buildTitle(t);n!==void 0&&this.title.setTitle(n)}static \u0275fac=function(n){return new(n||e)(p(UE))};static \u0275prov=h({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),lo=new R("",{factory:()=>({})}),Zo=new R(""),Ef=(()=>{class e{componentLoaders=new WeakMap;childrenLoaders=new WeakMap;onLoadStartListener;onLoadEndListener;compiler=f(LS);loadComponent(t,n){return He(this,null,function*(){if(this.componentLoaders.get(n))return this.componentLoaders.get(n);if(n._loadedComponent)return Promise.resolve(n._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(n);let i=He(this,null,function*(){try{let o=yield w1(Rr(t,()=>n.loadComponent())),s=yield sC(oC(o));return this.onLoadEndListener&&this.onLoadEndListener(n),n._loadedComponent=s,s}finally{this.componentLoaders.delete(n)}});return this.componentLoaders.set(n,i),i})}loadChildren(t,n){if(this.childrenLoaders.get(n))return this.childrenLoaders.get(n);if(n._loadedRoutes)return Promise.resolve({routes:n._loadedRoutes,injector:n._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(n);let i=He(this,null,function*(){try{let o=yield iC(n,this.compiler,t,this.onLoadEndListener);return n._loadedRoutes=o.routes,n._loadedInjector=o.injector,n._loadedNgModuleFactory=o.factory,o}finally{this.childrenLoaders.delete(n)}});return this.childrenLoaders.set(n,i),i}static \u0275fac=function(n){return new(n||e)};static \u0275prov=h({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function iC(e,r,t,n){return He(this,null,function*(){let i=yield w1(Rr(t,()=>e.loadChildren())),o=yield sC(oC(i)),s;o instanceof IS||Array.isArray(o)?s=o:s=yield r.compileModuleAsync(o),n&&n(e);let a,c,l=!1,d;return Array.isArray(s)?(c=s,l=!0):(a=s.create(t).injector,d=s,c=a.get(Zo,[],{optional:!0,self:!0}).flat()),{routes:c.map(Vg),injector:a,factory:d}})}function HB(e){return e&&typeof e=="object"&&"default"in e}function oC(e){return HB(e)?e.default:e}function sC(e){return He(this,null,function*(){return e})}var bf=(()=>{class e{static \u0275fac=function(n){return new(n||e)};static \u0275prov=h({token:e,factory:()=>f(zB),providedIn:"root"})}return e})(),zB=(()=>{class e{shouldProcessUrl(t){return!0}extract(t){return t}merge(t,n){return t}static \u0275fac=function(n){return new(n||e)};static \u0275prov=h({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),$g=new R(""),Hg=new R("");function aC(e,r,t){let n=e.get(Hg),i=e.get(Ce);if(!i.startViewTransition||n.skipNextTransition)return n.skipNextTransition=!1,new Promise(l=>setTimeout(l));let o,s=new Promise(l=>{o=l}),a=i.startViewTransition(()=>(o(),WB(e)));a.updateCallbackDone.catch(l=>{}),a.ready.catch(l=>{}),a.finished.catch(l=>{});let{onViewTransitionCreated:c}=n;return c&&Rr(e,()=>c({transition:a,from:r,to:t})),s}function WB(e){return new Promise(r=>{Br({read:()=>setTimeout(r)},{injector:e})})}var qB=()=>{},zg=new R(""),Df=(()=>{class e{currentNavigation=Ye(null,{equal:()=>!1});currentTransition=null;lastSuccessfulNavigation=Ye(null);events=new me;
2transitionAbortWithErrorSubject=new me;configLoader=f(Ef);environmentInjector=f(Mr);destroyRef=f(_t);urlSerializer=f(co);rootContexts=f(Jo);location=f(qi);inputBindingEnabled=f(Xc,{optional:!0})!==null;titleStrategy=f(Gg);options=f(lo,{optional:!0})||{};paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly";urlHandlingStrategy=f(bf);createViewTransition=f($g,{optional:!0});navigationErrorHandler=f(zg,{optional:!0});navigationId=0;get hasRequestedNavigation(){return this.navigationId!==0}transitions;afterPreactivation=()=>_(void 0);rootComponentType=null;destroyed=!1;constructor(){let t=i=>this.events.next(new lf(i)),n=i=>this.events.next(new uf(i));this.configLoader.onLoadEndListener=n,this.configLoader.onLoadStartListener=t,this.destroyRef.onDestroy(()=>{this.destroyed=!0})}complete(){this.transitions?.complete()}handleNavigationRequest(t){let n=++this.navigationId;Ie(()=>{this.transitions?.next(g(u({},t),{extractedUrl:this.urlHandlingStrategy.extract(t.rawUrl),targetSnapshot:null,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null,id:n,routesRecognizeHandler:{},beforeActivateHandler:{}}))})}setupNavigations(t){return this.transitions=new Nt(null),this.transitions.pipe(q(n=>n!==null),P(n=>{let i=!1,o=new AbortController,s=()=>!i&&this.currentTransition?.id===n.id;return _(n).pipe(P(a=>{if(this.navigationId>n.id)return this.cancelNavigationTransition(n,"",Dr.SupersededByNewNavigation),Lt;this.currentTransition=n;let c=this.lastSuccessfulNavigation();this.currentNavigation.set({id:a.id,initialUrl:a.rawUrl,extractedUrl:a.extractedUrl,targetBrowserUrl:typeof a.extras.browserUrl=="string"?this.urlSerializer.parse(a.extras.browserUrl):a.extras.browserUrl,trigger:a.source,extras:a.extras,previousNavigation:c?g(u({},c),{previousNavigation:null}):null,abort:()=>o.abort(),routesRecognizeHandler:a.routesRecognizeHandler,beforeActivateHandler:a.beforeActivateHandler});let l=!t.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),d=a.extras.onSameUrlNavigation??t.onSameUrlNavigation;if(!l&&d!=="reload")return this.events.next(new ci(a.id,this.urlSerializer.serialize(a.rawUrl),"",ca.IgnoredSameUrlNavigation)),a.resolve(!1),Lt;if(this.urlHandlingStrategy.shouldProcessUrl(a.rawUrl))return _(a).pipe(P(m=>(this.events.next(new ao(m.id,this.urlSerializer.serialize(m.extractedUrl),m.source,m.restoredState)),m.id!==this.navigationId?Lt:Promise.resolve(m))),UB(this.environmentInjector,this.configLoader,this.rootComponentType,t.config,this.urlSerializer,this.paramsInheritanceStrategy,o.signal),ge(m=>{n.targetSnapshot=m.targetSnapshot,n.urlAfterRedirects=m.urlAfterRedirects,this.currentNavigation.update(y=>(y.finalUrl=m.urlAfterRedirects,y)),this.events.next(new qc)}),P(m=>ur(n.routesRecognizeHandler.deferredHandle??_(void 0)).pipe(E(()=>m))),ge(()=>{let m=new Wc(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(m)}));if(l&&this.urlHandlingStrategy.shouldProcessUrl(a.currentRawUrl)){let{id:m,extractedUrl:y,source:S,restoredState:N,extras:T}=a,v=new ao(m,this.urlSerializer.serialize(y),S,N);this.events.next(v);let b=G1(this.rootComponentType,this.environmentInjector).snapshot;return this.currentTransition=n=g(u({},a),{targetSnapshot:b,urlAfterRedirects:y,extras:g(u({},T),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.update(D=>(D.finalUrl=y,D)),_(n)}else return this.events.next(new ci(a.id,this.urlSerializer.serialize(a.extractedUrl),"",ca.IgnoredByUrlHandlingStrategy)),a.resolve(!1),Lt}),E(a=>{let c=new of(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);return this.events.next(c),this.currentTransition=n=g(u({},a),{guards:tB(a.targetSnapshot,a.currentSnapshot,this.rootContexts)}),n}),fB(a=>this.events.next(a)),P(a=>{if(n.guardsResult=a.guardsResult,a.guardsResult&&typeof a.guardsResult!="boolean")throw yf(this.urlSerializer,a.guardsResult);let c=new sf(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot,!!a.guardsResult);if(this.events.next(c),!s())return Lt;if(!a.guardsResult)return this.cancelNavigationTransition(a,"",Dr.GuardRejected),Lt;if(a.guards.canActivateChecks.length===0)return _(a);let l=new af(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);if(this.events.next(l),!s())return Lt;let d=!1;return _(a).pipe(BB(this.paramsInheritanceStrategy),ge({next:()=>{d=!0;let m=new cf(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(m)},complete:()=>
2{d||this.cancelNavigationTransition(a,"",Dr.NoDataFromResolver)}}))}),D1(a=>{let c=d=>{let m=[];if(d.routeConfig?._loadedComponent)d.component=d.routeConfig?._loadedComponent;else if(d.routeConfig?.loadComponent){let y=d._environmentInjector;m.push(this.configLoader.loadComponent(y,d.routeConfig).then(S=>{d.component=S}))}for(let y of d.children)m.push(...c(y));return m},l=c(a.targetSnapshot.root);return l.length===0?_(a):ur(Promise.all(l).then(()=>a))}),D1(()=>this.afterPreactivation()),P(()=>{let{currentSnapshot:a,targetSnapshot:c}=n,l=this.createViewTransition?.(this.environmentInjector,a.root,c.root);return l?ur(l).pipe(E(()=>n)):_(n)}),Oe(1),P(a=>{let c=Z2(t.routeReuseStrategy,a.targetSnapshot,a.currentRouterState);this.currentTransition=n=a=g(u({},a),{targetRouterState:c}),this.currentNavigation.update(d=>(d.targetRouterState=c,d)),this.events.next(new ua);let l=n.beforeActivateHandler.deferredHandle;return l?ur(l.then(()=>a)):_(a)}),ge(a=>{new Ig(t.routeReuseStrategy,n.targetRouterState,n.currentRouterState,c=>this.events.next(c),this.inputBindingEnabled).activate(this.rootContexts),s()&&(i=!0,this.currentNavigation.update(c=>(c.abort=qB,c)),this.lastSuccessfulNavigation.set(Ie(this.currentNavigation)),this.events.next(new Hr(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects))),this.titleStrategy?.updateTitle(a.targetRouterState.snapshot),a.resolve(!0))}),We(J1(o.signal).pipe(q(()=>!i&&!n.targetRouterState),ge(()=>{this.cancelNavigationTransition(n,o.signal.reason+"",Dr.Aborted)}))),ge({complete:()=>{i=!0}}),We(this.transitionAbortWithErrorSubject.pipe(ge(a=>{throw a}))),Fo(()=>{o.abort(),i||this.cancelNavigationTransition(n,"",Dr.SupersededByNewNavigation),this.currentTransition?.id===n.id&&(this.currentNavigation.set(null),this.currentTransition=null)}),U(a=>{if(i=!0,this.destroyed)return n.resolve(!1),Lt;if(Y1(a))this.events.next(new bn(n.id,this.urlSerializer.serialize(n.extractedUrl),a.message,a.cancellationCode)),eB(a)?this.events.next(new da(a.url,a.navigationBehaviorOptions)):n.resolve(!1);else{let c=new Yo(n.id,this.urlSerializer.serialize(n.extractedUrl),a,n.targetSnapshot??void 0);try{let l=Rr(this.environmentInjector,()=>this.navigationErrorHandler?.(c));if(l instanceof pa){let{message:d,cancellationCode:m}=yf(this.urlSerializer,l);this.events.next(new bn(n.id,this.urlSerializer.serialize(n.extractedUrl),d,m)),this.events.next(new da(l.redirectTo,l.navigationBehaviorOptions))}else throw this.events.next(c),a}catch(l){this.options.resolveNavigationPromiseOnError?n.resolve(!1):n.reject(l)}}return Lt}))}))}cancelNavigationTransition(t,n,i){let o=new bn(t.id,this.urlSerializer.serialize(t.extractedUrl),n,i);this.events.next(o),t.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){let t=this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))),n=Ie(this.currentNavigation),i=n?.targetBrowserUrl??n?.extractedUrl;return t.toString()!==i?.toString()&&!n?.extras.skipLocationChange}static \u0275fac=function(n){return new(n||e)};static \u0275prov=h({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function YB(e){return e!==sa}var cC=new R("");var lC=(()=>{class e{static \u0275fac=function(n){return new(n||e)};static \u0275prov=h({token:e,factory:()=>f(KB),providedIn:"root"})}return e})(),_f=class{shouldDetach(r){return!1}store(r,t){}shouldAttach(r){return!1}retrieve(r){return null}shouldReuseRoute(r,t){return r.routeConfig===t.routeConfig}shouldDestroyInjector(r){return!0}},KB=(()=>{class e extends _f{static \u0275fac=(()=>{let t;return function(i){return(t||(t=Le(e)))(i||e)}})();static \u0275prov=h({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),Cf=(()=>{class e{urlSerializer=f(co);options=f(lo,{optional:!0})||{};canceledNavigationResolution=this.options.canceledNavigationResolution||"replace";location=f(qi);urlHandlingStrategy=f(bf);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";currentUrlTree=new un;getCurrentUrlTree(){return this.currentUrlTree}rawUrlTree=this.currentUrlTree;getRawUrlTree(){return this.rawUrlTree}createBrowserPath({finalUrl:t,initialUrl:n,targetBrowserUrl:i}){let o=t!==void 0?this.urlHandlingStrategy.merge(t,n):n,s=i??o;return s instanceof un?this.urlSerializer.serialize(s):s}routerUrlState(t){return t?.targetBrowserUrl===void 0||t?.finalUrl===void 0?{}:{\u0275routerUrl:this.urlSerializer.serialize(t.finalUrl)}}commitTransition({targetRouterState:t,finalUrl:n,initialUrl:i}){n&&t?(this.currentUrlTree=n,this.rawUrlTree=this.urlHandlingStrategy.merge(n,i),this.routerState=t):this.rawUrlTree=i}routerState=G1(null,f(Mr));getRouterState(){return this.routerState}_stateMemento=this.createStateMemento();get stateMemento(){return this._stateMemento}updateStateMemento(){this._stateMemento=this.createStateMemento()}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}restoredState(){return this.location.getState()}static \u0275fac=function(n){return new(n||e)};static \u0275prov=h({token:e,factory:()=>f(JB),providedIn:"root"})}return e})(),JB=(()=>{class e extends Cf{currentPageId=0;lastSuccessfulId=-1;get browserPageId(){return this.canceledNavigationResolution!=="computed"?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}registerNonRouterCurrentEntryChangeListener(t){return this.location.subscribe(n=>{n.type==="popstate"&&setTimeout(()=>{t(n.url,n.state,"popstate",{replaceUrl:!0})})})}handleRouterEvent(t,n){t instanceof ao?this.updateStateMemento():t instanceof ci?this.commitTransition(n):t instanceof Wc?this.urlUpdateStrategy==="eager"&&(n.extras.skipLocationChange||this.setBrowserUrl(this.createBrowserPath(n),n)):t instanceof ua?(this.commitTransition(n),this.urlUpdateStrategy==="deferred"&&!n.extras.skipLocationChange&&this.setBrowserUrl(this.createBrowserPath(n),n)):t instanceof bn&&!V1(t)?this.restoreHistory(n):t instanceof Yo?this.restoreHistory(n,!0):t instanceof Hr&&(this.lastSuccessfulId=t.id,this.currentPageId=this.browserPageId)}setBrowserUrl(t,n){let{extras:i,id:o}=n,{replaceUrl:s,state:a}=i;if(this.location.isCurrentPathEqualTo(t)||s){let c=this.browserPageId,l=u(u({},a),this.generateNgRouterState(o,c,n));this.location.replaceState(t,"",l)}else{let c=u(u({},a),this.generateNgRouterState(o,this.browserPageId+1,n));this.location.go(t,"",c)}}restoreHistory(t,n=!1){if(this.canceledNavigationResolution==="computed"){let i=this.browserPageId,o=this.currentPageId-i;o!==0?this.location.historyGo(o):this.getCurrentUrlTree()===t.finalUrl&&o===0&&(this.resetInternalState(t),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(n&&this.resetInternalState(t),this.resetUrlToCurrentUrlTree())}resetInternalState({finalUrl:t}){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,t??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.getRawUrlTree()),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(t,n,i){return this.canceledNavigationResolution==="computed"?u({navigationId:t,\u0275routerPageId:n},this.routerUrlState(i)):u({navigationId:t},this.routerUrlState(i))}static \u0275fac=(()=>{let t;return function(i){return(t||(t=Le(e)))(i||e)}})();static \u0275prov=h({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function Tf(e,r){e.events.pipe(q(t=>t instanceof Hr||t instanceof bn||t instanceof Yo||t instanceof ci),E(t=>t instanceof Hr||t instanceof ci?0:(t instanceof bn?t.code===Dr.Redirect||t.code===Dr.SupersededByNewNavigation:!1)?2:1),q(t=>t!==2),Oe(1)).subscribe(()=>{r()})}var Wr=(()=>{class e{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}disposed=!1;nonRouterCurrentEntryChangeSubscription;console=f(Im);stateManager=f(Cf);options=f(lo,{optional:!0})||{};pendingTasks=f(mS);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";navigationTransitions=f(Df);
2urlSerializer=f(co);location=f(qi);urlHandlingStrategy=f(bf);injector=f(Mr);_events=new me;get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}navigated=!1;routeReuseStrategy=f(lC);injectorCleanup=f(cC,{optional:!0});onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore";config=f(Zo,{optional:!0})?.flat()??[];componentInputBindingEnabled=!!f(Xc,{optional:!0});currentNavigation=this.navigationTransitions.currentNavigation.asReadonly();constructor(){this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this).subscribe({error:t=>{}}),this.subscribeToNavigationEvents()}eventsSubscription=new Pu;subscribeToNavigationEvents(){let t=this.navigationTransitions.events.subscribe(n=>{try{let i=this.navigationTransitions.currentTransition,o=Ie(this.navigationTransitions.currentNavigation);if(i!==null&&o!==null){if(this.stateManager.handleRouterEvent(n,o),n instanceof bn&&n.code!==Dr.Redirect&&n.code!==Dr.SupersededByNewNavigation)this.navigated=!0;else if(n instanceof Hr)this.navigated=!0,this.injectorCleanup?.(this.routeReuseStrategy,this.routerState,this.config);else if(n instanceof da){let s=n.navigationBehaviorOptions,a=this.urlHandlingStrategy.merge(n.url,i.currentRawUrl),c=u({scroll:i.extras.scroll,browserUrl:i.extras.browserUrl,info:i.extras.info,skipLocationChange:i.extras.skipLocationChange,replaceUrl:i.extras.replaceUrl||this.urlUpdateStrategy==="eager"||YB(i.source)},s);this.scheduleNavigation(a,sa,null,c,{resolve:i.resolve,reject:i.reject,promise:i.promise})}}K2(n)&&this._events.next(n)}catch(i){this.navigationTransitions.transitionAbortWithErrorSubject.next(i)}});this.eventsSubscription.add(t)}resetRootComponentType(t){this.routerState.root.component=t,this.navigationTransitions.rootComponentType=t}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),sa,this.stateManager.restoredState(),{replaceUrl:!0})}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((t,n,i,o)=>{this.navigateToSyncWithBrowser(t,i,n,o)})}navigateToSyncWithBrowser(t,n,i,o){let s=i?.navigationId?i:null,a=i?.\u0275routerUrl??t;if(i?.\u0275routerUrl&&(o=g(u({},o),{browserUrl:t})),i){let l=u({},i);delete l.navigationId,delete l.\u0275routerPageId,delete l.\u0275routerUrl,Object.keys(l).length!==0&&(o.state=l)}let c=this.parseUrl(a);this.scheduleNavigation(c,n,s,o).catch(l=>{this.disposed||this.injector.get(Ms)(l)})}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return Ie(this.navigationTransitions.currentNavigation)}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(t){this.config=t.map(Vg),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this._events.unsubscribe(),this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription?.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0,this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(t,n={}){let{relativeTo:i,queryParams:o,fragment:s,queryParamsHandling:a,preserveFragment:c}=n,l=c?this.currentUrlTree.fragment:s,d=null;switch(a??this.options.defaultQueryParamsHandling){case"merge":d=u(u({},this.currentUrlTree.queryParams),o);break;case"preserve":d=this.currentUrlTree.queryParams;break;default:d=o||null}d!==null&&(d=this.removeEmptyProps(d));let m;try{let y=i?i.snapshot:this.routerState.snapshot.root;m=k1(y)}catch(y){(typeof t[0]!="string"||t[0][0]!=="/")&&(t=[]),m=this.currentUrlTree.root}return j1(m,t,d,l??null,this.urlSerializer)}navigateByUrl(t,n={skipLocationChange:!1}){let i=so(t)?t:this.parseUrl(t),o=this.urlHandlingStrategy.merge(i,this.rawUrlTree);return this.scheduleNavigation(o,sa,null,n)}navigate(t,n={skipLocationChange:!1}){return ZB(t),this.navigateByUrl(this.createUrlTree(t,n),n)}serializeUrl(t){return this.urlSerializer.serialize(t)}parseUrl(t){try{return this.urlSerializer.parse(t)}catch(n){return this.console.warn(zi(4018,!1)),this.urlSerializer.parse("/")}}isActive(t,n){let i;if(n===!0?i=u({},O1):n===!1?i=u({},Dg):i=u(u({},Dg),n),so(t))return y1(this.currentUrlTree,t,i);let o=this.parseUrl(t);return y1(this.currentUrlTree,o,i)}removeEmptyProps(t){return Object.entries(t).reduce((n,[i,o])=>(o!=null&&(n[i]=o),n),{})}
2scheduleNavigation(t,n,i,o,s){if(this.disposed)return Promise.resolve(!1);let a,c,l;s?(a=s.resolve,c=s.reject,l=s.promise):l=new Promise((m,y)=>{a=m,c=y});let d=this.pendingTasks.add();return Tf(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(d))}),this.navigationTransitions.handleNavigationRequest({source:n,restoredState:i,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:t,extras:o,resolve:a,reject:c,promise:l,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),l.catch(Promise.reject.bind(Promise))}static \u0275fac=function(n){return new(n||e)};static \u0275prov=h({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function ZB(e){for(let r=0;r<e.length;r++)if(e[r]==null)throw new ne(4008,!1)}var XB=(()=>{class e{router=f(Wr);stateManager=f(Cf);fragment=Ye("");queryParams=Ye({});path=Ye("");serializer=f(co);constructor(){this.updateState(),this.router.events?.subscribe(t=>{t instanceof Hr&&this.updateState()})}updateState(){let{fragment:t,root:n,queryParams:i}=this.stateManager.getCurrentUrlTree();this.fragment.set(t),this.queryParams.set(i),this.path.set(this.serializer.serialize(new un(n)))}static \u0275fac=function(n){return new(n||e)};static \u0275prov=h({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),uC=(()=>{class e{router;route;tabIndexAttribute;renderer;el;locationStrategy;hrefAttributeValue=f(new FS("href"),{optional:!0});reactiveHref=Nm(()=>this.isAnchorElement?this.computeHref(this._urlTree()):this.hrefAttributeValue);get href(){return Ie(this.reactiveHref)}set href(t){this.reactiveHref.set(t)}set target(t){this._target.set(t)}get target(){return Ie(this._target)}_target=Ye(void 0);set queryParams(t){this._queryParams.set(t)}get queryParams(){return Ie(this._queryParams)}_queryParams=Ye(void 0,{equal:()=>!1});set fragment(t){this._fragment.set(t)}get fragment(){return Ie(this._fragment)}_fragment=Ye(void 0);set queryParamsHandling(t){this._queryParamsHandling.set(t)}get queryParamsHandling(){return Ie(this._queryParamsHandling)}_queryParamsHandling=Ye(void 0);set state(t){this._state.set(t)}get state(){return Ie(this._state)}_state=Ye(void 0,{equal:()=>!1});set info(t){this._info.set(t)}get info(){return Ie(this._info)}_info=Ye(void 0,{equal:()=>!1});set relativeTo(t){this._relativeTo.set(t)}get relativeTo(){return Ie(this._relativeTo)}_relativeTo=Ye(void 0);set preserveFragment(t){this._preserveFragment.set(t)}get preserveFragment(){return Ie(this._preserveFragment)}_preserveFragment=Ye(!1);set skipLocationChange(t){this._skipLocationChange.set(t)}get skipLocationChange(){return Ie(this._skipLocationChange)}_skipLocationChange=Ye(!1);set replaceUrl(t){this._replaceUrl.set(t)}get replaceUrl(){return Ie(this._replaceUrl)}_replaceUrl=Ye(!1);isAnchorElement;onChanges=new me;applicationErrorHandler=f(Ms);options=f(lo,{optional:!0});reactiveRouterState=f(XB);constructor(t,n,i,o,s,a){this.router=t,this.route=n,this.tabIndexAttribute=i,this.renderer=o,this.el=s,this.locationStrategy=a;let c=s.nativeElement.tagName?.toLowerCase();this.isAnchorElement=c==="a"||c==="area"||!!(typeof customElements=="object"&&customElements.get(c)?.observedAttributes?.includes?.("href"))}setTabIndexIfNotOnNativeEl(t){this.tabIndexAttribute!=null||this.isAnchorElement||this.applyAttributeValue("tabindex",t)}ngOnChanges(t){this.onChanges.next(this)}routerLinkInput=Ye(null);set routerLink(t){t==null?(this.routerLinkInput.set(null),this.setTabIndexIfNotOnNativeEl(null)):(so(t)?this.routerLinkInput.set(t):this.routerLinkInput.set(Array.isArray(t)?t:[t]),this.setTabIndexIfNotOnNativeEl("0"))}onClick(t,n,i,o,s){let a=this._urlTree();if(a===null||this.isAnchorElement&&(t!==0||n||i||o||s||typeof this.target=="string"&&this.target!="_self"))return!0;let c={skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info};return this.router.navigateByUrl(a,c)?.catch(l=>{this.applicationErrorHandler(l)}),!this.isAnchorElement}ngOnDestroy(){}applyAttributeValue(t,n){let i=this.renderer,o=this.el.nativeElement;n!==null?i.setAttribute(o,t,n):i.removeAttribute(o,t)}_urlTree=Er(()=>{this.reactiveRouterState.path(),this._preserveFragment()&&this.reactiveRouterState.fragment();let t=i=>i==="preserve"||i==="merge";(t(this._queryParamsHandling())||t(this.options?.defaultQueryParamsHandling))&&this.reactiveRouterState.queryParams();let n=this.routerLinkInput();return n===null||!this.router.createUrlTree?null:so(n)?n:this.router.createUrlTree(n,{relativeTo:this._relativeTo()!==void 0?this._relativeTo():this.route,queryParams:this._queryParams(),fragment:this._fragment(),queryParamsHandling:this._queryParamsHandling(),preserveFragment:this._preserveFragment()})},{equal:(t,n)=>this.computeHref(t)===this.computeHref(n)});get urlTree(){return Ie(this._urlTree)}computeHref(t){return t!==null&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(t))??"":null}static \u0275fac=function(n){return new(n||e)(K(Wr),K(zr),Rs("tabindex"),K(nn),K(Me),K(Vn))};static \u0275dir=Y({type:e,selectors:[["","routerLink",""]],hostVars:2,hostBindings:function(n,i){n&1&&Se("click",function(s){return i.onClick(s.button,s.ctrlKey,s.shiftKey,s.altKey,s.metaKey)}),n&2&&Ke("href",i.reactiveHref(),AS)("target",i._target())},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[2,"preserveFragment","preserveFragment",Un],skipLocationChange:[2,"skipLocationChange","skipLocationChange",Un],replaceUrl:[2,"replaceUrl","replaceUrl",Un],routerLink:"routerLink"},features:[Ve]})}return e})();var tl=class{},eV=(()=>{class e{preload(t,n){return n().pipe(U(()=>_(null)))}static \u0275fac=function(n){return new(n||e)};static \u0275prov=h({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var dC=(()=>{class e{router;injector;preloadingStrategy;loader;subscription;constructor(t,n,i,o){this.router=t,this.injector=n,this.preloadingStrategy=i,this.loader=o}setUpPreloading(){this.subscription=this.router.events.pipe(q(t=>t instanceof Hr),rn(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription?.unsubscribe()}processRoutes(t,n){let i=[];for(let o of n){o.providers&&!o._injector&&(o._injector=zu(o.providers,t,""));let s=o._injector??t;o._loadedNgModuleFactory&&!o._loadedInjector&&(o._loadedInjector=o._loadedNgModuleFactory.create(s).injector);let a=o._loadedInjector??s;(o.loadChildren&&!o._loadedRoutes&&o.canLoad===void 0||o.loadComponent&&!o._loadedComponent)&&i.push(this.preloadConfig(s,o)),(o.children||o._loadedRoutes)&&i.push(this.processRoutes(a,o.children??o._loadedRoutes))}return ur(i).pipe(bm())}preloadConfig(t,n){return this.preloadingStrategy.preload(n,()=>{if(t.destroyed)return _(null);let i;n.loadChildren&&n.canLoad===void 0?i=ur(this.loader.loadChildren(t,n)):i=_(null);let o=i.pipe(ze(s=>s===null?_(void 0):(n._loadedRoutes=s.routes,n._loadedInjector=s.injector,n._loadedNgModuleFactory=s.factory,this.processRoutes(s.injector??t,s.routes))));if(n.loadComponent&&!n._loadedComponent){let s=this.loader.loadComponent(t,n);return ur([o,s]).pipe(bm())}else return o}
2)}static \u0275fac=function(n){return new(n||e)(p(Wr),p(Mr),p(tl),p(Ef))};static \u0275prov=h({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),qg=new R(""),fC=(()=>{class e{options;routerEventsSubscription;scrollEventsSubscription;lastId=0;lastSource=sa;restoredId=0;store={};isHydrating=f(_S,{optional:!0})??!1;urlSerializer=f(co);zone=f(Be);viewportScroller=f(qm);transitions=f(Df);constructor(t){this.options=t,this.options.scrollPositionRestoration||="disabled",this.options.anchorScrolling||="disabled",this.isHydrating&&f(_n).whenStable().then(()=>{this.isHydrating=!1})}init(){this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(t=>{t instanceof ao?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=t.navigationTrigger,this.restoredId=t.restoredState?t.restoredState.navigationId:0):t instanceof Hr?(this.lastId=t.id,this.scheduleScrollEvent(t,this.urlSerializer.parse(t.urlAfterRedirects).fragment)):t instanceof ci&&t.code===ca.IgnoredSameUrlNavigation&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(t,this.urlSerializer.parse(t.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(t=>{if(!(t instanceof la)||t.scrollBehavior==="manual")return;let n={behavior:"instant"};t.position?this.options.scrollPositionRestoration==="top"?this.viewportScroller.scrollToPosition([0,0],n):this.options.scrollPositionRestoration==="enabled"&&this.viewportScroller.scrollToPosition(t.position,n):t.anchor&&this.options.anchorScrolling==="enabled"?this.viewportScroller.scrollToAnchor(t.anchor):this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.scrollToPosition([0,0])})}scheduleScrollEvent(t,n){if(this.isHydrating)return;let i=Ie(this.transitions.currentNavigation)?.extras.scroll;this.zone.runOutsideAngular(()=>He(this,null,function*(){yield new Promise(o=>{setTimeout(o),typeof requestAnimationFrame<"u"&&requestAnimationFrame(o)}),this.zone.run(()=>{this.transitions.events.next(new la(t,this.lastSource==="popstate"?this.store[this.restoredId]:null,n,i))})}))}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}static \u0275fac=function(n){RS()};static \u0275prov=h({token:e,factory:e.\u0275fac})}return e})();function tV(e,...r){return yi([{provide:Zo,multi:!0,useValue:e},[],{provide:zr,useFactory:pC},{provide:bc,multi:!0,useFactory:hC},r.map(t=>t.\u0275providers)])}function pC(){return f(Wr).routerState.root}function ga(e,r){return{\u0275kind:e,\u0275providers:r}}function rV(e={}){return ga(4,[{provide:qg,useFactory:()=>new fC(e)}])}function hC(){let e=f(Te);return r=>{let t=e.get(_n);if(r!==t.components[0])return;let n=e.get(Wr),i=e.get(mC);e.get(Yg)===1&&n.initialNavigation(),e.get(vC,null,{optional:!0})?.setUpPreloading(),e.get(qg,null,{optional:!0})?.init(),n.resetRootComponentType(t.componentTypes[0]),i.closed||(i.next(),i.complete(),i.unsubscribe())}}var mC=new R("",{factory:()=>new me}),Yg=new R("",{factory:()=>1});function gC(){let e=[{provide:Rm,useValue:!0},{provide:Yg,useValue:0},xm(()=>{let r=f(Te);return r.get(Pm,Promise.resolve()).then(()=>new Promise(n=>{let i=r.get(Wr),o=r.get(mC);Tf(i,()=>{n(!0)}),r.get(Df).afterPreactivation=()=>(n(!0),o.closed?_(void 0):o),i.initialNavigation()}))})];return ga(2,e)}function yC(){let e=[xm(()=>{f(Wr).setUpLocationChangeListener()}),{provide:Yg,useValue:2}];return ga(3,e)}var vC=new R("");function _C(e){return ga(0,[{provide:vC,useExisting:dC},{provide:tl,useExisting:e}])}function SC(){return ga(8,[Ug,{provide:Xc,useExisting:Ug}])}function EC(e){xs("NgRouterViewTransitions");let r=[{provide:$g,useValue:aC},{provide:Hg,useValue:u({skipNextTransition:!!e?.skipInitialTransition},e)}];return ga(9,r)}var bC=[qi,{provide:co,useClass:Ri},Wr,Jo,{provide:zr,useFactory:pC},Ef,[]],nV=(()=>{class e{constructor(){}static forRoot(t,n){return{ngModule:e,providers:[bC,[],{provide:Zo,multi:!0,useValue:t},[],n?.errorHandler?{provide:zg,useValue:n.errorHandler}:[],{provide:lo,useValue:n||{}},n?.useHash?oV():sV(),iV(),n?.preloadingStrategy?_C(n.preloadingStrategy).\u0275providers:[],n?.initialNavigation?aV(n):[],n?.bindToComponentInputs?SC().\u0275providers:[],n?.enableViewTransitions?EC().\u0275providers:[],cV()]}}static forChild(t){return{ngModule:e,providers:[{provide:Zo,multi:!0,useValue:t}]}}static \u0275fac=function(n){return new(n||e)};static \u0275mod=G({type:e});static \u0275inj=V({})}return e})();function iV(){return{provide:qg,useFactory:()=>{let e=f(qm),r=f(lo);return r.scrollOffset&&e.setOffset(r.scrollOffset),new fC(r)}}}function oV(){return{provide:Vn,useClass:$m}}function sV(){return{provide:Vn,useClass:rd}}function aV(e){return[e.initialNavigation==="disabled"?yC().\u0275providers:[],e.initialNavigation==="enabledBlocking"?gC().\u0275providers:[]]}var Wg=new R("");function cV(){return[{provide:Wg,useFactory:hC},{provide:bc,multi:!0,useExisting:Wg}]}
2var xi=class extends Error{},oy=class extends xi{constructor(r){super(`Invalid DateTime: ${r.toMessage()}`)}},sy=class extends xi{constructor(r){super(`Invalid Interval: ${r.toMessage()}`)}},ay=class extends xi{constructor(r){super(`Invalid Duration: ${r.toMessage()}`)}},po=class extends xi{},Nf=class extends xi{constructor(r){super(`Invalid unit ${r}`)}},nr=class extends xi{},li=class extends xi{constructor(){super("Zone is an abstract class")}},z="numeric",Yn="short",hn="long",Lf={year:z,month:z,day:z},XC={year:z,month:Yn,day:z},lV={year:z,month:Yn,day:z,weekday:Yn},eT={year:z,month:hn,day:z},tT={year:z,month:hn,day:z,weekday:hn},rT={hour:z,minute:z},nT={hour:z,minute:z,second:z},iT={hour:z,minute:z,second:z,timeZoneName:Yn},oT={hour:z,minute:z,second:z,timeZoneName:hn},sT={hour:z,minute:z,hourCycle:"h23"},aT={hour:z,minute:z,second:z,hourCycle:"h23"},cT={hour:z,minute:z,second:z,hourCycle:"h23",timeZoneName:Yn},lT={hour:z,minute:z,second:z,hourCycle:"h23",timeZoneName:hn},uT={year:z,month:z,day:z,hour:z,minute:z},dT={year:z,month:z,day:z,hour:z,minute:z,second:z},fT={year:z,month:Yn,day:z,hour:z,minute:z},pT={year:z,month:Yn,day:z,hour:z,minute:z,second:z},uV={year:z,month:Yn,day:z,weekday:Yn,hour:z,minute:z},hT={year:z,month:hn,day:z,hour:z,minute:z,timeZoneName:Yn},mT={year:z,month:hn,day:z,hour:z,minute:z,second:z,timeZoneName:Yn},gT={year:z,month:hn,day:z,weekday:hn,hour:z,minute:z,timeZoneName:hn},yT={year:z,month:hn,day:z,weekday:hn,hour:z,minute:z,second:z,timeZoneName:hn},ts=class{get type(){throw new li}get name(){throw new li}get ianaName(){return this.name}get isUniversal(){throw new li}offsetName(r,t){throw new li}formatOffset(r,t){throw new li}offset(r){throw new li}equals(r){throw new li}get isValid(){throw new li}},Jg=null,Ff=class e extends ts{static get instance(){return Jg===null&&(Jg=new e),Jg}get type(){return"system"}get name(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(r,{format:t,locale:n}){return OT(r,t,n)}formatOffset(r,t){return sl(this.offset(r),t)}offset(r){return-new Date(r).getTimezoneOffset()}equals(r){return r.type==="system"}get isValid(){return!0}},cy=new Map;function dV(e){let r=cy.get(e);return r===void 0&&(r=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:e,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"}),cy.set(e,r)),r}var fV={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};function pV(e,r){let t=e.format(r).replace(/\u200E/g,""),n=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(t),[,i,o,s,a,c,l,d]=n;return[s,i,o,a,c,l,d]}function hV(e,r){let t=e.formatToParts(r),n=[];for(let i=0;i<t.length;i++){let{type:o,value:s}=t[i],a=fV[o];o==="era"?n[a]=s:fe(a)||(n[a]=parseInt(s,10))}return n}var Zg=new Map,mo=class e extends ts{static create(r){let t=Zg.get(r);return t===void 0&&Zg.set(r,t=new e(r)),t}static resetCache(){Zg.clear(),cy.clear()}static isValidSpecifier(r){return this.isValidZone(r)}static isValidZone(r){if(!r)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:r}).format(),!0}catch(t){return!1}}constructor(r){super(),this.zoneName=r,this.valid=e.isValidZone(r)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(r,{format:t,locale:n}){return OT(r,t,n,this.name)}formatOffset(r,t){return sl(this.offset(r),t)}offset(r){if(!this.valid)return NaN;let t=new Date(r);if(isNaN(t))return NaN;let n=dV(this.name),[i,o,s,a,c,l,d]=n.formatToParts?hV(n,t):pV(n,t);a==="BC"&&(i=-Math.abs(i)+1);let y=Vf({year:i,month:o,day:s,hour:c===24?0:c,minute:l,second:d,millisecond:0}),S=+t,N=S%1e3;return S-=N>=0?N:1e3+N,(y-S)/(60*1e3)}equals(r){return r.type==="iana"&&r.name===this.name}get isValid(){return this.valid}},DC={};function mV(e,r={}){let t=JSON.stringify([e,r]),n=DC[t];return n||(n=new Intl.ListFormat(e,r),DC[t]=n),n}var ly=new Map;function uy(e,r={}){let t=JSON.stringify([e,r]),n=ly.get(t);return n===void 0&&(n=new Intl.DateTimeFormat(e,r),ly.set(t,n)),n}var dy=new Map;function gV(e,r={}){let t=JSON.stringify([e,r]),n=dy.get(t);return n===void 0&&(n=new Intl.NumberFormat(e,r),dy.set(t,n)),n}var fy=new Map;function yV(e,r={}){let s=r,{base:t}=s,n=Or(s,["base"]),i=JSON.stringify([e,n]),o=fy.get(i);return o===void 0&&(o=new Intl.RelativeTimeFormat(e,r),fy.set(i,o)),o}var nl=null;function vV(){return nl||(nl=new Intl.DateTimeFormat().resolvedOptions().locale,nl)}var py=new Map;function vT(e){let r=py.get(e);return r===void 0&&(r=new Intl.DateTimeFormat(e).resolvedOptions(),py.set(e,r)),r}var hy=new Map;function _V(e){let r=hy.get(e);if(!r){let t=new Intl.Locale(e);r="getWeekInfo"in t?t.getWeekInfo():t.weekInfo,"minimalDays"in r||(r=u(u({},_T),r)),hy.set(e,r)}return r}function SV(e){let r=e.indexOf("-x-");r!==-1&&(e=e.substring(0,r));let t=e.indexOf("-u-");if(t===-1)return[e];{let n,i;try{n=uy(e).resolvedOptions(),i=e}catch(a){let c=e.substring(0,t);n=uy(c).resolvedOptions(),i=c}let{numberingSystem:o,calendar:s}=n;return[i,o,s]}}function EV(e,r,t){return(t||r)&&(e.includes("-u-")||(e+="-u"),t&&(e+=`-ca-${t}`),r&&(e+=`-nu-${r}`)),e}function bV(e){let r=[];for(let t=1;t<=12;t++){let n=ve.utc(2009,t,1);r.push(e(n))}return r}function DV(e){let r=[];for(let t=1;t<=7;t++){let n=ve.utc(2016,11,13+t);r.push(e(n))}return r}function wf(e,r,t,n){let i=e.listingMode();return i==="error"?null:i==="en"?t(r):n(r)}function CV(e){return e.numberingSystem&&e.numberingSystem!=="latn"?!1:e.numberingSystem==="latn"||!e.locale||e.locale.startsWith("en")||vT(e.locale).numberingSystem==="latn"}var my=class{constructor(r,t,n){this.padTo=n.padTo||0,this.floor=n.floor||!1;let a=n,{padTo:i,floor:o}=a,s=Or(a,["padTo","floor"]);if(!t||Object.keys(s).length>0){let c=u({useGrouping:!1},n);n.padTo>0&&(c.minimumIntegerDigits=n.padTo),this.inf=gV(r,c)}}format(r){if(this.inf){let t=this.floor?Math.floor(r):r;return this.inf.format(t)}else{let t=this.floor?Math.floor(r):Ay(r,3);return Ut(t,this.padTo)}}},gy=class{constructor(r,t,n){this.opts=n,this.originalZone=void 0;let i;if(this.opts.timeZone)this.dt=r;else if(r.zone.type==="fixed"){let s=-1*(r.offset/60),a=s>=0?`Etc/GMT+${s}`:`Etc/GMT${s}`;r.offset!==0&&mo.create(a).valid?(i=a,this.dt=r):(i="UTC",this.dt=r.offset===0?r:r.setZone("UTC").plus({minutes:r.offset}),this.originalZone=r.zone)}else r.zone.type==="system"?this.dt=r:r.zone.type==="iana"?(this.dt=r,i=r.zone.name):(i="UTC",this.dt=r.setZone("UTC").plus({minutes:r.offset}),this.originalZone=r.zone);let o=u({},this.opts);o.timeZone=o.timeZone||i,this.dtf=uy(t,o)}format(){return this.originalZone?this.formatToParts().map(({value:r})=>r).join(""):this.dtf.format(this.dt.toJSDate())}formatToParts(){let r=this.dtf.formatToParts(this.dt.toJSDate());return this.originalZone?r.map(t=>{if(t.type==="timeZoneName"){let n=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return g(u({},t),{value:n})}else return t}):r}resolvedOptions(){return this.dtf.resolvedOptions()}},yy=class{constructor(r,t,n){this.opts=u({style:"long"},n),!t&&wT()&&(this.rtf=yV(r,n))}format(r,t){return this.rtf?this.rtf.format(r,t):zV(t,r,this.opts.numeric,this.opts.style!=="long")}formatToParts(r,t){return this.rtf?this.rtf.formatToParts(r,t):[]}},_T={firstDay:1,minimalDays:4,weekend:[6,7]},tt=class e{static fromOpts(r){return e.create(r.locale,r.numberingSystem,r.outputCalendar,r.weekSettings,r.defaultToEN)}static create(r,t,n,i,o=!1){let s=r||gt.defaultLocale,a=s||(o?"en-US":vV()),c=t||gt.defaultNumberingSystem,l=n||gt.defaultOutputCalendar,d=Sy(i)||gt.defaultWeekSettings;return new e(a,c,l,d,s)}static resetCache(){nl=null,ly.clear(),dy.clear(),fy.clear(),py.clear(),hy.clear()}static fromObject({locale:r,numberingSystem:t,outputCalendar:n,weekSettings:i}={}){return e.create(r,t,n,i)}
vendor: 18,686 bytes, line 2
2constructor(r,t,n,i,o){let[s,a,c]=SV(r);this.locale=s,this.numberingSystem=t||a||null,this.outputCalendar=n||c||null,this.weekSettings=i,this.intl=EV(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=o,this.fastNumbersCached=null}get fastNumbers(){return this.fastNumbersCached==null&&(this.fastNumbersCached=CV(this)),this.fastNumbersCached}listingMode(){let r=this.isEnglish(),t=(this.numberingSystem===null||this.numberingSystem==="latn")&&(this.outputCalendar===null||this.outputCalendar==="gregory");return r&&t?"en":"intl"}clone(r){return!r||Object.getOwnPropertyNames(r).length===0?this:e.create(r.locale||this.specifiedLocale,r.numberingSystem||this.numberingSystem,r.outputCalendar||this.outputCalendar,Sy(r.weekSettings)||this.weekSettings,r.defaultToEN||!1)}redefaultToEN(r={}){return this.clone(g(u({},r),{defaultToEN:!0}))}redefaultToSystem(r={}){return this.clone(g(u({},r),{defaultToEN:!1}))}months(r,t=!1){return wf(this,r,IT,()=>{let n=this.intl==="ja"||this.intl.startsWith("ja-");t&=!n;let i=t?{month:r,day:"numeric"}:{month:r},o=t?"format":"standalone";if(!this.monthsCache[o][r]){let s=n?a=>this.dtFormatter(a,i).format():a=>this.extract(a,i,"month");this.monthsCache[o][r]=bV(s)}return this.monthsCache[o][r]})}weekdays(r,t=!1){return wf(this,r,LT,()=>{let n=t?{weekday:r,year:"numeric",month:"long",day:"numeric"}:{weekday:r},i=t?"format":"standalone";return this.weekdaysCache[i][r]||(this.weekdaysCache[i][r]=DV(o=>this.extract(o,n,"weekday"))),this.weekdaysCache[i][r]})}meridiems(){return wf(this,void 0,()=>FT,()=>{if(!this.meridiemCache){let r={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[ve.utc(2016,11,13,9),ve.utc(2016,11,13,19)].map(t=>this.extract(t,r,"dayperiod"))}return this.meridiemCache})}eras(r){return wf(this,r,PT,()=>{let t={era:r};return this.eraCache[r]||(this.eraCache[r]=[ve.utc(-40,1,1),ve.utc(2017,1,1)].map(n=>this.extract(n,t,"era"))),this.eraCache[r]})}extract(r,t,n){let i=this.dtFormatter(r,t),o=i.formatToParts(),s=o.find(a=>a.type.toLowerCase()===n);return s?s.value:null}numberFormatter(r={}){return new my(this.intl,r.forceSimple||this.fastNumbers,r)}dtFormatter(r,t={}){return new gy(r,this.intl,t)}relFormatter(r={}){return new yy(this.intl,this.isEnglish(),r)}listFormatter(r={}){return mV(this.intl,r)}isEnglish(){return this.locale==="en"||this.locale.toLowerCase()==="en-us"||vT(this.intl).locale.startsWith("en-us")}getWeekSettings(){return this.weekSettings?this.weekSettings:AT()?_V(this.locale):_T}getStartOfWeek(){return this.getWeekSettings().firstDay}getMinDaysInFirstWeek(){return this.getWeekSettings().minimalDays}getWeekendDays(){return this.getWeekSettings().weekend}equals(r){return this.locale===r.locale&&this.numberingSystem===r.numberingSystem&&this.outputCalendar===r.outputCalendar}toString(){return`Locale(${this.locale}, ${this.numberingSystem}, ${this.outputCalendar})`}},Qg=null,wn=class e extends ts{static get utcInstance(){return Qg===null&&(Qg=new e(0)),Qg}static instance(r){return r===0?e.utcInstance:new e(r)}static parseSpecifier(r){if(r){let t=r.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(t)return new e(Gf(t[1],t[2]))}return null}constructor(r){super(),this.fixed=r}get type(){return"fixed"}get name(){return this.fixed===0?"UTC":`UTC${sl(this.fixed,"narrow")}`}get ianaName(){return this.fixed===0?"Etc/UTC":`Etc/GMT${sl(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(r,t){return sl(this.fixed,t)}get isUniversal(){return!0}offset(){return this.fixed}equals(r){return r.type==="fixed"&&r.fixed===this.fixed}get isValid(){return!0}},vy=class extends ts{constructor(r){super(),this.zoneName=r}get type(){return"invalid"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(){return null}formatOffset(){return""}offset(){return NaN}equals(){return!1}get isValid(){return!1}};function fo(e,r){if(fe(e)||e===null)return r;if(e instanceof ts)return e;if(RV(e)){let t=e.toLowerCase();return t==="default"?r:t==="local"||t==="system"?Ff.instance:t==="utc"||t==="gmt"?wn.utcInstance:wn.parseSpecifier(t)||mo.create(e)}else return ho(e)?wn.instance(e):typeof e=="object"&&"offset"in e&&typeof e.offset=="function"?e:new vy(e)}var Dy={arab:"[\u0660-\u0669]",arabext:"[\u06F0-\u06F9]",bali:"[\u1B50-\u1B59]",beng:"[\u09E6-\u09EF]",deva:"[\u0966-\u096F]",fullwide:"[\uFF10-\uFF19]",gujr:"[\u0AE6-\u0AEF]",hanidec:"[\u3007|\u4E00|\u4E8C|\u4E09|\u56DB|\u4E94|\u516D|\u4E03|\u516B|\u4E5D]",khmr:"[\u17E0-\u17E9]",knda:"[\u0CE6-\u0CEF]",laoo:"[\u0ED0-\u0ED9]",limb:"[\u1946-\u194F]",mlym:"[\u0D66-\u0D6F]",mong:"[\u1810-\u1819]",mymr:"[\u1040-\u1049]",orya:"[\u0B66-\u0B6F]",tamldec:"[\u0BE6-\u0BEF]",telu:"[\u0C66-\u0C6F]",thai:"[\u0E50-\u0E59]",tibt:"[\u0F20-\u0F29]",latn:"\\d"},CC={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},TV=Dy.hanidec.replace(/[\[|\]]/g,"").split("");function wV(e){let r=parseInt(e,10);if(isNaN(r)){r="";for(let t=0;t<e.length;t++){let n=e.charCodeAt(t);if(e[t].search(Dy.hanidec)!==-1)r+=TV.indexOf(e[t]);else for(let i in CC){let[o,s]=CC[i];n>=o&&n<=s&&(r+=n-o)}}return parseInt(r,10)}else return r}var _y=new Map;function AV(){_y.clear()}function Wn({numberingSystem:e},r=""){let t=e||"latn",n=_y.get(t);n===void 0&&(n=new Map,_y.set(t,n));let i=n.get(r);return i===void 0&&(i=new RegExp(`${Dy[t]}${r}`),n.set(r,i)),i}var TC=()=>Date.now(),wC="system",AC=null,OC=null,MC=null,RC=60,IC,xC=null,gt=class{static get now(){return TC}static set now(r){TC=r}static set defaultZone(r){wC=r}static get defaultZone(){return fo(wC,Ff.instance)}static get defaultLocale(){return AC}static set defaultLocale(r){AC=r}static get defaultNumberingSystem(){return OC}static set defaultNumberingSystem(r){OC=r}static get defaultOutputCalendar(){return MC}static set defaultOutputCalendar(r){MC=r}static get defaultWeekSettings(){return xC}static set defaultWeekSettings(r){xC=Sy(r)}static get twoDigitCutoffYear(){return RC}static set twoDigitCutoffYear(r){RC=r%100}static get throwOnInvalid(){return IC}static set throwOnInvalid(r){IC=r}static resetCaches(){tt.resetCache(),mo.resetCache(),ve.resetCache(),AV()}},pn=class{constructor(r,t){this.reason=r,this.explanation=t}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}},ST=[0,31,59,90,120,151,181,212,243,273,304,334],ET=[0,31,60,91,121,152,182,213,244,274,305,335];function Cn(e,r){return new pn("unit out of range",`you specified ${r} (of type ${typeof r}) as a ${e}, which is invalid`)}function Cy(e,r,t){let n=new Date(Date.UTC(e,r-1,t));e<100&&e>=0&&n.setUTCFullYear(n.getUTCFullYear()-1900);let i=n.getUTCDay();return i===0?7:i}function bT(e,r,t){return t+(cl(e)?ET:ST)[r-1]}function DT(e,r){let t=cl(e)?ET:ST,n=t.findIndex(o=>o<r),i=r-t[n];return{month:n+1,day:i}}function Ty(e,r){return(e-r+7)%7+1}function Pf(e,r=4,t=1){let{year:n,month:i,day:o}=e,s=bT(n,i,o),a=Ty(Cy(n,i,o),t),c=Math.floor((s-a+14-r)/7),l;return c<1?(l=n-1,c=al(l,r,t)):c>al(n,r,t)?(l=n+1,c=1):l=n,u({weekYear:l,weekNumber:c,weekday:a},$f(e))}function NC(e,r=4,t=1){let{weekYear:n,weekNumber:i,weekday:o}=e,s=Ty(Cy(n,1,r),t),a=Ea(n),c=i*7+o-s-7+r,l;c<1?(l=n-1,c+=Ea(l)):c>a?(l=n+1,c-=Ea(n)):l=n;let{month:d,day:m}=DT(l,c);return u({year:l,month:d,day:m},$f(e))}function Xg(e){let{year:r,month:t,day:n}=e,i=bT(r,t,n);return u({year:r,ordinal:i},$f(e))}function LC(e){let{year:r,ordinal:t}=e,{month:n,day:i}=DT(r,t);return u({year:r,month:n,day:i},$f(e))}function FC(e,r){if(!fe(e.localWeekday)||!fe(e.localWeekNumber)||!fe(e.localWeekYear)){if(!fe(e.weekday)||!fe(e.weekNumber)||!fe(e.weekYear))throw new po("Cannot mix locale-based week fields with ISO-based week fields");return fe(e.localWeekday)||(e.weekday=e.localWeekday),fe(e.localWeekNumber)||(e.weekNumber=e.localWeekNumber),fe(e.localWeekYear)||(e.weekYear=e.localWeekYear),delete e.localWeekday,delete e.localWeekNumber,delete e.localWeekYear,{minDaysInFirstWeek:r.getMinDaysInFirstWeek(),startOfWeek:r.getStartOfWeek()}}else return{minDaysInFirstWeek:4,startOfWeek:1}}function OV(e,r=4,t=1){let n=Bf(e.weekYear),i=Tn(e.weekNumber,1,al(e.weekYear,r,t)),o=Tn(e.weekday,1,7);return n?i?o?!1:Cn("weekday",e.weekday):Cn("week",e.weekNumber):Cn("weekYear",e.weekYear)}function MV(e){let r=Bf(e.year),t=Tn(e.ordinal,1,Ea(e.year));return r?t?!1:Cn("ordinal",e.ordinal):Cn("year",e.year)}function CT(e){let r=Bf(e.year),t=Tn(e.month,1,12),n=Tn(e.day,1,kf(e.year,e.month));return r?t?n?!1:Cn("day",e.day):Cn("month",e.month):Cn("year",e.year)}function TT(e){let{hour:r,minute:t,second:n,millisecond:i}=e,o=Tn(r,0,23)||r===24&&t===0&&n===0&&i===0,s=Tn(t,0,59),a=Tn(n,0,59),c=Tn(i,0,999);return o?s?a?c?!1:Cn("millisecond",i):Cn("second",n):Cn("minute",t):Cn("hour",r)}function fe(e){return typeof e>"u"}function ho(e){return typeof e=="number"}function Bf(e){return typeof e=="number"&&e%1===0}function RV(e){return typeof e=="string"}function IV(e){return Object.prototype.toString.call(e)==="[object Date]"}function wT(){try{return typeof Intl<"u"&&!!Intl.RelativeTimeFormat}catch(e){return!1}}function AT(){try{return typeof Intl<"u"&&!!Intl.Locale&&("weekInfo"in Intl.Locale.prototype||"getWeekInfo"in Intl.Locale.prototype)}catch(e){return!1}}function xV(e){return Array.isArray(e)?e:[e]}function PC(e,r,t){if(e.length!==0)return e.reduce((n,i)=>{let o=[r(i),i];return n&&t(n[0],o[0])===n[0]?n:o},null)[1]}function NV(e,r){return r.reduce((t,n)=>(t[n]=e[n],t),{})}function Ca(e,r){return Object.prototype.hasOwnProperty.call(e,r)}function Sy(e){if(e==null)return null;if(typeof e!="object")throw new nr("Week settings must be an object");if(!Tn(e.firstDay,1,7)||!Tn(e.minimalDays,1,7)||!Array.isArray(e.weekend)||e.weekend.some(r=>!Tn(r,1,7)))throw new nr("Invalid week settings");return{firstDay:e.firstDay,minimalDays:e.minimalDays,weekend:Array.from(e.weekend)}}function Tn(e,r,t){return Bf(e)&&e>=r&&e<=t}function LV(e,r){return e-r*Math.floor(e/r)}function Ut(e,r=2){let t=e<0,n;return t?n="-"+(""+-e).padStart(r,"0"):n=(""+e).padStart(r,"0"),n}function uo(e){if(!(fe(e)||e===null||e===""))return parseInt(e,10)}function Qo(e){if(!(fe(e)||e===null||e===""))return parseFloat(e)}function wy(e){if(!(fe(e)||e===null||e==="")){let r=parseFloat("0."+e)*1e3;return Math.floor(r)}}function Ay(e,r,t="round"){let n=10**r;switch(t){case"expand":return e>0?Math.ceil(e*n)/n:Math.floor(e*n)/n;case"trunc":return Math.trunc(e*n)/n;case"round":return Math.round(e*n)/n;case"floor":return Math.floor(e*n)/n;case"ceil":return Math.ceil(e*n)/n;default:throw new RangeError(`Value rounding ${t} is out of range`)}}function cl(e){return e%4===0&&(e%100!==0||e%400===0)}function Ea(e){return cl(e)?366:365}function kf(e,r){let t=LV(r-1,12)+1,n=e+(r-t)/12;return t===2?cl(n)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][t-1]}function Vf(e){let r=Date.UTC(e.year,e.month-1,e.day,e.hour,e.minute,e.second,e.millisecond);return e.year<100&&e.year>=0&&(r=new Date(r),r.setUTCFullYear(e.year,e.month-1,e.day)),+r}function kC(e,r,t){return-Ty(Cy(e,1,r),t)+r-1}function al(e,r=4,t=1){let n=kC(e,r,t),i=kC(e+1,r,t);return(Ea(e)-n+i)/7}function Ey(e){return e>99?e:e>gt.twoDigitCutoffYear?1900+e:2e3+e}function OT(e,r,t,n=null){let i=new Date(e),o={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};n&&(o.timeZone=n);let s=u({timeZoneName:r},o),a=new Intl.DateTimeFormat(t,s).formatToParts(i).find(c=>c.type.toLowerCase()==="timezonename");return a?a.value:null}function Gf(e,r){let t=parseInt(e,10);Number.isNaN(t)&&(t=0);let n=parseInt(r,10)||0,i=t<0||Object.is(t,-0)?-n:n;return t*60+i}function MT(e){let r=Number(e);if(typeof e=="boolean"||e===""||!Number.isFinite(r))throw new nr(`Invalid unit value ${e}`);return r}function jf(e,r){let t={};for(let n in e)if(Ca(e,n)){let i=e[n];if(i==null)continue;t[r(n)]=MT(i)}return t}function sl(e,r){let t=Math.trunc(Math.abs(e/60)),n=Math.trunc(Math.abs(e%60)),i=e>=0?"+":"-";switch(r){case"short":return`${i}${Ut(t,2)}:${Ut(n,2)}`;case"narrow":return`${i}${t}${n>0?`:${n}`:""}`;case"techie":return`${i}${Ut(t,2)}${Ut(n,2)}`;default:throw new RangeError(`Value format ${r} is out of range for property format`)}}function $f(e){return NV(e,["hour","minute","second","millisecond"])}var FV=["January","February","March","April","May","June","July","August","September","October","November","December"],RT=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],PV=["J","F","M","A","M","J","J","A","S","O","N","D"];function IT(e){switch(e){case"narrow":return[...PV];case"short":return[...RT];case"long":return[...FV];case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}var xT=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],NT=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],kV=["M","T","W","T","F","S","S"];function LT(e){switch(e){case"narrow":return[...kV];case"short":return[...NT];case"long":return[...xT];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}var FT=["AM","PM"],jV=["Before Christ","Anno Domini"],UV=["BC","AD"],BV=["B","A"];function PT(e){switch(e){case"narrow":return[...BV];case"short":return[...UV];case"long":return[...jV];default:return null}}function VV(e){return FT[e.hour<12?0:1]}function GV(e,r){return LT(r)[e.weekday-1]}function $V(e,r){return IT(r)[e.month-1]}function HV(e,r){return PT(r)[e.year<0?0:1]}function zV(e,r,t="always",n=!1){let i={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},o=["hours","minutes","seconds"].indexOf(e)===-1;if(t==="auto"&&o){let m=e==="days";switch(r){case 1:return m?"tomorrow":`next ${i[e][0]}`;case-1:return m?"yesterday":`last ${i[e][0]}`;case 0:return m?"today":`this ${i[e][0]}`}}let s=Object.is(r,-0)||r<0,a=Math.abs(r),c=a===1,l=i[e],d=n?c?l[1]:l[2]||l[1]:c?i[e][0]:e;return s?`${a} ${d} ago`:`in ${a} ${d}`}function jC(e,r){let t="";for(let n of e)n.literal?t+=n.val:t+=r(n.val);return t}var WV={D:Lf,DD:XC,DDD:eT,DDDD:tT,t:rT,tt:nT,ttt:iT,tttt:oT,T:sT,TT:aT,TTT:cT,TTTT:lT,f:uT,ff:fT,fff:hT,ffff:gT,F:dT,FF:pT,FFF:mT,FFFF:yT},fn=class e{static create(r,t={}){return new e(r,t)}static parseFormat(r){let t=null,n="",i=!1,o=[];for(let s=0;s<r.length;s++){let a=r.charAt(s);a==="'"?((n.length>0||i)&&o.push({literal:i||/^\s+$/.test(n),val:n===""?"'":n}),t=null,n="",i=!i):i||a===t?n+=a:(n.length>0&&o.push({literal:/^\s+$/.test(n),val:n}),n=a,t=a)}return n.length>0&&o.push({literal:i||/^\s+$/.test(n),val:n}),o}static macroTokenToFormatOpts(r){return WV[r]}constructor(r,t){this.opts=t,this.loc=r,this.systemLoc=null}formatWithSystemDefault(r,t){return this.systemLoc===null&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(r,u(u({},this.opts),t)).format()}dtFormatter(r,t={}){return this.loc.dtFormatter(r,u(u({},this.opts),t))}formatDateTime(r,t){return this.dtFormatter(r,t).format()}formatDateTimeParts(r,t){return this.dtFormatter(r,t).formatToParts()}formatInterval(r,t){return this.dtFormatter(r.start,t).dtf.formatRange(r.start.toJSDate(),r.end.toJSDate())}resolvedOptions(r,t){return this.dtFormatter(r,t).resolvedOptions()}num(r,t=0,n=void 0){if(this.opts.forceSimple)return Ut(r,t);let i=u({},this.opts);return t>0&&(i.padTo=t),n&&(i.signDisplay=n),this.loc.numberFormatter(i).format(r)}formatDateTimeFromString(r,t){let n=this.loc.listingMode()==="en",i=this.loc.outputCalendar&&this.loc.outputCalendar!=="gregory",o=(S,N)=>this.loc.extract(r,S,N),s=S=>r.isOffsetFixed&&r.offset===0&&S.allowZ?"Z":r.isValid?r.zone.formatOffset(r.ts,S.format):"",a=()=>n?VV(r):o({hour:"numeric",hourCycle:"h12"},"dayperiod"),c=(S,N)=>n?$V(r,S):o(N?{month:S}:{month:S,day:"numeric"},"month"),l=(S,N)=>n?GV(r,S):o(N?{weekday:S}:{weekday:S,month:"long",day:"numeric"},"weekday"),d=S=>{let N=e.macroTokenToFormatOpts(S);return N?this.formatWithSystemDefault(r,N):S},m=S=>n?HV(r,S):o({era:S},"era"),y=S=>{switch(S){case"S":return this.num(r.millisecond);case"u":case"SSS":return this.num(r.millisecond,3);case"s":return this.num(r.second);case"ss":return this.num(r.second,2);case"uu":return this.num(Math.floor(r.millisecond/10),2);case"uuu":return this.num(Math.floor(r.millisecond/100));case"m":return this.num(r.minute);case"mm":return this.num(r.minute,2);case"h":return this.num(r.hour%12===0?12:r.hour%12);case"hh":return this.num(r.hour%12===0?12:r.hour%12,2);case"H":return this.num(r.hour);case"HH":return this.num(r.hour,2);case"Z":return s({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return s({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return s({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return r.zone.offsetName(r.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return r.zone.offsetName(r.ts,{format:"long",locale:this.loc.locale});case"z":return r.zoneName;case"a":return a();case"d":return i?o({day:"numeric"},"day"):this.num(r.day);case"dd":return i?o({day:"2-digit"},"day"):this.num(r.day,2);case"c":return this.num(r.weekday);case"ccc":return l("short",!0);case"cccc":return l("long",!0);case"ccccc":return l("narrow",!0);case"E":return this.num(r.weekday);case"EEE":return l("short",!1);case"EEEE":return l("long",!1);case"EEEEE":return l("narrow",!1);case"L":return i?o({month:"numeric",day:"numeric"},"month"):this.num(r.month);case"LL":return i?o({month:"2-digit",day:"numeric"},"month"):this.num(r.month,2);case"LLL":return c("short",!0);case"LLLL":return c("long",!0);case"LLLLL":return c("narrow",!0);case"M":return i?o({month:"numeric"},"month"):this.num(r.month);case"MM":return i?o({month:"2-digit"},"month"):this.num(r.month,2);case"MMM":return c("short",!1);case"MMMM":return c("long",!1);case"MMMMM":return c("narrow",!1);case"y":return i?o({year:"numeric"},"year"):this.num(r.year);case"yy":return i?o({year:"2-digit"},"year"):this.num(r.year.toString().slice(-2),2);case"yyyy":return i?o({year:"numeric"},"year"):this.num(r.year,4);case"yyyyyy":return i?o({year:"numeric"},"year"):this.num(r.year,6);case"G":return m("short");case"GG":return m("long");case"GGGGG":return m("narrow");case"kk":return this.num(r.weekYear.toString().slice(-2),2);case"kkkk":return this.num(r.weekYear,4);case"W":return this.num(r.weekNumber);
2case"WW":return this.num(r.weekNumber,2);case"n":return this.num(r.localWeekNumber);case"nn":return this.num(r.localWeekNumber,2);case"ii":return this.num(r.localWeekYear.toString().slice(-2),2);case"iiii":return this.num(r.localWeekYear,4);case"o":return this.num(r.ordinal);case"ooo":return this.num(r.ordinal,3);case"q":return this.num(r.quarter);case"qq":return this.num(r.quarter,2);case"X":return this.num(Math.floor(r.ts/1e3));case"x":return this.num(r.ts);default:return d(S)}};return jC(e.parseFormat(t),y)}formatDurationFromString(r,t){let n=this.opts.signMode==="negativeLargestOnly"?-1:1,i=d=>{switch(d[0]){case"S":return"milliseconds";case"s":return"seconds";case"m":return"minutes";case"h":return"hours";case"d":return"days";case"w":return"weeks";case"M":return"months";case"y":return"years";default:return null}},o=(d,m)=>y=>{let S=i(y);if(S){let N=m.isNegativeDuration&&S!==m.largestUnit?n:1,T;return this.opts.signMode==="negativeLargestOnly"&&S!==m.largestUnit?T="never":this.opts.signMode==="all"?T="always":T="auto",this.num(d.get(S)*N,y.length,T)}else return y},s=e.parseFormat(t),a=s.reduce((d,{literal:m,val:y})=>m?d:d.concat(y),[]),c=r.shiftTo(...a.map(i).filter(d=>d)),l={isNegativeDuration:c<0,largestUnit:Object.keys(c.values)[0]};return jC(s,o(c,l))}},kT=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function Ta(...e){let r=e.reduce((t,n)=>t+n.source,"");return RegExp(`^${r}$`)}function wa(...e){return r=>e.reduce(([t,n,i],o)=>{let[s,a,c]=o(r,i);return[u(u({},t),s),a||n,c]},[{},null,1]).slice(0,2)}function Aa(e,...r){if(e==null)return[null,null];for(let[t,n]of r){let i=t.exec(e);if(i)return n(i)}return[null,null]}function jT(...e){return(r,t)=>{let n={},i;for(i=0;i<e.length;i++)n[e[i]]=uo(r[t+i]);return[n,null,t+i]}}var UT=/(?:([Zz])|([+-]\d\d)(?::?(\d\d))?)/,qV=`(?:${UT.source}?(?:\\[(${kT.source})\\])?)?`,Oy=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,BT=RegExp(`${Oy.source}${qV}`),My=RegExp(`(?:[Tt]${BT.source})?`),YV=/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,KV=/(\d{4})-?W(\d\d)(?:-?(\d))?/,JV=/(\d{4})-?(\d{3})/,ZV=jT("weekYear","weekNumber","weekDay"),QV=jT("year","ordinal"),XV=/(\d{4})-(\d\d)-(\d\d)/,VT=RegExp(`${Oy.source} ?(?:${UT.source}|(${kT.source}))?`),eG=RegExp(`(?: ${VT.source})?`);function ba(e,r,t){let n=e[r];return fe(n)?t:uo(n)}function tG(e,r){return[{year:ba(e,r),month:ba(e,r+1,1),day:ba(e,r+2,1)},null,r+3]}function Oa(e,r){return[{hours:ba(e,r,0),minutes:ba(e,r+1,0),seconds:ba(e,r+2,0),milliseconds:wy(e[r+3])},null,r+4]}function ll(e,r){let t=!e[r]&&!e[r+1],n=Gf(e[r+1],e[r+2]),i=t?null:wn.instance(n);return[{},i,r+3]}function ul(e,r){let t=e[r]?mo.create(e[r]):null;return[{},t,r+1]}var rG=RegExp(`^T?${Oy.source}$`),nG=/^-?P(?:(?:(-?\d{1,20}(?:\.\d{1,20})?)Y)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20}(?:\.\d{1,20})?)W)?(?:(-?\d{1,20}(?:\.\d{1,20})?)D)?(?:T(?:(-?\d{1,20}(?:\.\d{1,20})?)H)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,20}))?S)?)?)$/;function iG(e){let[r,t,n,i,o,s,a,c,l]=e,d=r[0]==="-",m=c&&c[0]==="-",y=(S,N=!1)=>S!==void 0&&(N||S&&d)?-S:S;return[{years:y(Qo(t)),months:y(Qo(n)),weeks:y(Qo(i)),days:y(Qo(o)),hours:y(Qo(s)),minutes:y(Qo(a)),seconds:y(Qo(c),c==="-0"),milliseconds:y(wy(l),m)}]}var oG={GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Ry(e,r,t,n,i,o,s){let a={year:r.length===2?Ey(uo(r)):uo(r),month:RT.indexOf(t)+1,day:uo(n),hour:uo(i),minute:uo(o)};return s&&(a.second=uo(s)),e&&(a.weekday=e.length>3?xT.indexOf(e)+1:NT.indexOf(e)+1),a}var sG=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function aG(e){let[,r,t,n,i,o,s,a,c,l,d,m]=e,y=Ry(r,i,n,t,o,s,a),S;return c?S=oG[c]:l?S=0:S=Gf(d,m),[y,new wn(S)]}function cG(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}var lG=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,uG=/^(Monday|Tuesday|Wednesday|Thursday|Frid
2ay|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,dG=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function UC(e){let[,r,t,n,i,o,s,a]=e;return[Ry(r,i,n,t,o,s,a),wn.utcInstance]}function fG(e){let[,r,t,n,i,o,s,a]=e;return[Ry(r,a,t,n,i,o,s),wn.utcInstance]}var pG=Ta(YV,My),hG=Ta(KV,My),mG=Ta(JV,My),gG=Ta(BT),GT=wa(tG,Oa,ll,ul),yG=wa(ZV,Oa,ll,ul),vG=wa(QV,Oa,ll,ul),_G=wa(Oa,ll,ul);function SG(e){return Aa(e,[pG,GT],[hG,yG],[mG,vG],[gG,_G])}function EG(e){return Aa(cG(e),[sG,aG])}function bG(e){return Aa(e,[lG,UC],[uG,UC],[dG,fG])}function DG(e){return Aa(e,[nG,iG])}var CG=wa(Oa);function TG(e){return Aa(e,[rG,CG])}var wG=Ta(XV,eG),AG=Ta(VT),OG=wa(Oa,ll,ul);function MG(e){return Aa(e,[wG,GT],[AG,OG])}var BC="Invalid Duration",$T={weeks:{days:7,hours:168,minutes:10080,seconds:10080*60,milliseconds:10080*60*1e3},days:{hours:24,minutes:1440,seconds:1440*60,milliseconds:1440*60*1e3},hours:{minutes:60,seconds:3600,milliseconds:3600*1e3},minutes:{seconds:60,milliseconds:60*1e3},seconds:{milliseconds:1e3}},RG=u({years:{quarters:4,months:12,weeks:52,days:365,hours:365*24,minutes:365*24*60,seconds:365*24*60*60,milliseconds:365*24*60*60*1e3},quarters:{months:3,weeks:13,days:91,hours:2184,minutes:2184*60,seconds:2184*60*60,milliseconds:2184*60*60*1e3},months:{weeks:4,days:30,hours:720,minutes:720*60,seconds:720*60*60,milliseconds:720*60*60*1e3}},$T),Dn=146097/400,ya=146097/4800,IG=u({years:{quarters:4,months:12,weeks:Dn/7,days:Dn,hours:Dn*24,minutes:Dn*24*60,seconds:Dn*24*60*60,milliseconds:Dn*24*60*60*1e3},quarters:{months:3,weeks:Dn/28,days:Dn/4,hours:Dn*24/4,minutes:Dn*24*60/4,seconds:Dn*24*60*60/4,milliseconds:Dn*24*60*60*1e3/4},months:{weeks:ya/7,days:ya,hours:ya*24,minutes:ya*24*60,seconds:ya*24*60*60,milliseconds:ya*24*60*60*1e3}},$T),es=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],xG=es.slice(0).reverse();function Ii(e,r,t=!1){let n={values:t?r.values:u(u({},e.values),r.values||{}),loc:e.loc.clone(r.loc),conversionAccuracy:r.conversionAccuracy||e.conversionAccuracy,matrix:r.matrix||e.matrix};return new ir(n)}function HT(e,r){let t=r.milliseconds??0;for(let n of xG.slice(1))r[n]&&(t+=r[n]*e[n].milliseconds);return t}function VC(e,r){let t=HT(e,r)<0?-1:1;es.reduceRight((n,i)=>{if(fe(r[i]))return n;if(n){let o=r[n]*t,s=e[i][n],a=Math.floor(o/s);r[i]+=a*t,r[n]-=a*s*t}return i},null),es.reduce((n,i)=>{if(fe(r[i]))return n;if(n){let o=r[n]%1;r[n]-=o,r[i]+=o*e[n][i]}return i},null)}function GC(e){let r={};for(let[t,n]of Object.entries(e))n!==0&&(r[t]=n);return r}var ir=class e{constructor(r){let t=r.conversionAccuracy==="longterm"||!1,n=t?IG:RG;r.matrix&&(n=r.matrix),this.values=r.values,this.loc=r.loc||tt.create(),this.conversionAccuracy=t?"longterm":"casual",this.invalid=r.invalid||null,this.matrix=n,this.isLuxonDuration=!0}static fromMillis(r,t){return e.fromObject({milliseconds:r},t)}static fromObject(r,t={}){if(r==null||typeof r!="object")throw new nr(`Duration.fromObject: argument expected to be an object, got ${r===null?"null":typeof r}`);return new e({values:jf(r,e.normalizeUnit),loc:tt.fromObject(t),conversionAccuracy:t.conversionAccuracy,matrix:t.matrix})}static fromDurationLike(r){if(ho(r))return e.fromMillis(r);if(e.isDuration(r))return r;if(typeof r=="object")return e.fromObject(r);throw new nr(`Unknown duration argument ${r} of type ${typeof r}`)}static fromISO(r,t){let[n]=DG(r);return n?e.fromObject(n,t):e.invalid("unparsable",`the input "${r}" can't be parsed as ISO 8601`)}static fromISOTime(r,t){let[n]=TG(r);return n?e.fromObject(n,t):e.invalid("unparsable",`the input "${r}" can't be parsed as ISO 8601`)}static invalid(r,t=null){if(!r)throw new nr("need to specify a reason the Duration is invalid");let n=r instanceof pn?r:new pn(r,t);if(gt.throwOnInvalid)throw new ay(n);return new e({invalid:n})}static normalizeUnit(r){let t={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[r&&r.toLowerCase()];if(!t)throw new Nf(r);return t}static isDuration(r){return r&&r.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(r,t={}){let n=g(u({},t),{floor:t.round!==!1&&t.floor!==!1});return this.isValid?fn.create(this.loc,n).formatDurationFromString(this,r):BC}toHuman(r={}){if(!this.isValid)return BC;let t=r.showZeros!==!1,n=es.map(i=>{let o=this.values[i];return fe(o)||o===0&&!t?null:this.loc.numberFormatter(g(u({style:"unit",unitDisplay:"long"},r),{unit:i.slice(0,-1)}
2)).format(o)}).filter(i=>i);return this.loc.listFormatter(u({type:"conjunction",style:r.listStyle||"narrow"},r)).format(n)}toObject(){return this.isValid?u({},this.values):{}}toISO(){if(!this.isValid)return null;let r="P";return this.years!==0&&(r+=this.years+"Y"),(this.months!==0||this.quarters!==0)&&(r+=this.months+this.quarters*3+"M"),this.weeks!==0&&(r+=this.weeks+"W"),this.days!==0&&(r+=this.days+"D"),(this.hours!==0||this.minutes!==0||this.seconds!==0||this.milliseconds!==0)&&(r+="T"),this.hours!==0&&(r+=this.hours+"H"),this.minutes!==0&&(r+=this.minutes+"M"),(this.seconds!==0||this.milliseconds!==0)&&(r+=Ay(this.seconds+this.milliseconds/1e3,3)+"S"),r==="P"&&(r+="T0S"),r}toISOTime(r={}){if(!this.isValid)return null;let t=this.toMillis();return t<0||t>=864e5?null:(r=g(u({suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended"},r),{includeOffset:!1}),ve.fromMillis(t,{zone:"UTC"}).toISOTime(r))}toJSON(){return this.toISO()}toString(){return this.toISO()}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Duration { values: ${JSON.stringify(this.values)} }`:`Duration { Invalid, reason: ${this.invalidReason} }`}toMillis(){return this.isValid?HT(this.matrix,this.values):NaN}valueOf(){return this.toMillis()}plus(r){if(!this.isValid)return this;let t=e.fromDurationLike(r),n={};for(let i of es)(Ca(t.values,i)||Ca(this.values,i))&&(n[i]=t.get(i)+this.get(i));return Ii(this,{values:n},!0)}minus(r){if(!this.isValid)return this;let t=e.fromDurationLike(r);return this.plus(t.negate())}mapUnits(r){if(!this.isValid)return this;let t={};for(let n of Object.keys(this.values))t[n]=MT(r(this.values[n],n));return Ii(this,{values:t},!0)}get(r){return this[e.normalizeUnit(r)]}set(r){if(!this.isValid)return this;let t=u(u({},this.values),jf(r,e.normalizeUnit));return Ii(this,{values:t})}reconfigure({locale:r,numberingSystem:t,conversionAccuracy:n,matrix:i}={}){let s={loc:this.loc.clone({locale:r,numberingSystem:t}),matrix:i,conversionAccuracy:n};return Ii(this,s)}as(r){return this.isValid?this.shiftTo(r).get(r):NaN}normalize(){if(!this.isValid)return this;let r=this.toObject();return VC(this.matrix,r),Ii(this,{values:r},!0)}rescale(){if(!this.isValid)return this;let r=GC(this.normalize().shiftToAll().toObject());return Ii(this,{values:r},!0)}shiftTo(...r){if(!this.isValid)return this;if(r.length===0)return this;r=r.map(s=>e.normalizeUnit(s));let t={},n={},i=this.toObject(),o;for(let s of es)if(r.indexOf(s)>=0){o=s;let a=0;for(let l in n)a+=this.matrix[l][s]*n[l],n[l]=0;ho(i[s])&&(a+=i[s]);let c=Math.trunc(a);t[s]=c,n[s]=(a*1e3-c*1e3)/1e3}else ho(i[s])&&(n[s]=i[s]);for(let s in n)n[s]!==0&&(t[o]+=s===o?n[s]:n[s]/this.matrix[o][s]);return VC(this.matrix,t),Ii(this,{values:t},!0)}shiftToAll(){return this.isValid?this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds"):this}negate(){if(!this.isValid)return this;let r={};for(let t of Object.keys(this.values))r[t]=this.values[t]===0?0:-this.values[t];return Ii(this,{values:r},!0)}removeZeros(){if(!this.isValid)return this;let r=GC(this.values);return Ii(this,{values:r},!0)}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(r){if(!this.isValid||!r.isValid||!this.loc.equals(r.loc))return!1;function t(n,i){return n===void 0||n===0?i===void 0||i===0:n===i}for(let n of es)if(!t(this.values[n],r.values[n]))return!1;return!0}},va="Invalid Interval";function NG(e,r){return!e||!e.isValid?Da.invalid("missing or invalid start"):!r||!r.isValid?Da.invalid("missing or invalid end"):r<e?Da.invalid("end before start",`The end of an interval must be after its start, but you had start=${e.toISO()} and end=${r.toISO()}`):null}var Da=class e{constructor(r){this.s=r.start,this.e=r.end,this.invalid=r.invali
vendor: 9,559 bytes, line 2
2d||null,this.isLuxonInterval=!0}static invalid(r,t=null){if(!r)throw new nr("need to specify a reason the Interval is invalid");let n=r instanceof pn?r:new pn(r,t);if(gt.throwOnInvalid)throw new sy(n);return new e({invalid:n})}static fromDateTimes(r,t){let n=rl(r),i=rl(t),o=NG(n,i);return o??new e({start:n,end:i})}static after(r,t){let n=ir.fromDurationLike(t),i=rl(r);return e.fromDateTimes(i,i.plus(n))}static before(r,t){let n=ir.fromDurationLike(t),i=rl(r);return e.fromDateTimes(i.minus(n),i)}static fromISO(r,t){let[n,i]=(r||"").split("/",2);if(n&&i){let o,s;try{o=ve.fromISO(n,t),s=o.isValid}catch(l){s=!1}let a,c;try{a=ve.fromISO(i,t),c=a.isValid}catch(l){c=!1}if(s&&c)return e.fromDateTimes(o,a);if(s){let l=ir.fromISO(i,t);if(l.isValid)return e.after(o,l)}else if(c){let l=ir.fromISO(n,t);if(l.isValid)return e.before(a,l)}}return e.invalid("unparsable",`the input "${r}" can't be parsed as ISO 8601`)}static isInterval(r){return r&&r.isLuxonInterval||!1}get start(){return this.isValid?this.s:null}get end(){return this.isValid?this.e:null}get lastDateTime(){return this.isValid&&this.e?this.e.minus(1):null}get isValid(){return this.invalidReason===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}length(r="milliseconds"){return this.isValid?this.toDuration(r).get(r):NaN}count(r="milliseconds",t){if(!this.isValid)return NaN;let n=this.start.startOf(r,t),i;return t?.useLocaleWeeks?i=this.end.reconfigure({locale:n.locale}):i=this.end,i=i.startOf(r,t),Math.floor(i.diff(n,r).get(r))+(i.valueOf()!==this.end.valueOf())}hasSame(r){return this.isValid?this.isEmpty()||this.e.minus(1).hasSame(this.s,r):!1}isEmpty(){return this.s.valueOf()===this.e.valueOf()}isAfter(r){return this.isValid?this.s>r:!1}isBefore(r){return this.isValid?this.e<=r:!1}contains(r){return this.isValid?this.s<=r&&this.e>r:!1}set({start:r,end:t}={}){return this.isValid?e.fromDateTimes(r||this.s,t||this.e):this}splitAt(...r){if(!this.isValid)return[];let t=r.map(rl).filter(s=>this.contains(s)).sort((s,a)=>s.toMillis()-a.toMillis()),n=[],{s:i}=this,o=0;for(;i<this.e;){let s=t[o]||this.e,a=+s>+this.e?this.e:s;n.push(e.fromDateTimes(i,a)),i=a,o+=1}return n}splitBy(r){let t=ir.fromDurationLike(r);if(!this.isValid||!t.isValid||t.as("milliseconds")===0)return[];let{s:n}=this,i=1,o,s=[];for(;n<this.e;){let a=this.start.plus(t.mapUnits(c=>c*i));o=+a>+this.e?this.e:a,s.push(e.fromDateTimes(n,o)),n=o,i+=1}return s}divideEqually(r){return this.isValid?this.splitBy(this.length()/r).slice(0,r):[]}overlaps(r){return this.e>r.s&&this.s<r.e}abutsStart(r){return this.isValid?+this.e==+r.s:!1}abutsEnd(r){return this.isValid?+r.e==+this.s:!1}engulfs(r){return this.isValid?this.s<=r.s&&this.e>=r.e:!1}equals(r){return!this.isValid||!r.isValid?!1:this.s.equals(r.s)&&this.e.equals(r.e)}intersection(r){if(!this.isValid)return this;let t=this.s>r.s?this.s:r.s,n=this.e<r.e?this.e:r.e;return t>=n?null:e.fromDateTimes(t,n)}union(r){if(!this.isValid)return this;let t=this.s<r.s?this.s:r.s,n=this.e>r.e?this.e:r.e;return e.fromDateTimes(t,n)}static merge(r){let[t,n]=r.sort((i,o)=>i.s-o.s).reduce(([i,o],s)=>o?o.overlaps(s)||o.abutsStart(s)?[i,o.union(s)]:[i.concat([o]),s]:[i,s],[[],null]);return n&&t.push(n),t}static xor(r){let t=null,n=0,i=[],o=r.map(c=>[{time:c.s,type:"s"},{time:c.e,type:"e"}]),s=Array.prototype.concat(...o),a=s.sort((c,l)=>c.time-l.time);for(let c of a)n+=c.type==="s"?1:-1,n===1?t=c.time:(t&&+t!=+c.time&&i.push(e.fromDateTimes(t,c.time)),t=null);return e.merge(i)}difference(...r){return e.xor([this].concat(r)).map(t=>this.intersection(t)).filter(t=>t&&!t.isEmpty())}toString(){return this.isValid?`[${this.s.toISO()} \u2013 ${this.e.toISO()})`:va}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Interval { start: ${this.s.toISO()}, end: ${this.e.toISO()} }`:`Interval { Invalid, reason: ${this.invalidReason} }`}toLocaleString(r=Lf,t={}){return this.isValid?fn.create(this.s.loc.clone(t),r).formatInterval(this):va}toISO(r){return this.isValid?`${this.s.toISO(r)}/${this.e.toISO(r)}`:va}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:va}toISOTime(r){return this.isValid?`${this.s.toISOTime(r)}/${this.e.toISOTime(r)}`:va}toFormat(r,{separator:t=" \u2013 "}={}){return this.isValid?`${this.s.toFormat(r)}${t}${this.e.toFormat(r)}`:va}toDuration(r,t){return this.isValid?this.e.diff(this.s,r,t):ir.invalid(this.invalidReason)}mapEndpoints(r){return e.fromDateTimes(r(this.s),r(this.e))}},Sa=class{static hasDST(r=gt.defaultZone){let t=ve.now().setZone(r).set({month:12});return!r.isUniversal&&t.offset!==t.set({month:6}).offset}static isValidIANAZone(r){return mo.isValidZone(r)}static normalizeZone(r){return fo(r,gt.defaultZone)}static getStartOfWeek({locale:r=null,locObj:t=null}={}){return(t||tt.create(r)).getStartOfWeek()}static getMinimumDaysInFirstWeek({locale:r=null,locObj:t=null}={}){return(t||tt.create(r)).getMinDaysInFirstWeek()}static getWeekendWeekdays({locale:r=null,locObj:t=null}={}){return(t||tt.create(r)).getWeekendDays().slice()}static months(r="long",{locale:t=null,numberingSystem:n=null,locObj:i=null,outputCalendar:o="gregory"}={}){return(i||tt.create(t,n,o)).months(r)}static monthsFormat(r="long",{locale:t=null,numberingSystem:n=null,locObj:i=null,outputCalendar:o="gregory"}={}){return(i||tt.create(t,n,o)).months(r,!0)}static weekdays(r="long",{locale:t=null,numberingSystem:n=null,locObj:i=null}={}){return(i||tt.create(t,n,null)).weekdays(r)}static weekdaysFormat(r="long",{locale:t=null,numberingSystem:n=null,locObj:i=null}={}){return(i||tt.create(t,n,null)).weekdays(r,!0)}static meridiems({locale:r=null}={}){return tt.create(r).meridiems()}static eras(r="short",{locale:t=null}={}){return tt.create(t,null,"gregory").eras(r)}static features(){return{relative:wT(),localeWeek:AT()}}};function $C(e,r){let t=i=>i.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),n=t(r)-t(e);return Math.floor(ir.fromMillis(n).as("days"))}function LG(e,r,t){let n=[["years",(c,l)=>l.year-c.year],["quarters",(c,l)=>l.quarter-c.quarter+(l.year-c.year)*4],["months",(c,l)=>l.month-c.month+(l.year-c.year)*12],["weeks",(c,l)=>{let d=$C(c,l);return(d-d%7)/7}],["days",$C]],i={},o=e,s,a;for(let[c,l]of n)t.indexOf(c)>=0&&(s=c,i[c]=l(e,r),a=o.plus(i),a>r?(i[c]--,e=o.plus(i),e>r&&(a=e,i[c]--,e=o.plus(i))):e=a);return[e,i,a,s]}function FG(e,r,t,n){let[i,o,s,a]=LG(e,r,t),c=r-i,l=t.filter(m=>["hours","minutes","seconds","milliseconds"].indexOf(m)>=0);l.length===0&&(s<r&&(s=i.plus({[a]:1})),s!==i&&(o[a]=(o[a]||0)+c/(s-i)));let d=ir.fromObject(o,n);return l.length>0?ir.fromMillis(c,n).shiftTo(...l).plus(d):d}var PG="missing Intl.DateTimeFormat.formatToParts support";function Ue(e,r=t=>t){return{regex:e,deser:([t])=>r(wV(t))}}var kG="\xA0",zT=`[ ${kG}]`,WT=new RegExp(zT,"g");function jG(e){return e.replace(/\./g,"\\.?").replace(WT,zT)}function HC(e){return e.replace(/\./g,"").replace(WT," ").toLowerCase()}function qn(e,r){return e===null?null:{regex:RegExp(e.map(jG).join("|")),deser:([t])=>e.findIndex(n=>HC(t)===HC(n))+r}}function zC(e,r){return{regex:e,deser:([,t,n])=>Gf(t,n),groups:r}}function Af(e){return{regex:e,deser:([r])=>r}}function UG(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function BG(e,r){let t=Wn(r),n=Wn(r,"{2}"),i=Wn(r,"{3}"),o=Wn(r,"{4}"),s=Wn(r,"{6}"),a=Wn(r,"{1,2}"),c=Wn(r,"{1,3}"),l=Wn(r,"{1,6}"),d=Wn(r,"{1,9}"),m=Wn(r,"{2,4}"),y=Wn(r,"{4,6}"),S=v=>({regex:RegExp(UG(v.val)),deser:([b])=>b,literal:!0}),T=(v=>{if(e.literal)return S(v);switch(v.val){case"G":return qn(r.eras("short"),0);case"GG":return qn(r.eras("long"),0);case"y":return Ue(l);case"yy":return Ue(m,Ey);case"yyyy":return Ue(o);case"yyyyy":return Ue(y);case"yyyyyy":return Ue(s);case"M":return Ue(a);case"MM":return Ue(n);case"MMM":return qn(r.months("short",!0),1);case"MMMM":return qn(r.months("long",!0),1);case"L":return Ue(a);case"LL":return Ue(n);case"LLL":return qn(r.months("short",!1),1);case"LLLL":return qn(r.months("long",!1),1);case"d":return Ue(a);case"dd":return Ue(n);case"o":return Ue(c);case"ooo":return Ue(i);case"HH":return Ue(n);case"H":return Ue(a);case"hh":return Ue(n);case"h":return Ue(a);case"mm":return Ue(n);case"m":return Ue(a);case"q":return Ue(a);case"qq":return Ue(n);case"s":return Ue(a);case"ss":return Ue(n);case"S":return Ue(c);case"SSS":return Ue(i);case"u":return Af(d);case"uu":return Af(a);case"uuu":return Ue(t);case"a":return qn(r.meridiems(),0);case"kkkk":return Ue(o);case"kk":return Ue(m,Ey);case"W":return Ue(a);case"WW":return Ue(n);case"E":case"c":return Ue(t);case"EEE":return qn(r.weekdays("short",!1),1);case"EEEE":return qn(r.weekdays("long",!1),1);case"ccc":return qn(r.weekdays("short",!0),1);case"cccc":return qn(r.weekdays("long",!0),1);case"Z":case"ZZ":return zC(new RegExp(`([+-]${a.source})(?::(${n.source}))?`),2);case"ZZZ":return zC(new RegExp(`([+-]${a.source})(${n.source})?`),2);case"z":return Af(/[a-z_+-/]{1,256}?/i);case" ":return Af(/[^\S\n\r]/);default:return S(v)}})(e)||{invalidReason:PG};return T.token=e,T}var VG={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour12:{numeric:"h","2-digit":"hh"},hour24:{numeric:"H","2-digit":"HH"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"},timeZoneName:{long:"ZZZZZ",short:"ZZZ"}};function GG(e,r,t){let{type:n,value:i}=e;if(n==="literal"){let c=/^\s+$/.test(i);return{literal:!c,val:c?" ":i}
2}let o=r[n],s=n;n==="hour"&&(r.hour12!=null?s=r.hour12?"hour12":"hour24":r.hourCycle!=null?r.hourCycle==="h11"||r.hourCycle==="h12"?s="hour12":s="hour24":s=t.hour12?"hour12":"hour24");let a=VG[s];if(typeof a=="object"&&(a=a[o]),a)return{literal:!1,val:a}}function $G(e){return[`^${e.map(t=>t.regex).reduce((t,n)=>`${t}(${n.source})`,"")}$`,e]}function HG(e,r,t){let n=e.match(r);if(n){let i={},o=1;for(let s in t)if(Ca(t,s)){let a=t[s],c=a.groups?a.groups+1:1;!a.literal&&a.token&&(i[a.token.val[0]]=a.deser(n.slice(o,o+c))),o+=c}return[n,i]}else return[n,{}]}function zG(e){let r=o=>{switch(o){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}},t=null,n;return fe(e.z)||(t=mo.create(e.z)),fe(e.Z)||(t||(t=new wn(e.Z)),n=e.Z),fe(e.q)||(e.M=(e.q-1)*3+1),fe(e.h)||(e.h<12&&e.a===1?e.h+=12:e.h===12&&e.a===0&&(e.h=0)),e.G===0&&e.y&&(e.y=-e.y),fe(e.u)||(e.S=wy(e.u)),[Object.keys(e).reduce((o,s)=>{let a=r(s);return a&&(o[a]=e[s]),o},{}),t,n]}var ey=null;function WG(){return ey||(ey=ve.fromMillis(1555555555555)),ey}function qG(e,r){if(e.literal)return e;let t=fn.macroTokenToFormatOpts(e.val),n=KT(t,r);return n==null||n.includes(void 0)?e:n}function qT(e,r){return Array.prototype.concat(...e.map(t=>qG(t,r)))}var Uf=class{constructor(r,t){if(this.locale=r,this.format=t,this.tokens=qT(fn.parseFormat(t),r),this.units=this.tokens.map(n=>BG(n,r)),this.disqualifyingUnit=this.units.find(n=>n.invalidReason),!this.disqualifyingUnit){let[n,i]=$G(this.units);this.regex=RegExp(n,"i"),this.handlers=i}}explainFromTokens(r){if(this.isValid){let[t,n]=HG(r,this.regex,this.handlers),[i,o,s]=n?zG(n):[null,null,void 0];if(Ca(n,"a")&&Ca(n,"H"))throw new po("Can't include meridiem when specifying 24-hour format");return{input:r,tokens:this.tokens,regex:this.regex,rawMatches:t,matches:n,result:i,zone:o,specificOffset:s}}else return{input:r,tokens:this.tokens,invalidReason:this.invalidReason}}get isValid(){return!this.disqualifyingUnit}get invalidReason(){return this.disqualifyingUnit?this.disqualifyingUnit.invali
2dReason:null}};function YT(e,r,t){return new Uf(e,t).explainFromTokens(r)}function YG(e,r,t){let{result:n,zone:i,specificOffset:o,invalidReason:s}=YT(e,r,t);return[n,i,o,s]}function KT(e,r){if(!e)return null;let n=fn.create(r,e).dtFormatter(WG()),i=n.formatToParts(),o=n.resolvedOptions();return i.map(s=>GG(s,e,o))}var ty="Invalid DateTime",WC=864e13;function il(e){return new pn("unsupported zone",`the zone "${e.name}" is not supported`)}function ry(e){return e.weekData===null&&(e.weekData=Pf(e.c)),e.weekData}function ny(e){return e.localWeekData===null&&(e.localWeekData=Pf(e.c,e.loc.getMinDaysInFirstWeek(),e.loc.getStartOfWeek())),e.localWeekData}function Xo(e,r){let t={ts:e.ts,zone:e.zone,c:e.c,o:e.o,loc:e.loc,invalid:e.invalid};return new ve(g(u(u({},t),r),{old:t}))}function JT(e,r,t){let n=e-r*60*1e3,i=t.offset(n);if(r===i)return[n,r];n-=(i-r)*60*1e3;let o=t.offset(n);return i===o?[n,i]:[e-Math.min(i,o)*60*1e3,Math.max(i,o)]}function Of(e,r){e+=r*60*1e3;let t=new Date(e);return{year:t.getUTCFullYear(),month:t.getUTCMonth()+1,day:t.getUTCDate(),hour:t.getUTCHours(),minute:t.getUTCMinutes(),second:t.getUTCSeconds(),millisecond:t.getUTCMilliseconds()}}function Rf(e,r,t){return JT(Vf(e),r,t)}function qC(e,r){let t=e.o,n=e.c.year+Math.trunc(r.years),i=e.c.month+Math.trunc(r.months)+Math.trunc(r.quarters)*3,o=g(u({},e.c),{year:n,month:i,day:Math.min(e.c.day,kf(n,i))+Math.trunc(r.days)+Math.trunc(r.weeks)*7}),s=ir.fromObject({years:r.years-Math.trunc(r.years),quarters:r.quarters-Math.trunc(r.quarters),months:r.months-Math.trunc(r.months),weeks:r.weeks-Math.trunc(r.weeks),days:r.days-Math.trunc(r.days),hours:r.hours,minutes:r.minutes,seconds:r.seconds,milliseconds:r.milliseconds}).as("milliseconds"),a=Vf(o),[c,l]=JT(a,t,e.zone);return s!==0&&(c+=s,l=e.zone.offset(c)),{ts:c,o:l}}function _a(e,r,t,n,i,o){let{setZone:s,zone:a}=t;if(e&&Object.keys(e).length!==0||r){let c=r||a,l=ve.fromObject(e,g(u({},t),{zone:c,specificOffset:o}));return s?l:l.setZone(a)}
vendor: 12,170 bytes, line 2
2else return ve.invalid(new pn("unparsable",`the input "${i}" can't be parsed as ${n}`))}function Mf(e,r,t=!0){return e.isValid?fn.create(tt.create("en-US"),{allowZ:t,forceSimple:!0}).formatDateTimeFromString(e,r):null}function iy(e,r,t){let n=e.c.year>9999||e.c.year<0,i="";if(n&&e.c.year>=0&&(i+="+"),i+=Ut(e.c.year,n?6:4),t==="year")return i;if(r){if(i+="-",i+=Ut(e.c.month),t==="month")return i;i+="-"}else if(i+=Ut(e.c.month),t==="month")return i;return i+=Ut(e.c.day),i}function YC(e,r,t,n,i,o,s){let a=!t||e.c.millisecond!==0||e.c.second!==0,c="";switch(s){case"day":case"month":case"year":break;default:if(c+=Ut(e.c.hour),s==="hour")break;if(r){if(c+=":",c+=Ut(e.c.minute),s==="minute")break;a&&(c+=":",c+=Ut(e.c.second))}else{if(c+=Ut(e.c.minute),s==="minute")break;a&&(c+=Ut(e.c.second))}if(s==="second")break;a&&(!n||e.c.millisecond!==0)&&(c+=".",c+=Ut(e.c.millisecond,3))}return i&&(e.isOffsetFixed&&e.offset===0&&!o?c+="Z":e.o<0?(c+="-",c+=Ut(Math.trunc(-e.o/60)),c+=":",c+=Ut(Math.trunc(-e.o%60))):(c+="+",c+=Ut(Math.trunc(e.o/60)),c+=":",c+=Ut(Math.trunc(e.o%60)))),o&&(c+="["+e.zone.ianaName+"]"),c}var ZT={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},KG={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},JG={ordinal:1,hour:0,minute:0,second:0,millisecond:0},If=["year","month","day","hour","minute","second","millisecond"],ZG=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],QG=["year","ordinal","hour","minute","second","millisecond"];function xf(e){let r={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[e.toLowerCase()];if(!r)throw new Nf(e);return r}function KC(e){switch(e.toLowerCase()){case"localweekday":case"localweekdays":return"localWeekday";case"localweeknumber":case"localweeknumbers":return"localWeekNumber";case"localweekyear":case"localweekyears":return"localWeekYear";default:return xf(e)}}function XG(e){if(ol===void 0&&(ol=gt.now()),e.type!=="iana")return e.offset(ol);let r=e.name,t=by.get(r);return t===void 0&&(t=e.offset(ol),by.set(r,t)),t}function JC(e,r){let t=fo(r.zone,gt.defaultZone);if(!t.isValid)return ve.invalid(il(t));let n=tt.fromObject(r),i,o;if(fe(e.year))i=gt.now();else{for(let c of If)fe(e[c])&&(e[c]=ZT[c]);let s=CT(e)||TT(e);if(s)return ve.invalid(s);let a=XG(t);[i,o]=Rf(e,a,t)}return new ve({ts:i,zone:t,loc:n,o})}function ZC(e,r,t){let n=fe(t.round)?!0:t.round,i=fe(t.rounding)?"trunc":t.rounding,o=(a,c)=>(a=Ay(a,n||t.calendary?0:2,t.calendary?"round":i),r.loc.clone(t).relFormatter(t).format(a,c)),s=a=>t.calendary?r.hasSame(e,a)?0:r.startOf(a).diff(e.startOf(a),a).get(a):r.diff(e,a).get(a);if(t.unit)return o(s(t.unit),t.unit);for(let a of t.units){let c=s(a);if(Math.abs(c)>=1)return o(c,a)}return o(e>r?-0:0,t.units[t.units.length-1])}function QC(e){let r={},t;return e.length>0&&typeof e[e.length-1]=="object"?(r=e[e.length-1],t=Array.from(e).slice(0,e.length-1)):t=Array.from(e),[r,t]}var ol,by=new Map,ve=class e{constructor(r){let t=r.zone||gt.defaultZone,n=r.invalid||(Number.isNaN(r.ts)?new pn("invalid input"):null)||(t.isValid?null:il(t));this.ts=fe(r.ts)?gt.now():r.ts;let i=null,o=null;if(!n)if(r.old&&r.old.ts===this.ts&&r.old.zone.equals(t))[i,o]=[r.old.c,r.old.o];else{let a=ho(r.o)&&!r.old?r.o:t.offset(this.ts);i=Of(this.ts,a),n=Number.isNaN(i.year)?new pn("invalid input"):null,i=n?null:i,o=n?null:a}this._zone=t,this.loc=r.loc||tt.create(),this.invalid=n,this.weekData=null,this.localWeekData=null,this.c=i,this.o=o,this.isLuxonDateTime=!0}static now(){return new e({})}static local(){let[r,t]=QC(arguments),[n,i,o,s,a,c,l]=t;return JC({year:n,month:i,day:o,hour:s,minute:a,second:c,millisecond:l},r)}static utc(){let[r,t]=QC(arguments),[n,i,o,s,a,c,l]=t;return r.zone=wn.utcInstance,JC({year:n,month:i,day:o,hour:s,minute:a,second:c,millisecond:l},r)}static fromJSDate(r,t={}){let n=IV(r)?r.valueOf():NaN;if(Number.isNaN(n))return e.invalid("invalid input");let i=fo(t.zone,gt.defaultZone);return i.isValid?new e({ts:n,zone:i,loc:tt.fromObject(t)}):e.invalid(il(i))}static fromMillis(r,t={}){if(ho(r))return r<-WC||r>WC?e.invalid("Timestamp out of range"):new e({ts:r,zone:fo(t.zone,gt.defaultZone),loc:tt.fromObject(t)});throw new nr(`fromMillis requires a numerical input, but received a ${typeof r} with value ${r}`)}static fromSeconds(r,t={}){if(ho(r))return new e({ts:r*1e3,zone:fo(t.zone,gt.defaultZone),loc:tt.fromObject(t)});throw new nr("fromSeconds requires a numerical input")}static fromObject(r,t={}){r=r||{};let n=fo(t.zone,gt.defaultZone);if(!n.isValid)return e.invalid(il(n));let i=tt.fromObject(t),o=jf(r,KC),{minDaysInFirstWeek:s,startOfWeek:a}=FC(o,i),c=gt.now(),l=fe(t.specificOffset)?n.offset(c):t.specificOffset,d=!fe(o.ordinal),m=!fe(o.year),y=!fe(o.month)||!fe(o.day),S=m||y,N=o.weekYear||o.weekNumber;if((S||d)&&N)throw new po("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(y&&d)throw new po("Can't mix ordinal dates with month/day");let T=N||o.weekday&&!S,v,b,D=Of(c,l);T?(v=ZG,b=KG,D=Pf(D,s,a)):d?(v=QG,b=JG,D=Xg(D)):(v=If,b=ZT);let M=!1;for(let ue of v){let rt=o[ue];fe(rt)?M?o[ue]=b[ue]:o[ue]=D[ue]:M=!0}let O=T?OV(o,s,a):d?MV(o):CT(o),F=O||TT(o);if(F)return e.invalid(F);let B=T?NC(o,s,a):d?LC(o):o,[J,oe]=Rf(B,l,n),De=new e({ts:J,zone:n,o:oe,loc:i});return o.weekday&&S&&r.weekday!==De.weekday?e.invalid("mismatched weekday",`you can't specify both a weekday of ${o.weekday} and a date of ${De.toISO()}`):De.isValid?De:e.invalid(De.invalid)}static fromISO(r,t={}){let[n,i]=SG(r);return _a(n,i,t,"ISO 8601",r)}static fromRFC2822(r,t={}){let[n,i]=EG(r);return _a(n,i,t,"RFC 2822",r)}static fromHTTP(r,t={}){let[n,i]=bG(r);return _a(n,i,t,"HTTP",t)}static fromFormat(r,t,n={}){if(fe(r)||fe(t))throw new nr("fromFormat requires an input string and a format");let{locale:i=null,numberingSystem:o=null}=n,s=tt.fromOpts({locale:i,numberingSystem:o,defaultToEN:!0}),[a,c,l,d]=YG(s,r,t);return d?e.invalid(d):_a(a,c,n,`format ${t}`,r,l)}static fromString(r,t,n={}){return e.fromFormat(r,t,n)}static fromSQL(r,t={}){let[n,i]=MG(r);return _a(n,i,t,"SQL",r)}static invalid(r,t=null){if(!r)throw new nr("need to specify a reason the DateTime is invalid");let n=r instanceof pn?r:new pn(r,t);if(gt.throwOnInvalid)throw new oy(n);return new e({invalid:n})}static isDateTime(r){return r&&r.isLuxonDateTime||!1}static parseFormatForOpts(r,t={}){let n=KT(r,tt.fromObject(t));return n?n.map(i=>i?i.val:null).join(""):null}static expandFormat(r,t={}){return qT(fn.parseFormat(r),tt.fromObject(t)).map(i=>i.val).join("")}static resetCache(){ol=void 0,by.clear()}get(r){return this[r]}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?ry(this).weekYear:NaN}get weekNumber(){return this.isValid?ry(this).weekNumber:NaN}get weekday(){return this.isValid?ry(this).weekday:NaN}get isWeekend(){return this.isValid&&this.loc.getWeekendDays().includes(this.weekday)}get localWeekday(){return this.isValid?ny(this).weekday:NaN}get localWeekNumber(){return this.isValid?ny(this).weekNumber:NaN}get localWeekYear(){return this.isValid?ny(this).weekYear:NaN}get ordinal(){return this.isValid?Xg(this.c).ordinal:NaN}get monthShort(){return this.isValid?Sa.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?Sa.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?Sa.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?Sa.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}get offsetNameLong(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){return this.isOffsetFixed?!1:this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset}getPossibleOffsets(){if(!this.isValid||this.isOffsetFixed)return[this];let r=864e5,t=6e4,n=Vf(this.c),i=this.zone.offset(n-r),o=this.zone.offset(n+r),s=this.zone.offset(n-i*t),a=this.zone.offset(n-o*t);if(s===a)return[this];let c=n-s*t,l=n-a*t,d=Of(c,s),m=Of(l,a);return d.hour===m.hour&&d.minute===m.minute&&d.second===m.second&&d.millisecond===m.millisecond?[Xo(this,{ts:c}),Xo(this,{ts:l})]:[this]}get isInLeapYear(){return cl(this.year)}get daysInMonth(){return kf(this.year,this.month)}get daysInYear(){return this.isValid?Ea(this.year):NaN}get weeksInWeekYear(){return this.isValid?al(this.weekYear):NaN}get weeksInLocalWeekYear(){return this.isValid?al(this.localWeekYear,this.loc.getMinDaysInFirstWeek(),this.loc.getStartOfWeek()):NaN}resolvedLocaleOptions(r={}){let{locale:t,numberingSystem:n,calendar:i}=fn.create(this.loc.clone(r),r).resolvedOptions(this);return{locale:t,numberingSystem:n,outputCalendar:i}}toUTC(r=0,t={}){return this.setZone(wn.instance(r),t)}toLocal(){return this.setZone(gt.defaultZone)}setZone(r,{keepLocalTime:t=!1,keepCalendarTime:n=!1}={}){if(r=fo(r,gt.defaultZone),r.equals(this.zone))return this;if(r.isValid){let i=this.ts;if(t||n){let o=r.offset(this.ts),s=this.toObject();[i]=Rf(s,o,r)}return Xo(this,{ts:i,zone:r})}else return e.invalid(il(r))}reconfigure({locale:r,numberingSystem:t,outputCalendar:n}={}){let i=this.loc.clone({locale:r,numberingSystem:t,outputCalendar:n});return Xo(this,{loc:i})}setLocale(r){return this.reconfigure({locale:r})}set(r){if(!this.isValid)return this;let t=jf(r,KC),{minDaysInFirstWeek:n,startOfWeek:i}=FC(t,this.loc),o=!fe(t.weekYear)||!fe(t.weekNumber)||!fe(t.weekday),s=!fe(t.ordinal),a=!fe(t.year),c=!fe(t.month)||!fe(t.day),l=a||c,d=t.weekYear||t.weekNumber;if((l||s)&&d)throw new po("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(c&&s)throw new po("Can't mix ordinal dates with month/day");let m;o?m=NC(u(u({},Pf(this.c,n,i)),t),n,i):fe(t.ordinal)?(m=u(u({},this.toObject()),t),fe(t.day)&&(m.day=Math.min(kf(m.year,m.month),m.day))):m=LC(u(u({},Xg(this.c)),t));let[y,S]=Rf(m,this.o,this.zone);return Xo(this,{ts:y,o:S})}plus(r){if(!this.isValid)return this;let t=ir.fromDurationLike(r);return Xo(this,qC(this,t))}minus(r){if(!this.isValid)return this;let t=ir.fromDurationLike(r).negate();return Xo(this,qC(this,t))}startOf(r,{useLocaleWeeks:t=!1}={}){if(!this.isValid)return this;let n={},i=ir.normalizeUnit(r);switch(i){case"years":n.month=1;case"quarters":case"months":n.day=1;case"weeks":case"days":n.hour=0;case"hours":n.minute=0;case"minutes":n.second=0;case"seconds":n.millisecond=0;break}if(i==="weeks")if(t){let o=this.loc.getStartOfWeek(),{weekday:s}=this;s<o&&(n.weekNumber=this.weekNumber-1),n.weekday=o}else n.weekday=1;if(i==="quarters"){let o=Math.ceil(this.month/3);n.month=(o-1)*3+1}return this.set(n)}endOf(r,t){return this.isValid?this.plus({[r]:1}).startOf(r,t).minus(1):this}toFormat(r,t={}){return this.isValid?fn.create(this.loc.redefaultToEN(t)).formatDateTimeFromString(this,r):ty}
2toLocaleString(r=Lf,t={}){return this.isValid?fn.create(this.loc.clone(t),r).formatDateTime(this):ty}toLocaleParts(r={}){return this.isValid?fn.create(this.loc.clone(r),r).formatDateTimeParts(this):[]}toISO({format:r="extended",suppressSeconds:t=!1,suppressMilliseconds:n=!1,includeOffset:i=!0,extendedZone:o=!1,precision:s="milliseconds"}={}){if(!this.isValid)return null;s=xf(s);let a=r==="extended",c=iy(this,a,s);return If.indexOf(s)>=3&&(c+="T"),c+=YC(this,a,t,n,i,o,s),c}toISODate({format:r="extended",precision:t="day"}={}){return this.isValid?iy(this,r==="extended",xf(t)):null}toISOWeekDate(){return Mf(this,"kkkk-'W'WW-c")}toISOTime({suppressMilliseconds:r=!1,suppressSeconds:t=!1,includeOffset:n=!0,includePrefix:i=!1,extendedZone:o=!1,format:s="extended",precision:a="milliseconds"}={}){return this.isValid?(a=xf(a),(i&&If.indexOf(a)>=3?"T":"")+YC(this,s==="extended",t,r,n,o,a)):null}toRFC2822(){return Mf(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return Mf(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?iy(this,!0):null}toSQLTime({includeOffset:r=!0,includeZone:t=!1,includeOffsetSpace:n=!0}={}){let i="HH:mm:ss.SSS";return(t||r)&&(n&&(i+=" "),t?i+="z":r&&(i+="ZZ")),Mf(this,i,!0)}toSQL(r={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(r)}`:null}toString(){return this.isValid?this.toISO():ty}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`DateTime { ts: ${this.toISO()}, zone: ${this.zone.name}, locale: ${this.locale} }`:`DateTime { Invalid, reason: ${this.invalidReason} }`}valueOf(){return this.toMillis()}toMillis(){return this.isValid?this.ts:NaN}toSeconds(){return this.isValid?this.ts/1e3:NaN}toUnixInteger(){return this.isValid?Math.floor(this.ts/1e3):NaN}toJSON(){return this.toISO()}toBSON(){return this.toJSDate()}toObject(r={}){if(!this.isValid)return{};let t=u({},this.c);return r.includeConfig&&(t.outputCalendar=this.outputCalendar,t.numberingSystem=this.loc.numberingSystem,t.locale=this.loc.locale),t}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(r,t="milliseconds",n={}){if(!this.isValid||!r.isValid)return ir.invalid("created by diffing an invalid DateTime");let i=u({locale:this.locale,numberingSystem:this.numberingSystem},n),o=xV(t).map(ir.normalizeUnit),s=r.valueOf()>this.valueOf(),a=s?this:r,c=s?r:this,l=FG(a,c,o,i);return s?l.negate():l}diffNow(r="milliseconds",t={}){return this.diff(e.now(),r,t)}until(r){return this.isValid?Da.fromDateTimes(this,r):this}hasSame(r,t,n){if(!this.isValid)return!1;let i=r.valueOf(),o=this.setZone(r.zone,{keepLocalTime:!0});return o.startOf(t,n)<=i&&i<=o.endOf(t,n)}equals(r){return this.isValid&&r.isValid&&this.valueOf()===r.valueOf()&&this.zone.equals(r.zone)&&this.loc.equals(r.loc)}toRelative(r={}){if(!this.isValid)return null;let t=r.base||e.fromObject({},{zone:this.zone}),n=r.padding?this<t?-r.padding:r.padding:0,i=["years","months","days","hours","minutes","seconds"],o=r.unit;return Array.isArray(r.unit)&&(i=r.unit,o=void 0),ZC(t,this.plus(n),g(u({},r),{numeric:"always",units:i,unit:o}))}toRelativeCalendar(r={}){return this.isValid?ZC(r.base||e.fromObject({},{zone:this.zone}),this,g(u({},r),{numeric:"auto",units:["years","months","days"],calendary:!0})):null}static min(...r){if(!r.every(e.isDateTime))throw new nr("min requires all arguments be DateTimes");return PC(r,t=>t.valueOf(),Math.min)}static max(...r){if(!r.every(e.isDateTime))throw new nr("max requires all arguments be DateTimes");return PC(r,t=>t.valueOf(),Math.max)}static fromFormatExplain(r,t,n={}){let{locale:i=null,numberingSystem:o=null}=n,s=tt.fromOpts({locale:i,numberingSystem:o,defaultToEN:!0});return YT(s,r,t)}static fromStringExplain(r,t,n={}){return e.fromFormatExplain(r,t,n)}static buildFormatParser(r,t={}){let{locale:n=null,numberingSystem:i=null}=t,o=tt.fromOpts({locale:n,numberingSystem:i,defaultToEN:!0});return new Uf(o,r)}static fromFormatParser(r,t,n={}){if(fe(r)||fe(t))throw new nr("fromFormatParser requires an input string and a format parser");let{locale:i=null,numberingSystem:o=null}=n,s=tt.fromOpts({locale:i,numberingSystem:o,defaultToEN:!0});if(!s.equals(t.locale))throw new nr(`fromFormatParser called with a locale of ${s}, but the format parser was created for ${t.locale}`);let{result:a,zone:c,specificOffset:l,invalidReason:d}=t.explainFromTokens(r);
2return d?e.invalid(d):_a(a,c,n,`format ${t.format}`,r,l)}static get DATE_SHORT(){return Lf}static get DATE_MED(){return XC}static get DATE_MED_WITH_WEEKDAY(){return lV}static get DATE_FULL(){return eT}static get DATE_HUGE(){return tT}static get TIME_SIMPLE(){return rT}static get TIME_WITH_SECONDS(){return nT}static get TIME_WITH_SHORT_OFFSET(){return iT}static get TIME_WITH_LONG_OFFSET(){return oT}static get TIME_24_SIMPLE(){return sT}static get TIME_24_WITH_SECONDS(){return aT}static get TIME_24_WITH_SHORT_OFFSET(){return cT}static get TIME_24_WITH_LONG_OFFSET(){return lT}static get DATETIME_SHORT(){return uT}static get DATETIME_SHORT_WITH_SECONDS(){return dT}static get DATETIME_MED(){return fT}static get DATETIME_MED_WITH_SECONDS(){return pT}static get DATETIME_MED_WITH_WEEKDAY(){return uV}static get DATETIME_FULL(){return hT}static get DATETIME_FULL_WITH_SECONDS(){return mT}static get DATETIME_HUGE(){return gT}static get DATETIME_HUGE_WITH_SECONDS(){return yT}};function rl(e){if(ve.isDateTime(e))return e;if(e&&e.valueOf&&ho(e.valueOf()))return ve.fromJSDate(e);if(e&&typeof e=="object")return ve.fromObject(e);throw new nr(`Unknown datetime argument: ${e}, of type ${typeof e}`)}var qr={};j(qr,{AudioNewsletterStatus:()=>Iy,CookieState:()=>dl,DraftState:()=>Ny,DraftStatus:()=>Ly,Entities:()=>Fy,EntityStatus:()=>Py,EventType:()=>ky,FormFieldType:()=>jy,FormSubmitionType:()=>Uy,GalleryType:()=>By,ImageSize:()=>QT,LinkType:()=>Vy,MisSyncStatus:()=>Gy,PageDefinitions:()=>$y,PermissionRole:()=>Ma,PicturesSizes:()=>go,SelectorType:()=>Hy,SlideshowPublicationMode:()=>zy,TenantDomainType:()=>Wy,TenantType:()=>qy,TenantUseCase:()=>Yy,contentType:()=>xy});var Iy=(function(e){return e.IN_PROGRESS="inProgress",e.READY="ready",e.FAILED="failed",e.ON_HOLD="onHold",e.PENDING="pending",e.SUCCESS="success",e.ERROR="error",e.ONHOLD="onhold",e})(Iy||{});var xy=(function(e){return e.pdf="application/pdf",e.pub="application/x-mspublisher",e.csv="text/csv",e.pubx="application/x-mspublisher",e.doc="application/msword",e.dot="application/msword",e.docx="application/vnd.openxmlformats-officedocument.wordprocessingml.document",e.xla="application/msexcel",e.xls="application/msexcel",e.pps="application/vnd.ms-powerpoint",e.ppt="application/vnd.ms-powerpoint",e.ppa="application/vnd.ms-powerpoint",e.ppz="application/vnd.ms-powerpoint",e.pot="application/vnd.ms-powerpoint",e.xlsx="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",e.pptx="application/vnd.openxmlformats-officedocument.presentationml.presentation",e.odt="application/vnd.oasis.opendocument.text",e.ods="application/vnd.oasis.opendocument.spreadsheet",e.odp="application/vnd.oasis.opendocument.presentation",e.odg="application/vnd.oasis.opendocument.graphics",e.txt="text/plain",e.html="text/html",e.htm="text/html",e.xml="text/xml",e.rtf="text/rtf",e.bmp="image/bmp",e.gif="image/gif",e.ico="image/x-icon",e.fh4="image/x-freehand",e.fh5="image/x-freehand",e.fhc="image/x-freehand",e.jpe="image/jpeg",e.jpeg="image/jpeg",e.jpg="image/jpeg",e.png="image/png",e.tiff="image/tiff",e.tif="image/tiff",e.jfif="image/jpeg",e.svg="image/svg+xml",e.heic="image/heic",e.heif="image/heif",e.webp="image/webp",e.mp3="audio/mpeg",e.m3u="audio/x-mpequrl",e.ra="audio/x-realaudio",e.ram="audio/x-pn-realaudio",e.rm="audio/x-pn-realaudio",e.stream="audio/x-qt-stream",e.wav="audio/x-wav",e.flac="audio/x-flac",e.ogg="audio/ogg",e.midi="audio/midi",e.mid="audio/midi",e.wma="audio/wma",e.m4a="audio/x-m4a",e.avi="video/x-msvideo",e.flv="video/x-flv",e.mkv="video/x-matroska",e.mov="video/quicktime",e.mpeg="video/mpeg",e.mpg="video/mpeg",e.mp2="video/mpeg",e.mp4="video/mp4",e.qt="video/quicktime",e.vob="video/x-mpg",e.wmv="video/x-ms-wmv",e.zip="application/zip",e.x7z="application/x-7z-compressed",e.tar="application/x-tar",e.rar="application/vnd.rar",e.gz="application/gzip",e})(xy||{});var dl=(function(e){return e.NOT_INITIALIZED="NOT_INITIALIZED",e.ACCEPTED="ACCEPTED",e.REJECTED="REJECTED",e})(dl||{});var Ny=(function(e){return e[e.DRAFT=0]="DRAFT",e[e.PUBLISHED=1]="PUBLISHED",e})(Ny||{});var Ly=(function(e){return e[e.IN_PROGRESS=0]="IN_PROGRESS",e[e.PENDING_REVIEW=1]="PEND
2ING_REVIEW",e})(Ly||{});var Fy=(function(e){return e.POLICIES="Policies",e.POLICIESGROUPS="Policy_groups",e.POLICIESGROUPSSHARED="Policy_groups_shared",e.LINKEDACCOUNTS="LinkedAccounts",e})(Fy||{});var Py=(function(e){return e[e.DELETED=-1]="DELETED",e[e.DRAFT=0]="DRAFT",e[e.PUBLISHED=1]="PUBLISHED",e})(Py||{});var ky=(function(e){return e.EVENT="Event",e.PARENTS_EVENING="Parents Evening",e})(ky||{});var jy=(function(e){return e[e.SHORT_TEXT=1]="SHORT_TEXT",e[e.LONG_TEXT=2]="LONG_TEXT",e[e.MATRIX=3]="MATRIX",e[e.RADIO=4]="RADIO",e[e.CHECKBOX=5]="CHECKBOX",e[e.SELECT=6]="SELECT",e[e.EMAIL=7]="EMAIL",e[e.CAPTCHA=8]="CAPTCHA",e[e.SIGNATURE=9]="SIGNATURE",e[e.DATE=10]="DATE",e[e.DATE_TIME=11]="DATE_TIME",e})(jy||{});var Uy=(function(e){return e.SUBMITTION_TYPE_PUBLIC_MULTIPLE_ALLOWED="public_multiple_allowed",e.SUBMITTION_TYPE_PRIVATE_MULTIPLE_ALLOWED="private_multiple_allowed",e.SUBMITTION_TYPE_PRIVATE_ONE_ENTRY_PER_USER="private_one_entry_per_user",e})(Uy||{});var By=(function(e){return e.STAFF_GALLERY="staff",e.CURRICULUM_GALLERY="curriculum",e})(By||{});var go=(function(e){return e.XS="xs",e.S="s",e.M="m",e.ML="ml",e.L="l",e})(go||{}),QT={[go.XS]:200,[go.S]:400,[go.M]:800,[go.ML]:1300,[go.L]:null};var Vy=(function(e){return e.EXTERNAL_URL="EXTERNAL_URL",e.LINK_CMS_TO_PAGE="LINK_CMS_TO_PAGE",e.MAIL="MAIL",e.LINK_TO_FILE="LINK_TO_FILE",e})(Vy||{});var Gy=(function(e){return e[e.IN_PROGRESS=0]="IN_PROGRESS",e[e.DOWNLOADED=1]="DOWNLOADED",e[e.NOT_DOWNLOADED=null]="NOT_DOWNLOADED",e})(Gy||{});var $y=(function(e){return e.SEARCH="search",e.CALENDAR="calendar",e.SITEMAP="sitemap",e})($y||{});var Ma=(function(e){return e.ROLE_SITES_LOGIN="ROLE_SITES_LOGIN",e.ROLE_SITE_MNGOWNDRAFTS="ROLE_SITE_MNGOWNDRAFTS",e.ROLE_SITE_MNGALLDRAFTS="ROLE_SITE_MNGALLDRAFTS",e.ROLE_SITE_PUBCONTENT="ROLE_SITE_PUBCONTENT",e.ROLE_SITES_RESTOREPAGEREV="ROLE_SITES_RESTOREPAGEREV",e.ROLE_SITES_ACCESSTPLBUILDER="ROLE_SITES_ACCESSTPLBUILDER",e.ROLE_SITES_MANAGETHEMES="ROLE_SITES_MANAGETHEMES",e.ROLE_SITES_ACCESSPRIVATECONTENT="ROLE_SITES_ACCESSPRIVATECONTENT",e.ROLE_FILES_LOGIN="ROLE_FILES_LOGIN",e.ROLE_FILES_CREATE="ROLE_FILES_CREATE",e.ROLE_FILES_SOFTDEL="ROLE_FILES_SOFTDEL",e.ROLE_FILES_HARDDEL="ROLE_FILES_HARDDEL",e.ROLE_CATEG_LOGIN="ROLE_CATEG_LOGIN",e.ROLE_CATEG_CREATE="ROLE_CATEG_CREATE",e.ROLE_CATEG_SOFTDEL="ROLE_CATEG_SOFTDEL",e.ROLE_CATEG_HARDDEL="ROLE_CATEG_HARDDEL",e.ROLE_SETTINGS_LOGIN="ROLE_SETTINGS_LOGIN",e.ROLE_SETTINGS_MNGALL="ROLE_SETTINGS_MNGALL",e.ROLE_USERMNG_LOGIN="ROLE_USERMNG_LOGIN",e.ROLE_USERMNG_MNGUSERS="ROLE_USERMNG_MNGUSERS",e.ROLE_USERMNG_MNGGROUPS="ROLE_USERMNG_MNGGROUPS",e.ROLE_USERMNG_MNGROLES="ROLE_USERMNG_MNGROLES",e.ROLE_USERMNG_MNGLOGIN="ROLE_USERMNG_MNGLOGIN",e.ROLE_ORG_LOGIN="ROLE_ORG_LOGIN",e.ROLE_ORG_EDITORGMETA="ROLE_ORG_EDITORGMETA",e.ROLE_ORG_LOGINSUBORG="ROLE_ORG_LOGINSUBORG",e.ROLE_ORG_CREATEORG="ROLE_ORG_CREATEORG",e.ROLE_ORG_MNGDOMAINS="ROLE_ORG_MNGDOMAINS",e.ROLE_LINKS_LOGIN="ROLE_LINKS_LOGIN",e.ROLE_LINKS_VIEWPUB="ROLE_LINKS_VIEWPUB",e.ROLE_LINKS_VIEWGRP="ROLE_LINKS_VIEWGRP",e.ROLE_LINKS_VIEWALL="ROLE_LINKS_VIEWALL",e.ROLE_LINKS_MNGGRP="ROLE_LINKS_MNGGRP",e.ROLE_LINKS_MNGALL="ROLE_LINKS_MNGALL",e.ROLE_NOTICES_LOGIN="ROLE_NOTICES_LOGIN",e.ROLE_NOTICES_VIEWPUB="ROLE_NOTICES_VIEWPUB",e.ROLE_NOTICES_VIEWGRP="ROLE_NOTICES_VIEWGRP",e.ROLE_NOTICES_VIEWALL="ROLE_NOTICES_VIEWALL",e.ROLE_NOTICES_MNGGRP="ROLE_NOTICES_MNGGRP",e.ROLE_NOTICES_MNGALL="ROLE_NOTICES_MNGALL",e.ROLE_NOTICES_MNGOWNDRAFTS="ROLE_NOTICES_MNGOWNDRAFTS",e.ROLE_NOTICES_MNGALLDRAFTS="ROLE_NOTICES_MNGALLDRAFTS",e.ROLE_LETTERS_LOGIN="ROLE_LETTERS_LOGIN",e.ROLE_LETTERS_VIEWALL="ROLE_LETTERS_VIEWALL",e.ROLE_LETTERS_VIEWPUB="ROLE_LETTERS_VIEWPUB",e.ROLE_LETTERS_VIEWGRP="ROLE_LETTERS_VIEWGRP",e.ROLE_LETTERS_MNGGRP="ROLE_LETTERS_MNGGRP",e.ROLE_LETTERS_MNGALL="ROLE_LETTERS_MNGALL",e.ROLE_LETTERS_MNGOWNDRAFTS="ROLE_LETTERS_MNGOWNDRAFTS",e.ROLE_LETTERS_MNGALLDRAFTS="ROLE_LETTERS_MNGALLDRAFTS",e.ROLE_PROFILE_VIEWOWN="ROLE_PROFILE_VIEWOWN",e.ROLE_PROFILE_VIEWSTUDENT="ROLE_PROFILE_VIEWSTUDENT",e.ROLE_PROFILE_VIEWALL="ROLE_PROFILE_VIEWALL",e.ROLE_GROUP_VIEWALLMEMBERS="ROLE_GROUP_VIEWALLMEMBERS",e.ROLE_GROUP_VIEWSUPMEMBERS="ROLE_GROUP_VIEWSUPMEMBERS",e.ROLE_DASH_VIEWORGSWITCH="ROLE_DASH_VIEWORGSWITCH",e.ROLE_DASH_LOGIN="ROLE_DASH_LOGIN",e.ROLE_MOBILEAPP_LOGIN="ROLE_MOBILEAPP_LOGIN",e.ROLE_NEWS_LOGIN="ROLE_NEWS_LOGIN",e.ROLE_NEWS_VIEWPUB="ROLE_NEWS_VIEWPUB",e.ROLE_NEWS_VIEWGRP="ROLE_NEWS_VIEWGRP",e.ROLE_NEWS_VIEWALL="ROLE_NEWS_VIEWALL",e.ROLE_NEWS_MNGGRP="ROLE_NEWS_MNGGRP",e.ROLE_NEWS_MNGALL="ROLE_NEWS_MNGALL",e.ROLE_NEWS_MNGOWNDRAFTS="ROLE_NEWS_MNGOWNDRAFTS",e.ROLE_NEWS_MNGALLDRAFTS="ROLE_NEWS_MNGALLDRAFTS",e.ROLE_GALLERIES_LOGIN="ROLE_GALLERIES_LOGIN",e.ROLE_GALLERIES_VIEWPUB="ROLE_GALLERIES_VIEWPUB",e.ROLE_GALLERIES_VIEWGRP="ROLE_GALLERIES_VIEWGRP",e.ROLE_GALLERIES_VIEWALL="ROLE_GALLERIES_VIEWALL",e.ROLE_GALLERIES_MNGGRP="ROLE_GALLERIES_MNGGRP",e.ROLE_GALLERIES_MNGALL="ROLE_GALLERIES_MNGALL",e.ROLE_SCHEDULER_LOGIN="ROLE_SCHEDULER_LOGIN",e.ROLE_SCHEDULER_MANAGE="ROLE_SCHEDULER_MANAGE",e.ROLE_FORMS_LOGIN="ROLE_FORMS_LOGIN",e.ROLE_FORMS_VIEWPUB="ROLE_FORMS_VIEWPUB",e.ROLE_FORMS_VIEWGRP="ROLE_FORMS_VIEWGRP",e.ROLE_FORMS_VIEWALL="ROLE_FORMS_VIEWALL",e.ROLE_FORMS_MNGGRP="ROLE_FORMS_MNGGRP",e.ROLE_FORMS_MNGALL="ROLE_FORMS_MNGALL",e.ROLE_FORMS_VIEWFORMSUBMISSIONS="ROLE_FORMS_VIEWFORMSUBMISSIONS",e.ROLE_CALENDAR_LOGIN="ROLE_CALENDAR_LOGIN",e.ROLE_CALENDAR_VIEWPUB="ROLE_CALENDAR_VIEWPUB",e.ROLE_CALENDAR_VIEWGRP="ROLE_CALENDAR_VIEWGRP",e.ROLE_CALENDAR_VIEWALL="ROLE_CALENDAR_VIEWALL",e.ROLE_CALENDAR_MNGGRP="ROLE_CALENDAR_MNGGRP",e.ROLE_CALENDAR_MNGALL="ROLE_CALENDAR_MNGALL",e.ROLE_POLICIES_MNGALL="ROLE_POLICIES_MNGALL",e.ROLE_ANALYTICS_MNGALL="ROLE_ANALYTICS_MNGALL",e.ROLE_ANALYTICS_OFSTED_VIEW="ROLE_ANALYTICS_OFSTED_VIEW",e.ROLE_ANALYTICS_FILESTAT_VIEW="ROLE_ANALYTICS_FILESTAT_VIEW",e.ROLE_ANALYTICS_PAGESTAT_VIEW="ROLE_ANALYTICS_PAGESTAT_VIEW",e.ROLE_FULL_TOKEN="ROLE_FULL_TOKEN",e.ROLE_META_REVIEW="ROLE_META_REVIEW",e})(Ma||{});var Hy=(function(e){return e.POLICIES="policies-content-component",e})(Hy||{});var zy=(function(e){return e[e.ALL_PAGES=1]="ALL_PAGES",e[e.HOME_PAGE=2]="HOME_PAGE",e[e.EXCEPT_HOME_PAGE=3]="EXCEPT_HOME_PAGE",e})(zy||{});var Wy=(function(e){return e[e.SUBDOMAIN=1]="SUBDOMAIN",e[e.CUSTOM_DOMAIN=2]="CUSTOM_DOMAIN",e})(Wy||{});var qy=(function(e){return e[e.SCHOOL=1]="SCHOOL",e[e.BUSINESS=2]="BUSINESS",e[e.MAT=3]="MAT",e[e.SUPER_ADMIN=10]="SUPER_ADMIN",e})(qy||{});var Yy=(function(e){return e.CUSTOMER="customer",e.DEMO="demo",e.TEST="test",e.DEV="dev",e.TRIAL="trial",e.DO_NOT_DELETE="do_not_delete",e.TO_CHECK="to_check",e})(Yy||{});var yse="HH:mm";var vse="yyyy-MM-dd",_se="yyyy-MM-dd'T'HH:mm:ssZZ";var Sse="dd/MM/yyyy",Ese="h:mma dd/MM/yyyy";var yo=(e,r)=>{let{format:t,zone:n,preserveZone:i=!1,emptyValue:o="invalid"}=r||{};
vendor: 8,781 bytes, line 2
2if(e==null||e==="")return o==="now"?ve.now():ve.invalid("empty");if(ve.isDateTime(e))return n?e.setZone(n):e;if(e instanceof Date)return ve.fromJSDate(e,n?{zone:n}:void 0);if(typeof e!="string")return ve.invalid("unsupported type");if(t){let s=ve.fromFormat(e,t,u({setZone:i},n?{zone:n}:{}));if(s.isValid)return s}return ve.fromISO(e,u({setZone:i},n?{zone:n}:{}))};function yt(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var r=e.ownerDocument;return r&&r.defaultView||window}return e}function An(e){var r=yt(e).Element;return e instanceof r||e instanceof Element}function Jt(e){var r=yt(e).HTMLElement;return e instanceof r||e instanceof HTMLElement}function Ra(e){if(typeof ShadowRoot>"u")return!1;var r=yt(e).ShadowRoot;return e instanceof r||e instanceof ShadowRoot}var Kn=Math.max,rs=Math.min,Ni=Math.round;function Ia(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(r){return r.brand+"/"+r.version}).join(" "):navigator.userAgent}function fl(){return!/^((?!chrome|android).)*safari/i.test(Ia())}function On(e,r,t){r===void 0&&(r=!1),t===void 0&&(t=!1);var n=e.getBoundingClientRect(),i=1,o=1;r&&Jt(e)&&(i=e.offsetWidth>0&&Ni(n.width)/e.offsetWidth||1,o=e.offsetHeight>0&&Ni(n.height)/e.offsetHeight||1);var s=An(e)?yt(e):window,a=s.visualViewport,c=!fl()&&t,l=(n.left+(c&&a?a.offsetLeft:0))/i,d=(n.top+(c&&a?a.offsetTop:0))/o,m=n.width/i,y=n.height/o;return{width:m,height:y,top:d,right:l+m,bottom:d+y,left:l,x:l,y:d}}function ns(e){var r=yt(e),t=r.pageXOffset,n=r.pageYOffset;return{scrollLeft:t,scrollTop:n}}function Ky(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Jy(e){return e===yt(e)||!Jt(e)?ns(e):Ky(e)}function or(e){return e?(e.nodeName||"").toLowerCase():null}function hr(e){return((An(e)?e.ownerDocument:e.document)||window.document).documentElement}function is(e){return On(hr(e)).left+ns(e).scrollLeft}function kr(e){return yt(e).getComputedStyle(e)}function os(e){var r=kr(e),t=r.overflow,n=r.overflowX,i=r.overflowY;return/auto|scroll|overlay|hidden/.test(t+i+n)}function e$(e){var r=e.getBoundingClientRect(),t=Ni(r.width)/e.offsetWidth||1,n=Ni(r.height)/e.offsetHeight||1;return t!==1||n!==1}function Zy(e,r,t){t===void 0&&(t=!1);var n=Jt(r),i=Jt(r)&&e$(r),o=hr(r),s=On(e,i,t),a={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(n||!n&&!t)&&((or(r)!=="body"||os(o))&&(a=Jy(r)),Jt(r)?(c=On(r,!0),c.x+=r.clientLeft,c.y+=r.clientTop):o&&(c.x=is(o))),{x:s.left+a.scrollLeft-c.x,y:s.top+a.scrollTop-c.y,width:s.width,height:s.height}}function ss(e){var r=On(e),t=e.offsetWidth,n=e.offsetHeight;return Math.abs(r.width-t)<=1&&(t=r.width),Math.abs(r.height-n)<=1&&(n=r.height),{x:e.offsetLeft,y:e.offsetTop,width:t,height:n}}function Li(e){return or(e)==="html"?e:e.assignedSlot||e.parentNode||(Ra(e)?e.host:null)||hr(e)}function Hf(e){return["html","body","#document"].indexOf(or(e))>=0?e.ownerDocument.body:Jt(e)&&os(e)?e:Hf(Li(e))}function vo(e,r){var t;r===void 0&&(r=[]);var n=Hf(e),i=n===((t=e.ownerDocument)==null?void 0:t.body),o=yt(n),s=i?[o].concat(o.visualViewport||[],os(n)?n:[]):n,a=r.concat(s);return i?a:a.concat(vo(Li(s)))}function Qy(e){return["table","td","th"].indexOf(or(e))>=0}function XT(e){return!Jt(e)||kr(e).position==="fixed"?null:e.offsetParent}function t$(e){var r=/firefox/i.test(Ia()),t=/Trident/i.test(Ia());if(t&&Jt(e)){var n=kr(e);if(n.position==="fixed")return null}var i=Li(e);for(Ra(i)&&(i=i.host);Jt(i)&&["html","body"].indexOf(or(i))<0;){var o=kr(i);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||r&&o.willChange==="filter"||r&&o.filter&&o.filter!=="none")return i;i=i.parentNode}return null}function Jn(e){for(var r=yt(e),t=XT(e);t&&Qy(t)&&kr(t).position==="static";)t=XT(t);return t&&(or(t)==="html"||or(t)==="body"&&kr(t).position==="static")?r:t||t$(e)||r}var Ot="top",Zt="bottom",Bt="right",It="left",zf="auto",_o=[Ot,Zt,Bt,It],Fi="start",as="end",ew="clippingParents",Wf="viewport",xa="popper",tw="reference",Xy=_o.reduce(function(e,r){return e.concat([r+"-"+Fi,r+"-"+as])},[]),qf=[].concat(_o,[zf]).reduce(function(e,r){return e.concat([r,r+"-"+Fi,r+"-"+as])},[]),r$="beforeRead",n$="read",i$="afterRead",o$="beforeMain",s$="main",a$="afterMain",c$="beforeWrite",l$="write",u$="afterWrite",rw=[r$,n$,i$,o$,s$,a$,c$,l$,u$];function d$(e){var r=new Map,t=new Set,n=[];e.forEach(function(o){r.set(o.name,o)});function i(o){t.add(o.name);var s=[].concat(o.requires||[],o.requiresIfExists||[]);s.forEach(function(a){if(!t.has(a)){var c=r.get(a);c&&i(c)}}),n.push(o)}return e.forEach(function(o){t.has(o.name)||i(o)}),n}function e0(e){var r=d$(e);return rw.reduce(function(t,n){return t.concat(r.filter(function(i){return i.phase===n}))},[])}function t0(e){var r;return function(){return r||(r=new Promise(function(t){Promise.resolve().then(function(){r=void 0,t(e())})})),r}}function r0(e){var r=e.reduce(function(t,n){var i=t[n.name];return t[n.name]=i?Object.assign({},i,n,{options:Object.assign({},i.options,n.options),data:Object.assign({},i.data,n.data)}):n,t},{});return Object.keys(r).map(function(t){return r[t]})}function n0(e,r){var t=yt(e),n=hr(e),i=t.visualViewport,o=n.clientWidth,s=n.clientHeight,a=0,c=0;if(i){o=i.width,s=i.height;var l=fl();(l||!l&&r==="fixed")&&(a=i.offsetLeft,c=i.offsetTop)}return{width:o,height:s,x:a+is(e),y:c}}function i0(e){var r,t=hr(e),n=ns(e),i=(r=e.ownerDocument)==null?void 0:r.body,o=Kn(t.scrollWidth,t.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),s=Kn(t.scrollHeight,t.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),a=-n.scrollLeft+is(e),c=-n.scrollTop;return kr(i||t).direction==="rtl"&&(a+=Kn(t.clientWidth,i?i.clientWidth:0)-o),{width:o,height:s,x:a,y:c}}function pl(e,r){var t=r.getRootNode&&r.getRootNode();if(e.contains(r))return!0;if(t&&Ra(t)){var n=r;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function Na(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function f$(e,r){var t=On(e,!1,r==="fixed");return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}function nw(e,r,t){return r===Wf?Na(n0(e,t)):An(r)?f$(r,t):Na(i0(hr(e)))}function p$(e){var r=vo(Li(e)),t=["absolute","fixed"].indexOf(kr(e).position)>=0,n=t&&Jt(e)?Jn(e):e;return An(n)?r.filter(function(i){return An(i)&&pl(i,n)&&or(i)!=="body"}):[]}function o0(e,r,t,n){var i=r==="clippingParents"?p$(e):[].concat(r),o=[].concat(i,[t]),s=o[0],a=o.reduce(function(c,l){var d=nw(e,l,n);return c.top=Kn(d.top,c.top),c.right=rs(d.right,c.right),c.bottom=rs(d.bottom,c.bottom),c.left=Kn(d.left,c.left),c},nw(e,s,n));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function sr(e){return e.split("-")[0]}function Mn(e){return e.split("-")[1]}function cs(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function hl(e){var r=e.reference,t=e.element,n=e.placement,i=n?sr(n):null,o=n?Mn(n):null,s=r.x+r.width/2-t.width/2,a=r.y+r.height/2-t.height/2,c;switch(i){case Ot:c={x:s,y:r.y-t.height};break;case Zt:c={x:s,y:r.y+r.height};break;case Bt:c={x:r.x+r.width,y:a};break;case It:c={x:r.x-t.width,y:a};break;default:c={x:r.x,y:r.y}}var l=i?cs(i):null;if(l!=null){var d=l==="y"?"height":"width";switch(o){case Fi:c[l]=c[l]-(r[d]/2-t[d]/2);break;case as:c[l]=c[l]+(r[d]/2-t[d]/2);break;default:}}return c}function ml(){return{top:0,right:0,bottom:0,left:0}}function gl(e){return Object.assign({},ml(),e)}function yl(e,r){return r.reduce(function(t,n){return t[n]=e,t},{})}function Rn(e,r){r===void 0&&(r={});var t=r,n=t.placement,i=n===void 0?e.placement:n,o=t.strategy,s=o===void 0?e.strategy:o,a=t.boundary,c=a===void 0?ew:a,l=t.rootBoundary,d=l===void 0?Wf:l,m=t.elementContext,y=m===void 0?xa:m,S=t.altBoundary,N=S===void 0?!1:S,T=t.padding,v=T===void 0?0:T,b=gl(typeof v!="number"?v:yl(v,_o)),D=y===xa?tw:xa,M=e.rects.popper,O=e.elements[N?D:y],F=o0(An(O)?O:O.contextElement||hr(e.elements.popper),c,d,s),B=On(e.elements.reference),J=hl({reference:B,element:M,strategy:"absolute",placement:i}),oe=Na(Object.assign({},M,J)),De=y===xa?oe:B,ue={top:F.top-De.top+b.top,bottom:De.bottom-F.bottom+b.bottom,left:F.left-De.left+b.left,right:De.right-F.right+b.right},rt=e.modifiersData.offset;if(y===xa&&rt){var wr=rt[i];Object.keys(ue).forEach(function(mt){var Pn=[Bt,Zt].indexOf(mt)>=0?1:-1,gi=[Ot,Zt].indexOf(mt)>=0?"y":"x";ue[mt]+=wr[gi]*Pn})}return ue}var iw={placement:"bottom",modifiers:[],strategy:"absolute"};function ow(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];return!r.some(function(n){return!(n&&typeof n.getBoundingClientRect=="function")})}function Yf(e){e===void 0&&(e={});
vendor: 1,170 bytes, line 2
2var r=e,t=r.defaultModifiers,n=t===void 0?[]:t,i=r.defaultOptions,o=i===void 0?iw:i;return function(a,c,l){l===void 0&&(l=o);var d={placement:"bottom",orderedModifiers:[],options:Object.assign({},iw,o),modifiersData:{},elements:{reference:a,popper:c},attributes:{},styles:{}},m=[],y=!1,S={state:d,setOptions:function(b){var D=typeof b=="function"?b(d.options):b;T(),d.options=Object.assign({},o,d.options,D),d.scrollParents={reference:An(a)?vo(a):a.contextElement?vo(a.contextElement):[],popper:vo(c)};var M=e0(r0([].concat(n,d.options.modifiers)));return d.orderedModifiers=M.filter(function(O){return O.enabled}),N(),S.update()},forceUpdate:function(){if(!y){var b=d.elements,D=b.reference,M=b.popper;if(ow(D,M)){d.rects={reference:Zy(D,Jn(M),d.options.strategy==="fixed"),popper:ss(M)},d.reset=!1,d.placement=d.options.placement,d.orderedModifiers.forEach(function(ue){return d.modifiersData[ue.name]=Object.assign({},ue.data)});for(var O=0;O<d.orderedModifiers.length;O++){if(d.reset===!0){d.reset=!1,O=-1;continue}var F=d.orderedModifiers[O],B=F.fn,J=F.options,oe=J===void 0?{}:J,De=F.name;typeof B=="function"&&(d=B({state:d,options:oe,name:De,instance:S})||d)}}}}
vendor: 3,532 bytes, line 2
2,update:t0(function(){return new Promise(function(v){S.forceUpdate(),v(d)})}),destroy:function(){T(),y=!0}};if(!ow(a,c))return S;S.setOptions(l).then(function(v){!y&&l.onFirstUpdate&&l.onFirstUpdate(v)});function N(){d.orderedModifiers.forEach(function(v){var b=v.name,D=v.options,M=D===void 0?{}:D,O=v.effect;if(typeof O=="function"){var F=O({state:d,name:b,instance:S,options:M}),B=function(){};m.push(F||B)}})}function T(){m.forEach(function(v){return v()}),m=[]}return S}}var Kf={passive:!0};function h$(e){var r=e.state,t=e.instance,n=e.options,i=n.scroll,o=i===void 0?!0:i,s=n.resize,a=s===void 0?!0:s,c=yt(r.elements.popper),l=[].concat(r.scrollParents.reference,r.scrollParents.popper);return o&&l.forEach(function(d){d.addEventListener("scroll",t.update,Kf)}),a&&c.addEventListener("resize",t.update,Kf),function(){o&&l.forEach(function(d){d.removeEventListener("scroll",t.update,Kf)}),a&&c.removeEventListener("resize",t.update,Kf)}}var Jf={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:h$,data:{}};function m$(e){var r=e.state,t=e.name;r.modifiersData[t]=hl({reference:r.rects.reference,element:r.rects.popper,strategy:"absolute",placement:r.placement})}var Zf={name:"popperOffsets",enabled:!0,phase:"read",fn:m$,data:{}};var g$={top:"auto",right:"auto",bottom:"auto",left:"auto"};function y$(e,r){var t=e.x,n=e.y,i=r.devicePixelRatio||1;return{x:Ni(t*i)/i||0,y:Ni(n*i)/i||0}}function sw(e){var r,t=e.popper,n=e.popperRect,i=e.placement,o=e.variation,s=e.offsets,a=e.position,c=e.gpuAcceleration,l=e.adaptive,d=e.roundOffsets,m=e.isFixed,y=s.x,S=y===void 0?0:y,N=s.y,T=N===void 0?0:N,v=typeof d=="function"?d({x:S,y:T}):{x:S,y:T};S=v.x,T=v.y;var b=s.hasOwnProperty("x"),D=s.hasOwnProperty("y"),M=It,O=Ot,F=window;if(l){var B=Jn(t),J="clientHeight",oe="clientWidth";if(B===yt(t)&&(B=hr(t),kr(B).position!=="static"&&a==="absolute"&&(J="scrollHeight",oe="scrollWidth")),B=B,i===Ot||(i===It||i===Bt)&&o===as){O=Zt;var De=m&&B===F&&F.visualViewport?F.visualViewport.height:B[J];T-=De-n.height,T*=c?1:-1}if(i===It||(i===Ot||i===Zt)&&o===as){M=Bt;var ue=m&&B===F&&F.visualViewport?F.visualViewport.width:B[oe];S-=ue-n.width,S*=c?1:-1}}var rt=Object.assign({position:a},l&&g$),wr=d===!0?y$({x:S,y:T},yt(t)):{x:S,y:T};if(S=wr.x,T=wr.y,c){var mt;return Object.assign({},rt,(mt={},mt[O]=D?"0":"",mt[M]=b?"0":"",mt.transform=(F.devicePixelRatio||1)<=1?"translate("+S+"px, "+T+"px)":"translate3d("+S+"px, "+T+"px, 0)",mt))}return Object.assign({},rt,(r={},r[O]=D?T+"px":"",r[M]=b?S+"px":"",r.transform="",r))}function v$(e){var r=e.state,t=e.options,n=t.gpuAcceleration,i=n===void 0?!0:n,o=t.adaptive,s=o===void 0?!0:o,a=t.roundOffsets,c=a===void 0?!0:a,l={placement:sr(r.placement),variation:Mn(r.placement),popper:r.elements.popper,popperRect:r.rects.popper,gpuAcceleration:i,isFixed:r.options.strategy==="fixed"};r.modifiersData.popperOffsets!=null&&(r.styles.popper=Object.assign({},r.styles.popper,sw(Object.assign({},l,{offsets:r.modifiersData.popperOffsets,position:r.options.strategy,adaptive:s,roundOffsets:c})))),r.modifiersData.arrow!=null&&(r.styles.arrow=Object.assign({},r.styles.arrow,sw(Object.assign({},l,{offsets:r.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),r.attributes.popper=Object.assign({},r.attributes.popper,{"data-popper-placement":r.placement})}var Qf={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:v$,data:{}};function _$(e){var r=e.state;Object.keys(r.elements).forEach(function(t){var n=r.styles[t]||{},i=r.attributes[t]||{},o=r.elements[t];
vendor: 6,201 bytes, line 2
2!Jt(o)||!or(o)||(Object.assign(o.style,n),Object.keys(i).forEach(function(s){var a=i[s];a===!1?o.removeAttribute(s):o.setAttribute(s,a===!0?"":a)}))})}function S$(e){var r=e.state,t={popper:{position:r.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(r.elements.popper.style,t.popper),r.styles=t,r.elements.arrow&&Object.assign(r.elements.arrow.style,t.arrow),function(){Object.keys(r.elements).forEach(function(n){var i=r.elements[n],o=r.attributes[n]||{},s=Object.keys(r.styles.hasOwnProperty(n)?r.styles[n]:t[n]),a=s.reduce(function(c,l){return c[l]="",c},{});!Jt(i)||!or(i)||(Object.assign(i.style,a),Object.keys(o).forEach(function(c){i.removeAttribute(c)}))})}}var Xf={name:"applyStyles",enabled:!0,phase:"write",fn:_$,effect:S$,requires:["computeStyles"]};function E$(e,r,t){var n=sr(e),i=[It,Ot].indexOf(n)>=0?-1:1,o=typeof t=="function"?t(Object.assign({},r,{placement:e})):t,s=o[0],a=o[1];return s=s||0,a=(a||0)*i,[It,Bt].indexOf(n)>=0?{x:a,y:s}:{x:s,y:a}}function b$(e){var r=e.state,t=e.options,n=e.name,i=t.offset,o=i===void 0?[0,0]:i,s=qf.reduce(function(d,m){return d[m]=E$(m,r.rects,o),d},{}),a=s[r.placement],c=a.x,l=a.y;r.modifiersData.popperOffsets!=null&&(r.modifiersData.popperOffsets.x+=c,r.modifiersData.popperOffsets.y+=l),r.modifiersData[n]=s}var vl={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:b$};var D$={left:"right",right:"left",bottom:"top",top:"bottom"};function La(e){return e.replace(/left|right|bottom|top/g,function(r){return D$[r]})}var C$={start:"end",end:"start"};function ep(e){return e.replace(/start|end/g,function(r){return C$[r]})}function s0(e,r){r===void 0&&(r={});var t=r,n=t.placement,i=t.boundary,o=t.rootBoundary,s=t.padding,a=t.flipVariations,c=t.allowedAutoPlacements,l=c===void 0?qf:c,d=Mn(n),m=d?a?Xy:Xy.filter(function(N){return Mn(N)===d}):_o,y=m.filter(function(N){return l.indexOf(N)>=0});y.length===0&&(y=m);var S=y.reduce(function(N,T){return N[T]=Rn(e,{placement:T,boundary:i,rootBoundary:o,padding:s})[sr(T)],N},{});return Object.keys(S).sort(function(N,T){return S[N]-S[T]})}function T$(e){if(sr(e)===zf)return[];var r=La(e);return[ep(e),r,ep(r)]}function w$(e){var r=e.state,t=e.options,n=e.name;if(!r.modifiersData[n]._skip){for(var i=t.mainAxis,o=i===void 0?!0:i,s=t.altAxis,a=s===void 0?!0:s,c=t.fallbackPlacements,l=t.padding,d=t.boundary,m=t.rootBoundary,y=t.altBoundary,S=t.flipVariations,N=S===void 0?!0:S,T=t.allowedAutoPlacements,v=r.options.placement,b=sr(v),D=b===v,M=c||(D||!N?[La(v)]:T$(v)),O=[v].concat(M).reduce(function(Ts,Gi){return Ts.concat(sr(Gi)===zf?s0(r,{placement:Gi,boundary:d,rootBoundary:m,padding:l,flipVariations:N,allowedAutoPlacements:T}):Gi)},[]),F=r.rects.reference,B=r.rects.popper,J=new Map,oe=!0,De=O[0],ue=0;ue<O.length;ue++){var rt=O[ue],wr=sr(rt),mt=Mn(rt)===Fi,Pn=[Ot,Zt].indexOf(wr)>=0,gi=Pn?"width":"height",Ar=Rn(r,{placement:rt,boundary:d,rootBoundary:m,altBoundary:y,padding:l}),kn=Pn?mt?Bt:It:mt?Zt:Ot;F[gi]>B[gi]&&(kn=La(kn));var Iu=La(kn),Ro=[];if(o&&Ro.push(Ar[wr]<=0),a&&Ro.push(Ar[kn]<=0,Ar[Iu]<=0),Ro.every(function(Ts){return Ts})){De=rt,oe=!1;break}J.set(rt,Ro)}if(oe)for(var xu=N?3:1,gm=function(Gi){var vc=O.find(function(Lu){var Io=J.get(Lu);if(Io)return Io.slice(0,Gi).every(function(ym){return ym})});if(vc)return De=vc,"break"},yc=xu;yc>0;yc--){var Nu=gm(yc);if(Nu==="break")break}r.placement!==De&&(r.modifiersData[n]._skip=!0,r.placement=De,r.reset=!0)}}var _l={name:"flip",enabled:!0,phase:"main",fn:w$,requiresIfExists:["offset"],data:{_skip:!1}};function a0(e){return e==="x"?"y":"x"}function ls(e,r,t){return Kn(e,rs(r,t))}function aw(e,r,t){var n=ls(e,r,t);return n>t?t:n}function A$(e){var r=e.state,t=e.options,n=e.name,i=t.mainAxis,o=i===void 0?!0:i,s=t.altAxis,a=s===void 0?!1:s,c=t.boundary,l=t.rootBoundary,d=t.altBoundary,m=t.padding,y=t.tether,S=y===void 0?!0:y,N=t.tetherOffset,T=N===void 0?0:N,v=Rn(r,{boundary:c,rootBoundary:l,padding:m,altBoundary:d}),b=sr(r.placement),D=Mn(r.placement),M=!D,O=cs(b),F=a0(O),B=r.modifiersData.popperOffsets,J=r.rects.reference,oe=r.rects.popper,De=typeof T=="function"?T(Object.assign({},r.rects,{placement:r.placement})):T,ue=typeof De=="number"?{mainAxis:De,altAxis:De}:Object.assign({mainAxis:0,altAxis:0},De),rt=r.modifiersData.offset?r.modifiersData.offset[r.placement]:null,wr={x:0,y:0};if(B){if(o){var mt,Pn=O==="y"?Ot:It,gi=O==="y"?Zt:Bt,Ar=O==="y"?"height":"width",kn=B[O],Iu=kn+v[Pn],Ro=kn-v[gi],xu=S?-oe[Ar]/2:0,gm=D===Fi?J[Ar]:oe[Ar],yc=D===Fi?-oe[Ar]:-J[Ar],Nu=r.elements.arrow,Ts=S&&Nu?ss(Nu):{width:0,height:0},Gi=r.modifiersData["arrow#persistent"]?r.modifiersData["arrow#persistent"].padding:ml(),vc=Gi[Pn],Lu=Gi[gi],Io=ls(0,J[Ar],Ts[Ar]),ym=M?J[Ar]/2-xu-Io-vc-ue.mainAxis:gm-Io-vc-ue.mainAxis,dx=M?-J[Ar]/2+xu+Io+Lu+ue.mainAxis:yc+Io+Lu+ue.mainAxis,vm=r.elements.arrow&&Jn(r.elements.arrow),fx=vm?O==="y"?vm.clientTop||0:vm.clientLeft||0:0,q_=(mt=rt?.[O])!=null?mt:0,px=kn+ym-q_-fx,hx=kn+dx-q_,Y_=ls(S?rs(Iu,px):Iu,kn,S?Kn(Ro,hx):Ro);B[O]=Y_,wr[O]=Y_-kn}if(a){var K_,mx=O==="x"?Ot:It,gx=O==="x"?Zt:Bt,xo=B[F],Fu=F==="y"?"height":"width",J_=xo+v[mx],Z_=xo-v[gx],_m=[Ot,It].indexOf(b)!==-1,Q_=(K_=rt?.[F])!=null?K_:0,X_=_m?J_:xo-J[Fu]-oe[Fu]-Q_+ue.altAxis,eS=_m?xo+J[Fu]+oe[Fu]-Q_-ue.altAxis:Z_,tS=S&&_m?aw(X_,xo,eS):ls(S?X_:J_,xo,S?eS:Z_);B[F]=tS,wr[F]=tS-xo}r.modifiersData[n]=wr}}var Sl={name:"preventOverflow",enabled:!0,phase:"main",fn:A$,requiresIfExists:["offset"]};var O$=function(r,t){return r=typeof r=="function"?r(Object.assign({},t.rects,{placement:t.placement})):r,gl(typeof r!="number"?r:yl(r,_o))};function M$(e){var r,t=e.state,n=e.name,i=e.options,o=t.elements.arrow,s=t.modifiersData.popperOffsets,a=sr(t.placement),c=cs(a),l=[It,Bt].indexOf(a)>=0,d=l?"height":"width";if(!(!o||!s)){var m=O$(i.padding,t),y=ss(o),S=c==="y"?Ot:It,N=c==="y"?Zt:Bt,T=t.rects.reference[d]+t.rects.reference[c]-s[c]-t.rects.popper[d],v=s[c]-t.rects.reference[c],b=Jn(o),D=b?c==="y"?b.clientHeight||0:b.clientWidth||0:0,M=T/2-v/2,O=m[S],F=D-y[d]-m[N],B=D/2-y[d]/2+M,J=ls(O,B,F),oe=c;t.modifiersData[n]=(r={},r[oe]=J,r.centerOffset=J-B,r)}}function R$(e){var r=e.state,t=e.options,n=t.element,i=n===void 0?"[data-popper-arrow]":n;
2i!=null&&(typeof i=="string"&&(i=r.elements.popper.querySelector(i),!i)||pl(r.elements.popper,i)&&(r.elements.arrow=i))}var El={name:"arrow",enabled:!0,phase:"main",fn:M$,effect:R$,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function cw(e,r,t){return t===void 0&&(t={x:0,y:0}),{top:e.top-r.height-t.y,right:e.right-r.width+t.x,bottom:e.bottom-r.height+t.y,left:e.left-r.width-t.x}}function lw(e){return[Ot,Bt,Zt,It].some(function(r){return e[r]>=0})}function I$(e){var r=e.state,t=e.name,n=r.rects.reference,i=r.rects.popper,o=r.modifiersData.preventOverflow,s=Rn(r,{elementContext:"reference"}),a=Rn(r,{altBoundary:!0}),c=cw(s,n),l=cw(a,i,o),d=lw(c),m=lw(l);r.modifiersData[t]={referenceClippingOffsets:c,popperEscapeOffsets:l,isReferenceHidden:d,hasPopperEscaped:m},r.attributes.popper=Object.assign({},r.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":m})}var uw={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:I$};var x$=[Jf,Zf,Qf,Xf],c0=Yf({defaultModifiers:x$});var N$=[Jf,Zf,Qf,Xf,vl,_l,Sl,El,uw],L$=Yf({defaultModifiers:N$});var F$=(function(e){return e.ADMIN="admin",e.CLIENT="client",e})(F$||{});var Fa=new R("APP_ENV");function Yr(e){e||(e=f(_t));let r=new Ht(t=>{if(e.destroyed){t.next();return}return e.onDestroy(t.next.bind(t))});return t=>t.pipe(We(r))}function tp(e,r){let n=!r?.manualCleanup?r?.injector?.get(_t)??f(_t):null,i=P$(r?.equal),o;r?.requireSync?o=Ye({kind:0},{equal:i}):o=Ye({kind:1,value:r?.initialValue},{equal:i});let s,a=e.subscribe({next:c=>o.set({kind:1,value:c}),error:c=>{o.set({kind:2,error:c}),s?.()},complete:()=>{s?.()}});if(r?.requireSync&&o().kind===0)throw new ne(601,!1);return s=n?.onDestroy(a.unsubscribe.bind(a)),Er(()=>{let c=o();switch(c.kind){case 1:return c.value;case 2:throw c.error;case 0:throw new ne(601,!1)}},{equal:r?.equal})}function P$(e=Object.is){return(r,t)=>r.kind===1&&t.kind===1&&e(r.value,t.value)}var Kr=(()=>{class e{constructor(){this.animation=!0}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=h({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var k$=(()=>{class e{constructor(){this._element=f(Ce).documentElement}isRTL(){return(this._element.getAttribute("dir")||"").toLowerCase()==="rtl"}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=h({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),j$=/\s+/,U$=/  +/gi,B$={top:["top"],bottom:["bottom"],start:["left","right"],left:["left"],end:["right","left"],right:["right"],"top-start":["top-start","top-end"],"top-left":["top-start"],"top-end":["top-end","top-start"],"top-right":["top-end"],"bottom-start":["bottom-start","bottom-end"],"bottom-left":["bottom-start"],"bottom-end":["bottom-end","bottom-start"],"bottom-right":["bottom-end"],"start-top":["left-start","right-start"],"left-top":["left-start"],"start-bottom":["left-end","right-end"],"left-bottom":["left-end"],"end-top":["right-start","left-start"],"right-top":["right-start"],"end-bottom":["right-end","left-end"],"right-bottom":["right-end"]};function V$(e,r){let[t,n]=B$[e];return r&&n||t}var G$=/^left/,$$=/^right/,H$=/^start/,z$=/^end/;function W$(e,r){let[t,n]=r.split("-"),i=t.replace(G$,"start").replace($$,"end"),o=[i];if(n){let s=n;(t==="left"||t==="right")&&(s=s.replace(H$,"top").replace(z$,"bottom")),o.push(`${i}-${s}`)}return e&&(o=o.map(s=>`${e}-${s}`)),o.join(" ")}function dw({placement:e,baseClass:r},t){let n=Array.isArray(e)?e:e.split(j$),i=["top","bottom","start","end","top-start","top-end","bottom-start","bottom-end","start-top","start-bottom","end-top","end-bottom"],o=n.findIndex(l=>l==="auto");o>=0&&i.forEach(function(l){n.find(d=>d.search("^"+l)!==-1)==null&&n.splice(o++,1,l)});let s=n.map(l=>V$(l,t.isRTL()));return{placement:s.shift(),modifiers:[{name:"bootstrapClasses",enabled:!!r,phase:"write",fn({state:l}){let d=new RegExp(r+"(-[a-z]+)*","gi"),m=l.elements.popper,y=l.placement,S=m.className;S=S.replace(d,""),S+=` ${W$(r,y)}`,S=S.trim().replace(U$," "),m.className=S}},_l,Sl,El,{enabled:!0,name:"flip",options:{fallbackPlacements:s}}]}}function fw(e){return e}function ka(){let e=f(k$),r=null;return{createPopper(t){if(!r){let i=(t.updatePopperOptions||fw)(dw(t,e));r=c0(t.hostElement,t.targetElement,i)}}
2,update(){r&&r.update()},setOptions(t){if(r){let i=(t.updatePopperOptions||fw)(dw(t,e));r.setOptions(i)}},destroy(){r&&(r.destroy(),r=null)}}}function Qt(e){return parseInt(`${e}`,10)}function hw(e,r,t=0){return Math.max(Math.min(e,r),t)}function In(e){return typeof e=="string"}function ft(e){return!isNaN(Qt(e))}function pt(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e}function np(e){return e!=null}function mw(e){return e&&e.then}function So(e){return ft(e)?`0${e}`.slice(-2):""}function q$(e,r){return!r||typeof e.closest>"u"?null:e.closest(r)}function ja(e){return(e||document.body).getBoundingClientRect()}function Y$(e){return r=>new Ht(t=>{let n=s=>e.run(()=>t.next(s)),i=s=>e.run(()=>t.error(s)),o=()=>e.run(()=>t.complete());return r.subscribe({next:n,error:i,complete:o})})}function K$(e){let{transitionDelay:r,transitionDuration:t}=window.getComputedStyle(e),n=parseFloat(r),i=parseFloat(t);return(n+i)*1e3}var J$=()=>{},Z$={getTransitionTimerDelayMs:()=>5},bl=new Map,mr=(e,r,t,n)=>{let i=n.context||{},o=bl.get(r);if(o)switch(n.runningTransition){case"continue":return Lt;case"stop":e.run(()=>o.transition$.complete()),i=Object.assign(o.context,i),bl.delete(r)}let s=t(r,n.animation,i)||J$;if(!n.animation||window.getComputedStyle(r).transitionProperty==="none")return e.run(()=>s()),_(void 0).pipe(Y$(e));let a=new me,c=new me,l=a.pipe(cS(!0));bl.set(r,{transition$:a,complete:()=>{c.next(),c.complete()},context:i});let d=K$(r);return e.runOutsideAngular(()=>{let m=vr(r,"transitionend").pipe(We(l),q(({target:S})=>S===r)),y=As(d+Z$.getTransitionTimerDelayMs()).pipe(We(l));ri(y,m,c).pipe(We(l)).subscribe(()=>{bl.delete(r),e.run(()=>{s(),a.next(),a.complete()})})}),a.asObservable()},Ua=e=>{bl.get(e)?.complete()};function Q$(e,r){if(typeof navigator>"u")return"0px";let{classList:t}=e,n=t.contains("show");n||t.add("show"),e.style[r]="";let i=e.getBoundingClientRect()[r]+"px";return n||t.remove("show"),i}var gw=(e,r,t)=>{let{direction:n,maxSize:i,dimension:o}=t,{classList:s}=e;function a(){s.add("collapse"),n==="show"?s.add("show"):s.remove("show")}if(!r){a();return}return i||(i=Q$(e,o),t.maxSize=i,e.style[o]=n!=="show"?i:"0px",s.remove("collapse","collapsing","show"),ja(e),s.add("collapsing")),e.style[o]=n==="show"?i:"0px",()=>{a(),s.remove("collapsing"),e.style[o]=""}},rp=(e,r)=>r?r.some(t=>t.contains(e)):!1,pw=(e,r)=>!r||q$(e,r)!=null,X$=(()=>{let e=()=>/iPad|iPhone|iPod/.test(navigator.userAgent)||/Macintosh/.test(navigator.userAgent)&&navigator.maxTouchPoints&&navigator.maxTouchPoints>2,r=()=>/Android/.test(navigator.userAgent);return typeof navigator<"u"?!!navigator.userAgent&&(e()||r()):!1})(),eH=e=>X$?()=>setTimeout(()=>e(),100):e;function Ba(e,r,t,n,i,o,s,a){t&&e.runOutsideAngular(eH(()=>{let c=y=>{let S=y.target;return y.button===2||rp(S,s)?!1:t==="inside"?rp(S,o)&&pw(S,a):t==="outside"?!rp(S,o):pw(S,a)||!rp(S,o)},l=vr(r,"keydown").pipe(We(i),q(y=>y.key==="Escape"),ge(y=>y.preventDefault())),d=vr(r,"mousedown").pipe(E(c),We(i)),m=vr(r,"mouseup").pipe(fr(d),q(([y,S])=>S),dr(0),We(i));ri([l.pipe(E(y=>0)),m.pipe(E(y=>1))]).subscribe(y=>e.run(()=>n(y)))}))}var tH=["a[href]","button:not([disabled])",'input:not([disabled]):not([type="hidden"])',"select:not([disabled])","textarea:not([disabled])","[contenteditable]",'[tabindex]:not([tabindex="-1"])'].join(", ");function l0(e){let r=Array.from(e.querySelectorAll(tH)).filter(t=>t.tabIndex!==-1);return[r[0],r[r.length-1]]}var ip=(e,r,t,n=!1)=>{e.runOutsideAngular(()=>{let i=vr(r,"focusin").pipe(We(t),E(o=>o.target));vr(r,"keydown").pipe(We(t),q(o=>o.key==="Tab"),fr(i)).subscribe(([o,s])=>{let[a,c]=l0(r);(s===a||s===r)&&o.shiftKey&&(c.focus(),o.preventDefault()),s===c&&!o.shiftKey&&(a.focus(),o.preventDefault())}),n&&vr(r,"click").pipe(We(t),fr(i),E(o=>o[1])).subscribe(o=>o.focus())})};function Va(e){return r=>(r.modifiers.push(vl,{name:"offset",options:{offset:()=>e}}),r)}var ui=class{constructor(r,t,n){this.nodes=r,this.viewRef=t,this.componentRef=n}},Pa=class{constructor(r){this._componentType=r,this._windowRef=null,this._contentRef=null,this._document=f(Ce),this._applicationRef=f(_n),this._injector=f(Te),this._viewContainerRef
2=f(jn),this._ngZone=f(Be)}open(r,t,n=!1){this._windowRef||(this._contentRef=this._getContentRef(r,t),this._windowRef=this._viewContainerRef.createComponent(this._componentType,{injector:this._injector,projectableNodes:this._contentRef.nodes}));let{nativeElement:i}=this._windowRef.location,o=new me;Br({mixedReadWrite:()=>{o.next(),o.complete()}},{injector:this._injector});let s=o.pipe(ze(()=>mr(this._ngZone,i,({classList:a})=>a.add("show"),{animation:n,runningTransition:"continue"})));return{windowRef:this._windowRef,transition$:s}}close(r=!1){return this._windowRef?mr(this._ngZone,this._windowRef.location.nativeElement,({classList:t})=>t.remove("show"),{animation:r,runningTransition:"stop"}).pipe(ge(()=>{this._windowRef?.destroy(),this._contentRef?.viewRef?.destroy(),this._windowRef=null,this._contentRef=null})):_(void 0)}_getContentRef(r,t){if(r)if(r instanceof Tt){let n=r.createEmbeddedView(t);return this._applicationRef.attachView(n),new ui([n.rootNodes],n)}else return new ui([[this._document.createTextNode(`${r}`)]]);else return new ui([])}},yw=(()=>{class e{constructor(){this._document=f(Ce)}hide(){let t=Math.abs(window.innerWidth-this._document.documentElement.clientWidth),n=this._document.body,i=n.style,{overflow:o,paddingRight:s}=i;if(t>0){let a=parseFloat(window.getComputedStyle(n).paddingRight);i.paddingRight=`${a+t}px`}return i.overflow="hidden",()=>{t>0&&(i.paddingRight=s),i.overflow=o}}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=h({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),rH={hover:["mouseenter","mouseleave"],focus:["focusin","focusout"]};function nH(e){let r=(e||"").trim();if(r.length===0)return[];let t=r.split(/\s+/).map(i=>i.split(":")).map(i=>rH[i[0]]||i),n=t.filter(i=>i.includes("manual"));if(n.length>1)throw"Triggers parse error: only one manual trigger is allowed";if(n.length===1&&t.length>1)throw"Triggers parse error: manual trigger can't be mixed with other triggers";return n.length?[]:t}function op(e,r,t,n,i,o=0,s=0,a=Lt,c=Lt){let l=nH(r);if(l.length===0)return()=>{};let d=new Set,m=[],y;function S(T,v){e.addEventListener(T,v),m.push(()=>e.removeEventListener(T,v))}function N(T,v){clearTimeout(y),v>0?y=setTimeout(T,v):T()}for(let[T,v]of l)if(v?(S(T,()=>{d.add(T),N(()=>d.size>0&&n(),o)}),S(v,()=>{d.delete(T),N(()=>d.size===0&&i(),s)})):S(T,()=>t()?N(i,s):N(n,o)),T==="mouseenter"&&v==="mouseleave"&&s>0){let b=a.subscribe(()=>{d.delete(T),clearTimeout(y)}),D=c.subscribe(()=>{d.delete(T),N(()=>d.size===0&&i(),s)});m.push(()=>b.unsubscribe(),()=>D.unsubscribe())}return m.push(()=>clearTimeout(y)),()=>m.forEach(T=>T())}var iH=(()=>{class e{constructor(){this._ngbConfig=f(Kr),this.horizontal=!1}get animation(){return this._animation??this._ngbConfig.animation}set animation(t){this._animation=t}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=h({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),sp=(()=>{class e{constructor(){this._config=f(iH),this._element=f(Me),this._zone=f(Be),this.animation=this._config.animation,this._afterInit=!1,this._isCollapsed=!1,this.ngbCollapseChange=new se,this.horizontal=this._config.horizontal,this.shown=new se,this.hidden=new se}set collapsed(t){this._isCollapsed!==t&&(this._isCollapsed=t,this._afterInit&&this._runTransitionWithEvents(t,this.animation))}ngOnInit(){this._runTransition(this._isCollapsed,!1),this._afterInit=!0}toggle(t=this._isCollapsed){this.collapsed=!t,this.ngbCollapseChange.next(this._isCollapsed)}_runTransition(t,n){return mr(this._zone,this._element.nativeElement,gw,{animation:n,runningTransition:"stop",context:{direction:t?"hide":"show",dimension:this.horizontal?"width":"height"}})}_runTransitionWithEvents(t,n){this._runTransition(t,n).subscribe(()=>{t?this.hidden.emit():this.shown.emit()})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275dir=Y({type:e,selectors:[["","ngbCollapse",""]],hostVars:2,hostBindings:function(n,i){n&2&&ce("collapse-horizontal",i.horizontal)},inputs:{animation:"animation",collapsed:[0,"ngbCollapse","collapsed"],horizontal:"horizontal"},outputs:{ngbCollapseChange:"ngbCollapseChange",shown:"shown",hidden:"hidden"},exportAs:["ngbCollapse"]})}}return e})(),u0=(()=>{class e{static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275mod=G({type:e})}static{this.\u0275inj=V({})}}return e})();var sH=(()=>{class e{constructor(){this._ngbConfig=f(Kr),this.closeOthers=!1,this.destroyOnHide=!0}get animation(){return this._animation??this._ngbConfig.animation}set animation(t){this._animation=t}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=h({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),aH=0;var cH=(()=>{class e{constructor(){this.item=f(ap),this.ngbCollapse=f(sp)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275dir=Y({type:e,selectors:[["","ngbAccordionCollapse",""]],hostAttrs:["role","regi
2on",1,"accordion-collapse"],hostVars:2,hostBindings:function(n,i){n&2&&(ke("id",i.item.collapseId),Ke("aria-labelledby",i.item.toggleId))},exportAs:["ngbAccordionCollapse"],features:[xS([sp])]})}}return e})(),Mde=(()=>{class e{constructor(){this.item=f(ap),this.accordion=f(vw)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275dir=Y({type:e,selectors:[["","ngbAccordionToggle",""]],hostVars:5,hostBindings:function(n,i){n&1&&Se("click",function(){return!i.item.disabled&&i.accordion.toggle(i.item.id)}),n&2&&(ke("id",i.item.toggleId),Ke("aria-controls",i.item.collapseId)("aria-expanded",!i.item.collapsed),ce("collapsed",i.item.collapsed))}})}}return e})();var Rde=(()=>{class e{constructor(){this.item=f(ap)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275dir=Y({type:e,selectors:[["","ngbAccordionHeader",""]],hostAttrs:["role","heading",1,"accordion-header"],hostVars:2,hostBindings:function(n,i){n&2&&ce("collapsed",i.item.collapsed)}})}}return e})(),ap=(()=>{class e{constructor(){this._accordion=f(vw),this._cd=f(it),this._destroyRef=f(_t),this._collapsed=!0,this._id=`ngb-accordion-item-${aH++}`,this._collapseAnimationRunning=!1,this.disabled=!1,this.show=new se,this.shown=new se,this.hide=new se,this.hidden=new se}set id(t){In(t)&&t!==""&&(this._id=t)}set destroyOnHide(t){this._destroyOnHide=t}get destroyOnHide(){return this._destroyOnHide===void 0?this._accordion.destroyOnHide:this._destroyOnHide}set collapsed(t){t?this.collapse():this.expand()}get collapsed(){return this._collapsed}get id(){return`${this._id}`}get toggleId(){return`${this.id}-toggle`}get collapseId(){return`${this.id}-collapse`}get _shouldBeInDOM(){return!this.collapsed||this._collapseAnimationRunning||!this.destroyOnHide}ngAfterContentInit(){let{ngbCollapse:t}=this._collapse;t.animation=!1,t.collapsed=this.collapsed,t.animation=this._accordion.animation,t.hidden.pipe(Yr(this._destroyRef)).subscribe(()=>{this._collapseAnimationRunning=!1,this.hidden.emit(),this._accordion.hidden.emit(this.id),this._cd.markForCheck()}),t.shown.pipe(Yr(this._destroyRef)).subscribe(()=>{this.shown.emit(),this._accordion.shown.emit(this.id),this._cd.markForCheck()})}toggle(){this.collapsed=!this.collapsed}expand(){if(this.collapsed){if(!this._accordion._ensureCanExpand(this))return;this._collapsed=!1,this._cd.markForCheck(),this._cd.detectChanges(),this.show.emit(),this._accordion.show.emit(this.id),this._collapse.ngbCollapse.animation=this._accordion.animation,this._collapse.ngbCollapse.collapsed=!1}}collapse(){this.collapsed||(this._collapsed=!0,this._collapseAnimationRunning=!0,this._cd.markForCheck(),this.hide.emit(),this._accordion.hide.emit(this.id),this._collapse.ngbCollapse.animation=this._accordion.animation,this._collapse.ngbCollapse.collapsed=!0)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275dir=Y({type:e,selectors:[["","ngbAccordionItem",""]],contentQueries:function(n,i,o){if(n&1&&Lr(o,cH,7),n&2){let s;Xe(s=et())&&(i._collapse=s.first)}},hostAttrs:[1,"accordion-item"],hostVars:1,hostBindings:function(n,i){n&2&&ke("id",i.id)},inputs:{id:[0,"ngbAccordionItem","id"],destroyOnHide:"destroyOnHide",disabled:"disabled",collapsed:"collapsed"},outputs:{show:"show",shown:"shown",hide:"hide",hidden:"hidden"},exportAs:["ngbAccordionItem"]})}}return e})(),vw=(()=>{class e{constructor(){this._config=f(sH),this._anItemWasAlreadyExpandedDuringInitialisation=!1,this.animation=this._config.animation,this.closeOthers=this._config.closeOthers,this.destroyOnHide=this._config.destroyOnHide,this.show=new se,this.shown=new se,this.hide=new se,this.hidden=new se}toggle(t){this._getItem(t)?.toggle()}expand(t){this._getItem(t)?.expand()}expandAll(){this._items&&(this.closeOthers?this._items.find(t=>!t.collapsed)||this._items.first.expand():this._items.forEach(t=>t.expand()))}collapse(t){this._getItem(t)?.collapse()}collapseAll(){this._items?.forEach(t=>t.collapse())}isExpanded(t){let n=this._getItem(t);return n?!n.collapsed:!1}_ensureCanExpand(t){return this.closeOthers?this._items?(this._items.find(n=>!n.collapsed&&t!==n)?.collapse(),!0):this._anItemWasAlreadyExpandedDuringInitialisation?!1:(this._anItemWasAlreadyExpandedDuringInitialisation=!0,!0):!0}_getItem(t){return this._items?.find(n=>n.id===t)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275dir=Y({type:e,selectors:[["","ngbAccordion",""]],contentQueries:function(n,i,o){if(n&1&&Lr(o,ap,4),n&2){let s;Xe(s=et())&&(i._items=s)}},hostAttrs:[1,"accordion"],inputs:{animation:"animation",closeOthers:"closeOthers",destroyOnHide:"destroyOnHide"},outputs:{show:"show",shown:"shown",hide:"hide",hidden:"hidden"},exportAs:["ngbAccordion"]})}}return e})();var d0=(()=>{class e{static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275mod=G({type:e})}static{this.\u0275inj=V({})}}return e})();var lH=["*"];function uH(e,r){if(e&1){let t=nt();Re(0,"button",1),_r("click",function(){Fe(t);let i=$();return Pe(i.close())}),$e()}}var dH=(()=>{class e{constructor(){this._ngbConfig=f(Kr),this.dismissible=!0,this.type="warning"}get animation(){return this._animation??this._ngbConfig.animation}set animation(t){this._animation=t}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=h({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),fH=({classList:e})=>{e.remove("show")},Gde=(()=>{class e{constructor(){this._config=f(dH),this._elementRef=f(Me),this._zone=f(Be),this.animation=this._config.animation,this.dismissible=this._config.dismissible,this.type=this._config.type,this.closed=new se}close(){let t=mr(this._zone,this._elementRef.nativeElement,fH,{animation:this.animation,runningTransition:"continue"});return t.subscribe(()=>
2this.closed.emit()),t}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=Ge({type:e,selectors:[["ngb-alert"]],hostAttrs:["role","alert"],hostVars:6,hostBindings:function(n,i){n&2&&(Fr("alert show"+(i.type?" alert-"+i.type:"")),ce("fade",i.animation)("alert-dismissible",i.dismissible))},inputs:{animation:"animation",dismissible:"dismissible",type:"type"},outputs:{closed:"closed"},exportAs:["ngbAlert"],ngContentSelectors:lH,decls:2,vars:1,consts:()=>{let t;return t=$localize`:@@ngb.alert.close:Close`,[["type","button","aria-label",t,1,"btn-close"],["type","button","aria-label",t,1,"btn-close",3,"click"]]},template:function(n,i){n&1&&(sn(),an(0),we(1,uH,1,0,"button",0)),n&2&&(H(),Ae(i.dismissible?1:-1))},styles:[`ngb-alert{display:block}
3`],encapsulation:2,changeDetection:0})}}return e})(),f0=(()=>{class e{static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275mod=G({type:e})}static{this.\u0275inj=V({})}}return e})();var p0=(()=>{class e{static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275mod=G({type:e})}static{this.\u0275inj=V({})}}return e})();var Aw=(()=>{class e{_renderer;_elementRef;onChange=t=>{};onTouched=()=>{};constructor(t,n){this._renderer=t,this._elementRef=n}setProperty(t,n){this._renderer.setProperty(this._elementRef.nativeElement,t,n)}registerOnTouched(t){this.onTouched=t}registerOnChange(t){this.onChange=t}setDisabledState(t){this.setProperty("disabled",t)}static \u0275fac=function(n){return new(n||e)(K(nn),K(Me))};static \u0275dir=Y({type:e})}return e})(),Ha=(()=>{class e extends Aw{static \u0275fac=(()=>{let t;return function(i){return(t||(t=Le(e)))(i||e)}})();static \u0275dir=Y({type:e,features:[Wt]})}return e})(),mn=new R(""),pH={provide:mn,useExisting:zt(()=>hH),multi:!0},hH=(()=>{class e extends Ha{writeValue(t){this.setProperty("checked",t)}static \u0275fac=(()=>{let t;return function(i){return(t||(t=Le(e)))(i||e)}})();static \u0275dir=Y({type:e,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(n,i){n&1&&Se("change",function(s){return i.onChange(s.target.checked)})("blur",function(){return i.onTouched()})},standalone:!1,features:[wt([pH]),Wt]})}return e})(),mH={provide:mn,useExisting:zt(()=>Ow),multi:!0};function gH(){let e=cn()?cn().getUserAgent():"";return/android (\d+)/.test(e.toLowerCase())}var yH=new R(""),Ow=(()=>{class e extends Aw{_compositionMode;_composing=!1;constructor(t,n,i){super(t,n),this._compositionMode=i,this._compositionMode==null&&(this._compositionMode=!gH())}writeValue(t){let n=t??"";this.setProperty("value",n)}_handleInput(t){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(t)}_compositionStart(){this._composing=!0}_compositionEnd(t){this._composing=!1,this._compositionMode&&this.onChange(t)}static \u0275fac=function(n){return new(n||e)(K(nn),K(Me),K(yH,8))};static \u0275dir=Y({type:e,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(n,i){n&1&&Se("input",function(s){return i._handleInput(s.target.value)})("blur",function(){return i.onTouched()})("compositionstart",function(){return i._compositionStart()})("compositionend",function(s){return i._compositionEnd(s.target.value)})},standalone:!1,features:[wt([mH]),Wt]})}return e})();function g0(e){return e==null||y0(e)===0}function y0(e){return e==null?null:Array.isArray(e)||typeof e=="string"?e.length:e instanceof Set?e.size:null}var Co=new R(""),vp=new R(""),vH=/^(?=.{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])?)*$/,_w=class{static min(r){return Mw(r)}static max(r){return Rw(r)}static required(r){return _H(r)}static requiredTrue(r){return SH(r)}static email(r){return EH(r)}static minLength(r){return bH(r)}static maxLength(r){return DH(r)}static pattern(r){return CH(r)}static nullValidator(r){return lp()}static compose(r){return Pw(r)}static composeAsync(r){return kw(r)}};function Mw(e){return r=>{if(r.value==null||e==null)return null;let t=parseFloat(r.value);return!isNaN(t)&&t<e?{min:{min:e,actual:r.value}}:null}}function Rw(e){return r=>{if(r.value==null||e==null)return null;let t=parseFloat(r.value);return!isNaN(t)&&t>e?{max:{max:e,actual:r.value}}:null}}function _H(e){return g0(e.value)?{required:!0}:null}function SH(e){return e.value===!0?null:{required:!0}}function EH(e){return g0(e.value)||vH.test(e.value)?null:{email:!0}}function bH(e){return r=>{let t=r.value?.length??y0(r.value);return t===null||t===0?null:t<e?{minlength:{requiredLength:e,actualLength:t}}:null}}function DH(e){return r=>{let t=r.value?.length??y0(r.value);return t!==null&&t>e?{maxlength:{requiredLength:e,actualLength:t}}:null}}function CH(e){if(!e)return lp;let r,t;return typeof e=="string"?(t="",e.charAt(0)!=="^"&&(t+="^"),t+=e,e.charAt(e.length-1)!=="$"&&(t+="$"),r=new RegExp(t)):(t=e.toString(),r=e),n=>
vendor: 4,616 bytes, line 3
3{if(g0(n.value))return null;let i=n.value;return r.test(i)?null:{pattern:{requiredPattern:t,actualValue:i}}}}function lp(e){return null}function Iw(e){return e!=null}function xw(e){return Fs(e)?ur(e):e}function Nw(e){let r={};return e.forEach(t=>{r=t!=null?u(u({},r),t):r}),Object.keys(r).length===0?null:r}function Lw(e,r){return r.map(t=>t(e))}function TH(e){return!e.validate}function Fw(e){return e.map(r=>TH(r)?r:t=>r.validate(t))}function Pw(e){if(!e)return null;let r=e.filter(Iw);return r.length==0?null:function(t){return Nw(Lw(t,r))}}function v0(e){return e!=null?Pw(Fw(e)):null}function kw(e){if(!e)return null;let r=e.filter(Iw);return r.length==0?null:function(t){let n=Lw(t,r).map(xw);return ws(n).pipe(E(Nw))}}function _0(e){return e!=null?kw(Fw(e)):null}function Sw(e,r){return e===null?[r]:Array.isArray(e)?[...e,r]:[e,r]}function jw(e){return e._rawValidators}function Uw(e){return e._rawAsyncValidators}function h0(e){return e?Array.isArray(e)?e:[e]:[]}function up(e,r){return Array.isArray(e)?e.includes(r):e===r}function Ew(e,r){let t=h0(r);return h0(e).forEach(i=>{up(t,i)||t.push(i)}),t}function bw(e,r){return h0(r).filter(t=>!up(e,t))}var dp=class{get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators=[];_rawAsyncValidators=[];_setValidators(r){this._rawValidators=r||[],this._composedValidatorFn=v0(this._rawValidators)}_setAsyncValidators(r){this._rawAsyncValidators=r||[],this._composedAsyncValidatorFn=_0(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_onDestroyCallbacks=[];_registerOnDestroy(r){this._onDestroyCallbacks.push(r)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(r=>r()),this._onDestroyCallbacks=[]}reset(r=void 0){this.control?.reset(r)}hasError(r,t){return this.control?this.control.hasError(r,t):!1}getError(r,t){return this.control?this.control.getError(r,t):null}},Eo=class extends dp{name;get formDirective(){return null}get path(){return null}},bo=class extends dp{_parent=null;name=null;valueAccessor=null},fp=class{_cd;constructor(r){this._cd=r}get isTouched(){return this._cd?.control?._touched?.(),!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return this._cd?.control?._pristine?.(),!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return this._cd?.control?._status?.(),!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return this._cd?._submitted?.(),!!this._cd?.submitted}};var sfe=(()=>{class e extends fp{constructor(t){super(t)}static \u0275fac=function(n){return new(n||e)(K(bo,2))};static \u0275dir=Y({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(n,i){n&2&&ce("ng-untouched",i.isUntouched)("ng-touched",i.isTouched)("ng-pristine",i.isPristine)("ng-dirty",i.isDirty)("ng-valid",i.isValid)("ng-invalid",i.isInvalid)("ng-pending",i.isPending)},standalone:!1,features:[Wt]})}return e})(),afe=(()=>{class e extends fp{constructor(t){super(t)}static \u0275fac=function(n){return new(n||e)(K(Eo,10))};static \u0275dir=Y({type:e,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["","formArray",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(n,i){n&2&&ce("ng-untouched",i.isUntouched)("ng-touched",i.isTouched)("ng-pristine",i.isPristine)("ng-dirty",i.isDirty)("ng-valid",i.isValid)("ng-invalid",i.isInvalid)("ng-pending",i.isPending)("ng-submitted",i.isSubmitted)},standalone:!1,features:[Wt]})}return e})();
vendor: 1,786 bytes, line 3
3var Dl="VALID",cp="INVALID",Ga="PENDING",Cl="DISABLED",Do=class{},pp=class extends Do{value;source;constructor(r,t){super(),this.value=r,this.source=t}},wl=class extends Do{pristine;source;constructor(r,t){super(),this.pristine=r,this.source=t}},Al=class extends Do{touched;source;constructor(r,t){super(),this.touched=r,this.source=t}},$a=class extends Do{status;source;constructor(r,t){super(),this.status=r,this.source=t}},hp=class extends Do{source;constructor(r){super(),this.source=r}},Ol=class extends Do{source;constructor(r){super(),this.source=r}};function S0(e){return(_p(e)?e.validators:e)||null}function wH(e){return Array.isArray(e)?v0(e):e||null}function E0(e,r){return(_p(r)?r.asyncValidators:e)||null}function AH(e){return Array.isArray(e)?_0(e):e||null}function _p(e){return e!=null&&!Array.isArray(e)&&typeof e=="object"}function Bw(e,r,t){let n=e.controls;if(!(r?Object.keys(n):n).length)throw new ne(1e3,"");if(!n[t])throw new ne(1001,"")}function Vw(e,r,t){e._forEachChild((n,i)=>{if(t[i]===void 0)throw new ne(-1002,"")})}var Ml=class{_pendingDirty=!1;_hasOwnPendingAsyncValidator=null;_pendingTouched=!1;_onCollectionChange=()=>{};_updateOn;_parent=null;_asyncValidationSubscription;_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators;_rawAsyncValidators;value;constructor(r,t){this._assignValidators(r),this._assignAsyncValidators(t)}get validator(){return this._composedValidatorFn}set validator(r){this._rawValidators=this._composedValidatorFn=r}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(r){this._rawAsyncValidators=this._composedAsyncValidatorFn=r}get parent(){return this._parent}get status(){return Ie(this.statusReactive)}set status(r){Ie(()=>this.statusReactive.set(r))}_status=Er(()=>this.statusReactive());
3statusReactive=Ye(void 0);get valid(){return this.status===Dl}get invalid(){return this.status===cp}get pending(){return this.status===Ga}get disabled(){return this.status===Cl}get enabled(){return this.status!==Cl}errors;get pristine(){return Ie(this.pristineReactive)}set pristine(r){Ie(()=>this.pristineReactive.set(r))}_pristine=Er(()=>this.pristineReactive());pristineReactive=Ye(!0);get dirty(){return!this.pristine}get touched(){return Ie(this.touchedReactive)}set touched(r){Ie(()=>this.touchedReactive.set(r))}_touched=Er(()=>this.touchedReactive());touchedReactive=Ye(!1);get untouched(){return!this.touched}_events=new me;events=this._events.asObservable();valueChanges;statusChanges;get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(r){this._assignValidators(r)}setAsyncValidators(r){this._assignAsyncValidators(r)}addValidators(r){this.setValidators(Ew(r,this._rawValidators))}addAsyncValidators(r){this.setAsyncValidators(Ew(r,this._rawAsyncValidators))}removeValidators(r){this.setValidators(bw(r,this._rawValidators))}removeAsyncValidators(r){this.setAsyncValidators(bw(r,this._rawAsyncValidators))}hasValidator(r){return up(this._rawValidators,r)}hasAsyncValidator(r){return up(this._rawAsyncValidators,r)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(r={}){let t=this.touched===!1;this.touched=!0;let n=r.sourceControl??this;r.onlySelf||this._parent?.markAsTouched(g(u({},r),{sourceControl:n})),t&&r.emitEvent!==!1&&this._events.next(new Al(!0,n))}markAllAsDirty(r={}){this.markAsDirty({onlySelf:!0,emitEvent:r.emitEvent,sourceControl:this}),this._forEachChild(t=>t.markAllAsDirty(r))}markAllAsTouched(r={}){this.markAsTouched({onlySelf:!0,emitEvent:r.emitEvent,sourceControl:this}),this._forEachChild(t=>t.markAllAsTouched(r))}markAsUntouched(r={}){let t=this.touched===!0;this.touched=!1,this._pendingTouched=!1;let n=r.sourceControl??this;this._forEachChild(i=>{i.markAsUntouched({onlySelf:!0,emitEvent:r.emitEvent,sourceControl:n})}),r.onlySelf||this._parent?._updateTouched(r,n),t&&r.emitEvent!==!1&&this._events.next(new Al(!1,n))}markAsDirty(r={}){let t=this.pristine===!0;this.pristine=!1;let n=r.sourceControl??this;r.onlySelf||this._parent?.markAsDirty(g(u({},r),{sourceControl:n})),t&&r.emitEvent!==!1&&this._events.next(new wl(!1,n))}markAsPristine(r={}){let t=this.pristine===!1;this.pristine=!0,this._pendingDirty=!1;let n=r.sourceControl??this;this._forEachChild(i=>{i.markAsPristine({onlySelf:!0,emitEvent:r.emitEvent})}),r.onlySelf||this._parent?._updatePristine(r,n),t&&r.emitEvent!==!1&&this._events.next(new wl(!0,n))}markAsPending(r={}){this.status=Ga;let t=r.sourceControl??this;r.emitEvent!==!1&&(this._events.next(new $a(this.status,t)),this.statusChanges.emit(this.status)),r.onlySelf||this._parent?.markAsPending(g(u({},r),{sourceControl:t}))}disable(r={}){let t=this._parentMarkedDirty(r.onlySelf);this.status=Cl,this.errors=null,this._forEachChild(i=>{i.disable(g(u({},r),{onlySelf:!0}))}),this._updateValue();let n=r.sourceControl??this;r.emitEvent!==!1&&(this._events.next(new pp(this.value,n)),this._events.next(new $a(this.status,n)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(g(u({},r),{skipPristineCheck:t}),this),this._onDisabledChange.forEach(i=>i(!0))}enable(r={}){let t=this._parentMarkedDirty(r.onlySelf);this.status=Dl,this._forEachChild(n=>{n.enable(g(u({},r),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:r.emitEvent}),this._updateAncestors(g(u({},r),{skipPristineCheck:t}),this),this._onDisabledChange.forEach(n=>n(!1))}_updateAncestors(r,t){r.onlySelf||(this._parent?.updateValueAndValidity(r),r.skipPristineCheck||this._parent?._updatePristine({},t),this._parent?._updateTouched({},t))}setParent(r){this._parent=r}getRawValue(){return this.value}updateValueAndValidity(r={}){if(this._setInitialStatus(),this._updateValue(),this.enabled){let n=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Dl||this.status===Ga)&&this._runAsyncValidator(n,r.emitEvent)}let t=r.sourceControl??this;r.emitEvent!==!1&&(this._events.next(new pp(this.value,t)),this._events.next(new $a(this.status,t)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),r.onlySelf||this._parent?.updateValueAndValidity(g(u({},r),{sourceControl:t}))}_updateTreeValidity(r={emitEvent:!0}
vendor: 4,129 bytes, line 3
3){this._forEachChild(t=>t._updateTreeValidity(r)),this.updateValueAndValidity({onlySelf:!0,emitEvent:r.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Cl:Dl}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(r,t){if(this.asyncValidator){this.status=Ga,this._hasOwnPendingAsyncValidator={emitEvent:t!==!1,shouldHaveEmitted:r!==!1};let n=xw(this.asyncValidator(this));this._asyncValidationSubscription=n.subscribe(i=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(i,{emitEvent:t,shouldHaveEmitted:r})})}}_cancelExistingSubscription(){if(this._asyncValidationSubscription){this._asyncValidationSubscription.unsubscribe();let r=(this._hasOwnPendingAsyncValidator?.emitEvent||this._hasOwnPendingAsyncValidator?.shouldHaveEmitted)??!1;return this._hasOwnPendingAsyncValidator=null,r}return!1}setErrors(r,t={}){this.errors=r,this._updateControlsErrors(t.emitEvent!==!1,this,t.shouldHaveEmitted)}get(r){let t=r;return t==null||(Array.isArray(t)||(t=t.split(".")),t.length===0)?null:t.reduce((n,i)=>n&&n._find(i),this)}getError(r,t){let n=t?this.get(t):this;return n?.errors?n.errors[r]:null}hasError(r,t){return!!this.getError(r,t)}get root(){let r=this;for(;r._parent;)r=r._parent;return r}_updateControlsErrors(r,t,n){this.status=this._calculateStatus(),r&&this.statusChanges.emit(this.status),(r||n)&&this._events.next(new $a(this.status,t)),this._parent&&this._parent._updateControlsErrors(r,t,n)}_initObservables(){this.valueChanges=new se,this.statusChanges=new se}_calculateStatus(){return this._allControlsDisabled()?Cl:this.errors?cp:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Ga)?Ga:this._anyControlsHaveStatus(cp)?cp:Dl}_anyControlsHaveStatus(r){return this._anyControls(t=>t.status===r)}_anyControlsDirty(){return this._anyControls(r=>r.dirty)}_anyControlsTouched(){return this._anyControls(r=>r.touched)}_updatePristine(r,t){let n=!this._anyControlsDirty(),i=this.pristine!==n;this.pristine=n,r.onlySelf||this._parent?._updatePristine(r,t),i&&this._events.next(new wl(this.pristine,t))}_updateTouched(r={},t){this.touched=this._anyControlsTouched(),this._events.next(new Al(this.touched,t)),r.onlySelf||this._parent?._updateTouched(r,t)}_onDisabledChange=[];_registerOnCollectionChange(r){this._onCollectionChange=r}_setUpdateStrategy(r){_p(r)&&r.updateOn!=null&&(this._updateOn=r.updateOn)}_parentMarkedDirty(r){return!r&&!!this._parent?.dirty&&!this._parent._anyControlsDirty()}_find(r){return null}_assignValidators(r){this._rawValidators=Array.isArray(r)?r.slice():r,this._composedValidatorFn=wH(this._rawValidators)}_assignAsyncValidators(r){this._rawAsyncValidators=Array.isArray(r)?r.slice():r,this._composedAsyncValidatorFn=AH(this._rawAsyncValidators)}},Rl=class extends Ml{constructor(r,t,n){super(S0(t),E0(n,t)),this.controls=r,this._initObservables(),this._setUpdateStrategy(t),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}controls;registerControl(r,t){return this.controls[r]?this.controls[r]:(this.controls[r]=t,t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange),t)}addControl(r,t,n={}){this.registerControl(r,t),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}removeControl(r,t={}){this.controls[r]&&this.controls[r]._registerOnCollectionChange(()=>{}),delete this.controls[r],this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}setControl(r,t,n={}){this.controls[r]&&this.controls[r]._registerOnCollectionChange(()=>{}),delete this.controls[r],t&&this.registerControl(r,t),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}contains(r){return this.controls.hasOwnProperty(r)&&this.controls[r].enabled}setValue(r,t={}){Vw(this,!0,r),Object.keys(r).forEach(n=>{Bw(this,!0,n),this.controls[n].setValue(r[n],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)}patchValue(r,t={}){r!=null&&(Object.keys(r).forEach(n=>{let i=this.controls[n];i&&i.patchValue(r[n],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t))}reset(r={},t={}
vendor: 4,800 bytes, line 3
3){this._forEachChild((n,i)=>{n.reset(r?r[i]:null,g(u({},t),{onlySelf:!0}))}),this._updatePristine(t,this),this._updateTouched(t,this),this.updateValueAndValidity(t),t?.emitEvent!==!1&&this._events.next(new Ol(this))}getRawValue(){return this._reduceChildren({},(r,t,n)=>(r[n]=t.getRawValue(),r))}_syncPendingControls(){let r=this._reduceChildren(!1,(t,n)=>n._syncPendingControls()?!0:t);return r&&this.updateValueAndValidity({onlySelf:!0}),r}_forEachChild(r){Object.keys(this.controls).forEach(t=>{let n=this.controls[t];n&&r(n,t)})}_setUpControls(){this._forEachChild(r=>{r.setParent(this),r._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(r){for(let[t,n]of Object.entries(this.controls))if(this.contains(t)&&r(n))return!0;return!1}_reduceValue(){let r={};return this._reduceChildren(r,(t,n,i)=>((n.enabled||this.disabled)&&(t[i]=n.value),t))}_reduceChildren(r,t){let n=r;return this._forEachChild((i,o)=>{n=t(n,i,o)}),n}_allControlsDisabled(){for(let r of Object.keys(this.controls))if(this.controls[r].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(r){return this.controls.hasOwnProperty(r)?this.controls[r]:null}};var cfe=Rl;var us=new R("",{factory:()=>xl}),xl="always";function OH(e,r){return[...r.path,e]}function Il(e,r,t=xl){b0(e,r),r.valueAccessor.writeValue(e.value),(e.disabled||t==="always")&&r.valueAccessor.setDisabledState?.(e.disabled),RH(e,r),xH(e,r),IH(e,r),MH(e,r)}function mp(e,r,t=!0){let n=()=>{};r?.valueAccessor?.registerOnChange(n),r?.valueAccessor?.registerOnTouched(n),yp(e,r),e&&(r._invokeOnDestroyCallbacks(),e._registerOnCollectionChange(()=>{}))}function gp(e,r){e.forEach(t=>{t.registerOnValidatorChange&&t.registerOnValidatorChange(r)})}function MH(e,r){if(r.valueAccessor.setDisabledState){let t=n=>{r.valueAccessor.setDisabledState(n)};e.registerOnDisabledChange(t),r._registerOnDestroy(()=>{e._unregisterOnDisabledChange(t)})}}function b0(e,r){let t=jw(e);r.validator!==null?e.setValidators(Sw(t,r.validator)):typeof t=="function"&&e.setValidators([t]);let n=Uw(e);r.asyncValidator!==null?e.setAsyncValidators(Sw(n,r.asyncValidator)):typeof n=="function"&&e.setAsyncValidators([n]);let i=()=>e.updateValueAndValidity();gp(r._rawValidators,i),gp(r._rawAsyncValidators,i)}function yp(e,r){let t=!1;if(e!==null){if(r.validator!==null){let i=jw(e);if(Array.isArray(i)&&i.length>0){let o=i.filter(s=>s!==r.validator);o.length!==i.length&&(t=!0,e.setValidators(o))}}if(r.asyncValidator!==null){let i=Uw(e);if(Array.isArray(i)&&i.length>0){let o=i.filter(s=>s!==r.asyncValidator);o.length!==i.length&&(t=!0,e.setAsyncValidators(o))}}}let n=()=>{};return gp(r._rawValidators,n),gp(r._rawAsyncValidators,n),t}function RH(e,r){r.valueAccessor.registerOnChange(t=>{e._pendingValue=t,e._pendingChange=!0,e._pendingDirty=!0,e.updateOn==="change"&&Gw(e,r)})}function IH(e,r){r.valueAccessor.registerOnTouched(()=>{e._pendingTouched=!0,e.updateOn==="blur"&&e._pendingChange&&Gw(e,r),e.updateOn!=="submit"&&e.markAsTouched()})}function Gw(e,r){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),r.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}function xH(e,r){let t=(n,i)=>{r.valueAccessor.writeValue(n),i&&r.viewToModelUpdate(n)};e.registerOnChange(t),r._registerOnDestroy(()=>{e._unregisterOnChange(t)})}function $w(e,r){e==null,b0(e,r)}function NH(e,r){return yp(e,r)}function Hw(e,r){if(!e.hasOwnProperty("model"))return!1;let t=e.model;return t.isFirstChange()?!0:!Object.is(r,t.currentValue)}function LH(e){return Object.getPrototypeOf(e.constructor)===Ha}function zw(e,r){e._syncPendingControls(),r.forEach(t=>{let n=t.control;n.updateOn==="submit"&&n._pendingChange&&(t.viewToModelUpdate(n._pendingValue),n._pendingChange=!1)})}function Ww(e,r){if(!r)return null;Array.isArray(r);let t,n,i;return r.forEach(o=>{o.constructor===Ow?t=o:LH(o)?n=o:i=o}),i||n||t||null}function FH(e,r){let t=e.indexOf(r);t>-1&&e.splice(t,1)}var PH={provide:Eo,useExisting:zt(()=>kH)},Tl=Promise.resolve(),kH=(()=>{class e extends Eo{callSetDisabledState;get submitted(){return Ie(this.submittedReactive)}_submitted=Er(()=>this.submittedReactive());submittedReactive=Ye(!1);_directives=new Set;form;ngSubmit=new se;options;constructor(t,n,i){super(),this.callSetDisabledState=i,this.form=new Rl({},v0(t),_0(n))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(t){Tl.then(()=>{let n=this._findContainer(t.path);t.control=n.registerControl(t.name,t.control),Il(t.control,t,this.callSetDisabledState),t.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(t)})}getControl(t){return this.form.get(t.path)}
vendor: 6,786 bytes, line 3
3removeControl(t){Tl.then(()=>{this._findContainer(t.path)?.removeControl(t.name),this._directives.delete(t)})}addFormGroup(t){Tl.then(()=>{let n=this._findContainer(t.path),i=new Rl({});$w(i,t),n.registerControl(t.name,i),i.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(t){Tl.then(()=>{this._findContainer(t.path)?.removeControl?.(t.name)})}getFormGroup(t){return this.form.get(t.path)}updateModel(t,n){Tl.then(()=>{this.form.get(t.path).setValue(n)})}setValue(t){this.control.setValue(t)}onSubmit(t){return this.submittedReactive.set(!0),zw(this.form,this._directives),this.ngSubmit.emit(t),this.form._events.next(new hp(this.control)),t?.target?.method==="dialog"}onReset(){this.resetForm()}resetForm(t=void 0){this.form.reset(t),this.submittedReactive.set(!1)}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.form._updateOn=this.options.updateOn)}_findContainer(t){return t.pop(),t.length?this.form.get(t):this.form}static \u0275fac=function(n){return new(n||e)(K(Co,10),K(vp,10),K(us,8))};static \u0275dir=Y({type:e,selectors:[["form",3,"ngNoForm","",3,"formGroup","",3,"formArray",""],["ng-form"],["","ngForm",""]],hostBindings:function(n,i){n&1&&Se("submit",function(s){return i.onSubmit(s)})("reset",function(){return i.onReset()})},inputs:{options:[0,"ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],standalone:!1,features:[wt([PH]),Wt]})}return e})();function Dw(e,r){let t=e.indexOf(r);t>-1&&e.splice(t,1)}function Cw(e){return typeof e=="object"&&e!==null&&Object.keys(e).length===2&&"value"in e&&"disabled"in e}var D0=class extends Ml{defaultValue=null;_onChange=[];_pendingValue;_pendingChange=!1;constructor(r=null,t,n){super(S0(t),E0(n,t)),this._applyFormState(r),this._setUpdateStrategy(t),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),_p(t)&&(t.nonNullable||t.initialValueIsDefault)&&(Cw(r)?this.defaultValue=r.value:this.defaultValue=r)}setValue(r,t={}){this.value=this._pendingValue=r,this._onChange.length&&t.emitModelToViewChange!==!1&&this._onChange.forEach(n=>n(this.value,t.emitViewToModelChange!==!1)),this.updateValueAndValidity(t)}patchValue(r,t={}){this.setValue(r,t)}reset(r=this.defaultValue,t={}){this._applyFormState(r),this.markAsPristine(t),this.markAsUntouched(t),this.setValue(this.value,t),t.overwriteDefaultValue&&(this.defaultValue=this.value),this._pendingChange=!1,t?.emitEvent!==!1&&this._events.next(new Ol(this))}_updateValue(){}_anyControls(r){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(r){this._onChange.push(r)}_unregisterOnChange(r){Dw(this._onChange,r)}registerOnDisabledChange(r){this._onDisabledChange.push(r)}_unregisterOnDisabledChange(r){Dw(this._onDisabledChange,r)}_forEachChild(r){}_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(r){Cw(r)?(this.value=this._pendingValue=r.value,r.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=r}},ufe=D0,jH=e=>e instanceof D0;var UH={provide:bo,useExisting:zt(()=>BH)},Tw=Promise.resolve(),BH=(()=>{class e extends bo{_changeDetectorRef;callSetDisabledState;control=new D0;static ngAcceptInputType_isDisabled;_registered=!1;viewModel;name="";isDisabled;model;options;update=new se;constructor(t,n,i,o,s,a){super(),this._changeDetectorRef=s,this.callSetDisabledState=a,this._parent=t,this._setValidators(n),this._setAsyncValidators(i),this.valueAccessor=Ww(this,o)}ngOnChanges(t){if(this._checkForErrors(),!this._registered||"name"in t){if(this._registered&&(this._checkName(),this.formDirective)){let n=t.name.previousValue;this.formDirective.removeControl({name:n,path:this._getPath(n)})}this._setUpControl()}"isDisabled"in t&&this._updateDisabled(t),Hw(t,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective?.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!!(this.options&&this.options.standalone)}_setUpStandalone(){Il(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._checkName()}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),!this._isStandalone()&&this.name}_updateValue(t){Tw.then(()=>{this.control.setValue(t,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(t){let n=t.isDisabled.currentValue,i=n!==0&&Un(n);Tw.then(()=>{i&&!this.control.disabled?this.control.disable():!i&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(t){return this._parent?OH(t,this._parent):[t]}static \u0275fac=function(n){return new(n||e)(K(Eo,9),K(Co,10),K(vp,10),K(mn,10),K(it,8),K(us,8))};static \u0275dir=Y({type:e,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"],options:[0,"ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],standalone:!1,features:[wt([UH]),Wt,Ve]})}return e})();var dfe=(()=>{class e{static \u0275fac=function(n){return new(n||e)};static \u0275dir=Y({type:e,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""],standalone:!1})}return e})(),VH={provide:mn,useExisting:zt(()=>GH),multi:!0},GH=(()=>{class e extends Ha{writeValue(t){let n=t??"";this.setProperty("value",n)}registerOnChange(t){this.onChange=n=>{t(n==""?null:parseFloat(n))}}static \u0275fac=(()=>{let t;return function(i){return(t||(t=Le(e)))(i||e)}})();static \u0275dir=Y({type:e,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(n,i){n&1&&Se("input",function(s){return i.onChange(s.target.value)})("blur",function(){return i.onTouched()})},standalone:!1,features:[wt([VH]),Wt]})}return e})(),$H={provide:mn,useExisting:zt(()=>zH),multi:!0};var HH=(()=>{class e{_accessors=[];add(t,n){this._accessors.push([t,n])}remove(t){for(let n=this._accessors.length-1;n>=0;--n)if(this._accessors[n][1]===t){this._accessors.splice(n,1);return}}
3select(t){this._accessors.forEach(n=>{this._isSameGroup(n,t)&&n[1]!==t&&n[1].fireUncheck(t.value)})}_isSameGroup(t,n){return t[0].control?t[0]._parent===n._control._parent&&t[1].name===n.name:!1}static \u0275fac=function(n){return new(n||e)};static \u0275prov=h({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),zH=(()=>{class e extends Ha{_registry;_injector;_state;_control;_fn;setDisabledStateFired=!1;onChange=()=>{};name;formControlName;value;callSetDisabledState=f(us,{optional:!0})??xl;constructor(t,n,i,o){super(t,n),this._registry=i,this._injector=o}ngOnInit(){this._control=this._injector.get(bo),this._checkName(),this._registry.add(this._control,this)}ngOnDestroy(){this._registry.remove(this)}writeValue(t){this._state=t===this.value,this.setProperty("checked",this._state)}registerOnChange(t){this._fn=t,this.onChange=()=>{t(this.value),this._registry.select(this)}}setDisabledState(t){(this.setDisabledStateFired||t||this.callSetDisabledState==="whenDisabledForLegacyCode")&&this.setProperty("disabled",t),this.setDisabledStateFired=!0}fireUncheck(t){this.writeValue(t)}_checkName(){this.name&&this.formControlName&&(this.name,this.formControlName),!this.name&&this.formControlName&&(this.name=this.formControlName)}static \u0275fac=function(n){return new(n||e)(K(nn),K(Me),K(HH),K(Te))};static \u0275dir=Y({type:e,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(n,i){n&1&&Se("change",function(){return i.onChange()})("blur",function(){return i.onTouched()})},inputs:{name:"name",formControlName:"formControlName",value:"value"},standalone:!1,features:[wt([$H]),Wt]})}return e})();var m0=class extends Ml{constructor(r,t,n){super(S0(t),E0(n,t)),this.controls=r,this._initObservables(),this._setUpdateStrategy(t),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}controls;at(r){return this.controls[this._adjustIndex(r)]}push(r,t={}){Array.isArray(r)?r.forEach(n=>{this.controls.push(n),this._registerControl(n)}):(this.controls.push(r),this._registerControl(r)),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}insert(r,t,n={}){this.controls.splice(r,0,t),this._registerControl(t),this.updateValueAndValidity({emitEvent:n.emitEvent})}removeAt(r,t={}){let n=this._adjustIndex(r);n<0&&(n=0),this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),this.controls.splice(n,1),this.updateValueAndValidity({emitEvent:t.emitEvent})}setControl(r,t,n={}){let i=this._adjustIndex(r);i<0&&(i=0),this.controls[i]&&this.controls[i]._registerOnCollectionChange(()=>{}),this.controls.splice(i,1),t&&(this.controls.splice(i,0,t),this._registerControl(t)),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(r,t={}){Vw(this,!1,r),r.forEach((n,i)=>{Bw(this,!1,i),this.at(i).setValue(n,{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)}patchValue(r,t={}){r!=null&&(r.forEach((n,i)=>{this.at(i)&&this.at(i).patchValue(n,{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t))}reset(r=[],t={}){this._forEachChild((n,i)=>{n.reset(r[i],g(u({},t),{onlySelf:!0}))}),this._updatePristine(t,this),this._updateTouched(t,this),this.updateValueAndValidity(t),t?.emitEvent!==!1&&this._events.next(new Ol(this))}getRawValue(){return this.controls.map(r=>r.getRawValue())}clear(r={}){this.controls.length<1||(this._forEachChild(t=>t._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:r.emitEvent}))}_adjustIndex(r){return r<0?r+this.length:r}_syncPendingControls(){let r=this.controls.reduce((t,n)=>n._syncPendingControls()?!0:t,!1);return r&&this.updateValueAndValidity({onlySelf:!0}),r}_forEachChild(r){this.controls.forEach((t,n)=>{r(t,n)})}_updateValue(){this.value=this.controls.filter(r=>r.enabled||this.disabled).map(r=>r.value)}_anyControls(r){return this.controls.some(t=>t.enabled&&r(t))}_setUpControls(){this._forEachChild(r=>this._registerControl(r))}_allControlsDisabled(){for(let r of this.controls)if(r.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(r){r.setParent(this),r._registerOnCollectionChange(this._onCollectionChange)}_find(r){return this.at(r)??null}},ffe=m0;var WH=(()=>
vendor: 8,887 bytes, line 3
3{class e extends Eo{callSetDisabledState;get submitted(){return Ie(this._submittedReactive)}set submitted(t){this._submittedReactive.set(t)}_submitted=Er(()=>this._submittedReactive());_submittedReactive=Ye(!1);_oldForm;_onCollectionChange=()=>this._updateDomValue();directives=[];constructor(t,n,i){super(),this.callSetDisabledState=i,this._setValidators(t),this._setAsyncValidators(n)}ngOnChanges(t){this.onChanges(t)}ngOnDestroy(){this.onDestroy()}onChanges(t){this._checkFormPresent(),t.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}onDestroy(){this.form&&(yp(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get path(){return[]}addControl(t){let n=this.form.get(t.path);return Il(n,t,this.callSetDisabledState),n.updateValueAndValidity({emitEvent:!1}),this.directives.push(t),n}getControl(t){return this.form.get(t.path)}removeControl(t){mp(t.control||null,t,!1),FH(this.directives,t)}addFormGroup(t){this._setUpFormContainer(t)}removeFormGroup(t){this._cleanUpFormContainer(t)}getFormGroup(t){return this.form.get(t.path)}getFormArray(t){return this.form.get(t.path)}addFormArray(t){this._setUpFormContainer(t)}removeFormArray(t){this._cleanUpFormContainer(t)}updateModel(t,n){this.form.get(t.path).setValue(n)}onReset(){this.resetForm()}resetForm(t=void 0,n={}){this.form.reset(t,n),this._submittedReactive.set(!1)}onSubmit(t){return this.submitted=!0,zw(this.form,this.directives),this.ngSubmit.emit(t),this.form._events.next(new hp(this.control)),t?.target?.method==="dialog"}_updateDomValue(){this.directives.forEach(t=>{let n=t.control,i=this.form.get(t.path);n!==i&&(mp(n||null,t),jH(i)&&(Il(i,t,this.callSetDisabledState),t.control=i))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(t){let n=this.form.get(t.path);$w(n,t),n.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(t){let n=this.form?.get(t.path);n&&NH(n,t)&&n.updateValueAndValidity({emitEvent:!1})}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm?._registerOnCollectionChange(()=>{})}_updateValidators(){b0(this.form,this),this._oldForm&&yp(this._oldForm,this)}_checkFormPresent(){this.form}static \u0275fac=function(n){return new(n||e)(K(Co,10),K(vp,10),K(us,8))};static \u0275dir=Y({type:e,features:[Wt,Ve]})}return e})();var qw=new R(""),qH={provide:bo,useExisting:zt(()=>YH)},YH=(()=>{class e extends bo{_ngModelWarningConfig;callSetDisabledState;viewModel;form;set isDisabled(t){}model;update=new se;static _ngModelWarningSentOnce=!1;_ngModelWarningSent=!1;constructor(t,n,i,o,s){super(),this._ngModelWarningConfig=o,this.callSetDisabledState=s,this._setValidators(t),this._setAsyncValidators(n),this.valueAccessor=Ww(this,i)}ngOnChanges(t){if(this._isControlChanged(t)){let n=t.form.previousValue;n&&mp(n,this,!1),Il(this.form,this,this.callSetDisabledState),this.form.updateValueAndValidity({emitEvent:!1})}Hw(t,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&mp(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}_isControlChanged(t){return t.hasOwnProperty("form")}static \u0275fac=function(n){return new(n||e)(K(Co,10),K(vp,10),K(mn,10),K(qw,8),K(us,8))};static \u0275dir=Y({type:e,selectors:[["","formControl",""]],inputs:{form:[0,"formControl","form"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],standalone:!1,features:[wt([qH]),Wt,Ve]})}return e})();var KH={provide:Eo,useExisting:zt(()=>JH)},JH=(()=>{class e extends WH{form=null;ngSubmit=new se;get control(){return this.form}static \u0275fac=(()=>{let t;return function(i){return(t||(t=Le(e)))(i||e)}})();static \u0275dir=Y({type:e,selectors:[["","formGroup",""]],hostBindings:function(n,i){n&1&&Se("submit",function(s){return i.onSubmit(s)})("reset",function(){return i.onReset()})},inputs:{form:[0,"formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],standalone:!1,features:[wt([KH]),Wt]})}return e})(),ZH={provide:mn,useExisting:zt(()=>Kw),multi:!0};function Yw(e,r){return e==null?`${r}`:(r&&typeof r=="object"&&(r="Object"),`${e}: ${r}`.slice(0,50))}function QH(e){return e.split(":")[0]}var Kw=(()=>{class e extends Ha{value;_optionMap=new Map;_idCounter=0;set compareWith(t){this._compareWith=t}_compareWith=Object.is;appRefInjector=f(_n).injector;destroyRef=f(_t);cdr=f(it);_queuedWrite=!1;_writeValueAfterRender(){this._queuedWrite||this.appRefInjector.destroyed||(this._queuedWrite=!0,Br({write:()=>{this.destroyRef.destroyed||(this._queuedWrite=!1,this.writeValue(this.value))}},{injector:this.appRefInjector}))}writeValue(t){this.cdr.markForCheck(),this.value=t;let n=this._getOptionId(t),i=Yw(n,t);this.setProperty("value",i)}registerOnChange(t){this.onChange=n=>{this.value=this._getOptionValue(n),t(this.value)}}_registerOption(){return(this._idCounter++).toString()}_getOptionId(t){for(let n of this._optionMap.keys())if(this._compareWith(this._optionMap.get(n),t))return n;return null}_getOptionValue(t){let n=QH(t);return this._optionMap.has(n)?this._optionMap.get(n):t}static \u0275fac=(()=>{let t;return function(i){return(t||(t=Le(e)))(i||e)}})();static \u0275dir=Y({type:e,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(n,i){n&1&&Se("change",function(s){return i.onChange(s.target.value)})("blur",function(){return i.onTouched()})},inputs:{compareWith:"compareWith"},standalone:!1,features:[wt([ZH]),Wt]})}return e})(),pfe=(()=>{class e{_element;_renderer;_select;id;constructor(t,n,i){this._element=t,this._renderer=n,this._select=i,this._select&&(this.id=this._select._registerOption())}set ngValue(t){this._select!=null&&(this._select._optionMap.set(this.id,t),this._setElementValue(Yw(this.id,t)),this._select._writeValueAfterRender())}set value(t){this._setElementValue(t),this._select?._writeValueAfterRender()}_setElementValue(t){this._renderer.setProperty(this._element.nativeElement,"value",t)}ngOnDestroy(){this._select?._optionMap.delete(this.id),this._select?._writeValueAfterRender()}static \u0275fac=function(n){return new(n||e)(K(Me),K(nn),K(Kw,9))};static \u0275dir=Y({type:e,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"},standalone:!1})}return e})(),XH={provide:mn,useExisting:zt(()=>Jw),multi:!0};function ww(e,r){return e==null?`${r}`:(typeof r=="string"&&(r=`'${r}'`),r&&typeof r=="object"&&(r="Object"),`${e}: ${r}`.slice(0,50))}function e3(e){return e.split(":")[0]}var Jw=(()=>{class e extends Ha{value;_optionMap=new Map;_idCounter=0;set compareWith(t){this._compareWith=t}_compareWith=Object.is;writeValue(t){this.value=t;let n;if(Array.isArray(t)){let i=t.map(o=>this._getOptionId(o));n=(o,s)=>{o._setSelected(i.indexOf(s)>-1)}}else n=i=>{i._setSelected(!1)};this._optionMap.forEach(n)}registerOnChange(t){this.onChange=n=>{let i=[],o=n.selectedOptions;if(o!==void 0){let s=o;for(let a=0;a<s.length;a++){let c=s[a],l=this._getOptionValue(c.value);i.push(l)}}else{let s=n.options;for(let a=0;a<s.length;a++){let c=s[a];if(c.selected){let l=this._getOptionValue(c.value);i.push(l)}}}this.value=i,t(i)}}_registerOption(t){let n=(this._idCounter++).toString();return this._optionMap.set(n,t),n}_getOptionId(t){for(let n of this._optionMap.keys())if(this._compareWith(this._optionMap.get(n)._value,t))return n;return null}_getOptionValue(t){let n=e3(t);return this._optionMap.has(n)?this._optionMap.get(n)._value:t}static \u0275fac=(()=>{let t;return function(i){return(t||(t=Le(e)))(i||e)}})();static \u0275dir=Y({type:e,selectors:[["select","multiple","","formControlName",""],["select","multiple","","formControl",""],["select","multiple","","ngModel",""]],hostBindings:function(n,i){n&1&&Se("change",function(s){return i.onChange(s.target)})("blur",function(){return i.onTouched()})},inputs:{compareWith:"compareWith"},standalone:!1,features:[wt([XH]),Wt]})}return e})(),hfe=(()=>{class e{_element;_renderer;_select;id;_value;constructor(t,n,i){this._element=t,this._renderer=n,this._select=i,this._select&&(this.id=this._select._registerOption(this))}set ngValue(t){this._select!=null&&(this._value=t,this._setElementValue(ww(this.id,t)),this._select.writeValue(this._select.value))}set value(t){this._select?(this._value=t,this._setElementValue(ww(this.id,t)),this._select.writeValue(this._select.value)):this._setElementValue(t)}_setElementValue(t){this._renderer.setProperty(this._element.nativeElement,"value",t)}_setSelected(t){this._renderer.setProperty(this._element.nativeElement,"selected",t)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id
3),this._select.writeValue(this._select.value))}static \u0275fac=function(n){return new(n||e)(K(Me),K(nn),K(Jw,9))};static \u0275dir=Y({type:e,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"},standalone:!1})}return e})();function Zw(e){return typeof e=="number"?e:parseFloat(e)}var Qw=(()=>{class e{_validator=lp;_onChange;_enabled;ngOnChanges(t){if(this.inputName in t){let n=this.normalizeInput(t[this.inputName].currentValue);this._enabled=this.enabled(n),this._validator=this._enabled?this.createValidator(n):lp,this._onChange?.()}}validate(t){return this._validator(t)}registerOnValidatorChange(t){this._onChange=t}enabled(t){return t!=null}static \u0275fac=function(n){return new(n||e)};static \u0275dir=Y({type:e,features:[Ve]})}return e})(),t3={provide:Co,useExisting:zt(()=>r3),multi:!0},r3=(()=>{class e extends Qw{max;inputName="max";normalizeInput=t=>Zw(t);createValidator=t=>Rw(t);static \u0275fac=(()=>{let t;return function(i){return(t||(t=Le(e)))(i||e)}})();static \u0275dir=Y({type:e,selectors:[["input","type","number","max","","formControlName",""],["input","type","number","max","","formControl",""],["input","type","number","max","","ngModel",""]],hostVars:1,hostBindings:function(n,i){n&2&&Ke("max",i._enabled?i.max:null)},inputs:{max:"max"},standalone:!1,features:[wt([t3]),Wt]})}return e})(),n3={provide:Co,useExisting:zt(()=>i3),multi:!0},i3=(()=>{class e extends Qw{min;inputName="min";normalizeInput=t=>Zw(t);createValidator=t=>Mw(t);static \u0275fac=(()=>{let t;return function(i){return(t||(t=Le(e)))(i||e)}})();static \u0275dir=Y({type:e,selectors:[["input","type","number","min","","formControlName",""],["input","type","number","min","","formControl",""],["input","type","number","min","","ngModel",""]],hostVars:1,hostBindings:function(n,i){n&2&&Ke("min",i._enabled?i.min:null)},inputs:{min:"min"},standalone:!1,features:[wt([n3]),Wt]})}return e})();var Xw=(()=>{class e{static \u0275fac=function(n){return new(n||e)};static \u0275mod=G({type:e});static \u0275inj=V({})}return e})();var mfe=(()=>{class e{static withConfig(t){return{ngModule:e,providers:[{provide:us,useValue:t.callSetDisabledState??xl}]}}static \u0275fac=function(n){return new(n||e)};static \u0275mod=G({type:e});static \u0275inj=V({imports:[Xw]})}return e})(),gfe=(()=>{class e{static withConfig(t){return{ngModule:e,providers:[{provide:qw,useValue:t.warnOnNgModelWithFormControl??"always"},{provide:us,useValue:t.callSetDisabledState??xl}]}}static \u0275fac=function(n){return new(n||e)};static \u0275mod=G({type:e});static \u0275inj=V({imports:[Xw]})}return e})();var o3=["ngbDatepickerDayView",""],s3=["month"],a3=["year"];function c3(e,r){if(e&1&&(Re(0,"option",3),Et(1),$e()),e&2){let t=r.$implicit,n=$();ke("value",t),Ke("aria-label",n.i18n.getMonthFullName(t,n.date.year)),H(),tr(n.i18n.getMonthShortName(t,n.date.year))}}function l3(e,r){if(e&1&&(Re(0,"option",3),Et(1),$e()),e&2){let t=r.$implicit,n=$();ke("value",t),H(),tr(n.i18n.getYearNumerals(t))}}function rA(e,r){return this.idMonth(r)}function u3(e,r){if(e&1){let t=nt();ye(0,"ngb-datepicker-navigation-select",7),Se("select",function(i){Fe(t);let o=$();return Pe(o.select.emit(i))}),_e()}if(e&2){let t=$();Qe("date",t.date)("disabled",t.disabled)("months",t.selectBoxes.months)("years",t.selectBoxes.years)}}function d3(e,r){e&1&&on(0,"div",8)}function f3(e,r){e&1&&on(0,"div",8)}function p3(e,r){if(e&1&&(we(0,d3,1,0,"div",8),ye(1,"div",9),Et(2),_e(),we(3,f3,1,0,"div",8)),e&2){let t=r.$implicit,n=r.$index,i=$(2);Ae(n>0?0:-1),H(2),Ju(" ",i.i18n.getMonthLabel(t.firstDate)," "),H(),Ae(n!==i.months.length-1?3:-1)}}function h3(e,r){if(e&1&&Ir(0,p3,4,3,null,null,rA,!0),e&2){let t=$();xr(t.months)}}function m3(e,r){if(e&1&&(ye(0,"span"),Et(1),_e()),e&2){let t=r.$implicit,n=$();H(),tr(n.i18n.getMonthLabel(t.firstDate))}}function g3(e,r){if(e&1&&(ye(0,"div",1),Et(1),_e()),e&2){let t=$(2);H(),tr(t.i18n.getWeekLabel())}}function y3(e,r){if(e&1&&(ye(0,"div",2),Et(1),_e()),e&2){let t=r.$implicit;H(),tr(t)}}function v3(e,r){if(e&1&&(ye(0,"div",0),we(1,g3,2,1,"div",1),Ir(2,y3,2,1,"div",2,Dc),_e()),e&2){let t=$();H(),Ae(t.datepicker.showWeekNumbers?1:-1),H(),xr(t.viewModel.weekdays)}}function _3(e,r){if(e&1&&(ye(0,"div",4),Et(1),_e()),e&2){let t=$(2).$implicit,n=$();
3H(),tr(n.i18n.getWeekNumerals(t.number))}}function S3(e,r){}function E3(e,r){if(e&1&&St(0,S3,0,0,"ng-template",7),e&2){let t=$().$implicit,n=$(3);Qe("ngTemplateOutlet",n.datepicker.dayTemplate)("ngTemplateOutletContext",t.context)}}function b3(e,r){if(e&1){let t=nt();ye(0,"div",6),Se("click",function(i){let o=Fe(t).$implicit;return $(3).doSelect(o),Pe(i.preventDefault())}),we(1,E3,1,2,null,7),_e()}if(e&2){let t=r.$implicit;ce("disabled",t.context.disabled)("hidden",t.hidden)("ngb-dp-today",t.context.today),Qe("tabindex",t.tabindex),Ke("aria-label",t.ariaLabel)("aria-disabled",t.context.disabled)("aria-selected",t.context.selected),H(),Ae(t.hidden?-1:1)}}function D3(e,r){if(e&1&&(ye(0,"div",3),we(1,_3,2,1,"div",4),Ir(2,b3,2,11,"div",5,vi),_e()),e&2){let t=$().$implicit,n=$();H(),Ae(n.datepicker.showWeekNumbers?1:-1),H(),xr(t.days)}}function C3(e,r){if(e&1&&we(0,D3,4,1,"div",3),e&2){let t=r.$implicit;Ae(t.collapsed?-1:0)}}var T3=["defaultDayTemplate"],w3=["content"],A3=e=>({$implicit:e});function O3(e,r){if(e&1&&on(0,"div",8),e&2){let t=r.date,n=r.currentMonth,i=r.selected,o=r.disabled,s=r.focused;Qe("date",t)("currentMonth",n)("selected",i)("disabled",o)("focused",s)}}function M3(e,r){if(e&1&&(ye(0,"div",10),Et(1),_e()),e&2){let t=$().$implicit,n=$(2);H(),Ju(" ",n.i18n.getMonthLabel(t.firstDate)," ")}}function R3(e,r){if(e&1&&(ye(0,"div",9),we(1,M3,2,1,"div",10),on(2,"ngb-datepicker-month",11),_e()),e&2){let t=r.$implicit,n=$(2);H(),Ae(n.navigation==="none"||n.displayMonths>1&&n.navigation==="select"?1:-1),H(),Qe("month",t.firstDate)}}function I3(e,r){if(e&1&&Ir(0,R3,3,2,"div",9,vi),e&2){let t=$();xr(t.model.months)}}function x3(e,r){if(e&1){let t=nt();ye(0,"ngb-datepicker-navigation",12),Se("navigate",function(i){Fe(t);let o=$();return Pe(o.onNavigateEvent(i))})("select",function(i){Fe(t);let o=$();return Pe(o.onNavigateDateSelect(i))}),_e()}if(e&2){let t=$();Qe("date",t.model.firstDate)("months",t.model.months)("disabled",t.model.disabled)("showSelect",t.model.navigation==="select")("prevDisabled",t.model.prevDisabled)("nextDisabled",t.model.nextDisabled)("selectBoxes",t.model.selectBoxes)}}function N3(e,r){}function L3(e,r){}var Jr=class e{static from(r){return r instanceof e?r:r?new e(r.year,r.month,r.day):null}constructor(r,t,n){this.year=pt(r)?r:null,this.month=pt(t)?t:null,this.day=pt(n)?n:null}equals(r){return r!=null&&this.year===r.year&&this.month===r.month&&this.day===r.day}before(r){return r?this.year===r.year?this.month===r.month?this.day===r.day?!1:this.day<r.day:this.month<r.month:this.year<r.year:!1}after(r){return r?this.year===r.year?this.month===r.month?this.day===r.day?!1:this.day>r.day:this.month>r.month:this.year>r.year:!1}};function eA(e){return new Jr(e.getFullYear(),e.getMonth()+1,e.getDate())}function Sp(e){let r=new Date(e.year,e.month-1,e.day,12);return isNaN(r.getTime())||r.setFullYear(e.year),r}function F3(){return new P3}var Dp=(()=>{class e{static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=h({token:e,factory:()=>F3(),providedIn:"root"})}}return e})(),P3=(()=>{class e extends Dp{getDaysPerWeek(){return 7}getMonths(){return[1,2,3,4,5,6,7,8,9,10,11,12]}getWeeksPerMonth(){return 6}getNext(t,n="d",i=1){let o=Sp(t),s=!0,a=o.getMonth();switch(n){case"y":o.setFullYear(o.getFullYear()+i);break;case"m":a+=i,o.setMonth(a),a=a%12,a<0&&(a=a+12);break;case"d":o.setDate(o.getDate()+i),s=!1;break;default:return t}return s&&o.getMonth()!==a&&o.setDate(0),eA(o)}getPrev(t,n="d",i=1){return this.getNext(t,n,-i)}getWeekday(t){let i=Sp(t).getDay();return i===0?7:i}getWeekNumber(t,n){n===7&&(n=0);let i=(11-n)%7,o=t[i],s=Sp(o);s.setDate(s.getDate()+4-(s.getDay()||7));let a=s.getTime();return s.setMonth(0),s.setDate(1),Math.floor(Math.round((a-s.getTime())/864e5)/7)+1}getToday(){return eA(new Date)}isValid(t){if(!t||!pt(t.year)||!pt(t.month)||!pt(t.day)||t.year===0)return!1;let n=Sp(t);return!isNaN(n.getTime())&&n.getFullYear()===t.year&&n.getMonth()+1===t.month&&n.getDate()===t.day}static{this.\u0275fac=(()=>{let t;return function(i){return(t||(t=Le(e)))(i||e)}})()}static{this.\u0275prov=h({token:e,factory:e.\u0275fac})}}return e})();function za(e,r){return!k3(e,r)}function nA(e,r){return!e&&!r?!1:!e||!r?!0:e.year!==r.year||e.month!==r.month}function k3(e,r){return!e&&!r||!!e&&!!r&&e.equals(r)}function j3(e,r){if(r&&e&&r.before(e))throw new Error(`'maxDate' ${r} should be greater than 'minDate' ${e}`)}function Ep(e,r,t){return e&&r&&e.before(r)?r:e&&t&&e.after(t)?t:e||null}function C0(e,r){let{minDate:t,maxDate:n,disabled:i,markDisabled:o}=r;return!(e==null||i||o&&o(e,{year:e.year,month:e.month})||t&&e.before(t)||n&&e.after(n))}function U3(e,r,t,n){if(!r)return[];let i=e.getMonths(r.year);if(t&&r.year===t.year){let o=i.findIndex(s=>s===t.month);i=i.slice(o)}if(n&&r.year===n.year){let o=i.findIndex(s=>s===n.month);i=i.slice(0,o+1)}return i}function B3(e,r,t){if(!e)return[];let n=r?Math.max(r.year,e.year-500):e.year-10,o=(t?Math.min(t.year,e.year+500):e.year+10)-n+1,s=Array(o);for(let a=0;a<o;a++)s[a]=n+a;return s}function V3(e,r,t){let n=Object.assign(e.getNext(r,"m"),{day:1});return t!=null&&n.after(t)}function G3(e,r,t){let n=Object.assign(e.getPrev(r,"m"),{day:1});return t!=null&&(n.year===t.year&&n.month<t.month||n.year<t.year&&t.month===1)}function $3(e,r,t,n,i){let{displayMonths:o,months:s}=t,a=s.splice(0,s.length);return Array.from({length:o},(l,d)=>{let m=Object.assign(e.getNext(r,"m",d),{day:1});if(s[d]=null,!i){let y=a.findIndex(S=>S.firstDate.equals(m));y!==-1&&(s[d]=a.splice(y,1)[0])}return m}
3).forEach((l,d)=>{s[d]===null&&(s[d]=H3(e,l,t,n,a.shift()||{}))}),s}function H3(e,r,t,n,i={}){let{dayTemplateData:o,minDate:s,maxDate:a,firstDayOfWeek:c,markDisabled:l,outsideDays:d,weekdayWidth:m,weekdaysVisible:y}=t,S=e.getToday();i.firstDate=null,i.lastDate=null,i.number=r.month,i.year=r.year,i.weeks=i.weeks||[],i.weekdays=i.weekdays||[],r=z3(e,r,c),y||(i.weekdays.length=0);for(let N=0;N<e.getWeeksPerMonth();N++){let T=i.weeks[N];T||(T=i.weeks[N]={number:0,days:[],collapsed:!0});let v=T.days;for(let b=0;b<e.getDaysPerWeek();b++){N===0&&y&&(i.weekdays[b]=n.getWeekdayLabel(e.getWeekday(r),m));let D=new Jr(r.year,r.month,r.day),M=e.getNext(D),O=n.getDayAriaLabel(D),F=!!(s&&D.before(s)||a&&D.after(a));!F&&l&&(F=l(D,{month:i.number,year:i.year}));let B=D.equals(S),J=o?o(D,{month:i.number,year:i.year}):void 0;i.firstDate===null&&D.month===i.number&&(i.firstDate=D),D.month===i.number&&M.month!==i.number&&(i.lastDate=D);let oe=v[b];oe||(oe=v[b]={}),oe.date=D,oe.context=Object.assign(oe.context||{},{$implicit:D,date:D,data:J,currentMonth:i.number,currentYear:i.year,disabled:F,focused:!1,selected:!1,today:B}),oe.tabindex=-1,oe.ariaLabel=O,oe.hidden=!1,r=M}T.number=e.getWeekNumber(v.map(b=>b.date),c),T.collapsed=d==="collapsed"&&v[0].date.month!==i.number&&v[v.length-1].date.month!==i.number}return i}function z3(e,r,t){let n=e.getDaysPerWeek(),i=new Jr(r.year,r.month,1),o=e.getWeekday(i)%n;return e.getPrev(i,"d",(n+o-t)%n)}var ds=(()=>{class e{getMonthLabel(t){return`${this.getMonthFullName(t.month,t.year)} ${this.getYearNumerals(t.year)}`}getDayNumerals(t){return`${t.day}`}getWeekNumerals(t){return`${t}`}getYearNumerals(t){return`${t}`}getWeekLabel(){return""}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=h({token:e,factory:()=>new W3,providedIn:"root"})}}return e})(),W3=(()=>{class e extends ds{constructor(){super(...arguments),this._locale=f(ks),this._monthsShort=[...Array(12).keys()].map(t=>Intl.DateTimeFormat(this._locale,{month:"short",timeZone:"UTC"}).format(Date.UTC(2e3,t))),this._monthsFull=[...Array(12).keys()].map(t=>Intl.DateTimeFormat(this._locale,{month:"long",timeZone:"UTC"}).format(Date.UTC(2e3,t)))}getWeekdayLabel(t,n="narrow"){return[1,2,3,4,5,6,7].map(o=>Intl.DateTimeFormat(this._locale,{weekday:n,timeZone:"UTC"}).format(Date.UTC(2e3,4,o)))[t-1]||""}getMonthShortName(t){return this._monthsShort[t-1]||""}getMonthFullName(t){return this._monthsFull[t-1]||""}getDayAriaLabel(t){let n=new Date(t.year,t.month-1,t.day);return Bo(n,"fullDate",this._locale)}static{this.\u0275fac=(()=>{let t;return function(i){return(t||(t=Le(e)))(i||e)}})()}static{this.\u0275prov=h({token:e,factory:e.\u0275fac})}}return e})(),T0=(()=>{class e{constructor(){this._VALIDATORS={dayTemplateData:t=>{if(this._state.dayTemplateData!==t)return{dayTemplateData:t}},displayMonths:t=>{if(t=Qt(t),pt(t)&&t>0&&this._state.displayMonths!==t)return{displayMonths:t}},disabled:t=>{if(this._state.disabled!==t)return{disabled:t}},firstDayOfWeek:t=>{if(t=Qt(t),pt(t)&&t>=0&&this._state.firstDayOfWeek!==t)return{firstDayOfWeek:t}},focusVisible:t=>{if(this._state.focusVisible!==t&&!this._state.disabled)return{focusVisible:t}},markDisabled:t=>{if(this._state.markDisabled!==t)return{markDisabled:t}},maxDate:t=>{let n=this.toValidDate(t,null);if(za(this._state.maxDate,n))return{maxDate:n}},minDate:t=>{let n=this.toValidDate(t,null);if(za(this._state.minDate,n))return{minDate:n}},navigation:t=>{if(this._state.navigation!==t)return{navigation:t}},outsideDays:t=>{if(this._state.outsideDays!==t)return{outsideDays:t}},weekdays:t=>{let n=t===!0||t===!1?"narrow":t,i=t===!0||t===!1?t:!0;if(this._state.weekdayWidth!==n||this._state.weekdaysVisible!==i)return{weekdayWidth:n,weekdaysVisible:i}}},this._calendar=f(Dp),this._i18n=f(ds),this._model$=new me,this._dateSelect$=new me,this._state={dayTemplateData:null,markDisabled:null,maxDate:null,minDate:null,disabled:!1,displayMonths:1,firstDate:null,firstDayOfWeek:1,lastDate:null,focusDate:null,focusVisible:!1,months:[],navigation:"select",outsideDays:"visible",prevDisabled:!1,nextDisabled:!1,selectedDate:null,selectBoxes:{years:[],months:[]},weekdayWidth:"narrow",weekdaysVisible:!0}}get model$(){return this._model$.pipe(q(t=>t.months.length>0))}get dateSelect$(){return this._dateSelect$.pipe(q(t=>t!==null))}set(t){let n=Object.keys(t).map(i=>this._VALIDATORS[i](t[i])).reduce((i,o)=>u(u({},i),o),{});Object.keys(n).length>0&&this._nextState(n)}focus(t){let n=this.toValidDate(t,null);n!=null&&!this._state.disabled&&za(this._state.focusDate,n)&&this._nextState({focusDate:t})}focusSelect(){C0(this._state.focusDate,this._state)&&this.select(this._state.focusDate,{emitEvent:!0})}open(t){let n=this.toValidDate(t,this._calendar.getToday());n!=null&&!this._state.disabled&&(!this._state.firstDate||nA(this._state.firstDate,n))&&this._nextState({firstDate:n})}select(t,n={}){let i=this.toValidDate(t,null);i!=null&&!this._state.disabled&&(za(this._state.selectedDate,i)&&this._nextState({selectedDate:i}),n.emitEvent&&C0(i,this._state)&&this._dateSelect$.next(i))}toValidDate(t,n){let i=Jr.from(t);return n===void 0&&(n=this._calendar.getToday()),this._calendar.isValid(i)?i:n}getMonth(t){for(let n of this._state.months)if(t.month===n.number&&t.year===n.year)return n;throw new Error(`month ${t.month} of year ${t.year} not found`)}_nextState(t){let n=this._updateState(t);this._patchContexts(n),this._state=n,this._model$.next(this._state)}_patchContexts(t){let{months:n,displayMonths:i,selectedDate:o,focusDate:s,focusVisible:a,disabled:c,outsideDays:l}=t;t.months.forEach(d=>{d.weeks.forEach(m=>{m.days.forEach(y=>{s&&(y.context.focused=s.equals(y.date)&&a),y.tabindex=!c&&s&&y.date.equals(s)&&s.month===d.number?0:-1,c===!0&&(y.context.disabled=!0),o!==void 0&&(y.context.selected=o!==null&&o.equals(y.date)),d.number!==y.date.month&&(y.hidden=l==="hidden"||l==="collapsed"||i>1&&y.date.after(n[0].firstDate)&&y.date.before(n[i-1].lastDate))})})})}_updateState(t){let n=Object.assign({},this._state,t),i=n.firstDate;if(("minDate"in t||"maxDate"in t)&&(j3(n.minDate,n.maxDate),n.focusDate=Ep(n.focusDate,n.minDate,n.maxDate),n.firstDate=Ep(n.firstDate,n.minDate,n.maxDate),i=n.focusDate),"disabled"in t&&(n.focusVisible=!1),"selectedDate"in t&&this._state.months.length===0&&(i=n.selectedDate),"focu
3sVisible"in t||"focusDate"in t&&(n.focusDate=Ep(n.focusDate,n.minDate,n.maxDate),i=n.focusDate,n.months.length!==0&&n.focusDate&&!n.focusDate.before(n.firstDate)&&!n.focusDate.after(n.lastDate)))return n;if("firstDate"in t&&(n.firstDate=Ep(n.firstDate,n.minDate,n.maxDate),i=n.firstDate),i){let o="dayTemplateData"in t||"firstDayOfWeek"in t||"markDisabled"in t||"minDate"in t||"maxDate"in t||"disabled"in t||"outsideDays"in t||"weekdaysVisible"in t,s=$3(this._calendar,i,n,this._i18n,o);n.months=s,n.firstDate=s[0].firstDate,n.lastDate=s[s.length-1].lastDate,"selectedDate"in t&&!C0(n.selectedDate,n)&&(n.selectedDate=null),"firstDate"in t&&(!n.focusDate||n.focusDate.before(n.firstDate)||n.focusDate.after(n.lastDate))&&(n.focusDate=i);let a=!this._state.firstDate||this._state.firstDate.year!==n.firstDate.year,c=!this._state.firstDate||this._state.firstDate.month!==n.firstDate.month;n.navigation==="select"?(("minDate"in t||"maxDate"in t||n.selectBoxes.years.length===0||a)&&(n.selectBoxes.years=B3(n.firstDate,n.minDate,n.maxDate)),("minDate"in t||"maxDate"in t||n.selectBoxes.months.length===0||a)&&(n.selectBoxes.months=U3(this._calendar,n.firstDate,n.minDate,n.maxDate))):n.selectBoxes={years:[],months:[]},(n.navigation==="arrows"||n.navigation==="select")&&(c||a||"minDate"in t||"maxDate"in t||"disabled"in t)&&(n.prevDisabled=n.disabled||G3(this._calendar,n.firstDate,n.minDate),n.nextDisabled=n.disabled||V3(this._calendar,n.lastDate,n.maxDate))}return n}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=h({token:e,factory:e.\u0275fac})}}return e})(),bp=(function(e){return e[e.PREV=0]="PREV",e[e.NEXT=1]="NEXT",e})(bp||{}),w0=(()=>{class e{constructor(){this.displayMonths=1,this.firstDayOfWeek=1,this.navigation="select",this.outsideDays="visible",this.showWeekNumbers=!1,this.weekdays="narrow"}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=h({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();function q3(){return new Y3}var A0=(()=>{class e{static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=h({token:e,factory:()=>q3(),providedIn:"root"})}}return e})(),Y3=(()=>{class e extends A0{fromModel(t){return t&&pt(t.year)&&pt(t.month)&&pt(t.day)?{year:t.year,month:t.month,day:t.day}:null}toModel(t){return t&&pt(t.year)&&pt(t.month)&&pt(t.day)?{year:t.year,month:t.month,day:t.day}:null}static{this.\u0275fac=(()=>{let t;return function(i){return(t||(t=Le(e)))(i||e)}})()}static{this.\u0275prov=h({token:e,factory:e.\u0275fac})}}return e})(),K3=(()=>{class e{processKey(t,n){let{state:i,calendar:o}=n;switch(t.key){case"PageUp":n.focusDate(o.getPrev(i.focusedDate,t.shiftKey?"y":"m",1));break;case"PageDown":n.focusDate(o.getNext(i.focusedDate,t.shiftKey?"y":"m",1));break;case"End":n.focusDate(t.shiftKey?i.maxDate:i.lastDate);break;case"Home":n.focusDate(t.shiftKey?i.minDate:i.firstDate);break;case"ArrowLeft":n.focusDate(o.getPrev(i.focusedDate,"d",1));break;case"ArrowUp":n.focusDate(o.getPrev(i.focusedDate,"d",o.getDaysPerWeek()));break;case"ArrowRight":n.focusDate(o.getNext(i.focusedDate,"d",1));break;case"ArrowDown":n.focusDate(o.getNext(i.focusedDate,"d",o.getDaysPerWeek()));break;case"Enter":case" ":n.focusSelect();break;default:return}t.preventDefault(),t.stopPropagation()}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=h({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),J3=(()=>{class e{constructor(){this.i18n=f(ds)}isMuted(){return!this.selected&&(this.date.month!==this.currentMonth||this.disabled)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=Ge({type:e,selectors:[["","ngbDatepickerDayView",""]],hostAttrs:[1,"btn-light"],hostVars:10,hostBindings:function(n,i){n&2&&ce("bg-primary",i.selected)("text-white",i.selected)("text-muted",i.isMuted())("outside",i.isMuted())("active",i.focused)},inputs:{currentMonth:"currentMonth",date:"date",disabled:"disabled",focused:"focused",selected:"selected"},attrs:o3,decls:1,vars:1,template:function(n,i){n&1&&Et(0),n&2&&tr(i.i18n.getDayNumerals(i.date))},styles:[`[ngbDatepickerDayView]{text-align:center;width:2rem;height:2rem;line-height:2rem;border-radius:.25rem;background:transparent}[ngbDatepickerDayView]:hover:not(.bg-primary),[ngbDatepickerDayView].active:not(.bg-primary){background-color:var(--bs-tertiary-bg);outline:1px solid var(--bs-border-color)}[ngbDatepickerDayView].outside{opacity:.5}
4`],encapsulation:2,changeDetection:0})}}return e})(),Z3=(()=>{class e{constructor(){this._month=-1,this._year=-1,this.i18n=f(ds),this.select=new se}changeMonth(t){this.select.emit(new Jr(this.date.year,Qt(t),1))}changeYear(t){this.select.emit(new Jr(Qt(t),this.date.month,1))}ngAfterViewChecked(){this.date&&(this.date.month!==this._month&&(this._month=this.date.month,this.monthSelect.nativeElement.value=`${this._month}`),this.date.year!==this._year&&(this._year=this.date.year,this.yearSelect.nativeElement.value=`${this._year}`))}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=Ge({type:e,selectors:[["ngb-datepicker-navigation-select"]],viewQuery:function(n,i){if
4(n&1&&Uo(s3,7,Me)(a3,7,Me),n&2){let o;Xe(o=et())&&(i.monthSelect=o.first),Xe(o=et())&&(i.yearSelect=o.first)}},inputs:{date:"date",disabled:"disabled",months:"months",years:"years"},outputs:{select:"select"},decls:8,vars:2,consts:()=>{let t;t=$localize`:@@ngb.datepicker.select-month:Select month`;let n;n=$localize`:@@ngb.datepicker.select-month:Select month`;let i;i=$localize`:@@ngb.datepicker.select-year:Select year`;let o;return o=$localize`:@@ngb.datepicker.select-year:Select year`,[["month",""],["year",""],["aria-label",t,"title",n,1,"form-select",3,"change","disabled"],[3,"value"],["aria-label",i,"title",o,1,"form-select",3,"change","disabled"]]},template:function(n,i){n&1&&(Re(0,"select",2,0),_r("change",function(s){return i.changeMonth(s.target.value)}),Ir(2,c3,2,3,"option",3,vi),$e(),Re(4,"select",4,1),_r("change",function(s){return i.changeYear(s.target.value)}),Ir(6,l3,2,2,"option",3,vi),$e()),n&2&&(ke("disabled",i.disabled),H(2),xr(i.months),H(2),ke("disabled",i.disabled),H(2),xr(i.years))},styles:[`ngb-datepicker-navigation-select>.form-select{flex:1 1 auto;padding:0 .5rem;font-size:.875rem;height:1.85rem}ngb-datepicker-navigation-select>.form-select:focus{z-index:1}ngb-datepicker-navigation-select>.form-select::-ms-value{background-color:transparent!important}
5`],encapsulation:2,changeDetection:0})}}return e})(),Q3=(()=>{class e{constructor(){this.navigation=bp,this.i18n=f(ds),this.months=[],this.navigate=new se,this.select=new se}onClickPrev(t){t.currentTarget.focus(),this.navigate.emit(this.navigation.PREV)}onClickNext(t){t.currentTarget.focus(),this.navigate.emit(this.navigation.NEXT)}idMonth(t){return t}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=Ge({type:e,selectors:[["ngb-datepicker-navigation"]],inputs:{date:"date",disabled:"disabled",months:"months",showSelect:"showSelect",prevDisabled:"prevDisabled",nextDisabled:"nextDisabled",selectBoxes:"selectBoxes"},outputs:{navigate:"navigate",select:"select"},decls:11,vars:4,consts:()=>{let t;t=$localize`:@@ngb.datepicker.previous-month:Previous month`;let n;n=$localize`:@@ngb.datepicker.previous-month:Previous month`;let i;i=$localize`:@@ngb.datepicker.next-month:Next month`;let o;return o=$localize`:@@ngb.datepicker.next-month:Next month`,[[1,"ngb-dp-arrow","ngb-dp-arrow-prev"],["type","button","aria-label",t,"title",n,1,"btn","btn-link","ngb-dp-arrow-btn",3,"click","disabled"],[1,"ngb-dp-navigation-chevron"],[1,"ngb-dp-navigation-select",3,"date","disabled","months","years"],["aria-live","polite",1,"visually-hidden"],[1,"ngb-dp-arrow","ngb-dp-arrow-next"],["type","button","aria-label",i,"title",o,1,"btn","btn-link","ngb-dp-arrow-btn",3,"click","disabled"],[1,"ngb-dp-navigation-select",3,"select","date","disabled","months","years"],[1,"ngb-dp-arrow"],[1,"ngb-dp-month-name"]]},template:function(n,i){n&1&&(ye(0,"div",0)(1,"button",1),Se("click",function(s){return i.onClickPrev(s)}),on(2,"span",2),_e()(),we(3,u3,1,4,"ngb-datepicker-navigation-select",3),we(4,h3,2,0),ye(5,"div",4),Ir(6,m3,2,1,"span",null,rA,!0),_e(),ye(8,"div",5)(9,"button",6),Se("click",function(s){return i.onClickNext(s)}),on(10,"span",2),_e()()),n&2&&(H(),Qe("disabled",i.prevDisabled),H(2),Ae(i.showSelect?3:-1),H(),Ae(i.showSelect?-1:4),H(2),xr(i.months),H(3),Qe("disabled",i.nextDisabled))},dependencies:[Z3],styles:[`ngb-datepicker-navigation{display:flex;align-items:center}.ngb-dp-navigation-chevron{border-style:solid;border-width:.2em .2em 0 0;display:inline-block;width:.75em;height:.75em;margin-left:.25em;margin-right:.15em;transform:rotate(-135deg)}.ngb-dp-arrow{display:flex;flex:1 1 auto;padding-right:0;padding-left:0;margin:0;width:2rem;height:2rem}.ngb-dp-arrow-next{justify-content:flex-end}.ngb-dp-arrow-next .ngb-dp-navigation-chevron{transform:rotate(45deg);margin-left:.15em;margin-right:.25em}.ngb-dp-arrow-btn{padding:0 .25rem;margin:0 .5rem;border:none;background-color:transparent;z-index:1}.ngb-dp-arrow-btn:focus{outline-width:1px;outline-style:auto}@media all and (-ms-high-contrast:none),(-ms-high-contrast:active){.ngb-dp-arrow-btn:focus{outline-style:solid}}.ngb-dp-month-name{font-size:larger;height:2rem;line-height:2rem;text-align:center}.ngb-dp-navigation-select{display:flex;flex:1 1 9rem}
6`],encapsulation:2,changeDetection:0})}}return e})(),X3=(()=>{class e{constructor(){this.templateRef=f(Tt)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275dir=Y({type:e,selectors:[["ng-template","ngbDatepickerContent",""]]})}}return e})(),ez=(()=>{class e{constructor(){this._keyboardService=f(K3),this._service=f(T0),this.i18n=f(ds),this.datepicker=f(iA)}set month(t){this.viewModel=this._service.getMonth(t)}onKeyDown(t){this._keyboardService.processKey(t,this.datepicker)}doSelect(t){!t.context.disabled&&!t.hidden&&this.datepicker.onDateSelect(t.date)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=Ge({type:e,selectors:[["ngb-datepicker-month"]],hostAttrs:["role","grid"],hostBindings:function(n,i){n&1&&Se("keydown",function(s){return i.onKeyDown(s)})},inputs:{month:"month"},decls:3,vars:1,consts:[["role","row",1,"ngb-dp-week","ngb-dp-weekdays"],[1,"ngb-dp-weekday","ngb-dp-showweek","small"],["role","columnheader",1,"ngb-dp-weekday","small"],["role","row",1,"ngb-dp-week"],[1,"ngb-dp-week-number","small","text-muted"],["role","gridcell",1,"ngb-dp-day",3,"disabled","tabindex","hidden","ngb-dp-today"],["role","gridcell",1,"ngb-dp-day",3,"click","tabindex"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(n,i){n&1&&(we(0,v3,4,1,"div",0),Ir(1,C3,1,1,null,null,vi)),n&2&&(Ae(i.viewModel.weekdays.length>0?0:-1),H(),xr(i.viewModel.weeks))},dependencies:[ii],styles:[`ngb-datepicker-month{display:block}.ngb-dp-weekday,.ngb-dp-week-number{line-height:2rem;text-align:center;font-style:italic}.ngb-dp-weekday{color:var(--bs-info)}.ngb-dp-week{border-radius:.25rem;display:flex}.ngb-dp-weekdays{border-bottom:1px solid var(--bs-border-color);border-radius:0;background-color:var(--bs-tertiary-bg)}
6.ngb-dp-day,.ngb-dp-weekday,.ngb-dp-week-number{width:2rem;height:2rem}.ngb-dp-day{cursor:pointer}.ngb-dp-day.disabled,.ngb-dp-day.hidden{cursor:default;pointer-events:none}.ngb-dp-day[tabindex="0"]{z-index:1}
7`],encapsulation:2})}}return e})(),iA=(()=>{class e{constructor(){this.injector=f(Te),this._service=f(T0),this._calendar=f(Dp),this._i18n=f(ds),this._config=f(w0),this._nativeElement=f(Me).nativeElement,this._ngbDateAdapter=f(A0),this._ngZone=f(Be),this._destroyRef=f(_t),this._injector=f(Te),this._controlValue=null,this._publicState={},this._initialized=!1,this.dayTemplate=this._config.dayTemplate,this.dayTemplateData=this._config.dayTemplateData,this.displayMonths=this._config.displayMonths,this.firstDayOfWeek=this._config.firstDayOfWeek,this.footerTemplate=this._config.footerTemplate,this.markDisabled=this._config.markDisabled,this.maxDate=this._config.maxDate,this.minDate=this._config.minDate,this.navigation=this._config.navigation,this.outsideDays=this._config.outsideDays,this.showWeekNumbers=this._config.showWeekNumbers,this.startDate=this._config.startDate,this.weekdays=this._config.weekdays,this.navigate=new se,this.dateSelect=new se,this.onChange=n=>{},this.onTouched=()=>{};let t=f(it);this._service.dateSelect$.pipe(Yr()).subscribe(n=>{this.dateSelect.emit(n)}),this._service.model$.pipe(Yr()).subscribe(n=>{let i=n.firstDate,o=this.model?this.model.firstDate:null;this._publicState={maxDate:n.maxDate,minDate:n.minDate,firstDate:n.firstDate,lastDate:n.lastDate,focusedDate:n.focusDate,months:n.months.map(d=>d.firstDate)};let s=!1;if(!i.equals(o)&&(this.navigate.emit({current:o?{year:o.year,month:o.month}:null,next:{year:i.year,month:i.month},preventDefault:()=>s=!0}),s&&o!==null)){this._service.open(o);return}let a=n.selectedDate,c=n.focusDate,l=this.model?this.model.focusDate:null;this.model=n,za(a,this._controlValue)&&(this._controlValue=a,this.onTouched(),this.onChange(this._ngbDateAdapter.toModel(a))),za(c,l)&&l&&n.focusVisible&&this.focus(),t.markForCheck()})}get state(){return this._publicState}get calendar(){return this._calendar}get i18n(){return this._i18n}focusDate(t){this._service.focus(Jr.from(t))}focusSelect(){this._service.focusSelect()}focus(){Br({read:()=>{this._nativeElement.querySelector('div.ngb-dp-day[tabindex="0"]')?.focus()}},{injector:this._injector})}navigateTo(t){this._service.open(Jr.from(t?t.day?t:g(u({},t),{day:1}):null))}ngAfterViewInit(){this._ngZone.runOutsideAngular(()=>{let t=vr(this._contentEl.nativeElement,"focusin"),n=vr(this._contentEl.nativeElement,"focusout");Lo(t,n).pipe(q(i=>{let o=i.target,s=i.relatedTarget;return!(o?.classList.contains("ngb-dp-day")&&s?.classList.contains("ngb-dp-day")&&this._nativeElement.contains(o)&&this._nativeElement.contains(s))}),Yr(this._destroyRef)).subscribe(({type:i})=>this._ngZone.run(()=>this._service.set({focusVisible:i==="focusin"})))})}ngOnInit(){if(this.model===void 0){let t={};["dayTemplateData","displayMonths","markDisabled","firstDayOfWeek","navigation","minDate","maxDate","outsideDays","weekdays"].forEach(n=>t[n]=this[n]),this._service.set(t),this.navigateTo(this.startDate)}this.dayTemplate||(this.dayTemplate=this._defaultDayTemplate),this._initialized=!0}ngOnChanges(t){let n={};if(["dayTemplateData","displayMonths","markDisabled","firstDayOfWeek","navigation","minDate","maxDate","outsideDays","weekdays"].filter(i=>i in t).forEach(i=>n[i]=this[i]),this._service.set(n),"startDate"in t&&this._initialized){let{currentValue:i,previousValue:o}=t.startDate;nA(o,i)&&this.navigateTo(this.startDate)}}onDateSelect(t){this._service.focus(t),this._service.select(t,{emitEvent:!0})}onNavigateDateSelect(t){this._service.open(t)}onNavigateEvent(t){switch(t){case bp.PREV:this._service.open(this._calendar.getPrev(this.model.firstDate,"m",1));break;case bp.NEXT:this._service.open(this._calendar.getNext(this.model.firstDate,"m",1));break}}registerOnChange(t){this.onChange=t}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._service.set({disabled:t})}writeValue(t){this._controlValue=Jr.from(this._ngbDateAdapter.fromModel(t)),this._service.select(this._controlValue)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=Ge({type:e,selectors:[["ngb-datepicker"]],contentQueries:function(n,i,o){if(n&1&&Lr(o,X3,7),n&2){let s;Xe(s=et())&&(i.contentTemplateFromContent=s.first)}}
7,viewQuery:function(n,i){if(n&1&&Uo(T3,7)(w3,7),n&2){let o;Xe(o=et())&&(i._defaultDayTemplate=o.first),Xe(o=et())&&(i._contentEl=o.first)}},hostVars:2,hostBindings:function(n,i){n&2&&ce("disabled",i.model.disabled)},inputs:{contentTemplate:"contentTemplate",dayTemplate:"dayTemplate",dayTemplateData:"dayTemplateData",displayMonths:"displayMonths",firstDayOfWeek:"firstDayOfWeek",footerTemplate:"footerTemplate",markDisabled:"markDisabled",maxDate:"maxDate",minDate:"minDate",navigation:"navigation",outsideDays:"outsideDays",showWeekNumbers:"showWeekNumbers",startDate:"startDate",weekdays:"weekdays"},outputs:{navigate:"navigate",dateSelect:"dateSelect"},exportAs:["ngbDatepicker"],features:[wt([{provide:mn,useExisting:zt(()=>e),multi:!0},T0]),Ve],decls:10,vars:9,consts:[["defaultDayTemplate",""],["defaultContentTemplate",""],["content",""],[1,"ngb-dp-header"],[3,"date","months","disabled","showSelect","prevDisabled","nextDisabled","selectBoxes"],[1,"ngb-dp-content"],[3,"ngTemplateOutlet","ngTemplateOutletContext","ngTemplateOutletInjector"],[3,"ngTemplateOutlet"],["ngbDatepickerDayView","",3,"date","currentMonth","selected","disabled","focused"],[1,"ngb-dp-month"],[1,"ngb-dp-month-name"],[3,"month"],[3,"navigate","select","date","months","disabled","showSelect","prevDisabled","nextDisabled","selectBoxes"]],template:function(n,i){if(n&1&&(St(0,O3,1,5,"ng-template",null,0,pr)(2,I3,2,0,"ng-template",null,1,pr),ye(4,"div",3),we(5,x3,1,7,"ngb-datepicker-navigation",4),_e(),ye(6,"div",5,2),St(8,N3,0,0,"ng-template",6),_e(),St(9,L3,0,0,"ng-template",7)),n&2){let o=Sr(3);H(5),Ae(i.navigation!=="none"?5:-1),H(),ce("ngb-dp-months",!i.contentTemplate),H(2),Qe("ngTemplateOutlet",i.contentTemplate||(i.contentTemplateFromContent==null?null:i.contentTemplateFromContent.templateRef)||o)("ngTemplateOutletContext",Ps(7,A3,i))("ngTemplateOutletInjector",i.injector),H(),Qe("ngTemplateOutlet",i.footerTemplate)}},dependencies:[ii,J3,ez,Q3],styles:[`ngb-datepicker{border:1px solid var(--bs-border-color);border-radius:.25rem;display:inline-block}ngb-datepicker-month{pointer-events:auto}ngb-datepicker.dropdown-menu{padding:0}ngb-datepicker.disabled .ngb-dp-weekday,ngb-datepicker.disabled .ngb-dp-week-number,ngb-datepicker.disabled .ngb-dp-month-name{color:var(--bs-text-muted)}.ngb-dp-body{z-index:1055}.ngb-dp-header{border-bottom:0;border-radius:.25rem .25rem 0 0;padding-top:.25rem;background-color:var(--bs-tertiary-bg)}.ngb-dp-months{display:flex}.ngb-dp-month{pointer-events:none}.ngb-dp-month-name{font-size:larger;height:2rem;line-height:2rem;text-align:center;background-color:var(--bs-tertiary-bg)}.ngb-dp-month+.ngb-dp-month .ngb-dp-month-name,.ngb-dp-month+.ngb-dp-month .ngb-dp-week{padding-left:1rem}.ngb-dp-month:last-child .ngb-dp-week{padding-right:.25rem}.ngb-dp-month:first-child .ngb-dp-week{padding-left:.25rem}.ngb-dp-month .ngb-dp-week:last-child{padding-bottom:.25rem}
8`],encapsulation:2,changeDetection:0})}}return e})();function tz(){return new rz}var oA=(()=>{class e{static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=h({token:e,factory:()=>tz(),providedIn:"root"})}}return e})(),rz=(()=>{class e extends oA{parse(t){if(t!=null){let n=t.trim().split("-");if(n.length===1&&ft(n[0]))return{year:Qt(n[0]),month:null,day:null};if(n.length===2&&ft(n[0])&&ft(n[1]))return{year:Qt(n[0]),month:Qt(n[1]),day:null};if(n.length===3&&ft(n[0])&&ft(n[1])&&ft(n[2]))return{year:Qt(n[0]),month:Qt(n[1]),day:Qt(n[2])}}return null}format(t){return t?`${t.year}-${ft(t.month)?So(t.month):""}-${ft(t.day)?So(t.day):""}`:""}static{this.\u0275fac=(()=>{let t;return function(i){return(t||(t=Le(e)))(i||e)}})()}static{this.\u0275prov=h({token:e,factory:e.\u0275fac})}}return e})(),tA=(()=>{class e extends w0{constructor(){super(...arguments),this.autoClose=!0,this.placement=["bottom-start","bottom-end","top-start","top-end"],this.popperOptions=t=>t,this.restoreFocus=!0}static{this.\u0275fac=(()=>{let t;return function(i){return(t||(t=Le(e)))(i||e)}})()}static{this.\u0275prov=h({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),Pfe=(()=>{class e{constructor(){this._parserFormatter=f(oA),this._elRef=f(Me),this._vcRef=f(jn),this._ngZone=f(Be),this._calendar=f(Dp),this._dateAdapter=f(A0),this._document=f(Ce),this._changeDetector=f(it),this._injector=f(Te),this._config=f(tA),this._cRef=null,this._disabled=!1,this._elWithFocus=null,this._model=null,this._positioning=ka(),this._destroyCloseHandlers$=new me,this.autoClose=this._config.autoClose,this.placement=this._config.placement,this.popperOptions=this._config.popperOptions,this.container=this._config.container,this.positionTarget=this._config.positionTarget,this.dateSelect=new se,this.navigate=new se,this.closed=new se,this._onChange=t=>{},this._onTouched=()=>{}
8,this._validatorChange=()=>{}}get disabled(){return this._disabled}set disabled(t){this._disabled=t===""||t&&t!=="false",this.isOpen()&&this._cRef.instance.setDisabledState(this._disabled)}registerOnChange(t){this._onChange=t}registerOnTouched(t){this._onTouched=t}registerOnValidatorChange(t){this._validatorChange=t}setDisabledState(t){this.disabled=t}validate(t){let{value:n}=t;if(n!=null){let i=this._fromDateStruct(this._dateAdapter.fromModel(n));if(!i)return{ngbDate:{invalid:n}};if(this.minDate&&i.before(Jr.from(this.minDate)))return{ngbDate:{minDate:{minDate:this.minDate,actual:n}}};if(this.maxDate&&i.after(Jr.from(this.maxDate)))return{ngbDate:{maxDate:{maxDate:this.maxDate,actual:n}}}}return null}writeValue(t){this._model=this._fromDateStruct(this._dateAdapter.fromModel(t)),this._writeModelValue(this._model)}manualDateChange(t,n=!1){let i=t!==this._inputValue;i&&(this._inputValue=t,this._model=this._fromDateStruct(this._parserFormatter.parse(t))),(i||!n)&&this._onChange(this._model?this._dateAdapter.toModel(this._model):t===""?null:t),n&&this._model&&this._writeModelValue(this._model)}isOpen(){return!!this._cRef}open(){if(!this.isOpen()){this._cRef=this._vcRef.createComponent(iA,{injector:this._injector}),this._applyPopupStyling(this._cRef.location.nativeElement),this._applyDatepickerInputs(this._cRef),this._subscribeForDatepickerOutputs(this._cRef.instance),this._cRef.instance.ngOnInit(),this._cRef.instance.writeValue(this._dateAdapter.toModel(this._model)),this._cRef.instance.registerOnChange(n=>{this.writeValue(n),this._onChange(n),this._onTouched()}),this._cRef.changeDetectorRef.detectChanges(),this._cRef.instance.setDisabledState(this.disabled),this.container==="body"&&this._document.querySelector(this.container)?.appendChild(this._cRef.location.nativeElement),this._elWithFocus=this._document.activeElement,ip(this._ngZone,this._cRef.location.nativeElement,this.closed,!0),setTimeout(()=>this._cRef?.instance.focus());let t;if(In(this.positionTarget)?t=this._document.querySelector(this.positionTarget):this.positionTarget instanceof HTMLElement?t=this.positionTarget:t=this._elRef.nativeElement,this.positionTarget&&!t)throw new Error("ngbDatepicker could not find element declared in [positionTarget] to position against.");this._ngZone.runOutsideAngular(()=>{this._cRef&&t&&(this._positioning.createPopper({hostElement:t,targetElement:this._cRef.location.nativeElement,placement:this.placement,updatePopperOptions:n=>this.popperOptions(Va([0,2])(n))}),this._afterRenderRef=Ns({mixedReadWrite:()=>{this._positioning.update()}},{injector:this._injector}))}),this._setCloseHandlers()}}close(){if(this.isOpen()){this._cRef?.destroy(),this._cRef=null,this._positioning.destroy(),this._afterRenderRef?.destroy(),this._destroyCloseHandlers$.next(),this.closed.emit(),this._changeDetector.markForCheck();let t=this._elWithFocus;In(this.restoreFocus)?t=this._document.querySelector(this.restoreFocus):this.restoreFocus!==void 0&&(t=this.restoreFocus),t&&t.focus?t.focus():this._document.body.focus()}}toggle(){this.isOpen()?this.close():this.open()}navigateTo(t){this.isOpen()&&this._cRef.instance.navigateTo(t)}onBlur(){this._onTouched()}onFocus(){this._elWithFocus=this._elRef.nativeElement}ngOnChanges(t){if((t.minDate||t.maxDate)&&(this._validatorChange(),this.isOpen()&&(t.minDate&&this._cRef.setInput("minDate",this.minDate),t.maxDate&&this._cRef.setInput("maxDate",this.maxDate))),t.datepickerClass){let{currentValue:n,previousValue:i}=t.datepickerClass;this._applyPopupClass(n,i)}t.autoClose&&this.isOpen()&&this._setCloseHandlers()}ngOnDestroy(){this.close()}_applyDatepickerInputs(t){["contentTemplate","dayTemplate","dayTemplateData","displayMonths","firstDayOfWeek","footerTemplate","markDisabled","minDate","maxDate","navigation","outsideDays","showNavigation","showWeekNumbers","weekdays"].forEach(n=>{this[n]!==void 0&&t.setInput(n,this[n])}),t.setInput("startDate",this.startDate||this._model)}_applyPopupClass(t,n){let i=this._cRef?.location.nativeElement;i&&(t&&i.classList.add(t),n&&i.classList.remove(n))}_applyPopupStyling(t){t.classList.add("dropdown-menu","show"),this.container==="body"&&t.classList.add("ngb-dp-body"),this._applyPopupClass(this.datepickerClass)}_subscribeForDatepickerOutputs(t){t.navigate.subscribe(n=>this.navigate.emit(n)),t.dateSelect.subscribe(n=>{this.dateSelect.emit(n),(this.autoClose===!0||this.autoClose==="inside")&&this.close()})}_writeModelValue(t){let n=this._parserFormatter.format(t);this._inputValue=n,this._elRef.nativeElement.value=n,this.isOpen()&&(this._cRef.instance.writeValue(this._dateAdapter.toModel(t)),this._onTouched())}_fromDateStruct(t){let n=t?new Jr(t.year,t.month,t.day):null;return this._calendar.isValid(n)?n:null}_setCloseHandlers(){this._destroyCloseHandlers$.next(),Ba(this._ngZone,this._document,this.autoClose,()=>this.close(),this._destroyCloseHandlers$,[],[this._elRef.nativeElement,this._cRef.location.nativeElement])}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275dir=Y({type:e,selectors:[["input","ngbDatepicker",""]],hostVars:1,hostBindings:function(n,i){n&1&&Se("input",function(s){return i.manualDateChange(s.target.value)})("change",function(s){return i.manualDateChange(s.target.value,!0)})("focus",function(){return i.onFocus()})("blur",function(){return i.onBlur()}),n&2&&ke("disabled",i.disabled)},inputs:{autoClose:"autoClose",contentTemplate:"contentTemplate",datepickerClass:"datepickerClass",dayTemplate:"dayTemplate",dayTemplateData:"dayTemplateData",displayMonths:"displayMonths",firstDayOfWeek:"firstDayOfWeek",footerTemplate:"footerTemplate",markDisabled:"markDisabled",minDate:"minDate",maxDate:"maxDate",navigation:"navigation",outsideDays:"outsideDays",placement:"placement",popperOptions:"popperOptions",restoreFocus:"restoreFocus",showWeekNumbers:"showWeekNumbers",startDate:"startDate",container:"container",positionTarget:"positionTarget",weekdays:"weekdays",disabled:"disabled"},outputs:{dateSelect:"dateSelect",navigate:"navigate",closed:"closed"},exportAs:["ngbDatepicker"],features:[wt([{provide:mn,useExisting:zt(()=>e),multi:!0},{provide:Co,useExisting:zt(()=>e),multi:!0},{provide:w0,useExisting:tA}]),Ve]})}}return e})();var kfe=new Date(1882,10,12),jfe=new Date(2174,10,25);var Ufe=1e3*60*60*24;var O0=1080,nz=24*O0,iz=12*O0+793,Bfe=29*nz+iz,Vfe=11*O0+204;var M0=(()=>{class e{static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275mod=G({type:e})}static{this.\u0275inj=V({})}}return e})();var R0=(()=>{class e{static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275mod=G({type:e})}static{this.\u0275inj=V({})}}return e})();var oz=["dialog"],sz=["*"],az=(()=>{class e{constructor(){this._ngbConfig=f(Kr),this.backdrop=!0,this.fullscreen=!1,this.keyboard=!0,this.role="dialog"}get animation(){return this._animation??this._ngbConfig.animation}set animation(t){this._animation=t}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=h({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),cz=["animation","backdropClass"],lz=(()=>{class e{constructor(){this._nativeElement=f(Me).nativeElement,this._zone=f(Be),this._injector=f(Te),this._cdRef=f(it)}ngOnInit(){Br({mixedReadWrite:()=>mr(this._zone,this._nativeElement,(t,n)=>{n&&ja(t),t.classList.add("show")},{animation:this.animation,runningTransition:"continue"})},{injector:this._injector})}hide(){return mr(this._zone,this._nativeElement,({classList:t})=>t.remove("show"),{animation:this.animation,runningTransition:"stop"})}updateOptions(t){cz.forEach(n=>
8{np(t[n])&&(this[n]=t[n])}),this._cdRef.markForCheck()}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=Ge({type:e,selectors:[["ngb-modal-backdrop"]],hostAttrs:[2,"z-index","1055"],hostVars:6,hostBindings:function(n,i){n&2&&(Fr("modal-backdrop"+(i.backdropClass?" "+i.backdropClass:"")),ce("show",!i.animation)("fade",i.animation))},inputs:{animation:"animation",backdropClass:"backdropClass"},decls:0,vars:0,template:function(n,i){},encapsulation:2})}}return e})(),Cp=class{update(r){}close(r){}dismiss(r){}},I0=class{update(r){this._windowCmptRef.instance.updateOptions(r),this._backdropCmptRef&&this._backdropCmptRef.instance&&this._backdropCmptRef.instance.updateOptions(r)}get componentInstance(){if(this._contentRef&&this._contentRef.componentRef)return this._contentRef.componentRef.instance}get closed(){return this._closed.asObservable().pipe(We(this._hidden))}get dismissed(){return this._dismissed.asObservable().pipe(We(this._hidden))}get hidden(){return this._hidden.asObservable()}get shown(){return this._windowCmptRef.instance.shown.asObservable()}constructor(r,t,n,i){this._windowCmptRef=r,this._contentRef=t,this._backdropCmptRef=n,this._beforeDismiss=i,this._closed=new me,this._dismissed=new me,this._hidden=new me,r.instance.dismissEvent.subscribe(o=>{this.dismiss(o)}),this.result=new Promise((o,s)=>{this._resolve=o,this._reject=s}),this.result.then(null,()=>{})}close(r){this._windowCmptRef&&(this._closed.next(r),this._resolve(r),this._removeModalElements())}_dismiss(r){this._dismissed.next(r),this._reject(r),this._removeModalElements()}dismiss(r){if(this._windowCmptRef)if(!this._beforeDismiss)this._dismiss(r);else{let t=this._beforeDismiss();mw(t)?t.then(n=>{n!==!1&&this._dismiss(r)},()=>{}):t!==!1&&this._dismiss(r)}}_removeModalElements(){let r=this._windowCmptRef.instance.hide(),t=this._backdropCmptRef?this._backdropCmptRef.instance.hide():_(void 0);r.subscribe(()=>{let{nativeElement:n}=this._windowCmptRef.location;n.parentNode.removeChild(n),this._windowCmptRef.destroy(),this._contentRef?.viewRef?.destroy(),this._windowCmptRef=null,this._contentRef=null}),t.subscribe(()=>{if(this._backdropCmptRef){let{nativeElement:n}=this._backdropCmptRef.location;n.parentNode.removeChild(n),this._backdropCmptRef.destroy(),this._backdropCmptRef=null}}),Bu(r,t).subscribe(()=>{this._hidden.next(),this._hidden.complete()})}},x0=(function(e){return e[e.BACKDROP_CLICK=0]="BACKDROP_CLICK",e[e.ESC=1]="ESC",e})(x0||{}),uz=["animation","ariaLabelledBy","ariaDescribedBy","backdrop","centered","fullscreen","keyboard","role","scrollable","size","windowClass","modalDialogClass"],dz=(()=>{class e{constructor(){this._document=f(Ce),this._elRef=f(Me),this._zone=f(Be),this._injector=f(Te),this._cdRef=f(it),this._closed$=new me,this._elWithFocus=null,this.backdrop=!0,this.keyboard=!0,this.role="dialog",this.dismissEvent=new se,this.shown=new me,this.hidden=new me}get fullscreenClass(){return this.fullscreen===!0?" modal-fullscreen":In(this.fullscreen)?` modal-fullscreen-${this.fullscreen}-down`:""}dismiss(t){this.dismissEvent.emit(t)}ngOnInit(){this._elWithFocus=this._document.activeElement,Br({mixedReadWrite:()=>this._show()},{injector:this._injector})}ngOnDestroy(){this._disableEventHandling()}hide(){let{nativeElement:t}=this._elRef,n={animation:this.animation,runningTransition:"stop"},i=mr(this._zone,t,()=>t.classList.remove("show"),n),o=mr(this._zone,this._dialogEl.nativeElement,()=>{},n),s=Bu(i,o);return s.subscribe(()=>{this.hidden.next(),this.hidden.complete()}),this._disableEventHandling(),this._restoreFocus(),s}updateOptions(t){uz.forEach(n=>{np(t[n])&&(this[n]=t[n])}),this._cdRef.markForCheck()}_show(){let t={animation:this.animation,runningTransition:"continue"},n=mr(this._zone,this._elRef.nativeElement,(o,s)=>{s&&ja(o),o.classList.add("show")},t),i=mr(this._zone,this._dialogEl.nativeElement,()=>{},t);Bu(n,i).subscribe(()=>{this.shown.next(),this.shown.complete()}),this._enableEventHandling(),this._setFocus()}_enableEventHandling(){let{nativeElement:t}=this._elRef;this._zone.runOutsideAngular(()=>{vr(t,"keydown").pipe(We(this._closed$),q(i=>i.key==="Escape")).subscribe(i=>{this.keyboard?requestAnimationFrame(()=>{i.defaultPrevented||this._zone.run(()=>this.dismiss(x0.ESC))}):this.backdrop==="static"&&this._bumpBackdrop()});let n=!1;vr(this._dialogEl.nativeElement,"mousedown").pipe(We(this._closed$),ge(()=>n=!1),P(()=>vr(t,"mouseup").pipe(We(this._closed$),Oe(1))),q(({target:i})=>t===i)).subscribe(()=>{n=!0}),vr(t,"click").pipe(We(this._closed$)).subscribe(({target:i})=>{t===i&&(this.backdrop==="static"?this._bumpBackdrop():this.backdrop===!0&&!n&&this._zone.run(()=>this.dismiss(x0.BACKDROP_CLICK))),n=!1})})}_disableEventHandling(){this._closed$.next()}_setFocus(){let{nativeElement:t}=this._elRef;if(!t.contains(document.activeElement)){let n=t.querySelector("[ngbAutofocus]"),i=l0(t)[0];(n||i||t).focus()}}_restoreFocus(){let t=this._document.body,n=this._elWithFocus,i;n&&n.focus&&t.contains(n)?i=n:i=t,this._zone.runOutsideAngular(()=>{setTimeout(()=>i.focus()),this._elWithFocus=null})}_bumpBackdrop(){this.backdrop==="static"&&mr(this._zone,this._elRef.nativeElement,({classList:t})=>(t.add("modal-static"),()=>t.remove("modal-static")),{animation:this.animation,runningTransition:"continue"})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=Ge({type:e,selectors:[["ngb-modal-window"]],viewQuery:function(n,i){if
8(n&1&&Uo(oz,7),n&2){let o;Xe(o=et())&&(i._dialogEl=o.first)}},hostAttrs:["tabindex","-1"],hostVars:8,hostBindings:function(n,i){n&2&&(Ke("aria-modal",!0)("aria-labelledby",i.ariaLabelledBy)("aria-describedby",i.ariaDescribedBy)("role",i.role),Fr("modal d-block"+(i.windowClass?" "+i.windowClass:"")),ce("fade",i.animation))},inputs:{animation:"animation",ariaLabelledBy:"ariaLabelledBy",ariaDescribedBy:"ariaDescribedBy",backdrop:"backdrop",centered:"centered",fullscreen:"fullscreen",keyboard:"keyboard",role:"role",scrollable:"scrollable",size:"size",windowClass:"windowClass",modalDialogClass:"modalDialogClass"},outputs:{dismissEvent:"dismiss"},ngContentSelectors:sz,decls:4,vars:2,consts:[["dialog",""],["role","document"],[1,"modal-content"]],template:function(n,i){n&1&&(sn(),Re(0,"div",1,0)(2,"div",2),an(3),$e()()),n&2&&Fr("modal-dialog"+(i.size?" modal-"+i.size:"")+(i.centered?" modal-dialog-centered":"")+i.fullscreenClass+(i.scrollable?" modal-dialog-scrollable":"")+(i.modalDialogClass?" "+i.modalDialogClass:""))},styles:[`ngb-modal-window .component-host-scrollable{display:flex;flex-direction:column;overflow:hidden}
9`],encapsulation:2})}}return e})(),fz=(()=>{class e{constructor(){this._applicationRef=f(_n),this._injector=f(Te),this._environmentInjector=f(Mr),this._document=f(Ce),this._scrollBar=f(yw),this._activeWindowCmptHasChanged=new me,this._ariaHiddenValues=new Map,this._scrollBarRestoreFn=null,this._modalRefs=[],this._windowCmpts=[],this._activeInstances=new se;let t=f(Be);this._activeWindowCmptHasChanged.subscribe(()=>{if(this._windowCmpts.length){let n=this._windowCmpts[this._windowCmpts.length-1];ip(t,n.location.nativeElement,this._activeWindowCmptHasChanged),this._revertAriaHidden(),this._setAriaHidden(n.location.nativeElement)}})}_restoreScrollBar(){let t=this._scrollBarRestoreFn;t&&(this._scrollBarRestoreFn=null,t())}_hideScrollBar(){this._scrollBarRestoreFn||(this._scrollBarRestoreFn=this._scrollBar.hide())}open(t,n,i){let o=i.container instanceof HTMLElement?i.container:np(i.container)?this._document.querySelector(i.container):this._document.body;if(!o)throw new Error(`The specified modal container "${i.container||"body"}" was not found in the DOM.`);this._hideScrollBar();let s=new Cp;t=i.injector||t;let a=t.get(Mr,null)||this._environmentInjector,c=this._getContentRef(t,a,n,s,i),l=i.backdrop!==!1?this._attachBackdrop(o):void 0,d=this._attachWindowComponent(o,c.nodes),m=new I0(d,c,l,i.beforeDismiss);return this._registerModalRef(m),this._registerWindowCmpt(d),m.hidden.pipe(Oe(1)).subscribe(()=>Promise.resolve(!0).then(()=>{this._modalRefs.length||(this._document.body.classList.remove("modal-open"),this._restoreScrollBar(),this._revertAriaHidden())})),s.close=y=>{m.close(y)},s.dismiss=y=>{m.dismiss(y)},s.update=y=>{m.update(y)},m.update(i),this._modalRefs.length===1&&this._document.body.classList.add("modal-open"),l&&l.instance&&l.changeDetectorRef.detectChanges(),d.changeDetectorRef.detectChanges(),m}get activeInstances(){return this._activeInstances}dismissAll(t){this._modalRefs.forEach(n=>n.dismiss(t))}hasOpenModals(){return this._modalRefs.length>0}_attachBackdrop(t){let n=Xu(lz,{environmentInjector:this._applicationRef.injector,elementInjector:this._injector});return this._applicationRef.attachView(n.hostView),t.appendChild(n.location.nativeElement),n}_attachWindowComponent(t,n){let i=Xu(dz,{environmentInjector:this._applicationRef.injector,elementInjector:this._injector,projectableNodes:n});return this._applicationRef.attachView(i.hostView),t.appendChild(i.location.nativeElement),i}_getContentRef(t,n,i,o,s){return i?i instanceof Tt?this._createFromTemplateRef(i,o):In(i)?this._createFromString(i):this._createFromComponent(t,n,i,o,s):new ui([])}_createFromTemplateRef(t,n){let i={$implicit:n,close(s){n.close(s)},dismiss(s){n.dismiss(s)}},o=t.createEmbeddedView(i);return this._applicationRef.attachView(o),new ui([o.rootNodes],o)}_createFromString(t){let n=this._document.createTextNode(`${t}`);return new ui([[n]])}_createFromComponent(t,n,i,o,s){let a=Te.create({providers:[{provide:Cp,useValue:o}],parent:t}),c=Xu(i,{environmentInjector:n,elementInjector:a}),l=c.location.nativeElement;return s.scrollable&&l.classList.add("component-host-scrollable"),this._applicationRef.attachView(c.hostView),new ui([[l]],c.hostView,c)}_setAriaHidden(t){let n=t.parentElement;
9n&&t!==this._document.body&&(Array.from(n.children).forEach(i=>{i!==t&&i.nodeName!=="SCRIPT"&&(this._ariaHiddenValues.set(i,i.getAttribute("aria-hidden")),i.setAttribute("aria-hidden","true"))}),this._setAriaHidden(n))}_revertAriaHidden(){this._ariaHiddenValues.forEach((t,n)=>{t?n.setAttribute("aria-hidden",t):n.removeAttribute("aria-hidden")}),this._ariaHiddenValues.clear()}_registerModalRef(t){let n=()=>{let i=this._modalRefs.indexOf(t);i>-1&&(this._modalRefs.splice(i,1),this._activeInstances.emit(this._modalRefs))};this._modalRefs.push(t),this._activeInstances.emit(this._modalRefs),t.result.then(n,n)}_registerWindowCmpt(t){this._windowCmpts.push(t),this._activeWindowCmptHasChanged.next(),t.onDestroy(()=>{let n=this._windowCmpts.indexOf(t);n>-1&&(this._windowCmpts.splice(n,1),this._activeWindowCmptHasChanged.next())})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=h({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),pz=(()=>{class e{constructor(){this._injector=f(Te),this._modalStack=f(fz),this._config=f(az)}open(t,n={}){let i=u(g(u({},this._config),{animation:this._config.animation}),n);return this._modalStack.open(this._injector,t,i)}get activeInstances(){return this._modalStack.activeInstances}dismissAll(t){this._modalStack.dismissAll(t)}hasOpenModals(){return this._modalStack.hasOpenModals()}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=h({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),N0=(()=>{class e{static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275mod=G({type:e})}static{this.\u0275inj=V({providers:[pz]})}}return e})();var L0=(()=>{class e{static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275mod=G({type:e})}static{this.\u0275inj=V({})}}return e})();var hz=(e,r,t)=>({$implicit:e,pages:r,disabled:t}),mz=e=>({disabled:!0,currentPage:e}),gz=(e,r,t)=>({disabled:e,$implicit:r,currentPage:t}),F0=(e,r)=>({disabled:e,currentPage:r}),yz=e=>({disabled:e});function vz(e,r){e&1&&(ye(0,"span",13),Nr(1,7),_e())}function _z(e,r){e&1&&(ye(0,"span",13),Nr(1,8),_e())}function Sz(e,r){e&1&&(ye(0,"span",13),Nr(1,9),_e())}function Ez(e,r){e&1&&(ye(0,"span",13),Nr(1,10),_e())}function bz(e,r){e&1&&Et(0,"...")}function Dz(e,r){if(e&1&&Et(0),e&2){let t=r.$implicit;tr(t)}}function Cz(e,r){}function Tz(e,r){if(e&1&&(ye(0,"a",16),St(1,Cz,0,0,"ng-template",12),_e()),e&2){let t=$(2).$implicit,n=$(),i=Sr(9);H(),Qe("ngTemplateOutlet",(n.tplEllipsis==null?null:n.tplEllipsis.templateRef)||i)("ngTemplateOutletContext",Ps(2,mz,t))}}function wz(e,r){}function Az(e,r){if(e&1){let t=nt();ye(0,"a",18),Se("click",function(i){Fe(t);let o=$().$implicit;return $(2).selectPage(o),Pe(i.preventDefault())}),St(1,wz,0,0,"ng-template",12),_e()}if(e&2){let t=$().$implicit,n=$(),i=n.$implicit,o=n.disabled,s=$(),a=Sr(11);Ke("tabindex",o?"-1":null)("aria-disabled",o?"true":null)("aria-current",t===i?"page":null),H(),Qe("ngTemplateOutlet",(s.tplNumber==null?null:s.tplNumber.templateRef)||a)("ngTemplateOutletContext",Qu(5,gz,o,t,i))}}function Oz(e,r){if(e&1&&(ye(0,"li",15),we(1,Tz,2,4,"a",16)(2,Az,2,9,"a",17),_e()),e&2){let t=r.$implicit,n=$(),i=n.$implicit,o=n.disabled,s=$();ce("active",t===i)("disabled",s.isEllipsis(t)||o),H(),Ae(s.isEllipsis(t)?1:2)}}function Mz(e,r){if(e&1&&Ir(0,Oz,3,5,"li",14,Dc),e&2){let t=r.pages;xr(t)}}function Rz(e,r){}function Iz(e,r){if(e&1){let t=nt();ye(0,"li",15)(1,"a",19),Se("click",function(i){return Fe(t),$().selectPage(1),Pe(i.preventDefault())}),St(2,Rz,0,0,"ng-template",12),_e()()}if(e&2){let t=$(),n=Sr(1);ce("disabled",t.previousDisabled()),H(),Ke("tabindex",t.previousDisabled()?"-1":null)("aria-disabled",t.previousDisabled()?"true":null),H(),Qe("ngTemplateOutlet",(t.tplFirst==null?null:t.tplFirst.templateRef)||n)("ngTemplateOutletContext",Zu(6,F0,t.previousDisabled(),t.page))}}function xz(e,r){}function Nz(e,r){if(e&1){let t=nt();ye(0,"li",15)(1,"a",20),Se("click",function(i){Fe(t);let o=$();return o.selectPage(o.page-1),Pe(i.preventDefault())}),St(2,xz,0,0,"ng-template",12),_e()()}if(e&2){let t=$(),n=Sr(3);ce("disabled",t.previousDisabled()),H(),Ke("tabindex",t.previousDisabled()?"-1":null)("aria-disabled",t.previousDisabled()?"true":null),H(),Qe("ngTemplateOutlet",(t.tplPrevious==null?null:t.tplPrevious.templateRef)||n)("ngTemplateOutletContext",Ps(6,yz,t.previousDisabled()))}}function Lz(e,r){}function Fz(e,r){}function Pz(e,r){if(e&1){let t=nt();ye(0,"li",15)(1,"a",21),Se("click",function(i){Fe(t);let o=$();return o.selectPage(o.page+1),Pe(i.preventDefault())}),St(2,Fz,0,0,"ng-template",12),_e()()}if(e&2){let t=$(),n=Sr(5);ce("disabled",t.nextDisabled()),H(),Ke("tabindex",t.nextDisabled()?"-1":null)("aria-disabled",t.nextDisabled()?"true":null),H(),Qe("ngTemplateOutlet",(t.tplNext==null?null:t.tplNext.templateRef)||n)("ngTemplateOutletContext",Zu(6,F0,t.nextDisabled(),t.page))}}function kz(e,r){}function jz(e,r){if(e&1){let t=nt();ye(0,"li",15)(1,"a",22),Se("click",function(i){Fe(t);let o=$();return o.selectPage(o.pageCount),Pe(i.preventDefault())}),St(2,kz,0,0,"ng-template",12),_e()()}if(e&2){let t=$(),n=Sr(7);ce("disabled",t.nextDisabled()),H(),Ke("tabindex",t.nextDisabled()?"-1":null)("aria-disabled",t.nextDisabled()?"true":null),H(),Qe("ngTemplateOutlet",(t.tplLast==null?null:t.tplLast.templateRef)||n)("ngTemplateOutletContext",Zu(6,F0,t.nextDisabled(),t.page))}}var Uz=(()=>{class e{constructor(){this.disabled=!1,this.boundaryLinks=!1,this.directionLinks=!0,this.ellipses=!0,this.maxSize=0,this.pageSize=10,this.rotate=!1}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=h({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),Bz=(()=>{class e{constructor(){this.templateRef=f(Tt)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275dir=Y({type:e,selectors:[["ng-template","ngbPaginationEllipsis",""]]})}}return e})(),Vz=(()=>{class e{constructor(){this.templateRef=f(Tt)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275dir=Y({type:e,selectors:[["ng-template","ngbPaginationFirst",""]]})}}return e})(),Gz=(()=>{class e{constructor(){this.templateRef=f(Tt)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275dir=Y({type:e,selectors:[["ng-template","ngbPaginationLast",""]]})}}return e})(),$z=(()=>{class e{constructor(){this.templateRef=f(Tt)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275dir=Y({type:e,selectors:[["ng-template","ngbPaginationNext",""]]})}}return e})(),Hz=(()=>{class e{constructor(){this.templateRef=f(Tt)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275dir=Y({type:e,selectors:[["ng-template","ngbPaginationNumber",""]]})}}return e})(),zz=(()=>{class e{constructor(){this.templateRef=f(Tt)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275dir=Y({type:e,selectors:[["ng-template","ngbPaginationPrevious",""]]})}}return e})(),Wz=(()=>{class e{constructor(){this.templateRef=f(Tt)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275dir=Y({type:e,selectors:[["ng-template","ngbPaginationPages",""]]})}}return e})(),ype=(()=>{class e{constructor(){this._config=f(Uz),this.pageCount=0,this.pages=[],this.disabled=this._config.disabled,this.boundaryLinks=this._config.boun
9daryLinks,this.directionLinks=this._config.directionLinks,this.ellipses=this._config.ellipses,this.rotate=this._config.rotate,this.maxSize=this._config.maxSize,this.page=1,this.pageSize=this._config.pageSize,this.pageChange=new se(!0),this.size=this._config.size}hasPrevious(){return this.page>1}hasNext(){return this.page<this.pageCount}nextDisabled(){return!this.hasNext()||this.disabled}previousDisabled(){return!this.hasPrevious()||this.disabled}selectPage(t){this._updatePages(t)}ngOnChanges(t){this._updatePages(this.page)}isEllipsis(t){return t===-1}_applyEllipses(t,n){this.ellipses&&(t>0&&(t>2?this.pages.unshift(-1):t===2&&this.pages.unshift(2),this.pages.unshift(1)),n<this.pageCount&&(n<this.pageCount-2?this.pages.push(-1):n===this.pageCount-2&&this.pages.push(this.pageCount-1),this.pages.push(this.pageCount)))}_applyRotation(){let t=0,n=this.pageCount,i=Math.floor(this.maxSize/2),o=this.maxSize%2===0?i-1:i;return this.page<=i?n=this.maxSize:this.pageCount-this.page<i?t=this.pageCount-this.maxSize:(t=this.page-i-1,n=this.page+o),[t,n]}_applyPagination(){let n=(Math.ceil(this.page/this.maxSize)-1)*this.maxSize,i=n+this.maxSize;return[n,i]}_setPageInRange(t){let n=this.page;this.page=hw(t,this.pageCount,1),this.page!==n&&ft(this.collectionSize)&&this.pageChange.emit(this.page)}_updatePages(t){this.pageCount=Math.ceil(this.collectionSize/this.pageSize),ft(this.pageCount)||(this.pageCount=0),this.pages.length=0;for(let n=1;n<=this.pageCount;n++)this.pages.push(n);if(this._setPageInRange(t),this.maxSize>0&&this.pageCount>this.maxSize){let n=0,i=this.pageCount;this.rotate?[n,i]=this._applyRotation():[n,i]=this._applyPagination(),this.pages=this.pages.slice(n,i),this._applyEllipses(n,i)}}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=Ge({type:e,selectors:[["ngb-pagination"]],contentQueries:function(n,i,o){if(n&1&&Lr(o,Bz,5)(o,Vz,5)(o,Gz,5)(o,$z,5)(o,Hz,5)(o,zz,5)(o,Wz,5),n&2){let s;Xe(s=et())&&(i.tplEllipsis=s.first),Xe(s=et())&&(i.tplFirst=s.first),Xe(s=et())&&(i.tplLast=s.first),Xe(s=et())&&(i.tplNext=s.first),Xe(s=et())&&(i.tplNumber=s.first),Xe(s=et())&&(i.tplPrevious=s.first),Xe(s=et())&&(i.tplPages=s.first)}},hostAttrs:["role","navigation"],inputs:{disabled:"disabled",boundaryLinks:"boundaryLinks",directionLinks:"directionLinks",ellipses:"ellipses",rotate:"rotate",collectionSize:"collectionSize",maxSize:"maxSize",page:"page",pageSize:"pageSize",size:"size"},outputs:{pageChange:"pageChange"},features:[Ve],decls:20,vars:12,consts:()=>{let t;t=$localize`:@@ngb.pagination.first:««`;let n;n=$localize`:@@ngb.pagination.previous:«`;let i;i=$localize`:@@ngb.pagination.next:»`;let o;o=$localize`:@@ngb.pagination.last:»»`;let s;s=$localize`:@@ngb.pagination.first-aria:First`;let a;a=$localize`:@@ngb.pagination.previous-aria:Previous`;let c;c=$localize`:@@ngb.pagination.next-aria:Next`;let l;return l=$localize`:@@ngb.pagination.last-aria:Last`,[["first",""],["previous",""],["next",""],["last",""],["ellipsis",""],["defaultNumber",""],["defaultPages",""],t,n,i,o,[1,"page-item",3,"disabled"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["aria-hidden","true"],[1,"page-item",3,"active","disabled"],[1,"page-item"],["tabindex","-1","aria-disabled","true",1,"page-link"],["href","",1,"page-link"],["href","",1,"page-link",3,"click"],["aria-label",s,"href","",1,"page-link",3,"click"],["aria-label",a,"href","",1,"page-link",3,"click"],["aria-label",c,"href","",1,"page-link",3,"click"],["aria-label",l,"href","",1,"page-link",3,"click"]]},template:function(n,i){if(n&1&&(St(0,vz,2,0,"ng-template",null,0,pr)(2,_z,2,0,"ng-template",null,1,pr)(4,Sz,2,0,"ng-template",null,2,pr)(6,Ez,2,0,"ng-template",null,3,pr)(8,bz,1,0,"ng-template",null,4,pr)(10,Dz,1,1,"ng-template",null,5,pr)(12,Mz,2,0,"ng-template",null,6,pr),ye(14,"ul"),we(15,Iz,3,9,"li",11),we(16,Nz,3,8,"li",11),St(17,Lz,0,0,"ng-template",12),we(18,Pz,3,9,"li",11),we(19,jz,3,9,"li",11),_e()),n&2){let o=Sr(13);H(14),Fr("pagination"+(i.size?" pagination-"+i.size:"")),H(),Ae(i.boundaryLinks?15:-1),H(),Ae(i.directionLinks?16:-1),H(),Qe("ngTemplateOutlet",(i.tplPages==null?null:i.tplPages.templateRef)||o)("ngTemplateOutletContext",Qu(8,hz,i.page,i.pages,i.disabled)),H(),Ae(i.directionLinks?18:-1),H(),Ae(i.boundaryLinks?19:-1)}},dependencies:[ii],encapsulation:2,changeDetection:0})}}return e})();var P0=(()=>{class e{static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275mod=G({type:e})}static{this.\u0275inj=V({})}}return e})();var qz=["*"];function Yz(e,r){if(e&1&&Et(0),e&2){let t=$(2);tr(t.title)}}function Kz(e,r){}function Jz(e,r){if(e&1&&(ye(0,"h3",2),St(1,Yz,1,1,"ng-template",null,0,pr)(3,Kz,0,0,"ng-template",4),_e()),e&2){let t=Sr(2),n=$();H(3),Qe("ngTemplateOutlet",n.isTitleTemplate()?n.title:t)("ngTemplateOutletContext",n.context)}}var Zz=(()=>{class e{constructor(){this._ngbConfig=f(Kr),this.autoClose=!0,this.placement="auto",this.popperOptions=t=>t,this.triggers="click",this.disablePopover=!1,this.openDelay=0,this.closeDelay=0}get animation(){return this._animation??this._ngbConfig.animation}set animation(t){this._animation=t}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=h({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),Qz=0,Xz=(()=>{class e{isTitleTemplate(){return this.title instanceof Tt}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=Ge({type:e,selectors:[["ngb-popover-window"]],hostAttrs:["role","tooltip",2,"position","absolute"],hostVars:5,hostBindings:function(n,i){n&1&&Se("mouseenter",function(){return i.onMouseEnter()})("mouseleave",function(){return i.onMouseLeave()}),n&2&&(ke("id",i.id),Fr("popover"+(i.popoverClass?" "+i.popoverClass:"")),ce("fade",i.animation))},inputs:{animation:"animation",title:"title",id:"id",popoverClass:"popoverClass",context:"context",onMouseEnter:"onMouseEnter",onMouseLeave:"onMouseLeave"},ngContentSelectors:qz,decls:4,vars:1,consts:[["simpleTitle",""],["data-popper-arrow","",1,"popover-arrow"],[1,"popover-header"],[1,"popover-body"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(n,i){n&1&&(sn(),on(0,"div",1),we(1,Jz,4,2,"h3",2),ye(2,"div",3),an(3),_e()),n&2&&(H(),Ae(i.title?1:-1))},dependencies:[ii],encapsulation:2,changeDetection:0})}}return e})(),sA=(()=>{class e{constructor(){this._config=f(Zz),this.animation=this._config.animation,this.autoClose=this._config.autoClose,this.placement=this._config.placement,this.popperOptions=this._config.popperOptions,this.triggers=this._config.triggers,this.container=this._config.container,this.disablePopover=this._config.disablePopover,this.popoverClass=this._config.popoverClass,this.openDelay=this._config.openDelay,this.closeDelay=this._config.closeDelay,this.shown=new se,this.hidden=new se,this._nativeElement=f(Me).nativeElement,this._ngZone=f(Be),this._document=f(Ce),this._changeDetector=f(it),this._injector=f(Te),this._ngbPopoverWindowId=`ngb-popover-${Qz++}`,this._popupService=new Pa(Xz),this._windowRef=null,this._positioning=ka(),this._mouseEnterPopover=new me,this._mouseLeavePopover=new me,this._opening=!0,this._transitioning=!1}open(t){if(!this._opening&&this._transitioning&&(this._transitioning=!1,Ua(this._windowRef.location.nativeElement)),!this._windowRef&&!this._isDisabled()){let{windowRef:n,transition$:i}=this._popupService.open(this.ngbPopover,t??this.popoverContext,this.animation);this._opening=!0,this._transitioning=!0,this._windowRef=n,this._windowRef.setInput("animation",this.animation),this._windowRef.setInput("title",this.popoverTitle),this._windowRef.setInput("context",t??this.popoverContext),this._windowRef.setInput("popoverClass",this.popoverClass),this._windowRef.setInput("id",this._ngbPopoverWindowId),this._windowRef.setInput("onMouseEnter",()=>this._mouseEnterPopover.next()),this._windowRef.setInput("onMouseLeave",()=>this._mouseLeavePopover.next()),this._getPositionTargetElement().setAttribute("aria-describedby",this._ngbPopoverWindowId),this.container==="body"&&this._document.body.appendChild(this._windowRef.location.nativeElement),this._windowRef.changeDetectorRef.detectChanges(),this._windowRef.changeDetectorRef.markForCheck(),this._ngZone.runOutsideAngular(()=>{this._positioning.createPopper({hostElement:this._getPositionTargetElement(),targetElement:this._windowRef.location.nativeElement,placement:this.placement,baseClass:"bs-popover",updatePopperOptions:o=>this.popperOptions(Va([0,8])(o))}),Promise.resolve().then(()=>
9{this._positioning.update()}),this._afterRenderRef=Ns({mixedReadWrite:()=>{this._positioning.update()}},{injector:this._injector})}),Ba(this._ngZone,this._document,this.autoClose,()=>this.close(),this.hidden,[this._windowRef.location.nativeElement]),i.subscribe(()=>{this._transitioning&&(this._transitioning=!1,this.shown.emit())})}}close(t=this.animation){this._opening&&this._transitioning&&(this._transitioning=!1,Ua(this._windowRef.location.nativeElement)),this._windowRef&&(this._getPositionTargetElement().removeAttribute("aria-describedby"),this._opening=!1,this._transitioning=!0,this._popupService.close(t).subscribe(()=>{this._windowRef=null,this._positioning.destroy(),this._afterRenderRef?.destroy(),this._transitioning&&(this._transitioning=!1,this.hidden.emit()),this._changeDetector.markForCheck()}))}toggle(){this._windowRef?this.close():this.open()}isOpen(){return this._windowRef!=null}ngOnInit(){this._unregisterListenersFn=op(this._nativeElement,this.triggers,this.isOpen.bind(this),this.open.bind(this),this.close.bind(this),+this.openDelay,+this.closeDelay,this._mouseEnterPopover,this._mouseLeavePopover)}ngOnChanges({ngbPopover:t,popoverTitle:n,disablePopover:i,popoverClass:o}){o&&this.isOpen()&&this._windowRef.setInput("popoverClass",o.currentValue),(t||n||i)&&this._isDisabled()&&this.close()}ngOnDestroy(){this.close(!1),this._unregisterListenersFn?.()}_isDisabled(){return this.disablePopover?!0:!this.ngbPopover&&!this.popoverTitle}_getPositionTargetElement(){return(In(this.positionTarget)?this._document.querySelector(this.positionTarget):this.positionTarget)||this._nativeElement}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275dir=Y({type:e,selectors:[["","ngbPopover",""]],inputs:{animation:"animation",autoClose:"autoClose",ngbPopover:"ngbPopover",popoverTitle:"popoverTitle",placement:"placement",popperOptions:"popperOptions",triggers:"triggers",positionTarget:"positionTarget",container:"container",disablePopover:"disablePopover",popoverClass:"popoverClass",popoverContext:"popoverContext",openDelay:"openDelay",closeDelay:"closeDelay"},outputs:{shown:"shown",hidden:"hidden"},exportAs:["ngbPopover"],features:[Ve]})}}return e})(),k0=(()=>{class e{static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275mod=G({type:e})}static{this.\u0275inj=V({})}}return e})();var j0=(()=>{class e{static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275mod=G({type:e})}static{this.\u0275inj=V({})}}return e})();var U0=(()=>{class e{static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275mod=G({type:e})}static{this.\u0275inj=V({})}}return e})();var B0=(()=>{class e{static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275mod=G({type:e})}static{this.\u0275inj=V({})}}return e})();function eW(e,r){if(e&1){let t=nt();Re(0,"button",15),_r("click",function(){Fe(t);let i=$();return Pe(i.changeHour(i.hourStep))}),ni(1,"span",16),Re(2,"span",17),Nr(3,0),$e()()}if(e&2){let t=$();ce("btn-sm",t.isSmallSize)("btn-lg",t.isLargeSize)("disabled",t.disabled),ke("disabled",t.disabled)}}function tW(e,r){if(e&1){let t=nt();Re(0,"button",15),_r("click",function(){Fe(t);let i=$();return Pe(i.changeHour(-i.hourStep))}),ni(1,"span",18),Re(2,"span",17),Nr(3,1),$e()()}if(e&2){let t=$();ce("btn-sm",t.isSmallSize)("btn-lg",t.isLargeSize)("disabled",t.disabled),ke("disabled",t.disabled)}}function rW(e,r){if(e&1){let t=nt();Re(0,"button",15),_r("click",function(){Fe(t);let i=$();return Pe(i.changeMinute(i.minuteStep))}),ni(1,"span",16),Re(2,"span",17),Nr(3,2),$e()()}if(e&2){let t=$();ce("btn-sm",t.isSmallSize)("btn-lg",t.isLargeSize)("disabled",t.disabled),ke("disabled",t.disabled)}}function nW(e,r){if(e&1){let t=nt();Re(0,"button",15),_r("click",function(){Fe(t);let i=$();return Pe(i.changeMinute(-i.minuteStep))}),ni(1,"span",18),Re(2,"span",17),Nr(3,3),$e()()}if(e&2){let t=$();ce("btn-sm",t.isSmallSize)("btn-lg",t.isLargeSize)("disabled",t.disabled),ke("disabled",t.disabled)}}function iW(e,r){if(e&1){let t=nt();Re(0,"button",15),_r("click",function(){Fe(t);let i=$(2);return Pe(i.changeSecond(i.secondStep))}),ni(1,"span",16),Re(2,"span",17),Nr(3,4),$e()()}if(e&2){let t=$(2);
9ce("btn-sm",t.isSmallSize)("btn-lg",t.isLargeSize)("disabled",t.disabled),ke("disabled",t.disabled)}}function oW(e,r){if(e&1){let t=nt();Re(0,"button",15),_r("click",function(){Fe(t);let i=$(2);return Pe(i.changeSecond(-i.secondStep))}),ni(1,"span",18),Re(2,"span",17),Nr(3,5),$e()()}if(e&2){let t=$(2);ce("btn-sm",t.isSmallSize)("btn-lg",t.isLargeSize)("disabled",t.disabled),ke("disabled",t.disabled)}}function sW(e,r){if(e&1){let t=nt();Re(0,"div",12),Et(1,":"),$e(),Re(2,"div",19),we(3,iW,4,7,"button",10),Re(4,"input",20),_r("change",function(i){Fe(t);let o=$();return Pe(o.updateSecond(i.target.value))})("blur",function(){Fe(t);let i=$();return Pe(i.handleBlur())})("input",function(i){Fe(t);let o=$();return Pe(o.formatInput(i.target))})("keydown.ArrowUp",function(i){Fe(t);let o=$();return o.changeSecond(o.secondStep),Pe(i.preventDefault())})("keydown.ArrowDown",function(i){Fe(t);let o=$();return o.changeSecond(-o.secondStep),Pe(i.preventDefault())}),$e(),we(5,oW,4,7,"button",10),$e()}if(e&2){let t=$();H(3),Ae(t.spinners?3:-1),H(),ce("form-control-sm",t.isSmallSize)("form-control-lg",t.isLargeSize),ke("value",t.formatMinSec(t.model==null?null:t.model.second))("readOnly",t.readonlyInputs)("disabled",t.disabled),H(),Ae(t.spinners?5:-1)}}function aW(e,r){if(e&1&&(Wu(0),Nr(1,6),qu()),e&2){let t=$(2);H(),Yu(t.i18n.getAfternoonPeriod()),Ku(1)}}function cW(e,r){if(e&1&&(Wu(0),Et(1),qu()),e&2){let t=$(2);H(),tr(t.i18n.getMorningPeriod())}}function lW(e,r){if(e&1){let t=nt();ni(0,"div",12),Re(1,"div",21)(2,"button",22),_r("click",function(){Fe(t);let i=$();return Pe(i.toggleMeridian())}),we(3,aW,2,1,"ng-container")(4,cW,2,1,"ng-container"),$e()()}if(e&2){let t=$();H(2),ce("btn-sm",t.isSmallSize)("btn-lg",t.isLargeSize)("disabled",t.disabled),ke("disabled",t.disabled),H(),Ae(t.model&&t.model.hour>=12?3:4)}}var Tp=class{constructor(r,t,n){this.hour=Qt(r),this.minute=Qt(t),this.second=Qt(n)}changeHour(r=1){this.updateHour((isNaN(this.hour)?0:this.hour)+r)}updateHour(r){ft(r)?this.hour=(r<0?24+r:r)%24:this.hour=NaN}changeMinute(r=1){this.updateMinute((isNaN(this.minute)?0:this.minute)+r)}updateMinute(r){ft(r)?(this.minute=r%60<0?60+r%60:r%60,this.changeHour(Math.floor(r/60))):this.minute=NaN}changeSecond(r=1){this.updateSecond((isNaN(this.second)?0:this.second)+r)}updateSecond(r){ft(r)?(this.second=r<0?60+r%60:r%60,this.changeMinute(Math.floor(r/60))):this.second=NaN}isValid(r=!0){return ft(this.hour)&&ft(this.minute)&&(r?ft(this.second):!0)}toString(){return`${this.hour||0}:${this.minute||0}:${this.second||0}`}},uW=(()=>{class e{constructor(){this.meridian=!1,this.spinners=!0,this.seconds=!1,this.hourStep=1,this.minuteStep=1,this.secondStep=1,this.disabled=!1,this.readonlyInputs=!1,this.size="medium"}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=h({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();function dW(){return new fW}var aA=(()=>{class e{static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=h({token:e,factory:()=>dW(),providedIn:"root"})}}return e})(),fW=(()=>{class e extends aA{fromModel(t){return t&&pt(t.hour)&&pt(t.minute)?{hour:t.hour,minute:t.minute,second:pt(t.second)?t.second:null}:null}toModel(t){return t&&pt(t.hour)&&pt(t.minute)?{hour:t.hour,minute:t.minute,second:pt(t.second)?t.second:null}:null}static{this.\u0275fac=(()=>{let t;return function(i){return(t||(t=Le(e)))(i||e)}})()}static{this.\u0275prov=h({token:e,factory:e.\u0275fac})}}return e})(),cA=(()=>{class e{static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=h({token:e,factory:()=>new pW,providedIn:"root"})}}return e})(),pW=(()=>{class e extends cA{constructor(){super(...arguments),this._locale=f(ks),this._periods=[Bo(new Date(36e5),"a",this._locale,"UTC"),Bo(new Date(36e5*13),"a",this._locale,"UTC")]}getMorningPeriod(){return this._periods[0]}getAfternoonPeriod(){return this._periods[1]}static{this.\u0275fac=(()=>{let t;return function(i){return(t||(t=Le(e)))(i||e)}})()}static{this.\u0275prov=h({token:e,factory:e.\u0275fac})}}return e})(),hW=/[^0-9]/g,Kpe=(()=>{class e{set hourStep(t){this._hourStep=pt(t)?t:this._config.hourStep}get hourStep(){return this._hourStep}set minuteStep(t){this._minuteStep=pt(t)?t:this._config.minuteStep}get minuteStep(){return this._minuteStep}set secondStep(t){this._secondStep=pt(t)?t:this._config.secondStep}get secondStep(){return this._secondStep}constructor(t,n,i,o){this._config=t,this._ngbTimeAdapter=n,this._cd=i,this.i18n=o,this.onChange=s=>{},this.onTouched=()=>{},this.meridian=t.meridian,this.spinners=t.spinners,this.seconds=t.seconds,this.hourStep=t.hourStep,this.minuteStep=t.minuteStep,this.secondStep=t.secondStep,this.disabled=t.disabled,this.readonlyInput
9s=t.readonlyInputs,this.size=t.size}writeValue(t){let n=this._ngbTimeAdapter.fromModel(t);this.model=n?new Tp(n.hour,n.minute,n.second):new Tp,!this.seconds&&(!n||!ft(n.second))&&(this.model.second=0),this._cd.markForCheck()}registerOnChange(t){this.onChange=t}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this.disabled=t}changeHour(t){this.model?.changeHour(t),this.propagateModelChange()}changeMinute(t){this.model?.changeMinute(t),this.propagateModelChange()}changeSecond(t){this.model?.changeSecond(t),this.propagateModelChange()}updateHour(t){let n=this.model?this.model.hour>=12:!1,i=Qt(t);this.meridian&&(n&&i<12||!n&&i===12)?this.model?.updateHour(i+12):this.model?.updateHour(i),this.propagateModelChange()}updateMinute(t){this.model?.updateMinute(Qt(t)),this.propagateModelChange()}updateSecond(t){this.model?.updateSecond(Qt(t)),this.propagateModelChange()}toggleMeridian(){this.model&&ft(this.model.hour)&&this.meridian&&this.changeHour(12)}formatInput(t){t.value=t.value.replace(hW,"")}formatHour(t){return ft(t)?this.meridian?So(t%12===0?12:t%12):So(t%24):So(NaN)}formatMinSec(t){return So(ft(t)?t:NaN)}handleBlur(){this.onTouched()}get isSmallSize(){return this.size==="small"}get isLargeSize(){return this.size==="large"}ngOnChanges(t){t.seconds&&!this.seconds&&this.model&&!ft(this.model.second)&&(this.model.second=0,this.propagateModelChange(!1))}propagateModelChange(t=!0){t&&this.onTouched(),this.model?.isValid(this.seconds)?this.onChange(this._ngbTimeAdapter.toModel({hour:this.model.hour,minute:this.model.minute,second:this.model.second})):this.onChange(this._ngbTimeAdapter.toModel(null))}static{this.\u0275fac=function(n){return new(n||e)(K(uW),K(aA),K(it),K(cA))}}static{this.\u0275cmp=Ge({type:e,selectors:[["ngb-timepicker"]],inputs:{meridian:"meridian",spinners:"spinners",seconds:"seconds",hourStep:"hourStep",minuteStep:"minuteStep",secondStep:"secondStep",readonlyInputs:"readonlyInputs",size:"size"},exportAs:["ngbTimepicker"],features:[wt([{provide:mn,useExisting:zt(()=>e),multi:!0}]),Ve],decls:14,vars:23,consts:()=>{let t;t=$localize`:@@ngb.timepicker.HH:HH`;let n;n=$localize`:@@ngb.timepicker.hours:Hours`;let i;i=$localize`:@@ngb.timepicker.MM:MM`;let o;o=$localize`:@@ngb.timepicker.minutes:Minutes`;let s;s=$localize`:@@ngb.timepicker.increment-hours:Increment hours`;let a;a=$localize`:@@ngb.timepicker.decrement-hours:Decrement hours`;let c;c=$localize`:@@ngb.timepicker.increment-minutes:Increment minutes`;let l;l=$localize`:@@ngb.timepicker.decrement-minutes:Decrement minutes`;let d;d=$localize`:@@ngb.timepicker.SS:SS`;let m;m=$localize`:@@ngb.timepicker.seconds:Seconds`;let y;y=$localize`:@@ngb.timepicker.increment-seconds:Increment seconds`;let S;S=$localize`:@@ngb.timepicker.decrement-seconds:Decrement seconds`;let N;return N=$localize`:@@ngb.timepicker.PM:${"\uFFFD0\uFFFD"}:INTERPOLATION:`,[s,a,c,l,y,S,N,[3,"disabled"],[1,"ngb-tp"],[1,"ngb-tp-input-container","ngb-tp-hour"],["tabindex","-1","type","button",1,"btn","btn-link",3,"btn-sm","btn-lg","disabled"],["type","text","maxlength","2","inputmode","numeric","placeholder",t,"aria-label",n,1,"ngb-tp-input","form-control",3,"change","blur","input","keydown.ArrowUp","keydown.ArrowDown","value","readOnly","disabled"],[1,"ngb-tp-spacer"],[1,"ngb-tp-input-container","ngb-tp-minute"],["type","text","maxlength","2","inputmode","numeric","placeholder",i,"aria-label",o,1,"ngb-tp-input","form-control",3,"change","blur","input","keydown.ArrowUp","keydown.ArrowDown","value","readOnly","disabled"],["tabindex","-1","type","button",1,"btn","btn-link",3,"click","disabled"],[1,"chevron","ngb-tp-chevron"],[1,"visually-hidden"],[1,"chevron","ngb-tp-chevron","bottom"],[1,"ngb-tp-input-container","ngb-tp-second"],["type","text","maxlength","2","inputmode","numeric","placeholder",d,"aria-label",m,1,"ngb-tp-input","form-control",3,"change","blur","input","keydown.ArrowUp","keydown.ArrowDown","value","readOnly","disabled"],[1,"ngb-tp-meridian"],["type","button",1,"btn","btn-outline-primary",3,"click","disabled"]]},template:function(n,i){n&1&&(Re(0,"fieldset",7)(1,"div",8)(2,"div",9),we(3,eW,4,7,"button",10),Re(4,"input",11),_r("change",function(s){return i.updateHour(s.target.value)})("blur",function(){return i.handleBlur()})("input",function(s){return i.formatInput(s.target)})("keydown.ArrowUp",function(s){return i.changeHour(i.hourStep),s.preventDefault()})("keydown.ArrowDown",function(s){return i.changeHour(-i.hourStep),s.preventDefault()}),$e(),we(5,tW,4,7,"button",10),$e(),Re(6,"div",12),Et(7,":"),$e(),Re(8,"div",13),we(9,rW,4,7,"button",10),Re(10,"input",14),_r("change",function(s){return i.updateMinute(s.target.value)})("blur",function(){return i.handleBlur()})("input",function(s){return i.formatInput(s.target)})("keydown.ArrowUp",function(s){return i.changeMinute(i.minuteStep),s.preventDefault()})("keydown.ArrowDown",function(s){return i.changeMinute(-i.minuteStep),s.preventDefault()}),$e(),we(11,nW,4,7,"button",10),$e(),we(12,sW,6,9),we(13,lW,5,8),$e()()),n&2&&(ce("disabled",i.disabled),ke("disabled",i.disabled),H(3),Ae(i.spinners?3:-1),H(),ce("form-control-sm",i.isSmallSize)("form-control-lg",i.isLargeSize),ke("value",i.formatHour(i.model==null?null:i.model.hour))("readOnly",i.readonlyInput
9s)("disabled",i.disabled),H(),Ae(i.spinners?5:-1),H(4),Ae(i.spinners?9:-1),H(),ce("form-control-sm",i.isSmallSize)("form-control-lg",i.isLargeSize),ke("value",i.formatMinSec(i.model==null?null:i.model.minute))("readOnly",i.readonlyInputs)("disabled",i.disabled),H(),Ae(i.spinners?11:-1),H(),Ae(i.seconds?12:-1),H(),Ae(i.meridian?13:-1))},styles:[`ngb-timepicker{font-size:1rem}.ngb-tp{display:flex;align-items:center}.ngb-tp-input-container{width:4em}.ngb-tp-chevron:before{border-style:solid;border-width:.29em .29em 0 0;content:"";display:inline-block;height:.69em;left:.05em;position:relative;top:.15em;transform:rotate(-45deg);vertical-align:middle;width:.69em}.ngb-tp-chevron.bottom:before{top:-.3em;transform:rotate(135deg)}.ngb-tp-input{text-align:center}.ngb-tp-hour,.ngb-tp-minute,.ngb-tp-second,.ngb-tp-meridian{display:flex;flex-direction:column;align-items:center;justify-content:space-around}.ngb-tp-spacer{width:1em;text-align:center}
10`],encapsulation:2})}}return e})(),V0=(()=>{class e{static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275mod=G({type:e})}static{this.\u0275inj=V({})}}return e})();var mW=["*"];function gW(e,r){if(e&1&&(ye(0,"strong",3),Et(1),_e()),e&2){let t=$();H(),tr(t.header)}}function yW(e,r){}function vW(e,r){if(e&1){let t=nt();ye(0,"div",1),St(1,yW,0,0,"ng-template",4),ye(2,"button",5),Se("click",function(){Fe(t);let i=$();return Pe(i.hide())}),_e()()}if(e&2){let t=$(),n=Sr(1);H(),Qe("ngTemplateOutlet",t.contentHeaderTpl||n)}}var _W=(()=>{class e{constructor(){this._ngbConfig=f(Kr),this.autohide=!0,this.delay=5e3,this.ariaLive="polite"}get animation(){return this._animation??this._ngbConfig.animation}set animation(t){this._animation=t}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=h({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),SW=(e,r)=>{let{classList:t}=e;if(r)t.add("fade");else{t.add("show");return}return ja(e),t.add("show","showing"),()=>{t.remove("showing")}},EW=({classList:e})=>(e.add("showing"),()=>{e.remove("show","showing")}),bW=(()=>{class e{static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275dir=Y({type:e,selectors:[["","ngbToastHeader",""]]})}}return e})(),uhe=(()=>{class e{constructor(t){this.ariaLive=t,this._config=f(_W),this._zone=f(Be),this._injector=f(Te),this._element=f(Me),this.animation=this._config.animation,this.delay=this._config.delay,this.autohide=this._config.autohide,this.contentHeaderTpl=null,this.shown=new se,this.hidden=new se,this.ariaLive??=this._config.ariaLive}ngAfterContentInit(){Br({mixedReadWrite:()=>{this._init(),this.show()}},{injector:this._injector})}ngOnChanges(t){"autohide"in t&&(this._clearTimeout(),this._init())}hide(){this._clearTimeout();let t=mr(this._zone,this._element.nativeElement,EW,{animation:this.animation,runningTransition:"stop"});return t.subscribe(()=>{this.hidden.emit()}),t}show(){let t=mr(this._zone,this._element.nativeElement,SW,{animation:this.animation,runningTransition:"continue"});return t.subscribe(()=>{this.shown.emit()}),t}_init(){this.autohide&&!this._timeoutID&&(this._timeoutID=setTimeout(()=>this.hide(),this.delay))}_clearTimeout(){this._timeoutID&&(clearTimeout(this._timeoutID),this._timeoutID=null)}static{this.\u0275fac=function(n){return new(n||e)(Rs("aria-live"))}}static{this.\u0275cmp=Ge({type:e,selectors:[["ngb-toast"]],contentQueries:function(n,i,o){if(n&1&&Lr(o,bW,7,Tt),n&2){let s;Xe(s=et())&&(i.contentHeaderTpl=s.first)}},hostAttrs:["role","alert","aria-atomic","true",1,"toast"],hostVars:3,hostBindings:function(n,i){n&2&&(Ke("aria-live",i.ariaLive),ce("fade",i.animation))},inputs:{animation:"animation",delay:"delay",autohide:"autohide",header:"header"},outputs:{shown:"shown",hidden:"hidden"},exportAs:["ngbToast"],features:[Ve],ngContentSelectors:mW,decls:5,vars:1,consts:()=>{let t;return t=$localize`:@@ngb.toast.close-aria:Close`,[["headerTpl",""],[1,"toast-header"],[1,"toast-body"],[1,"me-auto"],[3,"ngTemplateOutlet"],["type","button","aria-label",t,1,"btn-close",3,"click"]]},template:function(n,i){n&1&&(sn(),St(0,gW,2,1,"ng-template",null,0,pr),we(2,vW,3,1,"div",1),ye(3,"div",2),an(4),_e()),n&2&&(H(2),Ae(i.contentHeaderTpl||i.header?2:-1))},dependencies:[ii],styles:[`ngb-toast{display:block}ngb-toast .toast-header .close{margin-left:auto;margin-bottom:.25rem}
11`],encapsulation:2})}}return e})(),G0=(()=>{class e{static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275mod=G({type:e})}static{this.\u0275inj=V({})}}return e})();var DW=["*"],CW=(()=>{class e{constructor(){this._ngbConfig=f(Kr),this.autoClose=!0,this.placement="auto",this.popperOptions=t=>t,this.triggers="hover focus",this.disableTooltip=!1,this.openDelay=0,this.closeDelay=0}get animation(){return this._animation??this._ngbConfig.animation}set animation(t){this._animation=t}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=h({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),TW=0,wW=(()=>{class e{static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=Ge({type:e,selectors:[["ngb-tooltip-window"]],hostAttrs:["role","tooltip"],hostVars:5,hostBindings:function(n,i){n&1&&Se("mouseenter",function(){return i.onMouseEnter()})("mouseleave",function(){return i.onMouseLeave()}),n&2&&(ke("id",i.id),Fr("tooltip"+(i.tooltipClass?" "+i.tooltipClass:"")),ce("fade",i.animation))},inputs:{animation:"animation",id:"id",tooltipClass:"tooltipClass",onMouseEnter:"onMouseEnter",onMouseLeave:"onMouseLeave"},ngContentSelectors:DW,decls:3,vars:0,consts:[["data-popper-arrow","",1,"tooltip-arrow"],[1,"tooltip-inner"]],template:function(n,i){n&1&&(sn(),ni(0,"div",0),Re(1,"div",1),an(2),$e())},styles:[`ngb-tooltip-window{pointer-events:none;position:absolute}ngb-tooltip-window .tooltip-inner{pointer-events:auto}ngb-tooltip-window.bs-tooltip-top,ngb-tooltip-window.bs-tooltip-bottom{padding-left:0;padding-right:0}ngb-tooltip-window.bs-tooltip-start,ngb-tooltip-window.bs-tooltip-en
11d{padding-top:0;padding-bottom:0}
12`],encapsulation:2,changeDetection:0})}}return e})(),Che=(()=>{class e{constructor(){this._config=f(CW),this.animation=this._config.animation,this.autoClose=this._config.autoClose,this.placement=this._config.placement,this.popperOptions=this._config.popperOptions,this.triggers=this._config.triggers,this.container=this._config.container,this.disableTooltip=this._config.disableTooltip,this.tooltipClass=this._config.tooltipClass,this.openDelay=this._config.openDelay,this.closeDelay=this._config.closeDelay,this.shown=new se,this.hidden=new se,this._nativeElement=f(Me).nativeElement,this._ngZone=f(Be),this._document=f(Ce),this._changeDetector=f(it),this._injector=f(Te),this._ngbTooltipWindowId=`ngb-tooltip-${TW++}`,this._popupService=new Pa(wW),this._windowRef=null,this._positioning=ka(),this._mouseEnterTooltip=new me,this._mouseLeaveTooltip=new me,this._opening=!0,this._transitioning=!1}set ngbTooltip(t){this._ngbTooltip=t,!t&&this._windowRef&&this.close()}get ngbTooltip(){return this._ngbTooltip}open(t){if(!this._opening&&this._transitioning&&(this._transitioning=!1,Ua(this._windowRef.location.nativeElement)),!this._windowRef&&this._ngbTooltip&&!this.disableTooltip){let{windowRef:n,transition$:i}=this._popupService.open(this._ngbTooltip,t??this.tooltipContext,this.animation);this._opening=!0,this._transitioning=!0,this._windowRef=n,this._windowRef.setInput("animation",this.animation),this._windowRef.setInput("tooltipClass",this.tooltipClass),this._windowRef.setInput("id",this._ngbTooltipWindowId),this._windowRef.setInput("onMouseEnter",()=>this._mouseEnterTooltip.next()),this._windowRef.setInput("onMouseLeave",()=>this._mouseLeaveTooltip.next()),this._getPositionTargetElement().setAttribute("aria-describedby",this._ngbTooltipWindowId),this.container==="body"&&this._document.body.appendChild(this._windowRef.location.nativeElement),this._windowRef.changeDetectorRef.detectChanges(),this._windowRef.changeDetectorRef.markForCheck(),this._ngZone.runOutsideAngular(()=>{this._positioning.createPopper({hostElement:this._getPositionTargetElement(),targetElement:this._windowRef.location.nativeElement,placement:this.placement,baseClass:"bs-tooltip",updatePopperOptions:o=>this.popperOptions(Va([0,6])(o))}),Promise.resolve().then(()=>{this._positioning.update()}),this._afterRenderRef=Ns({mixedReadWrite:()=>{this._positioning.update()}},{injector:this._injector})}),Ba(this._ngZone,this._document,this.autoClose,()=>this.close(),this.hidden,[this._windowRef.location.nativeElement],[this._nativeElement]),i.subscribe(()=>{this._transitioning&&(this._transitioning=!1,this.shown.emit())})}}close(t=this.animation){this._opening&&this._transitioning&&(this._transitioning=!1,Ua(this._windowRef.location.nativeElement)),this._windowRef!=null&&(this._getPositionTargetElement().removeAttribute("aria-describedby"),this._opening=!1,this._transitioning=!0,this._popupService.close(t).subscribe(()=>{this._windowRef=null,this._positioning.destroy(),this._afterRenderRef?.destroy(),this._transitioning&&(this._transitioning=!1,this.hidden.emit()),this._changeDetector.markForCheck()}))}toggle(){this._windowRef?this.close():this.open()}isOpen(){return this._windowRef!=null}ngOnInit(){this._unregisterListenersFn=op(this._nativeElement,this.triggers,this.isOpen.bind(this),this.open.bind(this),this.close.bind(this),+this.openDelay,+this.closeDelay,this._mouseEnterTooltip,this._mouseLeaveTooltip)}ngOnChanges({tooltipClass:t}){t&&this.isOpen()&&this._windowRef.setInput("tooltipClass",t.currentValue)}ngOnDestroy(){this.close(!1),this._unregisterListenersFn?.()}_getPositionTargetElement(){return(In(this.positionTarget)?this._document.querySelector(this.positionTarget):this.positionTarget)||this._nativeElement}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275dir=Y({type:e,selectors:[["","ngbTooltip",""]],inputs:{animation:"animation",autoClose:"autoClose",placement:"placement",popperOptions:"popperOptions",triggers:"triggers",positionTarget:"positionTarget",container:"container",disableTooltip:"disableTooltip",tooltipClass:"tooltipClass",tooltipContext:"tooltipContext",openDelay:"openDelay",closeDelay:"closeDelay",ngbTooltip:"ngbTooltip"},outputs:{shown:"shown",hidden:"hidden"},exportAs:["ngbTooltip"],features:[Ve]})}}return e})(),$0=(()=>{class e{static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275mod=G({type:e})}static{this.\u0275inj=V({})}}return e})();var H0=(()=>{class e{static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275mod=G({type:e})}static{this.\u0275inj=V({})}}return e})();var lA=class{close(r){}dismiss(r){}};var z0=(()=>{class e{static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275mod=G({type:e})}static{this.\u0275inj=V({})}}return e})();var AW=[d0,f0,p0,u0,M0,R0,N0,L0,z0,P0,k0,j0,U0,B0,V0,G0,$0,H0],qhe=(()=>{class e{static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275mod=G({type:e})}static{this.\u0275inj=V({imports:[AW,d0,f0,p0,u0,M0,R0,N0,L0,z0,P0,k0,j0,U0,B0,V0,G0,$0,H0]})}}return e})();var _me=(()=>{class e{constructor(){this.destroyRef=f(_t),this.elementRef=f(Me),this.popover=f(sA,{optional:!0}),this.j3HoverInteractivePopoverCloseDelayMs=3e3,this.closeTimeoutId=null,this.popoverElement=null,this.isSelectingInsidePopover=!1,this.onPopoverMouseEnter=()=>{this.cancelScheduledClose()},this.onPopoverMouseLeave=t=>{if(this.shouldKeepOpen(t)){this.cancelScheduledClose();return}this.scheduleClose()},this.onPopoverPointerDown=t=>{t.stopPropagation(),this.cancelScheduledClose(),this.isSelectingInsidePopover=!0},this.onDocumentPointerUp=()=>{this.isSelectingInsidePopover=!1,(this.isPointerOverInteractiveArea()||this.hasSelectionInsidePopover())&&this.cancelScheduledClose()},this.onDocumentPointerDown=t=>{if(!this.popover?.isOpen())return;let n=t.target;n instanceof Node&&this.popoverElement?.contains(n)||(this.cancelScheduledClose(),this.popover.close())},this.popover&&(this.popover.autoClose=!1,this.popover.shown.pipe(Yr(this.destroyRef)).subscribe(()=>{this.popover&&(this.popover.autoClose=!1),queueMicrotask(()=>{this.bindPopoverElementListeners()})}),this.popover.hidden.pipe(Yr(this.destroyRef)).subscribe(()=>{this.unbindPopoverElementListeners(),this.cancelScheduledClose(),this.isSelectingInsidePopover=!1}))}ngOnDestroy(){this.cancelScheduledClose(),this.unbindPopoverElementListeners()}onHostMouseEnter(){this.canInteract()&&(this.cancelScheduledClose(),this.popover?.isOpen()||this.popover?.open())}onHostMouseLeave(t){if(this.canInteract()){if(this.shouldKeepOpen(t)){this.cancelScheduledClose();return}this.scheduleClose()}}canInteract(){return!!this.popover&&!this.popover.disablePopover}shouldKeepOpen(t){return this.isSelectingInsidePopover||t.buttons!==0||this.isNodeInsideInteractiveArea(t.relatedTarget)?!0:this.hasSelectionInsidePopover()}isPointerOverInteractiveArea(){return this.popoverElement?this.popoverElement.matches(":hover")||this.elementRef.nativeElement.matches(":hover"):!1}isNodeInsideInteractiveArea(t){return t instanceof Node?this.elementRef.nativeElement.contains(t)?!0:!!this.popoverElement?.contains(t):!1}hasSelectionInsidePopover(){if(!this.popoverElement)return!1;let t=document.getSelection();if(!t||t.isCollapsed)return!1;let n=t.anchorNode;return!!n&&this.popoverElement.contains(n)}scheduleClose(){this.cancelScheduledClose(),this.closeTimeoutId=setTimeout(()=>{this.shouldKeepOpenAfterDelay()||this.popover?.isOpen()&&this.popover.close()},this.j3HoverInteractivePopoverCloseDelayMs)}shouldKeepOpenAfterDelay(){return this.isSelectingInsidePopover||this.isPointerOverInteractiveArea()||this.hasSelectionInsidePopover()}cancelScheduledClose(){this.closeTimeoutId&&(clearTimeout(this.closeTimeoutId),this.closeTimeoutId=null)}bindPopoverElementListeners(){this.unbindPopoverElementListeners();let t=this.elementRef.nativeElement.getAttribute("aria-describedby");t&&(this.popoverElement=document.getElementById(t),this.popoverElement&&(this.popoverElement.addEventListener("mouseenter",this.onPopoverMouseEnter),this.popoverElement.addEventListener("mouseleave",this.onPopoverMouseLeave),this.popoverElement.addEventListener("pointerdown",this.onPopoverPointerDown),document.addEventListener("pointerup",this.onDocumentPointerUp),document.addEventListener("pointerdown",this.onDocumentPointerDown,!0)))}unbindPopoverElementListeners(){this.popoverElement&&(this.popoverElement.removeEventListener("mouseenter",this.onPopoverMouseEnter),this.popoverElement.removeEventListener("mouseleave",this.onPopoverMouseLeave),this.popoverElement.removeEventListener("pointerdown",this.onPopoverPointerDown),this.popoverElement=null),document.removeEventListener("pointerup",this.onDocumentPointerUp),document.removeEventListener("pointerdown",this.onDocumentPointerDown,!0)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275dir=Y({type:e,selectors:[["","j3HoverInteractivePopover",""]],hostBindings:function(n,i){n&1&&Se("mouseenter",function(){return i.onHostMouseEnter()})("mouseleave",function(s){return i.onHostMouseLeave(s)})},inputs:{j3HoverInteractivePopoverCloseDelayMs:"j3HoverInteractivePopoverCloseDelayMs"}})}}return e})();var OW=(function(e){return e.NAME_ASC="A-Z",e.NAME_DESC="Z-A",e.DATE_ASC="createDateASC",e.DATE_DESC="createDateDESC",e})(OW||{});var wp=class{static parseDateSafe(r){return r instanceof Date?ve.fromJSDate(r):ve.isDateTime(r)?r:ve.fromISO(r)}static getExpirationStatus(r){if(!r)return null;let t=this.parseDateSafe(r);if(!t.isValid)return null;let n=t.startOf("day"),i=ve.now().startOf("day"),o=n<=i,s=Math.floor(o?i.diff(n,"days").days:n.diff(i,"days").days);return{isExpired:o,diffDaysRemaining:s,expirationDate:n,now:i}}static isExpired(r){return this.getExpirationStatus(r)?.isExpired??!1}static getExpirationBadgeInfo(r,t=14){let n=this.getExpirationStatus(r);if(!n)return null;let{isExpired:i,diffDaysRemaining:o,expirationDate:s}=n;if(i){let a=Math.abs(o),c=Math.floor(a/30),l,d;return c>0?(l=`${c}m`,d=`${c} month${c>1?"s":""} expired`):(l=`${a}d`,d=`${a} day${a>1?"s":""} expired`),{text:`Expired ${l}`,cssClass:"bg-danger",tooltip:`${d}
12 (${s.toLocaleString(ve.DATE_SHORT)})`}}return o<t?{text:`Expires in ${o}d`,cssClass:"text-bg-warning",tooltip:`${o} day${o>1?"s":""} until expiration (${s.toLocaleString(ve.DATE_SHORT)})`}:null}static getExpirationCellClass(r,t=14){let n=this.getExpirationStatus(r);if(!n)return"";let{isExpired:i,diffDaysRemaining:o}=n;return i?"table-danger":o<t?"table-warning":""}};var uA={};j(uA,{hashString:()=>MW});var MW=e=>He(null,null,function*(){let t=new TextEncoder().encode(e),n=yield crypto.subtle.digest("SHA-256",t);return Array.from(new Uint8Array(n)).map(o=>o.toString(16).padStart(2,"0")).join("")});var WI={};j(WI,{SCHOOL_LOGO_PRELOAD_ID:()=>HI,applySchoolLogoPreloadLink:()=>zq,ensureWebpImageUrl:()=>zI,picturesSizesList:()=>$q,resolveSchoolLogoSrc:()=>Hq});var Nl={};j(Nl,{chunk:()=>RW});var RW=(e,r)=>r.reduce((t,n,i)=>i%e===0?[...t,r.slice(i,i+e)]:t,[]);var Ap=new R("moduleConfig");var Pme=(()=>{class e{intercept(t,n){return t.responseType!=="json"||(t=t.clone({setHeaders:{Accept:"application/json"}})),n.handle(t)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=h({token:e,factory:e.\u0275fac})}}return e})();function IW(e){return e.replace(/^\/+|\/+$/g,"")}function Ee(...e){let r=e.filter(s=>s!=null&&String(s).length>0).map(s=>String(s));if(r.length===0)return"";let[t,...n]=r;if(n.length===0)return t;let i=t.replace(/\/+$/g,""),o=n.map(s=>IW(s)).filter(s=>s.length>0).join("/");return o.length===0?i:i.length===0?o:`${i}/${o}`}function Gme(e,r,t){let n=Ee(e,...r);if(t&&Object.keys(t).length>0){let i=new URLSearchParams;return Object.entries(t).forEach(([o,s])=>i.set(o,String(s))),`${n}?${i.toString()}`}return n}var Q=(()=>{class e{constructor(t,n,i){this.http=t,this.moduleConfig=n,this.platformId=i}generateParams(t){let n=new kt;return Object.keys(t).forEach(i=>{n=n.set(i,t[i])}),n}get baseUrl(){let{DB_URL:t,DB_URL_VPC:n}=this.moduleConfig;return te(this.platformId)&&n?n:t}normalizeSingleEntityResponse(t){let n=t;return n?.result?g(u({},n),{pagination:n.pagination??{},success:!0,statusCode:200}):{result:t,pagination:{},statusCode:200,success:!0,error:void 0}}load(t,n){return this.http.get(Ee(this.baseUrl,t),{params:n}).pipe(E(i=>{let{result:o}=i;return o?i:{result:i,pagination:{},statusCode:200,success:!0,error:void 0}}),E(i=>g(u({},i),{success:!0,statusCode:200})),U(i=>{let{error:o,status:s}=i;return _({result:[],pagination:{},statusCode:s,error:o,success:!1})}))}save(t,n,i){return n.id?this.http.put(Ee(this.baseUrl,t,n.id),n).pipe(E(o=>this.normalizeSingleEntityResponse(o)),U(o=>{let{error:s,status:a}=o;return _({result:{},pagination:{},statusCode:a,error:s,success:!1})})):this.http.post(Ee(this.baseUrl,t),n,{headers:i?.headers}).pipe(E(o=>this.normalizeSingleEntityResponse(o)),U(o=>{let{error:s,status:a}=o;return _({result:{},pagination:{},statusCode:a,error:s,success:!1})}))}putArray(t,n){return this.http.put(Ee(this.baseUrl,t,void 0),n).pipe(E(i=>g(u({},i),{success:!0,statusCode:200})),U(i=>{let{error:o,status:s}=i;return _({result:{},pagination:{},statusCode:s,error:o,success:!1})}))}delete(t,n){return this.http.delete(Ee(this.baseUrl,t,n))}loadSingle(t,n,i){let o=n||"";return this.http.get(Ee(this.baseUrl,t,String(o)),{headers:i?.headers}).pipe(E(s=>{let{result:a}=s;return a?s:{result:s,pagination:{},statusCode:200,success:!0,error:void 0}}),E(s=>g(u({},s),{success:!0,statusCode:200})),U(s=>{let{error:a,status:c}=s;return _({result:{},pagination:{},statusCode:c,error:a,success:!1})}))}static{this.\u0275fac=function(n){return new(n||e)(p(At),p(Ap),p(ie))}}static{this.\u0275prov=h({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var ar={};j(ar,{Direction:()=>J0,FilterType:()=>di,Operator:()=>Vt,booleanOperators:()=>K0,operators:()=>dA,rangeOperators:()=>q0,searchOperators:()=>W0,selectOperators:()=>Y0});var di=(function(e){return e.SEARCH="search",e.DATE="date",e.DATETIME="datetime",e.BOOLEAN="boolean",e.NUMERIC="numeric",e.SELECT="select",e.IS_NULL="isNull",e.EMPTY="empty",e})(di||{});var Vt=(function(e){return e.EQ="eq",e.NEQ="neq",e.LT="lt",e.LTE="lte",e.GT="gt",e.GTE="gte",e.IN="in",e.NOT_IN="notIn",e.CONTAINS="contains",e.STARTS_WITH="startsWith",e.ENDS_WITH="endsWith",e.IS="is",e.EMPTY="empty",e.IS_NULL="isNull",e.IS_NOT_NULL="isNotNull",e})(Vt||{}),W0=[Vt.CONTAINS,Vt.EQ,Vt.NEQ,Vt.ENDS_WITH,Vt.STARTS_WITH],q0=[Vt.EQ,Vt.NEQ,Vt.LT,Vt.GT,Vt.LTE,Vt.GTE],Y0=[Vt.IN,Vt.NOT_IN],K0=[Vt.EQ],xW=[Vt.IS_NULL],dA=[...new Set(...W0,...q0,...Y0,...K0,...xW)];var J0=(function(e){return e.ASC="asc",e.DESC="desc",e})(J0||{});var Xt=(()=>{class e{toQueryString(t){let n=this.filtersToParams(t?.filters||[]),i=this.orderToParams(t?.order||[]),o=this.paginationToParams(t?.pagination||{});
12return[...n,...i,...o].filter(Boolean).map(({value:s,key:a})=>`${a}=${s}`).join("&")}toQueryParam(t){let n=this.filtersToParams(t?.filters||[]),i=this.orderToParams(t?.order||[]),o=this.paginationToParams(t?.pagination||{}),s={};return[...n,...i,...o].filter(Boolean).forEach(({value:a,key:c})=>{s[c]=`${a}`}),new kt({fromObject:s})}fromQueryString(t,n){let i=t.split("&").map(o=>{let[s,a]=o.split("=");return{key:s,value:a}})||[];return{filters:this.filtersFromParams(i,n),order:this.orderFromParams(i),pagination:this.paginationFromParams(i)}}filtersToParams(t=[]){return t?.map(n=>this.mapSingleFilterToParam(n))}filtersFromParams(t,n){return t?.filter(pA(fA))?.filter(pA(NW))?.map(i=>this.mapSingleParamToFilter(i,n))?.filter(Boolean)}orderToParams(t=[]){return t?.map(({key:n,direction:i})=>({key:`order[${n}]`,value:i}))}orderFromParams(t){return t?.filter(fA).map(({key:n,value:i})=>({key:n.replace("order[","").replace("]",""),direction:i}))}paginationToParams(t){let{page:n,size:i}=t;return[typeof i=="number"?{key:"limit",value:i}:void 0,typeof n=="number"?{key:"page",value:n}:void 0].filter(Boolean)}paginationFromParams(t){let n=t?.find(({key:a})=>a==="limit")?.value,i=t?.find(({key:a})=>a==="page")?.value,o=isNaN(parseInt(n,10))?null:parseInt(n,10),s=isNaN(parseInt(i,10))?null:parseInt(i,10);return{size:o,page:s}}mapSingleFilterToParam(t){let{property:n,type:i,operator:o}=t,s=t.value;switch(i){case di.DATE:{let a=this.parseDateSafe(s);s=a.isValid?a.toISODate():s;break}case di.DATETIME:{let a=this.parseDateSafe(s);s=a.isValid?a.toISO():s;break}case di.SELECT:{s=[s||[]].flat().map(a=>a.toString()).join(",");break}}return{key:`${n}${o===Vt.EMPTY?"":`[${o}]`}`,value:s}}mapSingleParamToFilter(t,n){let i=t.value,o=t.key,[s,a]=o.replace("]","").split("["),c=n.find(m=>s===m.property);if(Ze(c)||Ze(c.filterType))return;let{property:l,filterType:d}=c;switch(d){case di.BOOLEAN:{i=i==="true"||i===!0||i===1;break}case di.NUMERIC:{i=parseFloat(i);break}case di.SELECT:i=`${i}`.split(",").map(m=>m?.trim?.());break}return{property:l,operator:a,value:i,type:d}}parseDateSafe(t){return t instanceof Date?ve.fromJSDate(t):ve.isDateTime(t)?t:typeof t=="string"?ve.fromISO(t):ve.invalid("Unsupported type")}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=h({token:e,factory:e.\u0275fac})}}return e})(),fA=e=>e.key.includes("order["),NW=e=>e.key.includes("page")||e.key.includes("limit"),pA=e=>(r,t,n)=>!e(r,t,n);var hA=(()=>{class e{static forRoot(t){return{ngModule:e,providers:[{provide:Ap,useValue:t}]}}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275mod=G({type:e})}static{this.\u0275inj=V({providers:[Xt],imports:[dd]})}}return e})();var ev={};function w(e,r){if(ev[e]=(ev[e]||0)+1,typeof r=="function")return Z0(e,(...n)=>g(u({},r(...n)),{type:e}));switch(r?r._as:"empty"){case"empty":return Z0(e,()=>({type:e}));case"props":return Z0(e,n=>g(u({},n),{type:e}));default:throw new Error("Unexpected config.")}}function L(){return{_as:"props",_p:void 0}}function Z0(e,r){return Object.defineProperty(r,"type",{value:e,writable:!1})}function RA(e){return e.charAt(0).toUpperCase()+e.substring(1)}function LW(e,r){if(e==null)throw new Error(`${r} must be defined.`)}var IA="@ngrx/store/init",ps=(()=>{class e extends Nt{constructor(){super({type:IA})}next(t){if(typeof t=="function")throw new TypeError(`
13        Dispatch expected an object, instead it received a function.
14        If you're using the createAction function, make sure to invoke the function
15        before dispatching the action. For example, someAction should be someAction().`);if(typeof t>"u")throw new TypeError("Actions must be objects");if(typeof t.type>"u")throw new TypeError("Actions must have a type property");super.next(t)}complete(){}ngOnDestroy(){super.complete()}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=h({token:e,factory:e.\u0275fac})}}return e})(),FW=[ps],ov=new R("@ngrx/store Internal Root Guard"),mA=new R("@ngrx/store Internal Initial State"),sv=new R("@ngrx/store Initial State"),xA=new R("@ngrx/store Reducer Factory"),gA=new R("@ngrx/store Internal Reducer Factory Provider"),NA=new R("@ngrx/store Initial Reducers"),Q0=new R("@ngrx/store Internal Initial Reducers"),yA=new R("@ngrx/store Store Features"),vA=new R("@ngrx/store Internal Store Reducers"),X0=new R("@ngrx/store Internal Feature Reducers"),_A=new R("@ngrx/store Internal Feature Configs"),av=new R("@ngrx/store Internal Store Features"),SA=new R("@ngrx/store Internal Feature Reducers Token"),cv=new R("@ngrx/store Feature Reducers"),EA=new R("@ngrx/store User Provided Meta Reducers"),Op=new R("@ngrx/store Meta Reducers"),bA=new R("@ngrx/store Internal Resolved Meta Reducers"),DA=new R("@ngrx/store User Runtime Checks Config"),CA=new R("@ngrx/store Internal User Runtime Checks Config"),Ll=new R("@ngrx/store Internal Runtime Checks"),Fl=new R("@ngrx/store Check if Action types are unique"),Mp=new R("@ngrx/store Root Store Provider"),tv=new R("@ngrx/store Feature State Provider");function Pl(e,r={}){let t=Object.keys(e),n={};for(let o=0;o<t.length;o++){let s=t[o];typeof e[s]=="function"&&(n[s]=e[s])}let i=Object.keys(n);return function(s,a){s=s===void 0?r:s;let c=!1,l={};for(let d=0;d<i.length;d++){let m=i[d],y=n[m],S=s[m],N=y(S,a);l[m]=N,c=c||N!==S}return c?l:s}}function PW(e,r){return Object.keys(e).filter(t=>t!==r).reduce((t,n)=>Object.assign(t,{[n]:e[n]}),{})}function xp(...e){return function(r){if(e.length===0)return r;let t=e[e.length-1];return e.slice(0,-1).reduceRight((i,o)=>o(i),t(r))}}function LA(e,r){return Array.isArray(r)&&r.length>0&&(e=xp.apply(null,[...r,e])),(t,n)=>{let i=e(t);return(o,s)=>
vendor: 4,318 bytes, line 15
15(o=o===void 0?n:o,i(o,s))}}function kW(e){let r=Array.isArray(e)&&e.length>0?xp(...e):t=>t;return(t,n)=>(t=r(t),(i,o)=>(i=i===void 0?n:i,t(i,o)))}var Wa=class extends Ht{},Rp=class extends ps{},jW="@ngrx/store/update-reducers",fs=(()=>{class e extends Nt{get currentReducers(){return this.reducers}constructor(t,n,i,o){super(o(i,n)),this.dispatcher=t,this.initialState=n,this.reducers=i,this.reducerFactory=o}addFeature(t){this.addFeatures([t])}addFeatures(t){let n=t.reduce((i,{reducers:o,reducerFactory:s,metaReducers:a,initialState:c,key:l})=>{let d=typeof o=="function"?kW(a)(o,c):LA(s,a)(o,c);return i[l]=d,i},{});this.addReducers(n)}removeFeature(t){this.removeFeatures([t])}removeFeatures(t){this.removeReducers(t.map(n=>n.key))}addReducer(t,n){this.addReducers({[t]:n})}addReducers(t){this.reducers=u(u({},this.reducers),t),this.updateReducers(Object.keys(t))}removeReducer(t){this.removeReducers([t])}removeReducers(t){t.forEach(n=>{this.reducers=PW(this.reducers,n)}),this.updateReducers(t)}updateReducers(t){this.next(this.reducerFactory(this.reducers,this.initialState)),this.dispatcher.next({type:jW,features:t})}ngOnDestroy(){this.complete()}static{this.\u0275fac=function(n){return new(n||e)(p(Rp),p(sv),p(NA),p(xA))}}static{this.\u0275prov=h({token:e,factory:e.\u0275fac})}}return e})(),UW=[fs,{provide:Wa,useExisting:fs},{provide:Rp,useExisting:ps}],Pi=(()=>{class e extends me{ngOnDestroy(){this.complete()}static{this.\u0275fac=(()=>{let t;return function(i){return(t||(t=Le(e)))(i||e)}})()}static{this.\u0275prov=h({token:e,factory:e.\u0275fac})}}return e})(),BW=[Pi],Ip=class extends Ht{},TA=(()=>{class e extends Nt{static{this.INIT=IA}constructor(t,n,i,o){super(o);let a=t.pipe(Uu(_c)).pipe(fr(n)),c={state:o},l=a.pipe(dS(VW,c));this.stateSubscription=l.subscribe(({state:d,action:m})=>{this.next(d),i.next(m)}),this.state=tp(this,{manualCleanup:!0,requireSync:!0})}ngOnDestroy(){this.stateSubscription.unsubscribe(),this.complete()}static{this.\u0275fac=function(n){return new(n||e)(p(ps),p(Wa),p(Pi),p(sv))}}static{this.\u0275prov=h({token:e,factory:e.\u0275fac})}}return e})();function VW(e={state:void 0},[r,t]){let{state:n}=e;return{state:t(n,r),action:r}}var GW=[TA,{provide:Ip,useExisting:TA}],ae=(()=>{class e extends Ht{constructor(t,n,i,o){super(),this.actionsObserver=n,this.reducerManager=i,this.injector=o,this.source=t,this.state=t.state}select(t,...n){return HW.call(null,t,...n)(this)}selectSignal(t,n){return Er(()=>t(this.state()),n)}lift(t){let n=new e(this,this.actionsObserver,this.reducerManager);return n.operator=t,n}dispatch(t,n){if(typeof t=="function")return this.processDispatchFn(t,n);this.actionsObserver.next(t)}next(t){this.actionsObserver.next(t)}error(t){this.actionsObserver.error(t)}complete(){this.actionsObserver.complete()}addReducer(t,n){this.reducerManager.addReducer(t,n)}removeReducer(t){this.reducerManager.removeReducer(t)}processDispatchFn(t,n){LW(this.injector,"Store Injector");let i=n?.injector??zW()??this.injector;return Tm(()=>{let o=t();Ie(()=>this.dispatch(o))},{injector:i})}static{this.\u0275fac=function(n){return new(n||e)(p(Ip),p(ps),p(fs),p(Te))}}static{this.\u0275prov=h({token:e,factory:e.\u0275fac})}}return e})(),$W=[ae];function HW(e,r,...t){return function(i){let o;if(typeof e=="string"){let s=[r,...t].filter(Boolean);o=i.pipe(uS(e,...s))}else if(typeof e=="function")o=i.pipe(E(s=>e(s,r)));else throw new TypeError(`Unexpected type '${typeof e}' in select operator, expected 'string' or 'function'`);return o.pipe($i())}}function zW(){try{return f(Te)}catch(e){return}}var lv="https://ngrx.io/guide/store/configuration/runtime-checks";function wA(e){return e===void 0}function AA(e){return e===null}function FA(e){return Array.isArray(e)}function WW(e){return typeof e=="string"}function qW(e){return typeof e=="boolean"}function YW(e){return typeof e=="number"}function PA(e){return typeof e=="object"&&e!==null}function KW(e){return PA(e)&&!FA(e)}function kA(e){if(!KW(e))return!1;let r=Object.getPrototypeOf(e);return r===Object.prototype||r===null}function rv(e){return typeof e=="function"}function JW(e){return rv(e)&&e.hasOwnProperty("\u0275cmp")}function ZW(e,r){return Object.prototype.hasOwnProperty.call(e,r)}var QW=!1;function XW(){return QW}function OA(e,r){return e===r}function e8(e,r,t){for(let n=0;n<e.length;
15n++)if(!t(e[n],r[n]))return!0;return!1}function jA(e,r=OA,t=OA){let n=null,i=null,o;function s(){n=null,i=null}function a(d=void 0){o={result:d}}function c(){o=void 0}function l(){if(o!==void 0)return o.result;if(!n)return i=e.apply(null,arguments),n=arguments,i;if(!e8(arguments,n,r))return i;let d=e.apply(null,arguments);return n=arguments,t(i,d)?i:(i=d,d)}return{memoized:l,reset:s,setResult:a,clearResult:c}}function A(...e){return r8(jA)(...e)}function t8(e,r,t,n){if(t===void 0){let o=r.map(s=>s(e));return n.memoized.apply(null,o)}let i=r.map(o=>o(e,t));return n.memoized.apply(null,[...i,t])}function r8(e,r={stateFn:t8}){return function(...t){let n=t;if(Array.isArray(n[0])){let[d,...m]=n;n=[...d,...m]}else n.length===1&&n8(n[0])&&(n=i8(n[0]));let i=n.slice(0,n.length-1),o=n[n.length-1],s=i.filter(d=>d.release&&typeof d.release=="function"),a=e(function(...d){return o.apply(null,d)}),c=jA(function(d,m){return r.stateFn.apply(null,[d,i,m,a])});function l(){c.reset(),a.reset(),s.forEach(d=>d.release())}return Object.assign(c.memoized,{release:l,projector:a.memoized,setResult:c.setResult,clearResult:c.clearResult})}}function xe(e){return A(r=>{let t=r[e];return!XW()&&_i()&&!(e in r)&&console.warn(`@ngrx/store: The feature name "${e}" does not exist in the state, therefore createFeatureSelector cannot access it.  Be sure it is imported in a loaded module using StoreModule.forRoot('${e}', ...) or StoreModule.forFeature('${e}', ...).  If the default state is intended to be undefined, as is the case with router state, this development-only warning message can be ignored.`),t},r=>r)}function n8(e){return!!e&&typeof e=="object"&&Object.values(e).every(r=>typeof r=="function")}function i8(e){let r=Object.values(e),t=Object.keys(e),n=(...i)=>t.reduce((o,s,a)=>g(u({},o),{[s]:i[a]}),{});return[...r,n]}function Zr(e){let{name:r,reducer:t,extraSelectors:n}=e,i=xe(r),o=o8(i,t),s=u({[`select${RA(r)}State`]:i},o),a=n?n(s):{};return u(u({name:r,reducer:t},s),a)}function o8(e,r){let t=s8(r);return(kA(t)?Object.keys(t):[]).reduce((i,o)=>g(u({},i),{[`select${RA(o)}`]:A(e,s=>s?.[o])}),{})}function s8(e){return e(void 0,{type:"@ngrx/feature/init"})}function a8(e){return e instanceof R?f(e):e}function c8(e,r){return r.map((t,n)=>{if(e[n]instanceof R){let i=f(e[n]);return{key:t.key,reducerFactory:i.reducerFactory?i.reducerFactory:Pl,metaReducers:i.metaReducers?i.metaReducers:[],initialState:i.initialState}}return t})}function l8(e){return e.map(r=>r instanceof R?f(r):r)}function uv(e){return typeof e=="function"?e():e}function u8(e,r){return e.concat(r)}function d8(){if(f(ae,{optional:!0,skipSelf:!0}))throw new TypeError("The root Store has been provided more than once. Feature modules should provide feature states instead.");return"guarded"}function f8(e,r){return function(t,n){let i=r.action(n)?nv(n):n,o=e(t,i);return r.state()?nv(o):o}}function nv(e){Object.freeze(e);let r=rv(e);return Object.getOwnPropertyNames(e).forEach(t=>{if(!t.startsWith("\u0275")&&ZW(e,t)&&(!r||t!=="caller"&&t!=="callee"&&t!=="arguments")){let n=e[t];(PA(n)||rv(n))&&!Object.isFrozen(n)&&nv(n)}}),e}function p8(e,r){return function(t,n){if(r.action(n)){let o=iv(n);MA(o,"action")}let i=e(t,n);if(r.state()){let o=iv(i);MA(o,"state")}return i}}function iv(e,r=[]){return(wA(e)||AA(e))&&r.length===0?{path:["root"],value:e}:Object.keys(e).reduce((n,i)=>{if(n)return n;let o=e[i];return JW(o)?n:wA(o)||AA(o)||YW(o)||qW(o)||WW(o)||FA(o)?!1:kA(o)?iv(o,[...r,i]):{path:[...r,i],value:o}},!1)}function MA(e,r){if(e===!1)return;let t=e.path.join("."),n=new Error(`Detected unserializable ${r} at "${t}". ${lv}#strict${r}serializability`);throw n.value=e.value,n.unserializablePath=t,n}function h8(e,r){return function(t,n){if(r.action(n)&&!Be.isInAngularZone())throw new Error(`Action '${n.type}' running outside NgZone. ${lv}#strictactionwithinngzone`);return e(t,n)}}function m8(e){return _i()?u({strictStateSerializability:!1,strictActionSerializability:!1,strictStateImmutability:!0,strictActionImmutability:!0,strictActionWithinNgZone:!1,strictActionTypeUniqueness:!1},e):{strictStateSerializability:!1,strictActionSerializability:!1,strictStateImmutability:!1,strictActionImmutability:!1,strictActionWithinNgZone:!1,strictActionTypeUniqueness:!1}}
15function g8({strictActionSerializability:e,strictStateSerializability:r}){return t=>e||r?p8(t,{action:n=>e&&!dv(n),state:()=>r}):t}function y8({strictActionImmutability:e,strictStateImmutability:r}){return t=>e||r?f8(t,{action:n=>e&&!dv(n),state:()=>r}):t}function dv(e){return e.type.startsWith("@ngrx")}function v8({strictActionWithinNgZone:e}){return r=>e?h8(r,{action:t=>e&&!dv(t)}):r}function _8(e){return[{provide:CA,useValue:e},{provide:DA,useFactory:S8,deps:[CA]},{provide:Ll,deps:[DA],useFactory:m8},{provide:Op,multi:!0,deps:[Ll],useFactory:y8},{provide:Op,multi:!0,deps:[Ll],useFactory:g8},{provide:Op,multi:!0,deps:[Ll],useFactory:v8}]}function UA(){return[{provide:Fl,multi:!0,deps:[Ll],useFactory:E8}]}function S8(e){return e}function E8(e){if(!e.strictActionTypeUniqueness)return;let r=Object.entries(ev).filter(([,t])=>t>1).map(([t])=>t);if(r.length)throw new Error(`Action types are registered more than once, ${r.map(t=>`"${t}"`).join(", ")}. ${lv}#strictactiontypeuniqueness`)}function b8(e={},r={}){return[{provide:ov,useFactory:d8},{provide:mA,useValue:r.initialState},{provide:sv,useFactory:uv,deps:[mA]},{provide:Q0,useValue:e},{provide:vA,useExisting:e instanceof R?e:Q0},{provide:NA,deps:[Q0,[new wm(vA)]],useFactory:a8},{provide:EA,useValue:r.metaReducers?r.metaReducers:[]},{provide:bA,deps:[Op,EA],useFactory:u8},{provide:gA,useValue:r.reducerFactory?r.reducerFactory:Pl},{provide:xA,deps:[gA,bA],useFactory:LA},FW,UW,BW,GW,$W,_8(r.runtimeChecks),UA()]}function D8(){f(ps),f(Wa),f(Pi),f(ae),f(ov,{optional:!0}),f(Fl,{optional:!0})}var Bge=[{provide:Mp,useFactory:D8},Po(()=>f(Mp))];function C8(){f(Mp);let e=f(av),r=f(cv),t=f(fs);f(Fl,{optional:!0});let n=e.map((i,o)=>{let a=r.shift()[o];return g(u({},i),{reducers:a,initialState:uv(i.initialState)})});t.addFeatures(n)}var Vge=[{provide:tv,useFactory:C8},Po(()=>f(tv))];function T8(e,r,t={}){return[{provide:_A,multi:!0,useValue:e instanceof Object?{}:t},{provide:yA,multi:!0,useValue:{key:e instanceof Object?e.name:e,reducerFactory:!(t instanceof R)&&t.reducerFactory?t.reducerFactory:Pl,metaReducers:!(t instanceof R)&&t.metaReducers?t.metaReducers:[],initialState:!(t instanceof R)&&t.initialState?t.initialState:void 0}},{provide:av,deps:[_A,yA],useFactory:c8},{provide:X0,multi:!0,useValue:e instanceof Object?e.reducer:r},{provide:SA,multi:!0,useExisting:r instanceof R?r:X0},{provide:cv,multi:!0,deps:[X0,[new wm(SA)]],useFactory:l8},UA()]}var kl=(()=>{class e{constructor(t,n,i,o,s,a){}static{this.\u0275fac=function(n){return new(n||e)(p(ps),p(Wa),p(Pi),p(ae),p(ov,8),p(Fl,8))}}static{this.\u0275mod=G({type:e})}static{this.\u0275inj=V({})}}return e})(),Np=(()=>{class e{constructor(t,n,i,o,s){this.features=t,this.featureReducers=n,this.reducerManager=i;let a=t.map((c,l)=>{let m=n.shift()[l];return g(u({},c),{reducers:m,initialState:uv(c.initialState)})});i.addFeatures(a)}ngOnDestroy(){this.reducerManager.removeFeatures(this.features)}static{this.\u0275fac=function(n){return new(n||e)(p(av),p(cv),p(fs),p(kl),p(Fl,8))}}static{this.\u0275mod=G({type:e})}static{this.\u0275inj=V({})}}return e})(),Qr=(()=>{class e{static forRoot(t,n){return{ngModule:kl,providers:[...b8(t,n)]}}static forFeature(t,n,i={}){return{ngModule:Np,providers:[...T8(t,n,i)]}}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275mod=G({type:e})}static{this.\u0275inj=V({})}}return e})();function I(...e){let r=e.pop(),t=e.map(n=>n.type);return{reducer:r,types:t}}function pe(e,...r){let t=new Map;for(let n of r)for(let i of n.types){let o=t.get(i);if(o){let s=(a,c)=>n.reducer(o(a,c),c);t.set(i,s)}else t.set(i,n.reducer)}return function(n=e,i){let o=t.get(i.type);return o?o(n,i):n}}function w8(){return{ids:[],entities:{}}}function A8(){function e(r={}){return Object.assign(w8(),r)}return{getInitialState:e}}function O8(){function e(r){let t=s=>s.ids,n=s=>s.entities,i=A(t,n,(s,a)=>s.map(c=>a[c])),o=A(t,s=>s.length);return r?{selectIds:A(r,t),selectEntities:A(r,n),selectAll:A(r,i),selectTotal:A(r,o)}:{selectIds:t,selectEntities:n,selectAll:i,selectTotal:o}}return{getSelectors:e}}var le=(function(e){return e[e.EntitiesOnly=0]="EntitiesOnly",e[e.Both=1]="Both",e[e.None=2]="None",e})(le||{});function vt(e){return function(t,n){let i={ids:[...n.ids],entities:u({},n.entities)},o=e(t,i);return o===le.Both?Object.assign({},n,i):o===le.EntitiesOnly?g(u({},n),{entities:i.entities}):n}}function ji(e,r){let t=r(e);return _i()&&t===void 0&&console.warn("@ngrx/entity: The entity passed to the `selectId` implementation returned undefined.","You should probably provide your own `selectId` implementation.","The entity that was passed:",e,"The `selectId` implementation:",r.toString()),t}function BA(e){function r(v,b){let D=ji(v,e);return D in b.entities?le.None:(b.ids.push(D),b.entities[D]=v,le.Both)}function t(v,b){let D=!1;for(let M of v)D=r(M,b)!==le.None||D;return D?le.Both:le.None}function n(v,b){return b.ids=[],b.entities={},t(v,b),le.Both}function i(v,b){let D=ji(v,e);return D in b.entities?(b.entities[D]=v,le.EntitiesOnly):(b.ids.push(D),b.entities[D]=v,le.Both)}function o(v,b){let D=v.map(M=>i(M,b));switch(!0){case D.some(M=>M===le.Both):return le.Both;case D.some(M=>M===le.EntitiesOnly):return le.EntitiesOnly;default:return le.None}}function s(v,b){return a([v],b)}function a(v,b){let M=(v instanceof Array?v:b.ids.filter(O=>v(b.entities[O]))).filter(O=>O in b.entities).map(O=>delete b.entities[O]).length>0;return M&&(b.ids=b.ids.filter(O=>O in b.entities)),M?le.Both:le.None}function c(v){return Object.assign({},v,{ids:[],entities:{}})}function l(v,b,D){let M=D.entities[b.id],O=Object.assign({},M,b.changes),F=ji(O,e),B=F!==b.id;return B&&(v[b.id]=F,delete D.entities[b.id]),D.entities[F]=O,B}function d(v,b){return m([v],b)}function m(v,b){let D={};return v=v.filter(O=>O.id in b.entities),v.length>0?v.filter(F=>l(D,F,b)).length>0?(b.ids=b.ids.map(F=>D[F]||F),le.Both):le.EntitiesOnly:le.None}function y(v,b){let M=b.ids.reduce((O,F)=>{let B=v(b.entities[F]);return B!==b.entities[F]&&O.push({id:F,changes:B}),O},[]).filter(({id:O})=>O in b.entities);return m(M,b)}function S({map:v,id:b},D){let M=D.entities[b];if(!M)return le.None;let O=v(M);return d({id:b,changes:O},D)}function N(v,b){return T([v],b)}function T(v,b){let D=[],M=[];for(let B of v){let J=ji(B,e);J in b.entities?M.push({id:J,changes:B}):D.push(B)}let O=m(M,b),F=t(D,b);
15switch(!0){case(F===le.None&&O===le.None):return le.None;case(F===le.Both||O===le.Both):return le.Both;default:return le.EntitiesOnly}}return{removeAll:c,addOne:vt(r),addMany:vt(t),setAll:vt(n),setOne:vt(i),setMany:vt(o),updateOne:vt(d),updateMany:vt(m),upsertOne:vt(N),upsertMany:vt(T),removeOne:vt(s),removeMany:vt(a),map:vt(y),mapOne:vt(S)}}function M8(e,r){let{removeOne:t,removeMany:n,removeAll:i}=BA(e);function o(D,M){return s([D],M)}function s(D,M){let O=D.filter(F=>!(ji(F,e)in M.entities));return O.length===0?le.None:(b(O,M),le.Both)}function a(D,M){return M.entities={},M.ids=[],s(D,M),le.Both}function c(D,M){let O=ji(D,e);return O in M.entities?(M.ids=M.ids.filter(F=>F!==O),b([D],M),le.Both):o(D,M)}function l(D,M){let O=D.map(F=>c(F,M));switch(!0){case O.some(F=>F===le.Both):return le.Both;case O.some(F=>F===le.EntitiesOnly):return le.EntitiesOnly;default:return le.None}}function d(D,M){return y([D],M)}function m(D,M,O){if(!(M.id in O.entities))return!1;let F=O.entities[M.id],B=Object.assign({},F,M.changes),J=ji(B,e);return delete O.entities[M.id],D.push(B),J!==M.id}function y(D,M){let O=[],F=D.filter(B=>m(O,B,M)).length>0;if(O.length===0)return le.None;{let B=M.ids,J=[];return M.ids=M.ids.filter((oe,De)=>oe in M.entities?!0:(J.push(De),!1)),b(O,M),!F&&J.every(oe=>M.ids[oe]===B[oe])?le.EntitiesOnly:le.Both}}function S(D,M){let O=M.ids.reduce((F,B)=>{let J=D(M.entities[B]);return J!==M.entities[B]&&F.push({id:B,changes:J}),F},[]);return y(O,M)}function N({map:D,id:M},O){let F=O.entities[M];if(!F)return le.None;let B=D(F);return d({id:M,changes:B},O)}function T(D,M){return v([D],M)}function v(D,M){let O=[],F=[];for(let oe of D){let De=ji(oe,e);De in M.entities?F.push({id:De,changes:oe}):O.push(oe)}let B=y(F,M),J=s(O,M);switch(!0){case(J===le.None&&B===le.None):return le.None;case(J===le.Both||B===le.Both):return le.Both;default:return le.EntitiesOnly}}function b(D,M){D.sort(r);let O=[],F=0,B=0;for(;F<D.length&&B<M.ids.length;){let J=D[F],oe=ji(J,e),De=M.ids[B],ue=M.entities[De];r(J,ue)<=0?(O.push(oe),F++):(O.push(De),B++)}F<D.length?M.ids=O.concat(D.slice(F).map(e)):M.ids=O.concat(M.ids.slice(B)),D.forEach((J,oe)=>{M.entities[e(J)]=J})}return{removeOne:t,removeMany:n,removeAll:i,addOne:vt(o),updateOne:vt(d),upsertOne:vt(T),setAll:vt(a),setOne:vt(c),setMany:vt(l),addMany:vt(s),updateMany:vt(y),upsertMany:vt(v),map:vt(S),mapOne:vt(N)}}function Mt(e={}){let{selectId:r,sortComparer:t}={selectId:e.selectId??(s=>s.id),sortComparer:e.sortComparer??!1},n=A8(),i=O8(),o=t?M8(r,t):BA(r);return u(u(u({selectId:r,sortComparer:t},n),i),o)}var R8={dispatch:!0,functional:!1,useEffectsErrorHandler:!0},Fp="__@ngrx/effects_create__";function Z(e,r={}){let t=r.functional?e:e(),n=u(u({},R8),r);return Object.defineProperty(t,Fp,{value:n}),t}function I8(e){return Object.getOwnPropertyNames(e).filter(n=>e[n]&&e[n].hasOwnProperty(Fp)?e[n][Fp].hasOwnProperty("dispatch"):!1).map(n=>{let i=e[n][Fp];return u({propertyName:n},i)})}function x8(e){return I8(e)}function HA(e){return Object.getPrototypeOf(e)}function N8(e){return!!e.constructor&&e.constructor.name!=="Object"&&e.constructor.name!=="Function"}function zA(e){return typeof e=="function"}function VA(e){return e.filter(zA)}function L8(e){return e instanceof R||zA(e)}function F8(e,r,t){let n=HA(e),o=!!n&&n.constructor.name!=="Object"?n.constructor.name:null,s=x8(e).map(({propertyName:a,dispatch:c,useEffectsErrorHandler:l})=>{let d=typeof e[a]=="function"?e[a]():e[a],m=l?t(d,r):d;return c===!1?m.pipe(sS()):m.pipe(lS()).pipe(E(S=>({effect:e[a],notification:S,propertyName:a,sourceName:o,sourceInstance:e})))});return Lo(...s)}var P8=10;function WA(e,r,t=P8){return e.pipe(U(n=>(r&&r.handleError(n),t<=1?e:WA(e,r,t-1))))}var de=(()=>{class e extends Ht{constructor(t){super(),t&&(this.source=t)}lift(t){let n=new e;return n.source=this,n.operator=t,n}static{this.\u0275fac=function(n){return new(n||e)(p(Pi))}}static{this.\u0275prov=h({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();function X(...e){return q(r=>e.some(t=>typeof t=="string"?t===r.type:t.type===r.type))}var qA=new R("@ngrx/effects Internal Root Guard"),Lp=new R("@ngrx/effects User Provided Effects"),fv=new R("@ngrx/effects Internal Root Effects"),YA=new R("@ngrx/effects Internal Root Effects Instances"),GA=new R("@ngrx/effects Internal Feature Effects"),KA=new R("@ngrx/effects Internal Feature Effects Instance Groups"),k8=new R("@ngrx/effects Effects Error Handler",{providedIn:"root",factory:()=>WA}),JA="@ngrx/effects/init",tye=w(JA);function j8(e,r){if(e.notification.kind==="N"){let t=e.notification.value;!U8(t)&&r.handleError(new Error(`Effect ${B8(e)}
15 dispatched an invalid action: ${V8(t)}`))}}function U8(e){return typeof e!="function"&&e&&e.type&&typeof e.type=="string"}function B8({propertyName:e,sourceInstance:r,sourceName:t}){let n=typeof r[e]=="function";return!!t?`"${t}.${String(e)}${n?"()":""}"`:`"${String(e)}()"`}function V8(e){try{return JSON.stringify(e)}catch(r){return e}}var G8="ngrxOnIdentifyEffects";function $8(e){return pv(e,G8)}var H8="ngrxOnRunEffects";function z8(e){return pv(e,H8)}var W8="ngrxOnInitEffects";function q8(e){return pv(e,W8)}function pv(e,r){return e&&r in e&&typeof e[r]=="function"}var Pp=(()=>{class e extends me{constructor(t,n){super(),this.errorHandler=t,this.effectsErrorHandler=n}addEffects(t){this.next(t)}toActions(){return this.pipe(Dm(t=>N8(t)?HA(t):t),ze(t=>t.pipe(Dm(Y8))),ze(t=>{let n=t.pipe(Os(o=>K8(this.errorHandler,this.effectsErrorHandler)(o)),E(o=>(j8(o,this.errorHandler),o.notification)),q(o=>o.kind==="N"&&o.value!=null),aS()),i=t.pipe(Oe(1),q(q8),E(o=>o.ngrxOnInitEffects()));return Lo(n,i)}))}static{this.\u0275fac=function(n){return new(n||e)(p(Ec),p(k8))}}static{this.\u0275prov=h({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();function Y8(e){return $8(e)?e.ngrxOnIdentifyEffects():""}function K8(e,r){return t=>{let n=F8(t,e,r);return z8(t)?t.ngrxOnRunEffects(n):n}}var ZA=(()=>{class e{get isStarted(){return!!this.effectsSubscription}constructor(t,n){this.effectSources=t,this.store=n,this.effectsSubscription=null}start(){this.effectsSubscription||(this.effectsSubscription=this.effectSources.toActions().subscribe(this.store))}ngOnDestroy(){this.effectsSubscription&&(this.effectsSubscription.unsubscribe(),this.effectsSubscription=null)}static{this.\u0275fac=function(n){return new(n||e)(p(Pp),p(ae))}}static{this.\u0275prov=h({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),QA=(()=>{class e{constructor(t,n,i,o,s,a,c){this.sources=t,n.start();for(let l of o)t.addEffects(l);i.dispatch({type:JA})}addEffects(t){this.sources.addEffects(t)}static{this.\u0275fac=function(n){return new(n||e)(p(Pp),p(ZA),p(ae),p(YA),p(kl,8),p(Np,8),p(qA,8))}}static{this.\u0275mod=G({type:e})}static{this.\u0275inj=V({})}}return e})(),J8=(()=>{class e{constructor(t,n,i,o){let s=n.flat();for(let a of s)t.addEffects(a)}static{this.\u0275fac=function(n){return new(n||e)(p(QA),p(KA),p(kl,8),p(Np,8))}}static{this.\u0275mod=G({type:e})}static{this.\u0275inj=V({})}}return e})(),xn=(()=>{class e{static forFeature(...t){let n=t.flat(),i=VA(n);return{ngModule:J8,providers:[i,{provide:GA,multi:!0,useValue:n},{provide:Lp,multi:!0,useValue:[]},{provide:KA,multi:!0,useFactory:$A,deps:[GA,Lp]}]}}static forRoot(...t){let n=t.flat(),i=VA(n);return{ngModule:QA,providers:[i,{provide:fv,useValue:[n]},{provide:qA,useFactory:Z8},{provide:Lp,multi:!0,useValue:[]},{provide:YA,useFactory:$A,deps:[fv,Lp]}]}}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275mod=G({type:e})}static{this.\u0275inj=V({})}}return e})();function $A(e,r){let t=[];for(let n of e)t.push(...n);for(let n of r)t.push(...n);return t.map(n=>L8(n)?f(n):n)}function Z8(){let e=f(ZA,{optional:!0,skipSelf:!0}),r=f(fv,{self:!0});if(!(r.length===1&&r[0].length===0)&&e)throw new TypeError("EffectsModule.forRoot() called twice. Feature modules should use EffectsModule.forFeature() instead.");return"guarded"}var Bl=(()=>{class e{create(t,n,i,o){let s=typeof t=="string"?g(u({},o||{}),{entityName:t,entityOp:n,data:i}):t;return this.createCore(s)}createCore(t){let{entityName:n,entityOp:i,tag:o}=t;if(!n)throw new Error("Missing entity name for new action");if(i==null)throw new Error("Missing EntityOp for new action");return{type:this.formatActionType(i,o||n),payload:t}}createFromAction(t,n){return this.create(u(u({},t.payload),n))}formatActionType(t,n){return`[${n}] ${t}`}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=h({token:e,factory:e.\u0275fac})}}return e})(),kp=class{constructor(r,t){this.entityName=r,this.selectId=t}mustBeEntity(r){let t=this.extractData(r);if(!t)return this.throwError(r,"should have a single entity.");let n=this.selectId(t);return this.isNotKeyType(n)&&this.throwError(r,"has a missing or invalid entity key (id)"),t}mustBeEntities(r){let t=this.extractData(r);return Array.isArray(t)?(t.forEach((n,i)=>{let o=this.selectId(n);if(this.isNotKeyType(o)){let s=`, item ${i+1}, does not have a valid entity key (id)`;this.throwError(r,s)}}),t):this.throwError(r,"should be an array of entities")}mustBeKey(r){let t=this.extractData(r);if(t===void 0)throw new Error("should be a single entity key");if(this.isNotKeyType(t))throw new Error("is not a valid key (id)");return t}mustBeKeys(r){let t=this.extractData(r);return Array.isArray(t)?(t.forEach((n,i)=>{if(this.isNotKeyType(n)){let o=`${this.entityName} ', item ${i+1}, is not a valid entity key (id)`;this.throwError(r,o)}}),t):this.throwError(r,"should be an array of entity keys (id)")}mustBeUpdate(r){let t=this.extractData(r);if(!t)return this.throwError(r,"should be a single entity update");let{id:n,changes:i}=t,o=this.selectId(i);return(this.isNotKeyType(n)||this.isNotKeyType(o))&&this.throwError(r,"has a missing or invalid entity key (id)"),t}mustBeUpdates(r){let t=this.extractData(r);return Array.isArray(t)?(t.forEach((n,i)=>{let{id:o,changes:s}=n,a=this.selectId(s);(this.isNotKeyType(o)||this.isNotKeyType(a))&&this.throwError(r,`, item ${i+1}, has a missing or invalid entity key (id)`)}),t):this.throwError(r,"should be an array of entity updates")}mustBeUpdateResponse(r){let t=this.extractData(r);if(!t)return this.throwError(r,"should be a single entity update");let{id:n,changes:i}=t,o=this.selectId(i);return(this.isNotKeyType(n)||this.isNotKeyType(o))&&this.throwError(r,"has a missing or invalid entity key (id)"),t}mustBeUpdateResponses(r){let t=this.extractData(r);return Array.isArray(t)?(t.forEach((n,i)=>{let{id:o,changes:s}=n,a=this.selectId(s);(this.isNotKeyType(o)||this.isNotKeyType(a))&&this.throwError(r,`, item ${i+1}, has a missing or invalid entity key (id)`)}),t):this.throwError(r,"should be an array of entity updates")}extractData(r){return r.payload&&r.payload.data}
15isNotKeyType(r){return typeof r!="string"&&typeof r!="number"}throwError(r,t){throw new Error(`${this.entityName} EntityAction guard for "${r.type}": payload ${t}`)}};function Vl(e){return e?.id}function rO(e){if(e==null)return[];if(Array.isArray(e[0])){let[r,...t]=e;e=[...r,...t]}return e}function nO(e){return e=e||Vl,function(t){let n=e(t);if(n==null)throw new Error("Primary key may not be null/undefined.");return t&&{id:n,changes:t}}}function XA(...e){let r=rO(e);switch(r.length){case 0:return q(n=>n.payload&&n.payload.entityOp!=null);case 1:let t=r[0];return q(n=>n.payload&&t===n.payload.entityOp);default:return q(n=>{let i=n.payload&&n.payload.entityOp;return i&&r.some(o=>o===i)})}}function eO(...e){let r=rO(e);switch(r.length){case 0:return q(n=>n.payload&&n.payload.entityName!=null);case 1:let t=r[0];return q(n=>n.payload&&t===n.payload.entityName);default:return q(n=>{let i=n.payload&&n.payload.entityName;return!!i&&r.some(o=>o===i)})}}var Xr=(function(e){return e.Add="Add",e.Delete="Delete",e.Update="Update",e.Upsert="Upsert",e})(Xr||{}),hv=class{add(r,t){return t=Array.isArray(t)?t:t?[t]:[],{entityName:r,op:Xr.Add,entities:t}}delete(r,t){let n=Array.isArray(t)?t:t?[t]:[];return{entityName:r,op:Xr.Delete,entities:n}}update(r,t){return t=Array.isArray(t)?t:t?[t]:[],{entityName:r,op:Xr.Update,entities:t}}upsert(r,t){return t=Array.isArray(t)?t:t?[t]:[],{entityName:r,op:Xr.Upsert,entities:t}}},pye=new hv;function iO(e){e=e&&e.changes?e:{changes:[]};let r=e.changes.filter(t=>t!=null&&t.entities&&t.entities.length>0);return g(u({},e),{changes:r})}var Gt=(function(e){return e[e.IgnoreChanges=0]="IgnoreChanges",e[e.PreserveChanges=1]="PreserveChanges",e[e.OverwriteChanges=2]="OverwriteChanges",e})(Gt||{}),ht=(function(e){return e.CLEAR_COLLECTIONS="@ngrx/data/entity-cache/clear-collections",e.LOAD_COLLECTIONS="@ngrx/data/entity-cache/load-collections",e.MERGE_QUERY_SET="@ngrx/data/entity-cache/merge-query-set",e.SET_ENTITY_CACHE="@ngrx/data/entity-cache/set-cache",e.SAVE_ENTITIES="@ngrx/data/entity-cache/save-entities",e.SAVE_ENTITIES_CANCEL="@ngrx/data/entity-cache/save-entities-cancel",e.SAVE_ENTITIES_CANCELED="@ngrx/data/entity-cache/save-entities-canceled",e.SAVE_ENTITIES_ERROR="@ngrx/data/entity-cache/save-entities-error",e.SAVE_ENTITIES_SUCCESS="@ngrx/data/entity-cache/save-entities-success",e})(ht||{}),mv=class{constructor(r,t){this.type=ht.CLEAR_COLLECTIONS,this.payload={collections:r,tag:t}}},gv=class{constructor(r,t){this.type=ht.LOAD_COLLECTIONS,this.payload={collections:r,tag:t}}},yv=class{constructor(r,t,n){this.type=ht.MERGE_QUERY_SET,this.payload={querySet:r,mergeStrategy:t===null?Gt.PreserveChanges:t,tag:n}}},vv=class{constructor(r,t){this.cache=r,this.type=ht.SET_ENTITY_CACHE,this.payload={cache:r,tag:t}}},_v=class{constructor(r,t,n){this.type=ht.SAVE_ENTITIES,n=n||{},r&&(r.tag=r.tag||n.tag),this.payload=g(u({changeSet:r,url:t},n),{tag:r.tag})}},Sv=class{constructor(r,t,n,i){this.type=ht.SAVE_ENTITIES_CANCEL,this.payload={correlationId:r,reason:t,entityNames:n,tag:i}}},Ev=class{constructor(r,t,n){this.type=ht.SAVE_ENTITIES_CANCELED,this.payload={correlationId:r,reason:t,tag:n}}},bv=class{constructor(r,t){this.type=ht.SAVE_ENTITIES_ERROR;let n=t.payload.correlationId;this.payload={error:r,originalAction:t,correlationId:n}}},jl=class{constructor(r,t,n){this.type=ht.SAVE_ENTITIES_SUCCESS,n=n||{},r&&(r.tag=r.tag||n.tag),this.payload=g(u({changeSet:r,url:t},n),{tag:r.tag})}},x=(function(e){return e.CANCEL_PERSIST="@ngrx/data/cancel-persist",e.CANCELED_PERSIST="@ngrx/data/canceled-persist",e.QUERY_ALL="@ngrx/data/query-all",e.QUERY_ALL_SUCCESS="@ngrx/data/query-all/success",e.QUERY_ALL_ERROR="@ngrx/data/query-all/error",e.QUERY_LOAD="@ngrx/data/query-load",e.QUERY_LOAD_SUCCESS="@ngrx/data/query-load/success",e.QUERY_LOAD_ERROR="@ngrx/data/query-load/error",e.QUERY_MANY="@ngrx/data/query-many",e.QUERY_MANY_SUCCESS="@ngrx/data/query-many/success",e.QUERY_MANY_ERROR="@ngrx/data/query-many/error",e.QUERY_BY_KEY="@ngrx/data/query-by-key",e.QUERY_BY_KEY_SUCCESS="@ngrx/data/query-by-key/success",e.QUERY_BY_KEY_ERROR="@ngrx/data/query-by-key/error",e.SAVE_ADD_MANY="@ngrx/data/save/add-many",e.SAVE_ADD_MANY_ERROR="@ngrx/data/save/add-many/error",e.SAVE_ADD_MANY_SUCCESS="@ngrx/data/save/add-many/success",e.SAVE_ADD_ONE="@ngrx/data/save/add-one",e.SAVE_ADD_ONE_ERROR="@ngrx/data/save/add-one/error",e.SAVE_ADD_ONE_SUCCESS="@ngrx/data/save/add-one/success",e.SAVE_DELETE_MANY="@ngrx/data/save/delete-many",e.SAVE_DELETE_MANY_SUCCESS="@ngrx/data/save/delete-many/success",e.SAVE_DELETE_MANY_ERROR="@ngrx/data/save/delete-many/error",e.SAVE_DELETE_ONE="@ngrx/data/save/delete-one",e.SAVE_DELETE_ONE_SUCCESS="@ngrx/data/save/delete-one/success",e.SAVE_DELETE_ONE_ERROR="@ngrx/data/save/delete-one/error",e.SAVE_UPDATE_MANY="@ngrx/data/save/update-many",e.SAVE_UPDATE_MANY_SUCCESS="@ngrx/data/save/update-many/success",e.SAVE_UPDATE_MANY_ERROR="@ngrx/data/save/update-many/error",e.SAVE_UPDATE_ONE="@ngrx/data/save/update-one",e.SAVE_UPDATE_ONE_SUCCESS="@ngrx/data/save/update-one/success",e.SAVE_UPDATE_ONE_ERROR="@ngrx/data/save/update-one/error",e.SAVE_UPSERT_MANY="@ngrx/data/save/upsert-many",e.SAVE_UPSERT_MANY_SUCCESS="@ngrx/data/save/upsert-many/success",e.SAVE_UPSERT_MANY_ERROR="@ngrx/data/save/upsert-many/error",e.SAVE_UPSERT_ONE="@ngrx/data/save/upsert-
15one",e.SAVE_UPSERT_ONE_SUCCESS="@ngrx/data/save/upsert-one/success",e.SAVE_UPSERT_ONE_ERROR="@ngrx/data/save/upsert-one/error",e.ADD_ALL="@ngrx/data/add-all",e.ADD_MANY="@ngrx/data/add-many",e.ADD_ONE="@ngrx/data/add-one",e.REMOVE_ALL="@ngrx/data/remove-all",e.REMOVE_MANY="@ngrx/data/remove-many",e.REMOVE_ONE="@ngrx/data/remove-one",e.UPDATE_MANY="@ngrx/data/update-many",e.UPDATE_ONE="@ngrx/data/update-one",e.UPSERT_MANY="@ngrx/data/upsert-many",e.UPSERT_ONE="@ngrx/data/upsert-one",e.COMMIT_ALL="@ngrx/data/commit-all",e.COMMIT_MANY="@ngrx/data/commit-many",e.COMMIT_ONE="@ngrx/data/commit-one",e.UNDO_ALL="@ngrx/data/undo-all",e.UNDO_MANY="@ngrx/data/undo-many",e.UNDO_ONE="@ngrx/data/undo-one",e.SET_CHANGE_STATE="@ngrx/data/set-change-state",e.SET_COLLECTION="@ngrx/data/set-collection",e.SET_FILTER="@ngrx/data/set-filter",e.SET_LOADED="@ngrx/data/set-loaded",e.SET_LOADING="@ngrx/data/set-loading",e})(x||{}),Dv="/success",Av="/error";function Q8(e){return e+Av}function oO(e){return e+Dv}var To=class extends Error{constructor(r,t){super(typeof r=="string"?r:X8(r)??void 0),this.error=r,this.requestData=t,this.name=this.constructor.name}};function X8(e){let{error:r,body:t,message:n}=e,i=null;return r?i=typeof r=="string"?r:r.message:n?i=n:t&&(i=typeof t=="string"?t:t.error),typeof i=="string"?i:i?JSON.stringify(i):null}var wo=class{},qa=class{},sO=new R("@ngrx/data Plural Names"),Ya=class{};var Ka=class{},Ov=(()=>{class e{constructor(t){this.pluralizer=t,this.knownHttpResourceUrls={}}getResourceUrls(t,n,i=!1){let o=this.knownHttpResourceUrls[t];if(!o){let s=i?n:Mv(n);o={entityResourceUrl:`${s}/${t}/`.toLowerCase(),collectionResourceUrl:`${s}/${this.pluralizer.pluralize(t)}/`.toLowerCase()},this.registerHttpResourceUrls({[t]:o})}return o}entityResource(t,n,i){return this.getResourceUrls(t,n,i).entityResourceUrl}collectionResource(t,n){return this.getResourceUrls(t,n).collectionResourceUrl}registerHttpResourceUrls(t){this.knownHttpResourceUrls=u(u({},this.knownHttpResourceUrls),t||{})}static{this.\u0275fac=function(n){return new(n||e)(p(Ya))}}static{this.\u0275prov=h({token:e,factory:e.\u0275fac})}}return e})();function Mv(e){return e.replace(/^[/\s]+|[/\s]+$/g,"")}var fi=class{get name(){return this._name}constructor(r,t,n,i){this.http=t,this.httpUrlGenerator=n,this.getDelay=0,this.saveDelay=0,this.timeout=0,this.trailingSlashEndpoints=!1,this._name=`${r} DefaultDataService`,this.entityName=r;let{root:o="api",delete404OK:s=!0,getDelay:a=0,saveDelay:c=0,timeout:l=0,trailingSlashEndpoints:d=!1}=i||{};this.delete404OK=s,this.entityUrl=n.entityResource(r,o,d),this.entitiesUrl=n.collectionResource(r,o),this.getDelay=a,this.saveDelay=c,this.timeout=l}add(r,t){let n=r||new Error(`No "${this.entityName}" entity to add`);return this.execute("POST",this.entityUrl,n,null,t)}delete(r,t){let n;return r==null&&(n=new Error(`No "${this.entityName}" key to delete`)),this.execute("DELETE",this.entityUrl+r,n,null,t).pipe(E(i=>r))}getAll(r){return this.execute("GET",this.entitiesUrl,null,null,r)}getById(r,t){let n;return r==null&&(n=new Error(`No "${this.entityName}" key to get`)),this.execute("GET",this.entityUrl+r,n,null,t)}getWithQuery(r,t){let n=typeof r=="string"?{fromString:r}:{fromObject:r},i=new kt(n);return this.execute("GET",this.entitiesUrl,void 0,{params:i},t)}update(r,t){let n=r&&r.id,i=n==null?new Error(`No "${this.entityName}" update data or id`):r.changes;return this.execute("PUT",this.entityUrl+n,i,null,t)}upsert(r,t){let n=r||new Error(`No "${this.entityName}" entity to upsert`);return this.execute("POST",this.entityUrl,n,null,t)}execute(r,t,n,i,o){let s;o&&(s={headers:o?.httpHeaders?new Yt(o?.httpHeaders):void 0,params:o?.httpParams?new kt(o?.httpParams):void 0});let a;(i||s)&&(_i()&&i&&s&&console.warn("@ngrx/data: options.httpParams will be merged with queryParams when both are are provided to getWithQuery(). In the event of a conflict HttpOptions.httpParams will override queryParams`. The queryParams parameter of getWithQuery() will be removed in next major release."),a=g(u({},i),{headers:s?.headers??i?.headers,params:s?.params??i?.params}));let c={method:r,url:t,data:n,options:a};if(n instanceof Error)return this.handleError(c)(n);let l;switch(r){case"DELETE":{l=this.http.delete(t,a),this.saveDelay&&(l=l.pipe(dr(this.saveDelay)));break}case"GET":{l=this.http.get(t,a),this.getDelay&&(l=l.pipe(dr(this.getDelay)));break}case"POST":{l=this.http.post(t,n,a),this.saveDelay&&(l=l.pipe(dr(this.saveDelay)));break}case"PUT":{l=this.http.put(t,n,a),this.saveDelay&&(l=l.pipe(dr(this.saveDelay)));break}default:{let d=new Error("Unimplemented HTTP method, "+r);l=lt(d)}}return this.timeout&&(l=l.pipe(Em(this.timeout+this.saveDelay))),l.pipe(U(this.handleError(c)))}handleError(r){return t=>{let n=this.handleDelete404(t,r);
15if(n)return n;let i=new To(t,r);return lt(i)}}handleDelete404(r,t){if(r.status===404&&t.method==="DELETE"&&this.delete404OK)return _({})}},aO=(()=>{class e{constructor(t,n,i){this.http=t,this.httpUrlGenerator=n,this.config=i,i=i||{},n.registerHttpResourceUrls(i.entityHttpResourceUrls)}create(t){return new fi(t,this.http,this.httpUrlGenerator,this.config)}static{this.\u0275fac=function(n){return new(n||e)(p(At),p(Ka),p(wo,8))}}static{this.\u0275prov=h({token:e,factory:e.\u0275fac})}}return e})();function e4(e){let r=e.entityName;if(!r)throw new Error("Missing required entityName");e.entityName=r=r.trim();let t=e.selectId||Vl,n=e.sortComparer=e.sortComparer||!1,i=Mt({selectId:t,sortComparer:n}),o=e.entityDispatcherOptions||{},s=i.getInitialState(u({entityName:r,filter:"",loaded:!1,loading:!1,changeState:{}},e.additionalCollectionState||{})),a=e.noChangeTracking===!0;return{entityName:r,entityAdapter:i,entityDispatcherOptions:o,initialState:s,metadata:e,noChangeTracking:a,selectId:t,sortComparer:n}}var cO=new R("@ngrx/data Entity Metadata"),ms=(()=>{class e{constructor(t){this.definitions={},t&&t.forEach(n=>this.registerMetadataMap(n))}getDefinition(t,n=!0){t=t.trim();let i=this.definitions[t];if(!i&&n)throw new Error(`No EntityDefinition for entity type "${t}".`);return i}registerMetadata(t){if(t){let n=e4(t);this.registerDefinition(n)}}registerMetadataMap(t={}){Object.keys(t||{}).forEach(n=>this.registerMetadata(u({entityName:n},t[n])))}registerDefinition(t){this.definitions[t.entityName]=t}registerDefinitions(t){Object.assign(this.definitions,t)}static{this.\u0275fac=function(n){return new(n||e)(p(cO,8))}}static{this.\u0275prov=h({token:e,factory:e.\u0275fac})}}return e})(),tO=Xr.Update,lO=(()=>{class e{constructor(t,n,i){this.entityDefinitionService=t,this.http=n,this.idSelectors={},this.saveDelay=0,this.timeout=0;let{saveDelay:o=0,timeout:s=0}=i||{};this.saveDelay=o,this.timeout=s}saveEntities(t,n){t=this.filterChangeSet(t),t=this.flattenUpdates(t);let i=this.http.post(n,t).pipe(E(o=>this.restoreUpdates(o)),U(this.handleError({method:"POST",url:n,data:t})));return this.timeout&&(i=i.pipe(Em(this.timeout))),this.saveDelay&&(i=i.pipe(dr(this.saveDelay))),i}handleError(t){return n=>{let i=new To(n,t);return lt(i)}}filterChangeSet(t){return iO(t)}flattenUpdates(t){let n=t.changes;if(n.length===0)return t;let i=!1;return n=n.map(o=>o.op===tO&&o.entities.length>0?(i=!0,g(u({},o),{entities:o.entities.map(s=>s.changes)})):o),i?g(u({},t),{changes:n}):t}restoreUpdates(t){if(t==null)return t;let n=t.changes;if(n.length===0)return t;let i=!1;return n=n.map(o=>{if(o.op===tO){i=!0;let s=this.getIdSelector(o.entityName);return g(u({},o),{entities:o.entities.map(a=>({id:s(a),changes:a}))})}else return o}),i?g(u({},t),{changes:n}):t}getIdSelector(t){let n=this.idSelectors[t];return n||(n=this.entityDefinitionService.getDefinition(t).selectId,this.idSelectors[t]=n),n}static{this.\u0275fac=function(n){return new(n||e)(p(ms),p(At),p(wo,8))}}static{this.\u0275prov=h({token:e,factory:e.\u0275fac})}}return e})(),uO=(()=>{class e{constructor(t){this.defaultDataServiceFactory=t,this.services={}}getService(t){t=t.trim();let n=this.services[t];return n||(n=this.defaultDataServiceFactory.create(t),this.services[t]=n),n}registerService(t,n){this.services[t.trim()]=n}registerServices(t){this.services=u(u({},this.services),t)}static{this.\u0275fac=function(n){return new(n||e)(p(aO))}}static{this.\u0275prov=h({token:e,factory:e.\u0275fac})}}return e})(),Ja=class{},Rv=(()=>{class e{constructor(t,n){this.logger=t,this.entityActionFactory=n}handleSuccess(t){let n=oO(t.payload.entityOp);return i=>this.entityActionFactory.createFromAction(t,{entityOp:n,data:i})}handleError(t){let n=Q8(t.payload.entityOp);return i=>{let s={error:i instanceof To?i:new To(i,null),originalAction:t};return this.logger.error(s),this.entityActionFactory.createFromAction(t,{entityOp:n,data:s})}}static{this.\u0275fac=function(n){return new(n||e)(p(qa),p(Bl))}}static{this.\u0275prov=h({token:e,factory:e.\u0275fac})}}return e})(),jp=class{constructor(r){this.message=r,this.message=r||"Canceled by user"}},Iv=(()=>{class e{constructor(){this.seed=0,this.prefix="CRID"}next(){return this.seed+=1,this.prefix+this.seed}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=h({token:e,factory:e.\u0275fac})}}return e})(),xv=(()=>{class e{constructor(){this.optimisticAdd=!1,this.optimisticDelete=!0,this.optimisticUpdate=!1,this.optimisticUpsert=!1,this.optimisticSaveEntities=!1}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=h({token:e,factory:e.\u0275fac})}}return e})(),t4=(()=>{class e{constructor(t,n,i,o){this.correlationIdGenerator=t,this.defaultDispatcherOptions=n,this.store=o,this.reducedActions$=i.pipe(Ct(1)),this.raSubscription=this.reducedActions$.subscribe()}dispatch(t){return this.store.dispatch(t),t}cancelSaveEntities(t,n,i,o){if(!t)throw new Error("Missing correlationId");let s=new Sv(t,n,i,o);this.dispatch(s)}clearCollections(t,n){this.dispatch(new mv(t,n))}loadCollections(t,n){this.dispatch(new gv(t,n))}mergeQuerySet(t,n,i){this.dispatch(new yv(t,n,i))}setEntityCache(t,n){this.dispatch(new vv(t,n))}saveEntities(t,n,i){let o=Array.isArray(t)?{changes:t}:t;i=i||{};let s=i.correlationId==null?this.correlationIdGenerator.next():i.correlationId,a=i.isOptimistic==null?this.defaultDispatcherOptions.optimisticSaveEntities||!1:i.isOptimistic===!0,c=i.tag||"Save Entities";i=g(u({},i),{correlationId:s,isOptimistic:a,tag:c});let l=new _v(o,n,i);
15return this.dispatch(l),this.getSaveEntitiesResponseData$(i.correlationId).pipe(Ct(1))}getSaveEntitiesResponseData$(t){return this.reducedActions$.pipe(q(n=>n.type===ht.SAVE_ENTITIES_SUCCESS||n.type===ht.SAVE_ENTITIES_ERROR||n.type===ht.SAVE_ENTITIES_CANCEL),q(n=>t===n.payload.correlationId),Oe(1),ze(n=>n.type===ht.SAVE_ENTITIES_CANCEL?lt(new jp(n.payload.reason)):n.type===ht.SAVE_ENTITIES_SUCCESS?_(n.payload.changeSet):lt(n.payload)))}static{this.\u0275fac=function(n){return new(n||e)(p(Iv),p(xv),p(Pi),p(ae))}}static{this.\u0275prov=h({token:e,factory:e.\u0275fac})}}return e})(),Cv=class{constructor(r,t,n,i=Vl,o,s,a,c){this.entityName=r,this.entityActionFactory=t,this.store=n,this.selectId=i,this.defaultDispatcherOptions=o,this.reducedActions$=s,this.correlationIdGenerator=c,this.guard=new kp(r,i),this.toUpdate=nO(i);let l=A(a,d=>d[r]);this.entityCollection$=n.select(l)}createEntityAction(r,t,n){return this.entityActionFactory.create(u({entityName:this.entityName,entityOp:r,data:t},n))}createAndDispatch(r,t,n){let i=this.createEntityAction(r,t,n);return this.dispatch(i),i}dispatch(r){return this.store.dispatch(r),r}add(r,t){t=this.setSaveEntityActionOptions(t,this.defaultDispatcherOptions.optimisticAdd);let n=this.createEntityAction(x.SAVE_ADD_ONE,r,t);return t.isOptimistic&&this.guard.mustBeEntity(n),this.dispatch(n),this.getResponseData$(t.correlationId).pipe(fr(this.entityCollection$),E(([i,o])=>o.entities[this.selectId(i)]),Ct(1))}cancel(r,t,n){if(!r)throw new Error("Missing correlationId");this.createAndDispatch(x.CANCEL_PERSIST,t,{correlationId:r})}delete(r,t){t=this.setSaveEntityActionOptions(t,this.defaultDispatcherOptions.optimisticDelete);let n=this.getKey(r),i=this.createEntityAction(x.SAVE_DELETE_ONE,n,t);return this.guard.mustBeKey(i),this.dispatch(i),this.getResponseData$(t.correlationId).pipe(E(()=>n),Ct(1))}getAll(r){r=this.setQueryEntityActionOptions(r);let t=this.createEntityAction(x.QUERY_ALL,null,r);return this.dispatch(t),this.getResponseData$(r.correlationId).pipe(fr(this.entityCollection$),E(([n,i])=>n.reduce((o,s)=>{let a=i.entities[this.selectId(s)];return a&&o.push(a),o},[])),Ct(1))}getByKey(r,t){t=this.setQueryEntityActionOptions(t);let n=this.createEntityAction(x.QUERY_BY_KEY,r,t);return this.dispatch(n),this.getResponseData$(t.correlationId).pipe(fr(this.entityCollection$),E(([i,o])=>o.entities[this.selectId(i)]),Ct(1))}getWithQuery(r,t){t=this.setQueryEntityActionOptions(t);let n=this.createEntityAction(x.QUERY_MANY,r,t);return this.dispatch(n),this.getResponseData$(t.correlationId).pipe(fr(this.entityCollection$),E(([i,o])=>i.reduce((s,a)=>{let c=o.entities[this.selectId(a)];return c&&s.push(c),s},[])),Ct(1))}load(r){r=this.setQueryEntityActionOptions(r);let t=this.createEntityAction(x.QUERY_LOAD,null,r);return this.dispatch(t),this.getResponseData$(r.correlationId).pipe(Ct(1))}loadWithQuery(r,t){t=this.setQueryEntityActionOptions(t);let n=this.createEntityAction(x.QUERY_MANY,r,t);return this.dispatch(n),this.getResponseData$(t.correlationId).pipe(Ct(1))}update(r,t){let n=this.toUpdate(r);t=this.setSaveEntityActionOptions(t,this.defaultDispatcherOptions.optimisticUpdate);let i=this.createEntityAction(x.SAVE_UPDATE_ONE,n,t);return t.isOptimistic&&this.guard.mustBeUpdate(i),this.dispatch(i),this.getResponseData$(t.correlationId).pipe(E(o=>o.changes),fr(this.entityCollection$),E(([o,s])=>s.entities[this.selectId(o)]),Ct(1))}upsert(r,t){t=this.setSaveEntityActionOptions(t,this.defaultDispatcherOptions.optimisticUpsert);let n=this.createEntityAction(x.SAVE_UPSERT_ONE,r,t);return t.isOptimistic&&this.guard.mustBeEntity(n),this.dispatch(n),this.getResponseData$(t.correlationId).pipe(fr(this.entityCollection$),E(([i,o])=>o.entities[this.selectId(i)]),Ct(1))}addAllToCache(r,t){this.createAndDispatch(x.ADD_ALL,r,t)}addOneToCache(r,t){this.createAndDispatch(x.ADD_ONE,r,t)}addManyToCache(r,t){this.createAndDispatch(x.ADD_MANY,r,t)}clearCache(r){this.createAndDispatch(x.REMOVE_ALL,void 0,r)}removeOneFromCache(r,t){this.createAndDispatch(x.REMOVE_ONE,this.getKey(r),t)}removeManyFromCache(r,t){if(!r||r.length===0)return;let n=typeof r[0]=="object"?r.map(i=>this.getKey(i)):r;this.createAndDispatch(x.REMOVE_MANY,n,t)}updateOneInCache(r,t){let n=this.toUpdate(r);this.createAndDispatch(x.UPDATE_ONE,n,t)}updateManyInCache(r,t){if(!r||r.length===0)return;let n=r.map(i=>this.toUpdate(i));this.createAndDispatch(x.UPDATE_MANY,n,t)}upsertOneInCache(r,t){this.createAndDispatch(x.UPSERT_ONE,r,t)}upsertManyInCache(r,t){!r||r.length===0||this.createAndDispatch(x.UPSERT_MANY,r,t)}setFilter(r){this.createAndDispatch(x.SET_FILTER,r)}setLoaded(r){this.createAndDispatch(x.SET_LOADED,!!r)}setLoading(r){this.createAndDispatch(x.SET_LOADING,!!r)}getKey(r){return typeof r=="object"?this.selectId(r):r}getResponseData$(r){return this.reducedActions$.pipe(q(t=>!!t.payload),q(t=>{let{correlationId:n,entityName:i,entityOp:o}=t.payload;return i===this.entityName&&n===r&&(o.endsWith(Dv)||o.endsWith(Av)||o===x.CANCEL_PERSIST)}),Oe(1),ze(t=>{let{entityOp:n}=t.payload;return n===x.CANCEL_PERSIST?lt(new jp(t.payload.data)):n.endsWith(Dv)?_(t.payload.data):lt(t.payload.data.error)}))}setQueryEntityActionOptions(r){r=r||{};let t=r.correlationId==null?this.correlationIdGenerator.next():r.correlationId;return g(u({},r),{correlationId:t})}setSaveEntityActionOptions(r,t){r=r||{};let n=r.correlationId==null?this.correlationIdGenerator.next():r.correlationId,i=r.isOptimistic==null?t||!1:r.isOptimistic===!0;return g(u({},r),{correlationId:n,isOptimistic:i})}},Bp="entityCache",Nv=new R("@ngrx/data Entity Cache Name"),dO=new R("@ngrx/data Entity Cache Meta Reducers"),fO=new R("@ngrx/data Entity Collection Meta Reducers"),r4=new R("@ngrx/data Initial Entity Cache State"),Vp=new R("@ngrx/data Entity Cache Selector"),n4={provide:Vp,useFactory:pO,deps:[[new Am,Nv]]};function pO(e){return e=e||Bp,xe(e)}var Lv=(()=>{class e{constructor(t,n,i,o,s,a){this.entityActionFactory=t,this.store=n,this.entityDispat
15cherDefaultOptions=i,this.entityCacheSelector=s,this.correlationIdGenerator=a,this.reducedActions$=o.pipe(Ct(1)),this.raSubscription=this.reducedActions$.subscribe()}create(t,n=Vl,i={}){let o=u(u({},this.entityDispatcherDefaultOptions),i);return new Cv(t,this.entityActionFactory,this.store,n,o,this.reducedActions$,this.entityCacheSelector,this.correlationIdGenerator)}ngOnDestroy(){this.raSubscription.unsubscribe()}static{this.\u0275fac=function(n){return new(n||e)(p(Bl),p(ae),p(xv),p(Pi),p(Vp),p(Iv))}}static{this.\u0275prov=h({token:e,factory:e.\u0275fac})}}return e})(),hO=new R("@ngrx/data Entity Effects Scheduler"),mO=(()=>{class e{constructor(t,n,i,o,s){this.actions=t,this.dataService=n,this.entityActionFactory=i,this.logger=o,this.scheduler=s,this.responseDelay=10,this.saveEntitiesCancel$=Z(()=>this.actions.pipe(X(ht.SAVE_ENTITIES_CANCEL),q(a=>a.payload.correlationId!=null)),{dispatch:!1}),this.saveEntities$=Z(()=>this.actions.pipe(X(ht.SAVE_ENTITIES),ze(a=>this.saveEntities(a))))}saveEntities(t){let n=t.payload.error;if(n)return this.handleSaveEntitiesError$(t)(n);try{let i=iO(t.payload.changeSet),{correlationId:o,mergeStrategy:s,tag:a,url:c}=t.payload,l={correlationId:o,mergeStrategy:s,tag:a};if(i.changes.length===0)return _(new jl(i,c,l));let d=this.saveEntitiesCancel$.pipe(q(y=>o===y.payload.correlationId),E(y=>new Ev(o,y.payload.reason,y.payload.tag))),m=this.dataService.saveEntities(i,c).pipe(rn(y=>this.handleSaveEntitiesSuccess$(t,this.entityActionFactory)(y)),U(this.handleSaveEntitiesError$(t)));return ri(d,m)}catch(i){return this.handleSaveEntitiesError$(t)(i)}}handleSaveEntitiesError$(t){return n=>{let i=n instanceof To?n:new To(n,null);return _(new bv(i,t)).pipe(dr(this.responseDelay,this.scheduler||ju))}}handleSaveEntitiesSuccess$(t,n){let{url:i,correlationId:o,mergeStrategy:s,tag:a}=t.payload,c={correlationId:o,mergeStrategy:s,tag:a};return l=>{if(l)return _(new jl(l,i,c));if(l=t.payload.changeSet,!t.payload.isOptimistic)return _(new jl(l,i,c));let d=l.changes.reduce((m,y)=>m.indexOf(y.entityName)===-1?m.concat(y.entityName):m,[]);return Lo(d.map(m=>n.create(m,x.SET_LOADING,!1)))}}static{this.\u0275fac=function(n){return new(n||e)(p(de),p(lO),p(Bl),p(qa),p(hO,8))}}static{this.\u0275prov=h({token:e,factory:e.\u0275fac})}}return e})(),i4=[x.QUERY_ALL,x.QUERY_LOAD,x.QUERY_BY_KEY,x.QUERY_MANY,x.SAVE_ADD_ONE,x.SAVE_DELETE_ONE,x.SAVE_UPDATE_ONE,x.SAVE_UPSERT_ONE],gO=(()=>{class e{constructor(t,n,i,o,s){this.actions=t,this.dataService=n,this.entityActionFactory=i,this.resultHandler=o,this.scheduler=s,this.responseDelay=10,this.cancel$=Z(()=>this.actions.pipe(XA(x.CANCEL_PERSIST),E(a=>a.payload.correlationId),q(a=>a!=null)),{dispatch:!1}),this.persist$=Z(()=>this.actions.pipe(XA(i4),ze(a=>this.persist(a))))}persist(t){if(t.payload.skip)return this.handleSkipSuccess$(t);if(t.payload.error)return this.handleError$(t)(t.payload.error);try{let n=this.cancel$.pipe(q(o=>t.payload.correlationId===o),E(o=>this.entityActionFactory.createFromAction(t,{entityOp:x.CANCELED_PERSIST}))),i=this.callDataService(t).pipe(E(this.resultHandler.handleSuccess(t)),U(this.handleError$(t)));return ri(n,i)}catch(n){return this.handleError$(t)(n)}}callDataService(t){let{entityName:n,entityOp:i,data:o,httpOptions:s}=t.payload,a=this.dataService.getService(n);switch(i){case x.QUERY_ALL:case x.QUERY_LOAD:return a.getAll(s);case x.QUERY_BY_KEY:return a.getById(o,s);case x.QUERY_MANY:return a.getWithQuery(o,s);case x.SAVE_ADD_ONE:return a.add(o,s);case x.SAVE_DELETE_ONE:return a.delete(o,s);case x.SAVE_UPDATE_ONE:let{id:c,changes:l}=o;return a.update(o,s).pipe(E(d=>d&&Object.keys(d).length>0?{id:c,changes:u(u({},l),d),changed:!0}:{id:c,changes:l,changed:!1}));case x.SAVE_UPSERT_ONE:return a.upsert(o,s).pipe(E(d=>d&&Object.keys(d).length>0?d:o));default:throw new Error(`Persistence action "${i}" is not implemented.`)}}handleError$(t){return n=>_(this.resultHandler.handleError(t)(n)).pipe(dr(this.responseDelay,this.scheduler||ju))}handleSkipSuccess$(t){let n=oO(t.payload.entityOp),i=this.entityActionFactory.createFromAction(t,{entityOp:n});return _(i).pipe(dr(this.responseDelay,this.scheduler||ju))}static{this.\u0275fac=function(n){return new(n||e)(p(de),p(uO),p(Bl),p(Ja),p(hO,8))}}static{this.\u0275prov=h({token:e,factory:e.\u0275fac})}}return e})();var hs=class{constructor(r,t){this.entityName=r,r=r.trim();let{dispatcher:n,selectors:i,selectors$:o}=t.create(r);this.entityName=r,this.dispatcher=n,this.guard=n.guard,this.selectId=n.selectId,this.toUpdate=n.toUpdate,this.selectors=i,this.selectors$=o,this.collection$=o.collection$,this.count$=o.count$,this.entities$=o.entities$,this.entityActions$=o.entityActions$,this.entityMap$=o.entityMap$,this.errors$=o.errors$,this.filter$=o.filter$,this.filteredEntities$=o.filteredEntities$,this.keys$=o.keys$,this.loaded$=o.loaded$,this.loading$=o.loading$,this.changeState$=o.changeState$}createEntityAction(r,t,n){return this.dispatcher.createEntityAction(r,t,n)}createAndDispatch(r,t,n){return this.dispatcher.createAndDispatch(r,t,n)}dispatch(r){return this.dispatcher.dispatch(r)}
15get store(){return this.dispatcher.store}add(r,t){return this.dispatcher.add(r,t)}cancel(r,t,n){this.dispatcher.cancel(r,t,n)}delete(r,t){return this.dispatcher.delete(r,t)}getAll(r){return this.dispatcher.getAll(r)}getByKey(r,t){return this.dispatcher.getByKey(r,t)}getWithQuery(r,t){return this.dispatcher.getWithQuery(r,t)}load(r){return this.dispatcher.load(r)}loadWithQuery(r,t){return this.dispatcher.loadWithQuery(r,t)}update(r,t){return this.dispatcher.update(r,t)}upsert(r,t){return this.dispatcher.upsert(r,t)}addAllToCache(r,t){this.dispatcher.addAllToCache(r,t)}addOneToCache(r,t){this.dispatcher.addOneToCache(r,t)}addManyToCache(r,t){this.dispatcher.addManyToCache(r,t)}clearCache(){this.dispatcher.clearCache()}removeOneFromCache(r,t){this.dispatcher.removeOneFromCache(r,t)}removeManyFromCache(r,t){this.dispatcher.removeManyFromCache(r,t)}updateOneInCache(r,t){this.dispatcher.updateOneInCache(r,t)}updateManyInCache(r,t){this.dispatcher.updateManyInCache(r,t)}upsertOneInCache(r,t){this.dispatcher.upsertOneInCache(r,t)}upsertManyInCache(r,t){this.dispatcher.upsertManyInCache(r,t)}setFilter(r){this.dispatcher.setFilter(r)}setLoaded(r){this.dispatcher.setLoaded(!!r)}
15setLoading(r){this.dispatcher.setLoading(!!r)}},Up=(()=>{class e{constructor(t){this.entityDefinitionService=t}create(t){let n=this.entityDefinitionService&&this.entityDefinitionService.getDefinition(t,!1);return n&&n.initialState||o4(t)}static{this.\u0275fac=function(n){return new(n||e)(p(ms,8))}}static{this.\u0275prov=h({token:e,factory:e.\u0275fac})}}return e})();function o4(e){return{entityName:e,ids:[],entities:{},filter:void 0,loaded:!1,loading:!1,changeState:{}}}var yO=(()=>{class e{constructor(t,n){this.entityCollectionCreator=t||new Up,this.selectEntityCache=n||pO(Bp)}createCollectionSelector(t){let n=(i={})=>i[t]||this.entityCollectionCreator.create(t);return A(this.selectEntityCache,n)}createCollectionSelectors(t){let n=typeof t=="string"?{entityName:t}:t,i=v=>v.ids,o=v=>v.entities,s=A(i,o,(v,b)=>v.map(D=>b[D])),a=A(i,v=>v.length),c=v=>v.filter,l=n.filterFn,d=l?A(s,c,(v,b)=>l(v,b)):s,m=v=>v.loaded,y=v=>v.loading,S=v=>v.changeState,N=n.additionalCollectionState||{},T={};return Object.keys(N).forEach(v=>{T["select"+v[0].toUpperCase()+v.slice(1)]=b=>b[v]}),u({selectCount:a,selectEntities:s,selectEntityMap:o,selectFilter:c,selectFilteredEntities:d,selectKeys:i,selectLoaded:m,selectLoading:y,selectChangeState:S},T)}create(t){let n=typeof t=="string"?{entityName:t}:t,i=n.entityName,o=this.createCollectionSelector(i),s=this.createCollectionSelectors(n),a={};return Object.keys(s).forEach(c=>{a[c]=A(o,s[c])}),u({entityName:i,selectCollection:o,selectEntityCache:this.selectEntityCache},a)}static{this.\u0275fac=function(n){return new(n||e)(p(Up,8),p(Vp,8))}}static{this.\u0275prov=h({token:e,factory:e.\u0275fac})}}return e})(),Fv=(()=>{class e{constructor(t,n,i){this.store=t,this.actions=n,this.selectEntityCache=i,this.entityCache$=this.store.select(this.selectEntityCache),this.entityActionErrors$=n.pipe(q(o=>o.payload&&o.payload.entityOp&&o.payload.entityOp.endsWith(Av)),Ct(1))}create(t,n){let i={entityName:t};return Object.keys(n).forEach(o=>{if(o.startsWith("select")){let s=o[6].toLowerCase()+o.substring(7)+"$";i[s]=this.store.select(n[o])}}),i.entityActions$=this.actions.pipe(eO(t)),i.errors$=this.entityActionErrors$.pipe(eO(t)),i}static{this.\u0275fac=function(n){return new(n||e)(p(ae),p(de),p(Vp))}}static{this.\u0275prov=h({token:e,factory:e.\u0275fac})}}return e})(),W=(()=>{class e{constructor(t,n,i,o){this.entityDispatcherFactory=t,this.entityDefinitionService=n,this.entitySelectorsFactory=i,this.entitySelectors$Factory=o}create(t){t=t.trim();let n=this.entityDefinitionService.getDefinition(t),i=this.entityDispatcherFactory.create(t,n.selectId,n.entityDispatcherOptions),o=this.entitySelectorsFactory.create(n.metadata),s=this.entitySelectors$Factory.create(t,o);return{dispatcher:i,entityName:t,selectors:o,selectors$:s}}static{this.\u0275fac=function(n){return new(n||e)(p(Lv),p(ms),p(yO),p(Fv))}}static{this.\u0275prov=h({token:e,factory:e.\u0275fac})}}return e})(),vO=(()=>{class e{constructor(t){this.entityCollectionServiceElementsFactory=t}create(t){return new hs(t,this.entityCollectionServiceElementsFactory)}static{this.\u0275fac=function(n){return new(n||e)(p(W))}}static{this.\u0275prov=h({token:e,factory:e.\u0275fac})}}return e})(),_O=(()=>{class e{constructor(t,n,i,o){this.entityCollectionServiceFactory=t,this.store=o,this.entityActionErrors$=i.entityActionErrors$,this.entityCache$=i.entityCache$,this.reducedActions$=n.reducedActions$}static{this.\u0275fac=function(n){return new(n||e)(p(vO),p(Lv),p(Fv),p(ae))}}static{this.\u0275prov=h({token:e,factory:e.\u0275fac})}}return e})(),s4=(()=>{class e{constructor(t){this.entityServicesElements=t,this.EntityCollectionServices={}}get entityActionErrors$(){return this.entityServicesElements.entityActionErrors$}get entityCache$(){return this.entityServicesElements.entityCache$}get entityCollectionServiceFactory(){return this.entityServicesElements.entityCollectionServiceFactory}get reducedActions$(){return this.entityServicesElements.reducedActions$}get store(){return this.entityServicesElements.store}dispatch(t){this.store.dispatch(t)}createEntityCollectionService(t){return this.entityCollectionServiceFactory.create(t)}getEntityCollectionService(t){let n=this.EntityCollectionServices[t];return n||(n=this.createEntityCollectionService(t),this.EntityCollectionServices[t]=n),n}registerEntityCollectionService(t,n){this.EntityCollectionServices[n||t.entityName]=t}registerEntityCollectionServices(t){Array.isArray(t)?t.forEach(n=>this.registerEntityCollectionService(n)):Object.keys(t||{}
15).forEach(n=>{this.registerEntityCollectionService(t[n],n)})}static{this.\u0275fac=function(n){return new(n||e)(p(_O))}}static{this.\u0275prov=h({token:e,factory:e.\u0275fac})}}return e})(),Tv=class{},gr=(function(e){return e[e.Unchanged=0]="Unchanged",e[e.Added=1]="Added",e[e.Deleted=2]="Deleted",e[e.Updated=3]="Updated",e})(gr||{}),wv=class{constructor(r,t){this.adapter=r,this.selectId=t,this.selectId=t||Vl}commitAll(r){return Object.keys(r.changeState).length===0?r:g(u({},r),{changeState:{}})}commitMany(r,t){if(r==null||r.length===0)return t;let n=!1,i=r.reduce((o,s)=>{let a=typeof s=="object"?this.selectId(s):s;return o[a]&&(n||(o=u({},o),n=!0),delete o[a]),o},t.changeState);return n?g(u({},t),{changeState:i}):t}commitOne(r,t){return r==null?t:this.commitMany([r],t)}mergeQueryResults(r,t,n){return this.mergeServerUpserts(r,t,Gt.PreserveChanges,n)}mergeSaveAdds(r,t,n){return this.mergeServerUpserts(r,t,Gt.OverwriteChanges,n)}mergeSaveDeletes(r,t,n){n=n??Gt.OverwriteChanges;let i=r;return t=n===Gt.IgnoreChanges?t:this.commitMany(i,t),this.adapter.removeMany(i,t)}mergeSaveUpdates(r,t,n,i=!1){if(r==null||r.length===0)return t;let o=!1,s=t.changeState;n=n??Gt.OverwriteChanges;let a;switch(n){case Gt.IgnoreChanges:return a=c(r),this.adapter.updateMany(a,t);case Gt.OverwriteChanges:return s=r.reduce((l,d)=>{let m=d.id;return l[m]&&(o||(l=u({},l),o=!0),delete l[m]),l},t.changeState),t=o?g(u({},t),{changeState:s}):t,a=c(r),this.adapter.updateMany(a,t);case Gt.PreserveChanges:{let l=[];return s=r.reduce((d,m)=>{let y=m.id,S=d[y];if(S){o||(d=u({},d),o=!0);let N=this.selectId(m.changes),T=S;N!==y&&delete d[y];let v=u(u({},T.originalValue),m.changes);d[N]=g(u({},T),{originalValue:v})}else l.push(m);return d},t.changeState),t=o?g(u({},t),{changeState:s}):t,a=c(l),this.adapter.updateMany(a,t)}}function c(l){return i===!0&&(l=l.filter(d=>d.changed===!0)),l.map(d=>({id:d.id,changes:d.changes}))}}mergeSaveUpserts(r,t,n){return this.mergeServerUpserts(r,t,Gt.OverwriteChanges,n)}mergeServerUpserts(r,t,n,i){if(r==null||r.length===0)return t;let o=!1,s=t.changeState;switch(i=i??n,i){case Gt.IgnoreChanges:return this.adapter.upsertMany(r,t);case Gt.OverwriteChanges:return t=this.adapter.upsertMany(r,t),s=r.reduce((a,c)=>{let l=this.selectId(c);return a[l]&&(o||(a=u({},a),o=!0),delete a[l]),a},t.changeState),o?g(u({},t),{changeState:s}):t;case Gt.PreserveChanges:{let a=[];return s=r.reduce((c,l)=>{let d=this.selectId(l);return c[d]?o||(c=g(u({},c),{[d]:g(u({},c[d]),{originalValue:l})}),o=!0):a.push(l),c},t.changeState),t=this.adapter.upsertMany(a,t),o?g(u({},t),{changeState:s}):t}}}trackAddMany(r,t,n){if(n===Gt.IgnoreChanges||r==null||r.length===0)return t;let i=!1,o=r.reduce((s,a)=>{let c=this.selectId(a);if(c==null||c==="")throw new Error(`${t.entityName} entity add requires a key to be tracked`);return s[c]||(i||(i=!0,s=u({},s)),s[c]={changeType:gr.Added}),s},t.changeState);return i?g(u({},t),{changeState:o}):t}trackAddOne(r,t,n){return r==null?t:this.trackAddMany([r],t,n)}trackDeleteMany(r,t,n){if(n===Gt.IgnoreChanges||r==null||r.length===0)return t;let i=!1,o=t.entities,s=r.reduce((a,c)=>{let l=o[c];if(l){let m=a[c];m?m.changeType===gr.Added?(d(),delete a[c]):m.changeType===gr.Updated&&(d(),a[c]=g(u({},a[c]),{changeType:gr.Deleted})):(d(),a[c]={changeType:gr.Deleted,originalValue:l})}return a;function d(){i||(i=!0,a=u({},a))}},t.changeState);return i?g(u({},t),{changeState:s}):t}trackDeleteOne(r,t,n){return r==null?t:this.trackDeleteMany([r],t,n)}trackUpdateMany(r,t,n){if(n===Gt.IgnoreChanges||r==null||r.length===0)return t;let i=!1,o=t.entities,s=r.reduce((a,c)=>{let{id:l,changes:d}=c;if(l==null||l==="")throw new Error(`${t.entityName} entity update requires a key to be tracked`);let m=o[l];return m&&(a[l]||(i||(i=!0,a=u({},a)),a[l]={changeType:gr.Updated,originalValue:m})),a},t.changeState);return i?g(u({},t),{changeState:s}):t}trackUpdateOne(r,t,n){return r==null?t:this.trackUpdateMany([r],t,n)}trackUpsertMany(r,t,n){if(n===Gt.IgnoreChanges||r==null||r.length===0)return t;let i=!1,o=t.entities,s=r.reduce((a,c)=>{let l=this.selectId(c);if(l==null||l==="")throw new Error(`${t.entityName} entity upsert requires a key to be tracked`);if(!a[l]){i||(i=!0,a=u({},a));let m=o[l];a[l]=m==null?{changeType:gr.Added}:{changeType:gr.Updated,originalValue:m}}return a},t.changeState);return i?g(u({},t),{changeState:s}):t}trackUpsertOne(r,t,n){return r==null?t:this.trackUpsertMany([r],t,n)}undoAll(r){let t=Object.keys(r.changeState),{remove:n,upsert:i}=t.reduce((o,s)=>{let a=o.chgState[s];switch(a.changeType){case gr.Added:o.remove.push(s);break;case gr.Deleted:let c=a.originalValue;c&&o.upsert.push(c);break;case gr.Updated:o.upsert.push(a.originalValue);break}return o},{remove:[],upsert:[],chgState:r.changeState});return r=this.adapter.removeMany(n,r),r=this.adapter.upsertMany(i,r),g(u({},r),{changeState:{}})}undoMany(r,t){if(r==null||r.length===0)return t;let n=!1,{changeState:i,remove:o,upsert:s}=r.reduce((a,c)=>{let l=a.changeState,d=typeof c=="object"?this.selectId(c):c,m=l[d];if(m)switch(n||(l=u({},l),n=!0),delete l[d],a.changeState=l,m.changeType){case gr.Added:a.remove.push(d);break;case gr.Deleted:let y=m.originalValue;y&&a.upsert.push(y);break;case gr.Updated:a.upsert.push(m.originalValue);break}return a},{remove:[],upsert:[],changeState:t.changeState});return t=this.adapter.removeMany(o,t),t=this.adapter.upsertMany(s,t),n?g(u({},t),{changeState:i}):t}undoOne(r,t){return r==null?t:this.undoMany([r],t)}},Ul=class{constructor(r,t,n){this.entityName=r,this.definition=t,this.methods={[x.CANCEL_PERSIST]:this.cancelPersist.bind(this),[x.QUERY_ALL]:this.queryAll.bind(this),[x.QUERY_ALL_ERROR]:this.queryAllError.bind(this),[x.QUERY_ALL_SUCCESS]:this.queryAllSuccess.bind(this),[x.QUERY_BY_KEY]:this.queryByKey.bind(this),[x.QUERY_BY_KEY_ERROR]:this.queryByKeyError.bind(this),[x.QUERY_BY_KEY_SUCCESS]:this.queryByKeySuccess.bind(this),[x.QUERY_LOAD]:this.queryLoad.bind(this),[x.QUERY_LOAD_ERROR]:this.queryLoadError.bind(this),[x.QUERY_LOAD_SUCCESS]:this.queryLoadSuccess.bind(this),[x.QUERY_MANY]:this.queryMany.bind(this),[x.QUERY_MANY_ERROR]:this.queryManyError.bind(this),[x.QUERY_MANY_SUCCESS]:this.queryManySuccess.bind(this),[x.SAVE_ADD_MANY]:this.saveAddMany.bind(this),[x.SAVE_ADD_MANY_ERROR]:this.saveAddManyError.bind(this),[x.SAVE_ADD_MANY_SUCCESS]:this.saveAddManySuccess.bind(this),[x.SAVE_ADD_ONE]:this.saveAddOne.bind(this),[x.SAVE_ADD_ONE_ERROR]:this.saveAddOneError.bind(this),[x.SAVE_ADD_ONE_SUCCESS]:this.saveAddOneSuccess.bind(this),[x.SAVE_DELETE_MANY]:this.saveDeleteMany.bind(this),[x.SAVE_DELETE_MANY_ERROR]:this.saveDeleteManyError.bind(this),[x.SAVE_DELETE_MANY_SUCCESS]:this.saveDeleteManySuccess.bind(this),[x.SAVE_DELETE_ONE]:this.saveDeleteOne.bind(this),[x.SAVE_DELETE_ONE_ERROR]:this.saveDeleteOneError.bind(this),[x.SAVE_DELETE_ONE_SUCCESS]:this.saveDeleteOneSuccess.bind(this),[x.SAVE_UPDATE_MANY]:this.saveUpdateMany.bind(this),[x.SAVE_UPDATE_MANY_ERROR]:this.saveUpdateManyError.bind(this),[x.SAVE_UPDATE_MANY_SUCCESS]:this.saveUpdateManySuccess.bind(this),[x.SAVE_UPDATE_ONE]:this.saveUpdateOne.bind(this),[x.SAVE_UPDATE_ONE_ERROR]:this.saveUpdateOneError.bind(this),[x.SAVE_UPDATE_ONE_SUCCESS]:this.saveUpdateOneSuccess.bind(this),[x.SAVE_UPSERT_MANY]:this.saveUpsertMany.bind(this),[x.SAVE_UPSERT_MANY_ERROR]:this.saveUpsertManyError.bind(this),[x.SAVE_UPSERT_MANY_SUCCESS]:this.saveUpsertManySuccess.bind(this),[x.SAVE_UPSERT_ONE]:this.saveUpsertOne.bind(this),[x.SAVE_UPSERT_ONE_ERROR]:this.saveUpsertOneError.bind(this),[x.SAVE_UPSERT_ONE_SUCCESS]:this.saveUpsertOneSuccess.bind(this),[x.ADD_ALL]:this.addAll.bind(this),[x.ADD_MANY]:this.addMany.bind(this),[x.ADD_ONE]:this.addOne.bind(this),[x.REMOVE_ALL]:this.removeAll.bind(this),[x.REMOVE_MANY]:this.removeMany.bind(this),[x.REMOVE_ONE]:this.removeOne.bind(this),[x.UPDATE_MANY]:this.updateMany.bind(this),[x.UPDATE_ONE]:this.updateOne.bind(this),[x.UPSERT_MANY]:this.upsertMany.bind(this),[x.UPSERT_ONE]:this.upsertOne.bind(this),[x.COMMIT_ALL]:this.commitAll.bind(this),[x.COMMIT_MANY]:this.commitMany.bind(this),[x.COMMIT_ONE]:this.commitOne.bind(this),[x.UNDO_ALL]:this.undoAll.bind(this),[x.UNDO_MANY]:this.undoMany.bind(this),[x.UNDO_ONE]:this.undoOne.bind(this),[x.SET_CHANGE_STATE]:this.setChangeState.bind(this),[x.SET_COLLECTION]:this.setCollection.bind(this),[x.SET_FILTER]:this.setFilter.bind(this),[x.SET_LOADED]:this.setLoaded.bind(this),[x.SET_LOADING]:this.setLoading.bind(this)},this.adapter=t.entityAdapter,this.isChangeTracking=t.noChangeTracking!==!0,this.selectId=t.selectId,this.guard=new kp(r,this.selectId),this.toUpdate=nO(this.selectId),this.entityChangeTracker=n||new wv(this.adapter,this.selectId)}cancelPersist(r){return this.setLoadingFalse(r)}queryAll(r){return this.setLoadingTrue(r)}queryAllError(r,t){return this.setLoadingFalse(r)}queryAllSuccess(r,t){let n=this.extractData(t),i=this.extractMergeStrategy(t);return g(u({},this.entityChangeTracker.mergeQueryResults(n,r,i)),{loaded:!0,loading:!1})}queryByKey(r,t){return this.setLoadingTrue(r)}queryByKeyError(r,t){return this.setLoadingFalse(r)}queryByKeySuccess(r,t){let n=this.extractData(t),i=this.extractMergeStrategy(t);return r=n==null?r:this.entityChangeTracker.mergeQueryResults([n],r,i),this.setLoadingFalse(r)}queryLoad(r){return this.setLoadingTrue(r)}queryLoadError(r,t){return this.setLoadingFalse(r)}queryLoadSuccess(r,t){let n=this.extractData(t);return g(u({},this.adapter.setAll(n,r)),{loading:!1,loaded:!0,changeState:{}})}queryMany(r,t){return this.setLoadingTrue(r)}queryManyError(r,t){return this.setLoadingFalse(r)}queryManySuccess(r,t){let n=this.extractData(t),i=this.extractMergeStrategy(t);return g(u({},this.entityChangeTracker.mergeQueryResults(n,r,i)),{loaded:!0,loading:!1})}saveAddMany(r,t){if(this.isOptimistic(t)){let n=this.guard.mustBeEntities(t),i=this.extractMergeStrategy(t);r=this.entityChangeTracker.trackAddMany(n,r,i),r=this.adapter.addMany(n,r)}return this.setLoadingTrue(r)}saveAddManyError(r,t){return this.setLoadingFalse(r)}saveAddManySuccess(r,t){let n=this.guard.mustBeEntities(t),i=this.extractMergeStrategy(t);return this.isOptimistic(t)?r=this.entityChangeTracker.mergeSaveUpserts(n,r,i):r=this.entityChangeTracker.mergeSaveAdds(n,r,i),this.setLoadingFalse(r)}saveAddOne(r,t){if(this.isOptimistic(t)){let n=this.guard.mustBeEntity(t),i=this.extractMergeStrategy(t);r=this.entityChangeTracker.trackAddOne(n,r,i),r=this.adapter.addOne(n,r)}return this.setLoadingTrue(r)}saveAddOneError(r,t){return this.setLoadingFalse(r)}saveAddOneSuccess(r,t){let n=this.guard.mustBeEntity(t),i=this.extractMergeStrategy(t);if(this.isOptimistic(t)){let o=this.toUpdate(n);r=this.entityChangeTracker.mergeSaveUpdates([o],r,i,!1)}else r=this.entityChangeTracker.mergeSaveAdds([n],r,i);return this.setLoadingFalse(r)}saveDeleteOne(r,t){let n=this.extractData(t),i=typeof n=="object"?this.selectId(n):n,o=r.changeState[i];if(o&&(o.changeType===gr.Added?(r=this.adapter.removeOne(i,r),r=this.entityChangeTracker.commitOne(i,r),t.payload.skip=!0):r=this.entityChangeTracker.trackDeleteOne(i,r)),this.isOptimistic(t)){let s=this.extractMergeStrategy(t);r=this.entityChangeTracker.trackDeleteOne(i,r,s),r=this.adapter.removeOne(i,r)}return this.setLoadingTrue(r)}saveDeleteOneError(r,t){return this.setLoadingFalse(r)}saveDeleteOneSuccess(r,t){let n=this.extractData(t);
15if(this.isOptimistic(t)){let i=this.extractMergeStrategy(t);r=this.entityChangeTracker.mergeSaveDeletes([n],r,i)}else r=this.adapter.removeOne(n,r),r=this.entityChangeTracker.commitOne(n,r);return this.setLoadingFalse(r)}saveDeleteMany(r,t){let n=this.extractData(t).map(i=>typeof i=="object"?this.selectId(i):i);if(n.forEach(i=>{let o=r.changeState[i];o&&(o.changeType===gr.Added?(r=this.adapter.removeOne(i,r),r=this.entityChangeTracker.commitOne(i,r),t.payload.skip=!0):r=this.entityChangeTracker.trackDeleteOne(i,r))}),this.isOptimistic(t)){let i=this.extractMergeStrategy(t);r=this.entityChangeTracker.trackDeleteMany(n,r,i),r=this.adapter.removeMany(n,r)}return this.setLoadingTrue(r)}saveDeleteManyError(r,t){return this.setLoadingFalse(r)}saveDeleteManySuccess(r,t){let n=this.extractData(t);if(this.isOptimistic(t)){let i=this.extractMergeStrategy(t);r=this.entityChangeTracker.mergeSaveDeletes(n,r,i)}else r=this.adapter.removeMany(n,r),r=this.entityChangeTracker.commitMany(n,r);return this.setLoadingFalse(r)}saveUpdateOne(r,t){let n=this.guard.mustBeUpdate(t);if(this.isOptimistic(t)){let i=this.extractMergeStrategy(t);r=this.entityChangeTracker.trackUpdateOne(n,r,i),r=this.adapter.updateOne(n,r)}return this.setLoadingTrue(r)}saveUpdateOneError(r,t){return this.setLoadingFalse(r)}saveUpdateOneSuccess(r,t){let n=this.guard.mustBeUpdateResponse(t),i=this.isOptimistic(t),o=this.extractMergeStrategy(t);return r=this.entityChangeTracker.mergeSaveUpdates([n],r,o,i),this.setLoadingFalse(r)}saveUpdateMany(r,t){let n=this.guard.mustBeUpdates(t);if(this.isOptimistic(t)){let i=this.extractMergeStrategy(t);r=this.entityChangeTracker.trackUpdateMany(n,r,i),r=this.adapter.updateMany(n,r)}return this.setLoadingTrue(r)}saveUpdateManyError(r,t){return this.setLoadingFalse(r)}saveUpdateManySuccess(r,t){let n=this.guard.mustBeUpdateResponses(t),i=this.isOptimistic(t),o=this.extractMergeStrategy(t);return r=this.entityChangeTracker.mergeSaveUpdates(n,r,o,!1),this.setLoadingFalse(r)}saveUpsertOne(r,t){if(this.isOptimistic(t)){let n=this.guard.mustBeEntity(t),i=this.extractMergeStrategy(t);r=this.entityChangeTracker.trackUpsertOne(n,r,i),r=this.adapter.upsertOne(n,r)}return this.setLoadingTrue(r)}saveUpsertOneError(r,t){return this.setLoadingFalse(r)}saveUpsertOneSuccess(r,t){let n=this.guard.mustBeEntity(t),i=this.extractMergeStrategy(t);return r=this.entityChangeTracker.mergeSaveUpserts([n],r,i),this.setLoadingFalse(r)}saveUpsertMany(r,t){if(this.isOptimistic(t)){let n=this.guard.mustBeEntities(t),i=this.extractMergeStrategy(t);r=this.entityChangeTracker.trackUpsertMany(n,r,i),r=this.adapter.upsertMany(n,r)}return this.setLoadingTrue(r)}saveUpsertManyError(r,t){return this.setLoadingFalse(r)}saveUpsertManySuccess(r,t){let n=this.guard.mustBeEntities(t),i=this.extractMergeStrategy(t);return r=this.entityChangeTracker.mergeSaveUpserts(n,r,i),this.setLoadingFalse(r)}addAll(r,t){let n=this.guard.mustBeEntities(t);return g(u({},this.adapter.setAll(n,r)),{loading:!1,loaded:!0,changeState:{}})}addMany(r,t){let n=this.guard.mustBeEntities(t),i=this.extractMergeStrategy(t);return r=this.entityChangeTracker.trackAddMany(n,r,i),this.adapter.addMany(n,r)}addOne(r,t){let n=this.guard.mustBeEntity(t),i=this.extractMergeStrategy(t);return r=this.entityChangeTracker.trackAddOne(n,r,i),this.adapter.addOne(n,r)}removeMany(r,t){let n=this.guard.mustBeKeys(t),i=this.extractMergeStrategy(t);return r=this.entityChangeTracker.trackDeleteMany(n,r,i),this.adapter.removeMany(n,r)}removeOne(r,t){let n=this.guard.mustBeKey(t),i=this.extractMergeStrategy(t);return r=this.entityChangeTracker.trackDeleteOne(n,r,i),this.adapter.removeOne(n,r)}removeAll(r,t){return g(u({},this.adapter.removeAll(r)),{loaded:!1,loading:!1,changeState:{}})}updateMany(r,t){let n=this.guard.mustBeUpdates(t),i=this.extractMergeStrategy(t);return r=this.entityChangeTracker.trackUpdateMany(n,r,i),this.adapter.updateMany(n,r)}updateOne(r,t){let n=this.guard.mustBeUpdate(t),i=this.extractMergeStrategy(t);return r=this.entityChangeTracker.trackUpdateOne(n,r,i),this.adapter.updateOne(n,r)}upsertMany(r,t){let n=this.guard.mustBeEntities(t),i=this.extractMergeStrategy(t);return r=this.entityChangeTracker.trackUpsertMany(n,r,i),this.adapter.upsertMany(n,r)}upsertOne(r,t){let n=this.guard.mustBeEntity(t),i=this.extractMergeStrategy(t);return r=this.entityChangeTracker.trackUpsertOne(n,r,i),this.adapter.upsertOne(n,r)}commitAll(r){return this.entityChangeTracker.commitAll(r)}commitMany(r,t){return this.entityChangeTracker.commitMany(this.extractData(t),r)}commitOne(r,t){return this.entityChangeTracker.commitOne(this.extractData(t),r)}undoAll(r){return this.entityChangeTracker.undoAll(r)}undoMany(r,t){return this.entityChangeTracker.undoMany(this.extractData(t),r)}undoOne(r,t){return this.entityChangeTracker.undoOne(this.extractData(t),r)}setChangeState(r,t){let n=this.extractData(t);return r.changeState===n?r:g(u({},r),{changeState:n})}setCollection(r,t){let n=this.extractData(t);return r===n?r:n}setFilter(r,t){let n=this.extractData(t);return r.filter===n?r:g(u({},r),{filter:n})}setLoaded(r,t){let n=this.extractData(t)===!0||!1;return r.loaded===n?r:g(u({},r),{loaded:n})}setLoading(r,t){return this.setLoadingFlag(r,this.extractData(t))}setLoadingFalse(r){return this.setLoadingFlag(r,!1)}setLoadingTrue(r){return this.setLoadingFlag(r,!0)}setLoadingFlag(r,t){return t=t===!0,r.loading===t?r:g(u({},r),{loading:t})}extractData(r){return r.payload&&r.payload.data}extractMergeStrategy(r){return this.isChangeTracking?r.payload&&r.payload.mergeStrategy:Gt.IgnoreChanges}isOptimistic(r){return r.payload&&r.payload.isOptimistic===!0}},Gp=(()=>{class e{constructor(t){this.entityDefinitionService=t}create(t){let n=this.entityDefinitionService.getDefinition(t);return new Ul(t,n).methods}static{this.\u0275fac=function(n){return new(n||e)(p(ms))}}static{this.\u0275prov=h({token:e,factory:e.\u0275fac})}}return e})(),SO=(()=>{class e{constructor(t){this.methodsFactory=t}create(t){let n=this.methodsFactory.create(t);return function(o,s){let a=n[s.payload.entityOp];return a?a(o,s):o}}static{this.\u0275fac=function(n){return new(n||e)(p(Gp))}}static{this.\u0275prov=h({token:e,factory:e.\u0275fac})}}return e})(),EO=(()=>{class e{constructor(t,n){this.entityCollectionReducerFactory=t,this.entityCollectionReducers={},this.entityCollectionMetaReducer=xp.apply(null,n||[])}getOrCreateReducer(t){let n=this.entityCollectionReducers[t];return n||(n=this.entityCollectionReducerFactory.create(t),n=this.registerReducer(t,n),this.entityCollectionReducers[t]=n),n}registerReducer(t,n){return n=this.entityCollectionMetaReducer(n),this.entityCollectionReducers[t.trim()]=n}
15registerReducers(t){(t?Object.keys(t):[]).forEach(i=>this.registerReducer(i,t[i]))}static{this.\u0275fac=function(n){return new(n||e)(p(SO),p(fO,8))}}static{this.\u0275prov=h({token:e,factory:e.\u0275fac})}}return e})(),bO=(()=>{class e{constructor(t,n,i){this.entityCollectionCreator=t,this.entityCollectionReducerRegistry=n,this.logger=i}create(){return t.bind(this);function t(n={},i){switch(i.type){case ht.CLEAR_COLLECTIONS:return this.clearCollectionsReducer(n,i);case ht.LOAD_COLLECTIONS:return this.loadCollectionsReducer(n,i);case ht.MERGE_QUERY_SET:return this.mergeQuerySetReducer(n,i);case ht.SAVE_ENTITIES:return this.saveEntitiesReducer(n,i);case ht.SAVE_ENTITIES_CANCEL:return this.saveEntitiesCancelReducer(n,i);case ht.SAVE_ENTITIES_ERROR:return this.saveEntitiesErrorReducer(n,i);case ht.SAVE_ENTITIES_SUCCESS:return this.saveEntitiesSuccessReducer(n,i);case ht.SET_ENTITY_CACHE:return i.payload.cache}let o=i.payload;return o&&o.entityName&&o.entityOp&&!o.error?this.applyCollectionReducer(n,i):n}}clearCollectionsReducer(t,n){let{collections:i,tag:o}=n.payload,s=x.REMOVE_ALL;return i||(i=Object.keys(t)),t=i.reduce((a,c)=>{let l={entityName:c,entityOp:s},d={type:`[${c}] ${n.type}`,payload:l};return a=this.applyCollectionReducer(a,d),a},t),t}loadCollectionsReducer(t,n){let{collections:i,tag:o}=n.payload,s=x.ADD_ALL;return t=Object.keys(i).reduce((c,l)=>{let d={entityName:l,entityOp:s,data:i[l]},m={type:`[${l}] ${n.type}`,payload:d};return c=this.applyCollectionReducer(c,m),c},t),t}mergeQuerySetReducer(t,n){let{mergeStrategy:i,querySet:o,tag:s}=n.payload;i=i===null?Gt.PreserveChanges:i;let a=x.QUERY_MANY_SUCCESS;return t=Object.keys(o).reduce((l,d)=>{let m={entityName:d,entityOp:a,data:o[d],mergeStrategy:i},y={type:`[${d}] ${n.type}`,payload:m};return l=this.applyCollectionReducer(l,y),l},t),t}saveEntitiesReducer(t,n){let{changeSet:i,correlationId:o,isOptimistic:s,mergeStrategy:a,tag:c}=n.payload;
15try{i.changes.forEach(d=>{let m=d.entityName,y={entityName:m,entityOp:l(d),data:d.entities,correlationId:o,isOptimistic:s,mergeStrategy:a,tag:c},S={type:`[${m}] ${n.type}`,payload:y};if(t=this.applyCollectionReducer(t,S),S.payload.error)throw S.payload.error})}catch(d){n.payload.error=d}return t;function l(d){switch(d.op){case Xr.Add:return x.SAVE_ADD_MANY;case Xr.Delete:return x.SAVE_DELETE_MANY;case Xr.Update:return x.SAVE_UPDATE_MANY;case Xr.Upsert:return x.SAVE_UPSERT_MANY}}}saveEntitiesCancelReducer(t,n){return this.clearLoadingFlags(t,n.payload.entityNames||[])}saveEntitiesErrorReducer(t,n){let s=n.payload.originalAction.payload.changeSet.changes.map(a=>a.entityName);return this.clearLoadingFlags(t,s)}saveEntitiesSuccessReducer(t,n){let{changeSet:i,correlationId:o,isOptimistic:s,mergeStrategy:a,tag:c}=n.payload;return i.changes.forEach(d=>{let m=d.entityName,y={entityName:m,entityOp:l(d),data:d.entities,correlationId:o,isOptimistic:s,mergeStrategy:a,tag:c},S={type:`[${m}] ${n.type}`,payload:y};t=this.applyCollectionReducer(t,S)}),t;function l(d){switch(d.op){case Xr.Add:return x.SAVE_ADD_MANY_SUCCESS;case Xr.Delete:return x.SAVE_DELETE_MANY_SUCCESS;case Xr.Update:return x.SAVE_UPDATE_MANY_SUCCESS;case Xr.Upsert:return x.SAVE_UPSERT_MANY_SUCCESS}}}applyCollectionReducer(t={},n){let i=n.payload.entityName,o=t[i],s=this.entityCollectionReducerRegistry.getOrCreateReducer(i),a;try{a=s(o||this.entityCollectionCreator.create(i),n)}catch(c){this.logger.error(c),n.payload.error=c}
15return n.payload.error||o===a?t:g(u({},t),{[i]:a})}clearLoadingFlags(t,n){let i=!1;return n.forEach(o=>{let s=t[o];s.loading&&(i||(t=u({},t),i=!0),t[o]=g(u({},s),{loading:!1}))}),t}static{this.\u0275fac=function(n){return new(n||e)(p(Up),p(EO),p(qa))}}static{this.\u0275prov=h({token:e,factory:e.\u0275fac})}}return e})(),a4=(()=>{class e{error(t,n){t&&(n?console.error(t,n):console.error(t))}log(t,n){t&&(n?console.log(t,n):console.log(t))}warn(t,n){t&&(n?console.warn(t,n):console.warn(t))}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=h({token:e,factory:e.\u0275fac})}}return e})(),c4=["equipment","information","money","series"],l4=(()=>{class e{constructor(t){this.pluralNames={},t&&t.forEach(n=>this.registerPluralNames(n))}pluralize(t){let n=this.pluralNames[t];return n||(c4.indexOf(t.toLowerCase())>=0?t:/[aeiou]y$/.test(t)?t+"s":t.endsWith("y")?t.substring(0,t.length-1)+"ies":/[s|ss|sh|ch|x|z]$/.test(t)?t+"es":t+"s")}registerPluralNames(t){this.pluralNames=u(u({},this.pluralNames),t||{})}static{this.\u0275fac=function(n){return new(n||e)(p(sO,8))}}static{this.\u0275prov=h({token:e,factory:e.\u0275fac})}}return e})();var u4=[Iv,xv,Bl,t4,bO,n4,Up,SO,Gp,EO,W,vO,ms,Lv,yO,Fv,_O,{provide:Nv,useValue:Bp},{provide:Tv,useClass:s4},{provide:qa,useClass:a4},Po(()=>d4())];function d4(){let e=f(fs),r=f(bO),t=f(Nv,{optional:!0}),n=f(r4,{optional:!0}),i=f(dO,{optional:!0}),o=t||Bp,s=(i||[]).map(l=>l instanceof R?f(l):l),a=typeof n=="function"?n():n,c={key:o,reducers:r.create(),reducerFactory:Pl,initialState:a||{},metaReducers:s};e.addFeature(c)}var f4=[aO,lO,uO,mO,gO,{provide:Ka,useClass:Ov},{provide:Ja,useClass:Rv},{provide:Ya,useClass:l4},Po(()=>p4())];function p4(){let e=f(Pp),r=f(mO),t=f(gO);e.addEffects(r),e.addEffects(t)}function DO(e){return[{provide:dO,useValue:e.entityCacheMetaReducers?e.entityCacheMetaReducers:[]},{provide:fO,useValue:e.entityCollectionMetaReducers?e.entityCollectionMetaReducers:[]},{provide:sO,multi:!0,useValue:e.pluralNames?e.pluralNames:{}},{provide:cO,multi:!0,useValue:e.entityMetadata?e.entityMetadata:[]}]}var h4=(()=>{class e{static forRoot(t){return{ngModule:e,providers:[DO(t)]}}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275mod=G({type:e})}static{this.\u0275inj=V({providers:[u4]})}}return e})(),hye=(()=>{class e{static forRoot(t){return{ngModule:e,providers:[DO(t)]}}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275mod=G({type:e})}static{this.\u0275inj=V({providers:[f4],imports:[h4]})}}return e})();var Pv="[J3|APP]",kv={entered:w(`${Pv} Entered`,L()),showToastError:w(`${Pv} Show Toast Error`,L()),showToastUnknownError:w(`${Pv} Show Toast Unknown Error`)};function m4(){return e=>new Ht(r=>{let t,n,i=new Pu;return i.add(e.subscribe({complete:()=>{t&&r.next(n),r.complete()},error:o=>{r.error(o)},next:o=>{n=o,t||(t=Sm.schedule(()=>{r.next(n),t=void 0}),i.add(t))}})),i})}function CO(e){return typeof e.ngrxOnStoreInit=="function"}function TO(e){return typeof e.ngrxOnStateInit=="function"}var g4=new R("@ngrx/component-store Initial State"),AO=(()=>{class e{constructor(t){this.destroySubject$=new ku(1),this.destroy$=this.destroySubject$.asObservable(),this.stateSubject$=new ku(1),this.isInitialized=!1,this.state$=this.select(n=>n),this.state=tp(this.stateSubject$.pipe(We(this.destroy$)),{requireSync:!1,manualCleanup:!0}),this.\u0275hasProvider=!1,t&&this.initState(t),this.checkProviderForHooks()}ngOnDestroy(){this.stateSubject$.complete(),this.destroySubject$.next()}updater(t){return n=>{let i=!0,o,a=(tn(n)?n:_(n)).pipe(Uu(_c),ge(()=>this.assertStateIsInitialized()),fr(this.stateSubject$),E(([c,l])=>t(l,c)),ge(c=>this.stateSubject$.next(c)),U(c=>i?(o=c,Lt):lt(c)),We(this.destroy$)).subscribe();if(o)throw o;return i=!1,a}}initState(t){nS([t],_c).subscribe(n=>{this.isInitialized=!0,this.stateSubject$.next(n)})}setState(t){typeof t!="function"?this.initState(t):this.updater(t)()}patchState(t){let n=typeof t=="function"?t(this.get()):t;this.updater((i,o)=>u(u({},i),o))(n)}get(t){this.assertStateIsInitialized();let n;return this.stateSubject$.pipe(Oe(1)).subscribe(i=>{n=t?t(i):i}),n}select(...t){let{observablesOrSelectorsObject:n,projector:i,config:o}=y4(t);return(_4(n,i)?this.stateSubject$:Dt(n)).pipe(o.debounce?m4():wO(),i?E(a=>n.length>0&&Array.isArray(a)?i(...a):i(a)):wO(),$i(o.equal),Ct({refCount:!0,bufferSize:1}),We(this.destroy$))}selectSignal(...t){let n=[...t],i=typeof n[t.length-1]=="object"?n.pop():{},o=n.pop(),s=n,a=s.length===0?()=>o(this.state()):()=>{let c=s.map(l=>l());return o(...c)};return Er(a,i)}effect(t){let n=new me;return t(n).pipe(We(this.destroy$)).subscribe(),i=>(tn(i)?i:_(i)).pipe(We(this.destroy$)).subscribe(s=>{n.next(s)})}checkProviderForHooks(){Sm.schedule(()=>{if(_i()&&(CO(this)||TO(this))&&!this.\u0275hasProvider){let t=[CO(this)?"OnStoreInit":"",TO(this)?"OnStateInit":""].filter(n=>n);console.warn(`@ngrx/component-store: ${this.constructor.name} has the ${t.join(" and ")} lifecycle hook(s) implemented without being provided using the provideComponentStore(${this.constructor.name}) function. To resolve this, provide the component store via provideComponentStore(${this.constructor.name})`)}})}assertStateIsInitialized(){if(!this.isInitialized)throw new Error(`${this.constructor.name} has not been initialized yet. Please make sure it is initialized before updating/getting.`)}static{this.\u0275fac=function(n){return new(n||e)(p(g4,8))}}static{this.\u0275prov=h({token:e,factory:e.\u0275fac})}}return e})();function y4(e){let r=Array.from(e),n={debounce:!1,equal:(s,a)=>s===a};if(v4(r[r.length-1])&&(n=u(u({},n),r.pop())),r.length===1&&typeof r[0]!="function")return{observablesOrSelectorsObject:r[0],projector:void 0,config:n};let i=r.pop();return{observablesOrSelectorsObject:r,projector:i,config:n}}function v4(e){let r=e;return typeof r.debounce<"u"||typeof r.equal<"u"}function _4(e,r){return Array.isArray(e)&&e.length===0&&r}function wO(){return e=>e}var k=(function(e){return e.LOADING="LOADING",e.PENDING="PENDING",e.SUCCESS="SUCCESS",e.FAILED="FAILED",e})(k||{});var $p=class extends AO{constructor(){super(...arguments),this.selectLoadingState=this.select(r=>r.loadingState),this.selectIsLoading=this.selectLoadingState.pipe(E(r=>r===k.LOADING))}};function gn(e){return rn(r=>{let t=e(r),n=Array.isArray(t)?t:[t];return _(r).pipe(fr(...n))})}function OO(e,r,t){let n=typeof e=="function"?{next:e,error:r,complete:t}:e;return i=>i.pipe(ge({next:n.next,complete:n.complete}),U(o=>(n.error(o),Lt)),n.finalize?Fo(n.finalize):o=>o)}var MO=class extends $p{constructor(){super(...arguments),this.#e=this.updater((r,{entities:t,pagination:n})=>g(u({},r),{entities:t,pagination:n,loadingState:k.SUCCESS})),this.#t=this.updater((r,t)=>
15g(u({},r),{loadingState:k.LOADING,queryParams:t,errors:void 0})),this.#r=this.updater((r,t)=>g(u({},r),{loadingState:k.FAILED,errors:t})),this.#n=this.updater((r,t)=>g(u({},r),{selectedEntity:t})),this.onQueryParamsChanged=this.updater((r,t)=>g(u({},r),{queryParams:t})),this.selectErrors$=this.select(r=>r.errors),this.selectEntities$=this.select(r=>r.entities),this.selectQueryParams$=this.select(r=>r.queryParams),this.selectPagination$=this.select(r=>r.pagination),this.selectSelectedEntity$=this.select(r=>r.selectedEntity),this.setQueryParams=this.effect(r=>r.pipe(ge(t=>this.onQueryParamsChanged(t)))),this.loadEntities=this.effect(r=>r.pipe(q(t=>t!=null),oS(500),ge(t=>this.#t(t)),P(t=>this.loadData(t).pipe(OO({next:({success:n,error:i,result:o,pagination:s})=>n?this.#e({entities:o,pagination:s}):this.#r([i]),error:n=>this.#r([n])}))))),this.reloadEntities=this.effect(r=>r.pipe(P(()=>this.selectQueryParams$),ge(t=>this.loadEntities(t)))),this.selectEntity=this.effect(r=>r.pipe(ge(()=>this.#n(void 0)),P(t=>this.onSelectEntity(t)),ge(t=>this.#n(t))))}#e;#t;#r;#n;onSelectEntity(r){return _(r)}};var S4={loadingStatus:k.PENDING,domain:void 0,tenant:void 0,selectedLanguage:void 0,toast:void 0},Hp=Zr({name:"appStore",reducer:pe(S4,I(kv.entered,(e,{domain:r,tenant:t})=>(e?.tenant?.id&&e?.tenant.id!==t.id&&(console.warn(`TENANT CHANGED: from ${e.tenant.id} to ${t.id}`),console.warn(`TENANT CHANGED: from ${e.tenant.domain} to ${t.domain}`)),g(u({},e),{domain:r,tenant:t,loadingStatus:k.SUCCESS}))),I(kv.showToastError,(e,{title:r,description:t})=>g(u({},e),{toast:{title:r,description:t}})))});var{selectLoadingStatus:jv,selectDomain:E4,selectTenant:b4,selectSelectedLanguage:D4}=Hp,C4=A(jv,e=>e===k.LOADING),T4=A(jv,e=>e===k.SUCCESS||e===k.FAILED),Uv={selectDomain:E4,selectIsLoaded:T4,selectIsLoading:C4,selectLoadingStatus:jv,selectTenant:b4,selectSelectedLanguage:D4};var RO=(()=>{class e{static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275mod=G({type:e})}static{this.\u0275inj=V({imports:[Qr.forFeature(Hp)]})}}return e})();var pi="[J3|API|DIRECTORIES]",Rt={loadTrigger:w(`${pi} Load trigger`),loadSuccess:w(`${pi} Load success`,L()),loadFailed:w(`${pi} Load failed`,L()),setSelected:w(`${pi} Set selected`,L()),upsertTrigger:w(`${pi} Upsert trigger`,L()),upsertSuccess:w(`${pi} Upsert success`,L()),upsertFailed:w(`${pi} Upsert failed`,L()),deleteTrigger:w(`${pi} Delete trigger`,L()),deleteSuccess:w(`${pi} Delete success`,L()),deleteFailed:w(`${pi} Delete failed`,L())};var zp=Mt(),w4=zp.getInitialState({loadingStatus:k.PENDING,errors:void 0,selectedEntity:void 0}),Wp=Zr({name:"directoriesStore",reducer:pe(w4,I(Rt.loadTrigger,e=>g(u({},e),{loadingStatus:k.LOADING})),I(Rt.loadSuccess,(e,{entity:r})=>zp.addMany(r,g(u({},e),{loadingStatus:k.SUCCESS}))),I(Rt.loadFailed,Rt.upsertFailed,Rt.deleteFailed,(e,{errors:r})=>g(u({},e),{errors:r,loadingStatus:k.FAILED})),I(Rt.setSelected,(e,{entity:r})=>g(u({},e),{selectedEntity:r})),I(Rt.upsertSuccess,(e,{entity:r})=>zp.upsertOne(r,e)),I(Rt.deleteSuccess,(e,{entityId:r})=>zp.removeOne(r,e)))});var{selectLoadingStatus:IO,selectEntities:A4,selectErrors:A0e,selectSelectedEntity:O4}=Wp,O0e=A(IO,e=>e===k.LOADING),M0e=A(IO,e=>e===k.SUCCESS||e===k.FAILED),R0e=A(A4,e=>Object.values(e)),I0e=A(O4,e=>e?.id);var xO=(()=>{class e{constructor(){this.#e=f(de),this.#t=f(Q),this.loadRequested$=Z(()=>this.#e.pipe(X(Rt.loadTrigger),P(()=>this.#r(Ee("files","directories_tree"))),E(t=>t.success?Rt.loadSuccess({entity:Ze(t.result)?[]:t.result}):Rt.loadFailed({errors:[t.error]})),U(t=>_(Rt.loadFailed({errors:[t]}))))),this.upsert$=Z(()=>this.#e.pipe(X(Rt.upsertTrigger),P(({entity:t})=>this.#n(t)),E(t=>t.success?Rt.upsertSuccess({entity:t.result}):Rt.upsertFailed({errors:[t.error]})),U(t=>_(Rt.upsertFailed({errors:[t]}))))),this.delete$=Z(()=>this.#e.pipe(X(Rt.deleteTrigger),P(({entityId:t})=>this.#n({id:t,deletedStatus:1})),E(t=>t.success?Rt.deleteSuccess({entityId:t.result.id}):Rt.deleteFailed({errors:[t.error]})),U(t=>_(Rt.deleteFailed({errors:[t]})))))}#e;#t;#r(t,n){let o=(n||new kt).append("deletedStatus","0");return this.#t.load(t,o).pipe(E(c=>{var l=c,{result:s}=l,a=Or(l,["result"]);return g(u({},a),{result:Ze(s)||!qe(s)?[]:s})}))}#n({id:t,name:n,parentId:i,deletedStatus:o}){return this.#t.save("files",{id:t,name:n,parentId:i,directory:!0,deletedStatus:o})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=h({token:e,factory:e.\u0275fac})}}return e})();var NO=(()=>{class e{static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275mod=G({type:e})}
15static{this.\u0275inj=V({imports:[Qr.forFeature(Wp),xn.forFeature([xO])]})}}return e})();var Za="[J3|API|GDPR]",Nn={loadTrigger:w(`${Za} Load trigger`),loadSuccess:w(`${Za} Load success`,L()),loadFailed:w(`${Za} Load failed`,L()),upsertTrigger:w(`${Za} Upsert trigger`,L()),upsertSuccess:w(`${Za} Upsert success`,L()),upsertFailed:w(`${Za} Upsert failed`,L())};var M4={loadingStatus:k.PENDING,domain:void 0,entity:void 0,errors:void 0},qp=Zr({name:"gdprStore",reducer:pe(M4,I(Nn.loadTrigger,e=>g(u({},e),{loadingStatus:k.LOADING})),I(Nn.loadSuccess,(e,{entity:r})=>g(u({},e),{loadingStatus:k.SUCCESS,entity:r})),I(Nn.loadFailed,(e,{errors:r})=>g(u({},e),{errors:r,loadingStatus:k.FAILED})))});var{selectLoadingStatus:LO,selectDomain:cve,selectEntity:lve,selectErrors:uve}=qp,dve=A(LO,e=>e===k.LOADING),fve=A(LO,e=>e===k.SUCCESS||e===k.FAILED);var Ln={};j(Ln,{AIDomainService:()=>FO,AnalyticsOfstedDomainService:()=>Yp,CalendarEventDomainService:()=>PO,GdprSettingsDomainService:()=>Qa,GeneralSettingsDomainService:()=>Kp,GroupDomainService:()=>kO,GroupTypesDomainService:()=>Jp,MailTemplateDomainService:()=>jO,MobileSettingsDomainService:()=>Zp,MyGroupsDomainService:()=>Qp,PagesListDomainService:()=>Xp,PeopleListDomainService:()=>eh,PermissionDomainService:()=>th,PoliciesGroupsDomainService:()=>UO,PoliciesListDomainService:()=>BO,ProfileDomainService:()=>rh,RegistrationDomainService:()=>VO,ResourcesDomainService:()=>Gl,ResourcesListDomainService:()=>nh,RevisionsDomainService:()=>GO,RouterDomainService:()=>ih,TenantDomainService:()=>oh});var FO=(()=>{class e{constructor(t){this.apiService=t}chat(t,n){let i=n?[{role:"system",content:"Answer the question based on the context below."},{role:"user",content:`Question: ${t} Context: """${n}"""`}]:[{role:"user",content:t}],o={model:"gpt-4o-mini",messages:[{role:"system",content:"Format in HTML using simple tags without head tag"},{role:"system",content:"Replies must ALWAYS be in plain UK English (en-GB) spelling and grammar."},{role:"system",content:"You are a school content creator assistant."},...i],modalities:["text"],n:1,maxCompletionTokens:1e4,store:!1};return this.apiService.save("ai/gpt_chat",o).pipe(P(s=>{let{success:a,error:c,result:l}=s;if(!a)return lt(()=>c);let d=l?.choices?.[0]?.message?.content;return d?_(d):lt(()=>new Error("AI response is empty"))}))}static{this.\u0275fac=function(n){return new(n||e)(p(Q))}}static{this.\u0275prov=h({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var be=class{constructor(r,t){this.resourceName=r,this.apiService=t}get(r,t){return this.apiService.loadSingle(this.resourceName,r,{headers:t})}getAll(r){return this.apiService.load(this.resourceName,r).pipe(E(t=>{let{success:n,error:i}=t;return n||lt(i),t}))}post(r,t){return this.apiService.save(this.resourceName,r,{headers:t}).pipe(E(n=>n.result||n))}put(r,t){return this.apiService.save(this.resourceName,r,{headers:t}).pipe(E(n=>n.result||n))}delete(r,t){return this.apiService.delete(this.resourceName,r).pipe(E(n=>!!n),U(()=>_(!1)))}};var Yp=(()=>{class e extends be{constructor(t,n){super("school_ofsted_reports",t),this.store=n}static{this.\u0275fac=function(n){return new(n||e)(p(Q),p(ae))}}static{this.\u0275prov=h({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var PO=(()=>{class e extends be{constructor(t,n){super("events",n),this.lhsBracketsAdapter=t}removeCalendarEventOne(t){return this.apiService.save("events",t).pipe(ge(({error:n})=>{if(n)throw new Error(n.message)}),E(n=>n.result||n))}getOccurences(t){return this.createApiRequest(t).pipe(P(n=>{let{pagination:i}=n,o=[_(n)];if(i.totalPages>1)for(let s=2;s<=i.totalPages;s++)o.push(this.createApiRequest(g(u({},t||{}),{pagination:g(u({},t?.pagination||{}),{page:s})})));return Dt(o).pipe(E(s=>s.map(a=>a.result).flat()))}))}createApiRequest(t){return this.apiService.load("events_occurrences",this.lhsBracketsAdapter.toQueryParam(t||{}))}static{this.\u0275fac=function(n){return new(n||e)(p(Xt),p(Q))}}static{this.\u0275prov=h({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var Qa=(()=>{class e extends be{constructor(t){super("gdpr/settings",t)}static{this.\u0275fac=function(n){return new(n||e)(p(Q))}}static{this.\u0275prov=h({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var Kp=(()=>{class e extends be{constructor(t){super("tenant/settings",t)}static{this.\u0275fac=function(n){return new(n||e)(p(Q))}}static{this.\u0275prov=h({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var kO=(()=>{class e extends be{constructor(t){super("groups",t)}static{this.\u0275fac=function(n){return new(n||e)(p(Q))}}static{this.\u0275prov=h({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var Jp=(()=>{class e extends be{constructor(t,n){super("group_types",t),this.store=n}static{this.\u0275fac=function(n){return new(n||e)(p(Q),p(ae))}}static{this.\u0275prov=h({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var jO=(()=>{class e extends be{constructor(t){super("mail_templates",t)}delete(t){return this.apiService.delete(this.resourceName,t).pipe(E(()=>!0),U(n=>n?.status===404?_(!0):_(!1)))}static{this.\u0275fac=function(n){return new(n||e)(p(Q))}}static{this.\u0275prov=h({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var Zp=(()=>{class e extends be{constructor(t){super("mobile/settings",t)}static{this.\u0275fac=function(n){return new(n||e)(p(Q))}}static{this.\u0275prov=h({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var Qp=(()=>{class e extends be{constructor(t){super("groups/my",t)}static{this.\u0275fac=function(n){return new(n||e)(p(Q))}}static{this.\u0275prov=h({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var Xp=(()=>{class e extends be{constructor(t,n){super("pages",t),this.store=n}static{this.\u0275fac=function(n){return new(n||e)(p(Q),p(ae))}}static{this.\u0275prov=h({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var eh=(()=>{class e extends be{constructor(t,n){super("groups",t),this.store=n}getProfilesNotBelongToTheGroup(t,n){return this.apiService.load(`groups/${n}/profilesNotBelongToTheGroup`,t).pipe(E(i=>{let{success:o,error:s}=i;return o||lt(s),i}))}static{this.\u0275fac=function(n){return new(n||e)(p(Q),p(ae))}}static{this.\u0275prov=h({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var th=(()=>{class e extends be{constructor(t){super("permissions",t)}getAllPermissions(){return this.apiService.load(this.resourceName).pipe(E(({result:t})=>t.map((n,i)=>({id:`${i}`,value:n}))))}static{this.\u0275fac=function(n){return new(n||e)(p(Q))}}static{this.\u0275prov=h({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var UO=(()=>{class e extends be{constructor(t,n){super("policy_groups",t),this.store=n}static{this.\u0275fac=function(n){return new(n||e)(p(Q),p(ae))}}static{this.\u0275prov=h({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var BO=(()=>{class e extends be{constructor(t){super("policies",t)}getPolicyGroup(t){return this.apiService.loadSingle(`policy_groups/${t}`).pipe(E(n=>{let{success:i,error:o}=n;return i||lt(o),n}))}static{this.\u0275fac=function(n){return new(n||e)(p(Q))}}static{this.\u0275prov=h({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var rh=(()=>{class e extends be{constructor(t){super("profiles/my",t)}getAllProfiles(){return this.apiService.load(Ee("profiles","all")).pipe(P(t=>_(t.result)))}static{this.\u0275fac=function(n){return new(n||e)(p(Q))}}static{this.\u0275prov=h({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var VO=(()=>{class e extends be{constructor(t){super("registration",t)}validateCode(t){let n=new Yt({Anonymous:"true"});return this.apiService.loadSingle(`${this.resourceName}/validate`,t,{headers:n}).pipe(E(i=>typeof i.result=="boolean"&&!!i))}static{this.\u0275fac=function(n){return new(n||e)(p(Q))}}static{this.\u0275prov=h({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var Gl=(()=>{class e extends be{constructor(t){super("resources",t),this.resourceMap=new Map}get(t,n){return this.resourceMap.has(t)?_({result:this.resourceMap.get(t),statusCode:200,success:!0,error:void 0,pagination:{}}):super.get(t).pipe(ge(i=>{console.log("[RESOURCE NOT FOUND IN SCOPE]: ",t),i.success&&this.set(t,i.result)}))}set(t,n){this.resourceMap.set(t,n)}static{this.\u0275fac=function(n){return new(n||e)(p(Q))}}static{this.\u0275prov=h({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var nh=(()=>{class e extends be{constructor(t){super("resource_lists",t),this.resourceMap=new Map}get(t,n){return this.resourceMap.has(t)?_({result:this.resourceMap.get(t),statusCode:200,success:!0,error:void 0,pagination:{}}):super.get(t).pipe(ge(i=>{console.log("[RESOURCE NOT FOUND IN SCOPE]: ",t),i.success&&this.set(t,i.result)}))}set(t,n){this.resourceMap.set(t,n)}static{this.\u0275fac=function(n){return new(n||e)(p(Q))}}static{this.\u0275prov=h({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var GO=(()=>{class e extends be{constructor(t,n){super("revisions",t),this.store=n}static{this.\u0275fac=function(n){return new(n||e)(p(Q),p(ae))}}static{this.\u0275prov=h({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var ih=(()=>{class e{constructor(t,n){this.router=t,this.route=n,this.destroyRef=f(_t)}loadrouterData(){return this.router.events.pipe(Yr(this.destroyRef),q(t=>t instanceof Hr),E(()=>
15this.route.snapshot),E(t=>{for(;t.firstChild;)t=t.firstChild;return t}))}static{this.\u0275fac=function(n){return new(n||e)(p(Wr),p(zr))}}static{this.\u0275prov=h({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var oh=(()=>{class e extends be{constructor(t){super("tenants",t)}signInToSubOrganisation(t){return this.apiService.loadSingle(Ee("auth","tenant",t,"sign-in"))}static{this.\u0275fac=function(n){return new(n||e)(p(Q))}}static{this.\u0275prov=h({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var $O=(()=>{class e{constructor(){this.#e=f(de),this.#t=f(Qa),this.loadRequested$=Z(()=>this.#e.pipe(X(Nn.loadTrigger),P(()=>this.#t.get("")),E(t=>t.success?Nn.loadSuccess({entity:t.result}):Nn.loadFailed({errors:[t.error]}),U(t=>_(Nn.loadFailed({errors:[t]})))))),this.upsertRequested$=Z(()=>this.#e.pipe(X(Nn.upsertTrigger),P(({entity:t})=>this.#t.put(t)),E(t=>Nn.upsertSuccess({entity:t})),U(t=>_(Nn.upsertFailed({errors:[t]})))))}#e;#t;static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=h({token:e,factory:e.\u0275fac})}}return e})();var HO=(()=>{class e{static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275mod=G({type:e})}static{this.\u0275inj=V({imports:[Qr.forFeature(qp),xn.forFeature([$O])]})}}return e})();var Ui="[J3|API|SITES]",bt={loadTrigger:w(`${Ui} Load trigger`,L()),loadSuccess:w(`${Ui} Load success`,L()),loadFailed:w(`${Ui} Load failed`,L()),updateTrigger:w(`${Ui} Update trigger`,L()),updateSuccess:w(`${Ui} Update success`,L()),updateFailed:w(`${Ui} Update failed`,L()),updateSuccessAndReset:w(`${Ui} Update success and reset`),cookiesAccepted:w(`${Ui} Cookies accepted`),cookiesHasBeenShown:w(`${Ui} Cookies has been shown`)};var R4={loadingStatus:k.PENDING,domain:void 0,entity:void 0,errors:void 0,cookiesAccepted:!1,cookiesHasBeenShown:!1},sh=Zr({name:"siteStore",reducer:pe(R4,I(bt.loadTrigger,(e,{domain:r})=>g(u({},e),{domain:r,loadingStatus:k.LOADING})),I(bt.loadSuccess,(e,{entity:r})=>g(u({},e),{loadingStatus:k.SUCCESS,entity:r})),I(bt.cookiesAccepted,e=>g(u({},e),{cookiesAccepted:!0})),I(bt.cookiesHasBeenShown,e=>g(u({},e),{cookiesHasBeenShown:!0})),I(bt.updateTrigger,e=>g(u({},e),{loadingStatus:k.LOADING})),I(bt.updateSuccess,(e,{entity:r})=>g(u({},e),{entity:u(u({},e.entity),r),loadingStatus:k.SUCCESS})),I(bt.updateSuccessAndReset,e=>g(u({},e),{loadingStatus:k.PENDING})),I(bt.loadFailed,bt.updateFailed,(e,{errors:r})=>g(u({},e),{errors:r,loadingStatus:k.FAILED})))});var{selectLoadingStatus:Bv,selectDomain:I4,selectEntity:zO,selectErrors:x4,selectCookiesAccepted:N4,selectCookiesHasBeenShown:L4}=sh,F4=A(Bv,e=>e===k.LOADING),P4=A(Bv,e=>e===k.SUCCESS||e===k.FAILED),k4=A(zO,e=>e?.id),ct={selectCookiesAccepted:N4,selectCookiesHasBeenShown:L4,selectEntity:zO,selectDomain:I4,selectErrors:x4,selectIsLoaded:P4,selectIsLoading:F4,selectLoadingStatus:Bv,selectSiteId:k4};var $l={};j($l,{AdditionalEntityCollectionReducerMethods:()=>Xa,AdditionalEntityCollectionReducerMethodsFactory:()=>ah,AdditionalPersistenceResultHandler:()=>ch,CustomHttpUrlGenerator:()=>Zn,EntityDataConfig:()=>WO,ModuleOptionsInjectionToken:()=>$t,NGRX_STATE_KEY:()=>qO,STATE_CALLBACK:()=>YO,StoreDataServiceConfig:()=>ph,clearStateMetaReducer:()=>fh,escapeHTMLStringInState:()=>uh,escapeHtml:()=>lh,genenrateStoreModuleConfig:()=>KO,resetStateAction:()=>Gv,unescapeHTMLStringInState:()=>dh,unescapeHtml:()=>$v});var $t=new R("api-connector-module-config");var Zn=(()=>{class e extends Ov{constructor(t,n,i){super(i),this.pluralizerService=i,this.COLLECTIONS_ENDPOINTS_MAP={},this.COLLECTIONS_ENDPOINTS_MAP=this.initializeCollectionsEndpointsMap(t,n)}getResourceUrls(t,n){let i=this.knownHttpResourceUrls[t];if(!i){let o=Mv(this.COLLECTIONS_ENDPOINTS_MAP[t]||n);i={entityResourceUrl:`${o}/${this.pluralizerService.pluralize(t)}/`.toLowerCase(),collectionResourceUrl:`${o}/${this.pluralizerService.pluralize(t)}`.toLowerCase()},this.registerHttpResourceUrls({[t]:i})}return i}initializeCollectionsEndpointsMap(t,n){let{DB_URL:i,THEMES_API:o,DB_URL_VPC:s}=t,a=te(n)&&s?s:i;return{AudioNewsletter:a,AudioNewsletterAvailableLanguage:a,Letter:a,Link:a,MarketingLightbox:a,Category:a,Group:a,Profile:a,Notice:a,New:a,Page:a,Site:a,Template:o,GeneralSettings:a,CalendarEvents:a,Gallery:a,TenantDomain:a,Page_content:a,Slideshow:a,Form:a,FormField:a,Form_Submition:a,Tenants:a,Group_Type:a,Group_Members:a,Group_Membership:a,Add_Group_Membership:a,Profile_Contacts:a,Contact_Relation:a,Files:a,Group_Type_List:a,MisList:a,MobileSetting:a,Revision:a,Event:a,Session:a,Session_Slot:a,Session_Participant:a,Subscription:a,NewsletterSendDetails:a,Analytics_ofsted:a,Analytics_files:a,Analytics_pages:a,Analytics_pages_log:a,Analytics_pages_log_ofsted_detection:a,Policy_groups:a,Policies:a}}static{this.\u0275fac=function(n){return new(n||e)(p($t),p(ie),p(Ya))}}static{this.\u0275prov=h({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var re={pagination:null},j4={AudioNewsletter:{additionalCollectionState:re},AudioNewsletterAvailableLanguage:{additionalCollectionState:re},Letter:{additionalCollectionState:re},Category:{additionalCollectionState:re},Group:{additionalCollectionState:re},Link:{additionalCollectionState:re},MarketingLightbox:{additionalCollectionState:re},Profile:{additionalCollectionState:re},Notice:{additionalCollectionState:re},New:{additionalCollectionState:re},Page:{additionalCollectionState:re},Site:{additionalCollectionState:re},Template:{selectId:e=>e.name},Calendar:{additionalCollectionState:re},Gallery:{additionalCollectionState:re},TenantDomain:{additionalCollectionState:re},Role:{additionalCollectionState:re},Page_contents:{additionalCollectionState:re},Slideshow:{additionalCollectionState:re},Form:{additionalCollectionState:re},FormField:{additionalCollectionState:re},Form_Submition:{additionalCollectionState:re},Tenant:{additionalCollectionState:re},Group_Type:{additionalCollectionState:re},AddGroupMember:{additionalCollectionState:re},Group_Members:{additionalCollectionState:re},Group_Membership:{additionalCollectionState:re},Add_Group_Membership:{additionalCollectionState:re},File:{additionalCollectionState:re},Group_Type_List:{additionalCollectionState:re},Profile_Contacts:{additionalCollectionState:re},Profile_Students:{additionalCollectionState:re},Contact_Relation:{additionalCollectionState:re},MisList:{selectId:e=>e.name,additionalCollectionState:re},MisMatched:{additionalCollectionState:re},MisIgnored:{additionalCollectionState:re},SitePages:{additionalCollectionState:re},MobileSettings:{additionalCollectionState:re},Revision:{additionalCollectionState:re},Event:{additionalCollectionState:re},Session:{additionalCollectionState:re},Session_Slot:{additionalCollectionState:re},Session_Participant:{additionalCollectionState:re},Subscription:{additionalCollectionState:re},NewsletterSendDetails:{additionalCollectionState:re},Analytics_ofsted:{additionalCollectionState:re},Analytics_files:{additionalCollectionState:re},Analytics_pages:{additionalCollectionState:re},Analytics_pages_log:{additionalCollectionState:re},Analytics_pages_log_ofsted_detection:{additionalCollectionState:re},Policy_groups:{additionalCollectionState:re},Policy_groups_shared:{additionalCollectionState:re},Policies:{additionalCollectionState:re},LinkedAccounts:{additionalCollectionState:re},MetaPageAuthToken:{additionalCollectionState:re},InstagramAuthToken:{additionalCollectionState:re}},Vv={AudioNewsletter:"audio_newsletters",AudioNewsletterAvailableLanguage:"audio_newsletter_available_languages",TenantDomain:"tenant_domains",Add_Group_Membership:"group_memberships/:id",Profile_Contacts:"profiles/:id/contacts",Profile_Students:"profiles/:id/students",MisList:"missync/info",MisIgnored:"missync/ignored/:syncKey",MisMatched:"missync/:syncKey",Form_Submition:"forms/:id/submitted",Revision:"pages/:id/contents",Event:"peevents",Session:"sessions",Session_Slot:"session_slots",Session_Participant:"session_participants",Subscription:"email_subscriptions",NewsletterSendDetails:"letter_sends",Analytics_ofsted:"school_ofsted_reports",Analytics_files:"file_stats",Analytics_pages:"page_stats_dailies",Analytics_pages_log:"page_stats",Analytics_pages_log_ofsted_detection:"page_stats",Policy_groups:"policy_groups",Policy_groups_shared:"policy_groups/shared",Policies:"policies",LinkedAccounts:"linked_accounts",MarketingLightbox:"marketing_lightboxes",MetaPageAuthToken:"meta_page_auth_tokens",InstagramAuthToken:"instagram_auth_tokens"},WO={entityMetadata:j4,pluralNames:Vv};var Xa=class extends Ul{constructor(r,t){super(r,t),this.entityName=r,this.definition=t}queryManySuccess(r,t){return this.withPagination(super.queryLoadSuccess(r,t),t)}queryAllSuccess(r,t){return this.withPagination(super.queryLoadSuccess(r,t),t)}queryLoadSuccess(r,t){return this.withPagination(super.queryLoadSuccess(r,t),t)}withPagination(r,t){return t.payload.pagination&&(r.pagination=t.payload.pagination),r}};var ah=(()=>{class e{constructor(t){this.entityDefinitionService=t}create(t){let n=this.entityDefinitionService.getDefinition(t);return new Xa(t,n).methods}static{this.\u0275fac=function(n){return new(n||e)(p(ms))}}static{this.\u0275prov=h({token:e,factory:e.\u0275fac})}}return e})();var U4=new Set([x.QUERY_ALL_SUCCESS,x.QUERY_LOAD_SUCCESS,x.QUERY_MANY_SUCCESS]),ch=(()=>{class e extends Rv{handleSuccess(t){let n=super.handleSuccess(t);return i=>{let o=this.normalizeSuccessData(i),s=n.call(this,o);if(s&&o?.pagination&&(s.payload.pagination=o.pagination),s&&o!=null&&"result"in o){let a=s.payload?.entityOp;if(U4.has(a)){let c=o.result;s.payload.data=Array.isArray(c)?c:c==null?[]:[c]}else s.payload.data=o.result}return s}}normalizeSuccessData(t){return t==null?null:typeof t=="object"?t:{result:t}}static{this.\u0275fac=(()=>{let t;return function(i){return(t||(t=Le(e)))(i||e)}})()}static{this.\u0275prov=h({token:e,factory:e.\u0275fac})}}return e})();var qO="NGRX_APP_STATE",Gv=w("[Meta] Reset State"),YO=new R("STATE_CALLBACK"),fh=e=>(r,t)=>(t?.type===Gv.type&&(r=void 0),e(r,t));var lh=e=>{let r={"&":"&a;",'"':"&q;","'":"&s;","<":"&l;",">":"&g;","\u2019":"&rs;"};return e.replace(/[&"'<>’]/g,t=>r[t])},$v=e=>{let r={"&a;":"&","&q;":'"',"&s;":"'","&l;":"<","&g;":">","&rs;":"\u2019"};return e.replace(/&[^;]+;/g,t=>r[t])},uh=(e,r={})=>
15{if(Ze(e))return e;if(typeof e!="object")return typeof e=="string"?lh(e):e;for(let t of Object.keys(e))if(!Ze(e[t])){if(typeof e[t]=="string"){try{r[t]=lh(e[t])}catch(n){console.error(`Cannot convert value in key "${t}"`,n)}continue}if(typeof e[t]=="object"){if(Array.isArray(e[t])){r[t]=[];for(let n of(e[t]||[]).keys())r[t].push(uh(e[t][n]));continue}r[t]=uh(u({},e[t]));continue}r[t]=e[t]}return r},dh=e=>{if(Ze(e))return e;for(let r of Object.keys(e))if(!Ze(e[r])){if(typeof e[r]=="string")try{e[r]=$v(e[r])}catch(t){}if(typeof e[r]=="object"&&B4(e,r)){if(Array.isArray(e[r])){for(let t of(e[r]||[]).keys())e[r][t]=dh(e[r][t]);continue}e[r]=dh(u({},e[r]))}}return e},B4=(e,r)=>{let t=Object.getOwnPropertyDescriptor(e,r)||Object.getOwnPropertyDescriptor(Object.getPrototypeOf(e),r)||{};return t.writable?!!t.writable:(e=Object.defineProperty(e,r,{value:e[r]}),(Object.getOwnPropertyDescriptor(e,r)||Object.getOwnPropertyDescriptor(Object.getPrototypeOf(e),r)||{})?.writable)};var KO=()=>({runtimeChecks:{strictActionSerializability:!0,strictStateImmutability:!0,strictStateSerializability:!0,strictActionImmutability:!0},metaReducers:[fh]});var ph=(()=>{class e extends wo{constructor(t,n){super();let{DB_URL:i,DB_URL_VPC:o}=t;this.root=te(n)&&o?o:i}static{this.\u0275fac=function(n){return new(n||e)(p($t),p(ie))}}static{this.\u0275prov=h({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var hh="J3_SITE_STATE";function ZO(e,r,t){if(!ut(e)||!r?.hasKey(hh))return;let n=r.get(hh,void 0);if(r.remove(hh),!(!n||JO(n.domain)!==JO(t)))return n.entity}function QO(e,r,t,n){!te(e)||!r||r.set(hh,{domain:XO(t),entity:n})}function XO(e){let r=e.trim().toLowerCase();return r.startsWith("www.")?r.slice(4):r}function JO(e){return XO(e)}var eM=(()=>{class e{constructor(){this.#e=f(ae),this.#t=f(de),this.#r=f(Q),this.#n=f($t),this.#i=f(ie),this.#o=f(Ft,{optional:!0}),this.loadSiteRequested$=Z(()=>this.#t.pipe(X(bt.loadTrigger),P(({domain:t})=>{let n=ZO(this.#i,this.#o,t);return n?_(bt.loadSuccess({entity:n})):this.#r.loadSingle(Ee("sites","domain",t),void 0,{headers:new Yt({XTenantIgnore:"true"})}).pipe(E(i=>i.success?(te(this.#i)&&QO(this.#i,this.#o,t,i.result),bt.loadSuccess({entity:i.result})):bt.loadFailed({errors:[i.error]})))}),U(t=>_(bt.loadFailed({errors:[t]}))))),this.updateSiteRequested$=Z(()=>this.#t.pipe(X(bt.updateTrigger),gn(()=>this.#e.select(ct.selectSiteId)),P(([{entity:t},n])=>this.#r.save(Ee("sites"),u({id:n},t))),E(t=>bt.updateSuccess({entity:t.result})),U(t=>_(bt.updateFailed({errors:[t]}))))),this.updateSuccessAndReset=Z(()=>this.#t.pipe(X(bt.updateSuccess),dr(100),E(()=>bt.updateSuccessAndReset())))}#e;#t;#r;#n;#i;#o;static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=h({token:e,factory:e.\u0275fac})}}return e})();var tM=(()=>{class e{static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275mod=G({type:e})}static{this.\u0275inj=V({imports:[Qr.forFeature(sh),xn.forFeature([eM])]})}}return e})();var gs="[J3|API|SITE SETTINGS]",xt={loadTrigger:w(`${gs} Load trigger`,L()),loadSuccess:w(`${gs} Load success`,L()),loadFailed:w(`${gs} Load failed`,L()),updateTrigger:w(`${gs} Update trigger`,L()),updateSuccess:w(`${gs} Update success`,L()),updateFailed:w(`${gs} Update failed`,L()),updateSuccessAndReset:w(`${gs} Update success and reset`)};var V4={loadingStatus:k.PENDING,siteId:void 0,entity:void 0,errors:void 0},mh=Zr({name:"siteSettingsStore",reducer:pe(V4,I(xt.loadTrigger,(e,{siteId:r})=>g(u({},e),{siteId:r,loadingStatus:k.LOADING})),I(xt.loadSuccess,(e,{entity:r})=>g(u({},e),{loadingStatus:k.SUCCESS,entity:r})),I(xt.updateTrigger,e=>g(u({},e),{loadingStatus:k.LOADING})),I(xt.updateSuccess,(e,{entity:r})=>g(u({},e),{entity:g(u(u({},e.entity),r),{popupSettings:r.popupSettings?u(u({},e.entity?.popupSettings),r.popupSettings):e.entity?.popupSettings}),loadingStatus:k.SUCCESS})),I(xt.updateSuccessAndReset,e=>g(u({},e),{loadingStatus:k.PENDING})),I(xt.loadFailed,xt.updateFailed,(e,{errors:r})=>g(u({},e),{errors:r,loadingStatus:k.FAILED})))});var{selectLoadingStatus:Hv,selectSiteId:G4,selectEntity:$4,selectErrors:H4}=mh,z4=A(Hv,e=>e===k.LOADING),W4=A(Hv,e=>e===k.SUCCESS||e===k.FAILED),zv={selectEntity:$4,selectSiteId:G4,selectErrors:H4,selectIsLoaded:W4,selectIsLoading:z4,selectLoadingStatus:Hv};var q4=/data:image\/[a-zA-Z0-9+.-]+;base64,/i;function rM(e){return g(u({},e),{popupSettings:K4(e.popupSettings)})}function Y4(e){return!!e&&q4.test(e)}function K4(e){if(!Y4(e.text))return e;let n=e,{text:r}=n;return Or(n,["text"])}function Cr(e){return e.trim().toLowerCase()}function Fn(e){let r=(e??"").trim();if(!r.length)return"";let t=r;try{t=decodeURIComponent(r)}catch(n){t=r}return t.replace(/^\/+|\/+$/g,"").toLowerCase()}function gh(e){return e.trim().toLowerCase()}var yh="J3_SITE_SETTINGS_STATE";function nM(e,r,t){if(!ut(e)||!r?.hasKey(yh))return;let n=r.get(yh,void 0);if(r.remove(yh),!(!n||Cr(n.siteId)!==Cr(t)))return n.entity}function iM(e,r,t,n){!te(e)||!r||r.set(yh,{siteId:Cr(t),entity:rM(n)})}function J4(e,r){let t=r??{};return g(u(u({},t),e),{popupSettings:u(u({},t.popupSettings),e.popupSettings)})}var oM=(()=>{class e{constructor(){this.#e=f(de),this.#t=f(ae),this.#r=f(Q),this.#n=f($t),this.#i=f(ie),this.#o=f(Ft,{optional:!0}),this.loadSiteSettingsRequested$=Z(()=>this.#e.pipe(X(xt.loadTrigger),P(({siteId:t})=>{let n=nM(this.#i,this.#o,t);return n?_(xt.loadSuccess({entity:n})):this.#r.loadSingle(Ee("sites",t,"settings"),void 0).pipe(E(i=>i.success?(te(this.#i)&&iM(this.#i,this.#o,t,i.result),xt.loadSuccess({entity:i.result})):xt.loadFailed({errors:[i.error]})),U(i=>_(xt.loadFailed({errors:[i]}))))}
15))),this.updateSiteSettingsRequested=Z(()=>this.#e.pipe(X(xt.updateTrigger),gn(()=>this.#t.select(ct.selectSiteId)),P(([{entity:t},n])=>this.#r.save(Ee("sites",n,"settings"),t).pipe(E(i=>xt.updateSuccess({entity:J4(t,i.result)})),U(i=>_(xt.updateFailed({errors:[i]}))))))),this.updateSuccessAndReset=Z(()=>this.#e.pipe(X(xt.updateSuccess),dr(100),E(()=>xt.updateSuccessAndReset())))}#e;#t;#r;#n;#i;#o;static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=h({token:e,factory:e.\u0275fac})}}return e})();var sM=(()=>{class e{static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275mod=G({type:e})}static{this.\u0275inj=V({imports:[Qr.forFeature(mh),xn.forFeature([oM])]})}}return e})();var ys="[J3|API|SITE SLIDESHOWS]",cr={loadTrigger:w(`${ys} Load trigger`,L()),loadSuccess:w(`${ys} Load success`,L()),loadFailed:w(`${ys} Load failed`,L()),updateTrigger:w(`${ys} Update trigger`,L()),updateSuccess:w(`${ys} Update success`,L()),updateFailed:w(`${ys} Update failed`,L()),updateSuccessAndReset:w(`${ys} Update success and reset`)};var Z4={loadingStatus:k.PENDING,siteId:void 0,entity:void 0,errors:void 0},vh=Zr({name:"siteSlideshowsStore",reducer:pe(Z4,I(cr.loadTrigger,(e,{siteId:r})=>g(u({},e),{siteId:r,loadingStatus:k.LOADING})),I(cr.loadSuccess,(e,{entity:r})=>g(u({},e),{loadingStatus:k.SUCCESS,entity:r})),I(cr.updateTrigger,e=>g(u({},e),{loadingStatus:k.LOADING})),I(cr.updateSuccess,(e,{entity:r})=>g(u({},e),{entity:u(u({},e.entity),r),loadingStatus:k.SUCCESS})),I(cr.updateSuccessAndReset,e=>g(u({},e),{loadingStatus:k.PENDING})),I(cr.loadFailed,cr.updateFailed,(e,{errors:r})=>g(u({},e),{errors:r,loadingStatus:k.FAILED})))});var{selectLoadingStatus:aM,selectSiteId:DDe,selectEntity:CDe,selectErrors:TDe}=vh,wDe=A(aM,e=>e===k.LOADING),ADe=A(aM,e=>e===k.SUCCESS||e===k.FAILED);var cM=(()=>{class e{constructor(){this.#e=f(de),this.#t=f(ae),this.#r=f(Q),this.#n=f(Xt),this.loadSiteSlideshowsRequested$=Z(()=>this.#e.pipe(X(cr.loadTrigger),P(({siteId:t})=>this.#i(t)),P(t=>t.length?this.#s(t[0].id):_({success:!0,result:void 0,error:void 0})),E(t=>t.success?cr.loadSuccess({entity:t.result}):cr.loadFailed({errors:[t.error]})))),this.updateSiteSlideshowsRequested=Z(()=>this.#e.pipe(X(cr.updateTrigger),gn(()=>this.#t.select(ct.selectSiteId)),P(([{entity:t},n])=>this.#r.save(Ee("slideshows"),g(u({},t),{site:n}))),E(t=>cr.updateSuccess({entity:t.result})),U(t=>_(cr.updateFailed({errors:[t]}))))),this.updateSuccessAndReset=Z(()=>this.#e.pipe(X(cr.updateSuccess),dr(100),E(()=>cr.updateSuccessAndReset())))}#e;#t;#r;#n;#i(t){let n={filters:[{operator:ar.Operator.EQ,property:"site",type:ar.FilterType.SEARCH,value:t}],pagination:{page:1,size:1}};return this.#o(n).pipe(P(i=>i?.length>0?_(i):this.#o(g(u({},n),{filters:[...n.filters,{operator:ar.Operator.EMPTY,property:"deletedStatus",type:ar.FilterType.NUMERIC,value:1}]}))))}#o(t){return this.#r.load("slideshows",this.#n.toQueryParam(t)).pipe(E(n=>n?.result??[]))}#s(t){return this.#r.loadSingle("slideshows",t)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=h({token:e,factory:e.\u0275fac})}}return e})();var lM=(()=>{class e{static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275mod=G({type:e})}static{this.\u0275inj=V({imports:[Qr.forFeature(vh),xn.forFeature([cM])]})}}return e})();var Wv="[J3|API|TEMPLATES]",yn={loadTrigger:w(`${Wv} Load trigger`,L()),loadSuccess:w(`${Wv} Load success`,L()),loadFailed:w(`${Wv} Load failed`,L())};var uM=Mt(),Q4=uM.getInitialState({loadingStatus:k.PENDING,errors:void 0}),_h=Zr({name:"templatesStore",reducer:pe(Q4,I(yn.loadTrigger,e=>g(u({},e),{loadingStatus:k.LOADING})),I(yn.loadSuccess,(e,{entity:r})=>uM.addMany(r,g(u({},e),{loadingStatus:k.SUCCESS}))),I(yn.loadFailed,(e,{errors:r})=>g(u({},e),{errors:r,loadingStatus:k.FAILED})))});var{selectLoadingStatus:qv,selectEntities:X4,selectErrors:e5}=_h,t5=A(qv,e=>e===k.LOADING),r5=A(qv,e=>e===k.SUCCESS||e===k.FAILED),dM=A(X4,e=>Object.values(e)),n5=A(dM,e=>e.map(r=>{let t=[],o=r,{variants:n}=o,i=Or(o,["variants"]);for(let s of n)t.push(g(u({},i),{name:s.name?`${i.name} (${s.name})`:i.name,styles:[s.path]}));return t}).flat()),Hl={selectEntities:dM,selectEntitiesWithVariants:n5,selectErrors:e5,selectIsLoaded:r5,selectIsLoading:t5,selectLoadingStatus:qv};function fM(e,r){let t=r?.trim();if(!t)return e;let n=o5(t);return e.map(i=>i5(i,n))}function i5(e,r){let t=e.variants;if(!t?.length)return e;let n=t.filter(s=>!s.name?.trim()),i=r?t.filter(s=>s.name?.trim().toLowerCase()===r.toLowerCase()):[];if(r&&i.length===0)return e;let o=[...n,...i];return o.length?g(u({},e),{variants:o}):e}function o5(e){let r=e.indexOf(" (");if(r<0||!e.endsWith(")"))return;let t=e.slice(r+2,-1).trim();return t.length?t:void 0}var Sh="J3_TEMPLATES_STATE";function pM(e,r){if(!ut(e)||!r?.hasKey(Sh))return;let t=r.get(Sh,[]);return r.remove(Sh),t}function hM(e,r,t,n){!te(e)||!r||r.set(Sh,fM(t,n))}var mM=(()=>{class e{#e;#t;#r;constructor(t,n){this.moduleConfig=t,this.http=n,this.#e=f(de),this.#t=f(ie),this.#r=f(Ft,{optional:!0}),this.loadRequested$=Z(()=>this.#e.pipe(X(yn.loadTrigger),Os(i=>{let o=pM(this.#t,this.#r);
15if(o)return _(yn.loadSuccess({entity:o}));let s=i.themeName?.trim(),a=s?Ee("templates",encodeURIComponent(s)):"/templates";return this.load(a).pipe(E(c=>{if(!c.success)return yn.loadFailed({errors:[c.error??new Error("Templates request failed")]});let l=[];return(c.result??[]).forEach((d,m)=>{l.push(g(u({},d),{id:m.toString()}))}),te(this.#t)&&hM(this.#t,this.#r,l,s),yn.loadSuccess({entity:l})}),U(c=>_(yn.loadFailed({errors:[c]}))))})))}load(t,n){let i=this.moduleConfig.THEMES_API;return this.http.get(Ee(i,t),{params:n}).pipe(E(o=>{let{result:s}=o;return s?o:{result:o,pagination:{},statusCode:200,success:!0,error:void 0}}),E(o=>g(u({},o),{success:!0,statusCode:200})),U(o=>{let{error:s,status:a}=o;return _({result:[],pagination:{},statusCode:a,error:s,success:!1})}))}static{this.\u0275fac=function(n){return new(n||e)(p($t),p(At))}}static{this.\u0275prov=h({token:e,factory:e.\u0275fac})}}return e})();var gM=(()=>{class e{static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275mod=G({type:e})}static{this.\u0275inj=V({imports:[Qr.forFeature(_h),xn.forFeature([mM])]})}}return e})();var Qn={};j(Qn,{AudioNewsletterAvailableLanguagesCollectionService:()=>yM,AudioNewsletterTranslationsCollectionService:()=>vM,AudioNewslettersCollectionService:()=>_M,CalendarCollectionService:()=>Yv,CategoriesCollectionService:()=>Kv,ContactRelationsCollectionService:()=>SM,EventsCollectionService:()=>EM,FilesCollectionService:()=>bM,FormFieldCollectionService:()=>DM,FormsCollectionService:()=>CM,GalleriesCollectionService:()=>Jv,GroupMembershipCollectionService:()=>TM,GroupTypesCollectionService:()=>wM,GroupsCollectionService:()=>AM,LettersCollectionService:()=>OM,LinksCollectionService:()=>MM,MarketingLightboxCollectionService:()=>RM,MisIgnoredCollectionService:()=>xM,MisMatchedCollectionService:()=>IM,MisSyncCollectionService:()=>Zv,NewsCollectionService:()=>Qv,NoticesCollectionService:()=>NM,PagesCollectionService:()=>LM,PagesContentCollectionService:()=>vs,PagesContentUpdateCollectionService:()=>_s,PagesListCollectionService:()=>FM,PaginatedEntityCollectionServiceBase:()=>ee,PoliciesCollectionService:()=>PM,ProfileContactsCollectionService:()=>kM,ProfilesCollectionService:()=>jM,RolesCollectionService:()=>Xv,SessionParticipantsCollectionService:()=>UM,SessionSlotsCollectionService:()=>BM,SessionsCollectionService:()=>VM,SitesCollectionService:()=>Ss,SitesSettingsService:()=>GM,SlideshowCollectionService:()=>$M,SubscriptionsCollectionService:()=>HM,TenantDomainCollectionService:()=>e_,TenantsCollectionService:()=>zM});var ee=class extends hs{};var Yv=(()=>{class e extends ee{constructor(t){super("Calendar",t)}static{this.\u0275fac=function(n){return new(n||e)(p(W))}}static{this.\u0275prov=h({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var yM=(()=>{class e extends ee{constructor(t){super("AudioNewsletterAvailableLanguage",t)}static{this.\u0275fac=function(n){return new(n||e)(p(W))}}static{this.\u0275prov=h({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var vM=(()=>{class e{#e=f(Q);getByAudioNewsletterId(t){let n=this.#e.generateParams({audioNewsletterId:t});return this.#e.load("audio_newsletter_translations",n).pipe(E(i=>i.result??[]))}invokeTextToVoiceGeneration(t){return this.#e.loadSingle("audio_newsletter_translations",`${t}/invoke_text_to_voice_generation`)}invokeTextTranslation(t){return this.#e.loadSingle("audio_newsletter_translations",`${t}/invoke_text_translation`)}updateTranslatedText(t,n){return this.#e.save("audio_newsletter_translations",{id:t,translatedText:n})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=h({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var _M=(()=>{class e extends ee{constructor(t){super("AudioNewsletter",t)}static{this.\u0275fac=function(n){return new(n||e)(p(W))}}static{this.\u0275prov=h({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var Kv=(()=>{class e extends ee{constructor(t){super("Category",t)}static{this.\u0275fac=function(n){return new(n||e)(p(W))}}static{this.\u0275prov=h({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var SM=(()=>{class e extends ee{constructor(t){super("Contact_Relations",t)}static{this.\u0275fac=function(n){return new(n||e)(p(W))}}static{this.\u0275prov=h({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var EM=(()=>{class e extends ee{constructor(t){super("Event",t)}static{this.\u0275fac=function(n){return new(n||e)(p(W))}}static{this.\u0275prov=h({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var Tr=class extends ee{changeDraftState(r,t){let n={id:r,draftState:t};return this.update(n)}changeDraftStatus(r,t){let n={id:r,draftStatus:t};return this.update(n)}};var bM=(()=>{class e extends Tr{constructor(t){super("File",t)}static{this.\u0275fac=function(n){return new(n||e)(p(W))}}static{this.\u0275prov=h({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var DM=(()=>{class e extends Tr{constructor(t){super("FormField",t)}static{this.\u0275fac=function(n){return new(n||e)(p(W))}}static{this.\u0275prov=h({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();
15var CM=(()=>{class e extends ee{constructor(t){super("Form",t)}static{this.\u0275fac=function(n){return new(n||e)(p(W))}}static{this.\u0275prov=h({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var Jv=(()=>{class e extends ee{constructor(t){super("Gallery",t)}static{this.\u0275fac=function(n){return new(n||e)(p(W))}}static{this.\u0275prov=h({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var TM=(()=>{class e extends ee{constructor(t){super("Group_Membership",t)}static{this.\u0275fac=function(n){return new(n||e)(p(W))}}static{this.\u0275prov=h({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var wM=(()=>{class e extends ee{constructor(t){super("Group_Type",t)}static{this.\u0275fac=function(n){return new(n||e)(p(W))}}static{this.\u0275prov=h({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var AM=(()=>{class e extends ee{constructor(t){super("Group",t)}static{this.\u0275fac=function(n){return new(n||e)(p(W))}}static{this.\u0275prov=h({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var OM=(()=>{class e extends Tr{constructor(t){super("Letter",t)}static{this.\u0275fac=function(n){return new(n||e)(p(W))}}static{this.\u0275prov=h({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var MM=(()=>{class e extends ee{constructor(t){super("Link",t)}static{this.\u0275fac=function(n){return new(n||e)(p(W))}}static{this.\u0275prov=h({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var RM=(()=>{class e extends ee{constructor(t){super("MarketingLightbox",t)}static{this.\u0275fac=function(n){return new(n||e)(p(W))}}static{this.\u0275prov=h({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var Zv=(()=>{class e extends ee{constructor(t){super("MisList",t)}static{this.\u0275fac=function(n){return new(n||e)(p(W))}}static{this.\u0275prov=h({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),IM=(()=>{class e extends ee{constructor(t){super("mismatched",t)}static{this.\u0275fac=function(n){return new(n||e)(p(W))}}static{this.\u0275prov=h({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),xM=(()=>{class e extends ee{constructor(t){super("misignored",t)}static{this.\u0275fac=function(n){return new(n||e)(p(W))}}static{this.\u0275prov=h({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var Qv=(()=>{class e extends Tr{constructor(t){super("New",t)}static{this.\u0275fac=function(n){return new(n||e)(p(W))}}static{this.\u0275prov=h({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var NM=(()=>{class e extends Tr{constructor(t){super("Notice",t)}static{this.\u0275fac=function(n){return new(n||e)(p(W))}}static{this.\u0275prov=h({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var vs=(()=>{class e extends fi{constructor(t,n){super("Page",t,n)}getContentByPageId(t,n){return this.http.get(`${this.entityUrl}${t}/content`,{headers:new Yt(n)})}getAllRevisions(t,n){return super.execute("GET",`${this.entityUrl}${t}/contents`,null,n)}static{this.\u0275fac=function(n){return new(n||e)(p(At),p(Zn))}}static{this.\u0275prov=h({token:e,factory:e.\u0275fac})}}return e})(),_s=(()=>{class e extends fi{constructor(t,n){super("Page_content",t,n)}getContentByContentId(t){return super.execute("GET",`${this.entityUrl}${t}`)}createRevision(t){return super.execute("POST",`${this.entitiesUrl}`,t).pipe(E(n=>this.#e(n)))}updateContent(t,n){return super.execute("PUT",`${this.entityUrl}${t}`,n).pipe(E(i=>this.#e(i)))}#e(t){return!t||typeof t!="object"?t:"result"in t?t.result:t}static{this.\u0275fac=function(n){return new(n||e)(p(At),p(Zn))}}static{this.\u0275prov=h({token:e,factory:e.\u0275fac})}}return e})();var LM=(()=>{class e extends Tr{constructor(t){super("Page",t)}static{this.\u0275fac=function(n){return new(n||e)(p(W))}}static{this.\u0275prov=h({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var FM=(()=>{class e extends fi{constructor(t,n){super("Page",t,n)}static{this.\u0275fac=function(n){return new(n||e)(p(At),p(Zn))}}static{this.\u0275prov=h({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var PM=(()=>{class e extends Tr{constructor(t){super("Policy_groups",t)}static{this.\u0275fac=function(n){return new(n||e)(p(W))}}static{this.\u0275prov=h({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var kM=(()=>{class e extends ee{constructor(t){super("Profile_Contacts",t)}static{this.\u0275fac=function(n){return new(n||e)(p(W))}}static{this.\u0275prov=h({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var jM=(()=>{class e extends ee{constructor(t){super("Profile",t)}static{this.\u0275fac=function(n){return new(n||e)(p(W))}}static{this.\u0275prov=h({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var Xv=(()=>{class e extends ee{constructor(t){super("Role",t)}static{this.\u0275fac=function(n){return new(n||e)(p(W))}}static{this.\u0275prov=h({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var UM=(()=>{class e extends ee{constructor(t,n,i,o){super("Session_Participant",t),this.http=n;let s=te(o)&&i.DB_URL_VPC?i.DB_URL_VPC:i.DB_URL;this.resourceUrl=Ee(s,"session_participants")}
15createParticipant(t){return this.http.post(this.resourceUrl,t).pipe(E(n=>this.extractSingleResult(n)))}updateParticipant(t,n){return this.http.put(Ee(this.resourceUrl,t),g(u({},n),{id:t})).pipe(E(i=>this.extractSingleResult(i)))}deleteParticipant(t){return this.http.delete(Ee(this.resourceUrl,t)).pipe(E(()=>{}),U(n=>n?.status===404?_(void 0):lt(()=>n)))}extractSingleResult(t){return!t||typeof t!="object"?t:"result"in t?t.result:t}static{this.\u0275fac=function(n){return new(n||e)(p(W),p(At),p($t),p(ie))}}static{this.\u0275prov=h({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var BM=(()=>{class e extends ee{constructor(t,n,i,o){super("Session_Slot",t),this.http=n;let s=te(o)&&i.DB_URL_VPC?i.DB_URL_VPC:i.DB_URL;this.bulkUrl=Ee(s,"session_slots","bulk"),this.sentEmailSummaryUrl=Ee(s,"session_slots","sent_email_summary")}addBulk(t){let n=t.map(i=>this.mapToBulkPayload(i));return this.http.post(this.bulkUrl,n).pipe(E(i=>this.normalizeBulkResponse(i)))}sendEmailSummary(t){let n=encodeURIComponent(t);return this.http.get(`${this.sentEmailSummaryUrl}/${n}`)}mapToBulkPayload(t){return{name:String(t.name??""),details:t.details??null,location:t.location??null,link:t.link??null,maxattendees:Number(t.maxAttendees??1),session:t.session??"",startDate:String(t.startDate??""),endDate:String(t.endDate??"")}}normalizeBulkResponse(t){if(Array.isArray(t))return t;if(!t||typeof t!="object")return[];let n=t;return Array.isArray(n.result)?n.result:Array.isArray(n.results)?n.results:Array.isArray(n.data)?n.data:[]}static{this.\u0275fac=function(n){return new(n||e)(p(W),p(At),p($t),p(ie))}}static{this.\u0275prov=h({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var VM=(()=>{class e extends ee{constructor(t){super("Session",t)}static{this.\u0275fac=function(n){return new(n||e)(p(W))}}static{this.\u0275prov=h({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var Ss=(()=>{class e extends ee{constructor(t,n){super("Site",t),this.apiService=n,this.currentSiteSubject=new Nt(void 0),this.currentSiteValue=void 0}invokeSearch(t,n=1,i=20){let o=new kt().set("query",t).set("page",`${n}`).set("limit",`${i}`);return this.store.select(ct.selectEntity).pipe(P(s=>this.apiService.load(Ee("sites",s.id,"search"),o)))}static{this.\u0275fac=function(n){return new(n||e)(p(W),p(Q))}}static{this.\u0275prov=h({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),GM=(()=>{class e extends fi{constructor(t,n){super("Site",t,n),this.currentSiteValue=void 0}get currentSite(){return this.currentSiteValue}updateSitesSettings(t){return super.execute("PUT",this.currentSite?.id,t)}static{this.\u0275fac=function(n){return new(n||e)(p(At),p(Zn))}}static{this.\u0275prov=h({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var $M=(()=>{class e extends hs{constructor(t){super("Slideshow",t)}static{this.\u0275fac=function(n){return new(n||e)(p(W))}}static{this.\u0275prov=h({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var HM=(()=>{class e extends ee{constructor(t){super("Subscription",t)}static{this.\u0275fac=function(n){return new(n||e)(p(W))}}static{this.\u0275prov=h({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var e_=(()=>{class e extends ee{constructor(t){super("TenantDomain",t)}static{this.\u0275fac=function(n){return new(n||e)(p(W))}}static{this.\u0275prov=h({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var zM=(()=>{class e extends ee{constructor(t){super("Tenant",t)}static{this.\u0275fac=function(n){return new(n||e)(p(W))}}static{this.\u0275prov=h({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var WM=(()=>{class e{constructor(t,n,i){this.moduleConfig=t,this.activatedRoute=n,this.platformId=i,this.regex=/:\w+/gi}intercept(t,n){let{DB_URL:i,DB_URL_VPC:o}=this.moduleConfig,{url:s}=t,a=te(this.platformId)&&o?o:i;if(this.regex.test(s)&&Object.values(Vv).map(c=>Ee(a,c.toLocaleLowerCase())).find(c=>s.toLocaleLowerCase().startsWith(c))){let c=[],l=this.getTreeParams(this.activatedRoute.snapshot);for(let d of s.split("/")){if(this.regex.test(d)){let m=d.replace(":","").trim(),y=l[m];if(Ze(y))return lt(new Error(`missing param ${m} in route`));c.push(y);continue}c.push(d)}t=t.clone({url:c.join("/")})}return n.handle(t)}getTreeParams(t){let n={};if(n=u(u({},n),t.params),t.children?.length)for(let i of t.children)n=u(u(u({},n),i.params),this.getTreeParams(i));for(let i of Object.keys(n))n[i.toLocaleLowerCase()]=n[i];return n}static{this.\u0275fac=function(n){return new(n||e)(p($t),p(zr),p(ie))}}static{this.\u0275prov=h({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var Xn={};j(Xn,{LoadAnalyticsOfsted:()=>s5,LoadAnalyticsOfstedComplete:()=>a5,LoadAnalyticsOfstedFailed:()=>c5});var s5=w("[Analytics ofsted] Load data",L()),a5=w("[Analytics Ofsted] Load Analytics Ofsted Complete",L()),c5=w("[Aanlytics ofsted] Load data failed",L());var Eh={};j(Eh,{AnalyticsOfstedEffects:()=>YM});var YM=(()=>{class e{#e;constructor(t){this.actions$=t,this.#e=f(Yp),this.LoadAnalyticsOfsted=Z(()=>this.actions$.pipe(X(Xn.LoadAnalyticsOfsted),P(()=>this.#e.getAll().pipe(P(n=>_(n.result).pipe(P(o=>_(Xn.LoadAnalyticsOfstedComplete({analyticsOfsted:o.map(s=>s).flat()}))),U(o=>_(Xn.LoadAnalyticsOfstedFailed({error:o}))))),U(n=>_(Xn.LoadAnalyticsOfstedFailed({error:n})))))))}static{this.\u0275fac=function(n){return new(n||e)(p(de))}}static{this.\u0275prov=h({token:e,factory:e.\u0275fac})}}return e})();var Dh={};j(Dh,{analyticsOfstedAdapter:()=>bh,analyticsOfstedReducer:()=>KM});var bh=Mt(),l5=bh.getInitialState({isLoaded:!1,isLoading:!1}),u5=pe(l5,I(Xn.LoadAnalyticsOfsted,e=>g(u({},e),{isLoading:!0,isLoaded:!1})),I(Xn.LoadAnalyticsOfstedComplete,(e,{analyticsOfsted:r})=>bh.setAll(r,g(u({},e),{isLoading:!1,isLoaded:!0}))),I(Xn.LoadAnalyticsOfstedFailed,e=>g(u({},e),{isLoading:!1,isLoaded:!1}))),KM=(e,r)=>u5(e,r);var Ch=xe("analyticsOfsted"),JM=A(Ch,e=>e),d5=A(JM,e=>Object.values(e.entities)),f5=A(Ch,e=>e.isLoading),p5=A(Ch,e=>e.isLoaded);var i_={};j(i_,{gdprSettingsActions:()=>Th,gdprSettingsEffects:()=>zl,gdprSettingsReducers:()=>Wl,gdprSettingsSelectors:()=>wh});var Th={};j(Th,{gdprSettingsActions:()=>lr});var lr={};j(lr,{LoadGdprSettings:()=>h5,LoadGdprSettingsComplete:()=>m5,LoadGdprSettingsFailed:()=>
15g5,UpdateCookieAccepted:()=>S5,UpdateGdprSettings:()=>y5,UpdateGdprSettingsComplete:()=>v5,UpdateGdprSettingsFailed:()=>_5});var h5=w("[Settings - Gdpr] Load data"),m5=w("[Settings - GDPR] Load data success",L()),g5=w("[Settings - GDPR] Load data failed",L()),y5=w("[Settings - GDPR] Update",L()),v5=w("[Settings - GDPR] Update data success",L()),_5=w("[Settings - GDPR] Update data failed",L()),S5=w("[GDPR] - Cookie accepted",L());var zl={};j(zl,{GdprSettingsEffects:()=>XM});var XM=(()=>{class e{constructor(t,n){this.actions$=t,this.gdprSettingsDomainService=n,this.loadGdprSettings=Z(()=>this.actions$.pipe(X(lr.LoadGdprSettings),P(()=>this.gdprSettingsDomainService.get("").pipe(E(i=>lr.LoadGdprSettingsComplete({gdprSettings:i.result})),U(i=>_(lr.LoadGdprSettingsFailed({error:i}))))))),this.updateGdprSettings=Z(()=>this.actions$.pipe(X(lr.UpdateGdprSettings),ze(({gdprSettings:i})=>this.gdprSettingsDomainService.put(i).pipe(E(()=>lr.UpdateGdprSettingsComplete({gdprSettings:i})),U(o=>_(lr.UpdateGdprSettingsFailed({error:o})))))))}static{this.\u0275fac=function(n){return new(n||e)(p(de),p(Qa))}}static{this.\u0275prov=h({token:e,factory:e.\u0275fac})}}return e})();var Wl={};j(Wl,{gdprSettingsReducers:()=>r_});var r_={};j(r_,{gdprReducer:()=>b5,initalGdprSettingsState:()=>t_});var t_={isLoaded:!1,isLoading:!1,cookieAccepted:dl.NOT_INITIALIZED,cookieHasBeenShow:!1},E5=pe(t_,I(lr.LoadGdprSettings,e=>g(u({},e),{isLoading:!0,isLoaded:!1})),I(lr.LoadGdprSettingsComplete,(e,{gdprSettings:r})=>g(u(u({},e),r),{isLoaded:!0,isLoading:!1})),I(lr.LoadGdprSettingsFailed,e=>g(u({},e),{isLoading:!1,isLoaded:!1})),I(lr.UpdateGdprSettings,e=>u({},e)),I(lr.UpdateGdprSettingsFailed,e=>g(u({},e),{isLoading:!1,isLoaded:!1})),I(lr.UpdateGdprSettingsComplete,(e,{gdprSettings:r})=>g(u(u({},e),r),{isLoading:!1,isLoaded:!0})),I(lr.UpdateCookieAccepted,(e,{accepted:r})=>g(u({},e),{cookieAccepted:r}))),b5=(e=t_,r)=>E5(e,r);var wh={};j(wh,{gdprSettingsSelector:()=>n_});var n_={};j(n_,{areGdprSettingsLoaded:()=>T5,areGdprSettingsLoading:()=>C5,cookieAccepted:()=>A5,cookieHasBeenShown:()=>w5,gdprSettingsSelector:()=>D5,gdprStateSelector:()=>ec,selectGdprState:()=>eR});var eR=xe("gdpr"),ec=A(eR,e=>e),D5=A(ec,e=>e),C5=A(ec,e=>e.isLoading),T5=A(ec,e=>e.isLoaded),w5=A(ec,e=>e.cookieHasBeenShow),A5=A(ec,e=>e.cookieAccepted);var ei={};j(ei,{GroupTypesList:()=>O5,GroupTypesListComplete:()=>M5,GroupTypesListFailed:()=>R5});
15var O5=w("[Group Types list] Load data",L()),M5=w("[Group Types list] Load Group Types List Complete",L()),R5=w("[Group Types list] Load data failed",L());var Ah={};j(Ah,{GroupTypesListEffects:()=>rR});var rR=(()=>{class e{constructor(t,n,i){this.actions$=t,this.lhsBracketsDataQueryAdapter=n,this.groupTypesDomainService=i,this.LoadGroupTypes=Z(()=>this.actions$.pipe(X(ei.GroupTypesList),P(o=>{let{limit:s}=o;return this.createApiRequest(s,1).pipe(P(a=>{let{pagination:c}=a,l=[_(a)];if(c.totalPages>1)for(let d=2;d<=c.totalPages;d++)l.push(this.createApiRequest(s,d));return Dt(l).pipe(P(d=>_(ei.GroupTypesListComplete({groupTypesList:d.map(m=>m.result).flat()}))),U(d=>_(ei.GroupTypesListFailed({error:d}))))}),U(a=>_(ei.GroupTypesListFailed({error:a}))))})))}createApiRequest(t=100,n=1){let i=this.lhsBracketsDataQueryAdapter.toQueryParam({pagination:{size:t,page:n}});return this.groupTypesDomainService.getAll(i)}static{this.\u0275fac=function(n){return new(n||e)(p(de),p(Xt),p(Jp))}}static{this.\u0275prov=h({token:e,factory:e.\u0275fac})}}return e})();var Mh={};j(Mh,{groupTypesListAdapter:()=>Oh,groupTypesListReducer:()=>iR});var Oh=Mt(),nR=Oh.getInitialState({isLoaded:!1,isLoading:!1}),I5=pe(nR,I(ei.GroupTypesList,e=>g(u({},e),{isLoading:!0,isLoaded:!1})),I(ei.GroupTypesListComplete,(e,{groupTypesList:r})=>Oh.setAll(r,g(u({},e),{isLoading:!1,isLoaded:!0}))),I(ei.GroupTypesListFailed,e=>g(u({},e),{isLoading:!1,isLoaded:!1}))),iR=(e=nR,r)=>I5(e,r);var oR=xe("groupTypesList"),Rh=A(oR,e=>e),x5=A(Rh,e=>Object.values(e.entities)),N5=A(Rh,e=>e.isLoading),L5=A(Rh,e=>e.isLoaded);var Ao={};j(Ao,{LoadLoaderStatus:()=>Ih,LoadLoaderStatusComplete:()=>xh,LoadLoaderStatusFailed:()=>cR,SetLoaderVisibility:()=>lR});var Ih=w("[Loader] Loader status"),xh=w("[Loader] Loader status Success",
15L()),cR=w("[Loader] Loader status Failed",L()),lR=w("[Loader] Set Loader visibility",L());var Nh={};j(Nh,{LoaderStatusEffects:()=>uR});var uR=(()=>{class e{constructor(t){this.actions$=t,this.loaderStatusData$=Z(()=>this.actions$.pipe(X(Ih),P(n=>_(xh({loaderStatus:n})))))}static{this.\u0275fac=function(n){return new(n||e)(p(de))}}static{this.\u0275prov=h({token:e,factory:e.\u0275fac})}}return e})();var Lh={};j(Lh,{loaderReducer:()=>o_});var o_={};j(o_,{loaderReducer:()=>P5});var dR={loaderStatus:{isLoaded:!1,isLoading:!1,isVisible:!0}},F5=pe(dR,I(Ao.LoadLoaderStatus,e=>g(u({},e),{loaderStatus:g(u({},e.loaderStatus),{isLoading:!0})})),I(Ao.LoadLoaderStatusComplete,(e,{loaderStatus:r})=>g(u({},e),{loaderStatus:g(u(u({},e.loaderStatus),r),{isLoaded:!0,isLoading:!1})})),I(Ao.LoadLoaderStatusFailed,e=>g(u({},e),{loaderStatus:g(u({},e.loaderStatus),{isLoading:!1,isLoaded:!1})})),I(Ao.SetLoaderVisibility,(e,{isVisible:r})=>g(u({},e),{loaderStatus:g(u({},e.loaderStatus),{isVisible:r,isLoading:!1,isLoaded:!1})}))),P5=(e=dR,r)=>F5(e,r);var k5=xe("loaderStatus"),s_=A(k5,e=>e),rOe=A(s_,e=>Object.values(e)),nOe=A(s_,e=>e),iOe=A(s_,e=>e);var yr={};j(yr,{LoadMobileSettings:()=>B5,LoadMobileSettingsComplete:()=>V5,LoadMobileSettingsFailed:()=>G5,UpdateMobileSettings:()=>$5,UpdateMobileSettingsComplete:()=>H5,UpdateMobileSettingsFailed:()=>z5});var B5=w("[Settings - Mobile] Load data"),V5=w("[Settings - Mobile] Load data success",L()),G5=w("[Settings - Mobile] Load data failed",L()),$5=w("[Settings - Mobile] Update",L()),H5=w("[Settings - Mobile] Update data success",L()),z5=w("[Settings - Mobile] Update data failed",L());var Fh={};j(Fh,{MobileSettingsEffects:()=>hR});var hR=(()=>{class e{constructor(t,n){this.actions$=t,this.mobileSettingsDomainService=n,this.loadMobileSettings=Z(()=>this.actions$.pipe(X(yr.LoadMobileSettings),ze(()=>this.mobileSettingsDomainService.get("").pipe(E(({result:i})=>yr.LoadMobileSettingsComplete({mobileSettings:i}),U(i=>_(yr.LoadMobileSettingsFailed({error:i})))))))),this.updateMobileSettings=Z(()=>this.actions$.pipe(X(yr.UpdateMobileSettings),ze(({mobileSettings:i})=>this.mobileSettingsDomainService.put(i).pipe(P(()=>_(yr.LoadMobileSettings(),yr.UpdateMobileSettingsComplete({mobileSettings:i}))),U(o=>_(yr.UpdateMobileSettingsFailed({error:o})))))))}static{this.\u0275fac=function(n){return new(n||e)(p(de),p(Zp))}}static{this.\u0275prov=h({token:e,factory:e.\u0275fac})}}return e})();var Ph={};j(Ph,{mobileSettingsReducers:()=>c_});var c_={};j(c_,{initalSettingsState:()=>a_,mobileReducer:()=>q5});var a_={mobile:{isLoaded:!1,isLoading:!1}},W5=pe(a_,I(yr.LoadMobileSettings,e=>g(u({},e),{mobile:g(u({},e.mobile),{isLoading:!0})})),I(yr.LoadMobileSettingsComplete,(e,{mobileSettings:r})=>g(u({},e),{mobile:g(u(u({},e.mobile),r),{isLoaded:!0,isLoading:!1})})),I(yr.LoadMobileSettingsFailed,e=>g(u({},e),{mobile:g(u({},e.mobile),{isLoading:!1,isLoaded:!1})})),I(yr.UpdateMobileSettings,e=>g(u({},e),{mobile:g(u({},e.mobile),{isLoading:!0,isLoaded:!1})})),I(yr.UpdateMobileSettingsFailed,e=>g(u({},e),{mobile:g(u({},e.mobile),{isLoading:!1,isLoaded:!1})})),I(yr.UpdateMobileSettingsComplete,(e,{mobileSettings:r})=>g(u({},e),{mobile:g(u(u({},e.mobile),r),{isLoading:!1,isLoaded:!0})}))),q5=(e=a_,r)=>W5(e,r);var Y5=xe("mobile"),mR=A(Y5,e=>e.mobile),_Oe=A(mR,e=>e.isLoading),SOe=A(mR,e=>e.isLoaded);var f_={};j(f_,{myGroupsActions:()=>l_,myGroupsEffects:()=>ql,myGroupsReducers:()=>Yl,myGroupsSelectors:()=>d_});var l_={};j(l_,{LoadMyGroupsList:()=>tc,LoadMyGroupsListComplete:()=>rc,LoadMyGroupsListFailed:()=>nc});var tc=w("[My Groups list] Load data"),rc=w("[My Groups list] Load My Groups List Complete",L()),nc=w("[My Groups list] Load data failed",L());var ql={};j(ql,{MyGroupsListEffects:()=>vR});var vR=(()=>{class e{constructor(t,n,i){this.actions$=t,this.lhsBracketsDataQueryAdapter=n,this.myGroupsDomainService=i,this.loadMyGroups=Z(()=>this.actions$.pipe(X(tc),Os(()=>this.myGroupsDomainService.getAll().pipe(E(({result:o})=>rc({myGroupsList:o})),U(o=>_(nc({error:o})))))))}createApiRequest(t=100,n=1){let i=this.lhsBracketsDataQueryAdapter.toQueryParam({pagination:{size:t,page:n}});return this.myGroupsDomainService.getAll(i)}static{this.\u0275fac=function(n){return new(n||e)(p(de),p(Xt),p(Qp))}}static{this.\u0275prov=h({token:e,factory:e.\u0275fac})}}return e})();var Yl={};j(Yl,{myGroupsListAdapter:()=>kh,myGroupsListReducer:()=>SR});var kh=Mt(),_R=kh.getInitialState({isLoaded:!1,isLoading:!1}),J5=pe(_R,I(tc,e=>g(u({},e),{isLoading:!0,isLoaded:!1})),I(rc,(e,{myGroupsList:r})=>kh.setAll(r,g(u({},e),{isLoading:!1,isLoaded:!0}))),I(nc,e=>g(u({},e),{isLoading:!1,isLoaded:!1}))),SR=(e=_R,r)=>J5(e,r);var d_={};j(d_,{areMyGroupsListLoaded:()=>DR,areMyGroupsListLoading:()=>bR,myGroupsListSelector:()=>ER,myGroupsListStateSelector:()=>Kl,selectMyGroupsListState:()=>u_});var u_=xe("myGroups"),Kl=A(u_,e=>e),ER=A(Kl,e=>Object.values(e.entities)),bR=A(Kl,e=>e.isLoading),DR=A(Kl,e=>e.isLoaded);var S_={};j(S_,{pageContentActions:()=>p_,pageContentEffects:()=>ru,pageContentReducers:()=>
15nu,pageContentSelectors:()=>__});var p_={};j(p_,{pageContentActions:()=>Ur});var Ur={};j(Ur,{LoadPageContent:()=>Z5,LoadPageContentComplete:()=>Q5,LoadPageContentFailed:()=>X5,UpdatePageContent:()=>e6});var Z5=w("[Page content] Load data",L()),Q5=w("[Page content] Load data Complete",L()),X5=w("[Page content] Load data failed",L()),e6=w("[Page content] Update",L());var ru={};j(ru,{PageContentEffects:()=>PR});var tu={};j(tu,{pagesActions:()=>Jl,pagesEffects:()=>Ql,pagesReducers:()=>Xl,pagesSelectors:()=>Oo});var Jl={};j(Jl,{pagesListActions:()=>vn});var vn={};j(vn,{LoadPagesList:()=>t6,LoadPagesListComplete:()=>r6,LoadPagesListFailed:()=>n6});var t6=w("[Pages list] Load data",L()),r6=w("[Pages list] Load Pages List Complete",L()),n6=w("[Pages list] Load data failed",L());var Ql={};j(Ql,{PagesListEffects:()=>AR});var i6=["id","parentId","lp","homePage","splashPage","name","title","hideInMenu","type","attributes","draftState","availability","published","url","urlSegments"];function h_(e){let r=c6(e,i6),t=s6(r.attributes);return t===void 0?delete r.attributes:r.attributes=t,r}function CR(e){return e.filter(o6).map(h_)}function o6(e){return!!e.homePage||e.published!==!1||!!e.draftState}function s6(e){if(!e?.length)return;let r=e.filter(a6);return r.length?r:void 0}function a6(e){let r=e?.value;return r!=null&&r!==""&&r!==!1}function c6(e,r){let t={};for(let n of r){let i=e[n];i!==void 0&&(t[n]=i)}return t}var jh="J3_PAGES_LIST_STATE";function TR(e,r,t){if(!ut(e)||!r?.hasKey(jh))return;let n=r.get(jh,void 0);if(r.remove(jh),!(!n||Cr(n.siteId)!==Cr(t)))return n.pagesList}function wR(e,r,t,n){!te(e)||!r||r.set(jh,{siteId:Cr(t),pagesList:CR(n)})}var AR=(()=>{class e{constructor(){this.#e=f(de),this.#t=f(ae),this.#r=f(Xp),this.#n=f(Xt),this.#i=f(ie),this.#o=f(Ft,{optional:!0}),this.LoadPagesList=Z(()=>this.#e.pipe(X(vn.LoadPagesList),P(t=>this.#t.select(ct.selectSiteId).pipe(q(n=>!!n),$i(),E(n=>[t,n]))),P(([{limit:t},n])=>{let i=TR(this.#i,this.#o,n);return i?_(vn.LoadPagesListComplete({pagesList:i})):this.createApiRequest(n,t).pipe(P(o=>{let{pagination:s}=o,a=[_(o)];if(s.totalPages>1)for(let c=2;c<=s.totalPages;c++)a.push(this.createApiRequest(n,t,c));return Dt(a).pipe(P(c=>{let l=c.map(d=>d.result).flat().filter(d=>d.parentId!==d.id);return l=l.map(d=>{let m=this.getUrlForPage(d,l).reverse();return g(u({},d),{url:m.join("/"),urlSegments:m})}),te(this.#i)&&wR(this.#i,this.#o,n,l),_(vn.LoadPagesListComplete({pagesList:l}))}),U(c=>_(vn.LoadPagesListFailed({error:c}))))}),U(o=>_(vn.LoadPagesListFailed({error:o}))))})))}#e;#t;#r;#n;#i;#o;createApiRequest(t,n=1e3,i=1){let o=this.#n.toQueryParam({filters:[{property:"site",operator:ar.Operator.EQ,type:ar.FilterType.SEARCH,value:t}],pagination:{size:n,page:i},order:[{direction:ar.Direction.ASC,key:"lp"}]});return this.#r.getAll(o)}getUrlForPage(t,n){if(!t)return[""];let{parentId:i,name:o}=t,s=Zl(o),a=s?[s]:[];return i&&(a=[...a,this.getUrlForPage(n.find(c=>c.id===i),n)].flat()),a}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=h({token:e,factory:e.\u0275fac})}}return e})();var Xl={};j(Xl,{pageListAdapter:()=>Uh,pagesListReducer:()=>MR});var Uh=Mt(),OR=Uh.getInitialState({isLoaded:!1,isLoading:!1}),l6=pe(OR,I(vn.LoadPagesList,e=>g(u({},e),{isLoading:!0,isLoaded:!1})),I(vn.LoadPagesListComplete,(e,{pagesList:r})=>Uh.setAll(r,g(u({},e),{isLoading:!1,isLoaded:!0}))),I(vn.LoadPagesListFailed,e=>g(u({},e),{isLoading:!1,isLoaded:!1}))),MR=(e=OR,r)=>l6(e,r);var Oo={};j(Oo,{arePagesListLoaded:()=>xR,arePagesListLoading:()=>IR,pagesListSelector:()=>Bh,pagesListStateSelector:()=>eu,selectHomePage:()=>NR,selectPageById:()=>RR,selectPagesListState:()=>m_});var m_=xe("pagesList"),eu=A(m_,e=>e),Bh=A(eu,e=>Object.values(e.entities)),RR=e=>A(Bh,r=>r.find(t=>t.id===e)),IR=A(eu,e=>e.isLoading),xR=A(eu,e=>e.isLoaded),NR=A(Bh,e=>e.find(r=>r.homePage&&r.draftState===1));var Vh="J3_PAGE_CONTENT_STATE";function LR(e,r,t,n,i){if(!ut(e)||!r?.hasKey(Vh))return;let o=r.get(Vh,void 0);if(r.remove(Vh),!(!o||Cr(o.siteId)!==Cr(t)||Fn(o.pageUrl)!==Fn(n)||g_(o.revisionId)!==g_(i)))return o}function FR(e,r,t,n,i,o,s){!te(e)||!r||r.set(Vh,{siteId:Cr(t),pageUrl:Fn(n),revisionId:g_(i),page:h_(o),pageContent:s})}function g_(e){return(e??"").trim()}var PR=(()=>{class e{#e;#t;#r;#n;#i;constructor(t){this.actions$=t,this.#e=f(ae),this.#t=f(vs),this.#r=f(_s),this.#n=f(ie),this.#i=f(Ft,{optional:!0}),this.LoadPageContent=Z(()=>
15this.actions$.pipe(X(Ur.LoadPageContent),$i(),gn(()=>this.#e.select(Oo.pagesListSelector)),gn(()=>this.#e.select(ct.selectSiteId)),P(([[n,i],o])=>{let{url:s,revisionId:a}=n;if(!o)return _(Ur.LoadPageContentFailed({error:{status:404,message:"Page not found",ok:!1}}));let c=LR(this.#n,this.#i,o,s,a);if(c)return _(Ur.LoadPageContentComplete({page:c.page,pageContent:c.pageContent,pageUrl:s}));let l=Fn(s),d=i.find(m=>l.length?Fn(m.url)===l:m.homePage);return d?this.createApiRequest(d.id,a).pipe(P(m=>(te(this.#n)&&FR(this.#n,this.#i,o,s,a,d,m.result),_(Ur.LoadPageContentComplete({page:d,pageContent:m.result,pageUrl:s})))),U(m=>_(Ur.LoadPageContentFailed({error:m})))):_(Ur.LoadPageContentFailed({error:{status:404,message:"Page not found",ok:!1}}))})))}createApiRequest(t,n){return n?this.#r.getContentByContentId(n):this.#t.getContentByPageId(t)}static{this.\u0275fac=function(n){return new(n||e)(p(de))}}static{this.\u0275prov=h({token:e,factory:e.\u0275fac})}}return e})();var nu={};j(nu,{pageContentReducer:()=>kR});var u6={loadingState:k.PENDING},kR=pe(u6,I(Ur.LoadPageContent,(e,{url:r})=>g(u({},e),{loadingState:k.LOADING,pageUrl:r})),I(Ur.LoadPageContentComplete,(e,{pageUrl:r,pageContent:t,page:n})=>g(u({},e),{loadingState:k.SUCCESS,currentPage:n,currentPageContent:t,pageUrl:r})),I(Ur.LoadPageContentFailed,(e,{error:r})=>g(u({},e),{loadingState:k.FAILED,error:r})),I(Ur.UpdatePageContent,(e,{pageContent:r})=>g(u({},e),{currentPageContent:r})));var __={};j(__,{selectCurrentPage:()=>jR,selectCurrentPageContent:()=>UR,selectCurrentPageUrl:()=>GR,selectIsPageContentLoaded:()=>VR,selectIsPageContentLoading:()=>BR,selectPageContentErrors:()=>$R,selectPageContentLoadingState:()=>Gh,selectPageContentSelector:()=>v_,selectPageContentStateSelector:()=>ic});var y_=xe("pageContent"),ic=A(y_,e=>e),jR=A(y_,e=>e.currentPage),UR=A(y_,e=>e.currentPageContent),v_=A(ic,e=>e),Gh=A(ic,e=>e.loadingState),BR=A(Gh,e=>e===k.LOADING),VR=A(Gh,e=>e===k.SUCCESS||e===k.FAILED),QMe=A(ic,e=>e.loadingState),GR=A(ic,e=>e.pageUrl),$R=A(v_,e=>e.error);var b_={};j(b_,{pageContentResourcesActions:()=>en,pageContentResourcesEffects:()=>iu,pageContentResourcesReducers:()=>ou,pageContentResourcesSelectors:()=>E_});var en={};j(en,{LoadPageContentResources:()=>d6,LoadPageContentResourcesComplete:()=>f6,LoadPageContentResourcesFailed:()=>p6,NoResourcesFound:()=>h6});var d6=w("[Page Content Resources] Load data",L()),f6=w("[Page Content Resources] Load data completed",L()),p6=w("[Page Content Resources] Load data failed",L()),h6=w("[Page Content Resources] No resources found");var iu={};j(iu,{PageContentResourcesEffects:()=>m6});var $h="J3_PAGE_CONTENT_RESOURCES_STATE";function HR(e,r,t,n){if(!ut(e)||!r?.hasKey($h))return;let i=r.get($h,void 0);if(r.remove($h),!(!i||Cr(i.siteId)!==Cr(t)||Fn(i.pageUrl)!==Fn(n)))return i.resources}function zR(e,r,t,n,i){!te(e)||!r||r.set($h,{siteId:Cr(t),pageUrl:Fn(n),resources:i})}var m6=(()=>{class e{constructor(){this.#e=f(de),this.#t=f(ae),this.#r=f(Gl),this.#n=f(nh),this.#i=f(Gl),this.#o=f(Xt),this.#s=f(ie),this.#a=f(Ft,{optional:!0}),this.LoadPageContentResources=Z(()=>this.#e.pipe(X(en.LoadPageContentResources),gn(()=>this.#t.select(ct.selectSiteId)),P(([{resourceIds:t,resourceListIds:n,pageUrl:i},o])=>{if(!t?.length&&!n?.length)return _(en.NoResourcesFound());if(o){let a=HR(this.#s,this.#a,o,i);if(a)return this.#c(a),_(en.LoadPageContentResourcesComplete({resources:a}))}let s=[...this.#l(t),...this.#u(n)];return ws(s).pipe(E(a=>[a?.filter(c=>c.type==="SINGLE").map(c=>c.apiResponse?.result).flat(),a?.filter(c=>c.type==="LIST").map(c=>c.apiResponse?.result).flat()]),E(([a,c])=>{let l=[...a,...c];return this.#c(l),te(this.#s)&&o&&zR(this.#s,this.#a,o,i,l),en.LoadPageContentResourcesComplete({resources:l})}),U(a=>_(en.LoadPageContentResourcesFailed({error:a}))))})))}#e;#t;#r;#n;#i;#o;#s;#a;#c(t){for(let n of t){if("resources"in n&&Array.isArray(n.resources)){this.#n.set(n.id,n);continue}this.#i.set(n.id,n)}}#l(t){let n=new Array;for(let i of Nl.chunk(50,t)){let o={filters:[{operator:ar.Operator.IN,property:"id",type:ar.FilterType.SELECT,value:i},{operator:ar.Operator.IS_NULL,property:"resourceList",type:ar.FilterType.IS_NULL,value:1}],pagination:{size:50,page:1}};n.push(this.#r.getAll(this.#o.toQueryParam(o)).pipe(E(s=>({type:"SINGLE",apiResponse:s}))))}return n}#u(t){let n=new Array;
15for(let i of Nl.chunk(50,t)){let o={filters:[{operator:ar.Operator.IN,property:"id",type:ar.FilterType.SELECT,value:i}],pagination:{size:50,page:1}};n.push(this.#n.getAll(this.#o.toQueryParam(o)).pipe(E(s=>({type:"LIST",apiResponse:s}))))}return n}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=h({token:e,factory:e.\u0275fac})}}return e})();var ou={};j(ou,{pageContentResourcesReducer:()=>YR});var qR=Mt(),WR=qR.getInitialState({loadingState:k.PENDING}),YR=pe(WR,I(en.LoadPageContentResources,(e,{pageUrl:r})=>g(u({},WR),{pageUrl:r,loadingState:k.LOADING})),I(en.LoadPageContentResourcesComplete,(e,{resources:r})=>qR.setAll(r,g(u({},e),{error:void 0,loadingState:k.SUCCESS}))),I(en.LoadPageContentResourcesFailed,(e,{error:r})=>g(u({},e),{loadingState:k.FAILED,error:r})),I(en.NoResourcesFound,e=>g(u({},e),{loadingState:k.SUCCESS})));var E_={};j(E_,{selectPageContentResources:()=>eI,selectPageContentResourcesIsLoaded:()=>QR,selectPageContentResourcesIsLoading:()=>ZR,selectPageContentResourcesState:()=>KR,selectResourcePageUrl:()=>XR});var su=xe("pageContentResources"),KR=A(su,e=>e),JR=A(su,e=>e.loadingState),ZR=A(JR,e=>e===k.LOADING),QR=A(JR,e=>e===k.SUCCESS||e===k.FAILED),XR=A(su,e=>e.pageUrl),MRe=A(su,e=>e.ids),eI=A(su,e=>Object.values(e.entities));var ti={};j(ti,{LoadPeopleList:()=>g6,LoadPeopleListComplete:()=>y6,LoadPeopleListFailed:()=>v6});var g6=w("[People list] Load data",L()),y6=w("[People list] Load People List Complete",L()),v6=w("[People list] Load data failed",L());var Hh={};j(Hh,{PeopleListEffects:()=>tI});var tI=(()=>{class e{constructor(t,n,i){this.actions$=t,this.peopleListDomainService=n,this.lhsBracketsDataQueryAdapter=i,this.LoadPeopleList=Z(()=>this.actions$.pipe(X(ti.LoadPeopleList),P(o=>{let{limit:s,group:a}=o;return this.createApiRequest(s,1,a).pipe(P(c=>{let{pagination:l}=c,d=[_(c)];if(l.totalPages>1)for(let m=2;m<=l.totalPages;m++)d.push(this.createApiRequest(s,m,a));return Dt(d).pipe(P(m=>_(ti.LoadPeopleListComplete({peopleList:m.map(y=>y.result).flat()}))),U(m=>_(ti.LoadPeopleListFailed({error:m}))))}),U(c=>_(ti.LoadPeopleListFailed({error:c}))))})))}createApiRequest(t=100,n=1,i){let o=this.lhsBracketsDataQueryAdapter.toQueryParam({pagination:{size:t,page:n}});return Ze(i)?this.peopleListDomainService.getAll(o):this.peopleListDomainService.getProfilesNotBelongToTheGroup(o,i)}static{this.\u0275fac=function(n){return new(n||e)(p(de),p(eh),p(Xt))}}static{this.\u0275prov=h({token:e,factory:e.\u0275fac})}}return e})();var Wh={};j(Wh,{peopleListAdapter:()=>zh,peopleListReducer:()=>rI});var zh=Mt(),S6=g(u({},zh.getInitialState()),{isLoaded:!1,isLoading:!1}),E6=pe(S6,I(ti.LoadPeopleList,e=>g(u({},e),{isLoading:!0,isLoaded:!1})),I(ti.LoadPeopleListComplete,(e,{peopleList:r})=>zh.setAll(r,g(u({},e),{isLoading:!1,isLoaded:!0}))),I(ti.LoadPeopleListFailed,e=>g(u({},e),{isLoading:!1,isLoaded:!1}))),rI=(e,r)=>E6(e,r);var nI=xe("peopleList"),qh=A(nI,e=>e),b6=A(qh,e=>Object.values(e.entities)),D6=A(qh,e=>e.isLoading),C6=A(qh,e=>e.isLoaded);var D_={};j(D_,{permissionActions:()=>au,permissionEffects:()=>cu,permissionReducers:()=>lu,permissionSelectors:()=>Jh});var au={};j(au,{LoadPermissions:()=>oc,LoadPermissionsComplete:()=>sc,LoadPermissionsFailed:()=>ac});var oc=w("[Permissions] Load Permissions"),sc=w("[Permissions] Load Permissions Success",L()),ac=w("[Permissions] Load Permissions Failed",L());var cu={};j(cu,{PermissionsEffects:()=>oI});var oI=(()=>{class e{constructor(t,n){this.actions$=t,this.permissionDomainService=n,this.loadPermissions$=Z(()=>this.actions$.pipe(X(oc),P(()=>this.permissionDomainService.getAllPermissions().pipe(E(i=>sc({permissions:i})),U(i=>(console.log(i),_(ac(i))))))))}static{this.\u0275fac=function(n){return new(n||e)(p(de),p(th))}}static{this.\u0275prov=h({token:e,factory:e.\u0275fac})}}return e})();var lu={};j(lu,{permissionsAdapter:()=>Yh,permissionsReducer:()=>aI});var Yh=Mt({sortComparer:!1}),sI=Yh.getInitialState({isLoading:!0,isLoaded:!1}),w6=pe(sI,I(oc,e=>g(u({},e),{isLoading:!0})),I(sc,(e,{permissions:r})=>Yh.setAll(Ze(r)?[]:r,g(u({},e),{isLoading:!1,isLoaded:!0}))),I(ac,e=>g(u({},e),{isLoading:!1,isLoaded:!1}))),aI=(e=sI,r)=>w6(e,r);var Jh={};j(Jh,{arePermissionsLoaded:()=>uI,arePermissionsLoading:()=>lI,permissionsSelector:()=>cI,permissionsStateSelector:()=>uu,selectPermissions:()=>dI,selectPermissionsState:()=>Kh});var Kh=xe("permissions"),uu=A(Kh,e=>e),cI=A(uu,e=>Object.values(e.entities)),lI=A(uu,e=>e.isLoading),uI=A(uu,e=>e.isLoaded),dI=A(Kh,e=>Object.values(e.entities??{}));var Bi={};j(Bi,{LoadRouter:()=>A6,LoadRouterComplete:()=>O6,LoadRouterFailed:()=>M6});var A6=w("[Router] Load data",L()),O6=w("[Router] Load Router Complete",L()),M6=w("[Router] Load data failed",L());var Zh={};j(Zh,{RouterEffects:()=>fI});var fI=(()=>{class e{constructor(t,n){this.actions$=t,this.routerDomainService=n,this.loadRouter$=Z(()=>this.actions$.pipe(X(Bi.LoadRouter),P(i=>_(Bi.LoadRouterComplete({routerData:i.routerData})))))}static{this.\u0275fac=function(n){return new(n||e)(p(de),p(ih))}}static{this.\u0275prov=h({token:e,factory:e.\u0275fac})}}return e})();var Qh={};j(Qh,{routerReducer:()=>C_});var C_={};j(C_,{routerReducer:()=>x6});var pI={routerData:{isLoaded:!1,isLoading:!1}},I6=pe(pI,I(Bi.LoadRouter,e=>g(u({},e),{routerData:g(u({},e.routerData),{isLoading:!0})}
15)),I(Bi.LoadRouterComplete,(e,{routerData:r})=>g(u({},e),{routerData:g(u(u({},e.routerData),r),{isLoaded:!0,isLoading:!1})})),I(Bi.LoadRouterFailed,e=>g(u({},e),{routerData:g(u({},e.routerData),{isLoading:!1,isLoaded:!1})}))),x6=(e=pI,r)=>I6(e,r);var hI=xe("routerData"),FIe=A(hI,e=>e.state?.routerData),T_=A(hI,e=>e),PIe=A(T_,e=>Object.values(e)),kIe=A(T_,e=>e),jIe=A(T_,e=>e.state.routerData);var uc={};j(uc,{settingsActions:()=>du,settingsEffects:()=>fu,settingsReducers:()=>pu,settingsSelectors:()=>lc});var du={};j(du,{generalSettingsActions:()=>er});var er={};j(er,{LoadGeneralSettings:()=>F6,LoadGeneralSettingsComplete:()=>P6,LoadGeneralSettingsFailed:()=>k6,UpdateGeneralSettings:()=>j6,UpdateGeneralSettingsComplete:()=>U6,UpdateGeneralSettingsFailed:()=>B6});var F6=w("[Settings - General] Load data"),P6=w("[Settings - General] Load data success",L()),k6=w("[Settings - General] Load data failed",L()),j6=w("[Settings - General] Update",L()),U6=w("[Settings - General] Update data success",L()),B6=w("[Settings - General] Update data failed",L());var fu={};j(fu,{GeneralSettingsEffects:()=>_I});var Xh="J3_GENERAL_SETTINGS_STATE";function gI(e,r){if(!ut(e)||!r?.hasKey(Xh))return;let t=r.get(Xh,void 0);return r.remove(Xh),t}function yI(e,r,t){!te(e)||!r||r.set(Xh,w_(t))}function w_(e){let n=e,{customContent:r}=n,t=Or(n,["customContent"]);return g(u({},t),{customContent:cc(r)})}function cc(e){let r=e;if(Ze(r)||r==="")return{};if(typeof r=="string"){let t=r.trim();if(!t.length)return{};try{r=JSON.parse(t)}catch(n){return{}}}if(typeof r=="string")try{r=JSON.parse(r)}catch(t){return{}}return typeof r=="object"&&r!==null&&!Array.isArray(r)?r:{}}var V6=new Set(["@context","@id","@type","isLoaded","isLoading"]),G6=["city","dfesNumber","email","headteacher","motto","name","postcode","strapline","street","telephone"];function vI(e){let r={};Object.entries(e).forEach(([n,i])=>{V6.has(n)||n==="customContent"||n==="logo"||(r[n]=i)});let t=H6(e);if(t&&(r.id=t),G6.forEach(n=>{(n in e||n in r)&&(r[n]=$6(e[n]??r[n]))}),"customContent"in e&&(r.customContent=cc(e.customContent)),"logo"in e){let n=z6(e.logo);n!==void 0&&(r.logo=n)}return r}function $6(e){if(typeof e!="string")return null;let r=e.trim();return r.length>=2?r:null}function H6(e){if(typeof e.id=="string"&&e.id.trim().length)return e.id;let r=e["@id"];if(typeof r!="string"||!r.length)return;let t=r.split("/").filter(Boolean).pop();if(!(!t||t==="settings"))return t}function z6(e){if(Ze(e)||typeof e=="string")return e??null;let r=e;return r["@id"]??r.id}var _I=(()=>{class e{#e;#t;constructor(t,n){this.actions$=t,this.generalSettingsDomainService=n,this.#e=f(ie),this.#t=f(Ft,{optional:!0}),this.loadGeneralSettings=Z(()=>this.actions$.pipe(X(er.LoadGeneralSettings),ze(()=>{let i=gI(this.#e,this.#t);return i?_(er.LoadGeneralSettingsComplete({generalSettings:i})):this.generalSettingsDomainService.get("").pipe(E(({result:o})=>w_(o)),E(o=>(te(this.#e)&&yI(this.#e,this.#t,o),er.LoadGeneralSettingsComplete({generalSettings:o}))),U(o=>_(er.LoadGeneralSettingsFailed({error:o}))))}))),this.updateGeneralSettings=Z(()=>this.actions$.pipe(X(er.UpdateGeneralSettings),ze(({generalSettings:i})=>this.generalSettingsDomainService.put(vI(i)).pipe(ze(()=>_(er.LoadGeneralSettings(),er.UpdateGeneralSettingsComplete({generalSettings:i}))),U(o=>_(er.UpdateGeneralSettingsFailed({error:o})))))))}static{this.\u0275fac=function(n){return new(n||e)(p(de),p(Kp))}}static{this.\u0275prov=h({token:e,factory:e.\u0275fac})}}return e})();var pu={};j(pu,{generalSettingsReducers:()=>O_});var O_={};j(O_,{initialSettingsState:()=>A_,settingsReducer:()=>q6});var A_={general:{isLoaded:!1,isLoading:!1}},W6=pe(A_,I(er.LoadGeneralSettings,e=>g(u({},e),{general:g(u({},e.general),{isLoading:!0})})),I(er.LoadGeneralSettingsComplete,(e,{generalSettings:r})=>g(u({},e),{general:g(u(u({},e.general),r),{isLoaded:!0,isLoading:!1})})),I(er.LoadGeneralSettingsFailed,e=>g(u({},e),{general:g(u({},e.general),{isLoading:!1,isLoaded:!1})})),I(er.UpdateGeneralSettings,e=>g(u({},e),{general:g(u({},e.general),{isLoading:!0,isLoaded:!1})})),I(er.UpdateGeneralSettingsFailed,e=>g(u({},e),{general:g(u({},e.general),{isLoading:!1,isLoaded:!1})})),I(er.UpdateGeneralSettingsComplete,(e,{generalSettings:r})=>g(u({},e),{general:g(u(u({},e.general),r),{isLoading:!1,isLoaded:!0})}))),q6=(e=A_,r)=>W6(e,r);var lc={};j(lc,{generalSettingsSelector:()=>R_});var R_={};j(R_,{areGeneralSettingsLoaded:()=>K6,areGeneralSettingsLoading:()=>Y6,generalSettingsSelector:()=>M_,selectSettingsState:()=>SI});var SI=xe("settings"),M_=A(SI,e=>e.general),Y6=A(M_,e=>e.isLoading),K6=A(M_,e=>e.isLoaded);var N_={};j(N_,{siteSearchActions:()=>em,siteSearchEffects:()=>vu,siteSearchReducers:()=>_u,siteSearchSelectors:()=>x_});var em={};j(em,{SiteSearchClearState:()=>yu,SiteSearchPhraseChange:()=>hu,SiteSearchResultChangeError:()=>gu,SiteSearchResultChangeSuccess:()=>mu});var hu=w("[Site search] Phrase change",L()),mu=w("[Site search] Result change success",
15L()),gu=w("[Site search] Result change error",L()),yu=w("[Site search] Clear state");var vu={};j(vu,{SiteSearchEffects:()=>J6});var J6=(()=>{class e{constructor(t,n){this.actions=t,this.sitesCollectionService=n,this.searchPhraseChanged$=Z(()=>this.actions.pipe(X(hu),P(({phrase:i})=>i?.trim().length?this.sitesCollectionService.invokeSearch(i).pipe(P(({result:o})=>_(mu({result:o}))),U(o=>_(gu({error:o})))):_(yu()))))}static{this.\u0275fac=function(n){return new(n||e)(p(de),p(Ss))}}static{this.\u0275prov=h({token:e,factory:e.\u0275fac})}}return e})();var _u={};j(_u,{initalSiteSearchState:()=>tm,siteSearchReducer:()=>Q6});var tm={isLoading:!1},Z6=pe(tm,I(yu,()=>tm),I(hu,(e,{phrase:r})=>g(u({},e),{isLoading:!0,searchPhrase:r})),I(gu,e=>g(u({},e),{isLoading:!1})),I(mu,(e,{result:r})=>g(u({},e),{result:r,isLoading:!1}))),Q6=(e=tm,r)=>Z6(e,r);var x_={};j(x_,{siteSearchIsLoadingSelector:()=>eq,siteSearchPhraseSelector:()=>X6,siteSearchResultSelector:()=>tq});var I_=xe("siteSearch"),X6=A(I_,e=>e?.searchPhrase),eq=A(I_,e=>e?.isLoading),tq=A(I_,e=>e?.result);var Su=w("[TENANT] Load Tenant Data",L()),Eu=w("[TENANT] Load Tenant Data Success",L()),bu=w("[TENANT] Load Tenant Data Failed",L());var rm={};j(rm,{TenantEffects:()=>EI});var EI=(()=>{class e{constructor(t,n){this.actions$=t,this.tenantDomainService=n,this.loadUserData$=Z(()=>this.actions$.pipe(X(Su),P(({tenantId:i})=>this.tenantDomainService.get(i).pipe(E(({result:o})=>Eu({tenant:o})),U(o=>_(bu({error:o})))))))}static{this.\u0275fac=function(n){return new(n||e)(p(de),p(oh))}}static{this.\u0275prov=h({token:e,factory:e.\u0275fac})}}return e})();var nm={};j(nm,{tenantReducer:()=>DI});var bI={isLoaded:!1,isLoading:!1},rq=pe(bI,I(Su,e=>g(u({},e),{isLoading:!0})),I(Eu,(e,{tenant:r})=>g(u(u({},e),r),{isLoading:!1,isLoaded:!0})),I(bu,e=>g(u({},e),{isLoaded:!1,isLoading:!1}))),DI=(e=bI,r)=>rq(e,r);var CI=xe("tenant"),im=A(CI,e=>e),nq=A(im,e=>{let i=e,{isLoaded:r,isLoading:t}=i;return Or(i,["isLoaded","isLoading"])}),iq=A(im,e=>e.isLoading),oq=A(im,e=>e.isLoaded);var k_={};j(k_,{userActions:()=>Du,userEffects:()=>Cu,userReducers:()=>Tu,userSelectors:()=>P_});var Du={};j(Du,{LoadUserMyProfileData:()=>dc,LoadUserMyProfileDataComplete:()=>fc,LoadUserMyProfileDataFailed:()=>Es,SetUserAuthorized:()=>om});var dc=w("[USER] Load User Data"),fc=w("[USER] Load User Data Success",L()),Es=w("[USER] Load User Data Failed",L()),om=w("[USER] Set user Authorized",L());var Cu={};j(Cu,{UserProfileEffects:()=>wI});var wI=(()=>{class e{constructor(t,n){this.actions$=t,this.profileDomainService=n,this.loadUserData$=Z(()=>this.actions$.pipe(X(dc),P(()=>this.profileDomainService.get("").pipe(E(i=>{let{result:o,success:s,error:a}=i;return s?fc({userData:o}):Es({error:a})}),U(i=>_(Es({error:i})))))))}static{this.\u0275fac=function(n){return new(n||e)(p(de),p(rh))}}static{this.\u0275prov=h({token:e,factory:e.\u0275fac})}}return e})();var Tu={};j(Tu,{userMyProfileAdapter:()=>sm,userMyProfileReducer:()=>OI});var sm=Mt({sortComparer:!1}),AI=sm.getInitialState({isLoaded:!1,isLoading:!0,isAuthorized:!1}),aq=pe(AI,I(dc,e=>g(u({},e),{isLoading:!0})),I(fc,(e,{userData:r})=>sm.addOne(r,g(u({},e),{isLoading:!1,isLoaded:!0}))),I(Es,e=>g(u({},e),{isLoaded:!1,isLoading:!1})),I(om,(e,r)=>g(u({},e),{isAuthorized:r.isAuthorized}))),OI=(e=AI,r)=>aq(e,r);var P_={};j(P_,{areUserMyProfileDataLoaded:()=>II,areUserMyProfileDataLoading:()=>RI,isUserAuthroized:()=>xI,selectUserMyProfileState:()=>F_,userMyProfileDataSelector:()=>MI,userMyProfileStateSelector:()=>pc});var F_=xe("userprofile"),pc=A(F_,e=>e),MI=A(pc,e=>{let r=Object.values(e.entities);return r.length?r[0]:void 0}),RI=A(pc,e=>e.isLoading),II=A(pc,e=>e.isLoaded),xI=A(pc,e=>e.isAuthorized);var cq={permissions:lu.permissionsReducer,settings:pu.generalSettingsReducers.settingsReducer,userprofile:Tu.userMyProfileReducer,pagesList:Xl.pagesListReducer,pageContent:nu.pageContentReducer,pageContentResources:ou.pageContentResourcesReducer,gdpr:Wl.gdprSettingsReducers.gdprReducer,tenant:nm.tenantReducer,siteSearch:_u.siteSearchReducer,peopleList:Wh.peopleListReducer,groupTypesList:Mh.groupTypesListReducer,routerData:Qh.routerReducer.routerReducer,mobile:Ph.mobileSettingsReducers.mobileReducer,myGroups:Yl.myGroupsListReducer,loaderStatus:Lh.loaderReducer.loaderReducer,analyticsOfsted:Dh.analyticsOfstedReducer},lq=[cu.PermissionsEffects,fu.GeneralSettingsEffects,Cu.UserProfileEffects,Ql.PagesListEffects,ru.PageContentEffects,iu.PageContentResourcesEffects,zl.GdprSettingsEffects,rm.TenantEffects,vu.SiteSearchEffects,Hh.PeopleListEffects,Ah.GroupTypesListEffects,Zh.RouterEffects,Fh.MobileSettingsEffects,ql.MyGroupsListEffects,Nh.LoaderStatusEffects,Eh.AnalyticsOfstedEffects],uq=(()=>{class e{static forRoot(t){return{ngModule:e,providers:[{provide:$t,useValue:t}
15,{provide:wo,useClass:ph},{provide:Ka,useClass:Zn},{provide:Gp,useClass:ah},{provide:Ja,useClass:ch},{provide:Dd,useClass:WM,multi:!0},vs,_s]}}static registerExtendedCollectionServices(t,n){let i={PagesContent:n.get(vs),PagesContentUpdate:n.get(_s)};t.registerServices(i)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275mod=G({type:e})}static{this.\u0275inj=V({imports:[hA,RO,HO,tM,sM,lM,gM,NO]})}}return e})();var am=new R("NGB_MODAL_DATA");var rLe=(()=>{class e{#e=f(ae);#t=f(ie);canActivate(){let t=!1;return hi(this.#t,this.#e.select(lc.generalSettingsSelector.areGeneralSettingsLoading).pipe(q(n=>!n),Oe(1),P(()=>this.#e.select(lc.generalSettingsSelector.areGeneralSettingsLoaded).pipe(ge(n=>{n||t||(t=!0,this.#e.dispatch(du.generalSettingsActions.LoadGeneralSettings()))}),q(n=>n),Oe(1)))),{fallback:!0,name:"GeneralSettingsLoaderGuard"})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=h({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var TLe=(()=>{class e{#e=f(ae);#t=f(Ss);#r=f(ie);canActivate(){let t=!1;return hi(this.#r,this.#e.select(ct.selectIsLoaded).pipe(q(n=>n),Oe(1),P(()=>Dt([this.#e.select(Oo.arePagesListLoaded),this.#e.select(Oo.arePagesListLoading)])),q(([n,i])=>i?!1:(!n&&!t&&(t=!0,this.#e.dispatch(Jl.pagesListActions.LoadPagesList({}))),n)),E(([n])=>n),Oe(1)),{fallback:!0,name:"PagesGuard"})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=h({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var GLe=(()=>{class e{#e=f(ae);#t=f(ie);canActivate(){let t=!1;return hi(this.#t,this.#e.select(Uv.selectIsLoaded).pipe(q(n=>n),P(()=>Dt([this.#e.select(ct.selectIsLoaded),this.#e.select(ct.selectIsLoading)])),gn(()=>this.#e.select(Uv.selectDomain)),q(([[n,i],o])=>i?!1:(!n&&!t&&(t=!0,this.#e.dispatch(bt.loadTrigger({domain:o}))),n)),E(()=>!0),Oe(1)),{fallback:!0,name:"SiteGuard"})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=h({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var ZLe=(()=>{class e{#e=f(ae);#t=f(ie);canActivate(){let t=!1;return hi(this.#t,this.#e.select(ct.selectIsLoaded).pipe(q(n=>n),P(()=>Dt([this.#e.select(zv.selectIsLoaded),this.#e.select(zv.selectIsLoading),this.#e.select(ct.selectSiteId)])),q(([n,i,o])=>i?!1:(!n&&!t&&(t=!0,this.#e.dispatch(xt.loadTrigger({siteId:o}))),n)),E(()=>!0),Oe(1)),{fallback:!0,name:"SiteSettingsGuard"})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=h({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var pFe=(()=>{class e{#e=f(ae);#t=f(Fa,{optional:!0});#r=f(ie);#n=mq();canActivate(t){let n=NI({routeMode:gq(t),environmentMode:this.#t?.templatesLoadMode,fallback:"full"}),i=!1,o=n==="current"?this.createCurrentThemeGuard$(s=>{i||(i=!0,this.#e.dispatch(yn.loadTrigger({themeName:s})))}):this.createFullListGuard$(()=>{i||(i=!0,this.#e.dispatch(yn.loadTrigger({})))});return te(this.#r)?hi(this.#r,o,{fallback:!0,name:"TemplateCollectionLoadedGuard",timeoutMs:this.#n}):ri(o,As(this.#n).pipe(ge(()=>console.warn(`TemplateCollectionLoadedGuard Timeout (${this.#n}ms)! Releasing navigation. Check [API-REQUEST] logs for GET /api/templates during SSR.`)),E(()=>!0)))}createFullListGuard$(t){return Dt([this.#e.select(Hl.selectIsLoading),this.#e.select(Hl.selectIsLoaded)]).pipe(ge(([n,i])=>{!n&&!i&&t()}),q(([,n])=>n),E(()=>!0),Oe(1))}createCurrentThemeGuard$(t){return Dt([this.#e.select(ct.selectIsLoaded),this.#e.select(ct.selectEntity),this.#e.select(Hl.selectIsLoading),this.#e.select(Hl.selectIsLoaded)]).pipe(ge(([n,i,o,s])=>{!n||!i?.themeName?.trim()||o||s||t(i.themeName.trim())}),q(([n,i,,o])=>n&&!!i?.themeName?.trim()&&o),E(()=>!0),Oe(1))}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=h({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),hq=5e3;function mq(){let e=typeof process<"u"&&process.env&&typeof process.env.TEMPLATE_GUARD_TIMEOUT_MS=="string"?parseInt(process.env.TEMPLATE_GUARD_TIMEOUT_MS,10):NaN;return Number.isFinite(e)&&e>0?e:hq}function gq(e){let r=e;for(;r;){let t=r.data?.templatesLoadMode;if(t==="full"||t==="current")return t;r=r.parent}}var LI="http://localhost:8888",BFe=`${LI}/local_api`,VFe=`${LI}/sj3_themes`;function PI(e){return e&&{id:e.id,showArrows:e.showArrows,showCaptions:e.showCaptions,showPoints:e.showPoints,animationSpeed:e.animationSpeed,animationDelay:e.animationDelay,animationType:e.animationType,slideshowCaptions:e.slideshowCaptions,slideshowTitles:e.slideshowTitles,slideshowHomePageCaptions:e.slideshowHomePageCaptions,slideshowHomePageTitles:e.slideshowHomePageTitles,publicationMode:e.publicationMode,site:e.site,onlyOnHomePage:FI(e.onlyOnHomePage),attachments:FI(e.attachments)}}function FI(e){return e?.length?e.map(vq):e}function vq(e){return{id:e.id,name:e.name,type:e.type,altText:e.altText,url:_q(e.url)}}function _q(e){if(!e)return e;let r={xs:e.xs,s:e.s,m:e.m,ml:e.ml,l:e.l,fileId:e.fileId};return e.mp4&&(r.mp4=e.mp4),e.pdf&&(r.pdf=e.pdf),r}var Sq=["id","name","type","parentId","postalCode","streetAddress1","
15streetAddress2","city","country","phoneNumber","email","website","mobileApp","schoolLogin","disabled","domain","defaultDomain"];function HFe(e){if(!e)return e;let r={};for(let t of Sq){let n=e[t];n!==void 0&&(r[t]=n)}return r}function Eq(e,r){let t=r?.trim();if(!t)return e;let n=e.includes("?")?"&":"?";return`${e}${n}v=${encodeURIComponent(t)}`}function qFe(e,r,t,n){let i=t.trim().replace(/^\.\//,""),o=Ee(e,r,i);return Eq(o,n)}var mi="/api/templates";function kI(e){if(e?.trim())try{let r=new URL(Ee(e.replace(/\/$/,""),"templates"));return wu(r.toString())}catch(r){return}}function jI(e,r){if(!r?.trim())return!1;try{let t=new URL(r),n=new URL(e),i=t.pathname.replace(/\/+$/,"")||"/",o=n.pathname.replace(/\/+$/,"")||"/";return n.origin===t.origin&&(o===i||o.startsWith(`${i}/`))}catch(t){let n=r.replace(/\/+$/,"");return e===n||e.startsWith(`${n}/`)}}function bq(e,r){let t=kI(r);return t?wu(e).startsWith(t):!1}function JFe(e,r){let t=kI(r);if(!t)return e;let i=wu(e).slice(t.length);return`${mi}${i}`}function ZFe(e,r,t,n){if(!bq(r,t))return!1;if(e)return!0;if(!n)return!1;try{return new URL(t).origin!==n}catch(i){return!1}}function QFe(e,r){let t=r.replace(/\/$/,""),n=e.startsWith("/")?e:`/${e}`;return`${t}${n}`}function XFe(e){if(!e?.get)return;let r=e.get("host");return r?`${e.get("x-forwarded-proto")?.split(",")[0]?.trim()||e.protocol||"http"}://${r}`:void 0}function Dq(){let e=typeof process<"u"&&process.env&&typeof process.env.PORT=="string"?process.env.PORT.trim():"";return`http://localhost:${e.length>0?e:"8082"}`}function Cq(e){if(Tq(e))return!0;try{let r=new URL(e).pathname.replace(/\/+$/,"")||"/";return r===mi||r.startsWith(`${mi}/`)}catch(r){return!1}}function Tq(e){let r=wu(e);return r===mi||r.startsWith(`${mi}/`)||r.startsWith(`${mi}?`)}var wq=new Set(["invalidate-cache"]);function Aq(e){if(!Cq(e))return null;let r=wu(e).split("?")[0]??"";if(r===mi)return{kind:"list"};let t=`${mi}/`;if(!r.startsWith(t))return null;let n=r.slice(t.length);if(!n.length||n.includes("/"))return null;let i;try{i=decodeURIComponent(n).trim()}catch(o){i=n.trim()}return!i.length||wq.has(i)?null:{kind:"single",themeName:i}}function ePe(e){if(!Aq(e))return!1;if(!/^https?:\/\//i.test(e.trim()))return!0;try{return new URL(e).origin===new URL(Dq()).origin}catch(t){return!1}}function tPe(e,r){return e.clone({url:r,headers:e.headers.delete("Authorization").delete("Anonymous").delete("XTenantIgnore").set("Anonymous","true").set("XTenantIgnore","true")})}function wu(e){try{let r=new URL(e);r.hash="";let t=r.pathname.replace(/\/+$/,"");return t.length||(t="/"),`${t}${r.search}`}catch(r){let[t,...n]=e.split("?"),i=(t||"/").replace(/\/+$/,"")||"/";i.startsWith("/")||(i=`/${i}`);let o=n.length?`?${n.join("?")}`:"";return`${i}${o}`}}var cm=`If you are interested in this feature, please get in touch.
16Email: [email protected]
17Phone: 0113 3200 750`;var Oq="tile-settings",Mq="tile-audio-newsletters",Rq="audio-newsletter-content-component",UI='<p><strong>Audio Newsletters &amp; Podcasts</strong><br>Make your school&rsquo;s news and updates accessible to everyone with&nbsp;<strong>audio newsletters in any language</strong>. Help every family stay connected, whatever their preferred way of receiving information.<br><strong>&pound;295 per year</strong><br><strong>Enable Audio Newsletters &rarr;</strong><br>Questions?&nbsp;<strong>0113 3200 750</strong>&nbsp;|&nbsp;<a href="mailto:[email protected]" target="_self" data-element-def="%7B%22openInNewTab%22%3Afalse%2C%22linkAsButton%22%3Afalse%2C%22linkType%22%3A%22MAIL%22%2C%22mail%22%3A%22info%40schooljotter.com%22%7D"><strong>[email protected]</strong></a></p>',Iq={visible:!0,visibleOnlySuperadmin:!1,badge:"New Feature",badgeColor:"success",popover:!0,popoverContent:UI,clickable:!1,clickableOnlySuperadmin:!1,muted:!0},xq={visible:!1,visibleOnlySuperadmin:!1,popover:!1,popoverContent:UI,clickable:!1,clickableOnlySuperadmin:!1,muted:!0},j_={[Oq]:{config:{visible:!0,clickable:!0},enforced:!0},[Mq]:{config:Iq},[Rq]:{config:xq}};var Nq=15,GI="danger",Lq=["primary","secondary","success","danger","warning","info","light","dark"];var Fq="modulesPopoverContent",Pq="contentComponentsPopoverContent",BI={visible:!0,badge:"",badgeColor:GI,popover:!1,popoverContent:cm,clickable:!0,muted:!1,visibleOnlySuperadmin:!1,clickableOnlySuperadmin:!1};
17function uPe(e){return!!e?.some(r=>r.value===Ma.ROLE_ORG_CREATEORG)}function dPe(e,r){return lm(e.visibleOnlySuperadmin,!1)?r:lm(e.visible,!0)}function fPe(e,r){return lm(e.clickableOnlySuperadmin,!1)?r:lm(e.clickable,!0)}function lm(e,r){return e==null?r:e===!1||e==="false"||e===0||e==="0"?!1:e===!0||e==="true"||e===1||e==="1"||!!e}function $I(e){return!e?.badge||typeof e.badge!="string"?"":e.badge.trim().slice(0,Nq)}function U_(e){return!e?.popoverContent||typeof e.popoverContent!="string"?"":e.popoverContent.trim()}function VI(e,r,t){let n=U_(r);if(n)return n;let i=U_(e?j_[e]?.config:void 0);if(i)return i;let o=typeof t=="string"?t.trim():"";return o||cm}function kq(e){return e?Object.fromEntries(Object.entries(e).filter(([,r])=>r!==void 0)):{}}function pPe(e,r,t){let n=e?j_[e]:void 0;return n?.enforced?g(u(u({},BI),n.config),{popoverContent:VI(e)}):g(u(u(u({},BI),n?.config),kq(r)),{popoverContent:VI(e,r,t)})}function jq(e){return typeof e=="string"&&Lq.includes(e)}function Uq(e,r=$I(e)){if(r)return jq(e?.badgeColor)?e.badgeColor:GI}function Bq(e){return`text-bg-${e}`}function hPe(e){let r=$I(e);if(!r)return;let t=Uq(e,r);if(t)return{text:r,badgeClass:Bq(t)}}function Vq(e,r){let n=cc(e)[r];if(!n)return{};if(typeof n=="string")try{return JSON.parse(n)}catch(i){return{}}return n}function mPe(e){return Vq(e,"contentComponents")}function gPe(e,r){let i=cc(e)[r==="modules"?Fq:Pq];return typeof i=="string"?i:""}function Gq(e){return e.includes("<")?e:e.replace(/\n/g,"<br>")}function yPe(e){let r=U_(e)||cm;return Gq(r)}var HI="j3-school-logo-preload",$q=e=>{let r=Ze(qr.ImageSize[e])?1920:parseInt(`${qr.ImageSize[e]}`,10),t=[],n=Object.values(qr.PicturesSizes);return n.forEach((i,o)=>{let s=Ze(qr.ImageSize[n[o]])?1920:qr.ImageSize[n[o]];switch(!0){case(o===n.length-1&&r>qr.ImageSize.ml):t.push(qr.PicturesSizes.L);break;case r>=s:t.push(n[o]);break;case(r>qr.ImageSize[n[o-1]]&&r<s):t.push(n[o]);break;case(r<=qr.ImageSize.xs&&i===qr.PicturesSizes.XS):t.push(qr.PicturesSizes.XS);break}}),t},zI=e=>{let r=e.trim();if(r.length===0)return r;let t=r.indexOf("?"),n=r.indexOf("#"),i=r.length;t>=0&&(i=Math.min(i,t)),n>=0&&(i=Math.min(i,n));let o=r.slice(0,i),s=r.slice(i);return o.endsWith(".webp")||/\.(jpe?g|png|gif|svg|svgz|avif|bmp|ico)$/i.test(o)?r:`${o}.webp${s}`},Hq=(e,r)=>{let t=r??"m",n=e.webp?.[t],i=e[t],o=(typeof n=="string"&&n.length>0?n:i)??"";return o?zI(o):""},zq=(e,r)=>{e.id=HI,e.rel="preload",e.setAttribute("as","image"),e.href=r,r.endsWith(".webp")&&(e.type="image/webp")};var qI={};j(qI,{pluralize:()=>Wq,toKebabCase:()=>qq});var Wq=e=>e?e.endsWith("ies")||e.endsWith("es")||!e.endsWith("us")&&e.endsWith("s")?e:e.endsWith("y")&&!e.endsWith("ay")?`${e.substring(0,e.length-1)}ies`:e.endsWith("us")?`${e}es`:`${e}s`:null,qq=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();var YI={};j(YI,{colorCalculator:()=>Yq});var Yq=e=>{if(!e)return;let t=e.match(/[0-9a-f]{2}/gi).map(i=>{let o=parseInt(i,16)/255;return o<=.03928?o/12.92:Math.pow((o+.055)/1.055,2.4)}),n=.2126*t[0]+.7152*t[1]+.0722*t[2];return(n+.05)/.05>1.05/(n+.05)?"#000":"#fff"};var Kq=["wa-page-view","wa-file-view","wa-file-download","odetect"];function KI(e){return Kq.some(r=>e.includes(r))}var Jq=["https://nominatim.openstreetmap.org","https://maps.stagingjotter3.co.uk","https://maps.developjotter3.co.uk","https://maps.schooljotter3.com"];function JI(e){return Jq.some(r=>e.includes(r))}var nke=(()=>{class e{constructor(t,n){this.platformId=t,this.env=n}intercept(t,n){let i=this.getCurrentTimezone();if(!i?.length||this.shouldSkipTimezoneHeader(t.urlWithParams))return n.handle(t);let o=t.clone({headers:t.headers.set("X-Timezone",i)});return n.handle(o)}shouldSkipTimezoneHeader(t){return JI(t)||KI(t)||t.includes(`${mi}`)?!0:jI(t,this.env.SITES_TEMPLATES_URL)}getCurrentTimezone(){return te(this.platformId)?"":Intl.DateTimeFormat().resolvedOptions().timeZone}static{this.\u0275fac=function(n){return new(n||e)(p(ie),p(Fa))}}static{this.\u0275prov=h({token:e,factory:e.\u0275fac})}}return e})();var B_=class{};var Zq=new R("MODULE_PROVIDER_TOKEN"),V_=class{constructor(r){this.appType=r}get applicationType(){return this.appType}};var G_=class{};var Qq={"application/vnd.openxmlformats-officedocument.wordprocessingml.document":".docx","application/msword":".doc","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":".xlsx","application/msexcel":".xls","application/vnd.openxmlformats-officedocument.presentationml.presentation":".pptx","application/vnd.ms-powerpoint":".ppt","application/pdf":".pdf","text/plain":".txt","text/csv":".csv","text/html":".html","text/xml":".xml","text/rtf":".rtf","image/jpeg":".jpg","image/png":".png","image/gif":".gif","image/svg+xml":".svg","image/webp":".webp","image/bmp":".bmp","image/tiff":".tiff","image/heic":".heic","image/heif":".heif","image/x-icon":".ico","audio/mpeg":".mp3","audio/wav":".wav","audio/ogg":".ogg","audio/midi":".midi","audio/x-wav":".wav","audio/x-flac":".flac","audio/wma":".wma","audio/x-m4a":".m4a","video/mp4":".mp4","video/quicktime":".mov","video/x-msvideo":".avi","video/mpeg":".mpeg","video/x-flv":".flv","video/x-matroska":".mkv","video/x-mpg":".vob","video/x-ms-wmv":".wmv","application/zip":".zip","application/x-7z-compressed":".7z","application/x-tar":".tar","application/vnd.rar":".rar","application/gzip":".gz","application/x-rar-compressed":".rar","application/x-mspublisher":".pub"};function ZI(e){return Qq[e]||""}var Xq=/\.(png|jpe?g|gif|webp|heic|heif|svg|bmp|avif)$/i;function Oke(e){return!!e&&Xq.test(e)}var kke=(()=>{class e{#e;#t;constructor(t){this.document=t,this.#e=f(At),this.#t=f(Ce),this.destroyRef=f(_t)}onDownloadFile(t,n){this.#e.get(n,{responseType:"blob",headers:{Anonymous:"true",XTenantIgnore:"true"}}).pipe(Yr(this.destroyRef)).subscribe(i=>{let o=this.#t.createElement("a"),s=URL.createObjectURL(i);o.href=s,o.download=t,o.click(),URL.revokeObjectURL(s)})}onDownloadFileWithExtension(t,n,i){let o=this.getFilenameWithExtension(t,i);this.onDownloadFile(o,n)}getFilenameWithExtension(t,n){if(t&&t.includes("."))return t;if(n){let i=ZI(n);if(i)return`${t}${i}`}return t}static{this.\u0275fac=function(n){return new(n||e)(p(Ce,8))}}static{this.\u0275prov=h({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var $ke=(()=>{class e{#e=f(Te);provideModalData(t,n=this.#e){return Te.create({providers:[{provide:am,useValue:t}],parent:n})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=h({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var Mu=class{},e9=(()=>{class e{handle(t){return t.key}static \u0275fac=function(n){return new(n||e)};static \u0275prov=h({token:e,factory:e.\u0275fac})}return e})(),hc=class{},t9=(()=>{class e extends hc{compile(t,n){return t}compileTranslations(t,n){return t}static \u0275fac=(()=>{let t;return function(i){return(t||(t=Le(e)))(i||e)}})();static \u0275prov=h({token:e,factory:e.\u0275fac})}return e})(),mc=class{},r9=(()=>
17{class e extends mc{getTranslation(t){return _({})}static \u0275fac=(()=>{let t;return function(i){return(t||(t=Le(e)))(i||e)}})();static \u0275prov=h({token:e,factory:e.\u0275fac})}return e})();function um(e,r){if(e===r)return!0;if(e===null||r===null)return!1;if(e!==e&&r!==r)return!0;let t=typeof e,n=typeof r,i;if(t==n&&t=="object")if(Array.isArray(e)){if(!Array.isArray(r))return!1;if((i=e.length)==r.length){for(let o=0;o<i;o++)if(!um(e[o],r[o]))return!1;return!0}}else{if(Array.isArray(r))return!1;if(Vi(e)&&Vi(r)){let o=Object.create(null);for(let s in e){if(!um(e[s],r[s]))return!1;o[s]=!0}for(let s in r)if(!(s in o)&&typeof r[s]<"u")return!1;return!0}}return!1}function Mo(e){return typeof e<"u"&&e!==null}function QI(e){return e!==void 0}function Vi(e){return Ou(e)&&!Ds(e)&&e!==null}function Ou(e){return typeof e=="object"&&e!==null}function Ds(e){return Array.isArray(e)}function dm(e){return typeof e=="string"}function n9(e){return typeof e=="function"}function fm(e){if(Ds(e))return e.map(r=>fm(r));if(Vi(e)){let r={};return Object.keys(e).forEach(t=>{r[t]=fm(e[t])}),r}else return e}function z_(e,r){if(!Ou(e))return fm(r);let t=fm(e);return Ou(t)&&Ou(r)&&Object.keys(r).forEach(n=>{Vi(r[n])?n in e?t[n]=z_(e[n],r[n]):Object.assign(t,{[n]:r[n]}):Object.assign(t,{[n]:r[n]})}),t}function ex(e,r){let t=r.split(".");r="";do{r+=t.shift();let n=!t.length;if(Mo(e)){if(Vi(e)&&QI(e[r])&&(Vi(e[r])||Ds(e[r])||n)){e=e[r],r="";continue}if(Ds(e)){let i=parseInt(r,10);if(QI(e[i])&&(Vi(e[i])||Ds(e[i])||n)){e=e[i],r="";continue}}}if(n){e=void 0;continue}r+="."}while(t.length);return e}function i9(e,r,t){return z_(e,o9(r,t))}function o9(e,r){return e.split(".").reduceRight((t,n)=>({[n]:t}),r)}var gc=class{},s9=(()=>{class e extends gc{templateMatcher=/{{\s?([^{}\s]*)\s?}}/g;interpolate(t,n){if(dm(t))return this.interpolateString(t,n);if(n9(t))return this.interpolateFunction(t,n)}interpolateFunction(t,n){return t(n)}interpolateString(t,n){return n?t.replace(this.templateMatcher,(i,o)=>{let s=this.getInterpolationReplacement(n,o);return s!==void 0?s:i}):t}getInterpolationReplacement(t,n){return this.formatValue(ex(t,n))}formatValue(t){if(dm(t))return t;if(typeof t=="number"||typeof t=="boolean")return t.toString();if(t===null)return"null";if(Ds(t))return t.join(", ");if(Ou(t))return typeof t.toString=="function"&&t.toString!==Object.prototype.toString?t.toString():JSON.stringify(t)}static \u0275fac=(()=>{let t;return function(i){return(t||(t=Le(e)))(i||e)}})();static \u0275prov=h({token:e,factory:e.\u0275fac})}return e})(),$_=(()=>{class e{_onTranslationChange=new me;_onLangChange=new me;_onFallbackLangChange=new me;fallbackLang=null;currentLang;translations={};languages=[];getTranslations(t){return this.translations[t]}setTranslations(t,n,i){this.translations[t]=i&&this.hasTranslationFor(t)?z_(this.translations[t],n):n,this.addLanguages([t]),this._onTranslationChange.next({lang:t,translations:this.getTranslations(t)})}getLanguages(){return this.languages}getCurrentLang(){return this.currentLang}getFallbackLang(){return this.fallbackLang}setFallbackLang(t,n=!0){this.fallbackLang=t,n&&this._onFallbackLangChange.next({lang:t,translations:this.translations[t]})}setCurrentLang(t,n=!0){this.currentLang=t,n&&this._onLangChange.next({lang:t,translations:this.translations[t]})}get onTranslationChange(){return this._onTranslationChange.asObservable()}get onLangChange(){return this._onLangChange.asObservable()}get onFallbackLangChange(){return this._onFallbackLangChange.asObservable()}addLanguages(t){this.languages=Array.from(new Set([...this.languages,...t]))}hasTranslationFor(t){return typeof this.translations[t]<"u"}deleteTranslations(t){delete this.translations[t]}getTranslation(t){let n=this.getValue(this.currentLang,t);return n===void 0&&this.fallbackLang!=null&&this.fallbackLang!==this.currentLang&&(n=this.getValue(this.fallbackLang,t)),n}getValue(t,n){return ex(this.getTranslations(t),n)}static \u0275fac=function(n){return new(n||e)};static \u0275prov=h({token:e,factory:e.\u0275fac})}return e})(),H_=new R("TRANSLATE_CONFIG"),Au=e=>tn(e)?e:_(e);var Ru=(()=>{class e{loadingTranslations;pending=!1;_translationRequests={};lastUseLanguage=null;currentLoader=f(mc);compiler=f(hc);parser=f(gc);missingTranslationHandler=f(Mu);store=f($_);extend=!1;get onTranslationChange(){return this.store.onTranslationChange}get onLangChange(){return this.store.onLangChange}get onFallbackLangChange(){return this.store.onFallbackLangChange}get onDefaultLangChange(){return this.store.onFallbackLangChange}constructor(){let t=u({extend:!1,fallbackLang:null},f(H_,{optional:!0}));t.lang&&this.use(t.lang),t.fallbackLang&&this.setFallbackLang(t.fallbackLang),t.extend&&(this.extend=!0)}setFallbackLang(t){this.getFallbackLang()||this.store.setFallbackLang(t,!1);let n=this.loadOrExtendLanguage(t);return tn(n)?(n.pipe(Oe(1)).subscribe({next:()=>{this.store.setFallbackLang(t)},error:()=>{}}),n):(this.store.setFallbackLang(t),_(this.store.getTranslations(t)))}use(t){this.lastUseLanguage=t,this.getCurrentLang()||this.store.setCurrentLang(t,!1);let n=this.loadOrExtendLanguage(t);return tn(n)?(n.pipe(Oe(1)).subscribe({next:()=>{this.changeLang(t)},error:()=>{}}),n):(this.changeLang(t),_(this.store.getTranslations(t)))}loadOrExtendLanguage(t){if(!this.store.hasTranslationFor(t)||this.extend)return this._translationRequests[t]=this._translationRequests[t]||this.loadAndCompileTranslations(t),this._translationRequests[t]}changeLang(t){t===this.lastUseLanguage&&this.store.setCurrentLang(t)}getCurrentLang(){return this.store.getCurrentLang()}loadAndCompileTranslations(t){this.pending=!0;let n=this.currentLoader.getTranslation(t).pipe(Ct(1),Oe(1));return this.loadingTranslations=n.pipe(E(i=>this.compiler.compileTranslations(i,t)),Ct(1),Oe(1)),this.loadingTranslations.subscribe({next:i=>{this.store.setTranslations(t,i,this.extend),this.pending=!1},error:i=>{this.pending=!1}}),n}setTranslation(t,n,i=!1){let o=this.compiler.compileTranslations(n,t);this.store.setTranslations(t,o,i||this.extend)}getLangs(){return this.store.getLanguages()}addLangs(t){this.store.addLanguages(t)}getParsedResultForKey(t,n){let i=this.getTextToInterpolate(t);if(Mo(i))return this.runInterpolation(i,n);let o=this.missingTranslationHandler.handle(u({key:t,translateService:this},n!==void 0&&{interpolateParams:n}));return o!==void 0?o:t}getFallbackLang(){return this.store.getFallbackLang()}getTextToInterpolate(t){return this.store.getTranslation(t)}runInterpolation(t,n){if(Mo(t))return Ds(t)?this.runInterpolationOnArray(t,n):Vi(t)?this.runInterpolationOnDict(t,n):this.parser.interpolate(t,n)}runInterpolationOnArray(t,n){return t.map(i=>this.runInterpolation(i,n))}runInterpolationOnDict(t,n){let i={};for(let o in t){let s=this.runInterpolation(t[o],n);s!==void 0&&(i[o]=s)}return i}getParsedResult(t,n){return t instanceof Array?this.getParsedResultForArray(t,n):this.getParsedResultForKey(t,n)}getParsedResultForArray(t,n){let i={},o=!1;for(let a of t)i[a]=this.getParsedResultForKey(a,n),o=o||tn(i[a]);if(!o)return i;let s=t.map(a=>Au(i[a]));return ws(s).pipe(E(a=>{let c={};return a.forEach((l,d)=>{c[t[d]]=l}),c}))}get(t,n){if(!Mo(t)||!t.length)throw new Error('Parameter "key" is required and cannot be empty');return this.pending?this.loadingTranslations.pipe(rn(()=>Au(this.getParsedResult(t,n)))):Au(this.getParsedResult(t,n))}getStreamOnTranslationChange(t,n){if(!Mo(t)||!t.length)throw new Error('Parameter "key" is required and cannot be empty');return Sc(No(()=>this.get(t,n)),this.onTranslationChange.pipe(P(()=>{let i=this.getParsedResult(t,n);return Au(i)})))}stream(t,n){if(!Mo(t)||!t.length)throw new Error('Parameter "key" required');return Sc(No(()=>this.get(t,n)),this.onLangChange.pipe(P(()=>{let i=this.getParsedResult(t,n);return Au(i)})))}instant(t,n){if(!Mo(t)||t.length===0)throw new Error('Parameter "key" is required and cannot be empty');let i=this.getParsedResult(t,n);return tn(i)?Array.isArray(t)?t.reduce((o,s)=>(o[s]=s,o),{}):t:i}set(t,n,i=this.getCurrentLang()){this.store.setTranslations(i,i9(this.store.getTranslations(i),t,dm(n)?this.compiler.compile(n,i):this.compiler.compileTranslations(n,i)),!1)}reloadLang(t){return this.resetLang(t),this.loadAndCompileTranslations(t)}resetLang(t){delete this._translationRequests[t],this.store.deleteTranslations(t)}static getBrowserLang(){if(typeof window>"u"||!window.navigator)return;let t=this.getBrowserCultureLang();return t?t.split(/[-_]/)[0]:void 0}static getBrowserCultureLang(){if(!(typeof window>"u"||typeof window.navigator>"u"))return window.navigator.languages?window.navigator.languages[0]:window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage}getBrowserLang(){return e.getBrowserLang()}getBrowserCultureLang(){return e.getBrowserCultureLang()}get defaultLang(){return this.getFallbackLang()}get currentLang(){return this.store.getCurrentLang()}get langs(){return this.store.getLanguages()}setDefaultLang(t){return this.setFallbackLang(t)}getDefaultLang(){return this.getFallbackLang()}static \u0275fac=function(n){return new(n||e)};static \u0275prov=h({token:e,factory:e.\u0275fac})}return e})();var Xke=(()=>{class e{translate=f(Ru);_ref=f(it);value="";lastKey=null;lastParams=[];onTranslationChange;onLangChange;onFallbackLangChange;
17updateValue(t,n,i){let o=s=>{this.value=s!==void 0?s:t,this.lastKey=t,this._ref.markForCheck()};if(i){let s=this.translate.getParsedResult(t,n);tn(s)?s.subscribe(o):o(s)}this.translate.get(t,n).subscribe(o)}transform(t,...n){if(!t||!t.length)return t;if(um(t,this.lastKey)&&um(n,this.lastParams))return this.value;let i;if(Mo(n[0])&&n.length)if(dm(n[0])&&n[0].length){let o=n[0].replace(/(')?([a-zA-Z0-9_]+)(')?(\s)?:/g,'"$2":').replace(/:(\s)?(')(.*?)(')/g,':"$3"');try{i=JSON.parse(o)}catch(s){throw new SyntaxError(`Wrong parameter in TranslatePipe. Expected a valid Object, received: ${n[0]}`)}}else Vi(n[0])&&(i=n[0]);return this.lastKey=t,this.lastParams=n,this.updateValue(t,i),this._dispose(),this.onTranslationChange||(this.onTranslationChange=this.translate.onTranslationChange.subscribe(o=>{(this.lastKey&&o.lang===this.translate.getCurrentLang()||o.lang===this.translate.getFallbackLang())&&(this.lastKey=null,this.updateValue(t,i,o.translations))})),this.onLangChange||(this.onLangChange=this.translate.onLangChange.subscribe(o=>{this.lastKey&&(this.lastKey=null,this.updateValue(t,i,o.translations))})),this.onFallbackLangChange||(this.onFallbackLangChange=this.translate.onFallbackLangChange.subscribe(()=>{this.lastKey&&(this.lastKey=null,this.updateValue(t,i))}
17)),this.value}_dispose(){typeof this.onTranslationChange<"u"&&(this.onTranslationChange.unsubscribe(),this.onTranslationChange=void 0),typeof this.onLangChange<"u"&&(this.onLangChange.unsubscribe(),this.onLangChange=void 0),typeof this.onFallbackLangChange<"u"&&(this.onFallbackLangChange.unsubscribe(),this.onFallbackLangChange=void 0)}ngOnDestroy(){this._dispose()}static \u0275fac=function(n){return new(n||e)};static \u0275pipe=Ls({name:"translate",type:e,pure:!1});static \u0275prov=h({token:e,factory:e.\u0275fac})}return e})();function a9(e){return{provide:mc,useClass:e}}function c9(e){return{provide:hc,useClass:e}}function l9(e){return{provide:gc,useClass:e}}function u9(e){return{provide:Mu,useClass:e}}function XI(e={},r){let t=[];e.loader&&t.push(e.loader),e.compiler&&t.push(e.compiler),e.parser&&t.push(e.parser),e.missingTranslationHandler&&t.push(e.missingTranslationHandler),r&&t.push($_),(e.useDefaultLang||e.defaultLanguage)&&(console.warn("The `useDefaultLang` and `defaultLanguage` options are deprecated. Please use `fallbackLang` instead."),e.useDefaultLang===!0&&e.defaultLanguage&&(e.fallbackLang=e.defaultLanguage));let n={fallbackLang:e.fallbackLang??null,lang:e.lang,extend:e.extend??!1};return t.push({provide:H_,useValue:n}),t.push({provide:Ru,useClass:Ru,deps:[$_,mc,hc,gc,Mu,H_]}),t}var eje=(()=>{class e{static forRoot(t={}){return{ngModule:e,providers:[...XI(u({compiler:c9(t9),parser:l9(s9),loader:a9(r9),missingTranslationHandler:u9(e9)},t),!0)]}}static forChild(t={}){return{ngModule:e,providers:[...XI(t,t.isolate??!1)]}}static \u0275fac=function(n){return new(n||e)};static \u0275mod=G({type:e});static \u0275inj=V({})}return e})();var d9=new R("TRANSLATE_PROVIDER"),f9=new R("USE_GOOGLE_TRANSLATE"),lje=(()=>{class e extends Ru{#e;constructor(t,n){super(),this.translateProvider=t,this.#e=f(ae),this.subscriptions=[],this.useExternalService=!1,this.subscriptions.push(n.subscribe(i=>{this.useExternalService=i;let o=this.getCurrentLang();o&&this.use(o).subscribe()}))}getParsedResult(t,n){let i=this.getCurrentLang();return i==="en"||!this.useExternalService||typeof t!="string"?super.getParsedResult(t,n):this.translateProvider.getTranslation(t,i).pipe(E(o=>typeof o=="string"?o:""))}ngOnDestroy(){this.subscriptions.forEach(t=>t?.unsubscribe())}static{this.\u0275fac=function(n){return new(n||e)(p(d9),p(f9))}}static{this.\u0275prov=h({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var yje=(()=>{class e{constructor(t,n){this.platformId=t,this.ngZone=n}loadMap(){return new Ht(t=>{ut(this.platformId)?this.ngZone.runOutsideAngular(()=>import("./chunk-OQYHIOVA.js").then(n=>{t.next(n.default??n)})):t.error("The library could not be loaded")})}static{this.\u0275fac=function(n){return new(n||e)(p(ie),p(Be))}}static{this.\u0275prov=h({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var tx=new R("SSR_OFSTED_FILE_KEYWORDS");var p9="ofsted,siams,inspection,section 48,term,calendar,holiday,inset,pupil premium,ppg,safeguarding,child protection,keeping children safe,send,sen,special educational,attendance,behaviour,bullying,accessibility,equality";function nx(e){let r=e?.trim()?e:p9,t=new Set,n=[];for(let i of r.split(",")){let o=i.trim().toLowerCase();!o||t.has(o)||(t.add(o),n.push(o))}return n}function h9(e){let r=e.trim();if(!r)return"  ";if(r.includes("/")||r.includes("%")){let t=r.split("?")[0]??r,n=t.slice(t.lastIndexOf("/")+1);if(n)try{r=decodeURIComponent(n)}catch(i){r=n}}return r=m9(r),r=r.toLowerCase(),r=r.replace(/[^a-z0-9]+/g," "),r=r.replace(/([a-z])(\d)/g,"$1 $2"),r=r.replace(/(\d)([a-z])/g,"$1 $2"),r=r.replace(/\s+/g," ").trim(),` ${r} `}function ix(e){let r=e.map(s=>s.trim().toLowerCase()).filter(Boolean);if(r.length===0)return()=>null;let t=r.map(s=>({keyword:s,pattern:g9(s)})),n=t.map(({pattern:s},a)=>`(?<kw${a}>${s})`).join("|"),i=new RegExp(n),o=new Map;return s=>{let a=s;if(o.has(a))return o.get(a)??null;let c=h9(s),l=i.exec(c),d=null;if(l?.groups){for(let m=0;m<t.length;m+=1)if(l.groups[`kw${m}`]!==void 0){d=t[m].keyword;break}}return o.size>=500&&o.clear(),o.set(a,d),d}}function m9(e){return e.replace(/([a-z])([A-Z])/g,"$1 $2").replace(/([A-Z]+)([A-Z][a-z])/g,"$1 $2")}
17function g9(e){let r=e.split(/\s+/).filter(Boolean);if(r.length===0)return"(?!x)x";if(r.length===1)return` ${rx(r[0],pm(r[0]))}`;let t=` ${pm(r[0])}`;for(let i=1;i<r.length-1;i+=1)t+=`(?: ?${pm(r[i])}`;let n=r[r.length-1];t+=`(?: ?${rx(n,pm(n))}`;for(let i=1;i<r.length;i+=1)t+=")";return t}function rx(e,r){return/^\d+$/.test(e)?`${r}(?=\\s|$)`:e.length<=5?`${r}(?:s)?(?=\\s|$)`:`${r}[a-z]*(?=\\s|$)`}function pm(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}var hm="J3_OFSTED_FILE_KEYWORDS";function ox(e,r,t){!te(e)||!r||r.set(hm,t)}function sx(e,r){if(!ut(e)||!r?.hasKey(hm))return;let t=r.get(hm,void 0);return r.remove(hm),t}var Rje=(()=>{class e{#e=f(ie);#t=f(Ft);#r=f(tx,{optional:!0});#n;#i=null;#o=!1;init(){if(!this.#o){if(this.#o=!0,te(this.#e)){let t=this.#r?.trim()||void 0;ox(this.#e,this.#t,t),this.#n=t;return}ut(this.#e)&&(this.#n=sx(this.#e,this.#t))}}matchFileName(t){let n=typeof t=="string"?t:t?.name;return n?.trim()?this.getMatcher()(n):null}getMatcher(){return this.#i||(this.#i=ix(nx(this.#n))),this.#i}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=h({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var mm="J3_PAGE_SLIDESHOW",Hje=(()=>{class e{#e;#t;#r;constructor(t,n,i,o,s,a,c){this.apiService=t,this.queryAdapter=n,this.store=i,this.router=o,this.document=s,this.platformId=a,this.transferState=c,this.slideshowDataObserver=new Nt(void 0),this.appEditorUrlLinks="/sites/page",this.restoreSlideshowFromTransferState()}restoreSlideshowFromTransferState(){!ut(this.platformId)||!this.transferState?.hasKey(mm)||(this.#r=this.transferState.get(mm,void 0),this.transferState.remove(mm))}tryRestoreSlideshowFromTransferState(t){let n=this.#r;return n?gh(n.pageId)!==gh(t)?(this.#r=void 0,!1):(this.#r=void 0,this.#t=t,this.slideshowDataObserver.next(n.slideshow),!0):!1}storeSlideshowTransferState(t,n){!te(this.platformId)||!this.transferState||this.transferState.set(mm,{pageId:gh(t),slideshow:PI(n)})}getData(){return this.store.select(uc.settingsSelectors.generalSettingsSelector.generalSettingsSelector).pipe(ge(t=>{t?.isLoaded||t?.isLoading||this.store.dispatch(uc.settingsActions.generalSettingsActions.LoadGeneralSettings())}),q(t=>t?.isLoaded),Oe(1),E(t=>g(u({},t),{headTeacher:{name:t?.headteacher},schoolName:t?.name,motto:t?.motto,phoneNr:t?.telephone,logoImg:t?.logo,address:{street:t?.street,postcode:t?.postcode,city:t?.city},pageUrl:"/sites/page/",socialMedia:{facebook:t?.facebook,twitter:t?.twitter,instagram:t?.instagram,vimeo:t?.vimeo,youtube:t?.youtube}})))}getPages(){return this.store.select(tu.pagesSelectors.pagesListSelector).pipe(q(t=>Array.isArray(t)&&t.length>0),Oe(1))}get slideshowData(){return this.slideshowDataObserver.asObservable()}#n(){let t=this.document.getElementsByClassName("top-swiper-slideshow");if(!t.length)return;let n=t[0],i=n.getBoundingClientRect().height;i>=48&&(n.style.minHeight=`${Math.ceil(i)}px`)}loadSlideshowForPage(t,n=!1){if(this.#e===t||this.#t===t&&this.slideshowDataObserver.value||this.tryRestoreSlideshowFromTransferState(t))return;let i={pagination:{page:1,size:1}},o=this.#t!==t;this.#e=t,this.apiService.load(Ee("pages",t,"slideshows"),this.queryAdapter.toQueryParam(i)).pipe(q(s=>{let a=!!s.result.length;return a||(this.#e=void 0,this.#t=t,this.slideshowDataObserver.next(void 0),this.storeSlideshowTransferState(t,void 0)),a}),P(s=>this.apiService.loadSingle("slideshows",s.result[0].id))).subscribe(s=>{this.#e=void 0,this.#t=t,this.slideshowDataObserver.next(s.result),this.storeSlideshowTransferState(t,s.result)})}invokeSearch(t){this.router.navigate(["search"],{queryParams:{phrase:t}})}static{this.\u0275fac=function(n){return new(n||e)(p(Q),p(Xt),p(ae),p(Wr),p(Ce),p(ie),p(Ft,8))}}static{this.\u0275prov=h({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var Xje=(()=>{class e{#e=f(Q);#t=new Map;#r=new Map;getMetaPageAuthTokens(t){let n=this.#t.get(t);if(n)return n;let i=this.#e.generateParams({tenantId:t,"order[createDate]":"desc"});return n=this.#e.load("meta_page_auth_tokens",i).pipe(E(o=>o.result||[]),U(()=>_([])),Ct(1)),this.#t.set(t,n),n}getInstagramAuthTokens(t){let n=this.#r.get(t);if(n)return n;let i=this.#e.generateParams({tenantId:t,"order[createDate]":"desc"});return n=this.#e.load("instagram_auth_tokens",i).pipe(E(o=>o.result||[]),U(()=>_([])),Ct(1)),this.#r.set(t,n),n}
17getInstagramLinkedAccountsBadgeType(t,n){return this.getInstagramAuthTokens(t).pipe(E(i=>this.#n(i,n)),U(()=>_(null)))}invalidate(t){if(t){this.#t.delete(t),this.#r.delete(t);return}this.#t.clear(),this.#r.clear()}#n(t,n){let i=!1,o=!1;return t.forEach(s=>{if(!s.expiresAt)return;let a=wp.getExpirationStatus(s.expiresAt);if(a){if(a.isExpired){i=!0;return}a.diffDaysRemaining<n&&(o=!0)}}),i?"danger":o?"warning":null}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=h({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var ax=new R("RESPONSE");var uUe=(()=>{class e{#e=f(ie);#t;constructor(t){this.#t=t??null}get isServer(){return te(this.#e)}redirect(t,n){let i=this.#r();i&&(i.setHeader("Cache-Control","private, no-cache, no-store, must-revalidate"),i.setHeader("Pragma","no-cache"),i.setHeader("Expires","0"),i.redirect(t,n),i.end())}setCookie(t,n,i){let o=this.#r();o&&o.cookie(t,n,i)}clearCookie(t,n){let i=this.#r();i&&i.clearCookie(t,n)}#r(){return!te(this.#e)||!this.#t?null:this.#t}static{this.\u0275fac=function(n){return new(n||e)(p(ax,8))}}static{this.\u0275prov=h({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var W_;function fUe(){return W_||(W_=import("./chunk-STOJP53H.js").then(e=>e.default)),W_}var y9=20,v9=1e4,yUe=(()=>{class e{#e=f(ie);#t=null;#r=[];#n=null;setContext(t){this.#t=t,this.clearBufferExpiryTimer(),this.flushBuffer()}trackFileView(t){this.trackFileEvent("file_view",t)}trackFileDownload(t){this.trackFileEvent("file_download",t)}trackOfstedDetection(t){this.trackFileEvent("ofsted_detection",t)}trackEvent(t,n){this.enqueueOrEmit(t,n)}trackFileEvent(t,n){if(this.isEventEnabled(t)){if(!this.#t){this.enqueueOrEmit(t,this.buildFileEventData(n,null));return}this.enqueueOrEmit(t,this.buildFileEventData(n,this.#t))}}buildFileEventData(t,n){let i={file_name:t.fileName,file_extension:_9(t.fileName),file_type:String(t.fileType??0)};return t.fileId&&(i.file_id=t.fileId),t.fileSize!==void 0&&(i.file_size=String(t.fileSize)),t.fileUrl&&(i.file_url=t.fileUrl),t.pageUrl&&(i.page_url=t.pageUrl),t.ofstedTrigger&&(i.ofsted_trigger=t.ofstedTrigger),t.ofstedKeyword&&(i.ofsted_keyword=t.ofstedKeyword),n&&(i.tenant_id=n.tenantId,i.tenant_name=n.tenantName,i.tenant_subdomain=n.tenantSubdomain,n.clientIp&&(i.client_ip=n.clientIp)),i}enqueueOrEmit(t,n){if(ut(this.#e)&&this.isEventEnabled(t))try{if(!this.getUmamiTracker()){this.bufferEvent(t,n);return}this.emitEvent(t,n)}catch(i){}}bufferEvent(t,n){this.#r.length>=y9&&this.#r.shift(),this.#r.push({eventName:t,data:n}),this.#n||(this.#n=setTimeout(()=>{this.#r=[],this.#n=null},v9))}flushBuffer(){if(!this.getUmamiTracker())return;let t=[...this.#r];this.#r=[],this.clearBufferExpiryTimer();for(let n of t)this.emitEvent(n.eventName,n.data)}emitEvent(t,n){this.isEventEnabled(t)&&setTimeout(()=>{try{let i=this.getUmamiTracker();if(!i?.track)return;i.track(t,n);let o=this.#t?.globalWebsiteId;o&&i.track(s=>g(u({},s),{website:o,name:t,data:n}))}catch(i){}},0)}isEventEnabled(t){let n=this.#t?.eventTracking;return n?t==="file_view"||t==="file_download"?n.fileStatsEventsEnabled:t==="ofsted_detection"?n.ofstedDetectionEventsEnabled:!0:!0}getUmamiTracker(){if(ut(this.#e))return window.umami}clearBufferExpiryTimer(){this.#n&&(clearTimeout(this.#n),this.#n=null)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=h({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();function _9(e){let r=e.trim(),t=r.lastIndexOf(".");return t<=0||t===r.length-1?"":r.slice(t+1).toLowerCase()}var LUe=new R("LOGS_TENANT_INFO");var S9=[.5,.75,1,1.25,1.5,2],BUe=1;function E9(e){let r=Number(e);return!Number.isFinite(r)||r<=0?"1x":`${Number.isInteger(r)?r.toString():r.toString().replace(/0+$/,"").replace(/\.$/,"")}x`}function VUe(){return S9.map(e=>({value:e,label:E9(e)}))}var b9=new Set(["null","undefined"]);function Zl(e){if(e==null)return null;let r=String(e).trim();return!r.length||b9.has(r.toLowerCase())?null:r}function D9(e){if(Array.isArray(e))return e.flatMap(t=>{let n=Zl(t);return n?[n]:[]});if(typeof e=="string")return e.split("/").flatMap(t=>{let n=Zl(t);return n?[n]:[]});let r=Zl(e);return r?[r]:[]}function $Ue(e,r){let t=D9(r),n=e?String(e):"";return t.length?n?[n,...t]:t:n==="/"?["/"]:n?[n]:["/"]}
17var Cs=class extends Error{};Cs.prototype.name="InvalidTokenError";function C9(e){return decodeURIComponent(atob(e).replace(/(.)/g,(r,t)=>{let n=t.charCodeAt(0).toString(16).toUpperCase();return n.length<2&&(n="0"+n),"%"+n}))}function T9(e){let r=e.replace(/-/g,"+").replace(/_/g,"/");switch(r.length%4){case 0:break;case 2:r+="==";break;case 3:r+="=";break;default:throw new Error("base64 string is not of the correct length")}try{return C9(r)}catch(t){return atob(r)}}function cx(e,r){if(typeof e!="string")throw new Cs("Invalid token specified: must be a string");r||(r={});let t=r.header===!0?0:1,n=e.split(".")[t];if(typeof n!="string")throw new Cs(`Invalid token specified: missing part #${t+1}`);let i;try{i=T9(n)}catch(o){throw new Cs(`Invalid token specified: invalid base64 for part #${t+1} (${o.message})`)}try{return JSON.parse(i)}catch(o){throw new Cs(`Invalid token specified: invalid json for part #${t+1} (${o.message})`)}}function w9(e,r=Date.now()){let t=lx(e);return t===void 0?!1:t*1e3>r}function qUe(e,r=Date.now()){return!w9(e,r)}function YUe(e){let r=lx(e);if(r!==void 0)return new Date(r*1e3)}function lx(e){if(e?.trim())try{let{exp:r}=cx(e);return typeof r!="number"||!Number.isFinite(r)?void 0:r}catch(r){return}}var JUe=e=>{if(e==null)return"";let r=e.trim();if(!r)return"";try{let t=r.includes("://")?r:`https://${r}`,i=new URL(t).hostname.toLowerCase();return i.startsWith("www.")&&(i=i.slice(4)),i}catch(t){return r.replace(/^https?:\/\//i,"").replace(/^www\./i,"").split("/")[0].split("?")[0].split("#")[0].toLowerCase()}};var A9=8e3;function O9(){let e=typeof process<"u"&&process.env&&typeof process.env.SSR_GUARD_TIMEOUT_MS=="string"?parseInt(process.env.SSR_GUARD_TIMEOUT_MS,10):NaN;return Number.isFinite(e)&&e>0?e:A9}function hi(e,r,t){if(!te(e))return r;let n=t.timeoutMs??O9();return ri(r,As(n).pipe(ge(()=>{console.warn(`[SSR-GUARD-TIMEOUT] ${t.name} (${n}ms) \u2014 releasing navigation`)}),E(()=>t.fallback)))}var M9="TEMPLATES_LOAD_MODE";function R9(){if(typeof process>"u"||!process.env)return;let e=process.env[M9]?.trim().toLowerCase();if(e==="full"||e==="current")return e}function NI(e={}){let r=R9();return r||(e.routeMode==="full"||e.routeMode==="current"?e.routeMode:e.environmentMode==="full"||e.environmentMode==="current"?e.environmentMode:e.fallback??"current")}var ux={};j(ux,{dateValidator:()=>x9,isDateInBorders:()=>
17N9,isDateValid:()=>I9});var I9=e=>{let{value:r}=e;return Ze(r)?!0:yo(r).isValid},x9=e=>{let{validFrom:r,validTo:t}=e.value||{},n=r?yo(r).startOf("day").toMillis():null,i=t?yo(t).endOf("day").toMillis():null,o=n&&i?i>n:!0,s=n&&i?i>n:!0;return o&&s?null:{J3BaseContentComponentDatesValidator:{message:"Wrong dates"}}},N9=(e,r,t)=>{let n=yo(e).startOf("day"),i=Ze(r)?!0:n>=yo(r).startOf("day"),o=Ze(t)?!0:n<=yo(t).startOf("day");return i&&o};export{Lx as a,aE as b,Fx as c,Px as d,ii as e,Ux as f,Vx as g,Gx as h,dd as i,ut as j,te as k,t7 as l,eg as m,hN as n,Yt as o,kt as p,oi as q,Dd as r,At as s,BN as t,VN as u,GN as v,TK as w,UE as x,uL as y,wK as z,AK as A,OK as B,qe as C,Hn as D,dU as E,p2 as F,Ze as G,m2 as H,E2 as I,D2 as J,co as K,Ri as L,ao as M,Hr as N,bn as O,Yo as P,Wc as Q,zr as R,jg as S,Wr as T,uC as U,eV as V,tV as W,rV as X,_C as Y,nV as Z,Ap as _,Pme as $,Ee as aa,Gme as ba,Q as ca,ve as da,ar as ea,Xt as fa,hA as ga,Yr as ha,w as ia,L as ja,Ll as ka,ae as la,HW as ma,XW as na,Qr as oa,de as pa,X as qa,xn as ra,uO as sa,hye as ta,kv as ua,AO as va,k as wa,$p as xa,gn as ya,OO as za,MO as Aa,Uv as Ba,FO as Ca,Gl as Da,nh as Ea,Ln as Fa,ct as Ga,$l as Ha,xt as Ia,zv as Ja,yn as Ka,Hl as La,bM as Ma,Qn as Na,By as Oa,qr as Pa,i_ as Qa,f_ as Ra,Fa as Sa,yse as Ta,vse as Ua,_se as Va,Sse as Wa,Ese as Xa,yo as Ya,L$ as Za,cH as _a,Mde as $a,Rde as ab,ap as bb,vw as cb,d0 as db,Gde as eb,f0 as fb,mn as gb,hH as hb,Ow as ib,_w as jb,bo as kb,sfe as lb,afe as mb,Ml as nb,Rl as ob,cfe as pb,kH as qb,D0 as rb,ufe as sb,BH as tb,dfe as ub,GH as vb,zH as wb,ffe as xb,YH as yb,JH as zb,Kw as Ab,pfe as Bb,Jw as Cb,hfe as Db,r3 as Eb,i3 as Fb,mfe as Gb,gfe as Hb,A0 as Ib,Pfe as Jb,M0 as Kb,Cp as Lb,pz as Mb,ype as Nb,sA as Ob,k0 as Pb,uW as Qb,Kpe as Rb,V0 as Sb,uhe as Tb,G0 as Ub,Che as Vb,$0 as Wb,lA as Xb,qhe as Yb,_me as Zb,F$ as _b,OW as $b,uA as ac,WI as bc,qI as cc,YI as dc,KI as ec,nke as fc,B_ as gc,Zq as hc,V_ as ic,G_ as jc,ZI as kc,Oke as lc,kke as mc,$ke as nc,mc as oc,Ru as pc,Xke as qc,eje as rc,d9 as sc,f9 as tc,lje as uc,yje as vc,Rje as wc,Hje as xc,Xje as yc,uUe as zc,fUe as Ac,yUe as Bc,LUe as Cc,BUe as Dc,VUe as Ec,D9 as Fc,$Ue as Gc,cx as Hc,qUe as Ic,YUe as Jc,JUe as Kc,NI as Lc,ux as Mc,tu as Nc,S_ as Oc,b_ as Pc,D_ as Qc,uc as Rc,N_ as Sc,k_ as Tc,cq as Uc,lq as Vc,uq as Wc,am as Xc,rLe as Yc,TLe as Zc,GLe as _c,ZLe as $c,pFe as ad,HFe as bd,qFe as cd,JFe as dd,ZFe as ed,QFe as fd,XFe as gd,Dq as hd,Cq as id,Tq as jd,ePe as kd,tPe as ld,uPe as md,dPe as nd,fPe as od,lm as pd,pPe as qd,hPe as rd,mPe as sd,gPe as td,yPe as ud};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.