@digimakers/cli 0.3.39 → 0.3.40

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -57,7 +57,7 @@ ${n.map((r,i)=>`${i+1}) ${r.toString()}`).join(`
57
57
  `);return n===-1?t:t.substring(0,n)}function Jm(e,t){return e==null||e===""?t===null?"":t:t==null||t===""?e:e+" "+t}var Rk=ce({__forward_ref__:ce});function Og(e){return e.__forward_ref__=Og,e.toString=function(){return ot(this())},e}function gt(e){return Ng(e)?e():e}function Ng(e){return typeof e=="function"&&e.hasOwnProperty(Rk)&&e.__forward_ref__===Og}function F(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function la(e){return Xm(e,Pg)||Xm(e,Lg)}function Rg(e){return la(e)!==null}function Xm(e,t){return e.hasOwnProperty(t)?e[t]:null}function Pk(e){let t=e&&(e[Pg]||e[Lg]);return t||null}function eg(e){return e&&(e.hasOwnProperty(tg)||e.hasOwnProperty(Lk))?e[tg]:null}var Pg=ce({\u0275prov:ce}),tg=ce({\u0275inj:ce}),Lg=ce({ngInjectableDef:ce}),Lk=ce({ngInjectorDef:ce}),$=class{constructor(t,n){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,typeof n=="number"?this.__NG_ELEMENT_ID__=n:n!==void 0&&(this.\u0275prov=F({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};function jg(e){return e&&!!e.\u0275providers}var jk=ce({\u0275cmp:ce}),Fk=ce({\u0275dir:ce}),zk=ce({\u0275pipe:ce}),Bk=ce({\u0275mod:ce}),Vs=ce({\u0275fac:ce}),Vi=ce({__NG_ELEMENT_ID__:ce}),ng=ce({__NG_ENV_ID__:ce});function Ui(e){return typeof e=="string"?e:e==null?"":String(e)}function Wk(e){return typeof e=="function"?e.name||e.toString():typeof e=="object"&&e!=null&&typeof e.type=="function"?e.type.name||e.type.toString():Ui(e)}function qk(e,t){let n=t?`. Dependency path: ${t.join(" > ")} > ${e}`:"";throw new L(-200,e)}function ld(e,t){throw new L(-201,!1)}var Y=function(e){return e[e.Default=0]="Default",e[e.Host=1]="Host",e[e.Self=2]="Self",e[e.SkipSelf=4]="SkipSelf",e[e.Optional=8]="Optional",e}(Y||{}),fc;function Fg(){return fc}function mt(e){let t=fc;return fc=e,t}function zg(e,t,n){let r=la(e);if(r&&r.providedIn=="root")return r.value===void 0?r.value=r.factory():r.value;if(n&Y.Optional)return null;if(t!==void 0)return t;ld(e,"Injector")}var Vk={},Hi=Vk,Uk="__NG_DI_FLAG__",Us="ngTempTokenPath",Hk="ngTokenPath",$k=/\n/gm,Gk="\u0275",rg="__source",Ar;function Yk(){return Ar}function wn(e){let t=Ar;return Ar=e,t}function Zk(e,t=Y.Default){if(Ar===void 0)throw new L(-203,!1);return Ar===null?zg(e,void 0,t):Ar.get(e,t&Y.Optional?null:void 0,t)}function ee(e,t=Y.Default){return(Fg()||Zk)(gt(e),t)}function T(e,t=Y.Default){return ee(e,ua(t))}function ua(e){return typeof e>"u"||typeof e=="number"?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function hc(e){let t=[];for(let n=0;n<e.length;n++){let r=gt(e[n]);if(Array.isArray(r)){if(r.length===0)throw new L(900,!1);let i,o=Y.Default;for(let s=0;s<r.length;s++){let a=r[s],l=Qk(a);typeof l=="number"?l===-1?i=a.token:o|=l:i=a}t.push(ee(i,o))}else t.push(ee(r))}return t}function Qk(e){return e[Uk]}function Kk(e,t,n,r){let i=e[Us];throw t[rg]&&i.unshift(t[rg]),e.message=Jk(`
58
58
  `+e.message,i,n,r),e[Hk]=i,e[Us]=null,e}function Jk(e,t,n,r=null){e=e&&e.charAt(0)===`
59
59
  `&&e.charAt(1)==Gk?e.slice(2):e;let i=ot(t);if(Array.isArray(t))i=t.map(ot).join(" -> ");else if(typeof t=="object"){let o=[];for(let s in t)if(t.hasOwnProperty(s)){let a=t[s];o.push(s+":"+(typeof a=="string"?JSON.stringify(a):ot(a)))}i=`{${o.join(", ")}}`}return`${n}${r?"("+r+")":""}[${i}]: ${e.replace($k,`
60
- `)}`}function Or(e,t){let n=e.hasOwnProperty(Vs);return n?e[Vs]:null}function Xk(e,t,n){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++){let i=e[r],o=t[r];if(n&&(i=n(i),o=n(o)),o!==i)return!1}return!0}function eA(e){return e.flat(Number.POSITIVE_INFINITY)}function ud(e,t){e.forEach(n=>Array.isArray(n)?ud(n,t):t(n))}function Bg(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function Hs(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}var $i={},Nr=[],Rr=new $(""),Wg=new $("",-1),qg=new $(""),$s=class{get(t,n=Hi){if(n===Hi){let r=new Error(`NullInjectorError: No provider for ${ot(t)}!`);throw r.name="NullInjectorError",r}return n}},Vg=function(e){return e[e.OnPush=0]="OnPush",e[e.Default=1]="Default",e}(Vg||{}),Vt=function(e){return e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e}(Vt||{}),Dn=function(e){return e[e.None=0]="None",e[e.SignalBased=1]="SignalBased",e[e.HasDecoratorInputTransform=2]="HasDecoratorInputTransform",e}(Dn||{});function tA(e,t,n){let r=e.length;for(;;){let i=e.indexOf(t,n);if(i===-1)return i;if(i===0||e.charCodeAt(i-1)<=32){let o=t.length;if(i+o===r||e.charCodeAt(i+o)<=32)return i}n=i+1}}function mc(e,t,n){let r=0;for(;r<n.length;){let i=n[r];if(typeof i=="number"){if(i!==0)break;r++;let o=n[r++],s=n[r++],a=n[r++];e.setAttribute(t,s,a,o)}else{let o=i,s=n[++r];rA(o)?e.setProperty(t,o,s):e.setAttribute(t,o,s),r++}}return r}function nA(e){return e===3||e===4||e===6}function rA(e){return e.charCodeAt(0)===64}function cd(e,t){if(!(t===null||t.length===0))if(e===null||e.length===0)e=t.slice();else{let n=-1;for(let r=0;r<t.length;r++){let i=t[r];typeof i=="number"?n=i:n===0||(n===-1||n===2?ig(e,n,i,null,t[++r]):ig(e,n,i,null,null))}}return e}function ig(e,t,n,r,i){let o=0,s=e.length;if(t===-1)s=-1;else for(;o<e.length;){let a=e[o++];if(typeof a=="number"){if(a===t){s=-1;break}else if(a>t){s=o-1;break}}}for(;o<e.length;){let a=e[o];if(typeof a=="number")break;if(a===n){if(r===null){i!==null&&(e[o+1]=i);return}else if(r===e[o+1]){e[o+2]=i;return}}o++,r!==null&&o++,i!==null&&o++}s!==-1&&(e.splice(s,0,t),o=s+1),e.splice(o++,0,n),r!==null&&e.splice(o++,0,r),i!==null&&e.splice(o++,0,i)}var Ug="ng-template";function iA(e,t,n,r){let i=0;if(r){for(;i<t.length&&typeof t[i]=="string";i+=2)if(t[i]==="class"&&tA(t[i+1].toLowerCase(),n,0)!==-1)return!0}else if(dd(e))return!1;if(i=t.indexOf(1,i),i>-1){let o;for(;++i<t.length&&typeof(o=t[i])=="string";)if(o.toLowerCase()===n)return!0}return!1}function dd(e){return e.type===4&&e.value!==Ug}function oA(e,t,n){let r=e.type===4&&!n?Ug:e.value;return t===r}function sA(e,t,n){let r=4,i=e.attrs,o=i!==null?uA(i):0,s=!1;for(let a=0;a<t.length;a++){let l=t[a];if(typeof l=="number"){if(!s&&!At(r)&&!At(l))return!1;if(s&&At(l))continue;s=!1,r=l|r&1;continue}if(!s)if(r&4){if(r=2|r&1,l!==""&&!oA(e,l,n)||l===""&&t.length===1){if(At(r))return!1;s=!0}}else if(r&8){if(i===null||!iA(e,i,l,n)){if(At(r))return!1;s=!0}}else{let u=t[++a],c=aA(l,i,dd(e),n);if(c===-1){if(At(r))return!1;s=!0;continue}if(u!==""){let p;if(c>o?p="":p=i[c+1].toLowerCase(),r&2&&u!==p){if(At(r))return!1;s=!0}}}}return At(r)||s}function At(e){return(e&1)===0}function aA(e,t,n,r){if(t===null)return-1;let i=0;if(r||!n){let o=!1;for(;i<t.length;){let s=t[i];if(s===e)return i;if(s===3||s===6)o=!0;else if(s===1||s===2){let a=t[++i];for(;typeof a=="string";)a=t[++i];continue}else{if(s===4)break;if(s===0){i+=4;continue}}i+=o?1:2}return-1}else return cA(t,e)}function lA(e,t,n=!1){for(let r=0;r<t.length;r++)if(sA(e,t[r],n))return!0;return!1}function uA(e){for(let t=0;t<e.length;t++){let n=e[t];if(nA(n))return t}return e.length}function cA(e,t){let n=e.indexOf(4);if(n>-1)for(n++;n<e.length;){let r=e[n];if(typeof r=="number")return-1;if(r===t)return n;n++}return-1}function og(e,t){return e?":not("+t.trim()+")":t}function dA(e){let t=e[0],n=1,r=2,i="",o=!1;for(;n<e.length;){let s=e[n];if(typeof s=="string")if(r&2){let a=e[++n];i+="["+s+(a.length>0?'="'+a+'"':"")+"]"}else r&8?i+="."+s:r&4&&(i+=" "+s);else i!==""&&!At(s)&&(t+=og(o,i),i=""),r=s,o=o||!At(r);n++}return i!==""&&(t+=og(o,i)),t}function pA(e){return e.map(dA).join(",")}function fA(e){let t=[],n=[],r=1,i=2;for(;r<e.length;){let o=e[r];if(typeof o=="string")i===2?o!==""&&t.push(o,e[++r]):i===8&&n.push(o);else{if(!At(i))break;i=o}r++}return{attrs:t,classes:n}}function pe(e){return ad(()=>{let t=Zg(e),n=be(O({},t),{decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===Vg.OnPush,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&e.dependencies||null,getStandaloneInjector:null,signals:e.signals??!1,data:e.data||{},encapsulation:e.encapsulation||Vt.Emulated,styles:e.styles||Nr,_:null,schemas:e.schemas||null,tView:null,id:""});Qg(n);let r=e.dependencies;return n.directiveDefs=ag(r,!1),n.pipeDefs=ag(r,!0),n.id=gA(n),n})}function hA(e){return $n(e)||Hg(e)}function mA(e){return e!==null}function sg(e,t){if(e==null)return $i;let n={};for(let r in e)if(e.hasOwnProperty(r)){let i=e[r],o,s,a=Dn.None;Array.isArray(i)?(a=i[0],o=i[1],s=i[2]??o):(o=i,s=i),t?(n[o]=a!==Dn.None?[r,a]:r,t[o]=s):n[o]=r}return n}function ro(e){return ad(()=>{let t=Zg(e);return Qg(t),t})}function $n(e){return e[jk]||null}function Hg(e){return e[Fk]||null}function $g(e){return e[zk]||null}function Gg(e){let t=$n(e)||Hg(e)||$g(e);return t!==null?t.standalone:!1}function Yg(e,t){let n=e[Bk]||null;if(!n&&t===!0)throw new Error(`Type ${ot(e)} does not have '\u0275mod' property.`);return n}function Zg(e){let t={};return{type:e.type,providersResolver:null,factory:null,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,inputTransforms:null,inputConfig:e.inputs||$i,exportAs:e.exportAs||null,standalone:e.standalone===!0,signals:e.signals===!0,selectors:e.selectors||Nr,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:sg(e.inputs,t),outputs:sg(e.outputs),debugInfo:null}}function Qg(e){e.features?.forEach(t=>t(e))}function ag(e,t){if(!e)return null;let n=t?$g:hA;return()=>(typeof e=="function"?e():e).map(r=>n(r)).filter(mA)}function gA(e){let t=0,n=[e.selectors,e.ngContentSelectors,e.hostVars,e.hostAttrs,e.consts,e.vars,e.decls,e.encapsulation,e.standalone,e.signals,e.exportAs,JSON.stringify(e.inputs),JSON.stringify(e.outputs),Object.getOwnPropertyNames(e.type.prototype),!!e.contentQueries,!!e.viewQuery].join("|");for(let i of n)t=Math.imul(31,t)+i.charCodeAt(0)<<0;return t+=2147483648,"c"+t}function ca(e){return{\u0275providers:e}}function yA(...e){return{\u0275providers:Kg(!0,e),\u0275fromNgModule:!0}}function Kg(e,...t){let n=[],r=new Set,i,o=s=>{n.push(s)};return ud(t,s=>{let a=s;gc(a,o,[],r)&&(i||=[],i.push(a))}),i!==void 0&&Jg(i,o),n}function Jg(e,t){for(let n=0;n<e.length;n++){let{ngModule:r,providers:i}=e[n];pd(i,o=>{t(o,r)})}}function gc(e,t,n,r){if(e=gt(e),!e)return!1;let i=null,o=eg(e),s=!o&&$n(e);if(!o&&!s){let l=e.ngModule;if(o=eg(l),o)i=l;else return!1}else{if(s&&!s.standalone)return!1;i=e}let a=r.has(i);if(s){if(a)return!1;if(r.add(i),s.dependencies){let l=typeof s.dependencies=="function"?s.dependencies():s.dependencies;for(let u of l)gc(u,t,n,r)}}else if(o){if(o.imports!=null&&!a){r.add(i);let u;try{ud(o.imports,c=>{gc(c,t,n,r)&&(u||=[],u.push(c))})}finally{}u!==void 0&&Jg(u,t)}if(!a){let u=Or(i)||(()=>new i);t({provide:i,useFactory:u,deps:Nr},i),t({provide:qg,useValue:i,multi:!0},i),t({provide:Rr,useValue:()=>ee(i),multi:!0},i)}let l=o.providers;if(l!=null&&!a){let u=e;pd(l,c=>{t(c,u)})}}else return!1;return i!==e&&e.providers!==void 0}function pd(e,t){for(let n of e)jg(n)&&(n=n.\u0275providers),Array.isArray(n)?pd(n,t):t(n)}var vA=ce({provide:String,useValue:ce});function Xg(e){return e!==null&&typeof e=="object"&&vA in e}function bA(e){return!!(e&&e.useExisting)}function SA(e){return!!(e&&e.useFactory)}function yc(e){return typeof e=="function"}var da=new $(""),js={},xA={},ic;function fd(){return ic===void 0&&(ic=new $s),ic}var vt=class{},Gi=class extends vt{get destroyed(){return this._destroyed}constructor(t,n,r,i){super(),this.parent=n,this.source=r,this.scopes=i,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,bc(t,s=>this.processProvider(s)),this.records.set(Wg,_r(void 0,this)),i.has("environment")&&this.records.set(vt,_r(void 0,this));let o=this.records.get(da);o!=null&&typeof o.value=="string"&&this.scopes.add(o.value),this.injectorDefTypes=new Set(this.get(qg,Nr,Y.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;let t=ie(null);try{for(let r of this._ngOnDestroyHooks)r.ngOnDestroy();let n=this._onDestroyHooks;this._onDestroyHooks=[];for(let r of n)r()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),ie(t)}}onDestroy(t){return this.assertNotDestroyed(),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){this.assertNotDestroyed();let n=wn(this),r=mt(void 0),i;try{return t()}finally{wn(n),mt(r)}}get(t,n=Hi,r=Y.Default){if(this.assertNotDestroyed(),t.hasOwnProperty(ng))return t[ng](this);r=ua(r);let i,o=wn(this),s=mt(void 0);try{if(!(r&Y.SkipSelf)){let l=this.records.get(t);if(l===void 0){let u=_A(t)&&la(t);u&&this.injectableDefInScope(u)?l=_r(vc(t),js):l=null,this.records.set(t,l)}if(l!=null)return this.hydrate(t,l)}let a=r&Y.Self?fd():this.parent;return n=r&Y.Optional&&n===Hi?null:n,a.get(t,n)}catch(a){if(a.name==="NullInjectorError"){if((a[Us]=a[Us]||[]).unshift(ot(t)),o)throw a;return Kk(a,t,"R3InjectorError",this.source)}else throw a}finally{mt(s),wn(o)}}resolveInjectorInitializers(){let t=ie(null),n=wn(this),r=mt(void 0),i;try{let o=this.get(Rr,Nr,Y.Self);for(let s of o)s()}finally{wn(n),mt(r),ie(t)}}toString(){let t=[],n=this.records;for(let r of n.keys())t.push(ot(r));return`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new L(205,!1)}processProvider(t){t=gt(t);let n=yc(t)?t:gt(t&&t.provide),r=CA(t);if(!yc(t)&&t.multi===!0){let i=this.records.get(n);i||(i=_r(void 0,js,!0),i.factory=()=>hc(i.multi),this.records.set(n,i)),n=t,i.multi.push(t)}this.records.set(n,r)}hydrate(t,n){let r=ie(null);try{return n.value===js&&(n.value=xA,n.value=n.factory()),typeof n.value=="object"&&n.value&&TA(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}finally{ie(r)}}injectableDefInScope(t){if(!t.providedIn)return!1;let n=gt(t.providedIn);return typeof n=="string"?n==="any"||this.scopes.has(n):this.injectorDefTypes.has(n)}removeOnDestroy(t){let n=this._onDestroyHooks.indexOf(t);n!==-1&&this._onDestroyHooks.splice(n,1)}};function vc(e){let t=la(e),n=t!==null?t.factory:Or(e);if(n!==null)return n;if(e instanceof $)throw new L(204,!1);if(e instanceof Function)return wA(e);throw new L(204,!1)}function wA(e){if(e.length>0)throw new L(204,!1);let n=Pk(e);return n!==null?()=>n.factory(e):()=>new e}function CA(e){if(Xg(e))return _r(void 0,e.useValue);{let t=EA(e);return _r(t,js)}}function EA(e,t,n){let r;if(yc(e)){let i=gt(e);return Or(i)||vc(i)}else if(Xg(e))r=()=>gt(e.useValue);else if(SA(e))r=()=>e.useFactory(...hc(e.deps||[]));else if(bA(e))r=()=>ee(gt(e.useExisting));else{let i=gt(e&&(e.useClass||e.provide));if(DA(e))r=()=>new i(...hc(e.deps));else return Or(i)||vc(i)}return r}function _r(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function DA(e){return!!e.deps}function TA(e){return e!==null&&typeof e=="object"&&typeof e.ngOnDestroy=="function"}function _A(e){return typeof e=="function"||typeof e=="object"&&e instanceof $}function bc(e,t){for(let n of e)Array.isArray(n)?bc(n,t):n&&jg(n)?bc(n.\u0275providers,t):t(n)}function rn(e,t){e instanceof Gi&&e.assertNotDestroyed();let n,r=wn(e),i=mt(void 0);try{return t()}finally{wn(r),mt(i)}}function IA(){return Fg()!==void 0||Yk()!=null}function kA(e){return typeof e=="function"}var on=0,U=1,j=2,Ve=3,Mt=4,Nt=5,Yi=6,Sc=7,Xe=8,Pr=9,Ut=10,st=11,Zi=12,lg=13,Vr=14,Ot=15,Gn=16,Ir=17,en=18,pa=19,ey=20,En=21,oc=22,yt=23,at=25,ty=1;var Yn=7,Gs=8,Lr=9,qe=10,Ys=function(e){return e[e.None=0]="None",e[e.HasTransplantedViews=2]="HasTransplantedViews",e}(Ys||{});function Un(e){return Array.isArray(e)&&typeof e[ty]=="object"}function sn(e){return Array.isArray(e)&&e[ty]===!0}function ny(e){return(e.flags&4)!==0}function fa(e){return e.componentOffset>-1}function ry(e){return(e.flags&1)===1}function io(e){return!!e.template}function xc(e){return(e[j]&512)!==0}var wc=class{constructor(t,n,r){this.previousValue=t,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}};function iy(e,t,n,r){t!==null?t.applyValueToInputSignal(t,r):e[n]=r}function _n(){return oy}function oy(e){return e.type.prototype.ngOnChanges&&(e.setInput=MA),AA}_n.ngInherit=!0;function AA(){let e=ay(this),t=e?.current;if(t){let n=e.previous;if(n===$i)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function MA(e,t,n,r,i){let o=this.declaredInputs[r],s=ay(e)||OA(e,{previous:$i,current:null}),a=s.current||(s.current={}),l=s.previous,u=l[o];a[o]=new wc(u&&u.currentValue,n,l===$i),iy(e,t,i,n)}var sy="__ngSimpleChanges__";function ay(e){return e[sy]||null}function OA(e,t){return e[sy]=t}var ug=null;var Cn=function(e,t,n){ug?.(e,t,n)},NA="svg",RA="math";function tn(e){for(;Array.isArray(e);)e=e[on];return e}function PA(e,t){return tn(t[e])}function Ht(e,t){return tn(t[e.index])}function hd(e,t){return e.data[t]}function LA(e,t){return e[t]}function Ur(e,t){let n=t[e];return Un(n)?n:n[on]}function jA(e){return(e[j]&4)===4}function md(e){return(e[j]&128)===128}function FA(e){return sn(e[Ve])}function jr(e,t){return t==null?null:e[t]}function ly(e){e[Ir]=0}function uy(e){e[j]&1024||(e[j]|=1024,md(e)&&ma(e))}function zA(e,t){for(;e>0;)t=t[Vr],e--;return t}function ha(e){return!!(e[j]&9216||e[yt]?.dirty)}function Cc(e){e[Ut].changeDetectionScheduler?.notify(8),e[j]&64&&(e[j]|=1024),ha(e)&&ma(e)}function ma(e){e[Ut].changeDetectionScheduler?.notify(0);let t=Zn(e);for(;t!==null&&!(t[j]&8192||(t[j]|=8192,!md(t)));)t=Zn(t)}function cy(e,t){if((e[j]&256)===256)throw new L(911,!1);e[En]===null&&(e[En]=[]),e[En].push(t)}function BA(e,t){if(e[En]===null)return;let n=e[En].indexOf(t);n!==-1&&e[En].splice(n,1)}function Zn(e){let t=e[Ve];return sn(t)?t[Ve]:t}var K={lFrame:by(null),bindingsEnabled:!0,skipHydrationRootTNode:null};var dy=!1;function WA(){return K.lFrame.elementDepthCount}function qA(){K.lFrame.elementDepthCount++}function VA(){K.lFrame.elementDepthCount--}function py(){return K.bindingsEnabled}function UA(){return K.skipHydrationRootTNode!==null}function HA(e){return K.skipHydrationRootTNode===e}function $A(){K.skipHydrationRootTNode=null}function de(){return K.lFrame.lView}function Rt(){return K.lFrame.tView}function $t(){let e=fy();for(;e!==null&&e.type===64;)e=e.parent;return e}function fy(){return K.lFrame.currentTNode}function GA(){let e=K.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}function Hr(e,t){let n=K.lFrame;n.currentTNode=e,n.isParent=t}function hy(){return K.lFrame.isParent}function YA(){K.lFrame.isParent=!1}function ZA(){return K.lFrame.contextLView}function my(){return dy}function cg(e){dy=e}function QA(){return K.lFrame.bindingIndex}function KA(e){return K.lFrame.bindingIndex=e}function ga(){return K.lFrame.bindingIndex++}function JA(e){let t=K.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function XA(){return K.lFrame.inI18n}function eM(e,t){let n=K.lFrame;n.bindingIndex=n.bindingRootIndex=e,Ec(t)}function tM(){return K.lFrame.currentDirectiveIndex}function Ec(e){K.lFrame.currentDirectiveIndex=e}function gy(){return K.lFrame.currentQueryIndex}function gd(e){K.lFrame.currentQueryIndex=e}function nM(e){let t=e[U];return t.type===2?t.declTNode:t.type===1?e[Nt]:null}function yy(e,t,n){if(n&Y.SkipSelf){let i=t,o=e;for(;i=i.parent,i===null&&!(n&Y.Host);)if(i=nM(o),i===null||(o=o[Vr],i.type&10))break;if(i===null)return!1;t=i,e=o}let r=K.lFrame=vy();return r.currentTNode=t,r.lView=e,!0}function yd(e){let t=vy(),n=e[U];K.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function vy(){let e=K.lFrame,t=e===null?null:e.child;return t===null?by(e):t}function by(e){let t={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null,inI18n:!1};return e!==null&&(e.child=t),t}function Sy(){let e=K.lFrame;return K.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}var xy=Sy;function vd(){let e=Sy();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function rM(e){return(K.lFrame.contextLView=zA(e,K.lFrame.contextLView))[Xe]}function $r(){return K.lFrame.selectedIndex}function Qn(e){K.lFrame.selectedIndex=e}function iM(){let e=K.lFrame;return hd(e.tView,e.selectedIndex)}function oM(){return K.lFrame.currentNamespace}var wy=!0;function bd(){return wy}function Sd(e){wy=e}function sM(e,t,n){let{ngOnChanges:r,ngOnInit:i,ngDoCheck:o}=t.type.prototype;if(r){let s=oy(t);(n.preOrderHooks??=[]).push(e,s),(n.preOrderCheckHooks??=[]).push(e,s)}i&&(n.preOrderHooks??=[]).push(0-e,i),o&&((n.preOrderHooks??=[]).push(e,o),(n.preOrderCheckHooks??=[]).push(e,o))}function xd(e,t){for(let n=t.directiveStart,r=t.directiveEnd;n<r;n++){let o=e.data[n].type.prototype,{ngAfterContentInit:s,ngAfterContentChecked:a,ngAfterViewInit:l,ngAfterViewChecked:u,ngOnDestroy:c}=o;s&&(e.contentHooks??=[]).push(-n,s),a&&((e.contentHooks??=[]).push(n,a),(e.contentCheckHooks??=[]).push(n,a)),l&&(e.viewHooks??=[]).push(-n,l),u&&((e.viewHooks??=[]).push(n,u),(e.viewCheckHooks??=[]).push(n,u)),c!=null&&(e.destroyHooks??=[]).push(n,c)}}function Fs(e,t,n){Cy(e,t,3,n)}function zs(e,t,n,r){(e[j]&3)===n&&Cy(e,t,n,r)}function sc(e,t){let n=e[j];(n&3)===t&&(n&=16383,n+=1,e[j]=n)}function Cy(e,t,n,r){let i=r!==void 0?e[Ir]&65535:0,o=r??-1,s=t.length-1,a=0;for(let l=i;l<s;l++)if(typeof t[l+1]=="number"){if(a=t[l],r!=null&&a>=r)break}else t[l]<0&&(e[Ir]+=65536),(a<o||o==-1)&&(aM(e,n,t,l),e[Ir]=(e[Ir]&4294901760)+l+2),l++}function dg(e,t){Cn(4,e,t);let n=ie(null);try{t.call(e)}finally{ie(n),Cn(5,e,t)}}function aM(e,t,n,r){let i=n[r]<0,o=n[r+1],s=i?-n[r]:n[r],a=e[s];i?e[j]>>14<e[Ir]>>16&&(e[j]&3)===t&&(e[j]+=16384,dg(a,o)):dg(a,o)}var Mr=-1,Qi=class{constructor(t,n,r){this.factory=t,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=r}};function lM(e){return e instanceof Qi}function uM(e){return(e.flags&8)!==0}function cM(e){return(e.flags&16)!==0}var ac={},Dc=class{constructor(t,n){this.injector=t,this.parentInjector=n}get(t,n,r){r=ua(r);let i=this.injector.get(t,ac,r);return i!==ac||n===ac?i:this.parentInjector.get(t,n,r)}};function Ey(e){return e!==Mr}function Zs(e){return e&32767}function dM(e){return e>>16}function Qs(e,t){let n=dM(e),r=t;for(;n>0;)r=r[Vr],n--;return r}var Tc=!0;function pg(e){let t=Tc;return Tc=e,t}var pM=256,Dy=pM-1,Ty=5,fM=0,qt={};function hM(e,t,n){let r;typeof n=="string"?r=n.charCodeAt(0)||0:n.hasOwnProperty(Vi)&&(r=n[Vi]),r==null&&(r=n[Vi]=fM++);let i=r&Dy,o=1<<i;t.data[e+(i>>Ty)]|=o}function _y(e,t){let n=Iy(e,t);if(n!==-1)return n;let r=t[U];r.firstCreatePass&&(e.injectorIndex=t.length,lc(r.data,e),lc(t,null),lc(r.blueprint,null));let i=wd(e,t),o=e.injectorIndex;if(Ey(i)){let s=Zs(i),a=Qs(i,t),l=a[U].data;for(let u=0;u<8;u++)t[o+u]=a[s+u]|l[s+u]}return t[o+8]=i,o}function lc(e,t){e.push(0,0,0,0,0,0,0,0,t)}function Iy(e,t){return e.injectorIndex===-1||e.parent&&e.parent.injectorIndex===e.injectorIndex||t[e.injectorIndex+8]===null?-1:e.injectorIndex}function wd(e,t){if(e.parent&&e.parent.injectorIndex!==-1)return e.parent.injectorIndex;let n=0,r=null,i=t;for(;i!==null;){if(r=Ny(i),r===null)return Mr;if(n++,i=i[Vr],r.injectorIndex!==-1)return r.injectorIndex|n<<16}return Mr}function mM(e,t,n){hM(e,t,n)}function ky(e,t,n){if(n&Y.Optional||e!==void 0)return e;ld(t,"NodeInjector")}function Ay(e,t,n,r){if(n&Y.Optional&&r===void 0&&(r=null),!(n&(Y.Self|Y.Host))){let i=e[Pr],o=mt(void 0);try{return i?i.get(t,r,n&Y.Optional):zg(t,r,n&Y.Optional)}finally{mt(o)}}return ky(r,t,n)}function My(e,t,n,r=Y.Default,i){if(e!==null){if(t[j]&2048&&!(r&Y.Self)){let s=bM(e,t,n,r,qt);if(s!==qt)return s}let o=Oy(e,t,n,r,qt);if(o!==qt)return o}return Ay(t,n,r,i)}function Oy(e,t,n,r,i){let o=yM(n);if(typeof o=="function"){if(!yy(t,e,r))return r&Y.Host?ky(i,n,r):Ay(t,n,r,i);try{let s;if(s=o(r),s==null&&!(r&Y.Optional))ld(n);else return s}finally{xy()}}else if(typeof o=="number"){let s=null,a=Iy(e,t),l=Mr,u=r&Y.Host?t[Ot][Nt]:null;for((a===-1||r&Y.SkipSelf)&&(l=a===-1?wd(e,t):t[a+8],l===Mr||!hg(r,!1)?a=-1:(s=t[U],a=Zs(l),t=Qs(l,t)));a!==-1;){let c=t[U];if(fg(o,a,c.data)){let p=gM(a,t,n,s,r,u);if(p!==qt)return p}l=t[a+8],l!==Mr&&hg(r,t[U].data[a+8]===u)&&fg(o,a,t)?(s=c,a=Zs(l),t=Qs(l,t)):a=-1}}return i}function gM(e,t,n,r,i,o){let s=t[U],a=s.data[e+8],l=r==null?fa(a)&&Tc:r!=s&&(a.type&3)!==0,u=i&Y.Host&&o===a,c=Bs(a,s,n,l,u);return c!==null?Fr(t,s,c,a):qt}function Bs(e,t,n,r,i){let o=e.providerIndexes,s=t.data,a=o&1048575,l=e.directiveStart,u=e.directiveEnd,c=o>>20,p=r?a:a+c,d=i?a+c:u;for(let f=p;f<d;f++){let g=s[f];if(f<l&&n===g||f>=l&&g.type===n)return f}if(i){let f=s[l];if(f&&io(f)&&f.type===n)return l}return null}function Fr(e,t,n,r){let i=e[n],o=t.data;if(lM(i)){let s=i;s.resolving&&qk(Wk(o[n]));let a=pg(s.canSeeViewProviders);s.resolving=!0;let l,u=s.injectImpl?mt(s.injectImpl):null,c=yy(e,r,Y.Default);try{i=e[n]=s.factory(void 0,o,e,r),t.firstCreatePass&&n>=r.directiveStart&&sM(n,o[n],t)}finally{u!==null&&mt(u),pg(a),s.resolving=!1,xy()}}return i}function yM(e){if(typeof e=="string")return e.charCodeAt(0)||0;let t=e.hasOwnProperty(Vi)?e[Vi]:void 0;return typeof t=="number"?t>=0?t&Dy:vM:t}function fg(e,t,n){let r=1<<e;return!!(n[t+(e>>Ty)]&r)}function hg(e,t){return!(e&Y.Self)&&!(e&Y.Host&&t)}var Hn=class{constructor(t,n){this._tNode=t,this._lView=n}get(t,n,r){return My(this._tNode,this._lView,t,ua(r),n)}};function vM(){return new Hn($t(),de())}function Cd(e){return ad(()=>{let t=e.prototype.constructor,n=t[Vs]||_c(t),r=Object.prototype,i=Object.getPrototypeOf(e.prototype).constructor;for(;i&&i!==r;){let o=i[Vs]||_c(i);if(o&&o!==n)return o;i=Object.getPrototypeOf(i)}return o=>new o})}function _c(e){return Ng(e)?()=>{let t=_c(gt(e));return t&&t()}:Or(e)}function bM(e,t,n,r,i){let o=e,s=t;for(;o!==null&&s!==null&&s[j]&2048&&!(s[j]&512);){let a=Oy(o,s,n,r|Y.Self,qt);if(a!==qt)return a;let l=o.parent;if(!l){let u=s[ey];if(u){let c=u.get(n,qt,r);if(c!==qt)return c}l=Ny(s),s=s[Vr]}o=l}return i}function Ny(e){let t=e[U],n=t.type;return n===2?t.declTNode:n===1?e[Nt]:null}function mg(e,t=null,n=null,r){let i=Ry(e,t,n,r);return i.resolveInjectorInitializers(),i}function Ry(e,t=null,n=null,r,i=new Set){let o=[n||Nr,yA(e)];return r=r||(typeof e=="object"?void 0:ot(e)),new Gi(o,t||fd(),r||null,i)}var Kn=class e{static{this.THROW_IF_NOT_FOUND=Hi}static{this.NULL=new $s}static create(t,n){if(Array.isArray(t))return mg({name:""},n,t,"");{let r=t.name??"";return mg({name:r},t.parent,t.providers,r)}}static{this.\u0275prov=F({token:e,providedIn:"any",factory:()=>ee(Wg)})}static{this.__NG_ELEMENT_ID__=-1}};var SM=new $("");SM.__NG_ELEMENT_ID__=e=>{let t=$t();if(t===null)throw new L(204,!1);if(t.type&2)return t.value;if(e&Y.Optional)return null;throw new L(204,!1)};var xM="ngOriginalError";function uc(e){return e[xM]}var Py=!0,Ly=(()=>{class e{static{this.__NG_ELEMENT_ID__=wM}static{this.__NG_ENV_ID__=n=>n}}return e})(),Ic=class extends Ly{constructor(t){super(),this._lView=t}onDestroy(t){return cy(this._lView,t),()=>BA(this._lView,t)}};function wM(){return new Ic(de())}var Gr=(()=>{class e{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new Pe(!1)}get _hasPendingTasks(){return this.hasPendingTasks.value}add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);let n=this.taskId++;return this.pendingTasks.add(n),n}remove(n){this.pendingTasks.delete(n),this.pendingTasks.size===0&&this._hasPendingTasks&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1)}static{this.\u0275prov=F({token:e,providedIn:"root",factory:()=>new e})}}return e})();var kc=class extends Ye{constructor(t=!1){super(),this.destroyRef=void 0,this.pendingTasks=void 0,this.__isAsync=t,IA()&&(this.destroyRef=T(Ly,{optional:!0})??void 0,this.pendingTasks=T(Gr,{optional:!0})??void 0)}emit(t){let n=ie(null);try{super.next(t)}finally{ie(n)}}subscribe(t,n,r){let i=t,o=n||(()=>null),s=r;if(t&&typeof t=="object"){let l=t;i=l.next?.bind(l),o=l.error?.bind(l),s=l.complete?.bind(l)}this.__isAsync&&(o=this.wrapInTimeout(o),i&&(i=this.wrapInTimeout(i)),s&&(s=this.wrapInTimeout(s)));let a=super.subscribe({next:i,error:o,complete:s});return t instanceof De&&t.add(a),a}wrapInTimeout(t){return n=>{let r=this.pendingTasks?.add();setTimeout(()=>{t(n),r!==void 0&&this.pendingTasks?.remove(r)})}}},We=kc;function Ks(...e){}function jy(e){let t,n;function r(){e=Ks;try{n!==void 0&&typeof cancelAnimationFrame=="function"&&cancelAnimationFrame(n),t!==void 0&&clearTimeout(t)}catch{}}return t=setTimeout(()=>{e(),r()}),typeof requestAnimationFrame=="function"&&(n=requestAnimationFrame(()=>{e(),r()})),()=>r()}function gg(e){return queueMicrotask(()=>e()),()=>{e=Ks}}var Ed="isAngularZone",Js=Ed+"_ID",CM=0,Se=class e{constructor(t){this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new We(!1),this.onMicrotaskEmpty=new We(!1),this.onStable=new We(!1),this.onError=new We(!1);let{enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:r=!1,shouldCoalesceRunChangeDetection:i=!1,scheduleInRootZone:o=Py}=t;if(typeof Zone>"u")throw new L(908,!1);Zone.assertZonePatched();let s=this;s._nesting=0,s._outer=s._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(s._inner=s._inner.fork(new Zone.TaskTrackingZoneSpec)),n&&Zone.longStackTraceZoneSpec&&(s._inner=s._inner.fork(Zone.longStackTraceZoneSpec)),s.shouldCoalesceEventChangeDetection=!i&&r,s.shouldCoalesceRunChangeDetection=i,s.callbackScheduled=!1,s.scheduleInRootZone=o,TM(s)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get(Ed)===!0}static assertInAngularZone(){if(!e.isInAngularZone())throw new L(909,!1)}static assertNotInAngularZone(){if(e.isInAngularZone())throw new L(909,!1)}run(t,n,r){return this._inner.run(t,n,r)}runTask(t,n,r,i){let o=this._inner,s=o.scheduleEventTask("NgZoneEvent: "+i,t,EM,Ks,Ks);try{return o.runTask(s,n,r)}finally{o.cancelTask(s)}}runGuarded(t,n,r){return this._inner.runGuarded(t,n,r)}runOutsideAngular(t){return this._outer.run(t)}},EM={};function Dd(e){if(e._nesting==0&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function DM(e){if(e.isCheckStableRunning||e.callbackScheduled)return;e.callbackScheduled=!0;function t(){jy(()=>{e.callbackScheduled=!1,Ac(e),e.isCheckStableRunning=!0,Dd(e),e.isCheckStableRunning=!1})}e.scheduleInRootZone?Zone.root.run(()=>{t()}):e._outer.run(()=>{t()}),Ac(e)}function TM(e){let t=()=>{DM(e)},n=CM++;e._inner=e._inner.fork({name:"angular",properties:{[Ed]:!0,[Js]:n,[Js+n]:!0},onInvokeTask:(r,i,o,s,a,l)=>{if(_M(l))return r.invokeTask(o,s,a,l);try{return yg(e),r.invokeTask(o,s,a,l)}finally{(e.shouldCoalesceEventChangeDetection&&s.type==="eventTask"||e.shouldCoalesceRunChangeDetection)&&t(),vg(e)}},onInvoke:(r,i,o,s,a,l,u)=>{try{return yg(e),r.invoke(o,s,a,l,u)}finally{e.shouldCoalesceRunChangeDetection&&!e.callbackScheduled&&!IM(l)&&t(),vg(e)}},onHasTask:(r,i,o,s)=>{r.hasTask(o,s),i===o&&(s.change=="microTask"?(e._hasPendingMicrotasks=s.microTask,Ac(e),Dd(e)):s.change=="macroTask"&&(e.hasPendingMacrotasks=s.macroTask))},onHandleError:(r,i,o,s)=>(r.handleError(o,s),e.runOutsideAngular(()=>e.onError.emit(s)),!1)})}function Ac(e){e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&e.callbackScheduled===!0?e.hasPendingMicrotasks=!0:e.hasPendingMicrotasks=!1}function yg(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function vg(e){e._nesting--,Dd(e)}var Mc=class{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new We,this.onMicrotaskEmpty=new We,this.onStable=new We,this.onError=new We}run(t,n,r){return t.apply(n,r)}runGuarded(t,n,r){return t.apply(n,r)}runOutsideAngular(t){return t()}runTask(t,n,r,i){return t.apply(n,r)}};function _M(e){return Fy(e,"__ignore_ng_zone__")}function IM(e){return Fy(e,"__scheduler_tick__")}function Fy(e,t){return!Array.isArray(e)||e.length!==1?!1:e[0]?.data?.[t]===!0}var nn=class{constructor(){this._console=console}handleError(t){let n=this._findOriginalError(t);this._console.error("ERROR",t),n&&this._console.error("ORIGINAL ERROR",n)}_findOriginalError(t){let n=t&&uc(t);for(;n&&uc(n);)n=uc(n);return n||null}},kM=new $("",{providedIn:"root",factory:()=>{let e=T(Se),t=T(nn);return n=>e.runOutsideAngular(()=>t.handleError(n))}});function AM(){return Yr($t(),de())}function Yr(e,t){return new an(Ht(e,t))}var an=(()=>{class e{constructor(n){this.nativeElement=n}static{this.__NG_ELEMENT_ID__=AM}}return e})();function MM(e){return e instanceof an?e.nativeElement:e}function OM(){return this._results[Symbol.iterator]()}var Oc=class e{get changes(){return this._changes??=new We}constructor(t=!1){this._emitDistinctChangesOnly=t,this.dirty=!0,this._onDirty=void 0,this._results=[],this._changesDetected=!1,this._changes=void 0,this.length=0,this.first=void 0,this.last=void 0;let n=e.prototype;n[Symbol.iterator]||(n[Symbol.iterator]=OM)}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,n){return this._results.reduce(t,n)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,n){this.dirty=!1;let r=eA(t);(this._changesDetected=!Xk(this._results,r,n))&&(this._results=r,this.length=r.length,this.last=r[this.length-1],this.first=r[0])}notifyOnChanges(){this._changes!==void 0&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}onDirty(t){this._onDirty=t}setDirty(){this.dirty=!0,this._onDirty?.()}destroy(){this._changes!==void 0&&(this._changes.complete(),this._changes.unsubscribe())}};function zy(e){return(e.flags&128)===128}var By=new Map,NM=0;function RM(){return NM++}function PM(e){By.set(e[pa],e)}function Nc(e){By.delete(e[pa])}var bg="__ngContext__";function Jn(e,t){Un(t)?(e[bg]=t[pa],PM(t)):e[bg]=t}function Wy(e){return Vy(e[Zi])}function qy(e){return Vy(e[Mt])}function Vy(e){for(;e!==null&&!sn(e);)e=e[Mt];return e}var Rc;function Uy(e){Rc=e}function LM(){if(Rc!==void 0)return Rc;if(typeof document<"u")return document;throw new L(210,!1)}var Td=new $("",{providedIn:"root",factory:()=>jM}),jM="ng",_d=new $(""),Zr=new $("",{providedIn:"platform",factory:()=>"unknown"});var Id=new $("",{providedIn:"root",factory:()=>LM().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});var FM="h",zM="b";var BM=()=>null;function kd(e,t,n=!1){return BM(e,t,n)}var Hy=!1,WM=new $("",{providedIn:"root",factory:()=>Hy});var Xs=class{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${Mg})`}};function Ad(e){return e instanceof Xs?e.changingThisBreaksApplicationSecurity:e}function $y(e,t){let n=qM(e);if(n!=null&&n!==t){if(n==="ResourceURL"&&t==="URL")return!0;throw new Error(`Required a safe ${t}, got a ${n} (see ${Mg})`)}return n===t}function qM(e){return e instanceof Xs&&e.getTypeName()||null}var VM=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function Gy(e){return e=String(e),e.match(VM)?e:"unsafe:"+e}var Md=function(e){return e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL",e}(Md||{});function et(e){let t=UM();return t?t.sanitize(Md.URL,e)||"":$y(e,"URL")?Ad(e):Gy(Ui(e))}function UM(){let e=de();return e&&e[Ut].sanitizer}function Yy(e){return e instanceof Function?e():e}var er=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}(er||{}),HM;function Od(e,t){return HM(e,t)}function kr(e,t,n,r,i){if(r!=null){let o,s=!1;sn(r)?o=r:Un(r)&&(s=!0,r=r[on]);let a=tn(r);e===0&&n!==null?i==null?Jy(t,n,a):ea(t,n,a,i||null,!0):e===1&&n!==null?ea(t,n,a,i||null,!0):e===2?sO(t,a,s):e===3&&t.destroyNode(a),o!=null&&lO(t,e,o,n,i)}}function $M(e,t){return e.createText(t)}function GM(e,t,n){e.setValue(t,n)}function Zy(e,t,n){return e.createElement(t,n)}function YM(e,t){Qy(e,t),t[on]=null,t[Nt]=null}function ZM(e,t,n,r,i,o){r[on]=i,r[Nt]=t,va(e,r,n,1,i,o)}function Qy(e,t){t[Ut].changeDetectionScheduler?.notify(9),va(e,t,t[st],2,null,null)}function QM(e){let t=e[Zi];if(!t)return cc(e[U],e);for(;t;){let n=null;if(Un(t))n=t[Zi];else{let r=t[qe];r&&(n=r)}if(!n){for(;t&&!t[Mt]&&t!==e;)Un(t)&&cc(t[U],t),t=t[Ve];t===null&&(t=e),Un(t)&&cc(t[U],t),n=t&&t[Mt]}t=n}}function KM(e,t,n,r){let i=qe+r,o=n.length;r>0&&(n[i-1][Mt]=t),r<o-qe?(t[Mt]=n[i],Bg(n,qe+r,t)):(n.push(t),t[Mt]=null),t[Ve]=n;let s=t[Gn];s!==null&&n!==s&&Ky(s,t);let a=t[en];a!==null&&a.insertView(e),Cc(t),t[j]|=128}function Ky(e,t){let n=e[Lr],r=t[Ve];if(Un(r))e[j]|=Ys.HasTransplantedViews;else{let i=r[Ve][Ot];t[Ot]!==i&&(e[j]|=Ys.HasTransplantedViews)}n===null?e[Lr]=[t]:n.push(t)}function Nd(e,t){let n=e[Lr],r=n.indexOf(t);n.splice(r,1)}function Ki(e,t){if(e.length<=qe)return;let n=qe+t,r=e[n];if(r){let i=r[Gn];i!==null&&i!==e&&Nd(i,r),t>0&&(e[n-1][Mt]=r[Mt]);let o=Hs(e,qe+t);YM(r[U],r);let s=o[en];s!==null&&s.detachView(o[U]),r[Ve]=null,r[Mt]=null,r[j]&=-129}return r}function ya(e,t){if(!(t[j]&256)){let n=t[st];n.destroyNode&&va(e,t,n,3,null,null),QM(t)}}function cc(e,t){if(t[j]&256)return;let n=ie(null);try{t[j]&=-129,t[j]|=256,t[yt]&&Fu(t[yt]),XM(e,t),JM(e,t),t[U].type===1&&t[st].destroy();let r=t[Gn];if(r!==null&&sn(t[Ve])){r!==t[Ve]&&Nd(r,t);let i=t[en];i!==null&&i.detachView(e)}Nc(t)}finally{ie(n)}}function JM(e,t){let n=e.cleanup,r=t[Sc];if(n!==null)for(let o=0;o<n.length-1;o+=2)if(typeof n[o]=="string"){let s=n[o+3];s>=0?r[s]():r[-s].unsubscribe(),o+=2}else{let s=r[n[o+1]];n[o].call(s)}r!==null&&(t[Sc]=null);let i=t[En];if(i!==null){t[En]=null;for(let o=0;o<i.length;o++){let s=i[o];s()}}}function XM(e,t){let n;if(e!=null&&(n=e.destroyHooks)!=null)for(let r=0;r<n.length;r+=2){let i=t[n[r]];if(!(i instanceof Qi)){let o=n[r+1];if(Array.isArray(o))for(let s=0;s<o.length;s+=2){let a=i[o[s]],l=o[s+1];Cn(4,a,l);try{l.call(a)}finally{Cn(5,a,l)}}else{Cn(4,i,o);try{o.call(i)}finally{Cn(5,i,o)}}}}}function eO(e,t,n){return tO(e,t.parent,n)}function tO(e,t,n){let r=t;for(;r!==null&&r.type&168;)t=r,r=t.parent;if(r===null)return n[on];{let{componentOffset:i}=r;if(i>-1){let{encapsulation:o}=e.data[r.directiveStart+i];if(o===Vt.None||o===Vt.Emulated)return null}return Ht(r,n)}}function ea(e,t,n,r,i){e.insertBefore(t,n,r,i)}function Jy(e,t,n){e.appendChild(t,n)}function Sg(e,t,n,r,i){r!==null?ea(e,t,n,r,i):Jy(e,t,n)}function Xy(e,t){return e.parentNode(t)}function nO(e,t){return e.nextSibling(t)}function rO(e,t,n){return oO(e,t,n)}function iO(e,t,n){return e.type&40?Ht(e,n):null}var oO=iO,xg;function Rd(e,t,n,r){let i=eO(e,r,t),o=t[st],s=r.parent||t[Nt],a=rO(s,r,t);if(i!=null)if(Array.isArray(n))for(let l=0;l<n.length;l++)Sg(o,i,n[l],a,!1);else Sg(o,i,n,a,!1);xg!==void 0&&xg(o,r,t,n,i)}function Wi(e,t){if(t!==null){let n=t.type;if(n&3)return Ht(t,e);if(n&4)return Pc(-1,e[t.index]);if(n&8){let r=t.child;if(r!==null)return Wi(e,r);{let i=e[t.index];return sn(i)?Pc(-1,i):tn(i)}}else{if(n&128)return Wi(e,t.next);if(n&32)return Od(t,e)()||tn(e[t.index]);{let r=ev(e,t);if(r!==null){if(Array.isArray(r))return r[0];let i=Zn(e[Ot]);return Wi(i,r)}else return Wi(e,t.next)}}}return null}function ev(e,t){if(t!==null){let r=e[Ot][Nt],i=t.projection;return r.projection[i]}return null}function Pc(e,t){let n=qe+e+1;if(n<t.length){let r=t[n],i=r[U].firstChild;if(i!==null)return Wi(r,i)}return t[Yn]}function sO(e,t,n){e.removeChild(null,t,n)}function Pd(e,t,n,r,i,o,s){for(;n!=null;){if(n.type===128){n=n.next;continue}let a=r[n.index],l=n.type;if(s&&t===0&&(a&&Jn(tn(a),r),n.flags|=2),(n.flags&32)!==32)if(l&8)Pd(e,t,n.child,r,i,o,!1),kr(t,e,i,a,o);else if(l&32){let u=Od(n,r),c;for(;c=u();)kr(t,e,i,c,o);kr(t,e,i,a,o)}else l&16?aO(e,t,r,n,i,o):kr(t,e,i,a,o);n=s?n.projectionNext:n.next}}function va(e,t,n,r,i,o){Pd(n,r,e.firstChild,t,i,o,!1)}function aO(e,t,n,r,i,o){let s=n[Ot],l=s[Nt].projection[r.projection];if(Array.isArray(l))for(let u=0;u<l.length;u++){let c=l[u];kr(t,e,i,c,o)}else{let u=l,c=s[Ve];zy(r)&&(u.flags|=128),Pd(e,t,u,c,i,o,!0)}}function lO(e,t,n,r,i){let o=n[Yn],s=tn(n);o!==s&&kr(t,e,r,o,i);for(let a=qe;a<n.length;a++){let l=n[a];va(l[U],l,e,t,r,o)}}function uO(e,t,n){e.setAttribute(t,"style",n)}function tv(e,t,n){n===""?e.removeAttribute(t,"class"):e.setAttribute(t,"class",n)}function nv(e,t,n){let{mergedAttrs:r,classes:i,styles:o}=n;r!==null&&mc(e,t,r),i!==null&&tv(e,t,i),o!==null&&uO(e,t,o)}var tr={};function _(e=1){rv(Rt(),de(),$r()+e,!1)}function rv(e,t,n,r){if(!r)if((t[j]&3)===3){let o=e.preOrderCheckHooks;o!==null&&Fs(t,o,n)}else{let o=e.preOrderHooks;o!==null&&zs(t,o,0,n)}Qn(n)}function In(e,t=Y.Default){let n=de();if(n===null)return ee(e,t);let r=$t();return My(r,n,gt(e),t)}function iv(e,t,n,r,i,o){let s=ie(null);try{let a=null;i&Dn.SignalBased&&(a=t[r][Sm]),a!==null&&a.transformFn!==void 0&&(o=a.transformFn(o)),i&Dn.HasDecoratorInputTransform&&(o=e.inputTransforms[r].call(t,o)),e.setInput!==null?e.setInput(t,a,o,n,r):iy(t,a,r,o)}finally{ie(s)}}function cO(e,t){let n=e.hostBindingOpCodes;if(n!==null)try{for(let r=0;r<n.length;r++){let i=n[r];if(i<0)Qn(~i);else{let o=i,s=n[++r],a=n[++r];eM(s,o);let l=t[o];a(2,l)}}}finally{Qn(-1)}}function ba(e,t,n,r,i,o,s,a,l,u,c){let p=t.blueprint.slice();return p[on]=i,p[j]=r|4|128|8|64,(u!==null||e&&e[j]&2048)&&(p[j]|=2048),ly(p),p[Ve]=p[Vr]=e,p[Xe]=n,p[Ut]=s||e&&e[Ut],p[st]=a||e&&e[st],p[Pr]=l||e&&e[Pr]||null,p[Nt]=o,p[pa]=RM(),p[Yi]=c,p[ey]=u,p[Ot]=t.type==2?e[Ot]:p,p}function oo(e,t,n,r,i){let o=e.data[t];if(o===null)o=dO(e,t,n,r,i),XA()&&(o.flags|=32);else if(o.type&64){o.type=n,o.value=r,o.attrs=i;let s=GA();o.injectorIndex=s===null?-1:s.injectorIndex}return Hr(o,!0),o}function dO(e,t,n,r,i){let o=fy(),s=hy(),a=s?o:o&&o.parent,l=e.data[t]=yO(e,a,n,t,r,i);return e.firstChild===null&&(e.firstChild=l),o!==null&&(s?o.child==null&&l.parent!==null&&(o.child=l):o.next===null&&(o.next=l,l.prev=o)),l}function ov(e,t,n,r){if(n===0)return-1;let i=t.length;for(let o=0;o<n;o++)t.push(r),e.blueprint.push(r),e.data.push(null);return i}function sv(e,t,n,r,i){let o=$r(),s=r&2;try{Qn(-1),s&&t.length>at&&rv(e,t,at,!1),Cn(s?2:0,i),n(r,i)}finally{Qn(o),Cn(s?3:1,i)}}function av(e,t,n){if(ny(t)){let r=ie(null);try{let i=t.directiveStart,o=t.directiveEnd;for(let s=i;s<o;s++){let a=e.data[s];if(a.contentQueries){let l=n[s];a.contentQueries(1,l,s)}}}finally{ie(r)}}}function lv(e,t,n){py()&&(EO(e,t,n,Ht(n,t)),(n.flags&64)===64&&fv(e,t,n))}function uv(e,t,n=Ht){let r=t.localNames;if(r!==null){let i=t.index+1;for(let o=0;o<r.length;o+=2){let s=r[o+1],a=s===-1?n(t,e):e[s];e[i++]=a}}}function cv(e){let t=e.tView;return t===null||t.incompleteFirstPass?e.tView=Ld(1,null,e.template,e.decls,e.vars,e.directiveDefs,e.pipeDefs,e.viewQuery,e.schemas,e.consts,e.id):t}function Ld(e,t,n,r,i,o,s,a,l,u,c){let p=at+r,d=p+i,f=pO(p,d),g=typeof u=="function"?u():u;return f[U]={type:e,blueprint:f,template:n,queries:null,viewQuery:a,declTNode:t,data:f.slice().fill(null,p),bindingStartIndex:p,expandoStartIndex:d,hostBindingOpCodes:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:typeof o=="function"?o():o,pipeRegistry:typeof s=="function"?s():s,firstChild:null,schemas:l,consts:g,incompleteFirstPass:!1,ssrId:c}}function pO(e,t){let n=[];for(let r=0;r<t;r++)n.push(r<e?null:tr);return n}function fO(e,t,n,r){let o=r.get(WM,Hy)||n===Vt.ShadowDom,s=e.selectRootElement(t,o);return hO(s),s}function hO(e){mO(e)}var mO=()=>null;function gO(e,t,n,r){let i=RO(t);i.push(n),e.firstCreatePass&&PO(e).push(r,i.length-1)}function yO(e,t,n,r,i,o){let s=t?t.injectorIndex:-1,a=0;return UA()&&(a|=128),{type:n,index:r,insertBeforeIndex:null,injectorIndex:s,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:a,providerIndexes:0,value:i,attrs:o,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:t,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}function wg(e,t,n,r,i){for(let o in t){if(!t.hasOwnProperty(o))continue;let s=t[o];if(s===void 0)continue;r??={};let a,l=Dn.None;Array.isArray(s)?(a=s[0],l=s[1]):a=s;let u=o;if(i!==null){if(!i.hasOwnProperty(o))continue;u=i[o]}e===0?Cg(r,n,u,a,l):Cg(r,n,u,a)}return r}function Cg(e,t,n,r,i){let o;e.hasOwnProperty(n)?(o=e[n]).push(t,r):o=e[n]=[t,r],i!==void 0&&o.push(i)}function vO(e,t,n){let r=t.directiveStart,i=t.directiveEnd,o=e.data,s=t.attrs,a=[],l=null,u=null;for(let c=r;c<i;c++){let p=o[c],d=n?n.get(p):null,f=d?d.inputs:null,g=d?d.outputs:null;l=wg(0,p.inputs,c,l,f),u=wg(1,p.outputs,c,u,g);let h=l!==null&&s!==null&&!dd(t)?NO(l,c,s):null;a.push(h)}l!==null&&(l.hasOwnProperty("class")&&(t.flags|=8),l.hasOwnProperty("style")&&(t.flags|=16)),t.initialInputs=a,t.inputs=l,t.outputs=u}function bO(e){return e==="class"?"className":e==="for"?"htmlFor":e==="formaction"?"formAction":e==="innerHtml"?"innerHTML":e==="readonly"?"readOnly":e==="tabindex"?"tabIndex":e}function SO(e,t,n,r,i,o,s,a){let l=Ht(t,n),u=t.inputs,c;!a&&u!=null&&(c=u[r])?(jd(e,n,c,r,i),fa(t)&&xO(n,t.index)):t.type&3?(r=bO(r),i=s!=null?s(i,t.value||"",r):i,o.setProperty(l,r,i)):t.type&12}function xO(e,t){let n=Ur(t,e);n[j]&16||(n[j]|=64)}function dv(e,t,n,r){if(py()){let i=r===null?null:{"":-1},o=TO(e,n),s,a;o===null?s=a=null:[s,a]=o,s!==null&&pv(e,t,n,s,i,a),i&&_O(n,r,i)}n.mergedAttrs=cd(n.mergedAttrs,n.attrs)}function pv(e,t,n,r,i,o){for(let u=0;u<r.length;u++)mM(_y(n,t),e,r[u].type);kO(n,e.data.length,r.length);for(let u=0;u<r.length;u++){let c=r[u];c.providersResolver&&c.providersResolver(c)}let s=!1,a=!1,l=ov(e,t,r.length,null);for(let u=0;u<r.length;u++){let c=r[u];n.mergedAttrs=cd(n.mergedAttrs,c.hostAttrs),AO(e,n,t,l,c),IO(l,c,i),c.contentQueries!==null&&(n.flags|=4),(c.hostBindings!==null||c.hostAttrs!==null||c.hostVars!==0)&&(n.flags|=64);let p=c.type.prototype;!s&&(p.ngOnChanges||p.ngOnInit||p.ngDoCheck)&&((e.preOrderHooks??=[]).push(n.index),s=!0),!a&&(p.ngOnChanges||p.ngDoCheck)&&((e.preOrderCheckHooks??=[]).push(n.index),a=!0),l++}vO(e,n,o)}function wO(e,t,n,r,i){let o=i.hostBindings;if(o){let s=e.hostBindingOpCodes;s===null&&(s=e.hostBindingOpCodes=[]);let a=~t.index;CO(s)!=a&&s.push(a),s.push(n,r,o)}}function CO(e){let t=e.length;for(;t>0;){let n=e[--t];if(typeof n=="number"&&n<0)return n}return 0}function EO(e,t,n,r){let i=n.directiveStart,o=n.directiveEnd;fa(n)&&MO(t,n,e.data[i+n.componentOffset]),e.firstCreatePass||_y(n,t),Jn(r,t);let s=n.initialInputs;for(let a=i;a<o;a++){let l=e.data[a],u=Fr(t,e,a,n);if(Jn(u,t),s!==null&&OO(t,a-i,u,l,n,s),io(l)){let c=Ur(n.index,t);c[Xe]=Fr(t,e,a,n)}}}function fv(e,t,n){let r=n.directiveStart,i=n.directiveEnd,o=n.index,s=tM();try{Qn(o);for(let a=r;a<i;a++){let l=e.data[a],u=t[a];Ec(a),(l.hostBindings!==null||l.hostVars!==0||l.hostAttrs!==null)&&DO(l,u)}}finally{Qn(-1),Ec(s)}}function DO(e,t){e.hostBindings!==null&&e.hostBindings(1,t)}function TO(e,t){let n=e.directiveRegistry,r=null,i=null;if(n)for(let o=0;o<n.length;o++){let s=n[o];if(lA(t,s.selectors,!1))if(r||(r=[]),io(s))if(s.findHostDirectiveDefs!==null){let a=[];i=i||new Map,s.findHostDirectiveDefs(s,a,i),r.unshift(...a,s);let l=a.length;Lc(e,t,l)}else r.unshift(s),Lc(e,t,0);else i=i||new Map,s.findHostDirectiveDefs?.(s,r,i),r.push(s)}return r===null?null:[r,i]}function Lc(e,t,n){t.componentOffset=n,(e.components??=[]).push(t.index)}function _O(e,t,n){if(t){let r=e.localNames=[];for(let i=0;i<t.length;i+=2){let o=n[t[i+1]];if(o==null)throw new L(-301,!1);r.push(t[i],o)}}}function IO(e,t,n){if(n){if(t.exportAs)for(let r=0;r<t.exportAs.length;r++)n[t.exportAs[r]]=e;io(t)&&(n[""]=e)}}function kO(e,t,n){e.flags|=1,e.directiveStart=t,e.directiveEnd=t+n,e.providerIndexes=t}function AO(e,t,n,r,i){e.data[r]=i;let o=i.factory||(i.factory=Or(i.type,!0)),s=new Qi(o,io(i),In);e.blueprint[r]=s,n[r]=s,wO(e,t,r,ov(e,n,i.hostVars,tr),i)}function MO(e,t,n){let r=Ht(t,e),i=cv(n),o=e[Ut].rendererFactory,s=16;n.signals?s=4096:n.onPush&&(s=64);let a=Sa(e,ba(e,i,null,s,r,t,null,o.createRenderer(r,n),null,null,null));e[t.index]=a}function OO(e,t,n,r,i,o){let s=o[t];if(s!==null)for(let a=0;a<s.length;){let l=s[a++],u=s[a++],c=s[a++],p=s[a++];iv(r,n,l,u,c,p)}}function NO(e,t,n){let r=null,i=0;for(;i<n.length;){let o=n[i];if(o===0){i+=4;continue}else if(o===5){i+=2;continue}if(typeof o=="number")break;if(e.hasOwnProperty(o)){r===null&&(r=[]);let s=e[o];for(let a=0;a<s.length;a+=3)if(s[a]===t){r.push(o,s[a+1],s[a+2],n[i+1]);break}}i+=2}return r}function hv(e,t,n,r){return[e,!0,0,t,null,r,null,n,null,null]}function mv(e,t){let n=e.contentQueries;if(n!==null){let r=ie(null);try{for(let i=0;i<n.length;i+=2){let o=n[i],s=n[i+1];if(s!==-1){let a=e.data[s];gd(o),a.contentQueries(2,t[s],s)}}}finally{ie(r)}}}function Sa(e,t){return e[Zi]?e[lg][Mt]=t:e[Zi]=t,e[lg]=t,t}function jc(e,t,n){gd(0);let r=ie(null);try{t(e,n)}finally{ie(r)}}function RO(e){return e[Sc]??=[]}function PO(e){return e.cleanup??=[]}function LO(e,t){let n=e[Pr],r=n?n.get(nn,null):null;r&&r.handleError(t)}function jd(e,t,n,r,i){for(let o=0;o<n.length;){let s=n[o++],a=n[o++],l=n[o++],u=t[s],c=e.data[s];iv(c,u,r,a,l,i)}}function gv(e,t,n){let r=PA(t,e);GM(e[st],r,n)}function jO(e,t){let n=Ur(t,e),r=n[U];FO(r,n);let i=n[on];i!==null&&n[Yi]===null&&(n[Yi]=kd(i,n[Pr])),Fd(r,n,n[Xe])}function FO(e,t){for(let n=t.length;n<e.blueprint.length;n++)t.push(e.blueprint[n])}function Fd(e,t,n){yd(t);try{let r=e.viewQuery;r!==null&&jc(1,r,n);let i=e.template;i!==null&&sv(e,t,i,1,n),e.firstCreatePass&&(e.firstCreatePass=!1),t[en]?.finishViewCreation(e),e.staticContentQueries&&mv(e,t),e.staticViewQueries&&jc(2,e.viewQuery,n);let o=e.components;o!==null&&zO(t,o)}catch(r){throw e.firstCreatePass&&(e.incompleteFirstPass=!0,e.firstCreatePass=!1),r}finally{t[j]&=-5,vd()}}function zO(e,t){for(let n=0;n<t.length;n++)jO(e,t[n])}function xa(e,t,n,r){let i=ie(null);try{let o=t.tView,a=e[j]&4096?4096:16,l=ba(e,o,n,a,null,t,null,null,r?.injector??null,r?.embeddedViewInjector??null,r?.dehydratedView??null),u=e[t.index];l[Gn]=u;let c=e[en];return c!==null&&(l[en]=c.createEmbeddedView(o)),Fd(o,l,n),l}finally{ie(i)}}function yv(e,t){let n=qe+t;if(n<e.length)return e[n]}function Ji(e,t){return!t||t.firstChild===null||zy(e)}function wa(e,t,n,r=!0){let i=t[U];if(KM(i,t,e,n),r){let s=Pc(n,e),a=t[st],l=Xy(a,e[Yn]);l!==null&&ZM(i,e[Nt],a,t,l,s)}let o=t[Yi];o!==null&&o.firstChild!==null&&(o.firstChild=null)}function vv(e,t){let n=Ki(e,t);return n!==void 0&&ya(n[U],n),n}function ta(e,t,n,r,i=!1){for(;n!==null;){if(n.type===128){n=i?n.projectionNext:n.next;continue}let o=t[n.index];o!==null&&r.push(tn(o)),sn(o)&&BO(o,r);let s=n.type;if(s&8)ta(e,t,n.child,r);else if(s&32){let a=Od(n,t),l;for(;l=a();)r.push(l)}else if(s&16){let a=ev(t,n);if(Array.isArray(a))r.push(...a);else{let l=Zn(t[Ot]);ta(l[U],l,a,r,!0)}}n=i?n.projectionNext:n.next}return r}function BO(e,t){for(let n=qe;n<e.length;n++){let r=e[n],i=r[U].firstChild;i!==null&&ta(r[U],r,i,t)}e[Yn]!==e[on]&&t.push(e[Yn])}var bv=[];function WO(e){return e[yt]??qO(e)}function qO(e){let t=bv.pop()??Object.create(UO);return t.lView=e,t}function VO(e){e.lView[yt]!==e&&(e.lView=null,bv.push(e))}var UO=be(O({},Pu),{consumerIsAlwaysLive:!0,consumerMarkedDirty:e=>{ma(e.lView)},consumerOnSignalRead(){this.lView[yt]=this}});function HO(e){let t=e[yt]??Object.create($O);return t.lView=e,t}var $O=be(O({},Pu),{consumerIsAlwaysLive:!0,consumerMarkedDirty:e=>{let t=Zn(e.lView);for(;t&&!Sv(t[U]);)t=Zn(t);t&&uy(t)},consumerOnSignalRead(){this.lView[yt]=this}});function Sv(e){return e.type!==2}var GO=100;function xv(e,t=!0,n=0){let r=e[Ut],i=r.rendererFactory,o=!1;o||i.begin?.();try{YO(e,n)}catch(s){throw t&&LO(e,s),s}finally{o||(i.end?.(),r.inlineEffectRunner?.flush())}}function YO(e,t){let n=my();try{cg(!0),Fc(e,t);let r=0;for(;ha(e);){if(r===GO)throw new L(103,!1);r++,Fc(e,1)}}finally{cg(n)}}function ZO(e,t,n,r){let i=t[j];if((i&256)===256)return;let o=!1,s=!1;!o&&t[Ut].inlineEffectRunner?.flush(),yd(t);let a=!0,l=null,u=null;o||(Sv(e)?(u=WO(t),l=Lu(u)):xm()===null?(a=!1,u=HO(t),l=Lu(u)):t[yt]&&(Fu(t[yt]),t[yt]=null));try{ly(t),KA(e.bindingStartIndex),n!==null&&sv(e,t,n,2,r);let c=(i&3)===3;if(!o)if(c){let f=e.preOrderCheckHooks;f!==null&&Fs(t,f,null)}else{let f=e.preOrderHooks;f!==null&&zs(t,f,0,null),sc(t,0)}if(s||QO(t),wv(t,0),e.contentQueries!==null&&mv(e,t),!o)if(c){let f=e.contentCheckHooks;f!==null&&Fs(t,f)}else{let f=e.contentHooks;f!==null&&zs(t,f,1),sc(t,1)}cO(e,t);let p=e.components;p!==null&&Ev(t,p,0);let d=e.viewQuery;if(d!==null&&jc(2,d,r),!o)if(c){let f=e.viewCheckHooks;f!==null&&Fs(t,f)}else{let f=e.viewHooks;f!==null&&zs(t,f,2),sc(t,2)}if(e.firstUpdatePass===!0&&(e.firstUpdatePass=!1),t[oc]){for(let f of t[oc])f();t[oc]=null}o||(t[j]&=-73)}catch(c){throw o||ma(t),c}finally{u!==null&&(wm(u,l),a&&VO(u)),vd()}}function wv(e,t){for(let n=Wy(e);n!==null;n=qy(n))for(let r=qe;r<n.length;r++){let i=n[r];Cv(i,t)}}function QO(e){for(let t=Wy(e);t!==null;t=qy(t)){if(!(t[j]&Ys.HasTransplantedViews))continue;let n=t[Lr];for(let r=0;r<n.length;r++){let i=n[r];uy(i)}}}function KO(e,t,n){let r=Ur(t,e);Cv(r,n)}function Cv(e,t){md(e)&&Fc(e,t)}function Fc(e,t){let r=e[U],i=e[j],o=e[yt],s=!!(t===0&&i&16);if(s||=!!(i&64&&t===0),s||=!!(i&1024),s||=!!(o?.dirty&&ju(o)),s||=!1,o&&(o.dirty=!1),e[j]&=-9217,s)ZO(r,e,r.template,e[Xe]);else if(i&8192){wv(e,1);let a=r.components;a!==null&&Ev(e,a,1)}}function Ev(e,t,n){for(let r=0;r<t.length;r++)KO(e,t[r],n)}function Dv(e,t){let n=my()?64:1088;for(e[Ut].changeDetectionScheduler?.notify(t);e;){e[j]|=n;let r=Zn(e);if(xc(e)&&!r)return e;e=r}return null}var Xn=class{get rootNodes(){let t=this._lView,n=t[U];return ta(n,t,n.firstChild,[])}constructor(t,n,r=!0){this._lView=t,this._cdRefInjectingView=n,this.notifyErrorHandler=r,this._appRef=null,this._attachedToViewContainer=!1}get context(){return this._lView[Xe]}set context(t){this._lView[Xe]=t}get destroyed(){return(this._lView[j]&256)===256}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){let t=this._lView[Ve];if(sn(t)){let n=t[Gs],r=n?n.indexOf(this):-1;r>-1&&(Ki(t,r),Hs(n,r))}this._attachedToViewContainer=!1}ya(this._lView[U],this._lView)}onDestroy(t){cy(this._lView,t)}markForCheck(){Dv(this._cdRefInjectingView||this._lView,4)}detach(){this._lView[j]&=-129}reattach(){Cc(this._lView),this._lView[j]|=128}detectChanges(){this._lView[j]|=1024,xv(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new L(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;let t=xc(this._lView),n=this._lView[Gn];n!==null&&!t&&Nd(n,this._lView),Qy(this._lView[U],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new L(902,!1);this._appRef=t;let n=xc(this._lView),r=this._lView[Gn];r!==null&&!n&&Ky(r,this._lView),Cc(this._lView)}},Xi=(()=>{class e{static{this.__NG_ELEMENT_ID__=eN}}return e})(),JO=Xi,XO=class extends JO{constructor(t,n,r){super(),this._declarationLView=t,this._declarationTContainer=n,this.elementRef=r}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(t,n){return this.createEmbeddedViewImpl(t,n)}createEmbeddedViewImpl(t,n,r){let i=xa(this._declarationLView,this._declarationTContainer,t,{embeddedViewInjector:n,dehydratedView:r});return new Xn(i)}};function eN(){return zd($t(),de())}function zd(e,t){return e.type&4?new XO(t,e,Yr(e,t)):null}var b4=new RegExp(`^(\\d+)*(${zM}|${FM})*(.*)`);var tN=()=>null;function eo(e,t){return tN(e,t)}var zr=class{},Ca=new $("",{providedIn:"root",factory:()=>!1});var Tv=new $(""),_v=new $(""),zc=class{},na=class{};function nN(e){let t=Error(`No component factory found for ${ot(e)}.`);return t[rN]=e,t}var rN="ngComponent";var Bc=class{resolveComponentFactory(t){throw nN(t)}},Br=class{static{this.NULL=new Bc}},Wr=class{};var iN=(()=>{class e{static{this.\u0275prov=F({token:e,providedIn:"root",factory:()=>null})}}return e})();function Wc(e,t,n){let r=n?e.styles:null,i=n?e.classes:null,o=0;if(t!==null)for(let s=0;s<t.length;s++){let a=t[s];if(typeof a=="number")o=a;else if(o==1)i=Jm(i,a);else if(o==2){let l=a,u=t[++s];r=Jm(r,l+": "+u+";")}}n?e.styles=r:e.stylesWithoutHost=r,n?e.classes=i:e.classesWithoutHost=i}var ra=class extends Br{constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){let n=$n(t);return new to(n,this.ngModule)}};function Eg(e,t){let n=[];for(let r in e){if(!e.hasOwnProperty(r))continue;let i=e[r];if(i===void 0)continue;let o=Array.isArray(i),s=o?i[0]:i,a=o?i[1]:Dn.None;t?n.push({propName:s,templateName:r,isSignal:(a&Dn.SignalBased)!==0}):n.push({propName:s,templateName:r})}return n}function oN(e){let t=e.toLowerCase();return t==="svg"?NA:t==="math"?RA:null}var to=class extends na{get inputs(){let t=this.componentDef,n=t.inputTransforms,r=Eg(t.inputs,!0);if(n!==null)for(let i of r)n.hasOwnProperty(i.propName)&&(i.transform=n[i.propName]);return r}get outputs(){return Eg(this.componentDef.outputs,!1)}constructor(t,n){super(),this.componentDef=t,this.ngModule=n,this.componentType=t.type,this.selector=pA(t.selectors),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!n}create(t,n,r,i){let o=ie(null);try{i=i||this.ngModule;let s=i instanceof vt?i:i?.injector;s&&this.componentDef.getStandaloneInjector!==null&&(s=this.componentDef.getStandaloneInjector(s)||s);let a=s?new Dc(t,s):t,l=a.get(Wr,null);if(l===null)throw new L(407,!1);let u=a.get(iN,null),c=a.get(zr,null),p={rendererFactory:l,sanitizer:u,inlineEffectRunner:null,changeDetectionScheduler:c},d=l.createRenderer(null,this.componentDef),f=this.componentDef.selectors[0][0]||"div",g=r?fO(d,r,this.componentDef.encapsulation,a):Zy(d,f,oN(f)),h=512;this.componentDef.signals?h|=4096:this.componentDef.onPush||(h|=16);let y=null;g!==null&&(y=kd(g,a,!0));let m=Ld(0,null,null,1,0,null,null,null,null,null,null),v=ba(null,m,null,h,null,null,p,d,a,null,y);yd(v);let S,x,E=null;try{let w=this.componentDef,W,q=null;w.findHostDirectiveDefs?(W=[],q=new Map,w.findHostDirectiveDefs(w,W,q),W.push(w)):W=[w];let oe=sN(v,g);E=aN(oe,g,w,W,v,p,d),x=hd(m,at),g&&cN(d,w,g,r),n!==void 0&&dN(x,this.ngContentSelectors,n),S=uN(E,w,W,q,v,[pN]),Fd(m,v,null)}catch(w){throw E!==null&&Nc(E),Nc(v),w}finally{vd()}return new qc(this.componentType,S,Yr(x,v),v,x)}finally{ie(o)}}},qc=class extends zc{constructor(t,n,r,i,o){super(),this.location=r,this._rootLView=i,this._tNode=o,this.previousInputValues=null,this.instance=n,this.hostView=this.changeDetectorRef=new Xn(i,void 0,!1),this.componentType=t}setInput(t,n){let r=this._tNode.inputs,i;if(r!==null&&(i=r[t])){if(this.previousInputValues??=new Map,this.previousInputValues.has(t)&&Object.is(this.previousInputValues.get(t),n))return;let o=this._rootLView;jd(o[U],o,i,t,n),this.previousInputValues.set(t,n);let s=Ur(this._tNode.index,o);Dv(s,1)}}get injector(){return new Hn(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}};function sN(e,t){let n=e[U],r=at;return e[r]=t,oo(n,r,2,"#host",null)}function aN(e,t,n,r,i,o,s){let a=i[U];lN(r,e,t,s);let l=null;t!==null&&(l=kd(t,i[Pr]));let u=o.rendererFactory.createRenderer(t,n),c=16;n.signals?c=4096:n.onPush&&(c=64);let p=ba(i,cv(n),null,c,i[e.index],e,o,u,null,null,l);return a.firstCreatePass&&Lc(a,e,r.length-1),Sa(i,p),i[e.index]=p}function lN(e,t,n,r){for(let i of e)t.mergedAttrs=cd(t.mergedAttrs,i.hostAttrs);t.mergedAttrs!==null&&(Wc(t,t.mergedAttrs,!0),n!==null&&nv(r,n,t))}function uN(e,t,n,r,i,o){let s=$t(),a=i[U],l=Ht(s,i);pv(a,i,s,n,null,r);for(let c=0;c<n.length;c++){let p=s.directiveStart+c,d=Fr(i,a,p,s);Jn(d,i)}fv(a,i,s),l&&Jn(l,i);let u=Fr(i,a,s.directiveStart+s.componentOffset,s);if(e[Xe]=i[Xe]=u,o!==null)for(let c of o)c(u,t);return av(a,s,i),u}function cN(e,t,n,r){if(r)mc(e,n,["ng-version","18.2.14"]);else{let{attrs:i,classes:o}=fA(t.selectors[0]);i&&mc(e,n,i),o&&o.length>0&&tv(e,n,o.join(" "))}}function dN(e,t,n){let r=e.projection=[];for(let i=0;i<t.length;i++){let o=n[i];r.push(o!=null?Array.from(o):null)}}function pN(){let e=$t();xd(de()[U],e)}var Qr=(()=>{class e{static{this.__NG_ELEMENT_ID__=fN}}return e})();function fN(){let e=$t();return kv(e,de())}var hN=Qr,Iv=class extends hN{constructor(t,n,r){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=r}get element(){return Yr(this._hostTNode,this._hostLView)}get injector(){return new Hn(this._hostTNode,this._hostLView)}get parentInjector(){let t=wd(this._hostTNode,this._hostLView);if(Ey(t)){let n=Qs(t,this._hostLView),r=Zs(t),i=n[U].data[r+8];return new Hn(i,n)}else return new Hn(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){let n=Dg(this._lContainer);return n!==null&&n[t]||null}get length(){return this._lContainer.length-qe}createEmbeddedView(t,n,r){let i,o;typeof r=="number"?i=r:r!=null&&(i=r.index,o=r.injector);let s=eo(this._lContainer,t.ssrId),a=t.createEmbeddedViewImpl(n||{},o,s);return this.insertImpl(a,i,Ji(this._hostTNode,s)),a}createComponent(t,n,r,i,o){let s=t&&!kA(t),a;if(s)a=n;else{let g=n||{};a=g.index,r=g.injector,i=g.projectableNodes,o=g.environmentInjector||g.ngModuleRef}let l=s?t:new to($n(t)),u=r||this.parentInjector;if(!o&&l.ngModule==null){let h=(s?u:this.parentInjector).get(vt,null);h&&(o=h)}let c=$n(l.componentType??{}),p=eo(this._lContainer,c?.id??null),d=p?.firstChild??null,f=l.create(u,i,d,o);return this.insertImpl(f.hostView,a,Ji(this._hostTNode,p)),f}insert(t,n){return this.insertImpl(t,n,!0)}insertImpl(t,n,r){let i=t._lView;if(FA(i)){let a=this.indexOf(t);if(a!==-1)this.detach(a);else{let l=i[Ve],u=new Iv(l,l[Nt],l[Ve]);u.detach(u.indexOf(t))}}let o=this._adjustIndex(n),s=this._lContainer;return wa(s,i,o,r),t.attachToViewContainerRef(),Bg(dc(s),o,t),t}move(t,n){return this.insert(t,n)}indexOf(t){let n=Dg(this._lContainer);return n!==null?n.indexOf(t):-1}remove(t){let n=this._adjustIndex(t,-1),r=Ki(this._lContainer,n);r&&(Hs(dc(this._lContainer),n),ya(r[U],r))}detach(t){let n=this._adjustIndex(t,-1),r=Ki(this._lContainer,n);return r&&Hs(dc(this._lContainer),n)!=null?new Xn(r):null}_adjustIndex(t,n=0){return t??this.length+n}};function Dg(e){return e[Gs]}function dc(e){return e[Gs]||(e[Gs]=[])}function kv(e,t){let n,r=t[e.index];return sn(r)?n=r:(n=hv(r,t,null,e),t[e.index]=n,Sa(t,n)),gN(n,t,e,r),new Iv(n,e,t)}function mN(e,t){let n=e[st],r=n.createComment(""),i=Ht(t,e),o=Xy(n,i);return ea(n,o,r,nO(n,i),!1),r}var gN=bN,yN=()=>!1;function vN(e,t,n){return yN(e,t,n)}function bN(e,t,n,r){if(e[Yn])return;let i;n.type&8?i=tn(r):i=mN(t,n),e[Yn]=i}var Vc=class e{constructor(t){this.queryList=t,this.matches=null}clone(){return new e(this.queryList)}setDirty(){this.queryList.setDirty()}},Uc=class e{constructor(t=[]){this.queries=t}createEmbeddedView(t){let n=t.queries;if(n!==null){let r=t.contentQueries!==null?t.contentQueries[0]:n.length,i=[];for(let o=0;o<r;o++){let s=n.getByIndex(o),a=this.queries[s.indexInDeclarationView];i.push(a.clone())}return new e(i)}return null}insertView(t){this.dirtyQueriesWithMatches(t)}detachView(t){this.dirtyQueriesWithMatches(t)}finishViewCreation(t){this.dirtyQueriesWithMatches(t)}dirtyQueriesWithMatches(t){for(let n=0;n<this.queries.length;n++)Bd(t,n).matches!==null&&this.queries[n].setDirty()}},Hc=class{constructor(t,n,r=null){this.flags=n,this.read=r,typeof t=="string"?this.predicate=_N(t):this.predicate=t}},$c=class e{constructor(t=[]){this.queries=t}elementStart(t,n){for(let r=0;r<this.queries.length;r++)this.queries[r].elementStart(t,n)}elementEnd(t){for(let n=0;n<this.queries.length;n++)this.queries[n].elementEnd(t)}embeddedTView(t){let n=null;for(let r=0;r<this.length;r++){let i=n!==null?n.length:0,o=this.getByIndex(r).embeddedTView(t,i);o&&(o.indexInDeclarationView=r,n!==null?n.push(o):n=[o])}return n!==null?new e(n):null}template(t,n){for(let r=0;r<this.queries.length;r++)this.queries[r].template(t,n)}getByIndex(t){return this.queries[t]}get length(){return this.queries.length}track(t){this.queries.push(t)}},Gc=class e{constructor(t,n=-1){this.metadata=t,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=n}elementStart(t,n){this.isApplyingToNode(n)&&this.matchTNode(t,n)}elementEnd(t){this._declarationNodeIndex===t.index&&(this._appliesToNextNode=!1)}template(t,n){this.elementStart(t,n)}embeddedTView(t,n){return this.isApplyingToNode(t)?(this.crossesNgTemplate=!0,this.addMatch(-t.index,n),new e(this.metadata)):null}isApplyingToNode(t){if(this._appliesToNextNode&&(this.metadata.flags&1)!==1){let n=this._declarationNodeIndex,r=t.parent;for(;r!==null&&r.type&8&&r.index!==n;)r=r.parent;return n===(r!==null?r.index:-1)}return this._appliesToNextNode}matchTNode(t,n){let r=this.metadata.predicate;if(Array.isArray(r))for(let i=0;i<r.length;i++){let o=r[i];this.matchTNodeWithReadOption(t,n,SN(n,o)),this.matchTNodeWithReadOption(t,n,Bs(n,t,o,!1,!1))}else r===Xi?n.type&4&&this.matchTNodeWithReadOption(t,n,-1):this.matchTNodeWithReadOption(t,n,Bs(n,t,r,!1,!1))}matchTNodeWithReadOption(t,n,r){if(r!==null){let i=this.metadata.read;if(i!==null)if(i===an||i===Qr||i===Xi&&n.type&4)this.addMatch(n.index,-2);else{let o=Bs(n,t,i,!1,!1);o!==null&&this.addMatch(n.index,o)}else this.addMatch(n.index,r)}}addMatch(t,n){this.matches===null?this.matches=[t,n]:this.matches.push(t,n)}};function SN(e,t){let n=e.localNames;if(n!==null){for(let r=0;r<n.length;r+=2)if(n[r]===t)return n[r+1]}return null}function xN(e,t){return e.type&11?Yr(e,t):e.type&4?zd(e,t):null}function wN(e,t,n,r){return n===-1?xN(t,e):n===-2?CN(e,t,r):Fr(e,e[U],n,t)}function CN(e,t,n){if(n===an)return Yr(t,e);if(n===Xi)return zd(t,e);if(n===Qr)return kv(t,e)}function Av(e,t,n,r){let i=t[en].queries[r];if(i.matches===null){let o=e.data,s=n.matches,a=[];for(let l=0;s!==null&&l<s.length;l+=2){let u=s[l];if(u<0)a.push(null);else{let c=o[u];a.push(wN(t,c,s[l+1],n.metadata.read))}}i.matches=a}return i.matches}function Yc(e,t,n,r){let i=e.queries.getByIndex(n),o=i.matches;if(o!==null){let s=Av(e,t,i,n);for(let a=0;a<o.length;a+=2){let l=o[a];if(l>0)r.push(s[a/2]);else{let u=o[a+1],c=t[-l];for(let p=qe;p<c.length;p++){let d=c[p];d[Gn]===d[Ve]&&Yc(d[U],d,u,r)}if(c[Lr]!==null){let p=c[Lr];for(let d=0;d<p.length;d++){let f=p[d];Yc(f[U],f,u,r)}}}}}return r}function EN(e,t){return e[en].queries[t].queryList}function DN(e,t,n){let r=new Oc((n&4)===4);return gO(e,t,r,r.destroy),(t[en]??=new Uc).queries.push(new Vc(r))-1}function TN(e,t,n){let r=Rt();return r.firstCreatePass&&(IN(r,new Hc(e,t,n),-1),(t&2)===2&&(r.staticViewQueries=!0)),DN(r,de(),t)}function _N(e){return e.split(",").map(t=>t.trim())}function IN(e,t,n){e.queries===null&&(e.queries=new $c),e.queries.track(new Gc(t,n))}function Bd(e,t){return e.queries.getByIndex(t)}function kN(e,t){let n=e[U],r=Bd(n,t);return r.crossesNgTemplate?Yc(n,e,t,[]):Av(n,e,r,t)}var Tg=new Set;function Kr(e){Tg.has(e)||(Tg.add(e),performance?.mark?.("mark_feature_usage",{detail:{feature:e}}))}var Tn=class{},no=class{};var Zc=class extends Tn{constructor(t,n,r,i=!0){super(),this.ngModuleType=t,this._parent=n,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new ra(this);let o=Yg(t);this._bootstrapComponents=Yy(o.bootstrap),this._r3Injector=Ry(t,n,[{provide:Tn,useValue:this},{provide:Br,useValue:this.componentFactoryResolver},...r],ot(t),new Set(["environment"])),i&&this.resolveInjectorInitializers()}resolveInjectorInitializers(){this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(this.ngModuleType)}get injector(){return this._r3Injector}destroy(){let t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(n=>n()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}},Qc=class extends no{constructor(t){super(),this.moduleType=t}create(t){return new Zc(this.moduleType,t,[])}};var ia=class extends Tn{constructor(t){super(),this.componentFactoryResolver=new ra(this),this.instance=null;let n=new Gi([...t.providers,{provide:Tn,useValue:this},{provide:Br,useValue:this.componentFactoryResolver}],t.parent||fd(),t.debugName,new Set(["environment"]));this.injector=n,t.runEnvironmentInitializers&&n.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}};function Wd(e,t,n=null){return new ia({providers:e,parent:t,debugName:n,runEnvironmentInitializers:!0}).injector}function qr(e,t,n){let r=e[t];return Object.is(r,n)?!1:(e[t]=n,!0)}function AN(e,t,n,r){let i=qr(e,t,n);return qr(e,t+1,r)||i}function MN(e){return(e.flags&32)===32}function ON(e,t,n,r,i,o,s,a,l){let u=t.consts,c=oo(t,e,4,s||null,a||null);dv(t,n,c,jr(u,l)),xd(t,c);let p=c.tView=Ld(2,c,r,i,o,t.directiveRegistry,t.pipeRegistry,null,t.schemas,u,null);return t.queries!==null&&(t.queries.template(t,c),p.queries=t.queries.embeddedTView(c)),c}function Kc(e,t,n,r,i,o,s,a,l,u){let c=n+at,p=t.firstCreatePass?ON(c,t,e,r,i,o,s,a,l):t.data[c];Hr(p,!1);let d=NN(t,e,p,n);bd()&&Rd(t,e,d,p),Jn(d,e);let f=hv(d,e,d,p);return e[c]=f,Sa(e,f),vN(f,p,e),ry(p)&&lv(t,e,p),l!=null&&uv(e,p,u),p}function Te(e,t,n,r,i,o,s,a){let l=de(),u=Rt(),c=jr(u.consts,o);return Kc(l,u,e,t,n,r,i,c,s,a),Te}var NN=RN;function RN(e,t,n,r){return Sd(!0),t[st].createComment("")}var qi=function(e){return e[e.EarlyRead=0]="EarlyRead",e[e.Write=1]="Write",e[e.MixedReadWrite=2]="MixedReadWrite",e[e.Read=3]="Read",e}(qi||{}),PN=(()=>{class e{constructor(){this.impl=null}execute(){this.impl?.execute()}static{this.\u0275prov=F({token:e,providedIn:"root",factory:()=>new e})}}return e})(),_g=class e{constructor(){this.ngZone=T(Se),this.scheduler=T(zr),this.errorHandler=T(nn,{optional:!0}),this.sequences=new Set,this.deferredRegistrations=new Set,this.executing=!1}static{this.PHASES=[qi.EarlyRead,qi.Write,qi.MixedReadWrite,qi.Read]}execute(){this.executing=!0;for(let t of e.PHASES)for(let n of this.sequences)if(!(n.erroredOrDestroyed||!n.hooks[t]))try{n.pipelinedValue=this.ngZone.runOutsideAngular(()=>n.hooks[t](n.pipelinedValue))}catch(r){n.erroredOrDestroyed=!0,this.errorHandler?.handleError(r)}this.executing=!1;for(let t of this.sequences)t.afterRun(),t.once&&(this.sequences.delete(t),t.destroy());for(let t of this.deferredRegistrations)this.sequences.add(t);this.deferredRegistrations.size>0&&this.scheduler.notify(7),this.deferredRegistrations.clear()}register(t){this.executing?this.deferredRegistrations.add(t):(this.sequences.add(t),this.scheduler.notify(6))}unregister(t){this.executing&&this.sequences.has(t)?(t.erroredOrDestroyed=!0,t.pipelinedValue=void 0,t.once=!0):(this.sequences.delete(t),this.deferredRegistrations.delete(t))}static{this.\u0275prov=F({token:e,providedIn:"root",factory:()=>new e})}};function LN(e,t,n,r){return qr(e,ga(),n)?t+Ui(n)+r:tr}function jN(e,t,n,r,i,o){let s=QA(),a=AN(e,s,n,i);return JA(2),a?t+Ui(n)+r+Ui(i)+o:tr}function se(e,t,n){let r=de(),i=ga();if(qr(r,i,t)){let o=Rt(),s=iM();SO(o,s,r,e,t,r[st],n,!1)}return se}function Ig(e,t,n,r,i){let o=t.inputs,s=i?"class":"style";jd(e,n,o[s],s,r)}var Jc=class{destroy(t){}updateValue(t,n){}swap(t,n){let r=Math.min(t,n),i=Math.max(t,n),o=this.detach(i);if(i-r>1){let s=this.detach(r);this.attach(r,o),this.attach(i,s)}else this.attach(r,o)}move(t,n){this.attach(n,this.detach(t))}};function pc(e,t,n,r,i){return e===n&&Object.is(t,r)?1:Object.is(i(e,t),i(n,r))?-1:0}function FN(e,t,n){let r,i,o=0,s=e.length-1,a=void 0;if(Array.isArray(t)){let l=t.length-1;for(;o<=s&&o<=l;){let u=e.at(o),c=t[o],p=pc(o,u,o,c,n);if(p!==0){p<0&&e.updateValue(o,c),o++;continue}let d=e.at(s),f=t[l],g=pc(s,d,l,f,n);if(g!==0){g<0&&e.updateValue(s,f),s--,l--;continue}let h=n(o,u),y=n(s,d),m=n(o,c);if(Object.is(m,y)){let v=n(l,f);Object.is(v,h)?(e.swap(o,s),e.updateValue(s,f),l--,s--):e.move(s,o),e.updateValue(o,c),o++;continue}if(r??=new oa,i??=Ag(e,o,s,n),Xc(e,r,o,m))e.updateValue(o,c),o++,s++;else if(i.has(m))r.set(h,e.detach(o)),s--;else{let v=e.create(o,t[o]);e.attach(o,v),o++,s++}}for(;o<=l;)kg(e,r,n,o,t[o]),o++}else if(t!=null){let l=t[Symbol.iterator](),u=l.next();for(;!u.done&&o<=s;){let c=e.at(o),p=u.value,d=pc(o,c,o,p,n);if(d!==0)d<0&&e.updateValue(o,p),o++,u=l.next();else{r??=new oa,i??=Ag(e,o,s,n);let f=n(o,p);if(Xc(e,r,o,f))e.updateValue(o,p),o++,s++,u=l.next();else if(!i.has(f))e.attach(o,e.create(o,p)),o++,s++,u=l.next();else{let g=n(o,c);r.set(g,e.detach(o)),s--}}}for(;!u.done;)kg(e,r,n,e.length,u.value),u=l.next()}for(;o<=s;)e.destroy(e.detach(s--));r?.forEach(l=>{e.destroy(l)})}function Xc(e,t,n,r){return t!==void 0&&t.has(r)?(e.attach(n,t.get(r)),t.delete(r),!0):!1}function kg(e,t,n,r,i){if(Xc(e,t,r,n(r,i)))e.updateValue(r,i);else{let o=e.create(r,i);e.attach(r,o)}}function Ag(e,t,n,r){let i=new Set;for(let o=t;o<=n;o++)i.add(r(o,e.at(o)));return i}var oa=class{constructor(){this.kvMap=new Map,this._vMap=void 0}has(t){return this.kvMap.has(t)}delete(t){if(!this.has(t))return!1;let n=this.kvMap.get(t);return this._vMap!==void 0&&this._vMap.has(n)?(this.kvMap.set(t,this._vMap.get(n)),this._vMap.delete(n)):this.kvMap.delete(t),!0}get(t){return this.kvMap.get(t)}set(t,n){if(this.kvMap.has(t)){let r=this.kvMap.get(t);this._vMap===void 0&&(this._vMap=new Map);let i=this._vMap;for(;i.has(r);)r=i.get(r);i.set(r,n)}else this.kvMap.set(t,n)}forEach(t){for(let[n,r]of this.kvMap)if(t(r,n),this._vMap!==void 0){let i=this._vMap;for(;i.has(r);)r=i.get(r),t(r,n)}}};function fe(e,t){Kr("NgControlFlow");let n=de(),r=ga(),i=n[r]!==tr?n[r]:-1,o=i!==-1?sa(n,at+i):void 0,s=0;if(qr(n,r,e)){let a=ie(null);try{if(o!==void 0&&vv(o,s),e!==-1){let l=at+e,u=sa(n,l),c=rd(n[U],l),p=eo(u,c.tView.ssrId),d=xa(n,c,t,{dehydratedView:p});wa(u,d,s,Ji(c,p))}}finally{ie(a)}}else if(o!==void 0){let a=yv(o,s);a!==void 0&&(a[Xe]=t)}}var ed=class{constructor(t,n,r){this.lContainer=t,this.$implicit=n,this.$index=r}get $count(){return this.lContainer.length-qe}};function lt(e){return e}var td=class{constructor(t,n,r){this.hasEmptyBlock=t,this.trackByFn=n,this.liveCollection=r}};function ut(e,t,n,r,i,o,s,a,l,u,c,p,d){Kr("NgControlFlow");let f=de(),g=Rt(),h=l!==void 0,y=de(),m=a?s.bind(y[Ot][Xe]):s,v=new td(h,m);y[at+e]=v,Kc(f,g,e+1,t,n,r,i,jr(g.consts,o)),h&&Kc(f,g,e+2,l,u,c,p,jr(g.consts,d))}var nd=class extends Jc{constructor(t,n,r){super(),this.lContainer=t,this.hostLView=n,this.templateTNode=r,this.operationsCounter=void 0,this.needsIndexUpdate=!1}get length(){return this.lContainer.length-qe}at(t){return this.getLView(t)[Xe].$implicit}attach(t,n){let r=n[Yi];this.needsIndexUpdate||=t!==this.length,wa(this.lContainer,n,t,Ji(this.templateTNode,r))}detach(t){return this.needsIndexUpdate||=t!==this.length-1,zN(this.lContainer,t)}create(t,n){let r=eo(this.lContainer,this.templateTNode.tView.ssrId),i=xa(this.hostLView,this.templateTNode,new ed(this.lContainer,n,t),{dehydratedView:r});return this.operationsCounter?.recordCreate(),i}destroy(t){ya(t[U],t),this.operationsCounter?.recordDestroy()}updateValue(t,n){this.getLView(t)[Xe].$implicit=n}reset(){this.needsIndexUpdate=!1,this.operationsCounter?.reset()}updateIndexes(){if(this.needsIndexUpdate)for(let t=0;t<this.length;t++)this.getLView(t)[Xe].$index=t}getLView(t){return BN(this.lContainer,t)}};function ct(e){let t=ie(null),n=$r();try{let r=de(),i=r[U],o=r[n],s=n+1,a=sa(r,s);if(o.liveCollection===void 0){let u=rd(i,s);o.liveCollection=new nd(a,r,u)}else o.liveCollection.reset();let l=o.liveCollection;if(FN(l,e,o.trackByFn),l.updateIndexes(),o.hasEmptyBlock){let u=ga(),c=l.length===0;if(qr(r,u,c)){let p=n+2,d=sa(r,p);if(c){let f=rd(i,p),g=eo(d,f.tView.ssrId),h=xa(r,f,void 0,{dehydratedView:g});wa(d,h,0,Ji(f,g))}else vv(d,0)}}}finally{ie(t)}}function sa(e,t){return e[t]}function zN(e,t){return Ki(e,t)}function BN(e,t){return yv(e,t)}function rd(e,t){return hd(e,t)}function WN(e,t,n,r,i,o){let s=t.consts,a=jr(s,i),l=oo(t,e,2,r,a);return dv(t,n,l,jr(s,o)),l.attrs!==null&&Wc(l,l.attrs,!1),l.mergedAttrs!==null&&Wc(l,l.mergedAttrs,!0),t.queries!==null&&t.queries.elementStart(t,l),l}function C(e,t,n,r){let i=de(),o=Rt(),s=at+e,a=i[st],l=o.firstCreatePass?WN(s,o,i,t,n,r):o.data[s],u=qN(o,i,l,a,t,e);i[s]=u;let c=ry(l);return Hr(l,!0),nv(a,u,l),!MN(l)&&bd()&&Rd(o,i,u,l),WA()===0&&Jn(u,i),qA(),c&&(lv(o,i,l),av(o,l,i)),r!==null&&uv(i,l),C}function D(){let e=$t();hy()?YA():(e=e.parent,Hr(e,!1));let t=e;HA(t)&&$A(),VA();let n=Rt();return n.firstCreatePass&&(xd(n,e),ny(e)&&n.queries.elementEnd(e)),t.classesWithoutHost!=null&&uM(t)&&Ig(n,t,de(),t.classesWithoutHost,!0),t.stylesWithoutHost!=null&&cM(t)&&Ig(n,t,de(),t.stylesWithoutHost,!1),D}function Z(e,t,n,r){return C(e,t,n,r),D(),Z}var qN=(e,t,n,r,i,o)=>(Sd(!0),Zy(r,i,oM()));var aa="en-US";var VN=aa;function UN(e){typeof e=="string"&&(VN=e.toLowerCase().replace(/_/g,"-"))}function te(e=1){return rM(e)}function qd(e,t,n){TN(e,t,n)}function Ea(e){let t=de(),n=Rt(),r=gy();gd(r+1);let i=Bd(n,r);if(e.dirty&&jA(t)===((i.metadata.flags&2)===2)){if(i.matches===null)e.reset([]);else{let o=kN(t,r);e.reset(o,MM),e.notifyOnChanges()}return!0}return!1}function Da(){return EN(de(),gy())}function Mv(e,t,n,r){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=r}function R(e,t=""){let n=de(),r=Rt(),i=e+at,o=r.firstCreatePass?oo(r,i,1,t,null):r.data[i],s=HN(r,n,o,t,e);n[i]=s,bd()&&Rd(r,n,s,o),Hr(o,!1)}var HN=(e,t,n,r,i)=>(Sd(!0),$M(t[st],r));function ge(e){return nr("",e,""),ge}function nr(e,t,n){let r=de(),i=LN(r,e,t,n);return i!==tr&&gv(r,$r(),i),nr}function Jr(e,t,n,r,i){let o=de(),s=jN(o,e,t,n,r,i);return s!==tr&&gv(o,$r(),s),Jr}var Ov={};function Vd(e){let t=Rt(),n=de(),r=e+at,i=oo(t,r,128,null,null);return Hr(i,!1),Mv(t,n,r,Ov),Vd}function Nv(e){Kr("NgLet");let t=Rt(),n=de(),r=$r();return Mv(t,n,r,e),e}function Rv(e){let t=ZA(),n=LA(t,at+e);if(n===Ov)throw new L(314,!1);return n}var $N=(()=>{class e{constructor(n){this._injector=n,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(n){if(!n.standalone)return null;if(!this.cachedInjectors.has(n)){let r=Kg(!1,n.type),i=r.length>0?Wd([r],this._injector,`Standalone[${n.type.name}]`):null;this.cachedInjectors.set(n,i)}return this.cachedInjectors.get(n)}ngOnDestroy(){try{for(let n of this.cachedInjectors.values())n!==null&&n.destroy()}finally{this.cachedInjectors.clear()}}static{this.\u0275prov=F({token:e,providedIn:"environment",factory:()=>new e(ee(vt))})}}return e})();function he(e){Kr("NgStandalone"),e.getStandaloneInjector=t=>t.get($N).getOrCreateStandaloneInjector(e)}var Ta=(()=>{class e{log(n){console.log(n)}warn(n){console.warn(n)}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=F({token:e,factory:e.\u0275fac,providedIn:"platform"})}}return e})();var Pv=new $("");function so(e){return!!e&&typeof e.then=="function"}function Lv(e){return!!e&&typeof e.subscribe=="function"}var jv=new $(""),Fv=(()=>{class e{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((n,r)=>{this.resolve=n,this.reject=r}),this.appInits=T(jv,{optional:!0})??[]}runInitializers(){if(this.initialized)return;let n=[];for(let i of this.appInits){let o=i();if(so(o))n.push(o);else if(Lv(o)){let s=new Promise((a,l)=>{o.subscribe({complete:a,error:l})});n.push(s)}}let r=()=>{this.done=!0,this.resolve()};Promise.all(n).then(()=>{r()}).catch(i=>{this.reject(i)}),n.length===0&&r(),this.initialized=!0}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=F({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),Ud=new $("");function GN(){Cm(()=>{throw new L(600,!1)})}function YN(e){return e.isBoundToModule}var ZN=10;function QN(e,t,n){try{let r=n();return so(r)?r.catch(i=>{throw t.runOutsideAngular(()=>e.handleError(i)),i}):r}catch(r){throw t.runOutsideAngular(()=>e.handleError(r)),r}}var rr=(()=>{class e{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=T(kM),this.afterRenderManager=T(PN),this.zonelessEnabled=T(Ca),this.dirtyFlags=0,this.deferredDirtyFlags=0,this.externalTestViews=new Set,this.beforeRender=new Ye,this.afterTick=new Ye,this.componentTypes=[],this.components=[],this.isStable=T(Gr).hasPendingTasks.pipe(X(n=>!n)),this._injector=T(vt)}get allViews(){return[...this.externalTestViews.keys(),...this._views]}get destroyed(){return this._destroyed}whenStable(){let n;return new Promise(r=>{n=this.isStable.subscribe({next:i=>{i&&r()}})}).finally(()=>{n.unsubscribe()})}get injector(){return this._injector}bootstrap(n,r){let i=n instanceof na;if(!this._injector.get(Fv).done){let d=!i&&Gg(n),f=!1;throw new L(405,f)}let s;i?s=n:s=this._injector.get(Br).resolveComponentFactory(n),this.componentTypes.push(s.componentType);let a=YN(s)?void 0:this._injector.get(Tn),l=r||s.selector,u=s.create(Kn.NULL,[],l,a),c=u.location.nativeElement,p=u.injector.get(Pv,null);return p?.registerApplication(c),u.onDestroy(()=>{this.detachView(u.hostView),Ws(this.components,u),p?.unregisterApplication(c)}),this._loadComponent(u),u}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick()}_tick(){if(this._runningTick)throw new L(101,!1);let n=ie(null);try{this._runningTick=!0,this.synchronize()}catch(r){this.internalErrorHandler(r)}finally{this._runningTick=!1,ie(n),this.afterTick.next()}}synchronize(){let n=null;this._injector.destroyed||(n=this._injector.get(Wr,null,{optional:!0})),this.dirtyFlags|=this.deferredDirtyFlags,this.deferredDirtyFlags=0;let r=0;for(;this.dirtyFlags!==0&&r++<ZN;)this.synchronizeOnce(n)}synchronizeOnce(n){if(this.dirtyFlags|=this.deferredDirtyFlags,this.deferredDirtyFlags=0,this.dirtyFlags&7){let r=!!(this.dirtyFlags&1);this.dirtyFlags&=-8,this.dirtyFlags|=8,this.beforeRender.next(r);for(let{_lView:i,notifyErrorHandler:o}of this._views)KN(i,o,r,this.zonelessEnabled);if(this.dirtyFlags&=-5,this.syncDirtyFlagsWithViews(),this.dirtyFlags&7)return}else n?.begin?.(),n?.end?.();this.dirtyFlags&8&&(this.dirtyFlags&=-9,this.afterRenderManager.execute()),this.syncDirtyFlagsWithViews()}syncDirtyFlagsWithViews(){if(this.allViews.some(({_lView:n})=>ha(n))){this.dirtyFlags|=2;return}else this.dirtyFlags&=-8}attachView(n){let r=n;this._views.push(r),r.attachToAppRef(this)}detachView(n){let r=n;Ws(this._views,r),r.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n);let r=this._injector.get(Ud,[]);[...this._bootstrapListeners,...r].forEach(i=>i(n))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(n=>n()),this._views.slice().forEach(n=>n.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(n){return this._destroyListeners.push(n),()=>Ws(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new L(406,!1);let n=this._injector;n.destroy&&!n.destroyed&&n.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=F({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();function Ws(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}function KN(e,t,n,r){if(!n&&!ha(e))return;xv(e,t,n&&!r?0:1)}var id=class{constructor(t,n){this.ngModuleFactory=t,this.componentFactories=n}},Hd=(()=>{class e{compileModuleSync(n){return new Qc(n)}compileModuleAsync(n){return Promise.resolve(this.compileModuleSync(n))}compileModuleAndAllComponentsSync(n){let r=this.compileModuleSync(n),i=Yg(n),o=Yy(i.declarations).reduce((s,a)=>{let l=$n(a);return l&&s.push(new to(l)),s},[]);return new id(r,o)}compileModuleAndAllComponentsAsync(n){return Promise.resolve(this.compileModuleAndAllComponentsSync(n))}clearCache(){}clearCacheFor(n){}getModuleId(n){}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=F({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var JN=(()=>{class e{constructor(){this.zone=T(Se),this.changeDetectionScheduler=T(zr),this.applicationRef=T(rr)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.changeDetectionScheduler.runningTick||this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=F({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),XN=new $("",{factory:()=>!1});function zv({ngZoneFactory:e,ignoreChangesOutsideZone:t,scheduleInRootZone:n}){return e??=()=>new Se(be(O({},Wv()),{scheduleInRootZone:n})),[{provide:Se,useFactory:e},{provide:Rr,multi:!0,useFactory:()=>{let r=T(JN,{optional:!0});return()=>r.initialize()}},{provide:Rr,multi:!0,useFactory:()=>{let r=T(eR);return()=>{r.initialize()}}},t===!0?{provide:Tv,useValue:!0}:[],{provide:_v,useValue:n??Py}]}function Bv(e){let t=e?.ignoreChangesOutsideZone,n=e?.scheduleInRootZone,r=zv({ngZoneFactory:()=>{let i=Wv(e);return i.scheduleInRootZone=n,i.shouldCoalesceEventChangeDetection&&Kr("NgZone_CoalesceEvent"),new Se(i)},ignoreChangesOutsideZone:t,scheduleInRootZone:n});return ca([{provide:XN,useValue:!0},{provide:Ca,useValue:!1},r])}function Wv(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:e?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:e?.runCoalescing??!1}}var eR=(()=>{class e{constructor(){this.subscription=new De,this.initialized=!1,this.zone=T(Se),this.pendingTasks=T(Gr)}initialize(){if(this.initialized)return;this.initialized=!0;let n=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(n=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{Se.assertNotInAngularZone(),queueMicrotask(()=>{n!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(n),n=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{Se.assertInAngularZone(),n??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=F({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var tR=(()=>{class e{constructor(){this.appRef=T(rr),this.taskService=T(Gr),this.ngZone=T(Se),this.zonelessEnabled=T(Ca),this.disableScheduling=T(Tv,{optional:!0})??!1,this.zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run,this.schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}],this.subscriptions=new De,this.angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(Js):null,this.scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(T(_v,{optional:!0})??!1),this.cancelScheduledCallback=null,this.useMicrotaskScheduler=!1,this.runningTick=!1,this.pendingRenderTaskId=null,this.subscriptions.add(this.appRef.afterTick.subscribe(()=>{this.runningTick||this.cleanup()})),this.subscriptions.add(this.ngZone.onUnstable.subscribe(()=>{this.runningTick||this.cleanup()})),this.disableScheduling||=!this.zonelessEnabled&&(this.ngZone instanceof Mc||!this.zoneIsDefined)}notify(n){if(!this.zonelessEnabled&&n===5)return;switch(n){case 0:{this.appRef.dirtyFlags|=2;break}case 3:case 2:case 4:case 5:case 1:{this.appRef.dirtyFlags|=4;break}case 7:{this.appRef.deferredDirtyFlags|=8;break}case 9:case 8:case 6:case 10:default:this.appRef.dirtyFlags|=8}if(!this.shouldScheduleTick())return;let r=this.useMicrotaskScheduler?gg:jy;this.pendingRenderTaskId=this.taskService.add(),this.scheduleInRootZone?this.cancelScheduledCallback=Zone.root.run(()=>r(()=>this.tick())):this.cancelScheduledCallback=this.ngZone.runOutsideAngular(()=>r(()=>this.tick()))}shouldScheduleTick(){return!(this.disableScheduling||this.pendingRenderTaskId!==null||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&Zone.current.get(Js+this.angularZoneId))}tick(){if(this.runningTick||this.appRef.destroyed)return;!this.zonelessEnabled&&this.appRef.dirtyFlags&7&&(this.appRef.dirtyFlags|=1);let n=this.taskService.add();try{this.ngZone.run(()=>{this.runningTick=!0,this.appRef._tick()},void 0,this.schedulerTickApplyArgs)}catch(r){throw this.taskService.remove(n),r}finally{this.cleanup()}this.useMicrotaskScheduler=!0,gg(()=>{this.useMicrotaskScheduler=!1,this.taskService.remove(n)})}ngOnDestroy(){this.subscriptions.unsubscribe(),this.cleanup()}cleanup(){if(this.runningTick=!1,this.cancelScheduledCallback?.(),this.cancelScheduledCallback=null,this.pendingRenderTaskId!==null){let n=this.pendingRenderTaskId;this.pendingRenderTaskId=null,this.taskService.remove(n)}}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=F({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();function nR(){return typeof $localize<"u"&&$localize.locale||aa}var $d=new $("",{providedIn:"root",factory:()=>T($d,Y.Optional|Y.SkipSelf)||nR()});var od=new $("");function Ls(e){return!e.moduleRef}function rR(e){let t=Ls(e)?e.r3Injector:e.moduleRef.injector,n=t.get(Se);return n.run(()=>{Ls(e)?e.r3Injector.resolveInjectorInitializers():e.moduleRef.resolveInjectorInitializers();let r=t.get(nn,null),i;if(n.runOutsideAngular(()=>{i=n.onError.subscribe({next:o=>{r.handleError(o)}})}),Ls(e)){let o=()=>t.destroy(),s=e.platformInjector.get(od);s.add(o),t.onDestroy(()=>{i.unsubscribe(),s.delete(o)})}else{let o=()=>e.moduleRef.destroy(),s=e.platformInjector.get(od);s.add(o),e.moduleRef.onDestroy(()=>{Ws(e.allPlatformModules,e.moduleRef),i.unsubscribe(),s.delete(o)})}return QN(r,n,()=>{let o=t.get(Fv);return o.runInitializers(),o.donePromise.then(()=>{let s=t.get($d,aa);if(UN(s||aa),Ls(e)){let a=t.get(rr);return e.rootComponent!==void 0&&a.bootstrap(e.rootComponent),a}else return iR(e.moduleRef,e.allPlatformModules),e.moduleRef})})})}function iR(e,t){let n=e.injector.get(rr);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(r=>n.bootstrap(r));else if(e.instance.ngDoBootstrap)e.instance.ngDoBootstrap(n);else throw new L(-403,!1);t.push(e)}var qs=null,qv=new $("");function oR(e=[],t){return Kn.create({name:t,providers:[{provide:da,useValue:"platform"},{provide:od,useValue:new Set([()=>qs=null])},...e]})}function sR(e=[]){if(qs)return qs;let t=oR(e);return t.get(qv,!1)||(qs=t),GN(),aR(t),t}function aR(e){e.get(_d,null)?.forEach(n=>n())}var ao=(()=>{class e{static{this.__NG_ELEMENT_ID__=lR}}return e})();function lR(e){return uR($t(),de(),(e&16)===16)}function uR(e,t,n){if(fa(e)&&!n){let r=Ur(e.index,t);return new Xn(r,r)}else if(e.type&175){let r=t[Ot];return new Xn(r,t)}return null}function Vv(e){let{rootComponent:t,appProviders:n,platformProviders:r,platformRef:i}=e;try{let o=i?.injector??sR(r);if(o.get(qv,!1)===!0&&!e.platformRef)throw new L(401,!1);let s=[zv({}),{provide:zr,useExisting:tR},...n||[]],a=new ia({providers:s,parent:o,debugName:"",runEnvironmentInitializers:!1});return rR({r3Injector:a.injector,platformInjector:o,rootComponent:t})}catch(o){return Promise.reject(o)}}var Qv=null;function Xr(){return Qv}function Kv(e){Qv??=e}var _a=class{};var bt=new $(""),Jv=(()=>{class e{historyGo(n){throw new Error("")}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=F({token:e,factory:()=>T(fR),providedIn:"platform"})}}return e})();var fR=(()=>{class e extends Jv{constructor(){super(),this._doc=T(bt),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return Xr().getBaseHref(this._doc)}onPopState(n){let r=Xr().getGlobalEventTarget(this._doc,"window");return r.addEventListener("popstate",n,!1),()=>r.removeEventListener("popstate",n)}onHashChange(n){let r=Xr().getGlobalEventTarget(this._doc,"window");return r.addEventListener("hashchange",n,!1),()=>r.removeEventListener("hashchange",n)}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(n){this._location.pathname=n}pushState(n,r,i){this._history.pushState(n,r,i)}replaceState(n,r,i){this._history.replaceState(n,r,i)}forward(){this._history.forward()}back(){this._history.back()}historyGo(n=0){this._history.go(n)}getState(){return this._history.state}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=F({token:e,factory:()=>new e,providedIn:"platform"})}}return e})();function Xv(e,t){if(e.length==0)return t;if(t.length==0)return e;let n=0;return e.endsWith("/")&&n++,t.startsWith("/")&&n++,n==2?e+t.substring(1):n==1?e+t:e+"/"+t}function Uv(e){let t=e.match(/#|\?|$/),n=t&&t.index||e.length,r=n-(e[n-1]==="/"?1:0);return e.slice(0,r)+e.slice(n)}function ir(e){return e&&e[0]!=="?"?"?"+e:e}var ka=(()=>{class e{historyGo(n){throw new Error("")}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=F({token:e,factory:()=>T(eb),providedIn:"root"})}}return e})(),hR=new $(""),eb=(()=>{class e extends ka{constructor(n,r){super(),this._platformLocation=n,this._removeListenerFns=[],this._baseHref=r??this._platformLocation.getBaseHrefFromDOM()??T(bt).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(n){this._removeListenerFns.push(this._platformLocation.onPopState(n),this._platformLocation.onHashChange(n))}getBaseHref(){return this._baseHref}prepareExternalUrl(n){return Xv(this._baseHref,n)}path(n=!1){let r=this._platformLocation.pathname+ir(this._platformLocation.search),i=this._platformLocation.hash;return i&&n?`${r}${i}`:r}pushState(n,r,i,o){let s=this.prepareExternalUrl(i+ir(o));this._platformLocation.pushState(n,r,s)}replaceState(n,r,i,o){let s=this.prepareExternalUrl(i+ir(o));this._platformLocation.replaceState(n,r,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(n=0){this._platformLocation.historyGo?.(n)}static{this.\u0275fac=function(r){return new(r||e)(ee(Jv),ee(hR,8))}}static{this.\u0275prov=F({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var lo=(()=>{class e{constructor(n){this._subject=new We,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=n;let r=this._locationStrategy.getBaseHref();this._basePath=yR(Uv(Hv(r))),this._locationStrategy.onPopState(i=>{this._subject.emit({url:this.path(!0),pop:!0,state:i.state,type:i.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(n=!1){return this.normalize(this._locationStrategy.path(n))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(n,r=""){return this.path()==this.normalize(n+ir(r))}normalize(n){return e.stripTrailingSlash(gR(this._basePath,Hv(n)))}prepareExternalUrl(n){return n&&n[0]!=="/"&&(n="/"+n),this._locationStrategy.prepareExternalUrl(n)}go(n,r="",i=null){this._locationStrategy.pushState(i,"",n,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+ir(r)),i)}replaceState(n,r="",i=null){this._locationStrategy.replaceState(i,"",n,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+ir(r)),i)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(n=0){this._locationStrategy.historyGo?.(n)}onUrlChange(n){return this._urlChangeListeners.push(n),this._urlChangeSubscription??=this.subscribe(r=>{this._notifyUrlChangeListeners(r.url,r.state)}),()=>{let r=this._urlChangeListeners.indexOf(n);this._urlChangeListeners.splice(r,1),this._urlChangeListeners.length===0&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(n="",r){this._urlChangeListeners.forEach(i=>i(n,r))}subscribe(n,r,i){return this._subject.subscribe({next:n,error:r,complete:i})}static{this.normalizeQueryParams=ir}static{this.joinWithSlash=Xv}static{this.stripTrailingSlash=Uv}static{this.\u0275fac=function(r){return new(r||e)(ee(ka))}}static{this.\u0275prov=F({token:e,factory:()=>mR(),providedIn:"root"})}}return e})();function mR(){return new lo(ee(ka))}function gR(e,t){if(!e||!t.startsWith(e))return t;let n=t.substring(e.length);return n===""||["/",";","?","#"].includes(n[0])?n:t}function Hv(e){return e.replace(/\/index.html$/,"")}function yR(e){if(new RegExp("^(https?:)?//").test(e)){let[,n]=e.split(/\/\/[^\/]+/);return n}return e}function tb(e,t){t=encodeURIComponent(t);for(let n of e.split(";")){let r=n.indexOf("="),[i,o]=r==-1?[n,""]:[n.slice(0,r),n.slice(r+1)];if(i.trim()===t)return decodeURIComponent(o)}return null}var nb="browser",vR="server";function Gd(e){return e===vR}var Ia=class{};var Qd=class extends _a{constructor(){super(...arguments),this.supportsDOMEvents=!0}},Kd=class e extends Qd{static makeCurrent(){Kv(new e)}onAndCancel(t,n,r){return t.addEventListener(n,r),()=>{t.removeEventListener(n,r)}}dispatchEvent(t,n){t.dispatchEvent(n)}remove(t){t.remove()}createElement(t,n){return n=n||this.getDefaultDocument(),n.createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,n){return n==="window"?window:n==="document"?t:n==="body"?t.body:null}getBaseHref(t){let n=SR();return n==null?null:xR(n)}resetBaseElement(){uo=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return tb(document.cookie,t)}},uo=null;function SR(){return uo=uo||document.querySelector("base"),uo?uo.getAttribute("href"):null}function xR(e){return new URL(e,document.baseURI).pathname}var wR=(()=>{class e{build(){return new XMLHttpRequest}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=F({token:e,factory:e.\u0275fac})}}return e})(),Jd=new $(""),sb=(()=>{class e{constructor(n,r){this._zone=r,this._eventNameToPlugin=new Map,n.forEach(i=>{i.manager=this}),this._plugins=n.slice().reverse()}addEventListener(n,r,i){return this._findPluginFor(r).addEventListener(n,r,i)}getZone(){return this._zone}_findPluginFor(n){let r=this._eventNameToPlugin.get(n);if(r)return r;if(r=this._plugins.find(o=>o.supports(n)),!r)throw new L(5101,!1);return this._eventNameToPlugin.set(n,r),r}static{this.\u0275fac=function(r){return new(r||e)(ee(Jd),ee(Se))}}static{this.\u0275prov=F({token:e,factory:e.\u0275fac})}}return e})(),Aa=class{constructor(t){this._doc=t}},Yd="ng-app-id",ab=(()=>{class e{constructor(n,r,i,o={}){this.doc=n,this.appId=r,this.nonce=i,this.platformId=o,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=Gd(o),this.resetHostNodes()}addStyles(n){for(let r of n)this.changeUsageCount(r,1)===1&&this.onStyleAdded(r)}removeStyles(n){for(let r of n)this.changeUsageCount(r,-1)<=0&&this.onStyleRemoved(r)}ngOnDestroy(){let n=this.styleNodesInDOM;n&&(n.forEach(r=>r.remove()),n.clear());for(let r of this.getAllStyles())this.onStyleRemoved(r);this.resetHostNodes()}addHost(n){this.hostNodes.add(n);for(let r of this.getAllStyles())this.addStyleToHost(n,r)}removeHost(n){this.hostNodes.delete(n)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(n){for(let r of this.hostNodes)this.addStyleToHost(r,n)}onStyleRemoved(n){let r=this.styleRef;r.get(n)?.elements?.forEach(i=>i.remove()),r.delete(n)}collectServerRenderedStyles(){let n=this.doc.head?.querySelectorAll(`style[${Yd}="${this.appId}"]`);if(n?.length){let r=new Map;return n.forEach(i=>{i.textContent!=null&&r.set(i.textContent,i)}),r}return null}changeUsageCount(n,r){let i=this.styleRef;if(i.has(n)){let o=i.get(n);return o.usage+=r,o.usage}return i.set(n,{usage:r,elements:[]}),r}getStyleElement(n,r){let i=this.styleNodesInDOM,o=i?.get(r);if(o?.parentNode===n)return i.delete(r),o.removeAttribute(Yd),o;{let s=this.doc.createElement("style");return this.nonce&&s.setAttribute("nonce",this.nonce),s.textContent=r,this.platformIsServer&&s.setAttribute(Yd,this.appId),n.appendChild(s),s}}addStyleToHost(n,r){let i=this.getStyleElement(n,r),o=this.styleRef,s=o.get(r)?.elements;s?s.push(i):o.set(r,{elements:[i],usage:1})}resetHostNodes(){let n=this.hostNodes;n.clear(),n.add(this.doc.head)}static{this.\u0275fac=function(r){return new(r||e)(ee(bt),ee(Td),ee(Id,8),ee(Zr))}}static{this.\u0275prov=F({token:e,factory:e.\u0275fac})}}return e})(),Zd={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"},ep=/%COMP%/g,lb="%COMP%",CR=`_nghost-${lb}`,ER=`_ngcontent-${lb}`,DR=!0,TR=new $("",{providedIn:"root",factory:()=>DR});function _R(e){return ER.replace(ep,e)}function IR(e){return CR.replace(ep,e)}function ub(e,t){return t.map(n=>n.replace(ep,e))}var rb=(()=>{class e{constructor(n,r,i,o,s,a,l,u=null){this.eventManager=n,this.sharedStylesHost=r,this.appId=i,this.removeStylesOnCompDestroy=o,this.doc=s,this.platformId=a,this.ngZone=l,this.nonce=u,this.rendererByCompId=new Map,this.platformIsServer=Gd(a),this.defaultRenderer=new co(n,s,l,this.platformIsServer)}createRenderer(n,r){if(!n||!r)return this.defaultRenderer;this.platformIsServer&&r.encapsulation===Vt.ShadowDom&&(r=be(O({},r),{encapsulation:Vt.Emulated}));let i=this.getOrCreateRenderer(n,r);return i instanceof Ma?i.applyToHost(n):i instanceof po&&i.applyStyles(),i}getOrCreateRenderer(n,r){let i=this.rendererByCompId,o=i.get(r.id);if(!o){let s=this.doc,a=this.ngZone,l=this.eventManager,u=this.sharedStylesHost,c=this.removeStylesOnCompDestroy,p=this.platformIsServer;switch(r.encapsulation){case Vt.Emulated:o=new Ma(l,u,r,this.appId,c,s,a,p);break;case Vt.ShadowDom:return new Xd(l,u,n,r,s,a,this.nonce,p);default:o=new po(l,u,r,c,s,a,p);break}i.set(r.id,o)}return o}ngOnDestroy(){this.rendererByCompId.clear()}static{this.\u0275fac=function(r){return new(r||e)(ee(sb),ee(ab),ee(Td),ee(TR),ee(bt),ee(Zr),ee(Se),ee(Id))}}static{this.\u0275prov=F({token:e,factory:e.\u0275fac})}}return e})(),co=class{constructor(t,n,r,i){this.eventManager=t,this.doc=n,this.ngZone=r,this.platformIsServer=i,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(t,n){return n?this.doc.createElementNS(Zd[n]||n,t):this.doc.createElement(t)}createComment(t){return this.doc.createComment(t)}createText(t){return this.doc.createTextNode(t)}appendChild(t,n){(ib(t)?t.content:t).appendChild(n)}insertBefore(t,n,r){t&&(ib(t)?t.content:t).insertBefore(n,r)}removeChild(t,n){n.remove()}selectRootElement(t,n){let r=typeof t=="string"?this.doc.querySelector(t):t;if(!r)throw new L(-5104,!1);return n||(r.textContent=""),r}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,n,r,i){if(i){n=i+":"+n;let o=Zd[i];o?t.setAttributeNS(o,n,r):t.setAttribute(n,r)}else t.setAttribute(n,r)}removeAttribute(t,n,r){if(r){let i=Zd[r];i?t.removeAttributeNS(i,n):t.removeAttribute(`${r}:${n}`)}else t.removeAttribute(n)}addClass(t,n){t.classList.add(n)}removeClass(t,n){t.classList.remove(n)}setStyle(t,n,r,i){i&(er.DashCase|er.Important)?t.style.setProperty(n,r,i&er.Important?"important":""):t.style[n]=r}removeStyle(t,n,r){r&er.DashCase?t.style.removeProperty(n):t.style[n]=""}setProperty(t,n,r){t!=null&&(t[n]=r)}setValue(t,n){t.nodeValue=n}listen(t,n,r){if(typeof t=="string"&&(t=Xr().getGlobalEventTarget(this.doc,t),!t))throw new Error(`Unsupported event target ${t} for event ${n}`);return this.eventManager.addEventListener(t,n,this.decoratePreventDefault(r))}decoratePreventDefault(t){return n=>{if(n==="__ngUnwrap__")return t;(this.platformIsServer?this.ngZone.runGuarded(()=>t(n)):t(n))===!1&&n.preventDefault()}}};function ib(e){return e.tagName==="TEMPLATE"&&e.content!==void 0}var Xd=class extends co{constructor(t,n,r,i,o,s,a,l){super(t,o,s,l),this.sharedStylesHost=n,this.hostEl=r,this.shadowRoot=r.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let u=ub(i.id,i.styles);for(let c of u){let p=document.createElement("style");a&&p.setAttribute("nonce",a),p.textContent=c,this.shadowRoot.appendChild(p)}}nodeOrShadowRoot(t){return t===this.hostEl?this.shadowRoot:t}appendChild(t,n){return super.appendChild(this.nodeOrShadowRoot(t),n)}insertBefore(t,n,r){return super.insertBefore(this.nodeOrShadowRoot(t),n,r)}removeChild(t,n){return super.removeChild(null,n)}parentNode(t){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(t)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},po=class extends co{constructor(t,n,r,i,o,s,a,l){super(t,o,s,a),this.sharedStylesHost=n,this.removeStylesOnCompDestroy=i,this.styles=l?ub(l,r.styles):r.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}},Ma=class extends po{constructor(t,n,r,i,o,s,a,l){let u=i+"-"+r.id;super(t,n,r,o,s,a,l,u),this.contentAttr=_R(u),this.hostAttr=IR(u)}applyToHost(t){this.applyStyles(),this.setAttribute(t,this.hostAttr,"")}createElement(t,n){let r=super.createElement(t,n);return super.setAttribute(r,this.contentAttr,""),r}},kR=(()=>{class e extends Aa{constructor(n){super(n)}supports(n){return!0}addEventListener(n,r,i){return n.addEventListener(r,i,!1),()=>this.removeEventListener(n,r,i)}removeEventListener(n,r,i){return n.removeEventListener(r,i)}static{this.\u0275fac=function(r){return new(r||e)(ee(bt))}}static{this.\u0275prov=F({token:e,factory:e.\u0275fac})}}return e})(),ob=["alt","control","meta","shift"],AR={"\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"},MR={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey},OR=(()=>{class e extends Aa{constructor(n){super(n)}supports(n){return e.parseEventName(n)!=null}addEventListener(n,r,i){let o=e.parseEventName(r),s=e.eventCallback(o.fullKey,i,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Xr().onAndCancel(n,o.domEventName,s))}static parseEventName(n){let r=n.toLowerCase().split("."),i=r.shift();if(r.length===0||!(i==="keydown"||i==="keyup"))return null;let o=e._normalizeKey(r.pop()),s="",a=r.indexOf("code");if(a>-1&&(r.splice(a,1),s="code."),ob.forEach(u=>{let c=r.indexOf(u);c>-1&&(r.splice(c,1),s+=u+".")}),s+=o,r.length!=0||o.length===0)return null;let l={};return l.domEventName=i,l.fullKey=s,l}static matchEventFullKeyCode(n,r){let i=AR[n.key]||n.key,o="";return r.indexOf("code.")>-1&&(i=n.code,o="code."),i==null||!i?!1:(i=i.toLowerCase(),i===" "?i="space":i==="."&&(i="dot"),ob.forEach(s=>{if(s!==i){let a=MR[s];a(n)&&(o+=s+".")}}),o+=i,o===r)}static eventCallback(n,r,i){return o=>{e.matchEventFullKeyCode(o,n)&&i.runGuarded(()=>r(o))}}static _normalizeKey(n){return n==="esc"?"escape":n}static{this.\u0275fac=function(r){return new(r||e)(ee(bt))}}static{this.\u0275prov=F({token:e,factory:e.\u0275fac})}}return e})();function cb(e,t,n){return Vv(O({rootComponent:e,platformRef:n?.platformRef},NR(t)))}function NR(e){return{appProviders:[...FR,...e?.providers??[]],platformProviders:jR}}function RR(){Kd.makeCurrent()}function PR(){return new nn}function LR(){return Uy(document),document}var jR=[{provide:Zr,useValue:nb},{provide:_d,useValue:RR,multi:!0},{provide:bt,useFactory:LR,deps:[]}];var FR=[{provide:da,useValue:"root"},{provide:nn,useFactory:PR,deps:[]},{provide:Jd,useClass:kR,multi:!0,deps:[bt,Se,Zr]},{provide:Jd,useClass:OR,multi:!0,deps:[bt]},rb,ab,sb,{provide:Wr,useExisting:rb},{provide:Ia,useClass:wR,deps:[]},[]];var db=(()=>{class e{constructor(n){this._doc=n}getTitle(){return this._doc.title}setTitle(n){this._doc.title=n||""}static{this.\u0275fac=function(r){return new(r||e)(ee(bt))}}static{this.\u0275prov=F({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var G="primary",ko=Symbol("RouteTitle"),op=class{constructor(t){this.params=t||{}}has(t){return Object.prototype.hasOwnProperty.call(this.params,t)}get(t){if(this.has(t)){let n=this.params[t];return Array.isArray(n)?n[0]:n}return null}getAll(t){if(this.has(t)){let n=this.params[t];return Array.isArray(n)?n:[n]}return[]}get keys(){return Object.keys(this.params)}};function oi(e){return new op(e)}function BR(e,t,n){let r=n.path.split("/");if(r.length>e.length||n.pathMatch==="full"&&(t.hasChildren()||r.length<e.length))return null;let i={};for(let o=0;o<r.length;o++){let s=r[o],a=e[o];if(s[0]===":")i[s.substring(1)]=a;else if(s!==a.path)return null}return{consumed:e.slice(0,r.length),posParams:i}}function WR(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;++n)if(!Gt(e[n],t[n]))return!1;return!0}function Gt(e,t){let n=e?sp(e):void 0,r=t?sp(t):void 0;if(!n||!r||n.length!=r.length)return!1;let i;for(let o=0;o<n.length;o++)if(i=n[o],!bb(e[i],t[i]))return!1;return!0}function sp(e){return[...Object.keys(e),...Object.getOwnPropertySymbols(e)]}function bb(e,t){if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;let n=[...e].sort(),r=[...t].sort();return n.every((i,o)=>r[o]===i)}else return e===t}function Sb(e){return e.length>0?e[e.length-1]:null}function kn(e){return Ku(e)?e:so(e)?ke(Promise.resolve(e)):H(e)}var qR={exact:wb,subset:Cb},xb={exact:VR,subset:UR,ignored:()=>!0};function pb(e,t,n){return qR[n.paths](e.root,t.root,n.matrixParams)&&xb[n.queryParams](e.queryParams,t.queryParams)&&!(n.fragment==="exact"&&e.fragment!==t.fragment)}function VR(e,t){return Gt(e,t)}function wb(e,t,n){if(!sr(e.segments,t.segments)||!Ra(e.segments,t.segments,n)||e.numberOfChildren!==t.numberOfChildren)return!1;for(let r in t.children)if(!e.children[r]||!wb(e.children[r],t.children[r],n))return!1;return!0}function UR(e,t){return Object.keys(t).length<=Object.keys(e).length&&Object.keys(t).every(n=>bb(e[n],t[n]))}function Cb(e,t,n){return Eb(e,t,t.segments,n)}function Eb(e,t,n,r){if(e.segments.length>n.length){let i=e.segments.slice(0,n.length);return!(!sr(i,n)||t.hasChildren()||!Ra(i,n,r))}else if(e.segments.length===n.length){if(!sr(e.segments,n)||!Ra(e.segments,n,r))return!1;for(let i in t.children)if(!e.children[i]||!Cb(e.children[i],t.children[i],r))return!1;return!0}else{let i=n.slice(0,e.segments.length),o=n.slice(e.segments.length);return!sr(e.segments,i)||!Ra(e.segments,i,r)||!e.children[G]?!1:Eb(e.children[G],t,o,r)}}function Ra(e,t,n){return t.every((r,i)=>xb[n](e[i].parameters,r.parameters))}var un=class{constructor(t=new ae([],{}),n={},r=null){this.root=t,this.queryParams=n,this.fragment=r}get queryParamMap(){return this._queryParamMap??=oi(this.queryParams),this._queryParamMap}toString(){return GR.serialize(this)}},ae=class{constructor(t,n){this.segments=t,this.children=n,this.parent=null,Object.values(n).forEach(r=>r.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Pa(this)}},or=class{constructor(t,n){this.path=t,this.parameters=n}get parameterMap(){return this._parameterMap??=oi(this.parameters),this._parameterMap}toString(){return Tb(this)}};function HR(e,t){return sr(e,t)&&e.every((n,r)=>Gt(n.parameters,t[r].parameters))}function sr(e,t){return e.length!==t.length?!1:e.every((n,r)=>n.path===t[r].path)}function $R(e,t){let n=[];return Object.entries(e.children).forEach(([r,i])=>{r===G&&(n=n.concat(t(i,r)))}),Object.entries(e.children).forEach(([r,i])=>{r!==G&&(n=n.concat(t(i,r)))}),n}var Op=(()=>{class e{static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=F({token:e,factory:()=>new bo,providedIn:"root"})}}return e})(),bo=class{parse(t){let n=new lp(t);return new un(n.parseRootSegment(),n.parseQueryParams(),n.parseFragment())}serialize(t){let n=`/${fo(t.root,!0)}`,r=QR(t.queryParams),i=typeof t.fragment=="string"?`#${YR(t.fragment)}`:"";return`${n}${r}${i}`}},GR=new bo;function Pa(e){return e.segments.map(t=>Tb(t)).join("/")}function fo(e,t){if(!e.hasChildren())return Pa(e);if(t){let n=e.children[G]?fo(e.children[G],!1):"",r=[];return Object.entries(e.children).forEach(([i,o])=>{i!==G&&r.push(`${i}:${fo(o,!1)}`)}),r.length>0?`${n}(${r.join("//")})`:n}else{let n=$R(e,(r,i)=>i===G?[fo(e.children[G],!1)]:[`${i}:${fo(r,!1)}`]);return Object.keys(e.children).length===1&&e.children[G]!=null?`${Pa(e)}/${n[0]}`:`${Pa(e)}/(${n.join("//")})`}}function Db(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Oa(e){return Db(e).replace(/%3B/gi,";")}function YR(e){return encodeURI(e)}function ap(e){return Db(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function La(e){return decodeURIComponent(e)}function fb(e){return La(e.replace(/\+/g,"%20"))}function Tb(e){return`${ap(e.path)}${ZR(e.parameters)}`}function ZR(e){return Object.entries(e).map(([t,n])=>`;${ap(t)}=${ap(n)}`).join("")}function QR(e){let t=Object.entries(e).map(([n,r])=>Array.isArray(r)?r.map(i=>`${Oa(n)}=${Oa(i)}`).join("&"):`${Oa(n)}=${Oa(r)}`).filter(n=>n);return t.length?`?${t.join("&")}`:""}var KR=/^[^\/()?;#]+/;function tp(e){let t=e.match(KR);return t?t[0]:""}var JR=/^[^\/()?;=#]+/;function XR(e){let t=e.match(JR);return t?t[0]:""}var e1=/^[^=?&#]+/;function t1(e){let t=e.match(e1);return t?t[0]:""}var n1=/^[^&#]+/;function r1(e){let t=e.match(n1);return t?t[0]:""}var lp=class{constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new ae([],{}):new ae([],this.parseChildren())}parseQueryParams(){let t={};if(this.consumeOptional("?"))do this.parseQueryParam(t);while(this.consumeOptional("&"));return t}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(this.remaining==="")return{};this.consumeOptional("/");let t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());let n={};this.peekStartsWith("/(")&&(this.capture("/"),n=this.parseParens(!0));let r={};return this.peekStartsWith("(")&&(r=this.parseParens(!1)),(t.length>0||Object.keys(n).length>0)&&(r[G]=new ae(t,n)),r}parseSegment(){let t=tp(this.remaining);if(t===""&&this.peekStartsWith(";"))throw new L(4009,!1);return this.capture(t),new or(La(t),this.parseMatrixParams())}parseMatrixParams(){let t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){let n=XR(this.remaining);if(!n)return;this.capture(n);let r="";if(this.consumeOptional("=")){let i=tp(this.remaining);i&&(r=i,this.capture(r))}t[La(n)]=La(r)}parseQueryParam(t){let n=t1(this.remaining);if(!n)return;this.capture(n);let r="";if(this.consumeOptional("=")){let s=r1(this.remaining);s&&(r=s,this.capture(r))}let i=fb(n),o=fb(r);if(t.hasOwnProperty(i)){let s=t[i];Array.isArray(s)||(s=[s],t[i]=s),s.push(o)}else t[i]=o}parseParens(t){let n={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let r=tp(this.remaining),i=this.remaining[r.length];if(i!=="/"&&i!==")"&&i!==";")throw new L(4010,!1);let o;r.indexOf(":")>-1?(o=r.slice(0,r.indexOf(":")),this.capture(o),this.capture(":")):t&&(o=G);let s=this.parseChildren();n[o]=Object.keys(s).length===1?s[G]:new ae([],s),this.consumeOptional("//")}return n}peekStartsWith(t){return this.remaining.startsWith(t)}consumeOptional(t){return this.peekStartsWith(t)?(this.remaining=this.remaining.substring(t.length),!0):!1}capture(t){if(!this.consumeOptional(t))throw new L(4011,!1)}};function _b(e){return e.segments.length>0?new ae([],{[G]:e}):e}function Ib(e){let t={};for(let[r,i]of Object.entries(e.children)){let o=Ib(i);if(r===G&&o.segments.length===0&&o.hasChildren())for(let[s,a]of Object.entries(o.children))t[s]=a;else(o.segments.length>0||o.hasChildren())&&(t[r]=o)}let n=new ae(e.segments,t);return i1(n)}function i1(e){if(e.numberOfChildren===1&&e.children[G]){let t=e.children[G];return new ae(e.segments.concat(t.segments),t.children)}return e}function So(e){return e instanceof un}function o1(e,t,n=null,r=null){let i=kb(e);return Ab(i,t,n,r)}function kb(e){let t;function n(o){let s={};for(let l of o.children){let u=n(l);s[l.outlet]=u}let a=new ae(o.url,s);return o===e&&(t=a),a}let r=n(e.root),i=_b(r);return t??i}function Ab(e,t,n,r){let i=e;for(;i.parent;)i=i.parent;if(t.length===0)return np(i,i,i,n,r);let o=s1(t);if(o.toRoot())return np(i,i,new ae([],{}),n,r);let s=a1(o,i,e),a=s.processChildren?go(s.segmentGroup,s.index,o.commands):Ob(s.segmentGroup,s.index,o.commands);return np(i,s.segmentGroup,a,n,r)}function ja(e){return typeof e=="object"&&e!=null&&!e.outlets&&!e.segmentPath}function xo(e){return typeof e=="object"&&e!=null&&e.outlets}function np(e,t,n,r,i){let o={};r&&Object.entries(r).forEach(([l,u])=>{o[l]=Array.isArray(u)?u.map(c=>`${c}`):`${u}`});let s;e===t?s=n:s=Mb(e,t,n);let a=_b(Ib(s));return new un(a,o,i)}function Mb(e,t,n){let r={};return Object.entries(e.children).forEach(([i,o])=>{o===t?r[i]=n:r[i]=Mb(o,t,n)}),new ae(e.segments,r)}var Fa=class{constructor(t,n,r){if(this.isAbsolute=t,this.numberOfDoubleDots=n,this.commands=r,t&&r.length>0&&ja(r[0]))throw new L(4003,!1);let i=r.find(xo);if(i&&i!==Sb(r))throw new L(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function s1(e){if(typeof e[0]=="string"&&e.length===1&&e[0]==="/")return new Fa(!0,0,e);let t=0,n=!1,r=e.reduce((i,o,s)=>{if(typeof o=="object"&&o!=null){if(o.outlets){let a={};return Object.entries(o.outlets).forEach(([l,u])=>{a[l]=typeof u=="string"?u.split("/"):u}),[...i,{outlets:a}]}if(o.segmentPath)return[...i,o.segmentPath]}return typeof o!="string"?[...i,o]:s===0?(o.split("/").forEach((a,l)=>{l==0&&a==="."||(l==0&&a===""?n=!0:a===".."?t++:a!=""&&i.push(a))}),i):[...i,o]},[]);return new Fa(n,t,r)}var ni=class{constructor(t,n,r){this.segmentGroup=t,this.processChildren=n,this.index=r}};function a1(e,t,n){if(e.isAbsolute)return new ni(t,!0,0);if(!n)return new ni(t,!1,NaN);if(n.parent===null)return new ni(n,!0,0);let r=ja(e.commands[0])?0:1,i=n.segments.length-1+r;return l1(n,i,e.numberOfDoubleDots)}function l1(e,t,n){let r=e,i=t,o=n;for(;o>i;){if(o-=i,r=r.parent,!r)throw new L(4005,!1);i=r.segments.length}return new ni(r,!1,i-o)}function u1(e){return xo(e[0])?e[0].outlets:{[G]:e}}function Ob(e,t,n){if(e??=new ae([],{}),e.segments.length===0&&e.hasChildren())return go(e,t,n);let r=c1(e,t,n),i=n.slice(r.commandIndex);if(r.match&&r.pathIndex<e.segments.length){let o=new ae(e.segments.slice(0,r.pathIndex),{});return o.children[G]=new ae(e.segments.slice(r.pathIndex),e.children),go(o,0,i)}else return r.match&&i.length===0?new ae(e.segments,{}):r.match&&!e.hasChildren()?up(e,t,n):r.match?go(e,0,i):up(e,t,n)}function go(e,t,n){if(n.length===0)return new ae(e.segments,{});{let r=u1(n),i={};if(Object.keys(r).some(o=>o!==G)&&e.children[G]&&e.numberOfChildren===1&&e.children[G].segments.length===0){let o=go(e.children[G],t,n);return new ae(e.segments,o.children)}return Object.entries(r).forEach(([o,s])=>{typeof s=="string"&&(s=[s]),s!==null&&(i[o]=Ob(e.children[o],t,s))}),Object.entries(e.children).forEach(([o,s])=>{r[o]===void 0&&(i[o]=s)}),new ae(e.segments,i)}}function c1(e,t,n){let r=0,i=t,o={match:!1,pathIndex:0,commandIndex:0};for(;i<e.segments.length;){if(r>=n.length)return o;let s=e.segments[i],a=n[r];if(xo(a))break;let l=`${a}`,u=r<n.length-1?n[r+1]:null;if(i>0&&l===void 0)break;if(l&&u&&typeof u=="object"&&u.outlets===void 0){if(!mb(l,u,s))return o;r+=2}else{if(!mb(l,{},s))return o;r++}i++}return{match:!0,pathIndex:i,commandIndex:r}}function up(e,t,n){let r=e.segments.slice(0,t),i=0;for(;i<n.length;){let o=n[i];if(xo(o)){let l=d1(o.outlets);return new ae(r,l)}if(i===0&&ja(n[0])){let l=e.segments[t];r.push(new or(l.path,hb(n[0]))),i++;continue}let s=xo(o)?o.outlets[G]:`${o}`,a=i<n.length-1?n[i+1]:null;s&&a&&ja(a)?(r.push(new or(s,hb(a))),i+=2):(r.push(new or(s,{})),i++)}return new ae(r,{})}function d1(e){let t={};return Object.entries(e).forEach(([n,r])=>{typeof r=="string"&&(r=[r]),r!==null&&(t[n]=up(new ae([],{}),0,r))}),t}function hb(e){let t={};return Object.entries(e).forEach(([n,r])=>t[n]=`${r}`),t}function mb(e,t,n){return e==n.path&&Gt(t,n.parameters)}var yo="imperative",Fe=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.ResolveStart=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}(Fe||{}),St=class{constructor(t,n){this.id=t,this.url=n}},wo=class extends St{constructor(t,n,r="imperative",i=null){super(t,n),this.type=Fe.NavigationStart,this.navigationTrigger=r,this.restoredState=i}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},ar=class extends St{constructor(t,n,r){super(t,n),this.urlAfterRedirects=r,this.type=Fe.NavigationEnd}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},pt=function(e){return e[e.Redirect=0]="Redirect",e[e.SupersededByNewNavigation=1]="SupersededByNewNavigation",e[e.NoDataFromResolver=2]="NoDataFromResolver",e[e.GuardRejected=3]="GuardRejected",e}(pt||{}),cp=function(e){return e[e.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",e[e.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",e}(cp||{}),ln=class extends St{constructor(t,n,r,i){super(t,n),this.reason=r,this.code=i,this.type=Fe.NavigationCancel}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}},lr=class extends St{constructor(t,n,r,i){super(t,n),this.reason=r,this.code=i,this.type=Fe.NavigationSkipped}},Co=class extends St{constructor(t,n,r,i){super(t,n),this.error=r,this.target=i,this.type=Fe.NavigationError}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},za=class extends St{constructor(t,n,r,i){super(t,n),this.urlAfterRedirects=r,this.state=i,this.type=Fe.RoutesRecognized}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},dp=class extends St{constructor(t,n,r,i){super(t,n),this.urlAfterRedirects=r,this.state=i,this.type=Fe.GuardsCheckStart}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},pp=class extends St{constructor(t,n,r,i,o){super(t,n),this.urlAfterRedirects=r,this.state=i,this.shouldActivate=o,this.type=Fe.GuardsCheckEnd}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},fp=class extends St{constructor(t,n,r,i){super(t,n),this.urlAfterRedirects=r,this.state=i,this.type=Fe.ResolveStart}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},hp=class extends St{constructor(t,n,r,i){super(t,n),this.urlAfterRedirects=r,this.state=i,this.type=Fe.ResolveEnd}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},mp=class{constructor(t){this.route=t,this.type=Fe.RouteConfigLoadStart}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},gp=class{constructor(t){this.route=t,this.type=Fe.RouteConfigLoadEnd}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},yp=class{constructor(t){this.snapshot=t,this.type=Fe.ChildActivationStart}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},vp=class{constructor(t){this.snapshot=t,this.type=Fe.ChildActivationEnd}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},bp=class{constructor(t){this.snapshot=t,this.type=Fe.ActivationStart}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Sp=class{constructor(t){this.snapshot=t,this.type=Fe.ActivationEnd}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}};var Eo=class{},si=class{constructor(t,n){this.url=t,this.navigationBehaviorOptions=n}};function p1(e,t){return e.providers&&!e._injector&&(e._injector=Wd(e.providers,t,`Route: ${e.path}`)),e._injector??t}function Pt(e){return e.outlet||G}function f1(e,t){let n=e.filter(r=>Pt(r)===t);return n.push(...e.filter(r=>Pt(r)!==t)),n}function Ao(e){if(!e)return null;if(e.routeConfig?._injector)return e.routeConfig._injector;for(let t=e.parent;t;t=t.parent){let n=t.routeConfig;if(n?._loadedInjector)return n._loadedInjector;if(n?._injector)return n._injector}return null}var xp=class{get injector(){return Ao(this.route?.snapshot)??this.rootInjector}set injector(t){}constructor(t){this.rootInjector=t,this.outlet=null,this.route=null,this.children=new $a(this.rootInjector),this.attachRef=null}},$a=(()=>{class e{constructor(n){this.rootInjector=n,this.contexts=new Map}onChildOutletCreated(n,r){let i=this.getOrCreateContext(n);i.outlet=r,this.contexts.set(n,i)}onChildOutletDestroyed(n){let r=this.getContext(n);r&&(r.outlet=null,r.attachRef=null)}onOutletDeactivated(){let n=this.contexts;return this.contexts=new Map,n}onOutletReAttached(n){this.contexts=n}getOrCreateContext(n){let r=this.getContext(n);return r||(r=new xp(this.rootInjector),this.contexts.set(n,r)),r}getContext(n){return this.contexts.get(n)||null}static{this.\u0275fac=function(r){return new(r||e)(ee(vt))}}static{this.\u0275prov=F({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),Ba=class{constructor(t){this._root=t}get root(){return this._root.value}parent(t){let n=this.pathFromRoot(t);return n.length>1?n[n.length-2]:null}children(t){let n=wp(t,this._root);return n?n.children.map(r=>r.value):[]}firstChild(t){let n=wp(t,this._root);return n&&n.children.length>0?n.children[0].value:null}siblings(t){let n=Cp(t,this._root);return n.length<2?[]:n[n.length-2].children.map(i=>i.value).filter(i=>i!==t)}pathFromRoot(t){return Cp(t,this._root).map(n=>n.value)}};function wp(e,t){if(e===t.value)return t;for(let n of t.children){let r=wp(e,n);if(r)return r}return null}function Cp(e,t){if(e===t.value)return[t];for(let n of t.children){let r=Cp(e,n);if(r.length)return r.unshift(t),r}return[]}var dt=class{constructor(t,n){this.value=t,this.children=n}toString(){return`TreeNode(${this.value})`}};function ti(e){let t={};return e&&e.children.forEach(n=>t[n.value.outlet]=n),t}var Wa=class extends Ba{constructor(t,n){super(t),this.snapshot=n,Np(this,t)}toString(){return this.snapshot.toString()}};function Nb(e){let t=h1(e),n=new Pe([new or("",{})]),r=new Pe({}),i=new Pe({}),o=new Pe({}),s=new Pe(""),a=new ai(n,r,o,s,i,G,e,t.root);return a.snapshot=t.root,new Wa(new dt(a,[]),t)}function h1(e){let t={},n={},r={},i="",o=new ri([],t,r,i,n,G,e,null,{});return new Va("",new dt(o,[]))}var ai=class{constructor(t,n,r,i,o,s,a,l){this.urlSubject=t,this.paramsSubject=n,this.queryParamsSubject=r,this.fragmentSubject=i,this.dataSubject=o,this.outlet=s,this.component=a,this._futureSnapshot=l,this.title=this.dataSubject?.pipe(X(u=>u[ko]))??H(void 0),this.url=t,this.params=n,this.queryParams=r,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(X(t=>oi(t))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(X(t=>oi(t))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function qa(e,t,n="emptyOnly"){let r,{routeConfig:i}=e;return t!==null&&(n==="always"||i?.path===""||!t.component&&!t.routeConfig?.loadComponent)?r={params:O(O({},t.params),e.params),data:O(O({},t.data),e.data),resolve:O(O(O(O({},e.data),t.data),i?.data),e._resolvedData)}:r={params:O({},e.params),data:O({},e.data),resolve:O(O({},e.data),e._resolvedData??{})},i&&Pb(i)&&(r.resolve[ko]=i.title),r}var ri=class{get title(){return this.data?.[ko]}constructor(t,n,r,i,o,s,a,l,u){this.url=t,this.params=n,this.queryParams=r,this.fragment=i,this.data=o,this.outlet=s,this.component=a,this.routeConfig=l,this._resolve=u}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??=oi(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=oi(this.queryParams),this._queryParamMap}toString(){let t=this.url.map(r=>r.toString()).join("/"),n=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${t}', path:'${n}')`}},Va=class extends Ba{constructor(t,n){super(n),this.url=t,Np(this,n)}toString(){return Rb(this._root)}};function Np(e,t){t.value._routerState=e,t.children.forEach(n=>Np(e,n))}function Rb(e){let t=e.children.length>0?` { ${e.children.map(Rb).join(", ")} } `:"";return`${e.value}${t}`}function rp(e){if(e.snapshot){let t=e.snapshot,n=e._futureSnapshot;e.snapshot=n,Gt(t.queryParams,n.queryParams)||e.queryParamsSubject.next(n.queryParams),t.fragment!==n.fragment&&e.fragmentSubject.next(n.fragment),Gt(t.params,n.params)||e.paramsSubject.next(n.params),WR(t.url,n.url)||e.urlSubject.next(n.url),Gt(t.data,n.data)||e.dataSubject.next(n.data)}else e.snapshot=e._futureSnapshot,e.dataSubject.next(e._futureSnapshot.data)}function Ep(e,t){let n=Gt(e.params,t.params)&&HR(e.url,t.url),r=!e.parent!=!t.parent;return n&&!r&&(!e.parent||Ep(e.parent,t.parent))}function Pb(e){return typeof e.title=="string"||e.title===null}var Rp=(()=>{class e{constructor(){this.activated=null,this._activatedRoute=null,this.name=G,this.activateEvents=new We,this.deactivateEvents=new We,this.attachEvents=new We,this.detachEvents=new We,this.parentContexts=T($a),this.location=T(Qr),this.changeDetector=T(ao),this.inputBinder=T(Pp,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(n){if(n.name){let{firstChange:r,previousValue:i}=n.name;if(r)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(n){return this.parentContexts.getContext(n)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let n=this.parentContexts.getContext(this.name);n?.route&&(n.attachRef?this.attach(n.attachRef,n.route):this.activateWith(n.route,n.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new L(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new L(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new L(4012,!1);this.location.detach();let n=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(n.instance),n}attach(n,r){this.activated=n,this._activatedRoute=r,this.location.insert(n.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(n.instance)}deactivate(){if(this.activated){let n=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(n)}}activateWith(n,r){if(this.isActivated)throw new L(4013,!1);this._activatedRoute=n;let i=this.location,s=n.snapshot.component,a=this.parentContexts.getOrCreateContext(this.name).children,l=new Dp(n,a,i.injector);this.activated=i.createComponent(s,{index:i.length,injector:l,environmentInjector:r}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275dir=ro({type:e,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[_n]})}}return e})(),Dp=class e{__ngOutletInjector(t){return new e(this.route,this.childContexts,t)}constructor(t,n,r){this.route=t,this.childContexts=n,this.parent=r}get(t,n){return t===ai?this.route:t===$a?this.childContexts:this.parent.get(t,n)}},Pp=new $("");function m1(e,t,n){let r=Do(e,t._root,n?n._root:void 0);return new Wa(r,t)}function Do(e,t,n){if(n&&e.shouldReuseRoute(t.value,n.value.snapshot)){let r=n.value;r._futureSnapshot=t.value;let i=g1(e,t,n);return new dt(r,i)}else{if(e.shouldAttach(t.value)){let o=e.retrieve(t.value);if(o!==null){let s=o.route;return s.value._futureSnapshot=t.value,s.children=t.children.map(a=>Do(e,a)),s}}let r=y1(t.value),i=t.children.map(o=>Do(e,o));return new dt(r,i)}}function g1(e,t,n){return t.children.map(r=>{for(let i of n.children)if(e.shouldReuseRoute(r.value,i.value.snapshot))return Do(e,r,i);return Do(e,r)})}function y1(e){return new ai(new Pe(e.url),new Pe(e.params),new Pe(e.queryParams),new Pe(e.fragment),new Pe(e.data),e.outlet,e.component,e)}var To=class{constructor(t,n){this.redirectTo=t,this.navigationBehaviorOptions=n}},Lb="ngNavigationCancelingError";function Ua(e,t){let{redirectTo:n,navigationBehaviorOptions:r}=So(t)?{redirectTo:t,navigationBehaviorOptions:void 0}:t,i=jb(!1,pt.Redirect);return i.url=n,i.navigationBehaviorOptions=r,i}function jb(e,t){let n=new Error(`NavigationCancelingError: ${e||""}`);return n[Lb]=!0,n.cancellationCode=t,n}function v1(e){return Fb(e)&&So(e.url)}function Fb(e){return!!e&&e[Lb]}var b1=(e,t,n,r)=>X(i=>(new Tp(t,i.targetRouterState,i.currentRouterState,n,r).activate(e),i)),Tp=class{constructor(t,n,r,i,o){this.routeReuseStrategy=t,this.futureState=n,this.currState=r,this.forwardEvent=i,this.inputBindingEnabled=o}activate(t){let n=this.futureState._root,r=this.currState?this.currState._root:null;this.deactivateChildRoutes(n,r,t),rp(this.futureState.root),this.activateChildRoutes(n,r,t)}deactivateChildRoutes(t,n,r){let i=ti(n);t.children.forEach(o=>{let s=o.value.outlet;this.deactivateRoutes(o,i[s],r),delete i[s]}),Object.values(i).forEach(o=>{this.deactivateRouteAndItsChildren(o,r)})}deactivateRoutes(t,n,r){let i=t.value,o=n?n.value:null;if(i===o)if(i.component){let s=r.getContext(i.outlet);s&&this.deactivateChildRoutes(t,n,s.children)}else this.deactivateChildRoutes(t,n,r);else o&&this.deactivateRouteAndItsChildren(n,r)}deactivateRouteAndItsChildren(t,n){t.value.component&&this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,n):this.deactivateRouteAndOutlet(t,n)}detachAndStoreRouteSubtree(t,n){let r=n.getContext(t.value.outlet),i=r&&t.value.component?r.children:n,o=ti(t);for(let s of Object.values(o))this.deactivateRouteAndItsChildren(s,i);if(r&&r.outlet){let s=r.outlet.detach(),a=r.children.onOutletDeactivated();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:s,route:t,contexts:a})}}deactivateRouteAndOutlet(t,n){let r=n.getContext(t.value.outlet),i=r&&t.value.component?r.children:n,o=ti(t);for(let s of Object.values(o))this.deactivateRouteAndItsChildren(s,i);r&&(r.outlet&&(r.outlet.deactivate(),r.children.onOutletDeactivated()),r.attachRef=null,r.route=null)}activateChildRoutes(t,n,r){let i=ti(n);t.children.forEach(o=>{this.activateRoutes(o,i[o.value.outlet],r),this.forwardEvent(new Sp(o.value.snapshot))}),t.children.length&&this.forwardEvent(new vp(t.value.snapshot))}activateRoutes(t,n,r){let i=t.value,o=n?n.value:null;if(rp(i),i===o)if(i.component){let s=r.getOrCreateContext(i.outlet);this.activateChildRoutes(t,n,s.children)}else this.activateChildRoutes(t,n,r);else if(i.component){let s=r.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),rp(a.route.value),this.activateChildRoutes(t,null,s.children)}else s.attachRef=null,s.route=i,s.outlet&&s.outlet.activateWith(i,s.injector),this.activateChildRoutes(t,null,s.children)}else this.activateChildRoutes(t,null,r)}},Ha=class{constructor(t){this.path=t,this.route=this.path[this.path.length-1]}},ii=class{constructor(t,n){this.component=t,this.route=n}};function S1(e,t,n){let r=e._root,i=t?t._root:null;return ho(r,i,n,[r.value])}function x1(e){let t=e.routeConfig?e.routeConfig.canActivateChild:null;return!t||t.length===0?null:{node:e,guards:t}}function ui(e,t){let n=Symbol(),r=t.get(e,n);return r===n?typeof e=="function"&&!Rg(e)?e:t.get(e):r}function ho(e,t,n,r,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=ti(t);return e.children.forEach(s=>{w1(s,o[s.value.outlet],n,r.concat([s.value]),i),delete o[s.value.outlet]}),Object.entries(o).forEach(([s,a])=>vo(a,n.getContext(s),i)),i}function w1(e,t,n,r,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=e.value,s=t?t.value:null,a=n?n.getContext(e.value.outlet):null;if(s&&o.routeConfig===s.routeConfig){let l=C1(s,o,o.routeConfig.runGuardsAndResolvers);l?i.canActivateChecks.push(new Ha(r)):(o.data=s.data,o._resolvedData=s._resolvedData),o.component?ho(e,t,a?a.children:null,r,i):ho(e,t,n,r,i),l&&a&&a.outlet&&a.outlet.isActivated&&i.canDeactivateChecks.push(new ii(a.outlet.component,s))}else s&&vo(t,a,i),i.canActivateChecks.push(new Ha(r)),o.component?ho(e,null,a?a.children:null,r,i):ho(e,null,n,r,i);return i}function C1(e,t,n){if(typeof n=="function")return n(e,t);switch(n){case"pathParamsChange":return!sr(e.url,t.url);case"pathParamsOrQueryParamsChange":return!sr(e.url,t.url)||!Gt(e.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Ep(e,t)||!Gt(e.queryParams,t.queryParams);case"paramsChange":default:return!Ep(e,t)}}function vo(e,t,n){let r=ti(e),i=e.value;Object.entries(r).forEach(([o,s])=>{i.component?t?vo(s,t.children.getContext(o),n):vo(s,null,n):vo(s,t,n)}),i.component?t&&t.outlet&&t.outlet.isActivated?n.canDeactivateChecks.push(new ii(t.outlet.component,i)):n.canDeactivateChecks.push(new ii(null,i)):n.canDeactivateChecks.push(new ii(null,i))}function Mo(e){return typeof e=="function"}function E1(e){return typeof e=="boolean"}function D1(e){return e&&Mo(e.canLoad)}function T1(e){return e&&Mo(e.canActivate)}function _1(e){return e&&Mo(e.canActivateChild)}function I1(e){return e&&Mo(e.canDeactivate)}function k1(e){return e&&Mo(e.canMatch)}function zb(e){return e instanceof Jt||e?.name==="EmptyError"}var Na=Symbol("INITIAL_VALUE");function li(){return kt(e=>Ns(e.map(t=>t.pipe(Xt(1),nc(Na)))).pipe(X(t=>{for(let n of t)if(n!==!0){if(n===Na)return Na;if(n===!1||A1(n))return n}return!0}),It(t=>t!==Na),Xt(1)))}function A1(e){return So(e)||e instanceof To}function M1(e,t){return Ae(n=>{let{targetSnapshot:r,currentSnapshot:i,guards:{canActivateChecks:o,canDeactivateChecks:s}}=n;return s.length===0&&o.length===0?H(be(O({},n),{guardsResult:!0})):O1(s,r,i,e).pipe(Ae(a=>a&&E1(a)?N1(r,o,e,t):H(a)),X(a=>be(O({},n),{guardsResult:a})))})}function O1(e,t,n,r){return ke(e).pipe(Ae(i=>F1(i.component,i.route,n,t,r)),Wt(i=>i!==!0,!0))}function N1(e,t,n,r){return ke(t).pipe(Dr(i=>Er(P1(i.route.parent,r),R1(i.route,r),j1(e,i.path,n),L1(e,i.route,n))),Wt(i=>i!==!0,!0))}function R1(e,t){return e!==null&&t&&t(new bp(e)),H(!0)}function P1(e,t){return e!==null&&t&&t(new yp(e)),H(!0)}function L1(e,t,n){let r=t.routeConfig?t.routeConfig.canActivate:null;if(!r||r.length===0)return H(!0);let i=r.map(o=>Rs(()=>{let s=Ao(t)??n,a=ui(o,s),l=T1(a)?a.canActivate(t,e):rn(s,()=>a(t,e));return kn(l).pipe(Wt())}));return H(i).pipe(li())}function j1(e,t,n){let r=t[t.length-1],o=t.slice(0,t.length-1).reverse().map(s=>x1(s)).filter(s=>s!==null).map(s=>Rs(()=>{let a=s.guards.map(l=>{let u=Ao(s.node)??n,c=ui(l,u),p=_1(c)?c.canActivateChild(r,e):rn(u,()=>c(r,e));return kn(p).pipe(Wt())});return H(a).pipe(li())}));return H(o).pipe(li())}function F1(e,t,n,r,i){let o=t&&t.routeConfig?t.routeConfig.canDeactivate:null;if(!o||o.length===0)return H(!0);let s=o.map(a=>{let l=Ao(t)??i,u=ui(a,l),c=I1(u)?u.canDeactivate(e,t,n,r):rn(l,()=>u(e,t,n,r));return kn(c).pipe(Wt())});return H(s).pipe(li())}function z1(e,t,n,r){let i=t.canLoad;if(i===void 0||i.length===0)return H(!0);let o=i.map(s=>{let a=ui(s,e),l=D1(a)?a.canLoad(t,n):rn(e,()=>a(t,n));return kn(l)});return H(o).pipe(li(),Bb(r))}function Bb(e){return Gu(Le(t=>{if(typeof t!="boolean")throw Ua(e,t)}),X(t=>t===!0))}function B1(e,t,n,r){let i=t.canMatch;if(!i||i.length===0)return H(!0);let o=i.map(s=>{let a=ui(s,e),l=k1(a)?a.canMatch(t,n):rn(e,()=>a(t,n));return kn(l)});return H(o).pipe(li(),Bb(r))}var _o=class{constructor(t){this.segmentGroup=t||null}},Io=class extends Error{constructor(t){super(),this.urlTree=t}};function ei(e){return Cr(new _o(e))}function W1(e){return Cr(new L(4e3,!1))}function q1(e){return Cr(jb(!1,pt.GuardRejected))}var _p=class{constructor(t,n){this.urlSerializer=t,this.urlTree=n}lineralizeSegments(t,n){let r=[],i=n.root;for(;;){if(r=r.concat(i.segments),i.numberOfChildren===0)return H(r);if(i.numberOfChildren>1||!i.children[G])return W1(`${t.redirectTo}`);i=i.children[G]}}applyRedirectCommands(t,n,r,i,o){if(typeof n!="string"){let a=n,{queryParams:l,fragment:u,routeConfig:c,url:p,outlet:d,params:f,data:g,title:h}=i,y=rn(o,()=>a({params:f,data:g,queryParams:l,fragment:u,routeConfig:c,url:p,outlet:d,title:h}));if(y instanceof un)throw new Io(y);n=y}let s=this.applyRedirectCreateUrlTree(n,this.urlSerializer.parse(n),t,r);if(n[0]==="/")throw new Io(s);return s}applyRedirectCreateUrlTree(t,n,r,i){let o=this.createSegmentGroup(t,n.root,r,i);return new un(o,this.createQueryParams(n.queryParams,this.urlTree.queryParams),n.fragment)}createQueryParams(t,n){let r={};return Object.entries(t).forEach(([i,o])=>{if(typeof o=="string"&&o[0]===":"){let a=o.substring(1);r[i]=n[a]}else r[i]=o}),r}createSegmentGroup(t,n,r,i){let o=this.createSegments(t,n.segments,r,i),s={};return Object.entries(n.children).forEach(([a,l])=>{s[a]=this.createSegmentGroup(t,l,r,i)}),new ae(o,s)}createSegments(t,n,r,i){return n.map(o=>o.path[0]===":"?this.findPosParam(t,o,i):this.findOrReturn(o,r))}findPosParam(t,n,r){let i=r[n.path.substring(1)];if(!i)throw new L(4001,!1);return i}findOrReturn(t,n){let r=0;for(let i of n){if(i.path===t.path)return n.splice(r),i;r++}return t}},Ip={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function V1(e,t,n,r,i){let o=Wb(e,t,n);return o.matched?(r=p1(t,r),B1(r,t,n,i).pipe(X(s=>s===!0?o:O({},Ip)))):H(o)}function Wb(e,t,n){if(t.path==="**")return U1(n);if(t.path==="")return t.pathMatch==="full"&&(e.hasChildren()||n.length>0)?O({},Ip):{matched:!0,consumedSegments:[],remainingSegments:n,parameters:{},positionalParamSegments:{}};let i=(t.matcher||BR)(n,e,t);if(!i)return O({},Ip);let o={};Object.entries(i.posParams??{}).forEach(([a,l])=>{o[a]=l.path});let s=i.consumed.length>0?O(O({},o),i.consumed[i.consumed.length-1].parameters):o;return{matched:!0,consumedSegments:i.consumed,remainingSegments:n.slice(i.consumed.length),parameters:s,positionalParamSegments:i.posParams??{}}}function U1(e){return{matched:!0,parameters:e.length>0?Sb(e).parameters:{},consumedSegments:e,remainingSegments:[],positionalParamSegments:{}}}function gb(e,t,n,r){return n.length>0&&G1(e,n,r)?{segmentGroup:new ae(t,$1(r,new ae(n,e.children))),slicedSegments:[]}:n.length===0&&Y1(e,n,r)?{segmentGroup:new ae(e.segments,H1(e,n,r,e.children)),slicedSegments:n}:{segmentGroup:new ae(e.segments,e.children),slicedSegments:n}}function H1(e,t,n,r){let i={};for(let o of n)if(Ga(e,t,o)&&!r[Pt(o)]){let s=new ae([],{});i[Pt(o)]=s}return O(O({},r),i)}function $1(e,t){let n={};n[G]=t;for(let r of e)if(r.path===""&&Pt(r)!==G){let i=new ae([],{});n[Pt(r)]=i}return n}function G1(e,t,n){return n.some(r=>Ga(e,t,r)&&Pt(r)!==G)}function Y1(e,t,n){return n.some(r=>Ga(e,t,r))}function Ga(e,t,n){return(e.hasChildren()||t.length>0)&&n.pathMatch==="full"?!1:n.path===""}function Z1(e,t,n){return t.length===0&&!e.children[n]}var kp=class{};function Q1(e,t,n,r,i,o,s="emptyOnly"){return new Ap(e,t,n,r,i,s,o).recognize()}var K1=31,Ap=class{constructor(t,n,r,i,o,s,a){this.injector=t,this.configLoader=n,this.rootComponentType=r,this.config=i,this.urlTree=o,this.paramsInheritanceStrategy=s,this.urlSerializer=a,this.applyRedirects=new _p(this.urlSerializer,this.urlTree),this.absoluteRedirectCount=0,this.allowRedirects=!0}noMatchError(t){return new L(4002,`'${t.segmentGroup}'`)}recognize(){let t=gb(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(t).pipe(X(({children:n,rootSnapshot:r})=>{let i=new dt(r,n),o=new Va("",i),s=o1(r,[],this.urlTree.queryParams,this.urlTree.fragment);return s.queryParams=this.urlTree.queryParams,o.url=this.urlSerializer.serialize(s),{state:o,tree:s}}))}match(t){let n=new ri([],Object.freeze({}),Object.freeze(O({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),G,this.rootComponentType,null,{});return this.processSegmentGroup(this.injector,this.config,t,G,n).pipe(X(r=>({children:r,rootSnapshot:n})),Sn(r=>{if(r instanceof Io)return this.urlTree=r.urlTree,this.match(r.urlTree.root);throw r instanceof _o?this.noMatchError(r):r}))}processSegmentGroup(t,n,r,i,o){return r.segments.length===0&&r.hasChildren()?this.processChildren(t,n,r,o):this.processSegment(t,n,r,r.segments,i,!0,o).pipe(X(s=>s instanceof dt?[s]:[]))}processChildren(t,n,r,i){let o=[];for(let s of Object.keys(r.children))s==="primary"?o.unshift(s):o.push(s);return ke(o).pipe(Dr(s=>{let a=r.children[s],l=f1(n,s);return this.processSegmentGroup(t,l,a,s,i)}),tc((s,a)=>(s.push(...a),s)),xn(null),ec(),Ae(s=>{if(s===null)return ei(r);let a=qb(s);return J1(a),H(a)}))}processSegment(t,n,r,i,o,s,a){return ke(n).pipe(Dr(l=>this.processSegmentAgainstRoute(l._injector??t,n,l,r,i,o,s,a).pipe(Sn(u=>{if(u instanceof _o)return H(null);throw u}))),Wt(l=>!!l),Sn(l=>{if(zb(l))return Z1(r,i,o)?H(new kp):ei(r);throw l}))}processSegmentAgainstRoute(t,n,r,i,o,s,a,l){return Pt(r)!==s&&(s===G||!Ga(i,o,r))?ei(i):r.redirectTo===void 0?this.matchSegmentAgainstRoute(t,i,r,o,s,l):this.allowRedirects&&a?this.expandSegmentAgainstRouteUsingRedirect(t,i,n,r,o,s,l):ei(i)}expandSegmentAgainstRouteUsingRedirect(t,n,r,i,o,s,a){let{matched:l,parameters:u,consumedSegments:c,positionalParamSegments:p,remainingSegments:d}=Wb(n,i,o);if(!l)return ei(n);typeof i.redirectTo=="string"&&i.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>K1&&(this.allowRedirects=!1));let f=new ri(o,u,Object.freeze(O({},this.urlTree.queryParams)),this.urlTree.fragment,yb(i),Pt(i),i.component??i._loadedComponent??null,i,vb(i)),g=qa(f,a,this.paramsInheritanceStrategy);f.params=Object.freeze(g.params),f.data=Object.freeze(g.data);let h=this.applyRedirects.applyRedirectCommands(c,i.redirectTo,p,f,t);return this.applyRedirects.lineralizeSegments(i,h).pipe(Ae(y=>this.processSegment(t,r,n,y.concat(d),s,!1,a)))}matchSegmentAgainstRoute(t,n,r,i,o,s){let a=V1(n,r,i,t,this.urlSerializer);return r.path==="**"&&(n.children={}),a.pipe(kt(l=>l.matched?(t=r._injector??t,this.getChildConfig(t,r,i).pipe(kt(({routes:u})=>{let c=r._loadedInjector??t,{parameters:p,consumedSegments:d,remainingSegments:f}=l,g=new ri(d,p,Object.freeze(O({},this.urlTree.queryParams)),this.urlTree.fragment,yb(r),Pt(r),r.component??r._loadedComponent??null,r,vb(r)),h=qa(g,s,this.paramsInheritanceStrategy);g.params=Object.freeze(h.params),g.data=Object.freeze(h.data);let{segmentGroup:y,slicedSegments:m}=gb(n,d,f,u);if(m.length===0&&y.hasChildren())return this.processChildren(c,u,y,g).pipe(X(S=>new dt(g,S)));if(u.length===0&&m.length===0)return H(new dt(g,[]));let v=Pt(r)===o;return this.processSegment(c,u,y,m,v?G:o,!0,g).pipe(X(S=>new dt(g,S instanceof dt?[S]:[])))}))):ei(n)))}getChildConfig(t,n,r){return n.children?H({routes:n.children,injector:t}):n.loadChildren?n._loadedRoutes!==void 0?H({routes:n._loadedRoutes,injector:n._loadedInjector}):z1(t,n,r,this.urlSerializer).pipe(Ae(i=>i?this.configLoader.loadChildren(t,n).pipe(Le(o=>{n._loadedRoutes=o.routes,n._loadedInjector=o.injector})):q1(n))):H({routes:[],injector:t})}};function J1(e){e.sort((t,n)=>t.value.outlet===G?-1:n.value.outlet===G?1:t.value.outlet.localeCompare(n.value.outlet))}function X1(e){let t=e.value.routeConfig;return t&&t.path===""}function qb(e){let t=[],n=new Set;for(let r of e){if(!X1(r)){t.push(r);continue}let i=t.find(o=>r.value.routeConfig===o.value.routeConfig);i!==void 0?(i.children.push(...r.children),n.add(i)):t.push(r)}for(let r of n){let i=qb(r.children);t.push(new dt(r.value,i))}return t.filter(r=>!n.has(r))}function yb(e){return e.data||{}}function vb(e){return e.resolve||{}}function eP(e,t,n,r,i,o){return Ae(s=>Q1(e,t,n,r,s.extractedUrl,i,o).pipe(X(({state:a,tree:l})=>be(O({},s),{targetSnapshot:a,urlAfterRedirects:l}))))}function tP(e,t){return Ae(n=>{let{targetSnapshot:r,guards:{canActivateChecks:i}}=n;if(!i.length)return H(n);let o=new Set(i.map(l=>l.route)),s=new Set;for(let l of o)if(!s.has(l))for(let u of Vb(l))s.add(u);let a=0;return ke(s).pipe(Dr(l=>o.has(l)?nP(l,r,e,t):(l.data=qa(l,l.parent,e).resolve,H(void 0))),Le(()=>a++),Tr(1),Ae(l=>a===s.size?H(n):it))})}function Vb(e){let t=e.children.map(n=>Vb(n)).flat();return[e,...t]}function nP(e,t,n,r){let i=e.routeConfig,o=e._resolve;return i?.title!==void 0&&!Pb(i)&&(o[ko]=i.title),rP(o,e,t,r).pipe(X(s=>(e._resolvedData=s,e.data=qa(e,e.parent,n).resolve,null)))}function rP(e,t,n,r){let i=sp(e);if(i.length===0)return H({});let o={};return ke(i).pipe(Ae(s=>iP(e[s],t,n,r).pipe(Wt(),Le(a=>{if(a instanceof To)throw Ua(new bo,a);o[s]=a}))),Tr(1),Xu(o),Sn(s=>zb(s)?it:Cr(s)))}function iP(e,t,n,r){let i=Ao(t)??r,o=ui(e,i),s=o.resolve?o.resolve(t,n):rn(i,()=>o(t,n));return kn(s)}function ip(e){return kt(t=>{let n=e(t);return n?ke(n).pipe(X(()=>t)):H(t)})}var Ub=(()=>{class e{buildTitle(n){let r,i=n.root;for(;i!==void 0;)r=this.getResolvedTitleForRoute(i)??r,i=i.children.find(o=>o.outlet===G);return r}getResolvedTitleForRoute(n){return n.data[ko]}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=F({token:e,factory:()=>T(oP),providedIn:"root"})}}return e})(),oP=(()=>{class e extends Ub{constructor(n){super(),this.title=n}updateTitle(n){let r=this.buildTitle(n);r!==void 0&&this.title.setTitle(r)}static{this.\u0275fac=function(r){return new(r||e)(ee(db))}}static{this.\u0275prov=F({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),Lp=new $("",{providedIn:"root",factory:()=>({})}),sP=(()=>{class e{static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275cmp=pe({type:e,selectors:[["ng-component"]],standalone:!0,features:[he],decls:1,vars:0,template:function(r,i){r&1&&Z(0,"router-outlet")},dependencies:[Rp],encapsulation:2})}}return e})();function jp(e){let t=e.children&&e.children.map(jp),n=t?be(O({},e),{children:t}):O({},e);return!n.component&&!n.loadComponent&&(t||n.loadChildren)&&n.outlet&&n.outlet!==G&&(n.component=sP),n}var Fp=new $(""),aP=(()=>{class e{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=T(Hd)}loadComponent(n){if(this.componentLoaders.get(n))return this.componentLoaders.get(n);if(n._loadedComponent)return H(n._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(n);let r=kn(n.loadComponent()).pipe(X(Hb),Le(o=>{this.onLoadEndListener&&this.onLoadEndListener(n),n._loadedComponent=o}),Bi(()=>{this.componentLoaders.delete(n)})),i=new wr(r,()=>new Ye).pipe(xr());return this.componentLoaders.set(n,i),i}loadChildren(n,r){if(this.childrenLoaders.get(r))return this.childrenLoaders.get(r);if(r._loadedRoutes)return H({routes:r._loadedRoutes,injector:r._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(r);let o=lP(r,this.compiler,n,this.onLoadEndListener).pipe(Bi(()=>{this.childrenLoaders.delete(r)})),s=new wr(o,()=>new Ye).pipe(xr());return this.childrenLoaders.set(r,s),s}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=F({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();function lP(e,t,n,r){return kn(e.loadChildren()).pipe(X(Hb),Ae(i=>i instanceof no||Array.isArray(i)?H(i):ke(t.compileModuleAsync(i))),X(i=>{r&&r(e);let o,s,a=!1;return Array.isArray(i)?(s=i,a=!0):(o=i.create(n).injector,s=o.get(Fp,[],{optional:!0,self:!0}).flat()),{routes:s.map(jp),injector:o}}))}function uP(e){return e&&typeof e=="object"&&"default"in e}function Hb(e){return uP(e)?e.default:e}var zp=(()=>{class e{static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=F({token:e,factory:()=>T(cP),providedIn:"root"})}}return e})(),cP=(()=>{class e{shouldProcessUrl(n){return!0}extract(n){return n}merge(n,r){return n}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=F({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),dP=new $("");var pP=new $(""),fP=(()=>{class e{get hasRequestedNavigation(){return this.navigationId!==0}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new Ye,this.transitionAbortSubject=new Ye,this.configLoader=T(aP),this.environmentInjector=T(vt),this.urlSerializer=T(Op),this.rootContexts=T($a),this.location=T(lo),this.inputBindingEnabled=T(Pp,{optional:!0})!==null,this.titleStrategy=T(Ub),this.options=T(Lp,{optional:!0})||{},this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlHandlingStrategy=T(zp),this.createViewTransition=T(dP,{optional:!0}),this.navigationErrorHandler=T(pP,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>H(void 0),this.rootComponentType=null;let n=i=>this.events.next(new mp(i)),r=i=>this.events.next(new gp(i));this.configLoader.onLoadEndListener=r,this.configLoader.onLoadStartListener=n}complete(){this.transitions?.complete()}handleNavigationRequest(n){let r=++this.navigationId;this.transitions?.next(be(O(O({},this.transitions.value),n),{id:r}))}setupNavigations(n,r,i){return this.transitions=new Pe({id:0,currentUrlTree:r,currentRawUrl:r,extractedUrl:this.urlHandlingStrategy.extract(r),urlAfterRedirects:this.urlHandlingStrategy.extract(r),rawUrl:r,extras:{},resolve:()=>{},reject:()=>{},promise:Promise.resolve(!0),source:yo,restoredState:null,currentSnapshot:i.snapshot,targetSnapshot:null,currentRouterState:i,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(It(o=>o.id!==0),X(o=>be(O({},o),{extractedUrl:this.urlHandlingStrategy.extract(o.rawUrl)})),kt(o=>{let s=!1,a=!1;return H(o).pipe(kt(l=>{if(this.navigationId>o.id)return this.cancelNavigationTransition(o,"",pt.SupersededByNewNavigation),it;this.currentTransition=o,this.currentNavigation={id:l.id,initialUrl:l.rawUrl,extractedUrl:l.extractedUrl,targetBrowserUrl:typeof l.extras.browserUrl=="string"?this.urlSerializer.parse(l.extras.browserUrl):l.extras.browserUrl,trigger:l.source,extras:l.extras,previousNavigation:this.lastSuccessfulNavigation?be(O({},this.lastSuccessfulNavigation),{previousNavigation:null}):null};let u=!n.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),c=l.extras.onSameUrlNavigation??n.onSameUrlNavigation;if(!u&&c!=="reload"){let p="";return this.events.next(new lr(l.id,this.urlSerializer.serialize(l.rawUrl),p,cp.IgnoredSameUrlNavigation)),l.resolve(!1),it}if(this.urlHandlingStrategy.shouldProcessUrl(l.rawUrl))return H(l).pipe(kt(p=>{let d=this.transitions?.getValue();return this.events.next(new wo(p.id,this.urlSerializer.serialize(p.extractedUrl),p.source,p.restoredState)),d!==this.transitions?.getValue()?it:Promise.resolve(p)}),eP(this.environmentInjector,this.configLoader,this.rootComponentType,n.config,this.urlSerializer,this.paramsInheritanceStrategy),Le(p=>{o.targetSnapshot=p.targetSnapshot,o.urlAfterRedirects=p.urlAfterRedirects,this.currentNavigation=be(O({},this.currentNavigation),{finalUrl:p.urlAfterRedirects});let d=new za(p.id,this.urlSerializer.serialize(p.extractedUrl),this.urlSerializer.serialize(p.urlAfterRedirects),p.targetSnapshot);this.events.next(d)}));if(u&&this.urlHandlingStrategy.shouldProcessUrl(l.currentRawUrl)){let{id:p,extractedUrl:d,source:f,restoredState:g,extras:h}=l,y=new wo(p,this.urlSerializer.serialize(d),f,g);this.events.next(y);let m=Nb(this.rootComponentType).snapshot;return this.currentTransition=o=be(O({},l),{targetSnapshot:m,urlAfterRedirects:d,extras:be(O({},h),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.finalUrl=d,H(o)}else{let p="";return this.events.next(new lr(l.id,this.urlSerializer.serialize(l.extractedUrl),p,cp.IgnoredByUrlHandlingStrategy)),l.resolve(!1),it}}),Le(l=>{let u=new dp(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(u)}),X(l=>(this.currentTransition=o=be(O({},l),{guards:S1(l.targetSnapshot,l.currentSnapshot,this.rootContexts)}),o)),M1(this.environmentInjector,l=>this.events.next(l)),Le(l=>{if(o.guardsResult=l.guardsResult,l.guardsResult&&typeof l.guardsResult!="boolean")throw Ua(this.urlSerializer,l.guardsResult);let u=new pp(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot,!!l.guardsResult);this.events.next(u)}),It(l=>l.guardsResult?!0:(this.cancelNavigationTransition(l,"",pt.GuardRejected),!1)),ip(l=>{if(l.guards.canActivateChecks.length)return H(l).pipe(Le(u=>{let c=new fp(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot);this.events.next(c)}),kt(u=>{let c=!1;return H(u).pipe(tP(this.paramsInheritanceStrategy,this.environmentInjector),Le({next:()=>c=!0,complete:()=>{c||this.cancelNavigationTransition(u,"",pt.NoDataFromResolver)}}))}),Le(u=>{let c=new hp(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot);this.events.next(c)}))}),ip(l=>{let u=c=>{let p=[];c.routeConfig?.loadComponent&&!c.routeConfig._loadedComponent&&p.push(this.configLoader.loadComponent(c.routeConfig).pipe(Le(d=>{c.component=d}),X(()=>{})));for(let d of c.children)p.push(...u(d));return p};return Ns(u(l.targetSnapshot.root)).pipe(xn(null),Xt(1))}),ip(()=>this.afterPreactivation()),kt(()=>{let{currentSnapshot:l,targetSnapshot:u}=o,c=this.createViewTransition?.(this.environmentInjector,l.root,u.root);return c?ke(c).pipe(X(()=>o)):H(o)}),X(l=>{let u=m1(n.routeReuseStrategy,l.targetSnapshot,l.currentRouterState);return this.currentTransition=o=be(O({},l),{targetRouterState:u}),this.currentNavigation.targetRouterState=u,o}),Le(()=>{this.events.next(new Eo)}),b1(this.rootContexts,n.routeReuseStrategy,l=>this.events.next(l),this.inputBindingEnabled),Xt(1),Le({next:l=>{s=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new ar(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects))),this.titleStrategy?.updateTitle(l.targetRouterState.snapshot),l.resolve(!0)},complete:()=>{s=!0}}),rc(this.transitionAbortSubject.pipe(Le(l=>{throw l}))),Bi(()=>{!s&&!a&&this.cancelNavigationTransition(o,"",pt.SupersededByNewNavigation),this.currentTransition?.id===o.id&&(this.currentNavigation=null,this.currentTransition=null)}),Sn(l=>{if(a=!0,Fb(l))this.events.next(new ln(o.id,this.urlSerializer.serialize(o.extractedUrl),l.message,l.cancellationCode)),v1(l)?this.events.next(new si(l.url,l.navigationBehaviorOptions)):o.resolve(!1);else{let u=new Co(o.id,this.urlSerializer.serialize(o.extractedUrl),l,o.targetSnapshot??void 0);try{let c=rn(this.environmentInjector,()=>this.navigationErrorHandler?.(u));if(c instanceof To){let{message:p,cancellationCode:d}=Ua(this.urlSerializer,c);this.events.next(new ln(o.id,this.urlSerializer.serialize(o.extractedUrl),p,d)),this.events.next(new si(c.redirectTo,c.navigationBehaviorOptions))}else{this.events.next(u);let p=n.errorHandler(l);o.resolve(!!p)}}catch(c){this.options.resolveNavigationPromiseOnError?o.resolve(!1):o.reject(c)}}return it}))}))}cancelNavigationTransition(n,r,i){let o=new ln(n.id,this.urlSerializer.serialize(n.extractedUrl),r,i);this.events.next(o),n.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){let n=this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))),r=this.currentNavigation?.targetBrowserUrl??this.currentNavigation?.extractedUrl;return n.toString()!==r?.toString()&&!this.currentNavigation?.extras.skipLocationChange}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=F({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();function hP(e){return e!==yo}var mP=(()=>{class e{static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=F({token:e,factory:()=>T(gP),providedIn:"root"})}}return e})(),Mp=class{shouldDetach(t){return!1}store(t,n){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,n){return t.routeConfig===n.routeConfig}},gP=(()=>{class e extends Mp{static{this.\u0275fac=(()=>{let n;return function(i){return(n||(n=Cd(e)))(i||e)}})()}static{this.\u0275prov=F({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),$b=(()=>{class e{static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=F({token:e,factory:()=>T(yP),providedIn:"root"})}}return e})(),yP=(()=>{class e extends $b{constructor(){super(...arguments),this.location=T(lo),this.urlSerializer=T(Op),this.options=T(Lp,{optional:!0})||{},this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.urlHandlingStrategy=T(zp),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.currentUrlTree=new un,this.rawUrlTree=this.currentUrlTree,this.currentPageId=0,this.lastSuccessfulId=-1,this.routerState=Nb(null),this.stateMemento=this.createStateMemento()}getCurrentUrlTree(){return this.currentUrlTree}getRawUrlTree(){return this.rawUrlTree}restoredState(){return this.location.getState()}get browserPageId(){return this.canceledNavigationResolution!=="computed"?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}getRouterState(){return this.routerState}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}registerNonRouterCurrentEntryChangeListener(n){return this.location.subscribe(r=>{r.type==="popstate"&&n(r.url,r.state)})}handleRouterEvent(n,r){if(n instanceof wo)this.stateMemento=this.createStateMemento();else if(n instanceof lr)this.rawUrlTree=r.initialUrl;else if(n instanceof za){if(this.urlUpdateStrategy==="eager"&&!r.extras.skipLocationChange){let i=this.urlHandlingStrategy.merge(r.finalUrl,r.initialUrl);this.setBrowserUrl(r.targetBrowserUrl??i,r)}}else n instanceof Eo?(this.currentUrlTree=r.finalUrl,this.rawUrlTree=this.urlHandlingStrategy.merge(r.finalUrl,r.initialUrl),this.routerState=r.targetRouterState,this.urlUpdateStrategy==="deferred"&&!r.extras.skipLocationChange&&this.setBrowserUrl(r.targetBrowserUrl??this.rawUrlTree,r)):n instanceof ln&&(n.code===pt.GuardRejected||n.code===pt.NoDataFromResolver)?this.restoreHistory(r):n instanceof Co?this.restoreHistory(r,!0):n instanceof ar&&(this.lastSuccessfulId=n.id,this.currentPageId=this.browserPageId)}setBrowserUrl(n,r){let i=n instanceof un?this.urlSerializer.serialize(n):n;if(this.location.isCurrentPathEqualTo(i)||r.extras.replaceUrl){let o=this.browserPageId,s=O(O({},r.extras.state),this.generateNgRouterState(r.id,o));this.location.replaceState(i,"",s)}else{let o=O(O({},r.extras.state),this.generateNgRouterState(r.id,this.browserPageId+1));this.location.go(i,"",o)}}restoreHistory(n,r=!1){if(this.canceledNavigationResolution==="computed"){let i=this.browserPageId,o=this.currentPageId-i;o!==0?this.location.historyGo(o):this.currentUrlTree===n.finalUrl&&o===0&&(this.resetState(n),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(r&&this.resetState(n),this.resetUrlToCurrentUrlTree())}resetState(n){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,n.finalUrl??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(n,r){return this.canceledNavigationResolution==="computed"?{navigationId:n,\u0275routerPageId:r}:{navigationId:n}}static{this.\u0275fac=(()=>{let n;return function(i){return(n||(n=Cd(e)))(i||e)}})()}static{this.\u0275prov=F({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),mo=function(e){return e[e.COMPLETE=0]="COMPLETE",e[e.FAILED=1]="FAILED",e[e.REDIRECTING=2]="REDIRECTING",e}(mo||{});function vP(e,t){e.events.pipe(It(n=>n instanceof ar||n instanceof ln||n instanceof Co||n instanceof lr),X(n=>n instanceof ar||n instanceof lr?mo.COMPLETE:(n instanceof ln?n.code===pt.Redirect||n.code===pt.SupersededByNewNavigation:!1)?mo.REDIRECTING:mo.FAILED),It(n=>n!==mo.REDIRECTING),Xt(1)).subscribe(()=>{t()})}function bP(e){throw e}var SP={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},xP={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},Gb=(()=>{class e{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}constructor(){this.disposed=!1,this.console=T(Ta),this.stateManager=T($b),this.options=T(Lp,{optional:!0})||{},this.pendingTasks=T(Gr),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.navigationTransitions=T(fP),this.urlSerializer=T(Op),this.location=T(lo),this.urlHandlingStrategy=T(zp),this._events=new Ye,this.errorHandler=this.options.errorHandler||bP,this.navigated=!1,this.routeReuseStrategy=T(mP),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.config=T(Fp,{optional:!0})?.flat()??[],this.componentInputBindingEnabled=!!T(Pp,{optional:!0}),this.eventsSubscription=new De,this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe({error:n=>{this.console.warn(n)}}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){let n=this.navigationTransitions.events.subscribe(r=>{try{let i=this.navigationTransitions.currentTransition,o=this.navigationTransitions.currentNavigation;if(i!==null&&o!==null){if(this.stateManager.handleRouterEvent(r,o),r instanceof ln&&r.code!==pt.Redirect&&r.code!==pt.SupersededByNewNavigation)this.navigated=!0;else if(r instanceof ar)this.navigated=!0;else if(r instanceof si){let s=r.navigationBehaviorOptions,a=this.urlHandlingStrategy.merge(r.url,i.currentRawUrl),l=O({browserUrl:i.extras.browserUrl,info:i.extras.info,skipLocationChange:i.extras.skipLocationChange,replaceUrl:i.extras.replaceUrl||this.urlUpdateStrategy==="eager"||hP(i.source)},s);this.scheduleNavigation(a,yo,null,l,{resolve:i.resolve,reject:i.reject,promise:i.promise})}}CP(r)&&this._events.next(r)}catch(i){this.navigationTransitions.transitionAbortSubject.next(i)}});this.eventsSubscription.add(n)}resetRootComponentType(n){this.routerState.root.component=n,this.navigationTransitions.rootComponentType=n}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),yo,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((n,r)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(n,"popstate",r)},0)})}navigateToSyncWithBrowser(n,r,i){let o={replaceUrl:!0},s=i?.navigationId?i:null;if(i){let l=O({},i);delete l.navigationId,delete l.\u0275routerPageId,Object.keys(l).length!==0&&(o.state=l)}let a=this.parseUrl(n);this.scheduleNavigation(a,r,s,o)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(n){this.config=n.map(jp),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription&&(this.nonRouterCurrentEntryChangeSubscription.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(n,r={}){let{relativeTo:i,queryParams:o,fragment:s,queryParamsHandling:a,preserveFragment:l}=r,u=l?this.currentUrlTree.fragment:s,c=null;switch(a??this.options.defaultQueryParamsHandling){case"merge":c=O(O({},this.currentUrlTree.queryParams),o);break;case"preserve":c=this.currentUrlTree.queryParams;break;default:c=o||null}c!==null&&(c=this.removeEmptyProps(c));let p;try{let d=i?i.snapshot:this.routerState.snapshot.root;p=kb(d)}catch{(typeof n[0]!="string"||n[0][0]!=="/")&&(n=[]),p=this.currentUrlTree.root}return Ab(p,n,c,u??null)}navigateByUrl(n,r={skipLocationChange:!1}){let i=So(n)?n:this.parseUrl(n),o=this.urlHandlingStrategy.merge(i,this.rawUrlTree);return this.scheduleNavigation(o,yo,null,r)}navigate(n,r={skipLocationChange:!1}){return wP(n),this.navigateByUrl(this.createUrlTree(n,r),r)}serializeUrl(n){return this.urlSerializer.serialize(n)}parseUrl(n){try{return this.urlSerializer.parse(n)}catch{return this.urlSerializer.parse("/")}}isActive(n,r){let i;if(r===!0?i=O({},SP):r===!1?i=O({},xP):i=r,So(n))return pb(this.currentUrlTree,n,i);let o=this.parseUrl(n);return pb(this.currentUrlTree,o,i)}removeEmptyProps(n){return Object.entries(n).reduce((r,[i,o])=>(o!=null&&(r[i]=o),r),{})}scheduleNavigation(n,r,i,o,s){if(this.disposed)return Promise.resolve(!1);let a,l,u;s?(a=s.resolve,l=s.reject,u=s.promise):u=new Promise((p,d)=>{a=p,l=d});let c=this.pendingTasks.add();return vP(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(c))}),this.navigationTransitions.handleNavigationRequest({source:r,restoredState:i,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:n,extras:o,resolve:a,reject:l,promise:u,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),u.catch(p=>Promise.reject(p))}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=F({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();function wP(e){for(let t=0;t<e.length;t++)if(e[t]==null)throw new L(4008,!1)}function CP(e){return!(e instanceof Eo)&&!(e instanceof si)}var EP=new $("");function Yb(e,...t){return ca([{provide:Fp,multi:!0,useValue:e},[],{provide:ai,useFactory:DP,deps:[Gb]},{provide:Ud,multi:!0,useFactory:TP},t.map(n=>n.\u0275providers)])}function DP(e){return e.routerState.root}function TP(){let e=T(Kn);return t=>{let n=e.get(rr);if(t!==n.components[0])return;let r=e.get(Gb),i=e.get(_P);e.get(IP)===1&&r.initialNavigation(),e.get(kP,null,Y.Optional)?.setUpPreloading(),e.get(EP,null,Y.Optional)?.init(),r.resetRootComponentType(n.componentTypes[0]),i.closed||(i.next(),i.complete(),i.unsubscribe())}}var _P=new $("",{factory:()=>new Ye}),IP=new $("",{providedIn:"root",factory:()=>1});var kP=new $("");var Bp=ye(Zb());(function(e){var t=/\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|non-sealed|null|open|opens|package|permits|private|protected|provides|public|record(?!\s*[(){}[\]<>=%~.:,;?+\-*/&|^])|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/,n=/(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,r={pattern:RegExp(/(^|[^\w.])/.source+n+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}},punctuation:/\./}};e.languages.java=e.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"/,lookbehind:!0,greedy:!0},"class-name":[r,{pattern:RegExp(/(^|[^\w.])/.source+n+/[A-Z]\w*(?=\s+\w+\s*[;,=()]|\s*(?:\[[\s,]*\]\s*)?::\s*new\b)/.source),lookbehind:!0,inside:r.inside},{pattern:RegExp(/(\b(?:class|enum|extends|implements|instanceof|interface|new|record|throws)\s+)/.source+n+/[A-Z]\w*\b/.source),lookbehind:!0,inside:r.inside}],keyword:t,function:[e.languages.clike.function,{pattern:/(::\s*)[a-z_]\w*/,lookbehind:!0}],number:/\b0b[01][01_]*L?\b|\b0x(?:\.[\da-f_p+-]+|[\da-f_]+(?:\.[\da-f_p+-]+)?)\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfl]?/i,operator:{pattern:/(^|[^.])(?:<<=?|>>>?=?|->|--|\+\+|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?)/m,lookbehind:!0},constant:/\b[A-Z][A-Z_\d]+\b/}),e.languages.insertBefore("java","string",{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:"string"},char:{pattern:/'(?:\\.|[^'\\\r\n]){1,6}'/,greedy:!0}}),e.languages.insertBefore("java","class-name",{annotation:{pattern:/(^|[^.])@\w+(?:\s*\.\s*\w+)*/,lookbehind:!0,alias:"punctuation"},generics:{pattern:/<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&))*>)*>)*>)*>/,inside:{"class-name":r,keyword:t,punctuation:/[<>(),.:]/,operator:/[?&|]/}},import:[{pattern:RegExp(/(\bimport\s+)/.source+n+/(?:[A-Z]\w*|\*)(?=\s*;)/.source),lookbehind:!0,inside:{namespace:r.inside.namespace,punctuation:/\./,operator:/\*/,"class-name":/\w+/}},{pattern:RegExp(/(\bimport\s+static\s+)/.source+n+/(?:\w+|\*)(?=\s*;)/.source),lookbehind:!0,alias:"static",inside:{namespace:r.inside.namespace,static:/\b\w+$/,punctuation:/\./,operator:/\*/,"class-name":/\w+/}}],namespace:{pattern:RegExp(/(\b(?:exports|import(?:\s+static)?|module|open|opens|package|provides|requires|to|transitive|uses|with)\s+)(?!<keyword>)[a-z]\w*(?:\.[a-z]\w*)*\.?/.source.replace(/<keyword>/g,function(){return t.source})),lookbehind:!0,inside:{punctuation:/\./}}})})(Prism);Prism.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern:/![sra](?=[:}]$)/,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/};Prism.languages.python["string-interpolation"].inside.interpolation.inside.rest=Prism.languages.python;Prism.languages.py=Prism.languages.python;Prism.languages.javascript=Prism.languages.extend("clike",{"class-name":[Prism.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+(/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source)+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/});Prism.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/;Prism.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:Prism.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:Prism.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/});Prism.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:Prism.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}});Prism.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}});Prism.languages.markup&&(Prism.languages.markup.tag.addInlined("script","javascript"),Prism.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript"));Prism.languages.js=Prism.languages.javascript;Prism.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/};Prism.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]};Prism.languages.markup.tag.inside["attr-value"].inside.entity=Prism.languages.markup.entity;Prism.languages.markup.doctype.inside["internal-subset"].inside=Prism.languages.markup;Prism.hooks.add("wrap",function(e){e.type==="entity"&&(e.attributes.title=e.content.replace(/&amp;/,"&"))});Object.defineProperty(Prism.languages.markup.tag,"addInlined",{value:function(t,n){var r={};r["language-"+n]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:Prism.languages[n]},r.cdata=/^<!\[CDATA\[|\]\]>$/i;var i={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:r}};i["language-"+n]={pattern:/[\s\S]+/,inside:Prism.languages[n]};var o={};o[t]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return t}),"i"),lookbehind:!0,greedy:!0,inside:i},Prism.languages.insertBefore("markup","cdata",o)}});Object.defineProperty(Prism.languages.markup.tag,"addAttribute",{value:function(e,t){Prism.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+e+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[t,"language-"+t],inside:Prism.languages[t]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}});Prism.languages.html=Prism.languages.markup;Prism.languages.mathml=Prism.languages.markup;Prism.languages.svg=Prism.languages.markup;Prism.languages.xml=Prism.languages.extend("markup",{});Prism.languages.ssml=Prism.languages.xml;Prism.languages.atom=Prism.languages.xml;Prism.languages.rss=Prism.languages.xml;var Za=class e{normalizeLanguage(t){if(!t)return null;let n=t.toLowerCase().trim();return n==="none"?null:n==="small-basic"?"clike":n==="javascript or html or css"?"markup":n==="c"||n==="java"?"clike":n}highlight(t,n,r){let i=this.normalizeLanguage(r);if(!i){t.textContent=n;return}t.className=`language-${i}`;let o=Bp.default.languages[i];if(!o){t.textContent=n;return}t.innerHTML=Bp.default.highlight(n,o,i)}static \u0275fac=function(n){return new(n||e)};static \u0275prov=F({token:e,factory:e.\u0275fac,providedIn:"root"})};var ci=class e{constructor(t,n){this.elementRef=t;this.prism=n}code=null;language=null;ngAfterViewInit(){this.applyHighlight()}ngOnChanges(){this.applyHighlight()}applyHighlight(){let t=this.elementRef.nativeElement,n=this.code??"";this.prism.highlight(t,n,this.language??void 0)}static \u0275fac=function(n){return new(n||e)(In(an),In(Za))};static \u0275dir=ro({type:e,selectors:[["","prismHighlight",""]],inputs:{code:"code",language:"language"},standalone:!0,features:[_n]})};function OP(e,t){if(e&1&&(C(0,"p",2)(1,"span"),R(2),D(),C(3,"span",4),R(4),D()()),e&2){let n=te().$index,r=Rv(1);_(2),Jr("(",n+1,") ",r[0].toUpperCase(),":"),_(2),ge(r[1])}}function NP(e,t){if(e&1&&(C(0,"p",3),R(1),D()),e&2){let n=te(),r=n.$implicit,i=n.$index;_(),Jr("(",i+1,") ",r.step,"")}}function RP(e,t){if(e&1&&Z(0,"img",5)(1,"br"),e&2){let n=te().$implicit;se("src",n.imageSlot.base64,et)}}function PP(e,t){if(e&1&&(C(0,"div",1),Vd(1),Te(2,OP,5,3,"p",2)(3,NP,2,2,"p",3)(4,RP,2,1),D()),e&2){let n=t.$implicit;_();let r=Nv(n.step.split(":"));_(),fe(r.length==2?2:3),_(2),fe(n.imageSlot&&n.imageSlot.base64?4:-1)}}function LP(e,t){if(e&1&&ut(0,PP,5,3,"div",1,lt),e&2){let n=te();ct(n.stepsWithImages)}}function jP(e,t){if(e&1&&(C(0,"p",3),R(1),D()),e&2){let n=t.$implicit,r=te().$index;_(),Jr("(",r+1,") ",n,"")}}function FP(e,t){if(e&1&&(C(0,"pre",7),Z(1,"code",8),D()),e&2){let n=te().$implicit,r=te(3);_(),se("code",n.codeBlock)("language",r.programmingLanguage)}}function zP(e,t){if(e&1&&(C(0,"div",6),ut(1,jP,2,2,"p",3,lt),Te(3,FP,2,2,"pre",7),D()),e&2){let n=t.$implicit;_(),ct(n.steps),_(2),fe(n.codeBlock!=null&&n.codeBlock.trim()?3:-1)}}function BP(e,t){if(e&1&&ut(0,zP,4,1,"div",6,lt),e&2){let n=te(2);ct(n.stepsWithCodeBlockArray)}}function WP(e,t){if(e&1&&(C(0,"p",3),R(1),D()),e&2){let n=t.$implicit,r=t.$index;_(),Jr("(",r+1,") ",n,"")}}function qP(e,t){if(e&1&&(C(0,"pre",7),Z(1,"code",8),D()),e&2){let n=te(3);_(),se("code",n.stepsWithCodeBlockArray[0].codeBlock)("language",n.programmingLanguage)}}function VP(e,t){if(e&1&&(C(0,"div",6),ut(1,WP,2,2,"p",3,lt),Te(3,qP,2,2,"pre",7),D()),e&2){let n=te(2);_(),ct(n.stepsWithCodeBlockArray[0].steps),_(2),fe(n.stepsWithCodeBlockArray[0].codeBlock!=null&&n.stepsWithCodeBlockArray[0].codeBlock.trim()?3:-1)}}function UP(e,t){if(e&1&&Te(0,BP,2,0)(1,VP,4,1,"div",6),e&2){let n=te();fe(n.stepsWithCodeBlockArray.length>1?0:1)}}var Qa=class e{data;programmingLanguage;get isStepWithImage(){return Array.isArray(this.data)&&this.data.every(t=>"step"in t)}get stepsWithImages(){return this.isStepWithImage?this.data:[]}get isStepsWithCodeBlockArray(){return Array.isArray(this.data)&&this.data.every(t=>"steps"in t)}get stepsWithCodeBlockArray(){return this.isStepsWithCodeBlockArray?this.data:[]}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=pe({type:e,selectors:[["app-add-your-code"]],inputs:{data:"data",programmingLanguage:"programmingLanguage"},standalone:!0,features:[he],decls:5,vars:1,consts:[[1,"add-your-code"],[1,"scratch-step-container"],[1,"step",2,"font-weight","bold"],[1,"step"],[2,"font-weight","normal"],[1,"step-image",3,"src"],[1,"multiple-steps-with-code-block"],[1,"code-block"],["prismHighlight","",3,"code","language"]],template:function(n,r){n&1&&(C(0,"section",0)(1,"h3"),R(2,"Add Your Code"),D(),Te(3,LP,2,0)(4,UP,2,1),D()),n&2&&(_(3),fe(r.isStepWithImage?3:r.isStepsWithCodeBlockArray?4:-1))},dependencies:[ci],styles:[".add-your-code[_ngcontent-%COMP%]{margin:1rem 0;break-inside:auto}.add-your-code[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin-bottom:3mm;break-after:avoid}.scratch-step-container[_ngcontent-%COMP%]{break-inside:avoid}.add-your-code[_ngcontent-%COMP%] .step[_ngcontent-%COMP%]{margin:.5rem 0;padding:.5rem;border-radius:var(--section-card-border-radius);background-color:var(--section-card-color);box-shadow:0 4px 6px #0000001a,0 1px 3px #00000014;font-size:.95rem;white-space:pre-wrap}.add-your-code[_ngcontent-%COMP%] .step-image[_ngcontent-%COMP%]{display:block;max-width:100%;max-height:100mm;width:auto;object-fit:contain;margin:.5rem auto;border-radius:4px}.multiple-steps-with-code-block[_ngcontent-%COMP%]{break-inside:avoid}"]})};function Ka(e){if(!e)return;let t;if(typeof e.getBoundingClientRect<"u")t=e.getBoundingClientRect();else{let n=document.createRange();n.selectNode(e),t=n.getBoundingClientRect()}return t}function Qb(e){if(!e)return;let t;if(typeof e.getClientRects<"u")t=e.getClientRects();else{let n=document.createRange();n.selectNode(e),t=n.getClientRects()}return t}function Ze(){var e=new Date().getTime();return typeof performance<"u"&&typeof performance.now=="function"&&(e+=performance.now()),"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(t){var n=(e+Math.random()*16)%16|0;return e=Math.floor(e/16),(t==="x"?n:n&3|8).toString(16)})}function Ja(e,t){for(var n=0;n<t.length;n++)if(e.hasAttribute(t[n]))return e.getAttribute(t[n])}function Xa(e){if(arguments.length==0)throw new TypeError("`CSS.escape` requires an argument.");for(var t=String(e),n=t.length,r=-1,i,o="",s=t.charCodeAt(0);++r<n;){if(i=t.charCodeAt(r),i==0){o+="\uFFFD";continue}if(i>=1&&i<=31||i==127||r==0&&i>=48&&i<=57||r==1&&i>=48&&i<=57&&s==45){o+="\\"+i.toString(16)+" ";continue}if(r==0&&n==1&&i==45){o+="\\"+t.charAt(r);continue}if(i==46&&t.charAt(0)=="#"){o+="\\.";continue}if(i>=128||i==45||i==95||i==35||i==46||i>=48&&i<=57||i>=65&&i<=90||i>=97&&i<=122){o+=t.charAt(r);continue}o+="\\"+t.charAt(r)}return o}function el(){this.resolve=null,this.reject=null,this.id=Ze(),this.promise=new Promise((e,t)=>{this.resolve=e,this.reject=t}),Object.freeze(this)}var Kb=typeof window<"u"&&("requestIdleCallback"in window?window.requestIdleCallback:window.requestAnimationFrame);function k(e){return e.value+(e.unit||"")}function Re(e){return e&&e.nodeType===1}function cn(e){return e&&e.nodeType===3}function*No(e,t){let n=e;for(;n;)if(yield n,n.childNodes.length)n=n.firstChild;else if(n.nextSibling){if(t&&n===t){n=void 0;break}n=n.nextSibling}else for(;n;){if(n=n.parentNode,t&&n===t){n=void 0;break}if(n&&n.nextSibling){n=n.nextSibling;break}}}function An(e,t){if(t&&e===t)return;let n=nl(e);if(n)return n;if(e.parentNode)for(;e=e.parentNode;){if(t&&e===t)return;if(n=nl(e),n)return n}}function Oo(e,t){if(t&&e===t)return;let n=tl(e);if(n)return n;if(e.parentNode)for(;e=e.parentNode;){if(t&&e===t)return;if(n=tl(e),n)return n}}function Jb(e,t){let n=An(e,t);for(;n&&n.nodeType!==1;)n=An(n,t);return n}function Xb(e,t){let n=Oo(e,t);for(;n&&n.nodeType!==1;)n=Oo(n,t);return n}function Wp(e,t){let n=Jb(e,t);for(;n&&n.dataset.undisplayed;)n=Jb(n,t);return n}function tS(e,t){let n=Xb(e,t);for(;n&&n.dataset.undisplayed;)n=Xb(n,t);return n}function rl(e){let t,n,r=[],i=[],o=document.createDocumentFragment();if(e.nodeName==="TR"){let l=e.previousElementSibling,u=1;for(;l;){if(l.childElementCount>e.childElementCount){let c=Array.from(e.children);for(;e.firstChild;)e.firstChild.remove();let p=0;for(let d=0;d<l.children.length;d++){let f=l.children[d];if(f.rowSpan&&f.rowSpan>u){let g=f.cloneNode(!0);g.rowSpan=f.rowSpan-u,e.appendChild(g)}else{let g=c[p++];g&&e.appendChild(g)}}}l=l.previousElementSibling,u++}}let s=e;for(;s.parentNode&&s.parentNode.nodeType===1;)r.unshift(s.parentNode),s=s.parentNode;for(var a=0;a<r.length;a++){if(n=r[a],t=n.cloneNode(!1),t.setAttribute("data-split-from",t.getAttribute("data-ref")),t.hasAttribute("id")){let l=t.getAttribute("id");t.setAttribute("data-id",l),t.removeAttribute("id")}if(t.hasAttribute("data-break-before")&&t.removeAttribute("data-break-before"),t.hasAttribute("data-previous-break-after")&&t.removeAttribute("data-previous-break-after"),i.length?i[i.length-1].appendChild(t):o.appendChild(t),i.push(t),t.nodeName==="TD"&&n.parentElement.contains(n)){let l=n,u=t;for(;l=l.previousElementSibling;){let c=l.cloneNode(!1);t.parentElement.insertBefore(c,u),u=c}}}return i=void 0,o}function il(e){return typeof e<"u"&&typeof e.dataset<"u"&&typeof e.dataset.breakBefore<"u"&&(e.dataset.breakBefore==="always"||e.dataset.breakBefore==="page"||e.dataset.breakBefore==="left"||e.dataset.breakBefore==="right"||e.dataset.breakBefore==="recto"||e.dataset.breakBefore==="verso")}function nS(e){return typeof e<"u"&&typeof e.dataset<"u"&&typeof e.dataset.previousBreakAfter<"u"&&(e.dataset.previousBreakAfter==="always"||e.dataset.previousBreakAfter==="page"||e.dataset.previousBreakAfter==="left"||e.dataset.previousBreakAfter==="right"||e.dataset.previousBreakAfter==="recto"||e.dataset.previousBreakAfter==="verso")}function ol(e,t){if(typeof e>"u"||!t||Po(e)||e.dataset&&e.dataset.undisplayed)return!1;let n=t.dataset?t.dataset.page:void 0;if(typeof n>"u"){let i=eS(t);i&&(n=i.dataset.page)}let r=e.dataset?e.dataset.page:void 0;if(typeof r>"u"){let i=eS(e,t);i&&(r=i.dataset.page)}return r!==n}function*rS(e){let t=e.nodeValue,n=t.length,r=0,i,o,s=e.parentElement&&e.parentElement.nodeName==="PRE";for(;r<n;)i=t[r],/^[\S\u202F\u00A0]$/.test(i)||s?o||(o=document.createRange(),o.setStart(e,r)):o&&(o.setEnd(e,r),yield o,o=void 0),r+=1;o&&(o.setEnd(e,r),yield o)}function*iS(e){let t=e.startContainer,n=t.length,r=e.startOffset,i;for(;r<n;)i=document.createRange(),i.setStart(t,r),i.setEnd(t,r+1),yield i,r+=1}function sl(e){let t;if(typeof e.tagName>"u")return!0;if(e.style&&e.style.display==="none")return!1;switch(e.tagName){case"A":case"ABBR":case"ACRONYM":case"B":case"BDO":case"BIG":case"BR":case"BUTTON":case"CITE":case"CODE":case"DFN":case"EM":case"I":case"IMG":case"INPUT":case"KBD":case"LABEL":case"MAP":case"OBJECT":case"Q":case"SAMP":case"SCRIPT":case"SELECT":case"SMALL":case"SPAN":case"STRONG":case"SUB":case"SUP":case"TEXTAREA":case"TIME":case"TT":case"VAR":case"P":case"H1":case"H2":case"H3":case"H4":case"H5":case"H6":case"FIGCAPTION":case"BLOCKQUOTE":case"PRE":case"LI":case"TD":case"DT":case"DD":case"VIDEO":case"CANVAS":t=!1;break;default:t=!0}return t}function oS(e,t=!1){return e.cloneNode(t)}function ze(e,t,n){let r=e.getAttribute("data-ref");return HP(r,t,n)}function HP(e,t,n){return!n&&t.indexOfRefs&&t.indexOfRefs[e]?t.indexOfRefs[e]:t.querySelector(`[data-ref='${e}']`)}function al(e){return!!(cn(e)||Re(e)&&e.dataset.ref)}function Ro(e){for(;!al(e)&&(e.previousSibling?e=e.previousSibling:e=e.parentNode,!!e););return e}function sS(e){let t=e.parentNode;return t?Array.prototype.indexOf.call(t.childNodes,e):0}function ll(e,t){return e.childNodes[t]}function aS(e){return Re(e)?!0:!!(cn(e)&&e.textContent.trim().length)}function qp(e,t){if(!cn(e))return-1;let n=e.textContent,r,i=-1;for(var o=0;o<t.childNodes.length;o++)if(r=t.childNodes[o],r.nodeType===3&&t.childNodes[o].textContent.includes(n)){i=o;break}return i}function Po(e){return e.nodeType===8||e.nodeType===3&&$P(e)}function $P(e){return!/[^\t\n\r ]/.test(e.textContent)}function tl(e){for(;e=e.previousSibling;)if(!Po(e))return e;return null}function eS(e,t){if(e&&e.dataset&&e.dataset.page)return e;if(e.parentNode)for(;e=e.parentNode;){if(t&&e===t)return;if(e.dataset&&e.dataset.page)return e}return null}function lS(e){for(;e=e.parentNode;)if(e&&e.dataset&&e.dataset.breakInside==="avoid")return e;return null}function ul(e,t,n){if(!(n&&e===n)&&e.parentNode)for(;e=e.parentNode;){if(n&&e===n)return;if(e.nodeName===t)return e}}function nl(e){for(;e=e.nextSibling;)if(!Po(e))return e;return null}function cl(e,t,n){let r=document.createTreeWalker(e||this.dom,n||NodeFilter.SHOW_ALL,t?{acceptNode:t}:null,!1),i,o;for(i=r.nextNode();i;)o=i,i=r.nextNode(),o.parentNode.removeChild(o)}var Vp=class{constructor(t,n){this.node=t,this.offset=n}equals(t){return!(!t||this.node&&t.node&&this.node!==t.node||this.offset&&t.offset&&this.offset!==t.offset)}toJSON(t){let n,r=0;return this.node?(Re(this.node)&&this.node.dataset.ref?n=this.node.dataset.ref:t&&(n=this.node.parentElement.dataset.ref),this.node.parentElement&&(r=Array.from(this.node.parentElement.childNodes).indexOf(this.node)),JSON.stringify({node:n,index:r,offset:this.offset})):{}}},di=Vp;var Up=class{constructor(t,n){this.breakToken=t,this.error=n}},Mn=class extends Error{constructor(t,n){super(t),this.items=n}},pi=Up;var JS=ye(On(),1);var rf=class{constructor(t){this.context=t||this,this.hooks=[]}register(){for(var t=0;t<arguments.length;++t)if(typeof arguments[t]=="function")this.hooks.push(arguments[t]);else for(var n=0;n<arguments[t].length;++n)this.hooks.push(arguments[t][n])}trigger(){var t=arguments,n=this.context,r=[];return this.hooks.forEach(function(i){var o=i.apply(n,t);o&&typeof o.then=="function"?r.push(o):r.push(new Promise((s,a)=>{s(o)}))}),Promise.all(r)}triggerSync(){var t=arguments,n=this.context,r=[];return this.hooks.forEach(function(i){var o=i.apply(n,t);r.push(o)}),r}list(){return this.hooks}clear(){return this.hooks=[]}},N=rf;var mL=1500,gl=class{constructor(t,n,r){this.element=t,this.bounds=this.element.getBoundingClientRect(),this.parentBounds=this.element.offsetParent.getBoundingClientRect();let i=parseFloat(window.getComputedStyle(this.element).columnGap);if(i){let o=this.bounds.left-this.parentBounds.left;this.gap=i-o}else this.gap=0;n?this.hooks=n:(this.hooks={},this.hooks.onPageLayout=new N,this.hooks.layout=new N,this.hooks.renderNode=new N,this.hooks.layoutNode=new N,this.hooks.beforeOverflow=new N,this.hooks.onOverflow=new N,this.hooks.afterOverflowRemoved=new N,this.hooks.onBreakToken=new N,this.hooks.beforeRenderResult=new N),this.settings=r||{},this.maxChars=this.settings.maxChars||mL,this.forceRenderBreak=!1}renderTo(o,s,a){return le(this,arguments,function*(t,n,r,i=this.bounds){let l=this.getStart(n,r),u=No(l,n),c,p,d,f,g=!1,h,y=0,m=r||new di(l);for(this.hooks&&this.hooks.onPageLayout.trigger(t,m,this);!d&&!h;){if(f=u.next(),p=c,c=f.value,d=f.done,!c){this.hooks&&this.hooks.layout.trigger(t,this);let x=t.querySelectorAll("img");return x.length&&(yield this.waitForImages(x)),h=this.findBreakToken(t,n,i,m),h&&h.equals(m)?(console.warn("Unable to layout item: ",p),this.hooks&&this.hooks.beforeRenderResult.trigger(void 0,t,this),new pi(void 0,new Mn("Unable to layout item",[p]))):(this.rebuildTableFromBreakToken(h,t),this.hooks&&this.hooks.beforeRenderResult.trigger(h,t,this),new pi(h))}if(this.hooks&&this.hooks.layoutNode.trigger(c),g&&this.shouldBreak(c,l)){this.hooks&&this.hooks.layout.trigger(t,this);let x=t.querySelectorAll("img");if(x.length&&(yield this.waitForImages(x)),h=this.findBreakToken(t,n,i,m),h?this.rebuildTableFromBreakToken(h,t):h=this.breakAt(c),h&&h.equals(m)){console.warn("Unable to layout item: ",c);let E=h.node&&An(h.node);if(E)h=new di(E);else return new pi(void 0,new Mn("Unable to layout item",[c]))}y=0;break}if(c.dataset&&c.dataset.page){let x=c.dataset.page,E=this.element.closest(".pagedjs_page");E.classList.add("pagedjs_named_page"),E.classList.add("pagedjs_"+x+"_page"),c.dataset.splitFrom||E.classList.add("pagedjs_"+x+"_first_page")}let v=sl(c),S=this.append(c,t,r,v);if(y+=S.textContent.length,g||(g=aS(c)),v||(u=No(An(c,n),n)),this.forceRenderBreak){this.hooks&&this.hooks.layout.trigger(t,this),h=this.findBreakToken(t,n,i,m),h?this.rebuildTableFromBreakToken(h,t):h=this.breakAt(c),y=0,this.forceRenderBreak=!1;break}if(y>=this.maxChars){this.hooks&&this.hooks.layout.trigger(t,this);let x=t.querySelectorAll("img");if(x.length&&(yield this.waitForImages(x)),h=this.findBreakToken(t,n,i,m),h&&(y=0,this.rebuildTableFromBreakToken(h,t)),h&&h.equals(m)){console.warn("Unable to layout item: ",c);let E=h.node&&An(h.node);if(E)h=new di(E);else return this.hooks&&this.hooks.beforeRenderResult.trigger(void 0,t,this),new pi(void 0,new Mn("Unable to layout item",[c]))}}}return this.hooks&&this.hooks.beforeRenderResult.trigger(h,t,this),new pi(h)})}breakAt(t,n=0){let r=new di(t,n);return this.hooks.onBreakToken.triggerSync(r,void 0,t,this).forEach(o=>{typeof o<"u"&&(r=o)}),r}shouldBreak(t,n){let r=Oo(t,n),i=t.parentNode,o=il(t)&&i&&!r&&il(i),s;return o&&(s=t.dataset.breakBefore===i.dataset.breakBefore),!s&&il(t)||nS(t)||ol(t,r)}forceBreak(){this.forceRenderBreak=!0}getStart(t,n){let r,i=n&&n.node;return i?r=i:r=t.firstChild,r}append(t,n,r,i=!0,o=!0){let s=oS(t,!i);if(t.parentNode&&Re(t.parentNode)){let l=ze(t.parentNode,n);if(l)l.appendChild(s);else if(o){let u=rl(t);l=ze(t.parentNode,u),l?(r&&cn(r.node)&&r.offset>0&&(s.textContent=s.textContent.substring(r.offset)),l.appendChild(s)):n.appendChild(s),n.appendChild(u)}else n.appendChild(s)}else n.appendChild(s);return s.dataset&&s.dataset.ref&&(n.indexOfRefs||(n.indexOfRefs={}),n.indexOfRefs[s.dataset.ref]=s),this.hooks.renderNode.triggerSync(s,t,this).forEach(l=>{typeof l<"u"&&(s=l)}),s}rebuildTableFromBreakToken(t,n){if(!t||!t.node)return;let r=t.node,i=Re(r)?r.closest("td"):r.parentElement.closest("td");if(i){if(!ze(i,n,!0))return;for(;i=i.nextElementSibling;)this.append(i,n,null,!0)}}waitForImages(t){return le(this,null,function*(){let n=Array.from(t).map(r=>le(this,null,function*(){return this.awaitImageLoaded(r)}));yield Promise.all(n)})}awaitImageLoaded(t){return le(this,null,function*(){return new Promise(n=>{if(t.complete!==!0)t.onload=function(){let{width:r,height:i}=window.getComputedStyle(t);n(r,i)},t.onerror=function(r){let{width:i,height:o}=window.getComputedStyle(t);n(i,o,r)};else{let{width:r,height:i}=window.getComputedStyle(t);n(r,i)}})})}avoidBreakInside(t,n){let r;if(t!==n){for(;t.parentNode&&(t=t.parentNode,t!==n);)if(window.getComputedStyle(t)["break-inside"]==="avoid"){r=t;break}return r}}createBreakToken(t,n,r){let i=t.startContainer,o=t.startOffset,s,a,l,u,c;if(Re(i))if(c=ll(i,o),Re(c))if(a=ze(c,n),a)s=ze(a,r),o=0;else{let p=Ro(c);if(Re(p)||(p=p.parentElement),a=ze(p,n),!c.nextSibling){let d=ze(a,r),g=document.createTreeWalker(d,NodeFilter.SHOW_ELEMENT).lastChild();if(!ze(g,n))return}s=ze(a,r).nextSibling,o=0}else a=ze(i,n),a||(a=ze(Ro(i),n)),l=ze(a,r),u=qp(c,l),u===0?(s=l,o=0):(s=ll(l,u),o=0);else{if(a=ze(i.parentNode,n),a||(a=ze(Ro(i.parentNode),n)),l=ze(a,r),u=qp(i,l),u===-1)return;s=ll(l,u),o+=s.textContent.indexOf(i.textContent)}if(s)return new di(s,o)}findBreakToken(t,n,r=this.bounds,i,o=!0){let s=this.findOverflow(t,r),a,l;if(this.hooks.onOverflow.triggerSync(s,t,r,this).forEach(c=>{typeof c<"u"&&(s=c)}),s){if(a=this.createBreakToken(s,t,n),this.hooks.onBreakToken.triggerSync(a,s,t,this).forEach(p=>{typeof p<"u"&&(a=p)}),a&&a.equals(i))return a;if(a&&a.node&&a.offset&&a.node.textContent?l=a.node.textContent.charAt(a.offset):l=void 0,a&&a.node&&o){let p=this.removeOverflow(s,l);this.hooks&&this.hooks.afterOverflowRemoved.trigger(p,t,this)}}return a}hasOverflow(t,n=this.bounds){let r=t&&t.parentNode,{width:i,height:o}=t.getBoundingClientRect(),s=r?r.scrollWidth:0,a=r?r.scrollHeight:0;return Math.max(Math.floor(i),s)>Math.round(n.width)||Math.max(Math.floor(o),a)>Math.round(n.height)}findOverflow(t,n=this.bounds,r=this.gap){if(!this.hasOverflow(t,n))return;let i=Math.floor(n.left),o=Math.round(n.right+r),s=Math.round(n.top),a=Math.round(n.bottom),l,u=No(t.firstChild,t),c,p,d,f,g,h,y,m;for(;!p;)if(c=u.next(),p=c.done,d=c.value,g=!1,h=!1,y=void 0,m=void 0,d){let S=Ka(d),x=Math.round(S.left),E=Math.floor(S.right),w=Math.round(S.top),W=Math.floor(S.bottom);if(!l&&(x>=o||w>=a)){let q=!1,oe=ul(d,"TD",t);if(oe&&window.getComputedStyle(oe)["break-inside"]==="avoid")y=oe.parentElement;else if(Re(d)){let Ie=window.getComputedStyle(d);q=Ie.getPropertyValue("float")!=="none",g=Ie.getPropertyValue("break-inside")==="avoid",h=d.dataset.breakBefore==="avoid"||d.dataset.previousBreakAfter==="avoid",y=h&&Oo(d,t),m=d.tagName==="BR"||d.tagName==="WBR"}let Me;if(d.nodeName==="TR"?Me=d:Me=ul(d,"TR",t),Me){let Ie=Me.parentElement;["TBODY","THEAD"].includes(Ie.nodeName)&&window.getComputedStyle(Ie).getPropertyValue("break-inside")==="avoid"&&(y=Ie);let we=ul(Me,"TABLE",t),Be=we.querySelector("[colspan]");if(we&&Be){let Oe=0;for(let J of Array.from(we.rows[0].cells))Oe+=parseInt(J.getAttribute("colspan")||"1");if(Me.cells.length!==Oe){let J=Me.previousElementSibling,ve;for(;J!==null;){ve=0;for(let Tt of Array.from(J.cells))ve+=parseInt(Tt.getAttribute("colspan")||"1");if(ve===Oe)break;J=J.previousElementSibling}ve===Oe&&(y=J)}}}if(y){l=document.createRange(),l.selectNode(y);break}if(!m&&!q&&Re(d)){l=document.createRange(),l.selectNode(d);break}if(cn(d)&&d.textContent.trim().length){l=document.createRange(),l.selectNode(d);break}}if(!l&&cn(d)&&d.textContent.trim().length&&!lS(d.parentNode)){let q=Qb(d),oe;x=0,w=0;for(var v=0;v!=q.length;v++)oe=q[v],oe.width>0&&(!x||oe.left>x)&&(x=oe.left),oe.height>0&&(!w||oe.top>w)&&(w=oe.top);if(x>=o||w>=a){l=document.createRange(),f=this.textBreak(d,i,o,s,a),f?l.setStart(d,f):l=void 0;break}}(g||E<=o&&W<=a)&&(c=An(d,t),c&&(u=No(c,t)))}if(l)return l.setEndAfter(t.lastChild),l}findEndToken(t,n){if(t.childNodes.length===0)return;let r=t.lastChild,i;for(;r&&r.lastChild;)if(!al(r))r=r.previousSibling;else if(al(r.lastChild))r=r.lastChild;else{r=Ro(r.lastChild);break}cn(r)&&(r.parentNode.dataset.ref?(i=sS(r),r=r.parentNode):r=r.previousSibling);let o=ze(r,n);i&&(o=o.childNodes[i]);let s=An(o);return this.breakAt(s)}textBreak(t,n,r,i,o){let s=rS(t),a=0,l=0,u=0,c=0,p,d,f,g,h;for(;!f&&(d=s.next(),p=d.value,f=d.done,!!p);){if(g=Ka(p),a=Math.floor(g.left),l=Math.floor(g.right),u=Math.floor(g.top),c=Math.floor(g.bottom),a>=r||u>=o){h=p.startOffset;break}if(l>r||c>o){let y=iS(p),m,v,S;for(;!S&&(v=y.next(),m=v.value,S=v.done,!!m);)if(g=Ka(m),a=Math.floor(g.left),u=Math.floor(g.top),a>=r||u>=o){h=m.startOffset,f=!0;break}}}return h}removeOverflow(t,n){let{startContainer:r}=t,i=t.extractContents();return this.hyphenateAtBreak(r,n),i}hyphenateAtBreak(t,n){if(cn(t)){let r=t.textContent,i=r[r.length-1];(n&&/^\w|\u00AD$/.test(i)&&/^\w|\u00AD$/.test(n)||!n&&/^\w|\u00AD$/.test(i))&&(t.parentNode.classList.add("pagedjs_hyphen"),t.textContent+=this.settings.hyphenGlyph||"\u2011")}}equalTokens(t,n){return!(!t||!n||t.node&&n.node&&t.node!==n.node||t.offset&&n.offset&&t.offset!==n.offset)}};(0,JS.default)(gl.prototype);var yl=gl;var XS=ye(On(),1);var vl=class{constructor(t,n,r,i,o){this.pagesArea=t,this.pageTemplate=n,this.blank=r,this.width=void 0,this.height=void 0,this.hooks=i,this.settings=o||{}}create(t,n){let r=document.importNode(this.pageTemplate.content,!0),i,o;n?(this.pagesArea.insertBefore(r,n.nextElementSibling),o=Array.prototype.indexOf.call(this.pagesArea.children,n.nextElementSibling),i=this.pagesArea.children[o]):(this.pagesArea.appendChild(r),i=this.pagesArea.lastChild);let s=i.querySelector(".pagedjs_pagebox"),a=i.querySelector(".pagedjs_page_content"),l=i.querySelector(".pagedjs_footnote_area"),u=a.getBoundingClientRect();return a.style.columnWidth=Math.round(u.width)+"px",a.style.columnGap="calc(var(--pagedjs-margin-right) + var(--pagedjs-margin-left) + var(--pagedjs-bleed-right) + var(--pagedjs-bleed-left) + var(--pagedjs-column-gap-offset))",this.width=Math.round(u.width),this.height=Math.round(u.height),this.element=i,this.pagebox=s,this.area=a,this.footnotesArea=l,i}createWrapper(){let t=document.createElement("div");return this.area.appendChild(t),this.wrapper=t,t}index(t){this.position=t;let n=this.element,r=t+1,i=`page-${r}`;this.id=i,n.dataset.pageNumber=r,n.setAttribute("id",i),this.name&&n.classList.add("pagedjs_"+this.name+"_page"),this.blank&&n.classList.add("pagedjs_blank_page"),t===0&&n.classList.add("pagedjs_first_page"),t%2!==1?(n.classList.remove("pagedjs_left_page"),n.classList.add("pagedjs_right_page")):(n.classList.remove("pagedjs_right_page"),n.classList.add("pagedjs_left_page"))}layout(t,n,r){return le(this,null,function*(){this.clear(),this.startToken=n;let i=this.settings;!i.maxChars&&r&&(i.maxChars=r),this.layoutMethod=new yl(this.area,this.hooks,i);let s=(yield this.layoutMethod.renderTo(this.wrapper,t,n)).breakToken;return this.addListeners(t),this.endToken=s,s})}append(t,n){return le(this,null,function*(){if(!this.layoutMethod)return this.layout(t,n);let i=(yield this.layoutMethod.renderTo(this.wrapper,t,n)).breakToken;return this.endToken=i,i})}getByParent(t,n){let r;for(var i=0;i<n.length;i++)if(r=n[i],r.dataset.ref===t)return r}onOverflow(t){this._onOverflow=t}onUnderflow(t){this._onUnderflow=t}clear(){this.removeListeners(),this.wrapper&&this.wrapper.remove(),this.createWrapper()}addListeners(t){return typeof ResizeObserver<"u"?this.addResizeObserver(t):(this._checkOverflowAfterResize=this.checkOverflowAfterResize.bind(this,t),this.element.addEventListener("overflow",this._checkOverflowAfterResize,!1),this.element.addEventListener("underflow",this._checkOverflowAfterResize,!1)),this._onScroll=function(){this.listening&&(this.element.scrollLeft=0)}.bind(this),this.element.addEventListener("scroll",this._onScroll),this.listening=!0,!0}removeListeners(){this.listening=!1,typeof ResizeObserver<"u"&&this.ro?this.ro.disconnect():this.element&&(this.element.removeEventListener("overflow",this._checkOverflowAfterResize,!1),this.element.removeEventListener("underflow",this._checkOverflowAfterResize,!1)),this.element&&this.element.removeEventListener("scroll",this._onScroll)}addResizeObserver(t){let n=this.wrapper,r=n.getBoundingClientRect().height;this.ro=new ResizeObserver(i=>{this.listening&&requestAnimationFrame(()=>{for(let o of i){let s=o.contentRect;s.height>r?(this.checkOverflowAfterResize(t),r=n.getBoundingClientRect().height):s.height<r&&(this.checkUnderflowAfterResize(t),r=s.height)}})}),this.ro.observe(n)}checkOverflowAfterResize(t){if(!this.listening||!this.layoutMethod)return;let n=this.layoutMethod.findBreakToken(this.wrapper,t,this.startToken);n&&(this.endToken=n,this._onOverflow&&this._onOverflow(n))}checkUnderflowAfterResize(t){if(!this.listening||!this.layoutMethod)return;let n=this.layoutMethod.findEndToken(this.wrapper,t);n&&this._onUnderflow&&this._onUnderflow(n)}destroy(){this.removeListeners(),this.element.remove(),this.element=void 0,this.wrapper=void 0}};(0,XS.default)(vl.prototype);var of=vl;var sf=class{constructor(t,n){return t&&t.nodeType?this.dom=this.add(t):typeof t=="string"&&(this.dom=this.parse(t)),this.dom}parse(t,n){let i=document.createRange().createContextualFragment(t);return this.addRefs(i),i}add(t){return this.addRefs(t),t}addRefs(t){var n=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,null,!1);let r=n.nextNode();for(;r;){if(!r.hasAttribute("data-ref")){let i=Ze();r.setAttribute("data-ref",i)}r.id&&r.setAttribute("data-id",r.id),r=n.nextNode()}}find(t){return this.refs[t]}destroy(){this.refs=void 0,this.dom=void 0}},ex=sf;var ix=ye(On(),1);var af=class{constructor(t){this._q=[],this.context=t,this.tick=requestAnimationFrame,this.running=!1,this.paused=!1}enqueue(){var t,n,r,i=[].shift.call(arguments),o=arguments;if(!i)throw new Error("No Task Provided");return typeof i=="function"?(t=new el,n=t.promise,r={task:i,args:o,deferred:t,promise:n}):r={promise:i},this._q.push(r),this.paused==!1&&!this.running&&this.run(),r.promise}dequeue(){var t,n,r;if(this._q.length&&!this.paused){if(t=this._q.shift(),n=t.task,n)return r=n.apply(this.context,t.args),r&&typeof r.then=="function"?r.then(function(){t.deferred.resolve.apply(this.context,arguments)}.bind(this),function(){t.deferred.reject.apply(this.context,arguments)}.bind(this)):(t.deferred.resolve.apply(this.context,r),t.promise);if(t.promise)return t.promise}else return t=new el,t.deferred.resolve(),t.promise}dump(){for(;this._q.length;)this.dequeue()}run(){return this.running||(this.running=!0,this.defered=new el),this.tick.call(window,()=>{this._q.length?this.dequeue().then(function(){this.run()}.bind(this)):(this.defered.resolve(),this.running=void 0)}),this.paused==!0&&(this.paused=!1),this.defered.promise}flush(){if(this.running)return this.running;if(this._q.length)return this.running=this.dequeue().then(function(){return this.running=void 0,this.flush()}.bind(this)),this.running}clear(){this._q=[]}length(){return this._q.length}pause(){this.paused=!0}stop(){this._q=[],this.running=!1,this.paused=!0}};var tx=af;var nx=!1,rx=!1,gL=`
60
+ `)}`}function Or(e,t){let n=e.hasOwnProperty(Vs);return n?e[Vs]:null}function Xk(e,t,n){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++){let i=e[r],o=t[r];if(n&&(i=n(i),o=n(o)),o!==i)return!1}return!0}function eA(e){return e.flat(Number.POSITIVE_INFINITY)}function ud(e,t){e.forEach(n=>Array.isArray(n)?ud(n,t):t(n))}function Bg(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function Hs(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}var $i={},Nr=[],Rr=new $(""),Wg=new $("",-1),qg=new $(""),$s=class{get(t,n=Hi){if(n===Hi){let r=new Error(`NullInjectorError: No provider for ${ot(t)}!`);throw r.name="NullInjectorError",r}return n}},Vg=function(e){return e[e.OnPush=0]="OnPush",e[e.Default=1]="Default",e}(Vg||{}),Vt=function(e){return e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e}(Vt||{}),Dn=function(e){return e[e.None=0]="None",e[e.SignalBased=1]="SignalBased",e[e.HasDecoratorInputTransform=2]="HasDecoratorInputTransform",e}(Dn||{});function tA(e,t,n){let r=e.length;for(;;){let i=e.indexOf(t,n);if(i===-1)return i;if(i===0||e.charCodeAt(i-1)<=32){let o=t.length;if(i+o===r||e.charCodeAt(i+o)<=32)return i}n=i+1}}function mc(e,t,n){let r=0;for(;r<n.length;){let i=n[r];if(typeof i=="number"){if(i!==0)break;r++;let o=n[r++],s=n[r++],a=n[r++];e.setAttribute(t,s,a,o)}else{let o=i,s=n[++r];rA(o)?e.setProperty(t,o,s):e.setAttribute(t,o,s),r++}}return r}function nA(e){return e===3||e===4||e===6}function rA(e){return e.charCodeAt(0)===64}function cd(e,t){if(!(t===null||t.length===0))if(e===null||e.length===0)e=t.slice();else{let n=-1;for(let r=0;r<t.length;r++){let i=t[r];typeof i=="number"?n=i:n===0||(n===-1||n===2?ig(e,n,i,null,t[++r]):ig(e,n,i,null,null))}}return e}function ig(e,t,n,r,i){let o=0,s=e.length;if(t===-1)s=-1;else for(;o<e.length;){let a=e[o++];if(typeof a=="number"){if(a===t){s=-1;break}else if(a>t){s=o-1;break}}}for(;o<e.length;){let a=e[o];if(typeof a=="number")break;if(a===n){if(r===null){i!==null&&(e[o+1]=i);return}else if(r===e[o+1]){e[o+2]=i;return}}o++,r!==null&&o++,i!==null&&o++}s!==-1&&(e.splice(s,0,t),o=s+1),e.splice(o++,0,n),r!==null&&e.splice(o++,0,r),i!==null&&e.splice(o++,0,i)}var Ug="ng-template";function iA(e,t,n,r){let i=0;if(r){for(;i<t.length&&typeof t[i]=="string";i+=2)if(t[i]==="class"&&tA(t[i+1].toLowerCase(),n,0)!==-1)return!0}else if(dd(e))return!1;if(i=t.indexOf(1,i),i>-1){let o;for(;++i<t.length&&typeof(o=t[i])=="string";)if(o.toLowerCase()===n)return!0}return!1}function dd(e){return e.type===4&&e.value!==Ug}function oA(e,t,n){let r=e.type===4&&!n?Ug:e.value;return t===r}function sA(e,t,n){let r=4,i=e.attrs,o=i!==null?uA(i):0,s=!1;for(let a=0;a<t.length;a++){let l=t[a];if(typeof l=="number"){if(!s&&!At(r)&&!At(l))return!1;if(s&&At(l))continue;s=!1,r=l|r&1;continue}if(!s)if(r&4){if(r=2|r&1,l!==""&&!oA(e,l,n)||l===""&&t.length===1){if(At(r))return!1;s=!0}}else if(r&8){if(i===null||!iA(e,i,l,n)){if(At(r))return!1;s=!0}}else{let u=t[++a],c=aA(l,i,dd(e),n);if(c===-1){if(At(r))return!1;s=!0;continue}if(u!==""){let p;if(c>o?p="":p=i[c+1].toLowerCase(),r&2&&u!==p){if(At(r))return!1;s=!0}}}}return At(r)||s}function At(e){return(e&1)===0}function aA(e,t,n,r){if(t===null)return-1;let i=0;if(r||!n){let o=!1;for(;i<t.length;){let s=t[i];if(s===e)return i;if(s===3||s===6)o=!0;else if(s===1||s===2){let a=t[++i];for(;typeof a=="string";)a=t[++i];continue}else{if(s===4)break;if(s===0){i+=4;continue}}i+=o?1:2}return-1}else return cA(t,e)}function lA(e,t,n=!1){for(let r=0;r<t.length;r++)if(sA(e,t[r],n))return!0;return!1}function uA(e){for(let t=0;t<e.length;t++){let n=e[t];if(nA(n))return t}return e.length}function cA(e,t){let n=e.indexOf(4);if(n>-1)for(n++;n<e.length;){let r=e[n];if(typeof r=="number")return-1;if(r===t)return n;n++}return-1}function og(e,t){return e?":not("+t.trim()+")":t}function dA(e){let t=e[0],n=1,r=2,i="",o=!1;for(;n<e.length;){let s=e[n];if(typeof s=="string")if(r&2){let a=e[++n];i+="["+s+(a.length>0?'="'+a+'"':"")+"]"}else r&8?i+="."+s:r&4&&(i+=" "+s);else i!==""&&!At(s)&&(t+=og(o,i),i=""),r=s,o=o||!At(r);n++}return i!==""&&(t+=og(o,i)),t}function pA(e){return e.map(dA).join(",")}function fA(e){let t=[],n=[],r=1,i=2;for(;r<e.length;){let o=e[r];if(typeof o=="string")i===2?o!==""&&t.push(o,e[++r]):i===8&&n.push(o);else{if(!At(i))break;i=o}r++}return{attrs:t,classes:n}}function pe(e){return ad(()=>{let t=Zg(e),n=be(O({},t),{decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===Vg.OnPush,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&e.dependencies||null,getStandaloneInjector:null,signals:e.signals??!1,data:e.data||{},encapsulation:e.encapsulation||Vt.Emulated,styles:e.styles||Nr,_:null,schemas:e.schemas||null,tView:null,id:""});Qg(n);let r=e.dependencies;return n.directiveDefs=ag(r,!1),n.pipeDefs=ag(r,!0),n.id=gA(n),n})}function hA(e){return $n(e)||Hg(e)}function mA(e){return e!==null}function sg(e,t){if(e==null)return $i;let n={};for(let r in e)if(e.hasOwnProperty(r)){let i=e[r],o,s,a=Dn.None;Array.isArray(i)?(a=i[0],o=i[1],s=i[2]??o):(o=i,s=i),t?(n[o]=a!==Dn.None?[r,a]:r,t[o]=s):n[o]=r}return n}function ro(e){return ad(()=>{let t=Zg(e);return Qg(t),t})}function $n(e){return e[jk]||null}function Hg(e){return e[Fk]||null}function $g(e){return e[zk]||null}function Gg(e){let t=$n(e)||Hg(e)||$g(e);return t!==null?t.standalone:!1}function Yg(e,t){let n=e[Bk]||null;if(!n&&t===!0)throw new Error(`Type ${ot(e)} does not have '\u0275mod' property.`);return n}function Zg(e){let t={};return{type:e.type,providersResolver:null,factory:null,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,inputTransforms:null,inputConfig:e.inputs||$i,exportAs:e.exportAs||null,standalone:e.standalone===!0,signals:e.signals===!0,selectors:e.selectors||Nr,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:sg(e.inputs,t),outputs:sg(e.outputs),debugInfo:null}}function Qg(e){e.features?.forEach(t=>t(e))}function ag(e,t){if(!e)return null;let n=t?$g:hA;return()=>(typeof e=="function"?e():e).map(r=>n(r)).filter(mA)}function gA(e){let t=0,n=[e.selectors,e.ngContentSelectors,e.hostVars,e.hostAttrs,e.consts,e.vars,e.decls,e.encapsulation,e.standalone,e.signals,e.exportAs,JSON.stringify(e.inputs),JSON.stringify(e.outputs),Object.getOwnPropertyNames(e.type.prototype),!!e.contentQueries,!!e.viewQuery].join("|");for(let i of n)t=Math.imul(31,t)+i.charCodeAt(0)<<0;return t+=2147483648,"c"+t}function ca(e){return{\u0275providers:e}}function yA(...e){return{\u0275providers:Kg(!0,e),\u0275fromNgModule:!0}}function Kg(e,...t){let n=[],r=new Set,i,o=s=>{n.push(s)};return ud(t,s=>{let a=s;gc(a,o,[],r)&&(i||=[],i.push(a))}),i!==void 0&&Jg(i,o),n}function Jg(e,t){for(let n=0;n<e.length;n++){let{ngModule:r,providers:i}=e[n];pd(i,o=>{t(o,r)})}}function gc(e,t,n,r){if(e=gt(e),!e)return!1;let i=null,o=eg(e),s=!o&&$n(e);if(!o&&!s){let l=e.ngModule;if(o=eg(l),o)i=l;else return!1}else{if(s&&!s.standalone)return!1;i=e}let a=r.has(i);if(s){if(a)return!1;if(r.add(i),s.dependencies){let l=typeof s.dependencies=="function"?s.dependencies():s.dependencies;for(let u of l)gc(u,t,n,r)}}else if(o){if(o.imports!=null&&!a){r.add(i);let u;try{ud(o.imports,c=>{gc(c,t,n,r)&&(u||=[],u.push(c))})}finally{}u!==void 0&&Jg(u,t)}if(!a){let u=Or(i)||(()=>new i);t({provide:i,useFactory:u,deps:Nr},i),t({provide:qg,useValue:i,multi:!0},i),t({provide:Rr,useValue:()=>ee(i),multi:!0},i)}let l=o.providers;if(l!=null&&!a){let u=e;pd(l,c=>{t(c,u)})}}else return!1;return i!==e&&e.providers!==void 0}function pd(e,t){for(let n of e)jg(n)&&(n=n.\u0275providers),Array.isArray(n)?pd(n,t):t(n)}var vA=ce({provide:String,useValue:ce});function Xg(e){return e!==null&&typeof e=="object"&&vA in e}function bA(e){return!!(e&&e.useExisting)}function SA(e){return!!(e&&e.useFactory)}function yc(e){return typeof e=="function"}var da=new $(""),js={},xA={},ic;function fd(){return ic===void 0&&(ic=new $s),ic}var vt=class{},Gi=class extends vt{get destroyed(){return this._destroyed}constructor(t,n,r,i){super(),this.parent=n,this.source=r,this.scopes=i,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,bc(t,s=>this.processProvider(s)),this.records.set(Wg,_r(void 0,this)),i.has("environment")&&this.records.set(vt,_r(void 0,this));let o=this.records.get(da);o!=null&&typeof o.value=="string"&&this.scopes.add(o.value),this.injectorDefTypes=new Set(this.get(qg,Nr,Y.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;let t=ie(null);try{for(let r of this._ngOnDestroyHooks)r.ngOnDestroy();let n=this._onDestroyHooks;this._onDestroyHooks=[];for(let r of n)r()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),ie(t)}}onDestroy(t){return this.assertNotDestroyed(),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){this.assertNotDestroyed();let n=wn(this),r=mt(void 0),i;try{return t()}finally{wn(n),mt(r)}}get(t,n=Hi,r=Y.Default){if(this.assertNotDestroyed(),t.hasOwnProperty(ng))return t[ng](this);r=ua(r);let i,o=wn(this),s=mt(void 0);try{if(!(r&Y.SkipSelf)){let l=this.records.get(t);if(l===void 0){let u=_A(t)&&la(t);u&&this.injectableDefInScope(u)?l=_r(vc(t),js):l=null,this.records.set(t,l)}if(l!=null)return this.hydrate(t,l)}let a=r&Y.Self?fd():this.parent;return n=r&Y.Optional&&n===Hi?null:n,a.get(t,n)}catch(a){if(a.name==="NullInjectorError"){if((a[Us]=a[Us]||[]).unshift(ot(t)),o)throw a;return Kk(a,t,"R3InjectorError",this.source)}else throw a}finally{mt(s),wn(o)}}resolveInjectorInitializers(){let t=ie(null),n=wn(this),r=mt(void 0),i;try{let o=this.get(Rr,Nr,Y.Self);for(let s of o)s()}finally{wn(n),mt(r),ie(t)}}toString(){let t=[],n=this.records;for(let r of n.keys())t.push(ot(r));return`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new L(205,!1)}processProvider(t){t=gt(t);let n=yc(t)?t:gt(t&&t.provide),r=CA(t);if(!yc(t)&&t.multi===!0){let i=this.records.get(n);i||(i=_r(void 0,js,!0),i.factory=()=>hc(i.multi),this.records.set(n,i)),n=t,i.multi.push(t)}this.records.set(n,r)}hydrate(t,n){let r=ie(null);try{return n.value===js&&(n.value=xA,n.value=n.factory()),typeof n.value=="object"&&n.value&&TA(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}finally{ie(r)}}injectableDefInScope(t){if(!t.providedIn)return!1;let n=gt(t.providedIn);return typeof n=="string"?n==="any"||this.scopes.has(n):this.injectorDefTypes.has(n)}removeOnDestroy(t){let n=this._onDestroyHooks.indexOf(t);n!==-1&&this._onDestroyHooks.splice(n,1)}};function vc(e){let t=la(e),n=t!==null?t.factory:Or(e);if(n!==null)return n;if(e instanceof $)throw new L(204,!1);if(e instanceof Function)return wA(e);throw new L(204,!1)}function wA(e){if(e.length>0)throw new L(204,!1);let n=Pk(e);return n!==null?()=>n.factory(e):()=>new e}function CA(e){if(Xg(e))return _r(void 0,e.useValue);{let t=EA(e);return _r(t,js)}}function EA(e,t,n){let r;if(yc(e)){let i=gt(e);return Or(i)||vc(i)}else if(Xg(e))r=()=>gt(e.useValue);else if(SA(e))r=()=>e.useFactory(...hc(e.deps||[]));else if(bA(e))r=()=>ee(gt(e.useExisting));else{let i=gt(e&&(e.useClass||e.provide));if(DA(e))r=()=>new i(...hc(e.deps));else return Or(i)||vc(i)}return r}function _r(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function DA(e){return!!e.deps}function TA(e){return e!==null&&typeof e=="object"&&typeof e.ngOnDestroy=="function"}function _A(e){return typeof e=="function"||typeof e=="object"&&e instanceof $}function bc(e,t){for(let n of e)Array.isArray(n)?bc(n,t):n&&jg(n)?bc(n.\u0275providers,t):t(n)}function rn(e,t){e instanceof Gi&&e.assertNotDestroyed();let n,r=wn(e),i=mt(void 0);try{return t()}finally{wn(r),mt(i)}}function IA(){return Fg()!==void 0||Yk()!=null}function kA(e){return typeof e=="function"}var on=0,U=1,j=2,Ve=3,Mt=4,Nt=5,Yi=6,Sc=7,Xe=8,Pr=9,Ut=10,st=11,Zi=12,lg=13,Vr=14,Ot=15,Gn=16,Ir=17,en=18,pa=19,ey=20,En=21,oc=22,yt=23,at=25,ty=1;var Yn=7,Gs=8,Lr=9,qe=10,Ys=function(e){return e[e.None=0]="None",e[e.HasTransplantedViews=2]="HasTransplantedViews",e}(Ys||{});function Un(e){return Array.isArray(e)&&typeof e[ty]=="object"}function sn(e){return Array.isArray(e)&&e[ty]===!0}function ny(e){return(e.flags&4)!==0}function fa(e){return e.componentOffset>-1}function ry(e){return(e.flags&1)===1}function io(e){return!!e.template}function xc(e){return(e[j]&512)!==0}var wc=class{constructor(t,n,r){this.previousValue=t,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}};function iy(e,t,n,r){t!==null?t.applyValueToInputSignal(t,r):e[n]=r}function _n(){return oy}function oy(e){return e.type.prototype.ngOnChanges&&(e.setInput=MA),AA}_n.ngInherit=!0;function AA(){let e=ay(this),t=e?.current;if(t){let n=e.previous;if(n===$i)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function MA(e,t,n,r,i){let o=this.declaredInputs[r],s=ay(e)||OA(e,{previous:$i,current:null}),a=s.current||(s.current={}),l=s.previous,u=l[o];a[o]=new wc(u&&u.currentValue,n,l===$i),iy(e,t,i,n)}var sy="__ngSimpleChanges__";function ay(e){return e[sy]||null}function OA(e,t){return e[sy]=t}var ug=null;var Cn=function(e,t,n){ug?.(e,t,n)},NA="svg",RA="math";function tn(e){for(;Array.isArray(e);)e=e[on];return e}function PA(e,t){return tn(t[e])}function Ht(e,t){return tn(t[e.index])}function hd(e,t){return e.data[t]}function LA(e,t){return e[t]}function Ur(e,t){let n=t[e];return Un(n)?n:n[on]}function jA(e){return(e[j]&4)===4}function md(e){return(e[j]&128)===128}function FA(e){return sn(e[Ve])}function jr(e,t){return t==null?null:e[t]}function ly(e){e[Ir]=0}function uy(e){e[j]&1024||(e[j]|=1024,md(e)&&ma(e))}function zA(e,t){for(;e>0;)t=t[Vr],e--;return t}function ha(e){return!!(e[j]&9216||e[yt]?.dirty)}function Cc(e){e[Ut].changeDetectionScheduler?.notify(8),e[j]&64&&(e[j]|=1024),ha(e)&&ma(e)}function ma(e){e[Ut].changeDetectionScheduler?.notify(0);let t=Zn(e);for(;t!==null&&!(t[j]&8192||(t[j]|=8192,!md(t)));)t=Zn(t)}function cy(e,t){if((e[j]&256)===256)throw new L(911,!1);e[En]===null&&(e[En]=[]),e[En].push(t)}function BA(e,t){if(e[En]===null)return;let n=e[En].indexOf(t);n!==-1&&e[En].splice(n,1)}function Zn(e){let t=e[Ve];return sn(t)?t[Ve]:t}var K={lFrame:by(null),bindingsEnabled:!0,skipHydrationRootTNode:null};var dy=!1;function WA(){return K.lFrame.elementDepthCount}function qA(){K.lFrame.elementDepthCount++}function VA(){K.lFrame.elementDepthCount--}function py(){return K.bindingsEnabled}function UA(){return K.skipHydrationRootTNode!==null}function HA(e){return K.skipHydrationRootTNode===e}function $A(){K.skipHydrationRootTNode=null}function de(){return K.lFrame.lView}function Rt(){return K.lFrame.tView}function $t(){let e=fy();for(;e!==null&&e.type===64;)e=e.parent;return e}function fy(){return K.lFrame.currentTNode}function GA(){let e=K.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}function Hr(e,t){let n=K.lFrame;n.currentTNode=e,n.isParent=t}function hy(){return K.lFrame.isParent}function YA(){K.lFrame.isParent=!1}function ZA(){return K.lFrame.contextLView}function my(){return dy}function cg(e){dy=e}function QA(){return K.lFrame.bindingIndex}function KA(e){return K.lFrame.bindingIndex=e}function ga(){return K.lFrame.bindingIndex++}function JA(e){let t=K.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function XA(){return K.lFrame.inI18n}function eM(e,t){let n=K.lFrame;n.bindingIndex=n.bindingRootIndex=e,Ec(t)}function tM(){return K.lFrame.currentDirectiveIndex}function Ec(e){K.lFrame.currentDirectiveIndex=e}function gy(){return K.lFrame.currentQueryIndex}function gd(e){K.lFrame.currentQueryIndex=e}function nM(e){let t=e[U];return t.type===2?t.declTNode:t.type===1?e[Nt]:null}function yy(e,t,n){if(n&Y.SkipSelf){let i=t,o=e;for(;i=i.parent,i===null&&!(n&Y.Host);)if(i=nM(o),i===null||(o=o[Vr],i.type&10))break;if(i===null)return!1;t=i,e=o}let r=K.lFrame=vy();return r.currentTNode=t,r.lView=e,!0}function yd(e){let t=vy(),n=e[U];K.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function vy(){let e=K.lFrame,t=e===null?null:e.child;return t===null?by(e):t}function by(e){let t={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null,inI18n:!1};return e!==null&&(e.child=t),t}function Sy(){let e=K.lFrame;return K.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}var xy=Sy;function vd(){let e=Sy();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function rM(e){return(K.lFrame.contextLView=zA(e,K.lFrame.contextLView))[Xe]}function $r(){return K.lFrame.selectedIndex}function Qn(e){K.lFrame.selectedIndex=e}function iM(){let e=K.lFrame;return hd(e.tView,e.selectedIndex)}function oM(){return K.lFrame.currentNamespace}var wy=!0;function bd(){return wy}function Sd(e){wy=e}function sM(e,t,n){let{ngOnChanges:r,ngOnInit:i,ngDoCheck:o}=t.type.prototype;if(r){let s=oy(t);(n.preOrderHooks??=[]).push(e,s),(n.preOrderCheckHooks??=[]).push(e,s)}i&&(n.preOrderHooks??=[]).push(0-e,i),o&&((n.preOrderHooks??=[]).push(e,o),(n.preOrderCheckHooks??=[]).push(e,o))}function xd(e,t){for(let n=t.directiveStart,r=t.directiveEnd;n<r;n++){let o=e.data[n].type.prototype,{ngAfterContentInit:s,ngAfterContentChecked:a,ngAfterViewInit:l,ngAfterViewChecked:u,ngOnDestroy:c}=o;s&&(e.contentHooks??=[]).push(-n,s),a&&((e.contentHooks??=[]).push(n,a),(e.contentCheckHooks??=[]).push(n,a)),l&&(e.viewHooks??=[]).push(-n,l),u&&((e.viewHooks??=[]).push(n,u),(e.viewCheckHooks??=[]).push(n,u)),c!=null&&(e.destroyHooks??=[]).push(n,c)}}function Fs(e,t,n){Cy(e,t,3,n)}function zs(e,t,n,r){(e[j]&3)===n&&Cy(e,t,n,r)}function sc(e,t){let n=e[j];(n&3)===t&&(n&=16383,n+=1,e[j]=n)}function Cy(e,t,n,r){let i=r!==void 0?e[Ir]&65535:0,o=r??-1,s=t.length-1,a=0;for(let l=i;l<s;l++)if(typeof t[l+1]=="number"){if(a=t[l],r!=null&&a>=r)break}else t[l]<0&&(e[Ir]+=65536),(a<o||o==-1)&&(aM(e,n,t,l),e[Ir]=(e[Ir]&4294901760)+l+2),l++}function dg(e,t){Cn(4,e,t);let n=ie(null);try{t.call(e)}finally{ie(n),Cn(5,e,t)}}function aM(e,t,n,r){let i=n[r]<0,o=n[r+1],s=i?-n[r]:n[r],a=e[s];i?e[j]>>14<e[Ir]>>16&&(e[j]&3)===t&&(e[j]+=16384,dg(a,o)):dg(a,o)}var Mr=-1,Qi=class{constructor(t,n,r){this.factory=t,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=r}};function lM(e){return e instanceof Qi}function uM(e){return(e.flags&8)!==0}function cM(e){return(e.flags&16)!==0}var ac={},Dc=class{constructor(t,n){this.injector=t,this.parentInjector=n}get(t,n,r){r=ua(r);let i=this.injector.get(t,ac,r);return i!==ac||n===ac?i:this.parentInjector.get(t,n,r)}};function Ey(e){return e!==Mr}function Zs(e){return e&32767}function dM(e){return e>>16}function Qs(e,t){let n=dM(e),r=t;for(;n>0;)r=r[Vr],n--;return r}var Tc=!0;function pg(e){let t=Tc;return Tc=e,t}var pM=256,Dy=pM-1,Ty=5,fM=0,qt={};function hM(e,t,n){let r;typeof n=="string"?r=n.charCodeAt(0)||0:n.hasOwnProperty(Vi)&&(r=n[Vi]),r==null&&(r=n[Vi]=fM++);let i=r&Dy,o=1<<i;t.data[e+(i>>Ty)]|=o}function _y(e,t){let n=Iy(e,t);if(n!==-1)return n;let r=t[U];r.firstCreatePass&&(e.injectorIndex=t.length,lc(r.data,e),lc(t,null),lc(r.blueprint,null));let i=wd(e,t),o=e.injectorIndex;if(Ey(i)){let s=Zs(i),a=Qs(i,t),l=a[U].data;for(let u=0;u<8;u++)t[o+u]=a[s+u]|l[s+u]}return t[o+8]=i,o}function lc(e,t){e.push(0,0,0,0,0,0,0,0,t)}function Iy(e,t){return e.injectorIndex===-1||e.parent&&e.parent.injectorIndex===e.injectorIndex||t[e.injectorIndex+8]===null?-1:e.injectorIndex}function wd(e,t){if(e.parent&&e.parent.injectorIndex!==-1)return e.parent.injectorIndex;let n=0,r=null,i=t;for(;i!==null;){if(r=Ny(i),r===null)return Mr;if(n++,i=i[Vr],r.injectorIndex!==-1)return r.injectorIndex|n<<16}return Mr}function mM(e,t,n){hM(e,t,n)}function ky(e,t,n){if(n&Y.Optional||e!==void 0)return e;ld(t,"NodeInjector")}function Ay(e,t,n,r){if(n&Y.Optional&&r===void 0&&(r=null),!(n&(Y.Self|Y.Host))){let i=e[Pr],o=mt(void 0);try{return i?i.get(t,r,n&Y.Optional):zg(t,r,n&Y.Optional)}finally{mt(o)}}return ky(r,t,n)}function My(e,t,n,r=Y.Default,i){if(e!==null){if(t[j]&2048&&!(r&Y.Self)){let s=bM(e,t,n,r,qt);if(s!==qt)return s}let o=Oy(e,t,n,r,qt);if(o!==qt)return o}return Ay(t,n,r,i)}function Oy(e,t,n,r,i){let o=yM(n);if(typeof o=="function"){if(!yy(t,e,r))return r&Y.Host?ky(i,n,r):Ay(t,n,r,i);try{let s;if(s=o(r),s==null&&!(r&Y.Optional))ld(n);else return s}finally{xy()}}else if(typeof o=="number"){let s=null,a=Iy(e,t),l=Mr,u=r&Y.Host?t[Ot][Nt]:null;for((a===-1||r&Y.SkipSelf)&&(l=a===-1?wd(e,t):t[a+8],l===Mr||!hg(r,!1)?a=-1:(s=t[U],a=Zs(l),t=Qs(l,t)));a!==-1;){let c=t[U];if(fg(o,a,c.data)){let p=gM(a,t,n,s,r,u);if(p!==qt)return p}l=t[a+8],l!==Mr&&hg(r,t[U].data[a+8]===u)&&fg(o,a,t)?(s=c,a=Zs(l),t=Qs(l,t)):a=-1}}return i}function gM(e,t,n,r,i,o){let s=t[U],a=s.data[e+8],l=r==null?fa(a)&&Tc:r!=s&&(a.type&3)!==0,u=i&Y.Host&&o===a,c=Bs(a,s,n,l,u);return c!==null?Fr(t,s,c,a):qt}function Bs(e,t,n,r,i){let o=e.providerIndexes,s=t.data,a=o&1048575,l=e.directiveStart,u=e.directiveEnd,c=o>>20,p=r?a:a+c,d=i?a+c:u;for(let f=p;f<d;f++){let g=s[f];if(f<l&&n===g||f>=l&&g.type===n)return f}if(i){let f=s[l];if(f&&io(f)&&f.type===n)return l}return null}function Fr(e,t,n,r){let i=e[n],o=t.data;if(lM(i)){let s=i;s.resolving&&qk(Wk(o[n]));let a=pg(s.canSeeViewProviders);s.resolving=!0;let l,u=s.injectImpl?mt(s.injectImpl):null,c=yy(e,r,Y.Default);try{i=e[n]=s.factory(void 0,o,e,r),t.firstCreatePass&&n>=r.directiveStart&&sM(n,o[n],t)}finally{u!==null&&mt(u),pg(a),s.resolving=!1,xy()}}return i}function yM(e){if(typeof e=="string")return e.charCodeAt(0)||0;let t=e.hasOwnProperty(Vi)?e[Vi]:void 0;return typeof t=="number"?t>=0?t&Dy:vM:t}function fg(e,t,n){let r=1<<e;return!!(n[t+(e>>Ty)]&r)}function hg(e,t){return!(e&Y.Self)&&!(e&Y.Host&&t)}var Hn=class{constructor(t,n){this._tNode=t,this._lView=n}get(t,n,r){return My(this._tNode,this._lView,t,ua(r),n)}};function vM(){return new Hn($t(),de())}function Cd(e){return ad(()=>{let t=e.prototype.constructor,n=t[Vs]||_c(t),r=Object.prototype,i=Object.getPrototypeOf(e.prototype).constructor;for(;i&&i!==r;){let o=i[Vs]||_c(i);if(o&&o!==n)return o;i=Object.getPrototypeOf(i)}return o=>new o})}function _c(e){return Ng(e)?()=>{let t=_c(gt(e));return t&&t()}:Or(e)}function bM(e,t,n,r,i){let o=e,s=t;for(;o!==null&&s!==null&&s[j]&2048&&!(s[j]&512);){let a=Oy(o,s,n,r|Y.Self,qt);if(a!==qt)return a;let l=o.parent;if(!l){let u=s[ey];if(u){let c=u.get(n,qt,r);if(c!==qt)return c}l=Ny(s),s=s[Vr]}o=l}return i}function Ny(e){let t=e[U],n=t.type;return n===2?t.declTNode:n===1?e[Nt]:null}function mg(e,t=null,n=null,r){let i=Ry(e,t,n,r);return i.resolveInjectorInitializers(),i}function Ry(e,t=null,n=null,r,i=new Set){let o=[n||Nr,yA(e)];return r=r||(typeof e=="object"?void 0:ot(e)),new Gi(o,t||fd(),r||null,i)}var Kn=class e{static{this.THROW_IF_NOT_FOUND=Hi}static{this.NULL=new $s}static create(t,n){if(Array.isArray(t))return mg({name:""},n,t,"");{let r=t.name??"";return mg({name:r},t.parent,t.providers,r)}}static{this.\u0275prov=F({token:e,providedIn:"any",factory:()=>ee(Wg)})}static{this.__NG_ELEMENT_ID__=-1}};var SM=new $("");SM.__NG_ELEMENT_ID__=e=>{let t=$t();if(t===null)throw new L(204,!1);if(t.type&2)return t.value;if(e&Y.Optional)return null;throw new L(204,!1)};var xM="ngOriginalError";function uc(e){return e[xM]}var Py=!0,Ly=(()=>{class e{static{this.__NG_ELEMENT_ID__=wM}static{this.__NG_ENV_ID__=n=>n}}return e})(),Ic=class extends Ly{constructor(t){super(),this._lView=t}onDestroy(t){return cy(this._lView,t),()=>BA(this._lView,t)}};function wM(){return new Ic(de())}var Gr=(()=>{class e{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new Pe(!1)}get _hasPendingTasks(){return this.hasPendingTasks.value}add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);let n=this.taskId++;return this.pendingTasks.add(n),n}remove(n){this.pendingTasks.delete(n),this.pendingTasks.size===0&&this._hasPendingTasks&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1)}static{this.\u0275prov=F({token:e,providedIn:"root",factory:()=>new e})}}return e})();var kc=class extends Ye{constructor(t=!1){super(),this.destroyRef=void 0,this.pendingTasks=void 0,this.__isAsync=t,IA()&&(this.destroyRef=T(Ly,{optional:!0})??void 0,this.pendingTasks=T(Gr,{optional:!0})??void 0)}emit(t){let n=ie(null);try{super.next(t)}finally{ie(n)}}subscribe(t,n,r){let i=t,o=n||(()=>null),s=r;if(t&&typeof t=="object"){let l=t;i=l.next?.bind(l),o=l.error?.bind(l),s=l.complete?.bind(l)}this.__isAsync&&(o=this.wrapInTimeout(o),i&&(i=this.wrapInTimeout(i)),s&&(s=this.wrapInTimeout(s)));let a=super.subscribe({next:i,error:o,complete:s});return t instanceof De&&t.add(a),a}wrapInTimeout(t){return n=>{let r=this.pendingTasks?.add();setTimeout(()=>{t(n),r!==void 0&&this.pendingTasks?.remove(r)})}}},We=kc;function Ks(...e){}function jy(e){let t,n;function r(){e=Ks;try{n!==void 0&&typeof cancelAnimationFrame=="function"&&cancelAnimationFrame(n),t!==void 0&&clearTimeout(t)}catch{}}return t=setTimeout(()=>{e(),r()}),typeof requestAnimationFrame=="function"&&(n=requestAnimationFrame(()=>{e(),r()})),()=>r()}function gg(e){return queueMicrotask(()=>e()),()=>{e=Ks}}var Ed="isAngularZone",Js=Ed+"_ID",CM=0,Se=class e{constructor(t){this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new We(!1),this.onMicrotaskEmpty=new We(!1),this.onStable=new We(!1),this.onError=new We(!1);let{enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:r=!1,shouldCoalesceRunChangeDetection:i=!1,scheduleInRootZone:o=Py}=t;if(typeof Zone>"u")throw new L(908,!1);Zone.assertZonePatched();let s=this;s._nesting=0,s._outer=s._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(s._inner=s._inner.fork(new Zone.TaskTrackingZoneSpec)),n&&Zone.longStackTraceZoneSpec&&(s._inner=s._inner.fork(Zone.longStackTraceZoneSpec)),s.shouldCoalesceEventChangeDetection=!i&&r,s.shouldCoalesceRunChangeDetection=i,s.callbackScheduled=!1,s.scheduleInRootZone=o,TM(s)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get(Ed)===!0}static assertInAngularZone(){if(!e.isInAngularZone())throw new L(909,!1)}static assertNotInAngularZone(){if(e.isInAngularZone())throw new L(909,!1)}run(t,n,r){return this._inner.run(t,n,r)}runTask(t,n,r,i){let o=this._inner,s=o.scheduleEventTask("NgZoneEvent: "+i,t,EM,Ks,Ks);try{return o.runTask(s,n,r)}finally{o.cancelTask(s)}}runGuarded(t,n,r){return this._inner.runGuarded(t,n,r)}runOutsideAngular(t){return this._outer.run(t)}},EM={};function Dd(e){if(e._nesting==0&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function DM(e){if(e.isCheckStableRunning||e.callbackScheduled)return;e.callbackScheduled=!0;function t(){jy(()=>{e.callbackScheduled=!1,Ac(e),e.isCheckStableRunning=!0,Dd(e),e.isCheckStableRunning=!1})}e.scheduleInRootZone?Zone.root.run(()=>{t()}):e._outer.run(()=>{t()}),Ac(e)}function TM(e){let t=()=>{DM(e)},n=CM++;e._inner=e._inner.fork({name:"angular",properties:{[Ed]:!0,[Js]:n,[Js+n]:!0},onInvokeTask:(r,i,o,s,a,l)=>{if(_M(l))return r.invokeTask(o,s,a,l);try{return yg(e),r.invokeTask(o,s,a,l)}finally{(e.shouldCoalesceEventChangeDetection&&s.type==="eventTask"||e.shouldCoalesceRunChangeDetection)&&t(),vg(e)}},onInvoke:(r,i,o,s,a,l,u)=>{try{return yg(e),r.invoke(o,s,a,l,u)}finally{e.shouldCoalesceRunChangeDetection&&!e.callbackScheduled&&!IM(l)&&t(),vg(e)}},onHasTask:(r,i,o,s)=>{r.hasTask(o,s),i===o&&(s.change=="microTask"?(e._hasPendingMicrotasks=s.microTask,Ac(e),Dd(e)):s.change=="macroTask"&&(e.hasPendingMacrotasks=s.macroTask))},onHandleError:(r,i,o,s)=>(r.handleError(o,s),e.runOutsideAngular(()=>e.onError.emit(s)),!1)})}function Ac(e){e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&e.callbackScheduled===!0?e.hasPendingMicrotasks=!0:e.hasPendingMicrotasks=!1}function yg(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function vg(e){e._nesting--,Dd(e)}var Mc=class{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new We,this.onMicrotaskEmpty=new We,this.onStable=new We,this.onError=new We}run(t,n,r){return t.apply(n,r)}runGuarded(t,n,r){return t.apply(n,r)}runOutsideAngular(t){return t()}runTask(t,n,r,i){return t.apply(n,r)}};function _M(e){return Fy(e,"__ignore_ng_zone__")}function IM(e){return Fy(e,"__scheduler_tick__")}function Fy(e,t){return!Array.isArray(e)||e.length!==1?!1:e[0]?.data?.[t]===!0}var nn=class{constructor(){this._console=console}handleError(t){let n=this._findOriginalError(t);this._console.error("ERROR",t),n&&this._console.error("ORIGINAL ERROR",n)}_findOriginalError(t){let n=t&&uc(t);for(;n&&uc(n);)n=uc(n);return n||null}},kM=new $("",{providedIn:"root",factory:()=>{let e=T(Se),t=T(nn);return n=>e.runOutsideAngular(()=>t.handleError(n))}});function AM(){return Yr($t(),de())}function Yr(e,t){return new an(Ht(e,t))}var an=(()=>{class e{constructor(n){this.nativeElement=n}static{this.__NG_ELEMENT_ID__=AM}}return e})();function MM(e){return e instanceof an?e.nativeElement:e}function OM(){return this._results[Symbol.iterator]()}var Oc=class e{get changes(){return this._changes??=new We}constructor(t=!1){this._emitDistinctChangesOnly=t,this.dirty=!0,this._onDirty=void 0,this._results=[],this._changesDetected=!1,this._changes=void 0,this.length=0,this.first=void 0,this.last=void 0;let n=e.prototype;n[Symbol.iterator]||(n[Symbol.iterator]=OM)}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,n){return this._results.reduce(t,n)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,n){this.dirty=!1;let r=eA(t);(this._changesDetected=!Xk(this._results,r,n))&&(this._results=r,this.length=r.length,this.last=r[this.length-1],this.first=r[0])}notifyOnChanges(){this._changes!==void 0&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}onDirty(t){this._onDirty=t}setDirty(){this.dirty=!0,this._onDirty?.()}destroy(){this._changes!==void 0&&(this._changes.complete(),this._changes.unsubscribe())}};function zy(e){return(e.flags&128)===128}var By=new Map,NM=0;function RM(){return NM++}function PM(e){By.set(e[pa],e)}function Nc(e){By.delete(e[pa])}var bg="__ngContext__";function Jn(e,t){Un(t)?(e[bg]=t[pa],PM(t)):e[bg]=t}function Wy(e){return Vy(e[Zi])}function qy(e){return Vy(e[Mt])}function Vy(e){for(;e!==null&&!sn(e);)e=e[Mt];return e}var Rc;function Uy(e){Rc=e}function LM(){if(Rc!==void 0)return Rc;if(typeof document<"u")return document;throw new L(210,!1)}var Td=new $("",{providedIn:"root",factory:()=>jM}),jM="ng",_d=new $(""),Zr=new $("",{providedIn:"platform",factory:()=>"unknown"});var Id=new $("",{providedIn:"root",factory:()=>LM().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});var FM="h",zM="b";var BM=()=>null;function kd(e,t,n=!1){return BM(e,t,n)}var Hy=!1,WM=new $("",{providedIn:"root",factory:()=>Hy});var Xs=class{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${Mg})`}};function Ad(e){return e instanceof Xs?e.changingThisBreaksApplicationSecurity:e}function $y(e,t){let n=qM(e);if(n!=null&&n!==t){if(n==="ResourceURL"&&t==="URL")return!0;throw new Error(`Required a safe ${t}, got a ${n} (see ${Mg})`)}return n===t}function qM(e){return e instanceof Xs&&e.getTypeName()||null}var VM=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function Gy(e){return e=String(e),e.match(VM)?e:"unsafe:"+e}var Md=function(e){return e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL",e}(Md||{});function et(e){let t=UM();return t?t.sanitize(Md.URL,e)||"":$y(e,"URL")?Ad(e):Gy(Ui(e))}function UM(){let e=de();return e&&e[Ut].sanitizer}function Yy(e){return e instanceof Function?e():e}var er=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}(er||{}),HM;function Od(e,t){return HM(e,t)}function kr(e,t,n,r,i){if(r!=null){let o,s=!1;sn(r)?o=r:Un(r)&&(s=!0,r=r[on]);let a=tn(r);e===0&&n!==null?i==null?Jy(t,n,a):ea(t,n,a,i||null,!0):e===1&&n!==null?ea(t,n,a,i||null,!0):e===2?sO(t,a,s):e===3&&t.destroyNode(a),o!=null&&lO(t,e,o,n,i)}}function $M(e,t){return e.createText(t)}function GM(e,t,n){e.setValue(t,n)}function Zy(e,t,n){return e.createElement(t,n)}function YM(e,t){Qy(e,t),t[on]=null,t[Nt]=null}function ZM(e,t,n,r,i,o){r[on]=i,r[Nt]=t,va(e,r,n,1,i,o)}function Qy(e,t){t[Ut].changeDetectionScheduler?.notify(9),va(e,t,t[st],2,null,null)}function QM(e){let t=e[Zi];if(!t)return cc(e[U],e);for(;t;){let n=null;if(Un(t))n=t[Zi];else{let r=t[qe];r&&(n=r)}if(!n){for(;t&&!t[Mt]&&t!==e;)Un(t)&&cc(t[U],t),t=t[Ve];t===null&&(t=e),Un(t)&&cc(t[U],t),n=t&&t[Mt]}t=n}}function KM(e,t,n,r){let i=qe+r,o=n.length;r>0&&(n[i-1][Mt]=t),r<o-qe?(t[Mt]=n[i],Bg(n,qe+r,t)):(n.push(t),t[Mt]=null),t[Ve]=n;let s=t[Gn];s!==null&&n!==s&&Ky(s,t);let a=t[en];a!==null&&a.insertView(e),Cc(t),t[j]|=128}function Ky(e,t){let n=e[Lr],r=t[Ve];if(Un(r))e[j]|=Ys.HasTransplantedViews;else{let i=r[Ve][Ot];t[Ot]!==i&&(e[j]|=Ys.HasTransplantedViews)}n===null?e[Lr]=[t]:n.push(t)}function Nd(e,t){let n=e[Lr],r=n.indexOf(t);n.splice(r,1)}function Ki(e,t){if(e.length<=qe)return;let n=qe+t,r=e[n];if(r){let i=r[Gn];i!==null&&i!==e&&Nd(i,r),t>0&&(e[n-1][Mt]=r[Mt]);let o=Hs(e,qe+t);YM(r[U],r);let s=o[en];s!==null&&s.detachView(o[U]),r[Ve]=null,r[Mt]=null,r[j]&=-129}return r}function ya(e,t){if(!(t[j]&256)){let n=t[st];n.destroyNode&&va(e,t,n,3,null,null),QM(t)}}function cc(e,t){if(t[j]&256)return;let n=ie(null);try{t[j]&=-129,t[j]|=256,t[yt]&&Fu(t[yt]),XM(e,t),JM(e,t),t[U].type===1&&t[st].destroy();let r=t[Gn];if(r!==null&&sn(t[Ve])){r!==t[Ve]&&Nd(r,t);let i=t[en];i!==null&&i.detachView(e)}Nc(t)}finally{ie(n)}}function JM(e,t){let n=e.cleanup,r=t[Sc];if(n!==null)for(let o=0;o<n.length-1;o+=2)if(typeof n[o]=="string"){let s=n[o+3];s>=0?r[s]():r[-s].unsubscribe(),o+=2}else{let s=r[n[o+1]];n[o].call(s)}r!==null&&(t[Sc]=null);let i=t[En];if(i!==null){t[En]=null;for(let o=0;o<i.length;o++){let s=i[o];s()}}}function XM(e,t){let n;if(e!=null&&(n=e.destroyHooks)!=null)for(let r=0;r<n.length;r+=2){let i=t[n[r]];if(!(i instanceof Qi)){let o=n[r+1];if(Array.isArray(o))for(let s=0;s<o.length;s+=2){let a=i[o[s]],l=o[s+1];Cn(4,a,l);try{l.call(a)}finally{Cn(5,a,l)}}else{Cn(4,i,o);try{o.call(i)}finally{Cn(5,i,o)}}}}}function eO(e,t,n){return tO(e,t.parent,n)}function tO(e,t,n){let r=t;for(;r!==null&&r.type&168;)t=r,r=t.parent;if(r===null)return n[on];{let{componentOffset:i}=r;if(i>-1){let{encapsulation:o}=e.data[r.directiveStart+i];if(o===Vt.None||o===Vt.Emulated)return null}return Ht(r,n)}}function ea(e,t,n,r,i){e.insertBefore(t,n,r,i)}function Jy(e,t,n){e.appendChild(t,n)}function Sg(e,t,n,r,i){r!==null?ea(e,t,n,r,i):Jy(e,t,n)}function Xy(e,t){return e.parentNode(t)}function nO(e,t){return e.nextSibling(t)}function rO(e,t,n){return oO(e,t,n)}function iO(e,t,n){return e.type&40?Ht(e,n):null}var oO=iO,xg;function Rd(e,t,n,r){let i=eO(e,r,t),o=t[st],s=r.parent||t[Nt],a=rO(s,r,t);if(i!=null)if(Array.isArray(n))for(let l=0;l<n.length;l++)Sg(o,i,n[l],a,!1);else Sg(o,i,n,a,!1);xg!==void 0&&xg(o,r,t,n,i)}function Wi(e,t){if(t!==null){let n=t.type;if(n&3)return Ht(t,e);if(n&4)return Pc(-1,e[t.index]);if(n&8){let r=t.child;if(r!==null)return Wi(e,r);{let i=e[t.index];return sn(i)?Pc(-1,i):tn(i)}}else{if(n&128)return Wi(e,t.next);if(n&32)return Od(t,e)()||tn(e[t.index]);{let r=ev(e,t);if(r!==null){if(Array.isArray(r))return r[0];let i=Zn(e[Ot]);return Wi(i,r)}else return Wi(e,t.next)}}}return null}function ev(e,t){if(t!==null){let r=e[Ot][Nt],i=t.projection;return r.projection[i]}return null}function Pc(e,t){let n=qe+e+1;if(n<t.length){let r=t[n],i=r[U].firstChild;if(i!==null)return Wi(r,i)}return t[Yn]}function sO(e,t,n){e.removeChild(null,t,n)}function Pd(e,t,n,r,i,o,s){for(;n!=null;){if(n.type===128){n=n.next;continue}let a=r[n.index],l=n.type;if(s&&t===0&&(a&&Jn(tn(a),r),n.flags|=2),(n.flags&32)!==32)if(l&8)Pd(e,t,n.child,r,i,o,!1),kr(t,e,i,a,o);else if(l&32){let u=Od(n,r),c;for(;c=u();)kr(t,e,i,c,o);kr(t,e,i,a,o)}else l&16?aO(e,t,r,n,i,o):kr(t,e,i,a,o);n=s?n.projectionNext:n.next}}function va(e,t,n,r,i,o){Pd(n,r,e.firstChild,t,i,o,!1)}function aO(e,t,n,r,i,o){let s=n[Ot],l=s[Nt].projection[r.projection];if(Array.isArray(l))for(let u=0;u<l.length;u++){let c=l[u];kr(t,e,i,c,o)}else{let u=l,c=s[Ve];zy(r)&&(u.flags|=128),Pd(e,t,u,c,i,o,!0)}}function lO(e,t,n,r,i){let o=n[Yn],s=tn(n);o!==s&&kr(t,e,r,o,i);for(let a=qe;a<n.length;a++){let l=n[a];va(l[U],l,e,t,r,o)}}function uO(e,t,n){e.setAttribute(t,"style",n)}function tv(e,t,n){n===""?e.removeAttribute(t,"class"):e.setAttribute(t,"class",n)}function nv(e,t,n){let{mergedAttrs:r,classes:i,styles:o}=n;r!==null&&mc(e,t,r),i!==null&&tv(e,t,i),o!==null&&uO(e,t,o)}var tr={};function _(e=1){rv(Rt(),de(),$r()+e,!1)}function rv(e,t,n,r){if(!r)if((t[j]&3)===3){let o=e.preOrderCheckHooks;o!==null&&Fs(t,o,n)}else{let o=e.preOrderHooks;o!==null&&zs(t,o,0,n)}Qn(n)}function In(e,t=Y.Default){let n=de();if(n===null)return ee(e,t);let r=$t();return My(r,n,gt(e),t)}function iv(e,t,n,r,i,o){let s=ie(null);try{let a=null;i&Dn.SignalBased&&(a=t[r][Sm]),a!==null&&a.transformFn!==void 0&&(o=a.transformFn(o)),i&Dn.HasDecoratorInputTransform&&(o=e.inputTransforms[r].call(t,o)),e.setInput!==null?e.setInput(t,a,o,n,r):iy(t,a,r,o)}finally{ie(s)}}function cO(e,t){let n=e.hostBindingOpCodes;if(n!==null)try{for(let r=0;r<n.length;r++){let i=n[r];if(i<0)Qn(~i);else{let o=i,s=n[++r],a=n[++r];eM(s,o);let l=t[o];a(2,l)}}}finally{Qn(-1)}}function ba(e,t,n,r,i,o,s,a,l,u,c){let p=t.blueprint.slice();return p[on]=i,p[j]=r|4|128|8|64,(u!==null||e&&e[j]&2048)&&(p[j]|=2048),ly(p),p[Ve]=p[Vr]=e,p[Xe]=n,p[Ut]=s||e&&e[Ut],p[st]=a||e&&e[st],p[Pr]=l||e&&e[Pr]||null,p[Nt]=o,p[pa]=RM(),p[Yi]=c,p[ey]=u,p[Ot]=t.type==2?e[Ot]:p,p}function oo(e,t,n,r,i){let o=e.data[t];if(o===null)o=dO(e,t,n,r,i),XA()&&(o.flags|=32);else if(o.type&64){o.type=n,o.value=r,o.attrs=i;let s=GA();o.injectorIndex=s===null?-1:s.injectorIndex}return Hr(o,!0),o}function dO(e,t,n,r,i){let o=fy(),s=hy(),a=s?o:o&&o.parent,l=e.data[t]=yO(e,a,n,t,r,i);return e.firstChild===null&&(e.firstChild=l),o!==null&&(s?o.child==null&&l.parent!==null&&(o.child=l):o.next===null&&(o.next=l,l.prev=o)),l}function ov(e,t,n,r){if(n===0)return-1;let i=t.length;for(let o=0;o<n;o++)t.push(r),e.blueprint.push(r),e.data.push(null);return i}function sv(e,t,n,r,i){let o=$r(),s=r&2;try{Qn(-1),s&&t.length>at&&rv(e,t,at,!1),Cn(s?2:0,i),n(r,i)}finally{Qn(o),Cn(s?3:1,i)}}function av(e,t,n){if(ny(t)){let r=ie(null);try{let i=t.directiveStart,o=t.directiveEnd;for(let s=i;s<o;s++){let a=e.data[s];if(a.contentQueries){let l=n[s];a.contentQueries(1,l,s)}}}finally{ie(r)}}}function lv(e,t,n){py()&&(EO(e,t,n,Ht(n,t)),(n.flags&64)===64&&fv(e,t,n))}function uv(e,t,n=Ht){let r=t.localNames;if(r!==null){let i=t.index+1;for(let o=0;o<r.length;o+=2){let s=r[o+1],a=s===-1?n(t,e):e[s];e[i++]=a}}}function cv(e){let t=e.tView;return t===null||t.incompleteFirstPass?e.tView=Ld(1,null,e.template,e.decls,e.vars,e.directiveDefs,e.pipeDefs,e.viewQuery,e.schemas,e.consts,e.id):t}function Ld(e,t,n,r,i,o,s,a,l,u,c){let p=at+r,d=p+i,f=pO(p,d),g=typeof u=="function"?u():u;return f[U]={type:e,blueprint:f,template:n,queries:null,viewQuery:a,declTNode:t,data:f.slice().fill(null,p),bindingStartIndex:p,expandoStartIndex:d,hostBindingOpCodes:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:typeof o=="function"?o():o,pipeRegistry:typeof s=="function"?s():s,firstChild:null,schemas:l,consts:g,incompleteFirstPass:!1,ssrId:c}}function pO(e,t){let n=[];for(let r=0;r<t;r++)n.push(r<e?null:tr);return n}function fO(e,t,n,r){let o=r.get(WM,Hy)||n===Vt.ShadowDom,s=e.selectRootElement(t,o);return hO(s),s}function hO(e){mO(e)}var mO=()=>null;function gO(e,t,n,r){let i=RO(t);i.push(n),e.firstCreatePass&&PO(e).push(r,i.length-1)}function yO(e,t,n,r,i,o){let s=t?t.injectorIndex:-1,a=0;return UA()&&(a|=128),{type:n,index:r,insertBeforeIndex:null,injectorIndex:s,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:a,providerIndexes:0,value:i,attrs:o,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:t,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}function wg(e,t,n,r,i){for(let o in t){if(!t.hasOwnProperty(o))continue;let s=t[o];if(s===void 0)continue;r??={};let a,l=Dn.None;Array.isArray(s)?(a=s[0],l=s[1]):a=s;let u=o;if(i!==null){if(!i.hasOwnProperty(o))continue;u=i[o]}e===0?Cg(r,n,u,a,l):Cg(r,n,u,a)}return r}function Cg(e,t,n,r,i){let o;e.hasOwnProperty(n)?(o=e[n]).push(t,r):o=e[n]=[t,r],i!==void 0&&o.push(i)}function vO(e,t,n){let r=t.directiveStart,i=t.directiveEnd,o=e.data,s=t.attrs,a=[],l=null,u=null;for(let c=r;c<i;c++){let p=o[c],d=n?n.get(p):null,f=d?d.inputs:null,g=d?d.outputs:null;l=wg(0,p.inputs,c,l,f),u=wg(1,p.outputs,c,u,g);let h=l!==null&&s!==null&&!dd(t)?NO(l,c,s):null;a.push(h)}l!==null&&(l.hasOwnProperty("class")&&(t.flags|=8),l.hasOwnProperty("style")&&(t.flags|=16)),t.initialInputs=a,t.inputs=l,t.outputs=u}function bO(e){return e==="class"?"className":e==="for"?"htmlFor":e==="formaction"?"formAction":e==="innerHtml"?"innerHTML":e==="readonly"?"readOnly":e==="tabindex"?"tabIndex":e}function SO(e,t,n,r,i,o,s,a){let l=Ht(t,n),u=t.inputs,c;!a&&u!=null&&(c=u[r])?(jd(e,n,c,r,i),fa(t)&&xO(n,t.index)):t.type&3?(r=bO(r),i=s!=null?s(i,t.value||"",r):i,o.setProperty(l,r,i)):t.type&12}function xO(e,t){let n=Ur(t,e);n[j]&16||(n[j]|=64)}function dv(e,t,n,r){if(py()){let i=r===null?null:{"":-1},o=TO(e,n),s,a;o===null?s=a=null:[s,a]=o,s!==null&&pv(e,t,n,s,i,a),i&&_O(n,r,i)}n.mergedAttrs=cd(n.mergedAttrs,n.attrs)}function pv(e,t,n,r,i,o){for(let u=0;u<r.length;u++)mM(_y(n,t),e,r[u].type);kO(n,e.data.length,r.length);for(let u=0;u<r.length;u++){let c=r[u];c.providersResolver&&c.providersResolver(c)}let s=!1,a=!1,l=ov(e,t,r.length,null);for(let u=0;u<r.length;u++){let c=r[u];n.mergedAttrs=cd(n.mergedAttrs,c.hostAttrs),AO(e,n,t,l,c),IO(l,c,i),c.contentQueries!==null&&(n.flags|=4),(c.hostBindings!==null||c.hostAttrs!==null||c.hostVars!==0)&&(n.flags|=64);let p=c.type.prototype;!s&&(p.ngOnChanges||p.ngOnInit||p.ngDoCheck)&&((e.preOrderHooks??=[]).push(n.index),s=!0),!a&&(p.ngOnChanges||p.ngDoCheck)&&((e.preOrderCheckHooks??=[]).push(n.index),a=!0),l++}vO(e,n,o)}function wO(e,t,n,r,i){let o=i.hostBindings;if(o){let s=e.hostBindingOpCodes;s===null&&(s=e.hostBindingOpCodes=[]);let a=~t.index;CO(s)!=a&&s.push(a),s.push(n,r,o)}}function CO(e){let t=e.length;for(;t>0;){let n=e[--t];if(typeof n=="number"&&n<0)return n}return 0}function EO(e,t,n,r){let i=n.directiveStart,o=n.directiveEnd;fa(n)&&MO(t,n,e.data[i+n.componentOffset]),e.firstCreatePass||_y(n,t),Jn(r,t);let s=n.initialInputs;for(let a=i;a<o;a++){let l=e.data[a],u=Fr(t,e,a,n);if(Jn(u,t),s!==null&&OO(t,a-i,u,l,n,s),io(l)){let c=Ur(n.index,t);c[Xe]=Fr(t,e,a,n)}}}function fv(e,t,n){let r=n.directiveStart,i=n.directiveEnd,o=n.index,s=tM();try{Qn(o);for(let a=r;a<i;a++){let l=e.data[a],u=t[a];Ec(a),(l.hostBindings!==null||l.hostVars!==0||l.hostAttrs!==null)&&DO(l,u)}}finally{Qn(-1),Ec(s)}}function DO(e,t){e.hostBindings!==null&&e.hostBindings(1,t)}function TO(e,t){let n=e.directiveRegistry,r=null,i=null;if(n)for(let o=0;o<n.length;o++){let s=n[o];if(lA(t,s.selectors,!1))if(r||(r=[]),io(s))if(s.findHostDirectiveDefs!==null){let a=[];i=i||new Map,s.findHostDirectiveDefs(s,a,i),r.unshift(...a,s);let l=a.length;Lc(e,t,l)}else r.unshift(s),Lc(e,t,0);else i=i||new Map,s.findHostDirectiveDefs?.(s,r,i),r.push(s)}return r===null?null:[r,i]}function Lc(e,t,n){t.componentOffset=n,(e.components??=[]).push(t.index)}function _O(e,t,n){if(t){let r=e.localNames=[];for(let i=0;i<t.length;i+=2){let o=n[t[i+1]];if(o==null)throw new L(-301,!1);r.push(t[i],o)}}}function IO(e,t,n){if(n){if(t.exportAs)for(let r=0;r<t.exportAs.length;r++)n[t.exportAs[r]]=e;io(t)&&(n[""]=e)}}function kO(e,t,n){e.flags|=1,e.directiveStart=t,e.directiveEnd=t+n,e.providerIndexes=t}function AO(e,t,n,r,i){e.data[r]=i;let o=i.factory||(i.factory=Or(i.type,!0)),s=new Qi(o,io(i),In);e.blueprint[r]=s,n[r]=s,wO(e,t,r,ov(e,n,i.hostVars,tr),i)}function MO(e,t,n){let r=Ht(t,e),i=cv(n),o=e[Ut].rendererFactory,s=16;n.signals?s=4096:n.onPush&&(s=64);let a=Sa(e,ba(e,i,null,s,r,t,null,o.createRenderer(r,n),null,null,null));e[t.index]=a}function OO(e,t,n,r,i,o){let s=o[t];if(s!==null)for(let a=0;a<s.length;){let l=s[a++],u=s[a++],c=s[a++],p=s[a++];iv(r,n,l,u,c,p)}}function NO(e,t,n){let r=null,i=0;for(;i<n.length;){let o=n[i];if(o===0){i+=4;continue}else if(o===5){i+=2;continue}if(typeof o=="number")break;if(e.hasOwnProperty(o)){r===null&&(r=[]);let s=e[o];for(let a=0;a<s.length;a+=3)if(s[a]===t){r.push(o,s[a+1],s[a+2],n[i+1]);break}}i+=2}return r}function hv(e,t,n,r){return[e,!0,0,t,null,r,null,n,null,null]}function mv(e,t){let n=e.contentQueries;if(n!==null){let r=ie(null);try{for(let i=0;i<n.length;i+=2){let o=n[i],s=n[i+1];if(s!==-1){let a=e.data[s];gd(o),a.contentQueries(2,t[s],s)}}}finally{ie(r)}}}function Sa(e,t){return e[Zi]?e[lg][Mt]=t:e[Zi]=t,e[lg]=t,t}function jc(e,t,n){gd(0);let r=ie(null);try{t(e,n)}finally{ie(r)}}function RO(e){return e[Sc]??=[]}function PO(e){return e.cleanup??=[]}function LO(e,t){let n=e[Pr],r=n?n.get(nn,null):null;r&&r.handleError(t)}function jd(e,t,n,r,i){for(let o=0;o<n.length;){let s=n[o++],a=n[o++],l=n[o++],u=t[s],c=e.data[s];iv(c,u,r,a,l,i)}}function gv(e,t,n){let r=PA(t,e);GM(e[st],r,n)}function jO(e,t){let n=Ur(t,e),r=n[U];FO(r,n);let i=n[on];i!==null&&n[Yi]===null&&(n[Yi]=kd(i,n[Pr])),Fd(r,n,n[Xe])}function FO(e,t){for(let n=t.length;n<e.blueprint.length;n++)t.push(e.blueprint[n])}function Fd(e,t,n){yd(t);try{let r=e.viewQuery;r!==null&&jc(1,r,n);let i=e.template;i!==null&&sv(e,t,i,1,n),e.firstCreatePass&&(e.firstCreatePass=!1),t[en]?.finishViewCreation(e),e.staticContentQueries&&mv(e,t),e.staticViewQueries&&jc(2,e.viewQuery,n);let o=e.components;o!==null&&zO(t,o)}catch(r){throw e.firstCreatePass&&(e.incompleteFirstPass=!0,e.firstCreatePass=!1),r}finally{t[j]&=-5,vd()}}function zO(e,t){for(let n=0;n<t.length;n++)jO(e,t[n])}function xa(e,t,n,r){let i=ie(null);try{let o=t.tView,a=e[j]&4096?4096:16,l=ba(e,o,n,a,null,t,null,null,r?.injector??null,r?.embeddedViewInjector??null,r?.dehydratedView??null),u=e[t.index];l[Gn]=u;let c=e[en];return c!==null&&(l[en]=c.createEmbeddedView(o)),Fd(o,l,n),l}finally{ie(i)}}function yv(e,t){let n=qe+t;if(n<e.length)return e[n]}function Ji(e,t){return!t||t.firstChild===null||zy(e)}function wa(e,t,n,r=!0){let i=t[U];if(KM(i,t,e,n),r){let s=Pc(n,e),a=t[st],l=Xy(a,e[Yn]);l!==null&&ZM(i,e[Nt],a,t,l,s)}let o=t[Yi];o!==null&&o.firstChild!==null&&(o.firstChild=null)}function vv(e,t){let n=Ki(e,t);return n!==void 0&&ya(n[U],n),n}function ta(e,t,n,r,i=!1){for(;n!==null;){if(n.type===128){n=i?n.projectionNext:n.next;continue}let o=t[n.index];o!==null&&r.push(tn(o)),sn(o)&&BO(o,r);let s=n.type;if(s&8)ta(e,t,n.child,r);else if(s&32){let a=Od(n,t),l;for(;l=a();)r.push(l)}else if(s&16){let a=ev(t,n);if(Array.isArray(a))r.push(...a);else{let l=Zn(t[Ot]);ta(l[U],l,a,r,!0)}}n=i?n.projectionNext:n.next}return r}function BO(e,t){for(let n=qe;n<e.length;n++){let r=e[n],i=r[U].firstChild;i!==null&&ta(r[U],r,i,t)}e[Yn]!==e[on]&&t.push(e[Yn])}var bv=[];function WO(e){return e[yt]??qO(e)}function qO(e){let t=bv.pop()??Object.create(UO);return t.lView=e,t}function VO(e){e.lView[yt]!==e&&(e.lView=null,bv.push(e))}var UO=be(O({},Pu),{consumerIsAlwaysLive:!0,consumerMarkedDirty:e=>{ma(e.lView)},consumerOnSignalRead(){this.lView[yt]=this}});function HO(e){let t=e[yt]??Object.create($O);return t.lView=e,t}var $O=be(O({},Pu),{consumerIsAlwaysLive:!0,consumerMarkedDirty:e=>{let t=Zn(e.lView);for(;t&&!Sv(t[U]);)t=Zn(t);t&&uy(t)},consumerOnSignalRead(){this.lView[yt]=this}});function Sv(e){return e.type!==2}var GO=100;function xv(e,t=!0,n=0){let r=e[Ut],i=r.rendererFactory,o=!1;o||i.begin?.();try{YO(e,n)}catch(s){throw t&&LO(e,s),s}finally{o||(i.end?.(),r.inlineEffectRunner?.flush())}}function YO(e,t){let n=my();try{cg(!0),Fc(e,t);let r=0;for(;ha(e);){if(r===GO)throw new L(103,!1);r++,Fc(e,1)}}finally{cg(n)}}function ZO(e,t,n,r){let i=t[j];if((i&256)===256)return;let o=!1,s=!1;!o&&t[Ut].inlineEffectRunner?.flush(),yd(t);let a=!0,l=null,u=null;o||(Sv(e)?(u=WO(t),l=Lu(u)):xm()===null?(a=!1,u=HO(t),l=Lu(u)):t[yt]&&(Fu(t[yt]),t[yt]=null));try{ly(t),KA(e.bindingStartIndex),n!==null&&sv(e,t,n,2,r);let c=(i&3)===3;if(!o)if(c){let f=e.preOrderCheckHooks;f!==null&&Fs(t,f,null)}else{let f=e.preOrderHooks;f!==null&&zs(t,f,0,null),sc(t,0)}if(s||QO(t),wv(t,0),e.contentQueries!==null&&mv(e,t),!o)if(c){let f=e.contentCheckHooks;f!==null&&Fs(t,f)}else{let f=e.contentHooks;f!==null&&zs(t,f,1),sc(t,1)}cO(e,t);let p=e.components;p!==null&&Ev(t,p,0);let d=e.viewQuery;if(d!==null&&jc(2,d,r),!o)if(c){let f=e.viewCheckHooks;f!==null&&Fs(t,f)}else{let f=e.viewHooks;f!==null&&zs(t,f,2),sc(t,2)}if(e.firstUpdatePass===!0&&(e.firstUpdatePass=!1),t[oc]){for(let f of t[oc])f();t[oc]=null}o||(t[j]&=-73)}catch(c){throw o||ma(t),c}finally{u!==null&&(wm(u,l),a&&VO(u)),vd()}}function wv(e,t){for(let n=Wy(e);n!==null;n=qy(n))for(let r=qe;r<n.length;r++){let i=n[r];Cv(i,t)}}function QO(e){for(let t=Wy(e);t!==null;t=qy(t)){if(!(t[j]&Ys.HasTransplantedViews))continue;let n=t[Lr];for(let r=0;r<n.length;r++){let i=n[r];uy(i)}}}function KO(e,t,n){let r=Ur(t,e);Cv(r,n)}function Cv(e,t){md(e)&&Fc(e,t)}function Fc(e,t){let r=e[U],i=e[j],o=e[yt],s=!!(t===0&&i&16);if(s||=!!(i&64&&t===0),s||=!!(i&1024),s||=!!(o?.dirty&&ju(o)),s||=!1,o&&(o.dirty=!1),e[j]&=-9217,s)ZO(r,e,r.template,e[Xe]);else if(i&8192){wv(e,1);let a=r.components;a!==null&&Ev(e,a,1)}}function Ev(e,t,n){for(let r=0;r<t.length;r++)KO(e,t[r],n)}function Dv(e,t){let n=my()?64:1088;for(e[Ut].changeDetectionScheduler?.notify(t);e;){e[j]|=n;let r=Zn(e);if(xc(e)&&!r)return e;e=r}return null}var Xn=class{get rootNodes(){let t=this._lView,n=t[U];return ta(n,t,n.firstChild,[])}constructor(t,n,r=!0){this._lView=t,this._cdRefInjectingView=n,this.notifyErrorHandler=r,this._appRef=null,this._attachedToViewContainer=!1}get context(){return this._lView[Xe]}set context(t){this._lView[Xe]=t}get destroyed(){return(this._lView[j]&256)===256}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){let t=this._lView[Ve];if(sn(t)){let n=t[Gs],r=n?n.indexOf(this):-1;r>-1&&(Ki(t,r),Hs(n,r))}this._attachedToViewContainer=!1}ya(this._lView[U],this._lView)}onDestroy(t){cy(this._lView,t)}markForCheck(){Dv(this._cdRefInjectingView||this._lView,4)}detach(){this._lView[j]&=-129}reattach(){Cc(this._lView),this._lView[j]|=128}detectChanges(){this._lView[j]|=1024,xv(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new L(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;let t=xc(this._lView),n=this._lView[Gn];n!==null&&!t&&Nd(n,this._lView),Qy(this._lView[U],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new L(902,!1);this._appRef=t;let n=xc(this._lView),r=this._lView[Gn];r!==null&&!n&&Ky(r,this._lView),Cc(this._lView)}},Xi=(()=>{class e{static{this.__NG_ELEMENT_ID__=eN}}return e})(),JO=Xi,XO=class extends JO{constructor(t,n,r){super(),this._declarationLView=t,this._declarationTContainer=n,this.elementRef=r}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(t,n){return this.createEmbeddedViewImpl(t,n)}createEmbeddedViewImpl(t,n,r){let i=xa(this._declarationLView,this._declarationTContainer,t,{embeddedViewInjector:n,dehydratedView:r});return new Xn(i)}};function eN(){return zd($t(),de())}function zd(e,t){return e.type&4?new XO(t,e,Yr(e,t)):null}var b4=new RegExp(`^(\\d+)*(${zM}|${FM})*(.*)`);var tN=()=>null;function eo(e,t){return tN(e,t)}var zr=class{},Ca=new $("",{providedIn:"root",factory:()=>!1});var Tv=new $(""),_v=new $(""),zc=class{},na=class{};function nN(e){let t=Error(`No component factory found for ${ot(e)}.`);return t[rN]=e,t}var rN="ngComponent";var Bc=class{resolveComponentFactory(t){throw nN(t)}},Br=class{static{this.NULL=new Bc}},Wr=class{};var iN=(()=>{class e{static{this.\u0275prov=F({token:e,providedIn:"root",factory:()=>null})}}return e})();function Wc(e,t,n){let r=n?e.styles:null,i=n?e.classes:null,o=0;if(t!==null)for(let s=0;s<t.length;s++){let a=t[s];if(typeof a=="number")o=a;else if(o==1)i=Jm(i,a);else if(o==2){let l=a,u=t[++s];r=Jm(r,l+": "+u+";")}}n?e.styles=r:e.stylesWithoutHost=r,n?e.classes=i:e.classesWithoutHost=i}var ra=class extends Br{constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){let n=$n(t);return new to(n,this.ngModule)}};function Eg(e,t){let n=[];for(let r in e){if(!e.hasOwnProperty(r))continue;let i=e[r];if(i===void 0)continue;let o=Array.isArray(i),s=o?i[0]:i,a=o?i[1]:Dn.None;t?n.push({propName:s,templateName:r,isSignal:(a&Dn.SignalBased)!==0}):n.push({propName:s,templateName:r})}return n}function oN(e){let t=e.toLowerCase();return t==="svg"?NA:t==="math"?RA:null}var to=class extends na{get inputs(){let t=this.componentDef,n=t.inputTransforms,r=Eg(t.inputs,!0);if(n!==null)for(let i of r)n.hasOwnProperty(i.propName)&&(i.transform=n[i.propName]);return r}get outputs(){return Eg(this.componentDef.outputs,!1)}constructor(t,n){super(),this.componentDef=t,this.ngModule=n,this.componentType=t.type,this.selector=pA(t.selectors),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!n}create(t,n,r,i){let o=ie(null);try{i=i||this.ngModule;let s=i instanceof vt?i:i?.injector;s&&this.componentDef.getStandaloneInjector!==null&&(s=this.componentDef.getStandaloneInjector(s)||s);let a=s?new Dc(t,s):t,l=a.get(Wr,null);if(l===null)throw new L(407,!1);let u=a.get(iN,null),c=a.get(zr,null),p={rendererFactory:l,sanitizer:u,inlineEffectRunner:null,changeDetectionScheduler:c},d=l.createRenderer(null,this.componentDef),f=this.componentDef.selectors[0][0]||"div",g=r?fO(d,r,this.componentDef.encapsulation,a):Zy(d,f,oN(f)),h=512;this.componentDef.signals?h|=4096:this.componentDef.onPush||(h|=16);let y=null;g!==null&&(y=kd(g,a,!0));let m=Ld(0,null,null,1,0,null,null,null,null,null,null),v=ba(null,m,null,h,null,null,p,d,a,null,y);yd(v);let S,x,E=null;try{let w=this.componentDef,W,q=null;w.findHostDirectiveDefs?(W=[],q=new Map,w.findHostDirectiveDefs(w,W,q),W.push(w)):W=[w];let oe=sN(v,g);E=aN(oe,g,w,W,v,p,d),x=hd(m,at),g&&cN(d,w,g,r),n!==void 0&&dN(x,this.ngContentSelectors,n),S=uN(E,w,W,q,v,[pN]),Fd(m,v,null)}catch(w){throw E!==null&&Nc(E),Nc(v),w}finally{vd()}return new qc(this.componentType,S,Yr(x,v),v,x)}finally{ie(o)}}},qc=class extends zc{constructor(t,n,r,i,o){super(),this.location=r,this._rootLView=i,this._tNode=o,this.previousInputValues=null,this.instance=n,this.hostView=this.changeDetectorRef=new Xn(i,void 0,!1),this.componentType=t}setInput(t,n){let r=this._tNode.inputs,i;if(r!==null&&(i=r[t])){if(this.previousInputValues??=new Map,this.previousInputValues.has(t)&&Object.is(this.previousInputValues.get(t),n))return;let o=this._rootLView;jd(o[U],o,i,t,n),this.previousInputValues.set(t,n);let s=Ur(this._tNode.index,o);Dv(s,1)}}get injector(){return new Hn(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}};function sN(e,t){let n=e[U],r=at;return e[r]=t,oo(n,r,2,"#host",null)}function aN(e,t,n,r,i,o,s){let a=i[U];lN(r,e,t,s);let l=null;t!==null&&(l=kd(t,i[Pr]));let u=o.rendererFactory.createRenderer(t,n),c=16;n.signals?c=4096:n.onPush&&(c=64);let p=ba(i,cv(n),null,c,i[e.index],e,o,u,null,null,l);return a.firstCreatePass&&Lc(a,e,r.length-1),Sa(i,p),i[e.index]=p}function lN(e,t,n,r){for(let i of e)t.mergedAttrs=cd(t.mergedAttrs,i.hostAttrs);t.mergedAttrs!==null&&(Wc(t,t.mergedAttrs,!0),n!==null&&nv(r,n,t))}function uN(e,t,n,r,i,o){let s=$t(),a=i[U],l=Ht(s,i);pv(a,i,s,n,null,r);for(let c=0;c<n.length;c++){let p=s.directiveStart+c,d=Fr(i,a,p,s);Jn(d,i)}fv(a,i,s),l&&Jn(l,i);let u=Fr(i,a,s.directiveStart+s.componentOffset,s);if(e[Xe]=i[Xe]=u,o!==null)for(let c of o)c(u,t);return av(a,s,i),u}function cN(e,t,n,r){if(r)mc(e,n,["ng-version","18.2.14"]);else{let{attrs:i,classes:o}=fA(t.selectors[0]);i&&mc(e,n,i),o&&o.length>0&&tv(e,n,o.join(" "))}}function dN(e,t,n){let r=e.projection=[];for(let i=0;i<t.length;i++){let o=n[i];r.push(o!=null?Array.from(o):null)}}function pN(){let e=$t();xd(de()[U],e)}var Qr=(()=>{class e{static{this.__NG_ELEMENT_ID__=fN}}return e})();function fN(){let e=$t();return kv(e,de())}var hN=Qr,Iv=class extends hN{constructor(t,n,r){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=r}get element(){return Yr(this._hostTNode,this._hostLView)}get injector(){return new Hn(this._hostTNode,this._hostLView)}get parentInjector(){let t=wd(this._hostTNode,this._hostLView);if(Ey(t)){let n=Qs(t,this._hostLView),r=Zs(t),i=n[U].data[r+8];return new Hn(i,n)}else return new Hn(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){let n=Dg(this._lContainer);return n!==null&&n[t]||null}get length(){return this._lContainer.length-qe}createEmbeddedView(t,n,r){let i,o;typeof r=="number"?i=r:r!=null&&(i=r.index,o=r.injector);let s=eo(this._lContainer,t.ssrId),a=t.createEmbeddedViewImpl(n||{},o,s);return this.insertImpl(a,i,Ji(this._hostTNode,s)),a}createComponent(t,n,r,i,o){let s=t&&!kA(t),a;if(s)a=n;else{let g=n||{};a=g.index,r=g.injector,i=g.projectableNodes,o=g.environmentInjector||g.ngModuleRef}let l=s?t:new to($n(t)),u=r||this.parentInjector;if(!o&&l.ngModule==null){let h=(s?u:this.parentInjector).get(vt,null);h&&(o=h)}let c=$n(l.componentType??{}),p=eo(this._lContainer,c?.id??null),d=p?.firstChild??null,f=l.create(u,i,d,o);return this.insertImpl(f.hostView,a,Ji(this._hostTNode,p)),f}insert(t,n){return this.insertImpl(t,n,!0)}insertImpl(t,n,r){let i=t._lView;if(FA(i)){let a=this.indexOf(t);if(a!==-1)this.detach(a);else{let l=i[Ve],u=new Iv(l,l[Nt],l[Ve]);u.detach(u.indexOf(t))}}let o=this._adjustIndex(n),s=this._lContainer;return wa(s,i,o,r),t.attachToViewContainerRef(),Bg(dc(s),o,t),t}move(t,n){return this.insert(t,n)}indexOf(t){let n=Dg(this._lContainer);return n!==null?n.indexOf(t):-1}remove(t){let n=this._adjustIndex(t,-1),r=Ki(this._lContainer,n);r&&(Hs(dc(this._lContainer),n),ya(r[U],r))}detach(t){let n=this._adjustIndex(t,-1),r=Ki(this._lContainer,n);return r&&Hs(dc(this._lContainer),n)!=null?new Xn(r):null}_adjustIndex(t,n=0){return t??this.length+n}};function Dg(e){return e[Gs]}function dc(e){return e[Gs]||(e[Gs]=[])}function kv(e,t){let n,r=t[e.index];return sn(r)?n=r:(n=hv(r,t,null,e),t[e.index]=n,Sa(t,n)),gN(n,t,e,r),new Iv(n,e,t)}function mN(e,t){let n=e[st],r=n.createComment(""),i=Ht(t,e),o=Xy(n,i);return ea(n,o,r,nO(n,i),!1),r}var gN=bN,yN=()=>!1;function vN(e,t,n){return yN(e,t,n)}function bN(e,t,n,r){if(e[Yn])return;let i;n.type&8?i=tn(r):i=mN(t,n),e[Yn]=i}var Vc=class e{constructor(t){this.queryList=t,this.matches=null}clone(){return new e(this.queryList)}setDirty(){this.queryList.setDirty()}},Uc=class e{constructor(t=[]){this.queries=t}createEmbeddedView(t){let n=t.queries;if(n!==null){let r=t.contentQueries!==null?t.contentQueries[0]:n.length,i=[];for(let o=0;o<r;o++){let s=n.getByIndex(o),a=this.queries[s.indexInDeclarationView];i.push(a.clone())}return new e(i)}return null}insertView(t){this.dirtyQueriesWithMatches(t)}detachView(t){this.dirtyQueriesWithMatches(t)}finishViewCreation(t){this.dirtyQueriesWithMatches(t)}dirtyQueriesWithMatches(t){for(let n=0;n<this.queries.length;n++)Bd(t,n).matches!==null&&this.queries[n].setDirty()}},Hc=class{constructor(t,n,r=null){this.flags=n,this.read=r,typeof t=="string"?this.predicate=_N(t):this.predicate=t}},$c=class e{constructor(t=[]){this.queries=t}elementStart(t,n){for(let r=0;r<this.queries.length;r++)this.queries[r].elementStart(t,n)}elementEnd(t){for(let n=0;n<this.queries.length;n++)this.queries[n].elementEnd(t)}embeddedTView(t){let n=null;for(let r=0;r<this.length;r++){let i=n!==null?n.length:0,o=this.getByIndex(r).embeddedTView(t,i);o&&(o.indexInDeclarationView=r,n!==null?n.push(o):n=[o])}return n!==null?new e(n):null}template(t,n){for(let r=0;r<this.queries.length;r++)this.queries[r].template(t,n)}getByIndex(t){return this.queries[t]}get length(){return this.queries.length}track(t){this.queries.push(t)}},Gc=class e{constructor(t,n=-1){this.metadata=t,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=n}elementStart(t,n){this.isApplyingToNode(n)&&this.matchTNode(t,n)}elementEnd(t){this._declarationNodeIndex===t.index&&(this._appliesToNextNode=!1)}template(t,n){this.elementStart(t,n)}embeddedTView(t,n){return this.isApplyingToNode(t)?(this.crossesNgTemplate=!0,this.addMatch(-t.index,n),new e(this.metadata)):null}isApplyingToNode(t){if(this._appliesToNextNode&&(this.metadata.flags&1)!==1){let n=this._declarationNodeIndex,r=t.parent;for(;r!==null&&r.type&8&&r.index!==n;)r=r.parent;return n===(r!==null?r.index:-1)}return this._appliesToNextNode}matchTNode(t,n){let r=this.metadata.predicate;if(Array.isArray(r))for(let i=0;i<r.length;i++){let o=r[i];this.matchTNodeWithReadOption(t,n,SN(n,o)),this.matchTNodeWithReadOption(t,n,Bs(n,t,o,!1,!1))}else r===Xi?n.type&4&&this.matchTNodeWithReadOption(t,n,-1):this.matchTNodeWithReadOption(t,n,Bs(n,t,r,!1,!1))}matchTNodeWithReadOption(t,n,r){if(r!==null){let i=this.metadata.read;if(i!==null)if(i===an||i===Qr||i===Xi&&n.type&4)this.addMatch(n.index,-2);else{let o=Bs(n,t,i,!1,!1);o!==null&&this.addMatch(n.index,o)}else this.addMatch(n.index,r)}}addMatch(t,n){this.matches===null?this.matches=[t,n]:this.matches.push(t,n)}};function SN(e,t){let n=e.localNames;if(n!==null){for(let r=0;r<n.length;r+=2)if(n[r]===t)return n[r+1]}return null}function xN(e,t){return e.type&11?Yr(e,t):e.type&4?zd(e,t):null}function wN(e,t,n,r){return n===-1?xN(t,e):n===-2?CN(e,t,r):Fr(e,e[U],n,t)}function CN(e,t,n){if(n===an)return Yr(t,e);if(n===Xi)return zd(t,e);if(n===Qr)return kv(t,e)}function Av(e,t,n,r){let i=t[en].queries[r];if(i.matches===null){let o=e.data,s=n.matches,a=[];for(let l=0;s!==null&&l<s.length;l+=2){let u=s[l];if(u<0)a.push(null);else{let c=o[u];a.push(wN(t,c,s[l+1],n.metadata.read))}}i.matches=a}return i.matches}function Yc(e,t,n,r){let i=e.queries.getByIndex(n),o=i.matches;if(o!==null){let s=Av(e,t,i,n);for(let a=0;a<o.length;a+=2){let l=o[a];if(l>0)r.push(s[a/2]);else{let u=o[a+1],c=t[-l];for(let p=qe;p<c.length;p++){let d=c[p];d[Gn]===d[Ve]&&Yc(d[U],d,u,r)}if(c[Lr]!==null){let p=c[Lr];for(let d=0;d<p.length;d++){let f=p[d];Yc(f[U],f,u,r)}}}}}return r}function EN(e,t){return e[en].queries[t].queryList}function DN(e,t,n){let r=new Oc((n&4)===4);return gO(e,t,r,r.destroy),(t[en]??=new Uc).queries.push(new Vc(r))-1}function TN(e,t,n){let r=Rt();return r.firstCreatePass&&(IN(r,new Hc(e,t,n),-1),(t&2)===2&&(r.staticViewQueries=!0)),DN(r,de(),t)}function _N(e){return e.split(",").map(t=>t.trim())}function IN(e,t,n){e.queries===null&&(e.queries=new $c),e.queries.track(new Gc(t,n))}function Bd(e,t){return e.queries.getByIndex(t)}function kN(e,t){let n=e[U],r=Bd(n,t);return r.crossesNgTemplate?Yc(n,e,t,[]):Av(n,e,r,t)}var Tg=new Set;function Kr(e){Tg.has(e)||(Tg.add(e),performance?.mark?.("mark_feature_usage",{detail:{feature:e}}))}var Tn=class{},no=class{};var Zc=class extends Tn{constructor(t,n,r,i=!0){super(),this.ngModuleType=t,this._parent=n,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new ra(this);let o=Yg(t);this._bootstrapComponents=Yy(o.bootstrap),this._r3Injector=Ry(t,n,[{provide:Tn,useValue:this},{provide:Br,useValue:this.componentFactoryResolver},...r],ot(t),new Set(["environment"])),i&&this.resolveInjectorInitializers()}resolveInjectorInitializers(){this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(this.ngModuleType)}get injector(){return this._r3Injector}destroy(){let t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(n=>n()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}},Qc=class extends no{constructor(t){super(),this.moduleType=t}create(t){return new Zc(this.moduleType,t,[])}};var ia=class extends Tn{constructor(t){super(),this.componentFactoryResolver=new ra(this),this.instance=null;let n=new Gi([...t.providers,{provide:Tn,useValue:this},{provide:Br,useValue:this.componentFactoryResolver}],t.parent||fd(),t.debugName,new Set(["environment"]));this.injector=n,t.runEnvironmentInitializers&&n.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}};function Wd(e,t,n=null){return new ia({providers:e,parent:t,debugName:n,runEnvironmentInitializers:!0}).injector}function qr(e,t,n){let r=e[t];return Object.is(r,n)?!1:(e[t]=n,!0)}function AN(e,t,n,r){let i=qr(e,t,n);return qr(e,t+1,r)||i}function MN(e){return(e.flags&32)===32}function ON(e,t,n,r,i,o,s,a,l){let u=t.consts,c=oo(t,e,4,s||null,a||null);dv(t,n,c,jr(u,l)),xd(t,c);let p=c.tView=Ld(2,c,r,i,o,t.directiveRegistry,t.pipeRegistry,null,t.schemas,u,null);return t.queries!==null&&(t.queries.template(t,c),p.queries=t.queries.embeddedTView(c)),c}function Kc(e,t,n,r,i,o,s,a,l,u){let c=n+at,p=t.firstCreatePass?ON(c,t,e,r,i,o,s,a,l):t.data[c];Hr(p,!1);let d=NN(t,e,p,n);bd()&&Rd(t,e,d,p),Jn(d,e);let f=hv(d,e,d,p);return e[c]=f,Sa(e,f),vN(f,p,e),ry(p)&&lv(t,e,p),l!=null&&uv(e,p,u),p}function Te(e,t,n,r,i,o,s,a){let l=de(),u=Rt(),c=jr(u.consts,o);return Kc(l,u,e,t,n,r,i,c,s,a),Te}var NN=RN;function RN(e,t,n,r){return Sd(!0),t[st].createComment("")}var qi=function(e){return e[e.EarlyRead=0]="EarlyRead",e[e.Write=1]="Write",e[e.MixedReadWrite=2]="MixedReadWrite",e[e.Read=3]="Read",e}(qi||{}),PN=(()=>{class e{constructor(){this.impl=null}execute(){this.impl?.execute()}static{this.\u0275prov=F({token:e,providedIn:"root",factory:()=>new e})}}return e})(),_g=class e{constructor(){this.ngZone=T(Se),this.scheduler=T(zr),this.errorHandler=T(nn,{optional:!0}),this.sequences=new Set,this.deferredRegistrations=new Set,this.executing=!1}static{this.PHASES=[qi.EarlyRead,qi.Write,qi.MixedReadWrite,qi.Read]}execute(){this.executing=!0;for(let t of e.PHASES)for(let n of this.sequences)if(!(n.erroredOrDestroyed||!n.hooks[t]))try{n.pipelinedValue=this.ngZone.runOutsideAngular(()=>n.hooks[t](n.pipelinedValue))}catch(r){n.erroredOrDestroyed=!0,this.errorHandler?.handleError(r)}this.executing=!1;for(let t of this.sequences)t.afterRun(),t.once&&(this.sequences.delete(t),t.destroy());for(let t of this.deferredRegistrations)this.sequences.add(t);this.deferredRegistrations.size>0&&this.scheduler.notify(7),this.deferredRegistrations.clear()}register(t){this.executing?this.deferredRegistrations.add(t):(this.sequences.add(t),this.scheduler.notify(6))}unregister(t){this.executing&&this.sequences.has(t)?(t.erroredOrDestroyed=!0,t.pipelinedValue=void 0,t.once=!0):(this.sequences.delete(t),this.deferredRegistrations.delete(t))}static{this.\u0275prov=F({token:e,providedIn:"root",factory:()=>new e})}};function LN(e,t,n,r){return qr(e,ga(),n)?t+Ui(n)+r:tr}function jN(e,t,n,r,i,o){let s=QA(),a=AN(e,s,n,i);return JA(2),a?t+Ui(n)+r+Ui(i)+o:tr}function se(e,t,n){let r=de(),i=ga();if(qr(r,i,t)){let o=Rt(),s=iM();SO(o,s,r,e,t,r[st],n,!1)}return se}function Ig(e,t,n,r,i){let o=t.inputs,s=i?"class":"style";jd(e,n,o[s],s,r)}var Jc=class{destroy(t){}updateValue(t,n){}swap(t,n){let r=Math.min(t,n),i=Math.max(t,n),o=this.detach(i);if(i-r>1){let s=this.detach(r);this.attach(r,o),this.attach(i,s)}else this.attach(r,o)}move(t,n){this.attach(n,this.detach(t))}};function pc(e,t,n,r,i){return e===n&&Object.is(t,r)?1:Object.is(i(e,t),i(n,r))?-1:0}function FN(e,t,n){let r,i,o=0,s=e.length-1,a=void 0;if(Array.isArray(t)){let l=t.length-1;for(;o<=s&&o<=l;){let u=e.at(o),c=t[o],p=pc(o,u,o,c,n);if(p!==0){p<0&&e.updateValue(o,c),o++;continue}let d=e.at(s),f=t[l],g=pc(s,d,l,f,n);if(g!==0){g<0&&e.updateValue(s,f),s--,l--;continue}let h=n(o,u),y=n(s,d),m=n(o,c);if(Object.is(m,y)){let v=n(l,f);Object.is(v,h)?(e.swap(o,s),e.updateValue(s,f),l--,s--):e.move(s,o),e.updateValue(o,c),o++;continue}if(r??=new oa,i??=Ag(e,o,s,n),Xc(e,r,o,m))e.updateValue(o,c),o++,s++;else if(i.has(m))r.set(h,e.detach(o)),s--;else{let v=e.create(o,t[o]);e.attach(o,v),o++,s++}}for(;o<=l;)kg(e,r,n,o,t[o]),o++}else if(t!=null){let l=t[Symbol.iterator](),u=l.next();for(;!u.done&&o<=s;){let c=e.at(o),p=u.value,d=pc(o,c,o,p,n);if(d!==0)d<0&&e.updateValue(o,p),o++,u=l.next();else{r??=new oa,i??=Ag(e,o,s,n);let f=n(o,p);if(Xc(e,r,o,f))e.updateValue(o,p),o++,s++,u=l.next();else if(!i.has(f))e.attach(o,e.create(o,p)),o++,s++,u=l.next();else{let g=n(o,c);r.set(g,e.detach(o)),s--}}}for(;!u.done;)kg(e,r,n,e.length,u.value),u=l.next()}for(;o<=s;)e.destroy(e.detach(s--));r?.forEach(l=>{e.destroy(l)})}function Xc(e,t,n,r){return t!==void 0&&t.has(r)?(e.attach(n,t.get(r)),t.delete(r),!0):!1}function kg(e,t,n,r,i){if(Xc(e,t,r,n(r,i)))e.updateValue(r,i);else{let o=e.create(r,i);e.attach(r,o)}}function Ag(e,t,n,r){let i=new Set;for(let o=t;o<=n;o++)i.add(r(o,e.at(o)));return i}var oa=class{constructor(){this.kvMap=new Map,this._vMap=void 0}has(t){return this.kvMap.has(t)}delete(t){if(!this.has(t))return!1;let n=this.kvMap.get(t);return this._vMap!==void 0&&this._vMap.has(n)?(this.kvMap.set(t,this._vMap.get(n)),this._vMap.delete(n)):this.kvMap.delete(t),!0}get(t){return this.kvMap.get(t)}set(t,n){if(this.kvMap.has(t)){let r=this.kvMap.get(t);this._vMap===void 0&&(this._vMap=new Map);let i=this._vMap;for(;i.has(r);)r=i.get(r);i.set(r,n)}else this.kvMap.set(t,n)}forEach(t){for(let[n,r]of this.kvMap)if(t(r,n),this._vMap!==void 0){let i=this._vMap;for(;i.has(r);)r=i.get(r),t(r,n)}}};function fe(e,t){Kr("NgControlFlow");let n=de(),r=ga(),i=n[r]!==tr?n[r]:-1,o=i!==-1?sa(n,at+i):void 0,s=0;if(qr(n,r,e)){let a=ie(null);try{if(o!==void 0&&vv(o,s),e!==-1){let l=at+e,u=sa(n,l),c=rd(n[U],l),p=eo(u,c.tView.ssrId),d=xa(n,c,t,{dehydratedView:p});wa(u,d,s,Ji(c,p))}}finally{ie(a)}}else if(o!==void 0){let a=yv(o,s);a!==void 0&&(a[Xe]=t)}}var ed=class{constructor(t,n,r){this.lContainer=t,this.$implicit=n,this.$index=r}get $count(){return this.lContainer.length-qe}};function lt(e){return e}var td=class{constructor(t,n,r){this.hasEmptyBlock=t,this.trackByFn=n,this.liveCollection=r}};function ut(e,t,n,r,i,o,s,a,l,u,c,p,d){Kr("NgControlFlow");let f=de(),g=Rt(),h=l!==void 0,y=de(),m=a?s.bind(y[Ot][Xe]):s,v=new td(h,m);y[at+e]=v,Kc(f,g,e+1,t,n,r,i,jr(g.consts,o)),h&&Kc(f,g,e+2,l,u,c,p,jr(g.consts,d))}var nd=class extends Jc{constructor(t,n,r){super(),this.lContainer=t,this.hostLView=n,this.templateTNode=r,this.operationsCounter=void 0,this.needsIndexUpdate=!1}get length(){return this.lContainer.length-qe}at(t){return this.getLView(t)[Xe].$implicit}attach(t,n){let r=n[Yi];this.needsIndexUpdate||=t!==this.length,wa(this.lContainer,n,t,Ji(this.templateTNode,r))}detach(t){return this.needsIndexUpdate||=t!==this.length-1,zN(this.lContainer,t)}create(t,n){let r=eo(this.lContainer,this.templateTNode.tView.ssrId),i=xa(this.hostLView,this.templateTNode,new ed(this.lContainer,n,t),{dehydratedView:r});return this.operationsCounter?.recordCreate(),i}destroy(t){ya(t[U],t),this.operationsCounter?.recordDestroy()}updateValue(t,n){this.getLView(t)[Xe].$implicit=n}reset(){this.needsIndexUpdate=!1,this.operationsCounter?.reset()}updateIndexes(){if(this.needsIndexUpdate)for(let t=0;t<this.length;t++)this.getLView(t)[Xe].$index=t}getLView(t){return BN(this.lContainer,t)}};function ct(e){let t=ie(null),n=$r();try{let r=de(),i=r[U],o=r[n],s=n+1,a=sa(r,s);if(o.liveCollection===void 0){let u=rd(i,s);o.liveCollection=new nd(a,r,u)}else o.liveCollection.reset();let l=o.liveCollection;if(FN(l,e,o.trackByFn),l.updateIndexes(),o.hasEmptyBlock){let u=ga(),c=l.length===0;if(qr(r,u,c)){let p=n+2,d=sa(r,p);if(c){let f=rd(i,p),g=eo(d,f.tView.ssrId),h=xa(r,f,void 0,{dehydratedView:g});wa(d,h,0,Ji(f,g))}else vv(d,0)}}}finally{ie(t)}}function sa(e,t){return e[t]}function zN(e,t){return Ki(e,t)}function BN(e,t){return yv(e,t)}function rd(e,t){return hd(e,t)}function WN(e,t,n,r,i,o){let s=t.consts,a=jr(s,i),l=oo(t,e,2,r,a);return dv(t,n,l,jr(s,o)),l.attrs!==null&&Wc(l,l.attrs,!1),l.mergedAttrs!==null&&Wc(l,l.mergedAttrs,!0),t.queries!==null&&t.queries.elementStart(t,l),l}function C(e,t,n,r){let i=de(),o=Rt(),s=at+e,a=i[st],l=o.firstCreatePass?WN(s,o,i,t,n,r):o.data[s],u=qN(o,i,l,a,t,e);i[s]=u;let c=ry(l);return Hr(l,!0),nv(a,u,l),!MN(l)&&bd()&&Rd(o,i,u,l),WA()===0&&Jn(u,i),qA(),c&&(lv(o,i,l),av(o,l,i)),r!==null&&uv(i,l),C}function D(){let e=$t();hy()?YA():(e=e.parent,Hr(e,!1));let t=e;HA(t)&&$A(),VA();let n=Rt();return n.firstCreatePass&&(xd(n,e),ny(e)&&n.queries.elementEnd(e)),t.classesWithoutHost!=null&&uM(t)&&Ig(n,t,de(),t.classesWithoutHost,!0),t.stylesWithoutHost!=null&&cM(t)&&Ig(n,t,de(),t.stylesWithoutHost,!1),D}function Z(e,t,n,r){return C(e,t,n,r),D(),Z}var qN=(e,t,n,r,i,o)=>(Sd(!0),Zy(r,i,oM()));var aa="en-US";var VN=aa;function UN(e){typeof e=="string"&&(VN=e.toLowerCase().replace(/_/g,"-"))}function te(e=1){return rM(e)}function qd(e,t,n){TN(e,t,n)}function Ea(e){let t=de(),n=Rt(),r=gy();gd(r+1);let i=Bd(n,r);if(e.dirty&&jA(t)===((i.metadata.flags&2)===2)){if(i.matches===null)e.reset([]);else{let o=kN(t,r);e.reset(o,MM),e.notifyOnChanges()}return!0}return!1}function Da(){return EN(de(),gy())}function Mv(e,t,n,r){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=r}function R(e,t=""){let n=de(),r=Rt(),i=e+at,o=r.firstCreatePass?oo(r,i,1,t,null):r.data[i],s=HN(r,n,o,t,e);n[i]=s,bd()&&Rd(r,n,s,o),Hr(o,!1)}var HN=(e,t,n,r,i)=>(Sd(!0),$M(t[st],r));function ge(e){return nr("",e,""),ge}function nr(e,t,n){let r=de(),i=LN(r,e,t,n);return i!==tr&&gv(r,$r(),i),nr}function Jr(e,t,n,r,i){let o=de(),s=jN(o,e,t,n,r,i);return s!==tr&&gv(o,$r(),s),Jr}var Ov={};function Vd(e){let t=Rt(),n=de(),r=e+at,i=oo(t,r,128,null,null);return Hr(i,!1),Mv(t,n,r,Ov),Vd}function Nv(e){Kr("NgLet");let t=Rt(),n=de(),r=$r();return Mv(t,n,r,e),e}function Rv(e){let t=ZA(),n=LA(t,at+e);if(n===Ov)throw new L(314,!1);return n}var $N=(()=>{class e{constructor(n){this._injector=n,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(n){if(!n.standalone)return null;if(!this.cachedInjectors.has(n)){let r=Kg(!1,n.type),i=r.length>0?Wd([r],this._injector,`Standalone[${n.type.name}]`):null;this.cachedInjectors.set(n,i)}return this.cachedInjectors.get(n)}ngOnDestroy(){try{for(let n of this.cachedInjectors.values())n!==null&&n.destroy()}finally{this.cachedInjectors.clear()}}static{this.\u0275prov=F({token:e,providedIn:"environment",factory:()=>new e(ee(vt))})}}return e})();function he(e){Kr("NgStandalone"),e.getStandaloneInjector=t=>t.get($N).getOrCreateStandaloneInjector(e)}var Ta=(()=>{class e{log(n){console.log(n)}warn(n){console.warn(n)}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=F({token:e,factory:e.\u0275fac,providedIn:"platform"})}}return e})();var Pv=new $("");function so(e){return!!e&&typeof e.then=="function"}function Lv(e){return!!e&&typeof e.subscribe=="function"}var jv=new $(""),Fv=(()=>{class e{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((n,r)=>{this.resolve=n,this.reject=r}),this.appInits=T(jv,{optional:!0})??[]}runInitializers(){if(this.initialized)return;let n=[];for(let i of this.appInits){let o=i();if(so(o))n.push(o);else if(Lv(o)){let s=new Promise((a,l)=>{o.subscribe({complete:a,error:l})});n.push(s)}}let r=()=>{this.done=!0,this.resolve()};Promise.all(n).then(()=>{r()}).catch(i=>{this.reject(i)}),n.length===0&&r(),this.initialized=!0}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=F({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),Ud=new $("");function GN(){Cm(()=>{throw new L(600,!1)})}function YN(e){return e.isBoundToModule}var ZN=10;function QN(e,t,n){try{let r=n();return so(r)?r.catch(i=>{throw t.runOutsideAngular(()=>e.handleError(i)),i}):r}catch(r){throw t.runOutsideAngular(()=>e.handleError(r)),r}}var rr=(()=>{class e{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=T(kM),this.afterRenderManager=T(PN),this.zonelessEnabled=T(Ca),this.dirtyFlags=0,this.deferredDirtyFlags=0,this.externalTestViews=new Set,this.beforeRender=new Ye,this.afterTick=new Ye,this.componentTypes=[],this.components=[],this.isStable=T(Gr).hasPendingTasks.pipe(X(n=>!n)),this._injector=T(vt)}get allViews(){return[...this.externalTestViews.keys(),...this._views]}get destroyed(){return this._destroyed}whenStable(){let n;return new Promise(r=>{n=this.isStable.subscribe({next:i=>{i&&r()}})}).finally(()=>{n.unsubscribe()})}get injector(){return this._injector}bootstrap(n,r){let i=n instanceof na;if(!this._injector.get(Fv).done){let d=!i&&Gg(n),f=!1;throw new L(405,f)}let s;i?s=n:s=this._injector.get(Br).resolveComponentFactory(n),this.componentTypes.push(s.componentType);let a=YN(s)?void 0:this._injector.get(Tn),l=r||s.selector,u=s.create(Kn.NULL,[],l,a),c=u.location.nativeElement,p=u.injector.get(Pv,null);return p?.registerApplication(c),u.onDestroy(()=>{this.detachView(u.hostView),Ws(this.components,u),p?.unregisterApplication(c)}),this._loadComponent(u),u}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick()}_tick(){if(this._runningTick)throw new L(101,!1);let n=ie(null);try{this._runningTick=!0,this.synchronize()}catch(r){this.internalErrorHandler(r)}finally{this._runningTick=!1,ie(n),this.afterTick.next()}}synchronize(){let n=null;this._injector.destroyed||(n=this._injector.get(Wr,null,{optional:!0})),this.dirtyFlags|=this.deferredDirtyFlags,this.deferredDirtyFlags=0;let r=0;for(;this.dirtyFlags!==0&&r++<ZN;)this.synchronizeOnce(n)}synchronizeOnce(n){if(this.dirtyFlags|=this.deferredDirtyFlags,this.deferredDirtyFlags=0,this.dirtyFlags&7){let r=!!(this.dirtyFlags&1);this.dirtyFlags&=-8,this.dirtyFlags|=8,this.beforeRender.next(r);for(let{_lView:i,notifyErrorHandler:o}of this._views)KN(i,o,r,this.zonelessEnabled);if(this.dirtyFlags&=-5,this.syncDirtyFlagsWithViews(),this.dirtyFlags&7)return}else n?.begin?.(),n?.end?.();this.dirtyFlags&8&&(this.dirtyFlags&=-9,this.afterRenderManager.execute()),this.syncDirtyFlagsWithViews()}syncDirtyFlagsWithViews(){if(this.allViews.some(({_lView:n})=>ha(n))){this.dirtyFlags|=2;return}else this.dirtyFlags&=-8}attachView(n){let r=n;this._views.push(r),r.attachToAppRef(this)}detachView(n){let r=n;Ws(this._views,r),r.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n);let r=this._injector.get(Ud,[]);[...this._bootstrapListeners,...r].forEach(i=>i(n))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(n=>n()),this._views.slice().forEach(n=>n.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(n){return this._destroyListeners.push(n),()=>Ws(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new L(406,!1);let n=this._injector;n.destroy&&!n.destroyed&&n.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=F({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();function Ws(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}function KN(e,t,n,r){if(!n&&!ha(e))return;xv(e,t,n&&!r?0:1)}var id=class{constructor(t,n){this.ngModuleFactory=t,this.componentFactories=n}},Hd=(()=>{class e{compileModuleSync(n){return new Qc(n)}compileModuleAsync(n){return Promise.resolve(this.compileModuleSync(n))}compileModuleAndAllComponentsSync(n){let r=this.compileModuleSync(n),i=Yg(n),o=Yy(i.declarations).reduce((s,a)=>{let l=$n(a);return l&&s.push(new to(l)),s},[]);return new id(r,o)}compileModuleAndAllComponentsAsync(n){return Promise.resolve(this.compileModuleAndAllComponentsSync(n))}clearCache(){}clearCacheFor(n){}getModuleId(n){}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=F({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var JN=(()=>{class e{constructor(){this.zone=T(Se),this.changeDetectionScheduler=T(zr),this.applicationRef=T(rr)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.changeDetectionScheduler.runningTick||this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=F({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),XN=new $("",{factory:()=>!1});function zv({ngZoneFactory:e,ignoreChangesOutsideZone:t,scheduleInRootZone:n}){return e??=()=>new Se(be(O({},Wv()),{scheduleInRootZone:n})),[{provide:Se,useFactory:e},{provide:Rr,multi:!0,useFactory:()=>{let r=T(JN,{optional:!0});return()=>r.initialize()}},{provide:Rr,multi:!0,useFactory:()=>{let r=T(eR);return()=>{r.initialize()}}},t===!0?{provide:Tv,useValue:!0}:[],{provide:_v,useValue:n??Py}]}function Bv(e){let t=e?.ignoreChangesOutsideZone,n=e?.scheduleInRootZone,r=zv({ngZoneFactory:()=>{let i=Wv(e);return i.scheduleInRootZone=n,i.shouldCoalesceEventChangeDetection&&Kr("NgZone_CoalesceEvent"),new Se(i)},ignoreChangesOutsideZone:t,scheduleInRootZone:n});return ca([{provide:XN,useValue:!0},{provide:Ca,useValue:!1},r])}function Wv(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:e?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:e?.runCoalescing??!1}}var eR=(()=>{class e{constructor(){this.subscription=new De,this.initialized=!1,this.zone=T(Se),this.pendingTasks=T(Gr)}initialize(){if(this.initialized)return;this.initialized=!0;let n=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(n=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{Se.assertNotInAngularZone(),queueMicrotask(()=>{n!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(n),n=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{Se.assertInAngularZone(),n??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=F({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var tR=(()=>{class e{constructor(){this.appRef=T(rr),this.taskService=T(Gr),this.ngZone=T(Se),this.zonelessEnabled=T(Ca),this.disableScheduling=T(Tv,{optional:!0})??!1,this.zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run,this.schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}],this.subscriptions=new De,this.angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(Js):null,this.scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(T(_v,{optional:!0})??!1),this.cancelScheduledCallback=null,this.useMicrotaskScheduler=!1,this.runningTick=!1,this.pendingRenderTaskId=null,this.subscriptions.add(this.appRef.afterTick.subscribe(()=>{this.runningTick||this.cleanup()})),this.subscriptions.add(this.ngZone.onUnstable.subscribe(()=>{this.runningTick||this.cleanup()})),this.disableScheduling||=!this.zonelessEnabled&&(this.ngZone instanceof Mc||!this.zoneIsDefined)}notify(n){if(!this.zonelessEnabled&&n===5)return;switch(n){case 0:{this.appRef.dirtyFlags|=2;break}case 3:case 2:case 4:case 5:case 1:{this.appRef.dirtyFlags|=4;break}case 7:{this.appRef.deferredDirtyFlags|=8;break}case 9:case 8:case 6:case 10:default:this.appRef.dirtyFlags|=8}if(!this.shouldScheduleTick())return;let r=this.useMicrotaskScheduler?gg:jy;this.pendingRenderTaskId=this.taskService.add(),this.scheduleInRootZone?this.cancelScheduledCallback=Zone.root.run(()=>r(()=>this.tick())):this.cancelScheduledCallback=this.ngZone.runOutsideAngular(()=>r(()=>this.tick()))}shouldScheduleTick(){return!(this.disableScheduling||this.pendingRenderTaskId!==null||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&Zone.current.get(Js+this.angularZoneId))}tick(){if(this.runningTick||this.appRef.destroyed)return;!this.zonelessEnabled&&this.appRef.dirtyFlags&7&&(this.appRef.dirtyFlags|=1);let n=this.taskService.add();try{this.ngZone.run(()=>{this.runningTick=!0,this.appRef._tick()},void 0,this.schedulerTickApplyArgs)}catch(r){throw this.taskService.remove(n),r}finally{this.cleanup()}this.useMicrotaskScheduler=!0,gg(()=>{this.useMicrotaskScheduler=!1,this.taskService.remove(n)})}ngOnDestroy(){this.subscriptions.unsubscribe(),this.cleanup()}cleanup(){if(this.runningTick=!1,this.cancelScheduledCallback?.(),this.cancelScheduledCallback=null,this.pendingRenderTaskId!==null){let n=this.pendingRenderTaskId;this.pendingRenderTaskId=null,this.taskService.remove(n)}}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=F({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();function nR(){return typeof $localize<"u"&&$localize.locale||aa}var $d=new $("",{providedIn:"root",factory:()=>T($d,Y.Optional|Y.SkipSelf)||nR()});var od=new $("");function Ls(e){return!e.moduleRef}function rR(e){let t=Ls(e)?e.r3Injector:e.moduleRef.injector,n=t.get(Se);return n.run(()=>{Ls(e)?e.r3Injector.resolveInjectorInitializers():e.moduleRef.resolveInjectorInitializers();let r=t.get(nn,null),i;if(n.runOutsideAngular(()=>{i=n.onError.subscribe({next:o=>{r.handleError(o)}})}),Ls(e)){let o=()=>t.destroy(),s=e.platformInjector.get(od);s.add(o),t.onDestroy(()=>{i.unsubscribe(),s.delete(o)})}else{let o=()=>e.moduleRef.destroy(),s=e.platformInjector.get(od);s.add(o),e.moduleRef.onDestroy(()=>{Ws(e.allPlatformModules,e.moduleRef),i.unsubscribe(),s.delete(o)})}return QN(r,n,()=>{let o=t.get(Fv);return o.runInitializers(),o.donePromise.then(()=>{let s=t.get($d,aa);if(UN(s||aa),Ls(e)){let a=t.get(rr);return e.rootComponent!==void 0&&a.bootstrap(e.rootComponent),a}else return iR(e.moduleRef,e.allPlatformModules),e.moduleRef})})})}function iR(e,t){let n=e.injector.get(rr);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(r=>n.bootstrap(r));else if(e.instance.ngDoBootstrap)e.instance.ngDoBootstrap(n);else throw new L(-403,!1);t.push(e)}var qs=null,qv=new $("");function oR(e=[],t){return Kn.create({name:t,providers:[{provide:da,useValue:"platform"},{provide:od,useValue:new Set([()=>qs=null])},...e]})}function sR(e=[]){if(qs)return qs;let t=oR(e);return t.get(qv,!1)||(qs=t),GN(),aR(t),t}function aR(e){e.get(_d,null)?.forEach(n=>n())}var ao=(()=>{class e{static{this.__NG_ELEMENT_ID__=lR}}return e})();function lR(e){return uR($t(),de(),(e&16)===16)}function uR(e,t,n){if(fa(e)&&!n){let r=Ur(e.index,t);return new Xn(r,r)}else if(e.type&175){let r=t[Ot];return new Xn(r,t)}return null}function Vv(e){let{rootComponent:t,appProviders:n,platformProviders:r,platformRef:i}=e;try{let o=i?.injector??sR(r);if(o.get(qv,!1)===!0&&!e.platformRef)throw new L(401,!1);let s=[zv({}),{provide:zr,useExisting:tR},...n||[]],a=new ia({providers:s,parent:o,debugName:"",runEnvironmentInitializers:!1});return rR({r3Injector:a.injector,platformInjector:o,rootComponent:t})}catch(o){return Promise.reject(o)}}var Qv=null;function Xr(){return Qv}function Kv(e){Qv??=e}var _a=class{};var bt=new $(""),Jv=(()=>{class e{historyGo(n){throw new Error("")}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=F({token:e,factory:()=>T(fR),providedIn:"platform"})}}return e})();var fR=(()=>{class e extends Jv{constructor(){super(),this._doc=T(bt),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return Xr().getBaseHref(this._doc)}onPopState(n){let r=Xr().getGlobalEventTarget(this._doc,"window");return r.addEventListener("popstate",n,!1),()=>r.removeEventListener("popstate",n)}onHashChange(n){let r=Xr().getGlobalEventTarget(this._doc,"window");return r.addEventListener("hashchange",n,!1),()=>r.removeEventListener("hashchange",n)}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(n){this._location.pathname=n}pushState(n,r,i){this._history.pushState(n,r,i)}replaceState(n,r,i){this._history.replaceState(n,r,i)}forward(){this._history.forward()}back(){this._history.back()}historyGo(n=0){this._history.go(n)}getState(){return this._history.state}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=F({token:e,factory:()=>new e,providedIn:"platform"})}}return e})();function Xv(e,t){if(e.length==0)return t;if(t.length==0)return e;let n=0;return e.endsWith("/")&&n++,t.startsWith("/")&&n++,n==2?e+t.substring(1):n==1?e+t:e+"/"+t}function Uv(e){let t=e.match(/#|\?|$/),n=t&&t.index||e.length,r=n-(e[n-1]==="/"?1:0);return e.slice(0,r)+e.slice(n)}function ir(e){return e&&e[0]!=="?"?"?"+e:e}var ka=(()=>{class e{historyGo(n){throw new Error("")}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=F({token:e,factory:()=>T(eb),providedIn:"root"})}}return e})(),hR=new $(""),eb=(()=>{class e extends ka{constructor(n,r){super(),this._platformLocation=n,this._removeListenerFns=[],this._baseHref=r??this._platformLocation.getBaseHrefFromDOM()??T(bt).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(n){this._removeListenerFns.push(this._platformLocation.onPopState(n),this._platformLocation.onHashChange(n))}getBaseHref(){return this._baseHref}prepareExternalUrl(n){return Xv(this._baseHref,n)}path(n=!1){let r=this._platformLocation.pathname+ir(this._platformLocation.search),i=this._platformLocation.hash;return i&&n?`${r}${i}`:r}pushState(n,r,i,o){let s=this.prepareExternalUrl(i+ir(o));this._platformLocation.pushState(n,r,s)}replaceState(n,r,i,o){let s=this.prepareExternalUrl(i+ir(o));this._platformLocation.replaceState(n,r,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(n=0){this._platformLocation.historyGo?.(n)}static{this.\u0275fac=function(r){return new(r||e)(ee(Jv),ee(hR,8))}}static{this.\u0275prov=F({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var lo=(()=>{class e{constructor(n){this._subject=new We,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=n;let r=this._locationStrategy.getBaseHref();this._basePath=yR(Uv(Hv(r))),this._locationStrategy.onPopState(i=>{this._subject.emit({url:this.path(!0),pop:!0,state:i.state,type:i.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(n=!1){return this.normalize(this._locationStrategy.path(n))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(n,r=""){return this.path()==this.normalize(n+ir(r))}normalize(n){return e.stripTrailingSlash(gR(this._basePath,Hv(n)))}prepareExternalUrl(n){return n&&n[0]!=="/"&&(n="/"+n),this._locationStrategy.prepareExternalUrl(n)}go(n,r="",i=null){this._locationStrategy.pushState(i,"",n,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+ir(r)),i)}replaceState(n,r="",i=null){this._locationStrategy.replaceState(i,"",n,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+ir(r)),i)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(n=0){this._locationStrategy.historyGo?.(n)}onUrlChange(n){return this._urlChangeListeners.push(n),this._urlChangeSubscription??=this.subscribe(r=>{this._notifyUrlChangeListeners(r.url,r.state)}),()=>{let r=this._urlChangeListeners.indexOf(n);this._urlChangeListeners.splice(r,1),this._urlChangeListeners.length===0&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(n="",r){this._urlChangeListeners.forEach(i=>i(n,r))}subscribe(n,r,i){return this._subject.subscribe({next:n,error:r,complete:i})}static{this.normalizeQueryParams=ir}static{this.joinWithSlash=Xv}static{this.stripTrailingSlash=Uv}static{this.\u0275fac=function(r){return new(r||e)(ee(ka))}}static{this.\u0275prov=F({token:e,factory:()=>mR(),providedIn:"root"})}}return e})();function mR(){return new lo(ee(ka))}function gR(e,t){if(!e||!t.startsWith(e))return t;let n=t.substring(e.length);return n===""||["/",";","?","#"].includes(n[0])?n:t}function Hv(e){return e.replace(/\/index.html$/,"")}function yR(e){if(new RegExp("^(https?:)?//").test(e)){let[,n]=e.split(/\/\/[^\/]+/);return n}return e}function tb(e,t){t=encodeURIComponent(t);for(let n of e.split(";")){let r=n.indexOf("="),[i,o]=r==-1?[n,""]:[n.slice(0,r),n.slice(r+1)];if(i.trim()===t)return decodeURIComponent(o)}return null}var nb="browser",vR="server";function Gd(e){return e===vR}var Ia=class{};var Qd=class extends _a{constructor(){super(...arguments),this.supportsDOMEvents=!0}},Kd=class e extends Qd{static makeCurrent(){Kv(new e)}onAndCancel(t,n,r){return t.addEventListener(n,r),()=>{t.removeEventListener(n,r)}}dispatchEvent(t,n){t.dispatchEvent(n)}remove(t){t.remove()}createElement(t,n){return n=n||this.getDefaultDocument(),n.createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,n){return n==="window"?window:n==="document"?t:n==="body"?t.body:null}getBaseHref(t){let n=SR();return n==null?null:xR(n)}resetBaseElement(){uo=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return tb(document.cookie,t)}},uo=null;function SR(){return uo=uo||document.querySelector("base"),uo?uo.getAttribute("href"):null}function xR(e){return new URL(e,document.baseURI).pathname}var wR=(()=>{class e{build(){return new XMLHttpRequest}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=F({token:e,factory:e.\u0275fac})}}return e})(),Jd=new $(""),sb=(()=>{class e{constructor(n,r){this._zone=r,this._eventNameToPlugin=new Map,n.forEach(i=>{i.manager=this}),this._plugins=n.slice().reverse()}addEventListener(n,r,i){return this._findPluginFor(r).addEventListener(n,r,i)}getZone(){return this._zone}_findPluginFor(n){let r=this._eventNameToPlugin.get(n);if(r)return r;if(r=this._plugins.find(o=>o.supports(n)),!r)throw new L(5101,!1);return this._eventNameToPlugin.set(n,r),r}static{this.\u0275fac=function(r){return new(r||e)(ee(Jd),ee(Se))}}static{this.\u0275prov=F({token:e,factory:e.\u0275fac})}}return e})(),Aa=class{constructor(t){this._doc=t}},Yd="ng-app-id",ab=(()=>{class e{constructor(n,r,i,o={}){this.doc=n,this.appId=r,this.nonce=i,this.platformId=o,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=Gd(o),this.resetHostNodes()}addStyles(n){for(let r of n)this.changeUsageCount(r,1)===1&&this.onStyleAdded(r)}removeStyles(n){for(let r of n)this.changeUsageCount(r,-1)<=0&&this.onStyleRemoved(r)}ngOnDestroy(){let n=this.styleNodesInDOM;n&&(n.forEach(r=>r.remove()),n.clear());for(let r of this.getAllStyles())this.onStyleRemoved(r);this.resetHostNodes()}addHost(n){this.hostNodes.add(n);for(let r of this.getAllStyles())this.addStyleToHost(n,r)}removeHost(n){this.hostNodes.delete(n)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(n){for(let r of this.hostNodes)this.addStyleToHost(r,n)}onStyleRemoved(n){let r=this.styleRef;r.get(n)?.elements?.forEach(i=>i.remove()),r.delete(n)}collectServerRenderedStyles(){let n=this.doc.head?.querySelectorAll(`style[${Yd}="${this.appId}"]`);if(n?.length){let r=new Map;return n.forEach(i=>{i.textContent!=null&&r.set(i.textContent,i)}),r}return null}changeUsageCount(n,r){let i=this.styleRef;if(i.has(n)){let o=i.get(n);return o.usage+=r,o.usage}return i.set(n,{usage:r,elements:[]}),r}getStyleElement(n,r){let i=this.styleNodesInDOM,o=i?.get(r);if(o?.parentNode===n)return i.delete(r),o.removeAttribute(Yd),o;{let s=this.doc.createElement("style");return this.nonce&&s.setAttribute("nonce",this.nonce),s.textContent=r,this.platformIsServer&&s.setAttribute(Yd,this.appId),n.appendChild(s),s}}addStyleToHost(n,r){let i=this.getStyleElement(n,r),o=this.styleRef,s=o.get(r)?.elements;s?s.push(i):o.set(r,{elements:[i],usage:1})}resetHostNodes(){let n=this.hostNodes;n.clear(),n.add(this.doc.head)}static{this.\u0275fac=function(r){return new(r||e)(ee(bt),ee(Td),ee(Id,8),ee(Zr))}}static{this.\u0275prov=F({token:e,factory:e.\u0275fac})}}return e})(),Zd={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"},ep=/%COMP%/g,lb="%COMP%",CR=`_nghost-${lb}`,ER=`_ngcontent-${lb}`,DR=!0,TR=new $("",{providedIn:"root",factory:()=>DR});function _R(e){return ER.replace(ep,e)}function IR(e){return CR.replace(ep,e)}function ub(e,t){return t.map(n=>n.replace(ep,e))}var rb=(()=>{class e{constructor(n,r,i,o,s,a,l,u=null){this.eventManager=n,this.sharedStylesHost=r,this.appId=i,this.removeStylesOnCompDestroy=o,this.doc=s,this.platformId=a,this.ngZone=l,this.nonce=u,this.rendererByCompId=new Map,this.platformIsServer=Gd(a),this.defaultRenderer=new co(n,s,l,this.platformIsServer)}createRenderer(n,r){if(!n||!r)return this.defaultRenderer;this.platformIsServer&&r.encapsulation===Vt.ShadowDom&&(r=be(O({},r),{encapsulation:Vt.Emulated}));let i=this.getOrCreateRenderer(n,r);return i instanceof Ma?i.applyToHost(n):i instanceof po&&i.applyStyles(),i}getOrCreateRenderer(n,r){let i=this.rendererByCompId,o=i.get(r.id);if(!o){let s=this.doc,a=this.ngZone,l=this.eventManager,u=this.sharedStylesHost,c=this.removeStylesOnCompDestroy,p=this.platformIsServer;switch(r.encapsulation){case Vt.Emulated:o=new Ma(l,u,r,this.appId,c,s,a,p);break;case Vt.ShadowDom:return new Xd(l,u,n,r,s,a,this.nonce,p);default:o=new po(l,u,r,c,s,a,p);break}i.set(r.id,o)}return o}ngOnDestroy(){this.rendererByCompId.clear()}static{this.\u0275fac=function(r){return new(r||e)(ee(sb),ee(ab),ee(Td),ee(TR),ee(bt),ee(Zr),ee(Se),ee(Id))}}static{this.\u0275prov=F({token:e,factory:e.\u0275fac})}}return e})(),co=class{constructor(t,n,r,i){this.eventManager=t,this.doc=n,this.ngZone=r,this.platformIsServer=i,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(t,n){return n?this.doc.createElementNS(Zd[n]||n,t):this.doc.createElement(t)}createComment(t){return this.doc.createComment(t)}createText(t){return this.doc.createTextNode(t)}appendChild(t,n){(ib(t)?t.content:t).appendChild(n)}insertBefore(t,n,r){t&&(ib(t)?t.content:t).insertBefore(n,r)}removeChild(t,n){n.remove()}selectRootElement(t,n){let r=typeof t=="string"?this.doc.querySelector(t):t;if(!r)throw new L(-5104,!1);return n||(r.textContent=""),r}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,n,r,i){if(i){n=i+":"+n;let o=Zd[i];o?t.setAttributeNS(o,n,r):t.setAttribute(n,r)}else t.setAttribute(n,r)}removeAttribute(t,n,r){if(r){let i=Zd[r];i?t.removeAttributeNS(i,n):t.removeAttribute(`${r}:${n}`)}else t.removeAttribute(n)}addClass(t,n){t.classList.add(n)}removeClass(t,n){t.classList.remove(n)}setStyle(t,n,r,i){i&(er.DashCase|er.Important)?t.style.setProperty(n,r,i&er.Important?"important":""):t.style[n]=r}removeStyle(t,n,r){r&er.DashCase?t.style.removeProperty(n):t.style[n]=""}setProperty(t,n,r){t!=null&&(t[n]=r)}setValue(t,n){t.nodeValue=n}listen(t,n,r){if(typeof t=="string"&&(t=Xr().getGlobalEventTarget(this.doc,t),!t))throw new Error(`Unsupported event target ${t} for event ${n}`);return this.eventManager.addEventListener(t,n,this.decoratePreventDefault(r))}decoratePreventDefault(t){return n=>{if(n==="__ngUnwrap__")return t;(this.platformIsServer?this.ngZone.runGuarded(()=>t(n)):t(n))===!1&&n.preventDefault()}}};function ib(e){return e.tagName==="TEMPLATE"&&e.content!==void 0}var Xd=class extends co{constructor(t,n,r,i,o,s,a,l){super(t,o,s,l),this.sharedStylesHost=n,this.hostEl=r,this.shadowRoot=r.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let u=ub(i.id,i.styles);for(let c of u){let p=document.createElement("style");a&&p.setAttribute("nonce",a),p.textContent=c,this.shadowRoot.appendChild(p)}}nodeOrShadowRoot(t){return t===this.hostEl?this.shadowRoot:t}appendChild(t,n){return super.appendChild(this.nodeOrShadowRoot(t),n)}insertBefore(t,n,r){return super.insertBefore(this.nodeOrShadowRoot(t),n,r)}removeChild(t,n){return super.removeChild(null,n)}parentNode(t){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(t)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},po=class extends co{constructor(t,n,r,i,o,s,a,l){super(t,o,s,a),this.sharedStylesHost=n,this.removeStylesOnCompDestroy=i,this.styles=l?ub(l,r.styles):r.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}},Ma=class extends po{constructor(t,n,r,i,o,s,a,l){let u=i+"-"+r.id;super(t,n,r,o,s,a,l,u),this.contentAttr=_R(u),this.hostAttr=IR(u)}applyToHost(t){this.applyStyles(),this.setAttribute(t,this.hostAttr,"")}createElement(t,n){let r=super.createElement(t,n);return super.setAttribute(r,this.contentAttr,""),r}},kR=(()=>{class e extends Aa{constructor(n){super(n)}supports(n){return!0}addEventListener(n,r,i){return n.addEventListener(r,i,!1),()=>this.removeEventListener(n,r,i)}removeEventListener(n,r,i){return n.removeEventListener(r,i)}static{this.\u0275fac=function(r){return new(r||e)(ee(bt))}}static{this.\u0275prov=F({token:e,factory:e.\u0275fac})}}return e})(),ob=["alt","control","meta","shift"],AR={"\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"},MR={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey},OR=(()=>{class e extends Aa{constructor(n){super(n)}supports(n){return e.parseEventName(n)!=null}addEventListener(n,r,i){let o=e.parseEventName(r),s=e.eventCallback(o.fullKey,i,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Xr().onAndCancel(n,o.domEventName,s))}static parseEventName(n){let r=n.toLowerCase().split("."),i=r.shift();if(r.length===0||!(i==="keydown"||i==="keyup"))return null;let o=e._normalizeKey(r.pop()),s="",a=r.indexOf("code");if(a>-1&&(r.splice(a,1),s="code."),ob.forEach(u=>{let c=r.indexOf(u);c>-1&&(r.splice(c,1),s+=u+".")}),s+=o,r.length!=0||o.length===0)return null;let l={};return l.domEventName=i,l.fullKey=s,l}static matchEventFullKeyCode(n,r){let i=AR[n.key]||n.key,o="";return r.indexOf("code.")>-1&&(i=n.code,o="code."),i==null||!i?!1:(i=i.toLowerCase(),i===" "?i="space":i==="."&&(i="dot"),ob.forEach(s=>{if(s!==i){let a=MR[s];a(n)&&(o+=s+".")}}),o+=i,o===r)}static eventCallback(n,r,i){return o=>{e.matchEventFullKeyCode(o,n)&&i.runGuarded(()=>r(o))}}static _normalizeKey(n){return n==="esc"?"escape":n}static{this.\u0275fac=function(r){return new(r||e)(ee(bt))}}static{this.\u0275prov=F({token:e,factory:e.\u0275fac})}}return e})();function cb(e,t,n){return Vv(O({rootComponent:e,platformRef:n?.platformRef},NR(t)))}function NR(e){return{appProviders:[...FR,...e?.providers??[]],platformProviders:jR}}function RR(){Kd.makeCurrent()}function PR(){return new nn}function LR(){return Uy(document),document}var jR=[{provide:Zr,useValue:nb},{provide:_d,useValue:RR,multi:!0},{provide:bt,useFactory:LR,deps:[]}];var FR=[{provide:da,useValue:"root"},{provide:nn,useFactory:PR,deps:[]},{provide:Jd,useClass:kR,multi:!0,deps:[bt,Se,Zr]},{provide:Jd,useClass:OR,multi:!0,deps:[bt]},rb,ab,sb,{provide:Wr,useExisting:rb},{provide:Ia,useClass:wR,deps:[]},[]];var db=(()=>{class e{constructor(n){this._doc=n}getTitle(){return this._doc.title}setTitle(n){this._doc.title=n||""}static{this.\u0275fac=function(r){return new(r||e)(ee(bt))}}static{this.\u0275prov=F({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var G="primary",ko=Symbol("RouteTitle"),op=class{constructor(t){this.params=t||{}}has(t){return Object.prototype.hasOwnProperty.call(this.params,t)}get(t){if(this.has(t)){let n=this.params[t];return Array.isArray(n)?n[0]:n}return null}getAll(t){if(this.has(t)){let n=this.params[t];return Array.isArray(n)?n:[n]}return[]}get keys(){return Object.keys(this.params)}};function oi(e){return new op(e)}function BR(e,t,n){let r=n.path.split("/");if(r.length>e.length||n.pathMatch==="full"&&(t.hasChildren()||r.length<e.length))return null;let i={};for(let o=0;o<r.length;o++){let s=r[o],a=e[o];if(s[0]===":")i[s.substring(1)]=a;else if(s!==a.path)return null}return{consumed:e.slice(0,r.length),posParams:i}}function WR(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;++n)if(!Gt(e[n],t[n]))return!1;return!0}function Gt(e,t){let n=e?sp(e):void 0,r=t?sp(t):void 0;if(!n||!r||n.length!=r.length)return!1;let i;for(let o=0;o<n.length;o++)if(i=n[o],!bb(e[i],t[i]))return!1;return!0}function sp(e){return[...Object.keys(e),...Object.getOwnPropertySymbols(e)]}function bb(e,t){if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;let n=[...e].sort(),r=[...t].sort();return n.every((i,o)=>r[o]===i)}else return e===t}function Sb(e){return e.length>0?e[e.length-1]:null}function kn(e){return Ku(e)?e:so(e)?ke(Promise.resolve(e)):H(e)}var qR={exact:wb,subset:Cb},xb={exact:VR,subset:UR,ignored:()=>!0};function pb(e,t,n){return qR[n.paths](e.root,t.root,n.matrixParams)&&xb[n.queryParams](e.queryParams,t.queryParams)&&!(n.fragment==="exact"&&e.fragment!==t.fragment)}function VR(e,t){return Gt(e,t)}function wb(e,t,n){if(!sr(e.segments,t.segments)||!Ra(e.segments,t.segments,n)||e.numberOfChildren!==t.numberOfChildren)return!1;for(let r in t.children)if(!e.children[r]||!wb(e.children[r],t.children[r],n))return!1;return!0}function UR(e,t){return Object.keys(t).length<=Object.keys(e).length&&Object.keys(t).every(n=>bb(e[n],t[n]))}function Cb(e,t,n){return Eb(e,t,t.segments,n)}function Eb(e,t,n,r){if(e.segments.length>n.length){let i=e.segments.slice(0,n.length);return!(!sr(i,n)||t.hasChildren()||!Ra(i,n,r))}else if(e.segments.length===n.length){if(!sr(e.segments,n)||!Ra(e.segments,n,r))return!1;for(let i in t.children)if(!e.children[i]||!Cb(e.children[i],t.children[i],r))return!1;return!0}else{let i=n.slice(0,e.segments.length),o=n.slice(e.segments.length);return!sr(e.segments,i)||!Ra(e.segments,i,r)||!e.children[G]?!1:Eb(e.children[G],t,o,r)}}function Ra(e,t,n){return t.every((r,i)=>xb[n](e[i].parameters,r.parameters))}var un=class{constructor(t=new ae([],{}),n={},r=null){this.root=t,this.queryParams=n,this.fragment=r}get queryParamMap(){return this._queryParamMap??=oi(this.queryParams),this._queryParamMap}toString(){return GR.serialize(this)}},ae=class{constructor(t,n){this.segments=t,this.children=n,this.parent=null,Object.values(n).forEach(r=>r.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Pa(this)}},or=class{constructor(t,n){this.path=t,this.parameters=n}get parameterMap(){return this._parameterMap??=oi(this.parameters),this._parameterMap}toString(){return Tb(this)}};function HR(e,t){return sr(e,t)&&e.every((n,r)=>Gt(n.parameters,t[r].parameters))}function sr(e,t){return e.length!==t.length?!1:e.every((n,r)=>n.path===t[r].path)}function $R(e,t){let n=[];return Object.entries(e.children).forEach(([r,i])=>{r===G&&(n=n.concat(t(i,r)))}),Object.entries(e.children).forEach(([r,i])=>{r!==G&&(n=n.concat(t(i,r)))}),n}var Op=(()=>{class e{static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=F({token:e,factory:()=>new bo,providedIn:"root"})}}return e})(),bo=class{parse(t){let n=new lp(t);return new un(n.parseRootSegment(),n.parseQueryParams(),n.parseFragment())}serialize(t){let n=`/${fo(t.root,!0)}`,r=QR(t.queryParams),i=typeof t.fragment=="string"?`#${YR(t.fragment)}`:"";return`${n}${r}${i}`}},GR=new bo;function Pa(e){return e.segments.map(t=>Tb(t)).join("/")}function fo(e,t){if(!e.hasChildren())return Pa(e);if(t){let n=e.children[G]?fo(e.children[G],!1):"",r=[];return Object.entries(e.children).forEach(([i,o])=>{i!==G&&r.push(`${i}:${fo(o,!1)}`)}),r.length>0?`${n}(${r.join("//")})`:n}else{let n=$R(e,(r,i)=>i===G?[fo(e.children[G],!1)]:[`${i}:${fo(r,!1)}`]);return Object.keys(e.children).length===1&&e.children[G]!=null?`${Pa(e)}/${n[0]}`:`${Pa(e)}/(${n.join("//")})`}}function Db(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Oa(e){return Db(e).replace(/%3B/gi,";")}function YR(e){return encodeURI(e)}function ap(e){return Db(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function La(e){return decodeURIComponent(e)}function fb(e){return La(e.replace(/\+/g,"%20"))}function Tb(e){return`${ap(e.path)}${ZR(e.parameters)}`}function ZR(e){return Object.entries(e).map(([t,n])=>`;${ap(t)}=${ap(n)}`).join("")}function QR(e){let t=Object.entries(e).map(([n,r])=>Array.isArray(r)?r.map(i=>`${Oa(n)}=${Oa(i)}`).join("&"):`${Oa(n)}=${Oa(r)}`).filter(n=>n);return t.length?`?${t.join("&")}`:""}var KR=/^[^\/()?;#]+/;function tp(e){let t=e.match(KR);return t?t[0]:""}var JR=/^[^\/()?;=#]+/;function XR(e){let t=e.match(JR);return t?t[0]:""}var e1=/^[^=?&#]+/;function t1(e){let t=e.match(e1);return t?t[0]:""}var n1=/^[^&#]+/;function r1(e){let t=e.match(n1);return t?t[0]:""}var lp=class{constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new ae([],{}):new ae([],this.parseChildren())}parseQueryParams(){let t={};if(this.consumeOptional("?"))do this.parseQueryParam(t);while(this.consumeOptional("&"));return t}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(this.remaining==="")return{};this.consumeOptional("/");let t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());let n={};this.peekStartsWith("/(")&&(this.capture("/"),n=this.parseParens(!0));let r={};return this.peekStartsWith("(")&&(r=this.parseParens(!1)),(t.length>0||Object.keys(n).length>0)&&(r[G]=new ae(t,n)),r}parseSegment(){let t=tp(this.remaining);if(t===""&&this.peekStartsWith(";"))throw new L(4009,!1);return this.capture(t),new or(La(t),this.parseMatrixParams())}parseMatrixParams(){let t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){let n=XR(this.remaining);if(!n)return;this.capture(n);let r="";if(this.consumeOptional("=")){let i=tp(this.remaining);i&&(r=i,this.capture(r))}t[La(n)]=La(r)}parseQueryParam(t){let n=t1(this.remaining);if(!n)return;this.capture(n);let r="";if(this.consumeOptional("=")){let s=r1(this.remaining);s&&(r=s,this.capture(r))}let i=fb(n),o=fb(r);if(t.hasOwnProperty(i)){let s=t[i];Array.isArray(s)||(s=[s],t[i]=s),s.push(o)}else t[i]=o}parseParens(t){let n={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let r=tp(this.remaining),i=this.remaining[r.length];if(i!=="/"&&i!==")"&&i!==";")throw new L(4010,!1);let o;r.indexOf(":")>-1?(o=r.slice(0,r.indexOf(":")),this.capture(o),this.capture(":")):t&&(o=G);let s=this.parseChildren();n[o]=Object.keys(s).length===1?s[G]:new ae([],s),this.consumeOptional("//")}return n}peekStartsWith(t){return this.remaining.startsWith(t)}consumeOptional(t){return this.peekStartsWith(t)?(this.remaining=this.remaining.substring(t.length),!0):!1}capture(t){if(!this.consumeOptional(t))throw new L(4011,!1)}};function _b(e){return e.segments.length>0?new ae([],{[G]:e}):e}function Ib(e){let t={};for(let[r,i]of Object.entries(e.children)){let o=Ib(i);if(r===G&&o.segments.length===0&&o.hasChildren())for(let[s,a]of Object.entries(o.children))t[s]=a;else(o.segments.length>0||o.hasChildren())&&(t[r]=o)}let n=new ae(e.segments,t);return i1(n)}function i1(e){if(e.numberOfChildren===1&&e.children[G]){let t=e.children[G];return new ae(e.segments.concat(t.segments),t.children)}return e}function So(e){return e instanceof un}function o1(e,t,n=null,r=null){let i=kb(e);return Ab(i,t,n,r)}function kb(e){let t;function n(o){let s={};for(let l of o.children){let u=n(l);s[l.outlet]=u}let a=new ae(o.url,s);return o===e&&(t=a),a}let r=n(e.root),i=_b(r);return t??i}function Ab(e,t,n,r){let i=e;for(;i.parent;)i=i.parent;if(t.length===0)return np(i,i,i,n,r);let o=s1(t);if(o.toRoot())return np(i,i,new ae([],{}),n,r);let s=a1(o,i,e),a=s.processChildren?go(s.segmentGroup,s.index,o.commands):Ob(s.segmentGroup,s.index,o.commands);return np(i,s.segmentGroup,a,n,r)}function ja(e){return typeof e=="object"&&e!=null&&!e.outlets&&!e.segmentPath}function xo(e){return typeof e=="object"&&e!=null&&e.outlets}function np(e,t,n,r,i){let o={};r&&Object.entries(r).forEach(([l,u])=>{o[l]=Array.isArray(u)?u.map(c=>`${c}`):`${u}`});let s;e===t?s=n:s=Mb(e,t,n);let a=_b(Ib(s));return new un(a,o,i)}function Mb(e,t,n){let r={};return Object.entries(e.children).forEach(([i,o])=>{o===t?r[i]=n:r[i]=Mb(o,t,n)}),new ae(e.segments,r)}var Fa=class{constructor(t,n,r){if(this.isAbsolute=t,this.numberOfDoubleDots=n,this.commands=r,t&&r.length>0&&ja(r[0]))throw new L(4003,!1);let i=r.find(xo);if(i&&i!==Sb(r))throw new L(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function s1(e){if(typeof e[0]=="string"&&e.length===1&&e[0]==="/")return new Fa(!0,0,e);let t=0,n=!1,r=e.reduce((i,o,s)=>{if(typeof o=="object"&&o!=null){if(o.outlets){let a={};return Object.entries(o.outlets).forEach(([l,u])=>{a[l]=typeof u=="string"?u.split("/"):u}),[...i,{outlets:a}]}if(o.segmentPath)return[...i,o.segmentPath]}return typeof o!="string"?[...i,o]:s===0?(o.split("/").forEach((a,l)=>{l==0&&a==="."||(l==0&&a===""?n=!0:a===".."?t++:a!=""&&i.push(a))}),i):[...i,o]},[]);return new Fa(n,t,r)}var ni=class{constructor(t,n,r){this.segmentGroup=t,this.processChildren=n,this.index=r}};function a1(e,t,n){if(e.isAbsolute)return new ni(t,!0,0);if(!n)return new ni(t,!1,NaN);if(n.parent===null)return new ni(n,!0,0);let r=ja(e.commands[0])?0:1,i=n.segments.length-1+r;return l1(n,i,e.numberOfDoubleDots)}function l1(e,t,n){let r=e,i=t,o=n;for(;o>i;){if(o-=i,r=r.parent,!r)throw new L(4005,!1);i=r.segments.length}return new ni(r,!1,i-o)}function u1(e){return xo(e[0])?e[0].outlets:{[G]:e}}function Ob(e,t,n){if(e??=new ae([],{}),e.segments.length===0&&e.hasChildren())return go(e,t,n);let r=c1(e,t,n),i=n.slice(r.commandIndex);if(r.match&&r.pathIndex<e.segments.length){let o=new ae(e.segments.slice(0,r.pathIndex),{});return o.children[G]=new ae(e.segments.slice(r.pathIndex),e.children),go(o,0,i)}else return r.match&&i.length===0?new ae(e.segments,{}):r.match&&!e.hasChildren()?up(e,t,n):r.match?go(e,0,i):up(e,t,n)}function go(e,t,n){if(n.length===0)return new ae(e.segments,{});{let r=u1(n),i={};if(Object.keys(r).some(o=>o!==G)&&e.children[G]&&e.numberOfChildren===1&&e.children[G].segments.length===0){let o=go(e.children[G],t,n);return new ae(e.segments,o.children)}return Object.entries(r).forEach(([o,s])=>{typeof s=="string"&&(s=[s]),s!==null&&(i[o]=Ob(e.children[o],t,s))}),Object.entries(e.children).forEach(([o,s])=>{r[o]===void 0&&(i[o]=s)}),new ae(e.segments,i)}}function c1(e,t,n){let r=0,i=t,o={match:!1,pathIndex:0,commandIndex:0};for(;i<e.segments.length;){if(r>=n.length)return o;let s=e.segments[i],a=n[r];if(xo(a))break;let l=`${a}`,u=r<n.length-1?n[r+1]:null;if(i>0&&l===void 0)break;if(l&&u&&typeof u=="object"&&u.outlets===void 0){if(!mb(l,u,s))return o;r+=2}else{if(!mb(l,{},s))return o;r++}i++}return{match:!0,pathIndex:i,commandIndex:r}}function up(e,t,n){let r=e.segments.slice(0,t),i=0;for(;i<n.length;){let o=n[i];if(xo(o)){let l=d1(o.outlets);return new ae(r,l)}if(i===0&&ja(n[0])){let l=e.segments[t];r.push(new or(l.path,hb(n[0]))),i++;continue}let s=xo(o)?o.outlets[G]:`${o}`,a=i<n.length-1?n[i+1]:null;s&&a&&ja(a)?(r.push(new or(s,hb(a))),i+=2):(r.push(new or(s,{})),i++)}return new ae(r,{})}function d1(e){let t={};return Object.entries(e).forEach(([n,r])=>{typeof r=="string"&&(r=[r]),r!==null&&(t[n]=up(new ae([],{}),0,r))}),t}function hb(e){let t={};return Object.entries(e).forEach(([n,r])=>t[n]=`${r}`),t}function mb(e,t,n){return e==n.path&&Gt(t,n.parameters)}var yo="imperative",Fe=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.ResolveStart=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}(Fe||{}),St=class{constructor(t,n){this.id=t,this.url=n}},wo=class extends St{constructor(t,n,r="imperative",i=null){super(t,n),this.type=Fe.NavigationStart,this.navigationTrigger=r,this.restoredState=i}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},ar=class extends St{constructor(t,n,r){super(t,n),this.urlAfterRedirects=r,this.type=Fe.NavigationEnd}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},pt=function(e){return e[e.Redirect=0]="Redirect",e[e.SupersededByNewNavigation=1]="SupersededByNewNavigation",e[e.NoDataFromResolver=2]="NoDataFromResolver",e[e.GuardRejected=3]="GuardRejected",e}(pt||{}),cp=function(e){return e[e.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",e[e.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",e}(cp||{}),ln=class extends St{constructor(t,n,r,i){super(t,n),this.reason=r,this.code=i,this.type=Fe.NavigationCancel}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}},lr=class extends St{constructor(t,n,r,i){super(t,n),this.reason=r,this.code=i,this.type=Fe.NavigationSkipped}},Co=class extends St{constructor(t,n,r,i){super(t,n),this.error=r,this.target=i,this.type=Fe.NavigationError}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},za=class extends St{constructor(t,n,r,i){super(t,n),this.urlAfterRedirects=r,this.state=i,this.type=Fe.RoutesRecognized}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},dp=class extends St{constructor(t,n,r,i){super(t,n),this.urlAfterRedirects=r,this.state=i,this.type=Fe.GuardsCheckStart}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},pp=class extends St{constructor(t,n,r,i,o){super(t,n),this.urlAfterRedirects=r,this.state=i,this.shouldActivate=o,this.type=Fe.GuardsCheckEnd}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},fp=class extends St{constructor(t,n,r,i){super(t,n),this.urlAfterRedirects=r,this.state=i,this.type=Fe.ResolveStart}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},hp=class extends St{constructor(t,n,r,i){super(t,n),this.urlAfterRedirects=r,this.state=i,this.type=Fe.ResolveEnd}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},mp=class{constructor(t){this.route=t,this.type=Fe.RouteConfigLoadStart}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},gp=class{constructor(t){this.route=t,this.type=Fe.RouteConfigLoadEnd}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},yp=class{constructor(t){this.snapshot=t,this.type=Fe.ChildActivationStart}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},vp=class{constructor(t){this.snapshot=t,this.type=Fe.ChildActivationEnd}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},bp=class{constructor(t){this.snapshot=t,this.type=Fe.ActivationStart}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Sp=class{constructor(t){this.snapshot=t,this.type=Fe.ActivationEnd}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}};var Eo=class{},si=class{constructor(t,n){this.url=t,this.navigationBehaviorOptions=n}};function p1(e,t){return e.providers&&!e._injector&&(e._injector=Wd(e.providers,t,`Route: ${e.path}`)),e._injector??t}function Pt(e){return e.outlet||G}function f1(e,t){let n=e.filter(r=>Pt(r)===t);return n.push(...e.filter(r=>Pt(r)!==t)),n}function Ao(e){if(!e)return null;if(e.routeConfig?._injector)return e.routeConfig._injector;for(let t=e.parent;t;t=t.parent){let n=t.routeConfig;if(n?._loadedInjector)return n._loadedInjector;if(n?._injector)return n._injector}return null}var xp=class{get injector(){return Ao(this.route?.snapshot)??this.rootInjector}set injector(t){}constructor(t){this.rootInjector=t,this.outlet=null,this.route=null,this.children=new $a(this.rootInjector),this.attachRef=null}},$a=(()=>{class e{constructor(n){this.rootInjector=n,this.contexts=new Map}onChildOutletCreated(n,r){let i=this.getOrCreateContext(n);i.outlet=r,this.contexts.set(n,i)}onChildOutletDestroyed(n){let r=this.getContext(n);r&&(r.outlet=null,r.attachRef=null)}onOutletDeactivated(){let n=this.contexts;return this.contexts=new Map,n}onOutletReAttached(n){this.contexts=n}getOrCreateContext(n){let r=this.getContext(n);return r||(r=new xp(this.rootInjector),this.contexts.set(n,r)),r}getContext(n){return this.contexts.get(n)||null}static{this.\u0275fac=function(r){return new(r||e)(ee(vt))}}static{this.\u0275prov=F({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),Ba=class{constructor(t){this._root=t}get root(){return this._root.value}parent(t){let n=this.pathFromRoot(t);return n.length>1?n[n.length-2]:null}children(t){let n=wp(t,this._root);return n?n.children.map(r=>r.value):[]}firstChild(t){let n=wp(t,this._root);return n&&n.children.length>0?n.children[0].value:null}siblings(t){let n=Cp(t,this._root);return n.length<2?[]:n[n.length-2].children.map(i=>i.value).filter(i=>i!==t)}pathFromRoot(t){return Cp(t,this._root).map(n=>n.value)}};function wp(e,t){if(e===t.value)return t;for(let n of t.children){let r=wp(e,n);if(r)return r}return null}function Cp(e,t){if(e===t.value)return[t];for(let n of t.children){let r=Cp(e,n);if(r.length)return r.unshift(t),r}return[]}var dt=class{constructor(t,n){this.value=t,this.children=n}toString(){return`TreeNode(${this.value})`}};function ti(e){let t={};return e&&e.children.forEach(n=>t[n.value.outlet]=n),t}var Wa=class extends Ba{constructor(t,n){super(t),this.snapshot=n,Np(this,t)}toString(){return this.snapshot.toString()}};function Nb(e){let t=h1(e),n=new Pe([new or("",{})]),r=new Pe({}),i=new Pe({}),o=new Pe({}),s=new Pe(""),a=new ai(n,r,o,s,i,G,e,t.root);return a.snapshot=t.root,new Wa(new dt(a,[]),t)}function h1(e){let t={},n={},r={},i="",o=new ri([],t,r,i,n,G,e,null,{});return new Va("",new dt(o,[]))}var ai=class{constructor(t,n,r,i,o,s,a,l){this.urlSubject=t,this.paramsSubject=n,this.queryParamsSubject=r,this.fragmentSubject=i,this.dataSubject=o,this.outlet=s,this.component=a,this._futureSnapshot=l,this.title=this.dataSubject?.pipe(X(u=>u[ko]))??H(void 0),this.url=t,this.params=n,this.queryParams=r,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(X(t=>oi(t))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(X(t=>oi(t))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function qa(e,t,n="emptyOnly"){let r,{routeConfig:i}=e;return t!==null&&(n==="always"||i?.path===""||!t.component&&!t.routeConfig?.loadComponent)?r={params:O(O({},t.params),e.params),data:O(O({},t.data),e.data),resolve:O(O(O(O({},e.data),t.data),i?.data),e._resolvedData)}:r={params:O({},e.params),data:O({},e.data),resolve:O(O({},e.data),e._resolvedData??{})},i&&Pb(i)&&(r.resolve[ko]=i.title),r}var ri=class{get title(){return this.data?.[ko]}constructor(t,n,r,i,o,s,a,l,u){this.url=t,this.params=n,this.queryParams=r,this.fragment=i,this.data=o,this.outlet=s,this.component=a,this.routeConfig=l,this._resolve=u}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??=oi(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=oi(this.queryParams),this._queryParamMap}toString(){let t=this.url.map(r=>r.toString()).join("/"),n=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${t}', path:'${n}')`}},Va=class extends Ba{constructor(t,n){super(n),this.url=t,Np(this,n)}toString(){return Rb(this._root)}};function Np(e,t){t.value._routerState=e,t.children.forEach(n=>Np(e,n))}function Rb(e){let t=e.children.length>0?` { ${e.children.map(Rb).join(", ")} } `:"";return`${e.value}${t}`}function rp(e){if(e.snapshot){let t=e.snapshot,n=e._futureSnapshot;e.snapshot=n,Gt(t.queryParams,n.queryParams)||e.queryParamsSubject.next(n.queryParams),t.fragment!==n.fragment&&e.fragmentSubject.next(n.fragment),Gt(t.params,n.params)||e.paramsSubject.next(n.params),WR(t.url,n.url)||e.urlSubject.next(n.url),Gt(t.data,n.data)||e.dataSubject.next(n.data)}else e.snapshot=e._futureSnapshot,e.dataSubject.next(e._futureSnapshot.data)}function Ep(e,t){let n=Gt(e.params,t.params)&&HR(e.url,t.url),r=!e.parent!=!t.parent;return n&&!r&&(!e.parent||Ep(e.parent,t.parent))}function Pb(e){return typeof e.title=="string"||e.title===null}var Rp=(()=>{class e{constructor(){this.activated=null,this._activatedRoute=null,this.name=G,this.activateEvents=new We,this.deactivateEvents=new We,this.attachEvents=new We,this.detachEvents=new We,this.parentContexts=T($a),this.location=T(Qr),this.changeDetector=T(ao),this.inputBinder=T(Pp,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(n){if(n.name){let{firstChange:r,previousValue:i}=n.name;if(r)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(n){return this.parentContexts.getContext(n)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let n=this.parentContexts.getContext(this.name);n?.route&&(n.attachRef?this.attach(n.attachRef,n.route):this.activateWith(n.route,n.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new L(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new L(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new L(4012,!1);this.location.detach();let n=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(n.instance),n}attach(n,r){this.activated=n,this._activatedRoute=r,this.location.insert(n.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(n.instance)}deactivate(){if(this.activated){let n=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(n)}}activateWith(n,r){if(this.isActivated)throw new L(4013,!1);this._activatedRoute=n;let i=this.location,s=n.snapshot.component,a=this.parentContexts.getOrCreateContext(this.name).children,l=new Dp(n,a,i.injector);this.activated=i.createComponent(s,{index:i.length,injector:l,environmentInjector:r}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275dir=ro({type:e,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[_n]})}}return e})(),Dp=class e{__ngOutletInjector(t){return new e(this.route,this.childContexts,t)}constructor(t,n,r){this.route=t,this.childContexts=n,this.parent=r}get(t,n){return t===ai?this.route:t===$a?this.childContexts:this.parent.get(t,n)}},Pp=new $("");function m1(e,t,n){let r=Do(e,t._root,n?n._root:void 0);return new Wa(r,t)}function Do(e,t,n){if(n&&e.shouldReuseRoute(t.value,n.value.snapshot)){let r=n.value;r._futureSnapshot=t.value;let i=g1(e,t,n);return new dt(r,i)}else{if(e.shouldAttach(t.value)){let o=e.retrieve(t.value);if(o!==null){let s=o.route;return s.value._futureSnapshot=t.value,s.children=t.children.map(a=>Do(e,a)),s}}let r=y1(t.value),i=t.children.map(o=>Do(e,o));return new dt(r,i)}}function g1(e,t,n){return t.children.map(r=>{for(let i of n.children)if(e.shouldReuseRoute(r.value,i.value.snapshot))return Do(e,r,i);return Do(e,r)})}function y1(e){return new ai(new Pe(e.url),new Pe(e.params),new Pe(e.queryParams),new Pe(e.fragment),new Pe(e.data),e.outlet,e.component,e)}var To=class{constructor(t,n){this.redirectTo=t,this.navigationBehaviorOptions=n}},Lb="ngNavigationCancelingError";function Ua(e,t){let{redirectTo:n,navigationBehaviorOptions:r}=So(t)?{redirectTo:t,navigationBehaviorOptions:void 0}:t,i=jb(!1,pt.Redirect);return i.url=n,i.navigationBehaviorOptions=r,i}function jb(e,t){let n=new Error(`NavigationCancelingError: ${e||""}`);return n[Lb]=!0,n.cancellationCode=t,n}function v1(e){return Fb(e)&&So(e.url)}function Fb(e){return!!e&&e[Lb]}var b1=(e,t,n,r)=>X(i=>(new Tp(t,i.targetRouterState,i.currentRouterState,n,r).activate(e),i)),Tp=class{constructor(t,n,r,i,o){this.routeReuseStrategy=t,this.futureState=n,this.currState=r,this.forwardEvent=i,this.inputBindingEnabled=o}activate(t){let n=this.futureState._root,r=this.currState?this.currState._root:null;this.deactivateChildRoutes(n,r,t),rp(this.futureState.root),this.activateChildRoutes(n,r,t)}deactivateChildRoutes(t,n,r){let i=ti(n);t.children.forEach(o=>{let s=o.value.outlet;this.deactivateRoutes(o,i[s],r),delete i[s]}),Object.values(i).forEach(o=>{this.deactivateRouteAndItsChildren(o,r)})}deactivateRoutes(t,n,r){let i=t.value,o=n?n.value:null;if(i===o)if(i.component){let s=r.getContext(i.outlet);s&&this.deactivateChildRoutes(t,n,s.children)}else this.deactivateChildRoutes(t,n,r);else o&&this.deactivateRouteAndItsChildren(n,r)}deactivateRouteAndItsChildren(t,n){t.value.component&&this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,n):this.deactivateRouteAndOutlet(t,n)}detachAndStoreRouteSubtree(t,n){let r=n.getContext(t.value.outlet),i=r&&t.value.component?r.children:n,o=ti(t);for(let s of Object.values(o))this.deactivateRouteAndItsChildren(s,i);if(r&&r.outlet){let s=r.outlet.detach(),a=r.children.onOutletDeactivated();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:s,route:t,contexts:a})}}deactivateRouteAndOutlet(t,n){let r=n.getContext(t.value.outlet),i=r&&t.value.component?r.children:n,o=ti(t);for(let s of Object.values(o))this.deactivateRouteAndItsChildren(s,i);r&&(r.outlet&&(r.outlet.deactivate(),r.children.onOutletDeactivated()),r.attachRef=null,r.route=null)}activateChildRoutes(t,n,r){let i=ti(n);t.children.forEach(o=>{this.activateRoutes(o,i[o.value.outlet],r),this.forwardEvent(new Sp(o.value.snapshot))}),t.children.length&&this.forwardEvent(new vp(t.value.snapshot))}activateRoutes(t,n,r){let i=t.value,o=n?n.value:null;if(rp(i),i===o)if(i.component){let s=r.getOrCreateContext(i.outlet);this.activateChildRoutes(t,n,s.children)}else this.activateChildRoutes(t,n,r);else if(i.component){let s=r.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),rp(a.route.value),this.activateChildRoutes(t,null,s.children)}else s.attachRef=null,s.route=i,s.outlet&&s.outlet.activateWith(i,s.injector),this.activateChildRoutes(t,null,s.children)}else this.activateChildRoutes(t,null,r)}},Ha=class{constructor(t){this.path=t,this.route=this.path[this.path.length-1]}},ii=class{constructor(t,n){this.component=t,this.route=n}};function S1(e,t,n){let r=e._root,i=t?t._root:null;return ho(r,i,n,[r.value])}function x1(e){let t=e.routeConfig?e.routeConfig.canActivateChild:null;return!t||t.length===0?null:{node:e,guards:t}}function ui(e,t){let n=Symbol(),r=t.get(e,n);return r===n?typeof e=="function"&&!Rg(e)?e:t.get(e):r}function ho(e,t,n,r,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=ti(t);return e.children.forEach(s=>{w1(s,o[s.value.outlet],n,r.concat([s.value]),i),delete o[s.value.outlet]}),Object.entries(o).forEach(([s,a])=>vo(a,n.getContext(s),i)),i}function w1(e,t,n,r,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=e.value,s=t?t.value:null,a=n?n.getContext(e.value.outlet):null;if(s&&o.routeConfig===s.routeConfig){let l=C1(s,o,o.routeConfig.runGuardsAndResolvers);l?i.canActivateChecks.push(new Ha(r)):(o.data=s.data,o._resolvedData=s._resolvedData),o.component?ho(e,t,a?a.children:null,r,i):ho(e,t,n,r,i),l&&a&&a.outlet&&a.outlet.isActivated&&i.canDeactivateChecks.push(new ii(a.outlet.component,s))}else s&&vo(t,a,i),i.canActivateChecks.push(new Ha(r)),o.component?ho(e,null,a?a.children:null,r,i):ho(e,null,n,r,i);return i}function C1(e,t,n){if(typeof n=="function")return n(e,t);switch(n){case"pathParamsChange":return!sr(e.url,t.url);case"pathParamsOrQueryParamsChange":return!sr(e.url,t.url)||!Gt(e.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Ep(e,t)||!Gt(e.queryParams,t.queryParams);case"paramsChange":default:return!Ep(e,t)}}function vo(e,t,n){let r=ti(e),i=e.value;Object.entries(r).forEach(([o,s])=>{i.component?t?vo(s,t.children.getContext(o),n):vo(s,null,n):vo(s,t,n)}),i.component?t&&t.outlet&&t.outlet.isActivated?n.canDeactivateChecks.push(new ii(t.outlet.component,i)):n.canDeactivateChecks.push(new ii(null,i)):n.canDeactivateChecks.push(new ii(null,i))}function Mo(e){return typeof e=="function"}function E1(e){return typeof e=="boolean"}function D1(e){return e&&Mo(e.canLoad)}function T1(e){return e&&Mo(e.canActivate)}function _1(e){return e&&Mo(e.canActivateChild)}function I1(e){return e&&Mo(e.canDeactivate)}function k1(e){return e&&Mo(e.canMatch)}function zb(e){return e instanceof Jt||e?.name==="EmptyError"}var Na=Symbol("INITIAL_VALUE");function li(){return kt(e=>Ns(e.map(t=>t.pipe(Xt(1),nc(Na)))).pipe(X(t=>{for(let n of t)if(n!==!0){if(n===Na)return Na;if(n===!1||A1(n))return n}return!0}),It(t=>t!==Na),Xt(1)))}function A1(e){return So(e)||e instanceof To}function M1(e,t){return Ae(n=>{let{targetSnapshot:r,currentSnapshot:i,guards:{canActivateChecks:o,canDeactivateChecks:s}}=n;return s.length===0&&o.length===0?H(be(O({},n),{guardsResult:!0})):O1(s,r,i,e).pipe(Ae(a=>a&&E1(a)?N1(r,o,e,t):H(a)),X(a=>be(O({},n),{guardsResult:a})))})}function O1(e,t,n,r){return ke(e).pipe(Ae(i=>F1(i.component,i.route,n,t,r)),Wt(i=>i!==!0,!0))}function N1(e,t,n,r){return ke(t).pipe(Dr(i=>Er(P1(i.route.parent,r),R1(i.route,r),j1(e,i.path,n),L1(e,i.route,n))),Wt(i=>i!==!0,!0))}function R1(e,t){return e!==null&&t&&t(new bp(e)),H(!0)}function P1(e,t){return e!==null&&t&&t(new yp(e)),H(!0)}function L1(e,t,n){let r=t.routeConfig?t.routeConfig.canActivate:null;if(!r||r.length===0)return H(!0);let i=r.map(o=>Rs(()=>{let s=Ao(t)??n,a=ui(o,s),l=T1(a)?a.canActivate(t,e):rn(s,()=>a(t,e));return kn(l).pipe(Wt())}));return H(i).pipe(li())}function j1(e,t,n){let r=t[t.length-1],o=t.slice(0,t.length-1).reverse().map(s=>x1(s)).filter(s=>s!==null).map(s=>Rs(()=>{let a=s.guards.map(l=>{let u=Ao(s.node)??n,c=ui(l,u),p=_1(c)?c.canActivateChild(r,e):rn(u,()=>c(r,e));return kn(p).pipe(Wt())});return H(a).pipe(li())}));return H(o).pipe(li())}function F1(e,t,n,r,i){let o=t&&t.routeConfig?t.routeConfig.canDeactivate:null;if(!o||o.length===0)return H(!0);let s=o.map(a=>{let l=Ao(t)??i,u=ui(a,l),c=I1(u)?u.canDeactivate(e,t,n,r):rn(l,()=>u(e,t,n,r));return kn(c).pipe(Wt())});return H(s).pipe(li())}function z1(e,t,n,r){let i=t.canLoad;if(i===void 0||i.length===0)return H(!0);let o=i.map(s=>{let a=ui(s,e),l=D1(a)?a.canLoad(t,n):rn(e,()=>a(t,n));return kn(l)});return H(o).pipe(li(),Bb(r))}function Bb(e){return Gu(Le(t=>{if(typeof t!="boolean")throw Ua(e,t)}),X(t=>t===!0))}function B1(e,t,n,r){let i=t.canMatch;if(!i||i.length===0)return H(!0);let o=i.map(s=>{let a=ui(s,e),l=k1(a)?a.canMatch(t,n):rn(e,()=>a(t,n));return kn(l)});return H(o).pipe(li(),Bb(r))}var _o=class{constructor(t){this.segmentGroup=t||null}},Io=class extends Error{constructor(t){super(),this.urlTree=t}};function ei(e){return Cr(new _o(e))}function W1(e){return Cr(new L(4e3,!1))}function q1(e){return Cr(jb(!1,pt.GuardRejected))}var _p=class{constructor(t,n){this.urlSerializer=t,this.urlTree=n}lineralizeSegments(t,n){let r=[],i=n.root;for(;;){if(r=r.concat(i.segments),i.numberOfChildren===0)return H(r);if(i.numberOfChildren>1||!i.children[G])return W1(`${t.redirectTo}`);i=i.children[G]}}applyRedirectCommands(t,n,r,i,o){if(typeof n!="string"){let a=n,{queryParams:l,fragment:u,routeConfig:c,url:p,outlet:d,params:f,data:g,title:h}=i,y=rn(o,()=>a({params:f,data:g,queryParams:l,fragment:u,routeConfig:c,url:p,outlet:d,title:h}));if(y instanceof un)throw new Io(y);n=y}let s=this.applyRedirectCreateUrlTree(n,this.urlSerializer.parse(n),t,r);if(n[0]==="/")throw new Io(s);return s}applyRedirectCreateUrlTree(t,n,r,i){let o=this.createSegmentGroup(t,n.root,r,i);return new un(o,this.createQueryParams(n.queryParams,this.urlTree.queryParams),n.fragment)}createQueryParams(t,n){let r={};return Object.entries(t).forEach(([i,o])=>{if(typeof o=="string"&&o[0]===":"){let a=o.substring(1);r[i]=n[a]}else r[i]=o}),r}createSegmentGroup(t,n,r,i){let o=this.createSegments(t,n.segments,r,i),s={};return Object.entries(n.children).forEach(([a,l])=>{s[a]=this.createSegmentGroup(t,l,r,i)}),new ae(o,s)}createSegments(t,n,r,i){return n.map(o=>o.path[0]===":"?this.findPosParam(t,o,i):this.findOrReturn(o,r))}findPosParam(t,n,r){let i=r[n.path.substring(1)];if(!i)throw new L(4001,!1);return i}findOrReturn(t,n){let r=0;for(let i of n){if(i.path===t.path)return n.splice(r),i;r++}return t}},Ip={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function V1(e,t,n,r,i){let o=Wb(e,t,n);return o.matched?(r=p1(t,r),B1(r,t,n,i).pipe(X(s=>s===!0?o:O({},Ip)))):H(o)}function Wb(e,t,n){if(t.path==="**")return U1(n);if(t.path==="")return t.pathMatch==="full"&&(e.hasChildren()||n.length>0)?O({},Ip):{matched:!0,consumedSegments:[],remainingSegments:n,parameters:{},positionalParamSegments:{}};let i=(t.matcher||BR)(n,e,t);if(!i)return O({},Ip);let o={};Object.entries(i.posParams??{}).forEach(([a,l])=>{o[a]=l.path});let s=i.consumed.length>0?O(O({},o),i.consumed[i.consumed.length-1].parameters):o;return{matched:!0,consumedSegments:i.consumed,remainingSegments:n.slice(i.consumed.length),parameters:s,positionalParamSegments:i.posParams??{}}}function U1(e){return{matched:!0,parameters:e.length>0?Sb(e).parameters:{},consumedSegments:e,remainingSegments:[],positionalParamSegments:{}}}function gb(e,t,n,r){return n.length>0&&G1(e,n,r)?{segmentGroup:new ae(t,$1(r,new ae(n,e.children))),slicedSegments:[]}:n.length===0&&Y1(e,n,r)?{segmentGroup:new ae(e.segments,H1(e,n,r,e.children)),slicedSegments:n}:{segmentGroup:new ae(e.segments,e.children),slicedSegments:n}}function H1(e,t,n,r){let i={};for(let o of n)if(Ga(e,t,o)&&!r[Pt(o)]){let s=new ae([],{});i[Pt(o)]=s}return O(O({},r),i)}function $1(e,t){let n={};n[G]=t;for(let r of e)if(r.path===""&&Pt(r)!==G){let i=new ae([],{});n[Pt(r)]=i}return n}function G1(e,t,n){return n.some(r=>Ga(e,t,r)&&Pt(r)!==G)}function Y1(e,t,n){return n.some(r=>Ga(e,t,r))}function Ga(e,t,n){return(e.hasChildren()||t.length>0)&&n.pathMatch==="full"?!1:n.path===""}function Z1(e,t,n){return t.length===0&&!e.children[n]}var kp=class{};function Q1(e,t,n,r,i,o,s="emptyOnly"){return new Ap(e,t,n,r,i,s,o).recognize()}var K1=31,Ap=class{constructor(t,n,r,i,o,s,a){this.injector=t,this.configLoader=n,this.rootComponentType=r,this.config=i,this.urlTree=o,this.paramsInheritanceStrategy=s,this.urlSerializer=a,this.applyRedirects=new _p(this.urlSerializer,this.urlTree),this.absoluteRedirectCount=0,this.allowRedirects=!0}noMatchError(t){return new L(4002,`'${t.segmentGroup}'`)}recognize(){let t=gb(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(t).pipe(X(({children:n,rootSnapshot:r})=>{let i=new dt(r,n),o=new Va("",i),s=o1(r,[],this.urlTree.queryParams,this.urlTree.fragment);return s.queryParams=this.urlTree.queryParams,o.url=this.urlSerializer.serialize(s),{state:o,tree:s}}))}match(t){let n=new ri([],Object.freeze({}),Object.freeze(O({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),G,this.rootComponentType,null,{});return this.processSegmentGroup(this.injector,this.config,t,G,n).pipe(X(r=>({children:r,rootSnapshot:n})),Sn(r=>{if(r instanceof Io)return this.urlTree=r.urlTree,this.match(r.urlTree.root);throw r instanceof _o?this.noMatchError(r):r}))}processSegmentGroup(t,n,r,i,o){return r.segments.length===0&&r.hasChildren()?this.processChildren(t,n,r,o):this.processSegment(t,n,r,r.segments,i,!0,o).pipe(X(s=>s instanceof dt?[s]:[]))}processChildren(t,n,r,i){let o=[];for(let s of Object.keys(r.children))s==="primary"?o.unshift(s):o.push(s);return ke(o).pipe(Dr(s=>{let a=r.children[s],l=f1(n,s);return this.processSegmentGroup(t,l,a,s,i)}),tc((s,a)=>(s.push(...a),s)),xn(null),ec(),Ae(s=>{if(s===null)return ei(r);let a=qb(s);return J1(a),H(a)}))}processSegment(t,n,r,i,o,s,a){return ke(n).pipe(Dr(l=>this.processSegmentAgainstRoute(l._injector??t,n,l,r,i,o,s,a).pipe(Sn(u=>{if(u instanceof _o)return H(null);throw u}))),Wt(l=>!!l),Sn(l=>{if(zb(l))return Z1(r,i,o)?H(new kp):ei(r);throw l}))}processSegmentAgainstRoute(t,n,r,i,o,s,a,l){return Pt(r)!==s&&(s===G||!Ga(i,o,r))?ei(i):r.redirectTo===void 0?this.matchSegmentAgainstRoute(t,i,r,o,s,l):this.allowRedirects&&a?this.expandSegmentAgainstRouteUsingRedirect(t,i,n,r,o,s,l):ei(i)}expandSegmentAgainstRouteUsingRedirect(t,n,r,i,o,s,a){let{matched:l,parameters:u,consumedSegments:c,positionalParamSegments:p,remainingSegments:d}=Wb(n,i,o);if(!l)return ei(n);typeof i.redirectTo=="string"&&i.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>K1&&(this.allowRedirects=!1));let f=new ri(o,u,Object.freeze(O({},this.urlTree.queryParams)),this.urlTree.fragment,yb(i),Pt(i),i.component??i._loadedComponent??null,i,vb(i)),g=qa(f,a,this.paramsInheritanceStrategy);f.params=Object.freeze(g.params),f.data=Object.freeze(g.data);let h=this.applyRedirects.applyRedirectCommands(c,i.redirectTo,p,f,t);return this.applyRedirects.lineralizeSegments(i,h).pipe(Ae(y=>this.processSegment(t,r,n,y.concat(d),s,!1,a)))}matchSegmentAgainstRoute(t,n,r,i,o,s){let a=V1(n,r,i,t,this.urlSerializer);return r.path==="**"&&(n.children={}),a.pipe(kt(l=>l.matched?(t=r._injector??t,this.getChildConfig(t,r,i).pipe(kt(({routes:u})=>{let c=r._loadedInjector??t,{parameters:p,consumedSegments:d,remainingSegments:f}=l,g=new ri(d,p,Object.freeze(O({},this.urlTree.queryParams)),this.urlTree.fragment,yb(r),Pt(r),r.component??r._loadedComponent??null,r,vb(r)),h=qa(g,s,this.paramsInheritanceStrategy);g.params=Object.freeze(h.params),g.data=Object.freeze(h.data);let{segmentGroup:y,slicedSegments:m}=gb(n,d,f,u);if(m.length===0&&y.hasChildren())return this.processChildren(c,u,y,g).pipe(X(S=>new dt(g,S)));if(u.length===0&&m.length===0)return H(new dt(g,[]));let v=Pt(r)===o;return this.processSegment(c,u,y,m,v?G:o,!0,g).pipe(X(S=>new dt(g,S instanceof dt?[S]:[])))}))):ei(n)))}getChildConfig(t,n,r){return n.children?H({routes:n.children,injector:t}):n.loadChildren?n._loadedRoutes!==void 0?H({routes:n._loadedRoutes,injector:n._loadedInjector}):z1(t,n,r,this.urlSerializer).pipe(Ae(i=>i?this.configLoader.loadChildren(t,n).pipe(Le(o=>{n._loadedRoutes=o.routes,n._loadedInjector=o.injector})):q1(n))):H({routes:[],injector:t})}};function J1(e){e.sort((t,n)=>t.value.outlet===G?-1:n.value.outlet===G?1:t.value.outlet.localeCompare(n.value.outlet))}function X1(e){let t=e.value.routeConfig;return t&&t.path===""}function qb(e){let t=[],n=new Set;for(let r of e){if(!X1(r)){t.push(r);continue}let i=t.find(o=>r.value.routeConfig===o.value.routeConfig);i!==void 0?(i.children.push(...r.children),n.add(i)):t.push(r)}for(let r of n){let i=qb(r.children);t.push(new dt(r.value,i))}return t.filter(r=>!n.has(r))}function yb(e){return e.data||{}}function vb(e){return e.resolve||{}}function eP(e,t,n,r,i,o){return Ae(s=>Q1(e,t,n,r,s.extractedUrl,i,o).pipe(X(({state:a,tree:l})=>be(O({},s),{targetSnapshot:a,urlAfterRedirects:l}))))}function tP(e,t){return Ae(n=>{let{targetSnapshot:r,guards:{canActivateChecks:i}}=n;if(!i.length)return H(n);let o=new Set(i.map(l=>l.route)),s=new Set;for(let l of o)if(!s.has(l))for(let u of Vb(l))s.add(u);let a=0;return ke(s).pipe(Dr(l=>o.has(l)?nP(l,r,e,t):(l.data=qa(l,l.parent,e).resolve,H(void 0))),Le(()=>a++),Tr(1),Ae(l=>a===s.size?H(n):it))})}function Vb(e){let t=e.children.map(n=>Vb(n)).flat();return[e,...t]}function nP(e,t,n,r){let i=e.routeConfig,o=e._resolve;return i?.title!==void 0&&!Pb(i)&&(o[ko]=i.title),rP(o,e,t,r).pipe(X(s=>(e._resolvedData=s,e.data=qa(e,e.parent,n).resolve,null)))}function rP(e,t,n,r){let i=sp(e);if(i.length===0)return H({});let o={};return ke(i).pipe(Ae(s=>iP(e[s],t,n,r).pipe(Wt(),Le(a=>{if(a instanceof To)throw Ua(new bo,a);o[s]=a}))),Tr(1),Xu(o),Sn(s=>zb(s)?it:Cr(s)))}function iP(e,t,n,r){let i=Ao(t)??r,o=ui(e,i),s=o.resolve?o.resolve(t,n):rn(i,()=>o(t,n));return kn(s)}function ip(e){return kt(t=>{let n=e(t);return n?ke(n).pipe(X(()=>t)):H(t)})}var Ub=(()=>{class e{buildTitle(n){let r,i=n.root;for(;i!==void 0;)r=this.getResolvedTitleForRoute(i)??r,i=i.children.find(o=>o.outlet===G);return r}getResolvedTitleForRoute(n){return n.data[ko]}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=F({token:e,factory:()=>T(oP),providedIn:"root"})}}return e})(),oP=(()=>{class e extends Ub{constructor(n){super(),this.title=n}updateTitle(n){let r=this.buildTitle(n);r!==void 0&&this.title.setTitle(r)}static{this.\u0275fac=function(r){return new(r||e)(ee(db))}}static{this.\u0275prov=F({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),Lp=new $("",{providedIn:"root",factory:()=>({})}),sP=(()=>{class e{static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275cmp=pe({type:e,selectors:[["ng-component"]],standalone:!0,features:[he],decls:1,vars:0,template:function(r,i){r&1&&Z(0,"router-outlet")},dependencies:[Rp],encapsulation:2})}}return e})();function jp(e){let t=e.children&&e.children.map(jp),n=t?be(O({},e),{children:t}):O({},e);return!n.component&&!n.loadComponent&&(t||n.loadChildren)&&n.outlet&&n.outlet!==G&&(n.component=sP),n}var Fp=new $(""),aP=(()=>{class e{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=T(Hd)}loadComponent(n){if(this.componentLoaders.get(n))return this.componentLoaders.get(n);if(n._loadedComponent)return H(n._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(n);let r=kn(n.loadComponent()).pipe(X(Hb),Le(o=>{this.onLoadEndListener&&this.onLoadEndListener(n),n._loadedComponent=o}),Bi(()=>{this.componentLoaders.delete(n)})),i=new wr(r,()=>new Ye).pipe(xr());return this.componentLoaders.set(n,i),i}loadChildren(n,r){if(this.childrenLoaders.get(r))return this.childrenLoaders.get(r);if(r._loadedRoutes)return H({routes:r._loadedRoutes,injector:r._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(r);let o=lP(r,this.compiler,n,this.onLoadEndListener).pipe(Bi(()=>{this.childrenLoaders.delete(r)})),s=new wr(o,()=>new Ye).pipe(xr());return this.childrenLoaders.set(r,s),s}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=F({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();function lP(e,t,n,r){return kn(e.loadChildren()).pipe(X(Hb),Ae(i=>i instanceof no||Array.isArray(i)?H(i):ke(t.compileModuleAsync(i))),X(i=>{r&&r(e);let o,s,a=!1;return Array.isArray(i)?(s=i,a=!0):(o=i.create(n).injector,s=o.get(Fp,[],{optional:!0,self:!0}).flat()),{routes:s.map(jp),injector:o}}))}function uP(e){return e&&typeof e=="object"&&"default"in e}function Hb(e){return uP(e)?e.default:e}var zp=(()=>{class e{static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=F({token:e,factory:()=>T(cP),providedIn:"root"})}}return e})(),cP=(()=>{class e{shouldProcessUrl(n){return!0}extract(n){return n}merge(n,r){return n}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=F({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),dP=new $("");var pP=new $(""),fP=(()=>{class e{get hasRequestedNavigation(){return this.navigationId!==0}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new Ye,this.transitionAbortSubject=new Ye,this.configLoader=T(aP),this.environmentInjector=T(vt),this.urlSerializer=T(Op),this.rootContexts=T($a),this.location=T(lo),this.inputBindingEnabled=T(Pp,{optional:!0})!==null,this.titleStrategy=T(Ub),this.options=T(Lp,{optional:!0})||{},this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlHandlingStrategy=T(zp),this.createViewTransition=T(dP,{optional:!0}),this.navigationErrorHandler=T(pP,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>H(void 0),this.rootComponentType=null;let n=i=>this.events.next(new mp(i)),r=i=>this.events.next(new gp(i));this.configLoader.onLoadEndListener=r,this.configLoader.onLoadStartListener=n}complete(){this.transitions?.complete()}handleNavigationRequest(n){let r=++this.navigationId;this.transitions?.next(be(O(O({},this.transitions.value),n),{id:r}))}setupNavigations(n,r,i){return this.transitions=new Pe({id:0,currentUrlTree:r,currentRawUrl:r,extractedUrl:this.urlHandlingStrategy.extract(r),urlAfterRedirects:this.urlHandlingStrategy.extract(r),rawUrl:r,extras:{},resolve:()=>{},reject:()=>{},promise:Promise.resolve(!0),source:yo,restoredState:null,currentSnapshot:i.snapshot,targetSnapshot:null,currentRouterState:i,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(It(o=>o.id!==0),X(o=>be(O({},o),{extractedUrl:this.urlHandlingStrategy.extract(o.rawUrl)})),kt(o=>{let s=!1,a=!1;return H(o).pipe(kt(l=>{if(this.navigationId>o.id)return this.cancelNavigationTransition(o,"",pt.SupersededByNewNavigation),it;this.currentTransition=o,this.currentNavigation={id:l.id,initialUrl:l.rawUrl,extractedUrl:l.extractedUrl,targetBrowserUrl:typeof l.extras.browserUrl=="string"?this.urlSerializer.parse(l.extras.browserUrl):l.extras.browserUrl,trigger:l.source,extras:l.extras,previousNavigation:this.lastSuccessfulNavigation?be(O({},this.lastSuccessfulNavigation),{previousNavigation:null}):null};let u=!n.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),c=l.extras.onSameUrlNavigation??n.onSameUrlNavigation;if(!u&&c!=="reload"){let p="";return this.events.next(new lr(l.id,this.urlSerializer.serialize(l.rawUrl),p,cp.IgnoredSameUrlNavigation)),l.resolve(!1),it}if(this.urlHandlingStrategy.shouldProcessUrl(l.rawUrl))return H(l).pipe(kt(p=>{let d=this.transitions?.getValue();return this.events.next(new wo(p.id,this.urlSerializer.serialize(p.extractedUrl),p.source,p.restoredState)),d!==this.transitions?.getValue()?it:Promise.resolve(p)}),eP(this.environmentInjector,this.configLoader,this.rootComponentType,n.config,this.urlSerializer,this.paramsInheritanceStrategy),Le(p=>{o.targetSnapshot=p.targetSnapshot,o.urlAfterRedirects=p.urlAfterRedirects,this.currentNavigation=be(O({},this.currentNavigation),{finalUrl:p.urlAfterRedirects});let d=new za(p.id,this.urlSerializer.serialize(p.extractedUrl),this.urlSerializer.serialize(p.urlAfterRedirects),p.targetSnapshot);this.events.next(d)}));if(u&&this.urlHandlingStrategy.shouldProcessUrl(l.currentRawUrl)){let{id:p,extractedUrl:d,source:f,restoredState:g,extras:h}=l,y=new wo(p,this.urlSerializer.serialize(d),f,g);this.events.next(y);let m=Nb(this.rootComponentType).snapshot;return this.currentTransition=o=be(O({},l),{targetSnapshot:m,urlAfterRedirects:d,extras:be(O({},h),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.finalUrl=d,H(o)}else{let p="";return this.events.next(new lr(l.id,this.urlSerializer.serialize(l.extractedUrl),p,cp.IgnoredByUrlHandlingStrategy)),l.resolve(!1),it}}),Le(l=>{let u=new dp(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(u)}),X(l=>(this.currentTransition=o=be(O({},l),{guards:S1(l.targetSnapshot,l.currentSnapshot,this.rootContexts)}),o)),M1(this.environmentInjector,l=>this.events.next(l)),Le(l=>{if(o.guardsResult=l.guardsResult,l.guardsResult&&typeof l.guardsResult!="boolean")throw Ua(this.urlSerializer,l.guardsResult);let u=new pp(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot,!!l.guardsResult);this.events.next(u)}),It(l=>l.guardsResult?!0:(this.cancelNavigationTransition(l,"",pt.GuardRejected),!1)),ip(l=>{if(l.guards.canActivateChecks.length)return H(l).pipe(Le(u=>{let c=new fp(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot);this.events.next(c)}),kt(u=>{let c=!1;return H(u).pipe(tP(this.paramsInheritanceStrategy,this.environmentInjector),Le({next:()=>c=!0,complete:()=>{c||this.cancelNavigationTransition(u,"",pt.NoDataFromResolver)}}))}),Le(u=>{let c=new hp(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot);this.events.next(c)}))}),ip(l=>{let u=c=>{let p=[];c.routeConfig?.loadComponent&&!c.routeConfig._loadedComponent&&p.push(this.configLoader.loadComponent(c.routeConfig).pipe(Le(d=>{c.component=d}),X(()=>{})));for(let d of c.children)p.push(...u(d));return p};return Ns(u(l.targetSnapshot.root)).pipe(xn(null),Xt(1))}),ip(()=>this.afterPreactivation()),kt(()=>{let{currentSnapshot:l,targetSnapshot:u}=o,c=this.createViewTransition?.(this.environmentInjector,l.root,u.root);return c?ke(c).pipe(X(()=>o)):H(o)}),X(l=>{let u=m1(n.routeReuseStrategy,l.targetSnapshot,l.currentRouterState);return this.currentTransition=o=be(O({},l),{targetRouterState:u}),this.currentNavigation.targetRouterState=u,o}),Le(()=>{this.events.next(new Eo)}),b1(this.rootContexts,n.routeReuseStrategy,l=>this.events.next(l),this.inputBindingEnabled),Xt(1),Le({next:l=>{s=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new ar(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects))),this.titleStrategy?.updateTitle(l.targetRouterState.snapshot),l.resolve(!0)},complete:()=>{s=!0}}),rc(this.transitionAbortSubject.pipe(Le(l=>{throw l}))),Bi(()=>{!s&&!a&&this.cancelNavigationTransition(o,"",pt.SupersededByNewNavigation),this.currentTransition?.id===o.id&&(this.currentNavigation=null,this.currentTransition=null)}),Sn(l=>{if(a=!0,Fb(l))this.events.next(new ln(o.id,this.urlSerializer.serialize(o.extractedUrl),l.message,l.cancellationCode)),v1(l)?this.events.next(new si(l.url,l.navigationBehaviorOptions)):o.resolve(!1);else{let u=new Co(o.id,this.urlSerializer.serialize(o.extractedUrl),l,o.targetSnapshot??void 0);try{let c=rn(this.environmentInjector,()=>this.navigationErrorHandler?.(u));if(c instanceof To){let{message:p,cancellationCode:d}=Ua(this.urlSerializer,c);this.events.next(new ln(o.id,this.urlSerializer.serialize(o.extractedUrl),p,d)),this.events.next(new si(c.redirectTo,c.navigationBehaviorOptions))}else{this.events.next(u);let p=n.errorHandler(l);o.resolve(!!p)}}catch(c){this.options.resolveNavigationPromiseOnError?o.resolve(!1):o.reject(c)}}return it}))}))}cancelNavigationTransition(n,r,i){let o=new ln(n.id,this.urlSerializer.serialize(n.extractedUrl),r,i);this.events.next(o),n.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){let n=this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))),r=this.currentNavigation?.targetBrowserUrl??this.currentNavigation?.extractedUrl;return n.toString()!==r?.toString()&&!this.currentNavigation?.extras.skipLocationChange}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=F({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();function hP(e){return e!==yo}var mP=(()=>{class e{static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=F({token:e,factory:()=>T(gP),providedIn:"root"})}}return e})(),Mp=class{shouldDetach(t){return!1}store(t,n){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,n){return t.routeConfig===n.routeConfig}},gP=(()=>{class e extends Mp{static{this.\u0275fac=(()=>{let n;return function(i){return(n||(n=Cd(e)))(i||e)}})()}static{this.\u0275prov=F({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),$b=(()=>{class e{static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=F({token:e,factory:()=>T(yP),providedIn:"root"})}}return e})(),yP=(()=>{class e extends $b{constructor(){super(...arguments),this.location=T(lo),this.urlSerializer=T(Op),this.options=T(Lp,{optional:!0})||{},this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.urlHandlingStrategy=T(zp),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.currentUrlTree=new un,this.rawUrlTree=this.currentUrlTree,this.currentPageId=0,this.lastSuccessfulId=-1,this.routerState=Nb(null),this.stateMemento=this.createStateMemento()}getCurrentUrlTree(){return this.currentUrlTree}getRawUrlTree(){return this.rawUrlTree}restoredState(){return this.location.getState()}get browserPageId(){return this.canceledNavigationResolution!=="computed"?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}getRouterState(){return this.routerState}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}registerNonRouterCurrentEntryChangeListener(n){return this.location.subscribe(r=>{r.type==="popstate"&&n(r.url,r.state)})}handleRouterEvent(n,r){if(n instanceof wo)this.stateMemento=this.createStateMemento();else if(n instanceof lr)this.rawUrlTree=r.initialUrl;else if(n instanceof za){if(this.urlUpdateStrategy==="eager"&&!r.extras.skipLocationChange){let i=this.urlHandlingStrategy.merge(r.finalUrl,r.initialUrl);this.setBrowserUrl(r.targetBrowserUrl??i,r)}}else n instanceof Eo?(this.currentUrlTree=r.finalUrl,this.rawUrlTree=this.urlHandlingStrategy.merge(r.finalUrl,r.initialUrl),this.routerState=r.targetRouterState,this.urlUpdateStrategy==="deferred"&&!r.extras.skipLocationChange&&this.setBrowserUrl(r.targetBrowserUrl??this.rawUrlTree,r)):n instanceof ln&&(n.code===pt.GuardRejected||n.code===pt.NoDataFromResolver)?this.restoreHistory(r):n instanceof Co?this.restoreHistory(r,!0):n instanceof ar&&(this.lastSuccessfulId=n.id,this.currentPageId=this.browserPageId)}setBrowserUrl(n,r){let i=n instanceof un?this.urlSerializer.serialize(n):n;if(this.location.isCurrentPathEqualTo(i)||r.extras.replaceUrl){let o=this.browserPageId,s=O(O({},r.extras.state),this.generateNgRouterState(r.id,o));this.location.replaceState(i,"",s)}else{let o=O(O({},r.extras.state),this.generateNgRouterState(r.id,this.browserPageId+1));this.location.go(i,"",o)}}restoreHistory(n,r=!1){if(this.canceledNavigationResolution==="computed"){let i=this.browserPageId,o=this.currentPageId-i;o!==0?this.location.historyGo(o):this.currentUrlTree===n.finalUrl&&o===0&&(this.resetState(n),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(r&&this.resetState(n),this.resetUrlToCurrentUrlTree())}resetState(n){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,n.finalUrl??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(n,r){return this.canceledNavigationResolution==="computed"?{navigationId:n,\u0275routerPageId:r}:{navigationId:n}}static{this.\u0275fac=(()=>{let n;return function(i){return(n||(n=Cd(e)))(i||e)}})()}static{this.\u0275prov=F({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),mo=function(e){return e[e.COMPLETE=0]="COMPLETE",e[e.FAILED=1]="FAILED",e[e.REDIRECTING=2]="REDIRECTING",e}(mo||{});function vP(e,t){e.events.pipe(It(n=>n instanceof ar||n instanceof ln||n instanceof Co||n instanceof lr),X(n=>n instanceof ar||n instanceof lr?mo.COMPLETE:(n instanceof ln?n.code===pt.Redirect||n.code===pt.SupersededByNewNavigation:!1)?mo.REDIRECTING:mo.FAILED),It(n=>n!==mo.REDIRECTING),Xt(1)).subscribe(()=>{t()})}function bP(e){throw e}var SP={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},xP={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},Gb=(()=>{class e{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}constructor(){this.disposed=!1,this.console=T(Ta),this.stateManager=T($b),this.options=T(Lp,{optional:!0})||{},this.pendingTasks=T(Gr),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.navigationTransitions=T(fP),this.urlSerializer=T(Op),this.location=T(lo),this.urlHandlingStrategy=T(zp),this._events=new Ye,this.errorHandler=this.options.errorHandler||bP,this.navigated=!1,this.routeReuseStrategy=T(mP),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.config=T(Fp,{optional:!0})?.flat()??[],this.componentInputBindingEnabled=!!T(Pp,{optional:!0}),this.eventsSubscription=new De,this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe({error:n=>{this.console.warn(n)}}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){let n=this.navigationTransitions.events.subscribe(r=>{try{let i=this.navigationTransitions.currentTransition,o=this.navigationTransitions.currentNavigation;if(i!==null&&o!==null){if(this.stateManager.handleRouterEvent(r,o),r instanceof ln&&r.code!==pt.Redirect&&r.code!==pt.SupersededByNewNavigation)this.navigated=!0;else if(r instanceof ar)this.navigated=!0;else if(r instanceof si){let s=r.navigationBehaviorOptions,a=this.urlHandlingStrategy.merge(r.url,i.currentRawUrl),l=O({browserUrl:i.extras.browserUrl,info:i.extras.info,skipLocationChange:i.extras.skipLocationChange,replaceUrl:i.extras.replaceUrl||this.urlUpdateStrategy==="eager"||hP(i.source)},s);this.scheduleNavigation(a,yo,null,l,{resolve:i.resolve,reject:i.reject,promise:i.promise})}}CP(r)&&this._events.next(r)}catch(i){this.navigationTransitions.transitionAbortSubject.next(i)}});this.eventsSubscription.add(n)}resetRootComponentType(n){this.routerState.root.component=n,this.navigationTransitions.rootComponentType=n}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),yo,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((n,r)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(n,"popstate",r)},0)})}navigateToSyncWithBrowser(n,r,i){let o={replaceUrl:!0},s=i?.navigationId?i:null;if(i){let l=O({},i);delete l.navigationId,delete l.\u0275routerPageId,Object.keys(l).length!==0&&(o.state=l)}let a=this.parseUrl(n);this.scheduleNavigation(a,r,s,o)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(n){this.config=n.map(jp),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription&&(this.nonRouterCurrentEntryChangeSubscription.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(n,r={}){let{relativeTo:i,queryParams:o,fragment:s,queryParamsHandling:a,preserveFragment:l}=r,u=l?this.currentUrlTree.fragment:s,c=null;switch(a??this.options.defaultQueryParamsHandling){case"merge":c=O(O({},this.currentUrlTree.queryParams),o);break;case"preserve":c=this.currentUrlTree.queryParams;break;default:c=o||null}c!==null&&(c=this.removeEmptyProps(c));let p;try{let d=i?i.snapshot:this.routerState.snapshot.root;p=kb(d)}catch{(typeof n[0]!="string"||n[0][0]!=="/")&&(n=[]),p=this.currentUrlTree.root}return Ab(p,n,c,u??null)}navigateByUrl(n,r={skipLocationChange:!1}){let i=So(n)?n:this.parseUrl(n),o=this.urlHandlingStrategy.merge(i,this.rawUrlTree);return this.scheduleNavigation(o,yo,null,r)}navigate(n,r={skipLocationChange:!1}){return wP(n),this.navigateByUrl(this.createUrlTree(n,r),r)}serializeUrl(n){return this.urlSerializer.serialize(n)}parseUrl(n){try{return this.urlSerializer.parse(n)}catch{return this.urlSerializer.parse("/")}}isActive(n,r){let i;if(r===!0?i=O({},SP):r===!1?i=O({},xP):i=r,So(n))return pb(this.currentUrlTree,n,i);let o=this.parseUrl(n);return pb(this.currentUrlTree,o,i)}removeEmptyProps(n){return Object.entries(n).reduce((r,[i,o])=>(o!=null&&(r[i]=o),r),{})}scheduleNavigation(n,r,i,o,s){if(this.disposed)return Promise.resolve(!1);let a,l,u;s?(a=s.resolve,l=s.reject,u=s.promise):u=new Promise((p,d)=>{a=p,l=d});let c=this.pendingTasks.add();return vP(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(c))}),this.navigationTransitions.handleNavigationRequest({source:r,restoredState:i,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:n,extras:o,resolve:a,reject:l,promise:u,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),u.catch(p=>Promise.reject(p))}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=F({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();function wP(e){for(let t=0;t<e.length;t++)if(e[t]==null)throw new L(4008,!1)}function CP(e){return!(e instanceof Eo)&&!(e instanceof si)}var EP=new $("");function Yb(e,...t){return ca([{provide:Fp,multi:!0,useValue:e},[],{provide:ai,useFactory:DP,deps:[Gb]},{provide:Ud,multi:!0,useFactory:TP},t.map(n=>n.\u0275providers)])}function DP(e){return e.routerState.root}function TP(){let e=T(Kn);return t=>{let n=e.get(rr);if(t!==n.components[0])return;let r=e.get(Gb),i=e.get(_P);e.get(IP)===1&&r.initialNavigation(),e.get(kP,null,Y.Optional)?.setUpPreloading(),e.get(EP,null,Y.Optional)?.init(),r.resetRootComponentType(n.componentTypes[0]),i.closed||(i.next(),i.complete(),i.unsubscribe())}}var _P=new $("",{factory:()=>new Ye}),IP=new $("",{providedIn:"root",factory:()=>1});var kP=new $("");var Bp=ye(Zb());(function(e){var t=/\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|non-sealed|null|open|opens|package|permits|private|protected|provides|public|record(?!\s*[(){}[\]<>=%~.:,;?+\-*/&|^])|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/,n=/(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,r={pattern:RegExp(/(^|[^\w.])/.source+n+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}},punctuation:/\./}};e.languages.java=e.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"/,lookbehind:!0,greedy:!0},"class-name":[r,{pattern:RegExp(/(^|[^\w.])/.source+n+/[A-Z]\w*(?=\s+\w+\s*[;,=()]|\s*(?:\[[\s,]*\]\s*)?::\s*new\b)/.source),lookbehind:!0,inside:r.inside},{pattern:RegExp(/(\b(?:class|enum|extends|implements|instanceof|interface|new|record|throws)\s+)/.source+n+/[A-Z]\w*\b/.source),lookbehind:!0,inside:r.inside}],keyword:t,function:[e.languages.clike.function,{pattern:/(::\s*)[a-z_]\w*/,lookbehind:!0}],number:/\b0b[01][01_]*L?\b|\b0x(?:\.[\da-f_p+-]+|[\da-f_]+(?:\.[\da-f_p+-]+)?)\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfl]?/i,operator:{pattern:/(^|[^.])(?:<<=?|>>>?=?|->|--|\+\+|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?)/m,lookbehind:!0},constant:/\b[A-Z][A-Z_\d]+\b/}),e.languages.insertBefore("java","string",{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:"string"},char:{pattern:/'(?:\\.|[^'\\\r\n]){1,6}'/,greedy:!0}}),e.languages.insertBefore("java","class-name",{annotation:{pattern:/(^|[^.])@\w+(?:\s*\.\s*\w+)*/,lookbehind:!0,alias:"punctuation"},generics:{pattern:/<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&))*>)*>)*>)*>/,inside:{"class-name":r,keyword:t,punctuation:/[<>(),.:]/,operator:/[?&|]/}},import:[{pattern:RegExp(/(\bimport\s+)/.source+n+/(?:[A-Z]\w*|\*)(?=\s*;)/.source),lookbehind:!0,inside:{namespace:r.inside.namespace,punctuation:/\./,operator:/\*/,"class-name":/\w+/}},{pattern:RegExp(/(\bimport\s+static\s+)/.source+n+/(?:\w+|\*)(?=\s*;)/.source),lookbehind:!0,alias:"static",inside:{namespace:r.inside.namespace,static:/\b\w+$/,punctuation:/\./,operator:/\*/,"class-name":/\w+/}}],namespace:{pattern:RegExp(/(\b(?:exports|import(?:\s+static)?|module|open|opens|package|provides|requires|to|transitive|uses|with)\s+)(?!<keyword>)[a-z]\w*(?:\.[a-z]\w*)*\.?/.source.replace(/<keyword>/g,function(){return t.source})),lookbehind:!0,inside:{punctuation:/\./}}})})(Prism);Prism.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern:/![sra](?=[:}]$)/,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/};Prism.languages.python["string-interpolation"].inside.interpolation.inside.rest=Prism.languages.python;Prism.languages.py=Prism.languages.python;Prism.languages.javascript=Prism.languages.extend("clike",{"class-name":[Prism.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+(/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source)+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/});Prism.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/;Prism.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:Prism.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:Prism.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/});Prism.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:Prism.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}});Prism.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}});Prism.languages.markup&&(Prism.languages.markup.tag.addInlined("script","javascript"),Prism.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript"));Prism.languages.js=Prism.languages.javascript;Prism.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/};Prism.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]};Prism.languages.markup.tag.inside["attr-value"].inside.entity=Prism.languages.markup.entity;Prism.languages.markup.doctype.inside["internal-subset"].inside=Prism.languages.markup;Prism.hooks.add("wrap",function(e){e.type==="entity"&&(e.attributes.title=e.content.replace(/&amp;/,"&"))});Object.defineProperty(Prism.languages.markup.tag,"addInlined",{value:function(t,n){var r={};r["language-"+n]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:Prism.languages[n]},r.cdata=/^<!\[CDATA\[|\]\]>$/i;var i={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:r}};i["language-"+n]={pattern:/[\s\S]+/,inside:Prism.languages[n]};var o={};o[t]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return t}),"i"),lookbehind:!0,greedy:!0,inside:i},Prism.languages.insertBefore("markup","cdata",o)}});Object.defineProperty(Prism.languages.markup.tag,"addAttribute",{value:function(e,t){Prism.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+e+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[t,"language-"+t],inside:Prism.languages[t]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}});Prism.languages.html=Prism.languages.markup;Prism.languages.mathml=Prism.languages.markup;Prism.languages.svg=Prism.languages.markup;Prism.languages.xml=Prism.languages.extend("markup",{});Prism.languages.ssml=Prism.languages.xml;Prism.languages.atom=Prism.languages.xml;Prism.languages.rss=Prism.languages.xml;var Za=class e{normalizeLanguage(t){if(!t)return null;let n=t.toLowerCase().trim();return n==="none"?null:n==="small-basic"?"clike":n==="javascript or html or css"?"markup":n==="c"||n==="java"?"clike":n}highlight(t,n,r){let i=this.normalizeLanguage(r);if(!i){t.textContent=n;return}t.className=`language-${i}`;let o=Bp.default.languages[i];if(!o){t.textContent=n;return}t.innerHTML=Bp.default.highlight(n,o,i)}static \u0275fac=function(n){return new(n||e)};static \u0275prov=F({token:e,factory:e.\u0275fac,providedIn:"root"})};var ci=class e{constructor(t,n){this.elementRef=t;this.prism=n}code=null;language=null;ngAfterViewInit(){this.applyHighlight()}ngOnChanges(){this.applyHighlight()}applyHighlight(){let t=this.elementRef.nativeElement,n=this.code??"";this.prism.highlight(t,n,this.language??void 0)}static \u0275fac=function(n){return new(n||e)(In(an),In(Za))};static \u0275dir=ro({type:e,selectors:[["","prismHighlight",""]],inputs:{code:"code",language:"language"},standalone:!0,features:[_n]})};function OP(e,t){if(e&1&&(C(0,"p",2)(1,"span"),R(2),D(),C(3,"span",4),R(4),D()()),e&2){let n=te().$index,r=Rv(1);_(2),Jr("(",n+1,") ",r[0].toUpperCase(),":"),_(2),ge(r[1])}}function NP(e,t){if(e&1&&(C(0,"p",3),R(1),D()),e&2){let n=te(),r=n.$implicit,i=n.$index;_(),Jr("(",i+1,") ",r.step,"")}}function RP(e,t){if(e&1&&Z(0,"img",5)(1,"br"),e&2){let n=te().$implicit;se("src",n.imageSlot.base64,et)}}function PP(e,t){if(e&1&&(C(0,"div",1),Vd(1),Te(2,OP,5,3,"p",2)(3,NP,2,2,"p",3)(4,RP,2,1),D()),e&2){let n=t.$implicit;_();let r=Nv(n.step.split(":"));_(),fe(r.length==2?2:3),_(2),fe(n.imageSlot&&n.imageSlot.base64?4:-1)}}function LP(e,t){if(e&1&&ut(0,PP,5,3,"div",1,lt),e&2){let n=te();ct(n.stepsWithImages)}}function jP(e,t){if(e&1&&(C(0,"p",3),R(1),D()),e&2){let n=t.$implicit,r=te().$index;_(),Jr("(",r+1,") ",n,"")}}function FP(e,t){if(e&1&&(C(0,"pre",7),Z(1,"code",8),D()),e&2){let n=te().$implicit,r=te(3);_(),se("code",n.codeBlock)("language",r.programmingLanguage)}}function zP(e,t){if(e&1&&(C(0,"div",6),ut(1,jP,2,2,"p",3,lt),Te(3,FP,2,2,"pre",7),D()),e&2){let n=t.$implicit;_(),ct(n.steps),_(2),fe(n.codeBlock!=null&&n.codeBlock.trim()?3:-1)}}function BP(e,t){if(e&1&&ut(0,zP,4,1,"div",6,lt),e&2){let n=te(2);ct(n.stepsWithCodeBlockArray)}}function WP(e,t){if(e&1&&(C(0,"p",3),R(1),D()),e&2){let n=t.$implicit,r=t.$index;_(),Jr("(",r+1,") ",n,"")}}function qP(e,t){if(e&1&&(C(0,"pre",7),Z(1,"code",8),D()),e&2){let n=te(3);_(),se("code",n.stepsWithCodeBlockArray[0].codeBlock)("language",n.programmingLanguage)}}function VP(e,t){if(e&1&&(C(0,"div",6),ut(1,WP,2,2,"p",3,lt),Te(3,qP,2,2,"pre",7),D()),e&2){let n=te(2);_(),ct(n.stepsWithCodeBlockArray[0].steps),_(2),fe(n.stepsWithCodeBlockArray[0].codeBlock!=null&&n.stepsWithCodeBlockArray[0].codeBlock.trim()?3:-1)}}function UP(e,t){if(e&1&&Te(0,BP,2,0)(1,VP,4,1,"div",6),e&2){let n=te();fe(n.stepsWithCodeBlockArray.length>1?0:1)}}var Qa=class e{data;programmingLanguage;get isStepWithImage(){return Array.isArray(this.data)&&this.data.every(t=>"step"in t)}get stepsWithImages(){return this.isStepWithImage?this.data:[]}get isStepsWithCodeBlockArray(){return Array.isArray(this.data)&&this.data.every(t=>"steps"in t)}get stepsWithCodeBlockArray(){return this.isStepsWithCodeBlockArray?this.data:[]}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=pe({type:e,selectors:[["app-add-your-code"]],inputs:{data:"data",programmingLanguage:"programmingLanguage"},standalone:!0,features:[he],decls:5,vars:1,consts:[[1,"add-your-code"],[1,"scratch-step-container"],[1,"step",2,"font-weight","bold"],[1,"step"],[2,"font-weight","normal"],[1,"step-image",3,"src"],[1,"multiple-steps-with-code-block"],[1,"code-block"],["prismHighlight","",3,"code","language"]],template:function(n,r){n&1&&(C(0,"section",0)(1,"h3"),R(2,"Add Your Code"),D(),Te(3,LP,2,0)(4,UP,2,1),D()),n&2&&(_(3),fe(r.isStepWithImage?3:r.isStepsWithCodeBlockArray?4:-1))},dependencies:[ci],styles:[".add-your-code[_ngcontent-%COMP%]{margin:1rem 0;break-inside:auto}.add-your-code[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin-bottom:3mm;break-after:avoid}.scratch-step-container[_ngcontent-%COMP%]{break-inside:avoid}.add-your-code[_ngcontent-%COMP%] .step[_ngcontent-%COMP%]{margin:.5rem 0;padding:.5rem;border-radius:var(--section-card-border-radius);background-color:var(--section-card-color);box-shadow:0 4px 6px #0000000d,0 1px 3px #0000000a;font-size:.95rem;white-space:pre-wrap}.add-your-code[_ngcontent-%COMP%] .step-image[_ngcontent-%COMP%]{display:block;max-width:100%;max-height:100mm;width:auto;object-fit:contain;margin:.5rem auto;border-radius:4px}.multiple-steps-with-code-block[_ngcontent-%COMP%]{break-inside:avoid}"]})};function Ka(e){if(!e)return;let t;if(typeof e.getBoundingClientRect<"u")t=e.getBoundingClientRect();else{let n=document.createRange();n.selectNode(e),t=n.getBoundingClientRect()}return t}function Qb(e){if(!e)return;let t;if(typeof e.getClientRects<"u")t=e.getClientRects();else{let n=document.createRange();n.selectNode(e),t=n.getClientRects()}return t}function Ze(){var e=new Date().getTime();return typeof performance<"u"&&typeof performance.now=="function"&&(e+=performance.now()),"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(t){var n=(e+Math.random()*16)%16|0;return e=Math.floor(e/16),(t==="x"?n:n&3|8).toString(16)})}function Ja(e,t){for(var n=0;n<t.length;n++)if(e.hasAttribute(t[n]))return e.getAttribute(t[n])}function Xa(e){if(arguments.length==0)throw new TypeError("`CSS.escape` requires an argument.");for(var t=String(e),n=t.length,r=-1,i,o="",s=t.charCodeAt(0);++r<n;){if(i=t.charCodeAt(r),i==0){o+="\uFFFD";continue}if(i>=1&&i<=31||i==127||r==0&&i>=48&&i<=57||r==1&&i>=48&&i<=57&&s==45){o+="\\"+i.toString(16)+" ";continue}if(r==0&&n==1&&i==45){o+="\\"+t.charAt(r);continue}if(i==46&&t.charAt(0)=="#"){o+="\\.";continue}if(i>=128||i==45||i==95||i==35||i==46||i>=48&&i<=57||i>=65&&i<=90||i>=97&&i<=122){o+=t.charAt(r);continue}o+="\\"+t.charAt(r)}return o}function el(){this.resolve=null,this.reject=null,this.id=Ze(),this.promise=new Promise((e,t)=>{this.resolve=e,this.reject=t}),Object.freeze(this)}var Kb=typeof window<"u"&&("requestIdleCallback"in window?window.requestIdleCallback:window.requestAnimationFrame);function k(e){return e.value+(e.unit||"")}function Re(e){return e&&e.nodeType===1}function cn(e){return e&&e.nodeType===3}function*No(e,t){let n=e;for(;n;)if(yield n,n.childNodes.length)n=n.firstChild;else if(n.nextSibling){if(t&&n===t){n=void 0;break}n=n.nextSibling}else for(;n;){if(n=n.parentNode,t&&n===t){n=void 0;break}if(n&&n.nextSibling){n=n.nextSibling;break}}}function An(e,t){if(t&&e===t)return;let n=nl(e);if(n)return n;if(e.parentNode)for(;e=e.parentNode;){if(t&&e===t)return;if(n=nl(e),n)return n}}function Oo(e,t){if(t&&e===t)return;let n=tl(e);if(n)return n;if(e.parentNode)for(;e=e.parentNode;){if(t&&e===t)return;if(n=tl(e),n)return n}}function Jb(e,t){let n=An(e,t);for(;n&&n.nodeType!==1;)n=An(n,t);return n}function Xb(e,t){let n=Oo(e,t);for(;n&&n.nodeType!==1;)n=Oo(n,t);return n}function Wp(e,t){let n=Jb(e,t);for(;n&&n.dataset.undisplayed;)n=Jb(n,t);return n}function tS(e,t){let n=Xb(e,t);for(;n&&n.dataset.undisplayed;)n=Xb(n,t);return n}function rl(e){let t,n,r=[],i=[],o=document.createDocumentFragment();if(e.nodeName==="TR"){let l=e.previousElementSibling,u=1;for(;l;){if(l.childElementCount>e.childElementCount){let c=Array.from(e.children);for(;e.firstChild;)e.firstChild.remove();let p=0;for(let d=0;d<l.children.length;d++){let f=l.children[d];if(f.rowSpan&&f.rowSpan>u){let g=f.cloneNode(!0);g.rowSpan=f.rowSpan-u,e.appendChild(g)}else{let g=c[p++];g&&e.appendChild(g)}}}l=l.previousElementSibling,u++}}let s=e;for(;s.parentNode&&s.parentNode.nodeType===1;)r.unshift(s.parentNode),s=s.parentNode;for(var a=0;a<r.length;a++){if(n=r[a],t=n.cloneNode(!1),t.setAttribute("data-split-from",t.getAttribute("data-ref")),t.hasAttribute("id")){let l=t.getAttribute("id");t.setAttribute("data-id",l),t.removeAttribute("id")}if(t.hasAttribute("data-break-before")&&t.removeAttribute("data-break-before"),t.hasAttribute("data-previous-break-after")&&t.removeAttribute("data-previous-break-after"),i.length?i[i.length-1].appendChild(t):o.appendChild(t),i.push(t),t.nodeName==="TD"&&n.parentElement.contains(n)){let l=n,u=t;for(;l=l.previousElementSibling;){let c=l.cloneNode(!1);t.parentElement.insertBefore(c,u),u=c}}}return i=void 0,o}function il(e){return typeof e<"u"&&typeof e.dataset<"u"&&typeof e.dataset.breakBefore<"u"&&(e.dataset.breakBefore==="always"||e.dataset.breakBefore==="page"||e.dataset.breakBefore==="left"||e.dataset.breakBefore==="right"||e.dataset.breakBefore==="recto"||e.dataset.breakBefore==="verso")}function nS(e){return typeof e<"u"&&typeof e.dataset<"u"&&typeof e.dataset.previousBreakAfter<"u"&&(e.dataset.previousBreakAfter==="always"||e.dataset.previousBreakAfter==="page"||e.dataset.previousBreakAfter==="left"||e.dataset.previousBreakAfter==="right"||e.dataset.previousBreakAfter==="recto"||e.dataset.previousBreakAfter==="verso")}function ol(e,t){if(typeof e>"u"||!t||Po(e)||e.dataset&&e.dataset.undisplayed)return!1;let n=t.dataset?t.dataset.page:void 0;if(typeof n>"u"){let i=eS(t);i&&(n=i.dataset.page)}let r=e.dataset?e.dataset.page:void 0;if(typeof r>"u"){let i=eS(e,t);i&&(r=i.dataset.page)}return r!==n}function*rS(e){let t=e.nodeValue,n=t.length,r=0,i,o,s=e.parentElement&&e.parentElement.nodeName==="PRE";for(;r<n;)i=t[r],/^[\S\u202F\u00A0]$/.test(i)||s?o||(o=document.createRange(),o.setStart(e,r)):o&&(o.setEnd(e,r),yield o,o=void 0),r+=1;o&&(o.setEnd(e,r),yield o)}function*iS(e){let t=e.startContainer,n=t.length,r=e.startOffset,i;for(;r<n;)i=document.createRange(),i.setStart(t,r),i.setEnd(t,r+1),yield i,r+=1}function sl(e){let t;if(typeof e.tagName>"u")return!0;if(e.style&&e.style.display==="none")return!1;switch(e.tagName){case"A":case"ABBR":case"ACRONYM":case"B":case"BDO":case"BIG":case"BR":case"BUTTON":case"CITE":case"CODE":case"DFN":case"EM":case"I":case"IMG":case"INPUT":case"KBD":case"LABEL":case"MAP":case"OBJECT":case"Q":case"SAMP":case"SCRIPT":case"SELECT":case"SMALL":case"SPAN":case"STRONG":case"SUB":case"SUP":case"TEXTAREA":case"TIME":case"TT":case"VAR":case"P":case"H1":case"H2":case"H3":case"H4":case"H5":case"H6":case"FIGCAPTION":case"BLOCKQUOTE":case"PRE":case"LI":case"TD":case"DT":case"DD":case"VIDEO":case"CANVAS":t=!1;break;default:t=!0}return t}function oS(e,t=!1){return e.cloneNode(t)}function ze(e,t,n){let r=e.getAttribute("data-ref");return HP(r,t,n)}function HP(e,t,n){return!n&&t.indexOfRefs&&t.indexOfRefs[e]?t.indexOfRefs[e]:t.querySelector(`[data-ref='${e}']`)}function al(e){return!!(cn(e)||Re(e)&&e.dataset.ref)}function Ro(e){for(;!al(e)&&(e.previousSibling?e=e.previousSibling:e=e.parentNode,!!e););return e}function sS(e){let t=e.parentNode;return t?Array.prototype.indexOf.call(t.childNodes,e):0}function ll(e,t){return e.childNodes[t]}function aS(e){return Re(e)?!0:!!(cn(e)&&e.textContent.trim().length)}function qp(e,t){if(!cn(e))return-1;let n=e.textContent,r,i=-1;for(var o=0;o<t.childNodes.length;o++)if(r=t.childNodes[o],r.nodeType===3&&t.childNodes[o].textContent.includes(n)){i=o;break}return i}function Po(e){return e.nodeType===8||e.nodeType===3&&$P(e)}function $P(e){return!/[^\t\n\r ]/.test(e.textContent)}function tl(e){for(;e=e.previousSibling;)if(!Po(e))return e;return null}function eS(e,t){if(e&&e.dataset&&e.dataset.page)return e;if(e.parentNode)for(;e=e.parentNode;){if(t&&e===t)return;if(e.dataset&&e.dataset.page)return e}return null}function lS(e){for(;e=e.parentNode;)if(e&&e.dataset&&e.dataset.breakInside==="avoid")return e;return null}function ul(e,t,n){if(!(n&&e===n)&&e.parentNode)for(;e=e.parentNode;){if(n&&e===n)return;if(e.nodeName===t)return e}}function nl(e){for(;e=e.nextSibling;)if(!Po(e))return e;return null}function cl(e,t,n){let r=document.createTreeWalker(e||this.dom,n||NodeFilter.SHOW_ALL,t?{acceptNode:t}:null,!1),i,o;for(i=r.nextNode();i;)o=i,i=r.nextNode(),o.parentNode.removeChild(o)}var Vp=class{constructor(t,n){this.node=t,this.offset=n}equals(t){return!(!t||this.node&&t.node&&this.node!==t.node||this.offset&&t.offset&&this.offset!==t.offset)}toJSON(t){let n,r=0;return this.node?(Re(this.node)&&this.node.dataset.ref?n=this.node.dataset.ref:t&&(n=this.node.parentElement.dataset.ref),this.node.parentElement&&(r=Array.from(this.node.parentElement.childNodes).indexOf(this.node)),JSON.stringify({node:n,index:r,offset:this.offset})):{}}},di=Vp;var Up=class{constructor(t,n){this.breakToken=t,this.error=n}},Mn=class extends Error{constructor(t,n){super(t),this.items=n}},pi=Up;var JS=ye(On(),1);var rf=class{constructor(t){this.context=t||this,this.hooks=[]}register(){for(var t=0;t<arguments.length;++t)if(typeof arguments[t]=="function")this.hooks.push(arguments[t]);else for(var n=0;n<arguments[t].length;++n)this.hooks.push(arguments[t][n])}trigger(){var t=arguments,n=this.context,r=[];return this.hooks.forEach(function(i){var o=i.apply(n,t);o&&typeof o.then=="function"?r.push(o):r.push(new Promise((s,a)=>{s(o)}))}),Promise.all(r)}triggerSync(){var t=arguments,n=this.context,r=[];return this.hooks.forEach(function(i){var o=i.apply(n,t);r.push(o)}),r}list(){return this.hooks}clear(){return this.hooks=[]}},N=rf;var mL=1500,gl=class{constructor(t,n,r){this.element=t,this.bounds=this.element.getBoundingClientRect(),this.parentBounds=this.element.offsetParent.getBoundingClientRect();let i=parseFloat(window.getComputedStyle(this.element).columnGap);if(i){let o=this.bounds.left-this.parentBounds.left;this.gap=i-o}else this.gap=0;n?this.hooks=n:(this.hooks={},this.hooks.onPageLayout=new N,this.hooks.layout=new N,this.hooks.renderNode=new N,this.hooks.layoutNode=new N,this.hooks.beforeOverflow=new N,this.hooks.onOverflow=new N,this.hooks.afterOverflowRemoved=new N,this.hooks.onBreakToken=new N,this.hooks.beforeRenderResult=new N),this.settings=r||{},this.maxChars=this.settings.maxChars||mL,this.forceRenderBreak=!1}renderTo(o,s,a){return le(this,arguments,function*(t,n,r,i=this.bounds){let l=this.getStart(n,r),u=No(l,n),c,p,d,f,g=!1,h,y=0,m=r||new di(l);for(this.hooks&&this.hooks.onPageLayout.trigger(t,m,this);!d&&!h;){if(f=u.next(),p=c,c=f.value,d=f.done,!c){this.hooks&&this.hooks.layout.trigger(t,this);let x=t.querySelectorAll("img");return x.length&&(yield this.waitForImages(x)),h=this.findBreakToken(t,n,i,m),h&&h.equals(m)?(console.warn("Unable to layout item: ",p),this.hooks&&this.hooks.beforeRenderResult.trigger(void 0,t,this),new pi(void 0,new Mn("Unable to layout item",[p]))):(this.rebuildTableFromBreakToken(h,t),this.hooks&&this.hooks.beforeRenderResult.trigger(h,t,this),new pi(h))}if(this.hooks&&this.hooks.layoutNode.trigger(c),g&&this.shouldBreak(c,l)){this.hooks&&this.hooks.layout.trigger(t,this);let x=t.querySelectorAll("img");if(x.length&&(yield this.waitForImages(x)),h=this.findBreakToken(t,n,i,m),h?this.rebuildTableFromBreakToken(h,t):h=this.breakAt(c),h&&h.equals(m)){console.warn("Unable to layout item: ",c);let E=h.node&&An(h.node);if(E)h=new di(E);else return new pi(void 0,new Mn("Unable to layout item",[c]))}y=0;break}if(c.dataset&&c.dataset.page){let x=c.dataset.page,E=this.element.closest(".pagedjs_page");E.classList.add("pagedjs_named_page"),E.classList.add("pagedjs_"+x+"_page"),c.dataset.splitFrom||E.classList.add("pagedjs_"+x+"_first_page")}let v=sl(c),S=this.append(c,t,r,v);if(y+=S.textContent.length,g||(g=aS(c)),v||(u=No(An(c,n),n)),this.forceRenderBreak){this.hooks&&this.hooks.layout.trigger(t,this),h=this.findBreakToken(t,n,i,m),h?this.rebuildTableFromBreakToken(h,t):h=this.breakAt(c),y=0,this.forceRenderBreak=!1;break}if(y>=this.maxChars){this.hooks&&this.hooks.layout.trigger(t,this);let x=t.querySelectorAll("img");if(x.length&&(yield this.waitForImages(x)),h=this.findBreakToken(t,n,i,m),h&&(y=0,this.rebuildTableFromBreakToken(h,t)),h&&h.equals(m)){console.warn("Unable to layout item: ",c);let E=h.node&&An(h.node);if(E)h=new di(E);else return this.hooks&&this.hooks.beforeRenderResult.trigger(void 0,t,this),new pi(void 0,new Mn("Unable to layout item",[c]))}}}return this.hooks&&this.hooks.beforeRenderResult.trigger(h,t,this),new pi(h)})}breakAt(t,n=0){let r=new di(t,n);return this.hooks.onBreakToken.triggerSync(r,void 0,t,this).forEach(o=>{typeof o<"u"&&(r=o)}),r}shouldBreak(t,n){let r=Oo(t,n),i=t.parentNode,o=il(t)&&i&&!r&&il(i),s;return o&&(s=t.dataset.breakBefore===i.dataset.breakBefore),!s&&il(t)||nS(t)||ol(t,r)}forceBreak(){this.forceRenderBreak=!0}getStart(t,n){let r,i=n&&n.node;return i?r=i:r=t.firstChild,r}append(t,n,r,i=!0,o=!0){let s=oS(t,!i);if(t.parentNode&&Re(t.parentNode)){let l=ze(t.parentNode,n);if(l)l.appendChild(s);else if(o){let u=rl(t);l=ze(t.parentNode,u),l?(r&&cn(r.node)&&r.offset>0&&(s.textContent=s.textContent.substring(r.offset)),l.appendChild(s)):n.appendChild(s),n.appendChild(u)}else n.appendChild(s)}else n.appendChild(s);return s.dataset&&s.dataset.ref&&(n.indexOfRefs||(n.indexOfRefs={}),n.indexOfRefs[s.dataset.ref]=s),this.hooks.renderNode.triggerSync(s,t,this).forEach(l=>{typeof l<"u"&&(s=l)}),s}rebuildTableFromBreakToken(t,n){if(!t||!t.node)return;let r=t.node,i=Re(r)?r.closest("td"):r.parentElement.closest("td");if(i){if(!ze(i,n,!0))return;for(;i=i.nextElementSibling;)this.append(i,n,null,!0)}}waitForImages(t){return le(this,null,function*(){let n=Array.from(t).map(r=>le(this,null,function*(){return this.awaitImageLoaded(r)}));yield Promise.all(n)})}awaitImageLoaded(t){return le(this,null,function*(){return new Promise(n=>{if(t.complete!==!0)t.onload=function(){let{width:r,height:i}=window.getComputedStyle(t);n(r,i)},t.onerror=function(r){let{width:i,height:o}=window.getComputedStyle(t);n(i,o,r)};else{let{width:r,height:i}=window.getComputedStyle(t);n(r,i)}})})}avoidBreakInside(t,n){let r;if(t!==n){for(;t.parentNode&&(t=t.parentNode,t!==n);)if(window.getComputedStyle(t)["break-inside"]==="avoid"){r=t;break}return r}}createBreakToken(t,n,r){let i=t.startContainer,o=t.startOffset,s,a,l,u,c;if(Re(i))if(c=ll(i,o),Re(c))if(a=ze(c,n),a)s=ze(a,r),o=0;else{let p=Ro(c);if(Re(p)||(p=p.parentElement),a=ze(p,n),!c.nextSibling){let d=ze(a,r),g=document.createTreeWalker(d,NodeFilter.SHOW_ELEMENT).lastChild();if(!ze(g,n))return}s=ze(a,r).nextSibling,o=0}else a=ze(i,n),a||(a=ze(Ro(i),n)),l=ze(a,r),u=qp(c,l),u===0?(s=l,o=0):(s=ll(l,u),o=0);else{if(a=ze(i.parentNode,n),a||(a=ze(Ro(i.parentNode),n)),l=ze(a,r),u=qp(i,l),u===-1)return;s=ll(l,u),o+=s.textContent.indexOf(i.textContent)}if(s)return new di(s,o)}findBreakToken(t,n,r=this.bounds,i,o=!0){let s=this.findOverflow(t,r),a,l;if(this.hooks.onOverflow.triggerSync(s,t,r,this).forEach(c=>{typeof c<"u"&&(s=c)}),s){if(a=this.createBreakToken(s,t,n),this.hooks.onBreakToken.triggerSync(a,s,t,this).forEach(p=>{typeof p<"u"&&(a=p)}),a&&a.equals(i))return a;if(a&&a.node&&a.offset&&a.node.textContent?l=a.node.textContent.charAt(a.offset):l=void 0,a&&a.node&&o){let p=this.removeOverflow(s,l);this.hooks&&this.hooks.afterOverflowRemoved.trigger(p,t,this)}}return a}hasOverflow(t,n=this.bounds){let r=t&&t.parentNode,{width:i,height:o}=t.getBoundingClientRect(),s=r?r.scrollWidth:0,a=r?r.scrollHeight:0;return Math.max(Math.floor(i),s)>Math.round(n.width)||Math.max(Math.floor(o),a)>Math.round(n.height)}findOverflow(t,n=this.bounds,r=this.gap){if(!this.hasOverflow(t,n))return;let i=Math.floor(n.left),o=Math.round(n.right+r),s=Math.round(n.top),a=Math.round(n.bottom),l,u=No(t.firstChild,t),c,p,d,f,g,h,y,m;for(;!p;)if(c=u.next(),p=c.done,d=c.value,g=!1,h=!1,y=void 0,m=void 0,d){let S=Ka(d),x=Math.round(S.left),E=Math.floor(S.right),w=Math.round(S.top),W=Math.floor(S.bottom);if(!l&&(x>=o||w>=a)){let q=!1,oe=ul(d,"TD",t);if(oe&&window.getComputedStyle(oe)["break-inside"]==="avoid")y=oe.parentElement;else if(Re(d)){let Ie=window.getComputedStyle(d);q=Ie.getPropertyValue("float")!=="none",g=Ie.getPropertyValue("break-inside")==="avoid",h=d.dataset.breakBefore==="avoid"||d.dataset.previousBreakAfter==="avoid",y=h&&Oo(d,t),m=d.tagName==="BR"||d.tagName==="WBR"}let Me;if(d.nodeName==="TR"?Me=d:Me=ul(d,"TR",t),Me){let Ie=Me.parentElement;["TBODY","THEAD"].includes(Ie.nodeName)&&window.getComputedStyle(Ie).getPropertyValue("break-inside")==="avoid"&&(y=Ie);let we=ul(Me,"TABLE",t),Be=we.querySelector("[colspan]");if(we&&Be){let Oe=0;for(let J of Array.from(we.rows[0].cells))Oe+=parseInt(J.getAttribute("colspan")||"1");if(Me.cells.length!==Oe){let J=Me.previousElementSibling,ve;for(;J!==null;){ve=0;for(let Tt of Array.from(J.cells))ve+=parseInt(Tt.getAttribute("colspan")||"1");if(ve===Oe)break;J=J.previousElementSibling}ve===Oe&&(y=J)}}}if(y){l=document.createRange(),l.selectNode(y);break}if(!m&&!q&&Re(d)){l=document.createRange(),l.selectNode(d);break}if(cn(d)&&d.textContent.trim().length){l=document.createRange(),l.selectNode(d);break}}if(!l&&cn(d)&&d.textContent.trim().length&&!lS(d.parentNode)){let q=Qb(d),oe;x=0,w=0;for(var v=0;v!=q.length;v++)oe=q[v],oe.width>0&&(!x||oe.left>x)&&(x=oe.left),oe.height>0&&(!w||oe.top>w)&&(w=oe.top);if(x>=o||w>=a){l=document.createRange(),f=this.textBreak(d,i,o,s,a),f?l.setStart(d,f):l=void 0;break}}(g||E<=o&&W<=a)&&(c=An(d,t),c&&(u=No(c,t)))}if(l)return l.setEndAfter(t.lastChild),l}findEndToken(t,n){if(t.childNodes.length===0)return;let r=t.lastChild,i;for(;r&&r.lastChild;)if(!al(r))r=r.previousSibling;else if(al(r.lastChild))r=r.lastChild;else{r=Ro(r.lastChild);break}cn(r)&&(r.parentNode.dataset.ref?(i=sS(r),r=r.parentNode):r=r.previousSibling);let o=ze(r,n);i&&(o=o.childNodes[i]);let s=An(o);return this.breakAt(s)}textBreak(t,n,r,i,o){let s=rS(t),a=0,l=0,u=0,c=0,p,d,f,g,h;for(;!f&&(d=s.next(),p=d.value,f=d.done,!!p);){if(g=Ka(p),a=Math.floor(g.left),l=Math.floor(g.right),u=Math.floor(g.top),c=Math.floor(g.bottom),a>=r||u>=o){h=p.startOffset;break}if(l>r||c>o){let y=iS(p),m,v,S;for(;!S&&(v=y.next(),m=v.value,S=v.done,!!m);)if(g=Ka(m),a=Math.floor(g.left),u=Math.floor(g.top),a>=r||u>=o){h=m.startOffset,f=!0;break}}}return h}removeOverflow(t,n){let{startContainer:r}=t,i=t.extractContents();return this.hyphenateAtBreak(r,n),i}hyphenateAtBreak(t,n){if(cn(t)){let r=t.textContent,i=r[r.length-1];(n&&/^\w|\u00AD$/.test(i)&&/^\w|\u00AD$/.test(n)||!n&&/^\w|\u00AD$/.test(i))&&(t.parentNode.classList.add("pagedjs_hyphen"),t.textContent+=this.settings.hyphenGlyph||"\u2011")}}equalTokens(t,n){return!(!t||!n||t.node&&n.node&&t.node!==n.node||t.offset&&n.offset&&t.offset!==n.offset)}};(0,JS.default)(gl.prototype);var yl=gl;var XS=ye(On(),1);var vl=class{constructor(t,n,r,i,o){this.pagesArea=t,this.pageTemplate=n,this.blank=r,this.width=void 0,this.height=void 0,this.hooks=i,this.settings=o||{}}create(t,n){let r=document.importNode(this.pageTemplate.content,!0),i,o;n?(this.pagesArea.insertBefore(r,n.nextElementSibling),o=Array.prototype.indexOf.call(this.pagesArea.children,n.nextElementSibling),i=this.pagesArea.children[o]):(this.pagesArea.appendChild(r),i=this.pagesArea.lastChild);let s=i.querySelector(".pagedjs_pagebox"),a=i.querySelector(".pagedjs_page_content"),l=i.querySelector(".pagedjs_footnote_area"),u=a.getBoundingClientRect();return a.style.columnWidth=Math.round(u.width)+"px",a.style.columnGap="calc(var(--pagedjs-margin-right) + var(--pagedjs-margin-left) + var(--pagedjs-bleed-right) + var(--pagedjs-bleed-left) + var(--pagedjs-column-gap-offset))",this.width=Math.round(u.width),this.height=Math.round(u.height),this.element=i,this.pagebox=s,this.area=a,this.footnotesArea=l,i}createWrapper(){let t=document.createElement("div");return this.area.appendChild(t),this.wrapper=t,t}index(t){this.position=t;let n=this.element,r=t+1,i=`page-${r}`;this.id=i,n.dataset.pageNumber=r,n.setAttribute("id",i),this.name&&n.classList.add("pagedjs_"+this.name+"_page"),this.blank&&n.classList.add("pagedjs_blank_page"),t===0&&n.classList.add("pagedjs_first_page"),t%2!==1?(n.classList.remove("pagedjs_left_page"),n.classList.add("pagedjs_right_page")):(n.classList.remove("pagedjs_right_page"),n.classList.add("pagedjs_left_page"))}layout(t,n,r){return le(this,null,function*(){this.clear(),this.startToken=n;let i=this.settings;!i.maxChars&&r&&(i.maxChars=r),this.layoutMethod=new yl(this.area,this.hooks,i);let s=(yield this.layoutMethod.renderTo(this.wrapper,t,n)).breakToken;return this.addListeners(t),this.endToken=s,s})}append(t,n){return le(this,null,function*(){if(!this.layoutMethod)return this.layout(t,n);let i=(yield this.layoutMethod.renderTo(this.wrapper,t,n)).breakToken;return this.endToken=i,i})}getByParent(t,n){let r;for(var i=0;i<n.length;i++)if(r=n[i],r.dataset.ref===t)return r}onOverflow(t){this._onOverflow=t}onUnderflow(t){this._onUnderflow=t}clear(){this.removeListeners(),this.wrapper&&this.wrapper.remove(),this.createWrapper()}addListeners(t){return typeof ResizeObserver<"u"?this.addResizeObserver(t):(this._checkOverflowAfterResize=this.checkOverflowAfterResize.bind(this,t),this.element.addEventListener("overflow",this._checkOverflowAfterResize,!1),this.element.addEventListener("underflow",this._checkOverflowAfterResize,!1)),this._onScroll=function(){this.listening&&(this.element.scrollLeft=0)}.bind(this),this.element.addEventListener("scroll",this._onScroll),this.listening=!0,!0}removeListeners(){this.listening=!1,typeof ResizeObserver<"u"&&this.ro?this.ro.disconnect():this.element&&(this.element.removeEventListener("overflow",this._checkOverflowAfterResize,!1),this.element.removeEventListener("underflow",this._checkOverflowAfterResize,!1)),this.element&&this.element.removeEventListener("scroll",this._onScroll)}addResizeObserver(t){let n=this.wrapper,r=n.getBoundingClientRect().height;this.ro=new ResizeObserver(i=>{this.listening&&requestAnimationFrame(()=>{for(let o of i){let s=o.contentRect;s.height>r?(this.checkOverflowAfterResize(t),r=n.getBoundingClientRect().height):s.height<r&&(this.checkUnderflowAfterResize(t),r=s.height)}})}),this.ro.observe(n)}checkOverflowAfterResize(t){if(!this.listening||!this.layoutMethod)return;let n=this.layoutMethod.findBreakToken(this.wrapper,t,this.startToken);n&&(this.endToken=n,this._onOverflow&&this._onOverflow(n))}checkUnderflowAfterResize(t){if(!this.listening||!this.layoutMethod)return;let n=this.layoutMethod.findEndToken(this.wrapper,t);n&&this._onUnderflow&&this._onUnderflow(n)}destroy(){this.removeListeners(),this.element.remove(),this.element=void 0,this.wrapper=void 0}};(0,XS.default)(vl.prototype);var of=vl;var sf=class{constructor(t,n){return t&&t.nodeType?this.dom=this.add(t):typeof t=="string"&&(this.dom=this.parse(t)),this.dom}parse(t,n){let i=document.createRange().createContextualFragment(t);return this.addRefs(i),i}add(t){return this.addRefs(t),t}addRefs(t){var n=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,null,!1);let r=n.nextNode();for(;r;){if(!r.hasAttribute("data-ref")){let i=Ze();r.setAttribute("data-ref",i)}r.id&&r.setAttribute("data-id",r.id),r=n.nextNode()}}find(t){return this.refs[t]}destroy(){this.refs=void 0,this.dom=void 0}},ex=sf;var ix=ye(On(),1);var af=class{constructor(t){this._q=[],this.context=t,this.tick=requestAnimationFrame,this.running=!1,this.paused=!1}enqueue(){var t,n,r,i=[].shift.call(arguments),o=arguments;if(!i)throw new Error("No Task Provided");return typeof i=="function"?(t=new el,n=t.promise,r={task:i,args:o,deferred:t,promise:n}):r={promise:i},this._q.push(r),this.paused==!1&&!this.running&&this.run(),r.promise}dequeue(){var t,n,r;if(this._q.length&&!this.paused){if(t=this._q.shift(),n=t.task,n)return r=n.apply(this.context,t.args),r&&typeof r.then=="function"?r.then(function(){t.deferred.resolve.apply(this.context,arguments)}.bind(this),function(){t.deferred.reject.apply(this.context,arguments)}.bind(this)):(t.deferred.resolve.apply(this.context,r),t.promise);if(t.promise)return t.promise}else return t=new el,t.deferred.resolve(),t.promise}dump(){for(;this._q.length;)this.dequeue()}run(){return this.running||(this.running=!0,this.defered=new el),this.tick.call(window,()=>{this._q.length?this.dequeue().then(function(){this.run()}.bind(this)):(this.defered.resolve(),this.running=void 0)}),this.paused==!0&&(this.paused=!1),this.defered.promise}flush(){if(this.running)return this.running;if(this._q.length)return this.running=this.dequeue().then(function(){return this.running=void 0,this.flush()}.bind(this)),this.running}clear(){this._q=[]}length(){return this._q.length}pause(){this.paused=!0}stop(){this._q=[],this.running=!1,this.paused=!0}};var tx=af;var nx=!1,rx=!1,gL=`
61
61
  <div class="pagedjs_page">
62
62
  <div class="pagedjs_sheet">
63
63
  <div class="pagedjs_bleed pagedjs_bleed-top">
@@ -834,7 +834,7 @@ ${n.map((r,i)=>`${i+1}) ${r.toString()}`).join(`
834
834
  height: 100% !important;
835
835
  }
836
836
  }
837
- `;function lu(n){return le(this,arguments,function*(e,t={}){return new Promise(function(r,i){let o=new XMLHttpRequest;o.open(t.method||"get",e,!0);for(let s in t.headers)o.setRequestHeader(s,t.headers[s]);o.withCredentials=t.credentials==="include",o.onload=()=>{let s=o.status===0&&e.startsWith("file://")?200:o.status;r(new Response(o.responseText,{status:s}))},o.onerror=i,o.send(t.body||null)})})}var Oh=class{constructor(t){this.sheets=[],this.inserted=[],this.hooks={},this.hooks.onUrl=new N(this),this.hooks.onAtPage=new N(this),this.hooks.onAtMedia=new N(this),this.hooks.onRule=new N(this),this.hooks.onDeclaration=new N(this),this.hooks.onContent=new N(this),this.hooks.onSelector=new N(this),this.hooks.onPseudoSelector=new N(this),this.hooks.onImport=new N(this),this.hooks.beforeTreeParse=new N(this),this.hooks.beforeTreeWalk=new N(this),this.hooks.afterTreeWalk=new N(this),t!==!1&&this.setup()}setup(){return this.base=this.insert(GT),this.styleEl=document.createElement("style"),document.head.appendChild(this.styleEl),this.styleSheet=this.styleEl.sheet,this.styleSheet}add(){return le(this,arguments,function*(){let t=[],n=[];for(var r=0;r<arguments.length;r++){let i;if(typeof arguments[r]=="object")for(let o in arguments[r]){let s=arguments[r];i=new Promise(function(a,l){n.push(o),a(s[o])})}else n.push(arguments[r]),i=lu(arguments[r]).then(o=>o.text());t.push(i)}return yield Promise.all(t).then(i=>le(this,null,function*(){let o="";for(let s=0;s<i.length;s++)o=yield this.convertViaSheet(i[s],n[s]),this.insert(o);return o}))})}convertViaSheet(t,n){return le(this,null,function*(){let r=new $T(n,this.hooks);yield r.parse(t);for(let i of r.imported){let o=yield lu(i).then(a=>a.text()),s=yield this.convertViaSheet(o,i);this.insert(s)}return this.sheets.push(r),typeof r.width<"u"&&(this.width=r.width),typeof r.height<"u"&&(this.height=r.height),typeof r.orientation<"u"&&(this.orientation=r.orientation),r.toString()})}insert(t){let n=document.querySelector("head"),r=document.createElement("style");return r.setAttribute("data-pagedjs-inserted-styles","true"),r.appendChild(document.createTextNode(t)),n.appendChild(r),this.inserted.push(r),r}destroy(){this.styleEl.remove(),this.inserted.forEach(t=>{t.remove()}),this.sheets=[]}},Nh=Oh;var YI=ye(On(),1);var YT=ye(On(),1),uu=class{constructor(t,n,r){let i=Object.assign({},t&&t.hooks,n&&n.hooks,r&&r.hooks);this.chunker=t,this.polisher=n,this.caller=r;for(let o in i)o in this&&i[o].register(this[o].bind(this))}};(0,YT.default)(uu.prototype);var Q=uu;var M=ye($e(),1);var Rh={A0:{width:{value:841,unit:"mm"},height:{value:1189,unit:"mm"}},A1:{width:{value:594,unit:"mm"},height:{value:841,unit:"mm"}},A2:{width:{value:420,unit:"mm"},height:{value:594,unit:"mm"}},A3:{width:{value:297,unit:"mm"},height:{value:420,unit:"mm"}},A4:{width:{value:210,unit:"mm"},height:{value:297,unit:"mm"}},A5:{width:{value:148,unit:"mm"},height:{value:210,unit:"mm"}},A6:{width:{value:105,unit:"mm"},height:{value:148,unit:"mm"}},A7:{width:{value:74,unit:"mm"},height:{value:105,unit:"mm"}},A8:{width:{value:52,unit:"mm"},height:{value:74,unit:"mm"}},A9:{width:{value:37,unit:"mm"},height:{value:52,unit:"mm"}},A10:{width:{value:26,unit:"mm"},height:{value:37,unit:"mm"}},B4:{width:{value:250,unit:"mm"},height:{value:353,unit:"mm"}},B5:{width:{value:176,unit:"mm"},height:{value:250,unit:"mm"}},letter:{width:{value:8.5,unit:"in"},height:{value:11,unit:"in"}},legal:{width:{value:8.5,unit:"in"},height:{value:14,unit:"in"}},ledger:{width:{value:11,unit:"in"},height:{value:17,unit:"in"}}};var Ph=class extends Q{constructor(t,n,r){super(t,n,r),this.pages={},this.width=void 0,this.height=void 0,this.orientation=void 0,this.marginalia={}}pageModel(t){return{selector:t,name:void 0,psuedo:void 0,nth:void 0,marginalia:{},width:void 0,height:void 0,orientation:void 0,margin:{top:{},right:{},left:{},bottom:{}},padding:{top:{},right:{},left:{},bottom:{}},border:{top:{},right:{},left:{},bottom:{}},backgroundOrigin:void 0,block:{},marks:void 0,notes:void 0,added:!1}}onAtPage(t,n,r){let i,o,s="",a,l,u,c=!1;t.prelude?(a=this.getTypeSelector(t),l=this.getPsuedoSelector(t),u=this.getNthSelector(t),s=M.default.generate(t.prelude)):s="*",s in this.pages?(i=this.pages[s],o=this.replaceMarginalia(t),c=!0,i.added=!1):(i=this.pageModel(s),o=this.replaceMarginalia(t),this.pages[s]=i),i.name=a,i.psuedo=l,i.nth=u,c?i.marginalia=Object.assign(i.marginalia,o):i.marginalia=o;let p=this.replaceNotes(t);i.notes=p;let d=this.replaceDeclarations(t);if(d.size&&(i.size=d.size,i.width=d.size.width,i.height=d.size.height,i.orientation=d.size.orientation,i.format=d.size.format),d.bleed&&d.bleed[0]!="auto")switch(d.bleed.length){case 4:i.bleed={top:d.bleed[0],right:d.bleed[1],bottom:d.bleed[2],left:d.bleed[3]};break;case 3:i.bleed={top:d.bleed[0],right:d.bleed[1],bottom:d.bleed[2],left:d.bleed[1]};break;case 2:i.bleed={top:d.bleed[0],right:d.bleed[1],bottom:d.bleed[0],left:d.bleed[1]};break;default:i.bleed={top:d.bleed[0],right:d.bleed[0],bottom:d.bleed[0],left:d.bleed[0]}}d.marks&&((!d.bleed||d.bleed&&d.bleed[0]==="auto")&&(i.bleed={top:{value:6,unit:"mm"},right:{value:6,unit:"mm"},bottom:{value:6,unit:"mm"},left:{value:6,unit:"mm"}}),i.marks=d.marks),d.margin&&(i.margin=d.margin),d.padding&&(i.padding=d.padding),d.border&&(i.border=d.border),d.marks&&(i.marks=d.marks),c?i.block.children.appendList(t.block.children):i.block=t.block,r.remove(n)}afterTreeWalk(t,n){let r="*"in this.pages&&this.pages["*"].added===!1;if(this.addPageClasses(this.pages,t,n),r){let i=this.pages["*"].width,o=this.pages["*"].height,s=this.pages["*"].format,a=this.pages["*"].orientation,l=this.pages["*"].bleed,u=this.pages["*"].marks,c,p;":left"in this.pages&&(c=this.pages[":left"].bleed),":right"in this.pages&&(p=this.pages[":right"].bleed),i&&o&&(this.width!==i||this.height!==o)&&(this.width=i,this.height=o,this.format=s,this.orientation=a,this.addRootVars(t,i,o,a,l,p,c,u),this.addRootPage(t,this.pages["*"].size,l,p,c),this.emit("size",{width:i,height:o,orientation:a,format:s,bleed:l}),this.emit("atpages",this.pages))}}getTypeSelector(t){let n;return M.default.walk(t,{visit:"TypeSelector",enter:(r,i,o)=>{n=r.name}}),n}getPsuedoSelector(t){let n;return M.default.walk(t,{visit:"PseudoClassSelector",enter:(r,i,o)=>{r.name!=="nth"&&(n=r.name)}}),n}getNthSelector(t){let n;return M.default.walk(t,{visit:"PseudoClassSelector",enter:(r,i,o)=>{r.name==="nth"&&r.children&&(n=r.children.first().value)}}),n}replaceMarginalia(t){let n={},r=["top-left-corner","top-left","top","top-center","top-right","top-right-corner","bottom-left-corner","bottom-left","bottom","bottom-center","bottom-right","bottom-right-corner","left-top","left-middle","left","left-bottom","top-right-corner","right-top","right-middle","right","right-bottom","right-right-corner"];return M.default.walk(t.block,{visit:"Atrule",enter:(i,o,s)=>{let a=i.name;r.includes(a)&&(a==="top"&&(a="top-center"),a==="right"&&(a="right-middle"),a==="left"&&(a="left-middle"),a==="bottom"&&(a="bottom-center"),n[a]=i.block,s.remove(o))}}),n}replaceNotes(t){let n={};return M.default.walk(t.block,{visit:"Atrule",enter:(r,i,o)=>{let s=r.name;s==="footnote"&&(n[s]=r.block,o.remove(i))}}),n}replaceDeclarations(t){let n={};return M.default.walk(t.block,{visit:"Declaration",enter:(r,i,o)=>{let s=M.default.property(r.property).name;if(s==="marks")n.marks=[],M.default.walk(r,{visit:"Identifier",enter:a=>{n.marks.push(a.name)}}),o.remove(i);else if(s==="margin")n.margin=this.getMargins(r),o.remove(i);else if(s.indexOf("margin-")===0){let a=s.substring(7);n.margin||(n.margin={top:{},right:{},left:{},bottom:{}}),n.margin[a]=r.value.children.first(),o.remove(i)}else if(s==="padding")n.padding=this.getPaddings(r.value),o.remove(i);else if(s.indexOf("padding-")===0){let a=s.substring(8);n.padding||(n.padding={top:{},right:{},left:{},bottom:{}}),n.padding[a]=r.value.children.first(),o.remove(i)}else if(s==="border")n.border||(n.border={top:{},right:{},left:{},bottom:{}}),n.border.top=M.default.generate(r.value),n.border.right=M.default.generate(r.value),n.border.left=M.default.generate(r.value),n.border.bottom=M.default.generate(r.value),o.remove(i);else if(s.indexOf("border-")===0){n.border||(n.border={top:{},right:{},left:{},bottom:{}});let a=s.substring(7);n.border[a]=M.default.generate(r.value),o.remove(i)}else s==="size"?(n.size=this.getSize(r),o.remove(i)):s==="bleed"&&(n.bleed=[],M.default.walk(r,{enter:a=>{switch(a.type){case"String":a.value.indexOf("auto")>-1&&n.bleed.push("auto");break;case"Dimension":n.bleed.push({value:a.value,unit:a.unit});break;case"Number":n.bleed.push({value:a.value,unit:"px"});break;default:}}}),o.remove(i))}}),n}getSize(t){let n,r,i,o;return M.default.walk(t,{visit:"Dimension",enter:(s,a,l)=>{let{value:u,unit:c}=s;typeof n>"u"?n={value:u,unit:c}:typeof r>"u"&&(r={value:u,unit:c})}}),M.default.walk(t,{visit:"String",enter:(s,a,l)=>{let u=s.value.replace(/["|']/g,""),c=Rh[u];c&&(n=c.width,r=c.height)}}),M.default.walk(t,{visit:"Identifier",enter:(s,a,l)=>{let u=s.name;if(u==="landscape"||u==="portrait")i=s.name;else if(u!=="auto"){let c=Rh[u];c&&(n=c.width,r=c.height),o=u}}}),{width:n,height:r,orientation:i,format:o}}getMargins(t){let n=[],r={top:{},right:{},left:{},bottom:{}};if(M.default.walk(t,{enter:i=>{switch(i.type){case"Dimension":n.push(i);break;case"Number":n.push({value:i.value,unit:"px"});break;default:}}}),n.length===1)for(let i in r)r[i]=n[0];else n.length===2?(r.top=n[0],r.right=n[1],r.bottom=n[0],r.left=n[1]):n.length===3?(r.top=n[0],r.right=n[1],r.bottom=n[2],r.left=n[1]):n.length===4&&(r.top=n[0],r.right=n[1],r.bottom=n[2],r.left=n[3]);return r}getPaddings(t){let n=[],r={top:{},right:{},left:{},bottom:{}};if(M.default.walk(t,{enter:i=>{switch(i.type){case"Dimension":n.push(i);break;case"Number":n.push({value:i.value,unit:"px"});break;default:}}}),n.length===1)for(let i in r)r[i]=n[0];else n.length===2?(r.top=n[0],r.right=n[1],r.bottom=n[0],r.left=n[1]):n.length===3?(r.top=n[0],r.right=n[1],r.bottom=n[2],r.left=n[1]):n.length===4&&(r.top=n[0],r.right=n[1],r.bottom=n[2],r.left=n[3]);return r}getBorders(t){let n={top:{},right:{},left:{},bottom:{}};return t.prop=="border"?(n.top=M.default.generate(t.value),n.right=M.default.generate(t.value),n.bottom=M.default.generate(t.value),n.left=M.default.generate(t.value)):t.prop=="border-top"?n.top=M.default.generate(t.value):t.prop=="border-right"?n.right=M.default.generate(t.value):t.prop=="border-bottom"?n.bottom=M.default.generate(t.value):t.prop=="border-left"&&(n.left=M.default.generate(t.value)),n}addPageClasses(t,n,r){if("*"in t&&t["*"].added===!1){let i=this.createPage(t["*"],n.children,r);r.insertRule(i),t["*"].added=!0}if(":left"in t&&t[":left"].added===!1){let i=this.createPage(t[":left"],n.children,r);r.insertRule(i),t[":left"].added=!0}if(":right"in t&&t[":right"].added===!1){let i=this.createPage(t[":right"],n.children,r);r.insertRule(i),t[":right"].added=!0}if(":first"in t&&t[":first"].added===!1){let i=this.createPage(t[":first"],n.children,r);r.insertRule(i),t[":first"].added=!0}if(":blank"in t&&t[":blank"].added===!1){let i=this.createPage(t[":blank"],n.children,r);r.insertRule(i),t[":blank"].added=!0}for(let i in t)if(t[i].nth&&t[i].added===!1){let o=this.createPage(t[i],n.children,r);r.insertRule(o),t[i].added=!0}for(let i in t)if(t[i].name&&t[i].added===!1){let o=this.createPage(t[i],n.children,r);r.insertRule(o),t[i].added=!0}}createPage(t,n,r){let i=this.selectorsForPage(t),o=t.block.children.copy(),s={type:"Block",loc:0,children:o},a=this.createRule(i,s);return this.addMarginVars(t.margin,o,o.first()),this.addPaddingVars(t.padding,o,o.first()),this.addBorderVars(t.border,o,o.first()),t.width&&this.addDimensions(t.width,t.height,t.orientation,o,o.first()),t.marginalia&&(this.addMarginaliaStyles(t,n,a,r),this.addMarginaliaContent(t,n,a,r)),t.notes&&this.addNotesStyles(t.notes,t,n,a,r),a}addMarginVars(t,n,r){for(let i in t)if(typeof t[i].value<"u"){let o=t[i].value+(t[i].unit||""),s=n.createItem({type:"Declaration",property:"--pagedjs-margin-"+i,value:{type:"Raw",value:o}});n.append(s,r)}}addPaddingVars(t,n,r){for(let i in t)if(typeof t[i].value<"u"){let o=t[i].value+(t[i].unit||""),s=n.createItem({type:"Declaration",property:"--pagedjs-padding-"+i,value:{type:"Raw",value:o}});n.append(s,r)}}addBorderVars(t,n,r){for(let i of Object.keys(t)){let o=t[i];if(typeof o=="string"){let s=n.createItem({type:"Declaration",property:"--pagedjs-border-"+i,value:{type:"Raw",value:o}});n.append(s,r)}}}addDimensions(t,n,r,i,o){let s,a;s=k(t),a=k(n),r&&r!=="portrait"&&([s,a]=[a,s]);let l=this.createVariable("--pagedjs-pagebox-width",s);i.appendData(l);let u=this.createVariable("--pagedjs-pagebox-height",a);i.appendData(u)}addMarginaliaStyles(t,n,r,i){for(let o in t.marginalia){let s=M.default.clone(t.marginalia[o]),a=!1;if(s.children.isEmpty())continue;M.default.walk(s,{visit:"Declaration",enter:(p,d,f)=>{if(p.property==="content"&&(p.value.children&&p.value.children.first().name==="none"?a=!1:a=!0,f.remove(d)),p.property==="vertical-align"&&(M.default.walk(p,{visit:"Identifier",enter:(g,h,y)=>{let m=g.name;m==="top"?g.name="flex-start":m==="middle"?g.name="center":m==="bottom"&&(g.name="flex-end")}}),p.property="align-items"),p.property==="width"&&(o==="top-left"||o==="top-center"||o==="top-right"||o==="bottom-left"||o==="bottom-center"||o==="bottom-right")){let g=M.default.clone(p);g.property="max-width",f.appendData(g)}if(p.property==="height"&&(o==="left-top"||o==="left-middle"||o==="left-bottom"||o==="right-top"||o==="right-middle"||o==="right-bottom")){let g=M.default.clone(p);g.property="max-height",f.appendData(g)}}});let l=this.selectorsForPageMargin(t,o),u=this.createRule(l,s);n.appendData(u);let c=M.default.generate({type:"Selector",children:l});this.marginalia[c]={page:t,selector:c,block:t.marginalia[o],hasContent:a}}}addMarginaliaContent(t,n,r,i){let o;for(let s in t.marginalia){let a=M.default.clone(t.marginalia[s]);if(M.default.walk(a,{visit:"Declaration",enter:(f,g,h)=>{f.property!=="content"&&h.remove(g),f.value.children&&f.value.children.first().name==="none"&&(o=!0)}}),a.children.isEmpty())continue;let l=this.selectorsForPageMargin(t,s),u;l.insertData({type:"Combinator",name:">"}),l.insertData({type:"ClassSelector",name:"pagedjs_margin-content"}),l.insertData({type:"Combinator",name:">"}),l.insertData({type:"TypeSelector",name:"*"}),o?u=this.createDeclaration("display","none"):u=this.createDeclaration("display","block");let c=this.createRule(l,[u]);i.insertRule(c);let p=this.selectorsForPageMargin(t,s);p.insertData({type:"Combinator",name:">"}),p.insertData({type:"ClassSelector",name:"pagedjs_margin-content"}),p.insertData({type:"PseudoElementSelector",name:"after",children:null});let d=this.createRule(p,a);i.insertRule(d)}}addRootVars(t,n,r,i,o,s,a,l){let u=[],c=new M.default.List;c.insertData({type:"PseudoClassSelector",name:"root",children:null});let p,d,f,g,h,y;if(!o)p=k(n),d=k(r),f=k(n),g=k(r),h=k(n),y=k(r);else{p=`calc( ${k(n)} + ${k(o.left)} + ${k(o.right)} )`,d=`calc( ${k(r)} + ${k(o.top)} + ${k(o.bottom)} )`,f=`calc( ${k(n)} + ${k(o.left)} + ${k(o.right)} )`,g=`calc( ${k(r)} + ${k(o.top)} + ${k(o.bottom)} )`,h=`calc( ${k(n)} + ${k(o.left)} + ${k(o.right)} )`,y=`calc( ${k(r)} + ${k(o.top)} + ${k(o.bottom)} )`;let q=this.createVariable("--pagedjs-bleed-top",k(o.top)),oe=this.createVariable("--pagedjs-bleed-right",k(o.right)),Me=this.createVariable("--pagedjs-bleed-bottom",k(o.bottom)),Ie=this.createVariable("--pagedjs-bleed-left",k(o.left)),we=this.createVariable("--pagedjs-bleed-right-top",k(o.top)),Be=this.createVariable("--pagedjs-bleed-right-right",k(o.right)),Oe=this.createVariable("--pagedjs-bleed-right-bottom",k(o.bottom)),J=this.createVariable("--pagedjs-bleed-right-left",k(o.left)),ve=this.createVariable("--pagedjs-bleed-left-top",k(o.top)),Tt=this.createVariable("--pagedjs-bleed-left-right",k(o.right)),Bn=this.createVariable("--pagedjs-bleed-left-bottom",k(o.bottom)),Ke=this.createVariable("--pagedjs-bleed-left-left",k(o.left));s&&(we=this.createVariable("--pagedjs-bleed-right-top",k(s.top)),Be=this.createVariable("--pagedjs-bleed-right-right",k(s.right)),Oe=this.createVariable("--pagedjs-bleed-right-bottom",k(s.bottom)),J=this.createVariable("--pagedjs-bleed-right-left",k(s.left)),f=`calc( ${k(n)} + ${k(s.left)} + ${k(s.right)} )`,g=`calc( ${k(r)} + ${k(s.top)} + ${k(s.bottom)} )`),a&&(ve=this.createVariable("--pagedjs-bleed-left-top",k(a.top)),Tt=this.createVariable("--pagedjs-bleed-left-right",k(a.right)),Bn=this.createVariable("--pagedjs-bleed-left-bottom",k(a.bottom)),Ke=this.createVariable("--pagedjs-bleed-left-left",k(a.left)),h=`calc( ${k(n)} + ${k(a.left)} + ${k(a.right)} )`,y=`calc( ${k(r)} + ${k(a.top)} + ${k(a.bottom)} )`);let Iu=this.createVariable("--pagedjs-width",k(n)),Bt=this.createVariable("--pagedjs-height",k(r));u.push(q,oe,Me,Ie,we,Be,Oe,J,ve,Tt,Bn,Ke,Iu,Bt)}if(l&&l.forEach(q=>{let oe=this.createVariable("--pagedjs-mark-"+q+"-display","block");u.push(oe)}),i){let q=this.createVariable("--pagedjs-orientation",i);u.push(q),i!=="portrait"&&([p,d]=[d,p],[f,g]=[g,f],[h,y]=[y,h])}let m=this.createVariable("--pagedjs-width",p),v=this.createVariable("--pagedjs-height",d),S=this.createVariable("--pagedjs-width-right",f),x=this.createVariable("--pagedjs-height-right",g),E=this.createVariable("--pagedjs-width-left",h),w=this.createVariable("--pagedjs-height-left",y);u.push(m,v,S,x,E,w);let W=this.createRule(c,u);t.children.appendData(W)}addNotesStyles(t,n,r,i,o){for(let s in t){let a=this.selectorsForPage(n);a.insertData({type:"Combinator",name:" "}),a.insertData({type:"ClassSelector",name:"pagedjs_"+s+"_content"});let l=this.createRule(a,t[s]);r.appendData(l)}}addRootPage(t,n,r,i,o){let{width:s,height:a,orientation:l,format:u}=n,c=new M.default.List,p=new M.default.List,d=new M.default.List,f=new M.default.List,g=new M.default.List,h=new M.default.List;if(r){let m=new M.default.List,v=new M.default.List;m.appendData({type:"Dimension",unit:s.unit,value:s.value}),m.appendData({type:"WhiteSpace",value:" "}),m.appendData({type:"Operator",value:"+"}),m.appendData({type:"WhiteSpace",value:" "}),m.appendData({type:"Dimension",unit:r.left.unit,value:r.left.value}),m.appendData({type:"WhiteSpace",value:" "}),m.appendData({type:"Operator",value:"+"}),m.appendData({type:"WhiteSpace",value:" "}),m.appendData({type:"Dimension",unit:r.right.unit,value:r.right.value}),v.appendData({type:"Dimension",unit:a.unit,value:a.value}),v.appendData({type:"WhiteSpace",value:" "}),v.appendData({type:"Operator",value:"+"}),v.appendData({type:"WhiteSpace",value:" "}),v.appendData({type:"Dimension",unit:r.top.unit,value:r.top.value}),v.appendData({type:"WhiteSpace",value:" "}),v.appendData({type:"Operator",value:"+"}),v.appendData({type:"WhiteSpace",value:" "}),v.appendData({type:"Dimension",unit:r.bottom.unit,value:r.bottom.value}),f.appendData({type:"Function",name:"calc",children:m}),f.appendData({type:"WhiteSpace",value:" "}),f.appendData({type:"Function",name:"calc",children:v})}else u?(f.appendData({type:"Identifier",name:u}),l&&(f.appendData({type:"WhiteSpace",value:" "}),f.appendData({type:"Identifier",name:l}))):(f.appendData({type:"Dimension",unit:s.unit,value:s.value}),f.appendData({type:"WhiteSpace",value:" "}),f.appendData({type:"Dimension",unit:a.unit,value:a.value}));c.appendData({type:"Declaration",property:"size",loc:null,value:{type:"Value",children:f}}),c.appendData({type:"Declaration",property:"margin",loc:null,value:{type:"Value",children:[{type:"Dimension",unit:"px",value:0}]}}),c.appendData({type:"Declaration",property:"padding",loc:null,value:{type:"Value",children:[{type:"Dimension",unit:"px",value:0}]}}),c.appendData({type:"Declaration",property:"padding",loc:null,value:{type:"Value",children:[{type:"Dimension",unit:"px",value:0}]}});let y=t.children.createItem({type:"Atrule",prelude:null,name:"page",block:{type:"Block",loc:null,children:c}});if(t.children.append(y),o){let m=new M.default.List,v=new M.default.List;m.appendData({type:"Dimension",unit:s.unit,value:s.value}),m.appendData({type:"WhiteSpace",value:" "}),m.appendData({type:"Operator",value:"+"}),m.appendData({type:"WhiteSpace",value:" "}),m.appendData({type:"Dimension",unit:o.left.unit,value:o.left.value}),m.appendData({type:"WhiteSpace",value:" "}),m.appendData({type:"Operator",value:"+"}),m.appendData({type:"WhiteSpace",value:" "}),m.appendData({type:"Dimension",unit:o.right.unit,value:o.right.value}),v.appendData({type:"Dimension",unit:a.unit,value:a.value}),v.appendData({type:"WhiteSpace",value:" "}),v.appendData({type:"Operator",value:"+"}),v.appendData({type:"WhiteSpace",value:" "}),v.appendData({type:"Dimension",unit:o.top.unit,value:o.top.value}),v.appendData({type:"WhiteSpace",value:" "}),v.appendData({type:"Operator",value:"+"}),v.appendData({type:"WhiteSpace",value:" "}),v.appendData({type:"Dimension",unit:o.bottom.unit,value:o.bottom.value}),g.appendData({type:"Function",name:"calc",children:m}),g.appendData({type:"WhiteSpace",value:" "}),g.appendData({type:"Function",name:"calc",children:v}),p.appendData({type:"Declaration",property:"size",loc:null,value:{type:"Value",children:g}});let S=t.children.createItem({type:"Atrule",prelude:null,name:"page :left",block:{type:"Block",loc:null,children:p}});t.children.append(S)}if(i){let m=new M.default.List,v=new M.default.List;m.appendData({type:"Dimension",unit:s.unit,value:s.value}),m.appendData({type:"WhiteSpace",value:" "}),m.appendData({type:"Operator",value:"+"}),m.appendData({type:"WhiteSpace",value:" "}),m.appendData({type:"Dimension",unit:i.left.unit,value:i.left.value}),m.appendData({type:"WhiteSpace",value:" "}),m.appendData({type:"Operator",value:"+"}),m.appendData({type:"WhiteSpace",value:" "}),m.appendData({type:"Dimension",unit:i.right.unit,value:i.right.value}),v.appendData({type:"Dimension",unit:a.unit,value:a.value}),v.appendData({type:"WhiteSpace",value:" "}),v.appendData({type:"Operator",value:"+"}),v.appendData({type:"WhiteSpace",value:" "}),v.appendData({type:"Dimension",unit:i.top.unit,value:i.top.value}),v.appendData({type:"WhiteSpace",value:" "}),v.appendData({type:"Operator",value:"+"}),v.appendData({type:"WhiteSpace",value:" "}),v.appendData({type:"Dimension",unit:i.bottom.unit,value:i.bottom.value}),h.appendData({type:"Function",name:"calc",children:m}),h.appendData({type:"WhiteSpace",value:" "}),h.appendData({type:"Function",name:"calc",children:v}),d.appendData({type:"Declaration",property:"size",loc:null,value:{type:"Value",children:h}});let S=t.children.createItem({type:"Atrule",prelude:null,name:"page :right",block:{type:"Block",loc:null,children:d}});t.children.append(S)}}getNth(t){let n=t.indexOf("n"),r=t.indexOf("+"),i=t.split("n"),o=t.split("+"),s=null,a=null;return n>-1?(s=i[0],r>-1&&(a=o[1])):a=t,{type:"Nth",loc:null,selector:null,nth:{type:"AnPlusB",loc:null,a:s,b:a}}}addPageAttributes(t,n,r){let i=[n.dataset.page];if(i&&i.length)for(let o of i)o&&(t.name=o,t.element.classList.add("pagedjs_named_page"),t.element.classList.add("pagedjs_"+o+"_page"),n.dataset.splitFrom||t.element.classList.add("pagedjs_"+o+"_first_page"))}getStartElement(t,n){let r=n&&n.node;if(!t&&!n)return;if(!r)return t.children[0];if(r.nodeType===1&&r.parentNode.nodeType===11||r.nodeType===1&&r.dataset.page)return r;let i=rl(r),o=i.querySelectorAll("[data-page]");return o.length?o[o.length-1]:i.children[0]}beforePageLayout(t,n,r,i){let o=this.getStartElement(n,r);o&&this.addPageAttributes(t,o,i.pages)}finalizePage(t,n,r,i){for(let o in this.marginalia){let s=this.marginalia[o],a=o.split(" "),l;n.element.matches(a[0])&&s.hasContent&&(l=n.element.querySelector(a[1]),l.classList.add("hasContent"))}["top","bottom"].forEach(o=>{let s=n.element.querySelector(".pagedjs_margin-"+o),a=n.element.querySelector(".pagedjs_margin-"+o+"-center"),l=n.element.querySelector(".pagedjs_margin-"+o+"-left"),u=n.element.querySelector(".pagedjs_margin-"+o+"-right"),c=a.classList.contains("hasContent"),p=l.classList.contains("hasContent"),d=u.classList.contains("hasContent"),f,g,h;if(p&&(g=window.getComputedStyle(l)["max-width"]),d&&(h=window.getComputedStyle(u)["max-width"]),c)if(f=window.getComputedStyle(a)["max-width"],f==="none"||f==="auto")if(!p&&!d)s.style["grid-template-columns"]="0 1fr 0";else if(p)if(d)if(g!=="none"&&g!=="auto")h!=="none"&&h!=="auto"?s.style["grid-template-columns"]=g+" 1fr "+h:s.style["grid-template-columns"]=g+" 1fr "+g;else if(h!=="none"&&h!=="auto")s.style["grid-template-columns"]=h+" 1fr "+h;else{s.style["grid-template-columns"]="auto auto 1fr",l.style["white-space"]="nowrap",a.style["white-space"]="nowrap",u.style["white-space"]="nowrap";let y=l.offsetWidth,m=a.offsetWidth,v=u.offsetWidth,S=y+m+v,x=m*100/S;x>40?s.style["grid-template-columns"]="minmax(16.66%, 1fr) minmax(33%, "+x+"%) minmax(16.66%, 1fr)":s.style["grid-template-columns"]="repeat(3, 1fr)",l.style["white-space"]="normal",a.style["white-space"]="normal",u.style["white-space"]="normal"}else if(g!=="none"&&g!=="auto")s.style["grid-template-columns"]=g+" 1fr "+g;else{s.style["grid-template-columns"]="auto auto 1fr",l.style["white-space"]="nowrap",a.style["white-space"]="nowrap";let y=l.offsetWidth,m=a.offsetWidth,v=y+m,S=m*100/v;s.style["grid-template-columns"]="minmax(16.66%, 1fr) minmax(33%, "+S+"%) minmax(16.66%, 1fr)",l.style["white-space"]="normal",a.style["white-space"]="normal"}else if(h!=="none"&&h!=="auto")s.style["grid-template-columns"]=h+" 1fr "+h;else{s.style["grid-template-columns"]="auto auto 1fr",u.style["white-space"]="nowrap",a.style["white-space"]="nowrap";let y=u.offsetWidth,m=a.offsetWidth,v=y+m,S=m*100/v;s.style["grid-template-columns"]="minmax(16.66%, 1fr) minmax(33%, "+S+"%) minmax(16.66%, 1fr)",u.style["white-space"]="normal",a.style["white-space"]="normal"}else f!=="none"&&f!=="auto"&&(p&&g!=="none"&&g!=="auto"?s.style["grid-template-columns"]=g+" "+f+" 1fr":d&&h!=="none"&&h!=="auto"?s.style["grid-template-columns"]="1fr "+f+" "+h:s.style["grid-template-columns"]="1fr "+f+" 1fr");else if(p)if(!d)s.style["grid-template-columns"]="1fr 0 0";else if(g!=="none"&&g!=="auto")h!=="none"&&h!=="auto"?s.style["grid-template-columns"]=g+" 1fr "+h:s.style["grid-template-columns"]=g+" 0 1fr";else if(h!=="none"&&h!=="auto")s.style["grid-template-columns"]="1fr 0 "+h;else{s.style["grid-template-columns"]="auto 1fr auto",l.style["white-space"]="nowrap",u.style["white-space"]="nowrap";let y=l.offsetWidth,m=u.offsetWidth,v=y+m,S=y*100/v;s.style["grid-template-columns"]="minmax(16.66%, "+S+"%) 0 1fr",l.style["white-space"]="normal",u.style["white-space"]="normal"}else h!=="none"&&h!=="auto"?s.style["grid-template-columns"]="1fr 0 "+h:s.style["grid-template-columns"]="0 0 1fr"}),["left","right"].forEach(o=>{let s=n.element.querySelector(".pagedjs_margin-"+o+"-middle.hasContent"),a=n.element.querySelector(".pagedjs_margin-"+o),l=n.element.querySelector(".pagedjs_margin-"+o+"-top"),u=n.element.querySelector(".pagedjs_margin-"+o+"-bottom"),c=l.classList.contains("hasContent"),p=u.classList.contains("hasContent"),d,f,g;c&&(f=window.getComputedStyle(l)["max-height"]),p&&(g=window.getComputedStyle(u)["max-height"]),s?(d=window.getComputedStyle(s)["max-height"],d==="none"||d==="auto"?!c&&!p?a.style["grid-template-rows"]="0 1fr 0":c?p?f!=="none"&&f!=="auto"?g!=="none"&&g!=="auto"?a.style["grid-template-rows"]=f+" calc(100% - "+f+" - "+g+") "+g:a.style["grid-template-rows"]=f+" calc(100% - "+f+"*2) "+f:g!=="none"&&g!=="auto"&&(a.style["grid-template-rows"]=g+" calc(100% - "+g+"*2) "+g):f!=="none"&&f!=="auto"&&(a.style["grid-template-rows"]=f+" calc(100% - "+f+"*2) "+f):g!=="none"&&g!=="auto"&&(a.style["grid-template-rows"]=g+" calc(100% - "+g+"*2) "+g):c&&f!=="none"&&f!=="auto"?a.style["grid-template-rows"]=f+" "+d+" calc(100% - ("+f+" + "+d+"))":p&&g!=="none"&&g!=="auto"?a.style["grid-template-rows"]="1fr "+d+" "+g:a.style["grid-template-rows"]="calc((100% - "+d+")/2) "+d+" calc((100% - "+d+")/2)"):c?p?f!=="none"&&f!=="auto"?g!=="none"&&g!=="auto"?a.style["grid-template-rows"]=f+" 1fr "+g:a.style["grid-template-rows"]=f+" 0 1fr":g!=="none"&&g!=="auto"?a.style["grid-template-rows"]="1fr 0 "+g:a.style["grid-template-rows"]="1fr 0 1fr":a.style["grid-template-rows"]="1fr 0 0":g!=="none"&&g!=="auto"?a.style["grid-template-rows"]="1fr 0 "+g:a.style["grid-template-rows"]="0 0 1fr"})}selectorsForPage(t){let n,r,i=new M.default.List;return i.insertData({type:"ClassSelector",name:"pagedjs_page"}),t.name&&(i.insertData({type:"ClassSelector",name:"pagedjs_named_page"}),i.insertData({type:"ClassSelector",name:"pagedjs_"+t.name+"_page"})),t.psuedo&&!(t.name&&t.psuedo==="first")&&i.insertData({type:"ClassSelector",name:"pagedjs_"+t.psuedo+"_page"}),t.name&&t.psuedo==="first"&&i.insertData({type:"ClassSelector",name:"pagedjs_"+t.name+"_"+t.psuedo+"_page"}),t.nth&&(n=new M.default.List,r=this.getNth(t.nth),n.insertData(r),i.insertData({type:"PseudoClassSelector",name:"nth-of-type",children:n})),i}selectorsForPageMargin(t,n){let r=this.selectorsForPage(t);return r.insertData({type:"Combinator",name:" "}),r.insertData({type:"ClassSelector",name:"pagedjs_margin-"+n}),r}createDeclaration(t,n,r){let i=new M.default.List;return i.insertData({type:"Identifier",loc:null,name:n}),{type:"Declaration",loc:null,important:r,property:t,value:{type:"Value",loc:null,children:i}}}createVariable(t,n){return{type:"Declaration",loc:null,property:t,value:{type:"Raw",value:n}}}createCalculatedDimension(t,n,r,i="+"){let o=new M.default.List,s=new M.default.List;return n.forEach((a,l)=>{s.appendData({type:"Dimension",unit:a.unit,value:a.value}),s.appendData({type:"WhiteSpace",value:" "}),l+1<n.length&&(s.appendData({type:"Operator",value:i}),s.appendData({type:"WhiteSpace",value:" "}))}),o.insertData({type:"Function",loc:null,name:"calc",children:s}),{type:"Declaration",loc:null,important:r,property:t,value:{type:"Value",loc:null,children:o}}}createDimension(t,n,r){let i=new M.default.List;return i.insertData({type:"Dimension",loc:null,value:n.value,unit:n.unit}),{type:"Declaration",loc:null,important:r,property:t,value:{type:"Value",loc:null,children:i}}}createBlock(t){let n=new M.default.List;return t.forEach(r=>{n.insertData(r)}),{type:"Block",loc:null,children:n}}createRule(t,n){let r=new M.default.List;return r.insertData({type:"Selector",children:t}),Array.isArray(n)&&(n=this.createBlock(n)),{type:"Rule",prelude:{type:"SelectorList",children:r},block:n}}},ZT=Ph;var Lh=ye($e(),1);var jh=class extends Q{constructor(t,n,r){super(t,n,r),this.breaks={}}onDeclaration(t,n,r,i){let o=t.property;if(o==="page"){let a=t.value.children.first().name,l=Lh.default.generate(i.ruleNode.prelude),c={property:o,value:a,selector:l,name:a};l.split(",").forEach(p=>{this.breaks[p]?this.breaks[p].push(c):this.breaks[p]=[c]}),r.remove(n)}if(o==="break-before"||o==="break-after"||o==="page-break-before"||o==="page-break-after"){let a=t.value.children.first().name,l=Lh.default.generate(i.ruleNode.prelude);o==="page-break-before"?o="break-before":o==="page-break-after"&&(o="break-after");let u={property:o,value:a,selector:l};l.split(",").forEach(c=>{this.breaks[c]?this.breaks[c].push(u):this.breaks[c]=[u]}),r.remove(n)}}afterParsed(t){this.processBreaks(t,this.breaks)}processBreaks(t,n){for(let i in n){let o=t.querySelectorAll(i);for(var r=0;r<o.length;r++)for(let s of n[i])if(s.property==="break-after"){let a=Wp(o[r],t);o[r].setAttribute("data-break-after",s.value),a&&a.setAttribute("data-previous-break-after",s.value)}else if(s.property==="break-before"){let a=tS(o[r],t);if(a){if(s.value==="page"&&ol(o[r],a))continue;o[r].setAttribute("data-break-before",s.value),a.setAttribute("data-next-break-before",s.value)}}else if(s.property==="page"){o[r].setAttribute("data-page",s.value);let a=Wp(o[r],t);a&&a.setAttribute("data-after-page",s.value)}else o[r].setAttribute("data-"+s.property,s.value)}}mergeBreaks(t,n){for(let r in n)r in t?t[r]=t[r].concat(n[r]):t[r]=n[r];return t}addBreakAttributes(t,n){let r=t.querySelector("[data-break-before]"),i=t.querySelector("[data-break-after]"),o=t.querySelector("[data-previous-break-after]");r&&(r.dataset.splitFrom?(n.splitFrom=r.dataset.splitFrom,t.setAttribute("data-split-from",r.dataset.splitFrom)):r.dataset.breakBefore&&r.dataset.breakBefore!=="avoid"&&(n.breakBefore=r.dataset.breakBefore,t.setAttribute("data-break-before",r.dataset.breakBefore))),i&&i.dataset&&(i.dataset.splitTo?(n.splitTo=i.dataset.splitTo,t.setAttribute("data-split-to",i.dataset.splitTo)):i.dataset.breakAfter&&i.dataset.breakAfter!=="avoid"&&(n.breakAfter=i.dataset.breakAfter,t.setAttribute("data-break-after",i.dataset.breakAfter))),o&&o.dataset&&o.dataset.previousBreakAfter&&o.dataset.previousBreakAfter!=="avoid"&&(n.previousBreakAfter=o.dataset.previousBreakAfter)}afterPageLayout(t,n){this.addBreakAttributes(t,n)}},QT=jh;var KT=ye($e(),1),Fh=class extends Q{constructor(t,n,r){super(t,n,r)}onAtMedia(t,n,r){let i=this.getMediaName(t),o;i.includes("print")?(o=t.block.children,r.appendList(o),r.remove(n)):!i.includes("all")&&!i.includes("pagedjs-ignore")&&r.remove(n)}getMediaName(t){let n=[];if(!(typeof t.prelude>"u"||t.prelude.type!=="AtrulePrelude"))return KT.default.walk(t.prelude,{visit:"Identifier",enter:(r,i,o)=>{n.push(r.name)}}),n}},JT=Fh;var zh=class extends Q{constructor(t,n,r){super(t,n,r)}afterPageLayout(t,n,r,i){let o=Array.from(t.querySelectorAll("[data-split-from]")),s=t.parentNode,a=Array.prototype.indexOf.call(s.children,t),l;if(a===0)return;l=s.children[a-1];let u;o.forEach(c=>{let p=c.dataset.ref;u=l.querySelector("[data-ref='"+p+"']:not([data-split-to])"),u&&(u.dataset.splitTo=p,u.dataset.splitFrom||(u.dataset.splitOriginal=!0))}),u&&this.handleAlignment(u)}handleAlignment(t){let n=window.getComputedStyle(t),r=n["text-align"],i=n["text-align-last"];t.dataset.lastSplitElement="true",r==="justify"&&i==="auto"?t.dataset.alignLastSplitElement="justify":t.dataset.alignLastSplitElement=i}},XT=zh;var cu=ye($e(),1),Bh=class extends Q{constructor(t,n,r){super(t,n,r),this.styleSheet=n.styleSheet,this.counters={},this.resetCountersMap=new Map}onDeclaration(t,n,r,i){let o=t.property;if(o==="counter-increment"){this.handleIncrement(t,i);let s=!1;t.value.children.forEach(a=>{a.type&&a.type!=="WhiteSpace"&&(s=!0)}),s||r.remove(n)}else if(o==="counter-reset"){this.handleReset(t,i);let s=!1;t.value.children.forEach(a=>{a.type&&a.type!=="WhiteSpace"&&(s=!0)}),s||r.remove(n)}}afterParsed(t){this.processCounters(t,this.counters),this.scopeCounters(this.counters)}addCounter(t){return t in this.counters?this.counters[t]:(this.counters[t]={name:t,increments:{},resets:{}},this.counters[t])}handleIncrement(t,n){let r=[],i=t.value.children;return i.forEach((o,s)=>{if(o.type&&o.type==="Identifier"){let a=o.name;if(a==="page"||a.indexOf("target-counter-")===0)return;let l,u,c;s.next&&s.next.data.type==="WhiteSpace"&&(l=s.next),l&&l.next&&l.next.data.type==="Number"&&(u=l.next,c=parseInt(u.data.value));let p=cu.default.generate(n.ruleNode.prelude),d;a in this.counters?d=this.counters[a]:d=this.addCounter(a);let f={selector:p,number:c||1};d.increments[p]=f,r.push(f),i.remove(s),l&&i.remove(l),u&&i.remove(u)}}),r}handleReset(t,n){let r=t.value.children;r.forEach((i,o)=>{if(i.type&&i.type==="Identifier"){let s=i.name,a,l,u;o.next&&o.next.data.type==="WhiteSpace"&&(a=o.next),a&&a.next&&(a.next.data.type==="Number"?(l=a.next,u=parseInt(l.data.value)):a.next.data.type==="Function"&&a.next.data.name==="var"&&(l=a.next,u=a.next.data.children.head.data.name));let c,p,d=n.ruleNode.prelude;n.ruleNode.type==="Atrule"&&n.ruleNode.name==="page"?p=".pagedjs_page":p=cu.default.generate(d||n.ruleNode),s==="footnote"&&this.addFootnoteMarkerCounter(t.value.children),s in this.counters?c=this.counters[s]:c=this.addCounter(s);let f={selector:p,number:u||0};c.resets[p]=f,p!==".pagedjs_page"&&(r.remove(o),a&&r.remove(a),l&&r.remove(l))}})}processCounters(t,n){let r;for(let i in n)r=this.counters[i],this.processCounterIncrements(t,r),this.processCounterResets(t,r),i!=="page"&&this.addCounterValues(t,r)}scopeCounters(t){let n=[];for(let r in t)r!=="page"&&n.push(`${t[r].name} 0`);this.insertRule(`.pagedjs_pages { counter-reset: ${n.join(" ")} page 0 pages var(--pagedjs-page-count) footnote var(--pagedjs-footnotes-count) footnote-marker var(--pagedjs-footnotes-count)}`)}insertRule(t){this.styleSheet.insertRule(t,this.styleSheet.cssRules.length)}processCounterIncrements(t,n){let r;for(let i in n.increments){r=n.increments[i];let o=t.querySelectorAll(r.selector);for(let s=0;s<o.length;s++)o[s].setAttribute("data-counter-"+n.name+"-increment",r.number),o[s].getAttribute("data-counter-increment")?o[s].setAttribute("data-counter-increment",o[s].getAttribute("data-counter-increment")+" "+n.name):o[s].setAttribute("data-counter-increment",n.name)}}processCounterResets(t,n){let r;for(let o in n.resets){r=n.resets[o];let s=t.querySelectorAll(r.selector);for(var i=0;i<s.length;i++){let a=r.number;typeof a=="string"&&a.startsWith("--")&&(a=s[i].style.getPropertyValue(a)||0),s[i].setAttribute("data-counter-"+n.name+"-reset",a),s[i].getAttribute("data-counter-reset")?s[i].setAttribute("data-counter-reset",s[i].getAttribute("data-counter-reset")+" "+n.name):s[i].setAttribute("data-counter-reset",n.name)}}}addCounterValues(t,n){let r=n.name;if(r==="page"||r==="footnote")return;let i=t.querySelectorAll("[data-counter-"+r+"-reset], [data-counter-"+r+"-increment]"),o=0,s,a,l,u,c,p,d;for(let f=0;f<i.length;f++)s=i[f],p=0,d=[],s.hasAttribute("data-counter-"+r+"-reset")&&(l=s.getAttribute("data-counter-"+r+"-reset"),u=parseInt(l),p=u-o,d.push(`${r} ${p}`),o=u),s.hasAttribute("data-counter-"+r+"-increment")&&(a=s.getAttribute("data-counter-"+r+"-increment"),c=parseInt(a),o+=c,s.setAttribute("data-counter-"+r+"-value",o),d.push(`${r} ${c}`)),d.length>0&&this.incrementCounterForElement(s,d)}addFootnoteMarkerCounter(t){let n=[];cu.default.walk(t,{visit:"Identifier",enter:(r,i,o)=>{n.push(r.name)}}),!n.includes("footnote-maker")&&(t.insertData({type:"WhiteSpace",value:" "}),t.insertData({type:"Identifier",name:"footnote-marker"}),t.insertData({type:"WhiteSpace",value:" "}),t.insertData({type:"Number",value:0}))}incrementCounterForElement(t,n){if(!t||!n||n.length===0)return;let r=t.dataset.ref,i=Array.from(this.styleSheet.cssRules).filter(s=>s.selectorText===`[data-ref="${t.dataset.ref}"]:not([data-split-from])`&&s.style[0]==="counter-increment").map(s=>s.style.counterIncrement);i.push(this.mergeIncrements(n,(s,a)=>(parseInt(s)||0)+(parseInt(a)||0)));let o=this.mergeIncrements(i,(s,a)=>a);this.insertRule(`[data-ref="${r}"]:not([data-split-from]) { counter-increment: ${o} }`)}mergeIncrements(t,n){let r={};return t.forEach(i=>{let o=i.split(" ");for(let s=0;s<o.length;s+=2)r[o[s]]=n(r[o[s]],o[s+1])}),Object.entries(r).map(([i,o])=>`${i} ${o}`).join(" ")}afterPageLayout(t,n){let r=[];t.querySelectorAll("[data-counter-page-reset]:not([data-split-from])").forEach(s=>{let a=s.dataset&&s.dataset.ref;if(!(a&&this.resetCountersMap.has(a))){a&&this.resetCountersMap.set(a,"");let l=s.dataset.counterPageReset;r.push(`page ${l}`)}}),t.querySelectorAll("[data-counter-footnote-reset]:not([data-split-from])").forEach(s=>{let a=s.dataset.counterFootnoteReset;r.push(`footnote ${a}`),r.push(`footnote-marker ${a}`)}),r.length&&this.styleSheet.insertRule(`[data-page-number="${t.dataset.pageNumber}"] { counter-increment: none; counter-reset: ${r.join(" ")} }`,this.styleSheet.cssRules.length)}},e_=Bh;var Wh=class extends Q{constructor(t,n,r){super(t,n,r)}afterParsed(t){let n=t.querySelectorAll("ol");for(var r of n)this.addDataNumbers(r)}afterPageLayout(t,n,r,i){var o=t.getElementsByTagName("ol");for(var s of o)s.firstElementChild&&(s.start=s.firstElementChild.dataset.itemNum)}addDataNumbers(t){let n=1;t.hasAttribute("start")&&(n=parseInt(t.getAttribute("start"),10),isNaN(n)&&(n=1));let r=t.children;for(var i=0;i<r.length;i++)r[i].setAttribute("data-item-num",i+n)}},t_=Wh;var n_=ye($e(),1),qh=class extends Q{constructor(t,n,r){super(t,n,r),this.styleSheet=n.styleSheet,this.fixedElementsSelector=[],this.fixedElements=[]}onDeclaration(t,n,r,i){if(t.property==="position"&&t.value.children.first().name==="fixed"){let o=n_.default.generate(i.ruleNode.prelude);this.fixedElementsSelector.push(o),r.remove(n)}}afterParsed(t){this.fixedElementsSelector.forEach(n=>{t.querySelectorAll(`${n}`).forEach(r=>{r.style.setProperty("position","absolute"),this.fixedElements.push(r),r.remove()})})}afterPageLayout(t,n,r){this.fixedElements.forEach(i=>{let o=i.cloneNode(!0);t.querySelector(".pagedjs_pagebox").insertAdjacentElement("afterbegin",o)})}},r_=qh;var i_=ye($e(),1),Vh=class extends Q{constructor(t,n,r){super(t,n,r),this.styleSheet=n.styleSheet,this.pageCounter={name:"page",increments:{},resets:{}}}onDeclaration(t,n,r,i){t.property==="counter-increment"&&this.handleIncrement(t,i)&&r.remove(n)}afterParsed(t){for(let n in this.pageCounter.increments){let r=this.pageCounter.increments[n];this.insertRule(`${r.selector} { --pagedjs-page-counter-increment: ${r.number} }`)}}handleIncrement(t,n){let r=t.value.children.first(),i=t.value.children.getSize()>1?t.value.children.last().value:1,o=r&&r.name;if(o&&o.indexOf("target-counter-")===0||o!=="page"||n.ruleNode.name==="page"&&n.ruleNode.type==="Atrule")return;let s=i_.default.generate(n.ruleNode.prelude);return this.pageCounter.increments[s]={selector:s,number:i}}insertRule(t){this.styleSheet.insertRule(t,this.styleSheet.cssRules.length)}},o_=Vh;var Uh=ye($e(),1);var Hh=class extends Q{constructor(t,n,r){super(t,n,r),this.styleSheet=n.styleSheet,this.selectors={}}onRule(t,n,r){let i=Uh.default.generate(t.prelude);if(i.match(/:(first|last|nth)-of-type/)){let o=Uh.default.generate(t.block);o=o.replace(/[{}]/g,"");let s="nth-of-type-"+Ze();i.split(",").forEach(a=>{this.selectors[a]?this.selectors[a][1]=`${this.selectors[a][1]};${o}`:this.selectors[a]=[s,o]}),r.remove(n)}}afterParsed(t){this.processSelectors(t,this.selectors)}processSelectors(t,n){for(let i in n){let o=t.querySelectorAll(i);for(var r=0;r<o.length;r++){let a=o[r].getAttribute("data-nth-of-type");a&&a!=""?(a=`${a},${n[i][0]}`,o[r].setAttribute("data-nth-of-type",a)):o[r].setAttribute("data-nth-of-type",n[i][0])}let s=`*[data-nth-of-type*='${n[i][0]}'] { ${n[i][1]}; }`;this.styleSheet.insertRule(s,this.styleSheet.cssRules.length)}}},s_=Hh;var $h=ye($e(),1);var Gh=class extends Q{constructor(t,n,r){super(t,n,r),this.styleSheet=n.styleSheet,this.selectors={}}onRule(t,n,r){let i=$h.default.generate(t.prelude);if(i.match(/\+/)){let o=$h.default.generate(t.block);o=o.replace(/[{}]/g,"");let s="following-"+Ze();i.split(",").forEach(a=>{this.selectors[a]?this.selectors[a][1]=`${this.selectors[a][1]};${o}`:this.selectors[a]=[s,o]}),r.remove(n)}}afterParsed(t){this.processSelectors(t,this.selectors)}processSelectors(t,n){for(let i in n){let o=t.querySelectorAll(i);for(var r=0;r<o.length;r++){let a=o[r].getAttribute("data-following");a&&a!=""?(a=`${a},${n[i][0]}`,o[r].setAttribute("data-following",a)):o[r].setAttribute("data-following",n[i][0])}let s=`*[data-following*='${n[i][0]}'] { ${n[i][1]}; }`;this.styleSheet.insertRule(s,this.styleSheet.cssRules.length)}}},a_=Gh;var Ri=ye($e(),1),Yh=class extends Q{constructor(t,n,r){super(t,n,r),this.footnotes={},this.needsLayout=[]}onDeclaration(t,n,r,i){let o=t.property;if(o==="float"){let s=t.value.children&&t.value.children.first();if((s&&s.name)==="footnote"){let l=Ri.default.generate(i.ruleNode.prelude);this.footnotes[l]={selector:l,policy:"auto",display:"block"},r.remove(n)}}if(o==="footnote-policy"){let s=t.value.children&&t.value.children.first(),a=s&&s.name;if(a){let l=Ri.default.generate(i.ruleNode.prelude),u=this.footnotes[l];u&&(u.policy=a)}}if(o==="footnote-display"){let s=t.value.children&&t.value.children.first(),a=s&&s.name,l=Ri.default.generate(i.ruleNode.prelude);if(a&&this.footnotes[l]){let u=this.footnotes[l];u&&(u.display=a)}}}onPseudoSelector(t,n,r,i,o){let s=t.name;if(s==="footnote-marker"){let a=o.ruleNode.prelude,l=new Ri.default.List;a.children.first().children.each(u=>{u.type!=="PseudoElementSelector"&&l.appendData(u)}),l.appendData({type:"AttributeSelector",name:{type:"Identifier",name:"data-footnote-marker"},flags:null,loc:null,matcher:null,value:null}),l.appendData({type:"PseudoElementSelector",name:"marker",loc:null,children:null}),a.children.first().children=l}if(s==="footnote-call"){let a=o.ruleNode.prelude,l=new Ri.default.List;a.children.first().children.each(u=>{u.type!=="PseudoElementSelector"&&l.appendData(u)}),l.appendData({type:"AttributeSelector",name:{type:"Identifier",name:"data-footnote-call"},flags:null,loc:null,matcher:null,value:null}),l.appendData({type:"PseudoElementSelector",name:"after",loc:null,children:null}),a.children.first().children=l}}afterParsed(t){this.processFootnotes(t,this.footnotes)}processFootnotes(t,n){for(let i in n){let o=t.querySelectorAll(i),s,a=n[i];for(var r=0;r<o.length;r++)s=o[r],s.setAttribute("data-note","footnote"),s.setAttribute("data-break-before","avoid"),s.setAttribute("data-note-policy",a.policy||"auto"),s.setAttribute("data-note-display",a.display||"block"),this.processFootnoteContainer(s)}}processFootnoteContainer(t){let n=t.parentElement,r=n;for(;n;){if(sl(n)){r.setAttribute("data-has-notes","true");break}r=n,n=n.parentElement,n||r.setAttribute("data-has-notes","true")}}renderNode(t){if(t.nodeType==1){let n;if(!t.dataset)return;t.dataset.note==="footnote"?n=[t]:(t.dataset.hasNotes||t.querySelectorAll("[data-note='footnote']"))&&(n=t.querySelectorAll("[data-note='footnote']")),n&&n.length&&this.findVisibleFootnotes(n,t)}}findVisibleFootnotes(t,n){let r,i,o;r=n.closest(".pagedjs_page_content"),i=r.getBoundingClientRect(),o=i.left+i.width;for(let s=0;s<t.length;++s){let a=t[s];a.getBoundingClientRect().left<o&&this.moveFootnote(a,n.closest(".pagedjs_area"),!0)}}moveFootnote(t,n,r){let i=n.querySelector(".pagedjs_footnote_area"),o=i.querySelector(".pagedjs_footnote_content"),s=o.querySelector(".pagedjs_footnote_inner_content");if(!Re(t))return;let a;if(r&&(a=this.createFootnoteCall(t)),t.removeAttribute("data-break-before"),s.querySelector(`[data-ref="${t.dataset.ref}"]`)){t.remove();return}s.appendChild(t),o.classList.contains("pagedjs_footnote_empty")&&o.classList.remove("pagedjs_footnote_empty"),t.dataset.footnoteMarker=t.dataset.ref,t.id=`note-${t.dataset.ref}`;let u=o.scrollHeight,p=n.querySelector(".pagedjs_page_content").getBoundingClientRect(),d=p.left+p.width,f=a&&a.getBoundingClientRect(),g=i.getBoundingClientRect(),h=this.marginsHeight(o),y=this.paddingHeight(o),m=this.borderHeight(o),v=h+y+m,S=Math.floor(g.top);g.height===0&&(S-=this.marginsHeight(o,!1),S-=this.paddingHeight(o,!1),S-=this.borderHeight(o,!1));let x=t.dataset.notePolicy,E=0,w=0;if(a){let Ie=a.previousSibling,we=new Range;Ie?we.setStartBefore(Ie):we.setStartBefore(a),we.setEndAfter(a);let Be=we.getBoundingClientRect();if(E=Be.bottom,!x||x==="auto")w=Math.ceil(Be.bottom);else if(x==="line")w=Math.ceil(Be.top);else if(x==="block"){let Oe=a.closest("p").previousElementSibling;Oe?w=Math.ceil(Oe.getBoundingClientRect().bottom):w=Math.ceil(Be.bottom)}}let W=u+v-g.height,q=E?S-E:0,oe=E?Math.floor(g.top)-w:0,Me=i.querySelector("[data-note='footnote']");if(r&&f.left>d)t.remove();else if(!Me&&r&&v>q){n.style.setProperty("--pagedjs-footnotes-height","0px");let Ie=document.createElement("div");Ie.appendChild(t),this.needsLayout.push(Ie)}else r?E<g.top-W?n.style.setProperty("--pagedjs-footnotes-height",`${u+h+m}px`):(n.style.setProperty("--pagedjs-footnotes-height",`${g.height+oe}px`),s.style.height=g.height+oe-v+"px"):n.style.setProperty("--pagedjs-footnotes-height",`${u+v}px`)}createFootnoteCall(t){let n=t.parentElement,r=document.createElement("a");for(let i of t.classList)r.classList.add(`${i}`);return r.dataset.footnoteCall=t.dataset.ref,r.dataset.ref=t.dataset.ref,r.dataset.dataCounterFootnoteIncrement=1,r.href=`#note-${t.dataset.ref}`,n.insertBefore(r,t),r}afterPageLayout(t,n,r,i){let o=t.querySelector(".pagedjs_area"),s=n.footnotesArea,a=s.querySelector(".pagedjs_footnote_content"),l=s.querySelector(".pagedjs_footnote_inner_content"),u=a.getBoundingClientRect(),{width:c}=u;l.style.columnWidth=Math.round(c)+"px",l.style.columnGap="calc(var(--pagedjs-margin-right) + var(--pagedjs-margin-left))";let d=new yl(s,void 0,i.settings).findOverflow(l,u);if(d){let{startContainer:f,startOffset:g}=d,h;if(Re(f)){let w=f.childNodes[g];h=Re(w)&&w.hasAttribute("data-footnote-marker")}let y=d.extractContents();if(!h){let w=y.firstElementChild;w.dataset.splitFrom=w.dataset.ref,this.handleAlignment(l.lastElementChild)}this.needsLayout.push(y),a.style.removeProperty("height"),l.style.removeProperty("height");let m=l.getBoundingClientRect(),{height:v}=m,S=this.marginsHeight(a),x=this.paddingHeight(a),E=this.borderHeight(a);if(o.style.setProperty("--pagedjs-footnotes-height",`${v+S+E+x}px`),l.childNodes.length===0&&a.classList.add("pagedjs_footnote_empty"),!r)i.clonePage(n);else{let w,W;r.node&&typeof r.node.dataset<"u"&&typeof r.node.dataset.previousBreakAfter<"u"&&(W=r.node.dataset.previousBreakAfter),r.node&&typeof r.node.dataset<"u"&&typeof r.node.dataset.breakBefore<"u"&&(w=r.node.dataset.breakBefore),(w||W)&&i.clonePage(n)}}l.style.height="auto"}handleAlignment(t){let r=window.getComputedStyle(t)["text-align-last"];t.dataset.lastSplitElement="true",r==="auto"?t.dataset.alignLastSplitElement="justify":t.dataset.alignLastSplitElement=r}beforePageLayout(t){for(;this.needsLayout.length;){let n=this.needsLayout.shift();Array.from(n.childNodes).forEach(r=>{this.moveFootnote(r,t.element.querySelector(".pagedjs_area"),!1)})}}afterOverflowRemoved(t,n){let r=n.closest(".pagedjs_area"),i=r.querySelectorAll(".pagedjs_footnote_area [data-note='footnote']");for(let s=0;s<i.length;s++){let a=i[s];t.querySelector(`[data-footnote-call="${a.dataset.ref}"]`)&&a.remove()}let o=r.querySelector(".pagedjs_footnote_inner_content");o&&o.childNodes.length===0&&o.parentElement.classList.add("pagedjs_footnote_empty")}marginsHeight(t,n=!0){let r=window.getComputedStyle(t),i=parseInt(r.marginTop),o=parseInt(r.marginBottom),s=0;return i&&(s+=i),o&&n&&(s+=o),s}paddingHeight(t,n=!0){let r=window.getComputedStyle(t),i=parseInt(r.paddingTop),o=parseInt(r.paddingBottom),s=0;return i&&(s+=i),o&&n&&(s+=o),s}borderHeight(t,n=!0){let r=window.getComputedStyle(t),i=parseInt(r.borderTop),o=parseInt(r.borderBottom),s=0;return i&&(s+=i),o&&n&&(s+=o),s}},l_=Yh;var u_=[JT,ZT,QT,XT,e_,t_,r_,o_,s_,a_,l_];var ls=ye($e(),1),Zh=class extends Q{constructor(t,n,r){super(t,n,r),this.runningSelectors={},this.elements={}}onDeclaration(t,n,r,i){if(t.property==="position"){let o=ls.default.generate(i.ruleNode.prelude),s=t.value.children.first().name;if(s==="running"){let a;ls.default.walk(t,{visit:"Function",enter:(l,u,c)=>{a=l.children.first().name}}),this.runningSelectors[a]={identifier:s,value:a,selector:o}}}t.property==="content"&&ls.default.walk(t,{visit:"Function",enter:(o,s,a)=>{if(o.name.indexOf("element")>-1){let l=ls.default.generate(i.ruleNode.prelude),u=o.name,c=o.children.first().name,p=[c],d="first";l.split(",").forEach(f=>{f=f.replace(/::after|::before/,""),this.elements[f]={func:u,args:p,value:c,style:d||"first",selector:f,fullSelector:l}})}}})}afterParsed(t){for(let n of Object.keys(this.runningSelectors)){let r=this.runningSelectors[n],i=Array.from(t.querySelectorAll(r.selector));if(r.identifier==="running")for(let o of i)o.style.display="none"}}afterPageLayout(t){for(let n of Object.keys(this.runningSelectors)){let r=this.runningSelectors[n],i=t.querySelector(r.selector);i&&(r.identifier==="running"?r.first=i:console.warn(r.value+"needs css replacement"))}this.orderedSelectors||(this.orderedSelectors=this.orderSelectors(this.elements));for(let n of this.orderedSelectors)if(n){let r=this.elements[n],i=t.querySelector(n);if(i){let o=this.runningSelectors[r.args[0]];if(o&&o.first){i.innerHTML="";let s=o.first.cloneNode(!0);s.style.display=null,i.appendChild(s)}}}}pageWeight(t){let n=1,r=t.split(" "),i=r.length&&r[0].split(".");switch(i.shift(),i.length){case 4:/^pagedjs_[\w-]+_first_page$/.test(i[3])?n=7:(i[3]==="pagedjs_left_page"||i[3]==="pagedjs_right_page")&&(n=6);break;case 3:i[1]==="pagedjs_named_page"&&(i[2].indexOf(":nth-of-type")>-1?n=7:n=5);break;case 2:i[1]==="pagedjs_first_page"?n=4:i[1]==="pagedjs_blank_page"?n=3:(i[1]==="pagedjs_left_page"||i[1]==="pagedjs_right_page")&&(n=2);break;default:i[0].indexOf(":nth-of-type")>-1?n=4:n=1}return n}orderSelectors(t){let n=Object.keys(t),r={1:[],2:[],3:[],4:[],5:[],6:[],7:[]},i=[];for(let s of n){let a=this.pageWeight(s);r[a].unshift(s)}for(var o=1;o<=7;o++)i=i.concat(r[o]);return i}beforeTreeParse(t,n){n.text=t.replace(/element[\s]*\(([^|^#)]*)\)/g,"element-ident($1)")}},c_=Zh;var Qh=ye($e(),1);function zn(e,t=`"' `){if(e!=null)return e.replace(new RegExp(`^[${t}]+`),"").replace(new RegExp(`[${t}]+$`),"").replace(/["']/g,n=>"\\"+n).replace(/[\n]/g,n=>"\\00000A")}function d_(e){if(e!=null)return e.replace(new RegExp("::footnote-call","g"),"").replace(new RegExp("::footnote-marker","g"),"")}var Kh=class extends Q{constructor(t,n,r){super(t,n,r),this.stringSetSelectors={},this.type,this.pageLastString}onDeclaration(t,n,r,i){if(t.property==="string-set"){let o=Qh.default.generate(i.ruleNode.prelude),s=[],a=[],l=[];t.value.children.forEach(u=>{u.type==="Identifier"&&s.push(u.name),u.type==="Function"&&(a.push(u.name),u.children.forEach(c=>{c.type==="Identifier"&&l.push(c.name)}))}),s.forEach((u,c)=>{let p=a[c],d=l[c];this.stringSetSelectors[u]={identifier:u,func:p,value:d,selector:o}})}}onContent(t,n,r,i,o){if(t.name==="string"){let s=t.children&&t.children.first().name;this.type=t.children.last().name,t.name="var",t.children=new Qh.default.List,this.type==="first"||this.type==="last"||this.type==="start"||this.type==="first-except"?t.children.append(t.children.createItem({type:"Identifier",loc:null,name:"--pagedjs-string-"+this.type+"-"+s})):t.children.append(t.children.createItem({type:"Identifier",loc:null,name:"--pagedjs-string-first-"+s}))}}afterPageLayout(t){this.pageLastString===void 0&&(this.pageLastString={});for(let n of Object.keys(this.stringSetSelectors)){let r=this.stringSetSelectors[n],i=r.value,o=r.func,s=t.querySelectorAll(r.selector),a=n in this.pageLastString?this.pageLastString[n]:"",l,u,c,p;if(s.length==0)l=a,u=a,c=a,p=a;else{s.forEach(h=>{o==="content"&&(this.pageLastString[n]=s[s.length-1].textContent),o==="attr"&&(this.pageLastString[n]=s[s.length-1].getAttribute(i)||"")}),o==="content"&&(l=s[0].textContent),o==="attr"&&(l=s[0].getAttribute(i)||""),o==="content"&&(u=s[s.length-1].textContent),o==="attr"&&(u=s[s.length-1].getAttribute(i)||"");let d=s[0].getBoundingClientRect().top,g=s[0].closest(".pagedjs_page_content").getBoundingClientRect().top;d==g?c=l:c=a,p=""}t.style.setProperty(`--pagedjs-string-first-${n}`,`"${zn(l)}`),t.style.setProperty(`--pagedjs-string-last-${n}`,`"${zn(u)}`),t.style.setProperty(`--pagedjs-string-start-${n}`,`"${zn(c)}`),t.style.setProperty(`--pagedjs-string-first-except-${n}`,`"${zn(p)}`)}}},p_=Kh;var us=ye($e(),1),Jh=class extends Q{constructor(t,n,r){super(t,n,r),this.styleSheet=n.styleSheet,this.counterTargets={}}onContent(t,n,r,i,o){if(t.name==="target-counter"){let s=us.default.generate(o.ruleNode.prelude),a=t.children.first(),l=a.name,u=us.default.generate(t),c=[];a.children.forEach(h=>{h.type==="Identifier"&&c.push(h.name)});let p,d,f;t.children.forEach(h=>{h.type==="Identifier"&&(p?d||(f=us.default.clone(h),d=h.name):p=h.name)});let g="target-counter-"+Ze();s.split(",").forEach(h=>{this.counterTargets[h]={func:l,args:c,value:u,counter:p,style:d,selector:h,fullSelector:s,variable:g}}),t.name="counter",t.children=new us.default.List,t.children.appendData({type:"Identifier",loc:0,name:g}),f&&(t.children.appendData({type:"Operator",loc:null,value:","}),t.children.appendData(f))}}afterPageLayout(t,n,r,i){Object.keys(this.counterTargets).forEach(o=>{let s=this.counterTargets[o],a=s.selector.split(/::?/g),l=a[0];i.pagesArea.querySelectorAll(l+":not([data-"+s.variable+"])").forEach((c,p)=>{if(s.func!=="attr")return;let d=Ja(c,s.args),f=i.pagesArea.querySelector(Xa(d));if(f){let g=Ze();c.setAttribute("data-"+s.variable,g);let h="";if(a.length>1&&(h+="::"+a[1]),s.counter==="page"){let m=i.pagesArea.querySelectorAll(".pagedjs_page"),v=0;for(let S=0;S<m.length;S++){let x=m[S],E=window.getComputedStyle(x),w=E["counter-reset"].replace("page","").trim(),W=E["counter-increment"].replace("page","").trim();if(w!=="none"&&(v=parseInt(w)),W!=="none"&&(v+=parseInt(W)),x.contains(f))break}this.styleSheet.insertRule(`[data-${s.variable}="${g}"]${h} { counter-reset: ${s.variable} ${v}; }`,this.styleSheet.cssRules.length)}else{let m=f.getAttribute(`data-counter-${s.counter}-value`);m&&this.styleSheet.insertRule(`[data-${s.variable}="${g}"]${h} { counter-reset: ${s.variable} ${s.variable} ${parseInt(m)}; }`,this.styleSheet.cssRules.length)}let y=document.querySelector(`[data-${s.variable}="${g}"]`);y&&(y.style.display="none",y.clientHeight,y.style.removeProperty("display"))}})})}},f_=Jh;var du=ye($e(),1),Xh=class extends Q{constructor(t,n,r){super(t,n,r),this.styleSheet=n.styleSheet,this.textTargets={},this.beforeContent="",this.afterContent="",this.selector={}}onContent(t,n,r,i,o){if(t.name==="target-text"){this.selector=du.default.generate(o.ruleNode.prelude);let s=t.children.first(),a=t.children.last(),l=s.name,u=du.default.generate(t),c=[];s.children.forEach(f=>{f.type==="Identifier"&&c.push(f.name)});let p;a!==s&&(p=a.name);let d="--pagedjs-"+Ze();this.selector.split(",").forEach(f=>{this.textTargets[f]={func:l,args:c,value:u,style:p||"content",selector:f,fullSelector:this.selector,variable:d}}),t.name="var",t.children=new du.default.List,t.children.appendData({type:"Identifier",loc:0,name:d})}}onPseudoSelector(t,n,r,i,o){o.ruleNode.block.children.forEach(s=>{t.name==="before"&&s.property==="content"?s.value.children.forEach(l=>{l.type==="String"&&(this.beforeContent=l.value)}):t.name==="after"&&s.property==="content"&&s.value.children.forEach(a=>{a.type==="String"&&(this.afterContent=a.value)})})}afterParsed(t){Object.keys(this.textTargets).forEach(n=>{let r=this.textTargets[n],i=r.selector.split("::"),o=i[0],s=t.querySelectorAll(o),a;s.forEach((l,u)=>{let c=Ja(l,r.args),p=t.querySelector(Xa(c));if(p)if(r.style){this.selector=Ze(),l.setAttribute("data-target-text",this.selector);let d="";if(i.length>1&&(d+="::"+i[1]),r.style==="before"||r.style==="after"){let f=`${r.style}Content`;a=zn(this[f])}else a=zn(p.textContent," ");a=r.style==="first-letter"?a.charAt(0):a,this.styleSheet.insertRule(`[data-target-text="${this.selector}"]${d} { ${r.variable}: "${a}" }`)}else console.warn("missed target",c)})})}},h_=Xh;var m_=[c_,p_,f_,h_];var em=class extends Q{constructor(t,n,r){super(t,n,r)}filter(t){cl(t,n=>this.filterEmpty(n),NodeFilter.SHOW_TEXT)}filterEmpty(t){if(t.textContent.length>1&&Po(t)){let n=t.parentNode;if(Re(n)&&n.closest("pre"))return NodeFilter.FILTER_REJECT;let i=tl(t),o=nl(t);return o===null&&i===null?(t.textContent=" ",NodeFilter.FILTER_REJECT):o===null||i===null?NodeFilter.FILTER_ACCEPT:(t.textContent=" ",NodeFilter.FILTER_REJECT)}else return NodeFilter.FILTER_REJECT}},g_=em;var tm=class extends Q{constructor(t,n,r){super(t,n,r)}filter(t){cl(t,null,NodeFilter.SHOW_COMMENT)}},y_=tm;var nm=class extends Q{constructor(t,n,r){super(t,n,r)}filter(t){t.querySelectorAll("script").forEach(n=>{n.remove()})}},v_=nm;var w_=ye($e(),1),C_=ye(x_(),1);var im=class extends Q{constructor(t,n,r){super(t,n,r),this.displayRules={}}onDeclaration(t,n,r,i){if(t.property==="display"){let o=w_.default.generate(i.ruleNode.prelude),s=t.value.children.first().name;o.split(",").forEach(a=>{this.displayRules[a]={value:s,selector:a,specificity:(0,C_.calculateSpecificity)(a),important:t.important}})}}filter(t){let{matches:n,selectors:r}=this.sortDisplayedSelectors(t,this.displayRules);for(let o=0;o<n.length;o++){let s=n[o],a=r[o],l=a[a.length-1].value;this.removable(s)&&l==="none"&&(s.dataset.undisplayed="undisplayed")}let i=t.querySelectorAll("[style]");for(let o=0;o<i.length;o++){let s=i[o];this.removable(s)&&(s.dataset.undisplayed="undisplayed")}}sorter(t,n){return t.important&&!n.important?1:n.important&&!t.important?-1:t.specificity-n.specificity}sortDisplayedSelectors(t,n=[]){let r=[],i=[];for(let o in n){let s=n[o],a=s.selector,l=[];try{try{l=t.querySelectorAll(a)}catch{l=t.querySelectorAll(d_(a))}}catch{l=[]}let u=Array.from(l);for(let c of u)if(r.includes(c)){let p=r.indexOf(c);i[p].push(s),i[p]=i[p].sort(this.sorter)}else r.push(c),i.push([s])}return{matches:r,selectors:i}}removable(t){return!(t.style&&t.style.display!==""&&t.style.display!=="none")}},E_=im;var D_=[g_,y_,v_,E_];var $I=ye(On(),1),GI=ye(HI(),1),pm=[...u_,...m_,...D_],hu=class{constructor(t,n,r){let i=[];pm.forEach(o=>{let s=new o(t,n,r);i.push(s),(0,GI.default)(s,this)})}};(0,$I.default)(hu.prototype);function mu(){for(var e=0;e<arguments.length;e++)pm.push(arguments[e])}function fm(e,t,n){return new hu(e,t,n)}var gu=class{constructor(t){this.settings=t||{},this.polisher=new Nh(!1),this.chunker=new lf(void 0,void 0,this.settings),this.hooks={},this.hooks.beforePreview=new N(this),this.hooks.afterPreview=new N(this),this.size={width:{value:8.5,unit:"in"},height:{value:11,unit:"in"},format:void 0,orientation:void 0},this.chunker.on("page",n=>{this.emit("page",n)}),this.chunker.on("rendering",()=>{this.emit("rendering",this.chunker)})}initializeHandlers(){let t=fm(this.chunker,this.polisher,this);return t.on("size",n=>{this.size=n,this.emit("size",n)}),t.on("atpages",n=>{this.atpages=n,this.emit("atpages",n)}),t}registerHandlers(){return mu.apply(mu,arguments)}getParams(t){let n,r=new URL(window.location),i=new URLSearchParams(r.search);for(var o of i.entries())o[0]===t&&(n=o[1]);return n}wrapContent(){let t=document.querySelector("body"),n;return n=t.querySelector(":scope > template[data-ref='pagedjs-content']"),n||(n=document.createElement("template"),n.dataset.ref="pagedjs-content",n.innerHTML=t.innerHTML,t.innerHTML="",t.appendChild(n)),n.content}removeStyles(t=document){let n=Array.from(t.querySelectorAll("link[rel='stylesheet']:not([data-pagedjs-ignore], [media~='screen'])")),r=Array.from(t.querySelectorAll("style:not([data-pagedjs-inserted-styles], [data-pagedjs-ignore], [media~='screen'])"));return[...n,...r].sort(function(o,s){let a=o.compareDocumentPosition(s);return a===Node.DOCUMENT_POSITION_PRECEDING?1:a===Node.DOCUMENT_POSITION_FOLLOWING?-1:0}).map(o=>{if(o.nodeName==="STYLE"){let s={};return s[window.location.href]=o.textContent,o.remove(),s}if(o.nodeName==="LINK")return o.remove(),o.href;console.warn(`Unable to process: ${o}, ignoring.`)})}preview(t,n,r){return le(this,null,function*(){yield this.hooks.beforePreview.trigger(t,r),t||(t=this.wrapContent()),n||(n=this.removeStyles()),this.polisher.setup(),this.handlers=this.initializeHandlers(),yield this.polisher.add(...n);let i=performance.now(),o=yield this.chunker.flow(t,r),s=performance.now();return o.performance=s-i,o.size=this.size,this.emit("rendered",o),yield this.hooks.afterPreview.trigger(o.pages),o})}};(0,YI.default)(gu.prototype);var hm=gu;var yu=class e{topic;project;description;static \u0275fac=function(n){return new(n||e)};static \u0275cmp=pe({type:e,selectors:[["app-title-section"]],inputs:{topic:"topic",project:"project",description:"description"},standalone:!0,features:[he],decls:6,vars:2,consts:[[1,"title"],[1,"topic-and-project"],[1,"topic"],[1,"description"]],template:function(n,r){n&1&&(C(0,"section",0)(1,"div",1)(2,"h1",2),R(3),D()(),C(4,"p",3),R(5),D()()),n&2&&(_(3),ge(r.topic),_(2),ge(r.description))},styles:[".title[_ngcontent-%COMP%]{display:flex;gap:10px;padding:0;margin:0;background-color:#ff8d60;border:1mm solid orangered;border-radius:1rem;padding:1rem;box-shadow:5px 5px 10px 2px #00000026}.title[_ngcontent-%COMP%] .topic-and-project[_ngcontent-%COMP%]{flex-basis:50%;text-align:center;font-family:PoppinsSemiBold}.title[_ngcontent-%COMP%] .topic-and-project[_ngcontent-%COMP%] .topic[_ngcontent-%COMP%]{font-size:16pt;margin-top:1rem;margin-bottom:0}.title[_ngcontent-%COMP%] .topic-and-project[_ngcontent-%COMP%] .project[_ngcontent-%COMP%]{font-size:12pt;margin-top:0}.title[_ngcontent-%COMP%] .description[_ngcontent-%COMP%]{font-size:12pt;padding:0;margin:0}"]})};function lV(e,t){if(e&1&&(C(0,"p"),R(1),D()),e&2){let n=t.$implicit;_(),ge(n)}}var vu=class e{getReadySectionData;static \u0275fac=function(n){return new(n||e)};static \u0275cmp=pe({type:e,selectors:[["app-get-ready-section"]],inputs:{getReadySectionData:"getReadySectionData"},standalone:!0,features:[he],decls:7,vars:0,consts:[[1,"get-ready-header"],[1,"get-ready-container"],[1,"get-ready-steps"]],template:function(n,r){n&1&&(C(0,"section")(1,"h3",0),R(2,"Get Ready"),D(),C(3,"div",1)(4,"div",2),ut(5,lV,2,1,"p",null,lt),D()()()),n&2&&(_(5),ct(r.getReadySectionData))},styles:[".get-ready-container[_ngcontent-%COMP%]{display:flex;align-items:flex-start}.get-ready-container[_ngcontent-%COMP%] .get-ready-steps[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin-top:.5rem}.get-ready-container[_ngcontent-%COMP%] .get-ready-image[_ngcontent-%COMP%]{margin-top:2mm;margin-left:auto;max-height:30mm;max-width:70mm;width:auto;height:auto;object-fit:contain;filter:drop-shadow(2px 2px 2px)}"]})};function uV(e,t){if(e&1&&(C(0,"div")(1,"pre",6),Z(2,"code",7),D()()),e&2){let n=te(2);_(2),se("code",n.challenges[0].hintCode)("language",n.programmingLanguage)}}function cV(e,t){if(e&1&&Z(0,"img",5),e&2){let n=te(2);se("src",n.challenges[0].imageSlot.base64,et)}}function dV(e,t){if(e&1&&(C(0,"div",1)(1,"h3"),R(2,"Challenges!"),D(),C(3,"div",2),Z(4,"img",3),C(5,"div",4)(6,"h4"),R(7),D(),C(8,"p"),R(9),D(),Te(10,uV,3,2,"div")(11,cV,1,1,"img",5),D()()()),e&2){let n=te();_(7),ge(n.challenges[0].name),_(2),ge(n.challenges[0].task),_(),fe(n.challenges[0].hintCode?10:-1),_(),fe(n.challenges[0].imageSlot!=null&&n.challenges[0].imageSlot.base64?11:-1)}}function pV(e,t){if(e&1&&(C(0,"div")(1,"pre",6),Z(2,"code",7),D()()),e&2){let n=te(2).$implicit,r=te();_(2),se("code",n.hintCode)("language",r.programmingLanguage)}}function fV(e,t){if(e&1&&Z(0,"img",5),e&2){let n=te(2).$implicit;se("src",n.imageSlot.base64,et)}}function hV(e,t){if(e&1&&(C(0,"div",2),Z(1,"img",8),C(2,"div",4)(3,"h4"),R(4),D(),C(5,"p"),R(6),D(),Te(7,pV,3,2,"div")(8,fV,1,1,"img",5),D()()),e&2){let n=te(),r=n.$implicit,i=n.$index;_(),se("src",i===1?"silver.png":i===2?"gold.png":"fourth-challenge.png",et)("alt",i===1?"Silver medal":i===2?"Gold medal":"Platinum medal"),_(3),ge(r.name),_(2),ge(r.task),_(),fe(r.hintCode?7:-1),_(),fe(r.imageSlot!=null&&r.imageSlot.base64?8:-1)}}function mV(e,t){if(e&1&&Te(0,hV,9,6,"div",2),e&2){let n=t.$index;fe(n>0?0:-1)}}var bu=class e{challenges;programmingLanguage;static \u0275fac=function(n){return new(n||e)};static \u0275cmp=pe({type:e,selectors:[["app-challenge-section"]],inputs:{challenges:"challenges",programmingLanguage:"programmingLanguage"},standalone:!0,features:[he],decls:4,vars:1,consts:[[1,"challenge-section"],[1,"challenge-header-group"],[1,"challenge-item"],["src","bronze.png","alt","Bronze medal",1,"challenge-medal"],[1,"challenge-content"],["alt","Challenge illustration",1,"challenge-image",3,"src"],[1,"code-block","code-block--small"],["prismHighlight","",3,"code","language"],[1,"challenge-medal",3,"src","alt"]],template:function(n,r){n&1&&(C(0,"section",0),Te(1,dV,12,4,"div",1),ut(2,mV,1,1,null,null,lt),D()),n&2&&(_(),fe(r.challenges.length>0?1:-1),_(),ct(r.challenges))},dependencies:[ci],styles:[".challenge-section[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:3mm}.challenge-header-group[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:3mm;break-inside:avoid}.challenge-item[_ngcontent-%COMP%]{display:flex;align-items:flex-start;gap:.75rem;padding:.5rem;border-radius:var(--section-card-border-radius);background-color:var(--section-card-color);box-shadow:0 4px 6px #0000001a,0 1px 3px #00000014;break-inside:avoid}.challenge-medal[_ngcontent-%COMP%]{width:40px;height:40px;flex-shrink:0;object-fit:contain}.challenge-content[_ngcontent-%COMP%]{flex:1;min-width:0}.challenge-content[_ngcontent-%COMP%] h4[_ngcontent-%COMP%]{margin:0 0 .25rem;font-size:13pt;font-weight:600;color:#333;font-family:PoppinsSemiBold}.challenge-content[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0;font-size:11pt;line-height:1.4;white-space:pre-wrap;color:#343434}.challenge-image[_ngcontent-%COMP%]{display:block;max-width:100%;max-height:80mm;width:auto;object-fit:contain;margin-top:3mm;border-radius:4px}"]})};var Su=class e{newProject;static \u0275fac=function(n){return new(n||e)};static \u0275cmp=pe({type:e,selectors:[["app-new-project-section"]],inputs:{newProject:"newProject"},standalone:!0,features:[he],decls:12,vars:2,consts:[[1,"new-project-section"],[1,"new-project-card"],["src","new-project.png","alt","New Project Star",1,"new-project-star"],[1,"new-project-content"]],template:function(n,r){n&1&&(C(0,"section",0)(1,"h3"),R(2,"Super Challenge"),D(),C(3,"p"),R(4,"\u{1F4A1} Make a New Project and let's see your best!"),D(),C(5,"div",1),Z(6,"img",2),C(7,"div",3)(8,"h4"),R(9),D(),C(10,"p"),R(11),D()()()()),n&2&&(_(9),ge(r.newProject.name),_(2),ge(r.newProject.task))},styles:[".new-project-section[_ngcontent-%COMP%]{break-inside:avoid}.new-project-section[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin-bottom:3mm}.new-project-section[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{text-align:center;color:#404040}.new-project-card[_ngcontent-%COMP%]{display:flex;align-items:flex-start;gap:1rem;padding:.75rem 1rem;border-radius:12px;background:linear-gradient(135deg,#f3e8ff,#e9d5ff,#ddd6fe);border:2px solid #a855f7;box-shadow:0 2px 8px #a855f726}.new-project-star[_ngcontent-%COMP%]{width:50px;height:50px;flex-shrink:0;object-fit:contain}.new-project-content[_ngcontent-%COMP%]{flex:1;min-width:0}.new-project-content[_ngcontent-%COMP%] h4[_ngcontent-%COMP%]{margin:0 0 .35rem;font-size:13pt;color:#6b21a8;font-family:PoppinsSemiBold}.new-project-content[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0;font-size:11pt;text-align:left;color:#581c87}"]})};function gV(e,t){if(e&1&&(C(0,"a",1)(1,"div",3)(2,"div",4),Z(3,"img",5),C(4,"p"),R(5,"Quiz"),D()()()()),e&2){let n=te();se("href",n.testYourselfData,et)}}function yV(e,t){if(e&1&&(C(0,"p",2),R(1),D()),e&2){let n=te();_(),ge(n.testYourselfData)}}var xu=class e{testYourselfData;get isUrl(){if(!this.testYourselfData)return!1;try{return new URL(this.testYourselfData),!0}catch{return!1}}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=pe({type:e,selectors:[["app-test-yourself"]],inputs:{testYourselfData:"testYourselfData"},standalone:!0,features:[he],decls:7,vars:1,consts:[[1,"test-yourself-section"],["target","_blank",3,"href"],[1,"test-yourself-text"],[1,"button-container"],[1,"test-yourself-button"],["src","click.svg",1,"click-icon"]],template:function(n,r){n&1&&(C(0,"section",0)(1,"h3"),R(2,"Test Yourself"),D(),C(3,"p"),R(4,"\u{1F4A1} Time to jump into the quiz, click below"),D(),Te(5,gV,6,1,"a",1)(6,yV,2,1,"p",2),D()),n&2&&(_(5),fe(r.isUrl?5:6))},styles:[".test-yourself-section[_ngcontent-%COMP%]{break-inside:avoid}.test-yourself-section[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{text-align:center;margin-bottom:0;color:#404040}.button-container[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center}.test-yourself-button[_ngcontent-%COMP%]{margin-top:6mm;display:flex;background-color:#dc5a2b;border:1mm solid rgb(212,76,27);border-radius:10mm;padding:4mm 15mm;max-width:50%;cursor:pointer;font-family:PoppinsSemiBold;font-size:13pt;gap:5mm;box-shadow:0 4px 6px #0000001a,0 1px 3px #00000014;justify-content:center;align-items:center;text-decoration:none!important}.test-yourself-button[_ngcontent-%COMP%] .click-icon[_ngcontent-%COMP%]{width:10mm}.test-yourself-button[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0;color:#fff}.test-yourself-text[_ngcontent-%COMP%]{margin:.5rem 0 0;font-size:.95rem;line-height:1.4;white-space:pre-wrap;color:#333}"]})};var wu=class e{tryItOutData;static \u0275fac=function(n){return new(n||e)};static \u0275cmp=pe({type:e,selectors:[["app-try-it-out"]],inputs:{tryItOutData:"tryItOutData"},standalone:!0,features:[he],decls:15,vars:0,consts:[[1,"try-it-out-section"],[1,"try-it-out-container"],[1,"info-buttons-container"],[1,"info-button","save-code"],["src","save.png","width","30px"],[1,"info-button","run-code"],["src","play.png","width","30px"]],template:function(n,r){n&1&&(C(0,"section",0)(1,"h3"),R(2,"Try It Out!"),D(),C(3,"div",1)(4,"p"),R(5,"\u{1F4A1} Always test your code, see how it works!"),D(),C(6,"div",2)(7,"div",3),Z(8,"img",4),C(9,"span"),R(10,"Save your code"),D()(),C(11,"div",5),Z(12,"img",6),C(13,"span"),R(14,"Run your code"),D()()()()())},styles:[".try-it-out-section[_ngcontent-%COMP%]{break-inside:avoid}.try-it-out-section[_ngcontent-%COMP%] .try-it-out-container[_ngcontent-%COMP%]{border-radius:var(--section-card-border-radius);background-color:var(--section-card-color);margin-top:3mm;padding-top:1mm;box-shadow:0 4px 6px #0000001a,0 1px 3px #00000014}.try-it-out-section[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{text-align:center;color:#404040;margin-bottom:0}.info-buttons-container[_ngcontent-%COMP%]{display:flex;gap:2rem;justify-content:center}.info-button[_ngcontent-%COMP%]{margin:1rem;display:flex;gap:1rem;align-items:center;max-width:fit-content;padding:.3rem 1rem;border-radius:1rem}.info-button.run-code[_ngcontent-%COMP%]{background-color:#3dc285;border:1mm solid #30885f}.info-button.save-code[_ngcontent-%COMP%]{background-color:#407093;border:1mm solid #2d4658}"]})};function vV(e,t){if(e&1&&(C(0,"div",1)(1,"div",2)(2,"span",3),R(3),D(),C(4,"a",4),R(5,"Open code"),D()(),C(6,"p",5),R(7),D()()),e&2){let n=t.$implicit,r=t.$index;_(3),nr("Bug ",r+1,""),_(),se("href",n.linkToCode,et),_(3),ge(n.issue)}}var Cu=class e{debugSteps;static \u0275fac=function(n){return new(n||e)};static \u0275cmp=pe({type:e,selectors:[["app-debug-section"]],inputs:{debugSteps:"debugSteps"},standalone:!0,features:[he],decls:5,vars:0,consts:[[1,"debug-section"],[1,"debug-item"],[1,"debug-meta"],[1,"debug-label"],["target","_blank","rel","noopener",3,"href"],[1,"debug-issue"]],template:function(n,r){n&1&&(C(0,"section",0)(1,"h3"),R(2,"Debug"),D(),ut(3,vV,8,3,"div",1,lt),D()),n&2&&(_(3),ct(r.debugSteps))},styles:[".debug-section[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.75rem}.debug-item[_ngcontent-%COMP%]{padding:.75rem 1rem;border-radius:10px;background-color:#f8f9fa}.debug-meta[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;gap:.75rem;font-size:.85rem;color:#444}.debug-label[_ngcontent-%COMP%]{font-weight:600}.debug-meta[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:#dd5a2b;font-weight:600;text-decoration:none;border-bottom:1px solid rgba(221,90,43,.6)}.debug-issue[_ngcontent-%COMP%]{margin:.5rem 0 0;font-size:.9rem;line-height:1.4;white-space:pre-wrap;color:#333}"]})};var Eu=class e{funFact;static \u0275fac=function(n){return new(n||e)};static \u0275cmp=pe({type:e,selectors:[["app-fun-fact"]],inputs:{funFact:"funFact"},standalone:!0,features:[he],decls:14,vars:1,consts:[[1,"fun-fact-section"],[1,"fun-fact-card"],[1,"fun-fact-icon"],[1,"lightbulb"],[1,"fun-fact-content"],[1,"fun-fact-label"],[1,"fun-fact-text"],[1,"sparkle","sparkle-1"],[1,"sparkle","sparkle-2"]],template:function(n,r){n&1&&(C(0,"section",0)(1,"div",1)(2,"div",2)(3,"span",3),R(4,"\u{1F4A1}"),D()(),C(5,"div",4)(6,"p",5),R(7,"Did You Know?"),D(),C(8,"p",6),R(9),D()(),C(10,"span",7),R(11,"\u2726"),D(),C(12,"span",8),R(13,"\u2726"),D()()()),n&2&&(_(9),ge(r.funFact))},styles:[".fun-fact-section[_ngcontent-%COMP%]{break-inside:avoid;margin-top:8mm}.fun-fact-card[_ngcontent-%COMP%]{position:relative;display:flex;align-items:flex-start;gap:4mm;padding:4mm 5mm;border-radius:var(--section-card-border-radius);background:linear-gradient(135deg,#fff9e6,#fff3cc);border-left:4mm solid #f5a623;box-shadow:0 4px 6px #0000001a,0 1px 3px #00000014}.fun-fact-icon[_ngcontent-%COMP%]{flex-shrink:0;width:12mm;height:12mm;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#f5a623,#e09100);border-radius:50%;box-shadow:0 2px 4px #f5a62366}.fun-fact-icon[_ngcontent-%COMP%] .lightbulb[_ngcontent-%COMP%]{font-size:16pt;filter:brightness(0) invert(1)}.fun-fact-content[_ngcontent-%COMP%]{flex:1;min-width:0}.fun-fact-content[_ngcontent-%COMP%] .fun-fact-label[_ngcontent-%COMP%]{margin:0 0 1mm;font-family:PoppinsSemiBold;font-size:11pt;color:#b87a00;text-transform:uppercase;letter-spacing:.5px}.fun-fact-content[_ngcontent-%COMP%] .fun-fact-text[_ngcontent-%COMP%]{margin:0;font-size:11pt;line-height:1.5;color:#4a4a4a;white-space:pre-wrap}.sparkle[_ngcontent-%COMP%]{position:absolute;font-size:8pt;opacity:.6}.sparkle.sparkle-1[_ngcontent-%COMP%]{top:2mm;right:4mm;color:#f5a623}.sparkle.sparkle-2[_ngcontent-%COMP%]{bottom:3mm;right:12mm;color:#e09100;font-size:6pt}"]})};var bV=["sourceContent"],SV=["previewContainer"];function xV(e,t){if(e&1&&(C(0,"section",10)(1,"p",18),R(2," Project this week: "),C(3,"span",19),R(4),D()(),C(5,"p"),R(6),D()()),e&2){let n=te(2);_(4),ge(n.data.project),_(2),ge(n.data.projectExplainer)}}function wV(e,t){if(e&1&&Z(0,"img",20),e&2){let n=t.$implicit;se("src",n.base64,et)}}function CV(e,t){if(e&1&&(C(0,"div",11),ut(1,wV,1,1,"img",20,lt),D()),e&2){let n=te(2);_(),ct(n.data.prefaceImageSlots)}}function EV(e,t){if(e&1&&Z(0,"img",13),e&2){let n=te(2);se("src",n.languageBadgeSrc,et)}}function DV(e,t){if(e&1&&Z(0,"img",14),e&2){let n=te(2);se("src",n.languageBadgeSrc,et)}}function TV(e,t){if(e&1&&Z(0,"app-debug-section",17),e&2){let n=te(2);se("debugSteps",n.data.debugSection)}}function _V(e,t){if(e&1&&Z(0,"app-challenge-section",23),e&2){let n=te(3);se("challenges",n.data.challengeSection)("programmingLanguage",n.data.programmingLanguage)}}function IV(e,t){if(e&1&&Z(0,"app-new-project-section",24),e&2){let n=te(3);se("newProject",n.data.newProject)}}function kV(e,t){if(e&1&&Z(0,"app-test-yourself",25),e&2){let n=te(3);se("testYourselfData",n.data.testYourself)}}function AV(e,t){if(e&1&&Z(0,"app-fun-fact",26),e&2){let n=te(3);se("funFact",n.data.funFact)}}function MV(e,t){if(e&1&&(Z(0,"app-add-your-code",21)(1,"app-try-it-out",22),Te(2,_V,1,2,"app-challenge-section",23)(3,IV,1,1,"app-new-project-section",24)(4,kV,1,1,"app-test-yourself",25)(5,AV,1,1,"app-fun-fact",26)),e&2){let n=te(2);se("data",n.data.addYourCodeSection)("programmingLanguage",n.data.programmingLanguage),_(),se("tryItOutData",n.data.tryItOutSection),_(),fe(n.data.challengeSection?2:-1),_(),fe(n.data.newProject?3:-1),_(),fe(n.data.testYourself?4:-1),_(),fe(n.data.funFact?5:-1)}}function OV(e,t){if(e&1&&(C(0,"div",2,1)(2,"header",4)(3,"span",5),Z(4,"img",6),D()(),C(5,"main")(6,"div",7),Z(7,"app-title-section",8),C(8,"div",9),Te(9,xV,7,2,"section",10)(10,CV,3,0,"div",11),D(),C(11,"div",12),Te(12,EV,1,1,"img",13)(13,DV,1,1,"img",14),C(14,"div",15)(15,"p"),R(16),D(),C(17,"p"),R(18),D()()()(),Z(19,"app-get-ready-section",16),Te(20,TV,1,1,"app-debug-section",17)(21,MV,6,7),D()()),e&2){let n=te();_(7),se("topic",n.data.topic)("project",n.data.project)("description",n.data.description),_(2),fe(n.data.lessonType!=="debugging lesson"&&n.data.projectExplainer.trim()?9:-1),_(),fe(n.data.prefaceImageSlots?10:-1),_(2),fe(n.data.programmingLanguage==="scratch"||n.data.programmingLanguage==="pygame"?12:13),_(4),nr("Language: ",n.languageMap[n.data.programmingLanguage],""),_(2),nr("Level: ",n.data.level,""),_(),se("getReadySectionData",n.data.getReadySection),_(),fe(n.data.lessonType==="debugging lesson"?20:21)}}var ZI=new Set(["javascript or html or css","javascript","html","css"]),NV=new Set(["scratch","small-basic","python","java","c","pygame","ruby","lua"]),Du=class e{data=null;sourceContent;previewContainer;viewReady=!1;languageMap={"javascript or html or css":"JavaScript","small-basic":"Small Basic",python:"Python",c:"C",java:"Java",scratch:"Scratch",pygame:"Pygame",ruby:"Ruby",lua:"Lua"};get languageBadgeSrc(){let t=this.data?.programmingLanguage;if(!t)return null;let n=t.toLowerCase().trim();return n==="none"?null:ZI.has(n)?"langs/javascript.png":NV.has(n)?`langs/${n}.png`:null}get languageBadgeAlt(){let t=this.data?.programmingLanguage;if(!t)return"";let n=t.toLowerCase().trim();return n==="none"?"":ZI.has(n)?"JavaScript":t}ngAfterViewInit(){this.viewReady=!0,this.data&&this.render()}ngOnChanges(t){t.data&&this.data&&this.viewReady&&setTimeout(()=>this.render(),100)}render(){return le(this,null,function*(){if(!this.sourceContent||!this.previewContainer)return;let t=window.RENDER_TOKEN;this.previewContainer.nativeElement.innerHTML="";let n=`
837
+ `;function lu(n){return le(this,arguments,function*(e,t={}){return new Promise(function(r,i){let o=new XMLHttpRequest;o.open(t.method||"get",e,!0);for(let s in t.headers)o.setRequestHeader(s,t.headers[s]);o.withCredentials=t.credentials==="include",o.onload=()=>{let s=o.status===0&&e.startsWith("file://")?200:o.status;r(new Response(o.responseText,{status:s}))},o.onerror=i,o.send(t.body||null)})})}var Oh=class{constructor(t){this.sheets=[],this.inserted=[],this.hooks={},this.hooks.onUrl=new N(this),this.hooks.onAtPage=new N(this),this.hooks.onAtMedia=new N(this),this.hooks.onRule=new N(this),this.hooks.onDeclaration=new N(this),this.hooks.onContent=new N(this),this.hooks.onSelector=new N(this),this.hooks.onPseudoSelector=new N(this),this.hooks.onImport=new N(this),this.hooks.beforeTreeParse=new N(this),this.hooks.beforeTreeWalk=new N(this),this.hooks.afterTreeWalk=new N(this),t!==!1&&this.setup()}setup(){return this.base=this.insert(GT),this.styleEl=document.createElement("style"),document.head.appendChild(this.styleEl),this.styleSheet=this.styleEl.sheet,this.styleSheet}add(){return le(this,arguments,function*(){let t=[],n=[];for(var r=0;r<arguments.length;r++){let i;if(typeof arguments[r]=="object")for(let o in arguments[r]){let s=arguments[r];i=new Promise(function(a,l){n.push(o),a(s[o])})}else n.push(arguments[r]),i=lu(arguments[r]).then(o=>o.text());t.push(i)}return yield Promise.all(t).then(i=>le(this,null,function*(){let o="";for(let s=0;s<i.length;s++)o=yield this.convertViaSheet(i[s],n[s]),this.insert(o);return o}))})}convertViaSheet(t,n){return le(this,null,function*(){let r=new $T(n,this.hooks);yield r.parse(t);for(let i of r.imported){let o=yield lu(i).then(a=>a.text()),s=yield this.convertViaSheet(o,i);this.insert(s)}return this.sheets.push(r),typeof r.width<"u"&&(this.width=r.width),typeof r.height<"u"&&(this.height=r.height),typeof r.orientation<"u"&&(this.orientation=r.orientation),r.toString()})}insert(t){let n=document.querySelector("head"),r=document.createElement("style");return r.setAttribute("data-pagedjs-inserted-styles","true"),r.appendChild(document.createTextNode(t)),n.appendChild(r),this.inserted.push(r),r}destroy(){this.styleEl.remove(),this.inserted.forEach(t=>{t.remove()}),this.sheets=[]}},Nh=Oh;var YI=ye(On(),1);var YT=ye(On(),1),uu=class{constructor(t,n,r){let i=Object.assign({},t&&t.hooks,n&&n.hooks,r&&r.hooks);this.chunker=t,this.polisher=n,this.caller=r;for(let o in i)o in this&&i[o].register(this[o].bind(this))}};(0,YT.default)(uu.prototype);var Q=uu;var M=ye($e(),1);var Rh={A0:{width:{value:841,unit:"mm"},height:{value:1189,unit:"mm"}},A1:{width:{value:594,unit:"mm"},height:{value:841,unit:"mm"}},A2:{width:{value:420,unit:"mm"},height:{value:594,unit:"mm"}},A3:{width:{value:297,unit:"mm"},height:{value:420,unit:"mm"}},A4:{width:{value:210,unit:"mm"},height:{value:297,unit:"mm"}},A5:{width:{value:148,unit:"mm"},height:{value:210,unit:"mm"}},A6:{width:{value:105,unit:"mm"},height:{value:148,unit:"mm"}},A7:{width:{value:74,unit:"mm"},height:{value:105,unit:"mm"}},A8:{width:{value:52,unit:"mm"},height:{value:74,unit:"mm"}},A9:{width:{value:37,unit:"mm"},height:{value:52,unit:"mm"}},A10:{width:{value:26,unit:"mm"},height:{value:37,unit:"mm"}},B4:{width:{value:250,unit:"mm"},height:{value:353,unit:"mm"}},B5:{width:{value:176,unit:"mm"},height:{value:250,unit:"mm"}},letter:{width:{value:8.5,unit:"in"},height:{value:11,unit:"in"}},legal:{width:{value:8.5,unit:"in"},height:{value:14,unit:"in"}},ledger:{width:{value:11,unit:"in"},height:{value:17,unit:"in"}}};var Ph=class extends Q{constructor(t,n,r){super(t,n,r),this.pages={},this.width=void 0,this.height=void 0,this.orientation=void 0,this.marginalia={}}pageModel(t){return{selector:t,name:void 0,psuedo:void 0,nth:void 0,marginalia:{},width:void 0,height:void 0,orientation:void 0,margin:{top:{},right:{},left:{},bottom:{}},padding:{top:{},right:{},left:{},bottom:{}},border:{top:{},right:{},left:{},bottom:{}},backgroundOrigin:void 0,block:{},marks:void 0,notes:void 0,added:!1}}onAtPage(t,n,r){let i,o,s="",a,l,u,c=!1;t.prelude?(a=this.getTypeSelector(t),l=this.getPsuedoSelector(t),u=this.getNthSelector(t),s=M.default.generate(t.prelude)):s="*",s in this.pages?(i=this.pages[s],o=this.replaceMarginalia(t),c=!0,i.added=!1):(i=this.pageModel(s),o=this.replaceMarginalia(t),this.pages[s]=i),i.name=a,i.psuedo=l,i.nth=u,c?i.marginalia=Object.assign(i.marginalia,o):i.marginalia=o;let p=this.replaceNotes(t);i.notes=p;let d=this.replaceDeclarations(t);if(d.size&&(i.size=d.size,i.width=d.size.width,i.height=d.size.height,i.orientation=d.size.orientation,i.format=d.size.format),d.bleed&&d.bleed[0]!="auto")switch(d.bleed.length){case 4:i.bleed={top:d.bleed[0],right:d.bleed[1],bottom:d.bleed[2],left:d.bleed[3]};break;case 3:i.bleed={top:d.bleed[0],right:d.bleed[1],bottom:d.bleed[2],left:d.bleed[1]};break;case 2:i.bleed={top:d.bleed[0],right:d.bleed[1],bottom:d.bleed[0],left:d.bleed[1]};break;default:i.bleed={top:d.bleed[0],right:d.bleed[0],bottom:d.bleed[0],left:d.bleed[0]}}d.marks&&((!d.bleed||d.bleed&&d.bleed[0]==="auto")&&(i.bleed={top:{value:6,unit:"mm"},right:{value:6,unit:"mm"},bottom:{value:6,unit:"mm"},left:{value:6,unit:"mm"}}),i.marks=d.marks),d.margin&&(i.margin=d.margin),d.padding&&(i.padding=d.padding),d.border&&(i.border=d.border),d.marks&&(i.marks=d.marks),c?i.block.children.appendList(t.block.children):i.block=t.block,r.remove(n)}afterTreeWalk(t,n){let r="*"in this.pages&&this.pages["*"].added===!1;if(this.addPageClasses(this.pages,t,n),r){let i=this.pages["*"].width,o=this.pages["*"].height,s=this.pages["*"].format,a=this.pages["*"].orientation,l=this.pages["*"].bleed,u=this.pages["*"].marks,c,p;":left"in this.pages&&(c=this.pages[":left"].bleed),":right"in this.pages&&(p=this.pages[":right"].bleed),i&&o&&(this.width!==i||this.height!==o)&&(this.width=i,this.height=o,this.format=s,this.orientation=a,this.addRootVars(t,i,o,a,l,p,c,u),this.addRootPage(t,this.pages["*"].size,l,p,c),this.emit("size",{width:i,height:o,orientation:a,format:s,bleed:l}),this.emit("atpages",this.pages))}}getTypeSelector(t){let n;return M.default.walk(t,{visit:"TypeSelector",enter:(r,i,o)=>{n=r.name}}),n}getPsuedoSelector(t){let n;return M.default.walk(t,{visit:"PseudoClassSelector",enter:(r,i,o)=>{r.name!=="nth"&&(n=r.name)}}),n}getNthSelector(t){let n;return M.default.walk(t,{visit:"PseudoClassSelector",enter:(r,i,o)=>{r.name==="nth"&&r.children&&(n=r.children.first().value)}}),n}replaceMarginalia(t){let n={},r=["top-left-corner","top-left","top","top-center","top-right","top-right-corner","bottom-left-corner","bottom-left","bottom","bottom-center","bottom-right","bottom-right-corner","left-top","left-middle","left","left-bottom","top-right-corner","right-top","right-middle","right","right-bottom","right-right-corner"];return M.default.walk(t.block,{visit:"Atrule",enter:(i,o,s)=>{let a=i.name;r.includes(a)&&(a==="top"&&(a="top-center"),a==="right"&&(a="right-middle"),a==="left"&&(a="left-middle"),a==="bottom"&&(a="bottom-center"),n[a]=i.block,s.remove(o))}}),n}replaceNotes(t){let n={};return M.default.walk(t.block,{visit:"Atrule",enter:(r,i,o)=>{let s=r.name;s==="footnote"&&(n[s]=r.block,o.remove(i))}}),n}replaceDeclarations(t){let n={};return M.default.walk(t.block,{visit:"Declaration",enter:(r,i,o)=>{let s=M.default.property(r.property).name;if(s==="marks")n.marks=[],M.default.walk(r,{visit:"Identifier",enter:a=>{n.marks.push(a.name)}}),o.remove(i);else if(s==="margin")n.margin=this.getMargins(r),o.remove(i);else if(s.indexOf("margin-")===0){let a=s.substring(7);n.margin||(n.margin={top:{},right:{},left:{},bottom:{}}),n.margin[a]=r.value.children.first(),o.remove(i)}else if(s==="padding")n.padding=this.getPaddings(r.value),o.remove(i);else if(s.indexOf("padding-")===0){let a=s.substring(8);n.padding||(n.padding={top:{},right:{},left:{},bottom:{}}),n.padding[a]=r.value.children.first(),o.remove(i)}else if(s==="border")n.border||(n.border={top:{},right:{},left:{},bottom:{}}),n.border.top=M.default.generate(r.value),n.border.right=M.default.generate(r.value),n.border.left=M.default.generate(r.value),n.border.bottom=M.default.generate(r.value),o.remove(i);else if(s.indexOf("border-")===0){n.border||(n.border={top:{},right:{},left:{},bottom:{}});let a=s.substring(7);n.border[a]=M.default.generate(r.value),o.remove(i)}else s==="size"?(n.size=this.getSize(r),o.remove(i)):s==="bleed"&&(n.bleed=[],M.default.walk(r,{enter:a=>{switch(a.type){case"String":a.value.indexOf("auto")>-1&&n.bleed.push("auto");break;case"Dimension":n.bleed.push({value:a.value,unit:a.unit});break;case"Number":n.bleed.push({value:a.value,unit:"px"});break;default:}}}),o.remove(i))}}),n}getSize(t){let n,r,i,o;return M.default.walk(t,{visit:"Dimension",enter:(s,a,l)=>{let{value:u,unit:c}=s;typeof n>"u"?n={value:u,unit:c}:typeof r>"u"&&(r={value:u,unit:c})}}),M.default.walk(t,{visit:"String",enter:(s,a,l)=>{let u=s.value.replace(/["|']/g,""),c=Rh[u];c&&(n=c.width,r=c.height)}}),M.default.walk(t,{visit:"Identifier",enter:(s,a,l)=>{let u=s.name;if(u==="landscape"||u==="portrait")i=s.name;else if(u!=="auto"){let c=Rh[u];c&&(n=c.width,r=c.height),o=u}}}),{width:n,height:r,orientation:i,format:o}}getMargins(t){let n=[],r={top:{},right:{},left:{},bottom:{}};if(M.default.walk(t,{enter:i=>{switch(i.type){case"Dimension":n.push(i);break;case"Number":n.push({value:i.value,unit:"px"});break;default:}}}),n.length===1)for(let i in r)r[i]=n[0];else n.length===2?(r.top=n[0],r.right=n[1],r.bottom=n[0],r.left=n[1]):n.length===3?(r.top=n[0],r.right=n[1],r.bottom=n[2],r.left=n[1]):n.length===4&&(r.top=n[0],r.right=n[1],r.bottom=n[2],r.left=n[3]);return r}getPaddings(t){let n=[],r={top:{},right:{},left:{},bottom:{}};if(M.default.walk(t,{enter:i=>{switch(i.type){case"Dimension":n.push(i);break;case"Number":n.push({value:i.value,unit:"px"});break;default:}}}),n.length===1)for(let i in r)r[i]=n[0];else n.length===2?(r.top=n[0],r.right=n[1],r.bottom=n[0],r.left=n[1]):n.length===3?(r.top=n[0],r.right=n[1],r.bottom=n[2],r.left=n[1]):n.length===4&&(r.top=n[0],r.right=n[1],r.bottom=n[2],r.left=n[3]);return r}getBorders(t){let n={top:{},right:{},left:{},bottom:{}};return t.prop=="border"?(n.top=M.default.generate(t.value),n.right=M.default.generate(t.value),n.bottom=M.default.generate(t.value),n.left=M.default.generate(t.value)):t.prop=="border-top"?n.top=M.default.generate(t.value):t.prop=="border-right"?n.right=M.default.generate(t.value):t.prop=="border-bottom"?n.bottom=M.default.generate(t.value):t.prop=="border-left"&&(n.left=M.default.generate(t.value)),n}addPageClasses(t,n,r){if("*"in t&&t["*"].added===!1){let i=this.createPage(t["*"],n.children,r);r.insertRule(i),t["*"].added=!0}if(":left"in t&&t[":left"].added===!1){let i=this.createPage(t[":left"],n.children,r);r.insertRule(i),t[":left"].added=!0}if(":right"in t&&t[":right"].added===!1){let i=this.createPage(t[":right"],n.children,r);r.insertRule(i),t[":right"].added=!0}if(":first"in t&&t[":first"].added===!1){let i=this.createPage(t[":first"],n.children,r);r.insertRule(i),t[":first"].added=!0}if(":blank"in t&&t[":blank"].added===!1){let i=this.createPage(t[":blank"],n.children,r);r.insertRule(i),t[":blank"].added=!0}for(let i in t)if(t[i].nth&&t[i].added===!1){let o=this.createPage(t[i],n.children,r);r.insertRule(o),t[i].added=!0}for(let i in t)if(t[i].name&&t[i].added===!1){let o=this.createPage(t[i],n.children,r);r.insertRule(o),t[i].added=!0}}createPage(t,n,r){let i=this.selectorsForPage(t),o=t.block.children.copy(),s={type:"Block",loc:0,children:o},a=this.createRule(i,s);return this.addMarginVars(t.margin,o,o.first()),this.addPaddingVars(t.padding,o,o.first()),this.addBorderVars(t.border,o,o.first()),t.width&&this.addDimensions(t.width,t.height,t.orientation,o,o.first()),t.marginalia&&(this.addMarginaliaStyles(t,n,a,r),this.addMarginaliaContent(t,n,a,r)),t.notes&&this.addNotesStyles(t.notes,t,n,a,r),a}addMarginVars(t,n,r){for(let i in t)if(typeof t[i].value<"u"){let o=t[i].value+(t[i].unit||""),s=n.createItem({type:"Declaration",property:"--pagedjs-margin-"+i,value:{type:"Raw",value:o}});n.append(s,r)}}addPaddingVars(t,n,r){for(let i in t)if(typeof t[i].value<"u"){let o=t[i].value+(t[i].unit||""),s=n.createItem({type:"Declaration",property:"--pagedjs-padding-"+i,value:{type:"Raw",value:o}});n.append(s,r)}}addBorderVars(t,n,r){for(let i of Object.keys(t)){let o=t[i];if(typeof o=="string"){let s=n.createItem({type:"Declaration",property:"--pagedjs-border-"+i,value:{type:"Raw",value:o}});n.append(s,r)}}}addDimensions(t,n,r,i,o){let s,a;s=k(t),a=k(n),r&&r!=="portrait"&&([s,a]=[a,s]);let l=this.createVariable("--pagedjs-pagebox-width",s);i.appendData(l);let u=this.createVariable("--pagedjs-pagebox-height",a);i.appendData(u)}addMarginaliaStyles(t,n,r,i){for(let o in t.marginalia){let s=M.default.clone(t.marginalia[o]),a=!1;if(s.children.isEmpty())continue;M.default.walk(s,{visit:"Declaration",enter:(p,d,f)=>{if(p.property==="content"&&(p.value.children&&p.value.children.first().name==="none"?a=!1:a=!0,f.remove(d)),p.property==="vertical-align"&&(M.default.walk(p,{visit:"Identifier",enter:(g,h,y)=>{let m=g.name;m==="top"?g.name="flex-start":m==="middle"?g.name="center":m==="bottom"&&(g.name="flex-end")}}),p.property="align-items"),p.property==="width"&&(o==="top-left"||o==="top-center"||o==="top-right"||o==="bottom-left"||o==="bottom-center"||o==="bottom-right")){let g=M.default.clone(p);g.property="max-width",f.appendData(g)}if(p.property==="height"&&(o==="left-top"||o==="left-middle"||o==="left-bottom"||o==="right-top"||o==="right-middle"||o==="right-bottom")){let g=M.default.clone(p);g.property="max-height",f.appendData(g)}}});let l=this.selectorsForPageMargin(t,o),u=this.createRule(l,s);n.appendData(u);let c=M.default.generate({type:"Selector",children:l});this.marginalia[c]={page:t,selector:c,block:t.marginalia[o],hasContent:a}}}addMarginaliaContent(t,n,r,i){let o;for(let s in t.marginalia){let a=M.default.clone(t.marginalia[s]);if(M.default.walk(a,{visit:"Declaration",enter:(f,g,h)=>{f.property!=="content"&&h.remove(g),f.value.children&&f.value.children.first().name==="none"&&(o=!0)}}),a.children.isEmpty())continue;let l=this.selectorsForPageMargin(t,s),u;l.insertData({type:"Combinator",name:">"}),l.insertData({type:"ClassSelector",name:"pagedjs_margin-content"}),l.insertData({type:"Combinator",name:">"}),l.insertData({type:"TypeSelector",name:"*"}),o?u=this.createDeclaration("display","none"):u=this.createDeclaration("display","block");let c=this.createRule(l,[u]);i.insertRule(c);let p=this.selectorsForPageMargin(t,s);p.insertData({type:"Combinator",name:">"}),p.insertData({type:"ClassSelector",name:"pagedjs_margin-content"}),p.insertData({type:"PseudoElementSelector",name:"after",children:null});let d=this.createRule(p,a);i.insertRule(d)}}addRootVars(t,n,r,i,o,s,a,l){let u=[],c=new M.default.List;c.insertData({type:"PseudoClassSelector",name:"root",children:null});let p,d,f,g,h,y;if(!o)p=k(n),d=k(r),f=k(n),g=k(r),h=k(n),y=k(r);else{p=`calc( ${k(n)} + ${k(o.left)} + ${k(o.right)} )`,d=`calc( ${k(r)} + ${k(o.top)} + ${k(o.bottom)} )`,f=`calc( ${k(n)} + ${k(o.left)} + ${k(o.right)} )`,g=`calc( ${k(r)} + ${k(o.top)} + ${k(o.bottom)} )`,h=`calc( ${k(n)} + ${k(o.left)} + ${k(o.right)} )`,y=`calc( ${k(r)} + ${k(o.top)} + ${k(o.bottom)} )`;let q=this.createVariable("--pagedjs-bleed-top",k(o.top)),oe=this.createVariable("--pagedjs-bleed-right",k(o.right)),Me=this.createVariable("--pagedjs-bleed-bottom",k(o.bottom)),Ie=this.createVariable("--pagedjs-bleed-left",k(o.left)),we=this.createVariable("--pagedjs-bleed-right-top",k(o.top)),Be=this.createVariable("--pagedjs-bleed-right-right",k(o.right)),Oe=this.createVariable("--pagedjs-bleed-right-bottom",k(o.bottom)),J=this.createVariable("--pagedjs-bleed-right-left",k(o.left)),ve=this.createVariable("--pagedjs-bleed-left-top",k(o.top)),Tt=this.createVariable("--pagedjs-bleed-left-right",k(o.right)),Bn=this.createVariable("--pagedjs-bleed-left-bottom",k(o.bottom)),Ke=this.createVariable("--pagedjs-bleed-left-left",k(o.left));s&&(we=this.createVariable("--pagedjs-bleed-right-top",k(s.top)),Be=this.createVariable("--pagedjs-bleed-right-right",k(s.right)),Oe=this.createVariable("--pagedjs-bleed-right-bottom",k(s.bottom)),J=this.createVariable("--pagedjs-bleed-right-left",k(s.left)),f=`calc( ${k(n)} + ${k(s.left)} + ${k(s.right)} )`,g=`calc( ${k(r)} + ${k(s.top)} + ${k(s.bottom)} )`),a&&(ve=this.createVariable("--pagedjs-bleed-left-top",k(a.top)),Tt=this.createVariable("--pagedjs-bleed-left-right",k(a.right)),Bn=this.createVariable("--pagedjs-bleed-left-bottom",k(a.bottom)),Ke=this.createVariable("--pagedjs-bleed-left-left",k(a.left)),h=`calc( ${k(n)} + ${k(a.left)} + ${k(a.right)} )`,y=`calc( ${k(r)} + ${k(a.top)} + ${k(a.bottom)} )`);let Iu=this.createVariable("--pagedjs-width",k(n)),Bt=this.createVariable("--pagedjs-height",k(r));u.push(q,oe,Me,Ie,we,Be,Oe,J,ve,Tt,Bn,Ke,Iu,Bt)}if(l&&l.forEach(q=>{let oe=this.createVariable("--pagedjs-mark-"+q+"-display","block");u.push(oe)}),i){let q=this.createVariable("--pagedjs-orientation",i);u.push(q),i!=="portrait"&&([p,d]=[d,p],[f,g]=[g,f],[h,y]=[y,h])}let m=this.createVariable("--pagedjs-width",p),v=this.createVariable("--pagedjs-height",d),S=this.createVariable("--pagedjs-width-right",f),x=this.createVariable("--pagedjs-height-right",g),E=this.createVariable("--pagedjs-width-left",h),w=this.createVariable("--pagedjs-height-left",y);u.push(m,v,S,x,E,w);let W=this.createRule(c,u);t.children.appendData(W)}addNotesStyles(t,n,r,i,o){for(let s in t){let a=this.selectorsForPage(n);a.insertData({type:"Combinator",name:" "}),a.insertData({type:"ClassSelector",name:"pagedjs_"+s+"_content"});let l=this.createRule(a,t[s]);r.appendData(l)}}addRootPage(t,n,r,i,o){let{width:s,height:a,orientation:l,format:u}=n,c=new M.default.List,p=new M.default.List,d=new M.default.List,f=new M.default.List,g=new M.default.List,h=new M.default.List;if(r){let m=new M.default.List,v=new M.default.List;m.appendData({type:"Dimension",unit:s.unit,value:s.value}),m.appendData({type:"WhiteSpace",value:" "}),m.appendData({type:"Operator",value:"+"}),m.appendData({type:"WhiteSpace",value:" "}),m.appendData({type:"Dimension",unit:r.left.unit,value:r.left.value}),m.appendData({type:"WhiteSpace",value:" "}),m.appendData({type:"Operator",value:"+"}),m.appendData({type:"WhiteSpace",value:" "}),m.appendData({type:"Dimension",unit:r.right.unit,value:r.right.value}),v.appendData({type:"Dimension",unit:a.unit,value:a.value}),v.appendData({type:"WhiteSpace",value:" "}),v.appendData({type:"Operator",value:"+"}),v.appendData({type:"WhiteSpace",value:" "}),v.appendData({type:"Dimension",unit:r.top.unit,value:r.top.value}),v.appendData({type:"WhiteSpace",value:" "}),v.appendData({type:"Operator",value:"+"}),v.appendData({type:"WhiteSpace",value:" "}),v.appendData({type:"Dimension",unit:r.bottom.unit,value:r.bottom.value}),f.appendData({type:"Function",name:"calc",children:m}),f.appendData({type:"WhiteSpace",value:" "}),f.appendData({type:"Function",name:"calc",children:v})}else u?(f.appendData({type:"Identifier",name:u}),l&&(f.appendData({type:"WhiteSpace",value:" "}),f.appendData({type:"Identifier",name:l}))):(f.appendData({type:"Dimension",unit:s.unit,value:s.value}),f.appendData({type:"WhiteSpace",value:" "}),f.appendData({type:"Dimension",unit:a.unit,value:a.value}));c.appendData({type:"Declaration",property:"size",loc:null,value:{type:"Value",children:f}}),c.appendData({type:"Declaration",property:"margin",loc:null,value:{type:"Value",children:[{type:"Dimension",unit:"px",value:0}]}}),c.appendData({type:"Declaration",property:"padding",loc:null,value:{type:"Value",children:[{type:"Dimension",unit:"px",value:0}]}}),c.appendData({type:"Declaration",property:"padding",loc:null,value:{type:"Value",children:[{type:"Dimension",unit:"px",value:0}]}});let y=t.children.createItem({type:"Atrule",prelude:null,name:"page",block:{type:"Block",loc:null,children:c}});if(t.children.append(y),o){let m=new M.default.List,v=new M.default.List;m.appendData({type:"Dimension",unit:s.unit,value:s.value}),m.appendData({type:"WhiteSpace",value:" "}),m.appendData({type:"Operator",value:"+"}),m.appendData({type:"WhiteSpace",value:" "}),m.appendData({type:"Dimension",unit:o.left.unit,value:o.left.value}),m.appendData({type:"WhiteSpace",value:" "}),m.appendData({type:"Operator",value:"+"}),m.appendData({type:"WhiteSpace",value:" "}),m.appendData({type:"Dimension",unit:o.right.unit,value:o.right.value}),v.appendData({type:"Dimension",unit:a.unit,value:a.value}),v.appendData({type:"WhiteSpace",value:" "}),v.appendData({type:"Operator",value:"+"}),v.appendData({type:"WhiteSpace",value:" "}),v.appendData({type:"Dimension",unit:o.top.unit,value:o.top.value}),v.appendData({type:"WhiteSpace",value:" "}),v.appendData({type:"Operator",value:"+"}),v.appendData({type:"WhiteSpace",value:" "}),v.appendData({type:"Dimension",unit:o.bottom.unit,value:o.bottom.value}),g.appendData({type:"Function",name:"calc",children:m}),g.appendData({type:"WhiteSpace",value:" "}),g.appendData({type:"Function",name:"calc",children:v}),p.appendData({type:"Declaration",property:"size",loc:null,value:{type:"Value",children:g}});let S=t.children.createItem({type:"Atrule",prelude:null,name:"page :left",block:{type:"Block",loc:null,children:p}});t.children.append(S)}if(i){let m=new M.default.List,v=new M.default.List;m.appendData({type:"Dimension",unit:s.unit,value:s.value}),m.appendData({type:"WhiteSpace",value:" "}),m.appendData({type:"Operator",value:"+"}),m.appendData({type:"WhiteSpace",value:" "}),m.appendData({type:"Dimension",unit:i.left.unit,value:i.left.value}),m.appendData({type:"WhiteSpace",value:" "}),m.appendData({type:"Operator",value:"+"}),m.appendData({type:"WhiteSpace",value:" "}),m.appendData({type:"Dimension",unit:i.right.unit,value:i.right.value}),v.appendData({type:"Dimension",unit:a.unit,value:a.value}),v.appendData({type:"WhiteSpace",value:" "}),v.appendData({type:"Operator",value:"+"}),v.appendData({type:"WhiteSpace",value:" "}),v.appendData({type:"Dimension",unit:i.top.unit,value:i.top.value}),v.appendData({type:"WhiteSpace",value:" "}),v.appendData({type:"Operator",value:"+"}),v.appendData({type:"WhiteSpace",value:" "}),v.appendData({type:"Dimension",unit:i.bottom.unit,value:i.bottom.value}),h.appendData({type:"Function",name:"calc",children:m}),h.appendData({type:"WhiteSpace",value:" "}),h.appendData({type:"Function",name:"calc",children:v}),d.appendData({type:"Declaration",property:"size",loc:null,value:{type:"Value",children:h}});let S=t.children.createItem({type:"Atrule",prelude:null,name:"page :right",block:{type:"Block",loc:null,children:d}});t.children.append(S)}}getNth(t){let n=t.indexOf("n"),r=t.indexOf("+"),i=t.split("n"),o=t.split("+"),s=null,a=null;return n>-1?(s=i[0],r>-1&&(a=o[1])):a=t,{type:"Nth",loc:null,selector:null,nth:{type:"AnPlusB",loc:null,a:s,b:a}}}addPageAttributes(t,n,r){let i=[n.dataset.page];if(i&&i.length)for(let o of i)o&&(t.name=o,t.element.classList.add("pagedjs_named_page"),t.element.classList.add("pagedjs_"+o+"_page"),n.dataset.splitFrom||t.element.classList.add("pagedjs_"+o+"_first_page"))}getStartElement(t,n){let r=n&&n.node;if(!t&&!n)return;if(!r)return t.children[0];if(r.nodeType===1&&r.parentNode.nodeType===11||r.nodeType===1&&r.dataset.page)return r;let i=rl(r),o=i.querySelectorAll("[data-page]");return o.length?o[o.length-1]:i.children[0]}beforePageLayout(t,n,r,i){let o=this.getStartElement(n,r);o&&this.addPageAttributes(t,o,i.pages)}finalizePage(t,n,r,i){for(let o in this.marginalia){let s=this.marginalia[o],a=o.split(" "),l;n.element.matches(a[0])&&s.hasContent&&(l=n.element.querySelector(a[1]),l.classList.add("hasContent"))}["top","bottom"].forEach(o=>{let s=n.element.querySelector(".pagedjs_margin-"+o),a=n.element.querySelector(".pagedjs_margin-"+o+"-center"),l=n.element.querySelector(".pagedjs_margin-"+o+"-left"),u=n.element.querySelector(".pagedjs_margin-"+o+"-right"),c=a.classList.contains("hasContent"),p=l.classList.contains("hasContent"),d=u.classList.contains("hasContent"),f,g,h;if(p&&(g=window.getComputedStyle(l)["max-width"]),d&&(h=window.getComputedStyle(u)["max-width"]),c)if(f=window.getComputedStyle(a)["max-width"],f==="none"||f==="auto")if(!p&&!d)s.style["grid-template-columns"]="0 1fr 0";else if(p)if(d)if(g!=="none"&&g!=="auto")h!=="none"&&h!=="auto"?s.style["grid-template-columns"]=g+" 1fr "+h:s.style["grid-template-columns"]=g+" 1fr "+g;else if(h!=="none"&&h!=="auto")s.style["grid-template-columns"]=h+" 1fr "+h;else{s.style["grid-template-columns"]="auto auto 1fr",l.style["white-space"]="nowrap",a.style["white-space"]="nowrap",u.style["white-space"]="nowrap";let y=l.offsetWidth,m=a.offsetWidth,v=u.offsetWidth,S=y+m+v,x=m*100/S;x>40?s.style["grid-template-columns"]="minmax(16.66%, 1fr) minmax(33%, "+x+"%) minmax(16.66%, 1fr)":s.style["grid-template-columns"]="repeat(3, 1fr)",l.style["white-space"]="normal",a.style["white-space"]="normal",u.style["white-space"]="normal"}else if(g!=="none"&&g!=="auto")s.style["grid-template-columns"]=g+" 1fr "+g;else{s.style["grid-template-columns"]="auto auto 1fr",l.style["white-space"]="nowrap",a.style["white-space"]="nowrap";let y=l.offsetWidth,m=a.offsetWidth,v=y+m,S=m*100/v;s.style["grid-template-columns"]="minmax(16.66%, 1fr) minmax(33%, "+S+"%) minmax(16.66%, 1fr)",l.style["white-space"]="normal",a.style["white-space"]="normal"}else if(h!=="none"&&h!=="auto")s.style["grid-template-columns"]=h+" 1fr "+h;else{s.style["grid-template-columns"]="auto auto 1fr",u.style["white-space"]="nowrap",a.style["white-space"]="nowrap";let y=u.offsetWidth,m=a.offsetWidth,v=y+m,S=m*100/v;s.style["grid-template-columns"]="minmax(16.66%, 1fr) minmax(33%, "+S+"%) minmax(16.66%, 1fr)",u.style["white-space"]="normal",a.style["white-space"]="normal"}else f!=="none"&&f!=="auto"&&(p&&g!=="none"&&g!=="auto"?s.style["grid-template-columns"]=g+" "+f+" 1fr":d&&h!=="none"&&h!=="auto"?s.style["grid-template-columns"]="1fr "+f+" "+h:s.style["grid-template-columns"]="1fr "+f+" 1fr");else if(p)if(!d)s.style["grid-template-columns"]="1fr 0 0";else if(g!=="none"&&g!=="auto")h!=="none"&&h!=="auto"?s.style["grid-template-columns"]=g+" 1fr "+h:s.style["grid-template-columns"]=g+" 0 1fr";else if(h!=="none"&&h!=="auto")s.style["grid-template-columns"]="1fr 0 "+h;else{s.style["grid-template-columns"]="auto 1fr auto",l.style["white-space"]="nowrap",u.style["white-space"]="nowrap";let y=l.offsetWidth,m=u.offsetWidth,v=y+m,S=y*100/v;s.style["grid-template-columns"]="minmax(16.66%, "+S+"%) 0 1fr",l.style["white-space"]="normal",u.style["white-space"]="normal"}else h!=="none"&&h!=="auto"?s.style["grid-template-columns"]="1fr 0 "+h:s.style["grid-template-columns"]="0 0 1fr"}),["left","right"].forEach(o=>{let s=n.element.querySelector(".pagedjs_margin-"+o+"-middle.hasContent"),a=n.element.querySelector(".pagedjs_margin-"+o),l=n.element.querySelector(".pagedjs_margin-"+o+"-top"),u=n.element.querySelector(".pagedjs_margin-"+o+"-bottom"),c=l.classList.contains("hasContent"),p=u.classList.contains("hasContent"),d,f,g;c&&(f=window.getComputedStyle(l)["max-height"]),p&&(g=window.getComputedStyle(u)["max-height"]),s?(d=window.getComputedStyle(s)["max-height"],d==="none"||d==="auto"?!c&&!p?a.style["grid-template-rows"]="0 1fr 0":c?p?f!=="none"&&f!=="auto"?g!=="none"&&g!=="auto"?a.style["grid-template-rows"]=f+" calc(100% - "+f+" - "+g+") "+g:a.style["grid-template-rows"]=f+" calc(100% - "+f+"*2) "+f:g!=="none"&&g!=="auto"&&(a.style["grid-template-rows"]=g+" calc(100% - "+g+"*2) "+g):f!=="none"&&f!=="auto"&&(a.style["grid-template-rows"]=f+" calc(100% - "+f+"*2) "+f):g!=="none"&&g!=="auto"&&(a.style["grid-template-rows"]=g+" calc(100% - "+g+"*2) "+g):c&&f!=="none"&&f!=="auto"?a.style["grid-template-rows"]=f+" "+d+" calc(100% - ("+f+" + "+d+"))":p&&g!=="none"&&g!=="auto"?a.style["grid-template-rows"]="1fr "+d+" "+g:a.style["grid-template-rows"]="calc((100% - "+d+")/2) "+d+" calc((100% - "+d+")/2)"):c?p?f!=="none"&&f!=="auto"?g!=="none"&&g!=="auto"?a.style["grid-template-rows"]=f+" 1fr "+g:a.style["grid-template-rows"]=f+" 0 1fr":g!=="none"&&g!=="auto"?a.style["grid-template-rows"]="1fr 0 "+g:a.style["grid-template-rows"]="1fr 0 1fr":a.style["grid-template-rows"]="1fr 0 0":g!=="none"&&g!=="auto"?a.style["grid-template-rows"]="1fr 0 "+g:a.style["grid-template-rows"]="0 0 1fr"})}selectorsForPage(t){let n,r,i=new M.default.List;return i.insertData({type:"ClassSelector",name:"pagedjs_page"}),t.name&&(i.insertData({type:"ClassSelector",name:"pagedjs_named_page"}),i.insertData({type:"ClassSelector",name:"pagedjs_"+t.name+"_page"})),t.psuedo&&!(t.name&&t.psuedo==="first")&&i.insertData({type:"ClassSelector",name:"pagedjs_"+t.psuedo+"_page"}),t.name&&t.psuedo==="first"&&i.insertData({type:"ClassSelector",name:"pagedjs_"+t.name+"_"+t.psuedo+"_page"}),t.nth&&(n=new M.default.List,r=this.getNth(t.nth),n.insertData(r),i.insertData({type:"PseudoClassSelector",name:"nth-of-type",children:n})),i}selectorsForPageMargin(t,n){let r=this.selectorsForPage(t);return r.insertData({type:"Combinator",name:" "}),r.insertData({type:"ClassSelector",name:"pagedjs_margin-"+n}),r}createDeclaration(t,n,r){let i=new M.default.List;return i.insertData({type:"Identifier",loc:null,name:n}),{type:"Declaration",loc:null,important:r,property:t,value:{type:"Value",loc:null,children:i}}}createVariable(t,n){return{type:"Declaration",loc:null,property:t,value:{type:"Raw",value:n}}}createCalculatedDimension(t,n,r,i="+"){let o=new M.default.List,s=new M.default.List;return n.forEach((a,l)=>{s.appendData({type:"Dimension",unit:a.unit,value:a.value}),s.appendData({type:"WhiteSpace",value:" "}),l+1<n.length&&(s.appendData({type:"Operator",value:i}),s.appendData({type:"WhiteSpace",value:" "}))}),o.insertData({type:"Function",loc:null,name:"calc",children:s}),{type:"Declaration",loc:null,important:r,property:t,value:{type:"Value",loc:null,children:o}}}createDimension(t,n,r){let i=new M.default.List;return i.insertData({type:"Dimension",loc:null,value:n.value,unit:n.unit}),{type:"Declaration",loc:null,important:r,property:t,value:{type:"Value",loc:null,children:i}}}createBlock(t){let n=new M.default.List;return t.forEach(r=>{n.insertData(r)}),{type:"Block",loc:null,children:n}}createRule(t,n){let r=new M.default.List;return r.insertData({type:"Selector",children:t}),Array.isArray(n)&&(n=this.createBlock(n)),{type:"Rule",prelude:{type:"SelectorList",children:r},block:n}}},ZT=Ph;var Lh=ye($e(),1);var jh=class extends Q{constructor(t,n,r){super(t,n,r),this.breaks={}}onDeclaration(t,n,r,i){let o=t.property;if(o==="page"){let a=t.value.children.first().name,l=Lh.default.generate(i.ruleNode.prelude),c={property:o,value:a,selector:l,name:a};l.split(",").forEach(p=>{this.breaks[p]?this.breaks[p].push(c):this.breaks[p]=[c]}),r.remove(n)}if(o==="break-before"||o==="break-after"||o==="page-break-before"||o==="page-break-after"){let a=t.value.children.first().name,l=Lh.default.generate(i.ruleNode.prelude);o==="page-break-before"?o="break-before":o==="page-break-after"&&(o="break-after");let u={property:o,value:a,selector:l};l.split(",").forEach(c=>{this.breaks[c]?this.breaks[c].push(u):this.breaks[c]=[u]}),r.remove(n)}}afterParsed(t){this.processBreaks(t,this.breaks)}processBreaks(t,n){for(let i in n){let o=t.querySelectorAll(i);for(var r=0;r<o.length;r++)for(let s of n[i])if(s.property==="break-after"){let a=Wp(o[r],t);o[r].setAttribute("data-break-after",s.value),a&&a.setAttribute("data-previous-break-after",s.value)}else if(s.property==="break-before"){let a=tS(o[r],t);if(a){if(s.value==="page"&&ol(o[r],a))continue;o[r].setAttribute("data-break-before",s.value),a.setAttribute("data-next-break-before",s.value)}}else if(s.property==="page"){o[r].setAttribute("data-page",s.value);let a=Wp(o[r],t);a&&a.setAttribute("data-after-page",s.value)}else o[r].setAttribute("data-"+s.property,s.value)}}mergeBreaks(t,n){for(let r in n)r in t?t[r]=t[r].concat(n[r]):t[r]=n[r];return t}addBreakAttributes(t,n){let r=t.querySelector("[data-break-before]"),i=t.querySelector("[data-break-after]"),o=t.querySelector("[data-previous-break-after]");r&&(r.dataset.splitFrom?(n.splitFrom=r.dataset.splitFrom,t.setAttribute("data-split-from",r.dataset.splitFrom)):r.dataset.breakBefore&&r.dataset.breakBefore!=="avoid"&&(n.breakBefore=r.dataset.breakBefore,t.setAttribute("data-break-before",r.dataset.breakBefore))),i&&i.dataset&&(i.dataset.splitTo?(n.splitTo=i.dataset.splitTo,t.setAttribute("data-split-to",i.dataset.splitTo)):i.dataset.breakAfter&&i.dataset.breakAfter!=="avoid"&&(n.breakAfter=i.dataset.breakAfter,t.setAttribute("data-break-after",i.dataset.breakAfter))),o&&o.dataset&&o.dataset.previousBreakAfter&&o.dataset.previousBreakAfter!=="avoid"&&(n.previousBreakAfter=o.dataset.previousBreakAfter)}afterPageLayout(t,n){this.addBreakAttributes(t,n)}},QT=jh;var KT=ye($e(),1),Fh=class extends Q{constructor(t,n,r){super(t,n,r)}onAtMedia(t,n,r){let i=this.getMediaName(t),o;i.includes("print")?(o=t.block.children,r.appendList(o),r.remove(n)):!i.includes("all")&&!i.includes("pagedjs-ignore")&&r.remove(n)}getMediaName(t){let n=[];if(!(typeof t.prelude>"u"||t.prelude.type!=="AtrulePrelude"))return KT.default.walk(t.prelude,{visit:"Identifier",enter:(r,i,o)=>{n.push(r.name)}}),n}},JT=Fh;var zh=class extends Q{constructor(t,n,r){super(t,n,r)}afterPageLayout(t,n,r,i){let o=Array.from(t.querySelectorAll("[data-split-from]")),s=t.parentNode,a=Array.prototype.indexOf.call(s.children,t),l;if(a===0)return;l=s.children[a-1];let u;o.forEach(c=>{let p=c.dataset.ref;u=l.querySelector("[data-ref='"+p+"']:not([data-split-to])"),u&&(u.dataset.splitTo=p,u.dataset.splitFrom||(u.dataset.splitOriginal=!0))}),u&&this.handleAlignment(u)}handleAlignment(t){let n=window.getComputedStyle(t),r=n["text-align"],i=n["text-align-last"];t.dataset.lastSplitElement="true",r==="justify"&&i==="auto"?t.dataset.alignLastSplitElement="justify":t.dataset.alignLastSplitElement=i}},XT=zh;var cu=ye($e(),1),Bh=class extends Q{constructor(t,n,r){super(t,n,r),this.styleSheet=n.styleSheet,this.counters={},this.resetCountersMap=new Map}onDeclaration(t,n,r,i){let o=t.property;if(o==="counter-increment"){this.handleIncrement(t,i);let s=!1;t.value.children.forEach(a=>{a.type&&a.type!=="WhiteSpace"&&(s=!0)}),s||r.remove(n)}else if(o==="counter-reset"){this.handleReset(t,i);let s=!1;t.value.children.forEach(a=>{a.type&&a.type!=="WhiteSpace"&&(s=!0)}),s||r.remove(n)}}afterParsed(t){this.processCounters(t,this.counters),this.scopeCounters(this.counters)}addCounter(t){return t in this.counters?this.counters[t]:(this.counters[t]={name:t,increments:{},resets:{}},this.counters[t])}handleIncrement(t,n){let r=[],i=t.value.children;return i.forEach((o,s)=>{if(o.type&&o.type==="Identifier"){let a=o.name;if(a==="page"||a.indexOf("target-counter-")===0)return;let l,u,c;s.next&&s.next.data.type==="WhiteSpace"&&(l=s.next),l&&l.next&&l.next.data.type==="Number"&&(u=l.next,c=parseInt(u.data.value));let p=cu.default.generate(n.ruleNode.prelude),d;a in this.counters?d=this.counters[a]:d=this.addCounter(a);let f={selector:p,number:c||1};d.increments[p]=f,r.push(f),i.remove(s),l&&i.remove(l),u&&i.remove(u)}}),r}handleReset(t,n){let r=t.value.children;r.forEach((i,o)=>{if(i.type&&i.type==="Identifier"){let s=i.name,a,l,u;o.next&&o.next.data.type==="WhiteSpace"&&(a=o.next),a&&a.next&&(a.next.data.type==="Number"?(l=a.next,u=parseInt(l.data.value)):a.next.data.type==="Function"&&a.next.data.name==="var"&&(l=a.next,u=a.next.data.children.head.data.name));let c,p,d=n.ruleNode.prelude;n.ruleNode.type==="Atrule"&&n.ruleNode.name==="page"?p=".pagedjs_page":p=cu.default.generate(d||n.ruleNode),s==="footnote"&&this.addFootnoteMarkerCounter(t.value.children),s in this.counters?c=this.counters[s]:c=this.addCounter(s);let f={selector:p,number:u||0};c.resets[p]=f,p!==".pagedjs_page"&&(r.remove(o),a&&r.remove(a),l&&r.remove(l))}})}processCounters(t,n){let r;for(let i in n)r=this.counters[i],this.processCounterIncrements(t,r),this.processCounterResets(t,r),i!=="page"&&this.addCounterValues(t,r)}scopeCounters(t){let n=[];for(let r in t)r!=="page"&&n.push(`${t[r].name} 0`);this.insertRule(`.pagedjs_pages { counter-reset: ${n.join(" ")} page 0 pages var(--pagedjs-page-count) footnote var(--pagedjs-footnotes-count) footnote-marker var(--pagedjs-footnotes-count)}`)}insertRule(t){this.styleSheet.insertRule(t,this.styleSheet.cssRules.length)}processCounterIncrements(t,n){let r;for(let i in n.increments){r=n.increments[i];let o=t.querySelectorAll(r.selector);for(let s=0;s<o.length;s++)o[s].setAttribute("data-counter-"+n.name+"-increment",r.number),o[s].getAttribute("data-counter-increment")?o[s].setAttribute("data-counter-increment",o[s].getAttribute("data-counter-increment")+" "+n.name):o[s].setAttribute("data-counter-increment",n.name)}}processCounterResets(t,n){let r;for(let o in n.resets){r=n.resets[o];let s=t.querySelectorAll(r.selector);for(var i=0;i<s.length;i++){let a=r.number;typeof a=="string"&&a.startsWith("--")&&(a=s[i].style.getPropertyValue(a)||0),s[i].setAttribute("data-counter-"+n.name+"-reset",a),s[i].getAttribute("data-counter-reset")?s[i].setAttribute("data-counter-reset",s[i].getAttribute("data-counter-reset")+" "+n.name):s[i].setAttribute("data-counter-reset",n.name)}}}addCounterValues(t,n){let r=n.name;if(r==="page"||r==="footnote")return;let i=t.querySelectorAll("[data-counter-"+r+"-reset], [data-counter-"+r+"-increment]"),o=0,s,a,l,u,c,p,d;for(let f=0;f<i.length;f++)s=i[f],p=0,d=[],s.hasAttribute("data-counter-"+r+"-reset")&&(l=s.getAttribute("data-counter-"+r+"-reset"),u=parseInt(l),p=u-o,d.push(`${r} ${p}`),o=u),s.hasAttribute("data-counter-"+r+"-increment")&&(a=s.getAttribute("data-counter-"+r+"-increment"),c=parseInt(a),o+=c,s.setAttribute("data-counter-"+r+"-value",o),d.push(`${r} ${c}`)),d.length>0&&this.incrementCounterForElement(s,d)}addFootnoteMarkerCounter(t){let n=[];cu.default.walk(t,{visit:"Identifier",enter:(r,i,o)=>{n.push(r.name)}}),!n.includes("footnote-maker")&&(t.insertData({type:"WhiteSpace",value:" "}),t.insertData({type:"Identifier",name:"footnote-marker"}),t.insertData({type:"WhiteSpace",value:" "}),t.insertData({type:"Number",value:0}))}incrementCounterForElement(t,n){if(!t||!n||n.length===0)return;let r=t.dataset.ref,i=Array.from(this.styleSheet.cssRules).filter(s=>s.selectorText===`[data-ref="${t.dataset.ref}"]:not([data-split-from])`&&s.style[0]==="counter-increment").map(s=>s.style.counterIncrement);i.push(this.mergeIncrements(n,(s,a)=>(parseInt(s)||0)+(parseInt(a)||0)));let o=this.mergeIncrements(i,(s,a)=>a);this.insertRule(`[data-ref="${r}"]:not([data-split-from]) { counter-increment: ${o} }`)}mergeIncrements(t,n){let r={};return t.forEach(i=>{let o=i.split(" ");for(let s=0;s<o.length;s+=2)r[o[s]]=n(r[o[s]],o[s+1])}),Object.entries(r).map(([i,o])=>`${i} ${o}`).join(" ")}afterPageLayout(t,n){let r=[];t.querySelectorAll("[data-counter-page-reset]:not([data-split-from])").forEach(s=>{let a=s.dataset&&s.dataset.ref;if(!(a&&this.resetCountersMap.has(a))){a&&this.resetCountersMap.set(a,"");let l=s.dataset.counterPageReset;r.push(`page ${l}`)}}),t.querySelectorAll("[data-counter-footnote-reset]:not([data-split-from])").forEach(s=>{let a=s.dataset.counterFootnoteReset;r.push(`footnote ${a}`),r.push(`footnote-marker ${a}`)}),r.length&&this.styleSheet.insertRule(`[data-page-number="${t.dataset.pageNumber}"] { counter-increment: none; counter-reset: ${r.join(" ")} }`,this.styleSheet.cssRules.length)}},e_=Bh;var Wh=class extends Q{constructor(t,n,r){super(t,n,r)}afterParsed(t){let n=t.querySelectorAll("ol");for(var r of n)this.addDataNumbers(r)}afterPageLayout(t,n,r,i){var o=t.getElementsByTagName("ol");for(var s of o)s.firstElementChild&&(s.start=s.firstElementChild.dataset.itemNum)}addDataNumbers(t){let n=1;t.hasAttribute("start")&&(n=parseInt(t.getAttribute("start"),10),isNaN(n)&&(n=1));let r=t.children;for(var i=0;i<r.length;i++)r[i].setAttribute("data-item-num",i+n)}},t_=Wh;var n_=ye($e(),1),qh=class extends Q{constructor(t,n,r){super(t,n,r),this.styleSheet=n.styleSheet,this.fixedElementsSelector=[],this.fixedElements=[]}onDeclaration(t,n,r,i){if(t.property==="position"&&t.value.children.first().name==="fixed"){let o=n_.default.generate(i.ruleNode.prelude);this.fixedElementsSelector.push(o),r.remove(n)}}afterParsed(t){this.fixedElementsSelector.forEach(n=>{t.querySelectorAll(`${n}`).forEach(r=>{r.style.setProperty("position","absolute"),this.fixedElements.push(r),r.remove()})})}afterPageLayout(t,n,r){this.fixedElements.forEach(i=>{let o=i.cloneNode(!0);t.querySelector(".pagedjs_pagebox").insertAdjacentElement("afterbegin",o)})}},r_=qh;var i_=ye($e(),1),Vh=class extends Q{constructor(t,n,r){super(t,n,r),this.styleSheet=n.styleSheet,this.pageCounter={name:"page",increments:{},resets:{}}}onDeclaration(t,n,r,i){t.property==="counter-increment"&&this.handleIncrement(t,i)&&r.remove(n)}afterParsed(t){for(let n in this.pageCounter.increments){let r=this.pageCounter.increments[n];this.insertRule(`${r.selector} { --pagedjs-page-counter-increment: ${r.number} }`)}}handleIncrement(t,n){let r=t.value.children.first(),i=t.value.children.getSize()>1?t.value.children.last().value:1,o=r&&r.name;if(o&&o.indexOf("target-counter-")===0||o!=="page"||n.ruleNode.name==="page"&&n.ruleNode.type==="Atrule")return;let s=i_.default.generate(n.ruleNode.prelude);return this.pageCounter.increments[s]={selector:s,number:i}}insertRule(t){this.styleSheet.insertRule(t,this.styleSheet.cssRules.length)}},o_=Vh;var Uh=ye($e(),1);var Hh=class extends Q{constructor(t,n,r){super(t,n,r),this.styleSheet=n.styleSheet,this.selectors={}}onRule(t,n,r){let i=Uh.default.generate(t.prelude);if(i.match(/:(first|last|nth)-of-type/)){let o=Uh.default.generate(t.block);o=o.replace(/[{}]/g,"");let s="nth-of-type-"+Ze();i.split(",").forEach(a=>{this.selectors[a]?this.selectors[a][1]=`${this.selectors[a][1]};${o}`:this.selectors[a]=[s,o]}),r.remove(n)}}afterParsed(t){this.processSelectors(t,this.selectors)}processSelectors(t,n){for(let i in n){let o=t.querySelectorAll(i);for(var r=0;r<o.length;r++){let a=o[r].getAttribute("data-nth-of-type");a&&a!=""?(a=`${a},${n[i][0]}`,o[r].setAttribute("data-nth-of-type",a)):o[r].setAttribute("data-nth-of-type",n[i][0])}let s=`*[data-nth-of-type*='${n[i][0]}'] { ${n[i][1]}; }`;this.styleSheet.insertRule(s,this.styleSheet.cssRules.length)}}},s_=Hh;var $h=ye($e(),1);var Gh=class extends Q{constructor(t,n,r){super(t,n,r),this.styleSheet=n.styleSheet,this.selectors={}}onRule(t,n,r){let i=$h.default.generate(t.prelude);if(i.match(/\+/)){let o=$h.default.generate(t.block);o=o.replace(/[{}]/g,"");let s="following-"+Ze();i.split(",").forEach(a=>{this.selectors[a]?this.selectors[a][1]=`${this.selectors[a][1]};${o}`:this.selectors[a]=[s,o]}),r.remove(n)}}afterParsed(t){this.processSelectors(t,this.selectors)}processSelectors(t,n){for(let i in n){let o=t.querySelectorAll(i);for(var r=0;r<o.length;r++){let a=o[r].getAttribute("data-following");a&&a!=""?(a=`${a},${n[i][0]}`,o[r].setAttribute("data-following",a)):o[r].setAttribute("data-following",n[i][0])}let s=`*[data-following*='${n[i][0]}'] { ${n[i][1]}; }`;this.styleSheet.insertRule(s,this.styleSheet.cssRules.length)}}},a_=Gh;var Ri=ye($e(),1),Yh=class extends Q{constructor(t,n,r){super(t,n,r),this.footnotes={},this.needsLayout=[]}onDeclaration(t,n,r,i){let o=t.property;if(o==="float"){let s=t.value.children&&t.value.children.first();if((s&&s.name)==="footnote"){let l=Ri.default.generate(i.ruleNode.prelude);this.footnotes[l]={selector:l,policy:"auto",display:"block"},r.remove(n)}}if(o==="footnote-policy"){let s=t.value.children&&t.value.children.first(),a=s&&s.name;if(a){let l=Ri.default.generate(i.ruleNode.prelude),u=this.footnotes[l];u&&(u.policy=a)}}if(o==="footnote-display"){let s=t.value.children&&t.value.children.first(),a=s&&s.name,l=Ri.default.generate(i.ruleNode.prelude);if(a&&this.footnotes[l]){let u=this.footnotes[l];u&&(u.display=a)}}}onPseudoSelector(t,n,r,i,o){let s=t.name;if(s==="footnote-marker"){let a=o.ruleNode.prelude,l=new Ri.default.List;a.children.first().children.each(u=>{u.type!=="PseudoElementSelector"&&l.appendData(u)}),l.appendData({type:"AttributeSelector",name:{type:"Identifier",name:"data-footnote-marker"},flags:null,loc:null,matcher:null,value:null}),l.appendData({type:"PseudoElementSelector",name:"marker",loc:null,children:null}),a.children.first().children=l}if(s==="footnote-call"){let a=o.ruleNode.prelude,l=new Ri.default.List;a.children.first().children.each(u=>{u.type!=="PseudoElementSelector"&&l.appendData(u)}),l.appendData({type:"AttributeSelector",name:{type:"Identifier",name:"data-footnote-call"},flags:null,loc:null,matcher:null,value:null}),l.appendData({type:"PseudoElementSelector",name:"after",loc:null,children:null}),a.children.first().children=l}}afterParsed(t){this.processFootnotes(t,this.footnotes)}processFootnotes(t,n){for(let i in n){let o=t.querySelectorAll(i),s,a=n[i];for(var r=0;r<o.length;r++)s=o[r],s.setAttribute("data-note","footnote"),s.setAttribute("data-break-before","avoid"),s.setAttribute("data-note-policy",a.policy||"auto"),s.setAttribute("data-note-display",a.display||"block"),this.processFootnoteContainer(s)}}processFootnoteContainer(t){let n=t.parentElement,r=n;for(;n;){if(sl(n)){r.setAttribute("data-has-notes","true");break}r=n,n=n.parentElement,n||r.setAttribute("data-has-notes","true")}}renderNode(t){if(t.nodeType==1){let n;if(!t.dataset)return;t.dataset.note==="footnote"?n=[t]:(t.dataset.hasNotes||t.querySelectorAll("[data-note='footnote']"))&&(n=t.querySelectorAll("[data-note='footnote']")),n&&n.length&&this.findVisibleFootnotes(n,t)}}findVisibleFootnotes(t,n){let r,i,o;r=n.closest(".pagedjs_page_content"),i=r.getBoundingClientRect(),o=i.left+i.width;for(let s=0;s<t.length;++s){let a=t[s];a.getBoundingClientRect().left<o&&this.moveFootnote(a,n.closest(".pagedjs_area"),!0)}}moveFootnote(t,n,r){let i=n.querySelector(".pagedjs_footnote_area"),o=i.querySelector(".pagedjs_footnote_content"),s=o.querySelector(".pagedjs_footnote_inner_content");if(!Re(t))return;let a;if(r&&(a=this.createFootnoteCall(t)),t.removeAttribute("data-break-before"),s.querySelector(`[data-ref="${t.dataset.ref}"]`)){t.remove();return}s.appendChild(t),o.classList.contains("pagedjs_footnote_empty")&&o.classList.remove("pagedjs_footnote_empty"),t.dataset.footnoteMarker=t.dataset.ref,t.id=`note-${t.dataset.ref}`;let u=o.scrollHeight,p=n.querySelector(".pagedjs_page_content").getBoundingClientRect(),d=p.left+p.width,f=a&&a.getBoundingClientRect(),g=i.getBoundingClientRect(),h=this.marginsHeight(o),y=this.paddingHeight(o),m=this.borderHeight(o),v=h+y+m,S=Math.floor(g.top);g.height===0&&(S-=this.marginsHeight(o,!1),S-=this.paddingHeight(o,!1),S-=this.borderHeight(o,!1));let x=t.dataset.notePolicy,E=0,w=0;if(a){let Ie=a.previousSibling,we=new Range;Ie?we.setStartBefore(Ie):we.setStartBefore(a),we.setEndAfter(a);let Be=we.getBoundingClientRect();if(E=Be.bottom,!x||x==="auto")w=Math.ceil(Be.bottom);else if(x==="line")w=Math.ceil(Be.top);else if(x==="block"){let Oe=a.closest("p").previousElementSibling;Oe?w=Math.ceil(Oe.getBoundingClientRect().bottom):w=Math.ceil(Be.bottom)}}let W=u+v-g.height,q=E?S-E:0,oe=E?Math.floor(g.top)-w:0,Me=i.querySelector("[data-note='footnote']");if(r&&f.left>d)t.remove();else if(!Me&&r&&v>q){n.style.setProperty("--pagedjs-footnotes-height","0px");let Ie=document.createElement("div");Ie.appendChild(t),this.needsLayout.push(Ie)}else r?E<g.top-W?n.style.setProperty("--pagedjs-footnotes-height",`${u+h+m}px`):(n.style.setProperty("--pagedjs-footnotes-height",`${g.height+oe}px`),s.style.height=g.height+oe-v+"px"):n.style.setProperty("--pagedjs-footnotes-height",`${u+v}px`)}createFootnoteCall(t){let n=t.parentElement,r=document.createElement("a");for(let i of t.classList)r.classList.add(`${i}`);return r.dataset.footnoteCall=t.dataset.ref,r.dataset.ref=t.dataset.ref,r.dataset.dataCounterFootnoteIncrement=1,r.href=`#note-${t.dataset.ref}`,n.insertBefore(r,t),r}afterPageLayout(t,n,r,i){let o=t.querySelector(".pagedjs_area"),s=n.footnotesArea,a=s.querySelector(".pagedjs_footnote_content"),l=s.querySelector(".pagedjs_footnote_inner_content"),u=a.getBoundingClientRect(),{width:c}=u;l.style.columnWidth=Math.round(c)+"px",l.style.columnGap="calc(var(--pagedjs-margin-right) + var(--pagedjs-margin-left))";let d=new yl(s,void 0,i.settings).findOverflow(l,u);if(d){let{startContainer:f,startOffset:g}=d,h;if(Re(f)){let w=f.childNodes[g];h=Re(w)&&w.hasAttribute("data-footnote-marker")}let y=d.extractContents();if(!h){let w=y.firstElementChild;w.dataset.splitFrom=w.dataset.ref,this.handleAlignment(l.lastElementChild)}this.needsLayout.push(y),a.style.removeProperty("height"),l.style.removeProperty("height");let m=l.getBoundingClientRect(),{height:v}=m,S=this.marginsHeight(a),x=this.paddingHeight(a),E=this.borderHeight(a);if(o.style.setProperty("--pagedjs-footnotes-height",`${v+S+E+x}px`),l.childNodes.length===0&&a.classList.add("pagedjs_footnote_empty"),!r)i.clonePage(n);else{let w,W;r.node&&typeof r.node.dataset<"u"&&typeof r.node.dataset.previousBreakAfter<"u"&&(W=r.node.dataset.previousBreakAfter),r.node&&typeof r.node.dataset<"u"&&typeof r.node.dataset.breakBefore<"u"&&(w=r.node.dataset.breakBefore),(w||W)&&i.clonePage(n)}}l.style.height="auto"}handleAlignment(t){let r=window.getComputedStyle(t)["text-align-last"];t.dataset.lastSplitElement="true",r==="auto"?t.dataset.alignLastSplitElement="justify":t.dataset.alignLastSplitElement=r}beforePageLayout(t){for(;this.needsLayout.length;){let n=this.needsLayout.shift();Array.from(n.childNodes).forEach(r=>{this.moveFootnote(r,t.element.querySelector(".pagedjs_area"),!1)})}}afterOverflowRemoved(t,n){let r=n.closest(".pagedjs_area"),i=r.querySelectorAll(".pagedjs_footnote_area [data-note='footnote']");for(let s=0;s<i.length;s++){let a=i[s];t.querySelector(`[data-footnote-call="${a.dataset.ref}"]`)&&a.remove()}let o=r.querySelector(".pagedjs_footnote_inner_content");o&&o.childNodes.length===0&&o.parentElement.classList.add("pagedjs_footnote_empty")}marginsHeight(t,n=!0){let r=window.getComputedStyle(t),i=parseInt(r.marginTop),o=parseInt(r.marginBottom),s=0;return i&&(s+=i),o&&n&&(s+=o),s}paddingHeight(t,n=!0){let r=window.getComputedStyle(t),i=parseInt(r.paddingTop),o=parseInt(r.paddingBottom),s=0;return i&&(s+=i),o&&n&&(s+=o),s}borderHeight(t,n=!0){let r=window.getComputedStyle(t),i=parseInt(r.borderTop),o=parseInt(r.borderBottom),s=0;return i&&(s+=i),o&&n&&(s+=o),s}},l_=Yh;var u_=[JT,ZT,QT,XT,e_,t_,r_,o_,s_,a_,l_];var ls=ye($e(),1),Zh=class extends Q{constructor(t,n,r){super(t,n,r),this.runningSelectors={},this.elements={}}onDeclaration(t,n,r,i){if(t.property==="position"){let o=ls.default.generate(i.ruleNode.prelude),s=t.value.children.first().name;if(s==="running"){let a;ls.default.walk(t,{visit:"Function",enter:(l,u,c)=>{a=l.children.first().name}}),this.runningSelectors[a]={identifier:s,value:a,selector:o}}}t.property==="content"&&ls.default.walk(t,{visit:"Function",enter:(o,s,a)=>{if(o.name.indexOf("element")>-1){let l=ls.default.generate(i.ruleNode.prelude),u=o.name,c=o.children.first().name,p=[c],d="first";l.split(",").forEach(f=>{f=f.replace(/::after|::before/,""),this.elements[f]={func:u,args:p,value:c,style:d||"first",selector:f,fullSelector:l}})}}})}afterParsed(t){for(let n of Object.keys(this.runningSelectors)){let r=this.runningSelectors[n],i=Array.from(t.querySelectorAll(r.selector));if(r.identifier==="running")for(let o of i)o.style.display="none"}}afterPageLayout(t){for(let n of Object.keys(this.runningSelectors)){let r=this.runningSelectors[n],i=t.querySelector(r.selector);i&&(r.identifier==="running"?r.first=i:console.warn(r.value+"needs css replacement"))}this.orderedSelectors||(this.orderedSelectors=this.orderSelectors(this.elements));for(let n of this.orderedSelectors)if(n){let r=this.elements[n],i=t.querySelector(n);if(i){let o=this.runningSelectors[r.args[0]];if(o&&o.first){i.innerHTML="";let s=o.first.cloneNode(!0);s.style.display=null,i.appendChild(s)}}}}pageWeight(t){let n=1,r=t.split(" "),i=r.length&&r[0].split(".");switch(i.shift(),i.length){case 4:/^pagedjs_[\w-]+_first_page$/.test(i[3])?n=7:(i[3]==="pagedjs_left_page"||i[3]==="pagedjs_right_page")&&(n=6);break;case 3:i[1]==="pagedjs_named_page"&&(i[2].indexOf(":nth-of-type")>-1?n=7:n=5);break;case 2:i[1]==="pagedjs_first_page"?n=4:i[1]==="pagedjs_blank_page"?n=3:(i[1]==="pagedjs_left_page"||i[1]==="pagedjs_right_page")&&(n=2);break;default:i[0].indexOf(":nth-of-type")>-1?n=4:n=1}return n}orderSelectors(t){let n=Object.keys(t),r={1:[],2:[],3:[],4:[],5:[],6:[],7:[]},i=[];for(let s of n){let a=this.pageWeight(s);r[a].unshift(s)}for(var o=1;o<=7;o++)i=i.concat(r[o]);return i}beforeTreeParse(t,n){n.text=t.replace(/element[\s]*\(([^|^#)]*)\)/g,"element-ident($1)")}},c_=Zh;var Qh=ye($e(),1);function zn(e,t=`"' `){if(e!=null)return e.replace(new RegExp(`^[${t}]+`),"").replace(new RegExp(`[${t}]+$`),"").replace(/["']/g,n=>"\\"+n).replace(/[\n]/g,n=>"\\00000A")}function d_(e){if(e!=null)return e.replace(new RegExp("::footnote-call","g"),"").replace(new RegExp("::footnote-marker","g"),"")}var Kh=class extends Q{constructor(t,n,r){super(t,n,r),this.stringSetSelectors={},this.type,this.pageLastString}onDeclaration(t,n,r,i){if(t.property==="string-set"){let o=Qh.default.generate(i.ruleNode.prelude),s=[],a=[],l=[];t.value.children.forEach(u=>{u.type==="Identifier"&&s.push(u.name),u.type==="Function"&&(a.push(u.name),u.children.forEach(c=>{c.type==="Identifier"&&l.push(c.name)}))}),s.forEach((u,c)=>{let p=a[c],d=l[c];this.stringSetSelectors[u]={identifier:u,func:p,value:d,selector:o}})}}onContent(t,n,r,i,o){if(t.name==="string"){let s=t.children&&t.children.first().name;this.type=t.children.last().name,t.name="var",t.children=new Qh.default.List,this.type==="first"||this.type==="last"||this.type==="start"||this.type==="first-except"?t.children.append(t.children.createItem({type:"Identifier",loc:null,name:"--pagedjs-string-"+this.type+"-"+s})):t.children.append(t.children.createItem({type:"Identifier",loc:null,name:"--pagedjs-string-first-"+s}))}}afterPageLayout(t){this.pageLastString===void 0&&(this.pageLastString={});for(let n of Object.keys(this.stringSetSelectors)){let r=this.stringSetSelectors[n],i=r.value,o=r.func,s=t.querySelectorAll(r.selector),a=n in this.pageLastString?this.pageLastString[n]:"",l,u,c,p;if(s.length==0)l=a,u=a,c=a,p=a;else{s.forEach(h=>{o==="content"&&(this.pageLastString[n]=s[s.length-1].textContent),o==="attr"&&(this.pageLastString[n]=s[s.length-1].getAttribute(i)||"")}),o==="content"&&(l=s[0].textContent),o==="attr"&&(l=s[0].getAttribute(i)||""),o==="content"&&(u=s[s.length-1].textContent),o==="attr"&&(u=s[s.length-1].getAttribute(i)||"");let d=s[0].getBoundingClientRect().top,g=s[0].closest(".pagedjs_page_content").getBoundingClientRect().top;d==g?c=l:c=a,p=""}t.style.setProperty(`--pagedjs-string-first-${n}`,`"${zn(l)}`),t.style.setProperty(`--pagedjs-string-last-${n}`,`"${zn(u)}`),t.style.setProperty(`--pagedjs-string-start-${n}`,`"${zn(c)}`),t.style.setProperty(`--pagedjs-string-first-except-${n}`,`"${zn(p)}`)}}},p_=Kh;var us=ye($e(),1),Jh=class extends Q{constructor(t,n,r){super(t,n,r),this.styleSheet=n.styleSheet,this.counterTargets={}}onContent(t,n,r,i,o){if(t.name==="target-counter"){let s=us.default.generate(o.ruleNode.prelude),a=t.children.first(),l=a.name,u=us.default.generate(t),c=[];a.children.forEach(h=>{h.type==="Identifier"&&c.push(h.name)});let p,d,f;t.children.forEach(h=>{h.type==="Identifier"&&(p?d||(f=us.default.clone(h),d=h.name):p=h.name)});let g="target-counter-"+Ze();s.split(",").forEach(h=>{this.counterTargets[h]={func:l,args:c,value:u,counter:p,style:d,selector:h,fullSelector:s,variable:g}}),t.name="counter",t.children=new us.default.List,t.children.appendData({type:"Identifier",loc:0,name:g}),f&&(t.children.appendData({type:"Operator",loc:null,value:","}),t.children.appendData(f))}}afterPageLayout(t,n,r,i){Object.keys(this.counterTargets).forEach(o=>{let s=this.counterTargets[o],a=s.selector.split(/::?/g),l=a[0];i.pagesArea.querySelectorAll(l+":not([data-"+s.variable+"])").forEach((c,p)=>{if(s.func!=="attr")return;let d=Ja(c,s.args),f=i.pagesArea.querySelector(Xa(d));if(f){let g=Ze();c.setAttribute("data-"+s.variable,g);let h="";if(a.length>1&&(h+="::"+a[1]),s.counter==="page"){let m=i.pagesArea.querySelectorAll(".pagedjs_page"),v=0;for(let S=0;S<m.length;S++){let x=m[S],E=window.getComputedStyle(x),w=E["counter-reset"].replace("page","").trim(),W=E["counter-increment"].replace("page","").trim();if(w!=="none"&&(v=parseInt(w)),W!=="none"&&(v+=parseInt(W)),x.contains(f))break}this.styleSheet.insertRule(`[data-${s.variable}="${g}"]${h} { counter-reset: ${s.variable} ${v}; }`,this.styleSheet.cssRules.length)}else{let m=f.getAttribute(`data-counter-${s.counter}-value`);m&&this.styleSheet.insertRule(`[data-${s.variable}="${g}"]${h} { counter-reset: ${s.variable} ${s.variable} ${parseInt(m)}; }`,this.styleSheet.cssRules.length)}let y=document.querySelector(`[data-${s.variable}="${g}"]`);y&&(y.style.display="none",y.clientHeight,y.style.removeProperty("display"))}})})}},f_=Jh;var du=ye($e(),1),Xh=class extends Q{constructor(t,n,r){super(t,n,r),this.styleSheet=n.styleSheet,this.textTargets={},this.beforeContent="",this.afterContent="",this.selector={}}onContent(t,n,r,i,o){if(t.name==="target-text"){this.selector=du.default.generate(o.ruleNode.prelude);let s=t.children.first(),a=t.children.last(),l=s.name,u=du.default.generate(t),c=[];s.children.forEach(f=>{f.type==="Identifier"&&c.push(f.name)});let p;a!==s&&(p=a.name);let d="--pagedjs-"+Ze();this.selector.split(",").forEach(f=>{this.textTargets[f]={func:l,args:c,value:u,style:p||"content",selector:f,fullSelector:this.selector,variable:d}}),t.name="var",t.children=new du.default.List,t.children.appendData({type:"Identifier",loc:0,name:d})}}onPseudoSelector(t,n,r,i,o){o.ruleNode.block.children.forEach(s=>{t.name==="before"&&s.property==="content"?s.value.children.forEach(l=>{l.type==="String"&&(this.beforeContent=l.value)}):t.name==="after"&&s.property==="content"&&s.value.children.forEach(a=>{a.type==="String"&&(this.afterContent=a.value)})})}afterParsed(t){Object.keys(this.textTargets).forEach(n=>{let r=this.textTargets[n],i=r.selector.split("::"),o=i[0],s=t.querySelectorAll(o),a;s.forEach((l,u)=>{let c=Ja(l,r.args),p=t.querySelector(Xa(c));if(p)if(r.style){this.selector=Ze(),l.setAttribute("data-target-text",this.selector);let d="";if(i.length>1&&(d+="::"+i[1]),r.style==="before"||r.style==="after"){let f=`${r.style}Content`;a=zn(this[f])}else a=zn(p.textContent," ");a=r.style==="first-letter"?a.charAt(0):a,this.styleSheet.insertRule(`[data-target-text="${this.selector}"]${d} { ${r.variable}: "${a}" }`)}else console.warn("missed target",c)})})}},h_=Xh;var m_=[c_,p_,f_,h_];var em=class extends Q{constructor(t,n,r){super(t,n,r)}filter(t){cl(t,n=>this.filterEmpty(n),NodeFilter.SHOW_TEXT)}filterEmpty(t){if(t.textContent.length>1&&Po(t)){let n=t.parentNode;if(Re(n)&&n.closest("pre"))return NodeFilter.FILTER_REJECT;let i=tl(t),o=nl(t);return o===null&&i===null?(t.textContent=" ",NodeFilter.FILTER_REJECT):o===null||i===null?NodeFilter.FILTER_ACCEPT:(t.textContent=" ",NodeFilter.FILTER_REJECT)}else return NodeFilter.FILTER_REJECT}},g_=em;var tm=class extends Q{constructor(t,n,r){super(t,n,r)}filter(t){cl(t,null,NodeFilter.SHOW_COMMENT)}},y_=tm;var nm=class extends Q{constructor(t,n,r){super(t,n,r)}filter(t){t.querySelectorAll("script").forEach(n=>{n.remove()})}},v_=nm;var w_=ye($e(),1),C_=ye(x_(),1);var im=class extends Q{constructor(t,n,r){super(t,n,r),this.displayRules={}}onDeclaration(t,n,r,i){if(t.property==="display"){let o=w_.default.generate(i.ruleNode.prelude),s=t.value.children.first().name;o.split(",").forEach(a=>{this.displayRules[a]={value:s,selector:a,specificity:(0,C_.calculateSpecificity)(a),important:t.important}})}}filter(t){let{matches:n,selectors:r}=this.sortDisplayedSelectors(t,this.displayRules);for(let o=0;o<n.length;o++){let s=n[o],a=r[o],l=a[a.length-1].value;this.removable(s)&&l==="none"&&(s.dataset.undisplayed="undisplayed")}let i=t.querySelectorAll("[style]");for(let o=0;o<i.length;o++){let s=i[o];this.removable(s)&&(s.dataset.undisplayed="undisplayed")}}sorter(t,n){return t.important&&!n.important?1:n.important&&!t.important?-1:t.specificity-n.specificity}sortDisplayedSelectors(t,n=[]){let r=[],i=[];for(let o in n){let s=n[o],a=s.selector,l=[];try{try{l=t.querySelectorAll(a)}catch{l=t.querySelectorAll(d_(a))}}catch{l=[]}let u=Array.from(l);for(let c of u)if(r.includes(c)){let p=r.indexOf(c);i[p].push(s),i[p]=i[p].sort(this.sorter)}else r.push(c),i.push([s])}return{matches:r,selectors:i}}removable(t){return!(t.style&&t.style.display!==""&&t.style.display!=="none")}},E_=im;var D_=[g_,y_,v_,E_];var $I=ye(On(),1),GI=ye(HI(),1),pm=[...u_,...m_,...D_],hu=class{constructor(t,n,r){let i=[];pm.forEach(o=>{let s=new o(t,n,r);i.push(s),(0,GI.default)(s,this)})}};(0,$I.default)(hu.prototype);function mu(){for(var e=0;e<arguments.length;e++)pm.push(arguments[e])}function fm(e,t,n){return new hu(e,t,n)}var gu=class{constructor(t){this.settings=t||{},this.polisher=new Nh(!1),this.chunker=new lf(void 0,void 0,this.settings),this.hooks={},this.hooks.beforePreview=new N(this),this.hooks.afterPreview=new N(this),this.size={width:{value:8.5,unit:"in"},height:{value:11,unit:"in"},format:void 0,orientation:void 0},this.chunker.on("page",n=>{this.emit("page",n)}),this.chunker.on("rendering",()=>{this.emit("rendering",this.chunker)})}initializeHandlers(){let t=fm(this.chunker,this.polisher,this);return t.on("size",n=>{this.size=n,this.emit("size",n)}),t.on("atpages",n=>{this.atpages=n,this.emit("atpages",n)}),t}registerHandlers(){return mu.apply(mu,arguments)}getParams(t){let n,r=new URL(window.location),i=new URLSearchParams(r.search);for(var o of i.entries())o[0]===t&&(n=o[1]);return n}wrapContent(){let t=document.querySelector("body"),n;return n=t.querySelector(":scope > template[data-ref='pagedjs-content']"),n||(n=document.createElement("template"),n.dataset.ref="pagedjs-content",n.innerHTML=t.innerHTML,t.innerHTML="",t.appendChild(n)),n.content}removeStyles(t=document){let n=Array.from(t.querySelectorAll("link[rel='stylesheet']:not([data-pagedjs-ignore], [media~='screen'])")),r=Array.from(t.querySelectorAll("style:not([data-pagedjs-inserted-styles], [data-pagedjs-ignore], [media~='screen'])"));return[...n,...r].sort(function(o,s){let a=o.compareDocumentPosition(s);return a===Node.DOCUMENT_POSITION_PRECEDING?1:a===Node.DOCUMENT_POSITION_FOLLOWING?-1:0}).map(o=>{if(o.nodeName==="STYLE"){let s={};return s[window.location.href]=o.textContent,o.remove(),s}if(o.nodeName==="LINK")return o.remove(),o.href;console.warn(`Unable to process: ${o}, ignoring.`)})}preview(t,n,r){return le(this,null,function*(){yield this.hooks.beforePreview.trigger(t,r),t||(t=this.wrapContent()),n||(n=this.removeStyles()),this.polisher.setup(),this.handlers=this.initializeHandlers(),yield this.polisher.add(...n);let i=performance.now(),o=yield this.chunker.flow(t,r),s=performance.now();return o.performance=s-i,o.size=this.size,this.emit("rendered",o),yield this.hooks.afterPreview.trigger(o.pages),o})}};(0,YI.default)(gu.prototype);var hm=gu;var yu=class e{topic;project;description;static \u0275fac=function(n){return new(n||e)};static \u0275cmp=pe({type:e,selectors:[["app-title-section"]],inputs:{topic:"topic",project:"project",description:"description"},standalone:!0,features:[he],decls:6,vars:2,consts:[[1,"title"],[1,"topic-and-project"],[1,"topic"],[1,"description"]],template:function(n,r){n&1&&(C(0,"section",0)(1,"div",1)(2,"h1",2),R(3),D()(),C(4,"p",3),R(5),D()()),n&2&&(_(3),ge(r.topic),_(2),ge(r.description))},styles:[".title[_ngcontent-%COMP%]{display:flex;gap:10px;padding:0;margin:0;background-color:#ff8d60;border:1mm solid orangered;border-radius:1rem;padding:1rem;box-shadow:5px 5px 10px 2px #00000014}.title[_ngcontent-%COMP%] .topic-and-project[_ngcontent-%COMP%]{flex-basis:50%;text-align:center;font-family:PoppinsSemiBold}.title[_ngcontent-%COMP%] .topic-and-project[_ngcontent-%COMP%] .topic[_ngcontent-%COMP%]{font-size:16pt;margin-top:1rem;margin-bottom:0}.title[_ngcontent-%COMP%] .topic-and-project[_ngcontent-%COMP%] .project[_ngcontent-%COMP%]{font-size:12pt;margin-top:0}.title[_ngcontent-%COMP%] .description[_ngcontent-%COMP%]{font-size:12pt;padding:0;margin:0}"]})};function lV(e,t){if(e&1&&(C(0,"p"),R(1),D()),e&2){let n=t.$implicit;_(),ge(n)}}var vu=class e{getReadySectionData;static \u0275fac=function(n){return new(n||e)};static \u0275cmp=pe({type:e,selectors:[["app-get-ready-section"]],inputs:{getReadySectionData:"getReadySectionData"},standalone:!0,features:[he],decls:7,vars:0,consts:[[1,"get-ready-header"],[1,"get-ready-container"],[1,"get-ready-steps"]],template:function(n,r){n&1&&(C(0,"section")(1,"h3",0),R(2,"Get Ready"),D(),C(3,"div",1)(4,"div",2),ut(5,lV,2,1,"p",null,lt),D()()()),n&2&&(_(5),ct(r.getReadySectionData))},styles:[".get-ready-container[_ngcontent-%COMP%]{display:flex;align-items:flex-start}.get-ready-container[_ngcontent-%COMP%] .get-ready-steps[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin-top:.5rem}.get-ready-container[_ngcontent-%COMP%] .get-ready-image[_ngcontent-%COMP%]{margin-top:2mm;margin-left:auto;max-height:30mm;max-width:70mm;width:auto;height:auto;object-fit:contain}"]})};function uV(e,t){if(e&1&&(C(0,"div")(1,"pre",6),Z(2,"code",7),D()()),e&2){let n=te(2);_(2),se("code",n.challenges[0].hintCode)("language",n.programmingLanguage)}}function cV(e,t){if(e&1&&Z(0,"img",5),e&2){let n=te(2);se("src",n.challenges[0].imageSlot.base64,et)}}function dV(e,t){if(e&1&&(C(0,"div",1)(1,"h3"),R(2,"Challenges!"),D(),C(3,"div",2),Z(4,"img",3),C(5,"div",4)(6,"h4"),R(7),D(),C(8,"p"),R(9),D(),Te(10,uV,3,2,"div")(11,cV,1,1,"img",5),D()()()),e&2){let n=te();_(7),ge(n.challenges[0].name),_(2),ge(n.challenges[0].task),_(),fe(n.challenges[0].hintCode?10:-1),_(),fe(n.challenges[0].imageSlot!=null&&n.challenges[0].imageSlot.base64?11:-1)}}function pV(e,t){if(e&1&&(C(0,"div")(1,"pre",6),Z(2,"code",7),D()()),e&2){let n=te(2).$implicit,r=te();_(2),se("code",n.hintCode)("language",r.programmingLanguage)}}function fV(e,t){if(e&1&&Z(0,"img",5),e&2){let n=te(2).$implicit;se("src",n.imageSlot.base64,et)}}function hV(e,t){if(e&1&&(C(0,"div",2),Z(1,"img",8),C(2,"div",4)(3,"h4"),R(4),D(),C(5,"p"),R(6),D(),Te(7,pV,3,2,"div")(8,fV,1,1,"img",5),D()()),e&2){let n=te(),r=n.$implicit,i=n.$index;_(),se("src",i===1?"silver.png":i===2?"gold.png":"fourth-challenge.png",et)("alt",i===1?"Silver medal":i===2?"Gold medal":"Platinum medal"),_(3),ge(r.name),_(2),ge(r.task),_(),fe(r.hintCode?7:-1),_(),fe(r.imageSlot!=null&&r.imageSlot.base64?8:-1)}}function mV(e,t){if(e&1&&Te(0,hV,9,6,"div",2),e&2){let n=t.$index;fe(n>0?0:-1)}}var bu=class e{challenges;programmingLanguage;static \u0275fac=function(n){return new(n||e)};static \u0275cmp=pe({type:e,selectors:[["app-challenge-section"]],inputs:{challenges:"challenges",programmingLanguage:"programmingLanguage"},standalone:!0,features:[he],decls:4,vars:1,consts:[[1,"challenge-section"],[1,"challenge-header-group"],[1,"challenge-item"],["src","bronze.png","alt","Bronze medal",1,"challenge-medal"],[1,"challenge-content"],["alt","Challenge illustration",1,"challenge-image",3,"src"],[1,"code-block","code-block--small"],["prismHighlight","",3,"code","language"],[1,"challenge-medal",3,"src","alt"]],template:function(n,r){n&1&&(C(0,"section",0),Te(1,dV,12,4,"div",1),ut(2,mV,1,1,null,null,lt),D()),n&2&&(_(),fe(r.challenges.length>0?1:-1),_(),ct(r.challenges))},dependencies:[ci],styles:[".challenge-section[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:3mm}.challenge-header-group[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:3mm;break-inside:avoid}.challenge-item[_ngcontent-%COMP%]{display:flex;align-items:flex-start;gap:.75rem;padding:.5rem;border-radius:var(--section-card-border-radius);background-color:var(--section-card-color);box-shadow:0 4px 6px #0000000d,0 1px 3px #0000000a;break-inside:avoid}.challenge-medal[_ngcontent-%COMP%]{width:40px;height:40px;flex-shrink:0;object-fit:contain}.challenge-content[_ngcontent-%COMP%]{flex:1;min-width:0}.challenge-content[_ngcontent-%COMP%] h4[_ngcontent-%COMP%]{margin:0 0 .25rem;font-size:13pt;font-weight:600;color:#333;font-family:PoppinsSemiBold}.challenge-content[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0;font-size:11pt;line-height:1.4;white-space:pre-wrap;color:#343434}.challenge-image[_ngcontent-%COMP%]{display:block;max-width:100%;max-height:80mm;width:auto;object-fit:contain;margin-top:3mm;border-radius:4px}"]})};var Su=class e{newProject;static \u0275fac=function(n){return new(n||e)};static \u0275cmp=pe({type:e,selectors:[["app-new-project-section"]],inputs:{newProject:"newProject"},standalone:!0,features:[he],decls:12,vars:2,consts:[[1,"new-project-section"],[1,"new-project-card"],["src","new-project.png","alt","New Project Star",1,"new-project-star"],[1,"new-project-content"]],template:function(n,r){n&1&&(C(0,"section",0)(1,"h3"),R(2,"Super Challenge"),D(),C(3,"p"),R(4,"\u{1F4A1} Make a New Project and let's see your best!"),D(),C(5,"div",1),Z(6,"img",2),C(7,"div",3)(8,"h4"),R(9),D(),C(10,"p"),R(11),D()()()()),n&2&&(_(9),ge(r.newProject.name),_(2),ge(r.newProject.task))},styles:[".new-project-section[_ngcontent-%COMP%]{break-inside:avoid}.new-project-section[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin-bottom:3mm}.new-project-section[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{text-align:center;color:#404040}.new-project-card[_ngcontent-%COMP%]{display:flex;align-items:flex-start;gap:1rem;padding:.75rem 1rem;border-radius:12px;background:#e9d5ff;border:2px solid #a855f7;box-shadow:0 2px 8px #a855f714}.new-project-star[_ngcontent-%COMP%]{width:50px;height:50px;flex-shrink:0;object-fit:contain}.new-project-content[_ngcontent-%COMP%]{flex:1;min-width:0}.new-project-content[_ngcontent-%COMP%] h4[_ngcontent-%COMP%]{margin:0 0 .35rem;font-size:13pt;color:#6b21a8;font-family:PoppinsSemiBold}.new-project-content[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0;font-size:11pt;text-align:left;color:#581c87}"]})};function gV(e,t){if(e&1&&(C(0,"a",1)(1,"div",3)(2,"div",4),Z(3,"img",5),C(4,"p"),R(5,"Quiz"),D()()()()),e&2){let n=te();se("href",n.testYourselfData,et)}}function yV(e,t){if(e&1&&(C(0,"p",2),R(1),D()),e&2){let n=te();_(),ge(n.testYourselfData)}}var xu=class e{testYourselfData;get isUrl(){if(!this.testYourselfData)return!1;try{return new URL(this.testYourselfData),!0}catch{return!1}}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=pe({type:e,selectors:[["app-test-yourself"]],inputs:{testYourselfData:"testYourselfData"},standalone:!0,features:[he],decls:7,vars:1,consts:[[1,"test-yourself-section"],["target","_blank",3,"href"],[1,"test-yourself-text"],[1,"button-container"],[1,"test-yourself-button"],["src","click.svg",1,"click-icon"]],template:function(n,r){n&1&&(C(0,"section",0)(1,"h3"),R(2,"Test Yourself"),D(),C(3,"p"),R(4,"\u{1F4A1} Time to jump into the quiz, click below"),D(),Te(5,gV,6,1,"a",1)(6,yV,2,1,"p",2),D()),n&2&&(_(5),fe(r.isUrl?5:6))},styles:[".test-yourself-section[_ngcontent-%COMP%]{break-inside:avoid}.test-yourself-section[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{text-align:center;margin-bottom:0;color:#404040}.button-container[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center}.test-yourself-button[_ngcontent-%COMP%]{margin-top:6mm;display:flex;background-color:#dc5a2b;border:1mm solid rgb(212,76,27);border-radius:10mm;padding:4mm 15mm;max-width:50%;cursor:pointer;font-family:PoppinsSemiBold;font-size:13pt;gap:5mm;box-shadow:0 4px 6px #0000000d,0 1px 3px #0000000a;justify-content:center;align-items:center;text-decoration:none!important}.test-yourself-button[_ngcontent-%COMP%] .click-icon[_ngcontent-%COMP%]{width:10mm}.test-yourself-button[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0;color:#fff}.test-yourself-text[_ngcontent-%COMP%]{margin:.5rem 0 0;font-size:.95rem;line-height:1.4;white-space:pre-wrap;color:#333}"]})};var wu=class e{tryItOutData;static \u0275fac=function(n){return new(n||e)};static \u0275cmp=pe({type:e,selectors:[["app-try-it-out"]],inputs:{tryItOutData:"tryItOutData"},standalone:!0,features:[he],decls:15,vars:0,consts:[[1,"try-it-out-section"],[1,"try-it-out-container"],[1,"info-buttons-container"],[1,"info-button","save-code"],["src","save.png","width","30px"],[1,"info-button","run-code"],["src","play.png","width","30px"]],template:function(n,r){n&1&&(C(0,"section",0)(1,"h3"),R(2,"Try It Out!"),D(),C(3,"div",1)(4,"p"),R(5,"\u{1F4A1} Always test your code, see how it works!"),D(),C(6,"div",2)(7,"div",3),Z(8,"img",4),C(9,"span"),R(10,"Save your code"),D()(),C(11,"div",5),Z(12,"img",6),C(13,"span"),R(14,"Run your code"),D()()()()())},styles:[".try-it-out-section[_ngcontent-%COMP%]{break-inside:avoid}.try-it-out-section[_ngcontent-%COMP%] .try-it-out-container[_ngcontent-%COMP%]{border-radius:var(--section-card-border-radius);background-color:var(--section-card-color);margin-top:3mm;padding-top:1mm;box-shadow:0 4px 6px #0000000d,0 1px 3px #0000000a}.try-it-out-section[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{text-align:center;color:#404040;margin-bottom:0}.info-buttons-container[_ngcontent-%COMP%]{display:flex;gap:2rem;justify-content:center}.info-button[_ngcontent-%COMP%]{margin:1rem;display:flex;gap:1rem;align-items:center;max-width:fit-content;padding:.3rem 1rem;border-radius:1rem}.info-button.run-code[_ngcontent-%COMP%]{background-color:#3dc285;border:1mm solid #30885f}.info-button.save-code[_ngcontent-%COMP%]{background-color:#407093;border:1mm solid #2d4658}"]})};function vV(e,t){if(e&1&&(C(0,"div",1)(1,"div",2)(2,"span",3),R(3),D(),C(4,"a",4),R(5,"Open code"),D()(),C(6,"p",5),R(7),D()()),e&2){let n=t.$implicit,r=t.$index;_(3),nr("Bug ",r+1,""),_(),se("href",n.linkToCode,et),_(3),ge(n.issue)}}var Cu=class e{debugSteps;static \u0275fac=function(n){return new(n||e)};static \u0275cmp=pe({type:e,selectors:[["app-debug-section"]],inputs:{debugSteps:"debugSteps"},standalone:!0,features:[he],decls:5,vars:0,consts:[[1,"debug-section"],[1,"debug-item"],[1,"debug-meta"],[1,"debug-label"],["target","_blank","rel","noopener",3,"href"],[1,"debug-issue"]],template:function(n,r){n&1&&(C(0,"section",0)(1,"h3"),R(2,"Debug"),D(),ut(3,vV,8,3,"div",1,lt),D()),n&2&&(_(3),ct(r.debugSteps))},styles:[".debug-section[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.75rem}.debug-item[_ngcontent-%COMP%]{padding:.75rem 1rem;border-radius:10px;background-color:#f8f9fa}.debug-meta[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;gap:.75rem;font-size:.85rem;color:#444}.debug-label[_ngcontent-%COMP%]{font-weight:600}.debug-meta[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:#dd5a2b;font-weight:600;text-decoration:none;border-bottom:1px solid rgba(221,90,43,.6)}.debug-issue[_ngcontent-%COMP%]{margin:.5rem 0 0;font-size:.9rem;line-height:1.4;white-space:pre-wrap;color:#333}"]})};var Eu=class e{funFact;static \u0275fac=function(n){return new(n||e)};static \u0275cmp=pe({type:e,selectors:[["app-fun-fact"]],inputs:{funFact:"funFact"},standalone:!0,features:[he],decls:14,vars:1,consts:[[1,"fun-fact-section"],[1,"fun-fact-card"],[1,"fun-fact-icon"],[1,"lightbulb"],[1,"fun-fact-content"],[1,"fun-fact-label"],[1,"fun-fact-text"],[1,"sparkle","sparkle-1"],[1,"sparkle","sparkle-2"]],template:function(n,r){n&1&&(C(0,"section",0)(1,"div",1)(2,"div",2)(3,"span",3),R(4,"\u{1F4A1}"),D()(),C(5,"div",4)(6,"p",5),R(7,"Did You Know?"),D(),C(8,"p",6),R(9),D()(),C(10,"span",7),R(11,"\u2726"),D(),C(12,"span",8),R(13,"\u2726"),D()()()),n&2&&(_(9),ge(r.funFact))},styles:[".fun-fact-section[_ngcontent-%COMP%]{break-inside:avoid;margin-top:8mm}.fun-fact-card[_ngcontent-%COMP%]{position:relative;display:flex;align-items:flex-start;gap:4mm;padding:4mm 5mm;border-radius:var(--section-card-border-radius);background:#fff6d8;border-left:4mm solid #f5a623;box-shadow:0 4px 6px #0000000d,0 1px 3px #0000000a}.fun-fact-icon[_ngcontent-%COMP%]{flex-shrink:0;width:12mm;height:12mm;display:flex;align-items:center;justify-content:center;background:#f09d12;border-radius:50%;box-shadow:0 2px 4px #f5a62333}.fun-fact-icon[_ngcontent-%COMP%] .lightbulb[_ngcontent-%COMP%]{font-size:16pt}.fun-fact-content[_ngcontent-%COMP%]{flex:1;min-width:0}.fun-fact-content[_ngcontent-%COMP%] .fun-fact-label[_ngcontent-%COMP%]{margin:0 0 1mm;font-family:PoppinsSemiBold;font-size:11pt;color:#b87a00;text-transform:uppercase;letter-spacing:.5px}.fun-fact-content[_ngcontent-%COMP%] .fun-fact-text[_ngcontent-%COMP%]{margin:0;font-size:11pt;line-height:1.5;color:#4a4a4a;white-space:pre-wrap}.sparkle[_ngcontent-%COMP%]{position:absolute;font-size:8pt}.sparkle.sparkle-1[_ngcontent-%COMP%]{top:2mm;right:4mm;color:#f5a623}.sparkle.sparkle-2[_ngcontent-%COMP%]{bottom:3mm;right:12mm;color:#e09100;font-size:6pt}"]})};var bV=["sourceContent"],SV=["previewContainer"];function xV(e,t){if(e&1&&(C(0,"section",10)(1,"p",18),R(2," Project this week: "),C(3,"span",19),R(4),D()(),C(5,"p"),R(6),D()()),e&2){let n=te(2);_(4),ge(n.data.project),_(2),ge(n.data.projectExplainer)}}function wV(e,t){if(e&1&&Z(0,"img",20),e&2){let n=t.$implicit;se("src",n.base64,et)}}function CV(e,t){if(e&1&&(C(0,"div",11),ut(1,wV,1,1,"img",20,lt),D()),e&2){let n=te(2);_(),ct(n.data.prefaceImageSlots)}}function EV(e,t){if(e&1&&Z(0,"img",13),e&2){let n=te(2);se("src",n.languageBadgeSrc,et)}}function DV(e,t){if(e&1&&Z(0,"img",14),e&2){let n=te(2);se("src",n.languageBadgeSrc,et)}}function TV(e,t){if(e&1&&Z(0,"app-debug-section",17),e&2){let n=te(2);se("debugSteps",n.data.debugSection)}}function _V(e,t){if(e&1&&Z(0,"app-challenge-section",23),e&2){let n=te(3);se("challenges",n.data.challengeSection)("programmingLanguage",n.data.programmingLanguage)}}function IV(e,t){if(e&1&&Z(0,"app-new-project-section",24),e&2){let n=te(3);se("newProject",n.data.newProject)}}function kV(e,t){if(e&1&&Z(0,"app-test-yourself",25),e&2){let n=te(3);se("testYourselfData",n.data.testYourself)}}function AV(e,t){if(e&1&&Z(0,"app-fun-fact",26),e&2){let n=te(3);se("funFact",n.data.funFact)}}function MV(e,t){if(e&1&&(Z(0,"app-add-your-code",21)(1,"app-try-it-out",22),Te(2,_V,1,2,"app-challenge-section",23)(3,IV,1,1,"app-new-project-section",24)(4,kV,1,1,"app-test-yourself",25)(5,AV,1,1,"app-fun-fact",26)),e&2){let n=te(2);se("data",n.data.addYourCodeSection)("programmingLanguage",n.data.programmingLanguage),_(),se("tryItOutData",n.data.tryItOutSection),_(),fe(n.data.challengeSection?2:-1),_(),fe(n.data.newProject?3:-1),_(),fe(n.data.testYourself?4:-1),_(),fe(n.data.funFact?5:-1)}}function OV(e,t){if(e&1&&(C(0,"div",2,1)(2,"header",4)(3,"span",5),Z(4,"img",6),D()(),C(5,"main")(6,"div",7),Z(7,"app-title-section",8),C(8,"div",9),Te(9,xV,7,2,"section",10)(10,CV,3,0,"div",11),D(),C(11,"div",12),Te(12,EV,1,1,"img",13)(13,DV,1,1,"img",14),C(14,"div",15)(15,"p"),R(16),D(),C(17,"p"),R(18),D()()()(),Z(19,"app-get-ready-section",16),Te(20,TV,1,1,"app-debug-section",17)(21,MV,6,7),D()()),e&2){let n=te();_(7),se("topic",n.data.topic)("project",n.data.project)("description",n.data.description),_(2),fe(n.data.lessonType!=="debugging lesson"&&n.data.projectExplainer.trim()?9:-1),_(),fe(n.data.prefaceImageSlots?10:-1),_(2),fe(n.data.programmingLanguage==="scratch"||n.data.programmingLanguage==="pygame"?12:13),_(4),nr("Language: ",n.languageMap[n.data.programmingLanguage],""),_(2),nr("Level: ",n.data.level,""),_(),se("getReadySectionData",n.data.getReadySection),_(),fe(n.data.lessonType==="debugging lesson"?20:21)}}var ZI=new Set(["javascript or html or css","javascript","html","css"]),NV=new Set(["scratch","small-basic","python","java","c","pygame","ruby","lua"]),Du=class e{data=null;sourceContent;previewContainer;viewReady=!1;languageMap={"javascript or html or css":"JavaScript","small-basic":"Small Basic",python:"Python",c:"C",java:"Java",scratch:"Scratch",pygame:"Pygame",ruby:"Ruby",lua:"Lua"};get languageBadgeSrc(){let t=this.data?.programmingLanguage;if(!t)return null;let n=t.toLowerCase().trim();return n==="none"?null:ZI.has(n)?"langs/javascript.png":NV.has(n)?`langs/${n}.png`:null}get languageBadgeAlt(){let t=this.data?.programmingLanguage;if(!t)return"";let n=t.toLowerCase().trim();return n==="none"?"":ZI.has(n)?"JavaScript":t}ngAfterViewInit(){this.viewReady=!0,this.data&&this.render()}ngOnChanges(t){t.data&&this.data&&this.viewReady&&setTimeout(()=>this.render(),100)}render(){return le(this,null,function*(){if(!this.sourceContent||!this.previewContainer)return;let t=window.RENDER_TOKEN;this.previewContainer.nativeElement.innerHTML="";let n=`
838
838
  @page {
839
839
  size: A4;
840
840
  margin: 42mm 7mm 10mm;
@@ -889,8 +889,8 @@ ${n.map((r,i)=>`${i+1}) ${r.toString()}`).join(`
889
889
  margin-top: 5mm;
890
890
  }
891
891
 
892
- app-test-yourself {
893
- break-before: page;
894
- }
895
- `;yield new hm().preview(this.sourceContent.nativeElement.innerHTML,[{type:"text/css",content:n}],this.previewContainer.nativeElement),t!==void 0&&(window.RENDER_DONE_TOKEN=t)})}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=pe({type:e,selectors:[["app-lesson-preview"]],viewQuery:function(n,r){if(n&1&&(qd(bV,5),qd(SV,5)),n&2){let i;Ea(i=Da())&&(r.sourceContent=i.first),Ea(i=Da())&&(r.previewContainer=i.first)}},inputs:{data:"data"},standalone:!0,features:[_n,he],decls:3,vars:1,consts:[["previewContainer",""],["sourceContent",""],[2,"display","none"],[1,"pdf-preview"],[1,"lesson-preview-header"],[1,"header-logo"],["src","digimaker-logo.png","width","200px",1,"lesson-logo"],[1,"preface-section"],[3,"topic","project","description"],[1,"details-section"],[1,"oneliner"],[1,"preface-images"],[1,"preface-language-badge"],[1,"preface-language-badge-icon",2,"width","32mm",3,"src"],[1,"preface-language-badge-icon",3,"src"],[1,"details"],[3,"getReadySectionData"],[3,"debugSteps"],[1,"project-title"],[2,"font-family","'Poppins'","font-weight","normal"],[1,"preface-image",3,"src"],[3,"data","programmingLanguage"],[3,"tryItOutData"],[3,"challenges","programmingLanguage"],[3,"newProject"],[3,"testYourselfData"],[3,"funFact"]],template:function(n,r){n&1&&(Te(0,OV,22,10,"div",2),Z(1,"div",3,0)),n&2&&fe(r.data?0:-1)},dependencies:[Qa,yu,vu,bu,Su,xu,wu,Cu,Eu],styles:[`:host{display:flex;flex-direction:column;flex:1;min-height:0}.pdf-preview{background-color:#171717;flex:1;min-height:0;width:100%;overflow-y:auto;padding:40px 0}::ng-deep .pagedjs_pages{display:flex;flex-direction:column;align-items:center}::ng-deep .pagedjs_page{background-color:#fff;margin-bottom:30px;box-shadow:0 5px 15px #00000080}::ng-deep .pagedjs_sheet{background-color:#fff}h3{color:#ff9a86;box-shadow:0 1mm;padding:1mm 20mm;background-color:#454545;border-radius:3mm;text-align:center;font-size:23px;font-family:PoppinsSemiBold}.preface-section .details-section{margin-top:5mm;padding-bottom:5mm;padding-top:1mm;border-radius:5mm;border:1mm solid rgb(189,189,189);background-color:var(--offwhite-color);box-shadow:0 4px 6px #0000001a,0 1px 3px #00000014}.preface-section .details-section .oneliner{margin-top:4mm;margin-left:12mm;margin-right:12mm;font-family:PoppinsSemiBold;text-align:center;margin-bottom:.25rem;font-weight:700}.preface-section .details-section .oneliner .project-title{text-align:center;font-size:15pt}.preface-section .details-section .oneliner .project-title p{margin:0}.lesson-preview-header{display:flex;align-items:flex-start;justify-content:space-between;gap:12mm;width:100%}.header-logo{margin-left:-4mm}.header-badges{display:flex;align-items:flex-start;gap:4mm;justify-content:flex-end;margin-right:20mm}.lesson-logo{display:block}.language-badge{display:block;width:32mm;height:18mm;object-fit:contain;object-position:right top}.preface-language-badge{margin-top:10mm;display:flex;flex-direction:column;justify-content:center;align-items:center}.preface-language-badge .preface-language-badge-icon{width:15mm;object-fit:contain}.preface-language-badge .details{margin-top:5mm}.preface-language-badge .details p{text-align:center;margin:0}.level-badge{display:block;width:20mm;height:18mm;object-fit:contain;object-position:right top}.preface-images{display:flex;flex-wrap:wrap;justify-content:center;gap:5mm}.preface-images .preface-image{max-height:30mm;max-width:70mm;width:auto;height:auto;object-fit:contain}h3{margin-bottom:.25rem}
892
+ // app-test-yourself {
893
+ // break-before: page;
894
+ // }
895
+ `;yield new hm().preview(this.sourceContent.nativeElement.innerHTML,[{type:"text/css",content:n}],this.previewContainer.nativeElement),t!==void 0&&(window.RENDER_DONE_TOKEN=t)})}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=pe({type:e,selectors:[["app-lesson-preview"]],viewQuery:function(n,r){if(n&1&&(qd(bV,5),qd(SV,5)),n&2){let i;Ea(i=Da())&&(r.sourceContent=i.first),Ea(i=Da())&&(r.previewContainer=i.first)}},inputs:{data:"data"},standalone:!0,features:[_n,he],decls:3,vars:1,consts:[["previewContainer",""],["sourceContent",""],[2,"display","none"],[1,"pdf-preview"],[1,"lesson-preview-header"],[1,"header-logo"],["src","digimaker-logo.png","width","200px",1,"lesson-logo"],[1,"preface-section"],[3,"topic","project","description"],[1,"details-section"],[1,"oneliner"],[1,"preface-images"],[1,"preface-language-badge"],[1,"preface-language-badge-icon",2,"width","32mm",3,"src"],[1,"preface-language-badge-icon",3,"src"],[1,"details"],[3,"getReadySectionData"],[3,"debugSteps"],[1,"project-title"],[2,"font-family","'Poppins'","font-weight","normal"],[1,"preface-image",3,"src"],[3,"data","programmingLanguage"],[3,"tryItOutData"],[3,"challenges","programmingLanguage"],[3,"newProject"],[3,"testYourselfData"],[3,"funFact"]],template:function(n,r){n&1&&(Te(0,OV,22,10,"div",2),Z(1,"div",3,0)),n&2&&fe(r.data?0:-1)},dependencies:[Qa,yu,vu,bu,Su,xu,wu,Cu,Eu],styles:[`:host{display:flex;flex-direction:column;flex:1;min-height:0}.pdf-preview{background-color:#171717;flex:1;min-height:0;width:100%;overflow-y:auto;padding:40px 0}::ng-deep .pagedjs_pages{display:flex;flex-direction:column;align-items:center}::ng-deep .pagedjs_page{background-color:#fff;margin-bottom:30px;box-shadow:0 5px 15px #00000080}::ng-deep .pagedjs_sheet{background-color:#fff}h3{color:#ff9a86;box-shadow:0 1mm;padding:1mm 20mm;background-color:#454545;border-radius:3mm;text-align:center;font-size:23px;font-family:PoppinsSemiBold}.preface-section .details-section{margin-top:5mm;padding-bottom:5mm;padding-top:1mm;border-radius:5mm;border:1mm solid rgb(189,189,189);background-color:var(--offwhite-color);box-shadow:0 4px 6px #0000000d,0 1px 3px #0000000a}.preface-section .details-section .oneliner{margin-top:4mm;margin-left:12mm;margin-right:12mm;font-family:PoppinsSemiBold;text-align:center;margin-bottom:.25rem;font-weight:700}.preface-section .details-section .oneliner .project-title{text-align:center;font-size:15pt}.preface-section .details-section .oneliner .project-title p{margin:0}.lesson-preview-header{display:flex;align-items:flex-start;justify-content:space-between;gap:12mm;width:100%}.header-logo{margin-left:-4mm}.header-badges{display:flex;align-items:flex-start;gap:4mm;justify-content:flex-end;margin-right:20mm}.lesson-logo{display:block}.language-badge{display:block;width:32mm;height:18mm;object-fit:contain;object-position:right top}.preface-language-badge{margin-top:10mm;display:flex;flex-direction:column;justify-content:center;align-items:center}.preface-language-badge .preface-language-badge-icon{width:15mm;object-fit:contain}.preface-language-badge .details{margin-top:5mm}.preface-language-badge .details p{text-align:center;margin:0}.level-badge{display:block;width:20mm;height:18mm;object-fit:contain;object-position:right top}.preface-images{display:flex;flex-wrap:wrap;justify-content:center;gap:5mm}.preface-images .preface-image{max-height:30mm;max-width:70mm;width:auto;height:auto;object-fit:contain}h3{margin-bottom:.25rem}
896
896
  `],encapsulation:2})};var Tu=class e{constructor(t){this.ngZone=t}data=null;pollInterval=null;ngOnInit(){document.body.classList.add("print-mode"),window.PDF_DATA&&(this.data=window.PDF_DATA),this.pollInterval=setInterval(()=>{let t=window.PDF_DATA;t!==this.data&&this.ngZone.run(()=>{this.data=t})},50)}ngOnDestroy(){document.body.classList.remove("print-mode"),this.pollInterval&&clearInterval(this.pollInterval)}static \u0275fac=function(n){return new(n||e)(In(Se))};static \u0275cmp=pe({type:e,selectors:[["app-print"]],standalone:!0,features:[he],decls:2,vars:1,consts:[[1,"print-container"],[3,"data"]],template:function(n,r){n&1&&(C(0,"div",0),Z(1,"app-lesson-preview",1),D()),n&2&&(_(),se("data",r.data))},dependencies:[Du],styles:["[_nghost-%COMP%]{display:block}.print-container[_ngcontent-%COMP%]{width:210mm;background:#fff;margin:0 auto} .pdf-preview{padding:0!important;background:#fff!important} .pagedjs_pages{background:#fff} .pagedjs_page{margin-bottom:0!important;box-shadow:none!important}"]})};var QI=[{path:"print",component:Tu}];var KI={providers:[Bv({eventCoalescing:!0}),Yb(QI)]};var _u=class e{title="frontend";static \u0275fac=function(n){return new(n||e)};static \u0275cmp=pe({type:e,selectors:[["app-root"]],standalone:!0,features:[he],decls:1,vars:0,template:function(n,r){n&1&&Z(0,"router-outlet")},dependencies:[Rp],styles:["[_nghost-%COMP%]{display:block;height:100vh;width:100vw;margin:0;padding:0;overflow:hidden}"]})};cb(_u,KI).catch(e=>console.error(e));