1 |
- "use strict";(self.webpackChunkapp_angular=self.webpackChunkapp_angular||[]).push([[962],{70962:(Tt,Tn,fn)=>{fn.d(Tn,{c:()=>Wn});const cn=typeof window<"u"?window:void 0;typeof document<"u"&&document;var F=fn(93630);let J;const kn=i=>i.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Q=i=>(void 0===J&&(J=void 0===i.style.animationName&&void 0!==i.style.webkitAnimationName?"-webkit-":""),J),a=(i,o,s)=>{const u=o.startsWith("animation")?Q(i):"";i.style.setProperty(u+o,s)},E=(i,o)=>{const s=o.startsWith("animation")?Q(i):"";i.style.removeProperty(s+o)},un=[],V=(i=[],o)=>{if(void 0!==o){const s=Array.isArray(o)?o:[o];return[...i,...s]}return i},Wn=i=>{let o,s,u,l,A,v,m,G,k,W,P,O,r,f=[],X=[],Y=[],$=!1,nn={},tn=[],en=[],on={},_=0,j=!1,B=!1,x=!0,L=!1,I=!0,H=!1;const ln=i,rn=[],N=[],Z=[],h=[],p=[],sn=[],dn=[],mn=[],hn=[],pn=[],S=[],Ln="function"==typeof AnimationEffect||void 0!==cn&&"function"==typeof cn.AnimationEffect,C="function"==typeof Element&&"function"==typeof Element.prototype.animate&&Ln,gn=()=>S,yn=(n,t)=>{const e=t.findIndex(c=>c.c===n);e>-1&&t.splice(e,1)},q=(n,t)=>((t?.oneTimeCallback?N:rn).push({c:n,o:t}),r),En=()=>{if(C)S.forEach(n=>{n.cancel()}),S.length=0;else{const n=h.slice();(0,F.r)(()=>{n.forEach(t=>{E(t,"animation-name"),E(t,"animation-duration"),E(t,"animation-timing-function"),E(t,"animation-iteration-count"),E(t,"animation-delay"),E(t,"animation-play-state"),E(t,"animation-fill-mode"),E(t,"animation-direction")})})}},An=()=>{sn.forEach(n=>{n?.parentNode&&n.parentNode.removeChild(n)}),sn.length=0},z=()=>void 0!==A?A:m?m.getFill():"both",D=()=>void 0!==k?k:void 0!==v?v:m?m.getDirection():"normal",M=()=>j?"linear":void 0!==u?u:m?m.getEasing():"linear",b=()=>B?0:void 0!==W?W:void 0!==s?s:m?m.getDuration():0,w=()=>void 0!==l?l:m?m.getIterations():1,K=()=>void 0!==P?P:void 0!==o?o:m?m.getDelay():0,R=()=>{0!==_&&(_--,0===_&&((()=>{an(),hn.forEach(d=>d()),pn.forEach(d=>d());const n=x?1:0,t=tn,e=en,c=on;h.forEach(d=>{const y=d.classList;t.forEach(T=>y.add(T)),e.forEach(T=>y.remove(T));for(const T in c)c.hasOwnProperty(T)&&a(d,T,c[T])}),rn.forEach(d=>d.c(n,r)),N.forEach(d=>d.c(n,r)),N.length=0,I=!0,x&&(L=!0),x=!0})(),m&&m.animationFinish()))},Cn=(n=!0)=>{An();const t=(i=>(i.forEach(o=>{for(const s in o)if(o.hasOwnProperty(s)){const u=o[s];if("easing"===s)o["animation-timing-function"]=u,delete o[s];else{const l=kn(s);l!==s&&(o[l]=u,delete o[s])}}}),i))(f);h.forEach(e=>{if(t.length>0){const c=((i=[])=>i.map(o=>{const s=o.offset,u=[];for(const l in o)o.hasOwnProperty(l)&&"offset"!==l&&u.push(`${l}: ${o[l]};`);return`${100*s}% { ${u.join(" ")} }`}).join(" "))(t);O=void 0!==i?i:(i=>{let o=un.indexOf(i);return o<0&&(o=un.push(i)-1),`ion-animation-${o}`})(c);const d=((i,o,s)=>{var u;const l=(i=>{const o=void 0!==i.getRootNode?i.getRootNode():i;return o.head||o})(s),A=Q(s),v=l.querySelector("#"+i);if(v)return v;const f=(null!==(u=s.ownerDocument)&&void 0!==u?u:document).createElement("style");return f.id=i,f.textContent=`@${A}keyframes ${i} { ${o} } @${A}keyframes ${i}-alt { ${o} }`,l.appendChild(f),f})(O,c,e);sn.push(d),a(e,"animation-duration",`${b()}ms`),a(e,"animation-timing-function",M()),a(e,"animation-delay",`${K()}ms`),a(e,"animation-fill-mode",z()),a(e,"animation-direction",D());const y=w()===1/0?"infinite":w().toString();a(e,"animation-iteration-count",y),a(e,"animation-play-state","paused"),n&&a(e,"animation-name",`${d.id}-alt`),(0,F.r)(()=>{a(e,"animation-name",d.id||null)})}})},bn=(n=!0)=>{(()=>{dn.forEach(c=>c()),mn.forEach(c=>c());const n=X,t=Y,e=nn;h.forEach(c=>{const d=c.classList;n.forEach(y=>d.add(y)),t.forEach(y=>d.remove(y));for(const y in e)e.hasOwnProperty(y)&&a(c,y,e[y])})})(),f.length>0&&(C?(h.forEach(n=>{const t=n.animate(f,{id:ln,delay:K(),duration:b(),easing:M(),iterations:w(),fill:z(),direction:D()});t.pause(),S.push(t)}),S.length>0&&(S[0].onfinish=()=>{R()})):Cn(n)),$=!0},U=n=>{if(n=Math.min(Math.max(n,0),.9999),C)S.forEach(t=>{t.currentTime=t.effect.getComputedTiming().delay+b()*n,t.pause()});else{const t=`-${b()*n}ms`;h.forEach(e=>{f.length>0&&(a(e,"animation-delay",t),a(e,"animation-play-state","paused"))})}},Sn=n=>{S.forEach(t=>{t.effect.updateTiming({delay:K(),duration:b(),easing:M(),iterations:w(),fill:z(),direction:D()})}),void 0!==n&&U(n)},vn=(n=!0,t)=>{(0,F.r)(()=>{h.forEach(e=>{a(e,"animation-name",O||null),a(e,"animation-duration",`${b()}ms`),a(e,"animation-timing-function",M()),a(e,"animation-delay",void 0!==t?`-${t*b()}ms`:`${K()}ms`),a(e,"animation-fill-mode",z()||null),a(e,"animation-direction",D()||null);const c=w()===1/0?"infinite":w().toString();a(e,"animation-iteration-count",c),n&&a(e,"animation-name",`${O}-alt`),(0,F.r)(()=>{a(e,"animation-name",O||null)})})})},g=(n=!1,t=!0,e)=>(n&&p.forEach(c=>{c.update(n,t,e)}),C?Sn(e):vn(t,e),r),wn=()=>{$&&(C?S.forEach(n=>{n.pause()}):h.forEach(n=>{a(n,"animation-play-state","paused")}),H=!0)},bt=()=>{G=void 0,R()},an=()=>{G&&clearTimeout(G)},Fn=n=>new Promise(t=>{n?.sync&&(B=!0,q(()=>B=!1,{oneTimeCallback:!0})),$||bn(),L&&(C?(U(0),Sn()):vn(),L=!1),I&&(_=p.length+1,I=!1);const e=()=>{yn(c,N),t()},c=()=>{yn(e,Z),t()};q(c,{oneTimeCallback:!0}),((n,t)=>{Z.push({c:n,o:{oneTimeCallback:!0}})})(e),p.forEach(d=>{d.play()}),C?(S.forEach(n=>{n.play()}),(0===f.length||0===h.length)&&R()):(()=>{if(an(),(0,F.r)(()=>{h.forEach(n=>{f.length>0&&a(n,"animation-play-state","running")})}),0===f.length||0===h.length)R();else{const n=K()||0,t=b()||0,e=w()||1;isFinite(e)&&(G=setTimeout(bt,n+t*e+100)),((i,o)=>{let s;const u={passive:!0},A=v=>{i===v.target&&(s&&s(),an(),(0,F.r)(()=>{h.forEach(n=>{E(n,"animation-duration"),E(n,"animation-delay"),E(n,"animation-play-state")}),(0,F.r)(R)}))};i&&(i.addEventListener("webkitAnimationEnd",A,u),i.addEventListener("animationend",A,u),s=()=>{i.removeEventListener("webkitAnimationEnd",A,u),i.removeEventListener("animationend",A,u)})})(h[0])}})(),H=!1}),$n=(n,t)=>{const e=f[0];return void 0===e||void 0!==e.offset&&0!==e.offset?f=[{offset:0,[n]:t},...f]:e[n]=t,r};return r={parentAnimation:m,elements:h,childAnimations:p,id:ln,animationFinish:R,from:$n,to:(n,t)=>{const e=f[f.length-1];return void 0===e||void 0!==e.offset&&1!==e.offset?f=[...f,{offset:1,[n]:t}]:e[n]=t,r},fromTo:(n,t,e)=>$n(n,t).to(n,e),parent:n=>(m=n,r),play:Fn,pause:()=>(p.forEach(n=>{n.pause()}),wn(),r),stop:()=>{p.forEach(n=>{n.stop()}),$&&(En(),$=!1),j=!1,B=!1,I=!0,k=void 0,W=void 0,P=void 0,_=0,L=!1,x=!0,H=!1,Z.forEach(n=>n.c(0,r)),Z.length=0},destroy:n=>(p.forEach(t=>{t.destroy(n)}),(n=>{En(),n&&An()})(n),h.length=0,p.length=0,f.length=0,rn.length=0,N.length=0,$=!1,I=!0,r),keyframes:n=>{const t=f!==n;return f=n,t&&(n=>{C?gn().forEach(t=>{if(t.effect.setKeyframes)t.effect.setKeyframes(n);else{const e=new KeyframeEffect(t.effect.target,n,t.effect.getTiming());t.effect=e}}):Cn()})(f),r},addAnimation:n=>{if(null!=n)if(Array.isArray(n))for(const t of n)t.parent(r),p.push(t);else n.parent(r),p.push(n);return r},addElement:n=>{if(null!=n)if(1===n.nodeType)h.push(n);else if(n.length>=0)for(let t=0;t<n.length;t++)h.push(n[t]);else console.error("Invalid addElement value");return r},update:g,fill:n=>(A=n,g(!0),r),direction:n=>(v=n,g(!0),r),iterations:n=>(l=n,g(!0),r),duration:n=>(!C&&0===n&&(n=1),s=n,g(!0),r),easing:n=>(u=n,g(!0),r),delay:n=>(o=n,g(!0),r),getWebAnimations:gn,getKeyframes:()=>f,getFill:z,getDirection:D,getDelay:K,getIterations:w,getEasing:M,getDuration:b,afterAddRead:n=>(hn.push(n),r),afterAddWrite:n=>(pn.push(n),r),afterClearStyles:(n=[])=>{for(const t of n)on[t]="";return r},afterStyles:(n={})=>(on=n,r),afterRemoveClass:n=>(en=V(en,n),r),afterAddClass:n=>(tn=V(tn,n),r),beforeAddRead:n=>(dn.push(n),r),beforeAddWrite:n=>(mn.push(n),r),beforeClearStyles:(n=[])=>{for(const t of n)nn[t]="";return r},beforeStyles:(n={})=>(nn=n,r),beforeRemoveClass:n=>(Y=V(Y,n),r),beforeAddClass:n=>(X=V(X,n),r),onFinish:q,isRunning:()=>0!==_&&!H,progressStart:(n=!1,t)=>(p.forEach(e=>{e.progressStart(n,t)}),wn(),j=n,$||bn(),g(!1,!0,t),r),progressStep:n=>(p.forEach(t=>{t.progressStep(n)}),U(n),r),progressEnd:(n,t,e)=>(j=!1,p.forEach(c=>{c.progressEnd(n,t,e)}),void 0!==e&&(W=e),L=!1,x=!0,0===n?(k="reverse"===D()?"normal":"reverse","reverse"===k&&(x=!1),C?(g(),U(1-t)):(P=(1-t)*b()*-1,g(!1,!1))):1===n&&(C?(g(),U(t)):(P=t*b()*-1,g(!1,!1))),void 0!==n&&(q(()=>{W=void 0,k=void 0,P=void 0},{oneTimeCallback:!0}),m||Fn()),r)}}}}]);
|