New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@esm-bundle/angular__animations

Package Overview
Dependencies
Maintainers
6
Versions
134
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@esm-bundle/angular__animations - npm Package Compare versions

Comparing version 16.2.5 to 16.2.6

4

es2022/ivy/angular-animations.js

@@ -1,4 +0,4 @@

/* esm-bundle - @angular/animations@16.2.5 - Ivy - es format - es2022 - Use of this source code is governed by an MIT-style license that can be found in the LICENSE file at https://angular.io/license */
/* esm-bundle - @angular/animations@16.2.6 - Ivy - es format - es2022 - Use of this source code is governed by an MIT-style license that can be found in the LICENSE file at https://angular.io/license */
/**
* @license Angular v16.2.5
* @license Angular v16.2.6
* (c) 2010-2022 Google LLC. https://angular.io/

@@ -5,0 +5,0 @@ * License: MIT

@@ -1,3 +0,3 @@

/* esm-bundle - @angular/animations@16.2.5 - Ivy - es format - es2022 - Use of this source code is governed by an MIT-style license that can be found in the LICENSE file at https://angular.io/license */
/* esm-bundle - @angular/animations@16.2.6 - Ivy - es format - es2022 - Use of this source code is governed by an MIT-style license that can be found in the LICENSE file at https://angular.io/license */
class t{}class s{}const n="*";function i(t,s){return{type:7,name:t,definitions:s,options:{}}}function o(t,s=null){return{type:4,styles:s,timings:t}}function e(t,s=null){return{type:3,steps:t,options:s}}function r(t,s=null){return{type:2,steps:t,options:s}}function h(t){return{type:6,styles:t,offset:null}}function a(t,s,n){return{type:0,name:t,styles:s,options:n}}function l(t){return{type:5,steps:t}}function _(t,s,n=null){return{type:1,expr:t,animation:s,options:n}}function u(t,s=null){return{type:8,animation:t,options:s}}function y(t=null){return{type:9,options:t}}function p(t,s=null){return{type:10,animation:t,options:s}}function c(t,s,n=null){return{type:11,selector:t,animation:s,options:n}}function f(t,s){return{type:12,timings:t,animation:s}}class F{constructor(t=0,s=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=t+s}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach((t=>t())),this._onDoneFns=[])}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)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){queueMicrotask((()=>this._onFinish()))}_onStart(){this._onStartFns.forEach((t=>t())),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach((t=>t())),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(t){this._position=this.totalTime?t*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(t){const s="start"==t?this._onStartFns:this._onDoneFns;s.forEach((t=>t())),s.length=0}}class d{constructor(t){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=t;let s=0,n=0,i=0;const o=this.players.length;0==o?queueMicrotask((()=>this._onFinish())):this.players.forEach((t=>{t.onDone((()=>{++s==o&&this._onFinish()})),t.onDestroy((()=>{++n==o&&this._onDestroy()})),t.onStart((()=>{++i==o&&this._onStart()}))})),this.totalTime=this.players.reduce(((t,s)=>Math.max(t,s.totalTime)),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach((t=>t())),this._onDoneFns=[])}init(){this.players.forEach((t=>t.init()))}onStart(t){this._onStartFns.push(t)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach((t=>t())),this._onStartFns=[])}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach((t=>t.play()))}pause(){this.players.forEach((t=>t.pause()))}restart(){this.players.forEach((t=>t.restart()))}finish(){this._onFinish(),this.players.forEach((t=>t.finish()))}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach((t=>t.destroy())),this._onDestroyFns.forEach((t=>t())),this._onDestroyFns=[])}reset(){this.players.forEach((t=>t.reset())),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(t){const s=t*this.totalTime;this.players.forEach((t=>{const n=t.totalTime?Math.min(1,s/t.totalTime):1;t.setPosition(n)}))}getPosition(){const t=this.players.reduce(((t,s)=>null===t||s.totalTime>t.totalTime?s:t),null);return null!=t?t.getPosition():0}beforeDestroy(){this.players.forEach((t=>{t.beforeDestroy&&t.beforeDestroy()}))}triggerCallback(t){const s="start"==t?this._onStartFns:this._onDoneFns;s.forEach((t=>t())),s.length=0}}const D="!";export{n as AUTO_STYLE,t as AnimationBuilder,s as AnimationFactory,F as NoopAnimationPlayer,o as animate,y as animateChild,u as animation,e as group,l as keyframes,c as query,r as sequence,f as stagger,a as state,h as style,_ as transition,i as trigger,p as useAnimation,d as ɵAnimationGroupPlayer,D as ɵPRE_STYLE};
//# sourceMappingURL=angular-animations.min.js.map

@@ -1,3 +0,3 @@

