1import{b as Xn}from"./chunk-73JIH66B.js";import{a as Kn,b as Bn,c as xn,d as Un,e as xe,f as qn,g as Vn,h as Gn,i as Qn,j as jn,q as Hn,s as Yn}from"./chunk-LSXWQTC3.js";import{g as Be,i as Cn,ia as $n,j as Pn,k as ht,r as In}from"./chunk-VF5KTPML.js";import"./chunk-VK646FJK.js";import{a as Wn}from"./chunk-5S6T5LZS.js";import{d as wn,e as bn,f as An,j as kn}from"./chunk-7YJOGRB6.js";import{a as u,b as I}from"./chunk-WX4VUYCL.js";import{g as zn}from"./chunk-NBT5X4FN.js";import{$ as Nn,Ba as Rn,_a as Fn,a as Ke,e as Mn,ka as Dn,ra as On,rb as Ln,ub as $}from"./chunk-XDRRFE2U.js";import{a as ze,e as Sn,f as vn,n as En,q as Tn}from"./chunk-T7RZFQ27.js";import{Eb as K,Ec as _n,G as rn,Ja as mn,Q as on,Ta as dn,Ua as mt,Ub as pt,Ya as pn,Z as an,aa as ln,ac as we,ba as cn,bc as be,c as nn,cc as B,dc as fn,ec as gn,ha as T,ic as yn,ja as me,k as sn,ma as un,oa as Le,ob as dt,pa as j,rb as hn,uc as Ie,v as ut}from"./chunk-TD25X3N3.js";import{a as ce,b as en,c as tn,k as ue}from"./chunk-TIC6Q35B.js";var Ei=new un("",{factory:On});var Jn=(()=>{let e=class e{constructor(){this.doc=j(ze),this.win=j(Mn),this.scroll$=new sn(1),this.setOffset=nn,j(xe).pipe(rn(Boolean),cn(()=>this.scroll$),Ke()).subscribe(n=>n.scrollIntoView())}scrollToAnchor(n){let s=n?this.doc.querySelectorAll(`#${n}`):[],i=s.length&&s[s.length-1];i&&this.scroll$.next(i)}getScrollPosition(){return[this.win.scrollX,this.win.scrollY]}scrollToPosition(n){this.win.scrollTo(n[0],n[1])}setHistoryScrollRestoration(n){this.win.history.scrollRestoration=n}};e.\u0275fac=function(s){return new(s||e)},e.\u0275prov=me({token:e,factory:e.\u0275fac});let r=e;return r})();var de=class de{constructor(){this.darkMode=j(Fn);this.stackblitzStarterPath=`/${u.Stackblitz}`}};de.\u0275fac=function(t){return new(t||de)},de.\u0275cmp=K({type:de,selectors:[["app"]],features:[_n([ht,{provide:xe,useFactory:()=>{let e=Dn();return j(ht).pipe(ut(([t])=>t?.contentRect.height??0),on(),ln(0),ut(t=>{let n=Array.from(e.querySelectorAll("tui-doc-example")),s=Array.from(e.querySelectorAll("tui-doc-code"));return!!t&&n.every(i=>i.querySelector(".t-demo")?.matches(":not(:empty)"))&&s.every(i=>i.querySelector(".t-code"))}),an(1),Nn(),Ke())}}])],decls:7,vars:2,consts:[["ngProjectAs","tuiDocHeader",5,["tuiDocHeader"]],["appearance","icon","href","https://github.com/taiga-family/maskito","iconStart","assets/icons/github.svg","rel","noreferrer","target","_blank","title","Maskito source code on GitHub","tuiLink","",1,"action"],["appearance","icon","href","https://t.me/taiga_ui/10600","iconStart","assets/icons/telegram.svg","rel","noreferrer","target","_blank","title","Get help on Telegram","tuiLink","",1,"action"],["appearance","icon","iconStart","assets/icons/stackblitz.svg","title","Maskito StackBlitz Starter","tuiLink","",1,"action",3,"routerLink"],["appearance","icon","size","xs","tuiIconButton","","type","button",1,"action",3,"click","iconStart"]],template:function(t,n){t&1&&(we(0,"tui-doc-main"),fn(1,0),B(2,"a",1)(3,"a",2)(4,"a",3),we(5,"button",4),yn("click",function(){return n.darkMode.set(!n.darkMode())}),Ie(6," Switch between dark and light mode "),be(),gn(),be()),t&2&&(dt(4),pt("routerLink",n.stackblitzStarterPath),dt(),pt("iconStart",n.darkMode()?"@tui.sun":"@tui.moon"))},dependencies:[Be,Ln,Yn,$n],styles:["[_nghost-%COMP%]{display:block;font:var(--tui-typography-body-m);color:var(--tui-text-primary)}.action[tuiLink][_ngcontent-%COMP%]{margin-inline-start:1rem}.action[tuiIconButton][_ngcontent-%COMP%]{margin-inline-start:.75rem}"],changeDetection:0});var Ue=de;var S=(function(r){return r[r.State=0]="State",r[r.Transition=1]="Transition",r[r.Sequence=2]="Sequence",r[r.Group=3]="Group",r[r.Animate=4]="Animate",r[r.Keyframes=5]="Keyframes",r[r.Style=6]="Style",r[r.Trigger=7]="Trigger",r[r.Reference=8]="Reference",r[r.AnimateChild=9]="AnimateChild",r[r.AnimateRef=10]="AnimateRef",r[r.Query=11]="Query",r[r.Stagger=12]="Stagger",r})(S||{}),U="*";function Zn(r,e=null){return{type:S.Sequence,steps:r,options:e}}function ft(r){return{type:S.Style,styles:r,offset:null}}var H=class{_onDoneFns=[];_onStartFns=[];_onDestroyFns=[];_originalOnDoneFns=[];_originalOnStartFns=[];_started=!1;_destroyed=!1;_finished=!1;_position=0;parentPlayer=null;totalTime;constructor(e=0,t=0){this.totalTime=e+t}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e
vendor: 52,675 bytes, line 1
1=>e()),this._onDoneFns=[])}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)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){queueMicrotask(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(e=>e()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(e){this._position=this.totalTime?e*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(e){let t=e=="start"?this._onStartFns:this._onDoneFns;t.forEach(n=>n()),t.length=0}},pe=class{_onDoneFns=[];_onStartFns=[];_finished=!1;_started=!1;_destroyed=!1;_onDestroyFns=[];parentPlayer=null;totalTime=0;players;constructor(e){this.players=e;let t=0,n=0,s=0,i=this.players.length;i==0?queueMicrotask(()=>this._onFinish()):this.players.forEach(o=>{o.onDone(()=>{++t==i&&this._onFinish()}),o.onDestroy(()=>{++n==i&&this._onDestroy()}),o.onStart(()=>{++s==i&&this._onStart()})}),this.totalTime=this.players.reduce((o,a)=>Math.max(o,a.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this.players.forEach(e=>e.init())}onStart(e){this._onStartFns.push(e)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(e=>e()),this._onStartFns=[])}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(e=>e.play())}pause(){this.players.forEach(e=>e.pause())}restart(){this.players.forEach(e=>e.restart())}finish(){this._onFinish(),this.players.forEach(e=>e.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(e=>e.destroy()),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}reset(){this.players.forEach(e=>e.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(e){let t=e*this.totalTime;this.players.forEach(n=>{let s=n.totalTime?Math.min(1,t/n.totalTime):1;n.setPosition(s)})}getPosition(){let e=this.players.reduce((t,n)=>t===null||n.totalTime>t.totalTime?n:t,null);return e!=null?e.getPosition():0}beforeDestroy(){this.players.forEach(e=>{e.beforeDestroy&&e.beforeDestroy()})}triggerCallback(e){let t=e=="start"?this._onStartFns:this._onDoneFns;t.forEach(n=>n()),t.length=0}},ke="!";function es(r){return new T(3e3,!1)}function mr(){return new T(3100,!1)}function dr(){return new T(3101,!1)}function pr(r){return new T(3001,!1)}function hr(r){return new T(3003,!1)}function fr(r){return new T(3004,!1)}function ns(r,e){return new T(3005,!1)}function ss(){return new T(3006,!1)}function rs(){return new T(3007,!1)}function is(r,e){return new T(3008,!1)}function os(r){return new T(3002,!1)}function as(r,e,t,n,s){return new T(3010,!1)}function ls(){return new T(3011,!1)}function cs(){return new T(3012,!1)}function us(){return new T(3200,!1)}function ms(){return new T(3202,!1)}function ds(){return new T(3013,!1)}function ps(r){return new T(3014,!1)}function hs(r){return new T(3015,!1)}function fs(r){return new T(3016,!1)}function gs(r,e){return new T(3404,!1)}function gr(r){return new T(3502,!1)}function ys(r){return new T(3503,!1)}function _s(){return new T(3300,!1)}function Ss(r){return new T(3504,!1)}function vs(r){return new T(3301,!1)}function Es(r,e){return new T(3302,!1)}function Ts(r){return new T(3303,!1)}function ws(r,e){return new T(3400,!1)}function bs(r){return new T(3401,!1)}function As(r){return new T(3402,!1)}function ks(r,e){return new T(3505,!1)}function Y(r){switch(r.length){case 0:return new H;case 1:return r[0];default:return new pe(r)}}function St(r,e,t=new Map,n=new Map){let s=[],i=[],o=-1,a=null;if(e.forEach(l=>{let c=l.get("offset"),d=c==o,m=d&&a||new Map;l.forEach((v,_)=>{let h=_,y=v;if(_!=="offset")switch(h=r.normalizePropertyName(h,s),y){case ke:y=t.get(_);break;case U:y=n.get(_);break;default:y=r.normalizeStyleValue(_,h,y,s);break}m.set(h,y)}),d||i.push(m),a=m,o=c}),s.length)throw gr(s);return i}function qe(r,e,t,n){switch(e){case"start":r.onStart(()=>n(t&>(t,"start",r)));break;case"done":r.onDone(()=>n(t&>(t,"done",r)));break;case"destroy":r.onDestroy(()=>n(t&>(t,"destroy",r)));break}}function gt(r,e,t){let n=t.totalTime,s=!!t.disabled,i=Ve(r.element,r.triggerName,r.fromState,r.toState,e||r.phaseName,n??r.totalTime,s),o=r._data;return o!=null&&(i._data=o),i}function Ve(r,e,t,n,s="",i=0,o){return{element:r,triggerName:e,fromState:t,toState:n,phaseName:s,totalTime:i,disabled:!!o}}function R(r,e,t){let n=r.get(e);return n||r.set(e,n=t),n}function vt(r){let e=r.indexOf(":"),t=r.substring(1,e),n=r.slice(e+1);return[t,n]}var yr=typeof document>"u"?null:document.documentElement;function Ge(r){let e=r.parentNode||r.host||null;return e===yr?null:e}function _r(r){return r.substring(1,6)=="ebkit"}var se=null,ts=!1;function Cs(r){se||(se=Sr()||{},ts=se.style?"WebkitAppearance"in se.style:!1);let e=!0;return se.style&&!_r(r)&&(e=r in se.style,!e&&ts&&(e="Webkit"+r.charAt(0).toUpperCase()+r.slice(1)in se.style)),e}function Sr(){return typeof document<"u"?document.body:null}function Et(r,e){for(;e;){if(e===r)return!0;e=Ge(e)}return!1}function Tt(r,e,t){if(t)return Array.from(r.querySelectorAll(e));let n=r.querySelector(e);return n?[n]:[]}var vr=1e3,wt="{{",Er="}}",bt="ng-enter",Qe="ng-leave",Ce="ng-trigger",Pe=".ng-trigger",At="ng-animating",je=".ng-animating";function W(r){if(typeof r=="number")return r;let e=r.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:yt(parseFloat(e[1]),e[2])}function yt(r,e){return e==="s"?r*vr:r}function Me(r,e,t){return r.hasOwnProperty("duration")?r:Tr(r,e,t)}function Tr(r,e,t){let n=/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i,s,i=0,o="";if(typeof r=="string"){let a=r.match(n);if(a===null)return e.push(es(r)),{duration:0,delay:0,easing:""};s=yt(parseFloat(a[1]),a[2]);let l=a[3];l!=null&&(i=yt(parseFloat(l),a[4]));let c=a[5];c&&(o=c)}else s=r;if(!t){let a=!1,l=e.length;s<0&&(e.push(mr()),a=!0),i<0&&(e.push(dr()),a=!0),a&&e.splice(l,0,es(r))}return{duration:s,delay:i,easing:o}}function Ps(r){return r.length?r[0]instanceof Map?r:r.map(e=>new Map(Object.entries(e))):[]}function q(r,e,t){e.forEach((n,s)=>{let i=$e(s);t&&!t.has(s)&&t.set(s,r.style[i]),r.style[i]=n})}function Z(r,e){e.forEach((t,n)=>{let s=$e(n);r.style[s]=""})}function he(r){return Array.isArray(r)?r.length==1?r[0]:Zn(r):r}function Ms(r,e,t){let n=e.params||{},s=kt(r);s.length&&s.forEach(i=>{n.hasOwnProperty(i)||t.push(pr(i))})}var _t=new RegExp(`${wt}\\s*(.+?)\\s*${Er}`,"g");function kt(r){let e=[];if(typeof r=="string"){let t;for(;t=_t.exec(r);)e.push(t[1]);_t.lastIndex=0}return e}function fe(r,e,t){let n=`${r}`,s=n.replace(_t,(i,o)=>{let a=e[o];return a==null&&(t.push(hr(o)),a=""),a.toString()});return s==n?r:s}var wr=/-+([a-z0-9])/g;function $e(r){return r.replace(wr,(...e)=>e[1].toUpperCase())}function Ns(r,e){return r===0||e===0}function Ds(r,e,t){if(t.size&&e.length){let n=e[0],s=[];if(t.forEach((i,o)=>{n.has(o)||s.push(o),n.set(o,i)}),s.length)for(let i=1;i<e.length;i++){let o=e[i];s.forEach(a=>o.set(a,We(r,a)))}}return e}function F(r,e,t){switch(e.type){case S.Trigger:return r.visitTrigger(e,t);case S.State:return r.visitState(e,t);case S.Transition:return r.visitTransition(e,t);case S.Sequence:return r.visitSequence(e,t);case S.Group:return r.visitGroup(e,t);case S.Animate:return r.visitAnimate(e,t);case S.Keyframes:return r.visitKeyframes(e,t);case S.Style:return r.visitStyle(e,t);case S.Reference:return r.visitReference(e,t);case S.AnimateChild:return r.visitAnimateChild(e,t);case S.AnimateRef:return r.visitAnimateRef(e,t);case S.Query:return r.visitQuery(e,t);case S.Stagger:return r.visitStagger(e,t);default:throw fr(e.type)}}function We(r,e){return window.getComputedStyle(r)[e]}var Vt=(()=>{class r{validateStyleProperty(t){return Cs(t)}containsElement(t,n){return Et(t,n)}getParentElement(t){return Ge(t)}query(t,n,s){return Tt(t,n,s)}computeStyle(t,n,s){return s||""}animate(t,n,s,i,o,a=[],l){return new H(s,i)}static \u0275fac=function(n){return new(n||r)};static \u0275prov=me({token:r,factory:r.\u0275fac})}return r})(),ie=class{static NOOP=new Vt},oe=class{};var br=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"]),Ze=class extends oe{normalizePropertyName(e,t){return $e(e)}normalizeStyleValue(e,t,n,s){let i="",o=n.toString().trim();if(br.has(t)&&n!==0&&n!=="0")if(typeof n=="number")i="px";else{let a=n.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&a[1].length==0&&s.push(ns(e,n))}return o+i}};var et="*";function Ar(r,e){let t=[];return typeof r=="string"?r.split(/\s*,\s*/).forEach(n=>kr(n,t,e)):t.push(r),t}function kr(r,e,t){if(r[0]==":"){let l=Cr(r,t);if(typeof l=="function"){e.push(l);return}r=l}let n=r.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(n==null||n.length<4)return t.push(hs(r)),e;let s=n[1],i=n[2],o=n[3];e.push(Os(s,o));let a=s==et&&o==et;i[0]=="<"&&!a&&e.push(Os(o,s))}function Cr(r,e){switch(r){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(t,n)=>parseFloat(n)>parseFloat(t);case":decrement":return(t,n)=>parseFloat(n)<parseFloat(t);default:return e.push(fs(r)),"* => *"}}var He=new Set(["true","1"]),Ye=new Set(["false","0"]);function Os(r,e){let t=He.has(r)||Ye.has(r),n=He.has(e)||Ye.has(e);return(s,i)=>{let o=r==et||r==s,a=e==et||e==i;return!o&&t&&typeof s=="boolean"&&(o=s?He.has(r):Ye.has(r)),!a&&n&&typeof i=="boolean"&&(a=i?He.has(e):Ye.has(e)),o&&a}}var qs=":self",Pr=new RegExp(`s*${qs}s*,?`,"g");function Vs(r,e,t,n){return new Ot(r).build(e,t,n)}var Rs="",Ot=class{_driver;constructor(e){this._driver=e}build(e,t,n){let s=new Rt(t);return this._resetContextStyleTimingState(s),F(this,he(e),s)}_resetContextStyleTimingState(e){e.currentQuerySelector=Rs,e.collectedStyles=new Map,e.collectedStyles.set(Rs,new Map),e.currentTime=0}visitTrigger(e,t){let n=t.queryCount=0,s=t.depCount=0,i=[],o=[];return e.name.charAt(0)=="@"&&t.errors.push(ss()),e.definitions.forEach(a=>{if(this._resetContextStyleTimingState(t),a.type==S.State){let l=a,c=l.name;c.toString().split(/\s*,\s*/).forEach(d=>{l.name=d,i.push(this.visitState(l,t))}),l.name=c}else if(a.type==S.Transition){let l=this.visitTransition(a,t);n+=l.queryCount,s+=l.depCount,o.push(l)}else t.errors.push(rs())}),{type:S.Trigger,name:e.name,states:i,transitions:o,queryCount:n,depCount:s,options:null}}visitState(e,t){let n=this.visitStyle(e.styles,t),s=e.options&&e.options.params||null;if(n.containsDynamicStyles){let i=new Set,o=s||{};n.styles.forEach(a=>{a instanceof Map&&a.forEach(l=>{kt(l).forEach(c=>{o.hasOwnProperty(c)||i.add(c)})})}),i.size&&t.errors.push(is(e.name,[...i.values()]))}return{type:S.State,name:e.name,style:n,options:s?{params:s}:null}}visitTransition(e,t){t.queryCount=0,t.depCount=0;let n=F(this,he(e.animation),t),s=Ar(e.expr,t.errors);return{type:S.Transition,matchers:s,animation:n,queryCount:t.queryCount,depCount:t.depCount,options:re(e.options)}}visitSequence(e,t){return{type:S.Sequence,steps:e.steps.map(n=>F(this,n,t)),options:re(e.options)}}visitGroup(e,t){let n=t.currentTime,s=0,i=e.steps.map(o=>{t.currentTime=n;let a=F(this,o,t);return s=Math.max(s,t.currentTime),a});return t.currentTime=s,{type:S.Group,steps:i,options:re(e.options)}}visitAnimate(e,t){let n=Or(e.timings,t.errors);t.currentAnimateTimings=n;let s,i=e.styles?e.styles:ft({});if(i.type==S.Keyframes)s=this.visitKeyframes(i,t);else{let o=e.styles,a=!1;if(!o){a=!0;let c={};n.easing&&(c.easing=n.easing),o=ft(c)}t.currentTime+=n.duration+n.delay;let l=this.visitStyle(o,t);l.isEmptyStep=a,s=l}return t.currentAnimateTimings=null,{type:S.Animate,timings:n,style:s,options:null}}visitStyle(e,t){let n=this._makeStyleAst(e,t);return this._validateStyleAst(n,t),n}_makeStyleAst(e,t){let n=[],s=Array.isArray(e.styles)?e.styles:[e.styles];for(let a of s)typeof a=="string"?a===U?n.push(a):t.errors.push(os(a)):n.push(new Map(Object.entries(a)));let i=!1,o=null;return n.forEach(a=>{if(a instanceof Map&&(a.has("easing")&&(o=a.get("easing"),a.delete("easing")),!i)){for(let l of a.values())if(l.toString().indexOf(wt)>=0){i=!0;break}}}),{type:S.Style,styles:n,easing:o,offset:e.offset,containsDynamicStyles:i,options:null}}_validateStyleAst(e,t){let n=t.currentAnimateTimings,s=t.currentTime,i=t.currentTime;n&&i>0&&(i-=n.duration+n.delay),e.styles.forEach(o=>{typeof o!="string"&&o.forEach((a,l)=>{let c=t.collectedStyles.get(t.currentQuerySelector),d=c.get(l),m=!0;d&&(i!=s&&i>=d.startTime&&s<=d.endTime&&(t.errors.push(as(l,d.startTime,d.endTime,i,s)),m=!1),i=d.startTime),m&&c.set(l,{startTime:i,endTime:s}),t.options&&Ms(a,t.options,t.errors)})})}visitKeyframes(e,t){let n={type:S.Keyframes,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push(ls()),n;let s=1,i=0,o=[],a=!1,l=!1,c=0,d=e.steps.map(A=>{let k=this._makeStyleAst(A,t),N=k.offset!=null?k.offset:Dr(k.styles),P=0;return N!=null&&(i++,P=k.offset=N),l=l||P<0||P>1,a=a||P<c,c=P,o.push(P),k});l&&t.errors.push(cs()),a&&t.errors.push(us());let m=e.steps.length,v=0;i>0&&i<m?t.errors.push(ms()):i==0&&(v=s/(m-1));let _=m-1,h=t.currentTime,y=t.currentAnimateTimings,w=y.duration;return d.forEach((A,k)=>{let N=v>0?k==_?1:v*k:o[k],P=N*w;t.currentTime=h+y.delay+P,y.duration=P,this._validateStyleAst(A,t),A.offset=N,n.styles.push(A)}),n}visitReference(e,t){return{type:S.Reference,animation:F(this,he(e.animation),t),options:re(e.options)}}visitAnimateChild(e,t){return t.depCount++,{type:S.AnimateChild,options:re(e.options)}}visitAnimateRef(e,t){return{type:S.AnimateRef,animation:this.visitReference(e.animation,t),options:re(e.options)}}visitQuery(e,t){let n=t.currentQuerySelector,s=e.options||{};t.queryCount++,t.currentQuery=e;let[i,o]=Mr(e.selector);t.currentQuerySelector=n.length?n+" "+i:i,R(t.collectedStyles,t.currentQuerySelector,new Map);let a=F(this,he(e.animation),t);return t.currentQuery=null,t.currentQuerySelector=n,{type:S.Query,selector:i,limit:s.limit||0,optional:!!s.optional,includeSelf:o,animation:a,originalSelector:e.selector,options:re(e.options)}}visitStagger(e,t){t.currentQuery||t.errors.push(ds());let n=e.timings==="full"?{duration:0,delay:0,easing:"full"}:Me(e.timings,t.errors,!0);return{type:S.Stagger,animation:F(this,he(e.animation),t),timings:n,options:null}}};function Mr(r){let e=!!r.split(/\s*,\s*/).find(t=>t==qs);return e&&(r=r.replace(Pr,"")),r=r.replace(/@\*/g,Pe).replace(/@\w+/g,t=>Pe+"-"+t.slice(1)).replace(/:animating/g,je),[r,e]}function Nr(r){return r?ce({},r):null}var Rt=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 Dr(r){if(typeof r=="string")return null;let e=null;if(Array.isArray(r))r.forEach(t=>{if(t instanceof Map&&t.has("offset")){let n=t;e=parseFloat(n.get("offset")),n.delete("offset")}});else if(r instanceof Map&&r.has("offset")){let t=r;e=parseFloat(t.get("offset")),t.delete("offset")}return e}function Or(r,e){if(r.hasOwnProperty("duration"))return r;if(typeof r=="number"){let i=Me(r,e).duration;return Ct(i,0,"")}let t=r;if(t.split(/\s+/).some(i=>i.charAt(0)=="{"&&i.charAt(1)=="{")){let i=Ct(0,0,"");return i.dynamic=!0,i.strValue=t,i}let s=Me(t,e);return Ct(s.duration,s.delay,s.easing)}function re(r){return r?(r=ce({},r),r.params&&(r.params=Nr(r.params))):r={},r}function Ct(r,e,t){return{duration:r,delay:e,easing:t}}function Gt(r,e,t,n,s,i,o=null,a=!1){return{type:1,element:r,keyframes:e,preStyleProps:t,postStyleProps:n,duration:s,delay:i,totalTime:s+i,easing:o,subTimeline:a}}var De=class{_map=new Map;get(e){return this._map.get(e)||[]}append(e,t){let n=this._map.get(e);n||this._map.set(e,n=[]),n.push(...t)}has(e){return this._map.has(e)}clear(){this._map.clear()}},Rr=1,Fr=":enter",Lr=new RegExp(Fr,"g"),Ir=":leave",zr=new RegExp(Ir,"g");function Gs(r,e,t,n,s,i=new Map,o=new Map,a,l,c=[]){return new Ft().buildKeyframes(r,e,t,n,s,i,o,a,l,c)}var Ft=class{buildKeyframes(e,t,n,s,i,o,a,l,c,d=[]){c=c||new De;let m=new Lt(e,t,c,s,i,d,[]);m.options=l;let v=l.delay?W(l.delay):0;m.currentTimeline.delayNextStep(v),m.currentTimeline.setStyles([o],null,m.errors,l),F(this,n,m);let _=m.timelines.filter(h=>h.containsAnimation());if(_.length&&a.size){let h;for(let y=_.length-1;y>=0;y--){let w=_[y];if(w.element===t){h=w;break}}h&&!h.allowOnlyTimelineStyles()&&h.setStyles([a],null,m.errors,l)}return _.length?_.map(h=>h.buildKeyframes()):[Gt(t,[],[],[],0,v,"",!1)]}visitTrigger(e,t){}visitState(e,t){}visitTransition(e,t){}visitAnimateChild(e,t){let n=t.subInstructions.get(t.element);if(n){let s=t.createSubContext(e.options),i=t.currentTimeline.currentTime,o=this._visitSubInstructions(n,s,s.options);i!=o&&t.transformIntoNewTimeline(o)}t.previousNode=e}visitAnimateRef(e,t){let n=t.createSubContext(e.options);n.transformIntoNewTimeline(),this._applyAnimationRefDelays([e.options,e.animation.options],t,n),this.visitReference(e.animation,n),t.transformIntoNewTimeline(n.currentTimeline.currentTime),t.previousNode=e}_applyAnimationRefDelays(e,t,n){for(let s of e){let i=s?.delay;if(i){let o=typeof i=="number"?i:W(fe(i,s?.params??{},t.errors));n.delayNextStep(o)}}}_visitSubInstructions(e,t,n){let i=t.currentTimeline.currentTime,o=n.duration!=null?W(n.duration):null,a=n.delay!=null?W(n.delay):null;return o!==0&&e.forEach(l=>{let c=t.appendInstructionToTimeline(l,o,a);i=Math.max(i,c.duration+c.delay)}),i}visitReference(e,t){t.updateOptions(e.options,!0),F(this,e.animation,t),t.previousNode=e}visitSequence(e,t){let n=t.subContextCount,s=t,i=e.options;if(i&&(i.params||i.delay)&&(s=t.createSubContext(i),s.transformIntoNewTimeline(),i.delay!=null)){s.previousNode.type==S.Style&&(s.currentTimeline.snapshotCurrentStyles(),s.previousNode=tt);let o=W(i.delay);s.delayNextStep(o)}e.steps.length&&(e.steps.forEach(o=>F(this,o,s)),s.currentTimeline.applyStylesToKeyframe(),s.subContextCount>n&&s.transformIntoNewTimeline()),t.previousNode=e}visitGroup(e,t){let n=[],s=t.currentTimeline.currentTime,i=e.options&&e.options.delay?W(e.options.delay):0;e.steps.forEach(o=>{let a=t.createSubContext(e.options);i&&a.delayNextStep(i),F(this,o,a),s=Math.max(s,a.currentTimeline.currentTime),n.push(a.currentTimeline)}),n.forEach(o=>t.currentTimeline.mergeTimelineCollectedStyles(o)),t.transformIntoNewTimeline(s),t.previousNode=e}_visitTiming(e,t){if(e.dynamic){let n=e.strValue,s=t.params?fe(n,t.params,t.errors):n;return Me(s,t.errors)}else return{duration:e.duration,delay:e.delay,easing:e.easing}}visitAnimate(e,t){let n=t.currentAnimateTimings=this._visitTiming(e.timings,t),s=t.currentTimeline;n.delay&&(t.incrementTime(n.delay),s.snapshotCurrentStyles());let i=e.style;i.type==S.Keyframes?this.visitKeyframes(i,t):(t.incrementTime(n.duration),this.visitStyle(i,t),s.applyStylesToKeyframe()),t.currentAnimateTimings=null,t.previousNode=e}visitStyle(e,t){let n=t.currentTimeline,s=t.currentAnimateTimings;!s&&n.hasCurrentStyleProperties()&&n.forwardFrame();let i=s&&s.easing||e.easing;e.isEmptyStep?n.applyEmptyStep(i):n.setStyles(e.styles,i,t.errors,t.options),t.previousNode=e}visitKeyframes(e,t){let n=t.currentAnimateTimings,s=t.currentTimeline.duration,i=n.duration,a=t.createSubContext().currentTimeline;a.easing=n.easing,e.styles.forEach(l=>{let c=l.offset||0;a.forwardTime(c*i),a.setStyles(l.styles,l.easing,t.errors,t.options),a.applyStylesToKeyframe()}),t.currentTimeline.mergeTimelineCollectedStyles(a),t.transformIntoNewTimeline(s+i),t.previousNode=e}visitQuery(e,t){let n=t.currentTimeline.currentTime,s=e.options||{},i=s.delay?W(s.delay):0;i&&(t.previousNode.type===S.Style||n==0&&t.currentTimeline.hasCurrentStyleProperties())&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=tt);let o=n,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,d)=>{t.currentQueryIndex=d;let m=t.createSubContext(e.options,c);i&&m.delayNextStep(i),c===t.element&&(l=m.currentTimeline),F(this,e.animation,m),m.currentTimeline.applyStylesToKeyframe();let v=m.currentTimeline.currentTime;o=Math.max(o,v)}),t.currentQueryIndex=0,t.currentQueryTotal=0,t.transformIntoNewTimeline(o),l&&(t.currentTimeline.mergeTimelineCollectedStyles(l),t.currentTimeline.snapshotCurrentStyles()),t.previousNode=e}visitStagger(e,t){let n=t.parentContext,s=t.currentTimeline,i=e.timings,o=Math.abs(i.duration),a=o*(t.currentQueryTotal-1),l=o*t.currentQueryIndex;switch(i.duration<0?"reverse":i.easing){case"reverse":l=a-l;break;case"full":l=n.currentStaggerTime;break}let d=t.currentTimeline;l&&d.delayNextStep(l);let m=d.currentTime;F(this,e.animation,t),t.previousNode=e,n.currentStaggerTime=s.currentTime-m+(s.startTime-n.currentTimeline.startTime)}},tt={},Lt=class r{_driver;element;subInstructions;_enterClassName;_leaveClassName;errors;timelines;parentContext=null;currentTimeline;currentAnimateTimings=null;previousNode=tt;subContextCount=0;options={};currentQueryIndex=0;currentQueryTotal=0;currentStaggerTime=0;constructor(e,t,n,s,i,o,a,l){this._driver=e,this.element=t,this.subInstructions=n,this._enterClassName=s,this._leaveClassName=i,this.errors=o,this.timelines=a,this.currentTimeline=l||new nt(this._driver,t,0),a.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(e,t){if(!e)return;let n=e,s=this.options;n.duration!=null&&(s.duration=W(n.duration)),n.delay!=null&&(s.delay=W(n.delay));let i=n.params;if(i){let o=s.params;o||(o=this.options.params={}),Object.keys(i).forEach(a=>{(!t||!o.hasOwnProperty(a))&&(o[a]=fe(i[a],o,this.errors))})}}_copyOptions(){let e={};if(this.options){let t=this.options.params;if(t){let n=e.params={};Object.keys(t).forEach(s=>{n[s]=t[s]})}}return e}createSubContext(e=null,t,n){let s=t||this.element,i=new r(this._driver,s,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(s,n||0));return i.previousNode=this.previousNode,i.currentAnimateTimings=this.currentAnimateTimings,i.options=this._copyOptions(),i.updateOptions(e),i.currentQueryIndex=this.currentQueryIndex,i.currentQueryTotal=this.currentQueryTotal,i.parentContext=this,this.subContextCount++,i}transformIntoNewTimeline(e){return this.previousNode=tt,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(e,t,n){let s={duration:t??e.duration,delay:this.currentTimeline.currentTime+(n??0)+e.delay,easing:""},i=new It(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,s,e.stretchStartingKeyframe);return this.timelines.push(i),s}incrementTime(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)}delayNextStep(e){e>0&&this.currentTimeline.delayNextStep(e)}invokeQuery(e,t,n,s,i,o){let a=[];if(s&&a.push(this.element),e.length>0){e=e.replace(Lr,"."+this._enterClassName),e=e.replace(zr,"."+this._leaveClassName);let l=n!=1,c=this._driver.query(this.element,e,l);n!==0&&(c=n<0?c.slice(c.length+n,c.length):c.slice(0,n)),a.push(...c)}return!i&&a.length==0&&o.push(ps(t)),a}},nt=class r{_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,n,s){this._driver=e,this.element=t,this.startTime=n,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 r(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+=Rr,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,n]of this._globalTimelineStyles)this._backFill.set(t,n||U),this._currentKeyframe.set(t,U);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(e,t,n,s){t&&this._previousKeyframe.set("easing",t);let i=s&&s.params||{},o=Kr(e,this._globalTimelineStyles);for(let[a,l]of o){let c=fe(l,i,n);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,n)=>{let s=this._styleSummary.get(n);(!s||t.time>s.time)&&this._updateStyle(n,t.value)})}buildKeyframes(){this.applyStylesToKeyframe();let e=new Set,t=new Set,n=this._keyframes.size===1&&this.duration===0,s=[];this._keyframes.forEach((a,l)=>{let c=new Map([...this._backFill,...a]);c.forEach((d,m)=>{d===ke?e.add(m):d===U&&t.add(m)}),n||c.set("offset",l/this.duration),s.push(c)});let i=[...e.values()],o=[...t.values()];if(n){let a=s[0],l=new Map(a);a.set("offset",0),l.set("offset",1),s=[a,l]}return Gt(this.element,s,i,o,this.duration,this.startTime,this.easing,!1)}},It=class extends nt{keyframes;preStyleProps;postStyleProps;_stretchStartingKeyframe;timings;constructor(e,t,n,s,i,o,a=!1){super(e,t,o.delay),this.keyframes=n,this.preStyleProps=s,this.postStyleProps=i,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:n,easing:s}=this.timings;if(this._stretchStartingKeyframe&&t){let i=[],o=n+t,a=t/o,l=new Map(e[0]);l.set("offset",0),i.push(l);let c=new Map(e[0]);c.set("offset",Fs(a)),i.push(c);let d=e.length-1;for(let m=1;m<=d;m++){let v=new Map(e[m]),_=v.get("offset"),h=t+_*n;v.set("offset",Fs(h/o)),i.push(v)}n=o,t=0,s="",e=i}return Gt(this.element,e,this.preStyleProps,this.postStyleProps,n,t,s,!0)}};function Fs(r,e=3){let t=Math.pow(10,e-1);return Math.round(r*t)/t}function Kr(r,e){let t=new Map,n;return r.forEach(s=>{if(s==="*"){n??=e.keys();for(let i of n)t.set(i,U)}else for(let[i,o]of s)t.set(i,o)}),t}function Ls(r,e,t,n,s,i,o,a,l,c,d,m,v){return{type:0,element:r,triggerName:e,isRemovalTransition:s,fromState:t,fromStyles:i,toState:n,toStyles:o,timelines:a,queriedElements:l,preStyleProps:c,postStyleProps:d,totalTime:m,errors:v}}var Pt={},st=class{_triggerName;ast;_stateStyles;constructor(e,t,n){this._triggerName=e,this.ast=t,this._stateStyles=n}match(e,t,n,s){return Br(this.ast.matchers,e,t,n,s)}buildStyles(e,t,n){let s=this._stateStyles.get("*");return e!==void 0&&(s=this._stateStyles.get(e?.toString())||s),s?s.buildStyles(t,n):new Map}build(e,t,n,s,i,o,a,l,c,d){let m=[],v=this.ast.options&&this.ast.options.params||Pt,_=a&&a.params||Pt,h=this.buildStyles(n,_,m),y=l&&l.params||Pt,w=this.buildStyles(s,y,m),A=new Set,k=new Map,N=new Map,P=s==="void",ae={params:Qs(y,v),delay:this.ast.options?.delay},G=d?[]:Gs(e,t,this.ast.animation,i,o,h,w,ae,c,m),D=0;return G.forEach(O=>{D=Math.max(O.duration+O.delay,D)}),m.length?Ls(t,this._triggerName,n,s,P,h,w,[],[],k,N,D,m):(G.forEach(O=>{let ee=O.element,le=R(k,ee,new Set);O.preStyleProps.forEach(te=>le.add(te));let Yt=R(N,ee,new Set);O.postStyleProps.forEach(te=>Yt.add(te)),ee!==t&&A.add(ee)}),Ls(t,this._triggerName,n,s,P,h,w,G,[...A.values()],k,N,D))}};function Br(r,e,t,n,s){return r.some(i=>i(e,t,n,s))}function Qs(r,e){let t=ce({},e);return Object.entries(r).forEach(([n,s])=>{s!=null&&(t[n]=s)}),t}var zt=class{styles;defaultParams;normalizer;constructor(e,t,n){this.styles=e,this.defaultParams=t,this.normalizer=n}buildStyles(e,t){let n=new Map,s=Qs(e,this.defaultParams);return this.styles.styles.forEach(i=>{typeof i!="string"&&i.forEach((o,a)=>{o&&(o=fe(o,s,t));let l=this.normalizer.normalizePropertyName(a,t);o=this.normalizer.normalizeStyleValue(a,l,o,t),n.set(a,o)})}),n}};function xr(r,e,t){return new Kt(r,e,t)}var Kt=class{name;ast;_normalizer;transitionFactories=[];fallbackTransition;states=new Map;constructor(e,t,n){this.name=e,this.ast=t,this._normalizer=n,t.states.forEach(s=>{let i=s.options&&s.options.params||{};this.states.set(s.name,new zt(s.style,i,n))}),Is(this.states,"true","1"),Is(this.states,"false","0"),t.transitions.forEach(s=>{this.transitionFactories.push(new st(e,s,this.states))}),this.fallbackTransition=Ur(e,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(e,t,n,s){return this.transitionFactories.find(o=>o.match(e,t,n,s))||null}matchStyles(e,t,n){return this.fallbackTransition.buildStyles(e,t,n)}};function Ur(r,e,t){let n=[(o,a)=>!0],s={type:S.Sequence,steps:[],options:null},i={type:S.Transition,animation:s,matchers:n,options:null,queryCount:0,depCount:0};return new st(r,i,e)}function Is(r,e,t){r.has(e)?r.has(t)||r.set(t,r.get(e)):r.has(t)&&r.set(e,r.get(t))}var qr=new De,Bt=class{bodyNode;_driver;_normalizer;_animations=new Map;_playersById=new Map;players=[];constructor(e,t,n){this.bodyNode=e,this._driver=t,this._normalizer=n}register(e,t){let n=[],s=[],i=Vs(this._driver,t,n,s);if(n.length)throw ys(n);this._animations.set(e,i)}_buildPlayer(e,t,n){let s=e.element,i=St(this._normalizer,e.keyframes,t,n);return this._driver.animate(s,i,e.duration,e.delay,e.easing,[],!0)}create(e,t,n={}){let s=[],i=this._animations.get(e),o,a=new Map;if(i?(o=Gs(this._driver,t,i,bt,Qe,new Map,new Map,n,qr,s),o.forEach(d=>{let m=R(a,d.element,new Map);d.postStyleProps.forEach(v=>m.set(v,null))})):(s.push(_s()),o=[]),s.length)throw Ss(s);a.forEach((d,m)=>{d.forEach((v,_)=>{d.set(_,this._driver.computeStyle(m,_,U))})});let l=o.map(d=>{let m=a.get(d.element);return this._buildPlayer(d,new Map,m)}),c=Y(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 n=this.players.indexOf(t);n>=0&&this.players.splice(n,1)}_getPlayer(e){let t=this._playersById.get(e);if(!t)throw vs(e);return t}listen(e,t,n,s){let i=Ve(t,"","","");return qe(this._getPlayer(e),n,i,s),()=>{}}command(e,t,n,s){if(n=="register"){this.register(e,s[0]);return}if(n=="create"){let o=s[0]||{};this.create(e,t,o);return}let i=this._getPlayer(e);switch(n){case"play":i.play();break;case"pause":i.pause();break;case"reset":i.reset();break;case"restart":i.restart();break;case"finish":i.finish();break;case"init":i.init();break;case"setPosition":i.setPosition(parseFloat(s[0]));break;case"destroy":this.destroy(e);break}}},zs="ng-animate-queued",Vr=".ng-animate-queued",Mt="ng-animate-disabled",Gr=".ng-animate-disabled",Qr="ng-star-inserted",jr=".ng-star-inserted",$r=[],js={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Wr={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},V="__ng_removed",Oe=class{namespaceId;value;options;get params(){return this.options.params}constructor(e,t=""){this.namespaceId=t;let n=e&&e.hasOwnProperty("value"),s=n?e.value:e;if(this.value=Yr(s),n){let i=e,{value:o}=i,a=tn(i,["value"]);this.options=a}else this.options={};this.options.params||(this.options.params={})}absorbOptions(e){let t=e.params;if(t){let n=this.options.params;Object.keys(t).forEach(s=>{n[s]==null&&(n[s]=t[s])})}}},Ne="void",Nt=new Oe(Ne),xt=class{id;hostElement;_engine;players=[];_triggers=new Map;_queue=[];_elementListeners=new Map;_hostClassName;constructor(e,t,n){this.id=e,this.hostElement=t,this._engine=n,this._hostClassName="ng-tns-"+e,x(t,this._hostClassName)}listen(e,t,n,s){if(!this._triggers.has(t))throw Es(n,t);if(n==null||n.length==0)throw Ts(t);if(!Xr(n))throw ws(n,t);let i=R(this._elementListeners,e,[]),o={name:t,phase:n,callback:s};i.push(o);let a=R(this._engine.statesByElement,e,new Map);return a.has(t)||(x(e,Ce),x(e,Ce+"-"+t),a.set(t,Nt)),()=>{this._engine.afterFlush(()=>{let l=i.indexOf(o);l>=0&&i.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 bs(e);return t}trigger(e,t,n,s=!0){let i=this._getTrigger(t),o=new Re(this.id,t,e),a=this._engine.statesByElement.get(e);a||(x(e,Ce),x(e,Ce+"-"+t),this._engine.statesByElement.set(e,a=new Map));let l=a.get(t),c=new Oe(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&l&&c.absorbOptions(l.options),a.set(t,c),l||(l=Nt),!(c.value===Ne)&&l.value===c.value){if(!ei(l.params,c.params)){let y=[],w=i.matchStyles(l.value,l.params,y),A=i.matchStyles(c.value,c.params,y);y.length?this._engine.reportError(y):this._engine.afterFlush(()=>{Z(e,w),q(e,A)})}return}let v=R(this._engine.playersByElement,e,[]);v.forEach(y=>{y.namespaceId==this.id&&y.triggerName==t&&y.queued&&y.destroy()});let _=i.matchTransition(l.value,c.value,e,c.params),h=!1;if(!_){if(!s)return;_=i.fallbackTransition,h=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:t,transition:_,fromState:l,toState:c,player:o,isFallbackTransition:h}),h||(x(e,zs),o.onStart(()=>{ge(e,zs)})),o.onDone(()=>{let y=this.players.indexOf(o);y>=0&&this.players.splice(y,1);let w=this._engine.playersByElement.get(e);if(w){let A=w.indexOf(o);A>=0&&w.splice(A,1)}}),this.players.push(o),v.push(o),o}deregister(e){this._triggers.delete(e),this._engine.statesByElement.forEach(t=>t.delete(e)),this._elementListeners.forEach((t,n)=>{this._elementListeners.set(n,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(n=>n.destroy()),this._engine.playersByElement.delete(e))}_signalRemovalForInnerTriggers(e,t){let n=this._engine.driver.query(e,Pe,!0);n.forEach(s=>{if(s[V])return;let i=this._engine.fetchNamespacesByElement(s);i.size?i.forEach(o=>o.triggerLeaveAnimation(s,t,!1,!0)):this.clearElementCache(s)}),this._engine.afterFlushAnimationsDone(()=>n.forEach(s=>this.clearElementCache(s)))}triggerLeaveAnimation(e,t,n,s){let i=this._engine.statesByElement.get(e),o=new Map;if(i){let a=[];if(i.forEach((l,c)=>{if(o.set(c,l.value),this._triggers.has(c)){let d=this.trigger(e,c,Ne,s);d&&a.push(d)}}),a.length)return this._engine.markElementAsRemoved(this.id,e,!0,t,o),n&&Y(a).onDone(()=>this._engine.processLeaveNode(e)),!0}return!1}prepareLeaveAnimationListeners(e){let t=this._elementListeners.get(e),n=this._engine.statesByElement.get(e);if(t&&n){let s=new Set;t.forEach(i=>{let o=i.name;if(s.has(o))return;s.add(o);let l=this._triggers.get(o).fallbackTransition,c=n.get(o)||Nt,d=new Oe(Ne),m=new Re(this.id,o,e);this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:o,transition:l,fromState:c,toState:d,player:m,isFallbackTransition:!0})})}}removeNode(e,t){let n=this._engine;if(e.childElementCount&&this._signalRemovalForInnerTriggers(e,t),this.triggerLeaveAnimation(e,t,!0))return;let s=!1;if(n.totalAnimations){let i=n.players.length?n.playersByQueriedElement.get(e):[];if(i&&i.length)s=!0;else{let o=e;for(;o=o.parentNode;)if(n.statesByElement.get(o)){s=!0;break}}}if(this.prepareLeaveAnimationListeners(e),s)n.markElementAsRemoved(this.id,e,!1,t);else{let i=e[V];(!i||i===js)&&(n.afterFlush(()=>this.clearElementCache(e)),n.destroyInnerAnimations(e),n._onRemovalComplete(e,t))}}insertNode(e,t){x(e,this._hostClassName)}drainQueuedTransitions(e){let t=[];return this._queue.forEach(n=>{let s=n.player;if(s.destroyed)return;let i=n.element,o=this._elementListeners.get(i);o&&o.forEach(a=>{if(a.name==n.triggerName){let l=Ve(i,n.triggerName,n.fromState.value,n.toState.value);l._data=e,qe(n.player,a.phase,l,a.callback)}}),s.markedForDestroy?this._engine.afterFlush(()=>{s.destroy()}):t.push(n)}),this._queue=[],t.sort((n,s)=>{let i=n.transition.ast.depCount,o=s.transition.ast.depCount;return i==0||o==0?i-o:this._engine.driver.containsElement(n.element,s.element)?1:-1})}destroy(e){this.players.forEach(t=>t.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,e)}},Ut=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,n){this.bodyNode=e,this.driver=t,this._normalizer=n}get queuedPlayers(){let e=[];return this._namespaceList.forEach(t=>{t.players.forEach(n=>{n.queued&&e.push(n)})}),e}createNamespace(e,t){let n=new xt(e,t,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,t)?this._balanceNamespaceList(n,t):(this.newHostElements.set(t,n),this.collectEnterElement(t)),this._namespaceLookup[e]=n}_balanceNamespaceList(e,t){let n=this._namespaceList,s=this.namespacesByHostElement;if(n.length-1>=0){let o=!1,a=this.driver.getParentElement(t);for(;a;){let l=s.get(a);if(l){let c=n.indexOf(l);n.splice(c+1,0,e),o=!0;break}a=this.driver.getParentElement(a)}o||n.unshift(e)}else n.push(e);return s.set(t,e),e}register(e,t){let n=this._namespaceLookup[e];return n||(n=this.createNamespace(e,t)),n}registerTrigger(e,t,n){let s=this._namespaceLookup[e];s&&s.register(t,n)&&this.totalAnimations++}destroy(e,t){e&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{let n=this._fetchNamespace(e);this.namespacesByHostElement.delete(n.hostElement);let s=this._namespaceList.indexOf(n);s>=0&&this._namespaceList.splice(s,1),n.destroy(t),delete this._namespaceLookup[e]}))}_fetchNamespace(e){return this._namespaceLookup[e]}fetchNamespacesByElement(e){let t=new Set,n=this.statesByElement.get(e);if(n){for(let s of n.values())if(s.namespaceId){let i=this._fetchNamespace(s.namespaceId);i&&t.add(i)}}return t}trigger(e,t,n,s){if(Xe(t)){let i=this._fetchNamespace(e);if(i)return i.trigger(t,n,s),!0}return!1}insertNode(e,t,n,s){if(!Xe(t))return;let i=t[V];if(i&&i.setForRemoval){i.setForRemoval=!1,i.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,n)}s&&this.collectEnterElement(t)}collectEnterElement(e){this.collectedEnterElements.push(e)}markElementAsDisabled(e,t){t?this.disabledNodes.has(e)||(this.disabledNodes.add(e),x(e,Mt)):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),ge(e,Mt))}removeNode(e,t,n){if(Xe(t)){let s=e?this._fetchNamespace(e):null;s?s.removeNode(t,n):this.markElementAsRemoved(e,t,!1,n);let i=this.namespacesByHostElement.get(t);i&&i.id!==e&&i.removeNode(t,n)}else this._onRemovalComplete(t,n)}markElementAsRemoved(e,t,n,s,i){this.collectedLeaveElements.push(t),t[V]={namespaceId:e,setForRemoval:s,hasAnimation:n,removedBeforeQueried:!1,previousTriggersValues:i}}listen(e,t,n,s,i){return Xe(t)?this._fetchNamespace(e).listen(t,n,s,i):()=>{}}_buildInstruction(e,t,n,s,i){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,n,s,e.fromState.options,e.toState.options,t,i)}destroyInnerAnimations(e){let t=this.driver.query(e,Pe,!0);t.forEach(n=>this.destroyActiveAnimationsForElement(n)),this.playersByQueriedElement.size!=0&&(t=this.driver.query(e,je,!0),t.forEach(n=>this.finishActiveQueriedAnimationOnElement(n)))}destroyActiveAnimationsForElement(e){let t=this.playersByElement.get(e);t&&t.forEach(n=>{n.queued?n.markedForDestroy=!0:n.destroy()})}finishActiveQueriedAnimationOnElement(e){let t=this.playersByQueriedElement.get(e);t&&t.forEach(n=>n.finish())}whenRenderingDone(){return new Promise(e=>{if(this.players.length)return Y(this.players).onDone(()=>e());e()})}processLeaveNode(e){let t=e[V];if(t&&t.setForRemoval){if(e[V]=js,t.namespaceId){this.destroyInnerAnimations(e);let n=this._fetchNamespace(t.namespaceId);n&&n.clearElementCache(e)}this._onRemovalComplete(e,t.setForRemoval)}e.classList?.contains(Mt)&&this.markElementAsDisabled(e,!1),this.driver.query(e,Gr,!0).forEach(n=>{this.markElementAsDisabled(n,!1)})}flush(e=-1){let t=[];if(this.newHostElements.size&&(this.newHostElements.forEach((n,s)=>this._balanceNamespaceList(n,s)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let n=0;n<this.collectedEnterElements.length;n++){let s=this.collectedEnterElements[n];x(s,Qr)}if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){let n=[];try{t=this._flushAnimations(n,e)}finally{for(let s=0;s<n.length;s++)n[s]()}}else for(let n=0;n<this.collectedLeaveElements.length;n++){let s=this.collectedLeaveElements[n];this.processLeaveNode(s)}if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(n=>n()),this._flushFns=[],this._whenQuietFns.length){let n=this._whenQuietFns;this._whenQuietFns=[],t.length?Y(t).onDone(()=>{n.forEach(s=>s())}):n.forEach(s=>s())}}reportError(e){throw As(e)}_flushAnimations(e,t){let n=new De,s=[],i=new Map,o=[],a=new Map,l=new Map,c=new Map,d=new Set;this.disabledNodes.forEach(p=>{d.add(p);let f=this.driver.query(p,Vr,!0);for(let g=0;g<f.length;g++)d.add(f[g])});let m=this.bodyNode,v=Array.from(this.statesByElement.keys()),_=xs(v,this.collectedEnterElements),h=new Map,y=0;_.forEach((p,f)=>{let g=bt+y++;h.set(f,g),p.forEach(E=>x(E,g))});let w=[],A=new Set,k=new Set;for(let p=0;p<this.collectedLeaveElements.length;p++){let f=this.collectedLeaveElements[p],g=f[V];g&&g.setForRemoval&&(w.push(f),A.add(f),g.hasAnimation?this.driver.query(f,jr,!0).forEach(E=>A.add(E)):k.add(f))}let N=new Map,P=xs(v,Array.from(A));P.forEach((p,f)=>{let g=Qe+y++;N.set(f,g),p.forEach(E=>x(E,g))}),e.push(()=>{_.forEach((p,f)=>{let g=h.get(f);p.forEach(E=>ge(E,g))}),P.forEach((p,f)=>{let g=N.get(f);p.forEach(E=>ge(E,g))}),w.forEach(p=>{this.processLeaveNode(p)})});let ae=[],G=[];for(let p=this._namespaceList.length-1;p>=0;p--)this._namespaceList[p].drainQueuedTransitions(t).forEach(g=>{let E=g.player,C=g.element;if(ae.push(E),this.collectedEnterElements.length){let M=C[V];if(M&&M.setForMove){if(M.previousTriggersValues&&M.previousTriggersValues.has(g.triggerName)){let ne=M.previousTriggersValues.get(g.triggerName),z=this.statesByElement.get(g.element);if(z&&z.has(g.triggerName)){let Fe=z.get(g.triggerName);Fe.value=ne,z.set(g.triggerName,Fe)}}E.destroy();return}}let Q=!m||!this.driver.containsElement(m,C),L=N.get(C),X=h.get(C),b=this._buildInstruction(g,n,X,L,Q);if(b.errors&&b.errors.length){G.push(b);return}if(Q){E.onStart(()=>Z(C,b.fromStyles)),E.onDestroy(()=>q(C,b.toStyles)),s.push(E);return}if(g.isFallbackTransition){E.onStart(()=>Z(C,b.fromStyles)),E.onDestroy(()=>q(C,b.toStyles)),s.push(E);return}let Zt=[];b.timelines.forEach(M=>{M.stretchStartingKeyframe=!0,this.disabledNodes.has(M.element)||Zt.push(M)}),b.timelines=Zt,n.append(C,b.timelines);let ur={instruction:b,player:E,element:C};o.push(ur),b.queriedElements.forEach(M=>R(a,M,[]).push(E)),b.preStyleProps.forEach((M,ne)=>{if(M.size){let z=l.get(ne);z||l.set(ne,z=new Set),M.forEach((Fe,ct)=>z.add(ct))}}),b.postStyleProps.forEach((M,ne)=>{let z=c.get(ne);z||c.set(ne,z=new Set),M.forEach((Fe,ct)=>z.add(ct))})});if(G.length){let p=[];G.forEach(f=>{p.push(ks(f.triggerName,f.errors))}),ae.forEach(f=>f.destroy()),this.reportError(p)}let D=new Map,O=new Map;o.forEach(p=>{let f=p.element;n.has(f)&&(O.set(f,f),this._beforeAnimationBuild(p.player.namespaceId,p.instruction,D))}),s.forEach(p=>{let f=p.element;this._getPreviousPlayers(f,!1,p.namespaceId,p.triggerName,null).forEach(E=>{R(D,f,[]).push(E),E.destroy()})});let ee=w.filter(p=>Us(p,l,c)),le=new Map;Bs(le,this.driver,k,c,U).forEach(p=>{Us(p,l,c)&&ee.push(p)});let te=new Map;_.forEach((p,f)=>{Bs(te,this.driver,new Set(p),l,ke)}),ee.forEach(p=>{let f=le.get(p),g=te.get(p);le.set(p,new Map([...f?.entries()??[],...g?.entries()??[]]))});let lt=[],Xt=[],Jt={};o.forEach(p=>{let{element:f,player:g,instruction:E}=p;if(n.has(f)){if(d.has(f)){g.onDestroy(()=>q(f,E.toStyles)),g.disabled=!0,g.overrideTotalTime(E.totalTime),s.push(g);return}let C=Jt;if(O.size>1){let L=f,X=[];for(;L=L.parentNode;){let b=O.get(L);if(b){C=b;break}X.push(L)}X.forEach(b=>O.set(b,C))}let Q=this._buildAnimation(g.namespaceId,E,D,i,te,le);if(g.setRealPlayer(Q),C===Jt)lt.push(g);else{let L=this.playersByElement.get(C);L&&L.length&&(g.parentPlayer=Y(L)),s.push(g)}}else Z(f,E.fromStyles),g.onDestroy(()=>q(f,E.toStyles)),Xt.push(g),d.has(f)&&s.push(g)}),Xt.forEach(p=>{let f=i.get(p.element);if(f&&f.length){let g=Y(f);p.setRealPlayer(g)}}),s.forEach(p=>{p.parentPlayer?p.syncPlayerEvents(p.parentPlayer):p.destroy()});for(let p=0;p<w.length;p++){let f=w[p],g=f[V];if(ge(f,Qe),g&&g.hasAnimation)continue;let E=[];if(a.size){let Q=a.get(f);Q&&Q.length&&E.push(...Q);let L=this.driver.query(f,je,!0);for(let X=0;X<L.length;X++){let b=a.get(L[X]);b&&b.length&&E.push(...b)}}let C=E.filter(Q=>!Q.destroyed);C.length?Jr(this,f,C):this.processLeaveNode(f)}return w.length=0,lt.forEach(p=>{this.players.push(p),p.onDone(()=>{p.destroy();let f=this.players.indexOf(p);this.players.splice(f,1)}),p.play()}),lt}afterFlush(e){this._flushFns.push(e)}afterFlushAnimationsDone(e){this._whenQuietFns.push(e)}_getPreviousPlayers(e,t,n,s,i){let o=[];if(t){let a=this.playersByQueriedElement.get(e);a&&(o=a)}else{let a=this.playersByElement.get(e);if(a){let l=!i||i==Ne;a.forEach(c=>{c.queued||!l&&c.triggerName!=s||o.push(c)})}}return(n||s)&&(o=o.filter(a=>!(n&&n!=a.namespaceId||s&&s!=a.triggerName))),o}_beforeAnimationBuild(e,t,n){let s=t.triggerName,i=t.element,o=t.isRemovalTransition?void 0:e,a=t.isRemovalTransition?void 0:s;for(let l of t.timelines){let c=l.element,d=c!==i,m=R(n,c,[]);this._getPreviousPlayers(c,d,o,a,t.toState).forEach(_=>{let h=_.getRealPlayer();h.beforeDestroy&&h.beforeDestroy(),_.destroy(),m.push(_)})}Z(i,t.fromStyles)}_buildAnimation(e,t,n,s,i,o){let a=t.triggerName,l=t.element,c=[],d=new Set,m=new Set,v=t.timelines.map(h=>{let y=h.element;d.add(y);let w=y[V];if(w&&w.removedBeforeQueried)return new H(h.duration,h.delay);let A=y!==l,k=Zr((n.get(y)||$r).map(D=>D.getRealPlayer())).filter(D=>{let O=D;return O.element?O.element===y:!1}),N=i.get(y),P=o.get(y),ae=St(this._normalizer,h.keyframes,N,P),G=this._buildPlayer(h,ae,k);if(h.subTimeline&&s&&m.add(y),A){let D=new Re(e,a,y);D.setRealPlayer(G),c.push(D)}return G});c.forEach(h=>{R(this.playersByQueriedElement,h.element,[]).push(h),h.onDone(()=>Hr(this.playersByQueriedElement,h.element,h))}),d.forEach(h=>x(h,At));let _=Y(v);return _.onDestroy(()=>{d.forEach(h=>ge(h,At)),q(l,t.toStyles)}),m.forEach(h=>{R(s,h,[]).push(_)}),_}_buildPlayer(e,t,n){return t.length>0?this.driver.animate(e.element,t,e.duration,e.delay,e.easing,n):new H(e.duration,e.delay)}},Re=class{namespaceId;triggerName;element;_player=new H;_containsRealPlayer=!1;_queuedCallbacks=new Map;destroyed=!1;parentPlayer=null;markedForDestroy=!1;disabled=!1;queued=!0;totalTime=0;constructor(e,t,n){this.namespaceId=e,this.triggerName=t,this.element=n}setRealPlayer(e){this._containsRealPlayer||(this._player=e,this._queuedCallbacks.forEach((t,n)=>{t.forEach(s=>qe(e,n,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){R(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 Hr(r,e,t){let n=r.get(e);if(n){if(n.length){let s=n.indexOf(t);n.splice(s,1)}n.length==0&&r.delete(e)}return n}function Yr(r){return r??null}function Xe(r){return r&&r.nodeType===1}function Xr(r){return r=="start"||r=="done"}function Ks(r,e){let t=r.style.display;return r.style.display=e??"none",t}function Bs(r,e,t,n,s){let i=[];t.forEach(l=>i.push(Ks(l)));let o=[];n.forEach((l,c)=>{let d=new Map;l.forEach(m=>{let v=e.computeStyle(c,m,s);d.set(m,v),(!v||v.length==0)&&(c[V]=Wr,o.push(c))}),r.set(c,d)});let a=0;return t.forEach(l=>Ks(l,i[a++])),o}function xs(r,e){let t=new Map;if(r.forEach(a=>t.set(a,[])),e.length==0)return t;let n=1,s=new Set(e),i=new Map;function o(a){if(!a)return n;let l=i.get(a);if(l)return l;let c=a.parentNode;return t.has(c)?l=c:s.has(c)?l=n:l=o(c),i.set(a,l),l}return e.forEach(a=>{let l=o(a);l!==n&&t.get(l).push(a)}),t}function x(r,e){r.classList?.add(e)}function ge(r,e){r.classList?.remove(e)}function Jr(r,e,t){Y(t).onDone(()=>r.processLeaveNode(e))}function Zr(r){let e=[];return $s(r,e),e}function $s(r,e){for(let t=0;t<r.length;t++){let n=r[t];n instanceof pe?$s(n.players,e):e.push(n)}}function ei(r,e){let t=Object.keys(r),n=Object.keys(e);if(t.length!=n.length)return!1;for(let s=0;s<t.length;s++){let i=t[s];if(!e.hasOwnProperty(i)||r[i]!==e[i])return!1}return!0}function Us(r,e,t){let n=t.get(r);if(!n)return!1;let s=e.get(r);return s?n.forEach(i=>s.add(i)):e.set(r,n),t.delete(r),!0}var ye=class{_driver;_normalizer;_transitionEngine;_timelineEngine;_triggerCache={};onRemovalComplete=(e,t)=>{};constructor(e,t,n){this._driver=t,this._normalizer=n,this._transitionEngine=new Ut(e.body,t,n),this._timelineEngine=new Bt(e.body,t,n),this._transitionEngine.onRemovalComplete=(s,i)=>this.onRemovalComplete(s,i)}registerTrigger(e,t,n,s,i){let o=e+"-"+s,a=this._triggerCache[o];if(!a){let l=[],c=[],d=Vs(this._driver,i,l,c);if(l.length)throw gs(s,l);a=xr(s,d,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)}
1onInsert(e,t,n,s){this._transitionEngine.insertNode(e,t,n,s)}onRemove(e,t,n){this._transitionEngine.removeNode(e,t,n)}disableAnimations(e,t){this._transitionEngine.markElementAsDisabled(e,t)}process(e,t,n,s){if(n.charAt(0)=="@"){let[i,o]=vt(n),a=s;this._timelineEngine.command(i,t,o,a)}else this._transitionEngine.trigger(e,t,n,s)}listen(e,t,n,s,i){if(n.charAt(0)=="@"){let[o,a]=vt(n);return this._timelineEngine.listen(o,t,a,i)}return this._transitionEngine.listen(e,t,n,s,i)}flush(e=-1){this._transitionEngine.flush(e)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(e){this._transitionEngine.afterFlushAnimationsDone(e)}};function ti(r,e){let t=null,n=null;return Array.isArray(e)&&e.length?(t=Dt(e[0]),e.length>1&&(n=Dt(e[e.length-1]))):e instanceof Map&&(t=Dt(e)),t||n?new ni(r,t,n):null}var ni=(()=>{class r{_element;_startStyles;_endStyles;static initialStylesByElement=new WeakMap;_state=0;_initialStyles;constructor(t,n,s){this._element=t,this._startStyles=n,this._endStyles=s;let i=r.initialStylesByElement.get(t);i||r.initialStylesByElement.set(t,i=new Map),this._initialStyles=i}start(){this._state<1&&(this._startStyles&&q(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(q(this._element,this._initialStyles),this._endStyles&&(q(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(r.initialStylesByElement.delete(this._element),this._startStyles&&(Z(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Z(this._element,this._endStyles),this._endStyles=null),q(this._element,this._initialStyles),this._state=3)}}return r})();function Dt(r){let e=null;return r.forEach((t,n)=>{si(n)&&(e=e||new Map,e.set(n,t))}),e}function si(r){return r==="display"||r==="position"}var rt=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,n,s){this.element=e,this.keyframes=t,this.options=n,this._specialStyles=s,this._duration=n.duration,this._delay=n.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;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(n=>{t.push(Object.fromEntries(n))}),t}_triggerWebAnimation(e,t,n){return e.animate(this._convertKeyframesToObject(t),n)}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
vendor: 4,405 bytes, line 1
1=>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((n,s)=>{s!=="offset"&&e.set(s,this._finished?n:We(this.element,s))}),this.currentSnapshot=e}triggerCallback(e){let t=e==="start"?this._onStartFns:this._onDoneFns;t.forEach(n=>n()),t.length=0}},it=class{validateStyleProperty(e){return!0}validateAnimatableStyleProperty(e){return!0}containsElement(e,t){return Et(e,t)}getParentElement(e){return Ge(e)}query(e,t,n){return Tt(e,t,n)}computeStyle(e,t,n){return We(e,t)}animate(e,t,n,s,i,o=[]){let a=s==0?"both":"forwards",l={duration:n,delay:s,fill:a};i&&(l.easing=i);let c=new Map,d=o.filter(_=>_ instanceof rt);Ns(n,s)&&d.forEach(_=>{_.currentSnapshot.forEach((h,y)=>c.set(y,h))});let m=Ps(t).map(_=>new Map(_));m=Ds(e,m,c);let v=ti(e,m);return new rt(e,m,l,v)}};var Je="@",Ws="@.disabled",ot=class{namespaceId;delegate;engine;_onDestroy;\u0275type=0;constructor(e,t,n,s){this.namespaceId=e,this.delegate=t,this.engine=n,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,n,s=!0){this.delegate.insertBefore(e,t,n),this.engine.onInsert(this.namespaceId,t,e,s)}removeChild(e,t,n){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,n,s){this.delegate.setAttribute(e,t,n,s)}removeAttribute(e,t,n){this.delegate.removeAttribute(e,t,n)}addClass(e,t){this.delegate.addClass(e,t)}removeClass(e,t){this.delegate.removeClass(e,t)}setStyle(e,t,n,s){this.delegate.setStyle(e,t,n,s)}removeStyle(e,t,n){this.delegate.removeStyle(e,t,n)}setProperty(e,t,n){t.charAt(0)==Je&&t==Ws?this.disableAnimations(e,!!n):this.delegate.setProperty(e,t,n)}setValue(e,t){this.delegate.setValue(e,t)}listen(e,t,n,s){return this.delegate.listen(e,t,n,s)}disableAnimations(e,t){this.engine.disableAnimations(e,t)}},qt=class extends ot{factory;constructor(e,t,n,s,i){super(t,n,s,i),this.factory=e,this.namespaceId=t}setProperty(e,t,n){t.charAt(0)==Je?t.charAt(1)=="."&&t==Ws?(n=n===void 0?!0:!!n,this.disableAnimations(e,n)):this.engine.process(this.namespaceId,e,t.slice(1),n):this.delegate.setProperty(e,t,n)}listen(e,t,n,s){if(t.charAt(0)==Je){let i=ri(e),o=t.slice(1),a="";return o.charAt(0)!=Je&&([o,a]=ii(o)),this.engine.listen(this.namespaceId,i,o,a,l=>{let c=l._data||-1;this.factory.scheduleListenerCallback(c,n,l)})}return this.delegate.listen(e,t,n,s)}};function ri(r){switch(r){case"body":return document.body;case"document":return document;case"window":return window;default:return r}}function ii(r){let e=r.indexOf("."),t=r.substring(0,e),n=r.slice(e+1);return[t,n]}var at=class{delegate;engine;_zone;_currentId=0;_microtaskId=1;_animationCallbacksBuffer=[];_rendererCache=new Map;_cdRecurDepth=0;constructor(e,t,n){this.delegate=e,this.engine=t,this._zone=n,t.onRemovalComplete=(s,i)=>{i?.removeChild(null,s)}}createRenderer(e,t){let s=this.delegate.createRenderer(e,t);if(!e||!t?.data?.animation){let c=this._rendererCache,d=c.get(s);if(!d){let m=()=>c.delete(s);d=new ot("",s,this.engine,m),c.set(s,d)}return d}let i=t.id,o=t.id+"-"+this._currentId;this._currentId++,this.engine.register(o,e);let a=c=>{Array.isArray(c)?c.forEach(a):this.engine.registerTrigger(i,o,e,c.name,c)};return t.data.animation.forEach(a),new qt(this,o,s,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(e,t,n){if(e>=0&&e<this._microtaskId){this._zone.run(()=>t(n));return}let s=this._animationCallbacksBuffer;s.length==0&&queueMicrotask(()=>{this._zone.run(()=>
1{s.forEach(i=>{let[o,a]=i;o(a)}),this._animationCallbacksBuffer=[]})}),s.push([t,n])}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 ai=(()=>{class r extends ye{constructor(t,n,s){super(t,n,s)}ngOnDestroy(){this.flush()}static \u0275fac=function(n){return new(n||r)(Le(ze),Le(ie),Le(oe))};static \u0275prov=me({token:r,factory:r.\u0275fac})}return r})();function li(){return new Ze}function ci(r,e,t){return new at(r,e,t)}var Hs=[{provide:oe,useFactory:li},{provide:ye,useClass:ai},{provide:hn,useFactory:ci,deps:[wn,ye,mn]}],no=[{provide:ie,useClass:Vt},{provide:mt,useValue:"NoopAnimations"},...Hs],ui=[{provide:ie,useFactory:()=>new it},{provide:mt,useFactory:()=>"BrowserAnimations"},...Hs];function Ys(){return pn("NgEagerAnimations"),[...ui]}var Xs=[{section:"Getting Started",title:"What is Maskito?",route:u.WhatIsMaskito,keywords:"getting, started, what, is, maskito"},{section:"Getting Started",title:"Maskito libraries",route:u.MaskitoLibraries,keywords:"install, package, packages, maskito, npm, setup, explore, ec
1osystem"},{section:"Core Concepts",title:"Overview",route:u.CoreConceptsOverview,keywords:"core, concepts, overview"},{section:"Core Concepts",title:"Mask expression",route:u.MaskExpression,keywords:"core, concepts, mask, expression, reg, exp, fixed"},{section:"Core Concepts",title:"Element state",route:u.ElementState,keywords:"core, concepts, element, state"},{section:"Core Concepts",title:"Processors",route:u.Processors,keywords:"core, concepts, preprocessor, postprocessor, processor, element, state, elementState"},{section:"Core Concepts",title:"Plugins",route:u.Plugins,keywords:"core, concepts, extension, event, focus, blur"},{section:"Core Concepts",title:"Overwrite mode",route:u.OverwriteMode,keywords:"core, concepts, overwrite, mode, shift, replace"},{section:"Core Concepts",title:"Transformer",route:u.Transformer,keywords:"core, concepts, programmatic, patch, set, update, value"},{section:"Frameworks",title:"Angular",route:u.Angular,keywords:"ng, angular, framework, addon"},{section:"Frameworks",title:"React",route:u.React,keywords:"react, framework, addon"},{section:"Frameworks",title:"React Native",route:u.ReactNative,keywords:"react, native, mobile, ios, android, framework, addon"},{section:"Frameworks",title:"Vue",route:u.Vue,keywords:"vue, framework, addon"},{section:"Kit",title:"Number",route:u.Number,keywords:"digit, number, money, mask, kit, generator, big, int, integer, bigint"},{section:"Kit",title:"Time",route:u.Time,keywords:"time, hour, minute, second, mask, kit, generator"},{section:"Kit",title:"Date",route:u.Date,keywords:"date, day, month, year, mask, kit, generator"},{section:"Kit",title:"DateRange",route:u.DateRange,keywords:"date, day, month, year, mask, range, kit, generator"},{section:"Kit",title:"DateTime",route:u.DateTime,keywords:"date, day, month, year, mask, time, date-time, hour, minute, second, kit, generator"},{section:"Kit",title:"List of Plugins",route:u.KitPlugins,keywords:"reject, caret, guard, event, handler, focus, blur, selection"},{section:"Addons",title:"@maskito/phone",route:u.PhonePackage,keywords:"phone, libphonenumber, international, generator"},{section:"Recipes",title:"Card",route:u.Card,keywords:"card, credit, cvv, debit, mask, recipe"},{section:"Recipes",title:"Email",route:u.Email,keywords:"email, mail, mailto, address, mask, recipe"},{section:"Recipes",title:"Phone",route:u.Phone,keywords:"phone, mobile, tel, telephone, mask, recipe"},{section:"Recipes",title:"Textarea",route:u.Textarea,keywords:"textarea, latin, mask, recipe"},{section:"Recipes",title:"ContentEditable",route:u.ContentEditable,keywords:"content, editable, contenteditable, contentEditable, mask, recipe"},{section:"Recipes",title:"With prefix",route:u.Prefix,keywords:"prefix, before, recipe"},{section:"Recipes",title:"With postfix",route:u.Postfix,keywords:"postfix, after, percent, am, pm, recipe"},{section:"Recipes",title:"With placeholder",route:u.Placeholder,keywords:"guide, placeholder, fill, recipe"},{section:"Recipes",title:"Network address",route:u.NetworkAddress,keywords:"ipv6, ipv4, ip, mac, address, network, recipe"},{section:"Other",title:"Browser support",route:u.BrowserSupport,keywords:"chrome, safari, ie, edge, firefox, browser, support"},{section:"Other",title:"Supported <input /> types",route:u.SupportedInputTypes,keywords:"input, type, text, password, search, tel, url, email, number, date, month"},{section:"Other",title:"Maskito in Real World Form",route:u.RealWorldForm,keywords:"browser, autofill, showcase, in, action, demo"},{section:"Other",title:"Changelog",route:"https://github.com/taiga-family/maskito/blob/main/CHANGELOG.md",target:"_blank",keywords:"release, change, changelog, archive, history"}];var Js=[{path:"",loadComponent:()=>import("./chunk-ZWS43CWA.js"),title:"What is Maskito?"},{path:u.WhatIsMaskito,loadComponent:()=>import("./chunk-ZWS43CWA.js"),title:"What is Maskito?"},{path:u.MaskitoLibraries,loadComponent:()=>import("./chunk-KK4ANRL7.js"),title:"Maskito libraries"},{path:u.CoreConceptsOverview,loadComponent:()=>import("./chunk-SPME3KZX.js"),title:"Core Concepts"},{path:u.MaskExpression,loadComponent:()=>import("./chunk-JCRDV3OG.js"),title:"Mask expression"},{path:u.ElementState,loadComponent:()=>import("./chunk-F2YRXFTS.js"),title:"Element state"},{path:u.Processors,loadComponent:()=>import("./chunk-DEH4NHJW.js"),title:"Processors"},{path:u.Plugins,loadComponent:()=>import("./chunk-BPKXNIPR.js"),title:"Plugins"},{path:u.OverwriteMode,loadComponent:()=>import("./chunk-WU4PHM5A.js"),title:"Overwrite mode"},{path:u.Transformer,loadComponent:()=>import("./chunk-VW6ZGPVT.js"),title:"Transformer"},{path:u.Angular,loadComponent:()=>import("./chunk-66U2E54E.js"),title:"Angular"},{path:u.React,loadComponent:()=>import("./chunk-Z3K5YET4.js"),title:"React"},{path:u.ReactNative,loadComponent:()=>import("./chunk-HMG2HTNW.js"),title:"React Native"},{path:u.Vue,loadComponent:()=>import("./chunk-PJYSC5I4.js"),title:"Vue"},{path:u.Number,loadComponent:()=>import("./chunk-DH5TTMUW.js"),title:"Number"},{path:u.Time,loadComponent:()=>import("./chunk-TUMJDNHH.js"),title:"Time"},{path:u.Date,loadComponent:()=>import("./chunk-X5GD5M64.js"),title:"Date"},{path:u.DateRange,loadComponent:()=>import("./chunk-I3OPU434.js"),title:"DateRange"},{path:u.KitPlugins,loadComponent:()=>import("./chunk-XPETCB3Z.js"),title:"Plugins | @maskito/kit"},{path:u.DateTime,loadComponent:()=>import("./chunk-4FFVHAZI.js"),title:"DateTime"},{path:u.Card,loadComponent:()=>import("./chunk-6ENG55Y2.js"),title:"Card"},{path:u.Email,loadComponent:()=>import("./chunk-P224Q73A.js"),title:"Email"},{path:u.Phone,loadComponent:()=>import("./chunk-SQZ25OHV.js"),title:"Phone"},{path:u.PhonePackage,loadComponent:()=>import("./chunk-3PHAWMYR.js"),title:"Phone"},{path:u.Textarea,loadComponent:()=>import("./chunk-6KZVNFV6.js"),title:"Textarea"},{path:u.ContentEditable,loadComponent:()=>import("./chunk-ORTRPVVZ.js"),title:"ContentEditable"},{path:u.Prefix,loadComponent:()=>import("./chunk-K2WMNCL3.js"),title:"With prefix"},{path:u.Postfix,loadComponent:()=>import("./chunk-T2GAKQEV.js"),title:"With postfix"},{path:u.Placeholder,loadComponent:()=>import("./chunk-NME5SOBZ.js"),title:"With placeholder"},{path:u.NetworkAddress,loadComponent:()=>import("./chunk-XDXPAXGV.js"),title:"Network address"},{path:u.BrowserSupport,loadComponent:()=>import("./chunk-YNQVCR4X.js"),title:"Browser support"}
1,{path:u.SupportedInputTypes,loadComponent:()=>import("./chunk-DIPQ77MQ.js"),title:"Supported <input /> types"},{path:u.RealWorldForm,loadComponent:()=>import("./chunk-AAEGHJ27.js"),title:"Maskito in Real World Form"},{path:u.Stackblitz,loadComponent:()=>import("./chunk-QMKUR65F.js").then(r=>r.StackblitzStarter),title:"Stackblitz Starter"}].map(zn).concat({path:"**",redirectTo:u.WhatIsMaskito});var _e=class _e{};_e.\u0275fac=function(t){return new(t||_e)},_e.\u0275cmp=K({type:_e,selectors:[["angular-logo"]],decls:1,vars:0,consts:[["src","assets/icons/angular.svg","alt","Angular logo"]],template:function(t,n){t&1&&B(0,"img",0)},styles:["img[_ngcontent-%COMP%]{display:flex;width:1.5rem}"],changeDetection:0});var Qt=_e,Zs=new $(Qt);var Se=class Se{};Se.\u0275fac=function(t){return new(t||Se)},Se.\u0275cmp=K({type:Se,selectors:[["javascript-logo"]],decls:1,vars:0,consts:[["src","assets/icons/javascript.svg","alt","JavaScript logo"]],template:function(t,n){t&1&&B(0,"img",0)},styles:["img[_ngcontent-%COMP%]{display:flex;width:1.5rem}"],changeDetection:0});var jt=Se,er=new $(jt);var ve=class ve{};ve.\u0275fac=function(t){return new(t||ve)},ve.\u0275cmp=K({type:ve,selectors:[["react-logo"]],decls:1,vars:0,consts:[["src","assets/icons/react.svg","alt","React logo"]],template:function(t,n){t&1&&B(0,"img",0)},styles:["img[_ngcontent-%COMP%]{display:flex;width:1.5rem}"],changeDetection:0});var $t=ve,tr=new $($t);var Ee=class Ee{};Ee.\u0275fac=function(t){return new(t||Ee)},Ee.\u0275cmp=K({type:Ee,selectors:[["vue-logo"]],decls:1,vars:0,consts:[["src","assets/icons/vue.svg","alt","Vue logo"]],template:function(t,n){t&1&&B(0,"img",0)},styles:["img[_ngcontent-%COMP%]{display:flex;width:1.5rem}"],changeDetection:0});var Wt=Ee,nr=new $(Wt);var Te=class Te{};Te.\u0275fac=function(t){return new(t||Te)},Te.\u0275cmp=K({type:Te,selectors:[["logo"]],decls:3,vars:0,consts:[["routerLink","/",1,"t-link"],["alt","Maskito logo","src","assets/icons/maskito.svg",1,"t-logo"]],template:function(t,n){t&1&&(we(0,"a",0),B(1,"img",1),Ie(2,` Maskito 2`),be())},dependencies:[Be],styles:["@media screen and (max-width:767.4px){[_nghost-%COMP%]{font-size:0}}.t-link[_ngcontent-%COMP%]{display:flex;gap:.5rem;color:var(--tui-text-primary);text-decoration:none}.t-logo[_ngcontent-%COMP%]{inline-size:1.5rem}"],changeDetection:0});var Ht=Te,sr=new $(Ht);var rr=`import {Component} from '@angular/core'; 3import {MaskitoDirective} from '@maskito/angular'; 4import type {MaskitoOptions} from '@maskito/core'; 5 6import mask from './mask'; 7 8@Component({ 9 selector: 'my-app', 10 imports: [MaskitoDirective], 11 template: '<input [maskito]="options" />', 12}) 13export class App { 14 readonly options: MaskitoOptions = mask; 15}`;var ir=`import {Maskito, MaskitoOptions} from '@maskito/core'; 16import maskitoOptions from './mask'; 17 18const element = document.querySelector('input,textarea')!; 19const maskedInput = new Maskito(element, maskitoOptions); 20 21// Call this function when the element is detached from DOM 22maskedInput.destroy();`;var or=`import * as React from 'react'; 23import {useMaskito} from '@maskito/react'; 24 25import options from './mask'; 26 27export default function App() { 28 const maskedInputRef = useMaskito({options}); 29 30 return <input ref={maskedInputRef} />; 31}`;var ar=`import {createApp} from 'vue'; 32import {maskito} from '@maskito/vue'; 33 34import options from './mask'; 35 36const app = createApp({ 37 template: '<input v-maskito="options" />', 38 directives: {maskito}, 39 data: () => ({ options }), 40});`;var lr=r=>{let e=Object.keys(r);return e.length===1&&e[0]===I.MaskitoOptions?en(ce({},r),{[I.JavaScript]:ir,[I.Angular]:rr,[I.React]:or,[I.Vue]:ar}):r};var cr={providers:[kn(),Ys(),Cn(Js,Pn({scrollPositionRestoration:"enabled",anchorScrolling:"enabled"})),In(),An(),{provide:Tn,useClass:Jn},{provide:Sn,useClass:vn},{provide:Qn,useValue:"Maskito | "},{provide:Un,useValue:sr},{provide:Bn,useValue:["Examples","API"]},{provide:qn,useValue:Xs},{provide:Gn,useValue:r=>{let e="https://github.com/taiga-family/maskito/tree/main/projects";return r.path?`${e}/${r.path}`:r.package.toLowerCase()==="kit"?`${e}/${r.package.toLowerCase()}/src/lib/masks/${`${r.header.slice(0,1).toLowerCase()}${r.header.slice(1)}`.replaceAll(/[A-Z]/g,t=>`-${t.toLowerCase()}`)}`:null}},{provide:Kn,useClass:Xn},{provide:xn,useValue:lr},{provide:Hn,useFactory:()=>{let r=j(Rn);return{codeEditorVisibilityHandler:e=>{let t=Object.keys(e);return!r&&t.includes(I.MaskitoOptions)&&t.includes(I.JavaScript)},tabTitles:new Map([[I.Angular,Zs],[I.JavaScript,er],[I.React,tr],[I.Vue,nr]]),fullsize:!0}}},{provide:Wn,useFactory:()=>{let r=En(j(dn));return{coreLibraryLoader:()=>ue(null,null,function*(){return import("./chunk-PW5FJY2J.js")}),lineNumbersLoader:()=>ue(null,null,function*(){return r?import("./chunk-XPBW323Z.js"):Promise.resolve()}),languages:{typescript:()=>ue(null,null,function*(){return import("./chunk-45F32J36.js")}),less:()=>ue(null,null,function*(){return import("./chunk-AAVKU6PV.js")}),xml:()=>ue(null,null,function*(){return import("./chunk-BPZEYTLD.js")})}}}},{provide:jn,useValue:r=>{if(r.toLowerCase().startsWith("maskito"))return`https://github.com/search?q=%2F%28enum%7Ctype%7Cinterface%7Cclass%7Cfunction%7Cconst%29+${r}
40%28%3C%7C%5Cs%29%2F+language%3ATypeScript+repo%3Ataiga-family%2Fmaskito+&type=code`;switch(r){case"Date":return"https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Date";case"MetadataJson":return"https://github.com/catamphetamine/libphonenumber-js?tab=readme-ov-file#min-vs-max-vs-mobile-vs-core";default:return null}}},{provide:Vn,useValue:{"Getting Started":"@tui.rocket","Core Concepts":"@tui.blocks",Frameworks:"@tui.atom",Kit:"@tui.wrench",Addons:"@tui.circle-fading-plus",Recipes:"@tui.cooking-pot",Other:"@tui.file-plus-corner"}}]};bn(Ue,cr).catch(r=>console.error(r));
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.