Viewing File: /usr/local/cpanel/whostmgr/docroot/templates/web-log-retention/vendor-365520a0.b2b3956f923274f2.js

"use strict";(self.webpackChunkweb_log_retention=self.webpackChunkweb_log_retention||[]).push([[262],{9969:(es,Ae,oe)=>{oe.d(Ae,{FX:()=>Le,If:()=>c,K2:()=>Pe,hZ:()=>ht,i0:()=>ce,iF:()=>De,kY:()=>Me,kp:()=>v,sf:()=>Re,ui:()=>Ie,wk:()=>Ne});var c=function(f){return f[f.State=0]="State",f[f.Transition=1]="Transition",f[f.Sequence=2]="Sequence",f[f.Group=3]="Group",f[f.Animate=4]="Animate",f[f.Keyframes=5]="Keyframes",f[f.Style=6]="Style",f[f.Trigger=7]="Trigger",f[f.Reference=8]="Reference",f[f.AnimateChild=9]="AnimateChild",f[f.AnimateRef=10]="AnimateRef",f[f.Query=11]="Query",f[f.Stagger=12]="Stagger",f}(c||{});const v="*";function ht(f,u){return{type:c.Trigger,name:f,definitions:u,options:{}}}function ce(f,u=null){return{type:c.Animate,styles:u,timings:f}}function Pe(f,u=null){return{type:c.Sequence,steps:f,options:u}}function De(f){return{type:c.Style,styles:f,offset:null}}function Ne(f,u,w){return{type:c.State,name:f,styles:u,options:w}}function Me(f,u,w=null){return{type:c.Transition,expr:f,animation:u,options:w}}class Re{constructor(u=0,w=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=u+w}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(u=>u()),this._onDoneFns=[])}onStart(u){this._originalOnStartFns.push(u),this._onStartFns.push(u)}onDone(u){this._originalOnDoneFns.push(u),this._onDoneFns.push(u)}onDestroy(u){this._onDestroyFns.push(u)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){queueMicrotask(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(u=>u()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(u=>u()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(u){this._position=this.totalTime?u*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(u){const w="start"==u?this._onStartFns:this._onDoneFns;w.forEach(D=>D()),w.length=0}}class Ie{constructor(u){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=u;let w=0,D=0,z=0;const se=this.players.length;0==se?queueMicrotask(()=>this._onFinish()):this.players.forEach(X=>{X.onDone(()=>{++w==se&&this._onFinish()}),X.onDestroy(()=>{++D==se&&this._onDestroy()}),X.onStart(()=>{++z==se&&this._onStart()})}),this.totalTime=this.players.reduce((X,Be)=>Math.max(X,Be.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(u=>u()),this._onDoneFns=[])}init(){this.players.forEach(u=>u.init())}onStart(u){this._onStartFns.push(u)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(u=>u()),this._onStartFns=[])}onDone(u){this._onDoneFns.push(u)}onDestroy(u){this._onDestroyFns.push(u)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(u=>u.play())}pause(){this.players.forEach(u=>u.pause())}restart(){this.players.forEach(u=>u.restart())}finish(){this._onFinish(),this.players.forEach(u=>u.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(u=>u.destroy()),this._onDestroyFns.forEach(u=>u()),this._onDestroyFns=[])}reset(){this.players.forEach(u=>u.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(u){const w=u*this.totalTime;this.players.forEach(D=>{const z=D.totalTime?Math.min(1,w/D.totalTime):1;D.setPosition(z)})}getPosition(){const u=this.players.reduce((w,D)=>null===w||D.totalTime>w.totalTime?D:w,null);return null!=u?u.getPosition():0}beforeDestroy(){this.players.forEach(u=>{u.beforeDestroy&&u.beforeDestroy()})}triggerCallback(u){const w="start"==u?this._onStartFns:this._onDoneFns;w.forEach(D=>D()),w.length=0}}const Le="!"},8008:(es,Ae,oe)=>{oe.d(Ae,{LS:()=>Gt,O6:()=>rt,Pw:()=>$e,R6:()=>fi,Xw:()=>cs,Yp:()=>At,zT:()=>kt});var c=oe(9969),v=oe(3953);function ce(n){return new v.wOt(3e3,!1)}function G(n){switch(n.length){case 0:return new c.sf;case 1:return n[0];default:return new c.ui(n)}}function Et(n,e,t=new Map,s=new Map){const i=[],r=[];let o=-1,a=null;if(e.forEach(l=>{const h=l.get("offset"),d=h==o,m=d&&a||new Map;l.forEach((T,E)=>{let g=E,S=T;if("offset"!==E)switch(g=n.normalizePropertyName(g,i),S){case c.FX:S=t.get(E);break;case c.kp:S=s.get(E);break;default:S=n.normalizeStyleValue(E,g,S,i)}m.set(g,S)}),d||r.push(m),a=m,o=h}),i.length)throw function u(){return new v.wOt(3502,!1)}();return r}function Ke(n,e,t,s){switch(e){case"start":n.onStart(()=>s(t&&ze(t,"start",n)));break;case"done":n.onDone(()=>s(t&&ze(t,"done",n)));break;case"destroy":n.onDestroy(()=>s(t&&ze(t,"destroy",n)))}}function ze(n,e,t){const r=qe(n.element,n.triggerName,n.fromState,n.toState,e||n.phaseName,t.totalTime??n.totalTime,!!t.disabled),o=n._data;return null!=o&&(r._data=o),r}function qe(n,e,t,s,i="",r=0,o){return{element:n,triggerName:e,fromState:t,toState:s,phaseName:i,totalTime:r,disabled:!!o}}function L(n,e,t){let s=n.get(e);return s||n.set(e,s=t),s}function wt(n){const e=n.indexOf(":");return[n.substring(1,e),n.slice(e+1)]}const as=typeof document>"u"?null:document.documentElement;function Qe(n){const e=n.parentNode||n.host||null;return e===as?null:e}let Y=null,Tt=!1;function vt(n,e){for(;e;){if(e===n)return!0;e=Qe(e)}return!1}function bt(n,e,t){if(t)return Array.from(n.querySelectorAll(e));const s=n.querySelector(e);return s?[s]:[]}let $e=(()=>{class n{validateStyleProperty(t){return function hs(n){Y||(Y=function us(){return typeof document<"u"?document.body:null}()||{},Tt=!!Y.style&&"WebkitAppearance"in Y.style);let e=!0;return Y.style&&!function ls(n){return"ebkit"==n.substring(1,6)}(n)&&(e=n in Y.style,!e&&Tt&&(e="Webkit"+n.charAt(0).toUpperCase()+n.slice(1)in Y.style)),e}(t)}containsElement(t,s){return vt(t,s)}getParentElement(t){return Qe(t)}query(t,s,i){return bt(t,s,i)}computeStyle(t,s,i){return i||""}animate(t,s,i,r,o,a=[],l){return new c.sf(i,r)}static#e=this.\u0275fac=function(s){return new(s||n)};static#t=this.\u0275prov=v.jDH({token:n,factory:n.\u0275fac})}return n})();class cs{static#e=this.NOOP=new $e}class At{}const ds=1e3,Ve="ng-enter",fe="ng-leave",de="ng-trigger",me=".ng-trigger",Dt="ng-animating",Ue=".ng-animating";function W(n){if("number"==typeof n)return n;const e=n.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:je(parseFloat(e[1]),e[2])}function je(n,e){return"s"===e?n*ds:n}function pe(n,e,t){return n.hasOwnProperty("duration")?n:function ps(n,e,t){let i,r=0,o="";if("string"==typeof n){const a=n.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===a)return e.push(ce()),{duration:0,delay:0,easing:""};i=je(parseFloat(a[1]),a[2]);const l=a[3];null!=l&&(r=je(parseFloat(l),a[4]));const h=a[5];h&&(o=h)}else i=n;if(!t){let a=!1,l=e.length;i<0&&(e.push(function ut(){return new v.wOt(3100,!1)}()),a=!0),r<0&&(e.push(function Pe(){return new v.wOt(3101,!1)}()),a=!0),a&&e.splice(l,0,ce())}return{duration:i,delay:r,easing:o}}(n,e,t)}function V(n,e,t){e.forEach((s,i)=>{const r=Ge(i);t&&!t.has(i)&&t.set(i,n.style[r]),n.style[r]=s})}function x(n,e){e.forEach((t,s)=>{const i=Ge(s);n.style[i]=""})}function ae(n){return Array.isArray(n)?1==n.length?n[0]:(0,c.K2)(n):n}const We=new RegExp("{{\\s*(.+?)\\s*}}","g");function Mt(n){let e=[];if("string"==typeof n){let t;for(;t=We.exec(n);)e.push(t[1]);We.lastIndex=0}return e}function le(n,e,t){const s=`${n}`,i=s.replace(We,(r,o)=>{let a=e[o];return null==a&&(t.push(function Ne(){return new v.wOt(3003,!1)}()),a=""),a.toString()});return i==s?n:i}const _s=/-+([a-z0-9])/g;function Ge(n){return n.replace(_s,(...e)=>e[1].toUpperCase())}function B(n,e,t){switch(e.type){case c.If.Trigger:return n.visitTrigger(e,t);case c.If.State:return n.visitState(e,t);case c.If.Transition:return n.visitTransition(e,t);case c.If.Sequence:return n.visitSequence(e,t);case c.If.Group:return n.visitGroup(e,t);case c.If.Animate:return n.visitAnimate(e,t);case c.If.Keyframes:return n.visitKeyframes(e,t);case c.If.Style:return n.visitStyle(e,t);case c.If.Reference:return n.visitReference(e,t);case c.If.AnimateChild:return n.visitAnimateChild(e,t);case c.If.AnimateRef:return n.visitAnimateRef(e,t);case c.If.Query:return n.visitQuery(e,t);case c.If.Stagger:return n.visitStagger(e,t);default:throw function ct(){return new v.wOt(3004,!1)}()}}function He(n,e){return window.getComputedStyle(n)[e]}const ws=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"]);class kt extends At{normalizePropertyName(e,t){return Ge(e)}normalizeStyleValue(e,t,s,i){let r="";const o=s.toString().trim();if(ws.has(t)&&0!==s&&"0"!==s)if("number"==typeof s)r="px";else{const a=s.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&0==a[1].length&&i.push(function Me(){return new v.wOt(3005,!1)}())}return o+r}}const ge="*";const ye=new Set(["true","1"]),_e=new Set(["false","0"]);function Ct(n,e){const t=ye.has(n)||_e.has(n),s=ye.has(e)||_e.has(e);return(i,r)=>{let o=n==ge||n==i,a=e==ge||e==r;return!o&&t&&"boolean"==typeof i&&(o=i?ye.has(n):_e.has(n)),!a&&s&&"boolean"==typeof r&&(a=r?ye.has(e):_e.has(e)),o&&a}}const As=new RegExp("s*:selfs*,?","g");function Xe(n,e,t,s){return new Ps(n).build(e,t,s)}class Ps{constructor(e){this._driver=e}build(e,t,s){const i=new Ms(t);return this._resetContextStyleTimingState(i),B(this,ae(e),i)}_resetContextStyleTimingState(e){e.currentQuerySelector="",e.collectedStyles=new Map,e.collectedStyles.set("",new Map),e.currentTime=0}visitTrigger(e,t){let s=t.queryCount=0,i=t.depCount=0;const r=[],o=[];return"@"==e.name.charAt(0)&&t.errors.push(function ft(){return new v.wOt(3006,!1)}()),e.definitions.forEach(a=>{if(this._resetContextStyleTimingState(t),a.type==c.If.State){const l=a,h=l.name;h.toString().split(/\s*,\s*/).forEach(d=>{l.name=d,r.push(this.visitState(l,t))}),l.name=h}else if(a.type==c.If.Transition){const l=this.visitTransition(a,t);s+=l.queryCount,i+=l.depCount,o.push(l)}else t.errors.push(function dt(){return new v.wOt(3007,!1)}())}),{type:c.If.Trigger,name:e.name,states:r,transitions:o,queryCount:s,depCount:i,options:null}}visitState(e,t){const s=this.visitStyle(e.styles,t),i=e.options&&e.options.params||null;if(s.containsDynamicStyles){const r=new Set,o=i||{};s.styles.forEach(a=>{a instanceof Map&&a.forEach(l=>{Mt(l).forEach(h=>{o.hasOwnProperty(h)||r.add(h)})})}),r.size&&t.errors.push(function mt(){return new v.wOt(3008,!1)}(0,r.values()))}return{type:c.If.State,name:e.name,style:s,options:i?{params:i}:null}}visitTransition(e,t){t.queryCount=0,t.depCount=0;const s=B(this,ae(e.animation),t),i=function Ts(n,e){const t=[];return"string"==typeof n?n.split(/\s*,\s*/).forEach(s=>function vs(n,e,t){if(":"==n[0]){const l=function bs(n,e){switch(n){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(t,s)=>parseFloat(s)>parseFloat(t);case":decrement":return(t,s)=>parseFloat(s)<parseFloat(t);default:return e.push(function Re(){return new v.wOt(3016,!1)}()),"* => *"}}(n,t);if("function"==typeof l)return void e.push(l);n=l}const s=n.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==s||s.length<4)return t.push(function St(){return new v.wOt(3015,!1)}()),e;const i=s[1],r=s[2],o=s[3];e.push(Ct(i,o)),"<"==r[0]&&(i!=ge||o!=ge)&&e.push(Ct(o,i))}(s,t,e)):t.push(n),t}(e.expr,t.errors);return{type:c.If.Transition,matchers:i,animation:s,queryCount:t.queryCount,depCount:t.depCount,options:Z(e.options)}}visitSequence(e,t){return{type:c.If.Sequence,steps:e.steps.map(s=>B(this,s,t)),options:Z(e.options)}}visitGroup(e,t){const s=t.currentTime;let i=0;const r=e.steps.map(o=>{t.currentTime=s;const a=B(this,o,t);return i=Math.max(i,t.currentTime),a});return t.currentTime=i,{type:c.If.Group,steps:r,options:Z(e.options)}}visitAnimate(e,t){const s=function Cs(n,e){if(n.hasOwnProperty("duration"))return n;if("number"==typeof n)return Ye(pe(n,e).duration,0,"");const t=n;if(t.split(/\s+/).some(r=>"{"==r.charAt(0)&&"{"==r.charAt(1))){const r=Ye(0,0,"");return r.dynamic=!0,r.strValue=t,r}const i=pe(t,e);return Ye(i.duration,i.delay,i.easing)}(e.timings,t.errors);t.currentAnimateTimings=s;let i,r=e.styles?e.styles:(0,c.iF)({});if(r.type==c.If.Keyframes)i=this.visitKeyframes(r,t);else{let o=e.styles,a=!1;if(!o){a=!0;const h={};s.easing&&(h.easing=s.easing),o=(0,c.iF)(h)}t.currentTime+=s.duration+s.delay;const l=this.visitStyle(o,t);l.isEmptyStep=a,i=l}return t.currentAnimateTimings=null,{type:c.If.Animate,timings:s,style:i,options:null}}visitStyle(e,t){const s=this._makeStyleAst(e,t);return this._validateStyleAst(s,t),s}_makeStyleAst(e,t){const s=[],i=Array.isArray(e.styles)?e.styles:[e.styles];for(let a of i)"string"==typeof a?a===c.kp?s.push(a):t.errors.push(new v.wOt(3002,!1)):s.push(new Map(Object.entries(a)));let r=!1,o=null;return s.forEach(a=>{if(a instanceof Map&&(a.has("easing")&&(o=a.get("easing"),a.delete("easing")),!r))for(let l of a.values())if(l.toString().indexOf("{{")>=0){r=!0;break}}),{type:c.If.Style,styles:s,easing:o,offset:e.offset,containsDynamicStyles:r,options:null}}_validateStyleAst(e,t){const s=t.currentAnimateTimings;let i=t.currentTime,r=t.currentTime;s&&r>0&&(r-=s.duration+s.delay),e.styles.forEach(o=>{"string"!=typeof o&&o.forEach((a,l)=>{const h=t.collectedStyles.get(t.currentQuerySelector),d=h.get(l);let m=!0;d&&(r!=i&&r>=d.startTime&&i<=d.endTime&&(t.errors.push(function gt(){return new v.wOt(3010,!1)}()),m=!1),r=d.startTime),m&&h.set(l,{startTime:r,endTime:i}),t.options&&function ys(n,e,t){const s=e.params||{},i=Mt(n);i.length&&i.forEach(r=>{s.hasOwnProperty(r)||t.push(function De(){return new v.wOt(3001,!1)}())})}(a,t.options,t.errors)})})}visitKeyframes(e,t){const s={type:c.If.Keyframes,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push(function ke(){return new v.wOt(3011,!1)}()),s;let r=0;const o=[];let a=!1,l=!1,h=0;const d=e.steps.map(N=>{const M=this._makeStyleAst(N,t);let O=null!=M.offset?M.offset:function ks(n){if("string"==typeof n)return null;let e=null;if(Array.isArray(n))n.forEach(t=>{if(t instanceof Map&&t.has("offset")){const s=t;e=parseFloat(s.get("offset")),s.delete("offset")}});else if(n instanceof Map&&n.has("offset")){const t=n;e=parseFloat(t.get("offset")),t.delete("offset")}return e}(M.styles),C=0;return null!=O&&(r++,C=M.offset=O),l=l||C<0||C>1,a=a||C<h,h=C,o.push(C),M});l&&t.errors.push(function yt(){return new v.wOt(3012,!1)}()),a&&t.errors.push(function _t(){return new v.wOt(3200,!1)}());const m=e.steps.length;let T=0;r>0&&r<m?t.errors.push(function Ce(){return new v.wOt(3202,!1)}()):0==r&&(T=1/(m-1));const E=m-1,g=t.currentTime,S=t.currentAnimateTimings,A=S.duration;return d.forEach((N,M)=>{const O=T>0?M==E?1:T*M:o[M],C=O*A;t.currentTime=g+S.delay+C,S.duration=C,this._validateStyleAst(N,t),N.offset=O,s.styles.push(N)}),s}visitReference(e,t){return{type:c.If.Reference,animation:B(this,ae(e.animation),t),options:Z(e.options)}}visitAnimateChild(e,t){return t.depCount++,{type:c.If.AnimateChild,options:Z(e.options)}}visitAnimateRef(e,t){return{type:c.If.AnimateRef,animation:this.visitReference(e.animation,t),options:Z(e.options)}}visitQuery(e,t){const s=t.currentQuerySelector,i=e.options||{};t.queryCount++,t.currentQuery=e;const[r,o]=function Ds(n){const e=!!n.split(/\s*,\s*/).find(t=>":self"==t);return e&&(n=n.replace(As,"")),n=n.replace(/@\*/g,me).replace(/@\w+/g,t=>me+"-"+t.slice(1)).replace(/:animating/g,Ue),[n,e]}(e.selector);t.currentQuerySelector=s.length?s+" "+r:r,L(t.collectedStyles,t.currentQuerySelector,new Map);const a=B(this,ae(e.animation),t);return t.currentQuery=null,t.currentQuerySelector=s,{type:c.If.Query,selector:r,limit:i.limit||0,optional:!!i.optional,includeSelf:o,animation:a,originalSelector:e.selector,options:Z(e.options)}}visitStagger(e,t){t.currentQuery||t.errors.push(function Fe(){return new v.wOt(3013,!1)}());const s="full"===e.timings?{duration:0,delay:0,easing:"full"}:pe(e.timings,t.errors,!0);return{type:c.If.Stagger,animation:B(this,ae(e.animation),t),timings:s,options:null}}}class Ms{constructor(e){this.errors=e,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function Z(n){return n?(n={...n}).params&&(n.params=function Ns(n){return n?{...n}:null}(n.params)):n={},n}function Ye(n,e,t){return{duration:n,delay:e,easing:t}}function xe(n,e,t,s,i,r,o=null,a=!1){return{type:1,element:n,keyframes:e,preStyleProps:t,postStyleProps:s,duration:i,delay:r,totalTime:i+r,easing:o,subTimeline:a}}class Se{constructor(){this._map=new Map}get(e){return this._map.get(e)||[]}append(e,t){let s=this._map.get(e);s||this._map.set(e,s=[]),s.push(...t)}has(e){return this._map.has(e)}clear(){this._map.clear()}}const Rs=new RegExp(":enter","g"),Ls=new RegExp(":leave","g");function Ze(n,e,t,s,i,r=new Map,o=new Map,a,l,h=[]){return(new Bs).buildKeyframes(n,e,t,s,i,r,o,a,l,h)}class Bs{buildKeyframes(e,t,s,i,r,o,a,l,h,d=[]){h=h||new Se;const m=new Je(e,t,h,i,r,d,[]);m.options=l;const T=l.delay?W(l.delay):0;m.currentTimeline.delayNextStep(T),m.currentTimeline.setStyles([o],null,m.errors,l),B(this,s,m);const E=m.timelines.filter(g=>g.containsAnimation());if(E.length&&a.size){let g;for(let S=E.length-1;S>=0;S--){const A=E[S];if(A.element===t){g=A;break}}g&&!g.allowOnlyTimelineStyles()&&g.setStyles([a],null,m.errors,l)}return E.length?E.map(g=>g.buildKeyframes()):[xe(t,[],[],[],0,T,"",!1)]}visitTrigger(e,t){}visitState(e,t){}visitTransition(e,t){}visitAnimateChild(e,t){const s=t.subInstructions.get(t.element);if(s){const i=t.createSubContext(e.options),r=t.currentTimeline.currentTime,o=this._visitSubInstructions(s,i,i.options);r!=o&&t.transformIntoNewTimeline(o)}t.previousNode=e}visitAnimateRef(e,t){const s=t.createSubContext(e.options);s.transformIntoNewTimeline(),this._applyAnimationRefDelays([e.options,e.animation.options],t,s),this.visitReference(e.animation,s),t.transformIntoNewTimeline(s.currentTimeline.currentTime),t.previousNode=e}_applyAnimationRefDelays(e,t,s){for(const i of e){const r=i?.delay;if(r){const o="number"==typeof r?r:W(le(r,i?.params??{},t.errors));s.delayNextStep(o)}}}_visitSubInstructions(e,t,s){let r=t.currentTimeline.currentTime;const o=null!=s.duration?W(s.duration):null,a=null!=s.delay?W(s.delay):null;return 0!==o&&e.forEach(l=>{const h=t.appendInstructionToTimeline(l,o,a);r=Math.max(r,h.duration+h.delay)}),r}visitReference(e,t){t.updateOptions(e.options,!0),B(this,e.animation,t),t.previousNode=e}visitSequence(e,t){const s=t.subContextCount;let i=t;const r=e.options;if(r&&(r.params||r.delay)&&(i=t.createSubContext(r),i.transformIntoNewTimeline(),null!=r.delay)){i.previousNode.type==c.If.Style&&(i.currentTimeline.snapshotCurrentStyles(),i.previousNode=Ee);const o=W(r.delay);i.delayNextStep(o)}e.steps.length&&(e.steps.forEach(o=>B(this,o,i)),i.currentTimeline.applyStylesToKeyframe(),i.subContextCount>s&&i.transformIntoNewTimeline()),t.previousNode=e}visitGroup(e,t){const s=[];let i=t.currentTimeline.currentTime;const r=e.options&&e.options.delay?W(e.options.delay):0;e.steps.forEach(o=>{const a=t.createSubContext(e.options);r&&a.delayNextStep(r),B(this,o,a),i=Math.max(i,a.currentTimeline.currentTime),s.push(a.currentTimeline)}),s.forEach(o=>t.currentTimeline.mergeTimelineCollectedStyles(o)),t.transformIntoNewTimeline(i),t.previousNode=e}_visitTiming(e,t){if(e.dynamic){const s=e.strValue;return pe(t.params?le(s,t.params,t.errors):s,t.errors)}return{duration:e.duration,delay:e.delay,easing:e.easing}}visitAnimate(e,t){const s=t.currentAnimateTimings=this._visitTiming(e.timings,t),i=t.currentTimeline;s.delay&&(t.incrementTime(s.delay),i.snapshotCurrentStyles());const r=e.style;r.type==c.If.Keyframes?this.visitKeyframes(r,t):(t.incrementTime(s.duration),this.visitStyle(r,t),i.applyStylesToKeyframe()),t.currentAnimateTimings=null,t.previousNode=e}visitStyle(e,t){const s=t.currentTimeline,i=t.currentAnimateTimings;!i&&s.hasCurrentStyleProperties()&&s.forwardFrame();const r=i&&i.easing||e.easing;e.isEmptyStep?s.applyEmptyStep(r):s.setStyles(e.styles,r,t.errors,t.options),t.previousNode=e}visitKeyframes(e,t){const s=t.currentAnimateTimings,i=t.currentTimeline.duration,r=s.duration,a=t.createSubContext().currentTimeline;a.easing=s.easing,e.styles.forEach(l=>{a.forwardTime((l.offset||0)*r),a.setStyles(l.styles,l.easing,t.errors,t.options),a.applyStylesToKeyframe()}),t.currentTimeline.mergeTimelineCollectedStyles(a),t.transformIntoNewTimeline(i+r),t.previousNode=e}visitQuery(e,t){const s=t.currentTimeline.currentTime,i=e.options||{},r=i.delay?W(i.delay):0;r&&(t.previousNode.type===c.If.Style||0==s&&t.currentTimeline.hasCurrentStyleProperties())&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=Ee);let o=s;const a=t.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!i.optional,t.errors);t.currentQueryTotal=a.length;let l=null;a.forEach((h,d)=>{t.currentQueryIndex=d;const m=t.createSubContext(e.options,h);r&&m.delayNextStep(r),h===t.element&&(l=m.currentTimeline),B(this,e.animation,m),m.currentTimeline.applyStylesToKeyframe(),o=Math.max(o,m.currentTimeline.currentTime)}),t.currentQueryIndex=0,t.currentQueryTotal=0,t.transformIntoNewTimeline(o),l&&(t.currentTimeline.mergeTimelineCollectedStyles(l),t.currentTimeline.snapshotCurrentStyles()),t.previousNode=e}visitStagger(e,t){const s=t.parentContext,i=t.currentTimeline,r=e.timings,o=Math.abs(r.duration),a=o*(t.currentQueryTotal-1);let l=o*t.currentQueryIndex;switch(r.duration<0?"reverse":r.easing){case"reverse":l=a-l;break;case"full":l=s.currentStaggerTime}const d=t.currentTimeline;l&&d.delayNextStep(l);const m=d.currentTime;B(this,e.animation,t),t.previousNode=e,s.currentStaggerTime=i.currentTime-m+(i.startTime-s.currentTimeline.startTime)}}const Ee={};class Je{constructor(e,t,s,i,r,o,a,l){this._driver=e,this.element=t,this.subInstructions=s,this._enterClassName=i,this._leaveClassName=r,this.errors=o,this.timelines=a,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Ee,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=l||new we(this._driver,t,0),a.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(e,t){if(!e)return;const s=e;let i=this.options;null!=s.duration&&(i.duration=W(s.duration)),null!=s.delay&&(i.delay=W(s.delay));const r=s.params;if(r){let o=i.params;o||(o=this.options.params={}),Object.keys(r).forEach(a=>{(!t||!o.hasOwnProperty(a))&&(o[a]=le(r[a],o,this.errors))})}}_copyOptions(){const e={};if(this.options){const t=this.options.params;if(t){const s=e.params={};Object.keys(t).forEach(i=>{s[i]=t[i]})}}return e}createSubContext(e=null,t,s){const i=t||this.element,r=new Je(this._driver,i,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(i,s||0));return r.previousNode=this.previousNode,r.currentAnimateTimings=this.currentAnimateTimings,r.options=this._copyOptions(),r.updateOptions(e),r.currentQueryIndex=this.currentQueryIndex,r.currentQueryTotal=this.currentQueryTotal,r.parentContext=this,this.subContextCount++,r}transformIntoNewTimeline(e){return this.previousNode=Ee,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(e,t,s){const i={duration:t??e.duration,delay:this.currentTimeline.currentTime+(s??0)+e.delay,easing:""},r=new Ks(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,i,e.stretchStartingKeyframe);return this.timelines.push(r),i}incrementTime(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)}delayNextStep(e){e>0&&this.currentTimeline.delayNextStep(e)}invokeQuery(e,t,s,i,r,o){let a=[];if(i&&a.push(this.element),e.length>0){e=(e=e.replace(Rs,"."+this._enterClassName)).replace(Ls,"."+this._leaveClassName);let h=this._driver.query(this.element,e,1!=s);0!==s&&(h=s<0?h.slice(h.length+s,h.length):h.slice(0,s)),a.push(...h)}return!r&&0==a.length&&o.push(function Oe(){return new v.wOt(3014,!1)}()),a}}class we{constructor(e,t,s,i){this._driver=e,this.element=t,this.startTime=s,this._elementTimelineStylesLookup=i,this.duration=0,this.easing=null,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(t),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(t,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(e){const t=1===this._keyframes.size&&this._pendingStyles.size;this.duration||t?(this.forwardTime(this.currentTime+e),t&&this.snapshotCurrentStyles()):this.startTime+=e}fork(e,t){return this.applyStylesToKeyframe(),new we(this._driver,e,t||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+=1,this._loadKeyframe()}forwardTime(e){this.applyStylesToKeyframe(),this.duration=e,this._loadKeyframe()}_updateStyle(e,t){this._localTimelineStyles.set(e,t),this._globalTimelineStyles.set(e,t),this._styleSummary.set(e,{time:this.currentTime,value:t})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(e){e&&this._previousKeyframe.set("easing",e);for(let[t,s]of this._globalTimelineStyles)this._backFill.set(t,s||c.kp),this._currentKeyframe.set(t,c.kp);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(e,t,s,i){t&&this._previousKeyframe.set("easing",t);const r=i&&i.params||{},o=function zs(n,e){const t=new Map;let s;return n.forEach(i=>{if("*"===i){s??=e.keys();for(let r of s)t.set(r,c.kp)}else for(let[r,o]of i)t.set(r,o)}),t}(e,this._globalTimelineStyles);for(let[a,l]of o){const h=le(l,r,s);this._pendingStyles.set(a,h),this._localTimelineStyles.has(a)||this._backFill.set(a,this._globalTimelineStyles.get(a)??c.kp),this._updateStyle(a,h)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((e,t)=>{this._currentKeyframe.set(t,e)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((e,t)=>{this._currentKeyframe.has(t)||this._currentKeyframe.set(t,e)}))}snapshotCurrentStyles(){for(let[e,t]of this._localTimelineStyles)this._pendingStyles.set(e,t),this._updateStyle(e,t)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const e=[];for(let t in this._currentKeyframe)e.push(t);return e}mergeTimelineCollectedStyles(e){e._styleSummary.forEach((t,s)=>{const i=this._styleSummary.get(s);(!i||t.time>i.time)&&this._updateStyle(s,t.value)})}buildKeyframes(){this.applyStylesToKeyframe();const e=new Set,t=new Set,s=1===this._keyframes.size&&0===this.duration;let i=[];this._keyframes.forEach((a,l)=>{const h=new Map([...this._backFill,...a]);h.forEach((d,m)=>{d===c.FX?e.add(m):d===c.kp&&t.add(m)}),s||h.set("offset",l/this.duration),i.push(h)});const r=[...e.values()],o=[...t.values()];if(s){const a=i[0],l=new Map(a);a.set("offset",0),l.set("offset",1),i=[a,l]}return xe(this.element,i,r,o,this.duration,this.startTime,this.easing,!1)}}class Ks extends we{constructor(e,t,s,i,r,o,a=!1){super(e,t,o.delay),this.keyframes=s,this.preStyleProps=i,this.postStyleProps=r,this._stretchStartingKeyframe=a,this.timings={duration:o.duration,delay:o.delay,easing:o.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let e=this.keyframes,{delay:t,duration:s,easing:i}=this.timings;if(this._stretchStartingKeyframe&&t){const r=[],o=s+t,a=t/o,l=new Map(e[0]);l.set("offset",0),r.push(l);const h=new Map(e[0]);h.set("offset",Rt(a)),r.push(h);const d=e.length-1;for(let m=1;m<=d;m++){let T=new Map(e[m]);const E=T.get("offset");T.set("offset",Rt((t+E*s)/o)),r.push(T)}s=o,t=0,i="",e=r}return xe(this.element,e,this.preStyleProps,this.postStyleProps,s,t,i,!0)}}function Rt(n,e=3){const t=Math.pow(10,e-1);return Math.round(n*t)/t}function It(n,e,t,s,i,r,o,a,l,h,d,m,T){return{type:0,element:n,triggerName:e,isRemovalTransition:i,fromState:t,fromStyles:r,toState:s,toStyles:o,timelines:a,queriedElements:l,preStyleProps:h,postStyleProps:d,totalTime:m,errors:T}}const et={};class Lt{constructor(e,t,s){this._triggerName=e,this.ast=t,this._stateStyles=s}match(e,t,s,i){return function qs(n,e,t,s,i){return n.some(r=>r(e,t,s,i))}(this.ast.matchers,e,t,s,i)}buildStyles(e,t,s){let i=this._stateStyles.get("*");return void 0!==e&&(i=this._stateStyles.get(e?.toString())||i),i?i.buildStyles(t,s):new Map}build(e,t,s,i,r,o,a,l,h,d){const m=[],T=this.ast.options&&this.ast.options.params||et,g=this.buildStyles(s,a&&a.params||et,m),S=l&&l.params||et,A=this.buildStyles(i,S,m),N=new Set,M=new Map,O=new Map,C="void"===i,ne={params:Bt(S,T),delay:this.ast.options?.delay},U=d?[]:Ze(e,t,this.ast.animation,r,o,g,A,ne,h,m);let R=0;return U.forEach(I=>{R=Math.max(I.duration+I.delay,R)}),m.length?It(t,this._triggerName,s,i,C,g,A,[],[],M,O,R,m):(U.forEach(I=>{const J=I.element,re=L(M,J,new Set);I.preStyleProps.forEach(ee=>re.add(ee));const Yt=L(O,J,new Set);I.postStyleProps.forEach(ee=>Yt.add(ee)),J!==t&&N.add(J)}),It(t,this._triggerName,s,i,C,g,A,U,[...N.values()],M,O,R))}}function Bt(n,e){const t={...e};return Object.entries(n).forEach(([s,i])=>{null!=i&&(t[s]=i)}),t}class Qs{constructor(e,t,s){this.styles=e,this.defaultParams=t,this.normalizer=s}buildStyles(e,t){const s=new Map,i=Bt(e,this.defaultParams);return this.styles.styles.forEach(r=>{"string"!=typeof r&&r.forEach((o,a)=>{o&&(o=le(o,i,t));const l=this.normalizer.normalizePropertyName(a,t);o=this.normalizer.normalizeStyleValue(a,l,o,t),s.set(a,o)})}),s}}class Vs{constructor(e,t,s){this.name=e,this.ast=t,this._normalizer=s,this.transitionFactories=[],this.states=new Map,t.states.forEach(i=>{this.states.set(i.name,new Qs(i.style,i.options&&i.options.params||{},s))}),Kt(this.states,"true","1"),Kt(this.states,"false","0"),t.transitions.forEach(i=>{this.transitionFactories.push(new Lt(e,i,this.states))}),this.fallbackTransition=function Us(n,e){return new Lt(n,{type:c.If.Transition,animation:{type:c.If.Sequence,steps:[],options:null},matchers:[(o,a)=>!0],options:null,queryCount:0,depCount:0},e)}(e,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(e,t,s,i){return this.transitionFactories.find(o=>o.match(e,t,s,i))||null}matchStyles(e,t,s){return this.fallbackTransition.buildStyles(e,t,s)}}function Kt(n,e,t){n.has(e)?n.has(t)||n.set(t,n.get(e)):n.has(t)&&n.set(e,n.get(t))}const js=new Se;class Ws{constructor(e,t,s){this.bodyNode=e,this._driver=t,this._normalizer=s,this._animations=new Map,this._playersById=new Map,this.players=[]}register(e,t){const s=[],r=Xe(this._driver,t,s,[]);if(s.length)throw function w(){return new v.wOt(3503,!1)}();this._animations.set(e,r)}_buildPlayer(e,t,s){const i=e.element,r=Et(this._normalizer,e.keyframes,t,s);return this._driver.animate(i,r,e.duration,e.delay,e.easing,[],!0)}create(e,t,s={}){const i=[],r=this._animations.get(e);let o;const a=new Map;if(r?(o=Ze(this._driver,t,r,Ve,fe,new Map,new Map,s,js,i),o.forEach(d=>{const m=L(a,d.element,new Map);d.postStyleProps.forEach(T=>m.set(T,null))})):(i.push(function D(){return new v.wOt(3300,!1)}()),o=[]),i.length)throw function z(){return new v.wOt(3504,!1)}();a.forEach((d,m)=>{d.forEach((T,E)=>{d.set(E,this._driver.computeStyle(m,E,c.kp))})});const h=G(o.map(d=>{const m=a.get(d.element);return this._buildPlayer(d,new Map,m)}));return this._playersById.set(e,h),h.onDestroy(()=>this.destroy(e)),this.players.push(h),h}destroy(e){const t=this._getPlayer(e);t.destroy(),this._playersById.delete(e);const s=this.players.indexOf(t);s>=0&&this.players.splice(s,1)}_getPlayer(e){const t=this._playersById.get(e);if(!t)throw function se(){return new v.wOt(3301,!1)}();return t}listen(e,t,s,i){const r=qe(t,"","","");return Ke(this._getPlayer(e),s,r,i),()=>{}}command(e,t,s,i){if("register"==s)return void this.register(e,i[0]);if("create"==s)return void this.create(e,t,i[0]||{});const r=this._getPlayer(e);switch(s){case"play":r.play();break;case"pause":r.pause();break;case"reset":r.reset();break;case"restart":r.restart();break;case"finish":r.finish();break;case"init":r.init();break;case"setPosition":r.setPosition(parseFloat(i[0]));break;case"destroy":this.destroy(e)}}}const zt="ng-animate-queued",tt="ng-animate-disabled",xs=[],qt={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Zs={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},$="__ng_removed";class st{get params(){return this.options.params}constructor(e,t=""){this.namespaceId=t;const s=e&&e.hasOwnProperty("value");if(this.value=function si(n){return n??null}(s?e.value:e),s){const{value:r,...o}=e;this.options=o}else this.options={};this.options.params||(this.options.params={})}absorbOptions(e){const t=e.params;if(t){const s=this.options.params;Object.keys(t).forEach(i=>{null==s[i]&&(s[i]=t[i])})}}}const he="void",it=new st(he);class Js{constructor(e,t,s){this.id=e,this.hostElement=t,this._engine=s,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+e,q(t,this._hostClassName)}listen(e,t,s,i){if(!this._triggers.has(t))throw function X(){return new v.wOt(3302,!1)}();if(null==s||0==s.length)throw function Be(){return new v.wOt(3303,!1)}();if(!function ii(n){return"start"==n||"done"==n}(s))throw function ss(){return new v.wOt(3400,!1)}();const r=L(this._elementListeners,e,[]),o={name:t,phase:s,callback:i};r.push(o);const a=L(this._engine.statesByElement,e,new Map);return a.has(t)||(q(e,de),q(e,de+"-"+t),a.set(t,it)),()=>{this._engine.afterFlush(()=>{const l=r.indexOf(o);l>=0&&r.splice(l,1),this._triggers.has(t)||a.delete(t)})}}register(e,t){return!this._triggers.has(e)&&(this._triggers.set(e,t),!0)}_getTrigger(e){const t=this._triggers.get(e);if(!t)throw function is(){return new v.wOt(3401,!1)}();return t}trigger(e,t,s,i=!0){const r=this._getTrigger(t),o=new nt(this.id,t,e);let a=this._engine.statesByElement.get(e);a||(q(e,de),q(e,de+"-"+t),this._engine.statesByElement.set(e,a=new Map));let l=a.get(t);const h=new st(s,this.id);if(!(s&&s.hasOwnProperty("value"))&&l&&h.absorbOptions(l.options),a.set(t,h),l||(l=it),h.value!==he&&l.value===h.value){if(!function oi(n,e){const t=Object.keys(n),s=Object.keys(e);if(t.length!=s.length)return!1;for(let i=0;i<t.length;i++){const r=t[i];if(!e.hasOwnProperty(r)||n[r]!==e[r])return!1}return!0}(l.params,h.params)){const S=[],A=r.matchStyles(l.value,l.params,S),N=r.matchStyles(h.value,h.params,S);S.length?this._engine.reportError(S):this._engine.afterFlush(()=>{x(e,A),V(e,N)})}return}const T=L(this._engine.playersByElement,e,[]);T.forEach(S=>{S.namespaceId==this.id&&S.triggerName==t&&S.queued&&S.destroy()});let E=r.matchTransition(l.value,h.value,e,h.params),g=!1;if(!E){if(!i)return;E=r.fallbackTransition,g=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:t,transition:E,fromState:l,toState:h,player:o,isFallbackTransition:g}),g||(q(e,zt),o.onStart(()=>{ie(e,zt)})),o.onDone(()=>{let S=this.players.indexOf(o);S>=0&&this.players.splice(S,1);const A=this._engine.playersByElement.get(e);if(A){let N=A.indexOf(o);N>=0&&A.splice(N,1)}}),this.players.push(o),T.push(o),o}deregister(e){this._triggers.delete(e),this._engine.statesByElement.forEach(t=>t.delete(e)),this._elementListeners.forEach((t,s)=>{this._elementListeners.set(s,t.filter(i=>i.name!=e))})}clearElementCache(e){this._engine.statesByElement.delete(e),this._elementListeners.delete(e);const t=this._engine.playersByElement.get(e);t&&(t.forEach(s=>s.destroy()),this._engine.playersByElement.delete(e))}_signalRemovalForInnerTriggers(e,t){const s=this._engine.driver.query(e,me,!0);s.forEach(i=>{if(i[$])return;const r=this._engine.fetchNamespacesByElement(i);r.size?r.forEach(o=>o.triggerLeaveAnimation(i,t,!1,!0)):this.clearElementCache(i)}),this._engine.afterFlushAnimationsDone(()=>s.forEach(i=>this.clearElementCache(i)))}triggerLeaveAnimation(e,t,s,i){const r=this._engine.statesByElement.get(e),o=new Map;if(r){const a=[];if(r.forEach((l,h)=>{if(o.set(h,l.value),this._triggers.has(h)){const d=this.trigger(e,h,he,i);d&&a.push(d)}}),a.length)return this._engine.markElementAsRemoved(this.id,e,!0,t,o),s&&G(a).onDone(()=>this._engine.processLeaveNode(e)),!0}return!1}prepareLeaveAnimationListeners(e){const t=this._elementListeners.get(e),s=this._engine.statesByElement.get(e);if(t&&s){const i=new Set;t.forEach(r=>{const o=r.name;if(i.has(o))return;i.add(o);const l=this._triggers.get(o).fallbackTransition,h=s.get(o)||it,d=new st(he),m=new nt(this.id,o,e);this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:o,transition:l,fromState:h,toState:d,player:m,isFallbackTransition:!0})})}}removeNode(e,t){const s=this._engine;if(e.childElementCount&&this._signalRemovalForInnerTriggers(e,t),this.triggerLeaveAnimation(e,t,!0))return;let i=!1;if(s.totalAnimations){const r=s.players.length?s.playersByQueriedElement.get(e):[];if(r&&r.length)i=!0;else{let o=e;for(;o=o.parentNode;)if(s.statesByElement.get(o)){i=!0;break}}}if(this.prepareLeaveAnimationListeners(e),i)s.markElementAsRemoved(this.id,e,!1,t);else{const r=e[$];(!r||r===qt)&&(s.afterFlush(()=>this.clearElementCache(e)),s.destroyInnerAnimations(e),s._onRemovalComplete(e,t))}}insertNode(e,t){q(e,this._hostClassName)}drainQueuedTransitions(e){const t=[];return this._queue.forEach(s=>{const i=s.player;if(i.destroyed)return;const r=s.element,o=this._elementListeners.get(r);o&&o.forEach(a=>{if(a.name==s.triggerName){const l=qe(r,s.triggerName,s.fromState.value,s.toState.value);l._data=e,Ke(s.player,a.phase,l,a.callback)}}),i.markedForDestroy?this._engine.afterFlush(()=>{i.destroy()}):t.push(s)}),this._queue=[],t.sort((s,i)=>{const r=s.transition.ast.depCount,o=i.transition.ast.depCount;return 0==r||0==o?r-o:this._engine.driver.containsElement(s.element,i.element)?1:-1})}destroy(e){this.players.forEach(t=>t.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,e)}}class ei{_onRemovalComplete(e,t){this.onRemovalComplete(e,t)}constructor(e,t,s){this.bodyNode=e,this.driver=t,this._normalizer=s,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(i,r)=>{}}get queuedPlayers(){const e=[];return this._namespaceList.forEach(t=>{t.players.forEach(s=>{s.queued&&e.push(s)})}),e}createNamespace(e,t){const s=new Js(e,t,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,t)?this._balanceNamespaceList(s,t):(this.newHostElements.set(t,s),this.collectEnterElement(t)),this._namespaceLookup[e]=s}_balanceNamespaceList(e,t){const s=this._namespaceList,i=this.namespacesByHostElement;if(s.length-1>=0){let o=!1,a=this.driver.getParentElement(t);for(;a;){const l=i.get(a);if(l){const h=s.indexOf(l);s.splice(h+1,0,e),o=!0;break}a=this.driver.getParentElement(a)}o||s.unshift(e)}else s.push(e);return i.set(t,e),e}register(e,t){let s=this._namespaceLookup[e];return s||(s=this.createNamespace(e,t)),s}registerTrigger(e,t,s){let i=this._namespaceLookup[e];i&&i.register(t,s)&&this.totalAnimations++}destroy(e,t){e&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{const s=this._fetchNamespace(e);this.namespacesByHostElement.delete(s.hostElement);const i=this._namespaceList.indexOf(s);i>=0&&this._namespaceList.splice(i,1),s.destroy(t),delete this._namespaceLookup[e]}))}_fetchNamespace(e){return this._namespaceLookup[e]}fetchNamespacesByElement(e){const t=new Set,s=this.statesByElement.get(e);if(s)for(let i of s.values())if(i.namespaceId){const r=this._fetchNamespace(i.namespaceId);r&&t.add(r)}return t}trigger(e,t,s,i){if(Te(t)){const r=this._fetchNamespace(e);if(r)return r.trigger(t,s,i),!0}return!1}insertNode(e,t,s,i){if(!Te(t))return;const r=t[$];if(r&&r.setForRemoval){r.setForRemoval=!1,r.setForMove=!0;const o=this.collectedLeaveElements.indexOf(t);o>=0&&this.collectedLeaveElements.splice(o,1)}if(e){const o=this._fetchNamespace(e);o&&o.insertNode(t,s)}i&&this.collectEnterElement(t)}collectEnterElement(e){this.collectedEnterElements.push(e)}markElementAsDisabled(e,t){t?this.disabledNodes.has(e)||(this.disabledNodes.add(e),q(e,tt)):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),ie(e,tt))}removeNode(e,t,s){if(Te(t)){const i=e?this._fetchNamespace(e):null;i?i.removeNode(t,s):this.markElementAsRemoved(e,t,!1,s);const r=this.namespacesByHostElement.get(t);r&&r.id!==e&&r.removeNode(t,s)}else this._onRemovalComplete(t,s)}markElementAsRemoved(e,t,s,i,r){this.collectedLeaveElements.push(t),t[$]={namespaceId:e,setForRemoval:i,hasAnimation:s,removedBeforeQueried:!1,previousTriggersValues:r}}listen(e,t,s,i,r){return Te(t)?this._fetchNamespace(e).listen(t,s,i,r):()=>{}}_buildInstruction(e,t,s,i,r){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,s,i,e.fromState.options,e.toState.options,t,r)}destroyInnerAnimations(e){let t=this.driver.query(e,me,!0);t.forEach(s=>this.destroyActiveAnimationsForElement(s)),0!=this.playersByQueriedElement.size&&(t=this.driver.query(e,Ue,!0),t.forEach(s=>this.finishActiveQueriedAnimationOnElement(s)))}destroyActiveAnimationsForElement(e){const t=this.playersByElement.get(e);t&&t.forEach(s=>{s.queued?s.markedForDestroy=!0:s.destroy()})}finishActiveQueriedAnimationOnElement(e){const t=this.playersByQueriedElement.get(e);t&&t.forEach(s=>s.finish())}whenRenderingDone(){return new Promise(e=>{if(this.players.length)return G(this.players).onDone(()=>e());e()})}processLeaveNode(e){const t=e[$];if(t&&t.setForRemoval){if(e[$]=qt,t.namespaceId){this.destroyInnerAnimations(e);const s=this._fetchNamespace(t.namespaceId);s&&s.clearElementCache(e)}this._onRemovalComplete(e,t.setForRemoval)}e.classList?.contains(tt)&&this.markElementAsDisabled(e,!1),this.driver.query(e,".ng-animate-disabled",!0).forEach(s=>{this.markElementAsDisabled(s,!1)})}flush(e=-1){let t=[];if(this.newHostElements.size&&(this.newHostElements.forEach((s,i)=>this._balanceNamespaceList(s,i)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let s=0;s<this.collectedEnterElements.length;s++)q(this.collectedEnterElements[s],"ng-star-inserted");if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){const s=[];try{t=this._flushAnimations(s,e)}finally{for(let i=0;i<s.length;i++)s[i]()}}else for(let s=0;s<this.collectedLeaveElements.length;s++)this.processLeaveNode(this.collectedLeaveElements[s]);if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(s=>s()),this._flushFns=[],this._whenQuietFns.length){const s=this._whenQuietFns;this._whenQuietFns=[],t.length?G(t).onDone(()=>{s.forEach(i=>i())}):s.forEach(i=>i())}}reportError(e){throw function ns(){return new v.wOt(3402,!1)}()}_flushAnimations(e,t){const s=new Se,i=[],r=new Map,o=[],a=new Map,l=new Map,h=new Map,d=new Set;this.disabledNodes.forEach(p=>{d.add(p);const y=this.driver.query(p,".ng-animate-queued",!0);for(let _=0;_<y.length;_++)d.add(y[_])});const m=this.bodyNode,T=Array.from(this.statesByElement.keys()),E=Vt(T,this.collectedEnterElements),g=new Map;let S=0;E.forEach((p,y)=>{const _=Ve+S++;g.set(y,_),p.forEach(b=>q(b,_))});const A=[],N=new Set,M=new Set;for(let p=0;p<this.collectedLeaveElements.length;p++){const y=this.collectedLeaveElements[p],_=y[$];_&&_.setForRemoval&&(A.push(y),N.add(y),_.hasAnimation?this.driver.query(y,".ng-star-inserted",!0).forEach(b=>N.add(b)):M.add(y))}const O=new Map,C=Vt(T,Array.from(N));C.forEach((p,y)=>{const _=fe+S++;O.set(y,_),p.forEach(b=>q(b,_))}),e.push(()=>{E.forEach((p,y)=>{const _=g.get(y);p.forEach(b=>ie(b,_))}),C.forEach((p,y)=>{const _=O.get(y);p.forEach(b=>ie(b,_))}),A.forEach(p=>{this.processLeaveNode(p)})});const ne=[],U=[];for(let p=this._namespaceList.length-1;p>=0;p--)this._namespaceList[p].drainQueuedTransitions(t).forEach(_=>{const b=_.player,k=_.element;if(ne.push(b),this.collectedEnterElements.length){const F=k[$];if(F&&F.setForMove){if(F.previousTriggersValues&&F.previousTriggersValues.has(_.triggerName)){const te=F.previousTriggersValues.get(_.triggerName),Q=this.statesByElement.get(_.element);if(Q&&Q.has(_.triggerName)){const be=Q.get(_.triggerName);be.value=te,Q.set(_.triggerName,be)}}return void b.destroy()}}const j=!m||!this.driver.containsElement(m,k),K=O.get(k),H=g.get(k),P=this._buildInstruction(_,s,H,K,j);if(P.errors&&P.errors.length)return void U.push(P);if(j)return b.onStart(()=>x(k,P.fromStyles)),b.onDestroy(()=>V(k,P.toStyles)),void i.push(b);if(_.isFallbackTransition)return b.onStart(()=>x(k,P.fromStyles)),b.onDestroy(()=>V(k,P.toStyles)),void i.push(b);const Jt=[];P.timelines.forEach(F=>{F.stretchStartingKeyframe=!0,this.disabledNodes.has(F.element)||Jt.push(F)}),P.timelines=Jt,s.append(k,P.timelines),o.push({instruction:P,player:b,element:k}),P.queriedElements.forEach(F=>L(a,F,[]).push(b)),P.preStyleProps.forEach((F,te)=>{if(F.size){let Q=l.get(te);Q||l.set(te,Q=new Set),F.forEach((be,lt)=>Q.add(lt))}}),P.postStyleProps.forEach((F,te)=>{let Q=h.get(te);Q||h.set(te,Q=new Set),F.forEach((be,lt)=>Q.add(lt))})});if(U.length){const p=[];U.forEach(y=>{p.push(function rs(){return new v.wOt(3505,!1)}())}),ne.forEach(y=>y.destroy()),this.reportError(p)}const R=new Map,I=new Map;o.forEach(p=>{const y=p.element;s.has(y)&&(I.set(y,y),this._beforeAnimationBuild(p.player.namespaceId,p.instruction,R))}),i.forEach(p=>{const y=p.element;this._getPreviousPlayers(y,!1,p.namespaceId,p.triggerName,null).forEach(b=>{L(R,y,[]).push(b),b.destroy()})});const J=A.filter(p=>jt(p,l,h)),re=new Map;$t(re,this.driver,M,h,c.kp).forEach(p=>{jt(p,l,h)&&J.push(p)});const ee=new Map;E.forEach((p,y)=>{$t(ee,this.driver,new Set(p),l,c.FX)}),J.forEach(p=>{const y=re.get(p),_=ee.get(p);re.set(p,new Map([...y?.entries()??[],..._?.entries()??[]]))});const at=[],xt=[],Zt={};o.forEach(p=>{const{element:y,player:_,instruction:b}=p;if(s.has(y)){if(d.has(y))return _.onDestroy(()=>V(y,b.toStyles)),_.disabled=!0,_.overrideTotalTime(b.totalTime),void i.push(_);let k=Zt;if(I.size>1){let K=y;const H=[];for(;K=K.parentNode;){const P=I.get(K);if(P){k=P;break}H.push(K)}H.forEach(P=>I.set(P,k))}const j=this._buildAnimation(_.namespaceId,b,R,r,ee,re);if(_.setRealPlayer(j),k===Zt)at.push(_);else{const K=this.playersByElement.get(k);K&&K.length&&(_.parentPlayer=G(K)),i.push(_)}}else x(y,b.fromStyles),_.onDestroy(()=>V(y,b.toStyles)),xt.push(_),d.has(y)&&i.push(_)}),xt.forEach(p=>{const y=r.get(p.element);if(y&&y.length){const _=G(y);p.setRealPlayer(_)}}),i.forEach(p=>{p.parentPlayer?p.syncPlayerEvents(p.parentPlayer):p.destroy()});for(let p=0;p<A.length;p++){const y=A[p],_=y[$];if(ie(y,fe),_&&_.hasAnimation)continue;let b=[];if(a.size){let j=a.get(y);j&&j.length&&b.push(...j);let K=this.driver.query(y,Ue,!0);for(let H=0;H<K.length;H++){let P=a.get(K[H]);P&&P.length&&b.push(...P)}}const k=b.filter(j=>!j.destroyed);k.length?ni(this,y,k):this.processLeaveNode(y)}return A.length=0,at.forEach(p=>{this.players.push(p),p.onDone(()=>{p.destroy();const y=this.players.indexOf(p);this.players.splice(y,1)}),p.play()}),at}afterFlush(e){this._flushFns.push(e)}afterFlushAnimationsDone(e){this._whenQuietFns.push(e)}_getPreviousPlayers(e,t,s,i,r){let o=[];if(t){const a=this.playersByQueriedElement.get(e);a&&(o=a)}else{const a=this.playersByElement.get(e);if(a){const l=!r||r==he;a.forEach(h=>{h.queued||!l&&h.triggerName!=i||o.push(h)})}}return(s||i)&&(o=o.filter(a=>!(s&&s!=a.namespaceId||i&&i!=a.triggerName))),o}_beforeAnimationBuild(e,t,s){const r=t.element,o=t.isRemovalTransition?void 0:e,a=t.isRemovalTransition?void 0:t.triggerName;for(const l of t.timelines){const h=l.element,d=h!==r,m=L(s,h,[]);this._getPreviousPlayers(h,d,o,a,t.toState).forEach(E=>{const g=E.getRealPlayer();g.beforeDestroy&&g.beforeDestroy(),E.destroy(),m.push(E)})}x(r,t.fromStyles)}_buildAnimation(e,t,s,i,r,o){const a=t.triggerName,l=t.element,h=[],d=new Set,m=new Set,T=t.timelines.map(g=>{const S=g.element;d.add(S);const A=S[$];if(A&&A.removedBeforeQueried)return new c.sf(g.duration,g.delay);const N=S!==l,M=function ri(n){const e=[];return Ut(n,e),e}((s.get(S)||xs).map(R=>R.getRealPlayer())).filter(R=>!!R.element&&R.element===S),O=r.get(S),C=o.get(S),ne=Et(this._normalizer,g.keyframes,O,C),U=this._buildPlayer(g,ne,M);if(g.subTimeline&&i&&m.add(S),N){const R=new nt(e,a,S);R.setRealPlayer(U),h.push(R)}return U});h.forEach(g=>{L(this.playersByQueriedElement,g.element,[]).push(g),g.onDone(()=>function ti(n,e,t){let s=n.get(e);if(s){if(s.length){const i=s.indexOf(t);s.splice(i,1)}0==s.length&&n.delete(e)}return s}(this.playersByQueriedElement,g.element,g))}),d.forEach(g=>q(g,Dt));const E=G(T);return E.onDestroy(()=>{d.forEach(g=>ie(g,Dt)),V(l,t.toStyles)}),m.forEach(g=>{L(i,g,[]).push(E)}),E}_buildPlayer(e,t,s){return t.length>0?this.driver.animate(e.element,t,e.duration,e.delay,e.easing,s):new c.sf(e.duration,e.delay)}}class nt{constructor(e,t,s){this.namespaceId=e,this.triggerName=t,this.element=s,this._player=new c.sf,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.parentPlayer=null,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(e){this._containsRealPlayer||(this._player=e,this._queuedCallbacks.forEach((t,s)=>{t.forEach(i=>Ke(e,s,void 0,i))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(e.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(e){this.totalTime=e}syncPlayerEvents(e){const t=this._player;t.triggerCallback&&e.onStart(()=>t.triggerCallback("start")),e.onDone(()=>this.finish()),e.onDestroy(()=>this.destroy())}_queueEvent(e,t){L(this._queuedCallbacks,e,[]).push(t)}onDone(e){this.queued&&this._queueEvent("done",e),this._player.onDone(e)}onStart(e){this.queued&&this._queueEvent("start",e),this._player.onStart(e)}onDestroy(e){this.queued&&this._queueEvent("destroy",e),this._player.onDestroy(e)}init(){this._player.init()}hasStarted(){return!this.queued&&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(e){this.queued||this._player.setPosition(e)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(e){const t=this._player;t.triggerCallback&&t.triggerCallback(e)}}function Te(n){return n&&1===n.nodeType}function Qt(n,e){const t=n.style.display;return n.style.display=e??"none",t}function $t(n,e,t,s,i){const r=[];t.forEach(l=>r.push(Qt(l)));const o=[];s.forEach((l,h)=>{const d=new Map;l.forEach(m=>{const T=e.computeStyle(h,m,i);d.set(m,T),(!T||0==T.length)&&(h[$]=Zs,o.push(h))}),n.set(h,d)});let a=0;return t.forEach(l=>Qt(l,r[a++])),o}function Vt(n,e){const t=new Map;if(n.forEach(a=>t.set(a,[])),0==e.length)return t;const i=new Set(e),r=new Map;function o(a){if(!a)return 1;let l=r.get(a);if(l)return l;const h=a.parentNode;return l=t.has(h)?h:i.has(h)?1:o(h),r.set(a,l),l}return e.forEach(a=>{const l=o(a);1!==l&&t.get(l).push(a)}),t}function q(n,e){n.classList?.add(e)}function ie(n,e){n.classList?.remove(e)}function ni(n,e,t){G(t).onDone(()=>n.processLeaveNode(e))}function Ut(n,e){for(let t=0;t<n.length;t++){const s=n[t];s instanceof c.ui?Ut(s.players,e):e.push(s)}}function jt(n,e,t){const s=t.get(n);if(!s)return!1;let i=e.get(n);return i?s.forEach(r=>i.add(r)):e.set(n,s),t.delete(n),!0}class rt{constructor(e,t,s){this._driver=t,this._normalizer=s,this._triggerCache={},this.onRemovalComplete=(i,r)=>{},this._transitionEngine=new ei(e.body,t,s),this._timelineEngine=new Ws(e.body,t,s),this._transitionEngine.onRemovalComplete=(i,r)=>this.onRemovalComplete(i,r)}registerTrigger(e,t,s,i,r){const o=e+"-"+i;let a=this._triggerCache[o];if(!a){const l=[],d=Xe(this._driver,r,l,[]);if(l.length)throw function f(){return new v.wOt(3404,!1)}();a=function $s(n,e,t){return new Vs(n,e,t)}(i,d,this._normalizer),this._triggerCache[o]=a}this._transitionEngine.registerTrigger(t,i,a)}register(e,t){this._transitionEngine.register(e,t)}destroy(e,t){this._transitionEngine.destroy(e,t)}onInsert(e,t,s,i){this._transitionEngine.insertNode(e,t,s,i)}onRemove(e,t,s){this._transitionEngine.removeNode(e,t,s)}disableAnimations(e,t){this._transitionEngine.markElementAsDisabled(e,t)}process(e,t,s,i){if("@"==s.charAt(0)){const[r,o]=wt(s);this._timelineEngine.command(r,t,o,i)}else this._transitionEngine.trigger(e,t,s,i)}listen(e,t,s,i,r){if("@"==s.charAt(0)){const[o,a]=wt(s);return this._timelineEngine.listen(o,t,a,r)}return this._transitionEngine.listen(e,t,s,i,r)}flush(e=-1){this._transitionEngine.flush(e)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(e){this._transitionEngine.afterFlushAnimationsDone(e)}}class ue{static#e=this.initialStylesByElement=new WeakMap;constructor(e,t,s){this._element=e,this._startStyles=t,this._endStyles=s,this._state=0;let i=ue.initialStylesByElement.get(e);i||ue.initialStylesByElement.set(e,i=new Map),this._initialStyles=i}start(){this._state<1&&(this._startStyles&&V(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(V(this._element,this._initialStyles),this._endStyles&&(V(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(ue.initialStylesByElement.delete(this._element),this._startStyles&&(x(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(x(this._element,this._endStyles),this._endStyles=null),V(this._element,this._initialStyles),this._state=3)}}function ot(n){let e=null;return n.forEach((t,s)=>{(function li(n){return"display"===n||"position"===n})(s)&&(e=e||new Map,e.set(s,t))}),e}class Wt{constructor(e,t,s,i){this.element=e,this.keyframes=t,this.options=s,this._specialStyles=i,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=s.duration,this._delay=s.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const e=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,e,this.options),this._finalKeyframe=e.length?e[e.length-1]:new Map;const t=()=>this._onFinish();this.domPlayer.addEventListener("finish",t),this.onDestroy(()=>{this.domPlayer.removeEventListener("finish",t)})}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(e){const t=[];return e.forEach(s=>{t.push(Object.fromEntries(s))}),t}_triggerWebAnimation(e,t,s){return e.animate(this._convertKeyframesToObject(t),s)}onStart(e){this._originalOnStartFns.push(e),this._onStartFns.push(e)}onDone(e){this._originalOnDoneFns.push(e),this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(e=>e()),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(e=>e()),this._onDestroyFns=[])}setPosition(e){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=e*this.time}getPosition(){return+(this.domPlayer.currentTime??0)/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const e=new Map;this.hasStarted()&&this._finalKeyframe.forEach((s,i)=>{"offset"!==i&&e.set(i,this._finished?s:He(this.element,i))}),this.currentSnapshot=e}triggerCallback(e){const t="start"===e?this._onStartFns:this._onDoneFns;t.forEach(s=>s()),t.length=0}}class Gt{validateStyleProperty(e){return!0}validateAnimatableStyleProperty(e){return!0}containsElement(e,t){return vt(e,t)}getParentElement(e){return Qe(e)}query(e,t,s){return bt(e,t,s)}computeStyle(e,t,s){return He(e,t)}animate(e,t,s,i,r,o=[]){const l={duration:s,delay:i,fill:0==i?"both":"forwards"};r&&(l.easing=r);const h=new Map,d=o.filter(E=>E instanceof Wt);(function Ss(n,e){return 0===n||0===e})(s,i)&&d.forEach(E=>{E.currentSnapshot.forEach((g,S)=>h.set(S,g))});let m=function gs(n){return n.length?n[0]instanceof Map?n:n.map(e=>new Map(Object.entries(e))):[]}(t).map(E=>new Map(E));m=function Es(n,e,t){if(t.size&&e.length){let s=e[0],i=[];if(t.forEach((r,o)=>{s.has(o)||i.push(o),s.set(o,r)}),i.length)for(let r=1;r<e.length;r++){let o=e[r];i.forEach(a=>o.set(a,He(n,a)))}}return e}(e,m,h);const T=function ai(n,e){let t=null,s=null;return Array.isArray(e)&&e.length?(t=ot(e[0]),e.length>1&&(s=ot(e[e.length-1]))):e instanceof Map&&(t=ot(e)),t||s?new ue(n,t,s):null}(e,m);return new Wt(e,m,l,T)}}const Ht="@.disabled";class Xt{constructor(e,t,s,i){this.namespaceId=e,this.delegate=t,this.engine=s,this._onDestroy=i,this.\u0275type=0}get data(){return this.delegate.data}destroyNode(e){this.delegate.destroyNode?.(e)}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),this._onDestroy?.()}createElement(e,t){return this.delegate.createElement(e,t)}createComment(e){return this.delegate.createComment(e)}createText(e){return this.delegate.createText(e)}appendChild(e,t){this.delegate.appendChild(e,t),this.engine.onInsert(this.namespaceId,t,e,!1)}insertBefore(e,t,s,i=!0){this.delegate.insertBefore(e,t,s),this.engine.onInsert(this.namespaceId,t,e,i)}removeChild(e,t,s){this.parentNode(t)&&this.engine.onRemove(this.namespaceId,t,this.delegate)}selectRootElement(e,t){return this.delegate.selectRootElement(e,t)}parentNode(e){return this.delegate.parentNode(e)}nextSibling(e){return this.delegate.nextSibling(e)}setAttribute(e,t,s,i){this.delegate.setAttribute(e,t,s,i)}removeAttribute(e,t,s){this.delegate.removeAttribute(e,t,s)}addClass(e,t){this.delegate.addClass(e,t)}removeClass(e,t){this.delegate.removeClass(e,t)}setStyle(e,t,s,i){this.delegate.setStyle(e,t,s,i)}removeStyle(e,t,s){this.delegate.removeStyle(e,t,s)}setProperty(e,t,s){"@"==t.charAt(0)&&t==Ht?this.disableAnimations(e,!!s):this.delegate.setProperty(e,t,s)}setValue(e,t){this.delegate.setValue(e,t)}listen(e,t,s){return this.delegate.listen(e,t,s)}disableAnimations(e,t){this.engine.disableAnimations(e,t)}}class hi extends Xt{constructor(e,t,s,i,r){super(t,s,i,r),this.factory=e,this.namespaceId=t}setProperty(e,t,s){"@"==t.charAt(0)?"."==t.charAt(1)&&t==Ht?this.disableAnimations(e,s=void 0===s||!!s):this.engine.process(this.namespaceId,e,t.slice(1),s):this.delegate.setProperty(e,t,s)}listen(e,t,s){if("@"==t.charAt(0)){const i=function ui(n){switch(n){case"body":return document.body;case"document":return document;case"window":return window;default:return n}}(e);let r=t.slice(1),o="";return"@"!=r.charAt(0)&&([r,o]=function ci(n){const e=n.indexOf(".");return[n.substring(0,e),n.slice(e+1)]}(r)),this.engine.listen(this.namespaceId,i,r,o,a=>{this.factory.scheduleListenerCallback(a._data||-1,s,a)})}return this.delegate.listen(e,t,s)}}class fi{constructor(e,t,s){this.delegate=e,this.engine=t,this._zone=s,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,t.onRemovalComplete=(i,r)=>{r?.removeChild(null,i)}}createRenderer(e,t){const i=this.delegate.createRenderer(e,t);if(!e||!t?.data?.animation){const h=this._rendererCache;let d=h.get(i);return d||(d=new Xt("",i,this.engine,()=>h.delete(i)),h.set(i,d)),d}const r=t.id,o=t.id+"-"+this._currentId;this._currentId++,this.engine.register(o,e);const a=h=>{Array.isArray(h)?h.forEach(a):this.engine.registerTrigger(r,o,e,h.name,h)};return t.data.animation.forEach(a),new hi(this,o,i,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(e,t,s){if(e>=0&&e<this._microtaskId)return void this._zone.run(()=>t(s));const i=this._animationCallbacksBuffer;0==i.length&&queueMicrotask(()=>{this._zone.run(()=>{i.forEach(r=>{const[o,a]=r;o(a)}),this._animationCallbacksBuffer=[]})}),i.push([t,s])}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}}}]);
Back to Directory File Manager