/* esm-bundle - @angular/animations/browser@16.2.5 - Ivy - es format - es2022 - Use of this source code is governed by an MIT-style license that can be found in the LICENSE file at https://angular.io/license */
/* esm-bundle - @angular/animations/browser@16.2.6 - Ivy - es format - es2022 - Use of this source code is governed by an MIT-style license that can be found in the LICENSE file at https://angular.io/license */
import{NoopAnimationPlayer as e,style as t,AUTO_STYLE as s,ɵPRE_STYLE as n,ɵAnimationGroupPlayer as i,sequence as r}from"@angular/animations";import*as o from"@angular/core";import{Injectable as a,ɵRuntimeError as l}from"@angular/core";function h(e){return new l(3e3,!1)}new Set(["-moz-outline-radius","-moz-outline-radius-bottomleft","-moz-outline-radius-bottomright","-moz-outline-radius-topleft","-moz-outline-radius-topright","-ms-grid-columns","-ms-grid-rows","-webkit-line-clamp","-webkit-text-fill-color","-webkit-text-stroke","-webkit-text-stroke-color","accent-color","all","backdrop-filter","background","background-color","background-position","background-size","block-size","border","border-block-end","border-block-end-color","border-block-end-width","border-block-start","border-block-start-color","border-block-start-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-width","border-color","border-end-end-radius","border-end-start-radius","border-image-outset","border-image-slice","border-image-width","border-inline-end","border-inline-end-color","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-width","border-left","border-left-color","border-left-width","border-radius","border-right","border-right-color","border-right-width","border-start-end-radius","border-start-start-radius","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-width","border-width","bottom","box-shadow","caret-color","clip","clip-path","color","column-count","column-gap","column-rule","column-rule-color","column-rule-width","column-width","columns","filter","flex","flex-basis","flex-grow","flex-shrink","font","font-size","font-size-adjust","font-stretch","font-variation-settings","font-weight","gap","grid-column-gap","grid-gap","grid-row-gap","grid-template-columns","grid-template-rows","height","inline-size","input-security","inset","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","left","letter-spacing","line-clamp","line-height","margin","margin-block-end","margin-block-start","margin-bottom","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","mask","mask-border","mask-position","mask-size","max-block-size","max-height","max-inline-size","max-lines","max-width","min-block-size","min-height","min-inline-size","min-width","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","outline","outline-color","outline-offset","outline-width","padding","padding-block-end","padding-block-start","padding-bottom","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","perspective","perspective-origin","right","rotate","row-gap","scale","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-coordinate","scroll-snap-destination","scrollbar-color","shape-image-threshold","shape-margin","shape-outside","tab-size","text-decoration","text-decoration-color","text-decoration-thickness","text-emphasis","text-emphasis-color","text-indent","text-shadow","text-underline-offset","top","transform","transform-origin","translate","vertical-align","visibility","width","word-spacing","z-index","zoom"]);function c(t){switch(t.length){case 0:return new e;case 1:return t[0];default:return new i(t)}}function u(e,t,i=new Map,r=new Map){const o=[],a=[];let h=-1,c=null;if(t.forEach((t=>{const l=t.get("offset"),u=l==h,m=u&&c||new Map;t.forEach(((t,a)=>{let l=a,h=t;if("offset"!==a)switch(l=e.normalizePropertyName(l,o),h){case n:h=i.get(a);break;case s:h=r.get(a);break;default:h=e.normalizeStyleValue(a,l,h,o)}m.set(l,h)})),u||a.push(m),c=m,h=l})),o.length)throw new l(3502,!1);return a}function m(e,t,s,n){switch(t){case"start":e.onStart((()=>n(s&&p(s,"start",e))));break;case"done":e.onDone((()=>n(s&&p(s,"done",e))));break;case"destroy":e.onDestroy((()=>n(s&&p(s,"destroy",e))))}}function p(e,t,s){const n=s.totalTime,i=!!s.disabled,r=d(e.element,e.triggerName,e.fromState,e.toState,t||e.phaseName,null==n?e.totalTime:n,i),o=e._data;return null!=o&&(r._data=o),r}function d(e,t,s,n,i="",r=0,o){return{element:e,triggerName:t,fromState:s,toState:n,phaseName:i,totalTime:r,disabled:!!o}}function y(e,t,s){let n=e.get(t);return n||e.set(t,n=s),n}function f(e){const t=e.indexOf(":");return[e.substring(1,t),e.slice(t+1)]}const g=(()=>"undefined"==typeof document?null:document.documentElement)();function _(e){const t=e.parentNode||e.host||null;return t===g?null:t}let S=null,E=!1;function v(e){S||(S=function(){if("undefined"!=typeof document)return document.body;return null}()||{},E=!!S.style&&"WebkitAppearance"in S.style);let t=!0;if(S.style&&!function(e){return"ebkit"==e.substring(1,6)}(e)&&(t=e in S.style,!t&&E)){t="Webkit"+e.charAt(0).toUpperCase()+e.slice(1)in S.style}return t}function w(e,t){for(;t;){if(t===e)return!0;t=_(t)}return!1}function b(e,t,s){if(s)return Array.from(e.querySelectorAll(t));const n=e.querySelector(t);return n?[n]:[]}class T{validateStyleProperty(e){return v(e)}matchesElement(e,t){return!1}containsElement(e,t){return w(e,t)}getParentElement(e){return _(e)}query(e,t,s){return b(e,t,s)}computeStyle(e,t,s){return s||""}animate(t,s,n,i,r,o=[],a){return new e(n,i)}static{this.ɵfac=function(e){return new(e||T)}}static{this.ɵprov=o.ɵɵdefineInjectable({token:T,factory:T.ɵfac})}}class k{static{this.NOOP=new T}}const N=1e3,A="ng-enter",P="ng-leave",C="ng-trigger",F=".ng-trigger",M="ng-animating",x=".ng-animating";function z(e){if("number"==typeof e)return e;const t=e.match(/^(-?[\.\d]+)(m?s)/);return!t||t.length<2?0:D(parseFloat(t[1]),t[2])}function D(e,t){return"s"===t?e*N:e}function L(e,t,s){return e.hasOwnProperty("duration")?e:function(e,t,s){const n=/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i;let i,r=0,o="";if("string"==typeof e){const s=e.match(n);if(null===s)return t.push(h()),{duration:0,delay:0,easing:""};i=D(parseFloat(s[1]),s[2]);const a=s[3];null!=a&&(r=D(parseFloat(a),s[4]));const l=s[5];l&&(o=l)}else i=e;if(!s){let e=!1,s=t.length;i<0&&(t.push(new l(3100,!1)),e=!0),r<0&&(t.push(new l(3101,!1)),e=!0),e&&t.splice(s,0,h())}return{duration:i,delay:r,easing:o}}(e,t,s)}function q(e,t={}){return Object.keys(e).forEach((s=>{t[s]=e[s]})),t}function R(e){const t=new Map;return Object.keys(e).forEach((s=>{const n=e[s];t.set(s,n)})),t}function Q(e){return e.length?e[0]instanceof Map?e:e.map((e=>R(e))):[]}function K(e){const t=new Map;return Array.isArray(e)?e.forEach((e=>B(e,t))):B(e,t),t}function B(e,t=new Map,s){if(s)for(let[e,n]of s)t.set(e,n);for(let[s,n]of e)t.set(s,n);return t}function I(e,t,s){t.forEach(((t,n)=>{const i=J(n);s&&!s.has(n)&&s.set(n,e.style[i]),e.style[i]=t}))}function O(e,t){t.forEach(((t,s)=>{const n=J(s);e.style[n]=""}))}function W(e){return Array.isArray(e)?1==e.length?e[0]:r(e):e}function j(e,t,s){const n=t.params||{},i=V(e);i.length&&i.forEach((e=>{n.hasOwnProperty(e)||s.push(new l(3001,!1))}))}const H=new RegExp("{{\\s*(.+?)\\s*}}","g");function V(e){let t=[];if("string"==typeof e){let s;for(;s=H.exec(e);)t.push(s[1]);H.lastIndex=0}return t}function $(e,t,s){const n=e.toString(),i=n.replace(H,((e,n)=>{let i=t[n];return null==i&&(s.push(new l(3003,!1)),i=""),i.toString()}));return i==n?e:i}function G(e){const t=[];let s=e.next();for(;!s.done;)t.push(s.value),s=e.next();return t}const U=/-+([a-z0-9])/g;function J(e){return e.replace(U,((...e)=>e[1].toUpperCase()))}function X(e,t){return 0===e||0===t}function Y(e,t,s){switch(t.type){case 7:return e.visitTrigger(t,s);case 0:return e.visitState(t,s);case 1:return e.visitTransition(t,s);case 2:return e.visitSequence(t,s);case 3:return e.visitGroup(t,s);case 4:return e.visitAnimate(t,s);case 5:return e.visitKeyframes(t,s);case 6:return e.visitStyle(t,s);case 8:return e.visitReference(t,s);case 9:return e.visitAnimateChild(t,s);case 10:return e.visitAnimateRef(t,s);case 11:return e.visitQuery(t,s);case 12:return e.visitStagger(t,s);default:throw t.type,new l(3004,!1)}}function Z(e,t){return window.getComputedStyle(e)[t]}const ee="*";function te(e,t){const s=[];return"string"==typeof e?e.split(/\s*,\s*/).forEach((e=>function(e,t,s){if(":"==e[0]){const n=function(e,t){switch(e){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(e,t)=>parseFloat(t)>parseFloat(e);case":decrement":return(e,t)=>parseFloat(t)<parseFloat(e);default:return t.push(new l(3016,!1)),"* => *"}}(e,s);if("function"==typeof n)return void t.push(n);e=n}const n=e.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==n||n.length<4)return s.push(new l(3015,!1)),t;const i=n[1],r=n[2],o=n[3];t.push(ie(i,o));const a=i==ee&&o==ee;"<"!=r[0]||a||t.push(ie(o,i))}(e,s,t))):s.push(e),s}const se=new Set(["true","1"]),ne=new Set(["false","0"]);function ie(e,t){const s=se.has(e)||ne.has(e),n=se.has(t)||ne.has(t);return(i,r)=>{let o=e==ee||e==i,a=t==ee||t==r;return!o&&s&&"boolean"==typeof i&&(o=i?se.has(e):ne.has(e)),!a&&n&&"boolean"==typeof r&&(a=r?se.has(t):ne.has(t)),o&&a}}const re=":self",oe=new RegExp(`s*${re}s*,?`,"g");function ae(e,t,s,n){return new le(e).build(t,s,n)}class le{constructor(e){this._driver=e}build(e,t,s){const n=new he(t);this._resetContextStyleTimingState(n);return Y(this,W(e),n)}_resetContextStyleTimingState(e){e.currentQuerySelector="",e.collectedStyles=new Map,e.collectedStyles.set("",new Map),e.currentTime=0}visitTrigger(e,t){let s=t.queryCount=0,n=t.depCount=0;const i=[],r=[];return"@"==e.name.charAt(0)&&t.errors.push(new l(3006,!1)),e.definitions.forEach((e=>{if(this._resetContextStyleTimingState(t),0==e.type){const s=e,n=s.name;n.toString().split(/\s*,\s*/).forEach((e=>{s.name=e,i.push(this.visitState(s,t))})),s.name=n}else if(1==e.type){const i=this.visitTransition(e,t);s+=i.queryCount,n+=i.depCount,r.push(i)}else t.errors.push(new l(3007,!1))})),{type:7,name:e.name,states:i,transitions:r,queryCount:s,depCount:n,options:null}}visitState(e,t){const s=this.visitStyle(e.styles,t),n=e.options&&e.options.params||null;if(s.containsDynamicStyles){const i=new Set,r=n||{};if(s.styles.forEach((e=>{e instanceof Map&&e.forEach((e=>{V(e).forEach((e=>{r.hasOwnProperty(e)||i.add(e)}))}))})),i.size){G(i.values());t.errors.push((e.name,new l(3008,!1)))}}return{type:0,name:e.name,style:s,options:n?{params:n}:null}}visitTransition(e,t){t.queryCount=0,t.depCount=0;const s=Y(this,W(e.animation),t);return{type:1,matchers:te(e.expr,t.errors),animation:s,queryCount:t.queryCount,depCount:t.depCount,options:ce(e.options)}}visitSequence(e,t){return{type:2,steps:e.steps.map((e=>Y(this,e,t))),options:ce(e.options)}}visitGroup(e,t){const s=t.currentTime;let n=0;const i=e.steps.map((e=>{t.currentTime=s;const i=Y(this,e,t);return n=Math.max(n,t.currentTime),i}));return t.currentTime=n,{type:3,steps:i,options:ce(e.options)}}visitAnimate(e,s){const n=function(e,t){if(e.hasOwnProperty("duration"))return e;if("number"==typeof e){return ue(L(e,t).duration,0,"")}const s=e;if(s.split(/\s+/).some((e=>"{"==e.charAt(0)&&"{"==e.charAt(1)))){const e=ue(0,0,"");return e.dynamic=!0,e.strValue=s,e}const n=L(s,t);return ue(n.duration,n.delay,n.easing)}(e.timings,s.errors);let i;s.currentAnimateTimings=n;let r=e.styles?e.styles:t({});if(5==r.type)i=this.visitKeyframes(r,s);else{let r=e.styles,o=!1;if(!r){o=!0;const e={};n.easing&&(e.easing=n.easing),r=t(e)}s.currentTime+=n.duration+n.delay;const a=this.visitStyle(r,s);a.isEmptyStep=o,i=a}return s.currentAnimateTimings=null,{type:4,timings:n,style:i,options:null}}visitStyle(e,t){const s=this._makeStyleAst(e,t);return this._validateStyleAst(s,t),s}_makeStyleAst(e,t){const n=[],i=Array.isArray(e.styles)?e.styles:[e.styles];for(let e of i)"string"==typeof e?e===s?n.push(e):t.errors.push(new l(3002,!1)):n.push(R(e));let r=!1,o=null;return n.forEach((e=>{if(e instanceof Map&&(e.has("easing")&&(o=e.get("easing"),e.delete("easing")),!r))for(let t of e.values())if(t.toString().indexOf("{{")>=0){r=!0;break}})),{type:6,styles:n,easing:o,offset:e.offset,containsDynamicStyles:r,options:null}}_validateStyleAst(e,t){const s=t.currentAnimateTimings;let n=t.currentTime,i=t.currentTime;s&&i>0&&(i-=s.duration+s.delay),e.styles.forEach((e=>{"string"!=typeof e&&e.forEach(((e,s)=>{const r=t.collectedStyles.get(t.currentQuerySelector),o=r.get(s);let a=!0;o&&(i!=n&&i>=o.startTime&&n<=o.endTime&&(t.errors.push((o.startTime,o.endTime,new l(3010,!1))),a=!1),i=o.startTime),a&&r.set(s,{startTime:i,endTime:n}),t.options&&j(e,t.options,t.errors)}))}))}visitKeyframes(e,t){const s={type:5,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push(new l(3011,!1)),s;let n=0;const i=[];let r=!1,o=!1,a=0;const h=e.steps.map((e=>{const s=this._makeStyleAst(e,t);let l=null!=s.offset?s.offset:function(e){if("string"==typeof e)return null;let t=null;if(Array.isArray(e))e.forEach((e=>{if(e instanceof Map&&e.has("offset")){const s=e;t=parseFloat(s.get("offset")),s.delete("offset")}}));else if(e instanceof Map&&e.has("offset")){const s=e;t=parseFloat(s.get("offset")),s.delete("offset")}return t}(s.styles),h=0;return null!=l&&(n++,h=s.offset=l),o=o||h<0||h>1,r=r||h<a,a=h,i.push(h),s}));o&&t.errors.push(new l(3012,!1)),r&&t.errors.push(new l(3200,!1));const c=e.steps.length;let u=0;n>0&&n<c?t.errors.push(new l(3202,!1)):0==n&&(u=1/(c-1));const m=c-1,p=t.currentTime,d=t.currentAnimateTimings,y=d.duration;return h.forEach(((e,n)=>{const r=u>0?n==m?1:u*n:i[n],o=r*y;t.currentTime=p+d.delay+o,d.duration=o,this._validateStyleAst(e,t),e.offset=r,s.styles.push(e)})),s}visitReference(e,t){return{type:8,animation:Y(this,W(e.animation),t),options:ce(e.options)}}visitAnimateChild(e,t){return t.depCount++,{type:9,options:ce(e.options)}}visitAnimateRef(e,t){return{type:10,animation:this.visitReference(e.animation,t),options:ce(e.options)}}visitQuery(e,t){const s=t.currentQuerySelector,n=e.options||{};t.queryCount++,t.currentQuery=e;const[i,r]=function(e){const t=!!e.split(/\s*,\s*/).find((e=>e==re));t&&(e=e.replace(oe,""));return e=e.replace(/@\*/g,F).replace(/@\w+/g,(e=>F+"-"+e.slice(1))).replace(/:animating/g,x),[e,t]}(e.selector);t.currentQuerySelector=s.length?s+" "+i:i,y(t.collectedStyles,t.currentQuerySelector,new Map);const o=Y(this,W(e.animation),t);return t.currentQuery=null,t.currentQuerySelector=s,{type:11,selector:i,limit:n.limit||0,optional:!!n.optional,includeSelf:r,animation:o,originalSelector:e.selector,options:ce(e.options)}}visitStagger(e,t){t.currentQuery||t.errors.push(new l(3013,!1));const s="full"===e.timings?{duration:0,delay:0,easing:"full"}:L(e.timings,t.errors,!0);return{type:12,animation:Y(this,W(e.animation),t),timings:s,options:null}}}class he{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 ce(e){var t;return e?(e=q(e)).params&&(e.params=(t=e.params)?q(t):null):e={},e}function ue(e,t,s){return{duration:e,delay:t,easing:s}}function me(e,t,s,n,i,r,o=null,a=!1){return{type:1,element:e,keyframes:t,preStyleProps:s,postStyleProps:n,duration:i,delay:r,totalTime:i+r,easing:o,subTimeline:a}}class pe{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 de=new RegExp(":enter","g"),ye=new RegExp(":leave","g");function fe(e,t,s,n,i,r=new Map,o=new Map,a,l,h=[]){return(new ge).buildKeyframes(e,t,s,n,i,r,o,a,l,h)}class ge{buildKeyframes(e,t,s,n,i,r,o,a,l,h=[]){l=l||new pe;const c=new Se(e,t,l,n,i,h,[]);c.options=a;const u=a.delay?z(a.delay):0;c.currentTimeline.delayNextStep(u),c.currentTimeline.setStyles([r],null,c.errors,a),Y(this,s,c);const m=c.timelines.filter((e=>e.containsAnimation()));if(m.length&&o.size){let e;for(let s=m.length-1;s>=0;s--){const n=m[s];if(n.element===t){e=n;break}}e&&!e.allowOnlyTimelineStyles()&&e.setStyles([o],null,c.errors,a)}return m.length?m.map((e=>e.buildKeyframes())):[me(t,[],[],[],0,u,"",!1)]}visitTrigger(e,t){}visitState(e,t){}visitTransition(e,t){}visitAnimateChild(e,t){const s=t.subInstructions.get(t.element);if(s){const n=t.createSubContext(e.options),i=t.currentTimeline.currentTime,r=this._visitSubInstructions(s,n,n.options);i!=r&&t.transformIntoNewTimeline(r)}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 n of e){const e=n?.delay;if(e){const i="number"==typeof e?e:z($(e,n?.params??{},t.errors));s.delayNextStep(i)}}}_visitSubInstructions(e,t,s){let n=t.currentTimeline.currentTime;const i=null!=s.duration?z(s.duration):null,r=null!=s.delay?z(s.delay):null;return 0!==i&&e.forEach((e=>{const s=t.appendInstructionToTimeline(e,i,r);n=Math.max(n,s.duration+s.delay)})),n}visitReference(e,t){t.updateOptions(e.options,!0),Y(this,e.animation,t),t.previousNode=e}visitSequence(e,t){const s=t.subContextCount;let n=t;const i=e.options;if(i&&(i.params||i.delay)&&(n=t.createSubContext(i),n.transformIntoNewTimeline(),null!=i.delay)){6==n.previousNode.type&&(n.currentTimeline.snapshotCurrentStyles(),n.previousNode=_e);const e=z(i.delay);n.delayNextStep(e)}e.steps.length&&(e.steps.forEach((e=>Y(this,e,n))),n.currentTimeline.applyStylesToKeyframe(),n.subContextCount>s&&n.transformIntoNewTimeline()),t.previousNode=e}visitGroup(e,t){const s=[];let n=t.currentTimeline.currentTime;const i=e.options&&e.options.delay?z(e.options.delay):0;e.steps.forEach((r=>{const o=t.createSubContext(e.options);i&&o.delayNextStep(i),Y(this,r,o),n=Math.max(n,o.currentTimeline.currentTime),s.push(o.currentTimeline)})),s.forEach((e=>t.currentTimeline.mergeTimelineCollectedStyles(e))),t.transformIntoNewTimeline(n),t.previousNode=e}_visitTiming(e,t){if(e.dynamic){const s=e.strValue;return L(t.params?$(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),n=t.currentTimeline;s.delay&&(t.incrementTime(s.delay),n.snapshotCurrentStyles());const i=e.style;5==i.type?this.visitKeyframes(i,t):(t.incrementTime(s.duration),this.visitStyle(i,t),n.applyStylesToKeyframe()),t.currentAnimateTimings=null,t.previousNode=e}visitStyle(e,t){const s=t.currentTimeline,n=t.currentAnimateTimings;!n&&s.hasCurrentStyleProperties()&&s.forwardFrame();const i=n&&n.easing||e.easing;e.isEmptyStep?s.applyEmptyStep(i):s.setStyles(e.styles,i,t.errors,t.options),t.previousNode=e}visitKeyframes(e,t){const s=t.currentAnimateTimings,n=t.currentTimeline.duration,i=s.duration,r=t.createSubContext().currentTimeline;r.easing=s.easing,e.styles.forEach((e=>{const s=e.offset||0;r.forwardTime(s*i),r.setStyles(e.styles,e.easing,t.errors,t.options),r.applyStylesToKeyframe()})),t.currentTimeline.mergeTimelineCollectedStyles(r),t.transformIntoNewTimeline(n+i),t.previousNode=e}visitQuery(e,t){const s=t.currentTimeline.currentTime,n=e.options||{},i=n.delay?z(n.delay):0;i&&(6===t.previousNode.type||0==s&&t.currentTimeline.hasCurrentStyleProperties())&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=_e);let r=s;const o=t.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!n.optional,t.errors);t.currentQueryTotal=o.length;let a=null;o.forEach(((s,n)=>{t.currentQueryIndex=n;const o=t.createSubContext(e.options,s);i&&o.delayNextStep(i),s===t.element&&(a=o.currentTimeline),Y(this,e.animation,o),o.currentTimeline.applyStylesToKeyframe();const l=o.currentTimeline.currentTime;r=Math.max(r,l)})),t.currentQueryIndex=0,t.currentQueryTotal=0,t.transformIntoNewTimeline(r),a&&(t.currentTimeline.mergeTimelineCollectedStyles(a),t.currentTimeline.snapshotCurrentStyles()),t.previousNode=e}visitStagger(e,t){const s=t.parentContext,n=t.currentTimeline,i=e.timings,r=Math.abs(i.duration),o=r*(t.currentQueryTotal-1);let a=r*t.currentQueryIndex;switch(i.duration<0?"reverse":i.easing){case"reverse":a=o-a;break;case"full":a=s.currentStaggerTime}const l=t.currentTimeline;a&&l.delayNextStep(a);const h=l.currentTime;Y(this,e.animation,t),t.previousNode=e,s.currentStaggerTime=n.currentTime-h+(n.startTime-s.currentTimeline.startTime)}}const _e={};class Se{constructor(e,t,s,n,i,r,o,a){this._driver=e,this.element=t,this.subInstructions=s,this._enterClassName=n,this._leaveClassName=i,this.errors=r,this.timelines=o,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=_e,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=a||new Ee(this._driver,t,0),o.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(e,t){if(!e)return;const s=e;let n=this.options;null!=s.duration&&(n.duration=z(s.duration)),null!=s.delay&&(n.delay=z(s.delay));const i=s.params;if(i){let e=n.params;e||(e=this.options.params={}),Object.keys(i).forEach((s=>{t&&e.hasOwnProperty(s)||(e[s]=$(i[s],e,this.errors))}))}}_copyOptions(){const e={};if(this.options){const t=this.options.params;if(t){const s=e.params={};Object.keys(t).forEach((e=>{s[e]=t[e]}))}}return e}createSubContext(e=null,t,s){const n=t||this.element,i=new Se(this._driver,n,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(n,s||0));return i.previousNode=this.previousNode,i.currentAnimateTimings=this.currentAnimateTimings,i.options=this._copyOptions(),i.updateOptions(e),i.currentQueryIndex=this.currentQueryIndex,i.currentQueryTotal=this.currentQueryTotal,i.parentContext=this,this.subContextCount++,i}transformIntoNewTimeline(e){return this.previousNode=_e,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(e,t,s){const n={duration:null!=t?t:e.duration,delay:this.currentTimeline.currentTime+(null!=s?s:0)+e.delay,easing:""},i=new ve(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,n,e.stretchStartingKeyframe);return this.timelines.push(i),n}incrementTime(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)}delayNextStep(e){e>0&&this.currentTimeline.delayNextStep(e)}invokeQuery(e,t,s,n,i,r){let o=[];if(n&&o.push(this.element),e.length>0){e=(e=e.replace(de,"."+this._enterClassName)).replace(ye,"."+this._leaveClassName);const t=1!=s;let n=this._driver.query(this.element,e,t);0!==s&&(n=s<0?n.slice(n.length+s,n.length):n.slice(0,s)),o.push(...n)}return i||0!=o.length||r.push(new l(3014,!1)),o}}class Ee{constructor(e,t,s,n){this._driver=e,this.element=t,this.startTime=s,this._elementTimelineStylesLookup=n,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 Ee(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[e,t]of this._globalTimelineStyles)this._backFill.set(e,t||s),this._currentKeyframe.set(e,s);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(e,t,n,i){t&&this._previousKeyframe.set("easing",t);const r=i&&i.params||{},o=function(e,t){const n=new Map;let i;return e.forEach((e=>{if("*"===e){i=i||t.keys();for(let e of i)n.set(e,s)}else B(e,n)})),n}(e,this._globalTimelineStyles);for(let[e,t]of o){const i=$(t,r,n);this._pendingStyles.set(e,i),this._localTimelineStyles.has(e)||this._backFill.set(e,this._globalTimelineStyles.get(e)??s),this._updateStyle(e,i)}}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(((e,t)=>{const s=this._styleSummary.get(t);(!s||e.time>s.time)&&this._updateStyle(t,e.value)}))}buildKeyframes(){this.applyStylesToKeyframe();const e=new Set,t=new Set,i=1===this._keyframes.size&&0===this.duration;let r=[];this._keyframes.forEach(((o,a)=>{const l=B(o,new Map,this._backFill);l.forEach(((i,r)=>{i===n?e.add(r):i===s&&t.add(r)})),i||l.set("offset",a/this.duration),r.push(l)}));const o=e.size?G(e.values()):[],a=t.size?G(t.values()):[];if(i){const e=r[0],t=new Map(e);e.set("offset",0),t.set("offset",1),r=[e,t]}return me(this.element,r,o,a,this.duration,this.startTime,this.easing,!1)}}class ve extends Ee{constructor(e,t,s,n,i,r,o=!1){super(e,t,r.delay),this.keyframes=s,this.preStyleProps=n,this.postStyleProps=i,this._stretchStartingKeyframe=o,this.timings={duration:r.duration,delay:r.delay,easing:r.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let e=this.keyframes,{delay:t,duration:s,easing:n}=this.timings;if(this._stretchStartingKeyframe&&t){const i=[],r=s+t,o=t/r,a=B(e[0]);a.set("offset",0),i.push(a);const l=B(e[0]);l.set("offset",we(o)),i.push(l);const h=e.length-1;for(let n=1;n<=h;n++){let o=B(e[n]);const a=t+o.get("offset")*s;o.set("offset",we(a/r)),i.push(o)}s=r,t=0,n="",e=i}return me(this.element,e,this.preStyleProps,this.postStyleProps,s,t,n,!0)}}function we(e,t=3){const s=Math.pow(10,t-1);return Math.round(e*s)/s}class be{constructor(e,t){this._driver=e;const s=[],n=[],i=ae(e,t,s,n);if(s.length)throw new l(3500,!1);this._animationAst=i}buildTimelines(e,t,s,n,i){const r=Array.isArray(t)?K(t):t,o=Array.isArray(s)?K(s):s,a=[];i=i||new pe;const h=fe(this._driver,e,this._animationAst,A,P,r,o,n,i,a);if(a.length)throw new l(3501,!1);return h}}class Te{}class ke{normalizePropertyName(e,t){return e}normalizeStyleValue(e,t,s,n){return s}}const Ne=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 Ae extends Te{normalizePropertyName(e,t){return J(e)}normalizeStyleValue(e,t,s,n){let i="";const r=s.toString().trim();if(Ne.has(t)&&0!==s&&"0"!==s)if("number"==typeof s)i="px";else{const e=s.match(/^[+-]?[\d\.]+([a-z]*)$/);e&&0==e[1].length&&n.push(new l(3005,!1))}return r+i}}function Pe(e,t,s,n,i,r,o,a,l,h,c,u,m){return{type:0,element:e,triggerName:t,isRemovalTransition:i,fromState:s,fromStyles:r,toState:n,toStyles:o,timelines:a,queriedElements:l,preStyleProps:h,postStyleProps:c,totalTime:u,errors:m}}const Ce={};class Fe{constructor(e,t,s){this._triggerName=e,this.ast=t,this._stateStyles=s}match(e,t,s,n){return function(e,t,s,n,i){return e.some((e=>e(t,s,n,i)))}(this.ast.matchers,e,t,s,n)}buildStyles(e,t,s){let n=this._stateStyles.get("*");return void 0!==e&&(n=this._stateStyles.get(e?.toString())||n),n?n.buildStyles(t,s):new Map}build(e,t,s,n,i,r,o,a,l,h){const c=[],u=this.ast.options&&this.ast.options.params||Ce,m=o&&o.params||Ce,p=this.buildStyles(s,m,c),d=a&&a.params||Ce,f=this.buildStyles(n,d,c),g=new Set,_=new Map,S=new Map,E="void"===n,v={params:Me(d,u),delay:this.ast.options?.delay},w=h?[]:fe(e,t,this.ast.animation,i,r,p,f,v,l,c);let b=0;if(w.forEach((e=>{b=Math.max(e.duration+e.delay,b)})),c.length)return Pe(t,this._triggerName,s,n,E,p,f,[],[],_,S,b,c);w.forEach((e=>{const s=e.element,n=y(_,s,new Set);e.preStyleProps.forEach((e=>n.add(e)));const i=y(S,s,new Set);e.postStyleProps.forEach((e=>i.add(e))),s!==t&&g.add(s)}));const T=G(g.values());return Pe(t,this._triggerName,s,n,E,p,f,w,T,_,S,b)}}function Me(e,t){const s=q(t);for(const t in e)e.hasOwnProperty(t)&&null!=e[t]&&(s[t]=e[t]);return s}class xe{constructor(e,t,s){this.styles=e,this.defaultParams=t,this.normalizer=s}buildStyles(e,t){const s=new Map,n=q(this.defaultParams);return Object.keys(e).forEach((t=>{const s=e[t];null!==s&&(n[t]=s)})),this.styles.styles.forEach((e=>{"string"!=typeof e&&e.forEach(((e,i)=>{e&&(e=$(e,n,t));const r=this.normalizer.normalizePropertyName(i,t);e=this.normalizer.normalizeStyleValue(i,r,e,t),s.set(i,e)}))})),s}}class ze{constructor(e,t,s){var n,i;this.name=e,this.ast=t,this._normalizer=s,this.transitionFactories=[],this.states=new Map,t.states.forEach((e=>{const t=e.options&&e.options.params||{};this.states.set(e.name,new xe(e.style,t,s))})),De(this.states,"true","1"),De(this.states,"false","0"),t.transitions.forEach((t=>{this.transitionFactories.push(new Fe(e,t,this.states))})),this.fallbackTransition=(n=e,i=this.states,this._normalizer,new Fe(n,{type:1,animation:{type:2,steps:[],options:null},matchers:[(e,t)=>!0],options:null,queryCount:0,depCount:0},i))}get containsQueries(){return this.ast.queryCount>0}matchTransition(e,t,s,n){return this.transitionFactories.find((i=>i.match(e,t,s,n)))||null}matchStyles(e,t,s){return this.fallbackTransition.buildStyles(e,t,s)}}function De(e,t,s){e.has(t)?e.has(s)||e.set(s,e.get(t)):e.has(s)&&e.set(t,e.get(s))}const Le=new pe;class qe{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=[],n=[],i=ae(this._driver,t,s,n);if(s.length)throw new l(3503,!1);this._animations.set(e,i)}_buildPlayer(e,t,s){const n=e.element,i=u(this._normalizer,e.keyframes,t,s);return this._driver.animate(n,i,e.duration,e.delay,e.easing,[],!0)}create(e,t,n={}){const i=[],r=this._animations.get(e);let o;const a=new Map;if(r?(o=fe(this._driver,t,r,A,P,new Map,new Map,n,Le,i),o.forEach((e=>{const t=y(a,e.element,new Map);e.postStyleProps.forEach((e=>t.set(e,null)))}))):(i.push(new l(3300,!1)),o=[]),i.length)throw new l(3504,!1);a.forEach(((e,t)=>{e.forEach(((n,i)=>{e.set(i,this._driver.computeStyle(t,i,s))}))}));const h=c(o.map((e=>{const t=a.get(e.element);return this._buildPlayer(e,new Map,t)})));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 new l(3301,!1);return t}listen(e,t,s,n){const i=d(t,"","","");return m(this._getPlayer(e),s,i,n),()=>{}}command(e,t,s,n){if("register"==s)return void this.register(e,n[0]);if("create"==s){const s=n[0]||{};return void this.create(e,t,s)}const i=this._getPlayer(e);switch(s){case"play":i.play();break;case"pause":i.pause();break;case"reset":i.reset();break;case"restart":i.restart();break;case"finish":i.finish();break;case"init":i.init();break;case"setPosition":i.setPosition(parseFloat(n[0]));break;case"destroy":this.destroy(e)}}}const Re="ng-animate-queued",Qe="ng-animate-disabled",Ke=[],Be={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Ie={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Oe="__ng_removed";class We{get params(){return this.options.params}constructor(e,t=""){this.namespaceId=t;const s=e&&e.hasOwnProperty("value"),n=s?e.value:e;if(this.value=function(e){return null!=e?e:null}(n),s){const t=q(e);delete t.value,this.options=t}else this.options={};this.options.params||(this.options.params={})}absorbOptions(e){const t=e.params;if(t){const e=this.options.params;Object.keys(t).forEach((s=>{null==e[s]&&(e[s]=t[s])}))}}}const je="void",He=new We(je);class Ve{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,Ze(t,this._hostClassName)}listen(e,t,s,n){if(!this._triggers.has(t))throw new l(3302,!1);if(null==s||0==s.length)throw new l(3303,!1);if("start"!=(i=s)&&"done"!=i)throw new l(3400,!1);var i;const r=y(this._elementListeners,e,[]),o={name:t,phase:s,callback:n};r.push(o);const a=y(this._engine.statesByElement,e,new Map);return a.has(t)||(Ze(e,C),Ze(e,C+"-"+t),a.set(t,He)),()=>{this._engine.afterFlush((()=>{const e=r.indexOf(o);e>=0&&r.splice(e,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 new l(3401,!1);return t}trigger(e,t,s,n=!0){const i=this._getTrigger(t),r=new Ge(this.id,t,e);let o=this._engine.statesByElement.get(e);o||(Ze(e,C),Ze(e,C+"-"+t),this._engine.statesByElement.set(e,o=new Map));let a=o.get(t);const l=new We(s,this.id);!(s&&s.hasOwnProperty("value"))&&a&&l.absorbOptions(a.options),o.set(t,l),a||(a=He);if(!(l.value===je)&&a.value===l.value){if(!function(e,t){const s=Object.keys(e),n=Object.keys(t);if(s.length!=n.length)return!1;for(let n=0;n<s.length;n++){const i=s[n];if(!t.hasOwnProperty(i)||e[i]!==t[i])return!1}return!0}(a.params,l.params)){const t=[],s=i.matchStyles(a.value,a.params,t),n=i.matchStyles(l.value,l.params,t);t.length?this._engine.reportError(t):this._engine.afterFlush((()=>{O(e,s),I(e,n)}))}return}const h=y(this._engine.playersByElement,e,[]);h.forEach((e=>{e.namespaceId==this.id&&e.triggerName==t&&e.queued&&e.destroy()}));let c=i.matchTransition(a.value,l.value,e,l.params),u=!1;if(!c){if(!n)return;c=i.fallbackTransition,u=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:t,transition:c,fromState:a,toState:l,player:r,isFallbackTransition:u}),u||(Ze(e,Re),r.onStart((()=>{et(e,Re)}))),r.onDone((()=>{let t=this.players.indexOf(r);t>=0&&this.players.splice(t,1);const s=this._engine.playersByElement.get(e);if(s){let e=s.indexOf(r);e>=0&&s.splice(e,1)}})),this.players.push(r),h.push(r),r}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((t=>t.name!=e)))}))}clearElementCache(e){this._engine.statesByElement.delete(e),this._elementListeners.delete(e);const t=this._engine.playersByElement.get(e);t&&(t.forEach((e=>e.destroy())),this._engine.playersByElement.delete(e))}_signalRemovalForInnerTriggers(e,t){const s=this._engine.driver.query(e,F,!0);s.forEach((e=>{if(e[Oe])return;const s=this._engine.fetchNamespacesByElement(e);s.size?s.forEach((s=>s.triggerLeaveAnimation(e,t,!1,!0))):this.clearElementCache(e)})),this._engine.afterFlushAnimationsDone((()=>s.forEach((e=>this.clearElementCache(e)))))}triggerLeaveAnimation(e,t,s,n){const i=this._engine.statesByElement.get(e),r=new Map;if(i){const o=[];if(i.forEach(((t,s)=>{if(r.set(s,t.value),this._triggers.has(s)){const t=this.trigger(e,s,je,n);t&&o.push(t)}})),o.length)return this._engine.markElementAsRemoved(this.id,e,!0,t,r),s&&c(o).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 n=new Set;t.forEach((t=>{const i=t.name;if(n.has(i))return;n.add(i);const r=this._triggers.get(i).fallbackTransition,o=s.get(i)||He,a=new We(je),l=new Ge(this.id,i,e);this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:i,transition:r,fromState:o,toState:a,player:l,isFallbackTransition:!0})}))}}removeNode(e,t){const s=this._engine;if(e.childElementCount&&this._signalRemovalForInnerTriggers(e,t),this.triggerLeaveAnimation(e,t,!0))return;let n=!1;if(s.totalAnimations){const t=s.players.length?s.playersByQueriedElement.get(e):[];if(t&&t.length)n=!0;else{let t=e;for(;t=t.parentNode;){if(s.statesByElement.get(t)){n=!0;break}}}}if(this.prepareLeaveAnimationListeners(e),n)s.markElementAsRemoved(this.id,e,!1,t);else{const n=e[Oe];n&&n!==Be||(s.afterFlush((()=>this.clearElementCache(e))),s.destroyInnerAnimations(e),s._onRemovalComplete(e,t))}}insertNode(e,t){Ze(e,this._hostClassName)}drainQueuedTransitions(e){const t=[];return this._queue.forEach((s=>{const n=s.player;if(n.destroyed)return;const i=s.element,r=this._elementListeners.get(i);r&&r.forEach((t=>{if(t.name==s.triggerName){const n=d(i,s.triggerName,s.fromState.value,s.toState.value);n._data=e,m(s.player,t.phase,n,t.callback)}})),n.markedForDestroy?this._engine.afterFlush((()=>{n.destroy()})):t.push(s)})),this._queue=[],t.sort(((e,t)=>{const s=e.transition.ast.depCount,n=t.transition.ast.depCount;return 0==s||0==n?s-n:this._engine.driver.containsElement(e.element,t.element)?1:-1}))}destroy(e){this.players.forEach((e=>e.destroy())),this._signalRemovalForInnerTriggers(this.hostElement,e)}}class $e{_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=(e,t)=>{}}get queuedPlayers(){const e=[];return this._namespaceList.forEach((t=>{t.players.forEach((t=>{t.queued&&e.push(t)}))})),e}createNamespace(e,t){const s=new Ve(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,n=this.namespacesByHostElement;if(s.length-1>=0){let i=!1,r=this.driver.getParentElement(t);for(;r;){const t=n.get(r);if(t){const n=s.indexOf(t);s.splice(n+1,0,e),i=!0;break}r=this.driver.getParentElement(r)}i||s.unshift(e)}else s.push(e);return n.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 n=this._namespaceLookup[e];n&&n.register(t,s)&&this.totalAnimations++}destroy(e,t){e&&(this.afterFlush((()=>{})),this.afterFlushAnimationsDone((()=>{const s=this._fetchNamespace(e);this.namespacesByHostElement.delete(s.hostElement);const n=this._namespaceList.indexOf(s);n>=0&&this._namespaceList.splice(n,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 e of s.values())if(e.namespaceId){const s=this._fetchNamespace(e.namespaceId);s&&t.add(s)}return t}trigger(e,t,s,n){if(Ue(t)){const i=this._fetchNamespace(e);if(i)return i.trigger(t,s,n),!0}return!1}insertNode(e,t,s,n){if(!Ue(t))return;const i=t[Oe];if(i&&i.setForRemoval){i.setForRemoval=!1,i.setForMove=!0;const e=this.collectedLeaveElements.indexOf(t);e>=0&&this.collectedLeaveElements.splice(e,1)}if(e){const n=this._fetchNamespace(e);n&&n.insertNode(t,s)}n&&this.collectEnterElement(t)}collectEnterElement(e){this.collectedEnterElements.push(e)}markElementAsDisabled(e,t){t?this.disabledNodes.has(e)||(this.disabledNodes.add(e),Ze(e,Qe)):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),et(e,Qe))}removeNode(e,t,s){if(Ue(t)){const n=e?this._fetchNamespace(e):null;n?n.removeNode(t,s):this.markElementAsRemoved(e,t,!1,s);const i=this.namespacesByHostElement.get(t);i&&i.id!==e&&i.removeNode(t,s)}else this._onRemovalComplete(t,s)}markElementAsRemoved(e,t,s,n,i){this.collectedLeaveElements.push(t),t[Oe]={namespaceId:e,setForRemoval:n,hasAnimation:s,removedBeforeQueried:!1,previousTriggersValues:i}}listen(e,t,s,n,i){return Ue(t)?this._fetchNamespace(e).listen(t,s,n,i):()=>{}}_buildInstruction(e,t,s,n,i){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,s,n,e.fromState.options,e.toState.options,t,i)}destroyInnerAnimations(e){let t=this.driver.query(e,F,!0);t.forEach((e=>this.destroyActiveAnimationsForElement(e))),0!=this.playersByQueriedElement.size&&(t=this.driver.query(e,x,!0),t.forEach((e=>this.finishActiveQueriedAnimationOnElement(e))))}destroyActiveAnimationsForElement(e){const t=this.playersByElement.get(e);t&&t.forEach((e=>{e.queued?e.markedForDestroy=!0:e.destroy()}))}finishActiveQueriedAnimationOnElement(e){const t=this.playersByQueriedElement.get(e);t&&t.forEach((e=>e.finish()))}whenRenderingDone(){return new Promise((e=>{if(this.players.length)return c(this.players).onDone((()=>e()));e()}))}processLeaveNode(e){const t=e[Oe];if(t&&t.setForRemoval){if(e[Oe]=Be,t.namespaceId){this.destroyInnerAnimations(e);const s=this._fetchNamespace(t.namespaceId);s&&s.clearElementCache(e)}this._onRemovalComplete(e,t.setForRemoval)}e.classList?.contains(Qe)&&this.markElementAsDisabled(e,!1),this.driver.query(e,".ng-animate-disabled",!0).forEach((e=>{this.markElementAsDisabled(e,!1)}))}flush(e=-1){let t=[];if(this.newHostElements.size&&(this.newHostElements.forEach(((e,t)=>this._balanceNamespaceList(e,t))),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let e=0;e<this.collectedEnterElements.length;e++){Ze(this.collectedEnterElements[e],"ng-star-inserted")}if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){const s=[];try{t=this._flushAnimations(s,e)}finally{for(let e=0;e<s.length;e++)s[e]()}}else for(let e=0;e<this.collectedLeaveElements.length;e++){const t=this.collectedLeaveElements[e];this.processLeaveNode(t)}if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach((e=>e())),this._flushFns=[],this._whenQuietFns.length){const e=this._whenQuietFns;this._whenQuietFns=[],t.length?c(t).onDone((()=>{e.forEach((e=>e()))})):e.forEach((e=>e()))}}reportError(e){throw new l(3402,!1)}_flushAnimations(e,t){const i=new pe,r=[],o=new Map,a=[],h=new Map,u=new Map,m=new Map,p=new Set;this.disabledNodes.forEach((e=>{p.add(e);const t=this.driver.query(e,".ng-animate-queued",!0);for(let e=0;e<t.length;e++)p.add(t[e])}));const d=this.bodyNode,f=Array.from(this.statesByElement.keys()),g=Ye(f,this.collectedEnterElements),_=new Map;let S=0;g.forEach(((e,t)=>{const s=A+S++;_.set(t,s),e.forEach((e=>Ze(e,s)))}));const E=[],v=new Set,w=new Set;for(let e=0;e<this.collectedLeaveElements.length;e++){const t=this.collectedLeaveElements[e],s=t[Oe];s&&s.setForRemoval&&(E.push(t),v.add(t),s.hasAnimation?this.driver.query(t,".ng-star-inserted",!0).forEach((e=>v.add(e))):w.add(t))}const b=new Map,T=Ye(f,Array.from(v));T.forEach(((e,t)=>{const s=P+S++;b.set(t,s),e.forEach((e=>Ze(e,s)))})),e.push((()=>{g.forEach(((e,t)=>{const s=_.get(t);e.forEach((e=>et(e,s)))})),T.forEach(((e,t)=>{const s=b.get(t);e.forEach((e=>et(e,s)))})),E.forEach((e=>{this.processLeaveNode(e)}))}));const k=[],N=[];for(let e=this._namespaceList.length-1;e>=0;e--){this._namespaceList[e].drainQueuedTransitions(t).forEach((e=>{const t=e.player,s=e.element;if(k.push(t),this.collectedEnterElements.length){const n=s[Oe];if(n&&n.setForMove){if(n.previousTriggersValues&&n.previousTriggersValues.has(e.triggerName)){const t=n.previousTriggersValues.get(e.triggerName),s=this.statesByElement.get(e.element);if(s&&s.has(e.triggerName)){const n=s.get(e.triggerName);n.value=t,s.set(e.triggerName,n)}}return void t.destroy()}}const n=!d||!this.driver.containsElement(d,s),o=b.get(s),l=_.get(s),c=this._buildInstruction(e,i,l,o,n);if(c.errors&&c.errors.length)return void N.push(c);if(n)return t.onStart((()=>O(s,c.fromStyles))),t.onDestroy((()=>I(s,c.toStyles))),void r.push(t);if(e.isFallbackTransition)return t.onStart((()=>O(s,c.fromStyles))),t.onDestroy((()=>I(s,c.toStyles))),void r.push(t);const p=[];c.timelines.forEach((e=>{e.stretchStartingKeyframe=!0,this.disabledNodes.has(e.element)||p.push(e)})),c.timelines=p,i.append(s,c.timelines);const f={instruction:c,player:t,element:s};a.push(f),c.queriedElements.forEach((e=>y(h,e,[]).push(t))),c.preStyleProps.forEach(((e,t)=>{if(e.size){let s=u.get(t);s||u.set(t,s=new Set),e.forEach(((e,t)=>s.add(t)))}})),c.postStyleProps.forEach(((e,t)=>{let s=m.get(t);s||m.set(t,s=new Set),e.forEach(((e,t)=>s.add(t)))}))}))}if(N.length){const e=[];N.forEach((t=>{e.push((t.triggerName,t.errors,new l(3505,!1)))})),k.forEach((e=>e.destroy())),this.reportError(e)}const C=new Map,F=new Map;a.forEach((e=>{const t=e.element;i.has(t)&&(F.set(t,t),this._beforeAnimationBuild(e.player.namespaceId,e.instruction,C))})),r.forEach((e=>{const t=e.element;this._getPreviousPlayers(t,!1,e.namespaceId,e.triggerName,null).forEach((e=>{y(C,t,[]).push(e),e.destroy()}))}));const M=E.filter((e=>nt(e,u,m))),z=new Map;Xe(z,this.driver,w,m,s).forEach((e=>{nt(e,u,m)&&M.push(e)}));const D=new Map;g.forEach(((e,t)=>{Xe(D,this.driver,new Set(e),u,n)})),M.forEach((e=>{const t=z.get(e),s=D.get(e);z.set(e,new Map([...t?.entries()??[],...s?.entries()??[]]))}));const L=[],q=[],R={};a.forEach((e=>{const{element:t,player:s,instruction:n}=e;if(i.has(t)){if(p.has(t))return s.onDestroy((()=>I(t,n.toStyles))),s.disabled=!0,s.overrideTotalTime(n.totalTime),void r.push(s);let e=R;if(F.size>1){let s=t;const n=[];for(;s=s.parentNode;){const t=F.get(s);if(t){e=t;break}n.push(s)}n.forEach((t=>F.set(t,e)))}const i=this._buildAnimation(s.namespaceId,n,C,o,D,z);if(s.setRealPlayer(i),e===R)L.push(s);else{const t=this.playersByElement.get(e);t&&t.length&&(s.parentPlayer=c(t)),r.push(s)}}else O(t,n.fromStyles),s.onDestroy((()=>I(t,n.toStyles))),q.push(s),p.has(t)&&r.push(s)})),q.forEach((e=>{const t=o.get(e.element);if(t&&t.length){const s=c(t);e.setRealPlayer(s)}})),r.forEach((e=>{e.parentPlayer?e.syncPlayerEvents(e.parentPlayer):e.destroy()}));for(let e=0;e<E.length;e++){const t=E[e],s=t[Oe];if(et(t,P),s&&s.hasAnimation)continue;let n=[];if(h.size){let e=h.get(t);e&&e.length&&n.push(...e);let s=this.driver.query(t,x,!0);for(let e=0;e<s.length;e++){let t=h.get(s[e]);t&&t.length&&n.push(...t)}}const i=n.filter((e=>!e.destroyed));i.length?tt(this,t,i):this.processLeaveNode(t)}return E.length=0,L.forEach((e=>{this.players.push(e),e.onDone((()=>{e.destroy();const t=this.players.indexOf(e);this.players.splice(t,1)})),e.play()})),L}afterFlush(e){this._flushFns.push(e)}afterFlushAnimationsDone(e){this._whenQuietFns.push(e)}_getPreviousPlayers(e,t,s,n,i){let r=[];if(t){const t=this.playersByQueriedElement.get(e);t&&(r=t)}else{const t=this.playersByElement.get(e);if(t){const e=!i||i==je;t.forEach((t=>{t.queued||(e||t.triggerName==n)&&r.push(t)}))}}return(s||n)&&(r=r.filter((e=>(!s||s==e.namespaceId)&&(!n||n==e.triggerName)))),r}_beforeAnimationBuild(e,t,s){const n=t.triggerName,i=t.element,r=t.isRemovalTransition?void 0:e,o=t.isRemovalTransition?void 0:n;for(const e of t.timelines){const n=e.element,a=n!==i,l=y(s,n,[]);this._getPreviousPlayers(n,a,r,o,t.toState).forEach((e=>{const t=e.getRealPlayer();t.beforeDestroy&&t.beforeDestroy(),e.destroy(),l.push(e)}))}O(i,t.fromStyles)}_buildAnimation(t,s,n,i,r,o){const a=s.triggerName,l=s.element,h=[],m=new Set,p=new Set,d=s.timelines.map((s=>{const c=s.element;m.add(c);const d=c[Oe];if(d&&d.removedBeforeQueried)return new e(s.duration,s.delay);const y=c!==l,f=function(e){const t=[];return st(e,t),t}((n.get(c)||Ke).map((e=>e.getRealPlayer()))).filter((e=>{const t=e;return!!t.element&&t.element===c})),g=r.get(c),_=o.get(c),S=u(this._normalizer,s.keyframes,g,_),E=this._buildPlayer(s,S,f);if(s.subTimeline&&i&&p.add(c),y){const e=new Ge(t,a,c);e.setRealPlayer(E),h.push(e)}return E}));h.forEach((e=>{y(this.playersByQueriedElement,e.element,[]).push(e),e.onDone((()=>function(e,t,s){let n=e.get(t);if(n){if(n.length){const e=n.indexOf(s);n.splice(e,1)}0==n.length&&e.delete(t)}return n}(this.playersByQueriedElement,e.element,e)))})),m.forEach((e=>Ze(e,M)));const f=c(d);return f.onDestroy((()=>{m.forEach((e=>et(e,M))),I(l,s.toStyles)})),p.forEach((e=>{y(i,e,[]).push(f)})),f}_buildPlayer(t,s,n){return s.length>0?this.driver.animate(t.element,s,t.duration,t.delay,t.easing,n):new e(t.duration,t.delay)}}class Ge{constructor(t,s,n){this.namespaceId=t,this.triggerName=s,this.element=n,this._player=new e,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((t=>m(e,s,void 0,t)))})),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){y(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 Ue(e){return e&&1===e.nodeType}function Je(e,t){const s=e.style.display;return e.style.display=null!=t?t:"none",s}function Xe(e,t,s,n,i){const r=[];s.forEach((e=>r.push(Je(e))));const o=[];n.forEach(((s,n)=>{const r=new Map;s.forEach((e=>{const s=t.computeStyle(n,e,i);r.set(e,s),s&&0!=s.length||(n[Oe]=Ie,o.push(n))})),e.set(n,r)}));let a=0;return s.forEach((e=>Je(e,r[a++]))),o}function Ye(e,t){const s=new Map;if(e.forEach((e=>s.set(e,[]))),0==t.length)return s;const n=new Set(t),i=new Map;function r(e){if(!e)return 1;let t=i.get(e);if(t)return t;const o=e.parentNode;return t=s.has(o)?o:n.has(o)?1:r(o),i.set(e,t),t}return t.forEach((e=>{const t=r(e);1!==t&&s.get(t).push(e)})),s}function Ze(e,t){e.classList?.add(t)}function et(e,t){e.classList?.remove(t)}function tt(e,t,s){c(s).onDone((()=>e.processLeaveNode(t)))}function st(e,t){for(let s=0;s<e.length;s++){const n=e[s];n instanceof i?st(n.players,t):t.push(n)}}function nt(e,t,s){const n=s.get(e);if(!n)return!1;let i=t.get(e);return i?n.forEach((e=>i.add(e))):t.set(e,n),s.delete(e),!0}class it{constructor(e,t,s){this.bodyNode=e,this._driver=t,this._normalizer=s,this._triggerCache={},this.onRemovalComplete=(e,t)=>{},this._transitionEngine=new $e(e,t,s),this._timelineEngine=new qe(e,t,s),this._transitionEngine.onRemovalComplete=(e,t)=>this.onRemovalComplete(e,t)}registerTrigger(e,t,s,n,i){const r=e+"-"+n;let o=this._triggerCache[r];if(!o){const e=[],t=[],s=ae(this._driver,i,e,t);if(e.length)throw new l(3404,!1);t.length,o=function(e,t,s){return new ze(e,t,s)}(n,s,this._normalizer),this._triggerCache[r]=o}this._transitionEngine.registerTrigger(t,n,o)}register(e,t){this._transitionEngine.register(e,t)}destroy(e,t){this._transitionEngine.destroy(e,t)}onInsert(e,t,s,n){this._transitionEngine.insertNode(e,t,s,n)}onRemove(e,t,s){this._transitionEngine.removeNode(e,t,s)}disableAnimations(e,t){this._transitionEngine.markElementAsDisabled(e,t)}process(e,t,s,n){if("@"==s.charAt(0)){const[e,i]=f(s),r=n;this._timelineEngine.command(e,t,i,r)}else this._transitionEngine.trigger(e,t,s,n)}listen(e,t,s,n,i){if("@"==s.charAt(0)){const[e,n]=f(s);return this._timelineEngine.listen(e,t,n,i)}return this._transitionEngine.listen(e,t,s,n,i)}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 rt{static{this.initialStylesByElement=new WeakMap}constructor(e,t,s){this._element=e,this._startStyles=t,this._endStyles=s,this._state=0;let n=rt.initialStylesByElement.get(e);n||rt.initialStylesByElement.set(e,n=new Map),this._initialStyles=n}start(){this._state<1&&(this._startStyles&&I(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(I(this._element,this._initialStyles),this._endStyles&&(I(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(rt.initialStylesByElement.delete(this._element),this._startStyles&&(O(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(O(this._element,this._endStyles),this._endStyles=null),I(this._element,this._initialStyles),this._state=3)}}function ot(e){let t=null;return e.forEach(((e,s)=>{(function(e){return"display"===e||"position"===e})(s)&&(t=t||new Map,t.set(s,e))})),t}class at{constructor(e,t,s,n){this.element=e,this.keyframes=t,this.options=s,this._specialStyles=n,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,this.domPlayer.addEventListener("finish",(()=>this._onFinish()))}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(e){const t=[];return e.forEach((e=>{t.push(Object.fromEntries(e))})),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;if(this.hasStarted()){this._finalKeyframe.forEach(((t,s)=>{"offset"!==s&&e.set(s,this._finished?t:Z(this.element,s))}))}this.currentSnapshot=e}triggerCallback(e){const t="start"===e?this._onStartFns:this._onDoneFns;t.forEach((e=>e())),t.length=0}}class lt{validateStyleProperty(e){return!0}validateAnimatableStyleProperty(e){return!0}matchesElement(e,t){return!1}containsElement(e,t){return w(e,t)}getParentElement(e){return _(e)}query(e,t,s){return b(e,t,s)}computeStyle(e,t,s){return window.getComputedStyle(e)[t]}animate(e,t,s,n,i,r=[]){const o={duration:s,delay:n,fill:0==n?"both":"forwards"};i&&(o.easing=i);const a=new Map,l=r.filter((e=>e instanceof at));X(s,n)&&l.forEach((e=>{e.currentSnapshot.forEach(((e,t)=>a.set(t,e)))}));let h=Q(t).map((e=>B(e)));h=function(e,t,s){if(s.size&&t.length){let n=t[0],i=[];if(s.forEach(((e,t)=>{n.has(t)||i.push(t),n.set(t,e)})),i.length)for(let s=1;s<t.length;s++){let n=t[s];i.forEach((t=>n.set(t,Z(e,t))))}}return t}(e,h,a);const c=function(e,t){let s=null,n=null;return Array.isArray(t)&&t.length?(s=ot(t[0]),t.length>1&&(n=ot(t[t.length-1]))):t instanceof Map&&(s=ot(t)),s||n?new rt(e,s,n):null}(e,h);return new at(e,h,o,c)}}export{k as AnimationDriver,be as ɵAnimation,it as ɵAnimationEngine,Te as ɵAnimationStyleNormalizer,T as ɵNoopAnimationDriver,ke as ɵNoopAnimationStyleNormalizer,lt as ɵWebAnimationsDriver,at as ɵWebAnimationsPlayer,Ae as ɵWebAnimationsStyleNormalizer,X as ɵallowPreviousPlayerStylesMerge,w as ɵcontainsElement,_ as ɵgetParentElement,b as ɵinvokeQuery,Q as ɵnormalizeKeyframes,v as ɵvalidateStyleProperty};
//# sourceMappingURL=angular-browser.min.js.map
{
"name": "@esm-bundle/angular__animations",
"version": "16.2.5",
"version": "16.2.6",
"description": "ESM and SystemJS versions of @angular/animations",

@@ -47,6 +47,6 @@ "type": "module",

"devDependencies": {
"@angular/animations": "16.2.5",
"@angular/compiler": "16.2.5",
"@angular/compiler-cli": "16.2.5",
"@angular/core": "16.2.5",
"@angular/animations": "16.2.6",
"@angular/compiler": "16.2.6",
"@angular/compiler-cli": "16.2.6",
"@angular/core": "16.2.6",
"@rollup/plugin-babel": "6.0.3",

@@ -64,3 +64,3 @@ "concurrently": "8.2.1",

"rimraf": "5.0.1",
"rollup": "3.29.1",
"rollup": "3.29.2",
"rollup-plugin-terser": "7.0.2",

@@ -67,0 +67,0 @@ "typescript": "5.2.2"

@@ -1,2 +0,2 @@

/* esm-bundle - @angular/animations@16.2.5 - Ivy - system format - es2022 - Use of this source code is governed by an MIT-style license that can be found in the LICENSE file at https://angular.io/license */
/* esm-bundle - @angular/animations@16.2.6 - Ivy - system format - es2022 - Use of this source code is governed by an MIT-style license that can be found in the LICENSE file at https://angular.io/license */
System.register([], (function (exports) {

@@ -24,3 +24,3 @@ 'use strict';

/**
* @license Angular v16.2.5
* @license Angular v16.2.6
* (c) 2010-2022 Google LLC. https://angular.io/

@@ -27,0 +27,0 @@ * License: MIT

@@ -1,3 +0,3 @@

/* esm-bundle - @angular/animations@16.2.5 - Ivy - system format - es2022 - Use of this source code is governed by an MIT-style license that can be found in the LICENSE file at https://angular.io/license */
/* esm-bundle - @angular/animations@16.2.6 - Ivy - system format - es2022 - Use of this source code is governed by an MIT-style license that can be found in the LICENSE file at https://angular.io/license */
System.register([],(function(t){"use strict";return{execute:function(){t({animate:function(t,s=null){return{type:4,styles:s,timings:t}},animateChild:function(t=null){return{type:9,options:t}},animation:function(t,s=null){return{type:8,animation:t,options:s}},group:function(t,s=null){return{type:3,steps:t,options:s}},keyframes:function(t){return{type:5,steps:t}},query:function(t,s,n=null){return{type:11,selector:t,animation:s,options:n}},sequence:function(t,s=null){return{type:2,steps:t,options:s}},stagger:function(t,s){return{type:12,timings:t,animation:s}},state:function(t,s,n){return{type:0,name:t,styles:s,options:n}},style:function(t){return{type:6,styles:t,offset:null}},transition:function(t,s,n=null){return{type:1,expr:t,animation:s,options:n}},trigger:function(t,s){return{type:7,name:t,definitions:s,options:{}}},useAnimation:function(t,s=null){return{type:10,animation:t,options:s}}});t("AnimationBuilder",class{});t("AnimationFactory",class{});t("AUTO_STYLE","*");t("NoopAnimationPlayer",class{constructor(t=0,s=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=t+s}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach((t=>t())),this._onDoneFns=[])}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)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){queueMicrotask((()=>this._onFinish()))}_onStart(){this._onStartFns.forEach((t=>t())),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach((t=>t())),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(t){this._position=this.totalTime?t*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(t){const s="start"==t?this._onStartFns:this._onDoneFns;s.forEach((t=>t())),s.length=0}});t("ɵAnimationGroupPlayer",class{constructor(t){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=t;let s=0,n=0,i=0;const o=this.players.length;0==o?queueMicrotask((()=>this._onFinish())):this.players.forEach((t=>{t.onDone((()=>{++s==o&&this._onFinish()})),t.onDestroy((()=>{++n==o&&this._onDestroy()})),t.onStart((()=>{++i==o&&this._onStart()}))})),this.totalTime=this.players.reduce(((t,s)=>Math.max(t,s.totalTime)),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach((t=>t())),this._onDoneFns=[])}init(){this.players.forEach((t=>t.init()))}onStart(t){this._onStartFns.push(t)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach((t=>t())),this._onStartFns=[])}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach((t=>t.play()))}pause(){this.players.forEach((t=>t.pause()))}restart(){this.players.forEach((t=>t.restart()))}finish(){this._onFinish(),this.players.forEach((t=>t.finish()))}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach((t=>t.destroy())),this._onDestroyFns.forEach((t=>t())),this._onDestroyFns=[])}reset(){this.players.forEach((t=>t.reset())),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(t){const s=t*this.totalTime;this.players.forEach((t=>{const n=t.totalTime?Math.min(1,s/t.totalTime):1;t.setPosition(n)}))}getPosition(){const t=this.players.reduce(((t,s)=>null===t||s.totalTime>t.totalTime?s:t),null);return null!=t?t.getPosition():0}beforeDestroy(){this.players.forEach((t=>{t.beforeDestroy&&t.beforeDestroy()}))}triggerCallback(t){const s="start"==t?this._onStartFns:this._onDoneFns;s.forEach((t=>t())),s.length=0}});t("ɵPRE_STYLE","!")}}}));
//# sourceMappingURL=angular-animations.min.js.map

@@ -1,3 +0,3 @@

/* esm-bundle - @angular/animations/browser@16.2.5 - Ivy - system format - es2022 - Use of this source code is governed by an MIT-style license that can be found in the LICENSE file at https://angular.io/license */
/* esm-bundle - @angular/animations/browser@16.2.6 - Ivy - system format - es2022 - Use of this source code is governed by an MIT-style license that can be found in the LICENSE file at https://angular.io/license */
System.register(["@angular/animations","@angular/core"],(function(e){"use strict";var t,s,n,i,r,o,a,l;return{setters:[function(e){t=e.NoopAnimationPlayer,s=e.style,n=e.AUTO_STYLE,i=e["ɵPRE_STYLE"],r=e["ɵAnimationGroupPlayer"],o=e.sequence},function(e){a=e,e.Injectable,l=e["ɵRuntimeError"]}],execute:function(){e({ɵallowPreviousPlayerStylesMerge:J,ɵcontainsElement:w,ɵgetParentElement:_,ɵinvokeQuery:b,ɵnormalizeKeyframes:Q,ɵvalidateStyleProperty:v});function h(e){return new l(3e3,!1)}new Set(["-moz-outline-radius","-moz-outline-radius-bottomleft","-moz-outline-radius-bottomright","-moz-outline-radius-topleft","-moz-outline-radius-topright","-ms-grid-columns","-ms-grid-rows","-webkit-line-clamp","-webkit-text-fill-color","-webkit-text-stroke","-webkit-text-stroke-color","accent-color","all","backdrop-filter","background","background-color","background-position","background-size","block-size","border","border-block-end","border-block-end-color","border-block-end-width","border-block-start","border-block-start-color","border-block-start-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-width","border-color","border-end-end-radius","border-end-start-radius","border-image-outset","border-image-slice","border-image-width","border-inline-end","border-inline-end-color","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-width","border-left","border-left-color","border-left-width","border-radius","border-right","border-right-color","border-right-width","border-start-end-radius","border-start-start-radius","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-width","border-width","bottom","box-shadow","caret-color","clip","clip-path","color","column-count","column-gap","column-rule","column-rule-color","column-rule-width","column-width","columns","filter","flex","flex-basis","flex-grow","flex-shrink","font","font-size","font-size-adjust","font-stretch","font-variation-settings","font-weight","gap","grid-column-gap","grid-gap","grid-row-gap","grid-template-columns","grid-template-rows","height","inline-size","input-security","inset","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","left","letter-spacing","line-clamp","line-height","margin","margin-block-end","margin-block-start","margin-bottom","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","mask","mask-border","mask-position","mask-size","max-block-size","max-height","max-inline-size","max-lines","max-width","min-block-size","min-height","min-inline-size","min-width","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","outline","outline-color","outline-offset","outline-width","padding","padding-block-end","padding-block-start","padding-bottom","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","perspective","perspective-origin","right","rotate","row-gap","scale","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-coordinate","scroll-snap-destination","scrollbar-color","shape-image-threshold","shape-margin","shape-outside","tab-size","text-decoration","text-decoration-color","text-decoration-thickness","text-emphasis","text-emphasis-color","text-indent","text-shadow","text-underline-offset","top","transform","transform-origin","translate","vertical-align","visibility","width","word-spacing","z-index","zoom"]);function c(e){switch(e.length){case 0:return new t;case 1:return e[0];default:return new r(e)}}function u(e,t,s=new Map,r=new Map){const o=[],a=[];let h=-1,c=null;if(t.forEach((t=>{const l=t.get("offset"),u=l==h,m=u&&c||new Map;t.forEach(((t,a)=>{let l=a,h=t;if("offset"!==a)switch(l=e.normalizePropertyName(l,o),h){case i:h=s.get(a);break;case n:h=r.get(a);break;default:h=e.normalizeStyleValue(a,l,h,o)}m.set(l,h)})),u||a.push(m),c=m,h=l})),o.length)throw new l(3502,!1);return a}function m(e,t,s,n){switch(t){case"start":e.onStart((()=>n(s&&p(s,"start",e))));break;case"done":e.onDone((()=>n(s&&p(s,"done",e))));break;case"destroy":e.onDestroy((()=>n(s&&p(s,"destroy",e))))}}function p(e,t,s){const n=s.totalTime,i=!!s.disabled,r=d(e.element,e.triggerName,e.fromState,e.toState,t||e.phaseName,null==n?e.totalTime:n,i),o=e._data;return null!=o&&(r._data=o),r}function d(e,t,s,n,i="",r=0,o){return{element:e,triggerName:t,fromState:s,toState:n,phaseName:i,totalTime:r,disabled:!!o}}function y(e,t,s){let n=e.get(t);return n||e.set(t,n=s),n}function f(e){const t=e.indexOf(":");return[e.substring(1,t),e.slice(t+1)]}const g=(()=>"undefined"==typeof document?null:document.documentElement)();function _(e){const t=e.parentNode||e.host||null;return t===g?null:t}let S=null,E=!1;function v(e){S||(S=function(){if("undefined"!=typeof document)return document.body;return null}()||{},E=!!S.style&&"WebkitAppearance"in S.style);let t=!0;if(S.style&&!function(e){return"ebkit"==e.substring(1,6)}(e)&&(t=e in S.style,!t&&E)){t="Webkit"+e.charAt(0).toUpperCase()+e.slice(1)in S.style}return t}function w(e,t){for(;t;){if(t===e)return!0;t=_(t)}return!1}function b(e,t,s){if(s)return Array.from(e.querySelectorAll(t));const n=e.querySelector(t);return n?[n]:[]}class T{validateStyleProperty(e){return v(e)}matchesElement(e,t){return!1}containsElement(e,t){return w(e,t)}getParentElement(e){return _(e)}query(e,t,s){return b(e,t,s)}computeStyle(e,t,s){return s||""}animate(e,s,n,i,r,o=[],a){return new t(n,i)}static{this.ɵfac=function(e){return new(e||T)}}static{this.ɵprov=a.ɵɵdefineInjectable({token:T,factory:T.ɵfac})}}e("ɵNoopAnimationDriver",T);class k{static{this.NOOP=new T}}e("AnimationDriver",k);const N=1e3,A="ng-enter",P="ng-leave",C="ng-trigger",F=".ng-trigger",M="ng-animating",x=".ng-animating";function z(e){if("number"==typeof e)return e;const t=e.match(/^(-?[\.\d]+)(m?s)/);return!t||t.length<2?0:D(parseFloat(t[1]),t[2])}function D(e,t){return"s"===t?e*N:e}function L(e,t,s){return e.hasOwnProperty("duration")?e:function(e,t,s){const n=/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i;let i,r=0,o="";if("string"==typeof e){const s=e.match(n);if(null===s)return t.push(h()),{duration:0,delay:0,easing:""};i=D(parseFloat(s[1]),s[2]);const a=s[3];null!=a&&(r=D(parseFloat(a),s[4]));const l=s[5];l&&(o=l)}else i=e;if(!s){let e=!1,s=t.length;i<0&&(t.push(new l(3100,!1)),e=!0),r<0&&(t.push(new l(3101,!1)),e=!0),e&&t.splice(s,0,h())}return{duration:i,delay:r,easing:o}}(e,t,s)}function R(e,t={}){return Object.keys(e).forEach((s=>{t[s]=e[s]})),t}function q(e){const t=new Map;return Object.keys(e).forEach((s=>{const n=e[s];t.set(s,n)})),t}function Q(e){return e.length?e[0]instanceof Map?e:e.map((e=>q(e))):[]}function K(e){const t=new Map;return Array.isArray(e)?e.forEach((e=>I(e,t))):I(e,t),t}function I(e,t=new Map,s){if(s)for(let[e,n]of s)t.set(e,n);for(let[s,n]of e)t.set(s,n);return t}function B(e,t,s){t.forEach(((t,n)=>{const i=Y(n);s&&!s.has(n)&&s.set(n,e.style[i]),e.style[i]=t}))}function O(e,t){t.forEach(((t,s)=>{const n=Y(s);e.style[n]=""}))}function W(e){return Array.isArray(e)?1==e.length?e[0]:o(e):e}function j(e,t,s){const n=t.params||{},i=V(e);i.length&&i.forEach((e=>{n.hasOwnProperty(e)||s.push(new l(3001,!1))}))}const H=new RegExp("{{\\s*(.+?)\\s*}}","g");function V(e){let t=[];if("string"==typeof e){let s;for(;s=H.exec(e);)t.push(s[1]);H.lastIndex=0}return t}function G(e,t,s){const n=e.toString(),i=n.replace(H,((e,n)=>{let i=t[n];return null==i&&(s.push(new l(3003,!1)),i=""),i.toString()}));return i==n?e:i}function $(e){const t=[];let s=e.next();for(;!s.done;)t.push(s.value),s=e.next();return t}const U=/-+([a-z0-9])/g;function Y(e){return e.replace(U,((...e)=>e[1].toUpperCase()))}function J(e,t){return 0===e||0===t}function X(e,t,s){switch(t.type){case 7:return e.visitTrigger(t,s);case 0:return e.visitState(t,s);case 1:return e.visitTransition(t,s);case 2:return e.visitSequence(t,s);case 3:return e.visitGroup(t,s);case 4:return e.visitAnimate(t,s);case 5:return e.visitKeyframes(t,s);case 6:return e.visitStyle(t,s);case 8:return e.visitReference(t,s);case 9:return e.visitAnimateChild(t,s);case 10:return e.visitAnimateRef(t,s);case 11:return e.visitQuery(t,s);case 12:return e.visitStagger(t,s);default:throw t.type,new l(3004,!1)}}function Z(e,t){return window.getComputedStyle(e)[t]}const ee="*";function te(e,t){const s=[];return"string"==typeof e?e.split(/\s*,\s*/).forEach((e=>function(e,t,s){if(":"==e[0]){const n=function(e,t){switch(e){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(e,t)=>parseFloat(t)>parseFloat(e);case":decrement":return(e,t)=>parseFloat(t)<parseFloat(e);default:return t.push(new l(3016,!1)),"* => *"}}(e,s);if("function"==typeof n)return void t.push(n);e=n}const n=e.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==n||n.length<4)return s.push(new l(3015,!1)),t;const i=n[1],r=n[2],o=n[3];t.push(ie(i,o));const a=i==ee&&o==ee;"<"!=r[0]||a||t.push(ie(o,i))}(e,s,t))):s.push(e),s}const se=new Set(["true","1"]),ne=new Set(["false","0"]);function ie(e,t){const s=se.has(e)||ne.has(e),n=se.has(t)||ne.has(t);return(i,r)=>{let o=e==ee||e==i,a=t==ee||t==r;return!o&&s&&"boolean"==typeof i&&(o=i?se.has(e):ne.has(e)),!a&&n&&"boolean"==typeof r&&(a=r?se.has(t):ne.has(t)),o&&a}}const re=":self",oe=new RegExp(`s*${re}s*,?`,"g");function ae(e,t,s,n){return new le(e).build(t,s,n)}class le{constructor(e){this._driver=e}build(e,t,s){const n=new he(t);this._resetContextStyleTimingState(n);return X(this,W(e),n)}_resetContextStyleTimingState(e){e.currentQuerySelector="",e.collectedStyles=new Map,e.collectedStyles.set("",new Map),e.currentTime=0}visitTrigger(e,t){let s=t.queryCount=0,n=t.depCount=0;const i=[],r=[];return"@"==e.name.charAt(0)&&t.errors.push(new l(3006,!1)),e.definitions.forEach((e=>{if(this._resetContextStyleTimingState(t),0==e.type){const s=e,n=s.name;n.toString().split(/\s*,\s*/).forEach((e=>{s.name=e,i.push(this.visitState(s,t))})),s.name=n}else if(1==e.type){const i=this.visitTransition(e,t);s+=i.queryCount,n+=i.depCount,r.push(i)}else t.errors.push(new l(3007,!1))})),{type:7,name:e.name,states:i,transitions:r,queryCount:s,depCount:n,options:null}}visitState(e,t){const s=this.visitStyle(e.styles,t),n=e.options&&e.options.params||null;if(s.containsDynamicStyles){const i=new Set,r=n||{};if(s.styles.forEach((e=>{e instanceof Map&&e.forEach((e=>{V(e).forEach((e=>{r.hasOwnProperty(e)||i.add(e)}))}))})),i.size){$(i.values());t.errors.push((e.name,new l(3008,!1)))}}return{type:0,name:e.name,style:s,options:n?{params:n}:null}}visitTransition(e,t){t.queryCount=0,t.depCount=0;const s=X(this,W(e.animation),t);return{type:1,matchers:te(e.expr,t.errors),animation:s,queryCount:t.queryCount,depCount:t.depCount,options:ce(e.options)}}visitSequence(e,t){return{type:2,steps:e.steps.map((e=>X(this,e,t))),options:ce(e.options)}}visitGroup(e,t){const s=t.currentTime;let n=0;const i=e.steps.map((e=>{t.currentTime=s;const i=X(this,e,t);return n=Math.max(n,t.currentTime),i}));return t.currentTime=n,{type:3,steps:i,options:ce(e.options)}}visitAnimate(e,t){const n=function(e,t){if(e.hasOwnProperty("duration"))return e;if("number"==typeof e){return ue(L(e,t).duration,0,"")}const s=e;if(s.split(/\s+/).some((e=>"{"==e.charAt(0)&&"{"==e.charAt(1)))){const e=ue(0,0,"");return e.dynamic=!0,e.strValue=s,e}const n=L(s,t);return ue(n.duration,n.delay,n.easing)}(e.timings,t.errors);let i;t.currentAnimateTimings=n;let r=e.styles?e.styles:s({});if(5==r.type)i=this.visitKeyframes(r,t);else{let r=e.styles,o=!1;if(!r){o=!0;const e={};n.easing&&(e.easing=n.easing),r=s(e)}t.currentTime+=n.duration+n.delay;const a=this.visitStyle(r,t);a.isEmptyStep=o,i=a}return t.currentAnimateTimings=null,{type:4,timings:n,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 e of i)"string"==typeof e?e===n?s.push(e):t.errors.push(new l(3002,!1)):s.push(q(e));let r=!1,o=null;return s.forEach((e=>{if(e instanceof Map&&(e.has("easing")&&(o=e.get("easing"),e.delete("easing")),!r))for(let t of e.values())if(t.toString().indexOf("{{")>=0){r=!0;break}})),{type:6,styles:s,easing:o,offset:e.offset,containsDynamicStyles:r,options:null}}_validateStyleAst(e,t){const s=t.currentAnimateTimings;let n=t.currentTime,i=t.currentTime;s&&i>0&&(i-=s.duration+s.delay),e.styles.forEach((e=>{"string"!=typeof e&&e.forEach(((e,s)=>{const r=t.collectedStyles.get(t.currentQuerySelector),o=r.get(s);let a=!0;o&&(i!=n&&i>=o.startTime&&n<=o.endTime&&(t.errors.push((o.startTime,o.endTime,new l(3010,!1))),a=!1),i=o.startTime),a&&r.set(s,{startTime:i,endTime:n}),t.options&&j(e,t.options,t.errors)}))}))}visitKeyframes(e,t){const s={type:5,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push(new l(3011,!1)),s;let n=0;const i=[];let r=!1,o=!1,a=0;const h=e.steps.map((e=>{const s=this._makeStyleAst(e,t);let l=null!=s.offset?s.offset:function(e){if("string"==typeof e)return null;let t=null;if(Array.isArray(e))e.forEach((e=>{if(e instanceof Map&&e.has("offset")){const s=e;t=parseFloat(s.get("offset")),s.delete("offset")}}));else if(e instanceof Map&&e.has("offset")){const s=e;t=parseFloat(s.get("offset")),s.delete("offset")}return t}(s.styles),h=0;return null!=l&&(n++,h=s.offset=l),o=o||h<0||h>1,r=r||h<a,a=h,i.push(h),s}));o&&t.errors.push(new l(3012,!1)),r&&t.errors.push(new l(3200,!1));const c=e.steps.length;let u=0;n>0&&n<c?t.errors.push(new l(3202,!1)):0==n&&(u=1/(c-1));const m=c-1,p=t.currentTime,d=t.currentAnimateTimings,y=d.duration;return h.forEach(((e,n)=>{const r=u>0?n==m?1:u*n:i[n],o=r*y;t.currentTime=p+d.delay+o,d.duration=o,this._validateStyleAst(e,t),e.offset=r,s.styles.push(e)})),s}visitReference(e,t){return{type:8,animation:X(this,W(e.animation),t),options:ce(e.options)}}visitAnimateChild(e,t){return t.depCount++,{type:9,options:ce(e.options)}}visitAnimateRef(e,t){return{type:10,animation:this.visitReference(e.animation,t),options:ce(e.options)}}visitQuery(e,t){const s=t.currentQuerySelector,n=e.options||{};t.queryCount++,t.currentQuery=e;const[i,r]=function(e){const t=!!e.split(/\s*,\s*/).find((e=>e==re));t&&(e=e.replace(oe,""));return e=e.replace(/@\*/g,F).replace(/@\w+/g,(e=>F+"-"+e.slice(1))).replace(/:animating/g,x),[e,t]}(e.selector);t.currentQuerySelector=s.length?s+" "+i:i,y(t.collectedStyles,t.currentQuerySelector,new Map);const o=X(this,W(e.animation),t);return t.currentQuery=null,t.currentQuerySelector=s,{type:11,selector:i,limit:n.limit||0,optional:!!n.optional,includeSelf:r,animation:o,originalSelector:e.selector,options:ce(e.options)}}visitStagger(e,t){t.currentQuery||t.errors.push(new l(3013,!1));const s="full"===e.timings?{duration:0,delay:0,easing:"full"}:L(e.timings,t.errors,!0);return{type:12,animation:X(this,W(e.animation),t),timings:s,options:null}}}class he{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 ce(e){var t;return e?(e=R(e)).params&&(e.params=(t=e.params)?R(t):null):e={},e}function ue(e,t,s){return{duration:e,delay:t,easing:s}}function me(e,t,s,n,i,r,o=null,a=!1){return{type:1,element:e,keyframes:t,preStyleProps:s,postStyleProps:n,duration:i,delay:r,totalTime:i+r,easing:o,subTimeline:a}}class pe{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 de=new RegExp(":enter","g"),ye=new RegExp(":leave","g");function fe(e,t,s,n,i,r=new Map,o=new Map,a,l,h=[]){return(new ge).buildKeyframes(e,t,s,n,i,r,o,a,l,h)}class ge{buildKeyframes(e,t,s,n,i,r,o,a,l,h=[]){l=l||new pe;const c=new Se(e,t,l,n,i,h,[]);c.options=a;const u=a.delay?z(a.delay):0;c.currentTimeline.delayNextStep(u),c.currentTimeline.setStyles([r],null,c.errors,a),X(this,s,c);const m=c.timelines.filter((e=>e.containsAnimation()));if(m.length&&o.size){let e;for(let s=m.length-1;s>=0;s--){const n=m[s];if(n.element===t){e=n;break}}e&&!e.allowOnlyTimelineStyles()&&e.setStyles([o],null,c.errors,a)}return m.length?m.map((e=>e.buildKeyframes())):[me(t,[],[],[],0,u,"",!1)]}visitTrigger(e,t){}visitState(e,t){}visitTransition(e,t){}visitAnimateChild(e,t){const s=t.subInstructions.get(t.element);if(s){const n=t.createSubContext(e.options),i=t.currentTimeline.currentTime,r=this._visitSubInstructions(s,n,n.options);i!=r&&t.transformIntoNewTimeline(r)}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 n of e){const e=n?.delay;if(e){const i="number"==typeof e?e:z(G(e,n?.params??{},t.errors));s.delayNextStep(i)}}}_visitSubInstructions(e,t,s){let n=t.currentTimeline.currentTime;const i=null!=s.duration?z(s.duration):null,r=null!=s.delay?z(s.delay):null;return 0!==i&&e.forEach((e=>{const s=t.appendInstructionToTimeline(e,i,r);n=Math.max(n,s.duration+s.delay)})),n}visitReference(e,t){t.updateOptions(e.options,!0),X(this,e.animation,t),t.previousNode=e}visitSequence(e,t){const s=t.subContextCount;let n=t;const i=e.options;if(i&&(i.params||i.delay)&&(n=t.createSubContext(i),n.transformIntoNewTimeline(),null!=i.delay)){6==n.previousNode.type&&(n.currentTimeline.snapshotCurrentStyles(),n.previousNode=_e);const e=z(i.delay);n.delayNextStep(e)}e.steps.length&&(e.steps.forEach((e=>X(this,e,n))),n.currentTimeline.applyStylesToKeyframe(),n.subContextCount>s&&n.transformIntoNewTimeline()),t.previousNode=e}visitGroup(e,t){const s=[];let n=t.currentTimeline.currentTime;const i=e.options&&e.options.delay?z(e.options.delay):0;e.steps.forEach((r=>{const o=t.createSubContext(e.options);i&&o.delayNextStep(i),X(this,r,o),n=Math.max(n,o.currentTimeline.currentTime),s.push(o.currentTimeline)})),s.forEach((e=>t.currentTimeline.mergeTimelineCollectedStyles(e))),t.transformIntoNewTimeline(n),t.previousNode=e}_visitTiming(e,t){if(e.dynamic){const s=e.strValue;return L(t.params?G(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),n=t.currentTimeline;s.delay&&(t.incrementTime(s.delay),n.snapshotCurrentStyles());const i=e.style;5==i.type?this.visitKeyframes(i,t):(t.incrementTime(s.duration),this.visitStyle(i,t),n.applyStylesToKeyframe()),t.currentAnimateTimings=null,t.previousNode=e}visitStyle(e,t){const s=t.currentTimeline,n=t.currentAnimateTimings;!n&&s.hasCurrentStyleProperties()&&s.forwardFrame();const i=n&&n.easing||e.easing;e.isEmptyStep?s.applyEmptyStep(i):s.setStyles(e.styles,i,t.errors,t.options),t.previousNode=e}visitKeyframes(e,t){const s=t.currentAnimateTimings,n=t.currentTimeline.duration,i=s.duration,r=t.createSubContext().currentTimeline;r.easing=s.easing,e.styles.forEach((e=>{const s=e.offset||0;r.forwardTime(s*i),r.setStyles(e.styles,e.easing,t.errors,t.options),r.applyStylesToKeyframe()})),t.currentTimeline.mergeTimelineCollectedStyles(r),t.transformIntoNewTimeline(n+i),t.previousNode=e}visitQuery(e,t){const s=t.currentTimeline.currentTime,n=e.options||{},i=n.delay?z(n.delay):0;i&&(6===t.previousNode.type||0==s&&t.currentTimeline.hasCurrentStyleProperties())&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=_e);let r=s;const o=t.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!n.optional,t.errors);t.currentQueryTotal=o.length;let a=null;o.forEach(((s,n)=>{t.currentQueryIndex=n;const o=t.createSubContext(e.options,s);i&&o.delayNextStep(i),s===t.element&&(a=o.currentTimeline),X(this,e.animation,o),o.currentTimeline.applyStylesToKeyframe();const l=o.currentTimeline.currentTime;r=Math.max(r,l)})),t.currentQueryIndex=0,t.currentQueryTotal=0,t.transformIntoNewTimeline(r),a&&(t.currentTimeline.mergeTimelineCollectedStyles(a),t.currentTimeline.snapshotCurrentStyles()),t.previousNode=e}visitStagger(e,t){const s=t.parentContext,n=t.currentTimeline,i=e.timings,r=Math.abs(i.duration),o=r*(t.currentQueryTotal-1);let a=r*t.currentQueryIndex;switch(i.duration<0?"reverse":i.easing){case"reverse":a=o-a;break;case"full":a=s.currentStaggerTime}const l=t.currentTimeline;a&&l.delayNextStep(a);const h=l.currentTime;X(this,e.animation,t),t.previousNode=e,s.currentStaggerTime=n.currentTime-h+(n.startTime-s.currentTimeline.startTime)}}const _e={};class Se{constructor(e,t,s,n,i,r,o,a){this._driver=e,this.element=t,this.subInstructions=s,this._enterClassName=n,this._leaveClassName=i,this.errors=r,this.timelines=o,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=_e,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=a||new Ee(this._driver,t,0),o.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(e,t){if(!e)return;const s=e;let n=this.options;null!=s.duration&&(n.duration=z(s.duration)),null!=s.delay&&(n.delay=z(s.delay));const i=s.params;if(i){let e=n.params;e||(e=this.options.params={}),Object.keys(i).forEach((s=>{t&&e.hasOwnProperty(s)||(e[s]=G(i[s],e,this.errors))}))}}_copyOptions(){const e={};if(this.options){const t=this.options.params;if(t){const s=e.params={};Object.keys(t).forEach((e=>{s[e]=t[e]}))}}return e}createSubContext(e=null,t,s){const n=t||this.element,i=new Se(this._driver,n,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(n,s||0));return i.previousNode=this.previousNode,i.currentAnimateTimings=this.currentAnimateTimings,i.options=this._copyOptions(),i.updateOptions(e),i.currentQueryIndex=this.currentQueryIndex,i.currentQueryTotal=this.currentQueryTotal,i.parentContext=this,this.subContextCount++,i}transformIntoNewTimeline(e){return this.previousNode=_e,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(e,t,s){const n={duration:null!=t?t:e.duration,delay:this.currentTimeline.currentTime+(null!=s?s:0)+e.delay,easing:""},i=new ve(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,n,e.stretchStartingKeyframe);return this.timelines.push(i),n}incrementTime(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)}delayNextStep(e){e>0&&this.currentTimeline.delayNextStep(e)}invokeQuery(e,t,s,n,i,r){let o=[];if(n&&o.push(this.element),e.length>0){e=(e=e.replace(de,"."+this._enterClassName)).replace(ye,"."+this._leaveClassName);const t=1!=s;let n=this._driver.query(this.element,e,t);0!==s&&(n=s<0?n.slice(n.length+s,n.length):n.slice(0,s)),o.push(...n)}return i||0!=o.length||r.push(new l(3014,!1)),o}}class Ee{constructor(e,t,s,n){this._driver=e,this.element=t,this.startTime=s,this._elementTimelineStylesLookup=n,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 Ee(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[e,t]of this._globalTimelineStyles)this._backFill.set(e,t||n),this._currentKeyframe.set(e,n);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(e,t,s,i){t&&this._previousKeyframe.set("easing",t);const r=i&&i.params||{},o=function(e,t){const s=new Map;let i;return e.forEach((e=>{if("*"===e){i=i||t.keys();for(let e of i)s.set(e,n)}else I(e,s)})),s}(e,this._globalTimelineStyles);for(let[e,t]of o){const i=G(t,r,s);this._pendingStyles.set(e,i),this._localTimelineStyles.has(e)||this._backFill.set(e,this._globalTimelineStyles.get(e)??n),this._updateStyle(e,i)}}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(((e,t)=>{const s=this._styleSummary.get(t);(!s||e.time>s.time)&&this._updateStyle(t,e.value)}))}buildKeyframes(){this.applyStylesToKeyframe();const e=new Set,t=new Set,s=1===this._keyframes.size&&0===this.duration;let r=[];this._keyframes.forEach(((o,a)=>{const l=I(o,new Map,this._backFill);l.forEach(((s,r)=>{s===i?e.add(r):s===n&&t.add(r)})),s||l.set("offset",a/this.duration),r.push(l)}));const o=e.size?$(e.values()):[],a=t.size?$(t.values()):[];if(s){const e=r[0],t=new Map(e);e.set("offset",0),t.set("offset",1),r=[e,t]}return me(this.element,r,o,a,this.duration,this.startTime,this.easing,!1)}}class ve extends Ee{constructor(e,t,s,n,i,r,o=!1){super(e,t,r.delay),this.keyframes=s,this.preStyleProps=n,this.postStyleProps=i,this._stretchStartingKeyframe=o,this.timings={duration:r.duration,delay:r.delay,easing:r.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let e=this.keyframes,{delay:t,duration:s,easing:n}=this.timings;if(this._stretchStartingKeyframe&&t){const i=[],r=s+t,o=t/r,a=I(e[0]);a.set("offset",0),i.push(a);const l=I(e[0]);l.set("offset",we(o)),i.push(l);const h=e.length-1;for(let n=1;n<=h;n++){let o=I(e[n]);const a=t+o.get("offset")*s;o.set("offset",we(a/r)),i.push(o)}s=r,t=0,n="",e=i}return me(this.element,e,this.preStyleProps,this.postStyleProps,s,t,n,!0)}}function we(e,t=3){const s=Math.pow(10,t-1);return Math.round(e*s)/s}e("ɵAnimation",class{constructor(e,t){this._driver=e;const s=[],n=[],i=ae(e,t,s,n);if(s.length)throw new l(3500,!1);this._animationAst=i}buildTimelines(e,t,s,n,i){const r=Array.isArray(t)?K(t):t,o=Array.isArray(s)?K(s):s,a=[];i=i||new pe;const h=fe(this._driver,e,this._animationAst,A,P,r,o,n,i,a);if(a.length)throw new l(3501,!1);return h}});class be{}e("ɵAnimationStyleNormalizer",be);e("ɵNoopAnimationStyleNormalizer",class{normalizePropertyName(e,t){return e}normalizeStyleValue(e,t,s,n){return s}});const Te=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"]);function ke(e,t,s,n,i,r,o,a,l,h,c,u,m){return{type:0,element:e,triggerName:t,isRemovalTransition:i,fromState:s,fromStyles:r,toState:n,toStyles:o,timelines:a,queriedElements:l,preStyleProps:h,postStyleProps:c,totalTime:u,errors:m}}e("ɵWebAnimationsStyleNormalizer",class extends be{normalizePropertyName(e,t){return Y(e)}normalizeStyleValue(e,t,s,n){let i="";const r=s.toString().trim();if(Te.has(t)&&0!==s&&"0"!==s)if("number"==typeof s)i="px";else{const e=s.match(/^[+-]?[\d\.]+([a-z]*)$/);e&&0==e[1].length&&n.push(new l(3005,!1))}return r+i}});const Ne={};class Ae{constructor(e,t,s){this._triggerName=e,this.ast=t,this._stateStyles=s}match(e,t,s,n){return function(e,t,s,n,i){return e.some((e=>e(t,s,n,i)))}(this.ast.matchers,e,t,s,n)}buildStyles(e,t,s){let n=this._stateStyles.get("*");return void 0!==e&&(n=this._stateStyles.get(e?.toString())||n),n?n.buildStyles(t,s):new Map}build(e,t,s,n,i,r,o,a,l,h){const c=[],u=this.ast.options&&this.ast.options.params||Ne,m=o&&o.params||Ne,p=this.buildStyles(s,m,c),d=a&&a.params||Ne,f=this.buildStyles(n,d,c),g=new Set,_=new Map,S=new Map,E="void"===n,v={params:Pe(d,u),delay:this.ast.options?.delay},w=h?[]:fe(e,t,this.ast.animation,i,r,p,f,v,l,c);let b=0;if(w.forEach((e=>{b=Math.max(e.duration+e.delay,b)})),c.length)return ke(t,this._triggerName,s,n,E,p,f,[],[],_,S,b,c);w.forEach((e=>{const s=e.element,n=y(_,s,new Set);e.preStyleProps.forEach((e=>n.add(e)));const i=y(S,s,new Set);e.postStyleProps.forEach((e=>i.add(e))),s!==t&&g.add(s)}));const T=$(g.values());return ke(t,this._triggerName,s,n,E,p,f,w,T,_,S,b)}}function Pe(e,t){const s=R(t);for(const t in e)e.hasOwnProperty(t)&&null!=e[t]&&(s[t]=e[t]);return s}class Ce{constructor(e,t,s){this.styles=e,this.defaultParams=t,this.normalizer=s}buildStyles(e,t){const s=new Map,n=R(this.defaultParams);return Object.keys(e).forEach((t=>{const s=e[t];null!==s&&(n[t]=s)})),this.styles.styles.forEach((e=>{"string"!=typeof e&&e.forEach(((e,i)=>{e&&(e=G(e,n,t));const r=this.normalizer.normalizePropertyName(i,t);e=this.normalizer.normalizeStyleValue(i,r,e,t),s.set(i,e)}))})),s}}class Fe{constructor(e,t,s){var n,i;this.name=e,this.ast=t,this._normalizer=s,this.transitionFactories=[],this.states=new Map,t.states.forEach((e=>{const t=e.options&&e.options.params||{};this.states.set(e.name,new Ce(e.style,t,s))})),Me(this.states,"true","1"),Me(this.states,"false","0"),t.transitions.forEach((t=>{this.transitionFactories.push(new Ae(e,t,this.states))})),this.fallbackTransition=(n=e,i=this.states,this._normalizer,new Ae(n,{type:1,animation:{type:2,steps:[],options:null},matchers:[(e,t)=>!0],options:null,queryCount:0,depCount:0},i))}get containsQueries(){return this.ast.queryCount>0}matchTransition(e,t,s,n){return this.transitionFactories.find((i=>i.match(e,t,s,n)))||null}matchStyles(e,t,s){return this.fallbackTransition.buildStyles(e,t,s)}}function Me(e,t,s){e.has(t)?e.has(s)||e.set(s,e.get(t)):e.has(s)&&e.set(t,e.get(s))}const xe=new pe;class ze{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=[],n=[],i=ae(this._driver,t,s,n);if(s.length)throw new l(3503,!1);this._animations.set(e,i)}_buildPlayer(e,t,s){const n=e.element,i=u(this._normalizer,e.keyframes,t,s);return this._driver.animate(n,i,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=fe(this._driver,t,r,A,P,new Map,new Map,s,xe,i),o.forEach((e=>{const t=y(a,e.element,new Map);e.postStyleProps.forEach((e=>t.set(e,null)))}))):(i.push(new l(3300,!1)),o=[]),i.length)throw new l(3504,!1);a.forEach(((e,t)=>{e.forEach(((s,i)=>{e.set(i,this._driver.computeStyle(t,i,n))}))}));const h=c(o.map((e=>{const t=a.get(e.element);return this._buildPlayer(e,new Map,t)})));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 new l(3301,!1);return t}listen(e,t,s,n){const i=d(t,"","","");return m(this._getPlayer(e),s,i,n),()=>{}}command(e,t,s,n){if("register"==s)return void this.register(e,n[0]);if("create"==s){const s=n[0]||{};return void this.create(e,t,s)}const i=this._getPlayer(e);switch(s){case"play":i.play();break;case"pause":i.pause();break;case"reset":i.reset();break;case"restart":i.restart();break;case"finish":i.finish();break;case"init":i.init();break;case"setPosition":i.setPosition(parseFloat(n[0]));break;case"destroy":this.destroy(e)}}}const De="ng-animate-queued",Le="ng-animate-disabled",Re=[],qe={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Qe={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Ke="__ng_removed";class Ie{get params(){return this.options.params}constructor(e,t=""){this.namespaceId=t;const s=e&&e.hasOwnProperty("value"),n=s?e.value:e;if(this.value=function(e){return null!=e?e:null}(n),s){const t=R(e);delete t.value,this.options=t}else this.options={};this.options.params||(this.options.params={})}absorbOptions(e){const t=e.params;if(t){const e=this.options.params;Object.keys(t).forEach((s=>{null==e[s]&&(e[s]=t[s])}))}}}const Be="void",Oe=new Ie(Be);class We{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,Ye(t,this._hostClassName)}listen(e,t,s,n){if(!this._triggers.has(t))throw new l(3302,!1);if(null==s||0==s.length)throw new l(3303,!1);if("start"!=(i=s)&&"done"!=i)throw new l(3400,!1);var i;const r=y(this._elementListeners,e,[]),o={name:t,phase:s,callback:n};r.push(o);const a=y(this._engine.statesByElement,e,new Map);return a.has(t)||(Ye(e,C),Ye(e,C+"-"+t),a.set(t,Oe)),()=>{this._engine.afterFlush((()=>{const e=r.indexOf(o);e>=0&&r.splice(e,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 new l(3401,!1);return t}trigger(e,t,s,n=!0){const i=this._getTrigger(t),r=new He(this.id,t,e);let o=this._engine.statesByElement.get(e);o||(Ye(e,C),Ye(e,C+"-"+t),this._engine.statesByElement.set(e,o=new Map));let a=o.get(t);const l=new Ie(s,this.id);!(s&&s.hasOwnProperty("value"))&&a&&l.absorbOptions(a.options),o.set(t,l),a||(a=Oe);if(!(l.value===Be)&&a.value===l.value){if(!function(e,t){const s=Object.keys(e),n=Object.keys(t);if(s.length!=n.length)return!1;for(let n=0;n<s.length;n++){const i=s[n];if(!t.hasOwnProperty(i)||e[i]!==t[i])return!1}return!0}(a.params,l.params)){const t=[],s=i.matchStyles(a.value,a.params,t),n=i.matchStyles(l.value,l.params,t);t.length?this._engine.reportError(t):this._engine.afterFlush((()=>{O(e,s),B(e,n)}))}return}const h=y(this._engine.playersByElement,e,[]);h.forEach((e=>{e.namespaceId==this.id&&e.triggerName==t&&e.queued&&e.destroy()}));let c=i.matchTransition(a.value,l.value,e,l.params),u=!1;if(!c){if(!n)return;c=i.fallbackTransition,u=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:t,transition:c,fromState:a,toState:l,player:r,isFallbackTransition:u}),u||(Ye(e,De),r.onStart((()=>{Je(e,De)}))),r.onDone((()=>{let t=this.players.indexOf(r);t>=0&&this.players.splice(t,1);const s=this._engine.playersByElement.get(e);if(s){let e=s.indexOf(r);e>=0&&s.splice(e,1)}})),this.players.push(r),h.push(r),r}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((t=>t.name!=e)))}))}clearElementCache(e){this._engine.statesByElement.delete(e),this._elementListeners.delete(e);const t=this._engine.playersByElement.get(e);t&&(t.forEach((e=>e.destroy())),this._engine.playersByElement.delete(e))}_signalRemovalForInnerTriggers(e,t){const s=this._engine.driver.query(e,F,!0);s.forEach((e=>{if(e[Ke])return;const s=this._engine.fetchNamespacesByElement(e);s.size?s.forEach((s=>s.triggerLeaveAnimation(e,t,!1,!0))):this.clearElementCache(e)})),this._engine.afterFlushAnimationsDone((()=>s.forEach((e=>this.clearElementCache(e)))))}triggerLeaveAnimation(e,t,s,n){const i=this._engine.statesByElement.get(e),r=new Map;if(i){const o=[];if(i.forEach(((t,s)=>{if(r.set(s,t.value),this._triggers.has(s)){const t=this.trigger(e,s,Be,n);t&&o.push(t)}})),o.length)return this._engine.markElementAsRemoved(this.id,e,!0,t,r),s&&c(o).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 n=new Set;t.forEach((t=>{const i=t.name;if(n.has(i))return;n.add(i);const r=this._triggers.get(i).fallbackTransition,o=s.get(i)||Oe,a=new Ie(Be),l=new He(this.id,i,e);this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:i,transition:r,fromState:o,toState:a,player:l,isFallbackTransition:!0})}))}}removeNode(e,t){const s=this._engine;if(e.childElementCount&&this._signalRemovalForInnerTriggers(e,t),this.triggerLeaveAnimation(e,t,!0))return;let n=!1;if(s.totalAnimations){const t=s.players.length?s.playersByQueriedElement.get(e):[];if(t&&t.length)n=!0;else{let t=e;for(;t=t.parentNode;){if(s.statesByElement.get(t)){n=!0;break}}}}if(this.prepareLeaveAnimationListeners(e),n)s.markElementAsRemoved(this.id,e,!1,t);else{const n=e[Ke];n&&n!==qe||(s.afterFlush((()=>this.clearElementCache(e))),s.destroyInnerAnimations(e),s._onRemovalComplete(e,t))}}insertNode(e,t){Ye(e,this._hostClassName)}drainQueuedTransitions(e){const t=[];return this._queue.forEach((s=>{const n=s.player;if(n.destroyed)return;const i=s.element,r=this._elementListeners.get(i);r&&r.forEach((t=>{if(t.name==s.triggerName){const n=d(i,s.triggerName,s.fromState.value,s.toState.value);n._data=e,m(s.player,t.phase,n,t.callback)}})),n.markedForDestroy?this._engine.afterFlush((()=>{n.destroy()})):t.push(s)})),this._queue=[],t.sort(((e,t)=>{const s=e.transition.ast.depCount,n=t.transition.ast.depCount;return 0==s||0==n?s-n:this._engine.driver.containsElement(e.element,t.element)?1:-1}))}destroy(e){this.players.forEach((e=>e.destroy())),this._signalRemovalForInnerTriggers(this.hostElement,e)}}class je{_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=(e,t)=>{}}get queuedPlayers(){const e=[];return this._namespaceList.forEach((t=>{t.players.forEach((t=>{t.queued&&e.push(t)}))})),e}createNamespace(e,t){const s=new We(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,n=this.namespacesByHostElement;if(s.length-1>=0){let i=!1,r=this.driver.getParentElement(t);for(;r;){const t=n.get(r);if(t){const n=s.indexOf(t);s.splice(n+1,0,e),i=!0;break}r=this.driver.getParentElement(r)}i||s.unshift(e)}else s.push(e);return n.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 n=this._namespaceLookup[e];n&&n.register(t,s)&&this.totalAnimations++}destroy(e,t){e&&(this.afterFlush((()=>{})),this.afterFlushAnimationsDone((()=>{const s=this._fetchNamespace(e);this.namespacesByHostElement.delete(s.hostElement);const n=this._namespaceList.indexOf(s);n>=0&&this._namespaceList.splice(n,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 e of s.values())if(e.namespaceId){const s=this._fetchNamespace(e.namespaceId);s&&t.add(s)}return t}trigger(e,t,s,n){if(Ve(t)){const i=this._fetchNamespace(e);if(i)return i.trigger(t,s,n),!0}return!1}insertNode(e,t,s,n){if(!Ve(t))return;const i=t[Ke];if(i&&i.setForRemoval){i.setForRemoval=!1,i.setForMove=!0;const e=this.collectedLeaveElements.indexOf(t);e>=0&&this.collectedLeaveElements.splice(e,1)}if(e){const n=this._fetchNamespace(e);n&&n.insertNode(t,s)}n&&this.collectEnterElement(t)}collectEnterElement(e){this.collectedEnterElements.push(e)}markElementAsDisabled(e,t){t?this.disabledNodes.has(e)||(this.disabledNodes.add(e),Ye(e,Le)):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),Je(e,Le))}removeNode(e,t,s){if(Ve(t)){const n=e?this._fetchNamespace(e):null;n?n.removeNode(t,s):this.markElementAsRemoved(e,t,!1,s);const i=this.namespacesByHostElement.get(t);i&&i.id!==e&&i.removeNode(t,s)}else this._onRemovalComplete(t,s)}markElementAsRemoved(e,t,s,n,i){this.collectedLeaveElements.push(t),t[Ke]={namespaceId:e,setForRemoval:n,hasAnimation:s,removedBeforeQueried:!1,previousTriggersValues:i}}listen(e,t,s,n,i){return Ve(t)?this._fetchNamespace(e).listen(t,s,n,i):()=>{}}_buildInstruction(e,t,s,n,i){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,s,n,e.fromState.options,e.toState.options,t,i)}destroyInnerAnimations(e){let t=this.driver.query(e,F,!0);t.forEach((e=>this.destroyActiveAnimationsForElement(e))),0!=this.playersByQueriedElement.size&&(t=this.driver.query(e,x,!0),t.forEach((e=>this.finishActiveQueriedAnimationOnElement(e))))}destroyActiveAnimationsForElement(e){const t=this.playersByElement.get(e);t&&t.forEach((e=>{e.queued?e.markedForDestroy=!0:e.destroy()}))}finishActiveQueriedAnimationOnElement(e){const t=this.playersByQueriedElement.get(e);t&&t.forEach((e=>e.finish()))}whenRenderingDone(){return new Promise((e=>{if(this.players.length)return c(this.players).onDone((()=>e()));e()}))}processLeaveNode(e){const t=e[Ke];if(t&&t.setForRemoval){if(e[Ke]=qe,t.namespaceId){this.destroyInnerAnimations(e);const s=this._fetchNamespace(t.namespaceId);s&&s.clearElementCache(e)}this._onRemovalComplete(e,t.setForRemoval)}e.classList?.contains(Le)&&this.markElementAsDisabled(e,!1),this.driver.query(e,".ng-animate-disabled",!0).forEach((e=>{this.markElementAsDisabled(e,!1)}))}flush(e=-1){let t=[];if(this.newHostElements.size&&(this.newHostElements.forEach(((e,t)=>this._balanceNamespaceList(e,t))),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let e=0;e<this.collectedEnterElements.length;e++){Ye(this.collectedEnterElements[e],"ng-star-inserted")}if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){const s=[];try{t=this._flushAnimations(s,e)}finally{for(let e=0;e<s.length;e++)s[e]()}}else for(let e=0;e<this.collectedLeaveElements.length;e++){const t=this.collectedLeaveElements[e];this.processLeaveNode(t)}if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach((e=>e())),this._flushFns=[],this._whenQuietFns.length){const e=this._whenQuietFns;this._whenQuietFns=[],t.length?c(t).onDone((()=>{e.forEach((e=>e()))})):e.forEach((e=>e()))}}reportError(e){throw new l(3402,!1)}_flushAnimations(e,t){const s=new pe,r=[],o=new Map,a=[],h=new Map,u=new Map,m=new Map,p=new Set;this.disabledNodes.forEach((e=>{p.add(e);const t=this.driver.query(e,".ng-animate-queued",!0);for(let e=0;e<t.length;e++)p.add(t[e])}));const d=this.bodyNode,f=Array.from(this.statesByElement.keys()),g=Ue(f,this.collectedEnterElements),_=new Map;let S=0;g.forEach(((e,t)=>{const s=A+S++;_.set(t,s),e.forEach((e=>Ye(e,s)))}));const E=[],v=new Set,w=new Set;for(let e=0;e<this.collectedLeaveElements.length;e++){const t=this.collectedLeaveElements[e],s=t[Ke];s&&s.setForRemoval&&(E.push(t),v.add(t),s.hasAnimation?this.driver.query(t,".ng-star-inserted",!0).forEach((e=>v.add(e))):w.add(t))}const b=new Map,T=Ue(f,Array.from(v));T.forEach(((e,t)=>{const s=P+S++;b.set(t,s),e.forEach((e=>Ye(e,s)))})),e.push((()=>{g.forEach(((e,t)=>{const s=_.get(t);e.forEach((e=>Je(e,s)))})),T.forEach(((e,t)=>{const s=b.get(t);e.forEach((e=>Je(e,s)))})),E.forEach((e=>{this.processLeaveNode(e)}))}));const k=[],N=[];for(let e=this._namespaceList.length-1;e>=0;e--){this._namespaceList[e].drainQueuedTransitions(t).forEach((e=>{const t=e.player,n=e.element;if(k.push(t),this.collectedEnterElements.length){const s=n[Ke];if(s&&s.setForMove){if(s.previousTriggersValues&&s.previousTriggersValues.has(e.triggerName)){const t=s.previousTriggersValues.get(e.triggerName),n=this.statesByElement.get(e.element);if(n&&n.has(e.triggerName)){const s=n.get(e.triggerName);s.value=t,n.set(e.triggerName,s)}}return void t.destroy()}}const i=!d||!this.driver.containsElement(d,n),o=b.get(n),l=_.get(n),c=this._buildInstruction(e,s,l,o,i);if(c.errors&&c.errors.length)return void N.push(c);if(i)return t.onStart((()=>O(n,c.fromStyles))),t.onDestroy((()=>B(n,c.toStyles))),void r.push(t);if(e.isFallbackTransition)return t.onStart((()=>O(n,c.fromStyles))),t.onDestroy((()=>B(n,c.toStyles))),void r.push(t);const p=[];c.timelines.forEach((e=>{e.stretchStartingKeyframe=!0,this.disabledNodes.has(e.element)||p.push(e)})),c.timelines=p,s.append(n,c.timelines);const f={instruction:c,player:t,element:n};a.push(f),c.queriedElements.forEach((e=>y(h,e,[]).push(t))),c.preStyleProps.forEach(((e,t)=>{if(e.size){let s=u.get(t);s||u.set(t,s=new Set),e.forEach(((e,t)=>s.add(t)))}})),c.postStyleProps.forEach(((e,t)=>{let s=m.get(t);s||m.set(t,s=new Set),e.forEach(((e,t)=>s.add(t)))}))}))}if(N.length){const e=[];N.forEach((t=>{e.push((t.triggerName,t.errors,new l(3505,!1)))})),k.forEach((e=>e.destroy())),this.reportError(e)}const C=new Map,F=new Map;a.forEach((e=>{const t=e.element;s.has(t)&&(F.set(t,t),this._beforeAnimationBuild(e.player.namespaceId,e.instruction,C))})),r.forEach((e=>{const t=e.element;this._getPreviousPlayers(t,!1,e.namespaceId,e.triggerName,null).forEach((e=>{y(C,t,[]).push(e),e.destroy()}))}));const M=E.filter((e=>et(e,u,m))),z=new Map;$e(z,this.driver,w,m,n).forEach((e=>{et(e,u,m)&&M.push(e)}));const D=new Map;g.forEach(((e,t)=>{$e(D,this.driver,new Set(e),u,i)})),M.forEach((e=>{const t=z.get(e),s=D.get(e);z.set(e,new Map([...t?.entries()??[],...s?.entries()??[]]))}));const L=[],R=[],q={};a.forEach((e=>{const{element:t,player:n,instruction:i}=e;if(s.has(t)){if(p.has(t))return n.onDestroy((()=>B(t,i.toStyles))),n.disabled=!0,n.overrideTotalTime(i.totalTime),void r.push(n);let e=q;if(F.size>1){let s=t;const n=[];for(;s=s.parentNode;){const t=F.get(s);if(t){e=t;break}n.push(s)}n.forEach((t=>F.set(t,e)))}const s=this._buildAnimation(n.namespaceId,i,C,o,D,z);if(n.setRealPlayer(s),e===q)L.push(n);else{const t=this.playersByElement.get(e);t&&t.length&&(n.parentPlayer=c(t)),r.push(n)}}else O(t,i.fromStyles),n.onDestroy((()=>B(t,i.toStyles))),R.push(n),p.has(t)&&r.push(n)})),R.forEach((e=>{const t=o.get(e.element);if(t&&t.length){const s=c(t);e.setRealPlayer(s)}})),r.forEach((e=>{e.parentPlayer?e.syncPlayerEvents(e.parentPlayer):e.destroy()}));for(let e=0;e<E.length;e++){const t=E[e],s=t[Ke];if(Je(t,P),s&&s.hasAnimation)continue;let n=[];if(h.size){let e=h.get(t);e&&e.length&&n.push(...e);let s=this.driver.query(t,x,!0);for(let e=0;e<s.length;e++){let t=h.get(s[e]);t&&t.length&&n.push(...t)}}const i=n.filter((e=>!e.destroyed));i.length?Xe(this,t,i):this.processLeaveNode(t)}return E.length=0,L.forEach((e=>{this.players.push(e),e.onDone((()=>{e.destroy();const t=this.players.indexOf(e);this.players.splice(t,1)})),e.play()})),L}afterFlush(e){this._flushFns.push(e)}afterFlushAnimationsDone(e){this._whenQuietFns.push(e)}_getPreviousPlayers(e,t,s,n,i){let r=[];if(t){const t=this.playersByQueriedElement.get(e);t&&(r=t)}else{const t=this.playersByElement.get(e);if(t){const e=!i||i==Be;t.forEach((t=>{t.queued||(e||t.triggerName==n)&&r.push(t)}))}}return(s||n)&&(r=r.filter((e=>(!s||s==e.namespaceId)&&(!n||n==e.triggerName)))),r}_beforeAnimationBuild(e,t,s){const n=t.triggerName,i=t.element,r=t.isRemovalTransition?void 0:e,o=t.isRemovalTransition?void 0:n;for(const e of t.timelines){const n=e.element,a=n!==i,l=y(s,n,[]);this._getPreviousPlayers(n,a,r,o,t.toState).forEach((e=>{const t=e.getRealPlayer();t.beforeDestroy&&t.beforeDestroy(),e.destroy(),l.push(e)}))}O(i,t.fromStyles)}_buildAnimation(e,s,n,i,r,o){const a=s.triggerName,l=s.element,h=[],m=new Set,p=new Set,d=s.timelines.map((s=>{const c=s.element;m.add(c);const d=c[Ke];if(d&&d.removedBeforeQueried)return new t(s.duration,s.delay);const y=c!==l,f=function(e){const t=[];return Ze(e,t),t}((n.get(c)||Re).map((e=>e.getRealPlayer()))).filter((e=>{const t=e;return!!t.element&&t.element===c})),g=r.get(c),_=o.get(c),S=u(this._normalizer,s.keyframes,g,_),E=this._buildPlayer(s,S,f);if(s.subTimeline&&i&&p.add(c),y){const t=new He(e,a,c);t.setRealPlayer(E),h.push(t)}return E}));h.forEach((e=>{y(this.playersByQueriedElement,e.element,[]).push(e),e.onDone((()=>function(e,t,s){let n=e.get(t);if(n){if(n.length){const e=n.indexOf(s);n.splice(e,1)}0==n.length&&e.delete(t)}return n}(this.playersByQueriedElement,e.element,e)))})),m.forEach((e=>Ye(e,M)));const f=c(d);return f.onDestroy((()=>{m.forEach((e=>Je(e,M))),B(l,s.toStyles)})),p.forEach((e=>{y(i,e,[]).push(f)})),f}_buildPlayer(e,s,n){return s.length>0?this.driver.animate(e.element,s,e.duration,e.delay,e.easing,n):new t(e.duration,e.delay)}}class He{constructor(e,s,n){this.namespaceId=e,this.triggerName=s,this.element=n,this._player=new t,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((t=>m(e,s,void 0,t)))})),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){y(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 Ve(e){return e&&1===e.nodeType}function Ge(e,t){const s=e.style.display;return e.style.display=null!=t?t:"none",s}function $e(e,t,s,n,i){const r=[];s.forEach((e=>r.push(Ge(e))));const o=[];n.forEach(((s,n)=>{const r=new Map;s.forEach((e=>{const s=t.computeStyle(n,e,i);r.set(e,s),s&&0!=s.length||(n[Ke]=Qe,o.push(n))})),e.set(n,r)}));let a=0;return s.forEach((e=>Ge(e,r[a++]))),o}function Ue(e,t){const s=new Map;if(e.forEach((e=>s.set(e,[]))),0==t.length)return s;const n=new Set(t),i=new Map;function r(e){if(!e)return 1;let t=i.get(e);if(t)return t;const o=e.parentNode;return t=s.has(o)?o:n.has(o)?1:r(o),i.set(e,t),t}return t.forEach((e=>{const t=r(e);1!==t&&s.get(t).push(e)})),s}function Ye(e,t){e.classList?.add(t)}function Je(e,t){e.classList?.remove(t)}function Xe(e,t,s){c(s).onDone((()=>e.processLeaveNode(t)))}function Ze(e,t){for(let s=0;s<e.length;s++){const n=e[s];n instanceof r?Ze(n.players,t):t.push(n)}}function et(e,t,s){const n=s.get(e);if(!n)return!1;let i=t.get(e);return i?n.forEach((e=>i.add(e))):t.set(e,n),s.delete(e),!0}e("ɵAnimationEngine",class{constructor(e,t,s){this.bodyNode=e,this._driver=t,this._normalizer=s,this._triggerCache={},this.onRemovalComplete=(e,t)=>{},this._transitionEngine=new je(e,t,s),this._timelineEngine=new ze(e,t,s),this._transitionEngine.onRemovalComplete=(e,t)=>this.onRemovalComplete(e,t)}registerTrigger(e,t,s,n,i){const r=e+"-"+n;let o=this._triggerCache[r];if(!o){const e=[],t=[],s=ae(this._driver,i,e,t);if(e.length)throw new l(3404,!1);t.length,o=function(e,t,s){return new Fe(e,t,s)}(n,s,this._normalizer),this._triggerCache[r]=o}this._transitionEngine.registerTrigger(t,n,o)}register(e,t){this._transitionEngine.register(e,t)}destroy(e,t){this._transitionEngine.destroy(e,t)}onInsert(e,t,s,n){this._transitionEngine.insertNode(e,t,s,n)}onRemove(e,t,s){this._transitionEngine.removeNode(e,t,s)}disableAnimations(e,t){this._transitionEngine.markElementAsDisabled(e,t)}process(e,t,s,n){if("@"==s.charAt(0)){const[e,i]=f(s),r=n;this._timelineEngine.command(e,t,i,r)}else this._transitionEngine.trigger(e,t,s,n)}listen(e,t,s,n,i){if("@"==s.charAt(0)){const[e,n]=f(s);return this._timelineEngine.listen(e,t,n,i)}return this._transitionEngine.listen(e,t,s,n,i)}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 tt{static{this.initialStylesByElement=new WeakMap}constructor(e,t,s){this._element=e,this._startStyles=t,this._endStyles=s,this._state=0;let n=tt.initialStylesByElement.get(e);n||tt.initialStylesByElement.set(e,n=new Map),this._initialStyles=n}start(){this._state<1&&(this._startStyles&&B(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(B(this._element,this._initialStyles),this._endStyles&&(B(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(tt.initialStylesByElement.delete(this._element),this._startStyles&&(O(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(O(this._element,this._endStyles),this._endStyles=null),B(this._element,this._initialStyles),this._state=3)}}function st(e){let t=null;return e.forEach(((e,s)=>{(function(e){return"display"===e||"position"===e})(s)&&(t=t||new Map,t.set(s,e))})),t}class nt{constructor(e,t,s,n){this.element=e,this.keyframes=t,this.options=s,this._specialStyles=n,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,this.domPlayer.addEventListener("finish",(()=>this._onFinish()))}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(e){const t=[];return e.forEach((e=>{t.push(Object.fromEntries(e))})),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;if(this.hasStarted()){this._finalKeyframe.forEach(((t,s)=>{"offset"!==s&&e.set(s,this._finished?t:Z(this.element,s))}))}this.currentSnapshot=e}triggerCallback(e){const t="start"===e?this._onStartFns:this._onDoneFns;t.forEach((e=>e())),t.length=0}}e("ɵWebAnimationsPlayer",nt);e("ɵWebAnimationsDriver",class{validateStyleProperty(e){return!0}validateAnimatableStyleProperty(e){return!0}matchesElement(e,t){return!1}containsElement(e,t){return w(e,t)}getParentElement(e){return _(e)}query(e,t,s){return b(e,t,s)}computeStyle(e,t,s){return window.getComputedStyle(e)[t]}animate(e,t,s,n,i,r=[]){const o={duration:s,delay:n,fill:0==n?"both":"forwards"};i&&(o.easing=i);const a=new Map,l=r.filter((e=>e instanceof nt));J(s,n)&&l.forEach((e=>{e.currentSnapshot.forEach(((e,t)=>a.set(t,e)))}));let h=Q(t).map((e=>I(e)));h=function(e,t,s){if(s.size&&t.length){let n=t[0],i=[];if(s.forEach(((e,t)=>{n.has(t)||i.push(t),n.set(t,e)})),i.length)for(let s=1;s<t.length;s++){let n=t[s];i.forEach((t=>n.set(t,Z(e,t))))}}return t}(e,h,a);const c=function(e,t){let s=null,n=null;return Array.isArray(t)&&t.length?(s=st(t[0]),t.length>1&&(n=st(t[t.length-1]))):t instanceof Map&&(s=st(t)),s||n?new tt(e,s,n):null}(e,h);return new nt(e,h,o,c)}})}}}));
//# sourceMappingURL=angular-browser.min.js.map

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc