1import{Aa as p,Pa as g,Ra as D,ab as S,ia as m,la as a,oa as l,pa as u}from"./chunk-T5IFD54H.js";var r=(function(e){return e[e.State=0]="State",e[e.Transition=1]="Transition",e[e.Sequence=2]="Sequence",e[e.Group=3]="Group",e[e.Animate=4]="Animate",e[e.Keyframes=5]="Keyframes",e[e.Style=6]="Style",e[e.Trigger=7]="Trigger",e[e.Reference=8]="Reference",e[e.AnimateChild=9]="AnimateChild",e[e.AnimateRef=10]="AnimateRef",e[e.Query=11]="Query",e[e.Stagger=12]="Stagger",e})(r||{}),v="*";function b(e,t){return{type:r.Trigger,name:e,definitions:t,options:{}}}function R(e,t=null){return{type:r.Animate,styles:t,timings:e}}function F(e,t=null){return{type:r.Sequence,steps:e,options:t}}function I(e){return{type:r.Style,styles:e,offset:null}}function w(e,t,s){return{type:r.State,name:e,styles:t,options:s}}function C(e,t,s=null){return{type:r.Transition,expr:e,animation:t,options:s}}var c=class{_onDoneFns=[];_onStartFns=[];_onDestroyFns=[];_originalOnDoneFns=[];_originalOnStartFns=[];_started=!1;_destroyed=!1;_finished=!1;_position=0;parentPlayer=null;totalTime;constructor(t=0,s=0){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){let s=t=="start"?this._onStartFns:this._onDoneFns;s.forEach(n=>n()),s.length=0}},_=class{_onDoneFns=[];_onStartFns=[];_finished=!1;_started=!1;_destroyed=!1;_onDestroyFns=[];parentPlayer=null;totalTime=0;players;constructor(t){this.players=t;let s=0,n=0,i=0,h=this.players.length;h==0?queueMicrotask(()=>this._onFinish()):this.players.forEach(o=>{o.onDone(()=>{++s==h&&this._onFinish()}),o.onDestroy(()=>{++n==h&&this._onDestroy()}),o.onStart(()=>{++i==h&&this._onStart()})}),this.totalTime=this.players.reduce((o,P)=>Math.max(o,P.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){let s=t*this.totalTime;this.players.forEach(n=>{let i=n.totalTime?Math.min(1,s/n.totalTime):1;n.setPosition(i)})}getPosition(){let t=this.players.reduce((s,n)=>s===null||n.totalTime>s.totalTime?n:s,null);return t!=null?t.getPosition():0}beforeDestroy(){this.players.forEach(t=>{t.beforeDestroy&&t.beforeDestroy()})}triggerCallback(t){let s=t=="start"?this._onStartFns:this._onDoneFns;s.forEach(n=>n()),s.length=0}},k="!";var O=(()=>{class e{static \u0275fac=function(n){return new(n||e)};static \u0275prov=a({token:e,factory:()=>u(x),providedIn:"root"})}return e})(),f=class{},x=(()=>{class e extends O{animationModuleType=u(g,{optional:!0});_nextAnimationId=0;_renderer;constructor(s,n){super();let i={id:"0",encapsulation:D.None,styles:[],data:{animation:[]}};if(this._renderer=s.createRenderer(n.body,i),this.animationModuleType===null&&!j(this._renderer))throw new m
1(3600,!1)}build(s){let n=this._nextAnimationId;this._nextAnimationId++;let i=Array.isArray(s)?F(s):s;return E(this._renderer,null,n,"register",[i]),new d(n,this._renderer)}static \u0275fac=function(n){return new(n||e)(l(S),l(p))};static \u0275prov=a({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),d=class extends f{_id;_renderer;constructor(t,s){super(),this._id=t,this._renderer=s}create(t,s){return new y(this._id,t,s||{},this._renderer)}},y=class{id;element;_renderer;parentPlayer=null;_started=!1;constructor(t,s,n,i){this.id=t,this.element=s,this._renderer=i,this._command("create",n)}_listen(t,s){return this._renderer.listen(this.element,`@@${this.id}:${t}`,s)}_command(t,...s){E(this._renderer,this.element,this.id,t,s)}onDone(t){this._listen("done",t)}onStart(t){this._listen("start",t)}onDestroy(t){this._listen("destroy",t)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset"),this._started=!1}setPosition(t){this._command("setPosition",t)}getPosition(){return q(this._renderer)?.engine?.players[this.id]?.getPosition()??0}totalTime=0};function E(e,t,s,n,i){e.setProperty(t,`@@${s}:${n}`,i)}function q(e){let t=e.\u0275type;return t===0?e:t===1?e.animationRenderer:null}function j(e){let t=e.\u0275type;return t===0||t===1}export{r as a,v as b,b as c,R as d,F as e,I as f,w as g,C as h,c as i,_ as j,k,O as l}; 2//# sourceMappingURL=chunk-7JFQDI7T.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.