PageSourceSearch

https://my.inlingua.com/main-IAB25WWG.js

js inlingua.com collected 2026-09-25 19:45:01 UTC 116,071 bytes, 5 lines download raw bytes

1import{a as I,b as oe,e as Tr,f as hi,h as ke,i as Et,j as tt,m as On,n as Nn}from"./chunk-AEJPTG76.js";import{a as Dn}from"./chunk-52SIXOFG.js";import{a as jn}from"./chunk-ZN7PB4IT.js";import{a as Pn,b as Ae}from"./chunk-YLZDFVMH.js";import{a as Rt}from"./chunk-YXLOBOYR.js";import{f as Mn,o as kn}from"./chunk-VBJ2ZKW5.js";import"./chunk-JUGVT4YZ.js";import{a as wr,b as _r,c as Ar,d as Ir,f as Rr,g as de,j as Cr,k as Mr}from"./chunk-I5UH42CE.js";import{a as hr,b as gr,d as Er}from"./chunk-2PHWE3UM.js";import{a as Ct}from"./chunk-UGN5MN7I.js";import{E as Ve,F as hn,G as gn,H as vn,I as bn,J as En,K as wn,M as An,N as In,O as Cn,a as Kr,b as pe,c as qr,e as Qr,g as Hr,h as Yr,i as Zr,k as en,l as It,n as tn,o as _e,p as rn,r as nn,s as an,u as ln,w as fn,y as mn,z as pn}from"./chunk-EDB5E4ZO.js";import"./chunk-F6IMPORB.js";import{$ as Wr,$a as dn,Ab as Tn,Ea as vi,Eb as _n,G as me,Ha as sn,I as Br,J as ic,Jb as Rn,Pb as qe,Ra as on,T as Vr,Wa as cn,X as Gr,Za as un,a as kr,b as Pr,c as gi,ca as Xr,d as Tt,e as Or,f as Nr,g as Dr,h as jr,i as Fr,j as yi,k as wt,l as xr,m as z,na as Jr,p as Lr,s as ae,sb as yn,v as O,wb as Sn}from"./chunk-WD724WEO.js";import{Aa as Bs,Ad as zr,B as oi,Ba as Ks,Bd as _t,Cd as At,Da as Vs,Ea as qs,Eb as Ue,Ec as lr,F as Cs,G as be,Ga as yt,I as Le,Ia as Gs,Ic as Be,J as $e,Jb as vt,Jc as Ke,K as te,Lb as fi,N as fe,Na as Qs,Nb as Js,O as ai,Ob as er,Oc as ur,P as Ms,Pa as Ws,Pb as tr,R as Y,Rb as ir,S as ks,Sb as sr,Ta as li,Tb as St,U as Ps,Ua as ui,Ub as Te,Uc as fr,Vb as we,Vc as dr,Wb as et,X as Os,Z as ne,_ as ci,_b as rr,a as V,b as xe,ba as Ns,bc as nr,cc as or,d as Es,da as Ds,e as tc,ea as js,eb as Hs,fa as Fs,g as ht,ga as xs,gd as mr,ha as L,ia as gt,id as pr,k as ge,ka as Ls,kb as Me,la as _,ma as $s,md as bt,n as H,nc as ar,o as Ts,oa as g,ob as Ys,oc as ze,p as ws,pb as Xs,pc as di,pd as mi,q as _s,qb as Q,qc as cr,r as As,ra as W,s as Is,sa as p,ta as K,tb as Zs,td as yr,u as q,ua as Ee,ud as vr,v as ni,va as Us,vd as pi,wa as zs,wb as Je,wd as Sr,xd as br,y as Rs,yd as $r,z as y,zd as Ur}from"./chunk-S4ULIUOP.js";var Ca=tc((Nd,Ra)=>{"use strict";var Yl=function(t){return Xl(t)&&!Zl(t)};function Xl(s){return!!s&&typeof s=="object"}function Zl(s){var t=Object.prototype.toString.call(s);return t==="[object RegExp]"||t==="[object Date]"||tu(s)}var Jl=typeof Symbol=="function"&&Symbol.for,eu=Jl?Symbol.for("react.element"):60103;function tu(s){return s.$$typeof===eu}function iu(s){return Array.isArray(s)?[]:{}}function dt(s,t){return t.clone!==!1&&t.isMergeableObject(s)?Ze(iu(s),s,t):s}function su(s,t,e){return s.concat(t).map(function(i){return dt(i,e)})}function ru(s,t){if(!t.customMerge)return Ze;var e=t.customMerge(s);return typeof e=="function"?e:Ze}function nu(s){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(s).filter(function(t){return Object.propertyIsEnumerable.call(s,t)}):[]}function Aa(s){return Object.keys(s).concat(nu(s))}function Ia(s,t){try{return t in s}catch{return!1}}function ou(s,t){return Ia(s,t)&&!(Object.hasOwnProperty.call(s,t)&&Object.propertyIsEnumerable.call(s,t))}function au(s,t,e){var i={};return e.isMergeableObject(s)&&Aa(s).forEach(function(r){i[r]=dt(s[r],e)}),Aa(t).forEach(function(r){ou(s,r)||(Ia(s,r)&&e.isMergeableObject(t[r])?i[r]=ru(r,e)(s[r],t[r],e):i[r]=dt(t[r],e))}),i}function Ze(s,t,e){e=e||{},e.arrayMerge=e.arrayMerge||su,e.isMergeableObject=e.isMergeableObject||Yl,e.cloneUnlessOtherwiseSpecified=dt;var i=Array.isArray(t),r=Array.isArray(s),n=i===r;return n?i?e.arrayMerge(s,t,e):au(s,t,e):dt(t,e)}Ze.all=function(t,e){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(i,r){return Ze(i,r,e)},{})};var cu=Ze;Ra.exports=cu});function Fn(s){return new _(3e3,!1)}function sc(){return new _(3100,!1)}function rc(){return new _(3101,!1)}function nc(s){return new _(3001,!1)}function oc(s){return new _(3003,!1)}function ac(s){return new _(3004,!1)}function Ln(s,t){return new _(3005,!1)}function $n(){return new _(3006,!1)}function Un(){return new _(3007,!1)}function zn(s,t){return new _(3008,!1)}function Bn(s){return new _(3002,!1)}function Kn(s,t,e,i,r){return new _(3010,!1)}function Vn(){return new _(3011,!1)}function qn(){return new _(3012,!1)}function Gn(){return new _(3200,!1)}function Qn(){return new _(3202,!1)}function Wn(){return new _(3013,!1)}function Hn(s){return new _(3014,!1)}function Yn(s){return new _(3015,!1)}function Xn(s){return new _(3016,!1)}function Zn(s,t){return new _(3404,!1)}function cc(s){return new _(3502,!1)}function Jn(s){return new _(3503,!1)}function eo(){return new _(3300,!1)}function to(s){return new _(3504,!1)}function io(s){return new _(3301,!1)}function so(s,t){return new _(3302,!1)}function ro(s){return new _(3303,!1)}function no(s,t){return new _(3400,!1)}function oo(s){return new _(3401,!1)}function ao(s){return new _(3402,!1)}function co(s,t){return new _(3505,!1)}function ye(s){switch(s.length){case 0:return new ke;case 1:return s[0];default:return new Et(s)}}function Ti(s,t,e=new Map,i=new Map){let r=[],n=[],o=-1,a=null;if(t.forEach(c=>{let l=c.get("offset"),f=l==o,u=f&&a||new Map;
vendor: 48,762 bytes, line 1
1c.forEach((h,S)=>{let d=S,m=h;if(S!=="offset")switch(d=s.normalizePropertyName(d,r),m){case tt:m=e.get(S);break;case oe:m=i.get(S);break;default:m=s.normalizeStyleValue(S,d,m,r);break}u.set(d,m)}),f||n.push(u),a=u,o=l}),r.length)throw cc(r);return n}function Mt(s,t,e,i){switch(t){case"start":s.onStart(()=>i(e&&Si(e,"start",s)));break;case"done":s.onDone(()=>i(e&&Si(e,"done",s)));break;case"destroy":s.onDestroy(()=>i(e&&Si(e,"destroy",s)));break}}function Si(s,t,e){let i=e.totalTime,r=!!e.disabled,n=kt(s.element,s.triggerName,s.fromState,s.toState,t||s.phaseName,i??s.totalTime,r),o=s._data;return o!=null&&(n._data=o),n}function kt(s,t,e,i,r="",n=0,o){return{element:s,triggerName:t,fromState:e,toState:i,phaseName:r,totalTime:n,disabled:!!o}}function X(s,t,e){let i=s.get(t);return i||s.set(t,i=e),i}function wi(s){let t=s.indexOf(":"),e=s.substring(1,t),i=s.slice(t+1);return[e,i]}var lc=typeof document>"u"?null:document.documentElement;function Pt(s){let t=s.parentNode||s.host||null;return t===lc?null:t}function uc(s){return s.substring(1,6)=="ebkit"}var Pe=null,xn=!1;function lo(s){Pe||(Pe=fc()||{},xn=Pe.style?"WebkitAppearance"in Pe.style:!1);let t=!0;return Pe.style&&!uc(s)&&(t=s in Pe.style,!t&&xn&&(t="Webkit"+s.charAt(0).toUpperCase()+s.slice(1)in Pe.style)),t}function fc(){return typeof document<"u"?document.body:null}function _i(s,t){for(;t;){if(t===s)return!0;t=Pt(t)}return!1}function Ai(s,t,e){if(e)return Array.from(s.querySelectorAll(t));let i=s.querySelector(t);return i?[i]:[]}var dc=1e3,Ii="{{",mc="}}",Ri="ng-enter",Ot="ng-leave",it="ng-trigger",st=".ng-trigger",Ci="ng-animating",Nt=".ng-animating";function he(s){if(typeof s=="number")return s;let t=s.match(/^(-?[\.\d]+)(m?s)/);return!t||t.length<2?0:bi(parseFloat(t[1]),t[2])}function bi(s,t){switch(t){case"s":return s*dc;default:return s}}function rt(s,t,e){return s.hasOwnProperty("duration")?s:pc(s,t,e)}function pc(s,t,e){let i=/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i,r,n=0,o="";if(typeof s=="string"){let a=s.match(i);if(a===null)return t.push(Fn(s)),{duration:0,delay:0,easing:""};r=bi(parseFloat(a[1]),a[2]);let c=a[3];c!=null&&(n=bi(parseFloat(c),a[4]));let l=a[5];l&&(o=l)}else r=s;if(!e){let a=!1,c=t.length;r<0&&(t.push(sc()),a=!0),n<0&&(t.push(rc()),a=!0),a&&t.splice(c,0,Fn(s))}return{duration:r,delay:n,easing:o}}function uo(s){return s.length?s[0]instanceof Map?s:s.map(t=>new Map(Object.entries(t))):[]}function ce(s,t,e){t.forEach((i,r)=>{let n=Dt(r);e&&!e.has(r)&&e.set(r,s.style[n]),s.style[n]=i})}function Ie(s,t){t.forEach((e,i)=>{let r=Dt(i);s.style[r]=""})}function Ge(s){return Array.isArray(s)?s.length==1?s[0]:Tr(s):s}function fo(s,t,e){let i=t.params||{},r=Mi(s);r.length&&r.forEach(n=>{i.hasOwnProperty(n)||e.push(nc(n))})}var Ei=new RegExp(`${Ii}\\s*(.+?)\\s*${mc}`,"g");function Mi(s){let t=[];if(typeof s=="string"){let e;for(;e=Ei.exec(s);)t.push(e[1]);Ei.lastIndex=0}return t}function Qe(s,t,e){let i=`${s}`,r=i.replace(Ei,(n,o)=>{let a=t[o];return a==null&&(e.push(oc(o)),a=""),a.toString()});return r==i?s:r}var hc=/-+([a-z0-9])/g;function Dt(s){return s.replace(hc,(...t)=>t[1].toUpperCase())}function mo(s,t){return s===0||t===0}function po(s,t,e){if(e.size&&t.length){let i=t[0],r=[];if(e.forEach((n,o)=>{i.has(o)||r.push(o),i.set(o,n)}),r.length)for(let n=1;n<t.length;n++){let o=t[n];r.forEach(a=>o.set(a,jt(s,a)))}}return t}function Z(s,t,e){switch(t.type){case I.Trigger:return s.visitTrigger(t,e);case I.State:return s.visitState(t,e);case I.Transition:return s.visitTransition(t,e);case I.Sequence:return s.visitSequence(t,e);case I.Group:return s.visitGroup(t,e);case I.Animate:return s.visitAnimate(t,e);case I.Keyframes:return s.visitKeyframes(t,e);case I.Style:return s.visitStyle(t,e);case I.Reference:return s.visitReference(t,e);case I.AnimateChild:return s.visitAnimateChild(t,e);case I.AnimateRef:return s.visitAnimateRef(t,e);case I.Query:return s.visitQuery(t,e);case I.Stagger:return s.visitStagger(t,e);default:throw ac(t.type)}}function jt(s,t){return window.getComputedStyle(s)[t]}var Gi=(()=>{class s{validateStyleProperty(e){return lo(e)}containsElement(e,i){return _i(e,i)}getParentElement(e){return Pt(e)}query(e,i,r){return Ai(e,i,r)}computeStyle(e,i,r){return r||""}animate(e,i,r,n,o,a=[],c){return new ke(r,n)}static \u0275fac=function(i){return new(i||s)};static \u0275prov=g({token:s,factory:s.\u0275fac})}return s})(),Ne=class{static NOOP=new Gi},De=class{};var gc=new Set(["width","height","minWidth","minHeight","maxWidth","maxHeight","left","top","bottom","right","fontSize","outlineWidth","outlineOffset","paddingTop","paddingLeft","paddingBottom","paddingRight","marginTop","marginLeft","marginBottom","marginRight","borderRadius","borderWidth","borderTopWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","textIndent","perspective"]),Ut=class extends De{normalizePropertyName(t,e){return Dt(t)}normalizeStyleValue(t,e,i,r){let n="",o=i.toString().trim();if(gc.has(e)&&i!==0&&i!=="0")if(typeof i=="number")n="px";else{let a=i.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&a[1].length==0&&r.push(Ln(t,i))}return o+n}};var zt="*";function yc(s,t){let e=[];return typeof s=="string"?s.split(/\s*,\s*/).forEach(i=>vc(i,e,t)):e.push(s),e}function vc(s,t,e){if(s[0]==":"){let c=Sc(s,e);if(typeof c=="function"){t.push(c);return}s=c}let i=s.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(i==null||i.length<4)return e.push(Yn(s)),t;let r=i[1],n=i[2],o=i[3];t.push(ho(r,o));let a=r==zt&&o==zt;n[0]=="<"&&!a&&t.push(ho(o,r))}function Sc(s,t){switch(s){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(e,i)=>parseFloat(i)>parseFloat(e);case":decrement":return(e,i)=>parseFloat(i)<parseFloat(e);default:return t.push(Xn(s)),"* => *"}}var Ft=new Set(["true","1"]),xt=new Set(["false","0"]);function ho(s,t){let e=Ft.has(s)||xt.has(s),i=Ft.has(t)||xt.has(t);return(r,n)=>{let o=s==zt||s==r,a=t==zt||t==n;return!o&&e&&typeof r=="boolean"&&(o=r?Ft.has(s):xt.has(s)),!a&&i&&typeof n=="boolean"&&(a=n?Ft.has(t):xt.has(t)),o&&a}}var Ao=":self",bc=new RegExp(`s*${Ao}s*,?`,"g");function Io(s,t,e,i){return new ji(s).build(t,e,i)}var go="",ji=class{_driver;constructor(t){this._driver=t}build(t,e,i){let r=new Fi(e);return this._resetContextStyleTimingState(r),Z(this,Ge(t),r)}_resetContextStyleTimingState(t){t.currentQuerySelector=go,t.collectedStyles=new Map,t.collectedStyles.set(go,new Map),t.currentTime=0}visitTrigger(t,e){let i=e.queryCount=0,r=e.depCount=0,n=[],o=[];return t.name.charAt(0)=="@"&&e.errors.push($n()),t.definitions.forEach(a=>{if(this._resetContextStyleTimingState(e),a.type==I.State){let c=a,l=c.name;l.toString().split(/\s*,\s*/).forEach(f=>{c.name=f,n.push(this.visitState(c,e))}),c.name=l}else if(a.type==I.Transition){let c=this.visitTransition(a,e);i+=c.queryCount,r+=c.depCount,o.push(c)}else e.errors.push(Un())}),{type:I.Trigger,name:t.name,states:n,transitions:o,queryCount:i,depCount:r,options:null}}visitState(t,e){let i=this.visitStyle(t.styles,e),r=t.options&&t.options.params||null;if(i.containsDynamicStyles){let n=new Set,o=r||{};i.styles.forEach(a=>{a instanceof Map&&a.forEach(c=>{Mi(c).forEach(l=>{o.hasOwnProperty(l)||n.add(l)})})}),n.size&&e.errors.push(zn(t.name,[...n.values()]))}return{type:I.State,name:t.name,style:i,options:r?{params:r}:null}}visitTransition(t,e){e.queryCount=0,e.depCount=0;let i=Z(this,Ge(t.animation),e),r=yc(t.expr,e.errors);return{type:I.Transition,matchers:r,animation:i,queryCount:e.queryCount,depCount:e.depCount,options:Oe(t.options)}}visitSequence(t,e){return{type:I.Sequence,steps:t.steps.map(i=>Z(this,i,e)),options:Oe(t.options)}}visitGroup(t,e){let i=e.currentTime,r=0,n=t.steps.map(o=>{e.currentTime=i;let a=Z(this,o,e);return r=Math.max(r,e.currentTime),a});return e.currentTime=r,{type:I.Group,steps:n,options:Oe(t.options)}}visitAnimate(t,e){let i=_c(t.timings,e.errors);e.currentAnimateTimings=i;let r,n=t.styles?t.styles:hi({});if(n.type==I.Keyframes)r=this.visitKeyframes(n,e);else{let o=t.styles,a=!1;if(!o){a=!0;let l={};i.easing&&(l.easing=i.easing),o=hi(l)}e.currentTime+=i.duration+i.delay;let c=this.visitStyle(o,e);c.isEmptyStep=a,r=c}return e.currentAnimateTimings=null,{type:I.Animate,timings:i,style:r,options:null}}visitStyle(t,e){let i=this._makeStyleAst(t,e);return this._validateStyleAst(i,e),i}_makeStyleAst(t,e){let i=[],r=Array.isArray(t.styles)?t.styles:[t.styles];for(let a of r)typeof a=="string"?a===oe?i.push(a):e.errors.push(Bn(a)):i.push(new Map(Object.entries(a)));let n=!1,o=null;return i.forEach(a=>{if(a instanceof Map&&(a.has("easing")&&(o=a.get("easing"),a.delete("easing")),!n)){for(let c of a.values())if(c.toString().indexOf(Ii)>=0){n=!0;break}}}),{type:I.Style,styles:i,easing:o,offset:t.offset,containsDynamicStyles:n,options:null}}_validateStyleAst(t,e){let i=e.currentAnimateTimings,r=e.currentTime,n=e.currentTime;i&&n>0&&(n-=i.duration+i.delay),t.styles.forEach(o=>{typeof o!="string"&&o.forEach((a,c)=>{let l=e.collectedStyles.get(e.currentQuerySelector),f=l.get(c),u=!0;f&&(n!=r&&n>=f.startTime&&r<=f.endTime&&(e.errors.push(Kn(c,f.startTime,f.endTime,n,r)),u=!1),n=f.startTime),u&&l.set(c,{startTime:n,endTime:r}),e.options&&fo(a,e.options,e.errors)})})}visitKeyframes(t,e){let i={type:I.Keyframes,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push(Vn()),i;let r=1,n=0,o=[],a=!1,c=!1,l=0,f=t.steps.map(A=>{let R=this._makeStyleAst(A,e),F=R.offset!=null?R.offset:wc(R.styles),T=0;return F!=null&&(n++,T=R.offset=F),c=c||T<0||T>1,a=a||T<l,l=T,o.push(T),R});c&&e.errors.push(qn()),a&&e.errors.push(Gn());let u=t.steps.length,h=0;n>0&&n<u?e.errors.push(Qn()):n==0&&(h=r/(u-1));let S=u-1,d=e.currentTime,m=e.currentAnimateTimings,w=m.duration;return f.forEach((A,R)=>{let F=h>0?R==S?1:h*R:o[R],T=F*w;e.currentTime=d+m.delay+T,m.duration=T,this._validateStyleAst(A,e),A.offset=F,i.styles.push(A)}),i}visitReference(t,e){return{type:I.Reference,animation:Z(this,Ge(t.animation),e),options:Oe(t.options)}}visitAnimateChild(t,e){return e.depCount++,{type:I.AnimateChild,options:Oe(t.options)}}visitAnimateRef(t,e){return{type:I.AnimateRef,animation:this.visitReference(t.animation,e),options:Oe(t.options)}}visitQuery(t,e){let i=e.currentQuerySelector,r=t.options||{};e.queryCount++,e.currentQuery=t;let[n,o]=Ec(t.selector);e.currentQuerySelector=i.length?i+" "+n:n,X(e.collectedStyles,e.currentQuerySelector,new Map);let a=Z(this,Ge(t.animation),e);return e.currentQuery=null,e.currentQuerySelector=i,{type:I.Query,selector:n,limit:r.limit||0,optional:!!r.optional,includeSelf:o,animation:a,originalSelector:t.selector,options:Oe(t.options)}}visitStagger(t,e){e.currentQuery||e.errors.push(Wn());let i=t.timings==="full"?{duration:0,delay:0,easing:"full"}:rt(t.timings,e.errors,!0);return{type:I.Stagger,animation:Z(this,Ge(t.animation),e),timings:i,options:null}}};function Ec(s){let t=!!s.split(/\s*,\s*/).find(e=>e==Ao);return t&&(s=s.replace(bc,"")),s=s.replace(/@\*/g,st).replace(/@\w+/g,e=>st+"-"+e.slice(1)).replace(/:animating/g,Nt),[s,t]}function Tc(s){return s?V({},s):null}var Fi=class{errors;queryCount=0;depCount=0;currentTransition=null;currentQuery=null;currentQuerySelector=null;currentAnimateTimings=null;currentTime=0;collectedStyles=new Map;options=null;unsupportedCSSPropertiesFound=new Set;constructor(t){this.errors=t}};function wc(s){if(typeof s=="string")return null;let t=null;if(Array.isArray(s))s.forEach(e=>{if(e instanceof Map&&e.has("offset")){let i=e;t=parseFloat(i.get("offset")),i.delete("offset")}});else if(s instanceof Map&&s.has("offset")){let e=s;t=parseFloat(e.get("offset")),e.delete("offset")}return t}function _c(s,t){if(s.hasOwnProperty("duration"))return s;if(typeof s=="number"){let n=rt(s,t).duration;return ki(n,0,"")}let e=s;if(e.split(/\s+/).some(n=>n.charAt(0)=="{"&&n.charAt(1)=="{")){let n=ki(0,0,"");return n.dynamic=!0,n.strValue=e,n}let r=rt(e,t);return ki(r.duration,r.delay,r.easing)}function Oe(s){return s?(s=V({},s),s.params&&(s.params=Tc(s.params))):s={},s}function ki(s,t,e){return{duration:s,delay:t,easing:e}}function Qi(s,t,e,i,r,n,o=null,a=!1){return{type:1,element:s,keyframes:t,preStyleProps:e,postStyleProps:i,duration:r,delay:n,totalTime:r+n,easing:o,subTimeline:a}}var ot=class{_map=new Map;get(t){return this._map.get(t)||[]}append(t,e){let i=this._map.get(t);i||this._map.set(t,i=[]),i.push(...e)}has(t){return this._map.has(t)}clear(){this._map.clear()}},Ac=1,Ic=":enter",Rc=new RegExp(Ic,"g"),Cc=":leave",Mc=new RegExp(Cc,"g");function Ro(s,t,e,i,r,n=new Map,o=new Map,a,c,l=[]){return new xi().buildKeyframes(s,t,e,i,r,n,o,a,c,l)}var xi=class{buildKeyframes(t,e,i,r,n,o,a,c,l,f=[]){l=l||new ot;let u=new Li(t,e,l,r,n,f,[]);u.options=c;let h=c.delay?he(c.delay):0;u.currentTimeline.delayNextStep(h),u.currentTimeline.setStyles([o],null,u.errors,c),Z(this,i,u);let S=u.timelines.filter(d=>d.containsAnimation());if(S.length&&a.size){let d;for(let m=S.length-1;m>=0;m--){let w=S[m];if(w.element===e){d=w;break}}d&&!d.allowOnlyTimelineStyles()&&d.setStyles([a],null,u.errors,c)}return S.length?S.map(d=>d.buildKeyframes()):[Qi(e,[],[],[],0,h,"",!1)]}visitTrigger(t,e){}visitState(t,e){}visitTransition(t,e){}visitAnimateChild(t,e){let i=e.subInstructions.get(e.element);if(i){let r=e.createSubContext(t.options),n=e.currentTimeline.currentTime,o=this._visitSubInstructions(i,r,r.options);n!=o&&e.transformIntoNewTimeline(o)}e.previousNode=t}visitAnimateRef(t,e){let i=e.createSubContext(t.options);i.transformIntoNewTimeline(),this._applyAnimationRefDelays([t.options,t.animation.options],e,i),this.visitReference(t.animation,i),e.transformIntoNewTimeline(i.currentTimeline.currentTime),e.previousNode=t}_applyAnimationRefDelays(t,e,i){for(let r of t){let n=r?.delay;if(n){let o=typeof n=="number"?n:he(Qe(n,r?.params??{},e.errors));i.delayNextStep(o)}}}_visitSubInstructions(t,e,i){let n=e.currentTimeline.currentTime,o=i.duration!=null?he(i.duration):null,a=i.delay!=null?he(i.delay):null;return o!==0&&t.forEach(c=>{let l=e.appendInstructionToTimeline(c,o,a);n=Math.max(n,l.duration+l.delay)}),n}visitReference(t,e){e.updateOptions(t.options,!0),Z(this,t.animation,e),e.previousNode=t}visitSequence(t,e){let i=e.subContextCount,r=e,n=t.options;if(n&&(n.params||n.delay)&&(r=e.createSubContext(n),r.transformIntoNewTimeline(),n.delay!=null)){r.previousNode.type==I.Style&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=Bt);let o=he(n.delay);r.delayNextStep(o)}t.steps.length&&(t.steps.forEach(o=>Z(this,o,r)),r.currentTimeline.applyStylesToKeyframe(),r.subContextCount>i&&r.transformIntoNewTimeline()),e.previousNode=t}visitGroup(t,e){let i=[],r=e.currentTimeline.currentTime,n=t.options&&t.options.delay?he(t.options.delay):0;t.steps.forEach(o=>{let a=e.createSubContext(t.options);n&&a.delayNextStep(n),Z(this,o,a),r=Math.max(r,a.currentTimeline.currentTime),i.push(a.currentTimeline)}),i.forEach(o=>e.currentTimeline.mergeTimelineCollectedStyles(o)),e.transformIntoNewTimeline(r),e.previousNode=t}_visitTiming(t,e){if(t.dynamic){let i=t.strValue,r=e.params?Qe(i,e.params,e.errors):i;return rt(r,e.errors)}else return{duration:t.duration,delay:t.delay,easing:t.easing}}visitAnimate(t,e){let i=e.currentAnimateTimings=this._visitTiming(t.timings,e),r=e.currentTimeline;i.delay&&(e.incrementTime(i.delay),r.snapshotCurrentStyles());let n=t.style;n.type==I.Keyframes?this.visitKeyframes(n,e):(e.incrementTime(i.duration),this.visitStyle(n,e),r.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=t}visitStyle(t,e){let i=e.currentTimeline,r=e.currentAnimateTimings;!r&&i.hasCurrentStyleProperties()&&i.forwardFrame();let n=r&&r.easing||t.easing;t.isEmptyStep?i.applyEmptyStep(n):i.setStyles(t.styles,n,e.errors,e.options),e.previousNode=t}visitKeyframes(t,e){let i=e.currentAnimateTimings,r=e.currentTimeline.duration,n=i.duration,a=e.createSubContext().currentTimeline;a.easing=i.easing,t.styles.forEach(c=>{let l=c.offset||0;a.forwardTime(l*n),a.setStyles(c.styles,c.easing,e.errors,e.options),a.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(a),e.transformIntoNewTimeline(r+n),e.previousNode=t}visitQuery(t,e){let i=e.currentTimeline.currentTime,r=t.options||{},n=r.delay?he(r.delay):0;n&&(e.previousNode.type===I.Style||i==0&&e.currentTimeline.hasCurrentStyleProperties())&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=Bt);let o=i,a=e.invokeQuery(t.selector,t.originalSelector,t.limit,t.includeSelf,!!r.optional,e.errors);e.currentQueryTotal=a.length;let c=null;a.forEach((l,f)=>{e.currentQueryIndex=f;let u=e.createSubContext(t.options,l);n&&u.delayNextStep(n),l===e.element&&(c=u.currentTimeline),Z(this,t.animation,u),u.currentTimeline.applyStylesToKeyframe();let h=u.currentTimeline.currentTime;o=Math.max(o,h)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(o),c&&(e.currentTimeline.mergeTimelineCollectedStyles(c),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=t}visitStagger(t,e){let i=e.parentContext,r=e.currentTimeline,n=t.timings,o=Math.abs(n.duration),a=o*(e.currentQueryTotal-1),c=o*e.currentQueryIndex;switch(n.duration<0?"reverse":n.easing){case"reverse":c=a-c;break;case"full":c=i.currentStaggerTime;break}let f=e.currentTimeline;c&&f.delayNextStep(c);let u=f.currentTime;Z(this,t.animation,e),e.previousNode=t,i.currentStaggerTime=r.currentTime-u+(r.startTime-i.currentTimeline.startTime)}},Bt={},Li=class s{_driver;element;subInstructions;_enterClassName;_leaveClassName;errors;timelines;parentContext=null;currentTimeline;currentAnimateTimings=null;previousNode=Bt;subContextCount=0;options={};currentQueryIndex=0;currentQueryTotal=0;currentStaggerTime=0;constructor(t,e,i,r,n,o,a,c){this._driver=t,this.element=e,this.subInstructions=i,this._enterClassName=r,this._leaveClassName=n,this.errors=o,this.timelines=a,this.currentTimeline=c||new Kt(this._driver,e,0),a.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(t,e){if(!t)return;let i=t,r=this.options;i.duration!=null&&(r.duration=he(i.duration)),i.delay!=null&&(r.delay=he(i.delay));let n=i.params;if(n){let o=r.params;o||(o=this.options.params={}),Object.keys(n).forEach(a=>{(!e||!o.hasOwnProperty(a))&&(o[a]=Qe(n[a],o,this.errors))})}}_copyOptions(){let t={};if(this.options){let e=this.options.params;if(e){let i=t.params={};Object.keys(e).forEach(r=>{i[r]=e[r]})}}return t}createSubContext(t=null,e,i){let r=e||this.element,n=new s(this._driver,r,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(r,i||0));return n.previousNode=this.previousNode,n.currentAnimateTimings=this.currentAnimateTimings,n.options=this._copyOptions(),n.updateOptions(t),n.currentQueryIndex=this.currentQueryIndex,n.currentQueryTotal=this.currentQueryTotal,n.parentContext=this,this.subContextCount++,n}transformIntoNewTimeline(t){return this.previousNode=Bt,this.currentTimeline=this.currentTimeline.fork(this.element,t),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(t,e,i){let r={duration:e??t.duration,delay:this.currentTimeline.currentTime+(i??0)+t.delay,easing:""},n=new $i(this._driver,t.element,t.keyframes,t.preStyleProps,t.postStyleProps,r,t.stretchStartingKeyframe);return this.timelines.push(n),r}incrementTime(t){this.currentTimeline.forwardTime(this.currentTimeline.duration+t)}delayNextStep(t){t>0&&this.currentTimeline.delayNextStep(t)}invokeQuery(t,e,i,r,n,o){let a=[];if(r&&a.push(this.element),t.length>0){t=t.replace(Rc,"."+this._enterClassName),t=t.replace(Mc,"."+this._leaveClassName);let c=i!=1,l=this._driver.query(this.element,t,c);i!==0&&(l=i<0?l.slice(l.length+i,l.length):l.slice(0,i)),a.push(...l)}return!n&&a.length==0&&o.push(Hn(e)),a}},Kt=class s{_driver;element;startTime;_elementTimelineStylesLookup;duration=0;easing=null;_previousKeyframe=new Map;_currentKeyframe=new Map;_keyframes=new Map;_styleSummary=new Map;_localTimelineStyles=new Map;_globalTimelineStyles;_pendingStyles=new Map;_backFill=new Map;_currentEmptyStepKeyframe=null;constructor(t,e,i,r){this._driver=t,this.element=e,this.startTime=i,this._elementTimelineStylesLookup=r,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(t){let e=this._keyframes.size===1&&this._pendingStyles.size;this.duration||e?(this.forwardTime(this.currentTime+t),e&&this.snapshotCurrentStyles()):this.startTime+=t}fork(t,e){return this.applyStylesToKeyframe(),new s(this._driver,t,e||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=Ac,this._loadKeyframe()}forwardTime(t){this.applyStylesToKeyframe(),this.duration=t,this._loadKeyframe()}_updateStyle(t,e){this._localTimelineStyles.set(t,e),this._globalTimelineStyles.set(t,e),this._styleSummary.set(t,{time:this.currentTime,value:e})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(t){t&&this._previousKeyframe.set("easing",t);for(let[e,i]of this._globalTimelineStyles)this._backFill.set(e,i||oe),this._currentKeyframe.set(e,oe);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(t,e,i,r){e&&this._previousKeyframe.set("easing",e);let n=r&&r.params||{},o=kc(t,this._globalTimelineStyles);for(let[a,c]of o){let l=Qe(c,n,i);this._pendingStyles.set(a,l),this._localTimelineStyles.has(a)||this._backFill.set(a,this._globalTimelineStyles.get(a)??oe),this._updateStyle(a,l)}}applyStylesToKeyframe(){this._pendingStyles.size!=0&&(this._pendingStyles.forEach((t,e)=>{this._currentKeyframe.set(e,t)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((t,e)=>{this._currentKeyframe.has(e)||this._currentKeyframe.set(e,t)}))}snapshotCurrentStyles(){for(let[t,e]of this._localTimelineStyles)this._pendingStyles.set(t,e),this._updateStyle(t,e)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){let t=[];for(let e in this._currentKeyframe)t.push(e);return t}mergeTimelineCollectedStyles(t){t._styleSummary.forEach((e,i)=>{let r=this._styleSummary.get(i);(!r||e.time>r.time)&&this._updateStyle(i,e.value)})}buildKeyframes(){this.applyStylesToKeyframe();let t=new Set,e=new Set,i=this._keyframes.size===1&&this.duration===0,r=[];this._keyframes.forEach((a,c)=>{let l=new Map([...this._backFill,...a]);l.forEach((f,u)=>{f===tt?t.add(u):f===oe&&e.add(u)}),i||l.set("offset",c/this.duration),r.push(l)});let n=[...t.values()],o=[...e.values()];if(i){let a=r[0],c=new Map(a);a.set("offset",0),c.set("offset",1),r=[a,c]}return Qi(this.element,r,n,o,this.duration,this.startTime,this.easing,!1)}},$i=class extends Kt{keyframes;preStyleProps;postStyleProps;_stretchStartingKeyframe;timings;constructor(t,e,i,r,n,o,a=!1){super(t,e,o.delay),this.keyframes=i,this.preStyleProps=r,this.postStyleProps=n,this._stretchStartingKeyframe=a,this.timings={duration:o.duration,delay:o.delay,easing:o.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let t=this.keyframes,{delay:e,duration:i,easing:r}=this.timings;if(this._stretchStartingKeyframe&&e){let n=[],o=i+e,a=e/o,c=new Map(t[0]);c.set("offset",0),n.push(c);let l=new Map(t[0]);l.set("offset",yo(a)),n.push(l);let f=t.length-1;for(let u=1;u<=f;u++){let h=new Map(t[u]),S=h.get("offset"),d=e+S*i;h.set("offset",yo(d/o)),n.push(h)}i=o,e=0,r="",t=n}return Qi(this.element,t,this.preStyleProps,this.postStyleProps,i,e,r,!0)}};function yo(s,t=3){let e=Math.pow(10,t-1);return Math.round(s*e)/e}function kc(s,t){let e=new Map,i;return s.forEach(r=>{if(r==="*"){i??=t.keys();for(let n of i)e.set(n,oe)}else for(let[n,o]of r)e.set(n,o)}),e}function vo(s,t,e,i,r,n,o,a,c,l,f,u,h){return{type:0,element:s,triggerName:t,isRemovalTransition:r,fromState:e,fromStyles:n,toState:i,toStyles:o,timelines:a,queriedElements:c,preStyleProps:l,postStyleProps:f,totalTime:u,errors:h}}var Pi={},Vt=class{_triggerName;ast;_stateStyles;constructor(t,e,i){this._triggerName=t,this.ast=e,this._stateStyles=i}match(t,e,i,r){return Pc(this.ast.matchers,t,e,i,r)}buildStyles(t,e,i){let r=this._stateStyles.get("*");return t!==void 0&&(r=this._stateStyles.get(t?.toString())||r),r?r.buildStyles(e,i):new Map}build(t,e,i,r,n,o,a,c,l,f){let u=[],h=this.ast.options&&this.ast.options.params||Pi,S=a&&a.params||Pi,d=this.buildStyles(i,S,u),m=c&&c.params||Pi,w=this.buildStyles(r,m,u),A=new Set,R=new Map,F=new Map,T=r==="void",P={params:Co(m,h),delay:this.ast.options?.delay},C=f?[]:Ro(t,e,this.ast.animation,n,o,d,w,P,l,u),$=0;return C.forEach(x=>{$=Math.max(x.duration+x.delay,$)}),u.length?vo(e,this._triggerName,i,r,T,d,w,[],[],R,F,$,u):(C.forEach(x=>{let re=x.element,Fe=X(R,re,new Set);x.preStyleProps.forEach(Re=>Fe.add(Re));let ys=X(F,re,new Set);x.postStyleProps.forEach(Re=>ys.add(Re)),re!==e&&A.add(re)}),vo(e,this._triggerName,i,r,T,d,w,C,[...A.values()],R,F,$))}};function Pc(s,t,e,i,r){return s.some(n=>n(t,e,i,r))}function Co(s,t){let e=V({},t);return Object.entries(s).forEach(([i,r])=>{r!=null&&(e[i]=r)}),e}var Ui=class{styles;defaultParams;normalizer;constructor(t,e,i){this.styles=t,this.defaultParams=e,this.normalizer=i}buildStyles(t,e){let i=new Map,r=Co(t,this.defaultParams);return this.styles.styles.forEach(n=>{typeof n!="string"&&n.forEach((o,a)=>{o&&(o=Qe(o,r,e));let c=this.normalizer.normalizePropertyName(a,e);o=this.normalizer.normalizeStyleValue(a,c,o,e),i.set(a,o)})}),i}};function Oc(s,t,e){return new zi(s,t,e)}var zi=class{name;ast;_normalizer;transitionFactories=[];fallbackTransition;states=new Map;constructor(t,e,i){this.name=t,this.ast=e,this._normalizer=i,e.states.forEach(r=>{let n=r.options&&r.options.params||{};this.states.set(r.name,new Ui(r.style,n,i))}),So(this.states,"true","1"),So(this.states,"false","0"),e.transitions.forEach(r=>{this.transitionFactories.push(new Vt(t,r,this.states))}),this.fallbackTransition=Nc(t,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(t,e,i,r){return this.transitionFactories.find(o=>o.match(t,e,i,r))||null}matchStyles(t,e,i){return this.fallbackTransition.buildStyles(t,e,i)}};function Nc(s,t,e){let i=[(o,a)=>!0],r={type:I.Sequence,steps:[],options:null},n={type:I.Transition,animation:r,matchers:i,options:null,queryCount:0,depCount:0};return new Vt(s,n,t)}function So(s,t,e){s.has(t)?s.has(e)||s.set(e,s.get(t)):s.has(e)&&s.set(t,s.get(e))}var Dc=new ot,Bi=class{bodyNode;_driver;_normalizer;_animations=new Map;_playersById=new Map;players=[];constructor(t,e,i){this.bodyNode=t,this._driver=e,this._normalizer=i}register(t,e){let i=[],r=[],n=Io(this._driver,e,i,r);if(i.length)throw Jn(i);this._animations.set(t,n)}_buildPlayer(t,e,i){let r=t.element,n=Ti(this._normalizer,t.keyframes,e,i);return this._driver.animate(r,n,t.duration,t.delay,t.easing,[],!0)}create(t,e,i={}){let r=[],n=this._animations.get(t),o,a=new Map;if(n?(o=Ro(this._driver,e,n,Ri,Ot,new Map,new Map,i,Dc,r),o.forEach(f=>{let u=X(a,f.element,new Map);f.postStyleProps.forEach(h=>u.set(h,null))})):(r.push(eo()),o=[]),r.length)throw to(r);a.forEach((f,u)=>{f.forEach((h,S)=>{f.set(S,this._driver.computeStyle(u,S,oe))})});let c=o.map(f=>{let u=a.get(f.element);return this._buildPlayer(f,new Map,u)}),l=ye(c);return this._playersById.set(t,l),l.onDestroy(()=>this.destroy(t)),this.players.push(l),l}destroy(t){let e=this._getPlayer(t);e.destroy(),this._playersById.delete(t);let i=this.players.indexOf(e);i>=0&&this.players.splice(i,1)}_getPlayer(t){let e=this._playersById.get(t);if(!e)throw io(t);return e}listen(t,e,i,r){let n=kt(e,"","","");return Mt(this._getPlayer(t),i,n,r),()=>{}}command(t,e,i,r){if(i=="register"){this.register(t,r[0]);return}if(i=="create"){let o=r[0]||{};this.create(t,e,o);return}let n=this._getPlayer(t);switch(i){case"play":n.play();break;case"pause":n.pause();break;case"reset":n.reset();break;case"restart":n.restart();break;case"finish":n.finish();break;case"init":n.init();break;case"setPosition":n.setPosition(parseFloat(r[0]));break;case"destroy":this.destroy(t);break}}},bo="ng-animate-queued",jc=".ng-animate-queued",Oi="ng-animate-disabled",Fc=".ng-animate-disabled",xc="ng-star-inserted",Lc=".ng-star-inserted",$c=[],Mo={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Uc={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},le="__ng_removed",at=class{namespaceId;value;options;get params(){return this.options.params}constructor(t,e=""){this.namespaceId=e;let i=t&&t.hasOwnProperty("value"),r=i?t.value:t;if(this.value=Bc(r),i){let n=t,{value:o}=n,a=Es(n,["value"]);this.options=a}else this.options={};this.options.params||(this.options.params={})}absorbOptions(t){let e=t.params;if(e){let i=this.options.params;Object.keys(e).forEach(r=>{i[r]==null&&(i[r]=e[r])})}}},nt="void",Ni=new at(nt),Ki=class{id;hostElement;_engine;players=[];_triggers=new Map;_queue=[];_elementListeners=new Map;_hostClassName;constructor(t,e,i){this.id=t,this.hostElement=e,this._engine=i,this._hostClassName="ng-tns-"+t,se(e,this._hostClassName)}listen(t,e,i,r){if(!this._triggers.has(e))throw so(i,e);if(i==null||i.length==0)throw ro(e);if(!Kc(i))throw no(i,e);let n=X(this._elementListeners,t,[]),o={name:e,phase:i,callback:r};n.push(o);let a=X(this._engine.statesByElement,t,new Map);return a.has(e)||(se(t,it),se(t,it+"-"+e),a.set(e,Ni)),()=>{this._engine.afterFlush(()=>{let c=n.indexOf(o);c>=0&&n.splice(c,1),this._triggers.has(e)||a.delete(e)})}}register(t,e){return this._triggers.has(t)?!1:(this._triggers.set(t,e),!0)}_getTrigger(t){let e=this._triggers.get(t);if(!e)throw oo(t);return e}trigger(t,e,i,r=!0){let n=this._getTrigger(e),o=new ct(this.id,e,t),a=this._engine.statesByElement.get(t);a||(se(t,it),se(t,it+"-"+e),this._engine.statesByElement.set(t,a=new Map));let c=a.get(e),l=new at(i,this.id);if(!(i&&i.hasOwnProperty("value"))&&c&&l.absorbOptions(c.options),a.set(e,l),c||(c=Ni),!(l.value===nt)&&c.value===l.value){if(!Gc(c.params,l.params)){let m=[],w=n.matchStyles(c.value,c.params,m),A=n.matchStyles(l.value,l.params,m);m.length?this._engine.reportError(m):this._engine.afterFlush(()=>{Ie(t,w),ce(t,A)})}return}let h=X(this._engine.playersByElement,t,[]);h.forEach(m=>{m.namespaceId==this.id&&m.triggerName==e&&m.queued&&m.destroy()});let S=n.matchTransition(c.value,l.value,t,l.params),d=!1;if(!S){if(!r)return;S=n.fallbackTransition,d=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:e,transition:S,fromState:c,toState:l,player:o,isFallbackTransition:d}),d||(se(t,bo),o.onStart(()=>{We(t,bo)})),o.onDone(()=>{let m=this.players.indexOf(o);m>=0&&this.players.splice(m,1);let w=this._engine.playersByElement.get(t);if(w){let A=w.indexOf(o);A>=0&&w.splice(A,1)}}),this.players.push(o),h.push(o),o}deregister(t){this._triggers.delete(t),this._engine.statesByElement.forEach(e=>e.delete(t)),this._elementListeners.forEach((e,i)=>{this._elementListeners.set(i,e.filter(r=>r.name!=t))})}clearElementCache(t){this._engine.statesByElement.delete(t),this._elementListeners.delete(t);let e=this._engine.playersByElement.get(t);e&&(e.forEach(i=>i.destroy()),this._engine.playersByElement.delete(t))}_signalRemovalForInnerTriggers(t,e){let i=this._engine.driver.query(t,st,!0);i.forEach(r=>{if(r[le])return;let n=this._engine.fetchNamespacesByElement(r);n.size?n.forEach(o=>o.triggerLeaveAnimation(r,e,!1,!0)):this.clearElementCache(r)}),this._engine.afterFlushAnimationsDone(()=>i.forEach(r=>this.clearElementCache(r)))}triggerLeaveAnimation(t,e,i,r){let n=this._engine.statesByElement.get(t),o=new Map;if(n){let a=[];if(n.forEach((c,l)=>{if(o.set(l,c.value),this._triggers.has(l)){let f=this.trigger(t,l,nt,r);f&&a.push(f)}}),a.length)return this._engine.markElementAsRemoved(this.id,t,!0,e,o),i&&ye(a).onDone(()=>this._engine.processLeaveNode(t)),!0}return!1}prepareLeaveAnimationListeners(t){let e=this._elementListeners.get(t),i=this._engine.statesByElement.get(t);if(e&&i){let r=new Set;e.forEach(n=>{let o=n.name;if(r.has(o))return;r.add(o);let c=this._triggers.get(o).fallbackTransition,l=i.get(o)||Ni,f=new at(nt),u=new ct(this.id,o,t);this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:o,transition:c,fromState:l,toState:f,player:u,isFallbackTransition:!0})})}}removeNode(t,e){let i=this._engine;if(t.childElementCount&&this._signalRemovalForInnerTriggers(t,e),this.triggerLeaveAnimation(t,e,!0))return;let r=!1;if(i.totalAnimations){let n=i.players.length?i.playersByQueriedElement.get(t):[];if(n&&n.length)r=!0;else{let o=t;for(;o=o.parentNode;)if(i.statesByElement.get(o)){r=!0;break}}}if(this.prepareLeaveAnimationListeners(t),r)i.markElementAsRemoved(this.id,t,!1,e);else{let n=t[le];(!n||n===Mo)&&(i.afterFlush(()=>this.clearElementCache(t)),i.destroyInnerAnimations(t),i._onRemovalComplete(t,e))}}insertNode(t,e){se(t,this._hostClassName)}drainQueuedTransitions(t){let e=[];return this._queue.forEach(i=>{let r=i.player;if(r.destroyed)return;let n=i.element,o=this._elementListeners.get(n);o&&o.forEach(a=>{if(a.name==i.triggerName){let c=kt(n,i.triggerName,i.fromState.value,i.toState.value);c._data=t,Mt(i.player,a.phase,c,a.callback)}}),r.markedForDestroy?this._engine.afterFlush(()=>{r.destroy()}):e.push(i)}),this._queue=[],e.sort((i,r)=>{let n=i.transition.ast.depCount,o=r.transition.ast.depCount;return n==0||o==0?n-o:this._engine.driver.containsElement(i.element,r.element)?1:-1})}destroy(t){this.players.forEach(e=>e.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,t)}},Vi=class{bodyNode;driver;_normalizer;players=[];newHostElements=new Map;playersByElement=new Map;playersByQueriedElement=new Map;statesByElement=new Map;disabledNodes=new Set;totalAnimations=0;totalQueuedPlayers=0;_namespaceLookup={};_namespaceList=[];_flushFns=[];_whenQuietFns=[];namespacesByHostElement=new Map;collectedEnterElements=[];collectedLeaveElements=[];onRemovalComplete=(t,e)=>{};_onRemovalComplete(t,e){this.onRemovalComplete(t,e)}constructor(t,e,i){this.bodyNode=t,this.driver=e,this._normalizer=i}get queuedPlayers(){let t=[];return this._namespaceList.forEach(e=>{e.players.forEach(i=>{i.queued&&t.push(i)})}),t}createNamespace(t,e){let i=new Ki(t,e,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,e)?this._balanceNamespaceList(i,e):(this.newHostElements.set(e,i),this.collectEnterElement(e)),this._namespaceLookup[t]=i}_balanceNamespaceList(t,e){let i=this._namespaceList,r=this.namespacesByHostElement;if(i.length-1>=0){let o=!1,a=this.driver.getParentElement(e);for(;a;){let c=r.get(a);if(c){let l=i.indexOf(c);i.splice(l+1,0,t),o=!0;break}a=this.driver.getParentElement(a)}o||i.unshift(t)}else i.push(t);return r.set(e,t),t}register(t,e){let i=this._namespaceLookup[t];return i||(i=this.createNamespace(t,e)),i}registerTrigger(t,e,i){let r=this._namespaceLookup[t];r&&r.register(e,i)&&this.totalAnimations++}destroy(t,e){t&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{let i=this._fetchNamespace(t);this.namespacesByHostElement.delete(i.hostElement);let r=this._namespaceList.indexOf(i);r>=0&&this._namespaceList.splice(r,1),i.destroy(e),delete this._namespaceLookup[t]}))}_fetchNamespace(t){return this._namespaceLookup[t]}fetchNamespacesByElement(t){let e=new Set,i=this.statesByElement.get(t);if(i){for(let r of i.values())if(r.namespaceId){let n=this._fetchNamespace(r.namespaceId);n&&e.add(n)}}return e}trigger(t,e,i,r){if(Lt(e)){let n=this._fetchNamespace(t);if(n)return n.trigger(e,i,r),!0}return!1}insertNode(t,e,i,r){if(!Lt(e))return;let n=e[le];if(n&&n.setForRemoval){n.setForRemoval=!1,n.setForMove=!0;let o=this.collectedLeaveElements.indexOf(e);o>=0&&this.collectedLeaveElements.splice(o,1)}if(t){let o=this._fetchNamespace(t);o&&o.insertNode(e,i)}r&&this.collectEnterElement(e)}collectEnterElement(t){this.collectedEnterElements.push(t)}markElementAsDisabled(t,e){e?this.disabledNodes.has(t)||(this.disabledNodes.add(t),se(t,Oi)):this.disabledNodes.has(t)&&(this.disabledNodes.delete(t),We(t,Oi))}removeNode(t,e,i){if(Lt(e)){let r=t?this._fetchNamespace(t):null;r?r.removeNode(e,i):this.markElementAsRemoved(t,e,!1,i);let n=this.namespacesByHostElement.get(e);n&&n.id!==t&&n.removeNode(e,i)}else this._onRemovalComplete(e,i)}markElementAsRemoved(t,e,i,r,n){this.collectedLeaveElements.push(e),e[le]={namespaceId:t,setForRemoval:r,hasAnimation:i,removedBeforeQueried:!1,previousTriggersValues:n}}listen(t,e,i,r,n){return Lt(e)?this._fetchNamespace(t).listen(e,i,r,n):()=>{}}_buildInstruction(t,e,i,r,n){return t.transition.build(this.driver,t.element,t.fromState.value,t.toState.value,i,r,t.fromState.options,t.toState.options,e,n)}destroyInnerAnimations(t){let e=this.driver.query(t,st,!0);e.forEach(i=>this.destroyActiveAnimationsForElement(i)),this.playersByQueriedElement.size!=0&&(e=this.driver.query(t,Nt,!0),e.forEach(i=>this.finishActiveQueriedAnimationOnElement(i)))}destroyActiveAnimationsForElement(t){let e=this.playersByElement.get(t);e&&e.forEach(i=>{i.queued?i.markedForDestroy=!0:i.destroy()})}finishActiveQueriedAnimationOnElement(t){let e=this.playersByQueriedElement.get(t);e&&e.forEach(i=>i.finish())}whenRenderingDone(){return new Promise(t=>{if(this.players.length)return ye(this.players).onDone(()=>t());t()})}processLeaveNode(t){let e=t[le];if(e&&e.setForRemoval){if(t[le]=Mo,e.namespaceId){this.destroyInnerAnimations(t);let i=this._fetchNamespace(e.namespaceId);i&&i.clearElementCache(t)}this._onRemovalComplete(t,e.setForRemoval)}t.classList?.contains(Oi)&&this.markElementAsDisabled(t,!1),this.driver.query(t,Fc,!0).forEach(i=>{this.markElementAsDisabled(i,!1)})}flush(t=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((i,r)=>this._balanceNamespaceList(i,r)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let i=0;i<this.collectedEnterElements.length;i++){let r=this.collectedEnterElements[i];se(r,xc)}if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){let i=[];try{e=this._flushAnimations(i,t)}finally{for(let r=0;r<i.length;r++)i[r]()}}else for(let i=0;i<this.collectedLeaveElements.length;i++){let r=this.collectedLeaveElements[i];this.processLeaveNode(r)}if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(i=>i()),this._flushFns=[],this._whenQuietFns.length){let i=this._whenQuietFns;this._whenQuietFns=[],e.length?ye(e).onDone(()=>{i.forEach(r=>r())}):i.forEach(r=>r())}}reportError(t){throw ao(t)}_flushAnimations(t,e){let i=new ot,r=[],n=new Map,o=[],a=new Map,c=new Map,l=new Map,f=new Set;this.disabledNodes.forEach(v=>{f.add(v);let b=this.driver.query(v,jc,!0);for(let E=0;E<b.length;E++)f.add(b[E])});let u=this.bodyNode,h=Array.from(this.statesByElement.keys()),S=wo(h,this.collectedEnterElements),d=new Map,m=0;S.forEach((v,b)=>{let E=Ri+m++;d.set(b,E),v.forEach(M=>se(M,E))});let w=[],A=new Set,R=new Set;for(let v=0;v<this.collectedLeaveElements.length;v++){let b=this.collectedLeaveElements[v],E=b[le];E&&E.setForRemoval&&(w.push(b),A.add(b),E.hasAnimation?this.driver.query(b,Lc,!0).forEach(M=>A.add(M)):R.add(b))}let F=new Map,T=wo(h,Array.from(A));T.forEach((v,b)=>{let E=Ot+m++;F.set(b,E),v.forEach(M=>se(M,E))}),t.push(()=>{S.forEach((v,b)=>{let E=d.get(b);v.forEach(M=>We(M,E))}),T.forEach((v,b)=>{let E=F.get(b);v.forEach(M=>We(M,E))}),w.forEach(v=>{this.processLeaveNode(v)})});let P=[],C=[];for(let v=this._namespaceList.length-1;v>=0;v--)this._namespaceList[v].drainQueuedTransitions(e).forEach(E=>{let M=E.player,B=E.element;if(P.push(M),this.collectedEnterElements.length){let G=B[le];if(G&&G.setForMove){if(G.previousTriggersValues&&G.previousTriggersValues.has(E.triggerName)){let Ce=G.previousTriggersValues.get(E.triggerName),ie=this.statesByElement.get(E.element);if(ie&&ie.has(E.triggerName)){let pt=ie.get(E.triggerName);pt.value=Ce,ie.set(E.triggerName,pt)}}M.destroy();return}}let ue=!u||!this.driver.containsElement(u,B),ee=F.get(B),Se=d.get(B),U=this._buildInstruction(E,i,Se,ee,ue);if(U.errors&&U.errors.length){C.push(U);return}if(ue){M.onStart(()=>Ie(B,U.fromStyles)),M.onDestroy(()=>ce(B,U.toStyles)),r.push(M);return}if(E.isFallbackTransition){M.onStart(()=>Ie(B,U.fromStyles)),M.onDestroy(()=>ce(B,U.toStyles)),r.push(M);return}let bs=[];U.timelines.forEach(G=>{G.stretchStartingKeyframe=!0,this.disabledNodes.has(G.element)||bs.push(G)}),U.timelines=bs,i.append(B,U.timelines);let ec={instruction:U,player:M,element:B};o.push(ec),U.queriedElements.forEach(G=>X(a,G,[]).push(M)),U.preStyleProps.forEach((G,Ce)=>{if(G.size){let ie=c.get(Ce);ie||c.set(Ce,ie=new Set),G.forEach((pt,ri)=>ie.add(ri))}}),U.postStyleProps.forEach((G,Ce)=>{let ie=l.get(Ce);ie||l.set(Ce,ie=new Set),G.forEach((pt,ri)=>ie.add(ri))})});if(C.length){let v=[];C.forEach(b=>{v.push(co(b.triggerName,b.errors))}),P.forEach(b=>b.destroy()),this.reportError(v)}let $=new Map,x=new Map;o.forEach(v=>{let b=v.element;i.has(b)&&(x.set(b,b),this._beforeAnimationBuild(v.player.namespaceId,v.instruction,$))}),r.forEach(v=>{let b=v.element;this._getPreviousPlayers(b,!1,v.namespaceId,v.triggerName,null).forEach(M=>{X($,b,[]).push(M),M.destroy()})});let re=w.filter(v=>_o(v,c,l)),Fe=new Map;To(Fe,this.driver,R,l,oe).forEach(v=>{_o(v,c,l)&&re.push(v)});let Re=new Map;S.forEach((v,b)=>{To(Re,this.driver,new Set(v),c,tt)}),re.forEach(v=>{let b=Fe.get(v),E=Re.get(v);Fe.set(v,new Map([...b?.entries()??[],...E?.entries()??[]]))});let si=[],vs=[],Ss={};o.forEach(v=>{let{element:b,player:E,instruction:M}=v;if(i.has(b)){if(f.has(b)){E.onDestroy(()=>ce(b,M.toStyles)),E.disabled=!0,E.overrideTotalTime(M.totalTime),r.push(E);return}let B=Ss;if(x.size>1){let ee=b,Se=[];for(;ee=ee.parentNode;){let U=x.get(ee);if(U){B=U;break}Se.push(ee)}Se.forEach(U=>x.set(U,B))}let ue=this._buildAnimation(E.namespaceId,M,$,n,Re,Fe);if(E.setRealPlayer(ue),B===Ss)si.push(E);else{let ee=this.playersByElement.get(B);ee&&ee.length&&(E.parentPlayer=ye(ee)),r.push(E)}}else Ie(b,M.fromStyles),E.onDestroy(()=>ce(b,M.toStyles)),vs.push(E),f.has(b)&&r.push(E)}),vs.forEach(v=>{let b=n.get(v.element);if(b&&b.length){let E=ye(b);v.setRealPlayer(E)}}),r.forEach(v=>{v.parentPlayer?v.syncPlayerEvents(v.parentPlayer):v.destroy()});for(let v=0;v<w.length;v++){let b=w[v],E=b[le];if(We(b,Ot),E&&E.hasAnimation)continue;let M=[];if(a.size){let ue=a.get(b);ue&&ue.length&&M.push(...ue);let ee=this.driver.query(b,Nt,!0);for(let Se=0;Se<ee.length;Se++){let U=a.get(ee[Se]);U&&U.length&&M.push(...U)}}let B=M.filter(ue=>!ue.destroyed);B.length?Vc(this,b,B):this.processLeaveNode(b)}return w.length=0,si.forEach(v=>{this.players.push(v),v.onDone(()=>{v.destroy();let b=this.players.indexOf(v);this.players.splice(b,1)}),v.play()}),si}afterFlush(t){this._flushFns.push(t)}afterFlushAnimationsDone(t){this._whenQuietFns.push(t)}_getPreviousPlayers(t,e,i,r,n){let o=[];if(e){let a=this.playersByQueriedElement.get(t);a&&(o=a)}else{let a=this.playersByElement.get(t);if(a){let c=!n||n==nt;a.forEach(l=>{l.queued||!c&&l.triggerName!=r||o.push(l)})}}return(i||r)&&(o=o.filter(a=>!(i&&i!=a.namespaceId||r&&r!=a.triggerName))),o}_beforeAnimationBuild(t,e,i){let r=e.triggerName,n=e.element,o=e.isRemovalTransition?void 0:t,a=e.isRemovalTransition?void 0:r;for(let c of e.timelines){let l=c.element,f=l!==n,u=X(i,l,[]);this._getPreviousPlayers(l,f,o,a,e.toState).forEach(S=>{let d=S.getRealPlayer();d.beforeDestroy&&d.beforeDestroy(),S.destroy(),u.push(S)})}Ie(n,e.fromStyles)}_buildAnimation(t,e,i,r,n,o){let a=e.triggerName,c=e.element,l=[],f=new Set,u=new Set,h=e.timelines.map(d=>{let m=d.element;f.add(m);let w=m[le];if(w&&w.removedBeforeQueried)return new ke(d.duration,d.delay);let A=m!==c,R=qc((i.get(m)||$c).map($=>$.getRealPlayer())).filter($=>{let x=$;return x.element?x.element===m:!1}),F=n.get(m),T=o.get(m),P=Ti(this._normalizer,d.keyframes,F,T),C=this._buildPlayer(d,P,R);if(d.subTimeline&&r&&u.add(m),A){let $=new ct(t,a,m);$.setRealPlayer(C),l.push($)}return C});l.forEach(d=>{X(this.playersByQueriedElement,d.element,[]).push(d),d.onDone(()=>zc(this.playersByQueriedElement,d.element,d))}),f.forEach(d=>se(d,Ci));let S=ye(h);return S.onDestroy(()=>{f.forEach(d=>We(d,Ci)),ce(c,e.toStyles)}),u.forEach(d=>{X(r,d,[]).push(S)}),S}_buildPlayer(t,e,i){return e.length>0?this.driver.animate(t.element,e,t.duration,t.delay,t.easing,i):new ke(t.duration,t.delay)}},ct=class{namespaceId;triggerName;element;_player=new ke;_containsRealPlayer=!1;_queuedCallbacks=new Map;destroyed=!1;parentPlayer=null;markedForDestroy=!1;disabled=!1;queued=!0;totalTime=0;constructor(t,e,i){this.namespaceId=t,this.triggerName=e,this.element=i}setRealPlayer(t){this._containsRealPlayer||(this._player=t,this._queuedCallbacks.forEach((e,i)=>{e.forEach(r=>Mt(t,i,void 0,r))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(t.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(t){this.totalTime=t}syncPlayerEvents(t){let e=this._player;e.triggerCallback&&t.onStart(()=>e.triggerCallback("start")),t.onDone(()=>this.finish()),t.onDestroy(()=>this.destroy())}_queueEvent(t,e){X(this._queuedCallbacks,t,[]).push(e)}onDone(t){this.queued&&this._queueEvent("done",t),this._player.onDone(t)}onStart(t){this.queued&&this._queueEvent("start",t),this._player.onStart(t)}onDestroy(t){this.queued&&this._queueEvent("destroy",t),this._player.onDestroy(t)}init(){this._player.init()}hasStarted(){return this.queued?!1:this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(t){this.queued||this._player.setPosition(t)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(t){let e=this._player;e.triggerCallback&&e.triggerCallback(t)}};function zc(s,t,e){let i=s.get(t);if(i){if(i.length){let r=i.indexOf(e);i.splice(r,1)}i.length==0&&s.delete(t)}return i}function Bc(s){return s??null}function Lt(s){return s&&s.nodeType===1}function Kc(s){return s=="start"||s=="done"}function Eo(s,t){let e=s.style.display;return s.style.display=t??"none",e}function To(s,t,e,i,r){let n=[];e.forEach(c=>n.push(Eo(c)));let o=[];i.forEach((c,l)=>{let f=new Map;c.forEach(u=>{let h=t.computeStyle(l,u,r);f.set(u,h),(!h||h.length==0)&&(l[le]=Uc,o.push(l))}),s.set(l,f)});let a=0;return e.forEach(c=>Eo(c,n[a++])),o}function wo(s,t){let e=new Map;if(s.forEach(a=>e.set(a,[])),t.length==0)return e;let i=1,r=new Set(t),n=new Map;function o(a){if(!a)return i;let c=n.get(a);if(c)return c;let l=a.parentNode;return e.has(l)?c=l:r.has(l)?c=i:c=o(l),n.set(a,c),c}return t.forEach(a=>{let c=o(a);c!==i&&e.get(c).push(a)}),e}function se(s,t){s.classList?.add(t)}function We(s,t){s.classList?.remove(t)}function Vc(s,t,e){ye(e).onDone(()=>s.processLeaveNode(t))}function qc(s){let t=[];return ko(s,t),t}function ko(s,t){for(let e=0;e<s.length;e++){let i=s[e];i instanceof Et?ko(i.players,t):t.push(i)}}function Gc(s,t){let e=Object.keys(s),i=Object.keys(t);if(e.length!=i.length)return!1;for(let r=0;r<e.length;r++){let n=e[r];if(!t.hasOwnProperty(n)||s[n]!==t[n])return!1}return!0}function _o(s,t,e){let i=e.get(s);if(!i)return!1;let r=t.get(s);return r?i.forEach(n=>r.add(n)):t.set(s,i),e.delete(s),!0}var He=class{_driver;_normalizer;_transitionEngine;_timelineEngine;_triggerCache={};onRemovalComplete=(t,e)=>{};constructor(t,e,i){this._driver=e,this._normalizer=i,this._transitionEngine=new Vi(t.body,e,i),this._timelineEngine=new Bi(t.body,e,i),this._transitionEngine.onRemovalComplete=(r,n)=>this.onRemovalComplete(r,n)}registerTrigger(t,e,i,r,n){let o=t+"-"+r,a=this._triggerCache[o];if(!a){let c=[],l=[],f=Io(this._driver,n,c,l);if(c.length)throw Zn(r,c);a=Oc(r,f,this._normalizer),this._triggerCache[o]=a}this._transitionEngine.registerTrigger(e,r,a)}register(t,e){this._transitionEngine.register(t,e)}destroy(t,e){this._transitionEngine.destroy(t,e)}onInsert(t,e,i,r){this._transitionEngine.insertNode(t,e,i,r)}onRemove(t,e,i){this._transitionEngine.removeNode(t,e,i)}disableAnimations(t,e){this._transitionEngine.markElementAsDisabled(t,e)}
1process(t,e,i,r){if(i.charAt(0)=="@"){let[n,o]=wi(i),a=r;this._timelineEngine.command(n,e,o,a)}else this._transitionEngine.trigger(t,e,i,r)}listen(t,e,i,r,n){if(i.charAt(0)=="@"){let[o,a]=wi(i);return this._timelineEngine.listen(o,e,a,n)}return this._transitionEngine.listen(t,e,i,r,n)}flush(t=-1){this._transitionEngine.flush(t)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(t){this._transitionEngine.afterFlushAnimationsDone(t)}};function Qc(s,t){let e=null,i=null;return Array.isArray(t)&&t.length?(e=Di(t[0]),t.length>1&&(i=Di(t[t.length-1]))):t instanceof Map&&(e=Di(t)),e||i?new Wc(s,e,i):null}var Wc=(()=>{class s{_element;_startStyles;_endStyles;static initialStylesByElement=new WeakMap;_state=0;_initialStyles;constructor(e,i,r){this._element=e,this._startStyles=i,this._endStyles=r;let n=s.initialStylesByElement.get(e);n||s.initialStylesByElement.set(e,n=new Map),this._initialStyles=n}start(){this._state<1&&(this._startStyles&&ce(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(ce(this._element,this._initialStyles),this._endStyles&&(ce(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(s.initialStylesByElement.delete(this._element),this._startStyles&&(Ie(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Ie(this._element,this._endStyles),this._endStyles=null),ce(this._element,this._initialStyles),this._state=3)}}return s})();function Di(s){let t=null;return s.forEach((e,i)=>{Hc(i)&&(t=t||new Map,t.set(i,e))}),t}function Hc(s){return s==="display"||s==="position"}var qt=class{element;keyframes;options;_specialStyles;_onDoneFns=[];_onStartFns=[];_onDestroyFns=[];_duration;_delay;_initialized=!1;_finished=!1;_started=!1;_destroyed=!1;_finalKeyframe;_originalOnDoneFns=[];_originalOnStartFns=[];domPlayer;time=0;parentPlayer=null;currentSnapshot=new Map;constructor(t,e,i,r){this.element=t,this.keyframes=e,this.options=i,this._specialStyles=r,this._duration=i.duration,this._delay=i.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;let t=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,t,this.options),this._finalKeyframe=t.length?t[t.length-1]:new Map;let e=()=>this._onFinish();this.domPlayer.addEventListener("finish",e),this.onDestroy(()=>{this.domPlayer.removeEventListener("finish",e)})}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(t){let e=[];return t.forEach(i=>{e.push(Object.fromEntries(i))}),e}_triggerWebAnimation(t,e,i){return t.animate(this._convertKeyframesToObject(e),i)}onStart(t){this._originalOnStartFns.push(t),this._onStartFns.push(t)}onDone(t){this._originalOnDoneFns.push(t),this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(t=>t()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}setPosition(t){this.domPlayer===void 0&&this.init(),this.domPlayer.currentTime=t*this.time}getPosition(){return+(this.domPlayer.currentTime??0)/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){let t=new Map;this.hasStarted()&&this._finalKeyframe.forEach((i,r)=>{r!=="offset"&&t.set(r,this._finished?i:jt(this.element,r))}),this.currentSnapshot=t}triggerCallback(t){let e=t==="start"?this._onStartFns:this._onDoneFns;e.forEach(i=>
1i()),e.length=0}},Gt=class{validateStyleProperty(t){return!0}validateAnimatableStyleProperty(t){return!0}containsElement(t,e){return _i(t,e)}getParentElement(t){return Pt(t)}query(t,e,i){return Ai(t,e,i)}computeStyle(t,e,i){return jt(t,e)}animate(t,e,i,r,n,o=[]){let a=r==0?"both":"forwards",c={duration:i,delay:r,fill:a};n&&(c.easing=n);let l=new Map,f=o.filter(S=>S instanceof qt);mo(i,r)&&f.forEach(S=>{S.currentSnapshot.forEach((d,m)=>l.set(m,d))});let u=uo(e).map(S=>new Map(S));u=po(t,u,l);let h=Qc(t,u);return new qt(t,u,c,h)}};var $t="@",Po="@.disabled",Qt=class{namespaceId;delegate;engine;_onDestroy;\u0275type=0;constructor(t,e,i,r){this.namespaceId=t,this.delegate=e,this.engine=i,this._onDestroy=r}get data(){return this.delegate.data}destroyNode(t){this.delegate.destroyNode?.(t)}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),this._onDestroy?.()}createElement(t,e){return this.delegate.createElement(t,e)}createComment(t){return this.delegate.createComment(t)}createText(t){return this.delegate.createText(t)}appendChild(t,e){this.delegate.appendChild(t,e),this.engine.onInsert(this.namespaceId,e,t,!1)}insertBefore(t,e,i,r=!0){this.delegate.insertBefore(t,e,i),this.engine.onInsert(this.namespaceId,e,t,r)}removeChild(t,e,i){this.parentNode(e)&&this.engine.onRemove(this.namespaceId,e,this.delegate)}selectRootElement(t,e){return this.delegate.selectRootElement(t,e)}parentNode(t){return this.delegate.parentNode(t)}nextSibling(t){return this.delegate.nextSibling(t)}setAttribute(t,e,i,r){this.delegate.setAttribute(t,e,i,r)}removeAttribute(t,e,i){this.delegate.removeAttribute(t,e,i)}addClass(t,e){this.delegate.addClass(t,e)}removeClass(t,e){this.delegate.removeClass(t,e)}setStyle(t,e,i,r){this.delegate.setStyle(t,e,i,r)}removeStyle(t,e,i){this.delegate.removeStyle(t,e,i)}setProperty(t,e,i){e.charAt(0)==$t&&e==Po?this.disableAnimations(t,!!i):this.delegate.setProperty(t,e,i)}setValue(t,e){this.delegate.setValue(t,e)}listen(t,e,i,r){return this.delegate.listen(t,e,i,r)}disableAnimations(t,e){this.engine.disableAnimations(t,e)}},qi=class extends Qt{factory;constructor(t,e,i,r,n){super(e,i,r,n),this.factory=t,this.namespaceId=e}setProperty(t,e,i){e.charAt(0)==$t?e.charAt(1)=="."&&e==Po?(i=i===void 0?!0:!!i,this.disableAnimations(t,i)):this.engine.process(this.namespaceId,t,e.slice(1),i):this.delegate.setProperty(t,e,i)}listen(t,e,i,r){if(e.charAt(0)==$t){let n=Yc(t),o=e.slice(1),a="";return o.charAt(0)!=$t&&([o,a]=Xc(o)),this.engine.listen(this.namespaceId,n,o,a,c=>{let l=c._data||-1;this.factory.scheduleListenerCallback(l,i,c)})}return this.delegate.listen(t,e,i,r)}};function Yc(s){switch(s){case"body":return document.body;case"document":return document;case"window":return window;default:return s}}function Xc(s){let t=s.indexOf("."),e=s.substring(0,t),i=s.slice(t+1);return[e,i]}var Wt=class{delegate;engine;_zone;_currentId=0;_microtaskId=1;_animationCallbacksBuffer=[];_rendererCache=new Map;_cdRecurDepth=0;constructor(t,e,i){this.delegate=t,this.engine=e,this._zone=i,e.onRemovalComplete=(r,n)=>{n?.removeChild(null,r)}}createRenderer(t,e){let i="",r=this.delegate.createRenderer(t,e);if(!t||!e?.data?.animation){let l=this._rendererCache,f=l.get(r);if(!f){let u=()=>l.delete(r);f=new Qt(i,r,this.engine,u),l.set(r,f)}return f}let n=e.id,o=e.id+"-"+this._currentId;this._currentId++,this.engine.register(o,t);let a=l=>{Array.isArray(l)?l.forEach(a):this.engine.registerTrigger(n,o,t,l.name,l)};return e.data.animation.forEach(a),new qi(this,o,r,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(t,e,i){if(t>=0&&t<this._microtaskId){this._zone.run(()=>e(i));return}let r=this._animationCallbacksBuffer;r.length==0&&queueMicrotask(()=>{this._zone.run(()=>{r.forEach(n=>{let[o,a]=n;o(a)}),this._animationCallbacksBuffer=[]})}),r.push([e,i])}end(){this._cdRecurDepth--,this._cdRecurDepth==0&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}componentReplaced(t){this.engine.flush(),this.delegate.componentReplaced?.(t)}};var Jc=(()=>{class s extends He{constructor(e,i,r){super(e,i,r)}ngOnDestroy(){this.flush()}static \u0275fac=function(i){return new(i||s)(p(qs),p(Ne),p(De))};static \u0275prov=g({token:s,factory:s.\u0275fac})}return s})();function el(){return new Ut}function tl(s,t,e){return new Wt(s,t,e)}var Oo=[{provide:De,useFactory:el},{provide:He,useClass:Jc},{provide:Ys,useFactory:tl,deps:[hr,He,Ue]}],Gu=[{provide:Ne,useClass:Gi},{provide:ui,useValue:"NoopAnimations"},...Oo],il=[{provide:Ne,useFactory:()=>new Gt},{provide:ui,useFactory:()=>"BrowserAnimations"},...Oo];function No(){return Zs("NgEagerAnimations"),[...il]}var Yi="Service workers are disabled or not supported by this browser",Ye=class{serviceWorker;worker;registration;events;constructor(t,e){if(this.serviceWorker=t,!t)this.worker=this.events=this.registration=new ge(i=>i.error(new _(5601,!1)));else{let i=null,r=new H;this.worker=new ge(l=>(i!==null&&l.next(i),r.subscribe(f=>l.next(f))));let n=()=>{let{controller:l}=t;l!==null&&(i=l,r.next(i))};t.addEventListener("controllerchange",n),n(),this.registration=this.worker.pipe(L(()=>t.getRegistration()));let o=new H;this.events=o.asObservable();let a=l=>{let{data:f}=l;f?.type&&o.next(f)};t.addEventListener("message",a),e?.get(fi,null,{optional:!0})?.onDestroy(()=>{t.removeEventListener("controllerchange",n),t.removeEventListener("message",a)})}}postMessage(t,e){return new Promise(i=>{this.worker.pipe(Y(1)).subscribe(r=>{r.postMessage(V({action:t},e)),i()})})}
1postMessageWithOperation(t,e,i){let r=this.waitForOperationCompleted(i),n=this.postMessage(t,e);return Promise.all([n,r]).then(([,o])=>o)}generateNonce(){return Math.round(Math.random()*1e7)}eventsOfType(t){let e;return typeof t=="string"?e=i=>i.type===t:e=i=>t.includes(i.type),this.events.pipe(te(e))}nextEventOfType(t){return this.eventsOfType(t).pipe(Y(1))}waitForOperationCompleted(t){return new Promise((e,i)=>{this.eventsOfType("OPERATION_COMPLETED").pipe(te(r=>r.nonce===t),Y(1),y(r=>{if(r.result!==void 0)return r.result;throw new Error(r.error)})).subscribe({next:e,error:i})})}get isEnabled(){return!!this.serviceWorker}},sl=(()=>{class s{sw;messages;notificationClicks;subscription;get isEnabled(){return this.sw.isEnabled}pushManager=null;subscriptionChanges=new H;constructor(e){if(this.sw=e,!e.isEnabled){this.messages=$e,this.notificationClicks=$e,this.subscription=$e;return}this.messages=this.sw.eventsOfType("PUSH").pipe(y(r=>r.data)),this.notificationClicks=this.sw.eventsOfType("NOTIFICATION_CLICK").pipe(y(r=>r.data)),this.pushManager=this.sw.registration.pipe(y(r=>r.pushManager));let i=this.pushManager.pipe(L(r=>r.getSubscription()));this.subscription=new ge(r=>{let n=i.subscribe(r),o=this.subscriptionChanges.subscribe(r);return()=>{n.unsubscribe(),o.unsubscribe()}})}requestSubscription(e){if(!this.sw.isEnabled||this.pushManager===null)return Promise.reject(new Error(Yi));let i={userVisibleOnly:!0},r=this.decodeBase64(e.serverPublicKey.replace(/_/g,"/").replace(/-/g,"+")),n=new Uint8Array(new ArrayBuffer(r.length));for(let o=0;o<r.length;o++)n[o]=r.charCodeAt(o);return i.applicationServerKey=n,new Promise((o,a)=>{this.pushManager.pipe(L(c=>c.subscribe(i)),Y(1)).subscribe({next:c=>{this.subscriptionChanges.next(c),o(c)},error:a})})}unsubscribe(){if(!this.sw.isEnabled)return Promise.reject(new Error(Yi));let e=i=>{if(i===null)throw new _(5602,!1);return i.unsubscribe().then(r=>{if(!r)throw new _(5603,!1);this.subscriptionChanges.next(null)})};return new Promise((i,r)=>{this.subscription.pipe(Y(1),L(e)).subscribe({next:i,error:r})})}decodeBase64(e){return atob(e)}static \u0275fac=function(i){return new(i||s)(p(Ye))};static \u0275prov=g({token:s,factory:s.\u0275fac})}return s})(),rl=(()=>{class s{sw;versionUpdates;unrecoverable;get isEnabled(){return this.sw.isEnabled}constructor(e){if(this.sw=e,!e.isEnabled){this.versionUpdates=$e,this.unrecoverable=$e;return}this.versionUpdates=this.sw.eventsOfType(["VERSION_DETECTED","VERSION_INSTALLATION_FAILED","VERSION_READY","NO_NEW_VERSION_DETECTED"]),this.unrecoverable=this.sw.eventsOfType("UNRECOVERABLE_STATE")}checkForUpdate(){if(!this.sw.isEnabled)return Promise.reject(new Error(Yi));let e=this.sw.generateNonce();return this.sw.postMessageWithOperation("CHECK_FOR_UPDATES",{nonce:e},e)}activateUpdate(){if(!this.sw.isEnabled)return Promise.reject(new _(5601,!1));let e=this.sw.generateNonce();return this.sw.postMessageWithOperation("ACTIVATE_UPDATE",{nonce:e},e)}static \u0275fac=function(i){return new(i||s)(p(Ye))};static \u0275prov=g({token:s,factory:s.\u0275fac})}return s})();var jo=new W("");function nl(){let s=K(lt);if(!("serviceWorker"in navigator&&s.enabled!==!1))return;let t=K(jo),e=K(Ue),i=K(fi);e.runOutsideAngular(()=>{let r=navigator.serviceWorker,n=()=>r.controller?.postMessage({action:"INITIALIZE"});r.addEventListener("controllerchange",n),i.onDestroy(()=>{r.removeEventListener("controllerchange",n)})}),e.runOutsideAngular(()=>{let r,{registrationStrategy:n}=s;if(typeof n=="function")r=new Promise(o=>n().subscribe(()=>o()));else{let[o,...a]=(n||"registerWhenStable:30000").split(":");switch(o){case"registerImmediately":r=Promise.resolve();break;case"registerWithDelay":r=Do(+a[0]||0);break;case"registerWhenStable":r=Promise.race([i.whenStable(),Do(+a[0])]);break;default:throw new _(5600,!1)}}r.then(()=>{i.destroyed||navigator.serviceWorker.register(t,{scope:s.scope}).catch(o=>console.error($s(5604,!1)))})})}function Do(s){return new Promise(t=>setTimeout(t,s))}function ol(s,t){return new Ye(s.enabled!==!1?navigator.serviceWorker:void 0,t)}var lt=class{enabled;scope;registrationStrategy};function Fo(s,t={}){return Ee([sl,rl,{provide:jo,useValue:s},{provide:lt,useValue:t},{provide:Ye,useFactory:ol,deps:[lt,Vs]},vt(nl)])}var al={dispatch:!0,functional:!1,useEffectsErrorHandler:!0},Ht="__@ngrx/effects_create__";function N(s,t={}){let e=t.functional?s:s(),i=V(V({},al),t);return Object.defineProperty(e,Ht,{value:i}),e}function cl(s){return Object.getOwnPropertyNames(s).filter(i=>s[i]&&s[i].hasOwnProperty(Ht)?s[i][Ht].hasOwnProperty("dispatch"):!1).map(i=>{let r=s[i][Ht];return V({propertyName:i},r)})}function ll(s){return cl(s)}function xo(s){return Object.getPrototypeOf(s)}function ul(s){return!!s.constructor&&s.constructor.name!=="Object"&&s.constructor.name!=="Function"}function Lo(s){return typeof s=="function"}function fl(s){return s.filter(Lo)}function dl(s,t,e){let i=xo(s),n=!!i&&i.constructor.name!=="Object"?i.constructor.name:null,o=ll(s).map(({propertyName:a,dispatch:c,useEffectsErrorHandler:l})=>{let f=typeof s[a]=="function"?s[a]():s[a],u=l?e(f,t):f;return c===!1?u.pipe(ks()):u.pipe(Ns()).pipe(y(S=>
1({effect:s[a],notification:S,propertyName:a,sourceName:n,sourceInstance:s})))});return Le(...o)}var ml=10;function $o(s,t,e=ml){return s.pipe(fe(i=>(t&&t.handleError(i),e<=1?s:$o(s,t,e-1))))}var D=(()=>{class s extends ge{constructor(e){super(),e&&(this.source=e)}lift(e){let i=new s;return i.source=this,i.operator=e,i}static{this.\u0275fac=function(i){return new(i||s)(p(wt))}}static{this.\u0275prov=g({token:s,factory:s.\u0275fac,providedIn:"root"})}}return s})();function j(...s){return te(t=>s.some(e=>typeof e=="string"?e===t.type:e.type===t.type))}var pf=new W("@ngrx/effects Internal Root Guard"),hf=new W("@ngrx/effects User Provided Effects"),gf=new W("@ngrx/effects Internal Root Effects"),yf=new W("@ngrx/effects Internal Root Effects Instances"),vf=new W("@ngrx/effects Internal Feature Effects"),Sf=new W("@ngrx/effects Internal Feature Effects Instance Groups"),pl=new W("@ngrx/effects Effects Error Handler",{providedIn:"root",factory:()=>$o}),hl="@ngrx/effects/init",gl=Pr(hl);function yl(s,t){if(s.notification.kind==="N"){let e=s.notification.value;!vl(e)&&t.handleError(new Error(`Effect ${Sl(s)} dispatched an invalid action: ${bl(e)}`))}}function vl(s){return typeof s!="function"&&s&&s.type&&typeof s.type=="string"}function Sl({propertyName:s,sourceInstance:t,sourceName:e}){let i=typeof t[s]=="function";return!!e?`"${e}.${String(s)}${i?"()":""}"`:`"${String(s)}()"`}function bl(s){try{return JSON.stringify(s)}catch{return s}}var El="ngrxOnIdentifyEffects";function Tl(s){return Xi(s,El)}var wl="ngrxOnRunEffects";function _l(s){return Xi(s,wl)}var Al="ngrxOnInitEffects";function Il(s){return Xi(s,Al)}function Xi(s,t){return s&&t in s&&typeof s[t]=="function"}var Uo=(()=>{class s extends H{constructor(e,i){super(),this.errorHandler=e,this.effectsErrorHandler=i}addEffects(e){this.next(e)}toActions(){return this.pipe(ci(e=>ul(e)?xo(e):e),oi(e=>e.pipe(ci(Rl))),oi(e=>{let i=e.pipe(Os(n=>Cl(this.errorHandler,this.effectsErrorHandler)(n)),y(n=>(yl(n,this.errorHandler),n.notification)),te(n=>n.kind==="N"&&n.value!=null),Ps()),r=e.pipe(Y(1),te(Il),y(n=>n.ngrxOnInitEffects()));return Le(i,r)}))}static{this.\u0275fac=function(i){return new(i||s)(p(yt),p(pl))}}static{this.\u0275prov=g({token:s,factory:s.\u0275fac,providedIn:"root"})}}return s})();function Rl(s){return Tl(s)?s.ngrxOnIdentifyEffects():""}function Cl(s,t){return e=>{let i=dl(e,s,t);return _l(e)?e.ngrxOnRunEffects(i):i}}var Ml=(()=>{class s{get isStarted(){return!!this.effectsSubscription}constructor(e,i){this.effectSources=e,this.store=i,this.effectsSubscription=null}start(){this.effectsSubscription||(this.effectsSubscription=this.effectSources.toActions().subscribe(this.store))}ngOnDestroy(){this.effectsSubscription&&(this.effectsSubscription.unsubscribe(),this.effectsSubscription=null)}static{this.\u0275fac=function(i){return new(i||s)(p(Uo),p(z))}}static{this.\u0275prov=g({token:s,factory:s.\u0275fac,providedIn:"root"})}}return s})();function zo(...s){let t=s.flat(),e=fl(t);return Ee([e,Us(()=>{K(Nr),K(Dr,{optional:!0});let i=K(Ml),r=K(Uo),n=!i.isStarted;n&&i.start();for(let o of t){let a=Lo(o)?K(o):o;r.addEffects(a)}n&&K(z).dispatch(gl())})])}var ft="PERFORM_ACTION",kl="REFRESH",Qo="RESET",Wo="ROLLBACK",Ho="COMMIT",Yo="SWEEP",Xo="TOGGLE_ACTION",Pl="SET_ACTIONS_ACTIVE",Zo="JUMP_TO_STATE",Jo="JUMP_TO_ACTION",us="IMPORT_STATE",ea="LOCK_CHANGES",ta="PAUSE_RECORDING",Xe=class{constructor(t,e){if(this.action=t,this.timestamp=e,this.type=ft,typeof t.type>"u")throw new Error('Actions may not have an undefined "type" property. Have you misspelled a constant?')}},Zi=class{constructor(){this.type=kl}},Ji=class{constructor(t){this.timestamp=t,this.type=Qo}},es=class{constructor(t){this.timestamp=t,this.type=Wo}},ts=class{constructor(t){this.timestamp=t,this.type=Ho}},is=class{constructor(){this.type=Yo}},ss=class{constructor(t){this.id=t,this.type=Xo}};var rs=class{constructor(t){this.index=t,this.type=Zo}},ns=class{constructor(t){this.actionId=t,this.type=Jo}},os=class{constructor(t){this.nextLiftedState=t,this.type=us}},as=class{constructor(t){this.status=t,this.type=ea}},cs=class{constructor(t){this.status=t,this.type=ta}};var Jt=new W("@ngrx/store-devtools Options"),Bo=new W("@ngrx/store-devtools Initial Config");function ia(){return null}var Ol="NgRx Store DevTools";function Nl(s){let t={maxAge:!1,monitor:ia,actionSanitizer:void 0,stateSanitizer:void 0,name:Ol,serialize:!1,logOnly:!1,autoPause:!1,trace:!1,traceLimit:75,features:{pause:!0,lock:!0,persist:!0,export:!0,import:"custom",jump:!0,skip:!0,reorder:!0,dispatch:!0,test:!0},connectInZone:!1},e=typeof s=="function"?s():s,i=e.logOnly?{pause:!0,export:!0,test:!0}:!1,r=e.features||i||t.features;r.import===!0&&(r.import="custom");let n=Object.assign({},t,{features:r},e);if(n.maxAge&&n.maxAge<2)throw new Error(`Devtools 'maxAge' cannot be less than 2, got ${n.maxAge}`);return n}function Ko(s,t){return s.filter(e=>t.indexOf(e)<0)}function sa(s){let{computedStates:t,currentStateIndex:e}=s;if(e>=t.length){let{state:r}=t[t.length-1];return r}let{state:i}=t[e];return i}function ut(s){return new Xe(s,+Date.now())}function Dl(s,t){return Object.keys(t).reduce((e,i)=>{let r=Number(i);return e[r]=ra(s,t[r],r),e},{})}function ra(s,t,e){return xe(V({},t),{action:s(t.action,e)})}function jl(s,t){return t.map((e,i)=>({state:na(s,e.state,i),error:e.error}))}function na(s,t,e){return s(t,e)}function oa(s){return s.predicate||s.actionsSafelist||s.actionsBlocklist}function Fl(s,t,e,i){let r=[],n={},o=[];return s.stagedActionIds.forEach((a,c)=>{let l=s.actionsById[a];l&&(c&&fs(s.computedStates[c],l,t,e,i)||(n[a]=l,r.push(a),o.push(s.computedStates[c])))}),xe(V({},s),{stagedActionIds:r,actionsById:n,computedStates:o})}function fs(s,t,e,i,r){let n=e&&!e(s,t.action),o=i&&!t.action.type.match(i.map(c=>Vo(c)).join("|")),a=r&&t.action.type.match(r.map(c=>Vo(c)).join("|"));return n||o||a}function Vo(s){return s.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function aa(s){return{ngZone:s?K(Ue):null,connectInZone:s}}var ei=(()=>{class s extends Tt{static{this.\u0275fac=(()=>{let e;return function(r){return(e||(e=Qs(s)))(r||s)}})()}static{this.\u0275prov=g({token:s,factory:s.\u0275fac})}}return s}
1)(),Yt={START:"START",DISPATCH:"DISPATCH",STOP:"STOP",ACTION:"ACTION"},ls=new W("@ngrx/store-devtools Redux Devtools Extension"),ca=(()=>{class s{constructor(e,i,r){this.config=i,this.dispatcher=r,this.zoneConfig=aa(this.config.connectInZone),this.devtoolsExtension=e,this.createActionStreams()}notify(e,i){if(this.devtoolsExtension)if(e.type===ft){if(i.isLocked||i.isPaused)return;let r=sa(i);if(oa(this.config)&&fs(r,e,this.config.predicate,this.config.actionsSafelist,this.config.actionsBlocklist))return;let n=this.config.stateSanitizer?na(this.config.stateSanitizer,r,i.currentStateIndex):r,o=this.config.actionSanitizer?ra(this.config.actionSanitizer,e,i.nextActionId):e;this.sendToReduxDevtools(()=>this.extensionConnection.send(o,n))}else{let r=xe(V({},i),{stagedActionIds:i.stagedActionIds,actionsById:this.config.actionSanitizer?Dl(this.config.actionSanitizer,i.actionsById):i.actionsById,computedStates:this.config.stateSanitizer?jl(this.config.stateSanitizer,i.computedStates):i.computedStates});this.sendToReduxDevtools(()=>this.devtoolsExtension.send(null,r,this.getExtensionConfig(this.config)))}}createChangesObservable(){return this.devtoolsExtension?new ge(e=>{let i=this.zoneConfig.connectInZone?this.zoneConfig.ngZone.runOutsideAngular(()=>this.devtoolsExtension.connect(this.getExtensionConfig(this.config))):this.devtoolsExtension.connect(this.getExtensionConfig(this.config));return this.extensionConnection=i,i.init(),i.subscribe(r=>e.next(r)),i.unsubscribe}):As}createActionStreams(){let e=this.createChangesObservable().pipe(js()),i=e.pipe(te(l=>l.type===Yt.START)),r=e.pipe(te(l=>l.type===Yt.STOP)),n=e.pipe(te(l=>l.type===Yt.DISPATCH),y(l=>this.unwrapAction(l.payload)),ai(l=>l.type===us?this.dispatcher.pipe(te(f=>f.type===yi),Rs(1e3),Ms(1e3),y(()=>l),fe(()=>q(l)),Y(1)):q(l))),a=e.pipe(te(l=>l.type===Yt.ACTION),y(l=>this.unwrapAction(l.payload))).pipe(gt(r)),c=n.pipe(gt(r));this.start$=i.pipe(gt(r)),this.actions$=this.start$.pipe(L(()=>a)),this.liftedActions$=this.start$.pipe(L(()=>c))}unwrapAction(e){return typeof e=="string"?(0,eval)(`(${e})`):e}getExtensionConfig(e){let i={name:e.name,features:e.features,serialize:e.serialize,autoPause:e.autoPause??!1,trace:e.trace??!1,traceLimit:e.traceLimit??75};return e.maxAge!==!1&&(i.maxAge=e.maxAge),i}sendToReduxDevtools(e){try{e()}catch(i){console.warn("@ngrx/store-devtools: something went wrong inside the redux devtools",i)}}static{this.\u0275fac=function(i){return new(i||s)(p(ls),p(Jt),p(ei))}}static{this.\u0275prov=g({token:s,factory:s.\u0275fac})}}return s})(),Zt={type:gi},xl="@ngrx/store-devtools/recompute",Ll={type:xl};function la(s,t,e,i,r){if(i)return{state:e,error:"Interrupted by an error up the chain"};let n=e,o;try{n=s(e,t)}catch(a){o=a.toString(),r.handleError(a)}return{state:n,error:o}}function Xt(s,t,e,i,r,n,o,a,c){if(t>=s.length&&s.length===n.length)return s;let l=s.slice(0,t),f=n.length-(c?1:0);for(let u=t;u<f;u++){let h=n[u],S=r[h].action,d=l[u-1],m=d?d.state:i,w=d?d.error:void 0,R=o.indexOf(h)>-1?d:la(e,S,m,w,a);l.push(R)}return c&&l.push(s[s.length-1]),l}function $l(s,t){return{monitorState:t(void 0,{}),nextActionId:1,actionsById:{0:ut(Zt)},stagedActionIds:[0],skippedActionIds:[],committedState:s,currentStateIndex:0,computedStates:[],isLocked:!1,isPaused:!1}}function Ul(s,t,e,i,r={}){return n=>(o,a)=>{let{monitorState:c,actionsById:l,nextActionId:f,stagedActionIds:u,skippedActionIds:h,committedState:S,currentStateIndex:d,computedStates:m,isLocked:w,isPaused:A}=o||t;o||(l=Object.create(l));function R(P){let C=P,$=u.slice(1,C+1);for(let x=0;x<$.length;x++)if(m[x+1].error){C=x,$=u.slice(1,C+1);break}else delete l[$[x]];h=h.filter(x=>$.indexOf(x)===-1),u=[0,...u.slice(C+1)],S=m[C].state,m=m.slice(C),d=d>C?d-C:0}function F(){l={0:ut(Zt)},f=1,u=[0],h=[],S=m[d].state,d=0,m=[]}let T=0;switch(a.type){case ea:{w=a.status,T=1/0;break}case ta:{A=a.status,A?(u=[...u,f],l[f]=new Xe({type:"@ngrx/devtools/pause"},+Date.now()),f++,T=u.length-1,m=m.concat(m[m.length-1]),d===u.length-2&&d++,T=1/0):F();break}case Qo:{l={0:ut(Zt)},f=1,u=[0],h=[],S=s,d=0,m=[];break}case Ho:{F();break}case Wo:{l={0:ut(Zt)},f=1,u=[0],h=[],d=0,m=[];break}case Xo:{let{id:P}=a;h.indexOf(P)===-1?h=[P,...h]:h=h.filter($=>$!==P),T=u.indexOf(P);break}case Pl:{let{start:P,end:C,active:$}=a,x=[];for(let re=P;re<C;re++)x.push(re);$?h=Ko(h,x):h=[...h,...x],T=u.indexOf(P);break}case Zo:{d=a.index,T=1/0;break}case Jo:{let P=u.indexOf(a.actionId);P!==-1&&(d=P),T=1/0;break}case Yo:{u=Ko(u,h),h=[],d=Math.min(d,u.length-1);break}case ft:{if(w)return o||t;if(A||o&&fs(o.computedStates[d],a,r.predicate,r.actionsSafelist,r.actionsBlocklist)){let C=m[m.length-1];m=[...m.slice(0,-1),la(n,a.action,C.state,C.error,e)],T=1/0;break}r.maxAge&&u.length===r.maxAge&&R(1),d===u.length-1&&d++;let P=f++;l[P]=a,u=[...u,P],T=u.length-1;break}case us:{({monitorState:c,actionsById:l,nextActionId:f,stagedActionIds:u,skippedActionIds:h,committedState:S,currentStateIndex:d,computedStates:m,isLocked:w,isPaused:A}=a.nextLiftedState);break}case gi:{T=0,r.maxAge&&u.length>r.maxAge&&(m=Xt(m,T,n,S,l,u,h,e,A),R(u.length-r.maxAge),T=1/0);break}case yi:{if(m.filter(C=>C.error).length>0)T=0,r.maxAge&&u.length>r.maxAge&&(m=Xt(m,T,n,S,l,u,h,e,A),R(u.length-r.maxAge),T=1/0);else{if(!A&&!w){d===u.length-1&&d++;let C=f++;l[C]=new Xe(a,+Date.now()),u=[...u,C],T=u.length-1,m=Xt(m,T,n,S,l,u,h,e,A)}m=m.map(C=>xe(V({},C),{state:n(C.state,Ll)})),d=u.length-1,r.maxAge&&u.length>r.maxAge&&R(u.length-r.maxAge),T=1/0}break}default:{T=1/0;break}}return m=Xt(m,T,n,S,l,u,h,e,A),c=i(c,a),{monitorState:c,actionsById:l,nextActionId:f,stagedActionIds:u,skippedActionIds:h,committedState:S,currentStateIndex:d,computedStates:m,isLocked:w,isPaused:A}}}var qo=(()=>{class s{constructor(e,i,r,n,o,a,c,l){let f=$l(c,l.monitor),u=Ul(c,f,a,l.monitor,l),h=Le(Le(i.asObservable().pipe(Fs(1)),n.actions$).pipe(y(ut)),e,n.liftedActions$).pipe(Is(_s)),S=r.pipe(y(u)),d=aa(l.connectInZone),m=new ws(1);this.liftedStateSubscription=h.pipe(Ls(S),Go(d),Ds(({state:R},[F,T])=>{let P=T(R,F);return F.type!==ft&&oa(l)&&(P=Fl(P,l.predicate,l.actionsSafelist,l.actionsBlocklist)),n.notify(F,P),{state:P,action:F}},{state:f,action:null})).subscribe(({state:R,action:F})=>{if(m.next(R),F.type===ft){let T=F.action;o.next(T)}}),this.extensionStartSubscription=n.start$.pipe(Go(d)).subscribe(()=>{this.refresh()});let w=m.asObservable(),A=w.pipe(y(sa));Object.defineProperty(A,"state",{value:kr(A,{manualCleanup:!0,requireSync:!0})}),this.dispatcher=e,this.liftedState=w,this.state=A}ngOnDestroy(){this.liftedStateSubscription.unsubscribe(),this.extensionStartSubscription.unsubscribe()}dispatch(e){this.dispatcher.next(e)}next(e){this.dispatcher.next(e)}error(e){}complete(){}performAction(e){this.dispatch(new Xe(e,+Date.now()))}refresh(){this.dispatch(new Zi)}reset(){this.dispatch(new Ji(+Date.now()))}rollback(){this.dispatch(new es(+Date.now()))}commit(){this.dispatch(new ts(+Date.now()))}sweep(){this.dispatch(new is)}toggleAction(e){this.dispatch(new ss(e))}jumpToAction(e){this.dispatch(new ns(e))}jumpToState(e){this.dispatch(new rs(e))}importState(e){this.dispatch(new os(e))}lockChanges(e){this.dispatch(new as(e))}pauseRecording(e){this.dispatch(new cs(e))}static{this.\u0275fac=function(i){return new(i||s)(p(ei),p(Tt),p(jr),p(ca),p(wt),p(yt),p(Or),p(Jt))}}static{this.\u0275prov=g({token:s,factory:s.\u0275fac})}}return s})();function Go({ngZone:s,connectInZone:t}){return e=>t?new ge(i=>e.subscribe({next:r=>s.run(()=>i.next(r)),error:r=>s.run(()=>i.error(r)),complete:()=>s.run(()=>i.complete())})):e}var zl=new W("@ngrx/store-devtools Is Devtools Extension or Monitor Present");function Bl(s,t){return!!s||t.monitor!==ia}function Kl(){let s="__REDUX_DEVTOOLS_EXTENSION__";return typeof window=="object"&&typeof window[s]<"u"?window[s]:null}function Vl(s){return s.state}function ua(s={}
1){return Ee([ca,ei,qo,{provide:Bo,useValue:s},{provide:zl,deps:[ls,Jt],useFactory:Bl},{provide:ls,useFactory:Kl},{provide:Jt,deps:[Bo],useFactory:Nl},{provide:xr,deps:[qo],useFactory:Vl},{provide:Fr,useExisting:ei}])}var ti=class{_handler;_resourcesPrefix;constructor(t,e){this._handler=t,this._resourcesPrefix=e}getTranslation(t){let e=this._resourcesPrefix.map(i=>{let r;return typeof i=="string"?r=`${i}${t}.json`:r=`${i.prefix}${t}${i.suffix??".json"}`,new vr(this._handler).get(r).pipe(fe(n=>(typeof i!="string"&&!i.optional&&(console.group(),console.error("Something went wrong for the following translation file:",r),console.error(n),console.groupEnd()),q({}))))});return Cs(e).pipe(y(i=>i.reduce((r,n)=>Ur(r,n),{})))}};var fa=(()=>{class s{constructor(e,i,r,n){this.router=e,this.store=i,this.authApi=r,this.authSrv=n}canActivate(e,i){if(!e.queryParams.autologin)return!0;let r={userAgent:navigator?navigator.userAgent:null,width:window.innerWidth,height:window.innerHeight};return this.store.select(En.getId).pipe(ne(),L(n=>e.queryParams.user&&n&&e.queryParams.user!==n?(this.authSrv.logout(),q(!1)):(this.authSrv.logout(!1),this.authApi.autologin(e.queryParams.autologin,r,e.queryParams.config).pipe(y(o=>o?o.error&&o.urlAfterLogout?(window.location.href=o.urlAfterLogout,!1):o.error?!0:(o.urlAfterLogout&&this.store.dispatch(me.setUrlAfterLogout({value:o.urlAfterLogout})),this.router.parseUrl("/")):!0),fe(o=>q(!0))))))}static{this.\u0275fac=function(i){return new(i||s)(p(de),p(z),p(Rt),p(Ae))}}static{this.\u0275prov=g({token:s,factory:s.\u0275fac,providedIn:"root"})}}return s})();var ma=ht(Br());var pa=(()=>{class s{constructor(e,i,r,n){this.store=e,this.router=i,this.apiSrv=r,this.authSrv=n}canActivate(e,i){let r=window.location.href.replace(ae.frontendUrl,"");return this.store.select(pe.getIsLogged).pipe(ne(),L(n=>n?this.store.select(pe.getAccessTokenTimestamp).pipe(ne(),y(o=>{let a=(0,ma.default)(o).add(5,"hour").isBefore();return a&&this.store.dispatch(me.logout()),!a})):(this.store.dispatch(me.setPathAfterLogin({value:r})),q(!1))),L(n=>n?this.store.select(pe.getAccessToken).pipe(ne(),y(o=>(this.apiSrv.setAccessToken(o),!0))):q(!1)),L(n=>{if(!n)return q(this.router.createUrlTree(["/login"],{queryParams:e.queryParams}));let o=window.location.href.replace(ae.frontendUrl,"");return this.authSrv.getUrlToRedirectToMyAdmin(o).pipe(ne(),y(a=>a?(window.location.href=a,!1):!0))}))}static{this.\u0275fac=function(i){return new(i||s)(p(z),p(de),p(qe),p(Ae))}}static{this.\u0275prov=g({token:s,factory:s.\u0275fac,providedIn:"root"})}}return s})();var ha=(()=>{class s{constructor(e){this.authSrv=e}canActivate(e,i){return e.queryParams.logoutFromMyAdmin?(this.authSrv.logout(),q(!1)):!0}static{this.\u0275fac=function(i){return new(i||s)(p(Ae))}}static{this.\u0275prov=g({token:s,factory:s.\u0275fac,providedIn:"root"})}}return s})();var ga=(()=>{class s{constructor(e,i){this.router=e,this.store=i}canActivate(e,i){return this.store.select(pe.getIsLogged).pipe(y(r=>r?this.router.parseUrl("/private"):!0))}static{this.\u0275fac=function(i){return new(i||s)(p(de),p(z))}}static{this.\u0275prov=g({token:s,factory:s.\u0275fac,providedIn:"root"})}}return s})();var va=ht(Br());var ya=(()=>{class s{constructor(e){this.api=e}check(e){return this.api.post("custom-domain/check",{hostToCheck:e},{hideErrorToast:!0})}static{this.\u0275fac=function(i){return new(i||s)(p(qe))}}static{this.\u0275prov=g({token:s,factory:s.\u0275fac,providedIn:"root"})}}return s})();var ms=(()=>{class s{constructor(e,i){this.store=e,this.api=i}canActivate(e,i){return this.store.select(Yr.getDataGuard).pipe(ne(),L(r=>{if(r.instance&&(0,va.default)(r.dateInstance).add(2,"day").isAfter())return q(!0);let o=window.location.host;return ae.frontendUrl.indexOf(o)!==-1?q(!0):this.api.check(o).pipe(y(a=>(this.store.dispatch(Wr.setInstance({instance:a})),!0)))}))}static{this.\u0275fac=function(i){return new(i||s)(p(z),p(ya))}}static{this.\u0275prov=g({token:s,factory:s.\u0275fac,providedIn:"root"})}}return s})();var Sa=(()=>{class s{constructor(e,i){this.socketChatSrv=e,this.socketNotificationSrv=i}canActivate(e,i){return this.socketChatSrv.close(),this.socketNotificationSrv.close(),!0}static{this.\u0275fac=function(i){return new(i||s)(p(On),p(Nn))}}static{this.\u0275prov=g({token:s,factory:s.\u0275fac,providedIn:"root"})}}return s})();var ba=(()=>{class s{constructor(e,i){this.interfaceSettingsSrv=e,this.store=i}canActivate(e,i){return this.store.select(It.getInterfaceSettings).pipe(ne(),y(r=>(this.interfaceSettingsSrv.setLanguage(r.language),this.interfaceSettingsSrv.setTimezone(r.timezone),!0)))}static{this.\u0275fac=function(i){return new(i||s)(p(Ct),p(z))}}static{this.\u0275prov=g({token:s,factory:s.\u0275fac,providedIn:"root"})}}return s})();var Hl=()=>({"background-image":"url(/assets/media/auth/bg1.jpg)","background-size":"100%"}),Ea=(()=>{class s{constructor(e,i){this.systemContextSrv=e,this.router=i}ngOnInit(){this.systemContextSrv.refresh().subscribe(e=>{if(e)return this.router.navigate(["/"])})}static{this.\u0275fac=function(i){return new(i||s)(Q(Pn),Q(de))}}static{this.\u0275cmp=Je({type:s,selectors:[["app-page-not-found"]],decls:15,vars:8,consts:[["id","kt_app_root",1,"d-flex","flex-column","flex-root","background",3,"ngStyle"],[1,"d-flex","flex-column","flex-center","flex-column-fluid"],[1,"d-flex","flex-column","flex-center","text-center","p-10"],[1,"card","card-flush","w-lg-650px","py-5"],[1,"card-body","py-15","py-lg-20"],[1,"fw-bolder","fs-2hx","text-gray-900","mb-4"],[1,"fw-semibold","fs-6","text-gray-500","mb-7"],[1,"mb-3"],["src","/assets/media/auth/404-error.png","alt","",1,"mw-100","mh-300px","theme-light-show"],["src","/assets/media/auth/404-error-dark.png","alt","",1,"mw-100","mh-300px","theme-dark-show"]],template:function(i,r){i&1&&(Te(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"h1",5),ze(6),Be(7,"translate"),we(),Te(8,"div",6)(9,"h2"),ze(10),Be(11,"translate"),we()(),Te(12,"div",7),et(13,"img",8)(14,"img",9),we()()()()()()),i&2&&(St("ngStyle",lr(7,Hl)),Me(6),di(Ke(7,3,"page not found.line 1")),Me(4),di(Ke(11,5,"page not found.line 2")))},dependencies:[bt,mr,_t],styles:[".background[_ngcontent-%COMP%]{background-size:cover!important;min-height:100vh;background-position:center}"]})}}return s})();var Ta=[{path:"404",component:Ea},{path:"",canActivate:[fa,ha],data:{rootpath:1},children:[{path:"",canActivate:[ms,ga,Sa],loadChildren:()=>import("./chunk-CXWLY7H7.js")},{path:"",canActivate:[ms,pa],children:[{path:"",canActivate:[ba
1],children:[{path:"pre",canActivate:[],loadChildren:()=>import("./chunk-22IEH4BY.js")},{path:"",canActivate:[],loadChildren:()=>import("./chunk-SIXPIF7Z.js")}]}]}]},{path:"",redirectTo:"dashboard",pathMatch:"full"},{path:"**",redirectTo:"dashboard"}];var wa=(()=>{class s{constructor(e){this.store=e}intercept(e,i){if(!(e.url.indexOf(ae.backend)===0))return i.handle(e);let n=e.clone({withCredentials:!0});return this.store.select(pe.getAccessToken).pipe(Y(1),L(o=>(o&&(n=n.clone({headers:e.headers.append("Authorization",`Bearer ${o}`)})),i.handle(n))))}static{this.\u0275fac=function(i){return new(i||s)(p(z))}}static{this.\u0275prov=g({token:s,factory:s.\u0275fac,providedIn:"root"})}}return s})();var _a=(()=>{class s{constructor(e,i,r,n){this.auth=e,this.authApi=i,this.store=r,this.apiSrv=n}intercept(e,i){return e.url.indexOf(ae.backend)===0?this.store.select(pe.getRefreshToken).pipe(Y(1),L(n=>i.handle(e).pipe(fe(o=>o.status===401&&o.error==="jwt expired"?this.authApi.refreshToken(n).pipe(L(a=>{this.apiSrv.setAccessToken(a.newAccessToken),this.store.dispatch(me.setAccessToken({token:a.newAccessToken})),this.store.dispatch(me.setMediafilesToken({token:a.newMediafilesToken}));let c=e.clone({headers:e.headers.set("Authorization",`Bearer ${a.newAccessToken}`)});return i.handle(c)})):o.status===401?(this.auth.logout(),ni(()=>o)):ni(()=>o))))):i.handle(e)}static{this.\u0275fac=function(i){return new(i||s)(p(Ae),p(Rt),p(z),p(qe))}}static{this.\u0275prov=g({token:s,factory:s.\u0275fac,providedIn:"root"})}}return s})();var Ma=ht(Ca(),1);var ps="@ngrx/store/init",lu="@ngrx/store/update-reducers";function uu(s){let t=new Date(s);return t.toString()==="Invalid Date"?s:t}var fu=(s,t)=>typeof t=="string"?uu(t):t,du=(s,t)=>t,mu=()=>typeof window<"u",pu=s=>s.map(t=>{let e=t;if(typeof t=="object"&&(e=Object.keys(t)[0]),typeof e!="string")throw new TypeError(`localStorageSync Unknown Parameter Type: Expected type of string, got ${typeof e}`);return t}),hu=(s,t,e,i)=>s.reduce((r,n)=>{let o=n,a=i?fu:du,c,l;if(typeof o=="object"&&(o=Object.keys(o)[0],typeof n[o]=="function"?a=n[o]:(n[o].reviver&&(a=n[o].reviver),n[o].deserialize&&(c=n[o].deserialize)),n[o].encrypt&&n[o].decrypt?typeof n[o].encrypt=="function"&&typeof n[o].decrypt=="function"?l=n[o].decrypt:console.error(`Either encrypt or decrypt is not a function on '${n[o]}' key object.`):(n[o].encrypt||n[o].decrypt)&&console.error(`Either encrypt or decrypt function is not present on '${n[o]}' key object.`)),t!==void 0){let f=t.getItem(e(o));if(f){l&&(f=l(f));let u=new RegExp("{|\\["),h=f;return(f==="null"||f==="true"||f==="false"||u.test(f.charAt(0)))&&(h=JSON.parse(f,a)),Object.assign({},r,{[o]:c?c(h):h})}}return r},{});function ka(s,t){return t.reduce((e,i)=>{if(typeof i=="string"||typeof i=="number"){let r=s?.[i];r!==void 0&&(e[i]=r)}else for(let r in i)if(Object.prototype.hasOwnProperty.call(i,r)){let n=i[r];e[r]=ka(s[r],n)}return e},{})}var gu=(s,t,e,i,r,n)=>{if(n)try{if(n(s)!==!0)return}catch(o){if(o instanceof TypeError)return;throw o}t.forEach(o=>{let a=s[o],c,l,f;if(typeof o=="object"){let u=Object.keys(o)[0];if(a=s[u],typeof a<"u"&&o[u]){if(o[u].serialize)a=o[u].serialize(a);else{let h;o[u].reduce?h=o[u]:o[u].filter&&(h=o[u].filter),h&&(a=ka(a,h)),o[u].encrypt&&o[u].decrypt?typeof o[u].encrypt=="function"&&(f=o[u].encrypt):(o[u].encrypt||o[u].decrypt)&&console.error(`Either encrypt or decrypt function is not present on '${o[u]}' key object.`)}c=o[u].replacer,l=o[u].space}o=u}if(typeof a<"u"&&e!==void 0)try{f&&(a=f(typeof a=="string"?a:JSON.stringify(a,c,l))),e.setItem(i(o),typeof a=="string"?a:JSON.stringify(a,c,l))}catch(u){console.warn("Unable to save state to localStorage:",u)}else if(typeof a>"u"&&r&&e!==void 0)try{e.removeItem(i(o))}catch(u){console.warn(`Exception on removing/cleaning undefined '${o}' state`,u)}})},yu=(s,t,e)=>((e.type===ps||e.type===lu)&&t&&(s=(0,Ma.default)(s,t,{arrayMerge:(n,o,a)=>o})),s),Pa=s=>t=>{(s.storage===void 0&&!s.checkStorageAvailability||s.checkStorageAvailability&&mu())&&(s.storage=localStorage||window.localStorage),s.storageKeySerializer===void 0&&(s.storageKeySerializer
1=n=>n),s.restoreDates===void 0&&(s.restoreDates=!0);let e=s.mergeReducer;(e===void 0||typeof e!="function")&&(e=yu);let i=pu(s.keys),r=s.rehydrate?hu(i,s.storage,s.storageKeySerializer,s.restoreDates):void 0;return function(n,o){let a;return o.type===ps&&!n?a=t(n,o):a=V({},n),a=e(a,r,o),a=t(a,o),o.type!==ps&&gu(a,i,s.storage,s.storageKeySerializer,s.removeOnUndefined,s.syncCondition),a}};var Oa={layout:tn,user:bn,system:pn,auth:Kr,interfaceSettings:en,mediaPlayerControl:nn,chat:qr,legalDocument:rn,tracking:gn,trackingContent:hn,suggestion:mn,dictionary:Zr,speakingTeacher:fn,translator:vn,writingTask:In,webschool:An,customDomain:Hr,organization:ln,courseGroup:Qr,virtualLesson:wn,notification:an,temp:Cn},vu=["user","system","auth","interfaceSettings","legalDocument","tracking","trackingContent","suggestion","dictionary","speakingTeacher","translator","writingTask","webschool","customDomain","organization","courseGroup","virtualLesson"];function Su(s){return Pa({keys:vu,rehydrate:!0,storageKeySerializer:t=>`ba_${t}`})(s)}var hs;function bu(s){return(t,e)=>(e.type===me.setAccessToken.type&&(hs=new Date().getTime(),localStorage.setItem("ba_refreshWindow",hs.toString())),s(t,e))}var Na=[Su,bu];window.addEventListener("storage",s=>{s.key==="ba_refreshWindow"&&parseInt(localStorage.getItem("ba_refreshWindow"),10)!==hs&&window.location.reload()});var Da=(()=>{class s{constructor(e){this.actions$=e,this.logout$=N(()=>this.actions$.pipe(j(O),y(()=>Vr())))}static{this.\u0275fac=function(i){return new(i||s)(p(D))}}static{this.\u0275prov=g({token:s,factory:s.\u0275fac})}}return s})();var ja=(()=>{class s{constructor(e){this.actions$=e,this.logout$=N(()=>this.actions$.pipe(j(O),y(()=>Gr())))}static{this.\u0275fac=function(i){return new(i||s)(p(D))}}static{this.\u0275prov=g({token:s,factory:s.\u0275fac})}}return s})();var Fa=(()=>{class s{constructor(e){this.actions$=e,this.logout$=N(()=>this.actions$.pipe(j(O),y(()=>Xr())))}static{this.\u0275fac=function(i){return new(i||s)(p(D))}}static{this.\u0275prov=g({token:s,factory:s.\u0275fac})}}return s})();var xa=(()=>{class s{constructor(e){this.actions$=e,this.logout$=N(()=>this.actions$.pipe(j(O),y(()=>Jr())))}static{this.\u0275fac=function(i){return new(i||s)(p(D))}}static{this.\u0275prov=g({token:s,factory:s.\u0275fac})}}return s})();var La=(()=>{class s{constructor(e){this.actions$=e,this.logout$=N(()=>this.actions$.pipe(j(O),y(()=>sn())))}static{this.\u0275fac=function(i){return new(i||s)(p(D))}}static{this.\u0275prov=g({token:s,factory:s.\u0275fac})}}return s})();var $a=(()=>{class s{constructor(e){this.actions$=e,this.logout$=N(()=>this.actions$.pipe(j(O),y(()=>on())))}static{this.\u0275fac=function(i){return new(i||s)(p(D))}}static{this.\u0275prov=g({token:s,factory:s.\u0275fac})}}return s})();var Ua=(()=>{class s{constructor(e){this.actions$=e,this.logout$=N(()=>this.actions$.pipe(j(O),y(()=>cn())))}static{this.\u0275fac=function(i){return new(i||s)(p(D))}}static{this.\u0275prov=g({token:s,factory:s.\u0275fac})}}return s})();var za=(()=>{class s{constructor(e){this.actions$=e,this.logout$=N(()=>this.actions$.pipe(j(O),y(()=>un())))}static{this.\u0275fac=function(i){return new(i||s)(p(D))}}static{this.\u0275prov=g({token:s,factory:s.\u0275fac})}}return s})();var Ba=(()=>{class s{constructor(e){this.actions$=e,this.logout$=N(()=>this.actions$.pipe(j(O),y(()=>dn())))}static{this.\u0275fac=function(i){return new(i||s)(p(D))}}static{this.\u0275prov=g({token:s,factory:s.\u0275fac})}}return s})();var Ka=(()=>{class s{constructor(e){this.actions$=e,this.logout$=N(()=>this.actions$.pipe(j(O),y(()=>Rn())))}static{this.\u0275fac=function(i){return new(i||s)(p(D))}}static{this.\u0275prov=g({token:s,factory:s.\u0275fac})}}return s})();var Va=(()=>{class s{constructor(e){this.actions$=e,this.logout$=N(()=>this.actions$.pipe(j(O),y(()=>yn())))}static{this.\u0275fac=function(i){return new(i||s)(p(D))}}static{this.\u0275prov=g({token:s,factory:s.\u0275fac})}}return s})();var qa=(()=>{class s{constructor(e){this.actions$=e,this.logout$=N(()=>this.actions$.pipe(j(O),y(()=>Sn())))}static{this.\u0275fac=function(i){return new(i||s)(p(D))}}static{this.\u0275prov=g({token:s,factory:s.\u0275fac})}}return s})();var Ga=(()=>{class s{constructor(e){this.actions$=e,this.logout$=N(()=>this.actions$.pipe(j(O),y(()=>Tn())))}static{this.\u0275fac=function(i){return new(i||s)(p(D))}}static{this.\u0275prov=g({token:s,factory:s.\u0275fac})}}return s})();var Qa=(()=>{class s{constructor(e){this.actions$=e,this.logout$=N(()=>this.actions$.pipe(j(O),y(()=>_n())))}static{this.\u0275fac=function(i){return new(i||s)(p(D))}}static{this.\u0275prov=g({token:s,factory:s.\u0275fac})}}return s})();var Wa=[qa,Da,xa,La,Ba,Fa,za,Va,Qa,Ua,ja,Ga,$a,Ka];var je=class{blockingMode;consentMode;cbId;cdn;culture;framework;level;loadScript;type;widgetEnabled;widgetPosition;widgetDistanceVertical;widgetDistanceHorizontal};function Eu(){return window}
1var mt=(()=>{class s{#e=K(je);#s=K(li);#r=new H;#n=new H;#o=new H;#a=new H;#c=new H;#i=new Ts(!1);#l=new H;#t=new H;cookiebot;onAccept$;onLoad$;onConsentReady$;onDecline$;onDialogInit$;onDialogDisplay$;onTagsExecuted$;onAcceptCallback$=this.#r.asObservable();onDeclineCallback$=this.#n.asObservable();onDialogDisplayCallback$=this.#o.asObservable();onDialogInitCallback$=this.#a.asObservable();onLoadCallback$=this.#c.asObservable();onServiceReady$=this.#i.asObservable();onTagsExecutedCallback$=this.#l.asObservable();constructor(){mi(this.#s)&&(this.#m(),this.#t=Eu())}init(){return mi(this.#s)?new Promise(e=>{try{this.#e.loadScript!==!1&&this.#t.document.head.append(this.#u())}catch(n){return this.#i.error(n),e()}let i=setTimeout(()=>{this.#i.error("Timed out"),clearInterval(r)},3e4),r=setInterval(()=>{this.#t.Cookiebot instanceof HTMLElement||(this.cookiebot=this.#t.Cookiebot,this.#f(),this.#d(),clearInterval(r),clearTimeout(i),this.#i.next(!0))},10);return e()}):new Promise(e=>{e()})}#u(){let e=document.createElement("script");return e.type="text/javascript",e.id="Cookiebot",e.src="https://consent.cookiebot."+this.#e.cdn+"/uc.js",e.setAttribute("data-cbid",this.#e.cbId),this.#e.blockingMode==="auto"?e.setAttribute("data-blockingmode","auto"):e.async=!0,this.#e.consentMode==="disabled"&&e.setAttribute("data-consentmode",this.#e.consentMode),this.#e.culture&&e.setAttribute("data-culture",this.#e.culture),this.#e.framework&&e.setAttribute("data-framework",this.#e.framework),this.#e.level&&e.setAttribute("data-level",this.#e.level),this.#e.type&&e.setAttribute("data-type",this.#e.type),this.#e.widgetEnabled&&e.setAttribute("data-widget-enabled",this.#e.widgetEnabled?"true":"false"),this.#e.widgetPosition&&e.setAttribute("data-widget-position",this.#e.widgetPosition),this.#e.widgetDistanceVertical&&e.setAttribute("data-widget-distance-vertical",this.#e.widgetDistanceVertical.toString()),this.#e.widgetDistanceHorizontal&&e.setAttribute("data-widget-distance-horizontal",this.#e.widgetDistanceHorizontal.toString()),e}#f(){window.CookiebotCallback_OnAccept=()=>{this.#r.next()},window.CookiebotCallback_OnDecline=()=>{this.#n.next()},window.CookiebotCallback_OnDialogDisplay=()=>{this.#o.next()},window.CookiebotCallback_OnDialogInit=()=>{this.#a.next()},window.CookiebotCallback_OnLoad=()=>{this.#c.next()},window.CookiebotCallback_OnTagsExecuted=()=>{this.#l.next()}}#d(){this.onAccept$=be(this.#t,"CookiebotOnAccept"),this.onConsentReady$=be(this.#t,"CookiebotOnConsentReady"),this.onDecline$=be(this.#t,"CookiebotOnDecline"),this.onDialogInit$=be(this.#t,"CookiebotOnDialogInit"),this.onDialogDisplay$=be(this.#t,"CookiebotOnDialogDisplay"),this.onLoad$=be(this.#t,"CookiebotOnLoad"),this.onTagsExecuted$=be(this.#t,"CookiebotOnTagsExecuted")}#m(){if(typeof this.#e.loadScript!="boolean")throw new Error("Wrong loadScript config value. Please provide a correct value in the Cookiebot config");if(this.#e.loadScript!==!1){if(!this.#e.cdn||!["com","eu"].includes(this.#e.cdn))throw new Error("Wrong cdn config value. Please provide a correct value in the Cookiebot config");if(!this.#e.cbId)throw new Error("Wrong cbId config value. Please provide a correct value in the Cookiebot config");if(!this.#e.blockingMode||!["auto","manual"].includes(this.#e.blockingMode))throw new Error("Wrong blockingMode config value. Please provide a correct value in the Cookiebot config")}}static \u0275fac=function(i){return new(i||s)};static \u0275prov=g({token:s,factory:s.\u0275fac,providedIn:"root"})}return s})();function Tu(s){return()=>s.init()}function Ha(s){return Ee([{provide:je,useClass:s},{provide:mt,useClass:mt,deps:[je,li]},vt(()=>Tu(K(mt))())])}var gs=class extends je{constructor(){super(...arguments),this.cbId="0608abb9-c3e1-4c0a-9cc8-ca82b15d9819",this.cdn="eu",this.blockingMode="manual",this.loadScript=!0}},Ya={providers:[Gs(),ur({eventCoalescing:!0}),Cr(Ta,Mr({anchorScrolling:"enabled"})),No(),Lr(Oa,{metaReducers:Na}),zo(Wa),ae.production?[]:ua(),Sr(br()),zs([At.forRoot({loader:{provide:$r,useFactory:s=>new ti(s,[{prefix:"./translations/",suffix:".json"},{prefix:"./translations/fixed/",suffix:".json"}]),deps:[yr]}})]),{provide:pi,useClass:wa,multi:!0},{provide:pi,useClass:_a,multi:!0},Fo("ngsw-worker.js",{enabled:!fr(),registrationStrategy:"registerWhenStable:30000"}),Ha(gs)]};var Za=ht(ic());var Xa=(()=>{class s{constructor(e){this.cookiebot=e,this.loaded=!1}init(){this.cookiebot.onConsentReady$.subscribe(()=>{this.cookiebot.cookiebot.consent.statistics&&this.loadGtm()})}loadGtm(){if(this.loaded)return;this.loaded=!0,window.dataLayer=window.dataLayer||[],window.dataLayer.push({"gtm.start":new Date().getTime(),event:"gtm.js"});let e=document.createElement("script");e.async=!0,e.src="https://www.googletagmanager.com/gtm.js?id=GTM-TTQ2CM2",document.head.appendChild(e)}static{this.\u0275fac=function(i){return new(i||s)(p(mt))}}static{this.\u0275prov=g({token:s,factory:s.\u0275fac,providedIn:"root"})}}return s})();var Au=["root",""];function Iu(s,t){s&1&&(Te(0,"div",0)(1,"div",3)(2,"span",4),ze(3,"Loading..."),we()()())}function Ru(s,t){if(s&1){let e=rr();Te(0,"ngb-toast",5),nr("hidden",function(){let r=Bs(e).$implicit,n=or();return Ks(n.removeToast(r))}),ze(1),Be(2,"translate"),we()}if(s&2){let e=t.$implicit;
1ar("bg-"+e.color),St("autohide",!0)("delay",2e3),Me(),cr(" ",Ke(2,5,e.text)," ")}}var Ja=(()=>{class s{constructor(e,i,r,n,o,a,c,l,f,u,h,S){this.store=e,this.translateService=i,this.elRef=r,this.renderer=n,this.router=o,this.ngbModal=a,this.sanitizer=c,this.mediafileServerSrv=l,this.matIconRegistry=f,this.cdr=u,this.interfaceSettingsSrv=h,this.gtm=S,this.toasts$=this.store.select(_e.getToasts),this.totalRouteChanges=0,this.showLoading=!1,this.store.select(Ve.getInterfaceLanguages).pipe(L(d=>this.store.select(Ve.getLanguage).pipe(y(m=>({sysLanguage:m,languages:d})))),L(({sysLanguage:d,languages:m})=>this.store.select(It.getLanguage).pipe(y(w=>({userLanguage:w,sysLanguage:d,languages:m}))))).subscribe(({userLanguage:d,sysLanguage:m,languages:w})=>{let A=w.includes(m)?m:w[0];this.translateService.setDefaultLang("en");let R;w.includes(d)?(this.translateService.use(d),R=d):(this.translateService.use(A),R=A),document.documentElement.lang=R}),this.store.select(_e.getRendered).subscribe(d=>{let m=["header-fixed","header-tablet-and-mobile-fixed"];d?this.addClasses(m):(m.push("header-extended"),this.removeClasses(m))}
1),this.store.select(_e.getWithSubheader).subscribe(d=>{let m=["subheader-enabled","subheader-fixed"];d?this.addClasses(m):this.removeClasses(m)}),this.store.select(_e.getTopbarMobileVisible).subscribe(d=>{let m=["topbar-mobile-on"];d?this.addClasses(m):this.removeClasses(m)}),this.store.select(_e.getTopbarMobileVisible).subscribe(d=>{let m=["topbar-mobile-on"];d?this.addClasses(m):this.removeClasses(m)}),this.router.events.subscribe(d=>{if(d instanceof wr&&this.ngbModal.dismissAll(),d instanceof _r){let m=d.url.indexOf("/test")!==-1;m?this.renderer.addClass(document.body,"mode-test-user"):this.renderer.removeClass(document.body,"mode-test-user"),this.totalRouteChanges++,this.totalRouteChanges>20&&!m&&window.location.reload()}}),this.router.events.subscribe(d=>{d instanceof Ar&&(this.showLoading=!0),d instanceof Ir&&(this.showLoading=!1)}),this.matIconRegistry.addSvgIcon("speakingLab",this.sanitizer.bypassSecurityTrustResourceUrl("/assets/custom/media/svgs/SpeakingLab_Negre.svg")),this.matIconRegistry.addSvgIcon("assessment",this.sanitizer.bypassSecurityTrustResourceUrl("/assets/custom/media/svgs/Assessment_Negre.svg")),this.matIconRegistry.addSvgIcon("chatPal",this.sanitizer.bypassSecurityTrustResourceUrl("/assets/custom/media/svgs/ChatPal.svg")),this.matIconRegistry.addSvgIcon("bringapps",this.sanitizer.bypassSecurityTrustResourceUrl("/assets/custom/media/svgs/bringapps.svg")),this.matIconRegistry.addSvgIcon("ba_plane",this.sanitizer.bypassSecurityTrustResourceUrl("/assets/custom/media/svgs/BA_plane.svg")),this.matIconRegistry.addSvgIcon("book",this.sanitizer.bypassSecurityTrustResourceUrl("/assets/custom/media/svgs/book.svg")),this.matIconRegistry.addSvgIcon("microphone",this.sanitizer.bypassSecurityTrustResourceUrl("/assets/custom/media/svgs/microphone.svg")),this.matIconRegistry.addSvgIcon("books",this.sanitizer.bypassSecurityTrustResourceUrl("/assets/custom/media/svgs/books.svg")),this.matIconRegistry.addSvgIcon("box",this.sanitizer.bypassSecurityTrustResourceUrl("/assets/custom/media/svgs/box.svg")),this.matIconRegistry.addSvgIcon("timelineArrow",this.sanitizer.bypassSecurityTrustResourceUrl("/assets/custom/media/svgs/timeline-arrow.svg")),this.matIconRegistry.addSvgIcon("inlingua-certificate",c.bypassSecurityTrustResourceUrl("/assets/custom/media/svgs/inlingua-certificate.svg")),this.matIconRegistry.addSvgIcon("inlingua-group-1",c.bypassSecurityTrustResourceUrl("/assets/custom/media/svgs/inlingua-group-1.svg")),this.matIconRegistry.addSvgIcon("inlingua-virtual-classroom",c.bypassSecurityTrustResourceUrl("/assets/custom/media/svgs/inlingua-virtual-classroom.svg")),this.matIconRegistry.addSvgIcon("inlingua-course-groups",c.bypassSecurityTrustResourceUrl("/assets/custom/media/svgs/inlingua-course-groups.svg")),this.matIconRegistry.addSvgIcon("inlingua-agenda",c.bypassSecurityTrustResourceUrl("/assets/custom/media/svgs/inlingua-agenda.svg")),this.matIconRegistry.addSvgIcon("inlingua-brandmanual",c.bypassSecurityTrustResourceUrl("/assets/custom/media/svgs/inlingua-brandmanual.svg")),this.matIconRegistry.addSvgIcon("inlingua-cms",c.bypassSecurityTrustResourceUrl("/assets/custom/media/svgs/inlingua-cms.svg")),this.matIconRegistry.addSvgIcon("inlingua-communications",c.bypassSecurityTrustResourceUrl("/assets/custom/media/svgs/inlingua-communications.svg")),this.matIconRegistry.addSvgIcon("inlingua-courses",c.bypassSecurityTrustResourceUrl("/assets/custom/media/svgs/inlingua-courses.svg")),this.matIconRegistry.addSvgIcon("inlingua-crm",c.bypassSecurityTrustResourceUrl("/assets/custom/media/svgs/inlingua-crm.svg")),this.matIconRegistry.addSvgIcon("inlingua-home",c.bypassSecurityTrustResourceUrl("/assets/custom/media/svgs/inlingua-home.svg")),this.matIconRegistry.addSvgIcon("inlingua-lab",c.bypassSecurityTrustResourceUrl("/assets/custom/media/svgs/inlingua-lab.svg")),this.matIconRegistry.addSvgIcon("inlingua-news",c.bypassSecurityTrustResourceUrl("/assets/custom/media/svgs/inlingua-news.svg")),this.matIconRegistry.addSvgIcon("inlingua-shop",c.bypassSecurityTrustResourceUrl("/assets/custom/media/svgs/inlingua-shop.svg")),this.matIconRegistry.addSvgIcon("inlingua-notifications",c.bypassSecurityTrustResourceUrl("/assets/custom/media/svgs/inlingua-notifications.svg")),this.matIconRegistry.addSvgIcon("inlingua-profile",c.bypassSecurityTrustResourceUrl("/assets/custom/media/svgs/inlingua-profile.svg")),this.matIconRegistry.addSvgIcon("inlingua-settings",c.bypassSecurityTrustResourceUrl("/assets/custom/media/svgs/inlingua-settings.svg")),this.matIconRegistry.addSvgIcon("inlingua-locked",c.bypassSecurityTrustResourceUrl("/assets/custom/media/svgs/inlingua-locked.svg")),this.matIconRegistry.addSvgIcon("inlingua-email",c.bypassSecurityTrustResourceUrl("/assets/custom/media/svgs/inlingua-email.svg")),this.matIconRegistry.addSvgIcon("inlingua-task",c.bypassSecurityTrustResourceUrl("/assets/custom/media/svgs/inlingua-files.svg")),this.matIconRegistry.addSvgIcon("inlingua-test",c.bypassSecurityTrustResourceUrl("/assets/custom/media/svgs/inlingua-test.svg")),this.matIconRegistry.addSvgIcon("island",c.bypassSecurityTrustResourceUrl("/assets/custom/media/svgs/island.svg")),this.matIconRegistry.addSvgIcon("h5p",c.bypassSecurityTrustResourceUrl("/assets/custom/media/svgs/h5p.svg")),this.matIconRegistry.addSvgIcon("gamification-level",c.bypassSecurityTrustResourceUrl("/assets/custom/media/svgs/gamification-level.svg")),this.matIconRegistry.addSvgIcon("gamification-header",c.bypassSecurityTrustResourceUrl("/assets/custom/media/svgs/gamification-header.svg")),this.matIconRegistry.addSvgIcon("assessment",c.bypassSecurityTrustResourceUrl("/assets/custom/media/svgs/assessment.svg")),this.matIconRegistry.addSvgIcon("assignments",c.bypassSecurityTrustResourceUrl("/assets/custom/media/svgs/assignments.svg")),this.matIconRegistry.addSvgIcon("audio_task",c.bypassSecurityTrustResourceUrl("/assets/custom/media/svgs/audio_task.svg")),this.matIconRegistry.addSvgIcon("dictionary",c.bypassSecurityTrustResourceUrl("/assets/custom/media/svgs/dictionary.svg")),this.matIconRegistry.addSvgIcon("groups",c.bypassSecurityTrustResourceUrl("/assets/custom/media/svgs/groups.svg")),this.matIconRegistry.addSvgIcon("my_lab",c.bypassSecurityTrustResourceUrl("/assets/custom/media/svgs/my_lab.svg")),this.matIconRegistry.addSvgIcon("my_vc",c.bypassSecurityTrustResourceUrl("/assets/custom/media/svgs/my_vc.svg")),this.matIconRegistry.addSvgIcon("tasks",c.bypassSecurityTrustResourceUrl("/assets/custom/media/svgs/tasks.svg")),this.matIconRegistry.addSvgIcon("writing_task",c.bypassSecurityTrustResourceUrl("/assets/custom/media/svgs/writing_task.svg")),this.matIconRegistry.addSvgIcon("ebook",c.bypassSecurityTrustResourceUrl("/assets/custom/media/svgs/ebook.svg")),this.matIconRegistry.addSvgIcon("package",c.bypassSecurityTrustResourceUrl("/assets/custom/media/svgs/package.svg")),this.matIconRegistry.addSvgIcon("bringapps-suggestions",c.bypassSecurityTrustResourceUrl("/assets/custom/media/svgs/bringapps_rocket.svg")),this.matIconRegistry.addSvgIcon("fluency_lab",c.bypassSecurityTrustResourceUrl("/assets/custom/media/svgs/fluency_lab.svg")),this.matIconRegistry.addSvgIcon("lexi_lab",c.bypassSecurityTrustResourceUrl("/assets/custom/media/svgs/lexi_lab.svg")),this.matIconRegistry.addSvgIcon("inlingua-handshake",c.bypassSecurityTrustResourceUrl("/assets/custom/media/svgs/inlingua-handshake.svg")),this.matIconRegistry.addSvgIcon("inlingua-computer-2",c.bypassSecurityTrustResourceUrl("/assets/custom/media/svgs/inlingua-computer-2.svg")),this.matIconRegistry.addSvgIcon("inlingua-pdf",c.bypassSecurityTrustResourceUrl("/assets/custom/media/svgs/inlingua-pdf.svg")),this.matIconRegistry.addSvgIcon("inlingua-group-2",c.bypassSecurityTrustResourceUrl("/assets/custom/media/svgs/inlingua-group-2.svg")),this.matIconRegistry.addSvgIcon("inlingua-exam",c.bypassSecurityTrustResourceUrl("/assets/custom/media/svgs/inlingua-exam.svg")),this.matIconRegistry.addSvgIcon("inlingua-files",c.bypassSecurityTrustResourceUrl("/assets/custom/media/svgs/inlingua-files-2.svg"))}removeToast(e){this.store.dispatch(vi.removeToast({toast:e}))}addClasses(e){e.forEach(i=>
1this.renderer.addClass(this.elRef.nativeElement,i))}removeClasses(e){e.forEach(i=>this.renderer.removeClass(this.elRef.nativeElement,i))}ngOnInit(){this.store.select(_e.getShowLoadingFullBody).subscribe(e=>{this.showLoading=e,this.cdr.detectChanges()}),this.store.select(Ve.getThemeColors).subscribe(e=>{let i=[],r=["--primary-color","--primary-color-active"];e.primary&&r.forEach(o=>i.push(`${o}: ${e.primary};`));let n=["--secondary-color"];if(e.secondary&&n.forEach(o=>i.push(`${o}: ${e.secondary};`)),i.length){let o=document.getElementsByTagName("head")[0],a=document.createElement("style");a.appendChild(document.createTextNode(`
2        :root {
3          ${i.join("")}
4        }
5        `)),o.appendChild(a)}}),this.store.select(Ve.getThemeFavicon).subscribe(e=>{let i="assets/favicon.ico";if(e){let n=this.sanitizer.bypassSecurityTrustUrl(this.mediafileServerSrv.getImageRenderPublicUrl(e,null,!0));i=this.sanitizer.sanitize(Hs.URL,n)}let r=document.querySelector("link[rel~='icon']");if(!r){let n=document.createElement("link");n.rel="icon",document.head.appendChild(n)}r.href=i}),this.store.select(Ve.getThemeTitle).pipe(xs(null),y(e=>e||"my inlingua"),L(e=>this.store.select(_e.getTitle).pipe(y(i=>e+((0,Za.isEmpty)(i)?"":` - ${i}`))))).subscribe(e=>{document.title=e}),window.addEventListener("resize",()=>{this.checkWindowSize()}),this.checkWindowSize(),this.interfaceSettingsSrv.checkAudioRecorderErrors()}checkWindowSize(){let e=document.documentElement.clientWidth;this.store.dispatch(vi.isMobileSize({value:e<1200}))}static{this.\u0275fac=function(i){return new(i||s)(Q(z),Q(zr),Q(Ws),Q(Xs),Q(de),Q(Mn),Q(Er),Q(jn),Q(Dn),Q(dr),Q(Ct),Q(Xa))}}static{this.\u0275cmp=Je({type:s,selectors:[["body","root",""]],attrs:Au,decls:6,vars:3,consts:[[1,"overlay-splash-screen"],[1,"toasts-wrapper"],[1,"text-light",3,"class","autohide","delay"],["role","status",1,"spinner-border","text-primary"],[1,"visually-hidden"],[1,"text-light",3,"hidden","autohide","delay"]],template:function(i,r){i&1&&(et(0,"router-outlet"),Js(1,Iu,4,0,"div",0),Te(2,"div",1),ir(3,Ru,3,7,"ngb-toast",2,tr),Be(5,"async"),we()),i&2&&(Me(),er(r.showLoading?1:-1),Me(2),sr(Ke(5,1,r.toasts$)))},dependencies:[Rr,bt,pr,kn,At,_t],styles:["[_nghost-%COMP%]{height:100%;margin:0}[_nghost-%COMP%]   .overlay-splash-screen[_ngcontent-%COMP%]{position:fixed;z-index:1900;inset:0;display:flex;align-items:center;justify-content:center;flex-direction:column;background-color:#f2f3f8d9}[_nghost-%COMP%]   .toasts-wrapper[_ngcontent-%COMP%]{position:fixed;z-index:1101;min-width:250px;top:65px;right:20px}"]})}}return s})();gr(Ja,Ya).catch(s=>console.error(s));

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