vendor: 4,991 bytes, line 1
1import{a as Di}from"./chunk-P3JZIP56.js";import{a as U}from"./chunk-XLQNYZAB.js";import"./chunk-LN3GAGD5.js";import{b as Ci}from"./chunk-N7XPNPEN.js";import{d as Ai}from"./chunk-CNCCU4LT.js";import{a as di}from"./chunk-5KUSON4V.js";import{a as Mi,c as ki}from"./chunk-GIOONPFU.js";import{$b as ri,A as Me,Ac as ie,Bc as De,C as qt,Cc as pe,F as Pe,Fa as Wt,Ga as Ht,Ha as Yt,Lb as ti,Nb as ii,O as it,Ra as Xt,Sa as Jt,T as E,Ta as Zt,Ua as ei,V as R,W as Y,Y as Ne,Yb as ni,Z as T,_b as si,_c as Si,a as Ae,ac as Ce,ad as vi,bd as Ei,ca as $t,cd as Ti,d as xt,da as Ut,dc as oi,dd as bi,ec as ai,ed as Oe,fc as li,gc as ci,gd as wi,hc as ui,ic as hi,id as Pi,jd as Ni,k as Qt,ka as nt,kc as mi,mc as fi,nc as ke,oc as $,rc as st,sc as S,t as Vt,tc as K,ua as Gt,uc as pi,vc as gi,wc as yi,xc as ue,ya as ce,yc as rt,za as X,zc as _i}from"./chunk-UPWIJIG3.js";function Oi(n){return new E(3e3,!1)}function xn(){return new E(3100,!1)}function Qn(){return new E(3101,!1)}function Vn(n){return new E(3001,!1)}function qn(n){return new E(3003,!1)}function $n(n){return new E(3004,!1)}function Ii(n,e){return new E(3005,!1)}function Li(){return new E(3006,!1)}function Fi(){return new E(3007,!1)}function zi(n,e){return new E(3008,!1)}function ji(n){return new E(3002,!1)}function Bi(n,e,t,i,s){return new E(3010,!1)}function Ki(){return new E(3011,!1)}function xi(){return new E(3012,!1)}function Qi(){return new E(3200,!1)}function Vi(){return new E(3202,!1)}function qi(){return new E(3013,!1)}function $i(n){return new E(3014,!1)}function Ui(n){return new E(3015,!1)}function Gi(n){return new E(3016,!1)}function Wi(n,e){return new E(3404,!1)}function Un(n){return new E(3502,!1)}function Hi(n){return new E(3503,!1)}function Yi(){return new E(3300,!1)}function Xi(n){return new E(3504,!1)}function Ji(n){return new E(3301,!1)}function Zi(n,e){return new E(3302,!1)}function en(n){return new E(3303,!1)}function tn(n,e){return new E(3400,!1)}function nn(n){return new E(3401,!1)}function sn(n){return new E(3402,!1)}function rn(n,e){return new E(3505,!1)}function W(n){switch(n.length){case 0:return new ie;case 1:return n[0];default:return new De(n)}}function ct(n,e,t=new Map,i=new Map){let s=[],r=[],o=-1,a=null;if(e.forEach(l=>{let c=l.get("offset"),h=c==o,u=h&&a||new Map;l.forEach((_,y)=>{let m=y,g=_;if(y!=="offset")switch(m=n.normalizePropertyName(m,s),g){case pe:g=t.get(y);break;case K:g=i.get(y);break;default:g=n.normalizeStyleValue(y,m,g,s);break}u.set(m,g)}),h||r.push(u),a=u,o=c}),s.length)throw Un(s);return r}function Re(n,e,t,i){switch(e){case"start":n.onStart(()=>i(t&&ot(t,"start",n)));break;case"done":n.onDone(()=>i(t&&ot(t,"done",n)));break;case"destroy":n.onDestroy(()=>i(t&&ot(t,"destroy",n)));break}}function ot(n,e,t){let i=t.totalTime,s=!!t.disabled,r=Ie(n.element,n.triggerName,n.fromState,n.toState,e||n.phaseName,i??n.totalTime,s),o=n._data;return o!=null&&(r._data=o),r}function Ie(n,e,t,i,s="",r=0,o){return{element:n,triggerName:e,fromState:t,toState:i,phaseName:s,totalTime:r,disabled:!!o}}function I(n,e,t){let i=n.get(e);return i||n.set(e,i=t),i}function ut(n){let e=n.indexOf(":"),t=n.substring(1,e),i=n.slice(e+1);return[t,i]}var Gn=typeof document>"u"?null:document.documentElement;function Le(n){let e=n.parentNode||n.host||null;return e===Gn?null:e}function Wn(n){return n.substring(1,6)=="ebkit"}var ne=null,Ri=!1;function on(n){ne||(ne=Hn()||{},Ri=ne.style?"WebkitAppearance"in ne.style:!1);let e=!0;return ne.style&&!Wn(n)&&(e=n in ne.style,!e&&Ri&&(e="Webkit"+n.charAt(0).toUpperCase()+n.slice(1)in ne.style)),e}function Hn(){return typeof document<"u"?document.body:null}function ht(n,e){for(;e;){if(e===n)return!0;e=Le(e)}return!1}function dt(n,e,t){if(t)return Array.from(n.querySelectorAll(e));let i=n.querySelector(e);return i?[i]:[]}var Yn=1e3,mt="{{",Xn="}}",ft="ng-enter",Fe="ng-leave",ge="ng-trigger",ye=".ng-trigger",pt="ng-animating",ze=".ng-animating";function G(n){if(typeof n=="number")return n;let e=n.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:at(parseFloat(e[1]),e[2])}function at(n,e){switch(e){case"s":return n*Yn;default:return n}}function _e(n,e,t){return n.hasOwnProperty("duration")?n:Zn(n,e,t)}var Jn=/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i;function Zn(n,e,t){let i,s=0,r="";if(typeof n=="string"){let o=n.match(Jn);if(o===null)return e.push(Oi(n)),{duration:0,delay:0,easing:""};i=at(parseFloat(o[1]),o[2]);let a=o[3];a!=null&&(s=at(parseFloat(a),o[4]));let l=o[5];l&&(r=l)}else i=n;if(!t){let o=!1,a=e.length;i<0&&(e.push(xn()),o=!0),s<0&&(e.push(Qn()),o=!0),o&&e.splice(a,0,Oi(n))}return{duration:i,delay:s,easing:r}}function an(n){return n.length?n[0]instanceof Map?n:n.map(e=>new Map(Object.entries(e))):[]}function x(n,e,t){e.forEach((i,s)=>{let r=je(s);t&&!t.has(s)&&t.set(s,n.style[r]),n.style[r]=i})}function J(n,e){e.forEach((t,i)=>{let s=je(i);n.style[s]=""})}function he(n){return Array.isArray(n)?n.length==1?n[0]:yi(n):n}function ln(n,e,t){let i=e.params||{},s=gt(n);
vendor: 48,235 bytes, line 1
1s.length&&s.forEach(r=>{i.hasOwnProperty(r)||t.push(Vn(r))})}var lt=new RegExp(`${mt}\\s*(.+?)\\s*${Xn}`,"g");function gt(n){let e=[];if(typeof n=="string"){let t;for(;t=lt.exec(n);)e.push(t[1]);lt.lastIndex=0}return e}function de(n,e,t){let i=`${n}`,s=i.replace(lt,(r,o)=>{let a=e[o];return a==null&&(t.push(qn(o)),a=""),a.toString()});return s==i?n:s}var es=/-+([a-z0-9])/g;function je(n){return n.replace(es,(...e)=>e[1].toUpperCase())}function cn(n,e){return n===0||e===0}function un(n,e,t){if(t.size&&e.length){let i=e[0],s=[];if(t.forEach((r,o)=>{i.has(o)||s.push(o),i.set(o,r)}),s.length)for(let r=1;r<e.length;r++){let o=e[r];s.forEach(a=>o.set(a,Be(n,a)))}}return e}function L(n,e,t){switch(e.type){case S.Trigger:return n.visitTrigger(e,t);case S.State:return n.visitState(e,t);case S.Transition:return n.visitTransition(e,t);case S.Sequence:return n.visitSequence(e,t);case S.Group:return n.visitGroup(e,t);case S.Animate:return n.visitAnimate(e,t);case S.Keyframes:return n.visitKeyframes(e,t);case S.Style:return n.visitStyle(e,t);case S.Reference:return n.visitReference(e,t);case S.AnimateChild:return n.visitAnimateChild(e,t);case S.AnimateRef:return n.visitAnimateRef(e,t);case S.Query:return n.visitQuery(e,t);case S.Stagger:return n.visitStagger(e,t);default:throw $n(e.type)}}function Be(n,e){return window.getComputedStyle(n)[e]}var Rt=(()=>{class n{validateStyleProperty(t){return on(t)}containsElement(t,i){return ht(t,i)}getParentElement(t){return Le(t)}query(t,i,s){return dt(t,i,s)}computeStyle(t,i,s){return s||""}animate(t,i,s,r,o,a=[],l){return new ie(s,r)}static \u0275fac=function(i){return new(i||n)};static \u0275prov=R({token:n,factory:n.\u0275fac})}return n})(),re=class{static NOOP=new Rt},oe=class{};var ts=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"]),qe=class extends oe{normalizePropertyName(e,t){return je(e)}normalizeStyleValue(e,t,i,s){let r="",o=i.toString().trim();if(ts.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&&s.push(Ii(e,i))}return o+r}};var $e="*";function is(n,e){let t=[];return typeof n=="string"?n.split(/\s*,\s*/).forEach(i=>ns(i,t,e)):t.push(n),t}function ns(n,e,t){if(n[0]==":"){let l=ss(n,t);if(typeof l=="function"){e.push(l);return}n=l}let i=n.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(i==null||i.length<4)return t.push(Ui(n)),e;let s=i[1],r=i[2],o=i[3];e.push(hn(s,o));let a=s==$e&&o==$e;r[0]=="<"&&!a&&e.push(hn(o,s))}function ss(n,e){switch(n){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(Gi(n)),"* => *"}}var Ke=new Set(["true","1"]),xe=new Set(["false","0"]);function hn(n,e){let t=Ke.has(n)||xe.has(n),i=Ke.has(e)||xe.has(e);return(s,r)=>{let o=n==$e||n==s,a=e==$e||e==r;return!o&&t&&typeof s=="boolean"&&(o=s?Ke.has(n):xe.has(n)),!a&&i&&typeof r=="boolean"&&(a=r?Ke.has(e):xe.has(e)),o&&a}}var En=":self",rs=new RegExp(`s*${En}s*,?`,"g");function Tn(n,e,t,i){return new Tt(n).build(e,t,i)}var dn="",Tt=class{_driver;constructor(e){this._driver=e}build(e,t,i){let s=new bt(t);return this._resetContextStyleTimingState(s),L(this,he(e),s)}_resetContextStyleTimingState(e){e.currentQuerySelector=dn,e.collectedStyles=new Map,e.collectedStyles.set(dn,new Map),e.currentTime=0}visitTrigger(e,t){let i=t.queryCount=0,s=t.depCount=0,r=[],o=[];return e.name.charAt(0)=="@"&&t.errors.push(Li()),e.definitions.forEach(a=>{if(this._resetContextStyleTimingState(t),a.type==S.State){let l=a,c=l.name;c.toString().split(/\s*,\s*/).forEach(h=>{l.name=h,r.push(this.visitState(l,t))}),l.name=c}else if(a.type==S.Transition){let l=this.visitTransition(a,t);i+=l.queryCount,s+=l.depCount,o.push(l)}else t.errors.push(Fi())}),{type:S.Trigger,name:e.name,states:r,transitions:o,queryCount:i,depCount:s,options:null}}visitState(e,t){let i=this.visitStyle(e.styles,t),s=e.options&&e.options.params||null;if(i.containsDynamicStyles){let r=new Set,o=s||{};i.styles.forEach(a=>{a instanceof Map&&a.forEach(l=>{gt(l).forEach(c=>{o.hasOwnProperty(c)||r.add(c)})})}),r.size&&t.errors.push(zi(e.name,[...r.values()]))}return{type:S.State,name:e.name,style:i,options:s?{params:s}:null}}visitTransition(e,t){t.queryCount=0,t.depCount=0;let i=L(this,he(e.animation),t),s=is(e.expr,t.errors);return{type:S.Transition,matchers:s,animation:i,queryCount:t.queryCount,depCount:t.depCount,options:se(e.options)}}visitSequence(e,t){return{type:S.Sequence,steps:e.steps.map(i=>L(this,i,t)),options:se(e.options)}}visitGroup(e,t){let i=t.currentTime,s=0,r=e.steps.map(o=>{t.currentTime=i;let a=L(this,o,t);return s=Math.max(s,t.currentTime),a});return t.currentTime=s,{type:S.Group,steps:r,options:se(e.options)}}visitAnimate(e,t){let i=cs(e.timings,t.errors);t.currentAnimateTimings=i;let s,r=e.styles?e.styles:ue({});if(r.type==S.Keyframes)s=this.visitKeyframes(r,t);else{let o=e.styles,a=!1;if(!o){a=!0;let c={};i.easing&&(c.easing=i.easing),o=ue(c)}t.currentTime+=i.duration+i.delay;let l=this.visitStyle(o,t);l.isEmptyStep=a,s=l}return t.currentAnimateTimings=null,{type:S.Animate,timings:i,style:s,options:null}}visitStyle(e,t){let i=this._makeStyleAst(e,t);return this._validateStyleAst(i,t),i}_makeStyleAst(e,t){let i=[],s=Array.isArray(e.styles)?e.styles:[e.styles];for(let a of s)typeof a=="string"?a===K?i.push(a):t.errors.push(ji(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(mt)>=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,s=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),h=c.get(l),u=!0;h&&(r!=s&&r>=h.startTime&&s<=h.endTime&&(t.errors.push(Bi(l,h.startTime,h.endTime,r,s)),u=!1),r=h.startTime),u&&c.set(l,{startTime:r,endTime:s}),t.options&&ln(a,t.options,t.errors)})})}visitKeyframes(e,t){let i={type:S.Keyframes,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push(Ki()),i;let s=1,r=0,o=[],a=!1,l=!1,c=0,h=e.steps.map(A=>{let M=this._makeStyleAst(A,t),k=M.offset!=null?M.offset:ls(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(Qi());let u=e.steps.length,_=0;r>0&&r<u?t.errors.push(Vi()):r==0&&(_=s/(u-1));let y=u-1,m=t.currentTime,g=t.currentAnimateTimings,b=g.duration;return h.forEach((A,M)=>{let k=_>0?M==y?1:_*M:o[M],N=k*b;t.currentTime=m+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:L(this,he(e.animation),t),options:se(e.options)}}visitAnimateChild(e,t){return t.depCount++,{type:S.AnimateChild,options:se(e.options)}}visitAnimateRef(e,t){return{type:S.AnimateRef,animation:this.visitReference(e.animation,t),options:se(e.options)}}visitQuery(e,t){let i=t.currentQuerySelector,s=e.options||{};t.queryCount++,t.currentQuery=e;let[r,o]=os(e.selector);t.currentQuerySelector=i.length?i+" "+r:r,I(t.collectedStyles,t.currentQuerySelector,new Map);let a=L(this,he(e.animation),t);return t.currentQuery=null,t.currentQuerySelector=i,{type:S.Query,selector:r,limit:s.limit||0,optional:!!s.optional,includeSelf:o,animation:a,originalSelector:e.selector,options:se(e.options)}}visitStagger(e,t){t.currentQuery||t.errors.push(qi());let i=e.timings==="full"?{duration:0,delay:0,easing:"full"}:_e(e.timings,t.errors,!0);return{type:S.Stagger,animation:L(this,he(e.animation),t),timings:i,options:null}}};function os(n){let e=!!n.split(/\s*,\s*/).find(t=>t==En);return e&&(n=n.replace(rs,"")),n=n.replace(/@\*/g,ye).replace(/@\w+/g,t=>ye+"-"+t.slice(1)).replace(/:animating/g,ze),[n,e]}function as(n){return n?Ae({},n):null}var bt=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 ls(n){if(typeof n=="string")return null;let e=null;if(Array.isArray(n))n.forEach(t=>{if(t instanceof Map&&t.has("offset")){let i=t;e=parseFloat(i.get("offset")),i.delete("offset")}});else if(n instanceof Map&&n.has("offset")){let t=n;e=parseFloat(t.get("offset")),t.delete("offset")}return e}function cs(n,e){if(n.hasOwnProperty("duration"))return n;if(typeof n=="number"){let r=_e(n,e).duration;return yt(r,0,"")}let t=n;if(t.split(/\s+/).some(r=>r.charAt(0)=="{"&&r.charAt(1)=="{")){let r=yt(0,0,"");return r.dynamic=!0,r.strValue=t,r}let s=_e(t,e);return yt(s.duration,s.delay,s.easing)}function se(n){return n?(n=Ae({},n),n.params&&(n.params=as(n.params))):n={},n}function yt(n,e,t){return{duration:n,delay:e,easing:t}}function It(n,e,t,i,s,r,o=null,a=!1){return{type:1,element:n,keyframes:e,preStyleProps:t,postStyleProps:i,duration:s,delay:r,totalTime:s+r,easing:o,subTimeline:a}}var ve=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()}},us=1,hs=":enter",ds=new RegExp(hs,"g"),ms=":leave",fs=new RegExp(ms,"g");function bn(n,e,t,i,s,r=new Map,o=new Map,a,l,c=[]){return new wt().buildKeyframes(n,e,t,i,s,r,o,a,l,c)}var wt=class{buildKeyframes(e,t,i,s,r,o,a,l,c,h=[]){c=c||new ve;let u=new At(e,t,c,s,r,h,[]);u.options=l;let _=l.delay?G(l.delay):0;u.currentTimeline.delayNextStep(_),u.currentTimeline.setStyles([o],null,u.errors,l),L(this,i,u);let y=u.timelines.filter(m=>m.containsAnimation());if(y.length&&a.size){let m;for(let g=y.length-1;g>=0;g--){let b=y[g];if(b.element===t){m=b;break}}m&&!m.allowOnlyTimelineStyles()&&m.setStyles([a],null,u.errors,l)}return y.length?y.map(m=>m.buildKeyframes()):[It(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 s=t.createSubContext(e.options),r=t.currentTimeline.currentTime,o=this._visitSubInstructions(i,s,s.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 s of e){let r=s?.delay;if(r){let o=typeof r=="number"?r:G(de(r,s?.params??{},t.errors));i.delayNextStep(o)}}}_visitSubInstructions(e,t,i){let r=t.currentTimeline.currentTime,o=i.duration!=null?G(i.duration):null,a=i.delay!=null?G(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),L(this,e.animation,t),t.previousNode=e}visitSequence(e,t){let i=t.subContextCount,s=t,r=e.options;if(r&&(r.params||r.delay)&&(s=t.createSubContext(r),s.transformIntoNewTimeline(),r.delay!=null)){s.previousNode.type==S.Style&&(s.currentTimeline.snapshotCurrentStyles(),s.previousNode=Ue);let o=G(r.delay);s.delayNextStep(o)}e.steps.length&&(e.steps.forEach(o=>L(this,o,s)),s.currentTimeline.applyStylesToKeyframe(),s.subContextCount>i&&s.transformIntoNewTimeline()),t.previousNode=e}visitGroup(e,t){let i=[],s=t.currentTimeline.currentTime,r=e.options&&e.options.delay?G(e.options.delay):0;e.steps.forEach(o=>{let a=t.createSubContext(e.options);r&&a.delayNextStep(r),L(this,o,a),s=Math.max(s,a.currentTimeline.currentTime),i.push(a.currentTimeline)}),i.forEach(o=>t.currentTimeline.mergeTimelineCollectedStyles(o)),t.transformIntoNewTimeline(s),t.previousNode=e}_visitTiming(e,t){if(e.dynamic){let i=e.strValue,s=t.params?de(i,t.params,t.errors):i;return _e(s,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),s=t.currentTimeline;i.delay&&(t.incrementTime(i.delay),s.snapshotCurrentStyles());let r=e.style;r.type==S.Keyframes?this.visitKeyframes(r,t):(t.incrementTime(i.duration),this.visitStyle(r,t),s.applyStylesToKeyframe()),t.currentAnimateTimings=null,t.previousNode=e}visitStyle(e,t){let i=t.currentTimeline,s=t.currentAnimateTimings;!s&&i.hasCurrentStyleProperties()&&i.forwardFrame();let r=s&&s.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,s=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(s+r),t.previousNode=e}visitQuery(e,t){let i=t.currentTimeline.currentTime,s=e.options||{},r=s.delay?G(s.delay):0;r&&(t.previousNode.type===S.Style||i==0&&t.currentTimeline.hasCurrentStyleProperties())&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=Ue);let o=i,a=t.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!s.optional,t.errors);t.currentQueryTotal=a.length;let l=null;a.forEach((c,h)=>{t.currentQueryIndex=h;let u=t.createSubContext(e.options,c);r&&u.delayNextStep(r),c===t.element&&(l=u.currentTimeline),L(this,e.animation,u),u.currentTimeline.applyStylesToKeyframe();let _=u.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,s=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 h=t.currentTimeline;l&&h.delayNextStep(l);let u=h.currentTime;L(this,e.animation,t),t.previousNode=e,i.currentStaggerTime=s.currentTime-u+(s.startTime-i.currentTimeline.startTime)}},Ue={},At=class n{_driver;element;subInstructions;_enterClassName;_leaveClassName;errors;timelines;parentContext=null;currentTimeline;currentAnimateTimings=null;previousNode=Ue;subContextCount=0;options={};currentQueryIndex=0;currentQueryTotal=0;currentStaggerTime=0;constructor(e,t,i,s,r,o,a,l){this._driver=e,this.element=t,this.subInstructions=i,this._enterClassName=s,this._leaveClassName=r,this.errors=o,this.timelines=a,this.currentTimeline=l||new Ge(this._driver,t,0),a.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(e,t){if(!e)return;let i=e,s=this.options;i.duration!=null&&(s.duration=G(i.duration)),i.delay!=null&&(s.delay=G(i.delay));let r=i.params;if(r){let o=s.params;o||(o=this.options.params={}),Object.keys(r).forEach(a=>{(!t||!o.hasOwnProperty(a))&&(o[a]=de(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(s=>{i[s]=t[s]})}}return e}createSubContext(e=null,t,i){let s=t||this.element,r=new n(this._driver,s,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(s,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=Ue,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(e,t,i){let s={duration:t??e.duration,delay:this.currentTimeline.currentTime+(i??0)+e.delay,easing:""},r=new Mt(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,s,e.stretchStartingKeyframe);return this.timelines.push(r),s}incrementTime(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)}delayNextStep(e){e>0&&this.currentTimeline.delayNextStep(e)}invokeQuery(e,t,i,s,r,o){let a=[];if(s&&a.push(this.element),e.length>0){e=e.replace(ds,"."+this._enterClassName),e=e.replace(fs,"."+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($i(t)),a}},Ge=class n{_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,s){this._driver=e,this.element=t,this.startTime=i,this._elementTimelineStylesLookup=s,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 n(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+=us,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||K),this._currentKeyframe.set(t,K);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(e,t,i,s){t&&this._previousKeyframe.set("easing",t);let r=s&&s.params||{},o=ps(e,this._globalTimelineStyles);for(let[a,l]of o){let c=de(l,r,i);this._pendingStyles.set(a,c),this._localTimelineStyles.has(a)||this._backFill.set(a,this._globalTimelineStyles.get(a)??K),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 s=this._styleSummary.get(i);(!s||t.time>s.time)&&this._updateStyle(i,t.value)})}buildKeyframes(){this.applyStylesToKeyframe();let e=new Set,t=new Set,i=this._keyframes.size===1&&this.duration===0,s=[];this._keyframes.forEach((a,l)=>{let c=new Map([...this._backFill,...a]);c.forEach((h,u)=>{h===pe?e.add(u):h===K&&t.add(u)}),i||c.set("offset",l/this.duration),s.push(c)});let r=[...e.values()],o=[...t.values()];if(i){let a=s[0],l=new Map(a);a.set("offset",0),l.set("offset",1),s=[a,l]}return It(this.element,s,r,o,this.duration,this.startTime,this.easing,!1)}},Mt=class extends Ge{keyframes;preStyleProps;postStyleProps;_stretchStartingKeyframe;timings;constructor(e,t,i,s,r,o,a=!1){super(e,t,o.delay),this.keyframes=i,this.preStyleProps=s,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:s}=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",mn(a)),r.push(c);let h=e.length-1;for(let u=1;u<=h;u++){let _=new Map(e[u]),y=_.get("offset"),m=t+y*i;_.set("offset",mn(m/o)),r.push(_)}i=o,t=0,s="",e=r}return It(this.element,e,this.preStyleProps,this.postStyleProps,i,t,s,!0)}};function mn(n,e=3){let t=Math.pow(10,e-1);return Math.round(n*t)/t}function ps(n,e){let t=new Map,i;return n.forEach(s=>{if(s==="*"){i??=e.keys();for(let r of i)t.set(r,K)}else for(let[r,o]of s)t.set(r,o)}),t}function fn(n,e,t,i,s,r,o,a,l,c,h,u,_){return{type:0,element:n,triggerName:e,isRemovalTransition:s,fromState:t,fromStyles:r,toState:i,toStyles:o,timelines:a,queriedElements:l,preStyleProps:c,postStyleProps:h,totalTime:u,errors:_}}var _t={},We=class{_triggerName;ast;_stateStyles;constructor(e,t,i){this._triggerName=e,this.ast=t,this._stateStyles=i}match(e,t,i,s){return gs(this.ast.matchers,e,t,i,s)}buildStyles(e,t,i){let s=this._stateStyles.get("*");return e!==void 0&&(s=this._stateStyles.get(e?.toString())||s),s?s.buildStyles(t,i):new Map}build(e,t,i,s,r,o,a,l,c,h){let u=[],_=this.ast.options&&this.ast.options.params||_t,y=a&&a.params||_t,m=this.buildStyles(i,y,u),g=l&&l.params||_t,b=this.buildStyles(s,g,u),A=new Set,M=new Map,k=new Map,N=s==="void",ae={params:wn(g,_),delay:this.ast.options?.delay},V=h?[]:bn(e,t,this.ast.animation,r,o,m,b,ae,c,u),D=0;return V.forEach(O=>{D=Math.max(O.duration+O.delay,D)}),u.length?fn(t,this._triggerName,i,s,N,m,b,[],[],M,k,D,u):(V.forEach(O=>{let Z=O.element,le=I(M,Z,new Set);O.preStyleProps.forEach(ee=>le.add(ee));let zt=I(k,Z,new Set);O.postStyleProps.forEach(ee=>zt.add(ee)),Z!==t&&A.add(Z)}),fn(t,this._triggerName,i,s,N,m,b,V,[...A.values()],M,k,D))}};function gs(n,e,t,i,s){return n.some(r=>r(e,t,i,s))}function wn(n,e){let t=Ae({},e);return Object.entries(n).forEach(([i,s])=>{s!=null&&(t[i]=s)}),t}var Pt=class{styles;defaultParams;normalizer;constructor(e,t,i){this.styles=e,this.defaultParams=t,this.normalizer=i}buildStyles(e,t){let i=new Map,s=wn(e,this.defaultParams);return this.styles.styles.forEach(r=>{typeof r!="string"&&r.forEach((o,a)=>{o&&(o=de(o,s,t));let l=this.normalizer.normalizePropertyName(a,t);o=this.normalizer.normalizeStyleValue(a,l,o,t),i.set(a,o)})}),i}};function ys(n,e,t){return new Nt(n,e,t)}var Nt=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(s=>{let r=s.options&&s.options.params||{};this.states.set(s.name,new Pt(s.style,r,i))}),pn(this.states,"true","1"),pn(this.states,"false","0"),t.transitions.forEach(s=>{this.transitionFactories.push(new We(e,s,this.states))}),this.fallbackTransition=_s(e,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(e,t,i,s){return this.transitionFactories.find(o=>o.match(e,t,i,s))||null}matchStyles(e,t,i){return this.fallbackTransition.buildStyles(e,t,i)}};function _s(n,e,t){let i=[(o,a)=>!0],s={type:S.Sequence,steps:[],options:null},r={type:S.Transition,animation:s,matchers:i,options:null,queryCount:0,depCount:0};return new We(n,r,e)}function pn(n,e,t){n.has(e)?n.has(t)||n.set(t,n.get(e)):n.has(t)&&n.set(e,n.get(t))}var Ss=new ve,Ct=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=[],s=[],r=Tn(this._driver,t,i,s);if(i.length)throw Hi(i);this._animations.set(e,r)}_buildPlayer(e,t,i){let s=e.element,r=ct(this._normalizer,e.keyframes,t,i);return this._driver.animate(s,r,e.duration,e.delay,e.easing,[],!0)}create(e,t,i={}){let s=[],r=this._animations.get(e),o,a=new Map;if(r?(o=bn(this._driver,t,r,ft,Fe,new Map,new Map,i,Ss,s),o.forEach(h=>{let u=I(a,h.element,new Map);h.postStyleProps.forEach(_=>u.set(_,null))})):(s.push(Yi()),o=[]),s.length)throw Xi(s);a.forEach((h,u)=>{h.forEach((_,y)=>{h.set(y,this._driver.computeStyle(u,y,K))})});let l=o.map(h=>{let u=a.get(h.element);return this._buildPlayer(h,new Map,u)}),c=W(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 Ji(e);return t}listen(e,t,i,s){let r=Ie(t,"","","");return Re(this._getPlayer(e),i,r,s),()=>{}}command(e,t,i,s){if(i=="register"){this.register(e,s[0]);return}if(i=="create"){let o=s[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(s[0]));break;case"destroy":this.destroy(e);break}}},gn="ng-animate-queued",vs=".ng-animate-queued",St="ng-animate-disabled",Es=".ng-animate-disabled",Ts="ng-star-inserted",bs=".ng-star-inserted",ws=[],An={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},As={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Q="__ng_removed",Ee=class{namespaceId;value;options;get params(){return this.options.params}constructor(e,t=""){this.namespaceId=t;let i=e&&e.hasOwnProperty("value"),s=i?e.value:e;if(this.value=Ps(s),i){let r=e,{value:o}=r,a=xt(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(s=>{i[s]==null&&(i[s]=t[s])})}}},Se="void",vt=new Ee(Se),kt=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,j(t,this._hostClassName)}listen(e,t,i,s){if(!this._triggers.has(t))throw Zi(i,t);if(i==null||i.length==0)throw en(t);if(!Ns(i))throw tn(i,t);let r=I(this._elementListeners,e,[]),o={name:t,phase:i,callback:s};r.push(o);let a=I(this._engine.statesByElement,e,new Map);return a.has(t)||(j(e,ge),j(e,ge+"-"+t),a.set(t,vt)),()=>{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 nn(e);return t}trigger(e,t,i,s=!0){let r=this._getTrigger(t),o=new Te(this.id,t,e),a=this._engine.statesByElement.get(e);a||(j(e,ge),j(e,ge+"-"+t),this._engine.statesByElement.set(e,a=new Map));let l=a.get(t),c=new Ee(i,this.id);if(!(i&&i.hasOwnProperty("value"))&&l&&c.absorbOptions(l.options),a.set(t,c),l||(l=vt),!(c.value===Se)&&l.value===c.value){if(!Ds(l.params,c.params)){let g=[],b=r.matchStyles(l.value,l.params,g),A=r.matchStyles(c.value,c.params,g);g.length?this._engine.reportError(g):this._engine.afterFlush(()=>{J(e,b),x(e,A)})}return}let _=I(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),m=!1;if(!y){if(!s)return;y=r.fallbackTransition,m=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:t,transition:y,fromState:l,toState:c,player:o,isFallbackTransition:m}),m||(j(e,gn),o.onStart(()=>{me(e,gn)})),o.onDone(()=>{let g=this.players.indexOf(o);g>=0&&this.players.splice(g,1);let b=this._engine.playersByElement.get(e);if(b){let A=b.indexOf(o);A>=0&&b.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(s=>s.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,ye,!0);i.forEach(s=>{if(s[Q])return;let r=this._engine.fetchNamespacesByElement(s);r.size?r.forEach(o=>o.triggerLeaveAnimation(s,t,!1,!0)):this.clearElementCache(s)}),this._engine.afterFlushAnimationsDone(()=>i.forEach(s=>this.clearElementCache(s)))}triggerLeaveAnimation(e,t,i,s){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 h=this.trigger(e,c,Se,s);h&&a.push(h)}}),a.length)return this._engine.markElementAsRemoved(this.id,e,!0,t,o),i&&W(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 s=new Set;t.forEach(r=>{let o=r.name;if(s.has(o))return;s.add(o);let l=this._triggers.get(o).fallbackTransition,c=i.get(o)||vt,h=new Ee(Se),u=new Te(this.id,o,e);this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:o,transition:l,fromState:c,toState:h,player:u,isFallbackTransition:!0})})}}removeNode(e,t){let i=this._engine;if(e.childElementCount&&this._signalRemovalForInnerTriggers(e,t),this.triggerLeaveAnimation(e,t,!0))return;let s=!1;if(i.totalAnimations){let r=i.players.length?i.playersByQueriedElement.get(e):[];if(r&&r.length)s=!0;else{let o=e;for(;o=o.parentNode;)if(i.statesByElement.get(o)){s=!0;break}}}if(this.prepareLeaveAnimationListeners(e),s)i.markElementAsRemoved(this.id,e,!1,t);else{let r=e[Q];(!r||r===An)&&(i.afterFlush(()=>this.clearElementCache(e)),i.destroyInnerAnimations(e),i._onRemovalComplete(e,t))}}insertNode(e,t){j(e,this._hostClassName)}drainQueuedTransitions(e){let t=[];return this._queue.forEach(i=>{let s=i.player;if(s.destroyed)return;let r=i.element,o=this._elementListeners.get(r);o&&o.forEach(a=>{if(a.name==i.triggerName){let l=Ie(r,i.triggerName,i.fromState.value,i.toState.value);l._data=e,Re(i.player,a.phase,l,a.callback)}}),s.markedForDestroy?this._engine.afterFlush(()=>{s.destroy()}):t.push(i)}),this._queue=[],t.sort((i,s)=>{let r=i.transition.ast.depCount,o=s.transition.ast.depCount;return r==0||o==0?r-o:this._engine.driver.containsElement(i.element,s.element)?1:-1})}destroy(e){this.players.forEach(t=>t.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,e)}},Dt=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 kt(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,s=this.namespacesByHostElement;if(i.length-1>=0){let o=!1,a=this.driver.getParentElement(t);for(;a;){let l=s.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 s.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 s=this._namespaceLookup[e];s&&s.register(t,i)&&this.totalAnimations++}destroy(e,t){e&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{let i=this._fetchNamespace(e);this.namespacesByHostElement.delete(i.hostElement);let s=this._namespaceList.indexOf(i);s>=0&&this._namespaceList.splice(s,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 s of i.values())if(s.namespaceId){let r=this._fetchNamespace(s.namespaceId);r&&t.add(r)}}return t}trigger(e,t,i,s){if(Qe(t)){let r=this._fetchNamespace(e);if(r)return r.trigger(t,i,s),!0}return!1}insertNode(e,t,i,s){if(!Qe(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)}s&&this.collectEnterElement(t)}collectEnterElement(e){this.collectedEnterElements.push(e)}markElementAsDisabled(e,t){t?this.disabledNodes.has(e)||(this.disabledNodes.add(e),j(e,St)):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),me(e,St))}removeNode(e,t,i){if(Qe(t)){let s=e?this._fetchNamespace(e):null;s?s.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,s,r){this.collectedLeaveElements.push(t),t[Q]={namespaceId:e,setForRemoval:s,hasAnimation:i,removedBeforeQueried:!1,previousTriggersValues:r}}listen(e,t,i,s,r){return Qe(t)?this._fetchNamespace(e).listen(t,i,s,r):()=>{}}_buildInstruction(e,t,i,s,r){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,i,s,e.fromState.options,e.toState.options,t,r)}destroyInnerAnimations(e){let t=this.driver.query(e,ye,!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 W(this.players).onDone(()=>e());e()})}processLeaveNode(e){let t=e[Q];if(t&&t.setForRemoval){if(e[Q]=An,t.namespaceId){this.destroyInnerAnimations(e);let i=this._fetchNamespace(t.namespaceId);i&&i.clearElementCache(e)}this._onRemovalComplete(e,t.setForRemoval)}e.classList?.contains(St)&&this.markElementAsDisabled(e,!1),this.driver.query(e,Es,!0).forEach(i=>{this.markElementAsDisabled(i,!1)})}flush(e=-1){let t=[];if(this.newHostElements.size&&(this.newHostElements.forEach((i,s)=>this._balanceNamespaceList(i,s)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let i=0;i<this.collectedEnterElements.length;i++){let s=this.collectedEnterElements[i];j(s,Ts)}if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){let i=[];try{t=this._flushAnimations(i,e)}finally{for(let s=0;s<i.length;s++)i[s]()}}else for(let i=0;i<this.collectedLeaveElements.length;i++){let s=this.collectedLeaveElements[i];this.processLeaveNode(s)}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?W(t).onDone(()=>{i.forEach(s=>s())}):i.forEach(s=>s())}}reportError(e){throw sn(e)}_flushAnimations(e,t){let i=new ve,s=[],r=new Map,o=[],a=new Map,l=new Map,c=new Map,h=new Set;this.disabledNodes.forEach(d=>{h.add(d);let f=this.driver.query(d,vs,!0);for(let p=0;p<f.length;p++)h.add(f[p])});let u=this.bodyNode,_=Array.from(this.statesByElement.keys()),y=Sn(_,this.collectedEnterElements),m=new Map,g=0;y.forEach((d,f)=>{let p=ft+g++;m.set(f,p),d.forEach(v=>j(v,p))});let b=[],A=new Set,M=new Set;for(let d=0;d<this.collectedLeaveElements.length;d++){let f=this.collectedLeaveElements[d],p=f[Q];p&&p.setForRemoval&&(b.push(f),A.add(f),p.hasAnimation?this.driver.query(f,bs,!0).forEach(v=>A.add(v)):M.add(f))}let k=new Map,N=Sn(_,Array.from(A));N.forEach((d,f)=>{let p=Fe+g++;k.set(f,p),d.forEach(v=>j(v,p))}),e.push(()=>{y.forEach((d,f)=>{let p=m.get(f);d.forEach(v=>me(v,p))}),N.forEach((d,f)=>{let p=k.get(f);d.forEach(v=>me(v,p))}),b.forEach(d=>{this.processLeaveNode(d)})});let ae=[],V=[];for(let d=this._namespaceList.length-1;d>=0;d--)this._namespaceList[d].drainQueuedTransitions(t).forEach(p=>{let v=p.player,P=p.element;if(ae.push(v),this.collectedEnterElements.length){let C=P[Q];if(C&&C.setForMove){if(C.previousTriggersValues&&C.previousTriggersValues.has(p.triggerName)){let te=C.previousTriggersValues.get(p.triggerName),z=this.statesByElement.get(p.element);if(z&&z.has(p.triggerName)){let we=z.get(p.triggerName);we.value=te,z.set(p.triggerName,we)}}v.destroy();return}}let q=!u||!this.driver.containsElement(u,P),F=k.get(P),H=m.get(P),w=this._buildInstruction(p,i,H,F,q);if(w.errors&&w.errors.length){V.push(w);return}if(q){v.onStart(()=>J(P,w.fromStyles)),v.onDestroy(()=>x(P,w.toStyles)),s.push(v);return}if(p.isFallbackTransition){v.onStart(()=>J(P,w.fromStyles)),v.onDestroy(()=>x(P,w.toStyles)),s.push(v);return}let Kt=[];w.timelines.forEach(C=>{C.stretchStartingKeyframe=!0,this.disabledNodes.has(C.element)||Kt.push(C)}),w.timelines=Kt,i.append(P,w.timelines);let Kn={instruction:w,player:v,element:P};o.push(Kn),w.queriedElements.forEach(C=>I(a,C,[]).push(v)),w.preStyleProps.forEach((C,te)=>{if(C.size){let z=l.get(te);z||l.set(te,z=new Set),C.forEach((we,tt)=>z.add(tt))}}),w.postStyleProps.forEach((C,te)=>{let z=c.get(te);z||c.set(te,z=new Set),C.forEach((we,tt)=>z.add(tt))})});if(V.length){let d=[];V.forEach(f=>{d.push(rn(f.triggerName,f.errors))}),ae.forEach(f=>f.destroy()),this.reportError(d)}let D=new Map,O=new Map;o.forEach(d=>{let f=d.element;i.has(f)&&(O.set(f,f),this._beforeAnimationBuild(d.player.namespaceId,d.instruction,D))}),s.forEach(d=>{let f=d.element;this._getPreviousPlayers(f,!1,d.namespaceId,d.triggerName,null).forEach(v=>{I(D,f,[]).push(v),v.destroy()})});let Z=b.filter(d=>vn(d,l,c)),le=new Map;_n(le,this.driver,M,c,K).forEach(d=>{vn(d,l,c)&&Z.push(d)});let ee=new Map;y.forEach((d,f)=>{_n(ee,this.driver,new Set(d),l,pe)}),Z.forEach(d=>{let f=le.get(d),p=ee.get(d);le.set(d,new Map([...f?.entries()??[],...p?.entries()??[]]))});let et=[],jt=[],Bt={};o.forEach(d=>{let{element:f,player:p,instruction:v}=d;if(i.has(f)){if(h.has(f)){p.onDestroy(()=>x(f,v.toStyles)),p.disabled=!0,p.overrideTotalTime(v.totalTime),s.push(p);return}let P=Bt;if(O.size>1){let F=f,H=[];for(;F=F.parentNode;){let w=O.get(F);if(w){P=w;break}H.push(F)}H.forEach(w=>O.set(w,P))}let q=this._buildAnimation(p.namespaceId,v,D,r,ee,le);if(p.setRealPlayer(q),P===Bt)et.push(p);else{let F=this.playersByElement.get(P);F&&F.length&&(p.parentPlayer=W(F)),s.push(p)}}else J(f,v.fromStyles),p.onDestroy(()=>x(f,v.toStyles)),jt.push(p),h.has(f)&&s.push(p)}),jt.forEach(d=>{let f=r.get(d.element);if(f&&f.length){let p=W(f);d.setRealPlayer(p)}}),s.forEach(d=>{d.parentPlayer?d.syncPlayerEvents(d.parentPlayer):d.destroy()});for(let d=0;d<b.length;d++){let f=b[d],p=f[Q];if(me(f,Fe),p&&p.hasAnimation)continue;let v=[];if(a.size){let q=a.get(f);q&&q.length&&v.push(...q);let F=this.driver.query(f,ze,!0);for(let H=0;H<F.length;H++){let w=a.get(F[H]);w&&w.length&&v.push(...w)}}let P=v.filter(q=>!q.destroyed);P.length?Cs(this,f,P):this.processLeaveNode(f)}return b.length=0,et.forEach(d=>{this.players.push(d),d.onDone(()=>{d.destroy();let f=this.players.indexOf(d);this.players.splice(f,1)}),d.play()}),et}afterFlush(e){this._flushFns.push(e)}afterFlushAnimationsDone(e){this._whenQuietFns.push(e)}_getPreviousPlayers(e,t,i,s,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==Se;a.forEach(c=>{c.queued||!l&&c.triggerName!=s||o.push(c)})}}return(i||s)&&(o=o.filter(a=>!(i&&i!=a.namespaceId||s&&s!=a.triggerName))),o}_beforeAnimationBuild(e,t,i){let s=t.triggerName,r=t.element,o=t.isRemovalTransition?void 0:e,a=t.isRemovalTransition?void 0:s;for(let l of t.timelines){let c=l.element,h=c!==r,u=I(i,c,[]);this._getPreviousPlayers(c,h,o,a,t.toState).forEach(y=>{let m=y.getRealPlayer();m.beforeDestroy&&m.beforeDestroy(),y.destroy(),u.push(y)})}J(r,t.fromStyles)}_buildAnimation(e,t,i,s,r,o){let a=t.triggerName,l=t.element,c=[],h=new Set,u=new Set,_=t.timelines.map(m=>{let g=m.element;h.add(g);let b=g[Q];if(b&&b.removedBeforeQueried)return new ie(m.duration,m.delay);let A=g!==l,M=ks((i.get(g)||ws).map(D=>D.getRealPlayer())).filter(D=>{let O=D;return O.element?O.element===g:!1}),k=r.get(g),N=o.get(g),ae=ct(this._normalizer,m.keyframes,k,N),V=this._buildPlayer(m,ae,M);if(m.subTimeline&&s&&u.add(g),A){let D=new Te(e,a,g);D.setRealPlayer(V),c.push(D)}return V});c.forEach(m=>{I(this.playersByQueriedElement,m.element,[]).push(m),m.onDone(()=>Ms(this.playersByQueriedElement,m.element,m))}),h.forEach(m=>j(m,pt));let y=W(_);return y.onDestroy(()=>{h.forEach(m=>me(m,pt)),x(l,t.toStyles)}),u.forEach(m=>{I(s,m,[]).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 ie(e.duration,e.delay)}},Te=class{namespaceId;triggerName;element;_player=new ie;_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(s=>Re(e,i,void 0,s))}),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){I(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 Ms(n,e,t){let i=n.get(e);if(i){if(i.length){let s=i.indexOf(t);i.splice(s,1)}i.length==0&&n.delete(e)}return i}function Ps(n){return n??null}function Qe(n){return n&&n.nodeType===1}function Ns(n){return n=="start"||n=="done"}function yn(n,e){let t=n.style.display;return n.style.display=e??"none",t}function _n(n,e,t,i,s){let r=[];t.forEach(l=>r.push(yn(l)));let o=[];i.forEach((l,c)=>{let h=new Map;l.forEach(u=>{let _=e.computeStyle(c,u,s);h.set(u,_),(!_||_.length==0)&&(c[Q]=As,o.push(c))}),n.set(c,h)});let a=0;return t.forEach(l=>yn(l,r[a++])),o}function Sn(n,e){let t=new Map;if(n.forEach(a=>t.set(a,[])),e.length==0)return t;let i=1,s=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:s.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 j(n,e){n.classList?.add(e)}function me(n,e){n.classList?.remove(e)}function Cs(n,e,t){W(t).onDone(()=>n.processLeaveNode(e))}function ks(n){let e=[];return Mn(n,e),e}function Mn(n,e){for(let t=0;t<n.length;t++){let i=n[t];i instanceof De?Mn(i.players,e):e.push(i)}}function Ds(n,e){let t=Object.keys(n),i=Object.keys(e);if(t.length!=i.length)return!1;for(let s=0;s<t.length;s++){let r=t[s];if(!e.hasOwnProperty(r)||n[r]!==e[r])return!1}return!0}function vn(n,e,t){let i=t.get(n);if(!i)return!1;let s=e.get(n);return s?i.forEach(r=>s.add(r)):e.set(n,i),t.delete(n),!0}var fe=class{_driver;_normalizer;_transitionEngine;_timelineEngine;_triggerCache={};onRemovalComplete=(e,t)=>{};constructor(e,t,i){this._driver=t,this._normalizer=i,this._transitionEngine=new Dt(e.body,t,i),this._timelineEngine=new Ct(e.body,t,i),this._transitionEngine.onRemovalComplete=(s,r)=>this.onRemovalComplete(s,r)}registerTrigger(e,t,i,s,r){let o=e+"-"+s,a=this._triggerCache[o];if(!a){let l=[],c=[],h=Tn(this._driver,r,l,c);if(l.length)throw Wi(s,l);a=ys(s,h,this._normalizer),this._triggerCache[o]=a}this._transitionEngine.registerTrigger(t,s,a)}register(e,t){this._transitionEngine.register(e,t)}destroy(e,t){this._transitionEngine.destroy(e,t)}onInsert(e,t,i,s){this._transitionEngine.insertNode(e,t,i,s)}onRemove(e,t,i){this._transitionEngine.removeNode(e,t,i)}disableAnimations(e,t){this._transitionEngine.markElementAsDisabled(e,t)}process(e,t,i,s){if(i.charAt(0)=="@"){let[r,o]=ut(i),a=s;this._timelineEngine.command(r,t,o,a)}else this._transitionEngine.trigger(e,t,i,s)}listen(e,t,i,s,r){if(i.charAt(0)=="@"){let[o,a]=ut(i);return this._timelineEngine.listen(o,t,a,r)}return this._transitionEngine.listen(e,t,i,s,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 Os(n,e){let t=null,i=null;return Array.isArray(e)&&e.length?(t=Et(e[0]),e.length>1&&(i=Et(e[e.length-1]))):e instanceof Map&&(t=Et(e)),t||i?new Rs(n,t,i):null}var Rs=(()=>{class n{_element;_startStyles;_endStyles;static initialStylesByElement=new WeakMap;_state=0;_initialStyles;constructor(t,i,s){this._element=t,this._startStyles=i,this._endStyles=s;let r=n.initialStylesByElement.get(t);r||n.initialStylesByElement.set(t,r=new Map),this._initialStyles=r}start(){this._state<1&&(this._startStyles&&x(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(x(this._element,this._initialStyles),this._endStyles&&(x(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(n.initialStylesByElement.delete(this._element),this._startStyles&&(J(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(J(this._element,this._endStyles),this._endStyles=null),x(this._element,this._initialStyles),this._state=3)}}return n})();function Et(n){let e=null;return n.forEach((t,i)=>{Is(i)&&(e=e||new Map,e.set(i,t))}),e}function Is(n){return n==="display"||n==="position"}var He=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,s){this.element=e,this.keyframes=t,this.options=i,this._specialStyles=s,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,s)=>{s!=="offset"&&e.set(s,this._finished?i:Be(this.element,s))}),this.currentSnapshot=e}triggerCallback(e){let t=e==="start"?this._onStartFns:this._onDoneFns;t.forEach(i=>i()),t.length=0}},Ye=class{validateStyleProperty(e){return!0}validateAnimatableStyleProperty(e){return!0}containsElement(e,t){return ht(e,t)}getParentElement(e){return Le(e)}query(e,t,i){return dt(e,t,i)}computeStyle(e,t,i){return Be(e,t)}animate(e,t,i,s,r,o=[]){let a=s==0?"both":"forwards",l={duration:i,delay:s,fill:a};r&&(l.easing=r);let c=new Map,h=o.filter(y=>y instanceof He);cn(i,s)&&h.forEach(y=>{y.currentSnapshot.forEach((m,g)=>c.set(g,m))});let u=an(t).map(y=>new Map(y));u=un(e,u,c);let _=Os(e,u);return new He(e,u,l,_)}};var Ve="@",Pn="@.disabled",Xe=class{namespaceId;delegate;engine;_onDestroy;\u0275type=0;constructor(e,t,i,s){this.namespaceId=e,this.delegate=t,this.engine=i,this._onDestroy=s}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,s=!0){this.delegate.insertBefore(e,t,i),this.engine.onInsert(this.namespaceId,t,e,s)}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,s){this.delegate.setAttribute(e,t,i,s)}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,s){this.delegate.setStyle(e,t,i,s)}removeStyle(e,t,i){this.delegate.removeStyle(e,t,i)}setProperty(e,t,i){t.charAt(0)==Ve&&t==Pn?this.disableAnimations(e,!!i):this.delegate.setProperty(e,t,i)}setValue(e,t){this.delegate.setValue(e,t)}listen(e,t,i,s){return this.delegate.listen(e,t,i,s)}disableAnimations(e,t){this.engine.disableAnimations(e,t)}},Ot=class extends Xe{factory;constructor(e,t,i,s,r){super(t,i,s,r),this.factory=e,this.namespaceId=t}setProperty(e,t,i){t.charAt(0)==Ve?t.charAt(1)=="."&&t==Pn?(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,s){if(t.charAt(0)==Ve){let r=Ls(e),o=t.slice(1),a="";return o.charAt(0)!=Ve&&([o,a]=Fs(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,s)}};function Ls(n){switch(n){case"body":return document.body;case"document":return document;case"window":return window;default:return n}}function Fs(n){let e=n.indexOf("."),t=n.substring(0,e),i=n.slice(e+1);return[t,i]}var Je=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=(s,r)=>{r?.removeChild(null,s)}}createRenderer(e,t){let s=this.delegate.createRenderer(e,t);if(!e||!t?.data?.animation){let c=this._rendererCache,h=c.get(s);if(!h){let u=()=>c.delete(s);h=new Xe("",s,this.engine,u),c.set(s,h)}return h}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 Ot(this,o,s,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 s=this._animationCallbacksBuffer;s.length==0&&queueMicrotask(()=>{this._zone.run(()=>{s.forEach(r=>{let[o,a]=r;o(a)}),this._animationCallbacksBuffer=[]})}),s.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 js=(()=>{class n extends fe{constructor(t,i,s){super(t,i,s)}ngOnDestroy(){this.flush()}static \u0275fac=function(i){return new(i||n)(Ne(Ut),Ne(re),Ne(oe))};static \u0275prov=R({token:n,factory:n.\u0275fac})}return n})();function Bs(){return new qe}function Ks(n,e,t){return new Je(n,e,t)}var Cn=[{provide:oe,useFactory:Bs},{provide:fe,useClass:js},{provide:Gt,useFactory:Ks,deps:[si,fe,Wt]}],xs=[{provide:re,useClass:Rt},{provide:nt,useValue:"NoopAnimations"},...Cn],Nn=[{provide:re,useFactory:()=>new Ye},{provide:nt,useFactory:()=>"BrowserAnimations"},...Cn],kn=(()=>{class n{static withConfig(t){return{ngModule:n,providers:t.disableAnimations?xs:Nn}}static \u0275fac=function(i){return new(i||n)};static \u0275mod=X({type:n});static \u0275inj=Y({providers:Nn,imports:[Ce]})}return n})();var Ze=class{constructor(e,t="/assets/i18n/",i=".json"){this.http=e,this.prefix=t,this.suffix=i}getTranslation(e){return this.http.get(`${this.prefix}${e}${this.suffix}`)}};var Dn=(()=>{class n{handle(){return""}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275prov=R({token:n,factory:n.\u0275fac})}}return n})();var On=(()=>{class n{constructor(){this.router=T($),this.authService=T(U),this.isRefreshing=!1,this.refreshTokenSubject=new Qt(null)}intercept(t,i){let s=t.body instanceof FormData?t.body:Ci(t.body);return this.authService.getJwtToken()&&(t=this.addToken(t,this.authService.getJwtToken(),s)),i.handle(t).pipe(qt(r=>(console.log(r),r instanceof oi&&r.status===401&&!r.url.includes("auth")&&!r.url.includes("stat")?this.handle401Error(t,i,s):Vt(r))))}addToken(t,i,s){return!t.url.includes("amoproxy")&&!t.url.includes("token")?t.clone({setHeaders:{Authorization:`Bearer ${i}`},body:s}):t}handle401Error(t,i,s){if(!t.url.includes("amoproxy"))return this.isRefreshing?this.refreshTokenSubject.pipe(Me(r=>r!=null),Pe(1),it(r=>i.handle(this.addToken(t,r,s)))):(this.isRefreshing=!0,this.refreshTokenSubject.next(null),this.authService.refreshToken().pipe(it(r=>(this.isRefreshing=!1,this.refreshTokenSubject.next(r.access_token),i.handle(this.addToken(t,r.access_token,s))))))}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275prov=R({token:n,factory:n.\u0275fac})}}return n})();var Rn=(()=>{class n extends ke{constructor(){super(),this.title=T(hi),this.translate=T(Oe)}updateTitle(t){let i=this.buildTitle(t);i!==void 0?this.title.setTitle(this.translate.instant(i)):this.title.setTitle("LeadGenic")}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275prov=R({token:n,factory:n.\u0275fac})}}return n})();var Lt=(()=>{class n{constructor(){this.router=T($),this.authService=T(U)}canActivate(){return this.canLoad()}canLoad(){return this.authService.isAuthenticated()?!0:(this.router.navigate(["/account/login"]),!1)}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275prov=R({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})();var In=(()=>{class n{constructor(){this.authService=T(U),this.router=T($)}canActivate(){return this.authService.isAuthenticated()&&this.router.navigate(["/"]),!this.authService.isAuthenticated()}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275prov=R({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})();var Ln=(()=>{class n{constructor(){this.router=T($),this.authService=T(U)}ngOnInit(){this.authService.logout().subscribe()}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275cmp=ce({type:n,selectors:[["app-logout"]],standalone:!1,decls:0,vars:0,template:function(i,s){},encapsulation:2})}}return n})();var Qs=[{path:"",loadChildren:()=>import("./chunk-UJ6IYDJO.js").then(n=>
1n.HomeModule),canActivate:[Lt]},{path:"payment",loadChildren:()=>import("./chunk-2YWQWCSI.js").then(n=>n.PaymentModule),canActivate:[Lt]},{path:"account",loadChildren:()=>import("./chunk-TJ5IS5FM.js").then(n=>n.AccountModule),canActivate:[In]},{path:"logout",component:Ln},{path:"**",redirectTo:""}],Ft=(()=>{class n{static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275mod=X({type:n})}static{this.\u0275inj=Y({imports:[st.forRoot(Qs,{}),st]})}}return n})();var Fn=(()=>{class n{constructor(){}ngOnInit(){this.chatInit()}chatInit(){this.loadScript("https://code.jivo.ru/widget/3MbVoIMWGo",!0)}loadScript(t,i){let s=document.createElement("script");i?s.src=t:s.innerHTML=t,s.async=!0,document.head.appendChild(s)}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275cmp=ce({type:n,selectors:[["app-chat"]],standalone:!1,decls:0,vars:0,template:function(i,s){},styles:[".chat-avatar[_ngcontent-%COMP%]{width:36px;height:36px;float:left;margin-right:10px}.chat-user-name[_ngcontent-%COMP%]{padding:10px}.chat-user[_ngcontent-%COMP%]{padding:8px 10px;border-bottom:1px solid #e7eaec}.chat-user[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:inherit}.chat-view[_ngcontent-%COMP%]{z-index:1070}.chat-users[_ngcontent-%COMP%], .chat-statistic[_ngcontent-%COMP%]{margin-left:-30px}@media (max-width: 992px){.chat-users[_ngcontent-%COMP%], .chat-statistic[_ngcontent-%COMP%]{margin-left:0}}.chat-view[_ngcontent-%COMP%] .ibox-content[_ngcontent-%COMP%]{padding:0}.chat-message[_ngcontent-%COMP%]{padding:10px 20px}.message-avatar[_ngcontent-%COMP%]{height:36px;width:36px;border-radius:50%;margin-top:1px}.chat-discussion[_ngcontent-%COMP%] .chat-message[_ngcontent-%COMP%] .message-avatar[_ngcontent-%COMP%]{float:left;margin-right:10px}.chat-discussion[_ngcontent-%COMP%] .message[_ngcontent-%COMP%]{background-color:#f7f8fa;text-align:left;display:block;padding:10px 20px;position:relative;border-radius:4px}.chat-discussion[_ngcontent-%COMP%] .chat-message[_ngcontent-%COMP%] .message-date[_ngcontent-%COMP%]{float:right}.chat-discussion[_ngcontent-%COMP%] .chat-message[_ngcontent-%COMP%] .message[_ngcontent-%COMP%]{text-align:left;margin-left:55px}.message-date[_ngcontent-%COMP%]{font-size:.65rem;color:#888}.message-content[_ngcontent-%COMP%]{display:block}.chat-users[_ngcontent-%COMP%]{overflow-y:auto;height:400px}"]})}}return n})();var zn=(()=>{class n{static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275mod=X({type:n})}static{this.\u0275inj=Y({imports:[ni,Ft,Ft]})}}return n})();var jn=(()=>{class n{constructor(){this.cd=T(ti),this.location=T(ii),this.translate=T(Oe),this.toastr=T(vi),this.authService=T(U),this.analyticsService=T(ki),this.gateScriptService=T(Di),this.injector=T($t),this.router=T($),this.state="out",this.translate.use("ru")}ngAfterViewInit(){this.state=this.state&&this.state==="in"?"out":"in",this.cd.detectChanges()}ngOnInit(){this.handleAuth(),this.initAnalytics(),this.initGateScript()}handleAuth(){let t=this.location.path();if(t.includes("callback/yandex")){let i=t.split("="),s={ticketId:i[1].slice(0,-5),authorizationCode:i[2]};this.authService.loginYandex(s).subscribe(r=>{r||this.toastr.error(this.translate.instant("login.error_login"),this.translate.instant("global.error"))})}if(t.includes("refId")){let i=t.split("=");this.authService.refId=i[1]}}initAnalytics(){this.analyticsService.initGoogleAnalytics(),this.analyticsService.initYandexMetrika(),this.analyticsService.initMixpanel()}initGateScript(){this.router.events.pipe(Me(t=>t instanceof mi),Pe(1)).subscribe(t=>{/^\/payment(?:\/|$)/.test(t.urlAfterRedirects)||Ht(()=>this.gateScriptService.load(),{injector:this.injector})})}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275cmp=ce({type:n,selectors:[["app-root"]],standalone:!1,decls:3,vars:1,consts:[[1,"fade-animation"]],template:function(i,s){i&1&&(Jt(0,"div",0),ei(1,"app-chat")(2,"router-outlet"),Zt()),i&2&&Xt("@fadeIn",s.state)},dependencies:[fi,Fn],styles:[".fade-animation[_ngcontent-%COMP%]{width:100%;height:100%}"],data:{animation:[pi("fadeIn",[rt("out",ue({opacity:0}
1)),rt("in",ue({opacity:1})),_i("out => in",gi("1000ms ease-in"))])]}})}}return n})();var Bn=(()=>{class n{static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275mod=X({type:n,bootstrap:[jn]})}static{this.\u0275inj=Y({providers:[Mi,{provide:li,useClass:On,multi:!0},Yt(()=>Us(T(Ni))()),{provide:ke,useClass:Rn},ci(ui())],imports:[Ce,kn,Si,Pi.forRoot(),wi.forRoot({loader:{provide:Ti,useFactory:$s,deps:[ai]},useDefaultLang:!0,missingTranslationHandler:{provide:bi,useClass:Dn}}),Ei.forRoot({newestOnTop:!1,progressBar:!1,positionClass:"toast-top-right",preventDuplicates:!1,timeOut:3e3,extendedTimeOut:1e3}),Ai,zn]})}}return n})();function $s(n){return new Ze(n,"./assets/locale/",".json")}function Us(n){return()=>n.loadConfig()}di.production&&(Gs(),Ws(),Hs(),Ys(),void 0);ri().bootstrapModule(Bn).catch(n=>console.error(n));function Gs(){let n="https://www.googletagmanager.com/gtag/js?id=G-9TFSBPPEBV",e=`window.dataLayer = window.dataLayer || []; 2 function gtag(){dataLayer.push(arguments);} 3 gtag('js', new Date());`;be(n,!0),be(e)}function Ws(){be(`(function(m,e,t,r,i,k,a){m[i]=m[i]||function(){(m[i].a=m[i].a||[]).push(arguments)}; 4 m[i].l=1*new Date(); 5 for (var j = 0; j < document.scripts.length; j++) {if (document.scripts[j].src === r) { return; }} 6 k=e.createElement(t),a=e.getElementsByTagName(t)[0],k.async=1,k.src=r,a.parentNode.insertBefore(k,a)}) 7 (window, document, "script", "https://mc.yandex.ru/metrika/tag.js", "ym");`)}function Hs(){be(`(function(f,b){if(!b.__SV){var e,g,i,h;window.mixpanel=b;b._i=[];b.init=function(e,f,c){function g(a,d){var b=d.split(".");2==b.length&&(a=a[b[0]],d=b[1]);a[d]=function(){a.push([d].concat(Array.prototype.slice.call(arguments,0)))}}var a=b;"undefined"!==typeof c?a=b[c]=[]:c="mixpanel";a.people=a.people||[];a.toString=function(a){var d="mixpanel";"mixpanel"!==c&&(d+="."+c);a||(d+=" (stub)");return d};a.people.toString=function(){return a.toString(1)+".people (stub)"};i="disable time_event track track_pageview track_links track_forms track_with_groups add_group set_group remove_group register register_once alias unregister identify name_tag set_config reset opt_in_tracking opt_out_tracking has_opted_in_tracking has_opted_out_tracking clear_opt_in_out_tracking start_batch_senders people.set people.set_once people.unset people.increment people.append people.union people.track_charge people.clear_charges people.delete_user people.remove".split(" "); 8 for(h=0;h<i.length;h++)g(a,i[h]);var j="set set_once union unset remove delete".split(" ");a.get_group=function(){function b(c){d[c]=function(){call2_args=arguments;call2=[c].concat(Array.prototype.slice.call(call2_args,0));a.push([e,call2])}}for(var d={},e=["get_group"].concat(Array.prototype.slice.call(arguments,0)),c=0;c<j.length;c++)b(j[c]);return d};b._i.push([e,f,c])};b.__SV=1.2;e=f.createElement("script");e.type="text/javascript";e.async=!0;e.src="undefined"!==typeof MIXPANEL_CUSTOM_LIB_URL? 9 MIXPANEL_CUSTOM_LIB_URL:"file:"===f.location.protocol&&"//cdn.mxpnl.com/libs/mixpanel-2-latest.min.js".match(/^\\/\\//)?"https://cdn.mxpnl.com/libs/mixpanel-2-latest.min.js":"//cdn.mxpnl.com/libs/mixpanel-2-latest.min.js";g=f.getElementsByTagName("script")[0];g.parentNode.insertBefore(e,g)}})(document,window.mixpanel||[]);`)}function Ys(){be(`(function (d, w, id) { 10 if (d.getElementById(id)) return; 11 var ts = d.createElement("script"); ts.type = "text/javascript"; ts.async = true; ts.id = id; 12 ts.src = "https://top-fwz1.mail.ru/js/code.js"; 13 var f = function () {var s = d.getElementsByTagName("script")[0]; s.parentNode.insertBefore(ts, s);}; 14 if (w.opera == "[object Opera]") { d.addEventListener("DOMContentLoaded", f, false); } else { f(); } 15 })(document, window, "tmr-code");`)}function be(n,e){let t=document.createElement("script");e?t.src=n:t.innerHTML=n,t.async=!0,document.head.appendChild(t)}
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.