PageSourceSearch

https://clienti.animasgr.it/main-2MZJ4363.js

js animasgr.it collected 2026-10-04 01:35:37 UTC 73,793 bytes, 1 lines download raw bytes

1import{a as zi}from"./chunk-P34Y5GHQ.js";import{$a as Qe,A as K,B as fe,Ba as vi,C as pe,Ca as Ti,Db as B,Fc as Pt,G as Tt,H as _i,Hg as qi,J as Ke,Ja as bi,Q as ge,R as ye,S as Ne,Ta as wi,Ua as bt,Va as Ai,Vc as Se,Wa as Mi,Wc as Li,X as qe,Xa as Ue,Xb as Ge,Xe as ji,Y as Si,Ya as wt,_a as $e,_f as rs,a as v,ab as Pi,ag as Ki,bb as Ni,c as w,d as me,e as fi,eb as Ci,ec as re,f as I,fb as Ve,g as he,ga as Ei,hb as He,ib as S,jb as U,jd as Nt,kb as ki,ke as Bi,lb as At,ld as Ee,mb as se,n as pi,nb as xe,ob as Ce,p as gi,pb as _e,qb as Di,r as Et,rb as Ii,sb as Ri,tb as Oi,v as yi,wb as Mt,wd as Fi,x as vt,y as je,yb as X}from"./chunk-PMSHY3BX.js";import{La as ne,Q as mi,R as Ae,Za as St,a as Y,ac as Be,ca as J,d as ci,g as ss,gc as Pe,h as ui,ob as hi,w as di,ya as Me}from"./chunk-NRAMGRDI.js";var Ct=new fi("TRANSLATE_HTTP_LOADER_CONFIG"),os=(()=>{class s{http;config;constructor(){this.config=Y({prefix:"/assets/i18n/",suffix:".json",enforceLoading:!1,useHttpBackend:!1},he(Ct)),this.http=this.config.useHttpBackend?new $e(he(wt)):he($e)}getTranslation(t){let i=this.config.enforceLoading?`?enforceLoading=${Date.now()}`:"";return this.http.get(`${this.config.prefix}${t}${this.config.suffix}${i}`)}static \u0275fac=function(i){return new(i||s)};static \u0275prov=w({token:s,factory:s.\u0275fac})}return s})();function Ui(s={}){let e=s.useHttpBackend??!1;return[{provide:Ct,useValue:s},{provide:Ci,useClass:os,deps:[e?wt:$e,Ct]}]}function $i(s){return new v(3e3,!1)}function as(){return new v(3100,!1)}function ls(){return new v(3101,!1)}function cs(s){return new v(3001,!1)}function us(s){return new v(3003,!1)}function ds(s){return new v(3004,!1)}function Vi(s,e){return new v(3005,!1)}function Hi(){return new v(3006,!1)}function xi(){return new v(3007,!1)}function Gi(s,e){return new v(3008,!1)}function Wi(s){return new v(3002,!1)}function Yi(s,e,t,i,n){return new v(3010,!1)}function Ji(){return new v(3011,!1)}function Xi(){return new v(3012,!1)}function Zi(){return new v(3200,!1)}function en(){return new v(3202,!1)}function tn(){return new v(3013,!1)}function nn(s){return new v(3014,!1)}function sn(s){return new v(3015,!1)}function rn(s){return new v(3016,!1)}function on(s,e){return new v(3404,!1)}function ms(s){return new v(3502,!1)}function an(s){return new v(3503,!1)}function ln(){return new v(3300,!1)}function cn(s){return new v(3504,!1)}function un(s){return new v(3301,!1)}function dn(s,e){return new v(3302,!1)}function mn(s){return new v(3303,!1)}function hn(s,e){return new v(3400,!1)}function fn(s){return new v(3401,!1)}function pn(s){return new v(3402,!1)}function gn(s,e){return new v(3505,!1)}function G(s){switch(s.length){case 0:return new se;case 1:return s[0];default:return new xe(s)}}function Rt(s,e,t=new Map,i=new Map){let n=[],r=[],o=-1,a=null;if(e.forEach(l=>{let c=l.get("offset"),u=c==o,d=u&&a||new Map;l.forEach((_,y)=>{let h=y,g=_;if(y!=="offset")switch(h=s.normalizePropertyName(h,n),g){case Ce:g=t.get(y);break;case U:g=i.get(y);break;default:g=s.normalizeStyleValue(y,h,g,n);break}d.set(h,g)}),u||r.push(d),a=d,o=c}),n.length)throw ms(n);return r}function We(s,e,t,i){switch(e){case"start":s.onStart(()=>i(t&&kt(t,"start",s)));break;case"done":s.onDone(()=>i(t&&kt(t,"done",s)));break;case"destroy":s.onDestroy(()=>i(t&&kt(t,"destroy",s)));break}}function kt(s,e,t){let i=t.totalTime,n=!!t.disabled,r=Ye(s.element,s.triggerName,s.fromState,s.toState,e||s.phaseName,i??s.totalTime,n),o=s._data;return o!=null&&(r._data=o),r}function Ye(s,e,t,i,n="",r=0,o){return{element:s,triggerName:e,fromState:t,toState:i,phaseName:n,totalTime:r,disabled:!!o}}function L(s,e,t){let i=s.get(e);return i||s.set(e,i=t),i}function Ot(s){let e=s.indexOf(":"),t=s.substring(1,e),i=s.slice(e+1);return[t,i]}var hs=typeof document>"u"?null:document.documentElement;function Je(s){let e=s.parentNode||s.host||null;return e===hs?null:e}function fs(s){return s.substring(1,6)=="ebkit"}var oe=null,Qi=!1;function yn(s){oe||(oe=ps()||{},Qi=oe.style?"WebkitAppearance"in oe.style:!1);let e=!0;return oe.style&&!fs(s)&&(e=s in oe.style,!e&&Qi&&(e="Webkit"+s.charAt(0).toUpperCase()+s.slice(1)in oe.style)),e}function ps(){return typeof document<"u"?document.body:null}function Lt(s,e){for(;e;){if(e===s)return!0;e=Je(e)}return!1}function Ft(s,e,t){if(t)return Array.from(s.querySelectorAll(e));let i=s.querySelector(e);return i?[i]:[]}var gs=1e3,zt="{{",ys="}}
1",Bt="ng-enter",Xe="ng-leave",ke="ng-trigger",De=".ng-trigger",jt="ng-animating",Ze=".ng-animating";function x(s){if(typeof s=="number")return s;let e=s.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:Dt(parseFloat(e[1]),e[2])}function Dt(s,e){return e==="s"?s*gs:s}function Ie(s,e,t){return s.hasOwnProperty("duration")?s:_s(s,e,t)}function _s(s,e,t){let i=/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i,n,r=0,o="";if(typeof s=="string"){let a=s.match(i);if(a===null)return e.push($i(s)),{duration:0,delay:0,easing:""};n=Dt(parseFloat(a[1]),a[2]);let l=a[3];l!=null&&(r=Dt(parseFloat(l),a[4]));let c=a[5];c&&(o=c)}else n=s;if(!t){let a=!1,l=e.length;n<0&&(e.push(as()),a=!0),r<0&&(e.push(ls()),a=!0),a&&e.splice(l,0,$i(s))}return{duration:n,delay:r,easing:o}}function _n(s){return s.length?s[0]instanceof Map?s:s.map(e=>new Map(Object.entries(e))):[]}function $(s,e,t){e.forEach((i,n)=>{let r=et(n);t&&!t.has(n)&&t.set(n,s.style[r]),s.style[r]=i})}function Z(s,e){e.forEach((t,i)=>{let n=et(i);s.style[n]=""})}function ve(s){return Array.isArray(s)?s.length==1?s[0]:ki(s):s}function Sn(s,e,t){let i=e.params||{},n=Kt(s);n.length&&n.forEach(r=>{i.hasOwnProperty(r)||t.push(cs(r))})}var It=new RegExp(`${zt}\\s*(.+?)\\s*${ys}`,"g");function Kt(s){let e=[];
vendor: 48,106 bytes, line 1
1if(typeof s=="string"){let t;for(;t=It.exec(s);)e.push(t[1]);It.lastIndex=0}return e}function Te(s,e,t){let i=`${s}`,n=i.replace(It,(r,o)=>{let a=e[o];return a==null&&(t.push(us(o)),a=""),a.toString()});return n==i?s:n}var Ss=/-+([a-z0-9])/g;function et(s){return s.replace(Ss,(...e)=>e[1].toUpperCase())}function En(s,e){return s===0||e===0}function vn(s,e,t){if(t.size&&e.length){let i=e[0],n=[];if(t.forEach((r,o)=>{i.has(o)||n.push(o),i.set(o,r)}),n.length)for(let r=1;r<e.length;r++){let o=e[r];n.forEach(a=>o.set(a,tt(s,a)))}}return e}function F(s,e,t){switch(e.type){case S.Trigger:return s.visitTrigger(e,t);case S.State:return s.visitState(e,t);case S.Transition:return s.visitTransition(e,t);case S.Sequence:return s.visitSequence(e,t);case S.Group:return s.visitGroup(e,t);case S.Animate:return s.visitAnimate(e,t);case S.Keyframes:return s.visitKeyframes(e,t);case S.Style:return s.visitStyle(e,t);case S.Reference:return s.visitReference(e,t);case S.AnimateChild:return s.visitAnimateChild(e,t);case S.AnimateRef:return s.visitAnimateRef(e,t);case S.Query:return s.visitQuery(e,t);case S.Stagger:return s.visitStagger(e,t);default:throw ds(e.type)}}function tt(s,e){return window.getComputedStyle(s)[e]}var ni=(()=>{class s{validateStyleProperty(t){return yn(t)}containsElement(t,i){return Lt(t,i)}getParentElement(t){return Je(t)}query(t,i,n){return Ft(t,i,n)}computeStyle(t,i,n){return n||""}animate(t,i,n,r,o,a=[],l){return new se(n,r)}static \u0275fac=function(i){return new(i||s)};static \u0275prov=w({token:s,factory:s.\u0275fac})}return s})(),le=class{static NOOP=new ni},ce=class{};var Es=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"]),ot=class extends ce{normalizePropertyName(e,t){return et(e)}normalizeStyleValue(e,t,i,n){let r="",o=i.toString().trim();if(Es.has(t)&&i!==0&&i!=="0")if(typeof i=="number")r="px";else{let a=i.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&a[1].length==0&&n.push(Vi(e,i))}return o+r}};var at="*";function vs(s,e){let t=[];return typeof s=="string"?s.split(/\s*,\s*/).forEach(i=>Ts(i,t,e)):t.push(s),t}function Ts(s,e,t){if(s[0]==":"){let l=bs(s,t);if(typeof l=="function"){e.push(l);return}s=l}let i=s.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(i==null||i.length<4)return t.push(sn(s)),e;let n=i[1],r=i[2],o=i[3];e.push(Tn(n,o));let a=n==at&&o==at;r[0]=="<"&&!a&&e.push(Tn(o,n))}function bs(s,e){switch(s){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(t,i)=>parseFloat(i)>parseFloat(t);case":decrement":return(t,i)=>parseFloat(i)<parseFloat(t);default:return e.push(rn(s)),"* => *"}}var it=new Set(["true","1"]),nt=new Set(["false","0"]);function Tn(s,e){let t=it.has(s)||nt.has(s),i=it.has(e)||nt.has(e);return(n,r)=>{let o=s==at||s==n,a=e==at||e==r;return!o&&t&&typeof n=="boolean"&&(o=n?it.has(s):nt.has(s)),!a&&i&&typeof r=="boolean"&&(a=r?it.has(e):nt.has(e)),o&&a}}var In=":self",ws=new RegExp(`s*${In}s*,?`,"g");function Rn(s,e,t,i){return new Ht(s).build(e,t,i)}var bn="",Ht=class{_driver;constructor(e){this._driver=e}build(e,t,i){let n=new xt(t);return this._resetContextStyleTimingState(n),F(this,ve(e),n)}_resetContextStyleTimingState(e){e.currentQuerySelector=bn,e.collectedStyles=new Map,e.collectedStyles.set(bn,new Map),e.currentTime=0}visitTrigger(e,t){let i=t.queryCount=0,n=t.depCount=0,r=[],o=[];return e.name.charAt(0)=="@"&&t.errors.push(Hi()),e.definitions.forEach(a=>{if(this._resetContextStyleTimingState(t),a.type==S.State){let l=a,c=l.name;c.toString().split(/\s*,\s*/).forEach(u=>{l.name=u,r.push(this.visitState(l,t))}),l.name=c}else if(a.type==S.Transition){let l=this.visitTransition(a,t);i+=l.queryCount,n+=l.depCount,o.push(l)}else t.errors.push(xi())}),{type:S.Trigger,name:e.name,states:r,transitions:o,queryCount:i,depCount:n,options:null}}visitState(e,t){let i=this.visitStyle(e.styles,t),n=e.options&&e.options.params||null;if(i.containsDynamicStyles){let r=new Set,o=n||{};i.styles.forEach(a=>{a instanceof Map&&a.forEach(l=>{Kt(l).forEach(c=>{o.hasOwnProperty(c)||r.add(c)})})}),r.size&&t.errors.push(Gi(e.name,[...r.values()]))}return{type:S.State,name:e.name,style:i,options:n?{params:n}:null}}visitTransition(e,t){t.queryCount=0,t.depCount=0;let i=F(this,ve(e.animation),t),n=vs(e.expr,t.errors);return{type:S.Transition,matchers:n,animation:i,queryCount:t.queryCount,depCount:t.depCount,options:ae(e.options)}}visitSequence(e,t){return{type:S.Sequence,steps:e.steps.map(i=>F(this,i,t)),options:ae(e.options)}}visitGroup(e,t){let i=t.currentTime,n=0,r=e.steps.map(o=>{t.currentTime=i;let a=F(this,o,t);return n=Math.max(n,t.currentTime),a});return t.currentTime=n,{type:S.Group,steps:r,options:ae(e.options)}}visitAnimate(e,t){let i=Ns(e.timings,t.errors);t.currentAnimateTimings=i;let n,r=e.styles?e.styles:At({});if(r.type==S.Keyframes)n=this.visitKeyframes(r,t);else{let o=e.styles,a=!1;if(!o){a=!0;let c={};i.easing&&(c.easing=i.easing),o=At(c)}t.currentTime+=i.duration+i.delay;let l=this.visitStyle(o,t);l.isEmptyStep=a,n=l}return t.currentAnimateTimings=null,{type:S.Animate,timings:i,style:n,options:null}}visitStyle(e,t){let i=this._makeStyleAst(e,t);return this._validateStyleAst(i,t),i}_makeStyleAst(e,t){let i=[],n=Array.isArray(e.styles)?e.styles:[e.styles];for(let a of n)typeof a=="string"?a===U?i.push(a):t.errors.push(Wi(a)):i.push(new Map(Object.entries(a)));let r=!1,o=null;return i.forEach(a=>{if(a instanceof Map&&(a.has("easing")&&(o=a.get("easing"),a.delete("easing")),!r)){for(let l of a.values())if(l.toString().indexOf(zt)>=0){r=!0;break}}}),{type:S.Style,styles:i,easing:o,offset:e.offset,containsDynamicStyles:r,options:null}}_validateStyleAst(e,t){let i=t.currentAnimateTimings,n=t.currentTime,r=t.currentTime;i&&r>0&&(r-=i.duration+i.delay),e.styles.forEach(o=>{typeof o!="string"&&o.forEach((a,l)=>{let c=t.collectedStyles.get(t.currentQuerySelector),u=c.get(l),d=!0;u&&(r!=n&&r>=u.startTime&&n<=u.endTime&&(t.errors.push(Yi(l,u.startTime,u.endTime,r,n)),d=!1),r=u.startTime),d&&c.set(l,{startTime:r,endTime:n}),t.options&&Sn(a,t.options,t.errors)})})}visitKeyframes(e,t){let i={type:S.Keyframes,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push(Ji()),i;let n=1,r=0,o=[],a=!1,l=!1,c=0,u=e.steps.map(A=>{let M=this._makeStyleAst(A,t),k=M.offset!=null?M.offset:Ps(M.styles),N=0;return k!=null&&(r++,N=M.offset=k),l=l||N<0||N>1,a=a||N<c,c=N,o.push(N),M});l&&t.errors.push(Xi()),a&&t.errors.push(Zi());let d=e.steps.length,_=0;r>0&&r<d?t.errors.push(en()):r==0&&(_=n/(d-1));let y=d-1,h=t.currentTime,g=t.currentAnimateTimings,T=g.duration;return u.forEach((A,M)=>{let k=_>0?M==y?1:_*M:o[M],N=k*T;t.currentTime=h+g.delay+N,g.duration=N,this._validateStyleAst(A,t),A.offset=k,i.styles.push(A)}),i}visitReference(e,t){return{type:S.Reference,animation:F(this,ve(e.animation),t),options:ae(e.options)}}visitAnimateChild(e,t){return t.depCount++,{type:S.AnimateChild,options:ae(e.options)}}visitAnimateRef(e,t){return{type:S.AnimateRef,animation:this.visitReference(e.animation,t),options:ae(e.options)}}visitQuery(e,t){let i=t.currentQuerySelector,n=e.options||{};t.queryCount++,t.currentQuery=e;let[r,o]=As(e.selector);t.currentQuerySelector=i.length?i+" "+r:r,L(t.collectedStyles,t.currentQuerySelector,new Map);let a=F(this,ve(e.animation),t);return t.currentQuery=null,t.currentQuerySelector=i,{type:S.Query,selector:r,limit:n.limit||0,optional:!!n.optional,includeSelf:o,animation:a,originalSelector:e.selector,options:ae(e.options)}}visitStagger(e,t){t.currentQuery||t.errors.push(tn());let i=e.timings==="full"?{duration:0,delay:0,easing:"full"}:Ie(e.timings,t.errors,!0);return{type:S.Stagger,animation:F(this,ve(e.animation),t),timings:i,options:null}}};function As(s){let e=!!s.split(/\s*,\s*/).find(t=>t==In);return e&&(s=s.replace(ws,"")),s=s.replace(/@\*/g,De).replace(/@\w+/g,t=>De+"-"+t.slice(1)).replace(/:animating/g,Ze),[s,e]}function Ms(s){return s?Y({},s):null}var xt=class{errors;queryCount=0;depCount=0;currentTransition=null;currentQuery=null;currentQuerySelector=null;currentAnimateTimings=null;currentTime=0;collectedStyles=new Map;options=null;unsupportedCSSPropertiesFound=new Set;constructor(e){this.errors=e}};function Ps(s){if(typeof s=="string")return null;let e=null;if(Array.isArray(s))s.forEach(t=>{if(t instanceof Map&&t.has("offset")){let i=t;e=parseFloat(i.get("offset")),i.delete("offset")}});else if(s instanceof Map&&s.has("offset")){let t=s;e=parseFloat(t.get("offset")),t.delete("offset")}return e}function Ns(s,e){if(s.hasOwnProperty("duration"))return s;if(typeof s=="number"){let r=Ie(s,e).duration;return qt(r,0,"")}let t=s;if(t.split(/\s+/).some(r=>r.charAt(0)=="{"&&r.charAt(1)=="{")){let r=qt(0,0,"");return r.dynamic=!0,r.strValue=t,r}let n=Ie(t,e);return qt(n.duration,n.delay,n.easing)}function ae(s){return s?(s=Y({},s),s.params&&(s.params=Ms(s.params))):s={},s}function qt(s,e,t){return{duration:s,delay:e,easing:t}}function si(s,e,t,i,n,r,o=null,a=!1){return{type:1,element:s,keyframes:e,preStyleProps:t,postStyleProps:i,duration:n,delay:r,totalTime:n+r,easing:o,subTimeline:a}}var Oe=class{_map=new Map;get(e){return this._map.get(e)||[]}append(e,t){let i=this._map.get(e);i||this._map.set(e,i=[]),i.push(...t)}has(e){return this._map.has(e)}clear(){this._map.clear()}},Cs=1,ks=":enter",Ds=new RegExp(ks,"g"),Is=":leave",Rs=new RegExp(Is,"g");function On(s,e,t,i,n,r=new Map,o=new Map,a,l,c=[]){return new Gt().buildKeyframes(s,e,t,i,n,r,o,a,l,c)}var Gt=class{buildKeyframes(e,t,i,n,r,o,a,l,c,u=[]){c=c||new Oe;let d=new Wt(e,t,c,n,r,u,[]);d.options=l;let _=l.delay?x(l.delay):0;d.currentTimeline.delayNextStep(_),d.currentTimeline.setStyles([o],null,d.errors,l),F(this,i,d);let y=d.timelines.filter(h=>h.containsAnimation());if(y.length&&a.size){let h;for(let g=y.length-1;g>=0;g--){let T=y[g];if(T.element===t){h=T;break}}h&&!h.allowOnlyTimelineStyles()&&h.setStyles([a],null,d.errors,l)}return y.length?y.map(h=>h.buildKeyframes()):[si(t,[],[],[],0,_,"",!1)]}visitTrigger(e,t){}visitState(e,t){}visitTransition(e,t){}visitAnimateChild(e,t){let i=t.subInstructions.get(t.element);if(i){let n=t.createSubContext(e.options),r=t.currentTimeline.currentTime,o=this._visitSubInstructions(i,n,n.options);r!=o&&t.transformIntoNewTimeline(o)}t.previousNode=e}visitAnimateRef(e,t){let i=t.createSubContext(e.options);i.transformIntoNewTimeline(),this._applyAnimationRefDelays([e.options,e.animation.options],t,i),this.visitReference(e.animation,i),t.transformIntoNewTimeline(i.currentTimeline.currentTime),t.previousNode=e}_applyAnimationRefDelays(e,t,i){for(let n of e){let r=n?.delay;if(r){let o=typeof r=="number"?r:x(Te(r,n?.params??{},t.errors));i.delayNextStep(o)}}}_visitSubInstructions(e,t,i){let r=t.currentTimeline.currentTime,o=i.duration!=null?x(i.duration):null,a=i.delay!=null?x(i.delay):null;return o!==0&&e.forEach(l=>{let c=t.appendInstructionToTimeline(l,o,a);r=Math.max(r,c.duration+c.delay)}),r}visitReference(e,t){t.updateOptions(e.options,!0),F(this,e.animation,t),t.previousNode=e}visitSequence(e,t){let i=t.subContextCount,n=t,r=e.options;if(r&&(r.params||r.delay)&&(n=t.createSubContext(r),n.transformIntoNewTimeline(),r.delay!=null)){n.previousNode.type==S.Style&&(n.currentTimeline.snapshotCurrentStyles(),n.previousNode=lt);let o=x(r.delay);n.delayNextStep(o)}e.steps.length&&(e.steps.forEach(o=>F(this,o,n)),n.currentTimeline.applyStylesToKeyframe(),n.subContextCount>i&&n.transformIntoNewTimeline()),t.previousNode=e}visitGroup(e,t){let i=[],n=t.currentTimeline.currentTime,r=e.options&&e.options.delay?x(e.options.delay):0;e.steps.forEach(o=>{let a=t.createSubContext(e.options);r&&a.delayNextStep(r),F(this,o,a),n=Math.max(n,a.currentTimeline.currentTime),i.push(a.currentTimeline)}),i.forEach(o=>t.currentTimeline.mergeTimelineCollectedStyles(o)),t.transformIntoNewTimeline(n),t.previousNode=e}_visitTiming(e,t){if(e.dynamic){let i=e.strValue,n=t.params?Te(i,t.params,t.errors):i;return Ie(n,t.errors)}else return{duration:e.duration,delay:e.delay,easing:e.easing}}visitAnimate(e,t){let i=t.currentAnimateTimings=this._visitTiming(e.timings,t),n=t.currentTimeline;i.delay&&(t.incrementTime(i.delay),n.snapshotCurrentStyles());let r=e.style;r.type==S.Keyframes?this.visitKeyframes(r,t):(t.incrementTime(i.duration),this.visitStyle(r,t),n.applyStylesToKeyframe()),t.currentAnimateTimings=null,t.previousNode=e}visitStyle(e,t){let i=t.currentTimeline,n=t.currentAnimateTimings;!n&&i.hasCurrentStyleProperties()&&i.forwardFrame();let r=n&&n.easing||e.easing;e.isEmptyStep?i.applyEmptyStep(r):i.setStyles(e.styles,r,t.errors,t.options),t.previousNode=e}visitKeyframes(e,t){let i=t.currentAnimateTimings,n=t.currentTimeline.duration,r=i.duration,a=t.createSubContext().currentTimeline;a.easing=i.easing,e.styles.forEach(l=>{let c=l.offset||0;a.forwardTime(c*r),a.setStyles(l.styles,l.easing,t.errors,t.options),a.applyStylesToKeyframe()}),t.currentTimeline.mergeTimelineCollectedStyles(a),t.transformIntoNewTimeline(n+r),t.previousNode=e}visitQuery(e,t){let i=t.currentTimeline.currentTime,n=e.options||{},r=n.delay?x(n.delay):0;r&&(t.previousNode.type===S.Style||i==0&&t.currentTimeline.hasCurrentStyleProperties())&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=lt);let o=i,a=t.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!n.optional,t.errors);t.currentQueryTotal=a.length;let l=null;a.forEach((c,u)=>{t.currentQueryIndex=u;let d=t.createSubContext(e.options,c);r&&d.delayNextStep(r),c===t.element&&(l=d.currentTimeline),F(this,e.animation,d),d.currentTimeline.applyStylesToKeyframe();let _=d.currentTimeline.currentTime;o=Math.max(o,_)}),t.currentQueryIndex=0,t.currentQueryTotal=0,t.transformIntoNewTimeline(o),l&&(t.currentTimeline.mergeTimelineCollectedStyles(l),t.currentTimeline.snapshotCurrentStyles()),t.previousNode=e}visitStagger(e,t){let i=t.parentContext,n=t.currentTimeline,r=e.timings,o=Math.abs(r.duration),a=o*(t.currentQueryTotal-1),l=o*t.currentQueryIndex;switch(r.duration<0?"reverse":r.easing){case"reverse":l=a-l;break;case"full":l=i.currentStaggerTime;break}let u=t.currentTimeline;l&&u.delayNextStep(l);let d=u.currentTime;F(this,e.animation,t),t.previousNode=e,i.currentStaggerTime=n.currentTime-d+(n.startTime-i.currentTimeline.startTime)}},lt={},Wt=class s{_driver;element;subInstructions;_enterClassName;_leaveClassName;errors;timelines;parentContext=null;currentTimeline;currentAnimateTimings=null;previousNode=lt;subContextCount=0;options={};currentQueryIndex=0;currentQueryTotal=0;currentStaggerTime=0;constructor(e,t,i,n,r,o,a,l){this._driver=e,this.element=t,this.subInstructions=i,this._enterClassName=n,this._leaveClassName=r,this.errors=o,this.timelines=a,this.currentTimeline=l||new ct(this._driver,t,0),a.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(e,t){if(!e)return;let i=e,n=this.options;i.duration!=null&&(n.duration=x(i.duration)),i.delay!=null&&(n.delay=x(i.delay));let r=i.params;if(r){let o=n.params;o||(o=this.options.params={}),Object.keys(r).forEach(a=>{(!t||!o.hasOwnProperty(a))&&(o[a]=Te(r[a],o,this.errors))})}}_copyOptions(){let e={};if(this.options){let t=this.options.params;if(t){let i=e.params={};Object.keys(t).forEach(n=>{i[n]=t[n]})}}return e}createSubContext(e=null,t,i){let n=t||this.element,r=new s(this._driver,n,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(n,i||0));return r.previousNode=this.previousNode,r.currentAnimateTimings=this.currentAnimateTimings,r.options=this._copyOptions(),r.updateOptions(e),r.currentQueryIndex=this.currentQueryIndex,r.currentQueryTotal=this.currentQueryTotal,r.parentContext=this,this.subContextCount++,r}transformIntoNewTimeline(e){return this.previousNode=lt,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(e,t,i){let n={duration:t??e.duration,delay:this.currentTimeline.currentTime+(i??0)+e.delay,easing:""},r=new Yt(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,n,e.stretchStartingKeyframe);return this.timelines.push(r),n}incrementTime(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)}delayNextStep(e){e>0&&this.currentTimeline.delayNextStep(e)}invokeQuery(e,t,i,n,r,o){let a=[];if(n&&a.push(this.element),e.length>0){e=e.replace(Ds,"."+this._enterClassName),e=e.replace(Rs,"."+this._leaveClassName);let l=i!=1,c=this._driver.query(this.element,e,l);i!==0&&(c=i<0?c.slice(c.length+i,c.length):c.slice(0,i)),a.push(...c)}return!r&&a.length==0&&o.push(nn(t)),a}},ct=class s{_driver;element;startTime;_elementTimelineStylesLookup;duration=0;easing=null;_previousKeyframe=new Map;_currentKeyframe=new Map;_keyframes=new Map;_styleSummary=new Map;_localTimelineStyles=new Map;_globalTimelineStyles;_pendingStyles=new Map;_backFill=new Map;_currentEmptyStepKeyframe=null;constructor(e,t,i,n){this._driver=e,this.element=t,this.startTime=i,this._elementTimelineStylesLookup=n,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){let t=this._keyframes.size===1&&this._pendingStyles.size;this.duration||t?(this.forwardTime(this.currentTime+e),t&&this.snapshotCurrentStyles()):this.startTime+=e}fork(e,t){return this.applyStylesToKeyframe(),new s(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+=Cs,this._loadKeyframe()}forwardTime(e){this.applyStylesToKeyframe(),this.duration=e,this._loadKeyframe()}_updateStyle(e,t){this._localTimelineStyles.set(e,t),this._globalTimelineStyles.set(e,t),this._styleSummary.set(e,{time:this.currentTime,value:t})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(e){e&&this._previousKeyframe.set("easing",e);for(let[t,i]of this._globalTimelineStyles)this._backFill.set(t,i||U),this._currentKeyframe.set(t,U);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(e,t,i,n){t&&this._previousKeyframe.set("easing",t);let r=n&&n.params||{},o=Os(e,this._globalTimelineStyles);for(let[a,l]of o){let c=Te(l,r,i);this._pendingStyles.set(a,c),this._localTimelineStyles.has(a)||this._backFill.set(a,this._globalTimelineStyles.get(a)??U),this._updateStyle(a,c)}}applyStylesToKeyframe(){this._pendingStyles.size!=0&&(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(){let e=[];for(let t in this._currentKeyframe)e.push(t);return e}mergeTimelineCollectedStyles(e){e._styleSummary.forEach((t,i)=>{let n=this._styleSummary.get(i);(!n||t.time>n.time)&&this._updateStyle(i,t.value)})}buildKeyframes(){this.applyStylesToKeyframe();let e=new Set,t=new Set,i=this._keyframes.size===1&&this.duration===0,n=[];this._keyframes.forEach((a,l)=>{let c=new Map([...this._backFill,...a]);c.forEach((u,d)=>{u===Ce?e.add(d):u===U&&t.add(d)}),i||c.set("offset",l/this.duration),n.push(c)});let r=[...e.values()],o=[...t.values()];if(i){let a=n[0],l=new Map(a);a.set("offset",0),l.set("offset",1),n=[a,l]}return si(this.element,n,r,o,this.duration,this.startTime,this.easing,!1)}},Yt=class extends ct{keyframes;preStyleProps;postStyleProps;_stretchStartingKeyframe;timings;constructor(e,t,i,n,r,o,a=!1){super(e,t,o.delay),this.keyframes=i,this.preStyleProps=n,this.postStyleProps=r,this._stretchStartingKeyframe=a,this.timings={duration:o.duration,delay:o.delay,easing:o.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let e=this.keyframes,{delay:t,duration:i,easing:n}=this.timings;if(this._stretchStartingKeyframe&&t){let r=[],o=i+t,a=t/o,l=new Map(e[0]);l.set("offset",0),r.push(l);let c=new Map(e[0]);c.set("offset",wn(a)),r.push(c);let u=e.length-1;for(let d=1;d<=u;d++){let _=new Map(e[d]),y=_.get("offset"),h=t+y*i;_.set("offset",wn(h/o)),r.push(_)}i=o,t=0,n="",e=r}return si(this.element,e,this.preStyleProps,this.postStyleProps,i,t,n,!0)}};function wn(s,e=3){let t=Math.pow(10,e-1);return Math.round(s*t)/t}function Os(s,e){let t=new Map,i;return s.forEach(n=>{if(n==="*"){i??=e.keys();for(let r of i)t.set(r,U)}else for(let[r,o]of n)t.set(r,o)}),t}function An(s,e,t,i,n,r,o,a,l,c,u,d,_){return{type:0,element:s,triggerName:e,isRemovalTransition:n,fromState:t,fromStyles:r,toState:i,toStyles:o,timelines:a,queriedElements:l,preStyleProps:c,postStyleProps:u,totalTime:d,errors:_}}var Ut={},ut=class{_triggerName;ast;_stateStyles;constructor(e,t,i){this._triggerName=e,this.ast=t,this._stateStyles=i}match(e,t,i,n){return Ls(this.ast.matchers,e,t,i,n)}buildStyles(e,t,i){let n=this._stateStyles.get("*");return e!==void 0&&(n=this._stateStyles.get(e?.toString())||n),n?n.buildStyles(t,i):new Map}build(e,t,i,n,r,o,a,l,c,u){let d=[],_=this.ast.options&&this.ast.options.params||Ut,y=a&&a.params||Ut,h=this.buildStyles(i,y,d),g=l&&l.params||Ut,T=this.buildStyles(n,g,d),A=new Set,M=new Map,k=new Map,N=n==="void",ue={params:Ln(g,_),delay:this.ast.options?.delay},V=u?[]:On(e,t,this.ast.animation,r,o,h,T,ue,c,d),D=0;return V.forEach(R=>{D=Math.max(R.duration+R.delay,D)}),d.length?An(t,this._triggerName,i,n,N,h,T,[],[],M,k,D,d):(V.forEach(R=>{let ee=R.element,de=L(M,ee,new Set);R.preStyleProps.forEach(te=>de.add(te));let ri=L(k,ee,new Set);R.postStyleProps.forEach(te=>ri.add(te)),ee!==t&&A.add(ee)}),An(t,this._triggerName,i,n,N,h,T,V,[...A.values()],M,k,D))}};function Ls(s,e,t,i,n){return s.some(r=>r(e,t,i,n))}function Ln(s,e){let t=Y({},e);return Object.entries(s).forEach(([i,n])=>{n!=null&&(t[i]=n)}),t}var Jt=class{styles;defaultParams;normalizer;constructor(e,t,i){this.styles=e,this.defaultParams=t,this.normalizer=i}buildStyles(e,t){let i=new Map,n=Ln(e,this.defaultParams);return this.styles.styles.forEach(r=>{typeof r!="string"&&r.forEach((o,a)=>{o&&(o=Te(o,n,t));let l=this.normalizer.normalizePropertyName(a,t);o=this.normalizer.normalizeStyleValue(a,l,o,t),i.set(a,o)})}),i}};function Fs(s,e,t){return new Xt(s,e,t)}var Xt=class{name;ast;_normalizer;transitionFactories=[];fallbackTransition;states=new Map;constructor(e,t,i){this.name=e,this.ast=t,this._normalizer=i,t.states.forEach(n=>{let r=n.options&&n.options.params||{};this.states.set(n.name,new Jt(n.style,r,i))}),Mn(this.states,"true","1"),Mn(this.states,"false","0"),t.transitions.forEach(n=>{this.transitionFactories.push(new ut(e,n,this.states))}),this.fallbackTransition=zs(e,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(e,t,i,n){return this.transitionFactories.find(o=>o.match(e,t,i,n))||null}matchStyles(e,t,i){return this.fallbackTransition.buildStyles(e,t,i)}};function zs(s,e,t){let i=[(o,a)=>!0],n={type:S.Sequence,steps:[],options:null},r={type:S.Transition,animation:n,matchers:i,options:null,queryCount:0,depCount:0};return new ut(s,r,e)}function Mn(s,e,t){s.has(e)?s.has(t)||s.set(t,s.get(e)):s.has(t)&&s.set(e,s.get(t))}var Bs=new Oe,Zt=class{bodyNode;_driver;_normalizer;_animations=new Map;_playersById=new Map;players=[];constructor(e,t,i){this.bodyNode=e,this._driver=t,this._normalizer=i}register(e,t){let i=[],n=[],r=Rn(this._driver,t,i,n);if(i.length)throw an(i);this._animations.set(e,r)}_buildPlayer(e,t,i){let n=e.element,r=Rt(this._normalizer,e.keyframes,t,i);return this._driver.animate(n,r,e.duration,e.delay,e.easing,[],!0)}create(e,t,i={}){let n=[],r=this._animations.get(e),o,a=new Map;if(r?(o=On(this._driver,t,r,Bt,Xe,new Map,new Map,i,Bs,n),o.forEach(u=>{let d=L(a,u.element,new Map);u.postStyleProps.forEach(_=>d.set(_,null))})):(n.push(ln()),o=[]),n.length)throw cn(n);a.forEach((u,d)=>{u.forEach((_,y)=>{u.set(y,this._driver.computeStyle(d,y,U))})});let l=o.map(u=>{let d=a.get(u.element);return this._buildPlayer(u,new Map,d)}),c=G(l);return this._playersById.set(e,c),c.onDestroy(()=>this.destroy(e)),this.players.push(c),c}destroy(e){let t=this._getPlayer(e);t.destroy(),this._playersById.delete(e);let i=this.players.indexOf(t);i>=0&&this.players.splice(i,1)}_getPlayer(e){let t=this._playersById.get(e);if(!t)throw un(e);return t}listen(e,t,i,n){let r=Ye(t,"","","");return We(this._getPlayer(e),i,r,n),()=>{}}command(e,t,i,n){if(i=="register"){this.register(e,n[0]);return}if(i=="create"){let o=n[0]||{};this.create(e,t,o);return}let r=this._getPlayer(e);switch(i){case"play":r.play();break;case"pause":r.pause();break;case"reset":r.reset();break;case"restart":r.restart();break;case"finish":r.finish();break;case"init":r.init();break;case"setPosition":r.setPosition(parseFloat(n[0]));break;case"destroy":this.destroy(e);break}}},Pn="ng-animate-queued",js=".ng-animate-queued",$t="ng-animate-disabled",Ks=".ng-animate-disabled",qs="ng-star-inserted",Us=".ng-star-inserted",$s=[],Fn={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Qs={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Q="__ng_removed",Le=class{namespaceId;value;options;get params(){return this.options.params}constructor(e,t=""){this.namespaceId=t;let i=e&&e.hasOwnProperty("value"),n=i?e.value:e;if(this.value=Hs(n),i){let r=e,{value:o}=r,a=ci(r,["value"]);this.options=a}else this.options={};this.options.params||(this.options.params={})}absorbOptions(e){let t=e.params;if(t){let i=this.options.params;Object.keys(t).forEach(n=>{i[n]==null&&(i[n]=t[n])})}}},Re="void",Qt=new Le(Re),ei=class{id;hostElement;_engine;players=[];_triggers=new Map;_queue=[];_elementListeners=new Map;_hostClassName;constructor(e,t,i){this.id=e,this.hostElement=t,this._engine=i,this._hostClassName="ng-tns-"+e,q(t,this._hostClassName)}listen(e,t,i,n){if(!this._triggers.has(t))throw dn(i,t);if(i==null||i.length==0)throw mn(t);if(!xs(i))throw hn(i,t);let r=L(this._elementListeners,e,[]),o={name:t,phase:i,callback:n};r.push(o);let a=L(this._engine.statesByElement,e,new Map);return a.has(t)||(q(e,ke),q(e,ke+"-"+t),a.set(t,Qt)),()=>{this._engine.afterFlush(()=>{let l=r.indexOf(o);l>=0&&r.splice(l,1),this._triggers.has(t)||a.delete(t)})}}register(e,t){return this._triggers.has(e)?!1:(this._triggers.set(e,t),!0)}_getTrigger(e){let t=this._triggers.get(e);if(!t)throw fn(e);return t}trigger(e,t,i,n=!0){let r=this._getTrigger(t),o=new Fe(this.id,t,e),a=this._engine.statesByElement.get(e);a||(q(e,ke),q(e,ke+"-"+t),this._engine.statesByElement.set(e,a=new Map));let l=a.get(t),c=new Le(i,this.id);if(!(i&&i.hasOwnProperty("value"))&&l&&c.absorbOptions(l.options),a.set(t,c),l||(l=Qt),!(c.value===Re)&&l.value===c.value){if(!Ys(l.params,c.params)){let g=[],T=r.matchStyles(l.value,l.params,g),A=r.matchStyles(c.value,c.params,g);g.length?this._engine.reportError(g):this._engine.afterFlush(()=>{Z(e,T),$(e,A)})}return}let _=L(this._engine.playersByElement,e,[]);_.forEach(g=>{g.namespaceId==this.id&&g.triggerName==t&&g.queued&&g.destroy()});let y=r.matchTransition(l.value,c.value,e,c.params),h=!1;if(!y){if(!n)return;y=r.fallbackTransition,h=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:t,transition:y,fromState:l,toState:c,player:o,isFallbackTransition:h}),h||(q(e,Pn),o.onStart(()=>{be(e,Pn)})),o.onDone(()=>{let g=this.players.indexOf(o);g>=0&&this.players.splice(g,1);let T=this._engine.playersByElement.get(e);if(T){let A=T.indexOf(o);A>=0&&T.splice(A,1)}}),this.players.push(o),_.push(o),o}deregister(e){this._triggers.delete(e),this._engine.statesByElement.forEach(t=>t.delete(e)),this._elementListeners.forEach((t,i)=>{this._elementListeners.set(i,t.filter(n=>n.name!=e))})}clearElementCache(e){this._engine.statesByElement.delete(e),this._elementListeners.delete(e);let t=this._engine.playersByElement.get(e);t&&(t.forEach(i=>i.destroy()),this._engine.playersByElement.delete(e))}_signalRemovalForInnerTriggers(e,t){let i=this._engine.driver.query(e,De,!0);i.forEach(n=>{if(n[Q])return;let r=this._engine.fetchNamespacesByElement(n);r.size?r.forEach(o=>o.triggerLeaveAnimation(n,t,!1,!0)):this.clearElementCache(n)}),this._engine.afterFlushAnimationsDone(()=>i.forEach(n=>this.clearElementCache(n)))}triggerLeaveAnimation(e,t,i,n){let r=this._engine.statesByElement.get(e),o=new Map;if(r){let a=[];if(r.forEach((l,c)=>{if(o.set(c,l.value),this._triggers.has(c)){let u=this.trigger(e,c,Re,n);u&&a.push(u)}}),a.length)return this._engine.markElementAsRemoved(this.id,e,!0,t,o),i&&G(a).onDone(()=>this._engine.processLeaveNode(e)),!0}return!1}prepareLeaveAnimationListeners(e){let t=this._elementListeners.get(e),i=this._engine.statesByElement.get(e);if(t&&i){let n=new Set;t.forEach(r=>{let o=r.name;if(n.has(o))return;n.add(o);let l=this._triggers.get(o).fallbackTransition,c=i.get(o)||Qt,u=new Le(Re),d=new Fe(this.id,o,e);this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:o,transition:l,fromState:c,toState:u,player:d,isFallbackTransition:!0})})}}removeNode(e,t){let i=this._engine;if(e.childElementCount&&this._signalRemovalForInnerTriggers(e,t),this.triggerLeaveAnimation(e,t,!0))return;let n=!1;if(i.totalAnimations){let r=i.players.length?i.playersByQueriedElement.get(e):[];if(r&&r.length)n=!0;else{let o=e;for(;o=o.parentNode;)if(i.statesByElement.get(o)){n=!0;break}}}if(this.prepareLeaveAnimationListeners(e),n)i.markElementAsRemoved(this.id,e,!1,t);else{let r=e[Q];(!r||r===Fn)&&(i.afterFlush(()=>this.clearElementCache(e)),i.destroyInnerAnimations(e),i._onRemovalComplete(e,t))}}insertNode(e,t){q(e,this._hostClassName)}drainQueuedTransitions(e){let t=[];return this._queue.forEach(i=>{let n=i.player;if(n.destroyed)return;let r=i.element,o=this._elementListeners.get(r);o&&o.forEach(a=>{if(a.name==i.triggerName){let l=Ye(r,i.triggerName,i.fromState.value,i.toState.value);l._data=e,We(i.player,a.phase,l,a.callback)}}),n.markedForDestroy?this._engine.afterFlush(()=>{n.destroy()}):t.push(i)}),this._queue=[],t.sort((i,n)=>{let r=i.transition.ast.depCount,o=n.transition.ast.depCount;return r==0||o==0?r-o:this._engine.driver.containsElement(i.element,n.element)?1:-1})}destroy(e){this.players.forEach(t=>t.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,e)}},ti=class{bodyNode;driver;_normalizer;players=[];newHostElements=new Map;playersByElement=new Map;playersByQueriedElement=new Map;statesByElement=new Map;disabledNodes=new Set;totalAnimations=0;totalQueuedPlayers=0;_namespaceLookup={};_namespaceList=[];_flushFns=[];_whenQuietFns=[];namespacesByHostElement=new Map;collectedEnterElements=[];collectedLeaveElements=[];onRemovalComplete=(e,t)=>{};_onRemovalComplete(e,t){this.onRemovalComplete(e,t)}constructor(e,t,i){this.bodyNode=e,this.driver=t,this._normalizer=i}get queuedPlayers(){let e=[];return this._namespaceList.forEach(t=>{t.players.forEach(i=>{i.queued&&e.push(i)})}),e}createNamespace(e,t){let i=new ei(e,t,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,t)?this._balanceNamespaceList(i,t):(this.newHostElements.set(t,i),this.collectEnterElement(t)),this._namespaceLookup[e]=i}_balanceNamespaceList(e,t){let i=this._namespaceList,n=this.namespacesByHostElement;if(i.length-1>=0){let o=!1,a=this.driver.getParentElement(t);for(;a;){let l=n.get(a);if(l){let c=i.indexOf(l);i.splice(c+1,0,e),o=!0;break}a=this.driver.getParentElement(a)}o||i.unshift(e)}else i.push(e);return n.set(t,e),e}register(e,t){let i=this._namespaceLookup[e];return i||(i=this.createNamespace(e,t)),i}registerTrigger(e,t,i){let n=this._namespaceLookup[e];n&&n.register(t,i)&&this.totalAnimations++}destroy(e,t){e&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{let i=this._fetchNamespace(e);this.namespacesByHostElement.delete(i.hostElement);let n=this._namespaceList.indexOf(i);n>=0&&this._namespaceList.splice(n,1),i.destroy(t),delete this._namespaceLookup[e]}))}_fetchNamespace(e){return this._namespaceLookup[e]}fetchNamespacesByElement(e){let t=new Set,i=this.statesByElement.get(e);if(i){for(let n of i.values())if(n.namespaceId){let r=this._fetchNamespace(n.namespaceId);r&&t.add(r)}}return t}trigger(e,t,i,n){if(st(t)){let r=this._fetchNamespace(e);if(r)return r.trigger(t,i,n),!0}return!1}insertNode(e,t,i,n){if(!st(t))return;let r=t[Q];if(r&&r.setForRemoval){r.setForRemoval=!1,r.setForMove=!0;let o=this.collectedLeaveElements.indexOf(t);o>=0&&this.collectedLeaveElements.splice(o,1)}if(e){let o=this._fetchNamespace(e);o&&o.insertNode(t,i)}n&&this.collectEnterElement(t)}collectEnterElement(e){this.collectedEnterElements.push(e)}markElementAsDisabled(e,t){t?this.disabledNodes.has(e)||(this.disabledNodes.add(e),q(e,$t)):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),be(e,$t))}removeNode(e,t,i){if(st(t)){let n=e?this._fetchNamespace(e):null;n?n.removeNode(t,i):this.markElementAsRemoved(e,t,!1,i);let r=this.namespacesByHostElement.get(t);r&&r.id!==e&&r.removeNode(t,i)}else this._onRemovalComplete(t,i)}markElementAsRemoved(e,t,i,n,r){this.collectedLeaveElements.push(t),t[Q]={namespaceId:e,setForRemoval:n,hasAnimation:i,removedBeforeQueried:!1,previousTriggersValues:r}}listen(e,t,i,n,r){return st(t)?this._fetchNamespace(e).listen(t,i,n,r):()=>{}}_buildInstruction(e,t,i,n,r){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,i,n,e.fromState.options,e.toState.options,t,r)}destroyInnerAnimations(e){let t=this.driver.query(e,De,!0);t.forEach(i=>this.destroyActiveAnimationsForElement(i)),this.playersByQueriedElement.size!=0&&(t=this.driver.query(e,Ze,!0),t.forEach(i=>this.finishActiveQueriedAnimationOnElement(i)))}destroyActiveAnimationsForElement(e){let t=this.playersByElement.get(e);t&&t.forEach(i=>{i.queued?i.markedForDestroy=!0:i.destroy()})}finishActiveQueriedAnimationOnElement(e){let t=this.playersByQueriedElement.get(e);t&&t.forEach(i=>i.finish())}whenRenderingDone(){return new Promise(e=>{if(this.players.length)return G(this.players).onDone(()=>e());e()})}processLeaveNode(e){let t=e[Q];if(t&&t.setForRemoval){if(e[Q]=Fn,t.namespaceId){this.destroyInnerAnimations(e);let i=this._fetchNamespace(t.namespaceId);i&&i.clearElementCache(e)}this._onRemovalComplete(e,t.setForRemoval)}e.classList?.contains($t)&&this.markElementAsDisabled(e,!1),this.driver.query(e,Ks,!0).forEach(i=>{this.markElementAsDisabled(i,!1)})}flush(e=-1){let t=[];if(this.newHostElements.size&&(this.newHostElements.forEach((i,n)=>this._balanceNamespaceList(i,n)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let i=0;i<this.collectedEnterElements.length;i++){let n=this.collectedEnterElements[i];q(n,qs)}if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){let i=[];try{t=this._flushAnimations(i,e)}finally{for(let n=0;n<i.length;n++)i[n]()}}else for(let i=0;i<this.collectedLeaveElements.length;i++){let n=this.collectedLeaveElements[i];this.processLeaveNode(n)}if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(i=>i()),this._flushFns=[],this._whenQuietFns.length){let i=this._whenQuietFns;this._whenQuietFns=[],t.length?G(t).onDone(()=>{i.forEach(n=>n())}):i.forEach(n=>n())}}reportError(e){throw pn(e)}_flushAnimations(e,t){let i=new Oe,n=[],r=new Map,o=[],a=new Map,l=new Map,c=new Map,u=new Set;this.disabledNodes.forEach(m=>{u.add(m);let f=this.driver.query(m,js,!0);for(let p=0;p<f.length;p++)u.add(f[p])});let d=this.bodyNode,_=Array.from(this.statesByElement.keys()),y=kn(_,this.collectedEnterElements),h=new Map,g=0;y.forEach((m,f)=>{let p=Bt+g++;h.set(f,p),m.forEach(E=>q(E,p))});let T=[],A=new Set,M=new Set;for(let m=0;m<this.collectedLeaveElements.length;m++){let f=this.collectedLeaveElements[m],p=f[Q];p&&p.setForRemoval&&(T.push(f),A.add(f),p.hasAnimation?this.driver.query(f,Us,!0).forEach(E=>A.add(E)):M.add(f))}let k=new Map,N=kn(_,Array.from(A));N.forEach((m,f)=>{let p=Xe+g++;k.set(f,p),m.forEach(E=>q(E,p))}),e.push(()=>{y.forEach((m,f)=>{let p=h.get(f);m.forEach(E=>be(E,p))}),N.forEach((m,f)=>{let p=k.get(f);m.forEach(E=>be(E,p))}),T.forEach(m=>{this.processLeaveNode(m)})});let ue=[],V=[];for(let m=this._namespaceList.length-1;m>=0;m--)this._namespaceList[m].drainQueuedTransitions(t).forEach(p=>{let E=p.player,P=p.element;if(ue.push(E),this.collectedEnterElements.length){let C=P[Q];if(C&&C.setForMove){if(C.previousTriggersValues&&C.previousTriggersValues.has(p.triggerName)){let ie=C.previousTriggersValues.get(p.triggerName),j=this.statesByElement.get(p.element);if(j&&j.has(p.triggerName)){let ze=j.get(p.triggerName);ze.value=ie,j.set(p.triggerName,ze)}}E.destroy();return}}let H=!d||!this.driver.containsElement(d,P),z=k.get(P),W=h.get(P),b=this._buildInstruction(p,i,W,z,H);if(b.errors&&b.errors.length){V.push(b);return}if(H){E.onStart(()=>Z(P,b.fromStyles)),E.onDestroy(()=>$(P,b.toStyles)),n.push(E);return}if(p.isFallbackTransition){E.onStart(()=>Z(P,b.fromStyles)),E.onDestroy(()=>$(P,b.toStyles)),n.push(E);return}let li=[];b.timelines.forEach(C=>{C.stretchStartingKeyframe=!0,this.disabledNodes.has(C.element)||li.push(C)}),b.timelines=li,i.append(P,b.timelines);let ns={instruction:b,player:E,element:P};o.push(ns),b.queriedElements.forEach(C=>L(a,C,[]).push(E)),b.preStyleProps.forEach((C,ie)=>{if(C.size){let j=l.get(ie);j||l.set(ie,j=new Set),C.forEach((ze,_t)=>j.add(_t))}}),b.postStyleProps.forEach((C,ie)=>{let j=c.get(ie);j||c.set(ie,j=new Set),C.forEach((ze,_t)=>j.add(_t))})});if(V.length){let m=[];V.forEach(f=>{m.push(gn(f.triggerName,f.errors))}),ue.forEach(f=>f.destroy()),this.reportError(m)}let D=new Map,R=new Map;o.forEach(m=>{let f=m.element;i.has(f)&&(R.set(f,f),this._beforeAnimationBuild(m.player.namespaceId,m.instruction,D))}),n.forEach(m=>{let f=m.element;this._getPreviousPlayers(f,!1,m.namespaceId,m.triggerName,null).forEach(E=>{L(D,f,[]).push(E),E.destroy()})});let ee=T.filter(m=>Dn(m,l,c)),de=new Map;Cn(de,this.driver,M,c,U).forEach(m=>{Dn(m,l,c)&&ee.push(m)});let te=new Map;y.forEach((m,f)=>{Cn(te,this.driver,new Set(m),l,Ce)}),ee.forEach(m=>{let f=de.get(m),p=te.get(m);de.set(m,new Map([...f?.entries()??[],...p?.entries()??[]]))});let yt=[],oi=[],ai={};o.forEach(m=>{let{element:f,player:p,instruction:E}=m;if(i.has(f)){if(u.has(f)){p.onDestroy(()=>$(f,E.toStyles)),p.disabled=!0,p.overrideTotalTime(E.totalTime),n.push(p);return}let P=ai;if(R.size>1){let z=f,W=[];for(;z=z.parentNode;){let b=R.get(z);if(b){P=b;break}W.push(z)}W.forEach(b=>R.set(b,P))}let H=this._buildAnimation(p.namespaceId,E,D,r,te,de);if(p.setRealPlayer(H),P===ai)yt.push(p);else{let z=this.playersByElement.get(P);z&&z.length&&(p.parentPlayer=G(z)),n.push(p)}}else Z(f,E.fromStyles),p.onDestroy(()=>$(f,E.toStyles)),oi.push(p),u.has(f)&&n.push(p)}),oi.forEach(m=>{let f=r.get(m.element);if(f&&f.length){let p=G(f);m.setRealPlayer(p)}}),n.forEach(m=>{m.parentPlayer?m.syncPlayerEvents(m.parentPlayer):m.destroy()});for(let m=0;m<T.length;m++){let f=T[m],p=f[Q];if(be(f,Xe),p&&p.hasAnimation)continue;let E=[];if(a.size){let H=a.get(f);H&&H.length&&E.push(...H);let z=this.driver.query(f,Ze,!0);for(let W=0;W<z.length;W++){let b=a.get(z[W]);b&&b.length&&E.push(...b)}}let P=E.filter(H=>!H.destroyed);P.length?Gs(this,f,P):this.processLeaveNode(f)}return T.length=0,yt.forEach(m=>{this.players.push(m),m.onDone(()=>{m.destroy();let f=this.players.indexOf(m);this.players.splice(f,1)}),m.play()}),yt}afterFlush(e){this._flushFns.push(e)}afterFlushAnimationsDone(e){this._whenQuietFns.push(e)}_getPreviousPlayers(e,t,i,n,r){let o=[];if(t){let a=this.playersByQueriedElement.get(e);a&&(o=a)}else{let a=this.playersByElement.get(e);if(a){let l=!r||r==Re;a.forEach(c=>{c.queued||!l&&c.triggerName!=n||o.push(c)})}}return(i||n)&&(o=o.filter(a=>!(i&&i!=a.namespaceId||n&&n!=a.triggerName))),o}_beforeAnimationBuild(e,t,i){let n=t.triggerName,r=t.element,o=t.isRemovalTransition?void 0:e,a=t.isRemovalTransition?void 0:n;for(let l of t.timelines){let c=l.element,u=c!==r,d=L(i,c,[]);this._getPreviousPlayers(c,u,o,a,t.toState).forEach(y=>{let h=y.getRealPlayer();h.beforeDestroy&&h.beforeDestroy(),y.destroy(),d.push(y)})}Z(r,t.fromStyles)}_buildAnimation(e,t,i,n,r,o){let a=t.triggerName,l=t.element,c=[],u=new Set,d=new Set,_=t.timelines.map(h=>{let g=h.element;u.add(g);let T=g[Q];if(T&&T.removedBeforeQueried)return new se(h.duration,h.delay);let A=g!==l,M=Ws((i.get(g)||$s).map(D=>D.getRealPlayer())).filter(D=>{let R=D;return R.element?R.element===g:!1}),k=r.get(g),N=o.get(g),ue=Rt(this._normalizer,h.keyframes,k,N),V=this._buildPlayer(h,ue,M);if(h.subTimeline&&n&&d.add(g),A){let D=new Fe(e,a,g);D.setRealPlayer(V),c.push(D)}return V});c.forEach(h=>{L(this.playersByQueriedElement,h.element,[]).push(h),h.onDone(()=>Vs(this.playersByQueriedElement,h.element,h))}),u.forEach(h=>q(h,jt));let y=G(_);return y.onDestroy(()=>{u.forEach(h=>be(h,jt)),$(l,t.toStyles)}),d.forEach(h=>{L(n,h,[]).push(y)}),y}_buildPlayer(e,t,i){return t.length>0?this.driver.animate(e.element,t,e.duration,e.delay,e.easing,i):new se(e.duration,e.delay)}},Fe=class{namespaceId;triggerName;element;_player=new se;_containsRealPlayer=!1;_queuedCallbacks=new Map;destroyed=!1;parentPlayer=null;markedForDestroy=!1;disabled=!1;queued=!0;totalTime=0;constructor(e,t,i){this.namespaceId=e,this.triggerName=t,this.element=i}setRealPlayer(e){this._containsRealPlayer||(this._player=e,this._queuedCallbacks.forEach((t,i)=>{t.forEach(n=>We(e,i,void 0,n))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(e.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(e){this.totalTime=e}syncPlayerEvents(e){let t=this._player;t.triggerCallback&&e.onStart(()=>t.triggerCallback("start")),e.onDone(()=>this.finish()),e.onDestroy(()=>this.destroy())}_queueEvent(e,t){L(this._queuedCallbacks,e,[]).push(t)}onDone(e){this.queued&&this._queueEvent("done",e),this._player.onDone(e)}onStart(e){this.queued&&this._queueEvent("start",e),this._player.onStart(e)}onDestroy(e){this.queued&&this._queueEvent("destroy",e),this._player.onDestroy(e)}init(){this._player.init()}hasStarted(){return this.queued?!1:this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(e){this.queued||this._player.setPosition(e)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(e){let t=this._player;t.triggerCallback&&t.triggerCallback(e)}};function Vs(s,e,t){let i=s.get(e);if(i){if(i.length){let n=i.indexOf(t);i.splice(n,1)}i.length==0&&s.delete(e)}return i}function Hs(s){return s??null}function st(s){return s&&s.nodeType===1}function xs(s){return s=="start"||s=="done"}function Nn(s,e){let t=s.style.display;return s.style.display=e??"none",t}function Cn(s,e,t,i,n){let r=[];t.forEach(l=>r.push(Nn(l)));let o=[];i.forEach((l,c)=>{let u=new Map;l.forEach(d=>{let _=e.computeStyle(c,d,n);u.set(d,_),(!_||_.length==0)&&(c[Q]=Qs,o.push(c))}),s.set(c,u)});let a=0;return t.forEach(l=>Nn(l,r[a++])),o}function kn(s,e){let t=new Map;if(s.forEach(a=>t.set(a,[])),e.length==0)return t;let i=1,n=new Set(e),r=new Map;function o(a){if(!a)return i;let l=r.get(a);if(l)return l;let c=a.parentNode;return t.has(c)?l=c:n.has(c)?l=i:l=o(c),r.set(a,l),l}return e.forEach(a=>{let l=o(a);l!==i&&t.get(l).push(a)}),t}function q(s,e){s.classList?.add(e)}function be(s,e){s.classList?.remove(e)}function Gs(s,e,t){G(t).onDone(()=>s.processLeaveNode(e))}function Ws(s){let e=[];return zn(s,e),e}function zn(s,e){for(let t=0;t<s.length;t++){let i=s[t];i instanceof xe?zn(i.players,e):e.push(i)}}function Ys(s,e){let t=Object.keys(s),i=Object.keys(e);if(t.length!=i.length)return!1;for(let n=0;n<t.length;n++){let r=t[n];if(!e.hasOwnProperty(r)||s[r]!==e[r])return!1}return!0}function Dn(s,e,t){let i=t.get(s);if(!i)return!1;let n=e.get(s);return n?i.forEach(r=>n.add(r)):e.set(s,i),t.delete(s),!0}var we=class{_driver;_normalizer;_transitionEngine;_timelineEngine;_triggerCache={};onRemovalComplete=(e,t)=>{};constructor(e,t,i){this._driver=t,this._normalizer=i,this._transitionEngine=new ti(e.body,t,i),this._timelineEngine=new Zt(e.body,t,i),this._transitionEngine.onRemovalComplete=(n,r)=>this.onRemovalComplete(n,r)}registerTrigger(e,t,i,n,r){let o=e+"-"+n,a=this._triggerCache[o];if(!a){let l=[],c=[],u=Rn(this._driver,r,l,c);if(l.length)throw on(n,l);a=Fs(n,u,this._normalizer),this._triggerCache[o]=a}this._transitionEngine.registerTrigger(t,n,a)}register(e,t){this._transitionEngine.register(e,t)}destroy(e,t){this._transitionEngine.destroy(e,t)}onInsert(e,t,i,n){this._transitionEngine.insertNode(e,t,i,n)}onRemove(e,t,i){this._transitionEngine.removeNode(e,t,i)}disableAnimations(e,t){this._transitionEngine.markElementAsDisabled(e,t)}process(e,t,i,n){if(i.charAt(0)=="@"){let[r,o]=Ot(i),a=n;this._timelineEngine.command(r,t,o,a)}else this._transitionEngine.trigger(e,t,i,n)}listen(e,t,i,n,r){if(i.charAt(0)=="@"){let[o,a]=Ot(i);return this._timelineEngine.listen(o,t,a,r)}return this._transitionEngine.listen(e,t,i,n,r)}flush(e=-1){this._transitionEngine.flush(e)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(e){this._transitionEngine.afterFlushAnimationsDone(e)}};function Js(s,e){let t=null,i=null;return Array.isArray(e)&&e.length?(t=Vt(e[0]),e.length>1&&(i=Vt(e[e.length-1]))):e instanceof Map&&(t=Vt(e)),t||i?new Xs(s,t,i):null}var Xs=(()=>{class s{_element;_startStyles;_endStyles;static initialStylesByElement=new WeakMap;_state=0;_initialStyles;constructor(t,i,n){this._element=t,this._startStyles=i,this._endStyles=n;let r=s.initialStylesByElement.get(t);r||s.initialStylesByElement.set(t,r=new Map),this._initialStyles=r}start(){this._state<1&&(this._startStyles&&$(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&($(this._element,this._initialStyles),this._endStyles&&($(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(s.initialStylesByElement.delete(this._element),this._startStyles&&(Z(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Z(this._element,this._endStyles),this._endStyles=null),$(this._element,this._initialStyles),this._state=3)}}return s})();function Vt(s){let e=null;return s.forEach((t,i)=>{Zs(i)&&(e=e||new Map,e.set(i,t))}),e}function Zs(s){return s==="display"||s==="position"}var dt=class{element;keyframes;options;_specialStyles;_onDoneFns=[];_onStartFns=[];_onDestroyFns=[];_duration;_delay;_initialized=!1;_finished=!1;_started=!1;_destroyed=!1;_finalKeyframe;_originalOnDoneFns=[];_originalOnStartFns=[];domPlayer;time=0;parentPlayer=null;currentSnapshot=new Map;constructor(e,t,i,n){this.element=e,this.keyframes=t,this.options=i,this._specialStyles=n,this._duration=i.duration,this._delay=i.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e
1=>e()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;let e=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,e,this.options),this._finalKeyframe=e.length?e[e.length-1]:new Map;let t=()=>this._onFinish();this.domPlayer.addEventListener("finish",t),this.onDestroy(()=>{this.domPlayer.removeEventListener("finish",t)})}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(e){let t=[];return e.forEach(i=>{t.push(Object.fromEntries(i))}),t}_triggerWebAnimation(e,t,i){return e.animate(this._convertKeyframesToObject(t),i)}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){this.domPlayer===void 0&&this.init(),this.domPlayer.currentTime=e*this.time}getPosition(){return+(this.domPlayer.currentTime??0)/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){let e=new Map;this.hasStarted()&&this._finalKeyframe.forEach((i,n)=>{n!=="offset"&&e.set(n,this._finished?i:tt(this.element,n))}),this.currentSnapshot=e}triggerCallback(e){let t=e==="start"?this._onStartFns:this._onDoneFns;t.forEach(i=>i()),t.length=0}},mt=class{validateStyleProperty(e){return!0}validateAnimatableStyleProperty(e){return!0}containsElement(e,t){return Lt(e,t)}getParentElement(e){return Je(e)}query(e,t,i){return Ft(e,t,i)}computeStyle(e,t,i){return tt(e,t)}animate(e,t,i,n,r,o=[]){let a=n==0?"both":"forwards",l={duration:i,delay:n,fill:a};r&&(l.easing=r);let c=new Map,u=o.filter(y=>y instanceof dt);En(i,n)&&u.forEach(y=>{y.currentSnapshot.forEach((h,g)=>c.set(g,h))});let d=_n(t).map(y=>new Map(y));d=vn(e,d,c);let _=Js(e,d);return new dt(e,d,l,_)}};var rt="@",Bn="@.disabled",ht=class{namespaceId;delegate;engine;_onDestroy;\u0275type=0;constructor(e,t,i,n){this.namespaceId=e,this.delegate=t,this.engine=i,this._onDestroy=n}get data(){return this.delegate.data}destroyNode(e){this.delegate.destroyNode?.(e)}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),this._onDestroy?.()}createElement(e,t){return this.delegate.createElement(e,t)}createComment(e){return this.delegate.createComment(e)}createText(e){return this.delegate.createText(e)}appendChild(e,t){this.delegate.appendChild(e,t),this.engine.onInsert(this.namespaceId,t,e,!1)}insertBefore(e,t,i,n=!0){this.delegate.insertBefore(e,t,i),this.engine.onInsert(this.namespaceId,t,e,n)}removeChild(e,t,i){this.parentNode(t)&&this.engine.onRemove(this.namespaceId,t,this.delegate)}selectRootElement(e,t){return this.delegate.selectRootElement(e,t)}parentNode(e){return this.delegate.parentNode(e)}nextSibling(e){return this.delegate.nextSibling(e)}setAttribute(e,t,i,n){this.delegate.setAttribute(e,t,i,n)}removeAttribute(e,t,i){this.delegate.removeAttribute(e,t,i)}addClass(e,t){this.delegate.addClass(e,t)}removeClass(e,t){this.delegate.removeClass(e,t)}setStyle(e,t,i,n){this.delegate.setStyle(e,t,i,n)}removeStyle(e,t,i){this.delegate.removeStyle(e,t,i)}setProperty(e,t,i){t.charAt(0)==rt&&t==Bn?this.disableAnimations(e,!!i):this.delegate.setProperty(e,t,i)}setValue(e,t){this.delegate.setValue(e,t)}listen(e,t,i,n){return this.delegate.listen(e,t,i,n)}disableAnimations(e,t){this.engine.disableAnimations(e,t)}},ii=class extends ht{factory;constructor(e,t,i,n,r){super(t,i,n,r),this.factory=e,this.namespaceId=t}setProperty(e,t,i){t.charAt(0)==rt?t.charAt(1)=="."&&t==Bn?(i=i===void 0?!0:!!i,this.disableAnimations(e,i)):this.engine.process(this.namespaceId,e,t.slice(1),i):this.delegate.setProperty(e,t,i)}listen(e,t,i,n){if(t.charAt(0)==rt){let r=er(e),o=t.slice(1),a="";return o.charAt(0)!=rt&&([o,a]=tr(o)),this.engine.listen(this.namespaceId,r,o,a,l=>{let c=l._data||-1;this.factory.scheduleListenerCallback(c,i,l)})}return this.delegate.listen(e,t,i,n)}};function er(s){switch(s){case"body":return document.body;case"document":return document;case"window":return window;default:return s}}function tr(s){let e=s.indexOf("."),t=s.substring(0,e),i=s.slice(e+1);return[t,i]}var ft=class{delegate;engine;_zone;_currentId=0;_microtaskId=1;_animationCallbacksBuffer=[];_rendererCache=new Map;_cdRecurDepth=0;constructor(e,t,i){this.delegate=e,this.engine=t,this._zone=i,t.onRemovalComplete=(n,r)=>{r?.removeChild(null,n)}}createRenderer(e,t){let n=this.delegate.createRenderer(e,t);if(!e||!t?.data?.animation){let c=this._rendererCache,u=c.get(n);if(!u){let d=()=>c.delete(n);u=new ht("",n,this.engine,d),c.set(n,u)}return u}let r=t.id,o=t.id+"-"+this._currentId;this._currentId++,this.engine.register(o,e);let a=c=>
1{Array.isArray(c)?c.forEach(a):this.engine.registerTrigger(r,o,e,c.name,c)};return t.data.animation.forEach(a),new ii(this,o,n,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(e,t,i){if(e>=0&&e<this._microtaskId){this._zone.run(()=>t(i));return}let n=this._animationCallbacksBuffer;n.length==0&&queueMicrotask(()=>{this._zone.run(()=>{n.forEach(r=>{let[o,a]=r;o(a)}),this._animationCallbacksBuffer=[]})}),n.push([t,i])}end(){this._cdRecurDepth--,this._cdRecurDepth==0&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}componentReplaced(e){this.engine.flush(),this.delegate.componentReplaced?.(e)}};var nr=(()=>{class s extends we{constructor(t,i,n){super(t,i,n)}ngOnDestroy(){this.flush()}static \u0275fac=function(i){return new(i||s)(I(vi),I(le),I(ce))};static \u0275prov=w({token:s,factory:s.\u0275fac})}return s})();function sr(){return new ot}function rr(s,e,t){return new ft(s,e,t)}var Kn=[{provide:ce,useFactory:sr},{provide:we,useClass:nr},{provide:je,useFactory:rr,deps:[Ai,we,gi]}],or=[{provide:le,useClass:ni},{provide:Et,useValue:"NoopAnimations"},...Kn],jn=[{provide:le,useFactory:()=>new mt},{provide:Et,useFactory:()=>"BrowserAnimations"},...Kn],qn=(()=>{class s{static withConfig(t){return{ngModule:s,providers:t.disableAnimations?or:jn}}static \u0275fac=function(i){return new(i||s)};static \u0275mod=pe({type:s});static \u0275inj=me({providers:jn,imports:[Ue]})}return s})();var $n=(()=>{class s{constructor(t){this.store$=t}ngOnInit(){this.error$=this.store$.select(re.selectUserError),this.isLoading$=this.store$.select(re.selectUserIsLoading)}onLogin(){this.store$.dispatch(new B.LoginRequestAction({username:"username",password:"password"}))}static{this.\u0275fac=function(i){return new(i||s)(K(X))}}static{this.\u0275cmp=fe({type:s,selectors:[["app-login-page"]],standalone:!1,decls:3,vars:0,consts:[[1,"wrapper"],[1,"btn","btn-primary",3,"click"]],template:function(i,n){i&1&&(ge(0,"div",0)(1,"button",1),qe("click",function(){return n.onLogin()}),Ei(2,"Login"),ye()())},styles:[".wrapper[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;height:100vh}"]})}}return s})();var Qn=(()=>{class s{constructor(){this.app=he(Ee)}canMatch(t,i){let n=this.app.isMobileBrowser();return console.log("[MobileGuard] isMobile:",n),n}static{this.\u0275fac=function(i){return new(i||s)}}static{this.\u0275prov=w({token:s,factory:s.\u0275fac,providedIn:"root"})}}return s})();var ar=[{path:"login",component:$n},{path:"",canMatch:[Qn],loadChildren:()=>import("./chunk-AOFON3XG.js").then(s=>s.MobileModule)},{path:"",canMatch:[zi],loadChildren:()=>import("./chunk-V6U4OH3D.js").then(s=>s.DesktopOperatorModule)},{path:"",loadChildren:()=>import("./chunk-NKAF6UCQ.js").then(s=>s.DesktopModule)}],Vn=(()=>{class s{static{this.\u0275fac=function(i){return new(i||s)}}static{this.\u0275mod=pe({type:s})}static{this.\u0275inj=me({providers:[{provide:Ti,useValue:"/"}],imports:[Mt.forRoot(ar,{useHash:!1}),Mt]})}}return s})();var xn=ss(rs());var pt=(()=>{class s{constructor(){this.numberOfRequests=0,this.showSpinner=new di(!1),this.handleRequest=(t="hide")=>{this.numberOfRequests=t==="show"?this.numberOfRequests+1:this.numberOfRequests-1,this.numberOfRequests==1?this.timeoutObj?clearTimeout(this.timeoutObj):this.showSpinner.next(!0):this.numberOfRequests==0&&(this.timeoutObj=setTimeout(()=>{this.showSpinner.next(!1),this.timeoutObj=null},500))}}static{this.\u0275fac=function(i){return new(i||s)}}static{this.\u0275prov=w({token:s,factory:s.\u0275fac,providedIn:"root"})}}return s})();function lr(s,e){s&1&&(ge(0,"span",4),Ne(1,"img",5)(2,"img",6),ye())}function cr(s,e){s&1&&(ge(0,"span",7),Ne(1,"img",5)(2,"img",6),ye())}function ur(s,e){if(s&1&&(ge(0,"div",1),Tt(1,lr,3,0,"span",2)(2,cr,3,0,"span",3),ye()),s&2){let t=Si();vt(),Ke("ngIf",t.before10Seconds),vt(),Ke("ngIf",!t.before10Seconds)}}var gt=(()=>{class s{constructor(t){this.spinnerHandler=t,this.active=!0,this.before10Seconds=!0,this.showSpinner=i=>{this.before10Seconds=!0,this.active=i},this.spinnerHandler.showSpinner.subscribe(this.showSpinner.bind(this))}ngOnInit(){setTimeout(()=>this.changeText(),1e4)}changeText(){this.before10Seconds=!1}static{this.\u0275fac=function(i){return new(i||s)(K(pt))}}static{this.\u0275cmp=fe({type:s,selectors:[["app-spinner"]],decls:1,vars:1,consts:[["class","spinner-component modal-backdrop",4,"ngIf"],[1,"spinner-component","modal
1-backdrop"],["class","smileycode","id",":sm:","data-text","Il caricamento dei dati \xE8 in corso, ti preghiamo di attendere",4,"ngIf"],["class","smileycode","id",":sm:","data-text","Stiamo elaborando la tua richiesta, ci vorr\xE0 ancora qualche secondo",4,"ngIf"],["id",":sm:","data-text","Il caricamento dei dati \xE8 in corso, ti preghiamo di attendere",1,"smileycode"],["src","../../../../assets/spinner.svg",1,"rotate"],["src","../../../../assets/pass.png",1,"image-spinner"],["id",":sm:","data-text","Stiamo elaborando la tua richiesta, ci vorr\xE0 ancora qualche secondo",1,"smileycode"]],template:function(i,n){i&1&&Tt(0,ur,3,2,"div",0),i&2&&Ke("ngIf",n.active)},dependencies:[wi,bi,He],styles:[".smileycode[_ngcontent-%COMP%]{position:relative;width:260px}.smileycode[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{margin-left:60px}.smileycode[_ngcontent-%COMP%]   .image-spinner[_ngcontent-%COMP%]{margin-top:70px;margin-left:-40px}.smileycode[_ngcontent-%COMP%]:after{position:absolute;content:attr(data-text);top:8em;left:0;z-index:1;font-size:18px;font-weight:500;font-stretch:normal;font-style:normal;line-height:normal;letter-spacing:normal;text-align:center;color:#222b30}"]})}}return s})();var Gn=(()=>{class s{onResize(){this.updateMobileClass()}constructor(t,i,n,r,o,a,l){this.translate=t,this.router=i,this.route=n,this.store$=o,this.config=a,this.appService=l,this.user={},this._renderer=r.createRenderer("body",null),t.addLangs(["it"]),t.setDefaultLang("it"),this.setHighcartsOption()}setHighcartsOption(){xn.setOptions({lang:{thousandsSep:".",decimalPoint:",",noData:"No data to display"},tooltip:{valueDecimals:2}})}ngOnInit(){this.updateMobileClass(),this.config.kcEnabledPublicUrls&&Ge.includes(window.location.pathname)||this.setUserStore()}updateMobileClass(){this.appService.isMobileBrowser()?this._renderer.addClass(document.body,"mobile"):this._renderer.removeClass(document.body,"mobile")}setUserStore(){this.store$.select(re.selectUser).pipe(Me(t=>!!t)).subscribe(t=>{t?this.user=t:this.store$.dispatch(new B.ProfileInfoRequestAction)})}static{this.\u0275fac=function(i){return new(i||s)(K(Ve),K(Oi),K(Ii),K(je),K(X),K(Se),K(Ee))}}static{this.\u0275cmp=fe({type:s,selectors:[["app-root"]],hostBindings:function(i,n){i&1&&qe("resize",function(o){return n.onResize(o)},!1,yi)},standalone:!1,decls:2,vars:0,template:function(i,n){i&1&&Ne(0,"router-outlet")(1,"app-spinner")},dependencies:[gt,Ri],encapsulation:2})}}return s})();function hr(s){let e=s,t=Math.floor(Math.abs(s)),i=s.toString().replace(/^[^.]*\.?/,"").length;return t===1&&i===0?1:5}var Wn=["en",[["a","p"],["AM","PM"],void 0],[["AM","PM"],void 0,void 0],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],void 0,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],void 0,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",void 0,"{1} 'at' {0}",void 0],[".",",",";","%","+","-","E","\xD7","\u2030","\u221E","NaN",":"],["#,##0.###","#,##0%","\xA4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",hr];var Yn=(()=>{class s{constructor(t,i){this.alertService=t,this.injector=i}intercept(t,i){return i.handle(t).pipe(Pe(n=>{},n=>{let r=n;this.alertService.showAlert(Bi.danger,this.getMessage(r.error))}))}getMessage(t){let i="",n="";return t.key?(n=this.injector.get(Ve).instant(`API_ERROR.${t.key}`),n=this.parseErrorParam(n,t.params),i+=n):i+=t.message??"",i}parseErrorParam(t,i){return i&&i.length>0&&i.map(n=>t=t.replace(`%${n.param}`,n.value)),t}static{this.\u0275fac=function(i){return new(i||s)(I(ji),I(pi))}}static{this.\u0275prov=w({token:s,factory:s.\u0275fac})}}return s})();var Jn=(()=>{class s{constructor(t,i){this.store$=t,this.keycloak=i,this.onReadyEventType=5,this.NONE="NONE"}resolve(t,i){return this.keycloak.keycloakEvents$.pipe(Me(n=>n.type===this.onReadyEventType),St(1),Pe(()=>
1this.store$.dispatch(new B.ProfileInfoRequestAction)),Pe(()=>console.log("Token received form KeyCloak")),Be(()=>this.store$.select(re.selectUser).pipe(Me(n=>!!n),St(1),J(n=>n?.service),J(n=>n!=null&&n!==this.NONE))))}static{this.\u0275fac=function(i){return new(i||s)(I(X),I(_e))}}static{this.\u0275prov=w({token:s,factory:s.\u0275fac,providedIn:"root"})}}return s})();var Xn=(()=>{class s{constructor(t,i){this.spinnerHandler=t,this.config=i,this.finalize=()=>this.spinnerHandler.handleRequest(),this.ignoreUrls=()=>[this.config.holdingsTransactionsApi,this.config.holdingsPortfolioAnalysisApi,this.config.holdingsTaxinfoApi,this.config.productTypeHistoryApi,this.config.productsAutocomplete]}intercept(t,i){return this.config.configLoaded()&&this.ignoreUrls().includes(t.url)?i.handle(t):(this.spinnerHandler.handleRequest("show"),i.handle(t).pipe(hi(this.finalize.bind(this))))}static{this.\u0275fac=function(i){return new(i||s)(I(pt),I(Se))}}static{this.\u0275prov=w({token:s,factory:s.\u0275fac})}}return s})();var Zn=(()=>{class s{constructor(t){this.keycloak=t}intercept(t,i){return t.url.startsWith("./")||t.url.startsWith("/assets")?i.handle(t):mi(this.keycloak.getToken()).pipe(Be(n=>{if(!n)return i.handle(t);let r=t.clone({setHeaders:{Authorization:`Bearer ${n}`}});return i.handle(r)}),ne(()=>i.handle(t)))}static{this.\u0275fac=function(i){return new(i||s)(I(_e))}}static{this.\u0275prov=w({token:s,factory:s.\u0275fac})}}return s})();var es=(()=>{class s{constructor(){}configure(t,i,n){this.configureGTM(t)}configureGTM(t){var i=window.dataLayer||[];i.push({event:"wSetup",language:"IT",environment:"produzione"}),window.dataLayer=i,(function(o,a,l,c,u){o[c]=o[c]||[],o[c].push({"gtm.start":new Date().getTime(),event:"gtm.js"});var d=a.getElementsByTagName(l)[0],_=a.createElement(l),y=c!="dataLayer"?"&l="+c:"";_.async=!0,_.src="https://www.googletagmanager.com/gtm.js?id="+u+y,d.parentNode.insertBefore(_,d)})(window,document,"script","dataLayer",t);let n=document.createElement("noscript"),r=document.createElement("iframe");r.src="https://www.googletagmanager.com/ns.html?id="+t,r.height="0",r.width="0",r.setAttribute("style","display:none;visibility:hidden"),n.appendChild(r),document.getElementsByTagName("body")[0].appendChild(n)}configureIubenda(t,i){var n=window._iub||[];n.csConfiguration={consentOnContinuedBrowsing:!1,perPurposeConsent:!0,whitelabel:!1,lang:"it",siteId:t,cookiePolicyId:i,floatingPreferencesButtonDisplay:"bottom-right",banner:{position:"float-bottom-center",acceptButtonDisplay:!0,customizeButtonDisplay:!0,acceptButtonColor:"#990033",acceptButtonCaptionColor:"white",customizeButtonColor:"#D8D8D8",customizeButtonCaptionColor:"#000000",rejectButtonColor:"#990033",rejectButtonCaptionColor:"white",textColor:"black",backgroundColor:"white",applyStyles:!1,rejectButtonDisplay:!0,listPurposes:!0,explicitWithdrawal:!0},invalidateConsentWithoutLog:!0,countryDetection:!0,gdprAppliesGlobally:!1,callback:{onPreferenceExpressedOrNotNeeded:function(o){if(window.dataLayer.push({iubenda_ccpa_opted_out:n.cs.api.isCcpaOptedOut()}),!o)window.dataLayer.push({event:"iubenda_preference_not_needed"});else if(o.consent===!0)window.dataLayer.push({event:"iubenda_consent_given"});else if(o.consent===!1)window.dataLayer.push({event:"iubenda_consent_rejected"});else if(o.purposes)for(var a in o.purposes)o.purposes[a]&&window.dataLayer.push({event:"iubenda_consent_given_purpose_"+a})}}},window._iub=n;let r=["//cdn.iubenda.com/cs/iubenda_cs.js"];for(let o=0;o<r.length;o++){let a=document.createElement("script");a.src=r[o],a.type="text/javascript",a.async=!1,document.getElementsByTagName("head")[0].appendChild(a)}}static{this.\u0275fac=function(i){return new(i||s)}}static{this.\u0275prov=w({token:s,factory:s.\u0275fac,providedIn:"root"})}}return s})();bt(Ki);bt(Wn);function pr(s,e,t,i,n,r){return()=>ui(null,null,function*(){yield e.loadConfig(),e.applyHttpPolyfills();let o=e.iubendaGoogleTagManagerId,a=e.iubendaSiteId,l=e.iubendaCookiePolicyId;if(o&&a&&l&&r.configure(o,a,l),e.kcEnabledPublicUrls&&Ge.includes(window.location.pathname))return;yield n.init({config:{url:e.kcUrl,realm:e.kcRealm,clientId:e.kcClientId},initOptions:Y({onLoad:"login-required",checkLoginIframe:!1},e.kcPkce?{pkceMethod:"S256"}:{}),loadUserProfileAtStartUp:!1});let{firstValueFrom:c}=yield import("./chunk-DNVQJVP4.js");yield Promise.all([c(t.getOptions().pipe(J(u=>{s.dispatch(new Nt.OptionsSuccessAction({options:u}))}),ne(u=>Ae(new Nt.OptionsFailureAction({error:Pt(u)}))))),c(i.registryUpdate().pipe(J(u=>s.dispatch(new B.RegistryUpdateSuccess(u))),ne(u=>Ae(new B.RegistryUpdateFailure({error:u}))))),c(i.getUser().pipe(J(u=>s.dispatch(new B.ProfileInfoSuccessAction({user:u}))),ne(u=>Ae(new B.ProfileInfoFailureAction({error:Pt(u)}))))),c(i.getLegalEntities().pipe(J(u=>s.dispatch(new B.GetUserSubjectSuccess(u))),ne(u=>Ae(new B.GetUserSubjectFailure({error:u})))))])})}var ts=(()=>{class s{static{this.\u0275fac=function(i){return new(i||s)}}static{this.\u0275mod=pe({type:s,bootstrap:[Gn]})}static{this.\u0275inj=me({providers:[{provide:_i,useFactory:pr,multi:!0,deps:[X,Se,Ee,Li,_e,es]},Jn,{provide:Qe,useClass:Zn,multi:!0},{provide:Qe,useClass:Yn,multi:!0},{provide:Qe,useClass:Xn,multi:!0},{provide:"Window",useValue:window},Pi(Ni()),Ui({prefix:"./assets/i18n/",suffix:".json"}),...Fi],imports:[gt,Vn,Ue,qn,qi,Di,He.forRoot({defaultLanguage:"it"})]})}}return s})();var is={production:!0}
1;is.production&&void 0;Mi().bootstrapModule(ts).catch(s=>console.error(s));

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