From ee74c2a2613ff349b60c41be19eb09b27c7fa414 Mon Sep 17 00:00:00 2001 From: vladimirpotekhin <46284632+vladimirpotekhin@users.noreply.github.com> Date: Thu, 29 Aug 2024 08:11:02 +0000 Subject: [PATCH] =?UTF-8?q?Deploying=20to=20gh-pages=20from=20@=20taiga-fa?= =?UTF-8?q?mily/taiga-lumbermill@407912c932c36740e796c757b510de9b05507785?= =?UTF-8?q?=20=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 404.html | 2 +- chunk-55ASQOEL.js | 2 ++ chunk-ZN6AO4BG.js => chunk-5TYV2UJ6.js | 2 +- chunk-JUAR2SQB.js => chunk-CX3RAO33.js | 2 +- chunk-OKL4RZMA.js => chunk-DXP4LH76.js | 2 +- chunk-EQRGY766.js | 1 - chunk-H7DO2GMQ.js | 7 ------- chunk-PIDCXASU.js => chunk-JUA3DLL5.js | 2 +- chunk-LOMFBLNO.js | 3 --- chunk-GONOUNY6.js => chunk-LSLALVJS.js | 2 +- chunk-MIQNTQBH.js | 1 - chunk-VEFAKPD5.js => chunk-N6CP2Y4H.js | 2 +- chunk-TZLWDFXK.js => chunk-O52MZMLS.js | 2 +- chunk-ONDW62UT.js | 1 + chunk-OU5F42O3.js | 1 + chunk-NL4UQKF6.js => chunk-P6AQGOJY.js | 2 +- chunk-ROMIO7FL.js | 8 ++++++++ chunk-IMH2DPZL.js => chunk-RXYZMX2Q.js | 2 +- chunk-UPS6ZX2Y.js => chunk-TM3BF3MS.js | 2 +- chunk-5RXY5XY7.js => chunk-X6KU7K55.js | 2 +- chunk-AWGYT4IY.js => chunk-XEFPZ7J3.js | 2 +- chunk-DNEQ7KDT.js => chunk-XENTLRKE.js | 2 +- chunk-YUW7GALI.js | 2 -- chunk-ZBHN6UO4.js | 3 +++ chunk-RRCAJAAS.js => chunk-ZWMUZJ6F.js | 2 +- chunk-LS7UCRAC.js => chunk-ZYN4Y54G.js | 2 +- index.html | 2 +- main-QJNXNL6C.js => main-Q5TRJFFN.js | 4 ++-- 28 files changed, 34 insertions(+), 33 deletions(-) create mode 100644 chunk-55ASQOEL.js rename chunk-ZN6AO4BG.js => chunk-5TYV2UJ6.js (98%) rename chunk-JUAR2SQB.js => chunk-CX3RAO33.js (91%) rename chunk-OKL4RZMA.js => chunk-DXP4LH76.js (99%) delete mode 100644 chunk-EQRGY766.js delete mode 100644 chunk-H7DO2GMQ.js rename chunk-PIDCXASU.js => chunk-JUA3DLL5.js (99%) delete mode 100644 chunk-LOMFBLNO.js rename chunk-GONOUNY6.js => chunk-LSLALVJS.js (98%) delete mode 100644 chunk-MIQNTQBH.js rename chunk-VEFAKPD5.js => chunk-N6CP2Y4H.js (94%) rename chunk-TZLWDFXK.js => chunk-O52MZMLS.js (96%) create mode 100644 chunk-ONDW62UT.js create mode 100644 chunk-OU5F42O3.js rename chunk-NL4UQKF6.js => chunk-P6AQGOJY.js (87%) create mode 100644 chunk-ROMIO7FL.js rename chunk-IMH2DPZL.js => chunk-RXYZMX2Q.js (90%) rename chunk-UPS6ZX2Y.js => chunk-TM3BF3MS.js (99%) rename chunk-5RXY5XY7.js => chunk-X6KU7K55.js (93%) rename chunk-AWGYT4IY.js => chunk-XEFPZ7J3.js (95%) rename chunk-DNEQ7KDT.js => chunk-XENTLRKE.js (99%) delete mode 100644 chunk-YUW7GALI.js create mode 100644 chunk-ZBHN6UO4.js rename chunk-RRCAJAAS.js => chunk-ZWMUZJ6F.js (99%) rename chunk-LS7UCRAC.js => chunk-ZYN4Y54G.js (97%) rename main-QJNXNL6C.js => main-Q5TRJFFN.js (54%) diff --git a/404.html b/404.html index 4e9caa19b..2915a36e2 100644 --- a/404.html +++ b/404.html @@ -9,5 +9,5 @@ - + diff --git a/chunk-55ASQOEL.js b/chunk-55ASQOEL.js new file mode 100644 index 000000000..092043172 --- /dev/null +++ b/chunk-55ASQOEL.js @@ -0,0 +1,2 @@ +import{Y as X,u as G,w as J}from"./chunk-DXP4LH76.js";import{f as U}from"./chunk-GIHFJXZ6.js";import{Af as Z,Ba as M,Ca as D,Ea as d,Ec as H,Ef as g,Fd as p,Gf as _,Hf as u,I as m,K as l,Kb as v,Kd as N,Ob as z,Q as T,Qb as L,Rb as F,Sa as O,Ta as A,Ud as Q,Va as k,Vd as j,Ve as K,Wd as b,Xd as $,af as Y,bc as R,cc as S,fe as h,ha as I,jb as W,la as y,me as q,nb as f,r as c,sb as V,t as x,ta as C,ub as E,vb as P,wa as s,yc as B}from"./chunk-NEAIWFFQ.js";var nt="tui-tab-activate",rt=(()=>{let i=class i{constructor(){var n,t;this.el=h(),this.rla=s(U,{optional:!0}),this.observer=this.rla&&((n=s(u,{optional:!0}))==null?void 0:n.pipe(l(()=>{var e;return!!((e=this.rla)!=null&&e.isActive)}))),this.sub=m(this.observer||c,((t=this.rla)==null?void 0:t.isActiveChange.pipe(l(Boolean)))||c,this.el.matches("button")?K(this.el,"click"):c).pipe(p()).subscribe(()=>this.el.dispatchEvent(new CustomEvent(nt,{bubbles:!0})))}ngOnDestroy(){G(this.el)&&this.el.blur()}};i.\u0275fac=function(t){return new(t||i)},i.\u0275dir=d({type:i,selectors:[["a","tuiTab","",3,"routerLink",""],["a","tuiTab","","routerLink","","routerLinkActive",""],["button","tuiTab",""]],hostAttrs:["type","button"],standalone:!0,features:[f([Z])]});let r=i;return r})(),et={underline:!0,exposeActive:!0,itemsLimit:1/0,minMoreWidth:0,size:"l"},w=N(et);function ae(r){return Q(w,r,et)}var ot=(()=>{let i=class i{};i.\u0275fac=function(t){return new(t||i)},i.\u0275cmp=D({type:i,selectors:[["ng-component"]],hostAttrs:[1,"tui-tabs"],standalone:!0,features:[S],decls:0,vars:0,template:function(t,e){},styles:[`[tuiTab]{transition-property:color,box-shadow,opacity,background;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;-webkit-appearance:none;appearance:none;padding:0;border:0;background:none;font-size:inherit;line-height:inherit;text-decoration:none;position:relative;display:flex;flex-shrink:0;box-sizing:border-box;justify-content:space-between;line-height:1.5rem;align-items:center;white-space:nowrap;cursor:pointer;outline:none;color:inherit;margin-left:24px}tui-tabs[data-size=m]+[tuiTab],tui-tabs[data-size=m] [tuiTab],[tuiTabs][data-size=m] [tuiTab]{margin-left:16px;font:var(--tui-font-text-s)}[tuiTab]:disabled{opacity:var(--tui-disabled-opacity);pointer-events:none}[tuiTab]._active{color:var(--tui-text-primary);box-shadow:none}[tuiTab]:focus-visible{outline:2px solid var(--tui-border-focus);outline-offset:-2px}tui-tabs._underline [tuiTab]:hover:not(._active),[tuiTabs]._underline [tuiTab]:hover:not(._active){box-shadow:inset 0 -2px var(--tui-border-normal)}tui-tabs>[tuiTab]:first-child,[tuiTabs]>[tuiTab]:first-child,tui-tabs>:not(.t-overflown)>[tuiTab]:first-child{margin-left:0}tui-tabs>[tuiTab]~:not(.t-overflown)>[tuiTab]:first-child{margin-left:var(--tui-tab-margin, 1.5rem)}[tuiTab][tuiIcons]:before{font-size:1rem;margin-inline-end:.5rem}[tuiTab][tuiIcons]:after{font-size:1rem;margin-inline-start:.5rem}[tuiTab]:empty:after,[tuiTab]:empty:before{margin:.5rem}@media (hover: hover){[tuiTab]:hover{color:var(--tui-text-primary)}}[tuiTabs],tui-tabs{scrollbar-width:none;-ms-overflow-style:none;position:relative;display:flex;font:var(--tui-font-text-m);color:var(--tui-text-secondary);box-shadow:inset 0 -1px var(--tui-border-normal);overflow:auto;isolation:isolate}[tuiTabs]::-webkit-scrollbar,tui-tabs::-webkit-scrollbar,[tuiTabs]::-webkit-scrollbar-thumb,tui-tabs::-webkit-scrollbar-thumb{display:none}[tuiTabs][data-size=l]:not([data-vertical]),tui-tabs[data-size=l]:not([data-vertical]){height:var(--tui-height-l)}[tuiTabs][data-size=m]:not([data-vertical]),tui-tabs[data-size=m]:not([data-vertical]){height:var(--tui-height-m)}[tuiTabs]:before,tui-tabs:before{transition-property:width,left;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;position:absolute;left:var(--t-left);bottom:0;height:2px;width:var(--t-width);background:var(--t-color);animation:tuiPresent 1ms}[tuiTabs]._underline:before,tui-tabs._underline:before{content:""}tui-tabs[data-vertical],[tuiTabs][data-vertical]{flex-direction:column;box-shadow:inset -1px 0 var(--tui-border-normal)}tui-tabs[data-vertical] [tuiTab],[tuiTabs][data-vertical] [tuiTab]{min-height:2.75rem;height:auto;white-space:normal;margin:0;text-align:left;padding:.25rem 1.25rem .25rem 0}tui-tabs[data-vertical] [tuiTab]:after,[tuiTabs][data-vertical] [tuiTab]:after{transition-property:transform;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;content:"";position:absolute;top:0;right:0;display:block;height:100%;width:2px;background:var(--tui-background-accent-1);transform:scaleX(0);transform-origin:right;margin:0}tui-tabs[data-vertical] [tuiTab]:hover,[tuiTabs][data-vertical] [tuiTab]:hover{box-shadow:inset -2px 0 var(--tui-border-normal)}tui-tabs[data-vertical] [tuiTab]._active:after,[tuiTabs][data-vertical] [tuiTab]._active:after{transform:none}tui-tabs[data-vertical][data-size=m] [tuiTab],[tuiTabs][data-vertical][data-size=m] [tuiTab]{min-height:2.25rem;font:var(--tui-font-text-s)}tui-tabs[data-vertical][data-vertical=right],[tuiTabs][data-vertical][data-vertical=right]{box-shadow:inset 1px 0 var(--tui-border-normal)}tui-tabs[data-vertical][data-vertical=right] [tuiTab],[tuiTabs][data-vertical][data-vertical=right] [tuiTab]{text-align:right;padding:.25rem 0 .25rem 1.25rem}tui-tabs[data-vertical][data-vertical=right] [tuiTab]:after,[tuiTabs][data-vertical][data-vertical=right] [tuiTab]:after{right:auto;left:0;transform-origin:left}tui-tabs[data-vertical][data-vertical=right] [tuiTab]:hover,[tuiTabs][data-vertical][data-vertical=right] [tuiTab]:hover{box-shadow:inset 2px 0 var(--tui-border-normal)} +`],encapsulation:2,changeDetection:0});let r=i;return r})(),tt=(()=>{let i=class i{constructor(){this.el=h(),this.injector=s(M),this.nothing=$(ot),this.size=s(w).size,this.activeItemIndex=0,this.activeItemIndexChange=new O}get tabs(){return Array.from(this.el.querySelectorAll("[tuiTab]"))}get activeElement(){return this.tabs[this.activeItemIndex]||null}moveFocus(n,t){let{tabs:e}=this;J(e.indexOf(n),e,t)}ngAfterViewChecked(){W(()=>{this.markTabAsActive()},{injector:this.injector})}onActivate(n,t){let e=this.tabs.findIndex(o=>o===t);n.stopPropagation(),e!==this.activeItemIndex&&(this.activeItemIndexChange.emit(e),this.activeItemIndex=e)}markTabAsActive(){let{tabs:n,activeElement:t}=this;n.forEach(e=>{let o=e===t;e.classList.toggle("_active",o),e.setAttribute("tabIndex",o?"0":"-1")})}};i.\u0275fac=function(t){return new(t||i)},i.\u0275dir=d({type:i,hostVars:1,hostBindings:function(t,e){t&1&&v("tui-tab-activate",function(a){return e.onActivate(a,a.target)}),t&2&&V("data-size",e.size)},inputs:{size:"size",activeItemIndex:"activeItemIndex"},outputs:{activeItemIndexChange:"activeItemIndexChange"},standalone:!0});let r=i;return r})(),se=(()=>{let i=class i{constructor(){this.el=h(),this.options=s(w),this.tabs=s(tt),this.children=q,this.sub=s(u,{self:!0}).pipe(Y(s(A)),p()).subscribe(()=>this.refresh()),this.underline=this.options.underline}ngAfterViewChecked(){this.scrollTo(this.tabs.activeItemIndex),this.refresh()}onKeyDownArrow(n,t){this.tabs.moveFocus(n,t)}refresh(){let{activeElement:n}=this.tabs;if(n&&!n.isConnected)return;let{offsetLeft:t=0,offsetWidth:e=0}=n||{};this.el.style.setProperty("--t-left",b(t)),this.el.style.setProperty("--t-width",b(e))}scrollTo(n){let t=this.tabs.tabs[n];if(!t)return;let{offsetLeft:e,offsetWidth:o}=t;ethis.el.scrollLeft+this.el.offsetWidth&&(this.el.scrollLeft=e+o-this.el.offsetWidth)}};i.\u0275fac=function(t){return new(t||i)},i.\u0275dir=d({type:i,selectors:[["tui-tabs",3,"vertical",""],["nav","tuiTabs","",3,"vertical",""]],contentQueries:function(t,e,o){if(t&1&&z(o,rt,4),t&2){let a;L(a=F())&&(e.children=a)}},hostVars:4,hostBindings:function(t,e){t&1&&v("animationend",function(){return e.refresh()})("keydown.arrowRight.prevent",function(a){return e.onKeyDownArrow(a.target,1)})("keydown.arrowLeft.prevent",function(a){return e.onKeyDownArrow(a.target,-1)}),t&2&&(E("--t-color",e.underline===!0?"var(--tui-background-accent-1)":e.underline),P("_underline",e.underline))},inputs:{underline:"underline"},standalone:!0,features:[R([u,{provide:_,useValue:{childList:!0,characterData:!0,subtree:!0}}]),f([{directive:tt,inputs:["activeItemIndex","activeItemIndex","size","size"],outputs:["activeItemIndexChange","activeItemIndexChange"]}])]});let r=i;return x([j],r.prototype,"scrollTo",null),r})();var at=new C("[TUI_TABS_REFRESH]"),ue=[g,u,X({align:"right"}),{provide:_,useValue:{childList:!0,subtree:!0,characterData:!0}},{provide:at,deps:[g,u,H,k,B],useFactory:(r,i,{body:it},{nativeElement:n},t)=>m(r,i.pipe(y(()=>t.detectChanges()))).pipe(l(()=>it.contains(n)),T(0),I(null),p())}];export{rt as a,ae as b,se as c}; diff --git a/chunk-ZN6AO4BG.js b/chunk-5TYV2UJ6.js similarity index 98% rename from chunk-ZN6AO4BG.js rename to chunk-5TYV2UJ6.js index 164a6e048..0c97cbc10 100644 --- a/chunk-ZN6AO4BG.js +++ b/chunk-5TYV2UJ6.js @@ -1,4 +1,4 @@ -import{b as W}from"./chunk-YUW7GALI.js";import{J as E,M as G,W as w,X as y,Z as l,aa as Q,ca as R,ga as U,ka as T,na as V,qa as g}from"./chunk-OKL4RZMA.js";import{e as x,f as p}from"./chunk-GIHFJXZ6.js";import{Bb as M,Bc as O,Bf as m,Ca as s,Cb as k,Cf as L,Ea as f,Hd as H,If as $,Jf as q,Kd as z,Mb as d,Mf as D,Nb as r,Od as I,Td as P,Ud as S,a as C,b as A,bc as u,cc as c,ef as N,fe as F,lb as _,nb as h,pf as B,vb as b,wa as o,zf as j}from"./chunk-NEAIWFFQ.js";var J={size:"m"},Y=z(J);function K(i){return S(Y,i,J)}var Z=["tuiNavigationAside",""],tt=[[["header"]],"*",[["footer"]]],it=["header","*","footer"];var v=["*"];var et=["tuiNavigationHeader",""],nt=["tuiNavigationLogo",""],ot=["tuiNavigationMain",""],at=["tuiNavigationNav",""],rt=(()=>{let t=class t{constructor(){this.expanded=_(!1)}set tuiNavigationAside(n){this.expanded.set(n)}};t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=s({type:t,selectors:[["aside","tuiNavigationAside",""]],hostAttrs:["tuiNavigationAside","","tuiTheme","dark"],hostVars:2,hostBindings:function(e,a){e&2&&b("_expanded",a.expanded())},inputs:{tuiNavigationAside:"tuiNavigationAside"},standalone:!0,features:[u([m({size:"s",appearance:"flat"}),y({appearance:"dropdown-navigation",align:"right",offset:12})]),c],attrs:Z,ngContentSelectors:it,decls:5,vars:0,consts:[[1,"t-nav-scrollbar"],["tuiFade","vertical","tuiScrollable","",1,"t-nav-content"]],template:function(e,a){e&1&&(d(tt),r(0),M(1,"tui-scrollbar",0)(2,"div",1),r(3,1),k()(),r(4,2))},dependencies:[E,$,G],styles:[`aside[tuiNavigationAside]{transition-property:width;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;position:sticky;top:3rem;z-index:1;display:flex;width:3rem;flex-direction:column;padding:.5rem .5rem .25rem;box-sizing:border-box;background:var(--tui-theme-color, #000);color:var(--tui-text-primary)}aside[tuiNavigationAside]:before{content:"";position:absolute;top:0;left:100%;z-index:-1;height:3rem;width:3rem;pointer-events:none;border-top-left-radius:1.25rem;box-shadow:-1.5rem 0 var(--tui-theme-color, #000)}aside[tuiNavigationAside]._expanded{width:13.75rem}aside[tuiNavigationAside]._expanded+main[tuiNavigationMain]{max-width:calc(100% - 13.75rem)}aside[tuiNavigationAside] .t-nav-scrollbar{margin:0 -.25rem}aside[tuiNavigationAside] .t-nav-content{scrollbar-width:none;-ms-overflow-style:none;height:100%;padding:0 .25rem;overflow:auto}aside[tuiNavigationAside] .t-nav-content::-webkit-scrollbar,aside[tuiNavigationAside] .t-nav-content::-webkit-scrollbar-thumb{display:none}aside[tuiNavigationAside] tui-expand [tuiAsideItem]{padding-inline-start:2rem}aside[tuiNavigationAside] hr{background:var(--tui-border-normal);height:1px;margin:0 0 .25rem;border:none}aside[tuiNavigationAside] header{padding-bottom:.25rem;box-shadow:inset 0 -1px var(--tui-border-normal);margin-bottom:1rem}aside[tuiNavigationAside] footer{margin-top:auto;border-top:1.75rem solid transparent}aside[tuiNavigationAside]+main[tuiNavigationMain]{max-width:calc(100% - 3rem)}[tuiAsideItem]{width:100%;justify-content:flex-start;gap:.625rem;margin-bottom:.25rem;color:var(--tui-text-primary)!important}[tuiAsideItem]:after{border:none!important;margin-left:auto!important;color:var(--tui-text-tertiary)}[tuiAsideItem]._chevron-rotated,[tuiAsideItem]._active{background:var(--tui-background-neutral-1-hover)}tui-dropdown[data-appearance=dropdown-navigation]{border:none;background:#323232;background:color-mix(in srgb,var(--tui-theme-color, #000) 80%,#fff)}tui-dropdown[data-appearance=dropdown-navigation] [tuiAsideItem]{justify-content:flex-start}tui-dropdown[data-appearance=dropdown-navigation] [tuiAsideItem]._active{background:transparent}tui-dropdown[data-appearance=dropdown-navigation] [tuiAsideItem]._link:not(._custom):after{opacity:0}tui-dropdown[data-appearance=dropdown-navigation] [tuiAsideItem]._link._active:after{opacity:1} +import{b as W}from"./chunk-55ASQOEL.js";import{K as E,N as G,X as w,Y as y,_ as l,ba as Q,da as R,ha as U,la as T,oa as V,ra as g}from"./chunk-DXP4LH76.js";import{e as x,f as p}from"./chunk-GIHFJXZ6.js";import{Bb as M,Bc as O,Bf as m,Ca as s,Cb as k,Cf as L,Ea as f,Hd as H,If as $,Jf as q,Kd as z,Mb as d,Mf as D,Nb as r,Od as I,Td as P,Ud as S,a as C,b as A,bc as u,cc as c,ef as N,fe as F,lb as _,nb as h,pf as B,vb as b,wa as o,zf as j}from"./chunk-NEAIWFFQ.js";var J={size:"m"},Y=z(J);function K(i){return S(Y,i,J)}var Z=["tuiNavigationAside",""],tt=[[["header"]],"*",[["footer"]]],it=["header","*","footer"];var v=["*"];var et=["tuiNavigationHeader",""],nt=["tuiNavigationLogo",""],ot=["tuiNavigationMain",""],at=["tuiNavigationNav",""],rt=(()=>{let t=class t{constructor(){this.expanded=_(!1)}set tuiNavigationAside(n){this.expanded.set(n)}};t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=s({type:t,selectors:[["aside","tuiNavigationAside",""]],hostAttrs:["tuiNavigationAside","","tuiTheme","dark"],hostVars:2,hostBindings:function(e,a){e&2&&b("_expanded",a.expanded())},inputs:{tuiNavigationAside:"tuiNavigationAside"},standalone:!0,features:[u([m({size:"s",appearance:"flat"}),y({appearance:"dropdown-navigation",align:"right",offset:12})]),c],attrs:Z,ngContentSelectors:it,decls:5,vars:0,consts:[[1,"t-nav-scrollbar"],["tuiFade","vertical","tuiScrollable","",1,"t-nav-content"]],template:function(e,a){e&1&&(d(tt),r(0),M(1,"tui-scrollbar",0)(2,"div",1),r(3,1),k()(),r(4,2))},dependencies:[E,$,G],styles:[`aside[tuiNavigationAside]{transition-property:width;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;position:sticky;top:3rem;z-index:1;display:flex;width:3rem;flex-direction:column;padding:.5rem .5rem .25rem;box-sizing:border-box;background:var(--tui-theme-color, #000);color:var(--tui-text-primary)}aside[tuiNavigationAside]:before{content:"";position:absolute;top:0;left:100%;z-index:-1;height:3rem;width:3rem;pointer-events:none;border-top-left-radius:1.25rem;box-shadow:-1.5rem 0 var(--tui-theme-color, #000)}aside[tuiNavigationAside]._expanded{width:13.75rem}aside[tuiNavigationAside]._expanded+main[tuiNavigationMain]{max-width:calc(100% - 13.75rem)}aside[tuiNavigationAside] .t-nav-scrollbar{margin:0 -.25rem}aside[tuiNavigationAside] .t-nav-content{scrollbar-width:none;-ms-overflow-style:none;height:100%;padding:0 .25rem;overflow:auto}aside[tuiNavigationAside] .t-nav-content::-webkit-scrollbar,aside[tuiNavigationAside] .t-nav-content::-webkit-scrollbar-thumb{display:none}aside[tuiNavigationAside] tui-expand [tuiAsideItem]{padding-inline-start:2rem}aside[tuiNavigationAside] hr{background:var(--tui-border-normal);height:1px;margin:0 0 .25rem;border:none}aside[tuiNavigationAside] header{padding-bottom:.25rem;box-shadow:inset 0 -1px var(--tui-border-normal);margin-bottom:1rem}aside[tuiNavigationAside] footer{margin-top:auto;border-top:1.75rem solid transparent}aside[tuiNavigationAside]+main[tuiNavigationMain]{max-width:calc(100% - 3rem)}[tuiAsideItem]{width:100%;justify-content:flex-start;gap:.625rem;margin-bottom:.25rem;color:var(--tui-text-primary)!important}[tuiAsideItem]:after{border:none!important;margin-left:auto!important;color:var(--tui-text-tertiary)}[tuiAsideItem]._chevron-rotated,[tuiAsideItem]._active{background:var(--tui-background-neutral-1-hover)}tui-dropdown[data-appearance=dropdown-navigation]{border:none;background:#323232;background:color-mix(in srgb,var(--tui-theme-color, #000) 80%,#fff)}tui-dropdown[data-appearance=dropdown-navigation] [tuiAsideItem]{justify-content:flex-start}tui-dropdown[data-appearance=dropdown-navigation] [tuiAsideItem]._active{background:transparent}tui-dropdown[data-appearance=dropdown-navigation] [tuiAsideItem]._link:not(._custom):after{opacity:0}tui-dropdown[data-appearance=dropdown-navigation] [tuiAsideItem]._link._active:after{opacity:1} `],encapsulation:2,changeDetection:0});let i=t;return i})();var st=(()=>{let t=class t{constructor(){this.el=F(),this.aside=o(rt),this.dropdown=o(l,{optional:!0}),this.binding=I(g,"tuiHint",O(()=>{var n;return this.aside.expanded()||this.dropdown?"":(n=this.el.textContent)==null?void 0:n.trim()}))}};t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=f({type:t,selectors:[["","tuiHintAside",""]],standalone:!0,features:[u([V({direction:"right"})]),h([g])]});let i=t;return i})(),di=(()=>{let t=class t{constructor(){this.icon=o(N).check,this.icons=o(j),this.link=o(x,{self:!0,optional:!0}),this.active=H(o(p).isActiveChange),this.size="s"}};t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=f({type:t,selectors:[["","tuiAsideItem",""]],hostAttrs:["tuiButton","","tuiOption",""],hostVars:6,hostBindings:function(e,a){e&2&&b("_link",a.link)("_active",a.active())("_custom",a.icon!==a.icons.iconEnd)},standalone:!0,features:[u([P(U,t),dt(),ut()]),h([st,Q,R,L,{directive:p,inputs:["routerLinkActiveOptions","routerLinkActiveOptions"]}])]});let i=t;return i})();function dt(){return{provide:B,useFactory:()=>{let{check:i,more:t}=o(N),X=o(T,{optional:!0})&&o(x,{self:!0,optional:!0})?i:"";return o(l,{self:!0,optional:!0})?t:X}}}function ut(){return{provide:w,useFactory:()=>A(C({},o(w,{skipSelf:!0})),{offset:o(T,{optional:!0})?8:12})}}var ui=(()=>{let t=class t{};t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=s({type:t,selectors:[["header","tuiNavigationHeader",""]],hostAttrs:["tuiTheme","dark"],standalone:!0,features:[u([q({size:"s",appearance:"secondary"}),K({size:"xs"}),D({size:"m",appearance:"primary"}),m({size:"s",appearance:"flat"}),y({appearance:"dropdown-navigation"})]),c],attrs:et,ngContentSelectors:v,decls:1,vars:0,template:function(e,a){e&1&&(d(),r(0))},styles:[`header[tuiNavigationHeader]{--tui-text-action: var(--tui-text-primary);--tui-text-action-hover: var(--tui-text-primary);position:sticky;top:0;z-index:1;display:flex;height:3rem;width:100%;align-items:center;gap:.25rem;padding:.5rem;box-sizing:border-box;font:var(--tui-font-text-s);line-height:1rem;background:var(--tui-theme-color, #000);color:var(--tui-text-primary)}header[tuiNavigationHeader]:before,header[tuiNavigationHeader]:after{content:"";position:absolute;top:100%;z-index:-1;height:3rem;width:3rem;pointer-events:none;box-shadow:0 -1.5rem var(--tui-theme-color, #000)}header[tuiNavigationHeader]:before{left:0;border-top-left-radius:1.25rem}header[tuiNavigationHeader]:after{right:0;border-top-right-radius:1.25rem}header[tuiNavigationHeader] [tuiNavigationLogo]{padding:0 .5rem;margin-inline-start:.25rem}header[tuiNavigationHeader] [tuiNavigationLogo] tui-icon{font-size:1rem}header[tuiNavigationHeader] [tuiButton],header[tuiNavigationHeader] [tuiBadge],header[tuiNavigationHeader] [tuiChip],header[tuiNavigationHeader] tui-badge,header[tuiNavigationHeader] tui-chip{max-width:8rem}header[tuiNavigationHeader] hr{width:2rem;margin:0 0 0 auto;border:none;visibility:hidden;flex-shrink:0}header[tuiNavigationHeader] hr~[tuiButton]{margin-right:.5rem}tui-dropdown[data-appearance=dropdown-navigation]{--tui-text-primary: #fff;--tui-background-neutral-1: rgba(255, 255, 255, .16);border:none;color:var(--tui-text-primary);background:#323232;background:color-mix(in srgb,var(--tui-theme-color, #000) 80%,#fff)} `],encapsulation:2,changeDetection:0});let i=t;return i})(),ci=(()=>{let t=class t{};t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=s({type:t,selectors:[["","tuiNavigationLogo",""]],standalone:!0,features:[c],attrs:nt,ngContentSelectors:v,decls:1,vars:0,template:function(e,a){e&1&&(d(),r(0))},styles:[`[tuiNavigationLogo]{display:flex;align-items:center;gap:.5rem;overflow:hidden;white-space:nowrap;font-weight:700} `],encapsulation:2,changeDetection:0});let i=t;return i})(),pi=(()=>{let t=class t{};t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=s({type:t,selectors:[["main","tuiNavigationMain",""]],hostAttrs:["tuiNavigationMain",""],standalone:!0,features:[c],attrs:ot,ngContentSelectors:v,decls:1,vars:0,template:function(e,a){e&1&&(d(),r(0))},styles:[`main[tuiNavigationMain]{transition-property:max-width;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;display:grid;grid-template-columns:repeat(12,minmax(0,8.5625rem));gap:0 1rem;justify-content:center;flex:1;padding:0 1.5rem;isolation:isolate;box-sizing:border-box}main[tuiNavigationMain]>[tuiHeader]{margin:1rem 0 .5rem}main[tuiNavigationMain]>[tuiHeader][tuiCardLarge]{flex-direction:column;gap:1rem}main[tuiNavigationMain]>[tuiHeader][tuiCardLarge]>:last-child:not([tuiTitle]){margin-bottom:.25rem}main[tuiNavigationMain]>[tuiHeader]:not([tuiCardLarge]) [tuiTitle]{max-width:42rem;white-space:nowrap;gap:.375rem;overflow:hidden}main[tuiNavigationMain]>[tuiHeader]:not([tuiCardLarge]) [tuiSubtitle]{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;white-space:normal;word-break:break-word;font:var(--tui-font-text-s);overflow:hidden}main[tuiNavigationMain]>[tuiHeader] [tuiCaption]{scrollbar-width:none;-ms-overflow-style:none;display:flex;gap:1rem;color:var(--tui-text-tertiary);font:var(--tui-font-text-s);white-space:nowrap;text-transform:none;overflow:auto}main[tuiNavigationMain]>[tuiHeader] [tuiCaption]::-webkit-scrollbar,main[tuiNavigationMain]>[tuiHeader] [tuiCaption]::-webkit-scrollbar-thumb{display:none}main[tuiNavigationMain]>[tuiHeader] [tuiCaption] tui-icon{font-size:1rem;margin:.125rem 0;color:var(--tui-text-secondary)}main[tuiNavigationMain]>[tuiHeader] [tuiAccessories]{margin-inline-start:3rem;gap:.5rem!important}main[tuiNavigationMain]>a:first-child,main[tuiNavigationMain]>button:first-child,main[tuiNavigationMain]>tui-breadcrumbs:first-child{height:1.25rem;padding:0;margin-top:.875rem;justify-self:flex-start}main[tuiNavigationMain]>*{grid-column:span 12;max-width:100%} diff --git a/chunk-JUAR2SQB.js b/chunk-CX3RAO33.js similarity index 91% rename from chunk-JUAR2SQB.js rename to chunk-CX3RAO33.js index c8212cc1d..e9dfe1967 100644 --- a/chunk-JUAR2SQB.js +++ b/chunk-CX3RAO33.js @@ -1,3 +1,3 @@ -import{a as wn,c as Mn}from"./chunk-YUW7GALI.js";import{a as rn,d as xn,e as Tn,f as Vn,g as Ln,h as Hn,i as Gt,j as Rn,k as Bn,l as ui,m as qe}from"./chunk-PIDCXASU.js";import{b as Re,c as Mt,d as zt,g as En}from"./chunk-NL4UQKF6.js";import{a as Xi,c as He,e as St,f as Et,g as yn,h as bn,j as Sn,k as On,l as Pn,m as Fn,n as An}from"./chunk-UPS6ZX2Y.js";import{a as pn}from"./chunk-NSSAPNB2.js";import{A as Bt,D as Nt,E as jt,J as Wt,L as Ut,P as $t,Q as Yt,T as Te,U as Qt,V as kn,W as Kt,a as Gi,b as en,e as yt,h as hn,k as At,l as Vt,r as Lt,u as Dn,v as Xe,x as Ht,z as Rt}from"./chunk-DNEQ7KDT.js";import{$ as wt,Aa as kt,Ca as Ot,E as Ct,Ea as Pt,Fa as Ft,H as Ji,J as tn,M as nn,N as Ze,S as on,T as bt,Z as xt,_ as Tt,ia as an,ka as sn,m as qi,n as Le,na as ln,oa as Be,pa as cn,qa as un,sa as mn,ta as dn,va as vn,wa as Dt,xa as li,ya as ci,za as Cn}from"./chunk-OKL4RZMA.js";import{a as Zi,b as E,c as In}from"./chunk-VVRWXTJV.js";import{$b as ii,$e as xe,A as re,Ab as _e,Ad as Li,Af as Ki,B as tt,Ba as Ti,Bb as l,Ca as x,Cb as c,Cd as Hi,Cf as Ve,Da as rt,Db as y,De as ai,Df as z,Ea as U,Eb as ve,Ed as dt,Ee,Fa as wi,Fb as Ce,Fd as de,Fe as Ui,Ff as gn,Gb as at,H as _i,Hb as I,He as te,Ib as Oe,Ie as O,Ja as Mi,Jd as pt,Jf as fn,K as it,Ka as f,Kb as b,Kc as Oi,Kd as ht,Ke as ie,Kf as It,La as _,Lb as p,Le as De,Mb as le,Mc as B,Md as oi,Me as Ge,Na as pe,Nb as $,Nc as q,Nf as _n,Ob as $e,Oc as Pi,Pb as ce,Pc as Y,Pd as Ri,Qa as qt,Qb as K,Qd as gt,Rb as G,S as vi,Sa as ke,Sb as D,Sd as Se,Ta as Jt,Tb as g,Tc as k,Ub as ue,Vb as w,Vd as H,Wb as Ye,Wc as Fi,Xb as oe,Xd as Bi,Yb as Z,Zb as ae,_a as ei,_b as ti,ac as ni,af as si,bb as Si,bc as R,cb as s,cc as T,dd as lt,e as Xt,ec as X,ed as Ai,ef as $i,fc as ri,fe as ft,ff as _t,gc as Qe,gf as vt,ha as Ci,ic as Di,id as ct,jc as S,jd as J,je as zi,jf as Yi,ka as yi,kc as L,kd as ut,ke as F,le as Ni,mb as he,mc as ye,md as Ei,me as Ke,nb as Ii,nc as ki,nd as Me,ne as ji,oc as Pe,od as me,pa as bi,pc as j,pd as mt,qa as A,qe as Ie,ra as nt,rb as C,rd as Vi,sb as Q,sd as Fe,t as V,ta as xi,tb as u,ub as v,uf as Qi,vb as se,w as Ue,wa as h,xb as ot,xd as Ae,yb as ge,yc as st,yd as ee,zb as fe,zd as be,ze as Wi}from"./chunk-NEAIWFFQ.js";var zn=(()=>{let i=class i{constructor(){this.el=ft(),this.playbackRate=1,this.volume=1,this.currentTimeChange=new ke,this.pausedChange=new ke,this.volumeChange=new ke}set playbackRateSetter(e){this.updatePlaybackRate(e)}set currentTime(e){Math.abs(e-this.currentTime)>.05&&(this.el.currentTime=e)}set paused(e){var t,n,a,m;e?(n=(t=this.el).pause)==null||n.call(t):((m=(a=this.el).play)==null||m.call(a),this.updatePlaybackRate(this.playbackRate))}get currentTime(){return this.el.currentTime??0}get paused(){return!!this.el.paused}onPausedChange(e){this.pausedChange.emit(e),this.updatePlaybackRate(this.playbackRate)}onVolumeChange(){this.volume=this.el.volume,this.volumeChange.emit(this.volume)}onCurrentTimeChange(){this.currentTimeChange.emit(this.currentTime)}updatePlaybackRate(e){this.playbackRate=e,this.el.playbackRate=this.playbackRate}};i.\u0275fac=function(t){return new(t||i)},i.\u0275dir=U({type:i,selectors:[["video","tuiMedia",""],["audio","tuiMedia",""]],hostVars:1,hostBindings:function(t,n){t&1&&b("durationchange",function(){return 0})("ended",function(){return n.onPausedChange(!0)})("pause",function(){return n.onPausedChange(!0)})("play",function(){return n.onPausedChange(!1)})("volumechange",function(){return n.onVolumeChange()})("timeupdate",function(){return n.onCurrentTimeChange()})("seeking",function(){return n.onCurrentTimeChange()})("seeked",function(){return n.onCurrentTimeChange()}),t&2&&Oe("volume",n.volume)},inputs:{volume:"volume",playbackRateSetter:[0,"playbackRate","playbackRateSetter"],currentTime:"currentTime",paused:"paused"},outputs:{currentTimeChange:"currentTimeChange",pausedChange:"pausedChange",volumeChange:"volumeChange"},exportAs:["tuiMedia"],standalone:!0});let r=i;return r})();var Nn=(()=>{let i=class i{transform(e,t,...n){return e.filter(a=>t(a,...n))}};i.\u0275fac=function(t){return new(t||i)},i.\u0275pipe=wi({name:"tuiFilter",type:i,pure:!0,standalone:!0});let r=i;return r})();var Fr=["*",[["tui-badge-notification","tuiSlot","top"]],[["","tuiSlot","top"]],[["tui-badge-notification","tuiSlot","bottom"]],[["","tuiSlot","bottom"]]],Ar=["*","tui-badge-notification[tuiSlot='top']","[tuiSlot='top']","tui-badge-notification[tuiSlot='bottom']","[tuiSlot='bottom']"],jn=(()=>{let i=class i{constructor(){this.tuiSlot="top"}};i.\u0275fac=function(t){return new(t||i)},i.\u0275dir=U({type:i,selectors:[["","tuiSlot",""]],inputs:{tuiSlot:"tuiSlot"},standalone:!0});let r=i;return r})(),Wn=(()=>{let i=class i{};i.\u0275fac=function(t){return new(t||i)},i.\u0275cmp=x({type:i,selectors:[["tui-badged-content"]],standalone:!0,features:[T],ngContentSelectors:Ar,decls:11,vars:4,consts:[["badgeTop",""],["badgeBottom",""],[1,"t-badge","t-badge_top",3,"waResizeObserver"],[1,"t-border"],[1,"t-badge","t-badge_bottom",3,"waResizeObserver"]],template:function(t,n){if(t&1){let a=I();le(Fr),$(0),l(1,"div",2,0),b("waResizeObserver",function(){return f(a),_(0)}),$(3,1),l(4,"div",3),$(5,2),c()(),l(6,"div",4,1),b("waResizeObserver",function(){return f(a),_(0)}),$(8,3),l(9,"div",3),$(10,4),c()()}if(t&2){let a=D(2),m=D(7);s(),v("--t-badge-height",a.offsetHeight,"px"),s(5),v("--t-badge-height",m.offsetHeight,"px")}},dependencies:[gn],styles:["[_nghost-%COMP%]{--tui-radius: var(--tui-radius-l);--t-badge-height: 0;--t-corner-offset: calc((var(--tui-radius) * 1.4142 - var(--tui-radius)) * 1 / 1.4142);position:relative;display:inline-block;height:-webkit-fit-content;height:-moz-fit-content;height:fit-content;width:-webkit-max-content;width:max-content;color:var(--tui-background-base)}.t-badge[_ngcontent-%COMP%]{--t-offset: calc(var(--t-badge-height) * -.5 + var(--t-corner-offset));position:absolute;display:flex}.t-badge_top[_ngcontent-%COMP%]{top:var(--t-offset);right:var(--t-offset)}.t-badge_bottom[_ngcontent-%COMP%]{bottom:var(--t-offset);right:var(--t-offset)}.t-border[_ngcontent-%COMP%]:not(:empty){display:flex;border-radius:6rem;box-shadow:0 0 0 1px currentColor;background:currentColor}"],changeDetection:0});let r=i;return r})();var Vr={appearance:"whiteblock",size:"l"},Un=ht(Vr);var Lr=(()=>{let i=class i{};i.\u0275fac=function(t){return new(t||i)},i.\u0275cmp=x({type:i,selectors:[["ng-component"]],hostAttrs:[1,"tui-block"],standalone:!0,features:[T],decls:0,vars:0,template:function(t,n){},styles:[`[tuiBlock]{--t-height: var(--tui-height-l);--t-radius: var(--tui-radius-l);position:relative;display:inline-flex;gap:.75rem;color:var(--tui-text-primary);border-radius:var(--t-radius);min-height:var(--t-height);margin:0;box-sizing:border-box;cursor:pointer;overflow:hidden;font:var(--tui-font-text-m);padding:var(--tui-padding-l)}[tuiBlock] [tuiTooltip]{margin:.25rem}[tuiBlock][data-size=s]{gap:.5rem;font:var(--tui-font-text-ui-s);padding:.5rem;--t-height: var(--tui-height-s);--t-radius: var(--tui-radius-m)}[tuiBlock][data-size=s] [tuiSubtitle]{font:var(--tui-font-text-ui-xs)}[tuiBlock][data-size=s] [tuiTooltip]{margin:0 .125rem}[tuiBlock][data-size=m]{gap:.625rem;font:var(--tui-font-text-ui-m);padding:var(--tui-padding-m);--t-height: var(--tui-height-m);--t-radius: var(--tui-radius-m)}[tuiBlock][data-size=m] input:not([tuiBlock]){margin:.125rem}[tuiBlock][data-size=m] [tuiTooltip]{margin:.125rem}[tuiBlock]._disabled{pointer-events:none;opacity:var(--tui-disabled-opacity)}[tuiBlock]._disabled :focus{visibility:hidden}[tuiBlock][data-appearance=""]{justify-content:center}[tuiBlock] input[tuiBlock]{position:absolute;top:0;left:0;width:100%;height:100%;min-height:0;pointer-events:none;border-radius:inherit}[tuiBlock] tui-avatar{margin:-.25rem}[tuiBlock] [tuiTitle]{flex:1;gap:0;font:inherit;color:var(--tui-text-primary)}[tuiBlock] [tuiSubtitle]{color:var(--tui-text-secondary)}[tuiBlock] [tuiTooltip]{vertical-align:bottom;font-size:1rem;border:none} +import{a as wn,c as Mn}from"./chunk-55ASQOEL.js";import{a as rn,d as xn,e as Tn,f as Vn,g as Ln,h as Hn,i as Gt,j as Rn,k as Bn,l as ui,m as qe}from"./chunk-JUA3DLL5.js";import{b as Re,c as Mt,d as zt,g as En}from"./chunk-P6AQGOJY.js";import{a as Xi,c as He,e as St,f as Et,g as yn,h as bn,j as Sn,k as On,l as Pn,m as Fn,n as An}from"./chunk-TM3BF3MS.js";import{a as pn}from"./chunk-NSSAPNB2.js";import{A as Bt,D as Nt,E as jt,J as Wt,L as Ut,P as $t,Q as Yt,T as Te,U as Qt,V as kn,W as Kt,a as Gi,b as en,e as yt,h as hn,k as At,l as Vt,r as Lt,u as Dn,v as Xe,x as Ht,z as Rt}from"./chunk-XENTLRKE.js";import{$ as Tt,Aa as Cn,Ba as kt,Da as Ot,F as Ct,Fa as Pt,Ga as Ft,I as Ji,K as tn,N as nn,O as Ze,T as on,U as bt,_ as xt,aa as wt,ja as an,la as sn,n as qi,o as Le,oa as ln,pa as Be,qa as cn,ra as un,ta as mn,ua as dn,wa as vn,xa as Dt,ya as li,za as ci}from"./chunk-DXP4LH76.js";import{a as Zi,b as E,c as In}from"./chunk-VVRWXTJV.js";import{$b as ii,$e as xe,A as re,Ab as _e,Ad as Li,Af as Ki,B as tt,Ba as Ti,Bb as l,Ca as x,Cb as c,Cd as Hi,Cf as Ve,Da as rt,Db as y,De as ai,Df as z,Ea as U,Eb as ve,Ed as dt,Ee,Fa as wi,Fb as Ce,Fd as de,Fe as Ui,Ff as gn,Gb as at,H as _i,Hb as I,He as te,Ib as Oe,Ie as O,Ja as Mi,Jd as pt,Jf as fn,K as it,Ka as f,Kb as b,Kc as Oi,Kd as ht,Ke as ie,Kf as It,La as _,Lb as p,Le as De,Mb as le,Mc as B,Md as oi,Me as Ge,Na as pe,Nb as $,Nc as q,Nf as _n,Ob as $e,Oc as Pi,Pb as ce,Pc as Y,Pd as Ri,Qa as qt,Qb as K,Qd as gt,Rb as G,S as vi,Sa as ke,Sb as D,Sd as Se,Ta as Jt,Tb as g,Tc as k,Ub as ue,Vb as w,Vd as H,Wb as Ye,Wc as Fi,Xb as oe,Xd as Bi,Yb as Z,Zb as ae,_a as ei,_b as ti,ac as ni,af as si,bb as Si,bc as R,cb as s,cc as T,dd as lt,e as Xt,ec as X,ed as Ai,ef as $i,fc as ri,fe as ft,ff as _t,gc as Qe,gf as vt,ha as Ci,ic as Di,id as ct,jc as S,jd as J,je as zi,jf as Yi,ka as yi,kc as L,kd as ut,ke as F,le as Ni,mb as he,mc as ye,md as Ei,me as Ke,nb as Ii,nc as ki,nd as Me,ne as ji,oc as Pe,od as me,pa as bi,pc as j,pd as mt,qa as A,qe as Ie,ra as nt,rb as C,rd as Vi,sb as Q,sd as Fe,t as V,ta as xi,tb as u,ub as v,uf as Qi,vb as se,w as Ue,wa as h,xb as ot,xd as Ae,yb as ge,yc as st,yd as ee,zb as fe,zd as be,ze as Wi}from"./chunk-NEAIWFFQ.js";var zn=(()=>{let i=class i{constructor(){this.el=ft(),this.playbackRate=1,this.volume=1,this.currentTimeChange=new ke,this.pausedChange=new ke,this.volumeChange=new ke}set playbackRateSetter(e){this.updatePlaybackRate(e)}set currentTime(e){Math.abs(e-this.currentTime)>.05&&(this.el.currentTime=e)}set paused(e){var t,n,a,m;e?(n=(t=this.el).pause)==null||n.call(t):((m=(a=this.el).play)==null||m.call(a),this.updatePlaybackRate(this.playbackRate))}get currentTime(){return this.el.currentTime??0}get paused(){return!!this.el.paused}onPausedChange(e){this.pausedChange.emit(e),this.updatePlaybackRate(this.playbackRate)}onVolumeChange(){this.volume=this.el.volume,this.volumeChange.emit(this.volume)}onCurrentTimeChange(){this.currentTimeChange.emit(this.currentTime)}updatePlaybackRate(e){this.playbackRate=e,this.el.playbackRate=this.playbackRate}};i.\u0275fac=function(t){return new(t||i)},i.\u0275dir=U({type:i,selectors:[["video","tuiMedia",""],["audio","tuiMedia",""]],hostVars:1,hostBindings:function(t,n){t&1&&b("durationchange",function(){return 0})("ended",function(){return n.onPausedChange(!0)})("pause",function(){return n.onPausedChange(!0)})("play",function(){return n.onPausedChange(!1)})("volumechange",function(){return n.onVolumeChange()})("timeupdate",function(){return n.onCurrentTimeChange()})("seeking",function(){return n.onCurrentTimeChange()})("seeked",function(){return n.onCurrentTimeChange()}),t&2&&Oe("volume",n.volume)},inputs:{volume:"volume",playbackRateSetter:[0,"playbackRate","playbackRateSetter"],currentTime:"currentTime",paused:"paused"},outputs:{currentTimeChange:"currentTimeChange",pausedChange:"pausedChange",volumeChange:"volumeChange"},exportAs:["tuiMedia"],standalone:!0});let r=i;return r})();var Nn=(()=>{let i=class i{transform(e,t,...n){return e.filter(a=>t(a,...n))}};i.\u0275fac=function(t){return new(t||i)},i.\u0275pipe=wi({name:"tuiFilter",type:i,pure:!0,standalone:!0});let r=i;return r})();var Fr=["*",[["tui-badge-notification","tuiSlot","top"]],[["","tuiSlot","top"]],[["tui-badge-notification","tuiSlot","bottom"]],[["","tuiSlot","bottom"]]],Ar=["*","tui-badge-notification[tuiSlot='top']","[tuiSlot='top']","tui-badge-notification[tuiSlot='bottom']","[tuiSlot='bottom']"],jn=(()=>{let i=class i{constructor(){this.tuiSlot="top"}};i.\u0275fac=function(t){return new(t||i)},i.\u0275dir=U({type:i,selectors:[["","tuiSlot",""]],inputs:{tuiSlot:"tuiSlot"},standalone:!0});let r=i;return r})(),Wn=(()=>{let i=class i{};i.\u0275fac=function(t){return new(t||i)},i.\u0275cmp=x({type:i,selectors:[["tui-badged-content"]],standalone:!0,features:[T],ngContentSelectors:Ar,decls:11,vars:4,consts:[["badgeTop",""],["badgeBottom",""],[1,"t-badge","t-badge_top",3,"waResizeObserver"],[1,"t-border"],[1,"t-badge","t-badge_bottom",3,"waResizeObserver"]],template:function(t,n){if(t&1){let a=I();le(Fr),$(0),l(1,"div",2,0),b("waResizeObserver",function(){return f(a),_(0)}),$(3,1),l(4,"div",3),$(5,2),c()(),l(6,"div",4,1),b("waResizeObserver",function(){return f(a),_(0)}),$(8,3),l(9,"div",3),$(10,4),c()()}if(t&2){let a=D(2),m=D(7);s(),v("--t-badge-height",a.offsetHeight,"px"),s(5),v("--t-badge-height",m.offsetHeight,"px")}},dependencies:[gn],styles:["[_nghost-%COMP%]{--tui-radius: var(--tui-radius-l);--t-badge-height: 0;--t-corner-offset: calc((var(--tui-radius) * 1.4142 - var(--tui-radius)) * 1 / 1.4142);position:relative;display:inline-block;height:-webkit-fit-content;height:-moz-fit-content;height:fit-content;width:-webkit-max-content;width:max-content;color:var(--tui-background-base)}.t-badge[_ngcontent-%COMP%]{--t-offset: calc(var(--t-badge-height) * -.5 + var(--t-corner-offset));position:absolute;display:flex}.t-badge_top[_ngcontent-%COMP%]{top:var(--t-offset);right:var(--t-offset)}.t-badge_bottom[_ngcontent-%COMP%]{bottom:var(--t-offset);right:var(--t-offset)}.t-border[_ngcontent-%COMP%]:not(:empty){display:flex;border-radius:6rem;box-shadow:0 0 0 1px currentColor;background:currentColor}"],changeDetection:0});let r=i;return r})();var Vr={appearance:"whiteblock",size:"l"},Un=ht(Vr);var Lr=(()=>{let i=class i{};i.\u0275fac=function(t){return new(t||i)},i.\u0275cmp=x({type:i,selectors:[["ng-component"]],hostAttrs:[1,"tui-block"],standalone:!0,features:[T],decls:0,vars:0,template:function(t,n){},styles:[`[tuiBlock]{--t-height: var(--tui-height-l);--t-radius: var(--tui-radius-l);position:relative;display:inline-flex;gap:.75rem;color:var(--tui-text-primary);border-radius:var(--t-radius);min-height:var(--t-height);margin:0;box-sizing:border-box;cursor:pointer;overflow:hidden;font:var(--tui-font-text-m);padding:var(--tui-padding-l)}[tuiBlock] [tuiTooltip]{margin:.25rem}[tuiBlock][data-size=s]{gap:.5rem;font:var(--tui-font-text-ui-s);padding:.5rem;--t-height: var(--tui-height-s);--t-radius: var(--tui-radius-m)}[tuiBlock][data-size=s] [tuiSubtitle]{font:var(--tui-font-text-ui-xs)}[tuiBlock][data-size=s] [tuiTooltip]{margin:0 .125rem}[tuiBlock][data-size=m]{gap:.625rem;font:var(--tui-font-text-ui-m);padding:var(--tui-padding-m);--t-height: var(--tui-height-m);--t-radius: var(--tui-radius-m)}[tuiBlock][data-size=m] input:not([tuiBlock]){margin:.125rem}[tuiBlock][data-size=m] [tuiTooltip]{margin:.125rem}[tuiBlock]._disabled{pointer-events:none;opacity:var(--tui-disabled-opacity)}[tuiBlock]._disabled :focus{visibility:hidden}[tuiBlock][data-appearance=""]{justify-content:center}[tuiBlock] input[tuiBlock]{position:absolute;top:0;left:0;width:100%;height:100%;min-height:0;pointer-events:none;border-radius:inherit}[tuiBlock] tui-avatar{margin:-.25rem}[tuiBlock] [tuiTitle]{flex:1;gap:0;font:inherit;color:var(--tui-text-primary)}[tuiBlock] [tuiSubtitle]{color:var(--tui-text-secondary)}[tuiBlock] [tuiTooltip]{vertical-align:bottom;font-size:1rem;border:none} `],encapsulation:2,changeDetection:0});let r=i;return r})(),Zt=(()=>{let i=class i{constructor(){this.nothing=Bi(Lr),this.size=h(Un).size}};i.\u0275fac=function(t){return new(t||i)},i.\u0275dir=U({type:i,selectors:[["label","tuiBlock",""],["input","tuiBlock",""]],contentQueries:function(t,n,a){if(t&1&&$e(a,ct,5),t&2){let m;K(m=G())&&(n.control=m.first)}},hostAttrs:["tuiBlock",""],hostVars:3,hostBindings:function(t,n){t&2&&(Q("data-size",n.size||"l"),se("_disabled",!!(n.control!=null&&n.control.disabled)))},inputs:{size:[0,"tuiBlock","size"]},standalone:!0,features:[R([zi(Un),fn({size:"s"})]),Ii([hn,Ni,Ki])]});let r=i;return r})();var Yn=(r,i,o,e)=>[r,i,o,e,!1],Qn=(r,i,o,e)=>[r,i,o,e,!0],Hr=(r,i,o,e,t,n)=>[r,i,o,e,t,n];function Rr(r,i){if(r&1){let o=I();l(0,"tui-calendar",3),S(1,"tuiMapper"),S(2,"tuiMapper"),S(3,"tuiMapper"),S(4,"tuiMapper"),ae("hoveredItemChange",function(t){f(o);let n=p();return Z(n.hoveredItem,t)||(n.hoveredItem=t),_(t)}),b("dayClick",function(t){f(o);let n=p();return _(n.onDayClick(t))})("monthChange",function(t){f(o);let n=p();return _(n.onMonthChange(t.append({month:-1})))})("mousedown.prevent.silent",function(){return f(o),_(0)}),c()}if(r&2){let o=p();u("disabledItemHandler",o.calculatedDisabledItemHandler)("markerHandler",o.markerHandler)("max",Pe(1,9,Qe(29,Yn,o.max,o.capsMapper,o.value,o.maxLength)))("min",Pe(2,15,Qe(34,Qn,o.min,o.capsMapper,o.value,o.maxLength)))("minViewedMonth",ye(3,21,o.defaultViewedMonth,o.monthOffset,1))("month",ye(4,25,o.defaultViewedMonth,o.monthOffset,1))("showAdjacent",!1)("value",o.value),oe("hoveredItem",o.hoveredItem)}}function Br(r,i){if(r&1&&y(0,"tui-icon",8),r&2){let o=p(3);v("font-size",1,"rem"),u("icon",o.icons.check)}}function zr(r,i){if(r&1){let o=I();l(0,"button",6),b("click",function(){let t=f(o).$implicit,n=p(2);return _(n.onItemSelect(t))})("mousedown.prevent.silent",function(){return f(o),_(0)}),g(1),C(2,Br,1,3,"tui-icon",7),c()}if(r&2){let o=i.$implicit,e=p(2);Q("aria-checked",e.isItemActive(o)),s(),w(" ",o," "),s(),u("ngIf",e.isItemActive(o))}}function Nr(r,i){if(r&1&&(l(0,"tui-data-list",4),C(1,zr,3,3,"button",5),S(2,"async"),S(3,"tuiMapper"),c()),r&2){let o=p();v("flex",1),s(),u("ngForOf",Pe(3,5,Di(12,Hr,o.items,o.mapper,o.min,o.max,o.minLength,L(2,3,o.otherDateText$))))}}var jr=(r,i,o,e)=>{if(!(i!=null&&i.isSingleDay)||!o)return e?r||De:r||Ge;let t=Object.fromEntries(Object.entries(o).map(([a,m])=>[a,-m])),n=i.from.append(e?t:o).append({day:e?1:-1});return e?n.dayBefore(r||De)?r||De:n:r&&n.dayAfter(r)?r:n},Je=(()=>{let i=class i{constructor(){var e;this.otherDateText$=h(Cn),this.icons=h($i),this.cdr=h(st),this.previousValue=null,this.hoveredItem=null,this.capsMapper=jr,this.availableRange=null,this.defaultViewedMonth=te.currentLocal(),this.disabledItemHandler=Ie,this.markerHandler=null,this.items=[],this.min=De,this.max=Ge,this.minLength=null,this.maxLength=null,this.value=null,this.valueChange=new ke,this.selectedActivePeriod=null,this.monthOffset=(t,n)=>t.append({month:n}),this.mapper=(t,n,a,m,d)=>[...t.filter(P=>(m===null||P.range.from.append(m).daySameOrBefore(P.range.to))&&(n===null||P.range.to.daySameOrAfter(n))&&(a===null||P.range.from.daySameOrBefore(a))),d||""],(e=h(vn,{optional:!0}))==null||e.pipe(xe(this.cdr),de()).subscribe(t=>{this.value=t})}ngOnChanges(){var e;this.defaultViewedMonth=((e=this.value)==null?void 0:e.from)||this.defaultViewedMonth}ngOnInit(){this.value||this.updateDefaultViewedMonth()}get calculatedDisabledItemHandler(){return this.calculateDisabledItemHandler(this.disabledItemHandler,this.value,this.minLength)}onEsc(e){var t;e.key!=="Escape"||!((t=this.value)!=null&&t.isSingleDay)||(e.stopPropagation(),this.value=this.previousValue)}isItemActive(e){let{activePeriod:t}=this;return oi(e)&&t===null||t===e||(t==null?void 0:t.toString())===e.toString()}onItemSelect(e){oi(e)?this.activePeriod!==null&&(this.selectedActivePeriod=null,this.updateValue(null)):(this.selectedActivePeriod=e,this.updateValue(e.range.dayLimit(this.min,this.max)))}onMonthChange(e){this.defaultViewedMonth=e}onDayClick(e){var t;this.previousValue=this.value,this.selectedActivePeriod=null,(t=this.value)!=null&&t.isSingleDay?this.updateValue(ie.sort(this.value.from,e)):this.value=new ie(e,e),this.availableRange=this.findAvailableRange()}updateValue(e){this.value=e,this.valueChange.emit(e)}get activePeriod(){return this.selectedActivePeriod??(this.items.find(e=>Se(this.value,e.range,(t,n)=>t.from.daySame(n.from.dayLimit(this.min,this.max))&&t.to.daySame(n.to.dayLimit(this.min,this.max))))||null)}calculateDisabledItemHandler(e,t,n){return a=>{if(!(t!=null&&t.isSingleDay)||!n)return this.isDisabledItem(e,t,a);let m=Object.fromEntries(Object.entries(n).map(([W,ne])=>[W,-ne])),d=t.from.append(m).append({day:1}),P=t.from.append(n).append({day:-1});return d.dayBefore(a)&&P.dayAfter(a)||this.isDisabledItem(e,t,a)}}isDisabledItem(e,t,n){return e(n)||!!(t!=null&&t.isSingleDay)&&!this.availableRangeContainsItem(n)}availableRangeContainsItem(e){if(this.availableRange===null)return!0;let{from:t,to:n}=this.availableRange;return t.daySameOrBefore(e)&&n.daySameOrAfter(e)}findAvailableRange(){let{disabledItemHandler:e,value:t}=this;if(!(t!=null&&t.isSingleDay)||e===Ie)return null;let n=t.from,a=t.from,m=!0,d=!0;for(;m||d;)m=!e(n.append({day:-1})),m&&(n=n.append({day:-1})),d=!e(a.append({day:1})),d&&(a=a.append({day:1}));return new ie(n,a)}updateDefaultViewedMonth(){this.max&&this.defaultViewedMonth.monthSameOrAfter(this.max)&&(this.defaultViewedMonth=this.max.append({month:-1})),this.min&&this.defaultViewedMonth.monthSameOrBefore(this.min)&&(this.defaultViewedMonth=this.min)}};i.\u0275fac=function(t){return new(t||i)},i.\u0275cmp=x({type:i,selectors:[["tui-calendar-range"]],hostBindings:function(t,n){t&1&&b("keydown.capture",function(m){return n.onEsc(m)},!1,Si)},inputs:{defaultViewedMonth:"defaultViewedMonth",disabledItemHandler:"disabledItemHandler",markerHandler:"markerHandler",items:"items",min:"min",max:"max",minLength:"minLength",maxLength:"maxLength",value:"value"},outputs:{valueChange:"valueChange"},standalone:!0,features:[Mi,T],decls:7,vars:37,consts:[["presets",""],["automation-id","tui-calendar-range__calendar",1,"t-calendar",3,"hoveredItemChange","dayClick","monthChange","mousedown.prevent.silent","disabledItemHandler","markerHandler","max","maxViewedMonth","min","month","showAdjacent","value","hoveredItem"],[3,"disabledItemHandler","markerHandler","max","min","minViewedMonth","month","showAdjacent","value","hoveredItem","hoveredItemChange","dayClick","monthChange","mousedown.prevent.silent",4,"ngIf","ngIfElse"],[3,"hoveredItemChange","dayClick","monthChange","mousedown.prevent.silent","disabledItemHandler","markerHandler","max","min","minViewedMonth","month","showAdjacent","value","hoveredItem"],["automation-id","tui-calendar-range__menu","role","menu"],["automation-id","tui-calendar-range__menu__item","role","menuitemradio","tuiOption","",3,"click","mousedown.prevent.silent",4,"ngFor","ngForOf"],["automation-id","tui-calendar-range__menu__item","role","menuitemradio","tuiOption","",3,"click","mousedown.prevent.silent"],["automation-id","tui-calendar-range__checkmark",3,"icon","font-size",4,"ngIf"],["automation-id","tui-calendar-range__checkmark",3,"icon"]],template:function(t,n){if(t&1){let a=I();l(0,"tui-calendar",1),S(1,"tuiMapper"),S(2,"tuiMapper"),S(3,"tuiMapper"),ae("hoveredItemChange",function(d){return f(a),Z(n.hoveredItem,d)||(n.hoveredItem=d),_(d)}),b("dayClick",function(d){return f(a),_(n.onDayClick(d))})("monthChange",function(d){return f(a),_(n.onMonthChange(d))})("mousedown.prevent.silent",function(){return f(a),_(0)}),c(),C(4,Rr,5,39,"tui-calendar",2)(5,Nr,4,19,"ng-template",null,0,j)}if(t&2){let a=D(6);u("disabledItemHandler",n.calculatedDisabledItemHandler)("markerHandler",n.markerHandler)("max",Pe(1,11,Qe(27,Yn,n.max,n.capsMapper,n.value,n.maxLength)))("maxViewedMonth",n.items.length?null:ye(2,17,n.defaultViewedMonth,n.monthOffset,-1))("min",Pe(3,21,Qe(32,Qn,n.min,n.capsMapper,n.value,n.maxLength)))("month",n.defaultViewedMonth)("showAdjacent",!!n.items.length)("value",n.value),oe("hoveredItem",n.hoveredItem),s(4),u("ngIf",!n.items.length)("ngIfElse",a)}},dependencies:[Y,q,B,He,Re,sn,an,z],styles:["[_nghost-%COMP%]{display:flex;min-width:30rem}.t-calendar[_ngcontent-%COMP%]{border-right:1px solid var(--tui-border-normal)}"],changeDetection:0});let r=i;return V([H],r.prototype,"calculateDisabledItemHandler",null),r})();var Ur=["type","range","tuiSlider",""];var $r=7;function Kn(r,i){let o=r.findIndex((n,a)=>a&&i(n)),e=r[o-1]||r[0],t=r[o]||r[r.length-1];return[e,t]}function Yr(r,i){let[[o,e],[t,n]]=Kn(i,([d,P])=>r<=d),a=(r-o)/(t-o),m=(n-e)*a+e;return Hi(m,$r)}function Qr(r,i){let[[o,e],[t,n]]=Kn(i,([m,d])=>r<=d),a=(r-e)/(n-e)||0;return(t-o)*a+o}var Kr={size:"m",trackColor:"var(--tui-background-neutral-2)"},Gr=ht(Kr);var mi=(()=>{let i=class i{constructor(){var e;this.injector=h(Ti),this.control=h(ct,{self:!0,optional:!0}),this.options=h(Gr),this.size=this.options.size,this.segments=1,this.el=ft(),this.control instanceof me&&((e=this.control.valueChanges)==null||e.pipe(xe(h(st)),vi(1)).subscribe())}get valueRatio(){return(this.value-this.min)/(this.max-this.min)||0}get min(){return Number(this.el.min)}get max(){return Number(this.el.max||100)}get value(){return!this.hasKeySteps&&this.control instanceof me?this.control.viewModel:Number(this.el.value)||0}set value(e){this.el.value=`${e}`}get hasKeySteps(){return!!this.injector.get(Zr,null)}get segmentWidth(){return 100/Math.max(1,this.segments)}get step(){return Number(this.el.step)||1}};i.\u0275fac=function(t){return new(t||i)},i.\u0275cmp=x({type:i,selectors:[["input","type","range","tuiSlider",""]],hostVars:7,hostBindings:function(t,n){t&1&&b("input",function(){return 0}),t&2&&(Q("data-size",n.size),v("--tui-slider-track-color",n.options.trackColor)("--tui-slider-segment-width",n.segmentWidth,"%")("--tui-slider-fill-ratio",n.valueRatio))},inputs:{size:"size",segments:"segments"},standalone:!0,features:[T],attrs:Ur,decls:0,vars:0,template:function(t,n){},styles:['[_nghost-%COMP%]{position:relative;display:block;width:100%;color:var(--tui-background-accent-1);cursor:pointer;-webkit-appearance:none;appearance:none;height:.125rem;padding:.4375rem 0;background-color:transparent;background-clip:content-box;outline:none;border-radius:var(--tui-radius-m)}[_nghost-%COMP%]:active{cursor:ew-resize}[_nghost-%COMP%]:disabled{opacity:var(--tui-disabled-opacity);cursor:auto}[data-size=s][_nghost-%COMP%]:not(:disabled):before{transition-property:transform,opacity;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;position:absolute;top:.25rem;left:calc(var(--tui-slider-fill-ratio) * 100% - var(--tui-slider-fill-ratio) * .5rem);width:.5rem;height:.5rem;border-radius:50%;transform:var(--tui-slider-thumb-transform, scale(1));content:"";cursor:ew-resize;background:currentColor;opacity:0}[data-size=s][_nghost-%COMP%]:active:before{opacity:.2;transform:var(--tui-slider-thumb-transform, scale(1)) scale(2.33)}[data-size=m][_nghost-%COMP%]:not(:disabled):before{transition-property:transform,opacity;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;position:absolute;top:.125rem;left:calc(var(--tui-slider-fill-ratio) * 100% - var(--tui-slider-fill-ratio) * .75rem);width:.75rem;height:.75rem;border-radius:50%;transform:var(--tui-slider-thumb-transform, scale(1));content:"";cursor:ew-resize;background:currentColor;opacity:0}[data-size=m][_nghost-%COMP%]:active:before{opacity:.2;transform:var(--tui-slider-thumb-transform, scale(1)) scale(2.33)}[_nghost-%COMP%]::-webkit-slider-container{border-radius:inherit}[data-size=m][_nghost-%COMP%]::-webkit-slider-runnable-track{height:.125rem;border-radius:inherit;background-repeat:no-repeat;background-color:var(--tui-slider-track-color);background-image:linear-gradient(to right,currentColor 0px .5rem,transparent .25rem),repeating-linear-gradient(to right,var(--tui-text-tertiary) 0 .25rem,transparent 0 var(--tui-slider-segment-width)),linear-gradient(to right,currentColor calc(100% * var(--tui-slider-fill-ratio)),transparent calc(100% * var(--tui-slider-fill-ratio)));background-position-x:0,.25rem,0;background-size:calc(100% - .75rem),calc(100% - .75rem),auto}[data-size=s][_nghost-%COMP%]::-webkit-slider-runnable-track{height:.125rem;border-radius:inherit;background-repeat:no-repeat;background-color:var(--tui-slider-track-color);background-image:linear-gradient(to right,currentColor 0px .375rem,transparent .25rem),repeating-linear-gradient(to right,var(--tui-text-tertiary) 0 .25rem,transparent 0 var(--tui-slider-segment-width)),linear-gradient(to right,currentColor calc(100% * var(--tui-slider-fill-ratio)),transparent calc(100% * var(--tui-slider-fill-ratio)));background-position-x:0,.125rem,0;background-size:calc(100% - .5rem),calc(100% - .5rem),auto}[data-size=m][_nghost-%COMP%]::-moz-range-track{height:.125rem;border-radius:inherit;background-repeat:no-repeat;background-color:var(--tui-slider-track-color);background-image:linear-gradient(to right,currentColor 0px .5rem,transparent .25rem),repeating-linear-gradient(to right,var(--tui-text-tertiary) 0 .25rem,transparent 0 var(--tui-slider-segment-width));background-position-x:0,.25rem;background-size:calc(100% - .75rem)}[data-size=s][_nghost-%COMP%]::-moz-range-track{height:.125rem;border-radius:inherit;background-repeat:no-repeat;background-color:var(--tui-slider-track-color);background-image:linear-gradient(to right,currentColor 0px .375rem,transparent .25rem),repeating-linear-gradient(to right,var(--tui-text-tertiary) 0 .25rem,transparent 0 var(--tui-slider-segment-width));background-position-x:0,.125rem;background-size:calc(100% - .5rem)}[data-size=m][_nghost-%COMP%]::-webkit-slider-thumb{-webkit-transition-property:transform;transition-property:transform;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;isolation:isolate;-webkit-appearance:none;appearance:none;background-color:currentColor;box-shadow:none;border-radius:50%;height:.75rem;width:.75rem;box-sizing:content-box;background-clip:content-box;border:.125rem solid transparent;border-left:0;border-right:0;transform:var(--tui-slider-thumb-transform, scale(1));margin-top:-.4375rem}:not(:disabled)[data-size=m][_nghost-%COMP%]::-webkit-slider-thumb{cursor:ew-resize}:not(:disabled)[data-size=m][_nghost-%COMP%]::-webkit-slider-thumb:hover, :active:not(:disabled)[data-size=m][_nghost-%COMP%]::-webkit-slider-thumb{transform:var(--tui-slider-thumb-transform, scale(1)) scale(1.333)}:focus-visible[data-size=m][_nghost-%COMP%]::-webkit-slider-thumb{box-shadow:0 0 0 2px inset var(--tui-border-focus)}[data-size=s][_nghost-%COMP%]::-webkit-slider-thumb{-webkit-transition-property:transform;transition-property:transform;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;isolation:isolate;-webkit-appearance:none;appearance:none;background-color:currentColor;box-shadow:none;border-radius:50%;height:.5rem;width:.5rem;box-sizing:content-box;background-clip:content-box;border:.25rem solid transparent;border-left:0;border-right:0;transform:var(--tui-slider-thumb-transform, scale(1));margin-top:-.4375rem}:not(:disabled)[data-size=s][_nghost-%COMP%]::-webkit-slider-thumb{cursor:ew-resize}:not(:disabled)[data-size=s][_nghost-%COMP%]::-webkit-slider-thumb:hover, :active:not(:disabled)[data-size=s][_nghost-%COMP%]::-webkit-slider-thumb{transform:var(--tui-slider-thumb-transform, scale(1)) scale(1.5)}:focus-visible[data-size=s][_nghost-%COMP%]::-webkit-slider-thumb{box-shadow:0 0 0 2px inset var(--tui-border-focus)}[data-size=m][_nghost-%COMP%]::-moz-range-thumb{-moz-transition-property:transform;transition-property:transform;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;isolation:isolate;-webkit-appearance:none;appearance:none;background-color:currentColor;box-shadow:none;border-radius:50%;height:.75rem;width:.75rem;box-sizing:content-box;background-clip:content-box;border:.125rem solid transparent;border-left:0;border-right:0;transform:var(--tui-slider-thumb-transform, scale(1))}:not(:disabled)[data-size=m][_nghost-%COMP%]::-moz-range-thumb{cursor:ew-resize}:not(:disabled)[data-size=m][_nghost-%COMP%]::-moz-range-thumb:hover, :active:not(:disabled)[data-size=m][_nghost-%COMP%]::-moz-range-thumb{transform:var(--tui-slider-thumb-transform, scale(1)) scale(1.333)}:focus-visible[data-size=m][_nghost-%COMP%]::-moz-range-thumb{box-shadow:0 0 0 2px inset var(--tui-border-focus)}[data-size=s][_nghost-%COMP%]::-moz-range-thumb{-moz-transition-property:transform;transition-property:transform;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;isolation:isolate;-webkit-appearance:none;appearance:none;background-color:currentColor;box-shadow:none;border-radius:50%;height:.5rem;width:.5rem;box-sizing:content-box;background-clip:content-box;border:.25rem solid transparent;border-left:0;border-right:0;transform:var(--tui-slider-thumb-transform, scale(1))}:not(:disabled)[data-size=s][_nghost-%COMP%]::-moz-range-thumb{cursor:ew-resize}:not(:disabled)[data-size=s][_nghost-%COMP%]::-moz-range-thumb:hover, :active:not(:disabled)[data-size=s][_nghost-%COMP%]::-moz-range-thumb{transform:var(--tui-slider-thumb-transform, scale(1)) scale(1.5)}:focus-visible[data-size=s][_nghost-%COMP%]::-moz-range-thumb{box-shadow:0 0 0 2px inset var(--tui-border-focus)}[_nghost-%COMP%]::-moz-range-progress{border-radius:inherit}[_nghost-%COMP%]::-moz-range-progress{height:.125rem;background:currentColor;border-top-right-radius:0;border-bottom-right-radius:0}'],changeDetection:0});let r=i;return V([H],r.prototype,"hasKeySteps",null),r})(),Zr=(()=>{let i=class i extends on{constructor(){super(...arguments),this.slider=h(bi(()=>mi))}writeValue(e){if(e===null)return;let t=Li(e,this.min,this.max);this.slider.value=this.transformToNativeValue(t)}get min(){return this.keySteps[0][1]}get max(){return this.keySteps[this.keySteps.length-1][1]}updateControlValue(){this.onChange(Yr(this.slider.valueRatio*100,this.keySteps))}transformToNativeValue(e){let{min:t,max:n}=this.slider;return Qr(e,this.keySteps)*(n-t)/100+t}};i.\u0275fac=(()=>{let e;return function(n){return(e||(e=pe(i)))(n||i)}})(),i.\u0275dir=U({type:i,selectors:[["input","tuiSlider","","keySteps",""]],hostVars:4,hostBindings:function(t,n){t&1&&b("blur",function(){return n.onTouched()})("input",function(){return n.updateControlValue()})("change",function(){return n.updateControlValue()}),t&2&&(Oe("disabled",n.disabled()),Q("aria-valuenow",n.value())("aria-valuemin",n.min)("aria-valuemax",n.max))},inputs:{keySteps:"keySteps"},standalone:!0,features:[R([Ji(0)]),he]});let r=i;return r})();var no=["*",[["input"]]],ro=["*","input"],oo=r=>({$implicit:r});function ao(r,i){if(r&1){let o=I();l(0,"tui-primitive-textfield",5),b("focusedChange",function(t){f(o);let n=p();return _(n.onFocused(t))})("valueChange",function(t){f(o);let n=p();return _(n.onValueChange(t))}),$(1),$(2,1,["ngProjectAs","input",5,["input"]]),c()}if(r&2){let o=i.tuiLet,e=p(),t=D(4);u("disabled",e.computedDisabled)("focusable",e.computedFocusable)("invalid",e.computedInvalid)("maskito",e.computedMask)("nativeId",e.nativeId)("pseudoFocus",e.pseudoFocus)("pseudoHover",e.pseudoHover)("readOnly",e.readOnly)("tuiTextfieldFiller",e.getComputedFiller(o||""))("tuiTextfieldIcon",e.calendarIcon&&t)("value",e.computedValue)}}function so(r,i){if(r&1){let o=I();l(0,"tui-icon",8),b("click",function(){f(o);let t=p(2);return _(t.onIconClick())}),c()}if(r&2){let o=i.polymorpheusOutlet,e=p(2);se("t-icon_small",e.size==="s")("t-icon",!e.computedDisabled),u("icon",o.toString())}}function lo(r,i){r&1&&y(0,"input",9)}function co(r,i){if(r&1&&C(0,so,1,5,"tui-icon",6)(1,lo,1,0,"input",7),r&2){let o=p();u("polymorpheusOutlet",o.calendarIcon)("polymorpheusOutletContext",X(3,oo,o.size)),s(),u("ngIf",o.nativePicker)}}function uo(r,i){if(r&1){let o=I();l(0,"div",12),b("mousedown.prevent.silent",function(){return f(o),_(0)}),l(1,"button",13),b("click",function(){f(o);let t=p(2);return _(t.onDayClick(t.items[0].day))}),g(2),c()()}if(r&2){let o=p(2);s(2),w(" ",o.items[0]," ")}}function mo(r,i){if(r&1){let o=I();l(0,"tui-calendar",10),b("dayClick",function(t){f(o);let n=p();return _(n.onDayClick(t))})("monthChange",function(t){f(o);let n=p();return _(n.onMonthChange(t))})("mousedown.prevent.silent",function(){return f(o),_(0)}),c(),C(1,uo,3,1,"div",11)}if(r&2){let o=p();u("disabledItemHandler",o.disabledItemHandler)("markerHandler",o.markerHandler)("max",o.computedMax)("min",o.computedMin)("month",o.computedActiveYearMonth)("value",o.value),s(),u("ngIf",o.items.length===1)}}var di=(()=>{let i=class i extends Rt{get value(){return this.host.computedValue}get max(){return this.host.computedMax}get min(){return this.host.computedMin}get format(){return this.host.dateFormat}onValueChange(e){e||(this.host.nativeValue=""),this.host.onValueChange(e)}process(e){e.inputMode="numeric"}};i.\u0275fac=(()=>{let e;return function(n){return(e||(e=pe(i)))(n||i)}})(),i.\u0275dir=U({type:i,selectors:[["tui-input-date",3,"multiple",""]],features:[R([Xe(i)]),he]});let r=i;return r})(),po=(()=>{let i=class i{constructor(){this.host=h(Dn)}get value(){return this.host.value.length===Ee?O.normalizeParse(this.host.value,this.host.format.mode).toString("YMD","-"):""}get max(){return this.host.max.toJSON()}get min(){return this.host.min.toJSON()}onChange(e){this.host.onValueChange(e?O.normalizeParse(e,"YMD").toString(this.host.format.mode):"")}};i.\u0275fac=function(t){return new(t||i)},i.\u0275dir=U({type:i,selectors:[["input","tuiDate",""]],hostAttrs:["type","date"],hostVars:4,hostBindings:function(t,n){t&1&&b("change",function(m){return n.onChange(m.target.value)})("click.stop.silent",function(){return 0})("input.stop.silent",function(){return 0})("mousedown.stop.silent",function(){return 0}),t&2&&Oe("tabIndex",-1)("value",n.value)("max",n.max)("min",n.min)},features:[R([Xe(di)])]});let r=i;return r})(),Zn=(()=>{let i=class i extends Bt{constructor(){super(...arguments),this.options=h(Ot),this.textfieldSize=h(Wt),this.mobileCalendar=h(Pt,{optional:!0}),this.month=null,this.min=this.options.min,this.max=this.options.max,this.disabledItemHandler=Ie,this.markerHandler=null,this.items=[],this.defaultActiveYearMonth=te.currentLocal(),this.dateFormat=_t,this.open=!1,this.dateTexts$=h(kt),this.valueTransformer=h(li,{optional:!0}),this.isMobile=h(Ct),this.filler$=this.dateTexts$.pipe(re(e=>pt(e[this.dateFormat.mode],this.dateFormat.separator))),this.dateFormat$=h(vt).pipe(xe(this.cdr),de()).subscribe(e=>{this.dateFormat=e})}get computedMin(){return this.min??this.options.min}get computedMax(){return this.max??this.options.max}get nativeFocusableElement(){var e;return((e=this.textfield)==null?void 0:e.nativeFocusableElement)??null}get focused(){var e;return!!((e=this.textfield)!=null&&e.focused)}get nativeValue(){var e;return((e=this.nativeFocusableElement)==null?void 0:e.value)||""}set nativeValue(e){this.nativeFocusableElement&&(this.nativeFocusableElement.value=e)}get computedValue(){let{value:e,nativeValue:t,activeItem:n}=this;return n?String(n):e?e.toString(this.dateFormat.mode,this.dateFormat.separator):t}onValueChange(e){this.control&&this.control.updateValueAndValidity({emitEvent:!1}),!e&&!this.mobileCalendar&&this.onOpenChange(!0),this.value=e.length!==Ee?null:O.normalizeParse(e,this.dateFormat.mode)}setDisabledState(){super.setDisabledState(),this.open=!1}writeValue(e){super.writeValue(e),this.nativeValue=e?this.computedValue:""}get size(){return this.textfieldSize.size}get nativePicker(){return this.options.nativePicker&&this.isMobile}get calendarIcon(){return this.options.icon}get computedActiveYearMonth(){var e;return this.items[0]&&((e=this.value)!=null&&e.daySame(this.items[0].day))?this.items[0].displayDay:this.month||this.value||Wi(this.defaultActiveYearMonth,this.computedMin,this.computedMax)}get computedMask(){return this.activeItem?St:this.computeMaskOptions(this.dateFormat.mode,this.dateFormat.separator,this.computedMin,this.computedMax)}get activeItem(){let{value:e}=this;return e&&this.items.find(t=>t.day.daySame(e))||null}onClick(){!this.isMobile&&this.interactive&&(this.open=!this.open)}getComputedFiller(e){return this.activeItem?"":e}onIconClick(){this.isMobile&&this.interactive&&(this.open=!0)}onDayClick(e){this.value=e,this.open=!1}onMonthChange(e){this.month=e}onOpenChange(e){this.open=e}onFocused(e){this.updateFocused(e)}valueIdenticalComparator(e,t){return Se(e,t,(n,a)=>n.daySame(a))}computeMaskOptions(e,t,n,a){return yn({separator:t,mode:Vt[e],min:n.toLocalNativeDate(),max:a.toLocalNativeDate()})}};i.\u0275fac=(()=>{let e;return function(n){return(e||(e=pe(i)))(n||i)}})(),i.\u0275cmp=x({type:i,selectors:[["tui-input-date",3,"multiple",""]],viewQuery:function(t,n){if(t&1&&ce(Te,5),t&2){let a;K(a=G())&&(n.textfield=a.first)}},hostVars:1,hostBindings:function(t,n){t&1&&b("click",function(){return n.onClick()}),t&2&&Q("data-size",n.size)},inputs:{min:"min",max:"max",disabledItemHandler:"disabledItemHandler",markerHandler:"markerHandler",items:"items",defaultActiveYearMonth:"defaultActiveYearMonth"},features:[R([Lt(i),bt(i),Ht(i),Dt(li),Ft]),he],ngContentSelectors:ro,decls:7,vars:7,consts:[["iconContent",""],["dropdown","polymorpheus"],["tuiDropdownOpenMonitor","",1,"t-hosted",3,"tuiDropdownOpenChange","tuiDropdown","tuiDropdownEnabled","tuiDropdownOpen"],["automation-id","tui-input-date-range__textfield","tuiValueAccessor","","class","t-textfield",3,"disabled","focusable","invalid","maskito","nativeId","pseudoFocus","pseudoHover","readOnly","tuiTextfieldFiller","tuiTextfieldIcon","value","focusedChange","valueChange",4,"tuiLet"],[3,"polymorpheus"],["automation-id","tui-input-date-range__textfield","tuiValueAccessor","",1,"t-textfield",3,"focusedChange","valueChange","disabled","focusable","invalid","maskito","nativeId","pseudoFocus","pseudoHover","readOnly","tuiTextfieldFiller","tuiTextfieldIcon","value"],["automation-id","tui-input-date-range__icon","tuiAppearance","icon",3,"t-icon_small","t-icon","icon","click",4,"polymorpheusOutlet","polymorpheusOutletContext"],["tuiDate","","class","t-native-input",4,"ngIf"],["automation-id","tui-input-date-range__icon","tuiAppearance","icon",3,"click","icon"],["tuiDate","",1,"t-native-input"],["automation-id","tui-input-date__calendar",3,"dayClick","monthChange","mousedown.prevent.silent","disabledItemHandler","markerHandler","max","min","month","value"],["class","t-button",3,"mousedown.prevent.silent",4,"ngIf"],[1,"t-button",3,"mousedown.prevent.silent"],["tuiLink","","type","button",3,"click"]],template:function(t,n){if(t&1){let a=I();le(no),l(0,"div",2),b("tuiDropdownOpenChange",function(d){return f(a),_(n.onOpenChange(d))}),C(1,ao,3,11,"tui-primitive-textfield",3),S(2,"async"),C(3,co,2,5,"ng-template",null,0,j)(5,mo,2,7,"ng-template",4,1,j),c()}if(t&2){let a=D(6);u("tuiDropdown",a)("tuiDropdownEnabled",n.interactive&&!n.nativePicker)("tuiDropdownOpen",n.open),s(),u("tuiLet",L(2,5,n.filler$)),s(4),u("polymorpheus",n.type)}},dependencies:[q,Et,Le,qi,Re,Gi,Te,Qt,$t,yt,jt,Nt,zt,F,z,xt,wt,po,Y],styles:["[_nghost-%COMP%]{display:block;border-radius:var(--tui-radius-m);text-align:left}.t-hosted[_ngcontent-%COMP%]{display:block;border-radius:inherit}.t-textfield[_ngcontent-%COMP%]{border-radius:inherit;text-align:inherit}.t-icon[_ngcontent-%COMP%]{pointer-events:auto}.t-icon_small[_ngcontent-%COMP%]{border:.25rem solid transparent}.t-button[_ngcontent-%COMP%]{display:flex;height:2.75rem;justify-content:center;box-shadow:inset 0 1px var(--tui-border-normal)}.t-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{flex:1;text-align:center}.t-native-input[_ngcontent-%COMP%]{position:absolute;top:0;left:0;width:100%;height:100%;opacity:0;pointer-events:auto;font-size:2rem}"],changeDetection:0});let r=i;return V([H],r.prototype,"computeMaskOptions",null),r})(),Xn=(()=>{let i=class i{};i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=rt({type:i}),i.\u0275inj=nt({imports:[k,Re,Kt,Yt,Ut,z,Tt]});let r=i;return r})();var ho=["*",[["input"]]],go=["*","input"],qn=r=>({$implicit:r});function fo(r,i){if(r&1&&(ve(0),g(1),Ce()),r&2){let o=i.polymorpheusOutlet;s(),w(" ",o," ")}}function _o(r,i){if(r&1&&(l(0,"div",6),C(1,fo,2,1,"ng-container",7),c()),r&2){let o=p(2);s(),u("polymorpheusOutlet",o.computedContent)("polymorpheusOutletContext",X(2,qn,o.value))}}function vo(r,i){if(r&1){let o=I();l(0,"tui-primitive-textfield",4),b("valueChange",function(t){f(o);let n=p();return _(n.onValueChange(t))}),$(1),$(2,1,["ngProjectAs","input",5,["input"]]),C(3,_o,2,4,"div",5),c()}if(r&2){let o=i.tuiLet,e=p(),t=D(4);u("disabled",e.computedDisabled)("invalid",e.computedInvalid)("maskito",e.computedMask)("nativeId",e.nativeId)("pseudoActive",e.pseudoActive)("pseudoFocus",e.innerPseudoFocused)("pseudoHover",e.pseudoHover)("readOnly",e.readOnly)("tuiTextfieldFiller",e.getComputedRangeFiller(o||""))("tuiTextfieldIcon",e.calendarIcon&&t)("value",e.computedValue),s(3),u("ngIf",e.showValueTemplate)}}function Co(r,i){if(r&1){let o=I();l(0,"tui-icon",9),b("click",function(){f(o);let t=p(2);return _(t.onIconClick())}),c()}if(r&2){let o=i.polymorpheusOutlet,e=p(2);se("t-icon_small",e.size==="s")("t-icon",!e.computedDisabled),u("icon",o.toString())}}function yo(r,i){if(r&1&&C(0,Co,1,5,"tui-icon",8),r&2){let o=p();u("polymorpheusOutlet",o.calendarIcon)("polymorpheusOutletContext",X(2,qn,o.size))}}function bo(r,i){if(r&1){let o=I();l(0,"tui-calendar-range",10),b("valueChange",function(t){f(o);let n=p();return _(n.onRangeChange(t))}),c()}if(r&2){let o=p();u("defaultViewedMonth",o.defaultViewedMonth)("disabledItemHandler",o.disabledItemHandler)("items",o.items)("markerHandler",o.markerHandler)("max",o.max)("maxLength",o.maxLength)("min",o.min)("minLength",o.minLength)("value",o.value)}}var Jn=(()=>{let i=class i extends Bt{constructor(){super(...arguments),this.isMobile=h(Ct),this.mobileCalendar=h(Pt,{optional:!0}),this.options=h(Ot),this.textfieldSize=h(Wt),this.dateTexts$=h(kt),this.valueTransformer=h(ci,{optional:!0}),this.dateFiller$=this.dateTexts$.pipe(re(e=>pt(e[this.dateFormat.mode],this.dateFormat.separator))),this.dateFormat=_t,this.dateFormat$=h(vt).pipe(xe(this.cdr),de()).subscribe(e=>{this.dateFormat=e}),this.selectedActivePeriod=null,this.disabledItemHandler=Ie,this.markerHandler=null,this.defaultViewedMonth=te.currentLocal(),this.items=[],this.min=this.options.min,this.max=this.options.max,this.minLength=null,this.maxLength=null,this.open=!1}get nativeFocusableElement(){var e;return((e=this.textfield)==null?void 0:e.nativeFocusableElement)??null}get focused(){var e;return!!((e=this.textfield)!=null&&e.focused)}get computedExampleText(){var e,t;return this.items.length&&((t=(e=this.textfield)==null?void 0:e.nativeFocusableElement)==null?void 0:t.placeholder)||""}get computedValue(){let{value:e,nativeValue:t,activePeriod:n}=this;return n?String(n):e?e.getFormattedDayRange(this.dateFormat.mode,this.dateFormat.separator):t}onClick(){!this.isMobile&&this.interactive&&this.toggle()}ngAfterViewChecked(){this.calendarRange&&(this.calendarRange.selectedActivePeriod=this.selectedActivePeriod,this.calendarRange.cdr.markForCheck())}onValueChange(e){this.control&&this.control.updateValueAndValidity({emitEvent:!1}),!e&&!this.mobileCalendar&&this.onOpenChange(!0),this.value=e.length===Ui?ie.normalizeParse(e,this.dateFormat.mode):null,this.value||(this.selectedActivePeriod=null)}onRangeChange(e){var t;this.toggle(),this.focusInput(),e||(this.nativeValue=""),this.value=e,this.selectedActivePeriod=((t=this.calendarRange)==null?void 0:t.selectedActivePeriod)??null}writeValue(e){super.writeValue(e),this.nativeValue=e?this.computedValue:""}get size(){return this.textfieldSize.size}get computedMobile(){return this.isMobile&&!!this.mobileCalendar}get calendarIcon(){return this.options.icon}get computedMask(){return this.activePeriod?St:this.calculateMask(this.dateFormat.mode,this.dateFormat.separator,this.min,this.max,this.minLength,this.maxLength)}get activePeriod(){return this.selectedActivePeriod??(this.items.find(e=>Se(this.value,e.range,(t,n)=>t.from.daySame(n.from.dayLimit(this.min,this.max))&&t.to.daySame(n.to.dayLimit(this.min,this.max))))||null)}get showValueTemplate(){return gt(this.value)&&!this.focused}get computedContent(){var e;return((e=this.activePeriod)==null?void 0:e.content)||this.computedValue}get innerPseudoFocused(){return this.pseudoFocus===!1?!1:this.open||this.computedFocused?!0:null}get nativeValue(){var e;return((e=this.nativeFocusableElement)==null?void 0:e.value)||""}set nativeValue(e){this.nativeFocusableElement&&(this.nativeFocusableElement.value=e)}getComputedRangeFiller(e){return this.activePeriod?"":this.getDateRangeFiller(e)}onIconClick(){this.isMobile&&this.interactive&&this.onOpenChange(!0)}onOpenChange(e){this.open=e}onActiveZone(e){this.updateFocused(e),!e&&!this.itemSelected&&(this.nativeValue.length===Ee||this.nativeValue.length===Ee+ai.length)&&(this.value=ie.normalizeParse(this.nativeValue,this.dateFormat.mode))}valueIdenticalComparator(e,t){return Se(e,t,(n,a)=>n.daySame(a))}get itemSelected(){return this.items.findIndex(e=>String(e)===this.nativeValue)!==-1}calculateMask(e,t,n,a,m,d){return bn({dateSeparator:t,mode:Vt[e],min:(n||De).toLocalNativeDate(),max:(a||Ge).toLocalNativeDate(),minLength:m||{},maxLength:d||{}})}toggle(){this.open=!this.open}focusInput(e=!1){this.nativeFocusableElement&&this.nativeFocusableElement.focus({preventScroll:e})}getDateRangeFiller(e){return`${e}${ai}${e}`}};i.\u0275fac=(()=>{let e;return function(n){return(e||(e=pe(i)))(n||i)}})(),i.\u0275cmp=x({type:i,selectors:[["tui-input-date-range"]],viewQuery:function(t,n){if(t&1&&(ce(Te,5),ce(Je,5)),t&2){let a;K(a=G())&&(n.textfield=a.first),K(a=G())&&(n.calendarRange=a.first)}},hostVars:1,hostBindings:function(t,n){t&1&&b("click",function(){return n.onClick()}),t&2&&Q("data-size",n.size)},inputs:{disabledItemHandler:"disabledItemHandler",markerHandler:"markerHandler",defaultViewedMonth:"defaultViewedMonth",items:"items",min:"min",max:"max",minLength:"minLength",maxLength:"maxLength"},features:[R([Lt(i),bt(i),Ht(i),Dt(ci),Ft]),he],ngContentSelectors:go,decls:7,vars:6,consts:[["iconContent",""],["dropdown",""],["tuiDropdownOpenMonitor","",1,"t-hosted",3,"tuiActiveZoneChange","tuiDropdownOpenChange","tuiDropdown","tuiDropdownEnabled","tuiDropdownOpen"],["automation-id","tui-input-date-range__textfield","tuiValueAccessor","","class","t-textfield",3,"disabled","invalid","maskito","nativeId","pseudoActive","pseudoFocus","pseudoHover","readOnly","tuiTextfieldFiller","tuiTextfieldIcon","value","valueChange",4,"tuiLet"],["automation-id","tui-input-date-range__textfield","tuiValueAccessor","",1,"t-textfield",3,"valueChange","disabled","invalid","maskito","nativeId","pseudoActive","pseudoFocus","pseudoHover","readOnly","tuiTextfieldFiller","tuiTextfieldIcon","value"],["ngProjectAs","tuiContent","class","t-value",5,["tuiContent"],4,"ngIf"],["ngProjectAs","tuiContent",5,["tuiContent"],1,"t-value"],[4,"polymorpheusOutlet","polymorpheusOutletContext"],["automation-id","tui-input-date-range__icon","tuiAppearance","icon",3,"t-icon_small","t-icon","icon","click",4,"polymorpheusOutlet","polymorpheusOutletContext"],["automation-id","tui-input-date-range__icon","tuiAppearance","icon",3,"click","icon"],[3,"valueChange","defaultViewedMonth","disabledItemHandler","items","markerHandler","max","maxLength","min","minLength","value"]],template:function(t,n){if(t&1){let a=I();le(ho),l(0,"div",2),b("tuiActiveZoneChange",function(d){return f(a),_(n.onActiveZone(d))})("tuiDropdownOpenChange",function(d){return f(a),_(n.onOpenChange(d))}),C(1,vo,4,12,"tui-primitive-textfield",3),S(2,"async"),C(3,yo,1,4,"ng-template",null,0,j)(5,bo,1,9,"ng-template",null,1,j),c()}if(t&2){let a=D(6);u("tuiDropdown",a)("tuiDropdownEnabled",n.interactive)("tuiDropdownOpen",n.open&&n.interactive),s(),u("tuiLet",L(2,4,n.dateFiller$))}},dependencies:[q,Et,yt,Le,Te,Qt,jt,Nt,Je,$t,zt,z,F,xt,wt,Y],styles:["[_nghost-%COMP%]{display:block;border-radius:var(--tui-radius-m);text-align:left}._disabled[_nghost-%COMP%]{pointer-events:none}.t-hosted[_ngcontent-%COMP%]{display:block;border-radius:inherit}.t-textfield[_ngcontent-%COMP%]{border-radius:inherit;text-align:inherit}.t-icon[_ngcontent-%COMP%]{pointer-events:auto}.t-icon_small[_ngcontent-%COMP%]{border:.25rem solid transparent}.t-value[_ngcontent-%COMP%]{display:flex;width:100%;align-items:center}"],changeDetection:0});let r=i;return V([H],r.prototype,"calculateMask",null),r})(),er=(()=>{let i=class i extends Rt{get value(){return this.host.computedValue}onValueChange(e){this.host.onValueChange(e)}process(e){e.inputMode="numeric"}ngDoCheck(){this.host.nativeFocusableElement&&(this.host.nativeFocusableElement.placeholder=this.host.computedExampleText)}};i.\u0275fac=(()=>{let e;return function(n){return(e||(e=pe(i)))(n||i)}})(),i.\u0275dir=U({type:i,selectors:[["tui-input-date-range"]],features:[R([Xe(i)]),he]});let r=i;return r})(),tr=(()=>{let i=class i{};i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=rt({type:i}),i.\u0275inj=nt({imports:[k,Kt,Ut,Je,Yt,z,Tt]});let r=i;return r})();var xo=[{id:"1",date:"17.07.2024"}],ir=(()=>{let i=class i{constructor(){this.progress$=_i(300,200).pipe(re(e=>e+30),Ci(30),yi(e=>e<=100)),this.schedule=xo}};i.\u0275fac=function(t){return new(t||i)},i.\u0275prov=A({token:i,factory:i.\u0275fac,providedIn:"root"});let r=i;return r})();function wo(r,i){if(r&1&&(l(0,"tui-input-date",5),g(1," cleaning time "),y(2,"input",8),c()),r&2){let o=i.$implicit,e=i.$index,t=p();u("ariaValueMin",t.now)("formControl",o)("min",t.now)("readOnly",e==0)}}function Mo(r,i){if(r&1&&(l(0,"label",9)(1,"span",10),g(2),c(),y(3,"tui-progress-circle",11),S(4,"async"),c()),r&2){let o=i.ngIf,e=p();v("margin-bottom","auto"),s(2),w("",o,"%"),s(),v("color",L(4,7,e.color$)),u("max",100)("value",o)}}var rr=(()=>{let i=class i{constructor(){this.cleaningService=h(ir),this.now=O.currentLocal(),this.forms=new Ae(this.cleaningService.schedule.map(e=>new Me(new O(O.parseRawDateString(e.date).year,O.parseRawDateString(e.date).month,O.parseRawDateString(e.date).day)))),this.color$=this.cleaningService.progress$.pipe(re(e=>e<33?"var(--tui-status-negative)":e<66?"var(--tui-status-warning)":"var(--tui-background-accent-1)"))}addNew(){this.forms.push(new Me)}};i.\u0275fac=function(t){return new(t||i)},i.\u0275cmp=x({type:i,selectors:[["lmb-cleaning"]],standalone:!0,features:[T],decls:12,vars:5,consts:[["tuiAppearance","whiteblock","tuiCardLarge","normal",1,"card"],["tuiHeader",""],["tuiTitle",""],[1,"timetable"],[1,"list"],[1,"input-date",3,"ariaValueMin","formControl","min","readOnly"],["tuiProgressLabel","",3,"margin-bottom",4,"ngIf"],["appearance","primary","tuiButton","",1,"add-button",3,"click"],["tuiTextfieldLegacy",""],["tuiProgressLabel",""],[1,"percent"],["size","s",3,"max","value"]],template:function(t,n){t&1&&(l(0,"div",0)(1,"header",1)(2,"h2",2),g(3," Cleaning schedule "),c()(),l(4,"div",3)(5,"div",4),fe(6,wo,3,4,"tui-input-date",5,ge),c(),C(8,Mo,5,9,"label",6),S(9,"async"),c(),l(10,"button",7),b("click",function(){return n.addNew()}),g(11," Add "),c()()),t&2&&(s(2),v("text-align","center"),s(4),_e(n.forms.controls),s(2),u("ngIf",L(9,3,n.cleaningService.progress$)))},dependencies:[Y,k,q,ee,J,be,Fe,F,Ve,E,Xn,Zn,di,kn,xn,Tn],styles:[".card[_ngcontent-%COMP%]{display:flex;flex-direction:column;text-align:center;height:100%;background-color:var(--tui-background-base)}.add-button[_ngcontent-%COMP%]{max-width:7rem}.list[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.625rem}.percent[_ngcontent-%COMP%]{font:var(--tui-font-text-m)}tui-progress-circle[_ngcontent-%COMP%]{transition:color 2s}.input-date[_ngcontent-%COMP%]{width:10rem}.timetable[_ngcontent-%COMP%]{display:flex;gap:.625rem}"],changeDetection:0});let r=i;return r})();var So=[{name:"Room temperature \u0421\xB0",value:32},{name:"Water temperature",value:0},{name:"Air humidity, %",value:10}],or=(()=>{let i=class i{constructor(){this.climateControlData=So}};i.\u0275fac=function(t){return new(t||i)},i.\u0275prov=A({token:i,factory:i.\u0275fac,providedIn:"root"});let r=i;return r})();function Io(r,i){if(r&1){let o=I();l(0,"tui-input-number",5),ae("ngModelChange",function(t){let n=f(o).$implicit;return Z(n.value,t)||(n.value=t),_(t)}),g(1),c()}if(r&2){let o=i.$implicit;oe("ngModel",o.value),s(),w(" ",o.name," ")}}var ar=(()=>{let i=class i{constructor(){this.climateControlService=h(or).climateControlData}};i.\u0275fac=function(t){return new(t||i)},i.\u0275cmp=x({type:i,selectors:[["lmb-climate-control"]],standalone:!0,features:[R([Qi({precision:0}),On({step:1})]),T],decls:6,vars:3,consts:[["tuiAppearance","whiteblock","tuiCardLarge","normal",1,"card"],["tuiHeader",""],["tuiTitle",""],[1,"group"],[3,"ngModel","ngModelChange",4,"ngFor","ngForOf"],[3,"ngModelChange","ngModel"]],template:function(t,n){t&1&&(l(0,"div",0)(1,"header",1)(2,"h2",2),g(3," Climate control "),c()(),l(4,"div",3),C(5,Io,2,2,"tui-input-number",4),c()()),t&2&&(s(2),v("text-align","center"),s(3),u("ngForOf",n.climateControlService))},dependencies:[k,B,ee,J,me,F,E,An,Pn,Fn],styles:[".card[_ngcontent-%COMP%]{display:flex;flex-direction:column;flex-shrink:0;background-color:var(--tui-background-base);height:100%}.card[tuiCardLarge][_ngcontent-%COMP%] .group[_ngcontent-%COMP%]:last-child{display:flex;margin-top:0;flex-direction:column;gap:.625rem}"],changeDetection:0});let r=i;return r})();var Ne=[{name:"Misha Zhem",img:"./example.png",status:"online"},{name:"Oleg B.",img:"OB",status:"online"},{name:"Andrey M.",img:"AM",status:"online"},{name:"Misha Zhem3",img:"./example.png",status:"online"},{name:"Vladimir D.",img:"VD",status:"online"},{name:"Gleb H.",img:"GH",status:"online"},{name:"Misha Zhem2",img:"./example.png",status:"online"},{name:"Misha Zhem4",img:"./example.png",status:"online"},{name:"Gleb H.",img:"GH",status:"online"},{name:"Andrey M.",img:"AM",status:"online"}],je=[{name:"Misha Zhem4",img:"./example.png",status:"online",last:"9:12 PM",took:!0},{name:"Oleg B.",img:"OB",status:"online",last:"11:35 AM",took:!0},{name:"Andrey M.",img:"AM",status:"online",last:"12:15 AM",took:!1},{name:"Misha Zhem2",img:"./example.png",status:"online",last:"8:45 PM",took:!1},{name:"Misha Zhem",img:"./example.png",status:"online",last:"1:10 PM",took:!1},{name:"Misha Zhem3",img:"./example.png",status:"online",last:"11:05 AM",took:!0},{name:"Gleb H.",img:"GH",status:"online",last:"1:15 AM",took:!1},{name:"Vladimir D.",img:"VD",status:"online",last:"3:15 PM",took:!0},{name:"Oleg B.",img:"OB",status:"online",last:"11:35 AM",took:!0},{name:"Andrey M.",img:"AM",status:"online",last:"12:15 AM",took:!1}],Do={contacts:Ne.concat(Ne,Ne,Ne,Ne,Ne),recent:je.concat(je,je,je,je,je)},sr=(()=>{let i=class i{constructor(){this.contactsData=Do}};i.\u0275fac=function(t){return new(t||i)},i.\u0275prov=A({token:i,factory:i.\u0275fac,providedIn:"root"});let r=i;return r})();function ko(r,i){if(r&1){let o=I();l(0,"button",3),b("click",function(){let t=f(o).$index,n=p();return _(n.activeTab=t)}),l(1,"header",4)(2,"h2",5),g(3),c()()()}if(r&2){let o=i.$implicit;s(2),v("text-align","center"),s(),w(" ",o," ")}}function Oo(r,i){if(r&1&&(l(0,"div",8),y(1,"tui-avatar",9),S(2,"tuiAutoColor"),l(3,"div",5),g(4),l(5,"div",10),g(6),c()(),l(7,"button",11),g(8," Call "),c()()),r&2){let o=i.$implicit;s(),v("background",L(2,5,o.img)),u("src",o.img),s(3),w(" ",o.name," "),s(2),ue(o.status)}}function Po(r,i){if(r&1&&(l(0,"tui-scrollbar")(1,"cdk-virtual-scroll-viewport",6),C(2,Oo,9,7,"div",7),c()()),r&2){let o=p();s(2),u("cdkVirtualForOf",o.contactsService.contacts)}}function Fo(r,i){if(r&1&&(l(0,"div",8)(1,"tui-badged-content"),y(2,"tui-avatar",12),S(3,"tuiAutoColor"),y(4,"tui-icon",13),c(),l(5,"div",5),g(6),l(7,"div",10),g(8),c()(),l(9,"div",10),g(10),c()()),r&2){let o=i.$implicit;s(2),v("background",L(3,8,o.img)),u("src",o.img),s(2),u("appearance",o.took?"error":"success")("icon",o.took?"@tui.arrow-down-left":"@tui.arrow-up-right"),s(2),w(" ",o.name," "),s(2),ue(o.status),s(2),ue(o.last)}}function Ao(r,i){if(r&1&&(l(0,"tui-scrollbar")(1,"cdk-virtual-scroll-viewport",6),C(2,Fo,11,10,"div",7),c()()),r&2){let o=p();s(2),u("cdkVirtualForOf",o.contactsService.recent)}}var lr=(()=>{let i=class i{constructor(){this.contactsService=h(sr).contactsData,this.tabs=["Contacts","Recent"],this.activeTab=0}};i.\u0275fac=function(t){return new(t||i)},i.\u0275cmp=x({type:i,selectors:[["lmb-contacts"]],standalone:!0,features:[T],decls:6,vars:4,consts:[["tuiAppearance","whiteblock","tuiCardLarge","normal"],[3,"activeItemIndex"],["tuiTab",""],["tuiTab","",3,"click"],["tuiHeader",""],["tuiTitle",""],["itemSize","57","tuiScrollable","",1,"contacts-list","viewport","tui-zero-scrollbar"],["tuiCell","l",4,"cdkVirtualFor","cdkVirtualForOf"],["tuiCell","l"],[3,"src"],["tuiSubtitle",""],["appearance","icon","iconStart","@tui.phone","tuiIconButton",""],[1,"avatar",3,"src"],["size","s","tuiBadge","","tuiSlot","top",3,"appearance","icon"]],template:function(t,n){t&1&&(l(0,"div",0)(1,"tui-tabs",1),fe(2,ko,4,3,"button",2,ge),c(),C(4,Po,3,1,"tui-scrollbar")(5,Ao,3,1,"tui-scrollbar"),c()),t&2&&(v("height","100%"),s(),u("activeItemIndex",n.activeTab),s(),_e(n.tabs),s(2),ot(n.activeTab===0?4:5))},dependencies:[Vn,Hn,Ln,k,F,rn,It,_n,jn,Wn,Ve,E,Sn,z,nn,tn,wn,Mn],styles:["tui-tabs[_ngcontent-%COMP%]{display:flex;justify-content:space-around}[tuiCardLarge][_ngcontent-%COMP%] [tuiCell][data-size=l][_ngcontent-%COMP%]{margin:0;border-radius:0;box-shadow:0 1px var(--tui-border-normal)}tui-scrollbar[_ngcontent-%COMP%], .viewport[_ngcontent-%COMP%]{height:100%;min-height:12rem}tui-badged-content[_ngcontent-%COMP%] tui-avatar[_ngcontent-%COMP%]{--t-size: 2.5rem;font:var(--tui-font-text-m);font-weight:700}"],changeDetection:0});let r=i;return r})();var Eo=[{name:"Open the door",img:"@tui.door-open",clickedName:"Close the door",clickedImg:"@tui.door-closed"},{name:"Call security",img:"@tui.shield-alert",clickedName:"Call off security",clickedImg:"@tui.octagon-x"},{name:"Turn up the heat",img:"@tui.heater",clickedName:"Turn off the heat",clickedImg:"@tui.refrigerator"},{name:"Turn on the kettle",img:"@tui.coffee",clickedName:"Turn off the kettle",clickedImg:"@tui.cup-soda"}],cr=(()=>{let i=class i{constructor(){this.controlPanelData=Eo}};i.\u0275fac=function(t){return new(t||i)},i.\u0275prov=A({token:i,factory:i.\u0275fac,providedIn:"root"});let r=i;return r})();function Vo(r,i){if(r&1){let o=I();l(0,"button",1),b("click",function(){let t=f(o).$index,n=p();return _(n.states[t]=!n.states[t])}),l(1,"aside",2),y(2,"tui-avatar",3),c(),l(3,"h2",4),g(4),c()()}if(r&2){let o=i.$implicit,e=i.$index,t=p();s(2),v("color","var(--tui-background-accent-opposite)"),u("src",t.states[e]?o.clickedImg:o.img),s(2),w(" ",t.states[e]?o.clickedName:o.name," ")}}var ur=(()=>{let i=class i{constructor(){this.controlPanelService=h(cr).controlPanelData,this.states=new Array(this.controlPanelService.length).fill(!1)}};i.\u0275fac=function(t){return new(t||i)},i.\u0275cmp=x({type:i,selectors:[["lmb-small-card"]],standalone:!0,features:[T],decls:2,vars:0,consts:[["tuiCardLarge","","tuiHeader","","tuiSurface","elevated",1,"button-card"],["tuiCardLarge","","tuiHeader","","tuiSurface","elevated",1,"button-card",3,"click"],["tuiAccessories",""],["appearance","","size","l",3,"src"],[1,"text"]],template:function(t,n){t&1&&fe(0,Vo,5,4,"button",0,ge),t&2&&_e(n.controlPanelService)},dependencies:[k,It,E,In,pn],styles:["[_nghost-%COMP%]{display:flex;flex:1;flex-wrap:wrap;gap:.625rem;align-items:center;justify-content:space-around}@media (max-width: 50rem) and (min-width: 31.35rem){[_nghost-%COMP%]{display:grid;grid-template-columns:1fr 1fr}}.text[_ngcontent-%COMP%]{font:var(--tui-font-heading-6);margin-top:1rem;margin-bottom:1rem}[tuiHeader][_ngcontent-%COMP%] [tuiAccessories][_ngcontent-%COMP%]{gap:0}.button-card[_ngcontent-%COMP%]{display:flex;max-width:max-content;align-items:center;padding-right:1.75rem;gap:1rem}@media (max-width: 50rem){.button-card[_ngcontent-%COMP%]{width:100%;height:100%;max-width:100%}}@media (max-width: 31.25rem){.button-card[_ngcontent-%COMP%]{width:calc(100vw - 5.5rem);max-width:calc(100vw - 5.5rem);flex-shrink:0}}.button-card[_ngcontent-%COMP%]:last-child{grid-column-end:3;grid-column-start:1}"],changeDetection:0});let r=i;return r})();function Lo(r,i){if(r&1&&y(0,"div",1),r&2){let o=i.$implicit,e=i.index,t=p();v("background","var(--tui-chart-categorical-0"+e+")")("height",t.getHeight(o),"%")}}var mr=(()=>{let i=class i{constructor(){this.value=[],this.size="m"}getHeight(e){return 100*e/this.getSum(this.value)}getSum(e){return dt(...e)}};i.\u0275fac=function(t){return new(t||i)},i.\u0275cmp=x({type:i,selectors:[["tui-bar"]],hostVars:1,hostBindings:function(t,n){t&2&&Q("data-size",n.size)},inputs:{value:"value",size:"size"},standalone:!0,features:[T],decls:1,vars:1,consts:[["automation-id","tui-bar__bar",3,"background","height",4,"ngFor","ngForOf"],["automation-id","tui-bar__bar"]],template:function(t,n){t&1&&C(0,Lo,1,4,"div",0),t&2&&u("ngForOf",n.value)},dependencies:[B],styles:["[_nghost-%COMP%]{display:flex;min-width:.125rem;flex-direction:column-reverse;border-top-left-radius:var(--tui-radius-l);border-top-right-radius:var(--tui-radius-l);overflow:hidden}[data-size=l][_nghost-%COMP%]{width:1rem;max-width:1rem;margin:0 .1875rem}[data-size=m][_nghost-%COMP%]{width:.5rem;max-width:.5rem;margin:0 .1875rem}[data-size=s][_nghost-%COMP%]{width:.25rem;max-width:.5rem;margin:0 .125rem}"],changeDetection:0});let r=i;return V([H],r.prototype,"getSum",null),r})();var Ho=["*"],Ro=(r,i)=>({$implicit:r,index:i,flexible:!1}),Bo=(r,i)=>({$implicit:r,index:i,flexible:!0});function zo(r,i){if(r&1&&at(0,5),r&2){let o=i.$implicit,e=i.index;p(2);let t=D(4);u("ngTemplateOutlet",t)("ngTemplateOutletContext",ri(2,Ro,o,e))}}function No(r,i){if(r&1&&(ve(0),C(1,zo,1,5,"ng-container",4),Ce()),r&2){let o=p();s(),u("ngForOf",o.computedValue)}}function jo(r,i){if(r&1&&(l(0,"div",7),at(1,5),c()),r&2){let o=i.$implicit,e=i.index;p(2);let t=D(4);s(),u("ngTemplateOutlet",t)("ngTemplateOutletContext",ri(2,Bo,o,e))}}function Wo(r,i){if(r&1&&C(0,jo,2,5,"div",6),r&2){let o=p();u("ngForOf",o.computedValue)}}function Uo(r,i){if(r&1&&y(0,"tui-bar",8),r&2){let o=i.flexible,e=i.index,t=i.$implicit,n=p();v("background","var(--tui-chart-categorical-0"+e+")")("height",n.getHeight(t),"%"),se("t-bar_flexible",o)("t-bar_negative",t<0),u("size",n.computedSize)("value",n.computedSegments)}}var $o=100,Yo=[],Qo=[1],dr=(()=>{let i=class i{constructor(){this.value=[],this.size="m",this.collapsed=!1}get computedValue(){return this.collapsed?Qo:this.value}get computedSegments(){return this.collapsed?this.value:Yo}get computedSize(){return this.size||"m"}getHeight(e){return Math.abs($o*e/this.getLargest(this.computedValue))}getLargest(e){return e.some(t=>t>0)?e.reduce((t,n)=>t>n?t:n,0):Math.abs(e.reduce((t,n)=>t({$implicit:r});function Zo(r,i){if(r&1){let o=I();l(0,"div",2),S(1,"async"),b("mouseenter.once",function(){return f(o),_(0)}),l(2,"div",3),S(3,"tuiMapper"),y(4,"div",4,0)(6,"tui-bar-set",5),c()()}if(r&2){let o=i.$implicit,e=i.index,t=D(5),n=p();se("t-wrapper_hoverable",!!n.hintContent)("t-wrapper_hovered",L(1,15,n.drivers.get(e))),u("tuiHint",n.hintContent)("tuiHintContext",X(22,Go,e))("tuiHintDescribe",n.getHintId(e))("tuiHintHost",t),s(2),v("height",ki(3,17,o,n.percentMapper,n.collapsed,n.computedMax),"%"),s(4),u("collapsed",n.collapsed)("id",n.getHintId(e))("size",n.size)("tabIndex",n.hintContent?0:-1)("value",o)}}var pr=(()=>{let i=class i{constructor(){this.hintOptions=h(Be,{optional:!0}),this.autoIdString=h(en).generate(),this.drivers=Ke,this.value=[],this.max=NaN,this.size="m",this.collapsed=!1,this.percentMapper=(e,t,n)=>100*(t?dt(...e):Math.max(...e))/n}get transposed(){return this.transpose(this.value)}get computedMax(){return this.max||this.getMax(this.value,this.collapsed)}get hintContent(){var e;return((e=this.hintOptions)==null?void 0:e.content)||""}getHintId(e){return`${this.autoIdString}_${e}`}transpose(e){return e.reduce((t,n)=>n.map((a,m)=>[...t[m]||[],n[m]||0]),[])}getMax(e,t){return t?Math.max(...e.reduce((n,a)=>n.map((m,d)=>m+(a[d]||0)))):e.reduce((n,a)=>Math.max(...a,n),0)}};i.\u0275fac=function(t){return new(t||i)},i.\u0275cmp=x({type:i,selectors:[["tui-bar-chart"]],viewQuery:function(t,n){if(t&1&&ce(cn,5),t&2){let a;K(a=G())&&(n.drivers=a)}},inputs:{value:"value",max:"max",size:"size",collapsed:"collapsed"},standalone:!0,features:[R([],[ln({direction:"top"})]),T],decls:1,vars:1,consts:[["hintHost",""],["class","t-wrapper",3,"t-wrapper_hoverable","t-wrapper_hovered","tuiHint","tuiHintContext","tuiHintDescribe","tuiHintHost","mouseenter.once",4,"ngFor","ngForOf"],[1,"t-wrapper",3,"mouseenter.once","tuiHint","tuiHintContext","tuiHintDescribe","tuiHintHost"],[1,"t-container"],[1,"t-host"],[1,"t-set",3,"collapsed","id","size","tabIndex","value"]],template:function(t,n){t&1&&C(0,Zo,7,24,"div",1),t&2&&u("ngForOf",n.transposed)},dependencies:[B,un,mn,dn,He,Y,dr],styles:["[_nghost-%COMP%]{display:flex;flex:1;height:100%}.t-wrapper[_ngcontent-%COMP%]{transition-property:background-color;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;position:relative;display:flex;flex:1;align-items:flex-end;justify-content:center;height:100%}.t-wrapper_hoverable[_ngcontent-%COMP%]{cursor:pointer}.t-wrapper_hoverable[_ngcontent-%COMP%]:hover, .t-wrapper_hoverable.t-wrapper_hovered[_ngcontent-%COMP%]{background-color:#0000000d}.t-container[_ngcontent-%COMP%]{flex:1}.t-host[_ngcontent-%COMP%]{position:absolute;left:50%;right:50%}.t-set[_ngcontent-%COMP%]{border-radius:var(--tui-radius-m);pointer-events:none;outline:none}.t-set[_ngcontent-%COMP%]:focus{box-shadow:0 0 0 2px var(--tui-border-focus)}"],changeDetection:0});let r=i;return V([H],r.prototype,"transpose",null),V([H],r.prototype,"getMax",null),r})();var Xo=r=>({$implicit:r});function qo(r,i){if(r&1&&y(0,"tui-line-chart",2),r&2){let o=i.$implicit,e=i.first,t=p(),n=D(2);v("z-index",t.zIndex),u("dots",t.dots)("height",t.height)("smoothingFactor",t.smoothingFactor)("tuiHintContent",t.hintContent?n:"")("value",o)("width",e?t.firstWidth:t.getWidth(o[0][0]))("x",e?0:t.getX(o[0][0]))("xStringify",t.xStringify?t.daysStringify:null)("y",t.y)("yStringify",t.yStringify)}}function Jo(r,i){if(r&1&&(ve(0),g(1),Ce()),r&2){let o=i.polymorpheusOutlet;s(),w(" ",o," ")}}function ea(r,i){if(r&1&&C(0,Jo,2,1,"ng-container",3),r&2){let o=i.$implicit,e=p();u("polymorpheusOutlet",e.hintContent)("polymorpheusOutletContext",X(2,Xo,e.getHintContext(o[0],e.value)))}}function hr(r,i){return r.find(([o])=>o.daySame(i))||[i,NaN]}var pi=(()=>{let i=class i{constructor(){this.charts=Ke,this.destroyRef=h(qt),this.zone=h(Jt),this.hovered$=h(Ze)}ngAfterContentInit(){tt([...this.charts.map(({charts:e})=>ui(e)),this.hovered$]).pipe(it(e=>!e.some(Boolean)),si(this.zone),de(this.destroyRef)).subscribe(()=>{this.charts.forEach(e=>e.onHovered(NaN))})}getContext(e){return this.getMap(...this.charts.map(({value:t})=>t)).get(String(e))||[]}raise(e){let t=this.charts.map(({value:a})=>e?hr(a,e):[]).filter(([a,m])=>!Number.isNaN(m)),n=[...t].sort((a,m)=>a[1]-m[1]);this.charts.forEach((a,m)=>{let d=t[m];a.onHovered(e),a.zIndex=Math.max(d?n.indexOf(d):0,0)})}getMap(...e){return(e[0]||[]).reduce((t,[n])=>t.set(String(n),e.map(a=>hr(a,n))),new Map)}};i.\u0275fac=function(t){return new(t||i)},i.\u0275dir=U({type:i,selectors:[["","tuiLineChartHint",""]],contentQueries:function(t,n,a){if(t&1&&$e(a,hi,4),t&2){let m;K(m=G())&&(n.charts=m)}},inputs:{hint:[0,"tuiLineChartHint","hint"]},standalone:!0,features:[R([Ze])]});let r=i;return V([H],r.prototype,"getMap",null),r})(),ta=[NaN,NaN],hi=(()=>{let i=class i{constructor(){this.destroyRef=h(qt),this.zone=h(Jt),this.hovered$=h(Ze),this.options=h(Rn),this.hintDirective=h(pi,{optional:!0}),this.charts=Ke,this.y=0,this.height=0,this.smoothingFactor=this.options.smoothingFactor,this.xStringify=null,this.yStringify=null,this.dots=this.options.dots,this.zIndex=0,this.value=[],this.daysStringify=e=>{let t=this.getDay(e);return this.xStringify&&t?this.xStringify(t):""}}set valueSetter(e){var d;if(!e.length){this.value=[];return}let t=(d=e[0])==null?void 0:d[0],n=e[e.length-1],a=[...e],m=t&&n?O.lengthBetween(t,n[0])+1:0;this.value=Array.from({length:m},(P,N)=>{var fi;let W=(fi=a[0])==null?void 0:fi[0],ne=t==null?void 0:t.append({day:N}),we=W&&(ne!=null&&ne.daySame(W))?a.shift():null,We=we?we[1]:NaN;return[ne,We]})}ngAfterViewInit(){tt([ui(this.charts),this.hovered$]).pipe(it(e=>!e.some(Boolean)),si(this.zone),de(this.destroyRef)).subscribe(()=>{this.onHovered(NaN)})}onHovered(e){var d;if(Ri(e)){this.charts.forEach(P=>P.onHovered(NaN));return}let t=(d=this.value[0])==null?void 0:d[0],n=t&&e?te.lengthBetween(t,e):0,a=t&&e?O.lengthBetween(t,e)+t.day-1:0,m=this.charts.get(n);this.charts.forEach(P=>{P===m?m.onHovered(m.value.findIndex(N=>N[0]===a)):P.onHovered(NaN)})}get months(){return this.value.length?this.breakMonths(this.value):ji}get firstWidth(){var e;return this.months.length*(((e=this.value[0])==null?void 0:e[0].daysCount)||0)}get hint(){var e;return((e=this.hintDirective)==null?void 0:e.hint)??this.hintContent}getHintContext(e,t){var n,a;return t[e-(((a=(n=t[0])==null?void 0:n[0])==null?void 0:a.day)||0)+1]}getX(e){var d;let t=(d=this.value[0])==null?void 0:d[0],n=this.getDay(e),m=(t&&n?te.lengthBetween(t,n):0)*((n==null?void 0:n.daysCount)||0);return e-m}raise(e,{value:t}){var m;let n=((m=t[e])==null?void 0:m[0])||0,a=this.getDay(n);a&&(this.hintDirective?this.hintDirective.raise(a):this.onHovered(a))}getWidth(e){var t;return(((t=this.getDay(e))==null?void 0:t.daysCount)||0)*this.months.length}getContext(e,{value:t}){var m;let n=((m=t[e])==null?void 0:m[0])||0,a=this.getDay(n);return this.hintDirective&&a?this.hintDirective.getContext(a):this.getHintContext(n,this.value)}breakMonths(e){var m,d,P;let t=(((m=e[0])==null?void 0:m[0].day)||1)-1,n=(d=e[0])==null?void 0:d[0],a=(P=e[e.length-1])==null?void 0:P[0];return Array.from({length:n&&a?te.lengthBetween(n,a)+1:0},(N,W)=>W+((n==null?void 0:n.month)||0)+((n==null?void 0:n.year)||0)*12).map(N=>e.map(([{month:W,year:ne},we],We)=>W+ne*12===N?[We+t,we]:null).filter(gt)).map((N,W,ne)=>{var we;return W===ne.length-1?N:[...N,((we=ne[W+1])==null?void 0:we.find(We=>!Number.isNaN(We[1])))||ta]})}getDay(e){var n,a;let t=(n=this.value[0])==null?void 0:n[0];return(a=this.value[e-((t==null?void 0:t.day)||0)+1])==null?void 0:a[0]}};i.\u0275fac=function(t){return new(t||i)},i.\u0275cmp=x({type:i,selectors:[["tui-line-days-chart"]],viewQuery:function(t,n){if(t&1&&ce(qe,5),t&2){let a;K(a=G())&&(n.charts=a)}},hostVars:2,hostBindings:function(t,n){t&2&&v("z-index",n.zIndex)},inputs:{y:"y",height:"height",smoothingFactor:"smoothingFactor",hintContent:"hintContent",xStringify:"xStringify",yStringify:"yStringify",dots:"dots",valueSetter:[0,"value","valueSetter"]},standalone:!0,features:[R([Ze,{provide:Bn,useExisting:i}]),T],decls:3,vars:1,consts:[["hint",""],["class","t-chart",3,"dots","height","smoothingFactor","zIndex","tuiHintContent","value","width","x","xStringify","y","yStringify",4,"ngFor","ngForOf"],[1,"t-chart",3,"dots","height","smoothingFactor","tuiHintContent","value","width","x","xStringify","y","yStringify"],[4,"polymorpheusOutlet","polymorpheusOutletContext"]],template:function(t,n){t&1&&C(0,qo,1,12,"tui-line-chart",1)(1,ea,1,4,"ng-template",null,0,j),t&2&&u("ngForOf",n.months)},dependencies:[qe,B,Be,Le],styles:["[_nghost-%COMP%]{display:block}.t-chart[_ngcontent-%COMP%]{position:absolute;top:0;left:0;width:100%;height:100%}"],changeDetection:0});let r=i;return V([H],r.prototype,"getHintContext",null),V([H],r.prototype,"breakMonths",null),r})();var ia={value:[[1e3,8e3,4e3,3e3,4e3],[6e3,2e3,4500,7e3,5e3]],labelsX:["Jan 2021","Feb","Mar"],labelsY:["0","10 000"]},gr=(()=>{let i=class i{constructor(){this.costData=ia}};i.\u0275fac=function(t){return new(t||i)},i.\u0275prov=A({token:i,factory:i.\u0275fac,providedIn:"root"});let r=i;return r})();var fr=(()=>{let i=class i{constructor(){this.costService=h(gr).costData,this.hint=({$implicit:e})=>this.costService.value.reduce((t,n)=>`${t}$${Xi(n[e])} `,"").trim()}};i.\u0275fac=function(t){return new(t||i)},i.\u0275cmp=x({type:i,selectors:[["lmb-cost"]],standalone:!0,features:[T],decls:15,vars:7,consts:[["tuiAppearance","whiteblock","tuiCardLarge","normal",1,"card"],["tuiHeader","s"],["tuiTitle","s"],[1,"legend"],[1,"item"],[1,"name"],[1,"flex"],[1,"axes",3,"axisXLabels","axisYLabels"],[3,"max","tuiHintContent","value"]],template:function(t,n){t&1&&(l(0,"div",0)(1,"div")(2,"header",1)(3,"h2",2),g(4," Utility costs "),c()(),l(5,"p",3)(6,"span",4)(7,"small",5),g(8,"Electricity bills"),c()(),l(9,"span",4)(10,"small",5),g(11,"Light bills"),c()()(),l(12,"div",6)(13,"tui-axes",7),y(14,"tui-bar-chart",8),c()()()()),t&2&&(s(3),v("text-align","center"),s(10),u("axisXLabels",n.costService.labelsX)("axisYLabels",n.costService.labelsY),s(),u("max",1e4)("tuiHintContent",n.hint)("value",n.costService.value))},dependencies:[k,ee,F,Gt,pr,E,Be,En],styles:['.axes[_ngcontent-%COMP%]{min-height:18.75rem;width:100%;--tui-chart-categorical-00: var(--tui-background-accent-1);--tui-chart-categorical-01: var(--tui-chart-categorical-12)}.flex[_ngcontent-%COMP%]{display:flex;width:100%}.select[_ngcontent-%COMP%]{max-width:20rem}.card[_ngcontent-%COMP%]{width:100%;height:100%;background-color:var(--tui-background-base)}.legend[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center}.item[_ngcontent-%COMP%]{color:var(--tui-background-accent-1);display:flex;align-items:center;margin:0 .75rem}.item[_ngcontent-%COMP%]:last-child{color:var(--tui-chart-categorical-12)}.item[_ngcontent-%COMP%]:before{content:"";border-bottom:.125rem solid;width:1rem;margin-right:.5rem}.name[_ngcontent-%COMP%]{color:var(--tui-text-primary)}'],changeDetection:0});let r=i;return r})();var _r=(()=>{let i=class i{generateRandomData({from:e,to:t},n){return new Array(O.lengthBetween(e,t)+1).fill(0).reduce((a,m,d)=>[...a,[e.append({day:d}),Math.max((d?a[d-1][1]:n)+Math.random()*10-5,0)]],[]).filter(([a])=>a.dayOfWeek()<5)}random(e){return[this.generateRandomData(e,100)]}onlyMondays(e){return e.filter(t=>!t.dayOfWeek()).map(String)}even(e){return e.filter((t,n)=>!(n%2))}};i.\u0275fac=function(t){return new(t||i)},i.\u0275prov=A({token:i,factory:i.\u0275fac,providedIn:"root"});let r=i;return r})();function na(r,i){r&1&&(l(0,"span",8)(1,"small",9),g(2,"Electricity bills"),c()())}function ra(r,i){if(r&1&&(y(0,"tui-line-days-chart",13),S(1,"tuiFilter")),r&2){let o=i.$implicit,e=p(3);u("height",200)("value",ye(1,2,o,e.filter,e.range))}}function oa(r,i){if(r&1&&(ve(0),C(1,ra,2,6,"tui-line-days-chart",12),Ce()),r&2){let o=p(2);s(),u("ngForOf",o.days)}}function aa(r,i){if(r&1&&(y(0,"tui-line-chart",15),S(1,"tuiFilter"),S(2,"tuiMapper")),r&2){let o=i.$implicit,e=p(3);u("height",200)("value",ye(2,7,ye(1,3,o,e.filter,e.range),e.toNumbers,e.range))("width",e.getWidth(e.range))}}function sa(r,i){if(r&1&&C(0,aa,3,11,"tui-line-chart",14),r&2){let o=p(2);u("ngForOf",o.days)}}function la(r,i){if(r&1&&(l(0,"tui-axes",10),C(1,oa,2,1,"ng-container",11)(2,sa,1,1,"ng-template",null,1,j),c()),r&2){let o=i.ngIf,e=D(3),t=p(),n=D(10);u("axisXLabels",o)("horizontalLines",4)("tuiLineChartHint",n)("verticalLines",o.length),s(),u("ngIf",t.getWidth(t.show)>90)("ngIfElse",e)}}function ca(r,i){if(r&1&&(l(0,"div",8)(1,"span",17),g(2),c()()),r&2){let o=i.$implicit;s(2),w("$",o[1].toFixed(0),"")}}function ua(r,i){if(r&1&&(l(0,"div",16)(1,"strong"),g(2),c()(),l(3,"div"),C(4,ca,3,1,"div",6),c()),r&2){let o=i.$implicit,e=p();s(2),ue(e.getDate(o[0][0],e.range.from)),s(2),u("ngForOf",o)}}var vr=(()=>{let i=class i{constructor(){this.electricityService=h(_r),this.months$=h(Yi),this.show=new ie(O.currentLocal(),O.currentLocal().append({month:3})),this.days=this.electricityService.random(this.show),this.maxLength={month:4},this.filter=([e],{from:t,to:n})=>e.daySameOrAfter(t)&&e.daySameOrBefore(n),this.toNumbers=(e,{from:t})=>e.map(([n,a])=>[O.lengthBetween(t,n),a])}get range(){return this.computeRange(this.show)}getWidth({from:e,to:t}){return O.lengthBetween(e,t)}getDate(e,t){return e instanceof O?e:t.append({day:e})}labels({from:e,to:t}){let n=O.lengthBetween(e,t);if(n>90)return this.months$.pipe(re(P=>Array.from({length:te.lengthBetween(e,t)+1},(N,W)=>P[e.append({month:W}).month])));let a=Array.from({length:n},(P,N)=>e.append({day:N})),m=this.electricityService.onlyMondays(a),d=a.map(String);return n>60?Ue(this.electricityService.even(m)):n>14?Ue(m):n>7?Ue(this.electricityService.even(d)):Ue(d)}onDataChange(e){this.days=this.electricityService.random(e)}computeRange(e){let{from:t,to:n}=e,a=O.lengthBetween(t,n),m=t.dayOfWeek(),d=n.dayOfWeek(),P=m?t.append({day:7-m}):t,N=d?n.append({day:7-d}):n,W=O.lengthBetween(P,N);return a>90?e:a>60?new ie(P,N.append({day:W%14})):a>14?new ie(P,N):new ie(t,n.append({day:a%2}))}};i.\u0275fac=function(t){return new(t||i)},i.\u0275cmp=x({type:i,selectors:[["lmb-electricity"]],standalone:!0,features:[T],decls:11,vars:6,consts:[["hint",""],["line",""],["tuiAppearance","whiteblock","tuiCardLarge","normal",1,"card"],[1,"controls"],[3,"ngModelChange","maxLength","ngModel"],[1,"legend","tui-space_top-0"],["class","item",4,"ngFor","ngForOf"],["class","axes",3,"axisXLabels","horizontalLines","tuiLineChartHint","verticalLines",4,"ngIf"],[1,"item"],[1,"name"],[1,"axes",3,"axisXLabels","horizontalLines","tuiLineChartHint","verticalLines"],[4,"ngIf","ngIfElse"],["class","chart",3,"height","value",4,"ngFor","ngForOf"],[1,"chart",3,"height","value"],["class","chart",3,"height","value","width",4,"ngFor","ngForOf"],[1,"chart",3,"height","value","width"],[1,"tui-space_bottom-2"],[1,"value"]],template:function(t,n){if(t&1){let a=I();l(0,"div",2)(1,"p",3)(2,"tui-input-date-range",4),ae("ngModelChange",function(d){return f(a),Z(n.show,d)||(n.show=d),_(d)}),b("ngModelChange",function(d){return f(a),_(n.onDataChange(d))}),g(3," Data "),c()(),l(4,"div")(5,"p",5),C(6,na,3,0,"span",6),c(),C(7,la,4,6,"tui-axes",7),S(8,"async"),c(),C(9,ua,5,2,"ng-template",null,0,j),c()}t&2&&(s(2),u("maxLength",n.maxLength),oe("ngModel",n.show),s(4),u("ngForOf",n.days),s(),u("ngIf",L(8,4,n.labels(n.show))))},dependencies:[Y,k,B,q,ee,J,me,F,Gt,E,Nn,tr,Jn,er,qe,hi,pi,He],styles:['.card[_ngcontent-%COMP%]{background-color:var(--tui-background-base);height:100%}.axes[_ngcontent-%COMP%]{height:12.5rem}.controls[_ngcontent-%COMP%]{display:flex}.controls[_ngcontent-%COMP%] tui-input-date-range[_ngcontent-%COMP%]{flex:1}.legend[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center}.item[_ngcontent-%COMP%]{color:var(--tui-background-accent-1);display:flex;align-items:center;margin:0 .75rem}.item[_ngcontent-%COMP%]:before{content:"";border-bottom:.125rem solid;width:1rem;margin-right:.5rem}.name[_ngcontent-%COMP%]{color:var(--tui-text-primary)}.value[_ngcontent-%COMP%]{color:var(--tui-background-base)}.chart[_ngcontent-%COMP%]{color:var(--tui-background-accent-1);position:absolute;top:0;left:0;width:100%;height:100%}'],changeDetection:0});let r=i;return r})();var ma=[{room:"Kitchen",state:!0},{room:"Bedroom",state:!1},{room:"Bathroom",state:!0}],Cr=(()=>{let i=class i{constructor(){this.lightingData=ma}};i.\u0275fac=function(t){return new(t||i)},i.\u0275prov=A({token:i,factory:i.\u0275fac,providedIn:"root"});let r=i;return r})();var da=r=>({checked:r}),pa=r=>({hidden:r});function ha(r,i){if(r&1&&(l(0,"label",5)(1,"div",6),y(2,"input",7),g(3),c(),y(4,"tui-icon",8),c()),r&2){let o=i.$implicit,e=i.index,t=p();u("ngClass",X(8,da,o.value)),s(2),v("display","none"),u("formControl",o),s(),w(" ",t.lightingService[e].room," "),s(),v("color","var(--tui-chart-categorical-12)"),u("ngClass",X(10,pa,!o.value))}}var yr=(()=>{let i=class i{constructor(){this.lightingService=h(Cr).lightingData,this.lightingForm=new Ae(this.lightingService.map(e=>new Me(e.state)))}};i.\u0275fac=function(t){return new(t||i)},i.\u0275cmp=x({type:i,selectors:[["lmb-lighting"]],standalone:!0,features:[T],decls:6,vars:4,consts:[["tuiAppearance","whiteblock","tuiCardLarge","normal",1,"card"],["tuiHeader",""],["tuiTitle",""],["orientation","vertical","tuiGroup","",3,"collapsed"],["tuiBlock","",3,"ngClass",4,"ngFor","ngForOf"],["tuiBlock","",3,"ngClass"],[1,"title-room"],["tuiCheckbox","","type","checkbox",3,"formControl"],["alt","","icon","@tui.lightbulb",1,"light-svg",3,"ngClass"]],template:function(t,n){t&1&&(l(0,"div",0)(1,"header",1)(2,"h2",2),g(3," Lighting "),c()(),l(4,"form",3),C(5,ha,5,12,"label",4),c()()),t&2&&(s(2),v("text-align","center"),s(2),u("collapsed",!0),s(),u("ngForOf",n.lightingForm.controls))},dependencies:[k,Oi,B,ee,mt,lt,J,ut,Ei,be,Fe,F,Zt,E,At,Mt,z,Zi],styles:[".card[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.625rem;flex-shrink:0;text-align:center;height:100%;background-color:var(--tui-background-base)}.light-svg[_ngcontent-%COMP%]{width:1.875rem;height:1.875rem;margin-left:auto}.title-room[_ngcontent-%COMP%]{display:flex;height:1.875rem;align-items:center}.checked[_ngcontent-%COMP%]{background-color:var(--tui-status-warning-pale)}.hidden[_ngcontent-%COMP%]{display:none}.card[tuiCardLarge][_ngcontent-%COMP%] form[_ngcontent-%COMP%]:last-child{margin-top:0}"],changeDetection:0});let r=i;return r})();var ga=[{name:"Against All Odds",logo:"./music/against.jpg",performer:"Tiko Tiko",src:"./music/AgainstAllOdds.mp3",length:208},{name:"Howling at the Moon",logo:"./music/howling.avif",performer:"D Fine Us",src:"./music/HowlingAtTheMoon.mp3",length:195}],br=(()=>{let i=class i{constructor(){this.tracks=ga}};i.\u0275fac=function(t){return new(t||i)},i.\u0275prov=A({token:i,factory:i.\u0275fac,providedIn:"root"});let r=i;return r})();function gi(r){return Math.floor(Math.random()*r)}var xr=(()=>{let i=class i{constructor(){this.tracks=h(br).tracks,this.activeIndex=0,this.time=0,this.volume=1,this.repeat=!1,this.shuffle=!1,this.paused=!0}nextTrack(e){this.time=0,!this.repeat&&(this.activeIndex=this.shuffle?gi(this.tracks.length):(this.activeIndex+1)%this.tracks.length,setTimeout(()=>Xt(this,null,function*(){return e.play()}),1))}previousTrack(e){if(this.time=0,this.repeat)return;let t=this.activeIndex-1<0?this.tracks.length-1:this.activeIndex-1;this.activeIndex=this.shuffle?gi(this.tracks.length):t,setTimeout(()=>Xt(this,null,function*(){return e.play()}),1)}getMinutes(e){return(e/60<=9?"0":"")+Math.trunc(e/60).toString()}getSeconds(e){return e=Math.trunc(e),(e%60<=9?"0":"")+(e%60).toString()}};i.\u0275fac=function(t){return new(t||i)},i.\u0275cmp=x({type:i,selectors:[["lmb-music"]],standalone:!0,features:[T],decls:30,vars:23,consts:[["audio",""],["tuiAppearance","whiteblock","tuiCardLarge","normal",1,"card"],["tuiHeader",""],["tuiTitle",""],[1,"info"],[1,"logo",3,"src"],[1,"tui-space_top-4","tui-space_bottom-2"],[1,"tui-space_top-0","tui-space_bottom-0"],["tuiMedia","",3,"currentTimeChange","pausedChange","volumeChange","ended","src","currentTime","paused","volume"],["size","m","tuiSlider","","type","range",3,"ngModelChange","max","ngModel"],[1,"duration"],[1,"buttons"],["appearance","icon","iconStart","@tui.shuffle","tuiIconButton","",3,"click","tuiAppearanceState"],["appearance","icon","iconStart","@tui.skip-back","tuiIconButton","",3,"click"],["appearance","icon","tuiIconButton","",3,"click","iconStart"],["appearance","icon","iconStart","@tui.skip-forward","tuiIconButton","",3,"click"],["appearance","icon","iconStart","@tui.repeat","tuiIconButton","",3,"click","tuiAppearanceState"],[1,"volume"],["icon","@tui.volume-1"],["max","1","size","m","step","0.01","tuiSlider","","type","range",3,"ngModelChange","ngModel"],["icon","@tui.volume-2"]],template:function(t,n){if(t&1){let a=I();l(0,"div",1)(1,"header",2)(2,"h2",3),g(3," Music "),c()(),l(4,"div",4),y(5,"img",5),l(6,"h2",6),g(7),c(),l(8,"p",7),g(9),c()(),l(10,"audio",8,0),ae("currentTimeChange",function(d){return f(a),Z(n.time,d)||(n.time=d),_(d)})("pausedChange",function(d){return f(a),Z(n.paused,d)||(n.paused=d),_(d)})("volumeChange",function(d){return f(a),Z(n.volume,d)||(n.volume=d),_(d)}),b("ended",function(){f(a);let d=D(11);return _(n.nextTrack(d))}),c(),l(12,"div")(13,"input",9),ae("ngModelChange",function(d){return f(a),Z(n.time,d)||(n.time=d),_(d)}),c(),l(14,"div",10)(15,"p",7),g(16),c(),l(17,"p",7),g(18),c()()(),l(19,"div",11)(20,"button",12),b("click",function(){return f(a),_(n.shuffle=!n.shuffle)}),c(),l(21,"button",13),b("click",function(){f(a);let d=D(11);return _(n.previousTrack(d))}),c(),l(22,"button",14),b("click",function(){return f(a),_(n.paused=!n.paused)}),c(),l(23,"button",15),b("click",function(){f(a);let d=D(11);return _(n.nextTrack(d))}),c(),l(24,"button",16),b("click",function(){return f(a),_(n.repeat=!n.repeat)}),c()(),y(25,"hr"),l(26,"div",17),y(27,"tui-icon",18),l(28,"input",19),ae("ngModelChange",function(d){return f(a),Z(n.volume,d)||(n.volume=d),_(d)}),c(),y(29,"tui-icon",20),c()()}if(t&2){let a=D(11);s(2),v("text-align","center"),s(3),u("src",n.tracks[n.activeIndex].logo,ei),s(2),w(" ",n.tracks[n.activeIndex].name," "),s(),v("color","var(--tui-text-primary)"),s(),w(" ",n.tracks[n.activeIndex].performer," "),s(),u("src",n.tracks[n.activeIndex].src,ei),oe("currentTime",n.time)("paused",n.paused)("volume",n.volume),s(3),u("max",a.duration),oe("ngModel",n.time),s(3),Ye("",n.getMinutes(n.time),":",n.getSeconds(n.time),""),s(2),Ye(" ",n.getMinutes(n.tracks[n.activeIndex].length),":",n.getSeconds(n.tracks[n.activeIndex].length)," "),s(2),u("tuiAppearanceState",n.shuffle?"active":null),s(2),u("iconStart",n.paused?"@tui.circle-play":"@tui.circle-stop"),s(2),u("tuiAppearanceState",n.repeat?"active":null),s(4),v("color","var(--tui-status-info)"),oe("ngModel",n.volume)}},dependencies:[k,ee,Ai,Vi,J,me,be,F,Ve,E,z,zn,mi],styles:[".card[_ngcontent-%COMP%]{height:100%}.duration[_ngcontent-%COMP%]{display:flex;justify-content:space-between;color:var(--tui-text-primary)}.buttons[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-around}.volume[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.5rem}.info[_ngcontent-%COMP%]{display:flex;margin-top:1rem;flex-direction:column;align-items:center}.logo[_ngcontent-%COMP%]{border-radius:.5rem;width:9rem;height:9rem}"],changeDetection:0});let r=i;return r})();var fa=[{name:"Alarm system",state:!0},{name:"Close the curtains",state:!1},{name:"Video monitoring",state:!0},{name:"Enable gas sensor notification",state:!1}],Tr=(()=>{let i=class i{constructor(){this.safetyData=fa}};i.\u0275fac=function(t){return new(t||i)},i.\u0275prov=A({token:i,factory:i.\u0275fac,providedIn:"root"});let r=i;return r})();function _a(r,i){if(r&1&&(l(0,"label",5),g(1),y(2,"input",6),c()),r&2){let o=i.$implicit,e=i.index,t=p();s(),w(" ",t.safetyService[e].name," "),s(),v("margin-left","auto"),u("formControl",o)}}var wr=(()=>{let i=class i{constructor(){this.safetyService=h(Tr).safetyData,this.safetyForm=new Ae(this.safetyService.map(e=>new Me(e.state)))}};i.\u0275fac=function(t){return new(t||i)},i.\u0275cmp=x({type:i,selectors:[["lmb-safety"]],standalone:!0,features:[T],decls:6,vars:4,consts:[["tuiAppearance","whiteblock","tuiCardLarge","normal",1,"card"],["tuiHeader",""],["tuiTitle",""],["orientation","vertical","tuiGroup","",3,"collapsed"],["tuiBlock","",4,"ngFor","ngForOf"],["tuiBlock",""],["tuiCheckbox","","type","checkbox",3,"formControl"]],template:function(t,n){t&1&&(l(0,"div",0)(1,"header",1)(2,"h2",2),g(3," Safety "),c()(),l(4,"form",3),C(5,_a,3,4,"label",4),c()()),t&2&&(s(2),v("text-align","center"),s(2),u("collapsed",!0),s(),u("ngForOf",n.safetyForm.controls))},dependencies:[k,B,be,mt,lt,J,ut,Fe,F,Zt,E,At,Mt],styles:[".card[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.625rem;height:100%;background-color:var(--tui-background-base)}.card[tuiCardLarge][_ngcontent-%COMP%] form[_ngcontent-%COMP%]:last-child{margin-top:0}"],changeDetection:0});let r=i;return r})();var Mr=[1003,1006,1030,1087,1135],Sr=[1009,1063,1180,1183,1186,1189,1192,1195,1198,1201,1204,1240,1243,1246,1249,1252,1276],Ir=[1066,1069,1072,1114,1117,1147,1168,1171,1204,1210,1213,1216,1219,1222,1225,1237,1255,1258,1261,1264,1273,1279,1282],Dr=["Sun","Mon","Tues","Wed","Thurs","Fri","Sat"],kr=new xi("",{factory:()=>"1df6860ee44f43d693d113704242207"});var Or=(()=>{let i=class i{constructor(){this.http=h(Fi),this.KEY=h(kr)}getWeather(){return this.http.get("https://api.weatherapi.com/v1/forecast.json",{params:{key:this.KEY,q:"London",api:"yes",days:"3"}})}};i.\u0275fac=function(t){return new(t||i)},i.\u0275prov=A({token:i,factory:i.\u0275fac,providedIn:"root"});let r=i;return r})();function va(r,i){if(r&1&&(l(0,"div",15),y(1,"tui-icon",16),l(2,"div",5)(3,"p",9),g(4),c(),l(5,"p",9),g(6),c()()()),r&2){let o=i.$index;p();let e=ni(1),t=p();s(),u("icon",t.getSmallImage(e[o].day.condition.code)),s(),v("align-items","center"),s(),v("font-weight","600"),s(),w(" ",t.getWeekDay(e[o].date)," "),s(2),Ye(" ",e[o].day.mintemp_c,"\xB0/",e[o].day.maxtemp_c,"\xB0 ")}}function Ca(r,i){if(r&1&&(ti(0)(1),l(2,"div",1)(3,"header",2)(4,"h2",3),g(5," Weather "),c()(),l(6,"div",4)(7,"div",5)(8,"h2",6),g(9),c(),l(10,"h1",7),g(11),c(),l(12,"div",8)(13,"p",9)(14,"span"),g(15),c(),g(16," \xB0/ "),l(17,"span"),g(18),c(),g(19," \xB0 "),c(),l(20,"div",10),y(21,"tui-icon",11),g(22),c(),l(23,"div",10),y(24,"tui-icon",12),g(25),c()(),l(26,"p",13),g(27),c()()(),l(28,"div",14),fe(29,va,7,8,"div",15,ge),c()()),r&2){let o=p(),e=ni(0),t=e.current;s();let n=ii(e.forecast.forecastday);s(),v("background-image",o.getImage(t.condition.code)),s(2),v("color","var(--tui-text-primary-on-accent-1)")("text-align","center"),s(5),w(" ",e.location.name," "),s(2),w("",t.temp_c,"\xB0"),s(2),v("display","flex"),s(),v("font-weight","600"),s(),ue(t.dewpoint_c),s(2),v("font-weight","600"),s(),ue(t.heatindex_c),s(4),w(" ",t.wind_kph,"km/h "),s(3),w(" ",t.humidity,"% "),s(2),w(" ",t.condition.text," "),s(2),_e(n)}}var Pr=(()=>{let i=class i{constructor(){this.weatherService=h(Or),this.info$=this.weatherService.getWeather()}getWeekDay(e){let t=e.split("-"),n=new Date(parseInt(t[0],10),parseInt(t[1],10)-1,parseInt(t[2],10));return Dr[n.getDay()]}getTypeOfWeather(e){return Mr.includes(e)?"clouds":Sr.includes(e)?"rain":Ir.includes(e)?"snow":"sun"}getSmallImage(e){let t=this.getTypeOfWeather(e);return t==="snow"?"@tui.snowflake":t==="rain"?"@tui.droplet":t==="clouds"?"@tui.cloud":"@tui.sun"}getImage(e){return`url(./weather/${this.getTypeOfWeather(e)}.jpg)`}};i.\u0275fac=function(t){return new(t||i)},i.\u0275cmp=x({type:i,selectors:[["lmb-weather"]],standalone:!0,features:[T],decls:3,vars:4,consts:[["tuiAppearance","whiteblock","tuiCardLarge","normal",1,"card",3,"background-image"],["tuiAppearance","whiteblock","tuiCardLarge","normal",1,"card"],["tuiHeader",""],["tuiTitle",""],[1,"info"],[1,"left-side"],["tuiTitle","",1,"tui-text_body-m"],[1,"tui-space_top-3","tui-space_bottom-3"],[1,"description"],[1,"tui-space_top-0","tui-space_bottom-0"],[1,"indicator"],["icon","@tui.wind"],["icon","@tui.droplets"],[1,"tui-space_top-0","tui-space_bottom-0","tui-text_body-s"],[1,"list-days"],[1,"card-small"],[1,"card-icon",3,"icon"]],template:function(t,n){if(t&1&&(ti(0),S(1,"async"),C(2,Ca,31,20,"div",0)),t&2){let a=ii(L(1,1,n.info$));s(2),ot(a?2:-1)}},dependencies:[Y,k,F,E,z],styles:[".indicator[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.1rem}.card[_ngcontent-%COMP%]{background-position:center;overflow:hidden;box-shadow:inset 0 10rem 10rem 10rem #00000086;color:var(--tui-text-primary-on-accent-1)}.info[_ngcontent-%COMP%]{display:flex;justify-content:space-between}.left-side[_ngcontent-%COMP%]{display:flex;flex-direction:column}.description[_ngcontent-%COMP%]{display:flex;gap:.625rem}.list-days[_ngcontent-%COMP%]{display:flex;justify-content:space-around;flex-wrap:wrap}.card-small[_ngcontent-%COMP%]{display:flex;align-items:center}.card-icon[_ngcontent-%COMP%]{width:2rem;height:2rem}"],changeDetection:0});let r=i;return r})();var xd=(()=>{let i=class i{};i.\u0275fac=function(t){return new(t||i)},i.\u0275cmp=x({type:i,selectors:[["app-iot"]],standalone:!0,features:[T],decls:16,vars:0,consts:[[1,"tiles"],[1,"top"],[1,"under-top"],[1,"bottom"],[1,"control"],[1,"middle"],[1,"column"],[1,"grow"]],template:function(t,n){t&1&&(l(0,"div",0),y(1,"lmb-small-card"),l(2,"div",1),y(3,"lmb-electricity"),l(4,"div",2),y(5,"lmb-contacts")(6,"lmb-cleaning"),c()(),l(7,"div",3),y(8,"lmb-safety")(9,"lmb-cost")(10,"lmb-climate-control",4),c(),l(11,"div",5)(12,"div",6),y(13,"lmb-lighting",7)(14,"lmb-weather",7),c(),y(15,"lmb-music"),c()())},dependencies:[rr,ar,k,lr,ur,fr,vr,yr,xr,wr,Pr],styles:[".tiles[_ngcontent-%COMP%]{gap:1rem;padding-top:1.25rem}.top[_ngcontent-%COMP%]{display:grid;padding-top:1.25rem;grid-template-columns:19fr 20fr;gap:1rem}@media (max-width: 1100px){.top[_ngcontent-%COMP%]{grid-template-columns:20fr}}.under-top[_ngcontent-%COMP%]{display:grid;grid-template-columns:11fr 9fr;gap:1rem;min-height:25rem}@media (max-width: 580px){.under-top[_ngcontent-%COMP%]{display:flex;flex-direction:column}}.middle[_ngcontent-%COMP%]{display:grid;padding-top:1.25rem;grid-template-columns:9fr 15fr;gap:1rem}@media (max-width: 920px){.middle[_ngcontent-%COMP%]{grid-template-columns:1fr}}.bottom[_ngcontent-%COMP%]{display:grid;padding-top:1.25rem;grid-template-columns:8fr 15fr 8fr;gap:1rem}@media (max-width: 950px){.bottom[_ngcontent-%COMP%]{grid-template-columns:8fr 15fr}}@media (max-width: 750px){.bottom[_ngcontent-%COMP%]{display:flex;flex-direction:column}}.grow[_ngcontent-%COMP%]{width:100%}.column[_ngcontent-%COMP%]{display:flex;gap:1rem;justify-content:space-between;flex-direction:column}@media (max-width: 920px){.column[_ngcontent-%COMP%]{flex-direction:row}}@media (max-width: 750px){.column[_ngcontent-%COMP%]{flex-direction:column}}"],changeDetection:0});let r=i;return r})();export{xd as a}; diff --git a/chunk-OKL4RZMA.js b/chunk-DXP4LH76.js similarity index 99% rename from chunk-OKL4RZMA.js rename to chunk-DXP4LH76.js index a82ee10d9..609201cb5 100644 --- a/chunk-OKL4RZMA.js +++ b/chunk-DXP4LH76.js @@ -1,2 +1,2 @@ import{$d as Se,$e as On,A as I,Aa as Le,Ad as Ve,Af as ir,Ba as ne,Bb as Mt,Bc as ue,Ca as mt,Cb as Pt,Db as He,Ea as C,Eb as ri,Ec as Ee,Fb as oi,Fd as st,G as _e,Gb as ai,H as we,Hb as En,Hd as Pi,I as Y,Id as js,Ja as se,Jb as li,K as ut,Ka as wn,Kb as ht,Kd as dt,La as Tn,Lb as ce,Ld as S,Le as Qs,Mb as Qt,Mc as Us,Me as Gs,Na as $,Nb as Gt,Nc as hi,Ne as Wt,Ob as Mi,P as Es,Pa as Os,Pb as Rs,Pc as Bs,Pe as De,Qa as re,Qb as xe,Qd as Fi,Rb as Ue,Re as Xs,S as Ss,Sa as Ms,Sb as Ns,Se as An,Ta as nt,Tb as ci,Td as J,Te as x,Uc as zs,Ue as Ys,V as ke,Va as ni,Vb as ui,Vd as zt,Ve as B,W as j,Wa as Ps,Wd as St,Xe as ki,Y as Ds,Yc as Vs,Za as Fs,Ze as Js,_d as di,a as bt,ae as We,af as pi,b as Ne,ba as ei,bb as be,bc as R,be as Sn,bf as vt,c as bs,cb as at,cc as gt,ce as Ri,d as X,da as Ci,db as bn,de as $s,df as je,ea as Ii,ec as Be,fa as Ai,fb as Ut,fe as N,ge as Dn,ha as it,he as Cn,i as It,ia as ft,id as ze,ja as ie,jc as ks,ka as Oi,kb as si,kc as Ls,la as ii,lb as oe,lf as tr,m as xt,ma as Te,mb as Et,me as Ks,n as ve,na as Cs,nb as ae,oa as P,od as Ws,oe as In,pa as Is,pc as Hs,pe as Vt,qa as F,qe as he,rb as lt,re as Ni,rf as er,sb as le,se as qs,t as At,ta as Z,tb as K,te as Zs,vb as Bt,vf as $e,w as ct,wa as u,xc as xs,ya as Ot,yc as yt,yf as Ke,za as As}from"./chunk-NEAIWFFQ.js";function fo(n){return n.platform.startsWith("Mac")||n.platform==="iPhone"}var mo=/ipad|iphone|ipod/;function nr(n){return mo.test(n.userAgent.toLowerCase())||fo(n)&&n.maxTouchPoints>1}function dc({ownerDocument:n}){var s,r,o,a,l,c,h,p;let t=n==null?void 0:n.defaultView,i=typeof t.safari<"u"&&((r=(s=t.safari)==null?void 0:s.pushNotification)==null?void 0:r.toString())==="[object SafariRemoteNotification]",e=!!((a=(o=t.navigator)==null?void 0:o.vendor)!=null&&a.includes("Apple"))&&!((c=(l=t.navigator)==null?void 0:l.userAgent)!=null&&c.includes("CriOS"))&&!((p=(h=t.navigator)==null?void 0:h.userAgent)!=null&&p.includes("FxiOS"));return i||e}function Li({activeElement:n}){if(!(n!=null&&n.shadowRoot))return n;let t=n.shadowRoot.activeElement;for(;t!=null&&t.shadowRoot;)t=t.shadowRoot.activeElement;return t}function gc(n){let t=Li(n);Se(t)&&t.blur()}function Hi(n){if(n.hasAttribute("disabled")||n.getAttribute("tabIndex")==="-1")return!1;if(Se(n)&&n.isContentEditable||n.getAttribute("tabIndex")==="0")return!0;switch(n.tagName){case"BUTTON":case"SELECT":case"TEXTAREA":return!0;case"VIDEO":case"AUDIO":return n.hasAttribute("controls");case"INPUT":return n.getAttribute("type")!=="hidden";case"A":case"LINK":return n.hasAttribute("href");default:return!1}}function go(n){return!n.hasAttribute("disabled")&&(n.getAttribute("tabIndex")==="-1"||Hi(n))}function Mn({initial:n,root:t,previous:i=!1,keyboard:e=!0}){if(!t.ownerDocument)return null;let s=e?Hi:go,r=t.ownerDocument.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,Zs);for(r.currentNode=n;i?r.previousNode():r.nextNode();)if(Se(r.currentNode)&&(n=r.currentNode),Se(n)&&s(n))return n;return null}function fi(n){return!!(n!=null&&n.ownerDocument)&&Li(n.ownerDocument)===n&&n.ownerDocument.hasFocus()}function mi(n){var i;let t=(n==null?void 0:n.ownerDocument)&&Li(n.ownerDocument);return!!t&&n.contains(t)&&!!((i=n.ownerDocument)!=null&&i.hasFocus())}function sr(n,t,i){for(n+=i;n>=0&&nt()),this._onDoneFns=[])}onStart(t){this._originalOnStartFns.push(t),this._onStartFns.push(t)}onDone(t){this._originalOnDoneFns.push(t),this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){queueMicrotask(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(t=>t()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(t){this._position=this.totalTime?t*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(t){let i=t=="start"?this._onStartFns:this._onDoneFns;i.forEach(e=>e()),i.length=0}},gi=class{constructor(t){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=t;let i=0,e=0,s=0,r=this.players.length;r==0?queueMicrotask(()=>this._onFinish()):this.players.forEach(o=>{o.onDone(()=>{++i==r&&this._onFinish()}),o.onDestroy(()=>{++e==r&&this._onDestroy()}),o.onStart(()=>{++s==r&&this._onStart()})}),this.totalTime=this.players.reduce((o,a)=>Math.max(o,a.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this.players.forEach(t=>t.init())}onStart(t){this._onStartFns.push(t)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(t=>t()),this._onStartFns=[])}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(t=>t.play())}pause(){this.players.forEach(t=>t.pause())}restart(){this.players.forEach(t=>t.restart())}finish(){this._onFinish(),this.players.forEach(t=>t.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(t=>t.destroy()),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this.players.forEach(t=>t.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(t){let i=t*this.totalTime;this.players.forEach(e=>{let s=e.totalTime?Math.min(1,i/e.totalTime):1;e.setPosition(s)})}getPosition(){let t=this.players.reduce((i,e)=>i===null||e.totalTime>i.totalTime?e:i,null);return t!=null?t.getPosition():0}beforeDestroy(){this.players.forEach(t=>{t.beforeDestroy&&t.beforeDestroy()})}triggerCallback(t){let i=t=="start"?this._onStartFns:this._onDoneFns;i.forEach(e=>e()),i.length=0}},Ui="!";function or(n){return new P(3e3,!1)}function yo(){return new P(3100,!1)}function vo(){return new P(3101,!1)}function _o(n){return new P(3001,!1)}function wo(n){return new P(3003,!1)}function To(n){return new P(3004,!1)}function bo(n,t){return new P(3005,!1)}function Eo(){return new P(3006,!1)}function So(){return new P(3007,!1)}function Do(n,t){return new P(3008,!1)}function Co(n){return new P(3002,!1)}function Io(n,t,i,e,s){return new P(3010,!1)}function Ao(){return new P(3011,!1)}function Oo(){return new P(3012,!1)}function Mo(){return new P(3200,!1)}function Po(){return new P(3202,!1)}function Fo(){return new P(3013,!1)}function Ro(n){return new P(3014,!1)}function No(n){return new P(3015,!1)}function ko(n){return new P(3016,!1)}function Lo(n,t){return new P(3404,!1)}function Ho(n){return new P(3502,!1)}function xo(n){return new P(3503,!1)}function Uo(){return new P(3300,!1)}function Bo(n){return new P(3504,!1)}function zo(n){return new P(3301,!1)}function Vo(n,t){return new P(3302,!1)}function Wo(n){return new P(3303,!1)}function jo(n,t){return new P(3400,!1)}function $o(n){return new P(3401,!1)}function Ko(n){return new P(3402,!1)}function qo(n,t){return new P(3505,!1)}function pe(n){switch(n.length){case 0:return new de;case 1:return n[0];default:return new gi(n)}}function Sr(n,t,i=new Map,e=new Map){let s=[],r=[],o=-1,a=null;if(t.forEach(l=>{let c=l.get("offset"),h=c==o,p=h&&a||new Map;l.forEach((y,m)=>{let f=m,v=y;if(m!=="offset")switch(f=n.normalizePropertyName(f,s),v){case Ui:v=i.get(m);break;case jt:v=e.get(m);break;default:v=n.normalizeStyleValue(m,f,v,s);break}p.set(f,v)}),h||r.push(p),a=p,o=c}),s.length)throw Ho(s);return r}function ts(n,t,i,e){switch(t){case"start":n.onStart(()=>e(i&&Pn(i,"start",n)));break;case"done":n.onDone(()=>e(i&&Pn(i,"done",n)));break;case"destroy":n.onDestroy(()=>e(i&&Pn(i,"destroy",n)));break}}function Pn(n,t,i){let e=i.totalTime,s=!!i.disabled,r=es(n.element,n.triggerName,n.fromState,n.toState,t||n.phaseName,e??n.totalTime,s),o=n._data;return o!=null&&(r._data=o),r}function es(n,t,i,e,s="",r=0,o){return{element:n,triggerName:t,fromState:i,toState:e,phaseName:s,totalTime:r,disabled:!!o}}function wt(n,t,i){let e=n.get(t);return e||n.set(t,e=i),e}function ar(n){let t=n.indexOf(":"),i=n.substring(1,t),e=n.slice(t+1);return[i,e]}var Zo=typeof document>"u"?null:document.documentElement;function is(n){let t=n.parentNode||n.host||null;return t===Zo?null:t}function Qo(n){return n.substring(1,6)=="ebkit"}var Ce=null,lr=!1;function Go(n){Ce||(Ce=Xo()||{},lr=Ce.style?"WebkitAppearance"in Ce.style:!1);let t=!0;return Ce.style&&!Qo(n)&&(t=n in Ce.style,!t&&lr&&(t="Webkit"+n.charAt(0).toUpperCase()+n.slice(1)in Ce.style)),t}function Xo(){return typeof document<"u"?document.body:null}function Dr(n,t){for(;t;){if(t===n)return!0;t=is(t)}return!1}function Cr(n,t,i){if(i)return Array.from(n.querySelectorAll(t));let e=n.querySelector(t);return e?[e]:[]}var Yo=(()=>{let t=class t{validateStyleProperty(e){return Go(e)}containsElement(e,s){return Dr(e,s)}getParentElement(e){return is(e)}query(e,s,r){return Cr(e,s,r)}computeStyle(e,s,r){return r||""}animate(e,s,r,o,a,l=[],c){return new de(r,o)}};t.\u0275fac=function(s){return new(s||t)},t.\u0275prov=F({token:t,factory:t.\u0275fac});let n=t;return n})(),os=class os{};os.NOOP=new Yo;var cr=os,Hn=class{};var Jo=1e3,Ir="{{",ta="}}",Ar="ng-enter",xn="ng-leave",Bi="ng-trigger",$i=".ng-trigger",ur="ng-animating",Un=".ng-animating";function Xt(n){if(typeof n=="number")return n;let t=n.match(/^(-?[\.\d]+)(m?s)/);return!t||t.length<2?0:Bn(parseFloat(t[1]),t[2])}function Bn(n,t){switch(t){case"s":return n*Jo;default:return n}}function Ki(n,t,i){return n.hasOwnProperty("duration")?n:ea(n,t,i)}function ea(n,t,i){let e=/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i,s,r=0,o="";if(typeof n=="string"){let a=n.match(e);if(a===null)return t.push(or(n)),{duration:0,delay:0,easing:""};s=Bn(parseFloat(a[1]),a[2]);let l=a[3];l!=null&&(r=Bn(parseFloat(l),a[4]));let c=a[5];c&&(o=c)}else s=n;if(!i){let a=!1,l=t.length;s<0&&(t.push(yo()),a=!0),r<0&&(t.push(vo()),a=!0),a&&t.splice(l,0,or(n))}return{duration:s,delay:r,easing:o}}function ia(n){return n.length?n[0]instanceof Map?n:n.map(t=>new Map(Object.entries(t))):[]}function $t(n,t,i){t.forEach((e,s)=>{let r=ns(s);i&&!i.has(s)&&i.set(s,n.style[r]),n.style[r]=e})}function Ae(n,t){t.forEach((i,e)=>{let s=ns(e);n.style[s]=""})}function yi(n){return Array.isArray(n)?n.length==1?n[0]:rr(n):n}function na(n,t,i){let e=t.params||{},s=Or(n);s.length&&s.forEach(r=>{e.hasOwnProperty(r)||i.push(_o(r))})}var zn=new RegExp(`${Ir}\\s*(.+?)\\s*${ta}`,"g");function Or(n){let t=[];if(typeof n=="string"){let i;for(;i=zn.exec(n);)t.push(i[1]);zn.lastIndex=0}return t}function _i(n,t,i){let e=`${n}`,s=e.replace(zn,(r,o)=>{let a=t[o];return a==null&&(i.push(wo(o)),a=""),a.toString()});return s==e?n:s}var sa=/-+([a-z0-9])/g;function ns(n){return n.replace(sa,(...t)=>t[1].toUpperCase())}function ra(n,t){return n===0||t===0}function oa(n,t,i){if(i.size&&t.length){let e=t[0],s=[];if(i.forEach((r,o)=>{e.has(o)||s.push(o),e.set(o,r)}),s.length)for(let r=1;ro.set(a,ss(n,a)))}}return t}function _t(n,t,i){switch(t.type){case E.Trigger:return n.visitTrigger(t,i);case E.State:return n.visitState(t,i);case E.Transition:return n.visitTransition(t,i);case E.Sequence:return n.visitSequence(t,i);case E.Group:return n.visitGroup(t,i);case E.Animate:return n.visitAnimate(t,i);case E.Keyframes:return n.visitKeyframes(t,i);case E.Style:return n.visitStyle(t,i);case E.Reference:return n.visitReference(t,i);case E.AnimateChild:return n.visitAnimateChild(t,i);case E.AnimateRef:return n.visitAnimateRef(t,i);case E.Query:return n.visitQuery(t,i);case E.Stagger:return n.visitStagger(t,i);default:throw To(t.type)}}function ss(n,t){return window.getComputedStyle(n)[t]}var aa=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"]),hr=class extends Hn{normalizePropertyName(t,i){return ns(t)}normalizeStyleValue(t,i,e,s){let r="",o=e.toString().trim();if(aa.has(i)&&e!==0&&e!=="0")if(typeof e=="number")r="px";else{let a=e.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&a[1].length==0&&s.push(bo(t,e))}return o+r}};var qi="*";function la(n,t){let i=[];return typeof n=="string"?n.split(/\s*,\s*/).forEach(e=>ca(e,i,t)):i.push(n),i}function ca(n,t,i){if(n[0]==":"){let l=ua(n,i);if(typeof l=="function"){t.push(l);return}n=l}let e=n.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(e==null||e.length<4)return i.push(No(n)),t;let s=e[1],r=e[2],o=e[3];t.push(dr(s,o));let a=s==qi&&o==qi;r[0]=="<"&&!a&&t.push(dr(o,s))}function ua(n,t){switch(n){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(i,e)=>parseFloat(e)>parseFloat(i);case":decrement":return(i,e)=>parseFloat(e) *"}}var zi=new Set(["true","1"]),Vi=new Set(["false","0"]);function dr(n,t){let i=zi.has(n)||Vi.has(n),e=zi.has(t)||Vi.has(t);return(s,r)=>{let o=n==qi||n==s,a=t==qi||t==r;return!o&&i&&typeof s=="boolean"&&(o=s?zi.has(n):Vi.has(n)),!a&&e&&typeof r=="boolean"&&(a=r?zi.has(t):Vi.has(t)),o&&a}}var Mr=":self",ha=new RegExp(`s*${Mr}s*,?`,"g");function Pr(n,t,i,e){return new Vn(n).build(t,i,e)}var pr="",Vn=class{constructor(t){this._driver=t}build(t,i,e){let s=new Wn(i);return this._resetContextStyleTimingState(s),_t(this,yi(t),s)}_resetContextStyleTimingState(t){t.currentQuerySelector=pr,t.collectedStyles=new Map,t.collectedStyles.set(pr,new Map),t.currentTime=0}visitTrigger(t,i){let e=i.queryCount=0,s=i.depCount=0,r=[],o=[];return t.name.charAt(0)=="@"&&i.errors.push(Eo()),t.definitions.forEach(a=>{if(this._resetContextStyleTimingState(i),a.type==E.State){let l=a,c=l.name;c.toString().split(/\s*,\s*/).forEach(h=>{l.name=h,r.push(this.visitState(l,i))}),l.name=c}else if(a.type==E.Transition){let l=this.visitTransition(a,i);e+=l.queryCount,s+=l.depCount,o.push(l)}else i.errors.push(So())}),{type:E.Trigger,name:t.name,states:r,transitions:o,queryCount:e,depCount:s,options:null}}visitState(t,i){let e=this.visitStyle(t.styles,i),s=t.options&&t.options.params||null;if(e.containsDynamicStyles){let r=new Set,o=s||{};e.styles.forEach(a=>{a instanceof Map&&a.forEach(l=>{Or(l).forEach(c=>{o.hasOwnProperty(c)||r.add(c)})})}),r.size&&i.errors.push(Do(t.name,[...r.values()]))}return{type:E.State,name:t.name,style:e,options:s?{params:s}:null}}visitTransition(t,i){i.queryCount=0,i.depCount=0;let e=_t(this,yi(t.animation),i),s=la(t.expr,i.errors);return{type:E.Transition,matchers:s,animation:e,queryCount:i.queryCount,depCount:i.depCount,options:Ie(t.options)}}visitSequence(t,i){return{type:E.Sequence,steps:t.steps.map(e=>_t(this,e,i)),options:Ie(t.options)}}visitGroup(t,i){let e=i.currentTime,s=0,r=t.steps.map(o=>{i.currentTime=e;let a=_t(this,o,i);return s=Math.max(s,i.currentTime),a});return i.currentTime=s,{type:E.Group,steps:r,options:Ie(t.options)}}visitAnimate(t,i){let e=ma(t.timings,i.errors);i.currentAnimateTimings=e;let s,r=t.styles?t.styles:d({});if(r.type==E.Keyframes)s=this.visitKeyframes(r,i);else{let o=t.styles,a=!1;if(!o){a=!0;let c={};e.easing&&(c.easing=e.easing),o=d(c)}i.currentTime+=e.duration+e.delay;let l=this.visitStyle(o,i);l.isEmptyStep=a,s=l}return i.currentAnimateTimings=null,{type:E.Animate,timings:e,style:s,options:null}}visitStyle(t,i){let e=this._makeStyleAst(t,i);return this._validateStyleAst(e,i),e}_makeStyleAst(t,i){let e=[],s=Array.isArray(t.styles)?t.styles:[t.styles];for(let a of s)typeof a=="string"?a===jt?e.push(a):i.errors.push(Co(a)):e.push(new Map(Object.entries(a)));let r=!1,o=null;return e.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(Ir)>=0){r=!0;break}}}),{type:E.Style,styles:e,easing:o,offset:t.offset,containsDynamicStyles:r,options:null}}_validateStyleAst(t,i){let e=i.currentAnimateTimings,s=i.currentTime,r=i.currentTime;e&&r>0&&(r-=e.duration+e.delay),t.styles.forEach(o=>{typeof o!="string"&&o.forEach((a,l)=>{let c=i.collectedStyles.get(i.currentQuerySelector),h=c.get(l),p=!0;h&&(r!=s&&r>=h.startTime&&s<=h.endTime&&(i.errors.push(Io(l,h.startTime,h.endTime,r,s)),p=!1),r=h.startTime),p&&c.set(l,{startTime:r,endTime:s}),i.options&&na(a,i.options,i.errors)})})}visitKeyframes(t,i){let e={type:E.Keyframes,styles:[],options:null};if(!i.currentAnimateTimings)return i.errors.push(Ao()),e;let s=1,r=0,o=[],a=!1,l=!1,c=0,h=t.steps.map(k=>{let L=this._makeStyleAst(k,i),z=L.offset!=null?L.offset:fa(L.styles),W=0;return z!=null&&(r++,W=L.offset=z),l=l||W<0||W>1,a=a||W0&&r{let z=y>0?L==m?1:y*L:o[L],W=z*A;i.currentTime=f+v.delay+W,v.duration=W,this._validateStyleAst(k,i),k.offset=z,e.styles.push(k)}),e}visitReference(t,i){return{type:E.Reference,animation:_t(this,yi(t.animation),i),options:Ie(t.options)}}visitAnimateChild(t,i){return i.depCount++,{type:E.AnimateChild,options:Ie(t.options)}}visitAnimateRef(t,i){return{type:E.AnimateRef,animation:this.visitReference(t.animation,i),options:Ie(t.options)}}visitQuery(t,i){let e=i.currentQuerySelector,s=t.options||{};i.queryCount++,i.currentQuery=t;let[r,o]=da(t.selector);i.currentQuerySelector=e.length?e+" "+r:r,wt(i.collectedStyles,i.currentQuerySelector,new Map);let a=_t(this,yi(t.animation),i);return i.currentQuery=null,i.currentQuerySelector=e,{type:E.Query,selector:r,limit:s.limit||0,optional:!!s.optional,includeSelf:o,animation:a,originalSelector:t.selector,options:Ie(t.options)}}visitStagger(t,i){i.currentQuery||i.errors.push(Fo());let e=t.timings==="full"?{duration:0,delay:0,easing:"full"}:Ki(t.timings,i.errors,!0);return{type:E.Stagger,animation:_t(this,yi(t.animation),i),timings:e,options:null}}};function da(n){let t=!!n.split(/\s*,\s*/).find(i=>i==Mr);return t&&(n=n.replace(ha,"")),n=n.replace(/@\*/g,$i).replace(/@\w+/g,i=>$i+"-"+i.slice(1)).replace(/:animating/g,Un),[n,t]}function pa(n){return n?bt({},n):null}var Wn=class{constructor(t){this.errors=t,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}};function fa(n){if(typeof n=="string")return null;let t=null;if(Array.isArray(n))n.forEach(i=>{if(i instanceof Map&&i.has("offset")){let e=i;t=parseFloat(e.get("offset")),e.delete("offset")}});else if(n instanceof Map&&n.has("offset")){let i=n;t=parseFloat(i.get("offset")),i.delete("offset")}return t}function ma(n,t){if(n.hasOwnProperty("duration"))return n;if(typeof n=="number"){let r=Ki(n,t).duration;return Fn(r,0,"")}let i=n;if(i.split(/\s+/).some(r=>r.charAt(0)=="{"&&r.charAt(1)=="{")){let r=Fn(0,0,"");return r.dynamic=!0,r.strValue=i,r}let s=Ki(i,t);return Fn(s.duration,s.delay,s.easing)}function Ie(n){return n?(n=bt({},n),n.params&&(n.params=pa(n.params))):n={},n}function Fn(n,t,i){return{duration:n,delay:t,easing:i}}function rs(n,t,i,e,s,r,o=null,a=!1){return{type:1,element:n,keyframes:t,preStyleProps:i,postStyleProps:e,duration:s,delay:r,totalTime:s+r,easing:o,subTimeline:a}}var wi=class{constructor(){this._map=new Map}get(t){return this._map.get(t)||[]}append(t,i){let e=this._map.get(t);e||this._map.set(t,e=[]),e.push(...i)}has(t){return this._map.has(t)}clear(){this._map.clear()}},ga=1,ya=":enter",va=new RegExp(ya,"g"),_a=":leave",wa=new RegExp(_a,"g");function Fr(n,t,i,e,s,r=new Map,o=new Map,a,l,c=[]){return new jn().buildKeyframes(n,t,i,e,s,r,o,a,l,c)}var jn=class{buildKeyframes(t,i,e,s,r,o,a,l,c,h=[]){c=c||new wi;let p=new $n(t,i,c,s,r,h,[]);p.options=l;let y=l.delay?Xt(l.delay):0;p.currentTimeline.delayNextStep(y),p.currentTimeline.setStyles([o],null,p.errors,l),_t(this,e,p);let m=p.timelines.filter(f=>f.containsAnimation());if(m.length&&a.size){let f;for(let v=m.length-1;v>=0;v--){let A=m[v];if(A.element===i){f=A;break}}f&&!f.allowOnlyTimelineStyles()&&f.setStyles([a],null,p.errors,l)}return m.length?m.map(f=>f.buildKeyframes()):[rs(i,[],[],[],0,y,"",!1)]}visitTrigger(t,i){}visitState(t,i){}visitTransition(t,i){}visitAnimateChild(t,i){let e=i.subInstructions.get(i.element);if(e){let s=i.createSubContext(t.options),r=i.currentTimeline.currentTime,o=this._visitSubInstructions(e,s,s.options);r!=o&&i.transformIntoNewTimeline(o)}i.previousNode=t}visitAnimateRef(t,i){let e=i.createSubContext(t.options);e.transformIntoNewTimeline(),this._applyAnimationRefDelays([t.options,t.animation.options],i,e),this.visitReference(t.animation,e),i.transformIntoNewTimeline(e.currentTimeline.currentTime),i.previousNode=t}_applyAnimationRefDelays(t,i,e){for(let s of t){let r=s==null?void 0:s.delay;if(r){let o=typeof r=="number"?r:Xt(_i(r,(s==null?void 0:s.params)??{},i.errors));e.delayNextStep(o)}}}_visitSubInstructions(t,i,e){let r=i.currentTimeline.currentTime,o=e.duration!=null?Xt(e.duration):null,a=e.delay!=null?Xt(e.delay):null;return o!==0&&t.forEach(l=>{let c=i.appendInstructionToTimeline(l,o,a);r=Math.max(r,c.duration+c.delay)}),r}visitReference(t,i){i.updateOptions(t.options,!0),_t(this,t.animation,i),i.previousNode=t}visitSequence(t,i){let e=i.subContextCount,s=i,r=t.options;if(r&&(r.params||r.delay)&&(s=i.createSubContext(r),s.transformIntoNewTimeline(),r.delay!=null)){s.previousNode.type==E.Style&&(s.currentTimeline.snapshotCurrentStyles(),s.previousNode=Zi);let o=Xt(r.delay);s.delayNextStep(o)}t.steps.length&&(t.steps.forEach(o=>_t(this,o,s)),s.currentTimeline.applyStylesToKeyframe(),s.subContextCount>e&&s.transformIntoNewTimeline()),i.previousNode=t}visitGroup(t,i){let e=[],s=i.currentTimeline.currentTime,r=t.options&&t.options.delay?Xt(t.options.delay):0;t.steps.forEach(o=>{let a=i.createSubContext(t.options);r&&a.delayNextStep(r),_t(this,o,a),s=Math.max(s,a.currentTimeline.currentTime),e.push(a.currentTimeline)}),e.forEach(o=>i.currentTimeline.mergeTimelineCollectedStyles(o)),i.transformIntoNewTimeline(s),i.previousNode=t}_visitTiming(t,i){if(t.dynamic){let e=t.strValue,s=i.params?_i(e,i.params,i.errors):e;return Ki(s,i.errors)}else return{duration:t.duration,delay:t.delay,easing:t.easing}}visitAnimate(t,i){let e=i.currentAnimateTimings=this._visitTiming(t.timings,i),s=i.currentTimeline;e.delay&&(i.incrementTime(e.delay),s.snapshotCurrentStyles());let r=t.style;r.type==E.Keyframes?this.visitKeyframes(r,i):(i.incrementTime(e.duration),this.visitStyle(r,i),s.applyStylesToKeyframe()),i.currentAnimateTimings=null,i.previousNode=t}visitStyle(t,i){let e=i.currentTimeline,s=i.currentAnimateTimings;!s&&e.hasCurrentStyleProperties()&&e.forwardFrame();let r=s&&s.easing||t.easing;t.isEmptyStep?e.applyEmptyStep(r):e.setStyles(t.styles,r,i.errors,i.options),i.previousNode=t}visitKeyframes(t,i){let e=i.currentAnimateTimings,s=i.currentTimeline.duration,r=e.duration,a=i.createSubContext().currentTimeline;a.easing=e.easing,t.styles.forEach(l=>{let c=l.offset||0;a.forwardTime(c*r),a.setStyles(l.styles,l.easing,i.errors,i.options),a.applyStylesToKeyframe()}),i.currentTimeline.mergeTimelineCollectedStyles(a),i.transformIntoNewTimeline(s+r),i.previousNode=t}visitQuery(t,i){let e=i.currentTimeline.currentTime,s=t.options||{},r=s.delay?Xt(s.delay):0;r&&(i.previousNode.type===E.Style||e==0&&i.currentTimeline.hasCurrentStyleProperties())&&(i.currentTimeline.snapshotCurrentStyles(),i.previousNode=Zi);let o=e,a=i.invokeQuery(t.selector,t.originalSelector,t.limit,t.includeSelf,!!s.optional,i.errors);i.currentQueryTotal=a.length;let l=null;a.forEach((c,h)=>{i.currentQueryIndex=h;let p=i.createSubContext(t.options,c);r&&p.delayNextStep(r),c===i.element&&(l=p.currentTimeline),_t(this,t.animation,p),p.currentTimeline.applyStylesToKeyframe();let y=p.currentTimeline.currentTime;o=Math.max(o,y)}),i.currentQueryIndex=0,i.currentQueryTotal=0,i.transformIntoNewTimeline(o),l&&(i.currentTimeline.mergeTimelineCollectedStyles(l),i.currentTimeline.snapshotCurrentStyles()),i.previousNode=t}visitStagger(t,i){let e=i.parentContext,s=i.currentTimeline,r=t.timings,o=Math.abs(r.duration),a=o*(i.currentQueryTotal-1),l=o*i.currentQueryIndex;switch(r.duration<0?"reverse":r.easing){case"reverse":l=a-l;break;case"full":l=e.currentStaggerTime;break}let h=i.currentTimeline;l&&h.delayNextStep(l);let p=h.currentTime;_t(this,t.animation,i),i.previousNode=t,e.currentStaggerTime=s.currentTime-p+(s.startTime-e.currentTimeline.startTime)}},Zi={},$n=class n{constructor(t,i,e,s,r,o,a,l){this._driver=t,this.element=i,this.subInstructions=e,this._enterClassName=s,this._leaveClassName=r,this.errors=o,this.timelines=a,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Zi,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=l||new Qi(this._driver,i,0),a.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(t,i){if(!t)return;let e=t,s=this.options;e.duration!=null&&(s.duration=Xt(e.duration)),e.delay!=null&&(s.delay=Xt(e.delay));let r=e.params;if(r){let o=s.params;o||(o=this.options.params={}),Object.keys(r).forEach(a=>{(!i||!o.hasOwnProperty(a))&&(o[a]=_i(r[a],o,this.errors))})}}_copyOptions(){let t={};if(this.options){let i=this.options.params;if(i){let e=t.params={};Object.keys(i).forEach(s=>{e[s]=i[s]})}}return t}createSubContext(t=null,i,e){let s=i||this.element,r=new n(this._driver,s,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(s,e||0));return r.previousNode=this.previousNode,r.currentAnimateTimings=this.currentAnimateTimings,r.options=this._copyOptions(),r.updateOptions(t),r.currentQueryIndex=this.currentQueryIndex,r.currentQueryTotal=this.currentQueryTotal,r.parentContext=this,this.subContextCount++,r}transformIntoNewTimeline(t){return this.previousNode=Zi,this.currentTimeline=this.currentTimeline.fork(this.element,t),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(t,i,e){let s={duration:i??t.duration,delay:this.currentTimeline.currentTime+(e??0)+t.delay,easing:""},r=new Kn(this._driver,t.element,t.keyframes,t.preStyleProps,t.postStyleProps,s,t.stretchStartingKeyframe);return this.timelines.push(r),s}incrementTime(t){this.currentTimeline.forwardTime(this.currentTimeline.duration+t)}delayNextStep(t){t>0&&this.currentTimeline.delayNextStep(t)}invokeQuery(t,i,e,s,r,o){let a=[];if(s&&a.push(this.element),t.length>0){t=t.replace(va,"."+this._enterClassName),t=t.replace(wa,"."+this._leaveClassName);let l=e!=1,c=this._driver.query(this.element,t,l);e!==0&&(c=e<0?c.slice(c.length+e,c.length):c.slice(0,e)),a.push(...c)}return!r&&a.length==0&&o.push(Ro(i)),a}},Qi=class n{constructor(t,i,e,s){this._driver=t,this.element=i,this.startTime=e,this._elementTimelineStylesLookup=s,this.duration=0,this.easing=null,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(i),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(i,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(t){let i=this._keyframes.size===1&&this._pendingStyles.size;this.duration||i?(this.forwardTime(this.currentTime+t),i&&this.snapshotCurrentStyles()):this.startTime+=t}fork(t,i){return this.applyStylesToKeyframe(),new n(this._driver,t,i||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+=ga,this._loadKeyframe()}forwardTime(t){this.applyStylesToKeyframe(),this.duration=t,this._loadKeyframe()}_updateStyle(t,i){this._localTimelineStyles.set(t,i),this._globalTimelineStyles.set(t,i),this._styleSummary.set(t,{time:this.currentTime,value:i})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(t){t&&this._previousKeyframe.set("easing",t);for(let[i,e]of this._globalTimelineStyles)this._backFill.set(i,e||jt),this._currentKeyframe.set(i,jt);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(t,i,e,s){i&&this._previousKeyframe.set("easing",i);let r=s&&s.params||{},o=Ta(t,this._globalTimelineStyles);for(let[a,l]of o){let c=_i(l,r,e);this._pendingStyles.set(a,c),this._localTimelineStyles.has(a)||this._backFill.set(a,this._globalTimelineStyles.get(a)??jt),this._updateStyle(a,c)}}applyStylesToKeyframe(){this._pendingStyles.size!=0&&(this._pendingStyles.forEach((t,i)=>{this._currentKeyframe.set(i,t)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((t,i)=>{this._currentKeyframe.has(i)||this._currentKeyframe.set(i,t)}))}snapshotCurrentStyles(){for(let[t,i]of this._localTimelineStyles)this._pendingStyles.set(t,i),this._updateStyle(t,i)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){let t=[];for(let i in this._currentKeyframe)t.push(i);return t}mergeTimelineCollectedStyles(t){t._styleSummary.forEach((i,e)=>{let s=this._styleSummary.get(e);(!s||i.time>s.time)&&this._updateStyle(e,i.value)})}buildKeyframes(){this.applyStylesToKeyframe();let t=new Set,i=new Set,e=this._keyframes.size===1&&this.duration===0,s=[];this._keyframes.forEach((a,l)=>{let c=new Map([...this._backFill,...a]);c.forEach((h,p)=>{h===Ui?t.add(p):h===jt&&i.add(p)}),e||c.set("offset",l/this.duration),s.push(c)});let r=[...t.values()],o=[...i.values()];if(e){let a=s[0],l=new Map(a);a.set("offset",0),l.set("offset",1),s=[a,l]}return rs(this.element,s,r,o,this.duration,this.startTime,this.easing,!1)}},Kn=class extends Qi{constructor(t,i,e,s,r,o,a=!1){super(t,i,o.delay),this.keyframes=e,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 t=this.keyframes,{delay:i,duration:e,easing:s}=this.timings;if(this._stretchStartingKeyframe&&i){let r=[],o=e+i,a=i/o,l=new Map(t[0]);l.set("offset",0),r.push(l);let c=new Map(t[0]);c.set("offset",fr(a)),r.push(c);let h=t.length-1;for(let p=1;p<=h;p++){let y=new Map(t[p]),m=y.get("offset"),f=i+m*e;y.set("offset",fr(f/o)),r.push(y)}e=o,i=0,s="",t=r}return rs(this.element,t,this.preStyleProps,this.postStyleProps,e,i,s,!0)}};function fr(n,t=3){let i=Math.pow(10,t-1);return Math.round(n*i)/i}function Ta(n,t){let i=new Map,e;return n.forEach(s=>{if(s==="*"){e??(e=t.keys());for(let r of e)i.set(r,jt)}else for(let[r,o]of s)i.set(r,o)}),i}function mr(n,t,i,e,s,r,o,a,l,c,h,p,y){return{type:0,element:n,triggerName:t,isRemovalTransition:s,fromState:i,fromStyles:r,toState:e,toStyles:o,timelines:a,queriedElements:l,preStyleProps:c,postStyleProps:h,totalTime:p,errors:y}}var Rn={},Gi=class{constructor(t,i,e){this._triggerName=t,this.ast=i,this._stateStyles=e}match(t,i,e,s){return ba(this.ast.matchers,t,i,e,s)}buildStyles(t,i,e){let s=this._stateStyles.get("*");return t!==void 0&&(s=this._stateStyles.get(t==null?void 0:t.toString())||s),s?s.buildStyles(i,e):new Map}build(t,i,e,s,r,o,a,l,c,h){var Lt;let p=[],y=this.ast.options&&this.ast.options.params||Rn,m=a&&a.params||Rn,f=this.buildStyles(e,m,p),v=l&&l.params||Rn,A=this.buildStyles(s,v,p),k=new Set,L=new Map,z=new Map,W=s==="void",Re={params:Rr(v,y),delay:(Lt=this.ast.options)==null?void 0:Lt.delay},kt=h?[]:Fr(t,i,this.ast.animation,r,o,f,A,Re,c,p),ot=0;return kt.forEach(qt=>{ot=Math.max(qt.duration+qt.delay,ot)}),p.length?mr(i,this._triggerName,e,s,W,f,A,[],[],L,z,ot,p):(kt.forEach(qt=>{let Zt=qt.element,vs=wt(L,Zt,new Set);qt.preStyleProps.forEach(ge=>vs.add(ge));let ti=wt(z,Zt,new Set);qt.postStyleProps.forEach(ge=>ti.add(ge)),Zt!==i&&k.add(Zt)}),mr(i,this._triggerName,e,s,W,f,A,kt,[...k.values()],L,z,ot))}};function ba(n,t,i,e,s){return n.some(r=>r(t,i,e,s))}function Rr(n,t){let i=bt({},t);return Object.entries(n).forEach(([e,s])=>{s!=null&&(i[e]=s)}),i}var qn=class{constructor(t,i,e){this.styles=t,this.defaultParams=i,this.normalizer=e}buildStyles(t,i){let e=new Map,s=Rr(t,this.defaultParams);return this.styles.styles.forEach(r=>{typeof r!="string"&&r.forEach((o,a)=>{o&&(o=_i(o,s,i));let l=this.normalizer.normalizePropertyName(a,i);o=this.normalizer.normalizeStyleValue(a,l,o,i),e.set(a,o)})}),e}};function Ea(n,t,i){return new Zn(n,t,i)}var Zn=class{constructor(t,i,e){this.name=t,this.ast=i,this._normalizer=e,this.transitionFactories=[],this.states=new Map,i.states.forEach(s=>{let r=s.options&&s.options.params||{};this.states.set(s.name,new qn(s.style,r,e))}),gr(this.states,"true","1"),gr(this.states,"false","0"),i.transitions.forEach(s=>{this.transitionFactories.push(new Gi(t,s,this.states))}),this.fallbackTransition=Sa(t,this.states,this._normalizer)}get containsQueries(){return this.ast.queryCount>0}matchTransition(t,i,e,s){return this.transitionFactories.find(o=>o.match(t,i,e,s))||null}matchStyles(t,i,e){return this.fallbackTransition.buildStyles(t,i,e)}};function Sa(n,t,i){let e=[(o,a)=>!0],s={type:E.Sequence,steps:[],options:null},r={type:E.Transition,animation:s,matchers:e,options:null,queryCount:0,depCount:0};return new Gi(n,r,t)}function gr(n,t,i){n.has(t)?n.has(i)||n.set(i,n.get(t)):n.has(i)&&n.set(t,n.get(i))}var Da=new wi,Qn=class{constructor(t,i,e){this.bodyNode=t,this._driver=i,this._normalizer=e,this._animations=new Map,this._playersById=new Map,this.players=[]}register(t,i){let e=[],s=[],r=Pr(this._driver,i,e,s);if(e.length)throw xo(e);s.length&&void 0,this._animations.set(t,r)}_buildPlayer(t,i,e){let s=t.element,r=Sr(this._normalizer,t.keyframes,i,e);return this._driver.animate(s,r,t.duration,t.delay,t.easing,[],!0)}create(t,i,e={}){let s=[],r=this._animations.get(t),o,a=new Map;if(r?(o=Fr(this._driver,i,r,Ar,xn,new Map,new Map,e,Da,s),o.forEach(h=>{let p=wt(a,h.element,new Map);h.postStyleProps.forEach(y=>p.set(y,null))})):(s.push(Uo()),o=[]),s.length)throw Bo(s);a.forEach((h,p)=>{h.forEach((y,m)=>{h.set(m,this._driver.computeStyle(p,m,jt))})});let l=o.map(h=>{let p=a.get(h.element);return this._buildPlayer(h,new Map,p)}),c=pe(l);return this._playersById.set(t,c),c.onDestroy(()=>this.destroy(t)),this.players.push(c),c}destroy(t){let i=this._getPlayer(t);i.destroy(),this._playersById.delete(t);let e=this.players.indexOf(i);e>=0&&this.players.splice(e,1)}_getPlayer(t){let i=this._playersById.get(t);if(!i)throw zo(t);return i}listen(t,i,e,s){let r=es(i,"","","");return ts(this._getPlayer(t),e,r,s),()=>{}}command(t,i,e,s){if(e=="register"){this.register(t,s[0]);return}if(e=="create"){let o=s[0]||{};this.create(t,i,o);return}let r=this._getPlayer(t);switch(e){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(t);break}}},yr="ng-animate-queued",Ca=".ng-animate-queued",Nn="ng-animate-disabled",Ia=".ng-animate-disabled",Aa="ng-star-inserted",Oa=".ng-star-inserted",Ma=[],Nr={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Pa={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Ft="__ng_removed",Ti=class{get params(){return this.options.params}constructor(t,i=""){this.namespaceId=i;let e=t&&t.hasOwnProperty("value"),s=e?t.value:t;if(this.value=Ra(s),e){let r=t,{value:o}=r,a=bs(r,["value"]);this.options=a}else this.options={};this.options.params||(this.options.params={})}absorbOptions(t){let i=t.params;if(i){let e=this.options.params;Object.keys(i).forEach(s=>{e[s]==null&&(e[s]=i[s])})}}},vi="void",kn=new Ti(vi),Gn=class{constructor(t,i,e){this.id=t,this.hostElement=i,this._engine=e,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+t,Dt(i,this._hostClassName)}listen(t,i,e,s){if(!this._triggers.has(i))throw Vo(e,i);if(e==null||e.length==0)throw Wo(i);if(!Na(e))throw jo(e,i);let r=wt(this._elementListeners,t,[]),o={name:i,phase:e,callback:s};r.push(o);let a=wt(this._engine.statesByElement,t,new Map);return a.has(i)||(Dt(t,Bi),Dt(t,Bi+"-"+i),a.set(i,kn)),()=>{this._engine.afterFlush(()=>{let l=r.indexOf(o);l>=0&&r.splice(l,1),this._triggers.has(i)||a.delete(i)})}}register(t,i){return this._triggers.has(t)?!1:(this._triggers.set(t,i),!0)}_getTrigger(t){let i=this._triggers.get(t);if(!i)throw $o(t);return i}trigger(t,i,e,s=!0){let r=this._getTrigger(i),o=new bi(this.id,i,t),a=this._engine.statesByElement.get(t);a||(Dt(t,Bi),Dt(t,Bi+"-"+i),this._engine.statesByElement.set(t,a=new Map));let l=a.get(i),c=new Ti(e,this.id);if(!(e&&e.hasOwnProperty("value"))&&l&&c.absorbOptions(l.options),a.set(i,c),l||(l=kn),!(c.value===vi)&&l.value===c.value){if(!Ha(l.params,c.params)){let v=[],A=r.matchStyles(l.value,l.params,v),k=r.matchStyles(c.value,c.params,v);v.length?this._engine.reportError(v):this._engine.afterFlush(()=>{Ae(t,A),$t(t,k)})}return}let y=wt(this._engine.playersByElement,t,[]);y.forEach(v=>{v.namespaceId==this.id&&v.triggerName==i&&v.queued&&v.destroy()});let m=r.matchTransition(l.value,c.value,t,c.params),f=!1;if(!m){if(!s)return;m=r.fallbackTransition,f=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:i,transition:m,fromState:l,toState:c,player:o,isFallbackTransition:f}),f||(Dt(t,yr),o.onStart(()=>{qe(t,yr)})),o.onDone(()=>{let v=this.players.indexOf(o);v>=0&&this.players.splice(v,1);let A=this._engine.playersByElement.get(t);if(A){let k=A.indexOf(o);k>=0&&A.splice(k,1)}}),this.players.push(o),y.push(o),o}deregister(t){this._triggers.delete(t),this._engine.statesByElement.forEach(i=>i.delete(t)),this._elementListeners.forEach((i,e)=>{this._elementListeners.set(e,i.filter(s=>s.name!=t))})}clearElementCache(t){this._engine.statesByElement.delete(t),this._elementListeners.delete(t);let i=this._engine.playersByElement.get(t);i&&(i.forEach(e=>e.destroy()),this._engine.playersByElement.delete(t))}_signalRemovalForInnerTriggers(t,i){let e=this._engine.driver.query(t,$i,!0);e.forEach(s=>{if(s[Ft])return;let r=this._engine.fetchNamespacesByElement(s);r.size?r.forEach(o=>o.triggerLeaveAnimation(s,i,!1,!0)):this.clearElementCache(s)}),this._engine.afterFlushAnimationsDone(()=>e.forEach(s=>this.clearElementCache(s)))}triggerLeaveAnimation(t,i,e,s){let r=this._engine.statesByElement.get(t),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(t,c,vi,s);h&&a.push(h)}}),a.length)return this._engine.markElementAsRemoved(this.id,t,!0,i,o),e&&pe(a).onDone(()=>this._engine.processLeaveNode(t)),!0}return!1}prepareLeaveAnimationListeners(t){let i=this._elementListeners.get(t),e=this._engine.statesByElement.get(t);if(i&&e){let s=new Set;i.forEach(r=>{let o=r.name;if(s.has(o))return;s.add(o);let l=this._triggers.get(o).fallbackTransition,c=e.get(o)||kn,h=new Ti(vi),p=new bi(this.id,o,t);this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:o,transition:l,fromState:c,toState:h,player:p,isFallbackTransition:!0})})}}removeNode(t,i){let e=this._engine;if(t.childElementCount&&this._signalRemovalForInnerTriggers(t,i),this.triggerLeaveAnimation(t,i,!0))return;let s=!1;if(e.totalAnimations){let r=e.players.length?e.playersByQueriedElement.get(t):[];if(r&&r.length)s=!0;else{let o=t;for(;o=o.parentNode;)if(e.statesByElement.get(o)){s=!0;break}}}if(this.prepareLeaveAnimationListeners(t),s)e.markElementAsRemoved(this.id,t,!1,i);else{let r=t[Ft];(!r||r===Nr)&&(e.afterFlush(()=>this.clearElementCache(t)),e.destroyInnerAnimations(t),e._onRemovalComplete(t,i))}}insertNode(t,i){Dt(t,this._hostClassName)}drainQueuedTransitions(t){let i=[];return this._queue.forEach(e=>{let s=e.player;if(s.destroyed)return;let r=e.element,o=this._elementListeners.get(r);o&&o.forEach(a=>{if(a.name==e.triggerName){let l=es(r,e.triggerName,e.fromState.value,e.toState.value);l._data=t,ts(e.player,a.phase,l,a.callback)}}),s.markedForDestroy?this._engine.afterFlush(()=>{s.destroy()}):i.push(e)}),this._queue=[],i.sort((e,s)=>{let r=e.transition.ast.depCount,o=s.transition.ast.depCount;return r==0||o==0?r-o:this._engine.driver.containsElement(e.element,s.element)?1:-1})}destroy(t){this.players.forEach(i=>i.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,t)}},Xn=class{_onRemovalComplete(t,i){this.onRemovalComplete(t,i)}constructor(t,i,e){this.bodyNode=t,this.driver=i,this._normalizer=e,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(s,r)=>{}}get queuedPlayers(){let t=[];return this._namespaceList.forEach(i=>{i.players.forEach(e=>{e.queued&&t.push(e)})}),t}createNamespace(t,i){let e=new Gn(t,i,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,i)?this._balanceNamespaceList(e,i):(this.newHostElements.set(i,e),this.collectEnterElement(i)),this._namespaceLookup[t]=e}_balanceNamespaceList(t,i){let e=this._namespaceList,s=this.namespacesByHostElement;if(e.length-1>=0){let o=!1,a=this.driver.getParentElement(i);for(;a;){let l=s.get(a);if(l){let c=e.indexOf(l);e.splice(c+1,0,t),o=!0;break}a=this.driver.getParentElement(a)}o||e.unshift(t)}else e.push(t);return s.set(i,t),t}register(t,i){let e=this._namespaceLookup[t];return e||(e=this.createNamespace(t,i)),e}registerTrigger(t,i,e){let s=this._namespaceLookup[t];s&&s.register(i,e)&&this.totalAnimations++}destroy(t,i){t&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{let e=this._fetchNamespace(t);this.namespacesByHostElement.delete(e.hostElement);let s=this._namespaceList.indexOf(e);s>=0&&this._namespaceList.splice(s,1),e.destroy(i),delete this._namespaceLookup[t]}))}_fetchNamespace(t){return this._namespaceLookup[t]}fetchNamespacesByElement(t){let i=new Set,e=this.statesByElement.get(t);if(e){for(let s of e.values())if(s.namespaceId){let r=this._fetchNamespace(s.namespaceId);r&&i.add(r)}}return i}trigger(t,i,e,s){if(Wi(i)){let r=this._fetchNamespace(t);if(r)return r.trigger(i,e,s),!0}return!1}insertNode(t,i,e,s){if(!Wi(i))return;let r=i[Ft];if(r&&r.setForRemoval){r.setForRemoval=!1,r.setForMove=!0;let o=this.collectedLeaveElements.indexOf(i);o>=0&&this.collectedLeaveElements.splice(o,1)}if(t){let o=this._fetchNamespace(t);o&&o.insertNode(i,e)}s&&this.collectEnterElement(i)}collectEnterElement(t){this.collectedEnterElements.push(t)}markElementAsDisabled(t,i){i?this.disabledNodes.has(t)||(this.disabledNodes.add(t),Dt(t,Nn)):this.disabledNodes.has(t)&&(this.disabledNodes.delete(t),qe(t,Nn))}removeNode(t,i,e){if(Wi(i)){let s=t?this._fetchNamespace(t):null;s?s.removeNode(i,e):this.markElementAsRemoved(t,i,!1,e);let r=this.namespacesByHostElement.get(i);r&&r.id!==t&&r.removeNode(i,e)}else this._onRemovalComplete(i,e)}markElementAsRemoved(t,i,e,s,r){this.collectedLeaveElements.push(i),i[Ft]={namespaceId:t,setForRemoval:s,hasAnimation:e,removedBeforeQueried:!1,previousTriggersValues:r}}listen(t,i,e,s,r){return Wi(i)?this._fetchNamespace(t).listen(i,e,s,r):()=>{}}_buildInstruction(t,i,e,s,r){return t.transition.build(this.driver,t.element,t.fromState.value,t.toState.value,e,s,t.fromState.options,t.toState.options,i,r)}destroyInnerAnimations(t){let i=this.driver.query(t,$i,!0);i.forEach(e=>this.destroyActiveAnimationsForElement(e)),this.playersByQueriedElement.size!=0&&(i=this.driver.query(t,Un,!0),i.forEach(e=>this.finishActiveQueriedAnimationOnElement(e)))}destroyActiveAnimationsForElement(t){let i=this.playersByElement.get(t);i&&i.forEach(e=>{e.queued?e.markedForDestroy=!0:e.destroy()})}finishActiveQueriedAnimationOnElement(t){let i=this.playersByQueriedElement.get(t);i&&i.forEach(e=>e.finish())}whenRenderingDone(){return new Promise(t=>{if(this.players.length)return pe(this.players).onDone(()=>t());t()})}processLeaveNode(t){var e;let i=t[Ft];if(i&&i.setForRemoval){if(t[Ft]=Nr,i.namespaceId){this.destroyInnerAnimations(t);let s=this._fetchNamespace(i.namespaceId);s&&s.clearElementCache(t)}this._onRemovalComplete(t,i.setForRemoval)}(e=t.classList)!=null&&e.contains(Nn)&&this.markElementAsDisabled(t,!1),this.driver.query(t,Ia,!0).forEach(s=>{this.markElementAsDisabled(s,!1)})}flush(t=-1){let i=[];if(this.newHostElements.size&&(this.newHostElements.forEach((e,s)=>this._balanceNamespaceList(e,s)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let e=0;ee()),this._flushFns=[],this._whenQuietFns.length){let e=this._whenQuietFns;this._whenQuietFns=[],i.length?pe(i).onDone(()=>{e.forEach(s=>s())}):e.forEach(s=>s())}}reportError(t){throw Ko(t)}_flushAnimations(t,i){let e=new wi,s=[],r=new Map,o=[],a=new Map,l=new Map,c=new Map,h=new Set;this.disabledNodes.forEach(g=>{h.add(g);let _=this.driver.query(g,Ca,!0);for(let w=0;w<_.length;w++)h.add(_[w])});let p=this.bodyNode,y=Array.from(this.statesByElement.keys()),m=wr(y,this.collectedEnterElements),f=new Map,v=0;m.forEach((g,_)=>{let w=Ar+v++;f.set(_,w),g.forEach(M=>Dt(M,w))});let A=[],k=new Set,L=new Set;for(let g=0;gk.add(M)):L.add(_))}let z=new Map,W=wr(y,Array.from(k));W.forEach((g,_)=>{let w=xn+v++;z.set(_,w),g.forEach(M=>Dt(M,w))}),t.push(()=>{m.forEach((g,_)=>{let w=f.get(_);g.forEach(M=>qe(M,w))}),W.forEach((g,_)=>{let w=z.get(_);g.forEach(M=>qe(M,w))}),A.forEach(g=>{this.processLeaveNode(g)})});let Re=[],kt=[];for(let g=this._namespaceList.length-1;g>=0;g--)this._namespaceList[g].drainQueuedTransitions(i).forEach(w=>{let M=w.player,G=w.element;if(Re.push(M),this.collectedEnterElements.length){let et=G[Ft];if(et&&et.setForMove){if(et.previousTriggersValues&&et.previousTriggersValues.has(w.triggerName)){let ye=et.previousTriggersValues.get(w.triggerName),Tt=this.statesByElement.get(w.element);if(Tt&&Tt.has(w.triggerName)){let Di=Tt.get(w.triggerName);Di.value=ye,Tt.set(w.triggerName,Di)}}M.destroy();return}}let Ht=!p||!this.driver.containsElement(p,G),pt=z.get(G),ee=f.get(G),U=this._buildInstruction(w,e,ee,pt,Ht);if(U.errors&&U.errors.length){kt.push(U);return}if(Ht){M.onStart(()=>Ae(G,U.fromStyles)),M.onDestroy(()=>$t(G,U.toStyles)),s.push(M);return}if(w.isFallbackTransition){M.onStart(()=>Ae(G,U.fromStyles)),M.onDestroy(()=>$t(G,U.toStyles)),s.push(M);return}let Ts=[];U.timelines.forEach(et=>{et.stretchStartingKeyframe=!0,this.disabledNodes.has(et.element)||Ts.push(et)}),U.timelines=Ts,e.append(G,U.timelines);let po={instruction:U,player:M,element:G};o.push(po),U.queriedElements.forEach(et=>wt(a,et,[]).push(M)),U.preStyleProps.forEach((et,ye)=>{if(et.size){let Tt=l.get(ye);Tt||l.set(ye,Tt=new Set),et.forEach((Di,_n)=>Tt.add(_n))}}),U.postStyleProps.forEach((et,ye)=>{let Tt=c.get(ye);Tt||c.set(ye,Tt=new Set),et.forEach((Di,_n)=>Tt.add(_n))})});if(kt.length){let g=[];kt.forEach(_=>{g.push(qo(_.triggerName,_.errors))}),Re.forEach(_=>_.destroy()),this.reportError(g)}let ot=new Map,Lt=new Map;o.forEach(g=>{let _=g.element;e.has(_)&&(Lt.set(_,_),this._beforeAnimationBuild(g.player.namespaceId,g.instruction,ot))}),s.forEach(g=>{let _=g.element;this._getPreviousPlayers(_,!1,g.namespaceId,g.triggerName,null).forEach(M=>{wt(ot,_,[]).push(M),M.destroy()})});let qt=A.filter(g=>Tr(g,l,c)),Zt=new Map;_r(Zt,this.driver,L,c,jt).forEach(g=>{Tr(g,l,c)&&qt.push(g)});let ti=new Map;m.forEach((g,_)=>{_r(ti,this.driver,new Set(g),l,Ui)}),qt.forEach(g=>{let _=Zt.get(g),w=ti.get(g);Zt.set(g,new Map([...(_==null?void 0:_.entries())??[],...(w==null?void 0:w.entries())??[]]))});let ge=[],_s=[],ws={};o.forEach(g=>{let{element:_,player:w,instruction:M}=g;if(e.has(_)){if(h.has(_)){w.onDestroy(()=>$t(_,M.toStyles)),w.disabled=!0,w.overrideTotalTime(M.totalTime),s.push(w);return}let G=ws;if(Lt.size>1){let pt=_,ee=[];for(;pt=pt.parentNode;){let U=Lt.get(pt);if(U){G=U;break}ee.push(pt)}ee.forEach(U=>Lt.set(U,G))}let Ht=this._buildAnimation(w.namespaceId,M,ot,r,ti,Zt);if(w.setRealPlayer(Ht),G===ws)ge.push(w);else{let pt=this.playersByElement.get(G);pt&&pt.length&&(w.parentPlayer=pe(pt)),s.push(w)}}else Ae(_,M.fromStyles),w.onDestroy(()=>$t(_,M.toStyles)),_s.push(w),h.has(_)&&s.push(w)}),_s.forEach(g=>{let _=r.get(g.element);if(_&&_.length){let w=pe(_);g.setRealPlayer(w)}}),s.forEach(g=>{g.parentPlayer?g.syncPlayerEvents(g.parentPlayer):g.destroy()});for(let g=0;g!Ht.destroyed);G.length?ka(this,_,G):this.processLeaveNode(_)}return A.length=0,ge.forEach(g=>{this.players.push(g),g.onDone(()=>{g.destroy();let _=this.players.indexOf(g);this.players.splice(_,1)}),g.play()}),ge}afterFlush(t){this._flushFns.push(t)}afterFlushAnimationsDone(t){this._whenQuietFns.push(t)}_getPreviousPlayers(t,i,e,s,r){let o=[];if(i){let a=this.playersByQueriedElement.get(t);a&&(o=a)}else{let a=this.playersByElement.get(t);if(a){let l=!r||r==vi;a.forEach(c=>{c.queued||!l&&c.triggerName!=s||o.push(c)})}}return(e||s)&&(o=o.filter(a=>!(e&&e!=a.namespaceId||s&&s!=a.triggerName))),o}_beforeAnimationBuild(t,i,e){let s=i.triggerName,r=i.element,o=i.isRemovalTransition?void 0:t,a=i.isRemovalTransition?void 0:s;for(let l of i.timelines){let c=l.element,h=c!==r,p=wt(e,c,[]);this._getPreviousPlayers(c,h,o,a,i.toState).forEach(m=>{let f=m.getRealPlayer();f.beforeDestroy&&f.beforeDestroy(),m.destroy(),p.push(m)})}Ae(r,i.fromStyles)}_buildAnimation(t,i,e,s,r,o){let a=i.triggerName,l=i.element,c=[],h=new Set,p=new Set,y=i.timelines.map(f=>{let v=f.element;h.add(v);let A=v[Ft];if(A&&A.removedBeforeQueried)return new de(f.duration,f.delay);let k=v!==l,L=La((e.get(v)||Ma).map(ot=>ot.getRealPlayer())).filter(ot=>{let Lt=ot;return Lt.element?Lt.element===v:!1}),z=r.get(v),W=o.get(v),Re=Sr(this._normalizer,f.keyframes,z,W),kt=this._buildPlayer(f,Re,L);if(f.subTimeline&&s&&p.add(v),k){let ot=new bi(t,a,v);ot.setRealPlayer(kt),c.push(ot)}return kt});c.forEach(f=>{wt(this.playersByQueriedElement,f.element,[]).push(f),f.onDone(()=>Fa(this.playersByQueriedElement,f.element,f))}),h.forEach(f=>Dt(f,ur));let m=pe(y);return m.onDestroy(()=>{h.forEach(f=>qe(f,ur)),$t(l,i.toStyles)}),p.forEach(f=>{wt(s,f,[]).push(m)}),m}_buildPlayer(t,i,e){return i.length>0?this.driver.animate(t.element,i,t.duration,t.delay,t.easing,e):new de(t.duration,t.delay)}},bi=class{constructor(t,i,e){this.namespaceId=t,this.triggerName=i,this.element=e,this._player=new de,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.parentPlayer=null,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(t){this._containsRealPlayer||(this._player=t,this._queuedCallbacks.forEach((i,e)=>{i.forEach(s=>ts(t,e,void 0,s))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(t.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(t){this.totalTime=t}syncPlayerEvents(t){let i=this._player;i.triggerCallback&&t.onStart(()=>i.triggerCallback("start")),t.onDone(()=>this.finish()),t.onDestroy(()=>this.destroy())}_queueEvent(t,i){wt(this._queuedCallbacks,t,[]).push(i)}onDone(t){this.queued&&this._queueEvent("done",t),this._player.onDone(t)}onStart(t){this.queued&&this._queueEvent("start",t),this._player.onStart(t)}onDestroy(t){this.queued&&this._queueEvent("destroy",t),this._player.onDestroy(t)}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(t){this.queued||this._player.setPosition(t)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(t){let i=this._player;i.triggerCallback&&i.triggerCallback(t)}};function Fa(n,t,i){let e=n.get(t);if(e){if(e.length){let s=e.indexOf(i);e.splice(s,1)}e.length==0&&n.delete(t)}return e}function Ra(n){return n??null}function Wi(n){return n&&n.nodeType===1}function Na(n){return n=="start"||n=="done"}function vr(n,t){let i=n.style.display;return n.style.display=t??"none",i}function _r(n,t,i,e,s){let r=[];i.forEach(l=>r.push(vr(l)));let o=[];e.forEach((l,c)=>{let h=new Map;l.forEach(p=>{let y=t.computeStyle(c,p,s);h.set(p,y),(!y||y.length==0)&&(c[Ft]=Pa,o.push(c))}),n.set(c,h)});let a=0;return i.forEach(l=>vr(l,r[a++])),o}function wr(n,t){let i=new Map;if(n.forEach(a=>i.set(a,[])),t.length==0)return i;let e=1,s=new Set(t),r=new Map;function o(a){if(!a)return e;let l=r.get(a);if(l)return l;let c=a.parentNode;return i.has(c)?l=c:s.has(c)?l=e:l=o(c),r.set(a,l),l}return t.forEach(a=>{let l=o(a);l!==e&&i.get(l).push(a)}),i}function Dt(n,t){var i;(i=n.classList)==null||i.add(t)}function qe(n,t){var i;(i=n.classList)==null||i.remove(t)}function ka(n,t,i){pe(i).onDone(()=>n.processLeaveNode(t))}function La(n){let t=[];return kr(n,t),t}function kr(n,t){for(let i=0;is.add(r)):t.set(n,e),i.delete(n),!0}var Xi=class{constructor(t,i,e){this._driver=i,this._normalizer=e,this._triggerCache={},this.onRemovalComplete=(s,r)=>{},this._transitionEngine=new Xn(t.body,i,e),this._timelineEngine=new Qn(t.body,i,e),this._transitionEngine.onRemovalComplete=(s,r)=>this.onRemovalComplete(s,r)}registerTrigger(t,i,e,s,r){let o=t+"-"+s,a=this._triggerCache[o];if(!a){let l=[],c=[],h=Pr(this._driver,r,l,c);if(l.length)throw Lo(s,l);c.length&&void 0,a=Ea(s,h,this._normalizer),this._triggerCache[o]=a}this._transitionEngine.registerTrigger(i,s,a)}register(t,i){this._transitionEngine.register(t,i)}destroy(t,i){this._transitionEngine.destroy(t,i)}onInsert(t,i,e,s){this._transitionEngine.insertNode(t,i,e,s)}onRemove(t,i,e){this._transitionEngine.removeNode(t,i,e)}disableAnimations(t,i){this._transitionEngine.markElementAsDisabled(t,i)}process(t,i,e,s){if(e.charAt(0)=="@"){let[r,o]=ar(e),a=s;this._timelineEngine.command(r,i,o,a)}else this._transitionEngine.trigger(t,i,e,s)}listen(t,i,e,s,r){if(e.charAt(0)=="@"){let[o,a]=ar(e);return this._timelineEngine.listen(o,i,a,r)}return this._transitionEngine.listen(t,i,e,s,r)}flush(t=-1){this._transitionEngine.flush(t)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(t){this._transitionEngine.afterFlushAnimationsDone(t)}};function xa(n,t){let i=null,e=null;return Array.isArray(t)&&t.length?(i=Ln(t[0]),t.length>1&&(e=Ln(t[t.length-1]))):t instanceof Map&&(i=Ln(t)),i||e?new Yn(n,i,e):null}var Ze=class Ze{constructor(t,i,e){this._element=t,this._startStyles=i,this._endStyles=e,this._state=0;let s=Ze.initialStylesByElement.get(t);s||Ze.initialStylesByElement.set(t,s=new Map),this._initialStyles=s}start(){this._state<1&&(this._startStyles&&$t(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&($t(this._element,this._initialStyles),this._endStyles&&($t(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(Ze.initialStylesByElement.delete(this._element),this._startStyles&&(Ae(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Ae(this._element,this._endStyles),this._endStyles=null),$t(this._element,this._initialStyles),this._state=3)}};Ze.initialStylesByElement=new WeakMap;var Yn=Ze;function Ln(n){let t=null;return n.forEach((i,e)=>{Ua(e)&&(t=t||new Map,t.set(e,i))}),t}function Ua(n){return n==="display"||n==="position"}var Yi=class{constructor(t,i,e,s){this.element=t,this.keyframes=i,this.options=e,this._specialStyles=s,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=e.duration,this._delay=e.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;let t=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,t,this.options),this._finalKeyframe=t.length?t[t.length-1]:new Map;let i=()=>this._onFinish();this.domPlayer.addEventListener("finish",i),this.onDestroy(()=>{this.domPlayer.removeEventListener("finish",i)})}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(t){let i=[];return t.forEach(e=>{i.push(Object.fromEntries(e))}),i}_triggerWebAnimation(t,i,e){return t.animate(this._convertKeyframesToObject(i),e)}onStart(t){this._originalOnStartFns.push(t),this._onStartFns.push(t)}onDone(t){this._originalOnDoneFns.push(t),this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(t=>t()),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(t=>t()),this._onDestroyFns=[])}setPosition(t){this.domPlayer===void 0&&this.init(),this.domPlayer.currentTime=t*this.time}getPosition(){return+(this.domPlayer.currentTime??0)/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){let t=new Map;this.hasStarted()&&this._finalKeyframe.forEach((e,s)=>{s!=="offset"&&t.set(s,this._finished?e:ss(this.element,s))}),this.currentSnapshot=t}triggerCallback(t){let i=t==="start"?this._onStartFns:this._onDoneFns;i.forEach(e=>e()),i.length=0}},br=class{validateStyleProperty(t){return!0}validateAnimatableStyleProperty(t){return!0}containsElement(t,i){return Dr(t,i)}getParentElement(t){return is(t)}query(t,i,e){return Cr(t,i,e)}computeStyle(t,i,e){return ss(t,i)}animate(t,i,e,s,r,o=[]){let a=s==0?"both":"forwards",l={duration:e,delay:s,fill:a};r&&(l.easing=r);let c=new Map,h=o.filter(m=>m instanceof Yi);ra(e,s)&&h.forEach(m=>{m.currentSnapshot.forEach((f,v)=>c.set(v,f))});let p=ia(i).map(m=>new Map(m));p=oa(t,p,c);let y=xa(t,p);return new Yi(t,p,l,y)}};var ji="@",Lr="@.disabled",Ji=class{constructor(t,i,e,s){this.namespaceId=t,this.delegate=i,this.engine=e,this._onDestroy=s,this.\u0275type=0}get data(){return this.delegate.data}destroyNode(t){var i,e;(e=(i=this.delegate).destroyNode)==null||e.call(i,t)}destroy(){var t;this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),(t=this._onDestroy)==null||t.call(this)}createElement(t,i){return this.delegate.createElement(t,i)}createComment(t){return this.delegate.createComment(t)}createText(t){return this.delegate.createText(t)}appendChild(t,i){this.delegate.appendChild(t,i),this.engine.onInsert(this.namespaceId,i,t,!1)}insertBefore(t,i,e,s=!0){this.delegate.insertBefore(t,i,e),this.engine.onInsert(this.namespaceId,i,t,s)}removeChild(t,i,e){this.parentNode(i)&&this.engine.onRemove(this.namespaceId,i,this.delegate)}selectRootElement(t,i){return this.delegate.selectRootElement(t,i)}parentNode(t){return this.delegate.parentNode(t)}nextSibling(t){return this.delegate.nextSibling(t)}setAttribute(t,i,e,s){this.delegate.setAttribute(t,i,e,s)}removeAttribute(t,i,e){this.delegate.removeAttribute(t,i,e)}addClass(t,i){this.delegate.addClass(t,i)}removeClass(t,i){this.delegate.removeClass(t,i)}setStyle(t,i,e,s){this.delegate.setStyle(t,i,e,s)}removeStyle(t,i,e){this.delegate.removeStyle(t,i,e)}setProperty(t,i,e){i.charAt(0)==ji&&i==Lr?this.disableAnimations(t,!!e):this.delegate.setProperty(t,i,e)}setValue(t,i){this.delegate.setValue(t,i)}listen(t,i,e){return this.delegate.listen(t,i,e)}disableAnimations(t,i){this.engine.disableAnimations(t,i)}},Jn=class extends Ji{constructor(t,i,e,s,r){super(i,e,s,r),this.factory=t,this.namespaceId=i}setProperty(t,i,e){i.charAt(0)==ji?i.charAt(1)=="."&&i==Lr?(e=e===void 0?!0:!!e,this.disableAnimations(t,e)):this.engine.process(this.namespaceId,t,i.slice(1),e):this.delegate.setProperty(t,i,e)}listen(t,i,e){if(i.charAt(0)==ji){let s=Ba(t),r=i.slice(1),o="";return r.charAt(0)!=ji&&([r,o]=za(r)),this.engine.listen(this.namespaceId,s,r,o,a=>{let l=a._data||-1;this.factory.scheduleListenerCallback(l,e,a)})}return this.delegate.listen(t,i,e)}};function Ba(n){switch(n){case"body":return document.body;case"document":return document;case"window":return window;default:return n}}function za(n){let t=n.indexOf("."),i=n.substring(0,t),e=n.slice(t+1);return[i,e]}var Er=class{constructor(t,i,e){this.delegate=t,this.engine=i,this._zone=e,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,i.onRemovalComplete=(s,r)=>{r==null||r.removeChild(null,s)}}createRenderer(t,i){var c;let e="",s=this.delegate.createRenderer(t,i);if(!t||!((c=i==null?void 0:i.data)!=null&&c.animation)){let h=this._rendererCache,p=h.get(s);if(!p){let y=()=>h.delete(s);p=new Ji(e,s,this.engine,y),h.set(s,p)}return p}let r=i.id,o=i.id+"-"+this._currentId;this._currentId++,this.engine.register(o,t);let a=h=>{Array.isArray(h)?h.forEach(a):this.engine.registerTrigger(r,o,t,h.name,h)};return i.data.animation.forEach(a),new Jn(this,o,s,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(t,i,e){if(t>=0&&ti(e));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([i,e])}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()}};var Va=S(()=>{let n={onRemovalComplete:()=>{}},t=new ve(null),i=u(Xi,{optional:!0})||n,{onRemovalComplete:e=n.onRemovalComplete}=i;return i.onRemovalComplete=(s,r)=>{t.next(s),e.call(i,s,r)},t.pipe(ft(s=>we(0).pipe(I(()=>null),it(s))),Ci())});function Hr(n,t=null){return Sn(n).activeElement!==n&&!n.matches(":disabled")&&!(t!=null&&t.contains(n))}function Wa(n){return Y(B(n,"focusin").pipe(I(({target:t})=>t)),B(n,"focusout").pipe(ut(({target:t,relatedTarget:i})=>!!i&&Hr(t)),I(({relatedTarget:t})=>t)))}var xr=S(()=>{let n=u(Va),t=u(Wt),i=u(Ee),e=B(t,"focusout",{capture:!0}),s=B(t,"focusin",{capture:!0}),r=B(t,"blur"),o=B(t,"mousedown"),a=B(t,"mouseup");return Y(e.pipe(ie(o),ei({delay:()=>a}),Cs(n),ut(([l,c])=>Hr(We(l),c)),I(([{relatedTarget:l}])=>l)),r.pipe(I(()=>i.activeElement),ut(l=>!!(l!=null&&l.matches("iframe")))),s.pipe(ft(l=>{let c=We(l),h=Sn(c);return h===i?ct(c):Wa(h).pipe(it(c))})),o.pipe(ft(l=>{let c=We(l);return!i.activeElement||i.activeElement===i.body?ct(c):e.pipe(Ss(1),I(()=>c),ie(we(0)))}))).pipe(j(),Ci())}),Nc=S(()=>{var n;return((n=u(Ee).querySelector("base"))==null?void 0:n.href)??""}),ja=/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/,$a=/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/,Ei=S(()=>ja.test(u(An).toLowerCase())||$a.test(u(An).slice(0,4).toLowerCase())),tn=S(()=>nr(u(Xs))),Ka=S(()=>u(Ei)&&!u(tn)),Ur=S(()=>{var n;return!!((n=u(Wt))!=null&&n.webkitConvertPointFromNodeToPage)}),kc=S(()=>u(tn)?"ios":u(Ka)?"android":"web"),Lc=S(()=>{let n=u(Wt).matchMedia("(pointer: coarse)");return Pi(_e(n,"change").pipe(I(()=>n.matches)),{initialValue:n.matches})}),qa=S(()=>!!u(Wt).Cypress),Za=S(he),Hc=S(()=>u(qa)||u(Za)),as=dt(null);function xc(n){return{provide:as,useValue:n}}var Uc=S(()=>zs(u(Ps))?new Range:{}),Br=new Z("[TUI_WINDOW_SIZE]",{factory:()=>{let n=u(Wt);return B(n,"resize").pipe(it(null),I(()=>{var s,r;let t=Math.max(n.document.documentElement.clientWidth||0,n.innerWidth||0,((s=n.visualViewport)==null?void 0:s.width)||0),i=Math.max(n.document.documentElement.clientHeight||0,n.innerHeight||0,((r=n.visualViewport)==null?void 0:r.height)||0),e={width:t,height:i,top:0,left:0,right:t,bottom:i,x:0,y:0};return Ne(bt({},e),{toJSON:()=>JSON.stringify(e)})}),Ii({bufferSize:1,refCount:!0}))}});var Kt=(()=>{let t=class t{constructor(){var e;this.control=u(ze,{optional:!0,self:!0}),this.active$=u(xr),this.zone=u(nt),this.el=N(),this.tuiActiveZoneParent=null,this.subActiveZones=[],this.directParentActiveZone=u(t,{skipSelf:!0,optional:!0}),this.tuiActiveZoneChange=this.active$.pipe(I(s=>!!s&&this.contains(s)),it(!1),j(),Ai(1),ii(s=>{var r;!s&&typeof((r=this.control)==null?void 0:r.valueAccessor.onTouched)=="function"&&this.control.valueAccessor.onTouched()}),vt(this.zone)),(e=this.directParentActiveZone)==null||e.addSubActiveZone(this)}set tuiActiveZoneParentSetter(e){this.setZone(e)}ngOnDestroy(){var e,s;(e=this.directParentActiveZone)==null||e.removeSubActiveZone(this),(s=this.tuiActiveZoneParent)==null||s.removeSubActiveZone(this)}contains(e){return this.el.contains(e)||this.subActiveZones.some((s,r,o)=>o.indexOf(s)===r&&s.contains(e))}setZone(e){var s;(s=this.tuiActiveZoneParent)==null||s.removeSubActiveZone(this),e==null||e.addSubActiveZone(this),this.tuiActiveZoneParent=e}addSubActiveZone(e){this.subActiveZones=[...this.subActiveZones,e]}removeSubActiveZone(e){this.subActiveZones=js(this.subActiveZones,this.subActiveZones.indexOf(e))}};t.\u0275fac=function(s){return new(s||t)},t.\u0275dir=C({type:t,selectors:[["","tuiActiveZone","",5,"ng-container"],["","tuiActiveZoneChange","",5,"ng-container"],["","tuiActiveZoneParent","",5,"ng-container"]],hostBindings:function(s,r){s&1&&ht("mousedown.silent",function(){return 0},!1,be)},inputs:{tuiActiveZoneParentSetter:[0,"tuiActiveZoneParent","tuiActiveZoneParentSetter"]},outputs:{tuiActiveZoneChange:"tuiActiveZoneChange"},exportAs:["tuiActiveZone"],standalone:!0});let n=t;return At([zt],n.prototype,"setZone",null),n})();var b="{{duration}}ms ease-in-out",O={params:{duration:300}},rt=300,ls=H("tuiParentAnimation",[D(":leave",[q(":scope > *",[xi()],{optional:!0})])]),Jc=H("tuiParentStop",[D(":enter",[])]),tu=H("tuiHost",[D(":enter",[d({overflow:"clip"}),q(":scope > *",[xi()],{optional:!0})]),D(":leave",[q(":scope > *",[xi()],{optional:!0})])]),eu=H("tuiHeightCollapse",[D(":enter",[d({height:0}),T(b,d({height:"*"}))],O),D(":leave",[d({height:"*"}),T(b,d({height:0}))],O)]),iu=H("tuiHeightCollapseList",[D("* => *",[q(":enter",[d({height:0}),tt(rt,[T(b,d({height:"*"}))])],{optional:!0}),q(":leave",[d({height:"*"}),tt(rt,[T(b,d({height:0}))])],{optional:!0})],O)]),nu=H("tuiWidthCollapse",[D(":enter",[d({width:0}),T(b,d({width:"*"}))],O),D(":leave",[d({width:"*"}),T(b,d({width:0}))],O)]),su=H("tuiWidthCollapseList",[D("* => *",[q(":enter",[d({width:0}),tt(rt,[T(b,d({width:"*"}))])],{optional:!0}),q(":leave",[d({width:"*"}),tt(rt,[T(b,d({width:0}))])],{optional:!0})],O)]),en=H("tuiFadeIn",[D(":enter",[d({opacity:0}),T(b,d({opacity:1}))],O),D(":leave",[d({opacity:1}),T(b,d({opacity:0}))],O)]),ru=H("tuiFadeInList",[D("* => *",[q(":enter",[d({opacity:0}),tt(rt,[T(b,d({opacity:1}))])],{optional:!0}),q(":leave",[d({opacity:1}),tt(rt,[T(b,d({opacity:0}))])],{optional:!0})],O)]),ou=H("tuiFadeInTop",[D(":enter",[d({transform:"translateY(-10px)",opacity:0}),T(b,d({transform:"translateY(0)",opacity:1}))],O),D(":leave",[d({transform:"translateY(0)",opacity:1}),T(b,d({transform:"translateY(-10px)",opacity:0}))],O)]),au=H("tuiFadeInBottom",[D(":enter",[d({transform:"translateY(10px)",opacity:0}),T(b,d({transform:"translateY(0)",opacity:1}))],O),D(":leave",[d({transform:"translateY(0)",opacity:1}),T(b,d({transform:"translateY(10px)",opacity:0}))],O)]),zr=H("tuiDropdownAnimation",[D(":enter",[d({transform:"translateY(-10px)",opacity:0}),T(b,d({transform:"translateY(0)",opacity:1}))],O),D(":leave",[d({transform:"translateY(0)",opacity:1}),T(b,d({transform:"translateY(-10px)",opacity:0}))],O)]),lu=H("tuiScaleIn",[D(":enter",[d({transform:"scale(0)"}),T(b,d({transform:"scale(1)"}))],O),D(":leave",[d({transform:"scale(1)"}),T(b,d({transform:"scale(0)"}))],O)]),cu=H("tuiPop",[D(":enter",[d({transform:"scale(0)"}),T(b,d({transform:"scale(1.1)"})),T(b,d({transform:"scale(1)"}))],O),D(":leave",[d({transform:"scale(1)"}),T(b,d({transform:"scale(1.1)"})),T(b,d({transform:"scale(0)"}))],O)]),uu=H("tuiScaleInList",[D("* => *",[q(":enter",[d({transform:"scale(0)"}),tt(rt,[T(b,d({transform:"scale(1)"}))])],{optional:!0}),q(":leave",[d({transform:"scale(1)"}),tt(rt,[T(b,d({transform:"scale(0)"}))])],{optional:!0})],O)]),hu=H("tuiSlideIn",[D("* => left",[d({transform:"translateX(-100%)"}),T(b,d({transform:"translateX(0)"}))],O),D("left => *",[d({transform:"translateX(0)"}),T(b,d({transform:"translateX(-100%)"}))],O),D("* => right",[d({transform:"translateX(100%)"}),T(b,d({transform:"translateX(0)"}))],O),D("right => *",[d({transform:"translateX(0)"}),T(b,d({transform:"translateX(100%)"}))],O)]),du=H("tuiSlideInLeft",[D(":enter",[d({transform:"translateX(-100%)"}),T(b,d({transform:"translateX(0)"}))],O),D(":leave",[d({transform:"translateX(0)"}),T(b,d({transform:"translateX(-100%)"}))],O)]),pu=H("tuiSlideInLeftList",[D("* => *",[q(":enter",[d({transform:"translateX(-100%)"}),tt(rt,[T(b,d({transform:"translateX(0)"}))])],{optional:!0}),q(":leave",[d({transform:"translateX(0)"}),tt(rt,[T(b,d({transform:"translateX(-100%)"}))])],{optional:!0})],O)]),fu=H("tuiSlideInRight",[D(":enter",[d({transform:"translateX(100%)"}),T(b,d({transform:"translateX(0)"}))],O),D(":leave",[d({transform:"translateX(0)"}),T(b,d({transform:"translateX(100%)"}))],O)]),mu=H("tuiSlideInRightList",[D("* => *",[q(":enter",[d({transform:"translateX(100%)"}),tt(rt,[T(b,d({transform:"translateX(0)"}))])],{optional:!0}),q(":leave",[d({transform:"translateX(0)"}),tt(rt,[T(b,d({transform:"translateX(100%)"}))])],{optional:!0})],O)]),gu=H("tuiSlideInTop",[D(":enter",[d({transform:"translate3d(0,{{start}},0)",pointerEvents:"none"}),T(b,d({transform:"translate3d(0,{{end}},0)"}))],{params:{end:0,start:"100%",duration:300}}),D(":leave",[d({transform:"translate3d(0,{{end}},0)"}),T(b,d({transform:"translate3d(0,{{start}},0)"}))],{params:{end:0,start:"100%",duration:300}})]),yu=H("tuiSlideInTopList",[D("* => *",[q(":enter",[d({transform:"translateY(100%)"}),tt(rt,[T(b,d({transform:"translateY(0)"}))])],{optional:!0}),q(":leave",[d({transform:"translateY(0)"}),tt(rt,[T(b,d({transform:"translateY(100%)"}))])],{optional:!0})],O)]),vu=H("tuiSlideInBottom",[D(":enter",[d({transform:"translateY(-100%)"}),T(b,d({transform:"translateY(0)"}))],O),D(":leave",[d({transform:"translateY(0)"}),T(b,d({transform:"translateY(-100%)"}))],O)]),_u=H("tuiSlideInBottomList",[D("* => *",[q(":enter",[d({transform:"translateY(-100%)"}),tt(rt,[T(b,d({transform:"translateY(0)"}))])],{optional:!0}),q(":leave",[d({transform:"translateY(0)"}),tt(rt,[T(b,d({transform:"translateY(-100%)"}))])],{optional:!0})],O)]);var nn=class{},Rt=class extends nn{},Nt=class extends nn{};function Vr(n,t,i){return{provide:n,deps:[[new Le,new Ot,n],i],useFactory:Si(t)}}function Si(n){return(t,i)=>{var e;return((e=t==null?void 0:t.find)==null?void 0:e.call(t,s=>s!==i&&s.type===n))||i}}function rn(n,t){return Vr(Rt,n,t)}function on(n,t){return Vr(Nt,n,t)}function Wr(n){return J(Rt,n,!0)}function Qe(n){return J(Nt,n,!0)}var sn=class{};function an(n){return J(sn,n,!0)}var fe=class extends It{};function Oe(n){return J(fe,n,!0)}var ln=(()=>{let t=class t{constructor(){this.destroyRef=u(re),this.drivers=u(fe),this.vehicles=u(sn)}ngOnInit(){let e=this.vehicles.find(({type:s})=>s===this.type);Y(...this.drivers.filter(({type:s})=>s===this.type)).pipe(j(),st(this.destroyRef)).subscribe(s=>{e==null||e.toggle(s)})}};t.\u0275fac=function(s){return new(s||t)},t.\u0275dir=C({type:t});let n=t;return n})();function cs(n){return!!n&&(Ga(n)||cs(n.parentElement))}function Ga(n){var t;return((t=n.ownerDocument.defaultView)==null?void 0:t.getComputedStyle(n).getPropertyValue("position"))==="fixed"}function Iu({document:n,innerWidth:t}){return Math.max(n.documentElement.clientWidth||0,t||0)}var Xa=["Spacebar","Backspace","Delete","ArrowLeft","ArrowRight","Left","Right","End","Home"];function $r(n=""){return n.length===1||Xa.includes(n)}function us(n,t="tui-hints"){var i;return!!((i=Ri(n))!=null&&i.some(e=>!e.closest(t)))}function cn(n,t){return(i,e)=>{let s=i||bt({},e||t);return Object.keys(n).forEach(r=>{s[r]=n[r]}),s}}var jr={xxs:0,xs:1,s:2,m:3,l:4,xl:5,xxl:6};function Mu(n,t="s"){return jr[n]>jr[t]}var Ya=300;function Ge(n){return{value:"",params:{duration:Ja(n)}}}function Ja(n){return n&&Ya/n}function tl(n,t){if(n&1){let i=En();Mt(0,"div",3),ht("mousedown.capture.prevent",function(){return wn(i),Tn(0)}),He(1,"div",4),Pt()}if(n&2){let i=ce().ngIf,e=ce();Bt("t-bar_has-horizontal",i[1]),K("@tuiFadeIn",e.options)}}function el(n,t){if(n&1){let i=En();Mt(0,"div",5),ht("mousedown.capture.prevent",function(){return wn(i),Tn(0)}),He(1,"div",6),Pt()}if(n&2){let i=ce().ngIf,e=ce();Bt("t-bar_has-vertical",i[0]),K("@tuiFadeIn",e.options)}}function il(n,t){if(n&1&&(ri(0),lt(1,tl,2,3,"div",1)(2,el,2,3,"div",2),oi()),n&2){let i=t.ngIf;at(),K("ngIf",i[0]),at(),K("ngIf",i[1])}}var nl=["*"];function sl(n,t){if(n&1&&He(0,"tui-scroll-controls",2),n&2){let i=ce();Bt("t-hover-mode",i.options.mode==="hover")}}var Kr=(()=>{let t=class t extends It{constructor(){super(e=>this.scroll$.subscribe(e)),this.el=N(),this.element=u($e).nativeElement,this.scroll$=Y(B(this.el.parentElement,"mousedown").pipe(I(e=>this.getScrolled(e,.5,.5))),B(this.el,"mousedown").pipe(pi(u(nt)),ft(e=>{let{ownerDocument:s}=this.el,r=this.el.getBoundingClientRect(),o=rl(e,r),a=ol(e,r);return B(s,"mousemove").pipe(I(l=>this.getScrolled(l,o,a)),ie(B(s,"mouseup")))})))}getScrolled({clientY:e,clientX:s},r,o){let{offsetHeight:a,offsetWidth:l}=this.el,{top:c,left:h,width:p,height:y}=this.el.parentElement.getBoundingClientRect(),m=this.element.scrollHeight-y,f=this.element.scrollWidth-p,v=(e-c-a*r)/(y-a),A=(s-h-l*o)/(p-l);return[m*v,f*A]}};t.\u0275fac=function(s){return new(s||t)},t.\u0275prov=F({token:t,factory:t.\u0275fac});let n=t;return n})();function rl({clientY:n},{top:t,height:i}){return(n-t)/i}function ol({clientX:n},{left:t,width:i}){return(n-t)/i}var un=24,al=(()=>{let t=class t{constructor(){this.el=u($e).nativeElement,this.style=N().style,this.scrollSub=u(Kr).pipe(st()).subscribe(([e,s])=>{this.el.style.scrollBehavior="auto",this.el.scrollTo({top:e,left:s}),this.el.style.scrollBehavior=""}),this.styleSub=Y(u(De).pipe(Te(100)),Js(this.el)).pipe(pi(u(nt)),st()).subscribe(()=>{let e={scrollTop:this.el.scrollTop,scrollHeight:this.el.scrollHeight,clientHeight:this.el.clientHeight,scrollLeft:this.el.scrollLeft,scrollWidth:this.el.scrollWidth,clientWidth:this.el.clientWidth};this.tuiScrollbar==="vertical"?(this.style.top=`${this.getThumb(e)*100}%`,this.style.height=`${this.getView(e)*100}%`):(this.style.left=`${this.getThumb(e)*100}%`,this.style.width=`${this.getView(e)*100}%`)}),this.tuiScrollbar="vertical"}getScrolled(e){return this.tuiScrollbar==="vertical"?e.scrollTop/(e.scrollHeight-e.clientHeight):e.scrollLeft/(e.scrollWidth-e.clientWidth)}getCompensation(e){return e.clientHeight*e.clientHeight/e.scrollHeight>un&&this.tuiScrollbar==="vertical"||e.clientWidth*e.clientWidth/e.scrollWidth>un&&this.tuiScrollbar==="horizontal"?0:this.tuiScrollbar==="vertical"?un/e.clientHeight:un/e.clientWidth}getThumb(e){let s=this.getCompensation(e)||this.getView(e);return this.getScrolled(e)*(1-s)}getView(e){return this.tuiScrollbar==="vertical"?Math.ceil(e.clientHeight/e.scrollHeight*100)/100:Math.ceil(e.clientWidth/e.scrollWidth*100)/100}};t.\u0275fac=function(s){return new(s||t)},t.\u0275dir=C({type:t,selectors:[["","tuiScrollbar",""]],inputs:{tuiScrollbar:"tuiScrollbar"},standalone:!0,features:[R([Kr])]});let n=t;return n})(),ll=(()=>{let t=class t{constructor(){this.scrollRef=u($e).nativeElement,this.options=Ge(u(je)),this.refresh$=u(De).pipe(Te(300),I(()=>this.scrollbars),it([!1,!1]),j((e,s)=>e[0]===s[0]&&e[1]===s[1]),vt(u(nt)))}get scrollbars(){let{clientHeight:e,scrollHeight:s,clientWidth:r,scrollWidth:o}=this.scrollRef;return[Math.ceil(e/s*100)<100,Math.ceil(r/o*100)<100]}};t.\u0275fac=function(s){return new(s||t)},t.\u0275cmp=mt({type:t,selectors:[["tui-scroll-controls"]],standalone:!0,features:[gt],decls:2,vars:3,consts:[[4,"ngIf"],["class","t-bar t-bar_vertical",3,"t-bar_has-horizontal","mousedown.capture.prevent",4,"ngIf"],["class","t-bar t-bar_horizontal",3,"t-bar_has-vertical","mousedown.capture.prevent",4,"ngIf"],[1,"t-bar","t-bar_vertical",3,"mousedown.capture.prevent"],["tuiScrollbar","vertical",1,"t-thumb"],[1,"t-bar","t-bar_horizontal",3,"mousedown.capture.prevent"],["tuiScrollbar","horizontal",1,"t-thumb"]],template:function(s,r){s&1&&(lt(0,il,3,2,"ng-container",0),ks(1,"async")),s&2&&K("ngIf",Ls(1,1,r.refresh$))},dependencies:[hi,Bs,al],styles:["[_nghost-%COMP%]{position:sticky;top:0;left:0;z-index:1;min-width:calc(100% - 1px);min-height:calc(100% - 1px);max-width:calc(100% - 1px);max-height:calc(100% - 1px);float:left;margin-inline-end:calc(-100% + 1px);pointer-events:none}.t-bar[_ngcontent-%COMP%]{position:absolute;right:0;bottom:0;pointer-events:auto}.t-bar_vertical[_ngcontent-%COMP%]{top:0;width:.875rem}.t-bar_horizontal[_ngcontent-%COMP%]{left:0;height:.875rem}.t-bar_has-horizontal[_ngcontent-%COMP%]{bottom:.5rem}.t-bar_has-vertical[_ngcontent-%COMP%]{right:.5rem}.t-thumb[_ngcontent-%COMP%]{transition-property:all;transition-duration:.15s;transition-timing-function:ease-in-out;position:absolute;border-radius:6.25rem;border:.25rem solid transparent;cursor:pointer;pointer-events:auto;-webkit-user-select:none;user-select:none;background:currentColor;background-clip:content-box;box-sizing:border-box;transition-property:width,height,opacity;opacity:.2}.t-thumb[_ngcontent-%COMP%]:hover{opacity:.24}.t-thumb[_ngcontent-%COMP%]:active{opacity:.48}.t-bar_vertical[_ngcontent-%COMP%] .t-thumb[_ngcontent-%COMP%]{right:0;width:.75rem;min-height:1.25rem}.t-bar_vertical[_ngcontent-%COMP%]:hover .t-thumb[_ngcontent-%COMP%], .t-bar_vertical[_ngcontent-%COMP%] .t-thumb[_ngcontent-%COMP%]:active{width:.875rem}.t-bar_horizontal[_ngcontent-%COMP%] .t-thumb[_ngcontent-%COMP%]{bottom:0;height:.75rem;min-width:1.25rem}.t-bar_horizontal[_ngcontent-%COMP%]:hover .t-thumb[_ngcontent-%COMP%], .t-bar_horizontal[_ngcontent-%COMP%] .t-thumb[_ngcontent-%COMP%]:active{height:.875rem}"],data:{animation:[en]},changeDetection:0});let n=t;return n})(),cl={mode:"always"},ul=dt(cl);var hl="tui-scroll-into-view",dl="tui-scrollable",Zr=(()=>{let t=class t{constructor(){this.el=N(),this.options=u(ul),this.isIOS=u(tn),this.browserScrollRef=new ni(this.el),this.hidden=!1}get delegated(){return this.browserScrollRef.nativeElement!==this.el}onScrollable(e){this.browserScrollRef.nativeElement=e}scrollIntoView(e){var m;if(this.delegated)return;let{nativeElement:s}=this.browserScrollRef,{offsetTop:r,offsetLeft:o}=$s(s,e),{clientHeight:a,clientWidth:l}=s,{offsetHeight:c,offsetWidth:h}=e,p=r+c/2-a/2,y=o+h/2-l/2;(m=s.scrollTo)==null||m.call(s,y,p)}};t.\u0275fac=function(s){return new(s||t)},t.\u0275cmp=mt({type:t,selectors:[["tui-scrollbar"]],hostVars:2,hostBindings:function(s,r){s&1&&ht("tui-scrollable.stop",function(a){return r.onScrollable(a.detail)})("tui-scroll-into-view.stop",function(a){return r.scrollIntoView(a.detail)}),s&2&&Bt("_native-hidden",!r.isIOS||r.hidden)},inputs:{hidden:"hidden"},standalone:!0,features:[R([{provide:$e,useFactory:()=>u(t).browserScrollRef}]),gt],ngContentSelectors:nl,decls:3,vars:3,consts:[["class","t-bars",3,"t-hover-mode",4,"ngIf"],[1,"t-content"],[1,"t-bars"]],template:function(s,r){s&1&&(Qt(),lt(0,sl,1,2,"tui-scroll-controls",0),Mt(1,"div",1),Gt(2),Pt()),s&2&&(K("ngIf",!r.hidden&&!r.isIOS),at(),Bt("t-content_delegated",r.delegated))},dependencies:[ll,hi],styles:["[_nghost-%COMP%]{position:relative;display:flex;isolation:isolate;overflow:auto}._native-hidden[_nghost-%COMP%]{scrollbar-width:none;-ms-overflow-style:none}._native-hidden[_nghost-%COMP%]::-webkit-scrollbar, ._native-hidden[_nghost-%COMP%]::-webkit-scrollbar-thumb{display:none}[_nghost-%COMP%] .t-hover-mode[_ngcontent-%COMP%]:not(:active){transition-property:opacity;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;opacity:0}[_nghost-%COMP%]:hover .t-hover-mode[_ngcontent-%COMP%]{transition-property:opacity;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;opacity:1}.t-content[_ngcontent-%COMP%]{isolation:isolate;flex:1;flex-basis:auto;width:100%;height:-webkit-max-content;height:max-content}.t-content_delegated[_ngcontent-%COMP%]{height:100%}.t-bars[_ngcontent-%COMP%]{color:var(--tui-text-primary)}"],changeDetection:0});let n=t;return n})(),Gu=(()=>{let t=class t{constructor(){this.el=N(),this.destroyRef=u(re)}set tuiScrollIntoView(e){e&&we(0).pipe(st(this.destroyRef)).subscribe(()=>{this.el.dispatchEvent(new CustomEvent(hl,{bubbles:!0,detail:this.el}))})}};t.\u0275fac=function(s){return new(s||t)},t.\u0275dir=C({type:t,selectors:[["","tuiScrollIntoView",""]],inputs:{tuiScrollIntoView:"tuiScrollIntoView"},standalone:!0});let n=t;return n})();var Xu=(()=>{let t=class t{};t.\u0275fac=function(s){return new(s||t)},t.\u0275dir=C({type:t,selectors:[["","tuiScrollRef",""]],standalone:!0,features:[R([J($e,ni)])]});let n=t;return n})(),Yu=(()=>{let t=class t{constructor(){this.el=N()}ngOnInit(){this.el.dispatchEvent(new CustomEvent(dl,{bubbles:!0,detail:this.el}))}};t.\u0275fac=function(s){return new(s||t)},t.\u0275dir=C({type:t,selectors:[["","tuiScrollable",""]],standalone:!0});let n=t;return n})();var uh=(()=>{let t=class t extends It{constructor(){super(e=>this.stream$.subscribe(e)),this.media=u(er),this.sorted=Object.values(this.media).sort((e,s)=>e-s),this.invert=Object.keys(this.media).reduce((e,s)=>Ne(bt({},e),{[this.media[s]]:s}),{}),this.stream$=u(Br).pipe(I(({width:e})=>this.sorted.find(s=>s>e)),I(e=>this.invert[e||this.sorted[this.sorted.length-1]]),j(),vt(u(nt)),Ii({bufferSize:1,refCount:!0}))}};t.\u0275fac=function(s){return new(s||t)},t.\u0275prov=F({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})();var hh=(()=>{let t=class t{constructor(){this.locale=u(xs)}format(e){return ct(new Date(e).toLocaleTimeString(this.locale,{hour:"numeric",minute:"2-digit"}))}};t.\u0275fac=function(s){return new(s||t)},t.\u0275prov=F({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})(),Xe=(()=>{let t=class t extends It{constructor(){let e=u(De),s=u(nt);super(r=>e.pipe(it(null),I(()=>this.accessor.getPosition(this.el.getBoundingClientRect())),pi(s),Ds(()=>this.accessor.getPosition(Vt))).subscribe(r)),this.el=N(),this.accessor=u(Rt)}};t.\u0275fac=function(s){return new(s||t)},t.\u0275prov=F({token:t,factory:t.\u0275fac});let n=t;return n})(),hn=(()=>{let t=class t{constructor(){this.isWebkit=u(Ur),this.win=u(Wt)}correct(e){var s,r;return this.isWebkit?[e[0]+(((s=this.win.visualViewport)==null?void 0:s.offsetTop)??0),e[1]+(((r=this.win.visualViewport)==null?void 0:r.offsetLeft)??0)]:e}};t.\u0275fac=function(s){return new(s||t)},t.\u0275prov=F({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})();var pn=new Z("POLYMORPHEUS_CONTEXT"),Yt=class{constructor(t,i){X(this,"component");X(this,"i");this.component=t,this.i=i}createInjector(t,i){return Os.create({parent:this.i||t,providers:[{provide:pn,useValue:i}]})}},dn=class{constructor(t){X(this,"$implicit");this.$implicit=t}get polymorpheusOutlet(){return this.$implicit}};var ds=(()=>{let t=class t{constructor(e=u(Ut,{self:!0}),s=u(yt)){X(this,"template");X(this,"cdr");X(this,"polymorpheus","");this.template=e,this.cdr=s}static ngTemplateContextGuard(e,s){return!0}check(){this.cdr.markForCheck()}};X(t,"\u0275fac",function(s){return new(s||t)(bn(Ut),bn(yt))}),X(t,"\u0275dir",C({type:t,selectors:[["ng-template","polymorpheus",""]],inputs:{polymorpheus:"polymorpheus"},exportAs:["polymorpheus"],standalone:!0}));let n=t;return n})(),Jt=(()=>{let t=class t{constructor(){X(this,"vcr",u(si));X(this,"i",u(ne));X(this,"t",u(Ut));X(this,"c");X(this,"content","");X(this,"context")}static ngTemplateContextGuard(e,s){return!0}ngOnChanges({content:e}){var o;let s=this.getContext();if((o=this.c)==null||o.injector.get(yt).markForCheck(),!e)return;this.vcr.clear();let r=s&&new Proxy(s,{get:(a,l)=>{var c;return(c=this.getContext())==null?void 0:c[l]}});Qr(this.content)?this.process(this.content,r):(s instanceof dn&&s.$implicit)!=null&&this.vcr.createEmbeddedView(this.template,r,{injector:this.i})}ngDoCheck(){hs(this.content)&&this.content.check()}get template(){return hs(this.content)?this.content.template:this.content instanceof Ut?this.content:this.t}getContext(){return pl(this.content)||Qr(this.content)?this.context:new dn(this.context&&typeof this.content=="function"?this.content(this.context):this.content)}process(e,s){let r=e.createInjector(this.i,s);this.c=this.vcr.createComponent(e.component,{injector:r})}};X(t,"\u0275fac",function(s){return new(s||t)}),X(t,"\u0275dir",C({type:t,selectors:[["","polymorpheusOutlet",""]],inputs:{content:[0,"polymorpheusOutlet","content"],context:[0,"polymorpheusOutletContext","context"]},standalone:!0,features:[se]}));let n=t;return n})();function hs(n){return n instanceof ds}function Qr(n){return n instanceof Yt}function pl(n){return hs(n)||n instanceof Ut}var fl=["viewContainer"],ps=class{},Gr={self:!0,optional:!0},ml=(()=>{let t=class t{constructor(){this.fallback=u(as,Gr),this.refresh$=new xt,this.pseudoInvalid=oe(null),this.internal=oe(this.fallback),this.control=u(ze,{self:!0}),this.destroyRef=u(re),this.cdr=u(yt),this.transformer=u(ps,Gr),this.value=ue(()=>this.internal()??this.fallback),this.readOnly=oe(!1),this.touched=oe(!1),this.status=oe(void 0),this.disabled=ue(()=>this.status()==="DISABLED"),this.interactive=ue(()=>!this.disabled()&&!this.readOnly()),this.invalid=ue(()=>this.pseudoInvalid()!==null?!!this.pseudoInvalid()&&this.interactive():this.interactive()&&this.touched()&&this.status()==="INVALID"),this.mode=ue(()=>this.readOnly()?"readonly":this.invalid()?"invalid":"valid"),this.onTouched=In,this.onChange=In,this.control.valueAccessor=this,this.refresh$.pipe(ke(0),it(null),I(()=>this.control.control),ut(Boolean),j(),ft(e=>Y(e.valueChanges,e.statusChanges)),st(this.destroyRef)).subscribe(()=>this.update())}set readOnlySetter(e){this.readOnly.set(e)}set invalidSetter(e){this.pseudoInvalid.set(e)}registerOnChange(e){this.refresh$.next(),this.onChange=s=>{s!==this.internal()&&(e(this.toControlValue(s)),this.internal.set(s),this.update())}}registerOnTouched(e){this.onTouched=()=>{e(),this.update()}}setDisabledState(){this.update()}writeValue(e){let s=this.control instanceof Ws?this.control.model:e;this.internal.set(this.fromControlValue(s)),this.update()}fromControlValue(e){return this.transformer?this.transformer.fromControlValue(e):e}toControlValue(e){return this.transformer?this.transformer.toControlValue(e):e}update(){var e,s;this.status.set((e=this.control.control)==null?void 0:e.status),this.touched.set(!!((s=this.control.control)!=null&&s.touched)),this.cdr.markForCheck()}};t.\u0275fac=function(s){return new(s||t)},t.\u0275dir=C({type:t,inputs:{readOnlySetter:[0,"readOnly","readOnlySetter"],invalidSetter:[0,"invalid","invalidSetter"]}});let n=t;return At([zt],n.prototype,"fromControlValue",null),At([zt],n.prototype,"toControlValue",null),n})();function Ph(n){return J(ml,n)}var Yr=(()=>{let t=class t{constructor(){this.injector=u(ne),this.nothing=u(fn).attach(this)}addComponentChild(e){let s=e.createInjector(this.injector),r=this.vcr.createComponent(e.component,{injector:s});return r.changeDetectorRef.detectChanges(),r}addTemplateChild(e,s){return this.vcr.createEmbeddedView(e,s)}};t.\u0275fac=function(s){return new(s||t)},t.\u0275dir=C({type:t,viewQuery:function(s,r){if(s&1&&Rs(fl,5,si),s&2){let o;xe(o=Ue())&&(r.vcr=o.first)}}});let n=t;return n})(),fn=(()=>{let t=class t{attach(e){this.host=e}add(e){return this.safeHost.addComponentChild(e)}remove({hostView:e}){e.destroyed||e.destroy()}addTemplate(e,s){return this.safeHost.addTemplateChild(e,s)}removeTemplate(e){e.destroyed||e.destroy()}get safeHost(){if(!this.host)throw new fs;return this.host}};t.\u0275fac=function(s){return new(s||t)},t.\u0275prov=F({token:t,factory:t.\u0275fac});let n=t;return n})();function Jr(n){return J(fn,n)}var fs=class extends Error{constructor(){super("")}},Xr=class{constructor(t,i={}){this.message=t,this.context=i}};var te=class{supports(t){return t.includes(this.modifier)}unwrap(t){return t.split(".").filter(i=>!this.modifier.includes(i)).join(".")}},gl=new Z("[GLOBAL_HANDLER]: Global event target handler",{factory:()=>{let n=u(Ee);return t=>t==="body"?n.body:n.defaultView[t]||n.createElement("div")}}),yl=(()=>{let t=class t extends te{constructor(){super(...arguments),this.handler=u(gl),this.modifier=">"}addEventListener(e,s,r){return this.manager.addEventListener(this.handler(s.split(">")[0]),s.split(">")[1],r)}};t.\u0275fac=(()=>{let e;return function(r){return(e||(e=$(t)))(r||t)}})(),t.\u0275prov=F({token:t,factory:t.\u0275fac});let n=t;return n})(),vl=(()=>{let t=class t extends te{constructor(){super(...arguments),this.modifier="capture.once.passive"}supports(e){return e.includes(".")&&!this.unwrap(e).includes(".")}addEventListener(e,s,r){return e.addEventListener(this.unwrap(s),r,{once:s.includes(".once"),passive:s.includes(".passive"),capture:s.includes(".capture")}),()=>e.removeEventListener(this.unwrap(s),r,s.includes(".capture"))}};t.\u0275fac=(()=>{let e;return function(r){return(e||(e=$(t)))(r||t)}})(),t.\u0275prov=F({token:t,factory:t.\u0275fac});let n=t;return n})(),_l=(()=>{let t=class t extends te{constructor(){super(...arguments),this.modifier=".prevent"}addEventListener(e,s,r){return this.manager.addEventListener(e,this.unwrap(s),o=>{o.preventDefault(),r(o)})}};t.\u0275fac=(()=>{let e;return function(r){return(e||(e=$(t)))(r||t)}})(),t.\u0275prov=F({token:t,factory:t.\u0275fac});let n=t;return n})(),wl=(()=>{let t=class t extends te{constructor(){super(...arguments),this.modifier="resize"}supports(e){return e==="resize"}addEventListener(e,s,r){if(typeof ResizeObserver>"u"||!(e instanceof Element))return()=>{};let o=new ResizeObserver(a=>this.manager.getZone().run(()=>r(a)));return o.observe(e),()=>o.disconnect()}};t.\u0275fac=(()=>{let e;return function(r){return(e||(e=$(t)))(r||t)}})(),t.\u0275prov=F({token:t,factory:t.\u0275fac});let n=t;return n})(),Tl=(()=>{let t=class t extends te{constructor(){super(...arguments),this.modifier=".self"}addEventListener(e,s,r){return this.manager.addEventListener(e,this.unwrap(s),o=>{o.target===o.currentTarget&&r(o)})}};t.\u0275fac=(()=>{let e;return function(r){return(e||(e=$(t)))(r||t)}})(),t.\u0275prov=F({token:t,factory:t.\u0275fac});let n=t;return n})(),ms=(()=>{let t=class t extends te{constructor(){super(...arguments),this.modifier=".silent"}addEventListener(e,s,r){return t.ngZone=this.manager.getZone(),t.ngZone.runOutsideAngular(()=>this.manager.addEventListener(e,this.unwrap(s),r))}};t.\u0275fac=(()=>{let e;return function(r){return(e||(e=$(t)))(r||t)}})(),t.\u0275prov=F({token:t,factory:t.\u0275fac});let n=t;return n})(),bl=(()=>{let t=class t extends te{constructor(){super(...arguments),this.modifier=".stop"}addEventListener(e,s,r){return this.manager.addEventListener(e,this.unwrap(s),o=>{o.stopPropagation(),r(o)})}};t.\u0275fac=(()=>{let e;return function(r){return(e||(e=$(t)))(r||t)}})(),t.\u0275prov=F({token:t,factory:t.\u0275fac});let n=t;return n})(),El=[ms,yl,vl,_l,wl,Tl,bl],Hh=El.map(n=>({provide:Vs,multi:!0,useClass:n}));function to(n){return(t,i,e)=>{let{value:s}=e;e.value=function(...r){n.apply(this,r)&&(ms.ngZone?ms.ngZone.run(()=>s.apply(this,r)):s.apply(this,r))}}}var eo=(()=>{let t=class t extends It{constructor(){super(e=>this.obscured$.subscribe(e)),this.el=N(),this.obscured$=u(De).pipe(Te(100),I(()=>Ri(this.el)),it(null),j(),vt(u(nt)))}};t.\u0275fac=function(s){return new(s||t)},t.\u0275prov=F({token:t,factory:t.\u0275fac});let n=t;return n})(),mn=(()=>{let t=class t{constructor(){this.activeZone=u(Kt,{optional:!0}),this.enabled$=new xt,this.obscured$=u(eo,{self:!0}).pipe(I(e=>!!(e!=null&&e.every(s=>{var r;return!((r=this.activeZone)!=null&&r.contains(s))})))),this.tuiObscured=this.enabled$.pipe(ki(()=>this.obscured$))}set tuiObscuredEnabled(e){this.enabled$.next(e)}};t.\u0275fac=function(s){return new(s||t)},t.\u0275dir=C({type:t,selectors:[["","tuiObscured",""]],inputs:{tuiObscuredEnabled:"tuiObscuredEnabled"},outputs:{tuiObscured:"tuiObscured"},standalone:!0,features:[R([eo])]});let n=t;return n})();var Dl=n=>({$implicit:n});function Cl(n,t){if(n&1&&(Mt(0,"div",2),ci(1),Pt()),n&2){let i=t.polymorpheusOutlet;at(),ui(" ",i," ")}}var Il=["tuiDropdownHost"],Al=["*"],Ye=(()=>{let t=class t extends xt{constructor(){super(...arguments),this.type="dropdown"}};t.\u0275fac=(()=>{let e;return function(r){return(e||(e=$(t)))(r||t)}})(),t.\u0275prov=F({token:t,factory:t.\u0275fac});let n=t;return n})(),Ol=(()=>{let t=class t extends ln{constructor(){super(...arguments),this.type="dropdown"}};t.\u0275fac=(()=>{let e;return function(r){return(e||(e=$(t)))(r||t)}})(),t.\u0275dir=C({type:t,selectors:[["","tuiDropdownDriver",""]],standalone:!0,features:[Et]});let n=t;return n})(),yn=S(()=>Fl),Ml=new Z(""),io=(()=>{let t=class t extends fn{};t.\u0275fac=(()=>{let e;return function(r){return(e||(e=$(t)))(r||t)}})(),t.\u0275prov=F({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})(),no={align:"left",direction:null,limitWidth:"auto",maxHeight:400,minHeight:80,offset:4,appearance:""},Me=dt(no),kd=n=>({provide:Me,deps:[[new Ot,Pl],[new Ot,new Le,Me]],useFactory:cn(n,no)}),Pl=(()=>{let t=class t{constructor(){this.options=u(Me,{skipSelf:!0}),this.align=this.options.align,this.appearance=this.options.appearance,this.direction=this.options.direction,this.limitWidth=this.options.limitWidth,this.minHeight=this.options.minHeight,this.maxHeight=this.options.maxHeight,this.offset=this.options.offset}};t.\u0275fac=function(s){return new(s||t)},t.\u0275dir=C({type:t,selectors:[["","tuiDropdownAlign",""],["","tuiDropdownAppearance",""],["","tuiDropdownDirection",""],["","tuiDropdownLimitWidth",""],["","tuiDropdownMinHeight",""],["","tuiDropdownMaxHeight",""],["","tuiDropdownOffset",""]],inputs:{align:[0,"tuiDropdownAlign","align"],appearance:[0,"tuiDropdownAppearance","appearance"],direction:[0,"tuiDropdownDirection","direction"],limitWidth:[0,"tuiDropdownLimitWidth","limitWidth"],minHeight:[0,"tuiDropdownMinHeight","minHeight"],maxHeight:[0,"tuiDropdownMaxHeight","maxHeight"],offset:[0,"tuiDropdownOffset","offset"]},standalone:!0,features:[R([J(Me,t)])]});let n=t;return n})(),gn=(()=>{let t=class t extends Rt{constructor(){super(...arguments),this.options=u(Me),this.viewport=u(Ke),this.type="dropdown",this.accessor=Si("dropdown")(u(Nt),u(Je,{optional:!0}))}getPosition({width:e,height:s}){var W;!e&&!s&&(this.previous=void 0);let r=((W=this.accessor)==null?void 0:W.getClientRect())??Vt,o=this.viewport.getClientRect(),{minHeight:a,align:l,direction:c,offset:h,limitWidth:p}=this.options,y={top:o.top-h,bottom:o.bottom+h,right:o.right-h,left:o.left+h},m=this.previous||c||"bottom",f={top:r.top-2*h-y.top,bottom:y.bottom-r.bottom-2*h},v=p==="fixed"?r.width:e,A=Math.max(r.right-v,h),k=r.left+ef.bottom?"top":"bottom";return f[m]>a&&c||f[m]>s?[L[m],L[l]]:(this.previous=z,[L[z],L[l]])}};t.\u0275fac=(()=>{let e;return function(r){return(e||(e=$(t)))(r||t)}})(),t.\u0275dir=C({type:t,selectors:[["","tuiDropdownPosition",""]],standalone:!0,features:[Et]});let n=t;return n})(),Je=(()=>{let t=class t{constructor(){this.refresh$=new xt,this.service=u(io),this.cdr=u(yt),this.sub=this.refresh$.pipe(Te(0),st()).subscribe(()=>{var e,s;(e=this.ref())==null||e.changeDetectorRef.detectChanges(),(s=this.ref())==null||s.changeDetectorRef.markForCheck()}),this.el=N(),this.type="dropdown",this.component=new Yt(u(yn),u(ne)),this.ref=oe(null)}set tuiDropdown(e){this.content=e instanceof Ut?new ds(e,this.cdr):e}get position(){return cs(this.el)?"fixed":"absolute"}ngAfterViewChecked(){this.refresh$.next()}ngOnChanges(){this.content||this.toggle(!1)}ngOnDestroy(){this.toggle(!1)}getClientRect(){return this.el.getBoundingClientRect()}toggle(e){let s=this.ref();e&&this.content&&!s?this.ref.set(this.service.add(this.component)):!e&&s&&(this.ref.set(null),this.service.remove(s))}};t.\u0275fac=function(s){return new(s||t)},t.\u0275dir=C({type:t,selectors:[["","tuiDropdown","",5,"ng-container",5,"ng-template"]],inputs:{tuiDropdown:"tuiDropdown"},exportAs:["tuiDropdown"],standalone:!0,features:[R([Qe(t),an(t)]),ae([Ol,gn]),se]});let n=t;return At([zt],n.prototype,"position",null),n})(),Fl=(()=>{let t=class t{constructor(){var e;this.el=N(),this.accessor=u(Nt),this.win=u(Wt),this.vvs=u(hn),this.animation=Ge(u(je)),this.options=u(Me),this.directive=u(Je),this.context=u(Ml,{optional:!0}),this.theme=(e=this.directive.el.closest("[tuiTheme]"))==null?void 0:e.getAttribute("tuiTheme"),this.sub=u(Xe).pipe(Oi(()=>this.directive.el.isConnected),I(s=>this.directive.position==="fixed"?this.vvs.correct(s):s),I(([s,r])=>this.getStyles(s,r)),st()).subscribe({next:s=>Object.assign(this.el.style,s),complete:()=>this.close()}),this.close=()=>this.directive.toggle(!1)}getStyles(e,s){var z;let{right:r}=this.el.getBoundingClientRect(),{maxHeight:o,minHeight:a,offset:l,limitWidth:c}=this.options,{innerHeight:h}=this.win,p=(z=this.el.offsetParent)==null?void 0:z.getBoundingClientRect(),{position:y}=this.directive,m=this.accessor.getClientRect(),f=y==="fixed"?0:-((p==null?void 0:p.left)||0),v=y==="fixed"?0:-((p==null?void 0:p.top)||0);e+=v,s+=f;let A=r<=m.left||s>=m.right,L=sm.left&&e{let t=class t{constructor(){this.directive=u(Je),this.el=N(),this.obscured=u(mn),this.dropdown=ue(()=>{var e;return(e=this.directive.ref())==null?void 0:e.location.nativeElement}),this.sub=Y(this.obscured.tuiObscured.pipe(ut(Boolean)),u(Kt).tuiActiveZoneChange.pipe(ut(e=>!e)),_e(this.el,"focusin").pipe(I(We),ut(e=>!this.host.contains(e)||!this.directive.ref()))).pipe(On(u(yt)),st()).subscribe(()=>this.toggle(!1)),this.tuiDropdownEnabled=!0,this.tuiDropdownOpen=!1,this.tuiDropdownOpenChange=new Ms,this.driver=u(Ye)}ngOnChanges(){this.drive()}toggle(e){this.focused&&!e&&this.host.focus({preventScroll:!0}),this.update(e)}onEsc(e){e.preventDefault(),this.toggle(!1)}onClick(e){!this.editable&&this.host.contains(e)&&this.update(!this.tuiDropdownOpen)}onArrow(e,s){!di(e.target)||!this.host.contains(e.target)||!this.tuiDropdownEnabled||(e.preventDefault(),this.focusDropdown(s))}onKeydown({key:e,target:s,defaultPrevented:r}){r||!$r(e)||!this.editable||!this.focused||!Se(s)||Dn(s)&&s!==this.host||(this.update(!0),this.host.focus({preventScroll:!0}))}get host(){var r,o;let e=((r=this.dropdownHost)==null?void 0:r.nativeElement)||this.el,s=Hi(e)?e:Mn({initial:e,root:this.el});return((o=this.dropdownHost)==null?void 0:o.nativeElement)||s||this.el}get editable(){return Dn(this.host)}get focused(){return mi(this.host)||mi(this.dropdown())}update(e){e&&!this.tuiDropdownEnabled||(this.tuiDropdownOpen=e,this.tuiDropdownOpenChange.emit(e),this.drive())}drive(e=this.tuiDropdownOpen&&this.tuiDropdownEnabled){this.obscured.tuiObscuredEnabled=!!e,this.driver.next(!!e)}focusDropdown(e){let s=this.dropdown();if(!s){this.update(!0);return}let r=this.el.ownerDocument,o=s.appendChild(r.createElement("div")),l=Mn({initial:e?o:s,previous:e,root:s});o.remove(),l==null||l.focus()}};t.\u0275fac=function(s){return new(s||t)},t.\u0275dir=C({type:t,selectors:[["","tuiDropdown","","tuiDropdownOpen",""],["","tuiDropdown","","tuiDropdownOpenChange",""]],contentQueries:function(s,r,o){if(s&1&&Mi(o,Il,5,ni),s&2){let a;xe(a=Ue())&&(r.dropdownHost=a.first)}},hostBindings:function(s,r){s&1&&ht("click",function(a){return r.onClick(a.target)})("keydown.arrowDown",function(a){return r.onArrow(a,!1)})("keydown.arrowUp",function(a){return r.onArrow(a,!0)})("keydown.silent.capture",function(a){return r.onEsc(a)},!1,be)("keydown.silent",function(a){return r.onKeydown(a)},!1,be)},inputs:{tuiDropdownEnabled:"tuiDropdownEnabled",tuiDropdownOpen:"tuiDropdownOpen"},outputs:{tuiDropdownOpenChange:"tuiDropdownOpenChange"},standalone:!0,features:[R([Ye,Oe(Ye)]),ae([mn,{directive:Kt,inputs:["tuiActiveZoneParent","tuiActiveZoneParent"],outputs:["tuiActiveZoneChange","tuiActiveZoneChange"]}]),se]});let n=t;return At([to(Nl)],n.prototype,"onEsc",null),n})();var xd=(()=>{let t=class t{constructor(){this.driver=u(Ye),this.tuiDropdownManual=!1}ngOnChanges(){this.driver.next(!!this.tuiDropdownManual)}};t.\u0275fac=function(s){return new(s||t)},t.\u0275dir=C({type:t,selectors:[["","tuiDropdownManual",""]],inputs:{tuiDropdownManual:"tuiDropdownManual"},standalone:!0,features:[R([Ye,Oe(Ye)]),se]});let n=t;return n})(),Ud=(()=>{let t=class t{constructor(){this.tuiDropdownOpenChange=new ve(!1)}set tuiDropdownOpen(e){this.tuiDropdownOpenChange.next(e)}};t.\u0275fac=function(s){return new(s||t)},t.\u0275dir=C({type:t,selectors:[["","tuiDropdownOpen","",3,"tuiDropdown",""],["","tuiDropdownOpenChange","",3,"tuiDropdown",""]],inputs:{tuiDropdownOpen:"tuiDropdownOpen"},outputs:{tuiDropdownOpenChange:"tuiDropdownOpenChange"},standalone:!0});let n=t;return n})();var Bd=(()=>{let t=class t extends Rt{constructor(){super(...arguments),this.options=u(Me),this.viewport=u(Ke),this.vertical=u(gn),this.previous=this.options.direction||"bottom",this.tuiDropdownSided="",this.tuiDropdownSidedOffset=4,this.type="dropdown"}getPosition(e){var k;if(this.tuiDropdownSided===!1)return this.vertical.getPosition(e);let{height:s,width:r}=e,o=((k=this.vertical.accessor)==null?void 0:k.getClientRect())??Vt,a=this.viewport.getClientRect(),{direction:l,minHeight:c,offset:h}=this.options,p=this.options.align==="center"?"left":this.options.align,y={top:o.bottom-a.top,left:o.left-h-a.left,right:a.right-o.right-h,bottom:a.bottom-o.top},m={top:o.bottom-s+this.tuiDropdownSidedOffset+1,left:o.left-r-h,right:o.right+h,bottom:o.top-this.tuiDropdownSidedOffset-1},f=y.top>y.bottom?"top":"bottom",v=y.left>y.right?m.left:m.right,A=y[p]>r?m[p]:v;return y[this.previous]>c&&l||this.previous===f?[m[this.previous],A]:(this.previous=f,[m[f],A])}};t.\u0275fac=(()=>{let e;return function(r){return(e||(e=$(t)))(r||t)}})(),t.\u0275dir=C({type:t,selectors:[["","tuiDropdownSided",""]],inputs:{tuiDropdownSided:"tuiDropdownSided",tuiDropdownSidedOffset:"tuiDropdownSidedOffset"},standalone:!0,features:[R([gn,Wr(t)]),Et]});let n=t;return n})();var zd=(()=>{let t=class t extends Yr{};t.\u0275fac=(()=>{let e;return function(r){return(e||(e=$(t)))(r||t)}})(),t.\u0275cmp=mt({type:t,selectors:[["tui-dropdowns"]],standalone:!0,features:[R([Jr(io)]),Et,gt],ngContentSelectors:Al,decls:3,vars:0,consts:[["viewContainer",""]],template:function(s,r){s&1&&(Qt(),Gt(0),ai(1,null,0))},styles:["[_nghost-%COMP%]{display:block;height:100%;isolation:isolate}"],changeDetection:0});let n=t;return n})();var kl=new Z("[TUI_CALENDAR_DATE_STREAM]");function Jd(n){return{provide:kl,deps:[[new Ot,new As,ze],[new Ot,n]],useFactory:Ll}}function Ll(n,t){return n?Ys(n).pipe(I(i=>t?t==null?void 0:t.fromControlValue(i):i)):ct(null)}var tp=new Z("[TUI_DATE_VALUE_TRANSFORMER]"),ep=new Z("[TUI_DATE_RANGE_VALUE_TRANSFORMER]"),ip=new Z("[TUI_DATE_TIME_VALUE_TRANSFORMER]"),np=new Z("[TUI_TIME_VALUE_TRANSFORMER]"),sp=S(x("confirm")),rp=S(x("cancel")),op=S(x("done")),ap=S(x("more")),lp=S(x("hide")),cp=S(x("showAll")),up=S(x("otherDate")),hp=S(x("mobileCalendarTexts")),dp=S(x("range")),pp=S(x("countTexts")),fp=S(x("time")),mp=S(x("dateTexts")),gp=S(x("digitalInformationUnits")),yp=S(x("copyTexts")),vp=S(x("passwordTexts")),_p=S(x("shortCalendarMonths")),wp=S(x("fileTexts")),Tp=S(x("pagination")),bp=S(x("inputFileTexts")),Ep=S(x("multiSelectTexts")),Sp=S(x("countries")),Dp=S(x("previewTexts")),Cp=S(x("zoomTexts")),Hl={icon:()=>"@tui.calendar",min:Qs,max:Gs,nativePicker:!1},Ip=dt(Hl);var xl={stringify:String,identityMatcher:qs,disabledItemHandler:he},Ap=dt(xl);var Ul=new Z("[TUI_MOBILE_CALENDAR]"),Op={provide:yn,useFactory:()=>u(Ei)&&u(Ul,{optional:!0})||u(yn,{skipSelf:!0})},Bl={rotate:"@tui.rotate-ccw-square",prev:"@tui.arrow-left",next:"@tui.arrow-right",zoomIn:"@tui.plus",zoomOut:"@tui.minus",zoomReset:"@tui.minimize"},Mp=dt(Bl);var Pp=dt({});var zl=["tuiOption",""],so=["*"],Vl=n=>({$implicit:n});function Wl(n,t){if(n&1&&(ri(0),ci(1),oi()),n&2){let i=t.polymorpheusOutlet;at(),ui(" ",i," ")}}function jl(n,t){n&1&&Gt(0)}function $l(n,t){if(n&1&&(ri(0),ci(1),oi()),n&2){let i=t.polymorpheusOutlet;at(),ui(" ",i," ")}}function Kl(n,t){if(n&1&&(Mt(0,"div",1),lt(1,$l,2,1,"ng-container",2),Pt()),n&2){let i=ce();at(),K("polymorpheusOutlet",i.emptyContent||i.fallback())}}var ro=new Z("[TUI_OPTION_CONTENT]");function Xp(n){return{provide:ro,useValue:n}}var ql=new Z("[TUI_DATA_LIST_ACCESSOR]");function Zl(n){return J(ql,n)}var gs=new Z("[TUI_DATA_LIST_HOST]");function Yp(n){return J(gs,n)}var Ql=(()=>{let t=class t{constructor(){var e;this.isMobile=u(Ei),this.el=N(),this.dataList=u(Is(()=>Xl),{optional:!0}),this.host=u(gs,{optional:!0}),this.content=u(ro,{optional:!0}),this.dropdown=(e=u(Je,{self:!0,optional:!0}))==null?void 0:e.ref,this.disabled=!1}ngOnDestroy(){var e;(e=this.dataList)==null||e.handleFocusLossIfNecessary(this.el)}onClick(){var e;(e=this.host)!=null&&e.handleOption&&this.value!==void 0&&this.host.handleOption(this.value)}onMouseMove(){!this.isMobile&&!fi(this.el)&&this.dataList&&this.el.focus({preventScroll:!0})}};t.\u0275fac=function(s){return new(s||t)},t.\u0275cmp=mt({type:t,selectors:[["button","tuiOption",""],["a","tuiOption",""],["label","tuiOption",""]],hostAttrs:["type","button","role","option"],hostVars:3,hostBindings:function(s,r){s&1&&ht("click",function(){return r.onClick()})("mousemove.silent",function(){return r.onMouseMove()}),s&2&&(le("disabled",r.disabled||null),Bt("_with-dropdown",r.dropdown==null?null:r.dropdown()))},inputs:{disabled:"disabled",value:"value"},standalone:!0,features:[ae([ir]),gt],attrs:zl,ngContentSelectors:so,decls:3,vars:4,consts:[["t",""],[4,"polymorpheusOutlet","polymorpheusOutletContext"]],template:function(s,r){if(s&1&&(Qt(),lt(0,Wl,2,1,"ng-container",1)(1,jl,1,0,"ng-template",null,0,Hs)),s&2){let o=Ns(2);K("polymorpheusOutlet",r.content||o)("polymorpheusOutletContext",Be(2,Vl,o))}},dependencies:[Jt],encapsulation:2,changeDetection:0});let n=t;return n})();function Gl(){var i;let n=["s","m","l"],t=(i=u(gs,{optional:!0}))==null?void 0:i.size;return t&&n.includes(t)?t:"l"}var Xl=(()=>{let t=class t{constructor(){this.options=Ks,this.el=N(),this.fallback=Pi(u(tr)),this.empty=!0,this.size=Gl()}onKeyDownArrow(e,s){let{elements:r}=this;sr(r.indexOf(e),r,s)}handleFocusLossIfNecessary(e=this.el){var s;mi(e)&&((s=this.origin)==null||s.focus({preventScroll:!0}))}ngAfterContentChecked(){this.empty=!this.el.querySelector("[tuiOption]")}getOptions(e=!1){return this.options.filter(({disabled:s})=>e||!s).map(({value:s})=>s).filter(Fi)}onFocusIn(e,s){!s.contains(e)&&!this.origin&&(this.origin=e)}get elements(){return Array.from(this.el.querySelectorAll("a[tuiOption],button[tuiOption],input"))}};t.\u0275fac=function(s){return new(s||t)},t.\u0275cmp=mt({type:t,selectors:[["tui-data-list"]],contentQueries:function(s,r,o){if(s&1&&Mi(o,Ql,5),s&2){let a;xe(a=Ue())&&(r.options=a)}},hostAttrs:["role","listbox"],hostVars:1,hostBindings:function(s,r){s&1&&ht("focusin",function(a){return r.onFocusIn(a.relatedTarget,a.currentTarget)})("mousedown.prevent",function(){return 0})("wheel.silent.passive",function(){return r.handleFocusLossIfNecessary()})("mouseleave",function(a){return r.handleFocusLossIfNecessary(a.target)})("keydown.tab",function(){return r.handleFocusLossIfNecessary()})("keydown.shift.tab",function(){return r.handleFocusLossIfNecessary()})("keydown.arrowDown.prevent",function(a){return r.onKeyDownArrow(a.target,1)})("keydown.arrowUp.prevent",function(a){return r.onKeyDownArrow(a.target,-1)}),s&2&&le("data-size",r.size)},inputs:{emptyContent:"emptyContent",size:"size"},standalone:!0,features:[R([Zl(t)]),gt],ngContentSelectors:so,decls:2,vars:1,consts:[["class","t-empty",4,"ngIf"],[1,"t-empty"],[4,"polymorpheusOutlet"]],template:function(s,r){s&1&&(Qt(),Gt(0),lt(1,Kl,2,1,"div",0)),s&2&&(at(),K("ngIf",r.empty))},dependencies:[hi,Jt],styles:[`tui-data-list{--tui-data-list-padding: .25rem;--tui-data-list-margin: .0625rem;display:flex;font:var(--tui-font-text-m);flex-direction:column;padding:calc(var(--tui-data-list-padding) - var(--tui-data-list-margin)) var(--tui-data-list-padding);color:var(--tui-text-tertiary)}tui-data-list:focus-within .t-trap{display:none}tui-data-list:focus-within [tuiOption]._with-dropdown:not(:focus){background-color:transparent}tui-data-list[data-size=s]{--tui-data-list-margin: var(--t-0, 0rem)}tui-data-list[data-size=s]>.t-empty,tui-data-list[data-size=s] [tuiOption]{font:var(--tui-font-text-s);min-height:2rem;padding:.3125rem .5rem}tui-data-list[data-size=s]>.t-empty:before,tui-data-list[data-size=s] [tuiOption]:before{font-size:1rem}tui-data-list[data-size=m]>.t-empty,tui-data-list[data-size=m] [tuiOption]{font:var(--tui-font-text-s);min-height:2.5rem;padding:.375rem .5rem}tui-data-list[data-size=l]{--tui-data-list-padding: .375rem;--tui-data-list-margin: .125rem}tui-data-list[data-size=l]>.t-empty,tui-data-list[data-size=l] [tuiOption]{font:var(--tui-font-text-m);min-height:2.75rem;padding:.375rem .625rem}tui-data-list>.t-empty{display:flex;align-items:center;box-sizing:border-box;margin:var(--tui-data-list-margin) 0}tui-data-list [tuiOption]{-webkit-appearance:none;appearance:none;padding:0;border:0;background:none;font-size:inherit;line-height:inherit;text-decoration:none;transition-property:background;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;display:flex;align-items:center;box-sizing:border-box;margin:var(--tui-data-list-margin) 0;justify-content:space-between;text-align:left;color:var(--tui-text-primary);border-radius:var(--tui-radius-s);outline:none;cursor:pointer;background-clip:padding-box}tui-data-list [tuiOption]:disabled{opacity:var(--tui-disabled-opacity);cursor:default}tui-data-list [tuiOption]:focus-within,tui-data-list [tuiOption]._with-dropdown{background-color:var(--tui-background-neutral-1)}tui-data-list [tuiOption]:before{margin-inline-end:.5rem}tui-data-list [tuiOption]:after{font-size:1rem;margin:0 -.75rem 0 auto;border-left:.5rem solid;border-right:.5rem solid}tui-opt-group{position:relative;display:flex;font:var(--tui-font-text-xs);color:var(--tui-text-secondary);flex-direction:column;line-height:1rem}tui-data-list[data-size=l] tui-opt-group{font:var(--tui-font-text-s);line-height:1.25rem}tui-data-list[data-size=l] tui-opt-group:before{padding-left:.625rem;padding-right:.625rem}tui-data-list[data-size=l] tui-opt-group:after{left:.625rem;right:.625rem}tui-opt-group:empty:before,tui-opt-group:empty:after{display:none}tui-opt-group:before{content:attr(data-label);padding:var(--tui-data-list-padding) .5rem var(--tui-data-list-padding);margin:var(--tui-data-list-margin) 0;white-space:normal;word-break:break-word}tui-opt-group:after{position:absolute;left:.5rem;right:.5rem;top:var(--tui-data-list-padding);height:1px;background:var(--tui-border-normal)}tui-opt-group:not(:empty)~tui-opt-group:before{padding-top:calc(.75rem + var(--tui-data-list-padding))}tui-opt-group:not(:empty)~tui-opt-group[data-label=""]:before,tui-opt-group:not(:empty)~tui-opt-group:not([data-label]):before{padding:var(--tui-data-list-padding) 0}tui-opt-group:not(:empty)~tui-opt-group:after{content:""}tui-opt-group[data-label=""]:before,tui-opt-group:not([data-label]):before{padding:0;margin:0} -`],encapsulation:2,changeDetection:0});let n=t;return n})(),Jp=(()=>{let t=class t{};t.\u0275fac=function(s){return new(s||t)},t.\u0275dir=C({type:t,selectors:[["ng-template","tuiDataList",""]],standalone:!0});let n=t;return n})();var tf=(()=>{let t=class t{};t.\u0275fac=function(s){return new(s||t)},t.\u0275dir=C({type:t,selectors:[["tui-opt-group"]],hostAttrs:["role","group"],hostVars:1,hostBindings:function(s,r){s&2&&le("data-label",r.label)},inputs:{label:"label"},standalone:!0});let n=t;return n})();function Yl({currentTarget:n,relatedTarget:t}){return!di(t)||!di(n)||!n.contains(t)}var Pe=(()=>{let t=class t extends It{constructor(){super(e=>this.stream$.subscribe(e)),this.el=N(),this.zone=u(nt),this.stream$=Y(B(this.el,"mouseenter").pipe(I(Ni)),B(this.el,"mouseleave").pipe(I(he)),B(this.el,"mouseout").pipe(ut(Yl),I(he))).pipe(j(),vt(this.zone))}};t.\u0275fac=function(s){return new(s||t)},t.\u0275prov=F({token:t,factory:t.\u0275fac});let n=t;return n})();var hf=(()=>{let t=class t{constructor(){this.tuiHoveredChange=u(Pe)}};t.\u0275fac=function(s){return new(s||t)},t.\u0275dir=C({type:t,selectors:[["","tuiHoveredChange",""]],outputs:{tuiHoveredChange:"tuiHoveredChange"},standalone:!0,features:[R([Pe])]});let n=t;return n})();function Jl(n,t){n&1&&ai(0)}var tc=["*"];function ec(n,t){if(n&1&&He(0,"span",1),n&2){let i=t.polymorpheusOutlet;K("innerHTML",i,Fs)}}var ic=n=>({$implicit:n});function nc(n,t){n&1&&ai(0)}function sc(n,t){if(n&1&&(Mt(0,"div",1),lt(1,nc,1,0,"ng-container",2),Pt()),n&2){let i=t.$implicit;K("@tuiParentAnimation",void 0)("tuiActiveZoneParent",i.activeZone||null),at(),K("polymorpheusOutlet",i.component)("polymorpheusOutletContext",Be(4,ic,i))}}var rc=S(()=>hc),lo=(()=>{let t=class t extends ve{constructor(){super([])}add(e){this.next(this.value.concat(e))}remove(e){this.value.includes(e)&&this.next(this.value.filter(s=>s!==e))}};t.\u0275fac=function(s){return new(s||t)},t.\u0275prov=F({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})(),oc=(()=>{let t=class t extends ln{constructor(){super(...arguments),this.type="hint"}};t.\u0275fac=(()=>{let e;return function(r){return(e||(e=$(t)))(r||t)}})(),t.\u0275dir=C({type:t,standalone:!0,features:[Et]});let n=t;return n})(),oo=["bottom-left","bottom","bottom-right","top-left","top","top-right","left-top","left","left-bottom","right-top","right","right-bottom"],co={direction:"bottom-left",showDelay:500,hideDelay:200,appearance:"",icon:"@tui.circle-help"},Fe=dt(co),xf=n=>({provide:Fe,deps:[[new Ot,ac],[new Ot,new Le,Fe]],useFactory:cn(n,co)}),ac=(()=>{let t=class t{constructor(){this.options=u(Fe,{skipSelf:!0}),this.direction=this.options.direction,this.appearance=this.options.appearance,this.showDelay=this.options.showDelay,this.hideDelay=this.options.hideDelay,this.icon=this.options.icon,this.change$=new xt}ngOnChanges(){this.change$.next()}};t.\u0275fac=function(s){return new(s||t)},t.\u0275dir=C({type:t,selectors:[["","tuiHintContent",""]],inputs:{content:[0,"tuiHintContent","content"],direction:[0,"tuiHintDirection","direction"],appearance:[0,"tuiHintAppearance","appearance"],showDelay:[0,"tuiHintShowDelay","showDelay"],hideDelay:[0,"tuiHintHideDelay","hideDelay"]},standalone:!0,features:[R([J(Fe,t)]),se]});let n=t;return n})(),ys=(()=>{let t=class t extends fe{constructor(){super(e=>this.stream$.subscribe(e)),this.el=N(),this.hovered$=u(Pe),this.options=u(Fe),this.visible=!1,this.toggle$=new xt,this.stream$=Y(this.toggle$.pipe(ft(e=>ct(e).pipe(ke(e?0:this.tuiHintHideDelay))),ie(this.hovered$),ei()),this.hovered$.pipe(ft(e=>ct(e).pipe(ke(e?this.tuiHintShowDelay:this.tuiHintHideDelay))),ie(this.toggle$),ei())).pipe(ut(()=>this.enabled),I(e=>e&&(this.el.hasAttribute("tuiHintPointer")||!us(this.el))),ii(e=>{this.visible=e})),this.parent=u(t,{optional:!0,skipSelf:!0}),this.tuiHintShowDelay=this.options.showDelay,this.tuiHintHideDelay=this.options.hideDelay,this.type="hint",this.enabled=!0}toggle(e=!this.visible){var s;this.toggle$.next(e),(s=this.parent)==null||s.toggle(e)}};t.\u0275fac=function(s){return new(s||t)},t.\u0275dir=C({type:t,inputs:{tuiHintShowDelay:"tuiHintShowDelay",tuiHintHideDelay:"tuiHintHideDelay"},exportAs:["tuiHintHover"],standalone:!0,features:[R([Oe(t),Pe]),Et]});let n=t;return n})(),me=8,vn=22,V=0,Q=1,uo=(()=>{let t=class t extends Rt{constructor(){super(...arguments),this.viewport=u(Ke),this.accessor=Si("hint")(u(Nt),u(ho)),this.points=oo.reduce((e,s)=>Ne(bt({},e),{[s]:[0,0]}),{}),this.direction=u(Fe).direction,this.type="hint"}getPosition({width:e,height:s}){let r=this.accessor.getClientRect()??Vt,o=r.left+r.width/2,a=r.top+r.height/2;if(this.points["top-left"][V]=r.top-s-me,this.points["top-left"][Q]=o-e+vn,this.points.top[V]=this.points["top-left"][V],this.points.top[Q]=o-e/2,this.points["top-right"][V]=this.points["top-left"][V],this.points["top-right"][Q]=o-vn,this.points["bottom-left"][V]=r.bottom+me,this.points["bottom-left"][Q]=this.points["top-left"][Q],this.points.bottom[V]=this.points["bottom-left"][V],this.points.bottom[Q]=this.points.top[Q],this.points["bottom-right"][V]=this.points["bottom-left"][V],this.points["bottom-right"][Q]=this.points["top-right"][Q],this.points["left-top"][V]=a-s+vn,this.points["left-top"][Q]=r.left-e-me,this.points.left[V]=a-s/2,this.points.left[Q]=this.points["left-top"][Q],this.points["left-bottom"][V]=a-vn,this.points["left-bottom"][Q]=this.points["left-top"][Q],this.points["right-top"][V]=this.points["left-top"][V],this.points["right-top"][Q]=r.right+me,this.points.right[V]=this.points.left[V],this.points.right[Q]=this.points["right-top"][Q],this.points["right-bottom"][V]=this.points["left-bottom"][V],this.points["right-bottom"][Q]=this.points["right-top"][Q],this.checkPosition(this.points[this.direction],e,s))return this.points[this.direction];let l=oo.find(c=>this.checkPosition(this.points[c],e,s));return this.points[l||this.fallback]}get fallback(){return this.points.top[V]>this.viewport.getClientRect().bottom-this.points.bottom[V]?"top":"bottom"}checkPosition([e,s],r,o){let a=this.viewport.getClientRect();return e>me/4&&s>me/4&&e+o{let e;return function(r){return(e||(e=$(t)))(r||t)}})(),t.\u0275dir=C({type:t,inputs:{direction:[0,"tuiHintDirection","direction"]},standalone:!0,features:[Et]});let n=t;return n})(),ho=(()=>{let t=class t{constructor(){this.service=u(lo),this.appearance=u(Fe).appearance,this.component=u(Yt),this.el=N(),this.activeZone=u(Kt,{optional:!0}),this.type="hint"}set tuiHint(e){this.content=e,e||this.toggle(!1)}ngOnDestroy(){this.toggle(!1)}getClientRect(){return this.el.getBoundingClientRect()}toggle(e){e&&this.content?this.service.add(this):this.service.remove(this)}};t.\u0275fac=function(s){return new(s||t)},t.\u0275dir=C({type:t,selectors:[["","tuiHint","",5,"ng-container",5,"ng-template"]],inputs:{context:[0,"tuiHintContext","context"],appearance:[0,"tuiHintAppearance","appearance"],tuiHint:"tuiHint"},standalone:!0,features:[R([Qe(t),an(t),{provide:Yt,deps:[rc,ne],useClass:Yt}]),ae([oc,{directive:ys,inputs:["tuiHintHideDelay","tuiHintHideDelay","tuiHintShowDelay","tuiHintShowDelay"]},{directive:uo,inputs:["tuiHintDirection","tuiHintDirection"]}])]});let n=t;return n})(),lc=(()=>{let t=class t extends ys{constructor(){super(...arguments),this.currentRect=Vt}getClientRect(){return this.currentRect}onMove({clientX:e,clientY:s}){this.currentRect=Cn(e,s)}};t.\u0275fac=(()=>{let e;return function(r){return(e||(e=$(t)))(r||t)}})(),t.\u0275dir=C({type:t,selectors:[["","tuiHint","","tuiHintPointer",""]],hostBindings:function(s,r){s&1&&ht("mousemove.silent",function(a){return r.onMove(a)})},standalone:!0,features:[R([Qe(t),Oe(t)]),Et]});let n=t;return n})(),cc=(()=>{let t=class t{constructor(){this.context=u(pn)}};t.\u0275fac=function(s){return new(s||t)},t.\u0275cmp=mt({type:t,selectors:[["ng-component"]],hostVars:1,hostBindings:function(s,r){s&2&&li("@tuiParentAnimation",void 0)},standalone:!0,features:[gt],decls:1,vars:1,consts:[[4,"polymorpheusOutlet"]],template:function(s,r){s&1&<(0,Jl,1,0,"ng-container",0),s&2&&K("polymorpheusOutlet",r.context.$implicit.content)},dependencies:[Jt],encapsulation:2,data:{animation:[ls]},changeDetection:0});let n=t;return n})();var ao=4,uc=[Xe,Pe,rn("hint",uo),on("hint",ho)],hc=(()=>{let t=class t{constructor(){var e;this.el=N(),this.hover=u(ys),this.vvs=u(hn),this.viewport=u(Ke),this.options=Ge(u(je)),this.pointer=u(lc,{optional:!0}),this.accessor=u(Nt),this.hint=u(pn).$implicit,this.appearance=this.hint.appearance||((e=this.hint.el.closest("[tuiTheme]"))==null?void 0:e.getAttribute("tuiTheme")),u(Xe).pipe(Oi(()=>this.hint.el.isConnected),I(s=>this.vvs.correct(s)),st()).subscribe({next:([s,r])=>this.update(s,r),complete:()=>this.hover.toggle(!1)}),u(Pe).pipe(st()).subscribe(s=>this.hover.toggle(s))}get content(){return this.hint.component.component===cc?"":this.hint.content}onClick(e){(!e.closest("tui-hint")&&!this.hint.el.contains(e)||us(this.hint.el))&&this.hover.toggle(!1)}apply(e,s,r,o){this.el.style.top=e,this.el.style.left=s,this.el.style.setProperty("--top",r),this.el.style.setProperty("--left",o)}update(e,s){let{height:r,width:o}=this.el.getBoundingClientRect(),a=this.accessor.getClientRect(),l=this.viewport.getClientRect();if(a===Vt||!r||!o)return;let c=Ve(s,ao,l.width-o-ao),[h,p]=this.vvs.correct([a.top+a.height/2-e,a.left+a.width/2-c]);this.apply(St(Math.round(e)),St(Math.round(c)),St(Math.round(Ve(h,1,r-1))),St(Math.round(Ve(p,1,o-1))))}};t.\u0275fac=function(s){return new(s||t)},t.\u0275cmp=mt({type:t,selectors:[["tui-hint"]],hostVars:5,hostBindings:function(s,r){s&1&&ht("click",function(a){return r.onClick(a.target)},!1,be),s&2&&(li("@tuiFadeIn",r.options),le("data-appearance",r.appearance)("tuiTheme",r.appearance),Bt("_untouchable",r.pointer))},standalone:!0,features:[R(uc),gt],ngContentSelectors:tc,decls:2,vars:2,consts:[[3,"innerHTML",4,"polymorpheusOutlet","polymorpheusOutletContext"],[3,"innerHTML"]],template:function(s,r){s&1&&(Qt(),Gt(0),lt(1,ec,1,1,"span",0)),s&2&&(at(),K("polymorpheusOutlet",r.content)("polymorpheusOutletContext",r.hint.context))},dependencies:[Jt],styles:['[_nghost-%COMP%]{position:absolute;max-width:18rem;min-height:var(--tui-height-m);padding:.75rem 1rem;background:var(--tui-background-accent-1);border-radius:var(--tui-radius-l);color:var(--tui-text-primary-on-accent-1);box-sizing:border-box;font:var(--tui-font-text-s);white-space:pre-line;word-wrap:break-word;line-height:1.25rem}[_nghost-%COMP%]:before{content:"";position:absolute;top:var(--top);left:var(--left);width:.5rem;height:.5rem;border-radius:.125rem;box-sizing:border-box;background:inherit;transform:translate(-50%,-50%) rotate(45deg)}[data-appearance=error][_nghost-%COMP%]{background:var(--tui-status-negative)}[data-appearance=dark][_nghost-%COMP%]{background:var(--tui-background-accent-opposite-hover);color:var(--tui-background-base);filter:drop-shadow(0 0 .125rem rgba(0,0,0,.16)) drop-shadow(0 1.5rem 1rem rgba(0,0,0,.03)) drop-shadow(0 .75rem .75rem rgba(0,0,0,.04)) drop-shadow(0 .25rem .375rem rgba(0,0,0,.05))}[_nghost-%COMP%]:not([style*=top]){visibility:hidden}._untouchable[_nghost-%COMP%]{pointer-events:none}'],data:{animation:[en]},changeDetection:0});let n=t;return At([zt],n.prototype,"apply",null),n})(),Uf=(()=>{let t=class t extends fe{constructor(){super(e=>this.stream$.subscribe(e)),this.doc=u(Ee),this.el=N(),this.id$=new ve(""),this.stream$=this.id$.pipe(j(),ki(()=>_e(this.doc,"keydown",{capture:!0}),Fi),ft(()=>this.focused?ct(!1):Y(B(this.doc,"keyup"),B(this.element,"blur")).pipe(I(()=>this.focused))),Es(e=>e?we(1e3):ct(null)),it(!1),j(),Ai(1),vt(u(nt))),this.type="hint"}set tuiHintDescribe(e){this.id$.next(e||"")}get element(){return this.doc.getElementById(this.id$.value||"")||this.el}get focused(){return fi(this.element)}};t.\u0275fac=function(s){return new(s||t)},t.\u0275dir=C({type:t,selectors:[["","tuiHintDescribe",""]],inputs:{tuiHintDescribe:"tuiHintDescribe"},standalone:!0,features:[R([Oe(t)]),Et]});let n=t;return At([zt],n.prototype,"element",null),n})(),Bf=(()=>{let t=class t extends Nt{constructor(){super(...arguments),this.type="hint"}getClientRect(){var e;return((e=this.tuiHintHost)==null?void 0:e.getBoundingClientRect())||Vt}};t.\u0275fac=(()=>{let e;return function(r){return(e||(e=$(t)))(r||t)}})(),t.\u0275dir=C({type:t,selectors:[["","tuiHint","","tuiHintHost",""]],inputs:{tuiHintHost:"tuiHintHost"},standalone:!0,features:[R([Qe(t)]),Et]});let n=t;return n})();var zf=(()=>{let t=class t{constructor(){this.hints$=u(lo),this.destroyRef=u(re),this.cdr=u(yt),this.hints=[]}ngOnInit(){this.hints$.pipe(st(this.destroyRef)).subscribe(e=>{this.hints=e,this.cdr.detectChanges()})}};t.\u0275fac=function(s){return new(s||t)},t.\u0275cmp=mt({type:t,selectors:[["tui-hints"]],hostAttrs:["aria-live","polite"],standalone:!0,features:[gt],decls:1,vars:1,consts:[["role","tooltip",3,"tuiActiveZoneParent",4,"ngFor","ngForOf"],["role","tooltip",3,"tuiActiveZoneParent"],[4,"polymorpheusOutlet","polymorpheusOutletContext"]],template:function(s,r){s&1&<(0,sc,2,6,"div",0),s&2&&K("ngForOf",r.hints)},dependencies:[Us,Kt,Jt],styles:["[_nghost-%COMP%]{position:fixed;top:0;left:0;width:100%;height:100%;height:0}"],data:{animation:[ls]}});let n=t;return n})();export{ls as a,tu as b,eu as c,en as d,fu as e,gu as f,Iu as g,Mu as h,Ge as i,Ja as j,pn as k,Yt as l,ds as m,Jt as n,nr as o,dc as p,Li as q,gc as r,Mn as s,fi as t,mi as u,sr as v,Yo as w,cr as x,Hn as y,hr as z,Xi as A,br as B,Er as C,Nc as D,Ei as E,tn as F,kc as G,xc as H,ll as I,Zr as J,Gu as K,Xu as L,Yu as M,Pe as N,hf as O,uh as P,hh as Q,ps as R,ml as S,Ph as T,Xr as U,Hh as V,Me as W,kd as X,Pl as Y,Je as Z,Fl as _,Hd as $,xd as aa,Ud as ba,Bd as ca,zd as da,Xp as ea,Zl as fa,gs as ga,Yp as ha,Ql as ia,Gl as ja,Xl as ka,Jp as la,tf as ma,xf as na,ac as oa,ys as pa,ho as qa,hc as ra,Uf as sa,Bf as ta,zf as ua,kl as va,Jd as wa,tp as xa,ep as ya,up as za,mp as Aa,vp as Ba,Ip as Ca,Ap as Da,Ul as Ea,Op as Fa,Pp as Ga}; +`],encapsulation:2,changeDetection:0});let n=t;return n})(),Jp=(()=>{let t=class t{};t.\u0275fac=function(s){return new(s||t)},t.\u0275dir=C({type:t,selectors:[["ng-template","tuiDataList",""]],standalone:!0});let n=t;return n})();var tf=(()=>{let t=class t{};t.\u0275fac=function(s){return new(s||t)},t.\u0275dir=C({type:t,selectors:[["tui-opt-group"]],hostAttrs:["role","group"],hostVars:1,hostBindings:function(s,r){s&2&&le("data-label",r.label)},inputs:{label:"label"},standalone:!0});let n=t;return n})();function Yl({currentTarget:n,relatedTarget:t}){return!di(t)||!di(n)||!n.contains(t)}var Pe=(()=>{let t=class t extends It{constructor(){super(e=>this.stream$.subscribe(e)),this.el=N(),this.zone=u(nt),this.stream$=Y(B(this.el,"mouseenter").pipe(I(Ni)),B(this.el,"mouseleave").pipe(I(he)),B(this.el,"mouseout").pipe(ut(Yl),I(he))).pipe(j(),vt(this.zone))}};t.\u0275fac=function(s){return new(s||t)},t.\u0275prov=F({token:t,factory:t.\u0275fac});let n=t;return n})();var hf=(()=>{let t=class t{constructor(){this.tuiHoveredChange=u(Pe)}};t.\u0275fac=function(s){return new(s||t)},t.\u0275dir=C({type:t,selectors:[["","tuiHoveredChange",""]],outputs:{tuiHoveredChange:"tuiHoveredChange"},standalone:!0,features:[R([Pe])]});let n=t;return n})();function Jl(n,t){n&1&&ai(0)}var tc=["*"];function ec(n,t){if(n&1&&He(0,"span",1),n&2){let i=t.polymorpheusOutlet;K("innerHTML",i,Fs)}}var ic=n=>({$implicit:n});function nc(n,t){n&1&&ai(0)}function sc(n,t){if(n&1&&(Mt(0,"div",1),lt(1,nc,1,0,"ng-container",2),Pt()),n&2){let i=t.$implicit;K("@tuiParentAnimation",void 0)("tuiActiveZoneParent",i.activeZone||null),at(),K("polymorpheusOutlet",i.component)("polymorpheusOutletContext",Be(4,ic,i))}}var rc=S(()=>hc),lo=(()=>{let t=class t extends ve{constructor(){super([])}add(e){this.next(this.value.concat(e))}remove(e){this.value.includes(e)&&this.next(this.value.filter(s=>s!==e))}};t.\u0275fac=function(s){return new(s||t)},t.\u0275prov=F({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})(),oc=(()=>{let t=class t extends ln{constructor(){super(...arguments),this.type="hint"}};t.\u0275fac=(()=>{let e;return function(r){return(e||(e=$(t)))(r||t)}})(),t.\u0275dir=C({type:t,standalone:!0,features:[Et]});let n=t;return n})(),oo=["bottom-left","bottom","bottom-right","top-left","top","top-right","left-top","left","left-bottom","right-top","right","right-bottom"],co={direction:"bottom-left",showDelay:500,hideDelay:200,appearance:"",icon:"@tui.circle-help"},Fe=dt(co),xf=n=>({provide:Fe,deps:[[new Ot,ac],[new Ot,new Le,Fe]],useFactory:cn(n,co)}),ac=(()=>{let t=class t{constructor(){this.options=u(Fe,{skipSelf:!0}),this.direction=this.options.direction,this.appearance=this.options.appearance,this.showDelay=this.options.showDelay,this.hideDelay=this.options.hideDelay,this.icon=this.options.icon,this.change$=new xt}ngOnChanges(){this.change$.next()}};t.\u0275fac=function(s){return new(s||t)},t.\u0275dir=C({type:t,selectors:[["","tuiHintContent",""]],inputs:{content:[0,"tuiHintContent","content"],direction:[0,"tuiHintDirection","direction"],appearance:[0,"tuiHintAppearance","appearance"],showDelay:[0,"tuiHintShowDelay","showDelay"],hideDelay:[0,"tuiHintHideDelay","hideDelay"]},standalone:!0,features:[R([J(Fe,t)]),se]});let n=t;return n})(),ys=(()=>{let t=class t extends fe{constructor(){super(e=>this.stream$.subscribe(e)),this.el=N(),this.hovered$=u(Pe),this.options=u(Fe),this.visible=!1,this.toggle$=new xt,this.stream$=Y(this.toggle$.pipe(ft(e=>ct(e).pipe(ke(e?0:this.tuiHintHideDelay))),ie(this.hovered$),ei()),this.hovered$.pipe(ft(e=>ct(e).pipe(ke(e?this.tuiHintShowDelay:this.tuiHintHideDelay))),ie(this.toggle$),ei())).pipe(ut(()=>this.enabled),I(e=>e&&(this.el.hasAttribute("tuiHintPointer")||!us(this.el))),ii(e=>{this.visible=e})),this.parent=u(t,{optional:!0,skipSelf:!0}),this.tuiHintShowDelay=this.options.showDelay,this.tuiHintHideDelay=this.options.hideDelay,this.type="hint",this.enabled=!0}toggle(e=!this.visible){var s;this.toggle$.next(e),(s=this.parent)==null||s.toggle(e)}};t.\u0275fac=function(s){return new(s||t)},t.\u0275dir=C({type:t,inputs:{tuiHintShowDelay:"tuiHintShowDelay",tuiHintHideDelay:"tuiHintHideDelay"},exportAs:["tuiHintHover"],standalone:!0,features:[R([Oe(t),Pe]),Et]});let n=t;return n})(),me=8,vn=22,V=0,Q=1,uo=(()=>{let t=class t extends Rt{constructor(){super(...arguments),this.viewport=u(Ke),this.accessor=Si("hint")(u(Nt),u(ho)),this.points=oo.reduce((e,s)=>Ne(bt({},e),{[s]:[0,0]}),{}),this.direction=u(Fe).direction,this.type="hint"}getPosition({width:e,height:s}){let r=this.accessor.getClientRect()??Vt,o=r.left+r.width/2,a=r.top+r.height/2;if(this.points["top-left"][V]=r.top-s-me,this.points["top-left"][Q]=o-e+vn,this.points.top[V]=this.points["top-left"][V],this.points.top[Q]=o-e/2,this.points["top-right"][V]=this.points["top-left"][V],this.points["top-right"][Q]=o-vn,this.points["bottom-left"][V]=r.bottom+me,this.points["bottom-left"][Q]=this.points["top-left"][Q],this.points.bottom[V]=this.points["bottom-left"][V],this.points.bottom[Q]=this.points.top[Q],this.points["bottom-right"][V]=this.points["bottom-left"][V],this.points["bottom-right"][Q]=this.points["top-right"][Q],this.points["left-top"][V]=a-s+vn,this.points["left-top"][Q]=r.left-e-me,this.points.left[V]=a-s/2,this.points.left[Q]=this.points["left-top"][Q],this.points["left-bottom"][V]=a-vn,this.points["left-bottom"][Q]=this.points["left-top"][Q],this.points["right-top"][V]=this.points["left-top"][V],this.points["right-top"][Q]=r.right+me,this.points.right[V]=this.points.left[V],this.points.right[Q]=this.points["right-top"][Q],this.points["right-bottom"][V]=this.points["left-bottom"][V],this.points["right-bottom"][Q]=this.points["right-top"][Q],this.checkPosition(this.points[this.direction],e,s))return this.points[this.direction];let l=oo.find(c=>this.checkPosition(this.points[c],e,s));return this.points[l||this.fallback]}get fallback(){return this.points.top[V]>this.viewport.getClientRect().bottom-this.points.bottom[V]?"top":"bottom"}checkPosition([e,s],r,o){let a=this.viewport.getClientRect();return e>me/4&&s>me/4&&e+o{let e;return function(r){return(e||(e=$(t)))(r||t)}})(),t.\u0275dir=C({type:t,inputs:{direction:[0,"tuiHintDirection","direction"]},standalone:!0,features:[Et]});let n=t;return n})(),ho=(()=>{let t=class t{constructor(){this.service=u(lo),this.appearance=u(Fe).appearance,this.component=u(Yt),this.el=N(),this.activeZone=u(Kt,{optional:!0}),this.type="hint"}set tuiHint(e){this.content=e,e||this.toggle(!1)}ngOnDestroy(){this.toggle(!1)}getClientRect(){return this.el.getBoundingClientRect()}toggle(e){e&&this.content?this.service.add(this):this.service.remove(this)}};t.\u0275fac=function(s){return new(s||t)},t.\u0275dir=C({type:t,selectors:[["","tuiHint","",5,"ng-container",5,"ng-template"]],inputs:{context:[0,"tuiHintContext","context"],appearance:[0,"tuiHintAppearance","appearance"],tuiHint:"tuiHint"},standalone:!0,features:[R([Qe(t),an(t),{provide:Yt,deps:[rc,ne],useClass:Yt}]),ae([oc,{directive:ys,inputs:["tuiHintHideDelay","tuiHintHideDelay","tuiHintShowDelay","tuiHintShowDelay"]},{directive:uo,inputs:["tuiHintDirection","tuiHintDirection"]}])]});let n=t;return n})(),lc=(()=>{let t=class t extends ys{constructor(){super(...arguments),this.currentRect=Vt}getClientRect(){return this.currentRect}onMove({clientX:e,clientY:s}){this.currentRect=Cn(e,s)}};t.\u0275fac=(()=>{let e;return function(r){return(e||(e=$(t)))(r||t)}})(),t.\u0275dir=C({type:t,selectors:[["","tuiHint","","tuiHintPointer",""]],hostBindings:function(s,r){s&1&&ht("mousemove.silent",function(a){return r.onMove(a)})},standalone:!0,features:[R([Qe(t),Oe(t)]),Et]});let n=t;return n})(),cc=(()=>{let t=class t{constructor(){this.context=u(pn)}};t.\u0275fac=function(s){return new(s||t)},t.\u0275cmp=mt({type:t,selectors:[["ng-component"]],hostVars:1,hostBindings:function(s,r){s&2&&li("@tuiParentAnimation",void 0)},standalone:!0,features:[gt],decls:1,vars:1,consts:[[4,"polymorpheusOutlet"]],template:function(s,r){s&1&<(0,Jl,1,0,"ng-container",0),s&2&&K("polymorpheusOutlet",r.context.$implicit.content)},dependencies:[Jt],encapsulation:2,data:{animation:[ls]},changeDetection:0});let n=t;return n})();var ao=4,uc=[Xe,Pe,rn("hint",uo),on("hint",ho)],hc=(()=>{let t=class t{constructor(){var e;this.el=N(),this.hover=u(ys),this.vvs=u(hn),this.viewport=u(Ke),this.options=Ge(u(je)),this.pointer=u(lc,{optional:!0}),this.accessor=u(Nt),this.hint=u(pn).$implicit,this.appearance=this.hint.appearance||((e=this.hint.el.closest("[tuiTheme]"))==null?void 0:e.getAttribute("tuiTheme")),u(Xe).pipe(Oi(()=>this.hint.el.isConnected),I(s=>this.vvs.correct(s)),st()).subscribe({next:([s,r])=>this.update(s,r),complete:()=>this.hover.toggle(!1)}),u(Pe).pipe(st()).subscribe(s=>this.hover.toggle(s))}get content(){return this.hint.component.component===cc?"":this.hint.content}onClick(e){(!e.closest("tui-hint")&&!this.hint.el.contains(e)||us(this.hint.el))&&this.hover.toggle(!1)}apply(e,s,r,o){this.el.style.top=e,this.el.style.left=s,this.el.style.setProperty("--top",r),this.el.style.setProperty("--left",o)}update(e,s){let{height:r,width:o}=this.el.getBoundingClientRect(),a=this.accessor.getClientRect(),l=this.viewport.getClientRect();if(a===Vt||!r||!o)return;let c=Ve(s,ao,l.width-o-ao),[h,p]=this.vvs.correct([a.top+a.height/2-e,a.left+a.width/2-c]);this.apply(St(Math.round(e)),St(Math.round(c)),St(Math.round(Ve(h,1,r-1))),St(Math.round(Ve(p,1,o-1))))}};t.\u0275fac=function(s){return new(s||t)},t.\u0275cmp=mt({type:t,selectors:[["tui-hint"]],hostVars:5,hostBindings:function(s,r){s&1&&ht("click",function(a){return r.onClick(a.target)},!1,be),s&2&&(li("@tuiFadeIn",r.options),le("data-appearance",r.appearance)("tuiTheme",r.appearance),Bt("_untouchable",r.pointer))},standalone:!0,features:[R(uc),gt],ngContentSelectors:tc,decls:2,vars:2,consts:[[3,"innerHTML",4,"polymorpheusOutlet","polymorpheusOutletContext"],[3,"innerHTML"]],template:function(s,r){s&1&&(Qt(),Gt(0),lt(1,ec,1,1,"span",0)),s&2&&(at(),K("polymorpheusOutlet",r.content)("polymorpheusOutletContext",r.hint.context))},dependencies:[Jt],styles:['[_nghost-%COMP%]{position:absolute;max-width:18rem;min-height:var(--tui-height-m);padding:.75rem 1rem;background:var(--tui-background-accent-1);border-radius:var(--tui-radius-l);color:var(--tui-text-primary-on-accent-1);box-sizing:border-box;font:var(--tui-font-text-s);white-space:pre-line;word-wrap:break-word;line-height:1.25rem}[_nghost-%COMP%]:before{content:"";position:absolute;top:var(--top);left:var(--left);width:.5rem;height:.5rem;border-radius:.125rem;box-sizing:border-box;background:inherit;transform:translate(-50%,-50%) rotate(45deg)}[data-appearance=error][_nghost-%COMP%]{background:var(--tui-status-negative)}[data-appearance=dark][_nghost-%COMP%]{background:var(--tui-background-accent-opposite-hover);color:var(--tui-background-base);filter:drop-shadow(0 0 .125rem rgba(0,0,0,.16)) drop-shadow(0 1.5rem 1rem rgba(0,0,0,.03)) drop-shadow(0 .75rem .75rem rgba(0,0,0,.04)) drop-shadow(0 .25rem .375rem rgba(0,0,0,.05))}[_nghost-%COMP%]:not([style*=top]){visibility:hidden}._untouchable[_nghost-%COMP%]{pointer-events:none}'],data:{animation:[en]},changeDetection:0});let n=t;return At([zt],n.prototype,"apply",null),n})(),Uf=(()=>{let t=class t extends fe{constructor(){super(e=>this.stream$.subscribe(e)),this.doc=u(Ee),this.el=N(),this.id$=new ve(""),this.stream$=this.id$.pipe(j(),ki(()=>_e(this.doc,"keydown",{capture:!0}),Fi),ft(()=>this.focused?ct(!1):Y(B(this.doc,"keyup"),B(this.element,"blur")).pipe(I(()=>this.focused))),Es(e=>e?we(1e3):ct(null)),it(!1),j(),Ai(1),vt(u(nt))),this.type="hint"}set tuiHintDescribe(e){this.id$.next(e||"")}get element(){return this.doc.getElementById(this.id$.value||"")||this.el}get focused(){return fi(this.element)}};t.\u0275fac=function(s){return new(s||t)},t.\u0275dir=C({type:t,selectors:[["","tuiHintDescribe",""]],inputs:{tuiHintDescribe:"tuiHintDescribe"},standalone:!0,features:[R([Oe(t)]),Et]});let n=t;return At([zt],n.prototype,"element",null),n})(),Bf=(()=>{let t=class t extends Nt{constructor(){super(...arguments),this.type="hint"}getClientRect(){var e;return((e=this.tuiHintHost)==null?void 0:e.getBoundingClientRect())||Vt}};t.\u0275fac=(()=>{let e;return function(r){return(e||(e=$(t)))(r||t)}})(),t.\u0275dir=C({type:t,selectors:[["","tuiHint","","tuiHintHost",""]],inputs:{tuiHintHost:"tuiHintHost"},standalone:!0,features:[R([Qe(t)]),Et]});let n=t;return n})();var zf=(()=>{let t=class t{constructor(){this.hints$=u(lo),this.destroyRef=u(re),this.cdr=u(yt),this.hints=[]}ngOnInit(){this.hints$.pipe(st(this.destroyRef)).subscribe(e=>{this.hints=e,this.cdr.detectChanges()})}};t.\u0275fac=function(s){return new(s||t)},t.\u0275cmp=mt({type:t,selectors:[["tui-hints"]],hostAttrs:["aria-live","polite"],standalone:!0,features:[gt],decls:1,vars:1,consts:[["role","tooltip",3,"tuiActiveZoneParent",4,"ngFor","ngForOf"],["role","tooltip",3,"tuiActiveZoneParent"],[4,"polymorpheusOutlet","polymorpheusOutletContext"]],template:function(s,r){s&1&<(0,sc,2,6,"div",0),s&2&&K("ngForOf",r.hints)},dependencies:[Us,Kt,Jt],styles:["[_nghost-%COMP%]{position:fixed;top:0;left:0;width:100%;height:100%;height:0}"],data:{animation:[ls]}});let n=t;return n})();export{ls as a,tu as b,eu as c,en as d,fu as e,gu as f,Iu as g,Mu as h,Ya as i,Ge as j,Ja as k,pn as l,Yt as m,ds as n,Jt as o,nr as p,dc as q,Li as r,gc as s,Mn as t,fi as u,mi as v,sr as w,Yo as x,cr as y,Hn as z,hr as A,Xi as B,br as C,Er as D,Nc as E,Ei as F,tn as G,kc as H,xc as I,ll as J,Zr as K,Gu as L,Xu as M,Yu as N,Pe as O,hf as P,uh as Q,hh as R,ps as S,ml as T,Ph as U,Xr as V,Hh as W,Me as X,kd as Y,Pl as Z,Je as _,Fl as $,Hd as aa,xd as ba,Ud as ca,Bd as da,zd as ea,Xp as fa,Zl as ga,gs as ha,Yp as ia,Ql as ja,Gl as ka,Xl as la,Jp as ma,tf as na,xf as oa,ac as pa,ys as qa,ho as ra,hc as sa,Uf as ta,Bf as ua,zf as va,kl as wa,Jd as xa,tp as ya,ep as za,up as Aa,mp as Ba,vp as Ca,Ip as Da,Ap as Ea,Ul as Fa,Op as Ga,Pp as Ha}; diff --git a/chunk-EQRGY766.js b/chunk-EQRGY766.js deleted file mode 100644 index 8e4a5cc59..000000000 --- a/chunk-EQRGY766.js +++ /dev/null @@ -1 +0,0 @@ -import{a}from"./chunk-JUAR2SQB.js";import"./chunk-YUW7GALI.js";import"./chunk-PIDCXASU.js";import"./chunk-NL4UQKF6.js";import"./chunk-UPS6ZX2Y.js";import"./chunk-AWGYT4IY.js";import"./chunk-NSSAPNB2.js";import"./chunk-LS7UCRAC.js";import"./chunk-DNEQ7KDT.js";import"./chunk-OKL4RZMA.js";import"./chunk-GIHFJXZ6.js";import"./chunk-VVRWXTJV.js";import"./chunk-NEAIWFFQ.js";export{a as IotComponent}; diff --git a/chunk-H7DO2GMQ.js b/chunk-H7DO2GMQ.js deleted file mode 100644 index 681681c69..000000000 --- a/chunk-H7DO2GMQ.js +++ /dev/null @@ -1,7 +0,0 @@ -import{a as Qi,c as ne,e as nn,f as on}from"./chunk-GONOUNY6.js";import{a as qi,c as mn,f as ue,g as de,h as me,i as _n,m as Cn}from"./chunk-PIDCXASU.js";import{b as xn}from"./chunk-RRCAJAAS.js";import{a as Ui,j as Ft,l as re,m as ae,n as se}from"./chunk-UPS6ZX2Y.js";import{a as oe}from"./chunk-AWGYT4IY.js";import{a as sn}from"./chunk-NSSAPNB2.js";import{a as rn,b as hn,c as ce,d as le,e as pe}from"./chunk-MIQNTQBH.js";import{V as gn,a as Ri,c as Wi,e as Yi,i as cn,w as fn}from"./chunk-DNEQ7KDT.js";import{$ as Ji,Ga as dn,J as Et,M as Gi,Q as Ki,S as Xi,Z as Zi,c as ai,d as si,e as ci,i as Hi,ia as tn,k as $i,ka as en,m as ji,n as ie,oa as an}from"./chunk-OKL4RZMA.js";import{a as R,b as H,c as Y}from"./chunk-VVRWXTJV.js";import{$b as nt,$e as ke,A as J,Aa as Ge,Ab as N,B as Ue,Bb as s,Bc as G,Bf as ee,Ca as k,Cb as c,Cf as F,Db as g,Df as Pt,Ea as st,Eb as ct,Ec as ni,F as He,Fa as Ct,Fb as lt,Fd as Zt,Gb as qt,Gd as ve,Hb as T,Hd as at,Ja as Ye,Jb as ei,Ka as y,Kb as w,Kd as bt,Kf as U,La as b,Lb as l,Lf as ln,Mb as pt,Mc as be,Md as yi,Mf as pn,N as $e,Na as qe,Nb as W,Nc as K,Nd as bi,Nf as un,Ob as ut,Oc as Kt,Oe as Ei,Pc as D,Qb as dt,Qc as oi,Rb as mt,Rd as vi,Sa as A,Sb as E,Sc as Xt,Tb as u,Tc as S,Td as Ti,Ua as Yt,Ub as ht,Ud as Rt,Ue as Fi,Va as Ke,Vb as v,Vd as wi,Ve as te,W as xe,Wb as Mt,Wc as ri,We as Ai,Xb as V,Xd as Te,Xe as Bi,Yb as L,Ye as we,Za as Xe,Zb as z,Zd as ki,_a as Ze,_b as q,_d as Pi,a as Nt,ac as ot,b as Vt,bc as tt,cb as a,cc as P,d as it,dc as wt,df as Ni,e as Be,ea as je,ed as li,ef as Vi,fb as Lt,fc as ii,fe as Si,gd as kt,ha as We,i as Ne,ia as St,id as pi,ja as Qe,jc as f,jd as xt,kc as x,kd as ui,ke as X,kf as Li,lb as $,lc as Q,ld as di,m as Gt,mb as ye,me as Jt,nb as Je,nd as It,o as Ve,od as Dt,pa as gt,pc as rt,pd as mi,pe as Mi,qa as _t,qd as hi,r as Le,rb as h,sb as ti,t as ze,ta as Tt,tb as p,td as fi,tf as zi,ub as _,ud as gi,ue as Oi,vb as zt,vd as _i,w as Re,wa as m,wd as Ci,we as Ii,xb as I,xe as Di,yb as j,yc as Ot,yd as yt,zb as B,zd as xi}from"./chunk-NEAIWFFQ.js";var yn=(()=>{let e=class e{constructor(){this.service=m(Ki)}transform(n){return this.service.format(n.valueOf())}};e.\u0275fac=function(i){return new(i||e)},e.\u0275pipe=Ct({name:"tuiFormatDate",type:e,pure:!0,standalone:!0});let t=e;return t})();var zn=typeof IntersectionObserver<"u"?IntersectionObserver:class{constructor(){it(this,"root",null);it(this,"rootMargin","");it(this,"thresholds",[])}observe(){}unobserve(){}disconnect(){}takeRecords(){return[]}},Rn=new Tt("[WA_INTERSECTION_ROOT]"),Un=Rn,Hn="0px 0px 0px 0px",$n=Hn,Pe=new Tt("[WA_INTERSECTION_ROOT_MARGIN]",{providedIn:"root",factory:()=>$n}),jn=Pe;var Wn=0,Qn=Wn,Se=new Tt("[WA_INTERSECTION_THRESHOLD]",{providedIn:"root",factory:()=>Qn}),Gn=Se;var Me=(()=>{var e;let o=class o extends Ne{constructor(){super(r=>{let d=new zn(C=>{r.next(C)},{root:this.root,rootMargin:this.rootMargin,threshold:this.threshold});return d.observe(this.nativeElement),()=>{d.disconnect()}});it(this,"nativeElement",m(Ke).nativeElement);it(this,"rootMargin",m(jn));it(this,"threshold",m(Gn));it(this,"root",((e=m(Un,{optional:!0}))==null?void 0:e.nativeElement)??null)}};it(o,"\u0275fac",function(d){return new(d||o)}),it(o,"\u0275prov",_t({token:o,factory:o.\u0275fac}));let t=o;return t})(),Zr=new Tt("[WA_INTERSECTION_OBSERVER_SUPPORT]: [INTERSECTION_OBSERVER_SUPPORT]",{providedIn:"root",factory:()=>!!m(Ei).IntersectionObserver});var bn={appearance:"neutral",size:"s"},Yn=bt(bn);function vn(t){return Rt(Yn,t,bn)}var qn=[[["input"]],"*"],Kn=["input","*"];function Xn(t,e){t&1&&(s(0,"span",3),W(1,1),c())}function Zn(t,e){if(t&1&&(ct(0),g(1,"span",1),h(2,Xn,2,0,"span",2),lt()),t&2){let o=e.tuiLet,n=l();a(),_("text-indent",n.indent,"px"),p("textContent",o),a(),p("ngIf",!o)}}var Tn=(()=>{let e=class e{constructor(){this.value$=He(()=>Fi(this.control)),this.indent=-1}onScroll(n){Pi(n)&&ki(n)&&(this.indent=-n.scrollLeft-1)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=k({type:e,selectors:[["tui-input-inline"]],contentQueries:function(i,r,d){if(i&1&&ut(d,pi,5),i&2){let C;dt(C=mt())&&(r.control=C.first)}},hostBindings:function(i,r){i&1&&w("scroll.capture",function(C){return r.onScroll(C.target)})},standalone:!0,features:[P],ngContentSelectors:Kn,decls:3,vars:3,consts:[[4,"tuiLet"],[1,"t-before",3,"textContent"],["automation-id","tui-input-inline__placeholder","class","t-placeholder",4,"ngIf"],["automation-id","tui-input-inline__placeholder",1,"t-placeholder"]],template:function(i,r){i&1&&(pt(qn),h(0,Zn,3,4,"ng-container",0),f(1,"async"),W(2)),i&2&&p("tuiLet",x(1,1,r.value$))},dependencies:[K,Yi,D],styles:[`tui-input-inline{position:relative;display:inline-block;overflow:hidden;white-space:nowrap;box-sizing:border-box}tui-input-inline>.t-before{display:block;padding-right:.02em;margin-left:1px;white-space:pre}tui-input-inline>.t-placeholder{display:inline-block;min-width:1px}tui-input-inline>input{position:absolute;top:0;left:0;background-color:transparent;padding:inherit;font:inherit;-webkit-text-fill-color:transparent;box-sizing:border-box;width:100%;height:100%;border-width:0;text-align:inherit;letter-spacing:inherit;text-indent:inherit;text-transform:inherit;outline:none} -`],encapsulation:2,changeDetection:0});let t=e;return t})();var Jn=[[["img"]],[["tui-svg"],["tui-icon"]],"*",[["","tuiButton",""]],[["","tuiLink",""]]],to=["img","tui-svg,tui-icon","*","[tuiButton]","[tuiLink]"];function eo(t,e){if(t&1){let o=T();s(0,"button",10),w("click",function(){y(o);let i=l();return b(i.close.emit())}),u(1),f(2,"async"),c()}if(t&2){let o=l();_("border-radius",100,"%"),p("iconStart",o.icons.close),a(),v(" ",x(2,4,o.closeWord$),` -`)}}function io(t,e){if(t&1&&(g(0,"span",11),f(1,"tuiFormatDate"),f(2,"async")),t&2){let o=l();p("textContent",o.isString(o.timestamp)?o.timestamp:x(2,3,x(1,1,o.timestamp)))}}function no(t,e){if(t&1&&g(0,"img",8),t&2){let o=l(2);p("src",o.context.image,Ze)}}function oo(t,e){if(t&1&&g(0,"tui-icon",9),t&2){let o=l(2);_("color",o.context.iconColor),p("icon",o.context.icon)}}function ro(t,e){if(t&1&&g(0,"div",10),t&2){let o=e.polymorpheusOutlet;p("innerHTML",o,Xe)}}function ao(t,e){if(t&1){let o=T();s(0,"button",11),w("click",function(){y(o);let i=l(2);return b(i.context.$implicit.next(i.context.buttons[0]))}),u(1),c()}if(t&2){let o=l(2);a(),v(" ",o.context.buttons[0]," ")}}function so(t,e){if(t&1){let o=T();s(0,"button",12),w("click",function(){y(o);let i=l(2);return b(i.context.$implicit.next(i.context.buttons[i.context.buttons.length-1]))}),u(1),c()}if(t&2){let o=l(2);a(),v(" ",o.context.buttons[o.context.buttons.length-1]," ")}}function co(t,e){if(t&1){let o=T();s(0,"tui-push",2),w("close",function(){y(o);let i=l();return b(i.context.$implicit.complete())}),h(1,no,1,1,"img",3)(2,oo,1,3,"tui-icon",4)(3,ro,1,1,"div",5)(4,ao,2,1,"button",6)(5,so,2,1,"button",7),c()}if(t&2){let o=l();p("heading",o.context.heading)("timestamp",o.context.timestamp)("type",o.context.type),a(),p("ngIf",o.context.image),a(),p("ngIf",o.context.icon),a(),p("polymorpheusOutlet",o.context.content)("polymorpheusOutletContext",o.context),a(),p("ngIf",o.context.buttons.length>1),a(),p("ngIf",o.context.buttons.length)}}function lo(t,e){t&1&&qt(0)}function po(t,e){if(t&1&&h(0,lo,1,0,"ng-container",13),t&2){let o=l();p("polymorpheusOutlet",o.context.content)}}var uo=(()=>{let e=class e{constructor(){this.isString=yi,this.closeWord$=m(Li),this.icons=m(Vi),this.heading="",this.type="",this.timestamp="",this.close=new A}};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=k({type:e,selectors:[["tui-push"]],inputs:{heading:"heading",type:"type",timestamp:"timestamp"},outputs:{close:"close"},standalone:!0,features:[tt([ee({size:"s",appearance:"secondary"})]),P],ngContentSelectors:to,decls:17,vars:4,consts:[[1,"t-image"],["appearance","","size","xs","tuiIconButton","","type","button","class","t-close",3,"iconStart","border-radius","click",4,"ngIf"],[1,"t-top"],[1,"t-icon"],["class","t-time",3,"textContent",4,"ngIf"],["automation-id","tui-push__heading",1,"t-heading"],[1,"t-content"],[1,"t-actions"],[1,"t-button"],[1,"t-link"],["appearance","","size","xs","tuiIconButton","","type","button",1,"t-close",3,"click","iconStart"],[1,"t-time",3,"textContent"]],template:function(i,r){i&1&&(pt(Jn),s(0,"div",0),W(1),c(),h(2,eo,3,6,"button",1),s(3,"div",2)(4,"span",3),W(5,1),c(),u(6),h(7,io,3,5,"span",4),c(),s(8,"h3",5),u(9),c(),s(10,"div",6),W(11,2),c(),s(12,"div",7)(13,"span",8),W(14,3),c(),s(15,"span",9),W(16,4),c()()),i&2&&(a(2),p("ngIf",r.close.observed),a(4),v(" ",r.type," "),a(),p("ngIf",r.timestamp),a(2),v(" ",r.heading,` -`))},dependencies:[K,D,F,yn],styles:['[_nghost-%COMP%]{position:relative;display:block;width:22.5rem;max-width:100%;box-sizing:border-box;padding:1.25rem 1.25rem .25rem;overflow:hidden;font:var(--tui-font-text-m);border-radius:var(--tui-radius-xl);background:var(--tui-background-elevation-2);box-shadow:var(--tui-shadow-small)}.t-image[_ngcontent-%COMP%]{display:flex;flex-direction:column;max-height:10.625rem;overflow:hidden;margin:-1.25rem -1.25rem 1.25rem}.t-close[_ngcontent-%COMP%]{position:absolute;top:.75rem;right:.75rem;color:#0000008a;background:#f2f2f252;-webkit-backdrop-filter:blur(1rem);backdrop-filter:blur(1rem)}.t-top[_ngcontent-%COMP%]{display:flex;align-items:center;font:var(--tui-font-text-s);color:var(--tui-text-secondary)}.t-icon[_ngcontent-%COMP%]{height:1.25rem;margin-right:.5rem;transform:scale(.833);transform-origin:top left;color:var(--tui-text-action)}.t-time[_ngcontent-%COMP%]:before{content:"\\2022";display:inline-block;width:1rem;text-align:center}.t-heading[_ngcontent-%COMP%]{line-height:1.25rem;font-weight:700;margin:.75rem 0 .25rem}.t-heading[_ngcontent-%COMP%], .t-content[_ngcontent-%COMP%]{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;word-break:break-word;overflow:hidden}.t-actions[_ngcontent-%COMP%]{display:flex;align-items:center;font:var(--tui-font-text-s)}.t-button[_ngcontent-%COMP%]:not(:empty){margin:.75rem .75rem .75rem 0}.t-link[_ngcontent-%COMP%]{margin:.75rem 0}.t-link[_ngcontent-%COMP%]:empty{margin:.5rem}'],changeDetection:0});let t=e;return t})(),mo={heading:"",type:"",timestamp:"",image:"",icon:"",iconColor:"",buttons:[]},ho=bt(mo);var fo=(()=>{let e=class e{constructor(){this.options=Hi(m(Ni)),this.context=m($i)}get isDirective(){return this.context.content instanceof go}};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=k({type:e,selectors:[["ng-component"]],hostAttrs:["role","alert"],hostVars:3,hostBindings:function(i,r){i&2&&ei("@tuiFadeIn",r.options)("@tuiSlideInRight",r.options)("@tuiHeightCollapse",r.options)},standalone:!0,features:[P],decls:3,vars:2,consts:[["directive",""],[3,"heading","timestamp","type","close",4,"ngIf","ngIfElse"],[3,"close","heading","timestamp","type"],["alt","",3,"src",4,"ngIf"],[3,"icon","color",4,"ngIf"],[3,"innerHTML",4,"polymorpheusOutlet","polymorpheusOutletContext"],["tuiButton","","type","button",3,"click",4,"ngIf"],["tuiLink","","type","button",3,"click",4,"ngIf"],["alt","",3,"src"],[3,"icon"],[3,"innerHTML"],["tuiButton","","type","button",3,"click"],["tuiLink","","type","button",3,"click"],[4,"polymorpheusOutlet"]],template:function(i,r){if(i&1&&h(0,co,6,9,"tui-push",1)(1,po,1,1,"ng-template",null,0,rt),i&2){let d=E(2);p("ngIf",!r.isDirective)("ngIfElse",d)}},dependencies:[K,ie,uo,Pt,F,Ri],styles:["[_nghost-%COMP%]{max-width:calc(100% - 2rem);margin:0 1rem 1rem auto}[_nghost-%COMP%]:first-child{margin-top:auto}"],data:{animation:[si,ci,ai]},changeDetection:0});let t=e;return t})(),Oe=(()=>{let e=class e extends Wi{};e.\u0275fac=(()=>{let n;return function(r){return(n||(n=qe(e)))(r||e)}})(),e.\u0275prov=_t({token:e,factory:()=>new e(Qi,fo,m(ho)),providedIn:"root"});let t=e;return t})(),go=(()=>{let e=class e extends ji{constructor(){super(m(Lt),m(Ot)),this.push=m(gt(()=>Oe)),this.show$=new Gt,this.show$.pipe(Bi(()=>this.push.open(this)),Zt()).subscribe()}set tuiPush(n){this.show$.next(n)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275dir=st({type:e,selectors:[["ng-template","tuiPush",""]],inputs:{tuiPush:"tuiPush"},standalone:!0,features:[ye]});let t=e;return t})();var wn=(()=>{let e=class e{constructor(){this.token={urlIcon:"",token:"",amount:0,symbol:""},this.tokenChange=new A}createNew(){this.tokenChange.emit(null)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=k({type:e,selectors:[["lmb-minter-created"]],inputs:{token:"token"},outputs:{tokenChange:"tokenChange"},standalone:!0,features:[P],decls:5,vars:5,consts:[["size","xl",1,"logo",3,"src"],["tuiTitle","",1,"info"],["tuiButton","",3,"click"]],template:function(i,r){i&1&&(g(0,"tui-avatar",0),s(1,"h3",1),u(2),c(),s(3,"button",2),w("click",function(){return r.createNew()}),u(4,` Create new Token -`),c()),i&2&&(p("src",r.token.urlIcon),a(2),Mt(" ",r.token.amount," ($",r.token.symbol,`) have been sent to your wallet -`),a(),_("margin-top","auto"))},dependencies:[S,U,F,R],styles:[".logo[_ngcontent-%COMP%]{background-color:#7c48c3;background-image:linear-gradient(45deg,#c86dd7,#3023ae);overflow:visible;margin-left:auto;margin-right:auto;animation:_ngcontent-%COMP%_spinLogo 5s infinite}@keyframes _ngcontent-%COMP%_spinLogo{0%{transform:rotateY(0);box-shadow:0 0 #0000004d}12%{transform:rotateY(90deg) rotate(6deg) scale(1.7);box-shadow:0 .25rem .5rem #0000004d}25%{transform:rotateY(180deg);box-shadow:0 0 #0000004d}50%{transform:rotateY(180deg);box-shadow:0 0 #0000004d}62%{transform:rotateY(270deg) rotate(-8deg) scale(1.7);box-shadow:0 .25rem .5rem #0000004d}80%{transform:rotateY(720deg);box-shadow:0 0 #0000004d}to{transform:rotateY(720deg);box-shadow:0 0 #0000004d}}[_nghost-%COMP%]{display:flex;flex-direction:column;gap:1rem}.info[_ngcontent-%COMP%]{margin-left:auto;margin-right:auto;text-align:center}"],changeDetection:0});let t=e;return t})();var Ut=()=>[],Co=()=>({label:"Edit logo",size:"s",closeable:!1,dismissible:!1});function xo(t,e){if(t&1){let o=T();s(0,"p"),u(1,"URL of 256x256 pixel PNG image of token logo"),c(),s(2,"tui-input",17),u(3," Logo token "),c(),g(4,"tui-error",18),f(5,"tuiFieldError"),f(6,"async"),s(7,"p")(8,"button",19),w("click",function(){let i=y(o).$implicit;l();let r=ot(2);return b(r!==""?i.complete():"")}),u(9," Submit "),c()()}t&2&&(a(4),_("text-align","center"),p("error",x(6,5,x(5,3,wt(7,Ut)))))}var Pn=(()=>{let e=class e{constructor(){this.form=new di({name:new It("",[kt.required]),symbol:new It("",[kt.required,kt.minLength(3),kt.maxLength(5)]),amount:new It(0,[kt.required,kt.min(1)]),urlIcon:new It(""),description:new It("")}),this.push=m(Oe),this.openDialog=!1,this.tokenChange=new A}showDialog(){this.openDialog=!0}onSubmit(){vi(this.form),this.form.valid&&(this.push.open("Minted your token",{heading:"Success",icon:"check"}).subscribe(),this.tokenChange.emit({urlIcon:this.form.controls.urlIcon.value??"",token:this.form.controls.name.value??"",symbol:this.form.controls.symbol.value??"",amount:Number(this.form.controls.amount.value)??0}))}};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=k({type:e,selectors:[["lmb-minter-deploy"]],outputs:{tokenChange:"tokenChange"},standalone:!0,features:[tt([{provide:dn,useValue:{maxlength:({requiredLength:n})=>`Maximum length \u2014 ${n}`,minlength:({requiredLength:n})=>Re(`Minimum length \u2014 ${n}`)}}]),P],decls:39,vars:35,consts:[[3,"submit","formGroup"],[1,"info","block-input"],["tuiCell","l"],["size","xl",3,"click","src"],["tuiTitle",""],["tuiSubtitle",""],["formControlName","name","tuiHintContent","Your project name with spaces"],["tuiTextfieldLegacy",""],["formControlName","name",1,"block-input",3,"error"],["formControlName","symbol","tuiHintContent","Currency symbol appearing in balance (usually 3-5 uppercase chars)"],["formControlName","symbol",1,"block-input",3,"error"],["formControlName","amount","tuiHintContent","Number of initial tokens to mint and send to your waller address"],["formControlName","amount",1,"block-input",3,"error"],["formControlName","description","tuiHintContent","Optional sentence explaining about yor project"],["formControlName","description",1,"block-input",3,"error"],["tuiButton","","type","submit"],[3,"tuiDialogChange","tuiDialogOptions","tuiDialog"],["formControlName","urlIcon","tuiAutoFocus",""],["formControlName","urlIcon",1,"block-input",3,"error"],["tuiButton","",3,"click"]],template:function(i,r){if(i&1){let d=T();q(0)(1)(2)(3),s(4,"form",0),w("submit",function(){return y(d),b(r.onSubmit())}),s(5,"div",1)(6,"div",2)(7,"tui-avatar",3),w("click",function(){return y(d),b(r.showDialog())}),c(),s(8,"div",4),u(9),s(10,"div",5),u(11),c()()()(),s(12,"tui-input",6),u(13," Jetton Name "),g(14,"input",7),c(),g(15,"tui-error",8),f(16,"tuiFieldError"),f(17,"async"),s(18,"tui-input",9),u(19," Jetton Symbol "),g(20,"input",7),c(),g(21,"tui-error",10),f(22,"tuiFieldError"),f(23,"async"),s(24,"tui-input-number",11),u(25," Number of tokens "),g(26,"input",7),c(),g(27,"tui-error",12),f(28,"tuiFieldError"),f(29,"async"),s(30,"tui-input",13),u(31," Description "),g(32,"input",7),c(),g(33,"tui-error",14),f(34,"tuiFieldError"),f(35,"async"),s(36,"button",15),u(37," Deploy "),c(),h(38,xo,10,8,"ng-template",16),z("tuiDialogChange",function(M){return y(d),L(r.openDialog,M)||(r.openDialog=M),b(M)}),c()}if(i&2){let d=r.form.controls.name.value,C=r.form.controls.symbol.value;a(2);let M=nt(r.form.controls.urlIcon.value),ft=r.form.controls.description.value;a(2),p("formGroup",r.form),a(3),p("src",!r.openDialog&&M!==""?M:"@tui.pencil"),a(2),Mt(" ",d==""?"Jetton Name":d," (",C==""?"Symbol":C,") "),a(2),ht(ft==""?"Description":ft),a(4),p("error",x(17,16,x(16,14,wt(30,Ut)))),a(6),p("error",x(23,20,x(22,18,wt(31,Ut)))),a(6),p("error",x(29,24,x(28,22,wt(32,Ut)))),a(6),p("error",x(35,28,x(34,26,wt(33,Ut)))),a(3),_("margin-top","auto"),a(2),p("tuiDialogOptions",wt(34,Co)),V("tuiDialog",r.openDialog)}},dependencies:[S,D,yt,mi,xt,ui,xi,fi,gi,ne,U,F,Ft,on,rn,hn,an,pe,ce,le,gn,se,re,ae],styles:[".info[_ngcontent-%COMP%]{margin-left:auto;margin-right:auto;text-align:center}[_nghost-%COMP%]{display:flex;flex-direction:column;gap:1rem}form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.4rem;height:100%}.block-input[_ngcontent-%COMP%]{margin-bottom:.3rem}"],changeDetection:0});let t=e;return t})();function yo(t,e){if(t&1){let o=T();s(0,"lmb-minter-deploy",5),w("tokenChange",function(i){y(o);let r=l();return b(r.token=i)}),c()}t&2&&_("flex-grow",1)}function bo(t,e){if(t&1){let o=T();s(0,"lmb-minter-created",6),z("tokenChange",function(i){y(o);let r=l();return L(r.token,i)||(r.token=i),b(i)}),c()}if(t&2){let o=l();_("flex-grow",1),V("token",o.token)}}var Sn=(()=>{let e=class e{constructor(){this.token=null}};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=k({type:e,selectors:[["lmb-minter"]],standalone:!0,features:[P],decls:6,vars:4,consts:[["tuiAppearance","whiteblock","tuiCardLarge","normal",1,"card"],["tuiHeader",""],["tuiTitle",""],[3,"flex-grow"],[3,"flex-grow","token"],[3,"tokenChange"],[3,"tokenChange","token"]],template:function(i,r){i&1&&(s(0,"div",0)(1,"header",1)(2,"h2",2),u(3),c()(),h(4,yo,1,2,"lmb-minter-deploy",3)(5,bo,1,3,"lmb-minter-created",4),c()),i&2&&(a(2),_("text-align","center"),a(),v(" ",r.token?r.token.token+" successfully created":"Mint your token"," "),a(),I(r.token?5:4))},dependencies:[S,wn,Pn,X,H,Y,R],styles:[".info[_ngcontent-%COMP%]{margin-left:auto;margin-right:auto;text-align:center}.card[_ngcontent-%COMP%]{height:100%}.block-input[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.4rem}.logo[_ngcontent-%COMP%]{background-color:#7c48c3;background-image:linear-gradient(45deg,#c86dd7,#3023ae);overflow:visible;margin-left:auto;margin-right:auto;animation:_ngcontent-%COMP%_spinLogo 5s infinite}@keyframes _ngcontent-%COMP%_spinLogo{0%{transform:rotateY(0);box-shadow:0 0 #0000004d}12%{transform:rotateY(90deg) rotate(6deg) scale(1.7);box-shadow:0 .25rem .5rem #0000004d}25%{transform:rotateY(180deg);box-shadow:0 0 #0000004d}50%{transform:rotateY(180deg);box-shadow:0 0 #0000004d}62%{transform:rotateY(270deg) rotate(-8deg) scale(1.7);box-shadow:0 .25rem .5rem #0000004d}80%{transform:rotateY(720deg);box-shadow:0 0 #0000004d}to{transform:rotateY(720deg);box-shadow:0 0 #0000004d}}"],changeDetection:0});let t=e;return t})();var vo={currency:null,currencyAlign:"left",sign:"negative-only"},To=bt(vo);function wo(t,e){return e==="never"||!t||e==="negative-only"&&t>0?"":e==="force-negative"||t<0&&e!=="force-positive"?Ii:Di}var ko=2,vt=(()=>{let e=class e{constructor(){this.options=m(To),this.format=m(zi)}transform(n,i=this.options.currency,r=this.options.currencyAlign){return this.format.pipe(J(d=>{let C=wo(n,this.options.sign),M=xn(i),ft=Ui(Math.abs(n),Vt(Nt({},d),{precision:Number.isNaN(d.precision)?ko:d.precision})),Ae=M&&((M==null?void 0:M.length)>1||r==="right")?Oi:"";return r==="right"?`${C}${ft}${Ae}${M}`:`${C}${M}${Ae}${ft}`}))}};e.\u0275fac=function(i){return new(i||e)},e.\u0275pipe=Ct({name:"tuiAmount",type:e,pure:!0,standalone:!0});let t=e;return t})();var he=["*"],Po=["tuiTh",""];function So(t,e){if(t&1){let o=T();s(0,"button",3),w("click",function(){y(o);let i=l();return b(i.updateSorterAndDirection())}),qt(1,4),u(2),f(3,"async"),g(4,"tui-icon",5),c()}if(t&2){let o=l(),n=E(2);zt("t-sort_sorted",o.isCurrent),a(),p("ngTemplateOutlet",n),a(),v(" ",x(3,5,o.table&&o.table.change$)," "),a(2),p("icon",o.icon)}}function Mo(t,e){t&1&&W(0)}function Oo(t,e){if(t&1){let o=T();s(0,"div",6),w("tuiResized",function(i){y(o);let r=l();return b(r.onResized(i))}),c()}}var Io=["tuiTd",""],Do=["tuiTr",""];function Eo(t,e){if(t&1&&(s(0,"td",5),u(1),c()),t&2){let o=e.ngIf,n=l(2).$implicit;a(),v(" ",o[n]," ")}}function Fo(t,e){if(t&1&&(h(0,Eo,2,1,"td",4),f(1,"async")),t&2){let o=l(3);p("ngIf",x(1,1,o.item$))}}function Ao(t,e){if(t&1&&(ct(0,3),h(1,Fo,2,3,"ng-template",null,0,rt),lt()),t&2){let o=e.$implicit,n=E(2),i=l().ngIf;p("ngTemplateOutlet",i[o]&&i[o].template||n)}}function Bo(t,e){if(t&1&&(ct(0),h(1,Ao,3,1,"ng-container",2),lt()),t&2){let o=l();a(),p("ngForOf",o.table.columns)}}var No=["tuiTbody",""];function Vo(t,e){if(t&1&&(ct(0),u(1),lt()),t&2){let o=e.polymorpheusOutlet;a(),v(" ",o," ")}}function Lo(t,e){if(t&1){let o=T();s(0,"tr")(1,"th",1)(2,"button",2),w("click",function(){y(o);let i=l();return b(i.onClick())}),s(3,"span",3),h(4,Vo,2,1,"ng-container",4),c(),g(5,"tui-icon",5),c()()()}if(t&2){let o=l();a(),p("colSpan",o.table.columns.length),a(3),p("polymorpheusOutlet",o.heading),a(),p("tuiChevron",o.open)}}function zo(t,e){t&1&&(ct(0),W(1),lt())}var Ro=["tuiThGroup",""];function Uo(t,e){if(t&1&&(s(0,"th",5),u(1),c()),t&2){let o=l(2).$implicit;a(),v(" ",o.toString()," ")}}function Ho(t,e){if(t&1&&h(0,Uo,2,1,"th",4),t&2){let o=l(3);p("ngIf",!o.th&&!o.heads.length)}}function $o(t,e){if(t&1&&(ct(0,3),h(1,Ho,1,1,"ng-template",null,0,rt),lt()),t&2){let o=e.$implicit,n=E(2),i=l().ngIf;p("ngTemplateOutlet",i[o]&&i[o].template||n)}}function jo(t,e){if(t&1&&(ct(0),h(1,$o,3,1,"ng-container",2),lt()),t&2){let o=l();a(),p("ngForOf",o.table.columns)}}var $t=(()=>{let e=class e{constructor(){this.tuiCell="",this.template=m(Lt)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275dir=st({type:e,selectors:[["ng-template","tuiCell",""]],inputs:{tuiCell:"tuiCell"},standalone:!0});let t=e;return t})(),Wo={sticky:!1,resizable:!1,open:!0,size:"m",direction:1,sortIcons:{asc:"@tui.chevron-up",desc:"@tui.chevron-down",off:"@tui.chevrons-up-down"}},Ee=bt(Wo);var Qo=(()=>{let e=class e{constructor(){this.stuck=at(m(Me).pipe(J(n=>n[n.length-1].intersectionRatio<1),xe(),ke(m(Ot)),$e(()=>Le)))}};e.\u0275fac=function(i){return new(i||e)},e.\u0275dir=st({type:e,selectors:[["never"]],hostVars:2,hostBindings:function(i,r){i&2&&zt("_stuck",r.stuck())},standalone:!0,features:[tt([Me,{provide:Se,useValue:[0,1]}])]});let t=e;return t})(),Go=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=k({type:e,selectors:[["ng-component"]],hostAttrs:[1,"tui-table"],standalone:!0,features:[P],decls:0,vars:0,template:function(i,r){},styles:[`table[tuiTable] [tuiCell]{padding:0}table[tuiTable] [tuiTitle]{white-space:nowrap}table[tuiTable] [tuiTitle] tui-icon{font-size:1rem}table[tuiTable] [tuiSubtitle]{color:var(--tui-text-secondary)}table[tuiTable] [tuiTh] [tuiCell],table[tuiTable] [tuiTh] [tuiTitle]{font:inherit;color:inherit} -`],encapsulation:2,changeDetection:0});let t=e;return t})(),et=(()=>{let e=class e{constructor(){this.options=m(Ee),this.cdr=m(Ot),this.nothing=Te(Go),this.columns=[],this.direction=this.options.direction,this.directionChange=new A,this.sorterChange=new A,this.appearance=$("table"),this.size=$(this.options.size),this.cleaner=$(!1),this.change$=new Gt,this.sorter=()=>0}set sizeSetter(n){this.size.set(n)}updateSorterAndDirection(n){this.sorter===n?this.updateDirection(this.direction===1?-1:1):(this.updateSorter(n),this.updateDirection(1))}ngOnChanges(){this.change$.next()}ngAfterViewInit(){this.cdr.detectChanges()}updateSorter(n){this.sorter=n||(()=>0),this.sorterChange.emit(this.sorter),this.change$.next()}updateDirection(n){this.direction=n,this.directionChange.emit(this.direction),this.change$.next()}};e.\u0275fac=function(i){return new(i||e)},e.\u0275dir=st({type:e,selectors:[["table","tuiTable",""]],hostAttrs:[2,"border-collapse","separate"],hostVars:1,hostBindings:function(i,r){i&2&&ti("data-size",r.size())},inputs:{columns:"columns",direction:"direction",sizeSetter:[0,"size","sizeSetter"],sorter:"sorter"},outputs:{directionChange:"directionChange",sorterChange:"sorterChange"},standalone:!0,features:[tt([{provide:Pe,useValue:"10000px 10000px 10000px 0px"},Ti(cn,e),ee({size:"s"}),pn({size:"m",appearance:"neutral"}),vn({size:"xxs",appearance:"neutral"}),mn({size:"s",color:"var(--tui-text-action)"})]),Je([Qo]),Ye]});let t=e;return t})();var Bt=(()=>{let e=class e{constructor(){this.tuiHead="",this.template=m(Lt)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275dir=st({type:e,selectors:[["","tuiHead",""]],inputs:{tuiHead:"tuiHead"},standalone:!0});let t=e;return t})(),Yo=(()=>{let e=class e{constructor(){this.doc=m(ni),this.el=Si(),this.tuiResized=te(this.el,"mousedown").pipe(Ai(),St(()=>{var r;let{width:n,right:i}=((r=this.el.closest("th"))==null?void 0:r.getBoundingClientRect())||Mi;return te(this.doc,"mousemove").pipe(xe(),J(({clientX:d})=>n+d-i),Qe(te(this.doc,"mouseup")))}))}};e.\u0275fac=function(i){return new(i||e)},e.\u0275dir=st({type:e,selectors:[["","tuiResized",""]],outputs:{tuiResized:"tuiResized"},standalone:!0});let t=e;return t})(),At=(()=>{let e=class e{constructor(){this.options=m(Ee),this.head=m(Bt,{optional:!0}),this.width=null,this.table=m(gt(()=>et),{optional:!0}),this.sorter=this.head?(n,i)=>bi(n[this.key],i[this.key]):null,this.resizable=this.options.resizable,this.sticky=this.options.sticky}get key(){if(!this.head)throw new De;return this.head.tuiHead}get isCurrent(){return!!this.sorter&&!!this.table&&this.sorter===this.table.sorter}get icon(){var n;return this.isCurrent?((n=this.table)==null?void 0:n.direction)===1?this.options.sortIcons.desc:this.options.sortIcons.asc:this.options.sortIcons.off}updateSorterAndDirection(){var n;(n=this.table)==null||n.updateSorterAndDirection(this.isCurrentAndAscDirection?null:this.sorter)}onResized(n){this.width=n}get isCurrentAndAscDirection(){var n,i;return this.sorter===((n=this.table)==null?void 0:n.sorter)&&((i=this.table)==null?void 0:i.direction)===-1}};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=k({type:e,selectors:[["th","tuiTh",""]],hostVars:4,hostBindings:function(i,r){i&2&&(_("width",r.width,"px"),zt("_sticky",r.sticky))},inputs:{sorter:"sorter",resizable:"resizable",sticky:"sticky"},standalone:!0,features:[P],attrs:Po,ngContentSelectors:he,decls:4,vars:3,consts:[["content",""],["type","button","class","t-sort",3,"t-sort_sorted","click",4,"ngIf","ngIfElse"],["class","t-bar",3,"tuiResized",4,"ngIf"],["type","button",1,"t-sort",3,"click"],[3,"ngTemplateOutlet"],[1,"t-icon",3,"icon"],[1,"t-bar",3,"tuiResized"]],template:function(i,r){if(i&1&&(pt(),h(0,So,5,7,"button",1)(1,Mo,1,0,"ng-template",null,0,rt)(3,Oo,1,0,"div",2)),i&2){let d=E(2);p("ngIf",r.sorter&&r.table)("ngIfElse",d),a(3),p("ngIf",r.resizable)}},dependencies:[K,Kt,Pt,D,Yo],styles:['[_nghost-%COMP%]{transition-property:box-shadow;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;position:relative;top:0;height:var(--tui-height-m);font:var(--tui-font-text-s);text-align:left;font-weight:700;color:var(--tui-text-secondary);background:var(--tui-background-base);cursor:default;padding:0 .75rem;box-sizing:border-box;box-shadow:0 .3125rem #ededed00;border:1px solid var(--tui-border-normal);filter:opacity(1)}@supports (-webkit-hyphens: none){[_nghost-%COMP%]{transform:translateZ(0)}}[_nghost-%COMP%]:not(:first-child){border-left:none}._sticky[_nghost-%COMP%], ._stuck ._sticky[_nghost-%COMP%]{position:sticky;z-index:30}._sticky[_nghost-%COMP%]:first-child, ._stuck ._sticky[_nghost-%COMP%]:first-child{left:0}._sticky[_nghost-%COMP%]:after, ._stuck ._sticky[_nghost-%COMP%]:after{transition-property:opacity;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;content:"";position:absolute;top:0;left:100%;bottom:0;width:.3125rem;pointer-events:none;background:#edededb3;opacity:0}._stuck [_nghost-%COMP%]{z-index:20}tr:not(:first-child)[_nghost-%COMP%], tr:not(:first-child) [_nghost-%COMP%]{border-top:none}table[data-size="l"][_nghost-%COMP%], table[data-size="l"] [_nghost-%COMP%]{height:var(--tui-height-l);font:var(--tui-font-text-m);font-weight:700;padding:0 1rem}table[data-size="s"][_nghost-%COMP%], table[data-size="s"] [_nghost-%COMP%]{height:var(--tui-height-s);font:var(--tui-font-text-s);font-weight:700;padding:0 .5rem}thead[tuiThead][_nghost-%COMP%], thead[tuiThead] [_nghost-%COMP%]{position:sticky}table._stuck._sticky[_nghost-%COMP%]:after, table._stuck ._sticky[_nghost-%COMP%]:after{opacity:1}thead[tuiThead]._stuck[_nghost-%COMP%], thead[tuiThead]._stuck [_nghost-%COMP%]{box-shadow:0 .3125rem #edededb3}[tuiTheme="dark"]._sticky[_nghost-%COMP%]:after, [tuiTheme="dark"] ._sticky[_nghost-%COMP%]:after{background:#3c3c3ce6}[tuiTheme="dark"] thead[tuiThead]._stuck[_nghost-%COMP%], [tuiTheme="dark"] thead[tuiThead]._stuck [_nghost-%COMP%]{box-shadow:0 .3125rem #3c3c3ce6}[tuiTheme="dark"] thead[tuiThead]._stuck[_nghost-%COMP%]:first-child, [tuiTheme="dark"] thead[tuiThead]._stuck [_nghost-%COMP%]:first-child{box-shadow:.0625rem .3125rem #3c3c3ce6}table[data-size="l"] thead[tuiThead] tr:nth-child(2)[_nghost-%COMP%], table[data-size="l"] thead[tuiThead] tr:nth-child(2) [_nghost-%COMP%]{top:var(--tui-height-l)}table[data-size="m"] thead[tuiThead] tr:nth-child(2)[_nghost-%COMP%], table[data-size="m"] thead[tuiThead] tr:nth-child(2) [_nghost-%COMP%]{top:var(--tui-height-m)}table[data-size="s"] thead[tuiThead] tr:nth-child(2)[_nghost-%COMP%], table[data-size="s"] thead[tuiThead] tr:nth-child(2) [_nghost-%COMP%]{top:var(--tui-height-s)}.t-sort[_ngcontent-%COMP%]{transition-property:color;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;-webkit-appearance:none;appearance:none;padding:0;border:0;background:none;font-size:inherit;line-height:inherit;text-decoration:none;display:inline-flex;flex-direction:inherit;align-items:center;outline:none;font-weight:700;cursor:pointer}.t-sort_sorted[_ngcontent-%COMP%]{color:var(--tui-text-primary)}.t-sort[_ngcontent-%COMP%]:focus-visible{background:var(--tui-service-selection-background)}.t-sort[_ngcontent-%COMP%]:hover{color:var(--tui-text-primary)}.t-bar[_ngcontent-%COMP%]{transition-property:opacity;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;position:absolute;top:0;bottom:0;right:-1px;width:3px;justify-self:flex-end;border-left:2px solid transparent;background:var(--tui-status-warning);background-clip:content-box;cursor:ew-resize;opacity:0}.t-bar[_ngcontent-%COMP%]:hover, .t-bar[_ngcontent-%COMP%]:active{opacity:1}.t-icon[_ngcontent-%COMP%]{border:.25rem solid transparent}'],changeDetection:0});let t=e;return t})(),De=class extends Error{constructor(){super("")}};var fe=(()=>{let e=class e{constructor(){this.table=m(et)}transform(n){return this.sort(n??[],this.table.sorter,this.table.direction)}sort(n,i,r){return[...n].sort((d,C)=>r*i(d,C))}};e.\u0275fac=function(i){return new(i||e)},e.\u0275pipe=Ct({name:"tuiTableSort",type:e,pure:!1,standalone:!0});let t=e;return ze([wi],t.prototype,"sort",null),t})(),Fe=[{provide:et,deps:[[new Ge,et],Ot],useFactory:(t,e)=>(t.change$.pipe(ke(e),Zt()).subscribe(),t)}],jt=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=k({type:e,selectors:[["th","tuiTd",""],["td","tuiTd",""]],contentQueries:function(i,r,d){if(i&1&&(ut(d,Xi,5),ut(d,fn,5)),i&2){let C;dt(C=mt())&&(r.current=C.first),dt(C=mt())&&(r.legacy=C.first)}},hostVars:2,hostBindings:function(i,r){i&2&&zt("_editable",r.current||r.legacy)},standalone:!0,features:[P],attrs:Io,ngContentSelectors:he,decls:1,vars:0,template:function(i,r){i&1&&(pt(),W(0))},styles:['[_nghost-%COMP%]{position:relative;text-align:left;background:var(--tui-background-base);border:1px solid var(--tui-border-normal);border-top:none;box-sizing:border-box;filter:opacity(1)}@supports (-webkit-hyphens: none){[_nghost-%COMP%]{transform:translateZ(0)}}._editable[_nghost-%COMP%]{padding:0!important}[_nghost-%COMP%]:first-child{left:0}[_nghost-%COMP%]:not(:first-child){border-left:none}._editable[_nghost-%COMP%]:focus-within{z-index:1}._editable[_nghost-%COMP%]{padding:0;vertical-align:top}th[_nghost-%COMP%]{position:sticky;z-index:1}th[_nghost-%COMP%]:after{transition-property:opacity;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;content:"";position:absolute;top:0;bottom:0;left:100%;width:.3125rem;pointer-events:none;background:#edededb3;opacity:0}th[_nghost-%COMP%]:focus-within:not(:disabled){z-index:11}[tuiTheme="dark"][_nghost-%COMP%]:after, [tuiTheme="dark"] [_nghost-%COMP%]:after{background:#3c3c3ce6}table._stuck[_nghost-%COMP%], table._stuck [_nghost-%COMP%]{z-index:10}table._stuck[_nghost-%COMP%]:last-of-type:after, table._stuck [_nghost-%COMP%]:last-of-type:after{opacity:1}table[data-size="l"][_nghost-%COMP%], table[data-size="l"] [_nghost-%COMP%]{height:var(--tui-height-l);font:var(--tui-font-text-m);padding:1rem}table[data-size="m"][_nghost-%COMP%], table[data-size="m"] [_nghost-%COMP%]{height:var(--tui-height-m);font:var(--tui-font-text-s);padding:.75rem}table[data-size="s"][_nghost-%COMP%], table[data-size="s"] [_nghost-%COMP%]{height:var(--tui-height-s);font:var(--tui-font-text-s);padding:.25rem .5rem}td[_nghost-%COMP%]:focus-within{z-index:1}td[_nghost-%COMP%]:not(:focus-within){z-index:0}'],changeDetection:0});let t=e;return t})(),Wt=(()=>{let e=class e{constructor(){this.cells=Jt,this.body=m(gt(()=>Qt)),this.contentReady$=new Ve(1),this.table=m(gt(()=>et)),this.cells$=this.contentReady$.pipe(St(()=>we(this.cells)),J(n=>n.reduce((i,r)=>Vt(Nt({},i),{[r.tuiCell]:r}),{}))),this.item$=this.contentReady$.pipe(St(()=>we(this.body.rows)),J(n=>this.body.data[n.findIndex(i=>i===this)]))}ngAfterContentInit(){return Be(this,null,function*(){yield Promise.resolve(),this.contentReady$.next(!0)})}};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=k({type:e,selectors:[["tr","tuiTr",""]],contentQueries:function(i,r,d){if(i&1&&ut(d,$t,4),i&2){let C;dt(C=mt())&&(r.cells=C)}},standalone:!0,features:[tt([Fe]),P],attrs:Do,decls:2,vars:3,consts:[["plain",""],[4,"ngIf"],[3,"ngTemplateOutlet",4,"ngFor","ngForOf"],[3,"ngTemplateOutlet"],["tuiTd","",4,"ngIf"],["tuiTd",""]],template:function(i,r){i&1&&(h(0,Bo,2,1,"ng-container",1),f(1,"async")),i&2&&p("ngIf",x(1,1,r.cells$))},dependencies:[K,D,be,Kt,jt],encapsulation:2,changeDetection:0});let t=e;return t})(),Qt=(()=>{let e=class e{constructor(){this.options=m(Ee),this.table=m(gt(()=>et)),this.rows=Jt,this.data=[],this.open=this.options.open,this.openChange=new A}onClick(){this.open=!this.open,this.openChange.emit(this.open)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=k({type:e,selectors:[["tbody","tuiTbody",""]],contentQueries:function(i,r,d){if(i&1&&ut(d,Wt,4),i&2){let C;dt(C=mt())&&(r.rows=C)}},inputs:{data:"data",heading:"heading",open:"open"},outputs:{openChange:"openChange"},standalone:!0,features:[tt(Fe),P],attrs:No,ngContentSelectors:he,decls:2,vars:2,consts:[[4,"ngIf"],[1,"t-heading",3,"colSpan"],["type","button",1,"t-expand",3,"click"],[1,"t-name"],[4,"polymorpheusOutlet"],[1,"t-chevron",3,"tuiChevron"]],template:function(i,r){i&1&&(pt(),h(0,Lo,6,3,"tr",0)(1,zo,2,0,"ng-container",0)),i&2&&(p("ngIf",r.heading),a(),p("ngIf",r.open))},dependencies:[K,Pt,ie,oe],styles:['[_nghost-%COMP%]{border-color:var(--tui-border-normal)}[_nghost-%COMP%] tr[_ngcontent-%COMP%]{border-color:inherit}.t-expand[_ngcontent-%COMP%]{-webkit-appearance:none;appearance:none;padding:0;border:0;background:none;font-size:inherit;line-height:inherit;text-decoration:none;display:flex;width:100%;height:100%;align-items:center;box-sizing:border-box;outline:none;font-weight:700;cursor:pointer;border-color:inherit}.t-expand[_ngcontent-%COMP%]:focus-visible .t-name[_ngcontent-%COMP%]{background:var(--tui-service-selection-background)}.t-expand[_ngcontent-%COMP%]:before, .t-expand[_ngcontent-%COMP%]:after{content:"";position:sticky;height:100%;border-left:1px solid;border-color:inherit}.t-expand[_ngcontent-%COMP%]:before{left:0}.t-expand[_ngcontent-%COMP%]:after{right:0}.t-heading[_ngcontent-%COMP%]{transition-property:background;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;height:var(--tui-height-m);font:var(--tui-font-text-s);padding:0;background:var(--tui-background-neutral-1);border-bottom:1px solid var(--tui-border-normal);border-color:inherit}.t-heading[_ngcontent-%COMP%]:hover{background:var(--tui-background-neutral-1-hover)}table[data-size="l"][_nghost-%COMP%] .t-heading[_ngcontent-%COMP%], table[data-size="l"] [_nghost-%COMP%] .t-heading[_ngcontent-%COMP%]{font:var(--tui-font-text-m);height:var(--tui-height-l)}.t-name[_ngcontent-%COMP%]{position:sticky;left:.75rem;display:inline-block}table[data-size="l"][_nghost-%COMP%] .t-name[_ngcontent-%COMP%], table[data-size="l"] [_nghost-%COMP%] .t-name[_ngcontent-%COMP%]{left:1rem}.t-chevron[_ngcontent-%COMP%]{position:sticky;right:.75rem;margin:0 .6875rem 0 auto}'],changeDetection:0});let t=e;return t})(),ge=(()=>{let e=class e{constructor(){this.heads=Jt,this.heads$=null,this.table=m(gt(()=>et))}ngAfterContentInit(){this.heads$=this.heads.changes.pipe(We(null),J(()=>this.heads.reduce((n,i)=>Vt(Nt({},n),{[i.tuiHead]:i}),{})))}};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=k({type:e,selectors:[["tr","tuiThGroup",""]],contentQueries:function(i,r,d){if(i&1&&(ut(d,At,5),ut(d,Bt,4)),i&2){let C;dt(C=mt())&&(r.th=C.first),dt(C=mt())&&(r.heads=C)}},standalone:!0,features:[tt([Fe]),P],attrs:Ro,ngContentSelectors:he,decls:3,vars:3,consts:[["plain",""],[4,"ngIf"],[3,"ngTemplateOutlet",4,"ngFor","ngForOf"],[3,"ngTemplateOutlet"],["tuiTh","",4,"ngIf"],["tuiTh",""]],template:function(i,r){i&1&&(pt(),W(0),h(1,jo,2,1,"ng-container",1),f(2,"async")),i&2&&(a(),p("ngIf",x(2,1,r.heads$)))},dependencies:[K,At,Kt,be,D],encapsulation:2,changeDetection:0});let t=e;return t})();function Ko(t,e){if(t&1&&(s(0,"tui-badge",14),f(1,"tuiAutoColor"),u(2),c()),t&2){let o=e.$implicit;_("background",x(1,3,o)),a(2),v(" ",o," ")}}function Xo(t,e){if(t&1&&(s(0,"th",18),u(1),c()),t&2){let o=l(2).$implicit;l();let n=E(15);_("top",-(n.getOffsetToRenderedContentStart()||0),"px"),p("sorter",null)("sticky",!0),a(),v(" ",o," ")}}function Zo(t,e){if(t&1&&h(0,Xo,2,5,"th",17),t&2){let o=l().$implicit;p("tuiHead",o)}}function Jo(t,e){if(t&1&&(s(0,"th",20),u(1),c()),t&2){let o=l(2).$implicit;l();let n=E(15);_("top",-(n.getOffsetToRenderedContentStart()||0),"px"),p("sticky",!0),a(),v(" ",o==="priceUsd"?"price, $":o," ")}}function tr(t,e){if(t&1&&h(0,Jo,2,4,"th",19),t&2){let o=l().$implicit;p("tuiHead",o)}}function er(t,e){if(t&1&&h(0,Zo,1,1,"th",15)(1,tr,1,1,"th",16),t&2){let o=e.$implicit;I(o==="from"||o==="to"?0:1)}}function ir(t,e){if(t&1&&(s(0,"td",22),u(1),f(2,"date"),c()),t&2){let o=l().$implicit,n=l().$implicit;a(),v(" ",o==="time"?Q(2,1,n[o],"dd.MM.yyyy"):n[o]," ")}}function nr(t,e){if(t&1&&h(0,ir,3,4,"td",23),t&2){let o=e.$implicit;p("tuiCell",o)}}function or(t,e){if(t&1&&(s(0,"tr",21),B(1,nr,1,1,"td",22,j),c()),t&2){let o=l(2);a(),N(o.columns)}}function rr(t,e){if(t&1){let o=T();s(0,"div",1),g(1,"tui-avatar",2),s(2,"div",3)(3,"h2",4),u(4),c(),s(5,"p",5),u(6),f(7,"tuiAmount"),f(8,"async"),c(),s(9,"div",6),B(10,Ko,3,5,"tui-badge",7,j),c()(),s(12,"button",8),w("click",function(){y(o);let i=l();return b(i.goBack())}),c()(),s(13,"tui-scrollbar")(14,"cdk-virtual-scroll-viewport",9,0)(16,"table",10)(17,"thead")(18,"tr",11),B(19,er,2,1,null,null,j),c()(),s(21,"tbody",12),h(22,or,3,0,"tr",13),f(23,"tuiTableSort"),c()()()()}if(t&2){let o=l(),n=ot(0);a(),p("src",n.src),a(),_("text-align","center"),a(2),ht(n.name),a(2),v(" ",x(8,13,Q(7,10,n.price,"USD"))," "),a(4),N(n.tags),a(4),p("itemSize",46)("maxBufferPx",500)("minBufferPx",200),a(2),p("columns",o.columns),a(3),N(o.columns),a(3),p("cdkVirtualForOf",x(23,15,n.transactions))}}var Mn=(()=>{let e=class e{constructor(){this.columns=["type","priceUsd","from","to","time"],this.nftChange=new A,this.nft=Yt.required()}goBack(){this.nftChange.emit(null)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=k({type:e,selectors:[["lmb-nft-item"]],inputs:{nft:[1,"nft"]},outputs:{nftChange:"nftChange"},standalone:!0,features:[P],decls:2,vars:2,consts:[["viewport",""],[1,"info"],[1,"logo-nft","nft-icon",3,"src"],["tuiHeader","",1,"text"],[1,"tui-space_top-0","tui-space_bottom-2"],["tuiSubtitle","",1,"tui-space_top-0","tui-space_bottom-0"],[1,"badges"],["appearance","primary",3,"background"],["appearance","icon","iconStart","@tui.circle-x","size","s","tuiIconButton","",3,"click"],["tuiScrollable","",1,"viewport","tui-zero-scrollbar",3,"itemSize","maxBufferPx","minBufferPx"],["tuiTable","",3,"columns"],["tuiThGroup",""],["tuiTbody",""],["tuiTr","",4,"cdkVirtualFor","cdkVirtualForOf"],["appearance","primary"],["tuiTh","",3,"sorter","sticky","top"],["tuiTh","",3,"sticky","top"],["tuiTh","",3,"sorter","sticky","top",4,"tuiHead"],["tuiTh","",3,"sorter","sticky"],["tuiTh","",3,"sticky","top",4,"tuiHead"],["tuiTh","",3,"sticky"],["tuiTr",""],["tuiTd",""],["tuiTd","",4,"tuiCell"]],template:function(i,r){if(i&1&&(q(0),h(1,rr,24,17)),i&2){let d=nt(r.nft());a(),I(d?1:-1)}},dependencies:[ue,me,de,S,D,oi,vt,qi,U,un,F,Y,Et,et,Qt,ge,At,jt,Wt,$t,Bt,fe],styles:[".nft-icon[_ngcontent-%COMP%]{border-radius:1rem;width:10rem;height:10rem}.info[_ngcontent-%COMP%]{position:relative;display:flex;padding:.687rem 0;justify-content:space-between}.text[_ngcontent-%COMP%]{display:flex;width:100%;flex-direction:column;align-items:center;justify-content:center}table[_ngcontent-%COMP%]{width:100%}table[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]{height:2.875rem}table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:first-child{width:10rem;font-weight:700}table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:last-child{width:3rem}.viewport[_ngcontent-%COMP%]{height:15.625rem}.badges[_ngcontent-%COMP%]{display:flex;gap:.5rem;margin-top:.4rem}"],changeDetection:0});let t=e;return t})();var _e=[{type:"Putting up for sale",priceUsd:2,from:"UQDYzZ...inf4K",to:"-",time:1222222222233},{type:"Sale",priceUsd:2,from:"UQDYzZ...inf4K",to:"UQGGxX...ilf3A",time:1500231542231},{type:"Putting up for sale",priceUsd:5,from:"UQGGxX...ilf3A",to:"-",time:1712412323429},{type:"Sale",priceUsd:5,from:"UQGGxX...ilf3A",to:"UQDYzZ...inf4K",time:1712482323429}],ar=[{name:"Beth",src:"./nft/1.jpg",price:1,tags:["Premium","VIP"],transactions:_e},{name:"Pryor",src:"./nft/2.jpg",price:2,tags:["Premium","VIP"],transactions:_e},{name:"Olea",src:"./nft/3.jpg",price:3,tags:["Premium","VIP"],transactions:_e},{name:"Imogen",src:"./nft/4.jpg",price:4,tags:["Premium","VIP"],transactions:_e}],On=(()=>{let e=class e{constructor(){this.nfts=ar}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=_t({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function sr(t,e){if(t&1){let o=T();s(0,"button",4),w("click",function(){let i=y(o).$index,r=l();return b(r.updateItem(i))}),g(1,"tui-avatar",5),s(2,"div",6)(3,"p",7),u(4),c(),s(5,"p",8),u(6),f(7,"tuiAmount"),f(8,"async"),c()()()}if(t&2){let o=e.$implicit;a(),p("src",o.src),a(),_("margin-top",0),a(2),ht(o.name),a(2),v(" ",x(8,8,Q(7,5,o.price,"USD"))," ")}}function cr(t,e){if(t&1){let o=T();s(0,"button",4),w("click",function(){let i=y(o).$index,r=l();return b(r.updateItem(i))}),g(1,"tui-avatar",5),s(2,"div",6)(3,"p",7),u(4),c(),s(5,"p",8),u(6),f(7,"tuiAmount"),f(8,"async"),c()()()}if(t&2){let o=e.$implicit;a(),p("src",o.src),a(),_("margin-top",0),a(2),ht(o.name),a(2),v(" ",x(8,8,Q(7,5,o.price,"USD"))," ")}}var In=(()=>{let e=class e{constructor(){this.nfts=m(On).nfts,this.nftChange=new A}updateItem(n){this.nftChange.emit(this.nfts[n])}};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=k({type:e,selectors:[["lmb-nft-list"]],outputs:{nftChange:"nftChange"},standalone:!0,features:[P],decls:14,vars:0,consts:[[1,"info"],[1,"row-title","tui-space_top-0","tui-space_bottom-0"],[1,"list"],["tuiCardLarge","","tuiSurface","elevated",1,"card-nft"],["tuiCardLarge","","tuiSurface","elevated",1,"card-nft",3,"click"],[1,"logo-nft",3,"src"],[1,"text"],[1,"nft-name","tui-space_top-1","tui-space_bottom-0"],["tuiSubtitle","",1,"tui-space_top-0","tui-space_bottom-0"]],template:function(i,r){i&1&&(s(0,"div",0)(1,"h3",1),u(2,"Top NFTs"),c(),s(3,"tui-scrollbar")(4,"div",2),B(5,sr,9,10,"button",3,j),c()()(),s(7,"div",0)(8,"h3",1),u(9,"Recent bought NFTs"),c(),s(10,"tui-scrollbar")(11,"div",2),B(12,cr,9,10,"button",3,j),c()()()),i&2&&(a(5),N(r.nfts),a(7),N(r.nfts))},dependencies:[S,D,vt,U,H,Et,sn],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;gap:1rem}.list[_ngcontent-%COMP%]{display:flex;justify-content:space-around;padding:1rem;gap:.5rem;max-width:100%}.info[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5rem}.logo-nft[_ngcontent-%COMP%]{width:100%;border-radius:0;height:60%}.card-nft[tuiCardLarge][data-space][_ngcontent-%COMP%]{padding:0;height:9rem;width:7.5rem;gap:0}.text[_ngcontent-%COMP%]{text-align:center;margin-left:auto;margin-right:auto}.nft-name[_ngcontent-%COMP%]{font-weight:600}.row-title[_ngcontent-%COMP%]{font-size:1.25rem}"],changeDetection:0});let t=e;return t})();function lr(t,e){if(t&1){let o=T();s(0,"lmb-nft-item",4),z("nftChange",function(i){y(o);let r=l();return L(r.nft,i)||(r.nft=i),b(i)}),c()}if(t&2){let o=l();V("nft",o.nft)}}function pr(t,e){if(t&1){let o=T();s(0,"lmb-nft-list",5),w("nftChange",function(i){y(o);let r=l();return b(r.nft=i)}),c()}}var Dn=(()=>{let e=class e{constructor(){this.nft=null}};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=k({type:e,selectors:[["lmb-nft"]],standalone:!0,features:[P],decls:6,vars:3,consts:[["tuiAppearance","whiteblock","tuiCardLarge","normal",1,"card"],["tuiHeader",""],["tuiTitle",""],[3,"nft"],[3,"nftChange","nft"],[3,"nftChange"]],template:function(i,r){i&1&&(s(0,"div",0)(1,"header",1)(2,"h2",2),u(3," NFT Market "),c()(),h(4,lr,1,1,"lmb-nft-item",3)(5,pr,1,0,"lmb-nft-list"),c()),i&2&&(a(2),_("text-align","center"),a(2),I(r.nft?4:5))},dependencies:[S,Mn,In,X,H,Y,R],styles:["@media (min-width: 68rem){.card[_ngcontent-%COMP%]{min-width:37rem}}"],changeDetection:0});let t=e;return t})();var ur=new Tt("",{factory:()=>"https://api.coincap.io/v2/assets"}),Z=(()=>{let e=class e{constructor(){this.http=m(ri),this.API=m(ur),this.tokens=this.getTokens()}getTokens(){return this.http.get(this.API).pipe(J(n=>n.data)).pipe(je({bufferSize:1,refCount:!0}))}getHistory(n,i){return this.http.get(`${this.API}/${n}/history`,{params:{interval:i}}).pipe(J(r=>r.data))}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=_t({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var Ce=(()=>{let e=class e{transform(n){return`https://assets.coincap.io/assets/icons/${n}@2x.png`}};e.\u0275fac=function(i){return new(i||e)},e.\u0275pipe=Ct({name:"coinIcon",type:e,pure:!0,standalone:!0});let t=e;return t})();function dr(t,e){if(t&1&&(s(0,"th",13),u(1),c()),t&2){let o=l().$implicit;l();let n=E(9);_("top",-(n.getOffsetToRenderedContentStart()||0),"px"),p("sticky",!0),a(),v(" ",o," ")}}function mr(t,e){if(t&1&&h(0,dr,2,4,"th",12),t&2){let o=e.$implicit;p("tuiHead",o)}}function hr(t,e){if(t&1&&(s(0,"td",16)(1,"div",17)(2,"tui-avatar-stack",18),g(3,"tui-avatar",19),f(4,"coinIcon"),g(5,"tui-avatar",19),f(6,"coinIcon"),c(),s(7,"div",20),u(8),c()()()),t&2){let o=l().$implicit;_("padding-left","0.5rem"),a(2),p("direction","right"),a(),p("src",x(4,8,o.symbolFirst)),a(2),p("src",x(6,10,o.symbolSecond)),a(2),_("font-weight","500"),a(),v(" ",o.Pair," ")}}function fr(t,e){if(t&1&&(s(0,"td",16)(1,"div",20),u(2),c()()),t&2){let o=l().$implicit;_("padding-left","0.5rem"),a(),_("font-weight","500"),a(),v(" $",o.TVL,"M ")}}function gr(t,e){if(t&1&&(s(0,"td",16)(1,"div",20),u(2),c()()),t&2){let o=l().$implicit;_("padding-left","0.5rem"),a(),_("font-weight","500"),a(),v(" ",o.APR,"% ")}}function _r(t,e){t&1&&(s(0,"tr",14),h(1,hr,9,12,"td",15)(2,fr,3,5,"td",15)(3,gr,3,5,"td",15),c()),t&2&&(a(),p("tuiCell","Pair"),a(),p("tuiCell","TVL"),a(),p("tuiCell","APR"))}var En=(()=>{let e=class e{constructor(){this.cryptoService=m(Z),this.tokens=at(this.cryptoService.tokens),this.tableData=G(()=>{let n=this.tokens()||[];return n.map((i,r)=>{var d,C,M,ft;return{Pair:`${(d=n==null?void 0:n[r])==null?void 0:d.symbol.toUpperCase()}/${(C=n==null?void 0:n[r+1])==null?void 0:C.symbol.toUpperCase()}`,TVL:this.getTVL(r),APR:this.getAPR(r),symbolFirst:(M=n==null?void 0:n[r])==null?void 0:M.symbol.toLowerCase(),symbolSecond:(ft=n==null?void 0:n[r+1])==null?void 0:ft.symbol.toLowerCase()}}).filter((i,r)=>r%2===0).filter(i=>i.Pair.includes(this.search().toUpperCase()))}),this.columns=["Pair","TVL","APR"],this.search=$("")}lengthPools(n){return[...new Array(n).keys()].filter((i,r)=>r%2===0)}getTVL(n){var r,d,C,M;let i=Number((d=(r=this.tokens())==null?void 0:r[n])==null?void 0:d.priceUsd)+Number((M=(C=this.tokens())==null?void 0:C[n+1])==null?void 0:M.priceUsd)+1;return i>100?(i/(i/100+1)).toFixed(1):i.toFixed(1)}getAPR(n){return(10-Number(this.getTVL(n))/11).toFixed(1)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=k({type:e,selectors:[["lmb-pools"]],standalone:!0,features:[P],decls:18,vars:9,consts:[["viewport",""],["tuiAppearance","whiteblock","tuiCardLarge","normal"],["tuiHeader",""],["tuiTitle",""],["tuiTextfieldIconLeft","@tui.search",3,"ngModelChange","ngModel"],[1,"list-pools"],["itemSize","64","tuiScrollable","",1,"viewport","tui-zero-scrollbar"],["tuiTable","",3,"columns"],["tuiThGroup",""],["tuiTh","",3,"sticky","top"],["tuiTbody",""],["tuiTr","",4,"cdkVirtualFor","cdkVirtualForOf"],["tuiTh","",3,"sticky","top",4,"tuiHead"],["tuiTh","",3,"sticky"],["tuiTr",""],["tuiTd","",3,"padding-left",4,"tuiCell"],["tuiTd",""],[1,"stack"],[1,"tui-space_top-3","tui-space_bottom-3",3,"direction"],["size","m",3,"src"],["TuiTitle",""]],template:function(i,r){if(i&1){let d=T();s(0,"div",1)(1,"header",2)(2,"h2",3),u(3," Pools "),c()(),s(4,"tui-input",4),z("ngModelChange",function(M){return y(d),L(r.search,M)||(r.search=M),b(M)}),u(5," Search "),c(),s(6,"div",5)(7,"tui-scrollbar")(8,"cdk-virtual-scroll-viewport",6,0)(10,"table",7)(11,"thead")(12,"tr",8),B(13,mr,1,1,"th",9,j),c()(),s(15,"tbody",10),h(16,_r,4,3,"tr",11),f(17,"tuiTableSort"),c()()()()()()}i&2&&(_("height","100%"),a(2),_("text-align","center"),a(2),V("ngModel",r.search),a(6),p("columns",r.columns),a(3),N(r.columns),a(3),p("cdkVirtualForOf",x(17,7,r.tableData())))},dependencies:[ue,me,de,Ce,S,yt,xt,Dt,X,U,ln,H,Y,pe,ce,le,Gi,Et,et,Qt,ge,At,jt,Wt,$t,Bt,fe,R],styles:[".list-pools[_ngcontent-%COMP%]{border:solid 1px var(--tui-border-normal);border-radius:1rem;overflow:hidden}.viewport[_ngcontent-%COMP%]{height:20rem}table[_ngcontent-%COMP%]{width:100%}table[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]{height:1px}table[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{border-top:0;border-left:0;border-right:0}table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding:0;text-align:center}table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:first-child{border-left:0}table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:nth-child(2){width:3.5rem}table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:last-child{width:2rem;border-right:0}.stack[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.8rem}"],changeDetection:0});let t=e;return t})();var Fn={Y:"d1",M6:"h6",M:"h1",W:"m15",D:"m1"};var Cr=(t,e)=>[t,e];function xr(t,e){if(t&1){let o=T();s(0,"button",4),w("click",function(){let i=y(o).$implicit,r=l();return b(r.filterButton.set(i))}),u(1),c()}if(t&2){let o=e.$implicit,n=l();p("tuiAppearanceState",o===n.filterButton()?"active":null),a(),v(" ",o," ")}}var An=(()=>{let e=class e{constructor(){this.pricesService=m(Z),this.step=G(()=>Math.ceil((this.history()??[]).length/this.maxPoints)),this.xTargets=G(()=>new Map((this.history()??[]).map((n,i)=>[Math.trunc(i/this.step()),new Date(n.date).toDateString()]))),this.chart=G(()=>this.processData(this.history())),this.minPrice=G(()=>Math.min(...(this.history()??[]).map(n=>Number(n.priceUsd)))),this.maxPrice=G(()=>Math.max(...(this.history()??[]).map(n=>Number(n.priceUsd)))),this.filterButtons=["D","W","M","M6","Y"],this.filterButton=$(this.filterButtons[0]),this.maxPoints=150,this.token=Yt.required(),this.interval=G(()=>Fn[this.filterButton()]),this.history=at(Ue([ve(this.token),ve(this.interval)]).pipe(St(([n,i])=>this.pricesService.getHistory(n,i)))),this.yStringify=n=>`${(this.maxPrice()>10?n:n/100).toLocaleString("en-US",{maximumFractionDigits:this.maxPrice()>10?0:2})} $`,this.xStringify=n=>`${this.xTargets().get(n)}`}processData(n){return(n??[]).map((r,d)=>[Math.trunc(d/this.step()),Number(r.priceUsd)*(this.maxPrice()>10?1:100)]).filter((r,d)=>d%this.step()===0)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=k({type:e,selectors:[["lmb-price-chart"]],inputs:{token:[1,"token"]},standalone:!0,features:[P],decls:9,vars:21,consts:[[1,"axes",3,"axisYLabels","horizontalLines","verticalLines"],[1,"chart",3,"height","value","width","x","xStringify","y","yStringify"],[1,"buttons"],["appearance","icon","tuiButton","",1,"period",3,"tuiAppearanceState"],["appearance","icon","tuiButton","",1,"period",3,"click","tuiAppearanceState"]],template:function(i,r){i&1&&(s(0,"tui-axes",0),f(1,"tuiAmount"),f(2,"async"),f(3,"tuiAmount"),f(4,"async"),g(5,"tui-line-chart",1),c(),s(6,"div",2),B(7,xr,2,2,"button",3,j),c()),i&2&&(p("axisYLabels",ii(18,Cr,x(2,12,x(1,10,r.minPrice()))||"",x(4,16,x(3,14,r.maxPrice()))||""))("horizontalLines",4)("verticalLines",4),a(5),p("height",r.maxPrice()*(r.maxPrice()>10?1:100)-r.minPrice()*(r.maxPrice()>10?1:100))("value",r.chart())("width",r.chart().length)("x",0)("xStringify",r.xStringify)("y",r.minPrice()*(r.maxPrice()>10?1:100))("yStringify",r.yStringify),a(2),N(r.filterButtons))},dependencies:[D,S,vt,_n,F,Cn],styles:[".buttons[_ngcontent-%COMP%]{display:flex;margin-top:1.5rem;justify-content:space-between}.axes[_ngcontent-%COMP%]{height:12.5rem}.period[_ngcontent-%COMP%]{width:2.5rem;height:1.5rem}.chart[_ngcontent-%COMP%]{color:var(--tui-chart-categorical-07);position:absolute;top:0;left:0;width:100%;height:100%}"],changeDetection:0});let t=e;return t})();function yr(t,e){if(t&1){let o=T();s(0,"div",4),w("click",function(){y(o);let i=l().$implicit,r=l(2);return b(r.chooseToken(i.id))}),g(1,"tui-avatar",5),s(2,"div",6),u(3),s(4,"div",7),u(5),f(6,"number"),s(7,"span"),u(8),f(9,"number"),c()()()()}if(t&2){let o=l().$implicit;a(),p("src","https://assets.coincap.io/assets/icons/"+o.symbol.toLowerCase()+"@2x.png"),a(2),v(" ",o.name," "),a(2),v(" ",Q(6,6,o.priceUsd,"1.2-2"),"$ "),a(2),_("color",o.changePercent24Hr[0]==="-"?"var(--tui-status-negative)":"var(--tui-status-positive)"),a(),v(" ",Q(9,9,o.changePercent24Hr,"1.2-2"),"% ")}}function br(t,e){if(t&1&&h(0,yr,10,12,"div",3),t&2){let o=e.$implicit,n=l(2);I(n.token===""||o.id===n.token?0:-1)}}function vr(t,e){if(t&1){let o=T();s(0,"button",8),w("click",function(){y(o);let i=l(2);return b(i.addToken())}),u(1," Add Token "),c()}}function Tr(t,e){if(t&1&&(s(0,"div",0)(1,"div",1),B(2,br,1,1,null,null,j),c(),h(4,vr,2,0,"button",2),c()),t&2){let o=l(),n=ot(0);a(2),N(n.slice(0,o.showTokens)),a(2),I(o.token===""&&o.showTokens{let e=class e{constructor(){this.pricesService=m(Z),this.tokens$=this.pricesService.tokens,this.showTokens=4,this.token="",this.tokenChange=new A}addToken(){this.showTokens+=1}chooseToken(n){let i=this.token===n?"":n;this.token=i,this.tokenChange.emit(i)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=k({type:e,selectors:[["lmb-price-list"]],inputs:{token:"token"},outputs:{tokenChange:"tokenChange"},standalone:!0,features:[P],decls:3,vars:4,consts:[["tuiCardLarge","",1,"price-list"],[1,"list"],["appearance","icon","iconStart","@tui.circle-plus","tuiIconButton","",1,"button-add"],["tuiCell","l"],["tuiCell","l",3,"click"],[3,"src"],["tuiTitle",""],["tuiSubtitle",""],["appearance","icon","iconStart","@tui.circle-plus","tuiIconButton","",1,"button-add",3,"click"]],template:function(i,r){if(i&1&&(q(0),f(1,"async"),h(2,Tr,5,1,"div",0)),i&2){let d=nt(x(1,1,r.tokens$));a(2),I(d?2:-1)}},dependencies:[D,S,Xt,U,F,H,Ft,R],styles:["[tuiCardLarge][_ngcontent-%COMP%] [tuiCell][data-size=l][_ngcontent-%COMP%]{margin:0}[tuiCardLarge][_ngcontent-%COMP%] [tuiCell][data-size=l][_ngcontent-%COMP%]:not(:last-child){border-radius:0;box-shadow:0 1px var(--tui-border-normal)}[tuiCardLarge][_ngcontent-%COMP%] [tuiCell][data-size=l][_ngcontent-%COMP%]:hover{background-color:var(--tui-background-neutral-1-hover)}[tuiCardLarge][_ngcontent-%COMP%] [tuiCell][data-size=l][_ngcontent-%COMP%]:active{background-color:var(--tui-background-neutral-1-pressed)}.price-list[_ngcontent-%COMP%]{padding:0}.button-add[_ngcontent-%COMP%]{margin-left:auto;margin-right:auto}.list[_ngcontent-%COMP%]{max-height:15.5rem;overflow:scroll;background-color:var(--tui-background-base-alt);border-radius:1rem;border:1px solid var(--tui-border-normal)}"],changeDetection:0});let t=e;return t})();function wr(t,e){if(t&1&&g(0,"lmb-price-chart",3),t&2){let o=l();p("token",o.token)}}var Nn=(()=>{let e=class e{constructor(){this.pricesService=m(Z),this.token=""}};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=k({type:e,selectors:[["lmb-prices"]],standalone:!0,features:[P],decls:6,vars:8,consts:[["tuiAppearance","whiteblock","tuiCardLarge","normal"],["tuiHeader",""],["tuiTitle",""],[3,"token"],[3,"tokenChange","token"]],template:function(i,r){i&1&&(s(0,"div",0)(1,"header",1)(2,"h2",2),u(3," Cryptocurrency Prices "),c()(),h(4,wr,1,1,"lmb-price-chart",3),s(5,"lmb-price-list",4),z("tokenChange",function(C){return L(r.token,C)||(r.token=C),C}),c()()),i&2&&(_("height","100%")("min-height","420px"),a(2),_("text-align","center"),a(2),I(r.token!==""?4:-1),a(),V("token",r.token))},dependencies:[S,An,Bn,X,H,Y,R],encapsulation:2,changeDetection:0});let t=e;return t})();function kr(t,e){if(t&1){let o=T();s(0,"tui-input-number",18),z("ngModelChange",function(i){y(o);let r=l(3);return L(r.inputStake,i)||(r.inputStake=i),b(i)}),u(1," Amount BTC "),c()}if(t&2){let o=l(3);p("max",o.available-o.amount())("min",0),V("ngModel",o.inputStake)}}function Pr(t,e){if(t&1){let o=T();s(0,"tui-input-number",18),z("ngModelChange",function(i){y(o);let r=l(3);return L(r.inputUnstake,i)||(r.inputUnstake=i),b(i)}),u(1," Amount BTC "),c()}if(t&2){let o=l(3);p("max",o.amount())("min",0),V("ngModel",o.inputUnstake)}}function Sr(t,e){if(t&1){let o=T();s(0,"header",15)(1,"h2",4),u(2),c()(),s(3,"p"),u(4),c(),h(5,kr,2,3,"tui-input-number",16)(6,Pr,2,3,"tui-input-number",16),s(7,"p")(8,"button",17),w("click",function(){let i=y(o).$implicit,r=l(2);return b([i.complete(),r.addAmount(r.stake?r.inputStake:-r.inputUnstake),r.inputStake=0])}),u(9),c()()}if(t&2){let o=l(2);a(2),v("",o.stake?"Staking":"Unstaking"," Bitcoin"),a(2),Mt("Available for ",o.stake?"stake":"unstake",": ",o.stake?o.available-o.amount():o.amount()," BTC"),a(),I(o.stake?5:6),a(4),v(" ",o.stake?"Stake":"Unstake"," ")}}function Mr(t,e){if(t&1){let o=T();s(0,"div",1)(1,"header",2),g(2,"tui-avatar",3),f(3,"coinIcon"),s(4,"h2",4),u(5," Staking Bitcoin "),c(),s(6,"div",5),u(7," Earn a share of the protocol`s fees "),g(8,"br"),u(9," while staking BITCOIN "),c()(),s(10,"div",6)(11,"button",7),w("click",function(){y(o);let i=E(49),r=l();return b([r.stake=!0,r.showDialog(i)])}),u(12," Stake "),c(),s(13,"button",8),w("click",function(){y(o);let i=E(49),r=l();return b([r.stake=!1,r.showDialog(i)])}),u(14," Unstake "),c()(),s(15,"div",9)(16,"div",10),u(17,"My position"),c(),g(18,"hr"),s(19,"div",11)(20,"div",12),u(21),c(),s(22,"div"),u(23),f(24,"number"),c()(),g(25,"hr"),s(26,"div",11)(27,"div"),u(28,"Rewards"),c(),s(29,"div",12),u(30,"0 BTC"),c(),s(31,"div"),u(32,"$0"),c()()(),s(33,"div",9)(34,"div",10),u(35,"Overview"),c(),g(36,"hr"),s(37,"div",11)(38,"div",13),u(39,"Total stacked"),c(),s(40,"div",14),u(41,"1.5M BTC"),c()(),g(42,"hr"),s(43,"div",11)(44,"div",13),u(45,"APR"),c(),s(46,"div",14),u(47,"5%"),c()()()(),h(48,Sr,10,5,"ng-template",null,0,rt)}if(t&2){let o=l();_("height","100%"),a(2),p("src",x(3,9,"btc")),a(2),_("text-align","center"),a(2),_("text-align","center"),a(15),v("",o.amount()," BTC"),a(2),v("$",Q(24,11,o.price(),"1.2-2"),"")}}var Vn=(()=>{let e=class e{constructor(){this.dialogs=m(nn),this.cryptoService=m(Z),this.tokens=at(this.cryptoService.tokens),this.price=G(()=>{var n;return this.amount()*(Number((n=(this.tokens()??[]).find(i=>i.symbol==="BTC"))==null?void 0:n.priceUsd)??0)}),this.inputStake=0,this.inputUnstake=0,this.amount=$(0),this.available=100,this.stake=!1}addAmount(n){this.amount.update(i=>i+n)}showDialog(n){this.dialogs.open(n).subscribe()}};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=k({type:e,selectors:[["lmb-staking"]],standalone:!0,features:[P],decls:2,vars:1,consts:[["template",""],["tuiAppearance","whiteblock","tuiCardLarge","normal"],["tuiHeader","",1,"info"],["size","l",3,"src"],["tuiTitle",""],["tuiSubtitle",""],[1,"group-buttons"],["appearance","accent","tuiButton","",3,"click"],["appearance","whiteblock","tuiButton","",3,"click"],[1,"position"],[1,"position-title"],[1,"block-position"],[1,"tui-space_top-0","tui-space_bottom-0","bold"],[1,"tui-space_top-0","tui-space_bottom-0"],[1,"bold"],["tuiHeader",""],["tuiAutoFocus","",3,"max","min","ngModel"],["tuiButton","","type","submit",3,"click"],["tuiAutoFocus","",3,"ngModelChange","max","min","ngModel"]],template:function(i,r){if(i&1&&(q(0),h(1,Mr,50,14)),i&2){let d=r.tokens();a(),I(d?1:-1)}},dependencies:[Ce,S,Xt,yt,xt,Dt,X,ne,U,F,H,Y,se,re,ae,R],styles:[".info[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center}.group-buttons[_ngcontent-%COMP%]{display:flex;gap:.5rem}.group-buttons[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{flex-grow:1}.position[_ngcontent-%COMP%]{border:solid 1px var(--tui-border-normal);border-radius:1rem}.position-title[_ngcontent-%COMP%]{padding:.5rem .5rem .5rem 1rem;font-weight:600}.bold[_ngcontent-%COMP%]{font-weight:700;font-size:1.2rem}.block-position[_ngcontent-%COMP%]{display:flex;padding:.5rem 1rem;flex-direction:column}"],changeDetection:0});let t=e;return t})();var Or=(t,e)=>e.symbol;function Ir(t,e){t&1&&g(0,"tui-icon",17),t&2&&_("font-size",1,"em")("margin-left",.5,"rem")}function Dr(t,e){if(t&1){let o=T();s(0,"button",15),w("click",function(){let i=y(o).$implicit,r=l().$implicit;l();let d=ot(9),C=l(2);return b([d?C.newTokenTo(i.symbol):C.newTokenFrom(i.symbol),r()])}),u(1),h(2,Ir,1,4,"tui-icon",16),c()}if(t&2){let o=e.$implicit;l(2);let n=ot(0);p("value",o.symbol),a(),v(" ",o.symbol.toUpperCase()," "),a(),p("ngIf",o.symbol.toLowerCase()===n.toLowerCase())}}function Er(t,e){if(t&1&&(s(0,"tui-data-list",13),B(1,Dr,3,3,"button",14,Or),c()),t&2){l(3);let o=ot(0);a(),N(o)}}function Fr(t,e){if(t&1){let o=T();s(0,"input",18),z("ngModelChange",function(i){y(o);let r=l(3);return L(r.to,i)||(r.to=i),b(i)}),w("input",function(){y(o);let i=l(3);return b(i.newSwapTo())}),c()}if(t&2){let o=l(3);V("ngModel",o.to)}}function Ar(t,e){if(t&1){let o=T();s(0,"input",18),z("ngModelChange",function(i){y(o);let r=l(3);return L(r.from,i)||(r.from=i),b(i)}),w("input",function(){y(o);let i=l(3);return b(i.newSwapFrom())}),c()}if(t&2){let o=l(3);V("ngModel",o.from)}}function Br(t,e){if(t&1&&(u(0),f(1,"tuiAmount"),f(2,"async")),t&2){let o=l(3);v(" \u2248",x(2,4,Q(1,1,o.priceTo()*o.to(),"USD"))," ")}}function Nr(t,e){if(t&1&&(u(0),f(1,"tuiAmount"),f(2,"async")),t&2){let o=l(3);v(" \u2248",x(2,4,Q(1,1,o.priceFrom()*o.from(),"USD"))," ")}}function Vr(t,e){if(t&1&&(q(0),s(1,"div")(2,"div",6)(3,"div",7),u(4),c(),s(5,"div",7),u(6),c()(),s(7,"button",8),g(8,"tui-avatar",9),q(9),h(10,Er,3,0,"ng-template",null,0,rt),c()(),s(12,"div")(13,"tui-input-inline",10),h(14,Fr,1,1,"input",11)(15,Ar,1,1,"input",11),c(),s(16,"div")(17,"div",12),h(18,Br,3,6)(19,Nr,3,6),c(),g(20,"hr"),c()()),t&2){let o=e.$implicit,n=e.$index,i=E(11),r=l(2),d=nt(n?r.tokenTo().toUpperCase():r.tokenFrom().toUpperCase());a(4),ht(o),a(2),v("Balance: 1000 ",d.toUpperCase(),""),a(),p("tuiDropdown",i),a(),p("src","https://assets.coincap.io/assets/icons/"+d.toLowerCase()+"@2x.png"),a(),nt(n),a(5),I(n?14:15),a(4),I(n?18:19)}}function Lr(t,e){if(t&1&&(s(0,"div",2)(1,"header",3)(2,"h2",4),u(3," Swap "),c()(),B(4,Vr,21,8,null,null,j),s(6,"button",5),u(7," Swap "),c()()),t&2){let o=l();_("height","100%"),a(2),_("text-align","center"),a(2),N(o.titles)}}var Ln=(()=>{let e=class e{constructor(){this.cryptoService=m(Z),this.tokens=at(this.cryptoService.tokens),this.priceFrom=G(()=>this.getPrice(this.tokenFrom())),this.priceTo=G(()=>this.getPrice(this.tokenTo())),this.titles=["From","To"],this.from=$(0),this.to=$(0),this.tokenFrom=$("eth"),this.tokenTo=$("btc")}newTokenFrom(n){this.tokenFrom.set(n),this.newSwapFrom()}newTokenTo(n){this.tokenTo.set(n),this.newSwapTo()}getPrice(n){var i;return Number((i=(this.tokens()??[]).find(r=>r.symbol.toLowerCase()===n.toLowerCase()))==null?void 0:i.priceUsd)||0}newSwapFrom(){this.to.set(Number((this.priceFrom()*Number(this.from())/this.priceTo()).toFixed(2)))}newSwapTo(){this.from.set(Number((this.priceTo()*Number(this.to())/this.priceFrom()).toFixed(2)))}};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=k({type:e,selectors:[["lmb-swap"]],standalone:!0,features:[P],decls:2,vars:2,consts:[["dropdownContent",""],["tuiAppearance","whiteblock","tuiCardLarge","normal",3,"height"],["tuiAppearance","whiteblock","tuiCardLarge","normal"],["tuiHeader",""],["tuiTitle",""],["appearance","primary","tuiButton",""],["tuiCell","l"],["TuiTitle",""],["tuiButton","","tuiChevron","","tuiDropdownOpen","","type","button",1,"choose-crypto",3,"tuiDropdown"],["size","xs",3,"src"],["tuiTitle","l"],["max","1000","min","0","type","number",3,"ngModel"],["tuiSubtitle","",1,"equal-number"],["size","s"],["tuiOption","",3,"value"],["tuiOption","",3,"click","value"],["icon","@tui.check",3,"font-size","margin-left",4,"ngIf"],["icon","@tui.check"],["max","1000","min","0","type","number",3,"ngModelChange","input","ngModel"]],template:function(i,r){if(i&1&&(q(0),h(1,Lr,8,4,"div",1)),i&2){let d=nt(r.tokens());a(),I(d?1:-1)}},dependencies:[S,K,D,yt,li,hi,xt,Ci,_i,Dt,vt,X,U,F,H,Ft,oe,en,tn,Zi,Ji,Y,Pt,Tn,R],styles:[".choose-crypto[_ngcontent-%COMP%]{height:2rem}.equal-number[_ngcontent-%COMP%]{text-align:right}tui-input-inline[_ngcontent-%COMP%]{height:2.5rem}input[type=number][_ngcontent-%COMP%]{-moz-appearance:textfield}input[_ngcontent-%COMP%]::-webkit-outer-spin-button, input[_ngcontent-%COMP%]::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}"],changeDetection:0});let t=e;return t})();var Pp=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=k({type:e,selectors:[["lmb-crypto"]],standalone:!0,features:[P],decls:11,vars:0,consts:[[1,"layout"],[1,"left"],[1,""],[1,"staking"],[1,"right"],[1,"right-top"],[1,"minter"],[1,"right-bottom"]],template:function(i,r){i&1&&(s(0,"div",0)(1,"div",1),g(2,"lmb-prices",2)(3,"lmb-staking",3),c(),s(4,"div",4)(5,"div",5),g(6,"lmb-minter",6)(7,"lmb-swap",2),c(),s(8,"div",7),g(9,"lmb-nft",2)(10,"lmb-pools",2),c()()())},dependencies:[S,Sn,Dn,En,Nn,Vn,Ln],styles:[".layout[_ngcontent-%COMP%]{display:flex;width:100%;gap:1rem;margin-top:1rem}@media (max-width: 68rem){.layout[_ngcontent-%COMP%]{display:flex;flex-direction:column}}.minter[_ngcontent-%COMP%]{height:100%}.left[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1rem;flex-grow:1;width:21.875rem;flex-shrink:0}@media (max-width: 68rem){.left[_ngcontent-%COMP%]{width:100%}}.right[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1rem;flex-grow:1}.right-top[_ngcontent-%COMP%]{display:grid;gap:1rem;height:100%;grid-template-columns:2fr 4fr;flex-grow:1}@media (max-width: 68rem){.right-top[_ngcontent-%COMP%]{display:flex;flex-direction:column}}.right-bottom[_ngcontent-%COMP%]{display:grid;gap:1rem;grid-template-columns:4fr 3fr}@media (max-width: 80rem){.right-bottom[_ngcontent-%COMP%]{display:flex;flex-direction:column}}"],changeDetection:0});let t=e;return t})();export{Pp as CryptoComponent}; diff --git a/chunk-PIDCXASU.js b/chunk-JUA3DLL5.js similarity index 99% rename from chunk-PIDCXASU.js rename to chunk-JUA3DLL5.js index c86672a2d..5e12feb76 100644 --- a/chunk-PIDCXASU.js +++ b/chunk-JUA3DLL5.js @@ -1 +1 @@ -import{b as pe,d as ve}from"./chunk-UPS6ZX2Y.js";import{b as me,e as _e}from"./chunk-DNEQ7KDT.js";import{N as Tt,na as xe,oa as ye,pa as Ce,qa as be,sa as we,ta as Se}from"./chunk-OKL4RZMA.js";import{A as Z,Ac as ae,B as G,Bb as g,Ca as T,Cb as f,Db as y,Ea as I,Eb as V,Ec as tt,Fa as Yt,Fb as j,Fd as ce,G as bt,Hb as ne,Ja as Wt,K as at,Ka as Ut,Kb as St,Kd as pt,La as Xt,Lb as h,M as lt,Ma as dt,Mb as H,Mc as ut,Nb as L,Nc as ft,Ob as Et,Pa as Zt,Pb as ht,Pc as gt,Qa as Gt,Qb as $,Qd as de,Rb as Y,Sa as Qt,Sb as re,Ta as w,Tb as E,Uc as le,Ud as Dt,V as At,Va as P,Vb as O,Vd as mt,W as N,Wa as qt,Ye as ue,aa as Nt,af as fe,bc as R,bf as ge,cb as l,cc as M,db as p,ea as Vt,f as Lt,fb as Kt,fc as oe,ha as Q,hb as Jt,i as rt,ia as ct,ja as q,jb as te,jc as K,kb as ee,kc as J,l as zt,m as C,mb as wt,me as _t,ob as ie,p as Ft,pa as jt,q as Bt,qa as F,rb as _,sb as k,t as ot,ta as B,tb as u,ub as x,ue as he,va as b,vb as S,w as z,wa as v,xa as Ht,y as st,ya as $t,yc as Ot,zc as se}from"./chunk-NEAIWFFQ.js";var Ui=(()=>{let i=class i{transform(t){return pe(t)}};i.\u0275fac=function(n){return new(n||i)},i.\u0275pipe=Yt({name:"tuiAutoColor",type:i,pure:!0,standalone:!0});let e=i;return e})();var Ve=["tuiProgressLabel",""],je=[[["progress"]],[["tui-progress-circle"]],"*"],He=["progress","tui-progress-circle","*"],Ee={color:null,size:"m"},Oe=pt(Ee);function sn(e){return Dt(Oe,e,Ee)}var an=(()=>{let i=class i{constructor(){this.options=v(Oe),this.animationDelay$=z(!0).pipe(At(0)),this.value=0,this.max=1,this.color=this.options.color,this.size=this.options.size}get progressRatio(){let t=this.value/this.max;return Number.isFinite(t)?t:0}};i.\u0275fac=function(n){return new(n||i)},i.\u0275cmp=T({type:i,selectors:[["tui-progress-circle"]],hostVars:5,hostBindings:function(n,r){n&2&&(k("data-size",r.size),x("--tui-progress-color",r.color)("--t-progress-ratio",r.progressRatio))},inputs:{value:"value",max:"max",color:"color",size:"size"},standalone:!0,features:[M],decls:5,vars:6,consts:[[1,"t-hidden-progress",3,"max","value"],["aria-hidden","true","height","100%","width","100%",1,"t-svg"],["cx","50%","cy","50%",1,"t-track"],["cx","50%","cy","50%",1,"t-progress"]],template:function(n,r){n&1&&(y(0,"progress",0),dt(),g(1,"svg",1),y(2,"circle",2)(3,"circle",3),K(4,"async"),f()),n&2&&(u("max",r.max)("value",r.value),l(3),S("t-progress_filled",J(4,4,r.animationDelay$)))},dependencies:[gt],styles:["[_nghost-%COMP%]{--t-track-stroke: var(--tui-thickness, .375em);--t-progress-stroke: var(--tui-thickness, .375em);position:relative;display:block;color:var(--tui-background-accent-1);transform:rotate(-90deg);transform-origin:center;font-size:1rem;width:var(--t-diameter);height:var(--t-diameter)}[data-size=xxs][_nghost-%COMP%]{--t-diameter: 2em}[data-size=xs][_nghost-%COMP%]{--t-diameter: 2.5em}[data-size=s][_nghost-%COMP%]{--t-diameter: 3.5em}[data-size=m][_nghost-%COMP%]{--t-diameter: 4em}[data-size=l][_nghost-%COMP%]{--t-diameter: 5em}[data-size=xl][_nghost-%COMP%]{--t-diameter: 6em}[data-size=xxl][_nghost-%COMP%]{--t-diameter: 8em}.t-track[_ngcontent-%COMP%]{fill:transparent;stroke:var(--tui-background-neutral-1);stroke-width:var(--t-track-stroke);r:calc((var(--t-diameter) - var(--t-track-stroke)) / 2)}.t-progress[_ngcontent-%COMP%]{fill:transparent;stroke:var(--tui-progress-color, currentColor);stroke-linecap:round;stroke-width:var(--t-progress-stroke);stroke-dasharray:calc(2 * 3.14159265 * calc((var(--t-diameter) - var(--t-progress-stroke)) / 2));stroke-dashoffset:calc(2 * 3.14159265 * calc((var(--t-diameter) - var(--t-progress-stroke)) / 2));r:calc((var(--t-diameter) - var(--t-progress-stroke)) / 2)}.t-progress_filled[_ngcontent-%COMP%]{transition:stroke-dashoffset var(--tui-duration) linear;stroke-dashoffset:calc(calc(2 * 3.14159265 * calc((var(--t-diameter) - var(--t-progress-stroke)) / 2)) - var(--t-progress-ratio) * calc(2 * 3.14159265 * calc((var(--t-diameter) - var(--t-progress-stroke)) / 2)))}.t-hidden-progress[_ngcontent-%COMP%]{position:absolute;clip:rect(1px,1px,1px,1px);clip-path:inset(50%);height:1px;width:1px;margin:-1px;overflow:hidden;padding:0}.t-svg[_ngcontent-%COMP%]{overflow:unset}"],changeDetection:0});let e=i;return e})(),ln=(()=>{let i=class i{};i.\u0275fac=function(n){return new(n||i)},i.\u0275cmp=T({type:i,selectors:[["label","tuiProgressLabel",""]],standalone:!0,features:[M],attrs:Ve,ngContentSelectors:He,decls:4,vars:0,consts:[[1,"t-label"]],template:function(n,r){n&1&&(H(je),L(0),L(1,1),g(2,"span",0),L(3,2),f())},styles:["[_nghost-%COMP%]{position:relative;display:inline-block;color:var(--tui-text-primary)}.t-label[_ngcontent-%COMP%]{position:absolute;top:0;left:0;width:100%;height:100%;display:flex;font:var(--tui-font-text-s);flex-direction:column;justify-content:center;align-items:center}"],changeDetection:0});let e=i;return e})();function hn(e){return e!=null&&`${e}`!="false"}function et(e,i=0){return $e(e)?Number(e):arguments.length===2?i:0}function $e(e){return!isNaN(parseFloat(e))&&!isNaN(Number(e))}function De(e){return e instanceof P?e.nativeElement:e}var It;try{It=typeof Intl<"u"&&Intl.v8BreakIterator}catch{It=!1}var it=(()=>{let i=class i{constructor(t){this._platformId=t,this.isBrowser=this._platformId?le(this._platformId):typeof document=="object"&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!!(window.chrome||It)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}};i.\u0275fac=function(n){return new(n||i)(b(qt))},i.\u0275prov=F({token:i,factory:i.\u0275fac,providedIn:"root"});let e=i;return e})();var D=function(e){return e[e.NORMAL=0]="NORMAL",e[e.NEGATED=1]="NEGATED",e[e.INVERTED=2]="INVERTED",e}(D||{}),vt,A;function Pe(){if(A==null){if(typeof document!="object"||!document||typeof Element!="function"||!Element)return A=!1,A;if("scrollBehavior"in document.documentElement.style)A=!0;else{let e=Element.prototype.scrollTo;e?A=!/\{\s*\[native code\]\s*\}/.test(e.toString()):A=!1}}return A}function U(){if(typeof document!="object"||!document)return D.NORMAL;if(vt==null){let e=document.createElement("div"),i=e.style;e.dir="rtl",i.width="1px",i.overflow="auto",i.visibility="hidden",i.pointerEvents="none",i.position="absolute";let o=document.createElement("div"),t=o.style;t.width="2px",t.height="1px",e.appendChild(o),document.body.appendChild(e),vt=D.NORMAL,e.scrollLeft===0&&(e.scrollLeft=1,vt=e.scrollLeft===0?D.NEGATED:D.INVERTED),e.remove()}return vt}var We=new B("cdk-dir-doc",{providedIn:"root",factory:Ue});function Ue(){return v(tt)}var Xe=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;function Ze(e){let i=(e==null?void 0:e.toLowerCase())||"";return i==="auto"&&typeof navigator<"u"&&(navigator!=null&&navigator.language)?Xe.test(navigator.language)?"rtl":"ltr":i==="rtl"?"rtl":"ltr"}var xt=(()=>{let i=class i{constructor(t){if(this.value="ltr",this.change=new Qt,t){let n=t.body?t.body.dir:null,r=t.documentElement?t.documentElement.dir:null;this.value=Ze(n||r||"ltr")}}ngOnDestroy(){this.change.complete()}};i.\u0275fac=function(n){return new(n||i)(b(We,8))},i.\u0275prov=F({token:i,factory:i.\u0275fac,providedIn:"root"});let e=i;return e})();var Pt=class{};function Re(e){return e&&typeof e.connect=="function"&&!(e instanceof zt)}var yt=class extends Pt{constructor(i){super(),this._data=i}connect(){return st(this._data)?this._data:z(this._data)}disconnect(){}},nt=function(e){return e[e.REPLACED=0]="REPLACED",e[e.INSERTED=1]="INSERTED",e[e.MOVED=2]="MOVED",e[e.REMOVED=3]="REMOVED",e}(nt||{}),Rt=new B("_ViewRepeater");var Ct=class{constructor(){this.viewCacheSize=20,this._viewCache=[]}applyChanges(i,o,t,n,r){i.forEachOperation((s,a,d)=>{let c,m;if(s.previousIndex==null){let X=()=>t(s,a,d);c=this._insertView(X,d,o,n(s)),m=c?nt.INSERTED:nt.REPLACED}else d==null?(this._detachAndCacheView(a,o),m=nt.REMOVED):(c=this._moveView(a,d,o,n(s)),m=nt.MOVED);r&&r({context:c==null?void 0:c.context,operation:m,record:s})})}detach(){for(let i of this._viewCache)i.destroy();this._viewCache=[]}_insertView(i,o,t,n){let r=this._insertViewFromCache(o,t);if(r){r.context.$implicit=n;return}let s=i();return t.createEmbeddedView(s.templateRef,s.context,s.index)}_detachAndCacheView(i,o){let t=o.detach(i);this._maybeCacheView(t,o)}_moveView(i,o,t,n){let r=t.get(i);return t.move(r,o),r.context.$implicit=n,r}_maybeCacheView(i,o){if(this._viewCache.length0?r/this._itemSize:0;if(o.end>n){let d=Math.ceil(t/this._itemSize),c=Math.max(0,Math.min(s,n-d));s!=c&&(s=c,r=c*this._itemSize,o.start=Math.floor(s)),o.end=Math.max(0,Math.min(n,o.start+d))}let a=r-o.start*this._itemSize;if(a0&&(o.end=Math.min(n,o.end+c),o.start=Math.max(0,Math.floor(s-this._minBufferPx/this._itemSize)))}}this._viewport.setRenderedRange(o),this._viewport.setRenderedContentOffset(this._itemSize*o.start),this._scrolledIndexChange.next(Math.floor(s))}};function Ke(e){return e._scrollStrategy}var Zn=(()=>{let i=class i{constructor(){this._itemSize=20,this._minBufferPx=100,this._maxBufferPx=200,this._scrollStrategy=new Mt(this.itemSize,this.minBufferPx,this.maxBufferPx)}get itemSize(){return this._itemSize}set itemSize(t){this._itemSize=et(t)}get minBufferPx(){return this._minBufferPx}set minBufferPx(t){this._minBufferPx=et(t)}get maxBufferPx(){return this._maxBufferPx}set maxBufferPx(t){this._maxBufferPx=et(t)}ngOnChanges(){this._scrollStrategy.updateItemAndBufferSize(this.itemSize,this.minBufferPx,this.maxBufferPx)}};i.\u0275fac=function(n){return new(n||i)},i.\u0275dir=I({type:i,selectors:[["cdk-virtual-scroll-viewport","itemSize",""]],inputs:{itemSize:"itemSize",minBufferPx:"minBufferPx",maxBufferPx:"maxBufferPx"},standalone:!0,features:[R([{provide:Le,useFactory:Ke,deps:[jt(()=>i)]}]),Wt]});let e=i;return e})(),Je=20,kt=(()=>{let i=class i{constructor(t,n,r){this._ngZone=t,this._platform=n,this._scrolled=new C,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=r}register(t){this.scrollContainers.has(t)||this.scrollContainers.set(t,t.elementScrolled().subscribe(()=>this._scrolled.next(t)))}deregister(t){let n=this.scrollContainers.get(t);n&&(n.unsubscribe(),this.scrollContainers.delete(t))}scrolled(t=Je){return this._platform.isBrowser?new rt(n=>{this._globalSubscription||this._addGlobalListener();let r=t>0?this._scrolled.pipe(lt(t)).subscribe(n):this._scrolled.subscribe(n);return this._scrolledCount++,()=>{r.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):z()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((t,n)=>this.deregister(n)),this._scrolled.complete()}ancestorScrolled(t,n){let r=this.getAncestorScrollContainers(t);return this.scrolled(n).pipe(at(s=>!s||r.indexOf(s)>-1))}getAncestorScrollContainers(t){let n=[];return this.scrollContainers.forEach((r,s)=>{this._scrollableContainsElement(s,t)&&n.push(s)}),n}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(t,n){let r=De(n),s=t.getElementRef().nativeElement;do if(r==s)return!0;while(r=r.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>{let t=this._getWindow();return bt(t.document,"scroll").subscribe(()=>this._scrolled.next())})}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}};i.\u0275fac=function(n){return new(n||i)(b(w),b(it),b(tt,8))},i.\u0275prov=F({token:i,factory:i.\u0275fac,providedIn:"root"});let e=i;return e})(),ze=(()=>{let i=class i{constructor(t,n,r,s){this.elementRef=t,this.scrollDispatcher=n,this.ngZone=r,this.dir=s,this._destroyed=new C,this._elementScrolled=new rt(a=>this.ngZone.runOutsideAngular(()=>bt(this.elementRef.nativeElement,"scroll").pipe(q(this._destroyed)).subscribe(a)))}ngOnInit(){this.scrollDispatcher.register(this)}ngOnDestroy(){this.scrollDispatcher.deregister(this),this._destroyed.next(),this._destroyed.complete()}elementScrolled(){return this._elementScrolled}getElementRef(){return this.elementRef}scrollTo(t){let n=this.elementRef.nativeElement,r=this.dir&&this.dir.value=="rtl";t.left==null&&(t.left=r?t.end:t.start),t.right==null&&(t.right=r?t.start:t.end),t.bottom!=null&&(t.top=n.scrollHeight-n.clientHeight-t.bottom),r&&U()!=D.NORMAL?(t.left!=null&&(t.right=n.scrollWidth-n.clientWidth-t.left),U()==D.INVERTED?t.left=t.right:U()==D.NEGATED&&(t.left=t.right?-t.right:t.right)):t.right!=null&&(t.left=n.scrollWidth-n.clientWidth-t.right),this._applyScrollToOptions(t)}_applyScrollToOptions(t){let n=this.elementRef.nativeElement;Pe()?n.scrollTo(t):(t.top!=null&&(n.scrollTop=t.top),t.left!=null&&(n.scrollLeft=t.left))}measureScrollOffset(t){let n="left",r="right",s=this.elementRef.nativeElement;if(t=="top")return s.scrollTop;if(t=="bottom")return s.scrollHeight-s.clientHeight-s.scrollTop;let a=this.dir&&this.dir.value=="rtl";return t=="start"?t=a?r:n:t=="end"&&(t=a?n:r),a&&U()==D.INVERTED?t==n?s.scrollWidth-s.clientWidth-s.scrollLeft:s.scrollLeft:a&&U()==D.NEGATED?t==n?s.scrollLeft+s.scrollWidth-s.clientWidth:-s.scrollLeft:t==n?s.scrollLeft:s.scrollWidth-s.clientWidth-s.scrollLeft}};i.\u0275fac=function(n){return new(n||i)(p(P),p(kt),p(w),p(xt,8))},i.\u0275dir=I({type:i,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]],standalone:!0});let e=i;return e})(),ti=20,ei=(()=>{let i=class i{constructor(t,n,r){this._platform=t,this._change=new C,this._changeListener=s=>{this._change.next(s)},this._document=r,n.runOutsideAngular(()=>{if(t.isBrowser){let s=this._getWindow();s.addEventListener("resize",this._changeListener),s.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){let t=this._getWindow();t.removeEventListener("resize",this._changeListener),t.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();let t={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),t}getViewportRect(){let t=this.getViewportScrollPosition(),{width:n,height:r}=this.getViewportSize();return{top:t.top,left:t.left,bottom:t.top+r,right:t.left+n,height:r,width:n}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};let t=this._document,n=this._getWindow(),r=t.documentElement,s=r.getBoundingClientRect(),a=-s.top||t.body.scrollTop||n.scrollY||r.scrollTop||0,d=-s.left||t.body.scrollLeft||n.scrollX||r.scrollLeft||0;return{top:a,left:d}}change(t=ti){return t>0?this._change.pipe(lt(t)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){let t=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:t.innerWidth,height:t.innerHeight}:{width:0,height:0}}};i.\u0275fac=function(n){return new(n||i)(b(it),b(w),b(tt,8))},i.\u0275prov=F({token:i,factory:i.\u0275fac,providedIn:"root"});let e=i;return e})(),Me=new B("VIRTUAL_SCROLLABLE"),ii=(()=>{let i=class i extends ze{constructor(t,n,r,s){super(t,n,r,s)}measureViewportSize(t){let n=this.elementRef.nativeElement;return t==="horizontal"?n.clientWidth:n.clientHeight}};i.\u0275fac=function(n){return new(n||i)(p(P),p(kt),p(w),p(xt,8))},i.\u0275dir=I({type:i,features:[wt]});let e=i;return e})();function ni(e,i){return e.start==i.start&&e.end==i.end}var ri=typeof requestAnimationFrame<"u"?Bt:Ft,oi=(()=>{let i=class i extends ii{get orientation(){return this._orientation}set orientation(t){this._orientation!==t&&(this._orientation=t,this._calculateSpacerSize())}constructor(t,n,r,s,a,d,c,m){super(t,d,r,a),this.elementRef=t,this._changeDetectorRef=n,this._scrollStrategy=s,this.scrollable=m,this._platform=v(it),this._detachedSubject=new C,this._renderedRangeSubject=new C,this._orientation="vertical",this.appendOnly=!1,this.scrolledIndexChange=new rt(X=>this._scrollStrategy.scrolledIndexChange.subscribe(Ne=>Promise.resolve().then(()=>this.ngZone.run(()=>X.next(Ne))))),this.renderedRangeStream=this._renderedRangeSubject,this._totalContentSize=0,this._totalContentWidth="",this._totalContentHeight="",this._renderedRange={start:0,end:0},this._dataLength=0,this._viewportSize=0,this._renderedContentOffset=0,this._renderedContentOffsetNeedsRewrite=!1,this._isChangeDetectionPending=!1,this._runAfterChangeDetection=[],this._viewportChanges=Lt.EMPTY,this._injector=v(Zt),this._isDestroyed=!1,this._viewportChanges=c.change().subscribe(()=>{this.checkViewportSize()}),this.scrollable||(this.elementRef.nativeElement.classList.add("cdk-virtual-scrollable"),this.scrollable=this)}ngOnInit(){this._platform.isBrowser&&(this.scrollable===this&&super.ngOnInit(),this.ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>{this._measureViewportSize(),this._scrollStrategy.attach(this),this.scrollable.elementScrolled().pipe(Q(null),lt(0,ri),q(this._destroyed)).subscribe(()=>this._scrollStrategy.onContentScrolled()),this._markChangeDetectionNeeded()})))}ngOnDestroy(){this.detach(),this._scrollStrategy.detach(),this._renderedRangeSubject.complete(),this._detachedSubject.complete(),this._viewportChanges.unsubscribe(),this._isDestroyed=!0,super.ngOnDestroy()}attach(t){this._forOf,this.ngZone.runOutsideAngular(()=>{this._forOf=t,this._forOf.dataStream.pipe(q(this._detachedSubject)).subscribe(n=>{let r=n.length;r!==this._dataLength&&(this._dataLength=r,this._scrollStrategy.onDataLengthChanged()),this._doChangeDetection()})})}detach(){this._forOf=null,this._detachedSubject.next()}getDataLength(){return this._dataLength}getViewportSize(){return this._viewportSize}getRenderedRange(){return this._renderedRange}measureBoundingClientRectWithScrollOffset(t){return this.getElementRef().nativeElement.getBoundingClientRect()[t]}setTotalContentSize(t){this._totalContentSize!==t&&(this._totalContentSize=t,this._calculateSpacerSize(),this._markChangeDetectionNeeded())}setRenderedRange(t){ni(this._renderedRange,t)||(this.appendOnly&&(t={start:0,end:Math.max(this._renderedRange.end,t.end)}),this._renderedRangeSubject.next(this._renderedRange=t),this._markChangeDetectionNeeded(()=>this._scrollStrategy.onContentRendered()))}getOffsetToRenderedContentStart(){return this._renderedContentOffsetNeedsRewrite?null:this._renderedContentOffset}setRenderedContentOffset(t,n="to-start"){t=this.appendOnly&&n==="to-start"?0:t;let r=this.dir&&this.dir.value=="rtl",s=this.orientation=="horizontal",a=s?"X":"Y",c=`translate${a}(${Number((s&&r?-1:1)*t)}px)`;this._renderedContentOffset=t,n==="to-end"&&(c+=` translate${a}(-100%)`,this._renderedContentOffsetNeedsRewrite=!0),this._renderedContentTransform!=c&&(this._renderedContentTransform=c,this._markChangeDetectionNeeded(()=>{this._renderedContentOffsetNeedsRewrite?(this._renderedContentOffset-=this.measureRenderedContentSize(),this._renderedContentOffsetNeedsRewrite=!1,this.setRenderedContentOffset(this._renderedContentOffset)):this._scrollStrategy.onRenderedOffsetChanged()}))}scrollToOffset(t,n="auto"){let r={behavior:n};this.orientation==="horizontal"?r.start=t:r.top=t,this.scrollable.scrollTo(r)}scrollToIndex(t,n="auto"){this._scrollStrategy.scrollToIndex(t,n)}measureScrollOffset(t){let n;return this.scrollable==this?n=r=>super.measureScrollOffset(r):n=r=>this.scrollable.measureScrollOffset(r),Math.max(0,n(t??(this.orientation==="horizontal"?"start":"top"))-this.measureViewportOffset())}measureViewportOffset(t){var m;let n,r="left",s="right",a=((m=this.dir)==null?void 0:m.value)=="rtl";t=="start"?n=a?s:r:t=="end"?n=a?r:s:t?n=t:n=this.orientation==="horizontal"?"left":"top";let d=this.scrollable.measureBoundingClientRectWithScrollOffset(n);return this.elementRef.nativeElement.getBoundingClientRect()[n]-d}measureRenderedContentSize(){let t=this._contentWrapper.nativeElement;return this.orientation==="horizontal"?t.offsetWidth:t.offsetHeight}measureRangeSize(t){return this._forOf?this._forOf.measureRangeSize(t,this.orientation):0}checkViewportSize(){this._measureViewportSize(),this._scrollStrategy.onDataLengthChanged()}_measureViewportSize(){this._viewportSize=this.scrollable.measureViewportSize(this.orientation)}_markChangeDetectionNeeded(t){t&&this._runAfterChangeDetection.push(t),this._isChangeDetectionPending||(this._isChangeDetectionPending=!0,this.ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>{this._doChangeDetection()})))}_doChangeDetection(){this._isDestroyed||this.ngZone.run(()=>{this._changeDetectorRef.markForCheck(),this._contentWrapper.nativeElement.style.transform=this._renderedContentTransform,te(()=>{this._isChangeDetectionPending=!1;let t=this._runAfterChangeDetection;this._runAfterChangeDetection=[];for(let n of t)n()},{injector:this._injector})})}_calculateSpacerSize(){this._totalContentHeight=this.orientation==="horizontal"?"":`${this._totalContentSize}px`,this._totalContentWidth=this.orientation==="horizontal"?`${this._totalContentSize}px`:""}};i.\u0275fac=function(n){return new(n||i)(p(P),p(Ot),p(w),p(Le,8),p(xt,8),p(kt),p(ei),p(Me,8))},i.\u0275cmp=T({type:i,selectors:[["cdk-virtual-scroll-viewport"]],viewQuery:function(n,r){if(n&1&&ht(Qe,7),n&2){let s;$(s=Y())&&(r._contentWrapper=s.first)}},hostAttrs:[1,"cdk-virtual-scroll-viewport"],hostVars:4,hostBindings:function(n,r){n&2&&S("cdk-virtual-scroll-orientation-horizontal",r.orientation==="horizontal")("cdk-virtual-scroll-orientation-vertical",r.orientation!=="horizontal")},inputs:{orientation:"orientation",appendOnly:[2,"appendOnly","appendOnly",ae]},outputs:{scrolledIndexChange:"scrolledIndexChange"},standalone:!0,features:[R([{provide:ze,useFactory:(t,n)=>t||n,deps:[[new $t,new Ht(Me)],i]}]),ie,wt,M],ngContentSelectors:qe,decls:4,vars:4,consts:[["contentWrapper",""],[1,"cdk-virtual-scroll-content-wrapper"],[1,"cdk-virtual-scroll-spacer"]],template:function(n,r){n&1&&(H(),g(0,"div",1,0),L(2),f(),y(3,"div",2)),n&2&&(l(3),x("width",r._totalContentWidth)("height",r._totalContentHeight))},styles:["cdk-virtual-scroll-viewport{display:block;position:relative;transform:translateZ(0)}.cdk-virtual-scrollable{overflow:auto;will-change:scroll-position;contain:strict;-webkit-overflow-scrolling:touch}.cdk-virtual-scroll-content-wrapper{position:absolute;top:0;left:0;contain:content}[dir=rtl] .cdk-virtual-scroll-content-wrapper{right:0;left:auto}.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper{min-height:100%}.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>dl:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>ol:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>table:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>ul:not([cdkVirtualFor]){padding-left:0;padding-right:0;margin-left:0;margin-right:0;border-left-width:0;border-right-width:0;outline:none}.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper{min-width:100%}.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>dl:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>ol:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>table:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>ul:not([cdkVirtualFor]){padding-top:0;padding-bottom:0;margin-top:0;margin-bottom:0;border-top-width:0;border-bottom-width:0;outline:none}.cdk-virtual-scroll-spacer{height:1px;transform-origin:0 0;flex:0 0 auto}[dir=rtl] .cdk-virtual-scroll-spacer{transform-origin:100% 0}"],encapsulation:2,changeDetection:0});let e=i;return e})();function ke(e,i,o){let t=o;if(!t.getBoundingClientRect)return 0;let n=t.getBoundingClientRect();return e==="horizontal"?i==="start"?n.left:n.right:i==="start"?n.top:n.bottom}var Gn=(()=>{let i=class i{get cdkVirtualForOf(){return this._cdkVirtualForOf}set cdkVirtualForOf(t){this._cdkVirtualForOf=t,Re(t)?this._dataSourceChanges.next(t):this._dataSourceChanges.next(new yt(st(t)?t:Array.from(t||[])))}get cdkVirtualForTrackBy(){return this._cdkVirtualForTrackBy}set cdkVirtualForTrackBy(t){this._needsUpdate=!0,this._cdkVirtualForTrackBy=t?(n,r)=>t(n+(this._renderedRange?this._renderedRange.start:0),r):void 0}set cdkVirtualForTemplate(t){t&&(this._needsUpdate=!0,this._template=t)}get cdkVirtualForTemplateCacheSize(){return this._viewRepeater.viewCacheSize}set cdkVirtualForTemplateCacheSize(t){this._viewRepeater.viewCacheSize=et(t)}constructor(t,n,r,s,a,d){this._viewContainerRef=t,this._template=n,this._differs=r,this._viewRepeater=s,this._viewport=a,this.viewChange=new C,this._dataSourceChanges=new C,this.dataStream=this._dataSourceChanges.pipe(Q(null),Nt(),ct(([c,m])=>this._changeDataSource(c,m)),Vt(1)),this._differ=null,this._needsUpdate=!1,this._destroyed=new C,this.dataStream.subscribe(c=>{this._data=c,this._onRenderedDataChange()}),this._viewport.renderedRangeStream.pipe(q(this._destroyed)).subscribe(c=>{this._renderedRange=c,this.viewChange.observers.length&&d.run(()=>this.viewChange.next(this._renderedRange)),this._onRenderedDataChange()}),this._viewport.attach(this)}measureRangeSize(t,n){if(t.start>=t.end)return 0;t.startthis._renderedRange.end;let r=t.start-this._renderedRange.start,s=t.end-t.start,a,d;for(let c=0;c-1;c--){let m=this._viewContainerRef.get(c+r);if(m&&m.rootNodes.length){d=m.rootNodes[m.rootNodes.length-1];break}}return a&&d?ke(n,"end",d)-ke(n,"start",a):0}ngDoCheck(){if(this._differ&&this._needsUpdate){let t=this._differ.diff(this._renderedItems);t?this._applyChanges(t):this._updateContext(),this._needsUpdate=!1}}ngOnDestroy(){this._viewport.detach(),this._dataSourceChanges.next(void 0),this._dataSourceChanges.complete(),this.viewChange.complete(),this._destroyed.next(),this._destroyed.complete(),this._viewRepeater.detach()}_onRenderedDataChange(){this._renderedRange&&(this._renderedItems=this._data.slice(this._renderedRange.start,this._renderedRange.end),this._differ||(this._differ=this._differs.find(this._renderedItems).create((t,n)=>this.cdkVirtualForTrackBy?this.cdkVirtualForTrackBy(t,n):n)),this._needsUpdate=!0)}_changeDataSource(t,n){return t&&t.disconnect(this),this._needsUpdate=!0,n?n.connect(this):z()}_updateContext(){let t=this._data.length,n=this._viewContainerRef.length;for(;n--;){let r=this._viewContainerRef.get(n);r.context.index=this._renderedRange.start+n,r.context.count=t,this._updateComputedContextProperties(r.context),r.detectChanges()}}_applyChanges(t){this._viewRepeater.applyChanges(t,this._viewContainerRef,(s,a,d)=>this._getEmbeddedViewArgs(s,d),s=>s.item),t.forEachIdentityChange(s=>{let a=this._viewContainerRef.get(s.currentIndex);a.context.$implicit=s.item});let n=this._data.length,r=this._viewContainerRef.length;for(;r--;){let s=this._viewContainerRef.get(r);s.context.index=this._renderedRange.start+r,s.context.count=n,this._updateComputedContextProperties(s.context)}}_updateComputedContextProperties(t){t.first=t.index===0,t.last=t.index===t.count-1,t.even=t.index%2===0,t.odd=!t.even}_getEmbeddedViewArgs(t,n){return{templateRef:this._template,context:{$implicit:t.item,cdkVirtualForOf:this._cdkVirtualForOf,index:-1,count:-1,first:!1,last:!1,odd:!1,even:!1},index:n}}};i.\u0275fac=function(n){return new(n||i)(p(ee),p(Kt),p(se),p(Rt),p(oi,4),p(w))},i.\u0275dir=I({type:i,selectors:[["","cdkVirtualFor","","cdkVirtualForOf",""]],inputs:{cdkVirtualForOf:"cdkVirtualForOf",cdkVirtualForTrackBy:"cdkVirtualForTrackBy",cdkVirtualForTemplate:"cdkVirtualForTemplate",cdkVirtualForTemplateCacheSize:"cdkVirtualForTemplateCacheSize"},standalone:!0,features:[R([{provide:Rt,useClass:Ct}])]});let e=i;return e})();var si=["*"];function ai(e,i){if(e&1&&(g(0,"div",14),E(1),f()),e&2){let o=h(2);l(),O(" ",o.axisYName," ")}}function li(e,i){if(e&1&&(g(0,"div",17),E(1),f()),e&2){let o=i.$implicit,t=h(3);l(),O(" ",t.fallback(o)," ")}}function ci(e,i){if(e&1&&(g(0,"div",15),_(1,li,2,1,"div",16),f()),e&2){let o=h(2);l(),u("ngForOf",o.axisYLabels)}}function di(e,i){if(e&1&&(g(0,"div",11),_(1,ai,2,1,"div",12)(2,ci,2,1,"div",13),f()),e&2){let o=h();S("t-side_padding",o.hasXLabels),l(),u("ngIf",o.axisYName),l(),u("ngIf",!o.axisYInset)}}function hi(e,i){if(e&1&&y(0,"div",18),e&2){let o=i.$implicit,t=h();x("border-right-style",t.verticalLinesHandler(o,t.verticalLines))}}function ui(e,i){if(e&1&&y(0,"div",19),e&2){let o=i.$implicit,t=h();x("border-top-style",t.horizontalLinesHandler(o,t.horizontalLines))}}function fi(e,i){if(e&1&&(g(0,"div",17),E(1),f()),e&2){let o=i.$implicit,t=h(2);l(),O(" ",t.fallback(o)," ")}}function gi(e,i){if(e&1&&(g(0,"div",20),_(1,fi,2,1,"div",16),f()),e&2){let o=h();l(),u("ngForOf",o.axisYLabels)}}function pi(e,i){if(e&1&&(g(0,"div",23),E(1),f()),e&2){let o=i.$implicit,t=h(2);l(),O(" ",t.fallback(o)," ")}}function mi(e,i){if(e&1&&(g(0,"div",21),_(1,pi,2,1,"div",22),f()),e&2){let o=h();l(),u("ngForOf",o.axisYSecondaryLabels)}}function _i(e,i){if(e&1&&(g(0,"div",26),E(1),f()),e&2){let o=i.$implicit,t=h(2);S("t-label-x_transparent",o===null),l(),O(" ",t.fallback(o)," ")}}function vi(e,i){if(e&1&&(g(0,"div",24),_(1,_i,2,3,"div",25),f()),e&2){let o=h();l(),u("ngForOf",o.axisXLabels)}}function xi(e,i){if(e&1&&(g(0,"div",23),E(1),f()),e&2){let o=i.$implicit,t=h(3);l(),O(" ",t.fallback(o)," ")}}function yi(e,i){if(e&1&&(g(0,"div",29),_(1,xi,2,1,"div",22),f()),e&2){let o=h(2);l(),u("ngForOf",o.axisYSecondaryLabels)}}function Ci(e,i){if(e&1&&(g(0,"div",30),E(1),f()),e&2){let o=h(2);l(),O(" ",o.axisYSecondaryName," ")}}function bi(e,i){if(e&1&&(g(0,"div",11),_(1,yi,2,1,"div",27)(2,Ci,2,1,"div",28),f()),e&2){let o=h();S("t-side_padding",o.hasXLabels),l(),u("ngIf",!o.axisYSecondaryInset),l(),u("ngIf",o.axisYSecondaryName)}}var wi=()=>"dashed";var Si=()=>"solid";var tr=(()=>{let i=class i{constructor(){this.axisX="solid",this.axisXLabels=[],this.axisY="solid",this.axisYInset=!1,this.axisYLabels=[],this.axisYName="",this.axisYSecondaryInset=!1,this.axisYSecondaryLabels=[],this.axisYSecondaryName="",this.horizontalLines=0,this.horizontalLinesHandler=Si,this.verticalLines=0,this.verticalLinesHandler=wi}get hasXLabels(){return!!this.axisXLabels.length}get hasYLabels(){return!!this.axisYLabels.length&&!this.axisYInset||!!this.axisYName}get hasYSecondaryLabels(){return!!this.axisYSecondaryLabels.length&&!this.axisYSecondaryInset||!!this.axisYSecondaryName}fallback(t){return t||he}get centeredXLabels(){return this.axisY==="none"}};i.\u0275fac=function(n){return new(n||i)},i.\u0275cmp=T({type:i,selectors:[["tui-axes"]],hostVars:2,hostBindings:function(n,r){n&2&&S("_centered",r.centeredXLabels)},inputs:{axisX:"axisX",axisXLabels:"axisXLabels",axisY:"axisY",axisYInset:"axisYInset",axisYLabels:"axisYLabels",axisYName:"axisYName",axisYSecondaryInset:"axisYSecondaryInset",axisYSecondaryLabels:"axisYSecondaryLabels",axisYSecondaryName:"axisYSecondaryName",horizontalLines:"horizontalLines",horizontalLinesHandler:"horizontalLinesHandler",verticalLines:"verticalLines",verticalLinesHandler:"verticalLinesHandler"},standalone:!0,features:[M],ngContentSelectors:si,decls:13,vars:11,consts:[["class","t-side",3,"t-side_padding",4,"ngIf"],[1,"t-wrapper"],[1,"t-grid"],[1,"t-vertical"],["automation-id","tui-axex__vertical-line","class","t-line t-line_vertical",3,"borderRightStyle",4,"tuiRepeatTimes","tuiRepeatTimesOf"],[1,"t-horizontal"],["automation-id","tui-axex__horizontal-line","class","t-line",3,"borderTopStyle",4,"tuiRepeatTimes","tuiRepeatTimesOf"],["class","t-labels-y t-labels-y_inset",4,"ngIf"],["class","t-labels-y t-labels-y_inset t-labels-y_inset_secondary",4,"ngIf"],[1,"t-content"],["class","t-labels-x",4,"ngIf"],[1,"t-side"],["automation-id","tui-axex__axis-y-name","class","t-name t-name_primary",4,"ngIf"],["class","t-labels-y t-labels-y_primary",4,"ngIf"],["automation-id","tui-axex__axis-y-name",1,"t-name","t-name_primary"],[1,"t-labels-y","t-labels-y_primary"],["automation-id","tui-axex__axis-y-label","class","t-label-y",4,"ngFor","ngForOf"],["automation-id","tui-axex__axis-y-label",1,"t-label-y"],["automation-id","tui-axex__vertical-line",1,"t-line","t-line_vertical"],["automation-id","tui-axex__horizontal-line",1,"t-line"],[1,"t-labels-y","t-labels-y_inset"],[1,"t-labels-y","t-labels-y_inset","t-labels-y_inset_secondary"],["automation-id","tui-axex__axis-y-secondary-label","class","t-label-y",4,"ngFor","ngForOf"],["automation-id","tui-axex__axis-y-secondary-label",1,"t-label-y"],[1,"t-labels-x"],["automation-id","tui-axex__axis-x-label","class","t-label-x",3,"t-label-x_transparent",4,"ngFor","ngForOf"],["automation-id","tui-axex__axis-x-label",1,"t-label-x"],["class","t-labels-y t-labels-y_secondary",4,"ngIf"],["automation-id","tui-axex__axis-y-secondary-name","class","t-name",4,"ngIf"],[1,"t-labels-y","t-labels-y_secondary"],["automation-id","tui-axex__axis-y-secondary-name",1,"t-name"]],template:function(n,r){n&1&&(H(),_(0,di,3,4,"div",0),g(1,"div",1)(2,"div",2)(3,"div",3),_(4,hi,1,2,"div",4),f(),g(5,"div",5),_(6,ui,1,2,"div",6),f(),_(7,gi,2,1,"div",7)(8,mi,2,1,"div",8),g(9,"div",9),L(10),f()(),_(11,vi,2,1,"div",10),f(),_(12,bi,3,4,"div",0)),n&2&&(u("ngIf",r.hasYLabels),l(2),x("border-bottom-style",r.axisX)("border-left-style",r.axisY),l(2),u("tuiRepeatTimesOf",r.verticalLines),l(2),u("tuiRepeatTimesOf",r.horizontalLines),l(),u("ngIf",r.axisYInset),l(),u("ngIf",r.axisYSecondaryInset),l(3),u("ngIf",r.hasXLabels),l(),u("ngIf",r.hasYSecondaryLabels))},dependencies:[ft,ut,ve],styles:['[_nghost-%COMP%]{display:flex}.t-wrapper[_ngcontent-%COMP%]{display:flex;flex:1;height:100%;flex-direction:column}.t-grid[_ngcontent-%COMP%]{position:relative;display:flex;flex:1;justify-content:space-around;align-items:flex-end;border-width:1px;border-color:var(--tui-border-normal);isolation:isolate}.t-horizontal[_ngcontent-%COMP%]{position:absolute;top:0;left:0;width:100%;height:100%;display:flex;flex-direction:column}.t-vertical[_ngcontent-%COMP%]{position:absolute;top:0;left:0;width:100%;height:100%;display:flex}._centered[_nghost-%COMP%] .t-vertical[_ngcontent-%COMP%]:after{content:"";display:block;flex:1 0 1px}.t-line[_ngcontent-%COMP%]{flex:2 0 1px;box-sizing:border-box;border-width:1px;border-color:var(--tui-border-normal)}._centered[_nghost-%COMP%] .t-line_vertical[_ngcontent-%COMP%]:first-child{flex:1 0 1px;pointer-events:none}.t-side[_ngcontent-%COMP%]{display:flex;align-items:stretch}.t-side_padding[_ngcontent-%COMP%]{padding-bottom:2rem}.t-name[_ngcontent-%COMP%]{font:var(--tui-font-text-xs);writing-mode:tb;text-align:center;padding-left:.75rem;color:var(--tui-text-secondary)}.t-name_primary[_ngcontent-%COMP%]{transform:rotate(180deg)}.t-labels-y[_ngcontent-%COMP%]{display:flex;font:var(--tui-font-text-xs);flex-direction:column-reverse;justify-content:space-between;color:var(--tui-text-secondary)}.t-labels-y_primary[_ngcontent-%COMP%]{text-align:right;padding-right:.75rem}.t-labels-y_secondary[_ngcontent-%COMP%]{padding-left:.75rem}.t-labels-y_transparent[_ngcontent-%COMP%]{border-color:transparent}.t-labels-y_inset[_ngcontent-%COMP%]{position:absolute;top:.5625rem;left:.25rem;bottom:-.75rem;pointer-events:none}.t-labels-y_inset_secondary[_ngcontent-%COMP%]{left:auto;right:.25rem;text-align:right}.t-labels-x[_ngcontent-%COMP%]{position:relative;display:flex;font:var(--tui-font-text-xs);border-right:1px solid transparent;color:var(--tui-text-secondary)}.t-label-x[_ngcontent-%COMP%]{height:.4375rem;border-left:1px solid var(--tui-border-normal);flex:1;margin-bottom:1.5625rem}.t-label-x[_ngcontent-%COMP%]:before{content:"";display:block;height:.5625rem}.t-label-x_transparent[_ngcontent-%COMP%]{border-color:transparent}._centered[_nghost-%COMP%] .t-label-x[_ngcontent-%COMP%]{height:2rem;text-align:center;border:none;margin:0}[_nghost-%COMP%]:not(._centered) .t-label-x[_ngcontent-%COMP%]:last-child:not(:first-child){position:absolute;right:0;text-align:right;border-left:none}.t-label-y[_ngcontent-%COMP%]:first-child{margin-bottom:-.375rem}.t-label-y[_ngcontent-%COMP%]:last-child{margin-top:-.375rem}.t-content[_ngcontent-%COMP%]{position:absolute;top:0;left:-1px;right:0;bottom:-1px;display:flex;align-items:flex-end}'],changeDetection:0});let e=i;return e})();function Ei(e,i){let o=i[0]-e[0],t=i[1]-e[1];return Math.atan2(t,o)}function Oi(e,i){let o=i[0]-e[0],t=i[1]-e[1];return Math.sqrt(o**2+t**2)}function Fe(e,i,o,t=!1,n=.2){let r=e||[0,0],s=i||e||[0,0],a=o||e||[0,0],d=Ei(s,a)+(t?Math.PI:0),c=Oi(s,a)*n,m=r[0]+Math.cos(d)*c,X=r[1]+Math.sin(d)*c;return[m,X]}function Di(e,i,o){let[t,n]=Fe(e[i-1],e[i-2],e[i],!1,o),[r,s]=Fe(e[i],e[i-1],e[i+1],!0,o),a=e[i]??[0,0];return`C ${t},${n} ${r},${s} ${a[0]},${a[1]}`}function Ti(e){return`L ${e}`}var Ii=500;function Be(e,i,o){let t=[...e[i]??[0,0]];return o?Di(e,i,o/Ii):Ti([t[0],t[1]])}var Pi=(e,i)=>({$implicit:e,index:i});function Ri(e,i){if(e&1&&y(0,"div",10),e&2){let o=i.$implicit,t=h(3);x("bottom",t.getBottom(o[1]),"%")("left",t.getLeft(o[0]),"%")}}function Mi(e,i){if(e&1&&(V(0),_(1,Ri,1,4,"div",9),j()),e&2){let o=h(2);l(),u("ngForOf",o.value)}}function ki(e,i){if(e&1){let o=ne();g(0,"div",14),K(1,"async"),St("mouseenter",function(){Ut(o);let n=h().index,r=h(3);return Xt(r.onMouseEnter(n))}),y(2,"div",15)(3,"div",16,0),f()}if(e&2){let o=re(4),t=h(),n=t.$implicit,r=t.index,s=h(2).tuiLet,a=h();x("left",a.getLeft(a.getX(r)),"%")("width",a.getWidth(r),"%"),S("t-column_hint_hovered",J(1,20,a.drivers.get(r)))("t-column_hovered",s===r),u("tuiHint",(a.hintDirective==null?null:a.hintDirective.hint)||a.hintContent)("tuiHintContext",oe(22,Pi,a.getImplicit(n),r))("tuiHintDescribe",a.isFocusable?a.getHintId(r):null)("tuiHintHost",o),l(2),x("left",a.getOffset(r),"%"),l(),x("bottom",a.getBottom(n[1]),"%")("left",a.getOffset(r),"%"),u("id",a.getHintId(r))("tabIndex",a.isFocusable?0:-1)}}function Li(e,i){if(e&1&&y(0,"div",17),e&2){let o=h().$implicit,t=h(3);x("bottom",t.getBottom(o[1]),"%")}}function zi(e,i){if(e&1&&(V(0),_(1,ki,5,25,"div",12)(2,Li,1,2,"div",13),j()),e&2){let o=h(3);l(),u("ngIf",o.value.length>1||o.dots),l(),u("ngIf",o.isFocusable)}}function Fi(e,i){if(e&1&&(V(0),_(1,zi,3,2,"ng-container",11),j()),e&2){let o=h(2);l(),u("ngForOf",o.value)}}function Bi(e,i){if(e&1&&(g(0,"div",20),E(1),f()),e&2){let o=h().ngIf,t=h(2);x("left",t.getLeft(o[0]),"%"),l(),O(" ",t.xStringify(o[0])," ")}}function Ai(e,i){if(e&1&&(g(0,"div",21),E(1),f()),e&2){let o=h().ngIf,t=h(2);x("bottom",t.getBottom(o[1]),"%"),l(),O(" ",t.yStringify(o[1])," ")}}function Ni(e,i){if(e&1&&(V(0),_(1,Bi,2,3,"div",18)(2,Ai,2,3,"div",19),j()),e&2){let o=h(2);l(),u("ngIf",o.xStringify),l(),u("ngIf",o.yStringify)}}function Vi(e,i){if(e&1&&(V(0),dt(),g(1,"svg",2)(2,"defs")(3,"linearGradient",3),y(4,"stop",4)(5,"stop",5),f()(),y(6,"path",6)(7,"path",7),f(),_(8,Mi,2,1,"ng-container",8)(9,Fi,2,1,"ng-container",8)(10,Ni,3,2,"ng-container",8),j()),e&2){let o=i.tuiLet,t=h();l(),k("viewBox",t.viewBox),l(2),k("id",t.fillId),l(3),k("d",t.fillD)("fill",t.fill),l(),k("d",t.d),l(),u("ngIf",t.dots),l(),u("ngIf",t.hasHints),l(),u("ngIf",t.getHovered(o))}}var ji={dots:!1,filled:!1,smoothingFactor:0},Hi=pt(ji);var $i=(()=>{let i=class i{constructor(){this.charts=_t,this.chartsRef=_t,this.renderer=v(Jt),this.destroyRef=v(Gt),this.zone=v(w),this.hovered$=v(Tt)}ngAfterViewInit(){G([Yi(this.charts),this.hovered$]).pipe(at(t=>!t.some(Boolean)),fe(this.zone),ce(this.destroyRef)).subscribe(()=>{this.charts.forEach(t=>t.onHovered(NaN))})}getContext(t,n){return this.computeContext(...this.charts.map(({value:r})=>r))[t]||[]}raise(t,n){let r=this.charts.map(a=>a.value[t]??[0,0]),s=[...r].sort((a,d)=>a[1]-d[1]);this.charts.forEach(a=>a.onHovered(t)),this.chartsRef.forEach(({nativeElement:a},d)=>this.renderer.setStyle(a,"z-index",s.indexOf(r[d]??[0,0])))}computeContext(...t){return(t[0]||[]).map((n,r)=>t.map(s=>s[r]??[0,0]))}};i.\u0275fac=function(n){return new(n||i)},i.\u0275dir=I({type:i,selectors:[["","tuiLineChartHint",""]],contentQueries:function(n,r,s){if(n&1&&(Et(s,Ae,4),Et(s,Ae,4,P)),n&2){let a;$(a=Y())&&(r.charts=a),$(a=Y())&&(r.chartsRef=a)}},inputs:{hint:[0,"tuiLineChartHint","hint"]},standalone:!0,features:[R([Tt])]});let e=i;return ot([mt],e.prototype,"computeContext",null),e})();function Yi(e){return G(e.map(({drivers:i})=>ue(i).pipe(Z(o=>o.map(t=>t.pipe(Q(!1))))))).pipe(Z(i=>i.reduce((o,t)=>o.concat(t),[])),ct(i=>G(i)),Z(i=>i.some(Boolean)),N())}var Ae=(()=>{let i=class i{constructor(){this.zone=v(w),this.options=v(Hi),this.hover$=new C,this.autoIdString=v(me).generate(),this.hintDirective=v($i,{optional:!0}),this.hintOptions=v(ye,{optional:!0}),this.drivers=_t,this.x=0,this.y=0,this.width=0,this.height=0,this.smoothingFactor=this.options.smoothingFactor,this.xStringify=null,this.yStringify=null,this.filled=this.options.filled,this.dots=this.options.dots,this.value=[]}set valueSetter(t){this.value=t.filter(n=>!n.some(Number.isNaN))}onHovered(t){this.hover$.next(t)}get hovered$(){return this.hover$.pipe(N(),ge(this.zone))}get hintContent(){var t;return((t=this.hintOptions)==null?void 0:t.content)||""}get fillId(){return`tui-line-chart-${this.autoIdString}`}get fill(){return this.filled?`url(#${this.fillId})`:"none"}get viewBox(){return`${this.x} ${this.y} ${this.width} ${this.height}`}get d(){return this.getD(this.value,this.smoothingFactor)}get fillD(){var t,n;return this.value.length?`${this.d}V ${this.y} H ${(t=this.value[0])==null?void 0:t[0]} V ${(n=this.value[0])==null?void 0:n[1]}`:this.d}get isFocusable(){return!this.hintDirective&&this.hasHints}get hasHints(){var t;return!!this.xStringify||!!this.yStringify||!!((t=this.hintDirective)!=null&&t.hint)||!!this.hintContent}onMouseLeave(){this.hintDirective||this.onHovered(NaN)}getX(t){var n,r,s,a;return this.isSinglePoint?(((n=this.value[0])==null?void 0:n[0])||0)/2:t?((((r=this.value[t-1])==null?void 0:r[0])||0)+(((s=this.value[t])==null?void 0:s[0])||0))/2:2*(((a=this.value[0])==null?void 0:a[0])||0)-this.getX(1)}getWidth(t){return 100*this.computeWidth(t)/this.width}getHintId(t){return`${this.autoIdString}_${t}`}getImplicit(t){var n;return((n=this.hintDirective)==null?void 0:n.getContext(this.value.indexOf(t),this))||t}getHovered(t){return de(t)&&Number.isInteger(t)?this.value[t]??null:null}getBottom(t){return 100*(t-this.y)/this.height}getLeft(t){return 100*(t-this.x)/this.width}getOffset(t){var n;return 100*((((n=this.value[t])==null?void 0:n[0])||0)-this.getX(t))/this.computeWidth(t)}onMouseEnter(t){this.hintDirective?this.hintDirective.raise(t,this):this.onHovered(t)}get isSinglePoint(){return this.value.length===1}getD(t,n){return t.reduce((r,s,a)=>a?`${r} ${Be(t,a,n)}`:`M ${s}`,"")}computeWidth(t){var n;return t===this.value.length-1?2*((((n=this.value[t])==null?void 0:n[0])||0)-this.getX(t)):this.getX(t+1)-this.getX(t)}};i.\u0275fac=function(n){return new(n||i)},i.\u0275cmp=T({type:i,selectors:[["tui-line-chart"]],viewQuery:function(n,r){if(n&1&&ht(Ce,5),n&2){let s;$(s=Y())&&(r.drivers=s)}},hostBindings:function(n,r){n&1&&St("mouseleave",function(){return r.onMouseLeave()})},inputs:{x:"x",y:"y",width:"width",height:"height",smoothingFactor:"smoothingFactor",xStringify:"xStringify",yStringify:"yStringify",filled:"filled",dots:"dots",valueSetter:[0,"value","valueSetter"]},standalone:!0,features:[R([],[xe({direction:"top",hideDelay:0})]),M],decls:2,vars:3,consts:[["hintHost",""],[4,"tuiLet"],["focusable","false","height","100%","preserveAspectRatio","none","width","100%","xmlns","http://www.w3.org/2000/svg",1,"t-svg"],["x1","0","x2","0","y1","1","y2","0"],["offset","0%","stop-color","currentColor","stop-opacity","0.5"],["offset","100%","stop-color","currentColor","stop-opacity","0"],["stroke","none"],["fill","none","stroke","currentColor","stroke-width","2","vector-effect","non-scaling-stroke"],[4,"ngIf"],["class","t-dot",3,"bottom","left",4,"ngFor","ngForOf"],[1,"t-dot"],[4,"ngFor","ngForOf"],["class","t-column",3,"t-column_hint_hovered","t-column_hovered","left","width","tuiHint","tuiHintContext","tuiHintDescribe","tuiHintHost","mouseenter",4,"ngIf"],["class","t-line t-line_horizontal",3,"bottom",4,"ngIf"],[1,"t-column",3,"mouseenter","tuiHint","tuiHintContext","tuiHintDescribe","tuiHintHost"],[1,"t-line","t-line_vertical"],[1,"t-host",3,"id","tabIndex"],[1,"t-line","t-line_horizontal"],["class","t-hint t-hint_x",3,"left",4,"ngIf"],["class","t-hint t-hint_y",3,"bottom",4,"ngIf"],[1,"t-hint","t-hint_x"],[1,"t-hint","t-hint_y"]],template:function(n,r){n&1&&(_(0,Vi,11,8,"ng-container",1),K(1,"async")),n&2&&u("tuiLet",J(1,1,r.hovered$))},dependencies:[_e,gt,ft,be,we,Se,ut],styles:['[_nghost-%COMP%]{display:flex;width:100%;height:100%;pointer-events:none}.t-svg[_ngcontent-%COMP%]{transform:scaleY(-1)}.t-column[_ngcontent-%COMP%]{position:absolute;top:0;height:100%;pointer-events:auto}.t-dot[_ngcontent-%COMP%]{position:absolute;width:.375rem;height:.375rem;border-radius:100%;background:currentColor;margin:-.1875rem;box-shadow:0 0 0 2px #fff}.t-host[_ngcontent-%COMP%]{position:absolute;left:50%;width:.5rem;height:.5rem;border-radius:100%;opacity:0;background:#fff;margin:-.25rem;box-shadow:0 0 0 2px currentColor,0 .0625rem .1875rem .125rem #0000001a;outline:none;pointer-events:none}.t-host[_ngcontent-%COMP%]:focus, .t-column_hovered[_ngcontent-%COMP%] .t-host[_ngcontent-%COMP%], .t-column[_ngcontent-%COMP%]:hover .t-host[_ngcontent-%COMP%], .t-column_hint_hovered[_ngcontent-%COMP%] .t-host[_ngcontent-%COMP%]{opacity:1}.t-line[_ngcontent-%COMP%]{position:absolute;opacity:0;background:var(--tui-border-normal)}.t-line_vertical[_ngcontent-%COMP%]{top:0;bottom:0;left:50%;width:1px}.t-line_horizontal[_ngcontent-%COMP%]{z-index:-1;width:100%;height:1px}[style^="z-index: 0"][_nghost-%COMP%] .t-column_hovered[_ngcontent-%COMP%] .t-line[_ngcontent-%COMP%], [_nghost-%COMP%]:not([style]) .t-column[_ngcontent-%COMP%]:hover .t-line[_ngcontent-%COMP%], [_nghost-%COMP%]:not([style]) .t-column_hint_hovered[_ngcontent-%COMP%] .t-line[_ngcontent-%COMP%], [style^="z-index: 0"][_nghost-%COMP%] .t-column_hovered[_ngcontent-%COMP%] + .t-line[_ngcontent-%COMP%], [_nghost-%COMP%]:not([style]) .t-column[_ngcontent-%COMP%]:hover + .t-line[_ngcontent-%COMP%], [_nghost-%COMP%]:not([style]) .t-column_hint_hovered[_ngcontent-%COMP%] + .t-line[_ngcontent-%COMP%]{opacity:1}.t-hint[_ngcontent-%COMP%]{position:absolute;box-shadow:var(--tui-shadow-small);font:var(--tui-font-text-xs);height:1.25rem;line-height:1.25rem;margin-bottom:-.625rem;padding:0 .375rem;white-space:nowrap;color:var(--tui-text-primary);background:var(--tui-background-base);transform:translate3d(-50%,0,0)}.t-hint_x[_ngcontent-%COMP%]{bottom:0}.t-hint_y[_ngcontent-%COMP%]{left:0}'],changeDetection:0});let e=i;return ot([mt],e.prototype,"hovered$",null),ot([mt],e.prototype,"getD",null),e})();export{Ui as a,hn as b,sn as c,an as d,ln as e,Zn as f,oi as g,Gn as h,tr as i,Hi as j,$i as k,Yi as l,Ae as m}; +import{b as pe,d as ve}from"./chunk-TM3BF3MS.js";import{b as me,e as _e}from"./chunk-XENTLRKE.js";import{O as Tt,oa as xe,pa as ye,qa as Ce,ra as be,ta as we,ua as Se}from"./chunk-DXP4LH76.js";import{A as Z,Ac as ae,B as G,Bb as g,Ca as T,Cb as f,Db as y,Ea as I,Eb as V,Ec as tt,Fa as Yt,Fb as j,Fd as ce,G as bt,Hb as ne,Ja as Wt,K as at,Ka as Ut,Kb as St,Kd as pt,La as Xt,Lb as h,M as lt,Ma as dt,Mb as H,Mc as ut,Nb as L,Nc as ft,Ob as Et,Pa as Zt,Pb as ht,Pc as gt,Qa as Gt,Qb as $,Qd as de,Rb as Y,Sa as Qt,Sb as re,Ta as w,Tb as E,Uc as le,Ud as Dt,V as At,Va as P,Vb as O,Vd as mt,W as N,Wa as qt,Ye as ue,aa as Nt,af as fe,bc as R,bf as ge,cb as l,cc as M,db as p,ea as Vt,f as Lt,fb as Kt,fc as oe,ha as Q,hb as Jt,i as rt,ia as ct,ja as q,jb as te,jc as K,kb as ee,kc as J,l as zt,m as C,mb as wt,me as _t,ob as ie,p as Ft,pa as jt,q as Bt,qa as F,rb as _,sb as k,t as ot,ta as B,tb as u,ub as x,ue as he,va as b,vb as S,w as z,wa as v,xa as Ht,y as st,ya as $t,yc as Ot,zc as se}from"./chunk-NEAIWFFQ.js";var Ui=(()=>{let i=class i{transform(t){return pe(t)}};i.\u0275fac=function(n){return new(n||i)},i.\u0275pipe=Yt({name:"tuiAutoColor",type:i,pure:!0,standalone:!0});let e=i;return e})();var Ve=["tuiProgressLabel",""],je=[[["progress"]],[["tui-progress-circle"]],"*"],He=["progress","tui-progress-circle","*"],Ee={color:null,size:"m"},Oe=pt(Ee);function sn(e){return Dt(Oe,e,Ee)}var an=(()=>{let i=class i{constructor(){this.options=v(Oe),this.animationDelay$=z(!0).pipe(At(0)),this.value=0,this.max=1,this.color=this.options.color,this.size=this.options.size}get progressRatio(){let t=this.value/this.max;return Number.isFinite(t)?t:0}};i.\u0275fac=function(n){return new(n||i)},i.\u0275cmp=T({type:i,selectors:[["tui-progress-circle"]],hostVars:5,hostBindings:function(n,r){n&2&&(k("data-size",r.size),x("--tui-progress-color",r.color)("--t-progress-ratio",r.progressRatio))},inputs:{value:"value",max:"max",color:"color",size:"size"},standalone:!0,features:[M],decls:5,vars:6,consts:[[1,"t-hidden-progress",3,"max","value"],["aria-hidden","true","height","100%","width","100%",1,"t-svg"],["cx","50%","cy","50%",1,"t-track"],["cx","50%","cy","50%",1,"t-progress"]],template:function(n,r){n&1&&(y(0,"progress",0),dt(),g(1,"svg",1),y(2,"circle",2)(3,"circle",3),K(4,"async"),f()),n&2&&(u("max",r.max)("value",r.value),l(3),S("t-progress_filled",J(4,4,r.animationDelay$)))},dependencies:[gt],styles:["[_nghost-%COMP%]{--t-track-stroke: var(--tui-thickness, .375em);--t-progress-stroke: var(--tui-thickness, .375em);position:relative;display:block;color:var(--tui-background-accent-1);transform:rotate(-90deg);transform-origin:center;font-size:1rem;width:var(--t-diameter);height:var(--t-diameter)}[data-size=xxs][_nghost-%COMP%]{--t-diameter: 2em}[data-size=xs][_nghost-%COMP%]{--t-diameter: 2.5em}[data-size=s][_nghost-%COMP%]{--t-diameter: 3.5em}[data-size=m][_nghost-%COMP%]{--t-diameter: 4em}[data-size=l][_nghost-%COMP%]{--t-diameter: 5em}[data-size=xl][_nghost-%COMP%]{--t-diameter: 6em}[data-size=xxl][_nghost-%COMP%]{--t-diameter: 8em}.t-track[_ngcontent-%COMP%]{fill:transparent;stroke:var(--tui-background-neutral-1);stroke-width:var(--t-track-stroke);r:calc((var(--t-diameter) - var(--t-track-stroke)) / 2)}.t-progress[_ngcontent-%COMP%]{fill:transparent;stroke:var(--tui-progress-color, currentColor);stroke-linecap:round;stroke-width:var(--t-progress-stroke);stroke-dasharray:calc(2 * 3.14159265 * calc((var(--t-diameter) - var(--t-progress-stroke)) / 2));stroke-dashoffset:calc(2 * 3.14159265 * calc((var(--t-diameter) - var(--t-progress-stroke)) / 2));r:calc((var(--t-diameter) - var(--t-progress-stroke)) / 2)}.t-progress_filled[_ngcontent-%COMP%]{transition:stroke-dashoffset var(--tui-duration) linear;stroke-dashoffset:calc(calc(2 * 3.14159265 * calc((var(--t-diameter) - var(--t-progress-stroke)) / 2)) - var(--t-progress-ratio) * calc(2 * 3.14159265 * calc((var(--t-diameter) - var(--t-progress-stroke)) / 2)))}.t-hidden-progress[_ngcontent-%COMP%]{position:absolute;clip:rect(1px,1px,1px,1px);clip-path:inset(50%);height:1px;width:1px;margin:-1px;overflow:hidden;padding:0}.t-svg[_ngcontent-%COMP%]{overflow:unset}"],changeDetection:0});let e=i;return e})(),ln=(()=>{let i=class i{};i.\u0275fac=function(n){return new(n||i)},i.\u0275cmp=T({type:i,selectors:[["label","tuiProgressLabel",""]],standalone:!0,features:[M],attrs:Ve,ngContentSelectors:He,decls:4,vars:0,consts:[[1,"t-label"]],template:function(n,r){n&1&&(H(je),L(0),L(1,1),g(2,"span",0),L(3,2),f())},styles:["[_nghost-%COMP%]{position:relative;display:inline-block;color:var(--tui-text-primary)}.t-label[_ngcontent-%COMP%]{position:absolute;top:0;left:0;width:100%;height:100%;display:flex;font:var(--tui-font-text-s);flex-direction:column;justify-content:center;align-items:center}"],changeDetection:0});let e=i;return e})();function hn(e){return e!=null&&`${e}`!="false"}function et(e,i=0){return $e(e)?Number(e):arguments.length===2?i:0}function $e(e){return!isNaN(parseFloat(e))&&!isNaN(Number(e))}function De(e){return e instanceof P?e.nativeElement:e}var It;try{It=typeof Intl<"u"&&Intl.v8BreakIterator}catch{It=!1}var it=(()=>{let i=class i{constructor(t){this._platformId=t,this.isBrowser=this._platformId?le(this._platformId):typeof document=="object"&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!!(window.chrome||It)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}};i.\u0275fac=function(n){return new(n||i)(b(qt))},i.\u0275prov=F({token:i,factory:i.\u0275fac,providedIn:"root"});let e=i;return e})();var D=function(e){return e[e.NORMAL=0]="NORMAL",e[e.NEGATED=1]="NEGATED",e[e.INVERTED=2]="INVERTED",e}(D||{}),vt,A;function Pe(){if(A==null){if(typeof document!="object"||!document||typeof Element!="function"||!Element)return A=!1,A;if("scrollBehavior"in document.documentElement.style)A=!0;else{let e=Element.prototype.scrollTo;e?A=!/\{\s*\[native code\]\s*\}/.test(e.toString()):A=!1}}return A}function U(){if(typeof document!="object"||!document)return D.NORMAL;if(vt==null){let e=document.createElement("div"),i=e.style;e.dir="rtl",i.width="1px",i.overflow="auto",i.visibility="hidden",i.pointerEvents="none",i.position="absolute";let o=document.createElement("div"),t=o.style;t.width="2px",t.height="1px",e.appendChild(o),document.body.appendChild(e),vt=D.NORMAL,e.scrollLeft===0&&(e.scrollLeft=1,vt=e.scrollLeft===0?D.NEGATED:D.INVERTED),e.remove()}return vt}var We=new B("cdk-dir-doc",{providedIn:"root",factory:Ue});function Ue(){return v(tt)}var Xe=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;function Ze(e){let i=(e==null?void 0:e.toLowerCase())||"";return i==="auto"&&typeof navigator<"u"&&(navigator!=null&&navigator.language)?Xe.test(navigator.language)?"rtl":"ltr":i==="rtl"?"rtl":"ltr"}var xt=(()=>{let i=class i{constructor(t){if(this.value="ltr",this.change=new Qt,t){let n=t.body?t.body.dir:null,r=t.documentElement?t.documentElement.dir:null;this.value=Ze(n||r||"ltr")}}ngOnDestroy(){this.change.complete()}};i.\u0275fac=function(n){return new(n||i)(b(We,8))},i.\u0275prov=F({token:i,factory:i.\u0275fac,providedIn:"root"});let e=i;return e})();var Pt=class{};function Re(e){return e&&typeof e.connect=="function"&&!(e instanceof zt)}var yt=class extends Pt{constructor(i){super(),this._data=i}connect(){return st(this._data)?this._data:z(this._data)}disconnect(){}},nt=function(e){return e[e.REPLACED=0]="REPLACED",e[e.INSERTED=1]="INSERTED",e[e.MOVED=2]="MOVED",e[e.REMOVED=3]="REMOVED",e}(nt||{}),Rt=new B("_ViewRepeater");var Ct=class{constructor(){this.viewCacheSize=20,this._viewCache=[]}applyChanges(i,o,t,n,r){i.forEachOperation((s,a,d)=>{let c,m;if(s.previousIndex==null){let X=()=>t(s,a,d);c=this._insertView(X,d,o,n(s)),m=c?nt.INSERTED:nt.REPLACED}else d==null?(this._detachAndCacheView(a,o),m=nt.REMOVED):(c=this._moveView(a,d,o,n(s)),m=nt.MOVED);r&&r({context:c==null?void 0:c.context,operation:m,record:s})})}detach(){for(let i of this._viewCache)i.destroy();this._viewCache=[]}_insertView(i,o,t,n){let r=this._insertViewFromCache(o,t);if(r){r.context.$implicit=n;return}let s=i();return t.createEmbeddedView(s.templateRef,s.context,s.index)}_detachAndCacheView(i,o){let t=o.detach(i);this._maybeCacheView(t,o)}_moveView(i,o,t,n){let r=t.get(i);return t.move(r,o),r.context.$implicit=n,r}_maybeCacheView(i,o){if(this._viewCache.length0?r/this._itemSize:0;if(o.end>n){let d=Math.ceil(t/this._itemSize),c=Math.max(0,Math.min(s,n-d));s!=c&&(s=c,r=c*this._itemSize,o.start=Math.floor(s)),o.end=Math.max(0,Math.min(n,o.start+d))}let a=r-o.start*this._itemSize;if(a0&&(o.end=Math.min(n,o.end+c),o.start=Math.max(0,Math.floor(s-this._minBufferPx/this._itemSize)))}}this._viewport.setRenderedRange(o),this._viewport.setRenderedContentOffset(this._itemSize*o.start),this._scrolledIndexChange.next(Math.floor(s))}};function Ke(e){return e._scrollStrategy}var Zn=(()=>{let i=class i{constructor(){this._itemSize=20,this._minBufferPx=100,this._maxBufferPx=200,this._scrollStrategy=new Mt(this.itemSize,this.minBufferPx,this.maxBufferPx)}get itemSize(){return this._itemSize}set itemSize(t){this._itemSize=et(t)}get minBufferPx(){return this._minBufferPx}set minBufferPx(t){this._minBufferPx=et(t)}get maxBufferPx(){return this._maxBufferPx}set maxBufferPx(t){this._maxBufferPx=et(t)}ngOnChanges(){this._scrollStrategy.updateItemAndBufferSize(this.itemSize,this.minBufferPx,this.maxBufferPx)}};i.\u0275fac=function(n){return new(n||i)},i.\u0275dir=I({type:i,selectors:[["cdk-virtual-scroll-viewport","itemSize",""]],inputs:{itemSize:"itemSize",minBufferPx:"minBufferPx",maxBufferPx:"maxBufferPx"},standalone:!0,features:[R([{provide:Le,useFactory:Ke,deps:[jt(()=>i)]}]),Wt]});let e=i;return e})(),Je=20,kt=(()=>{let i=class i{constructor(t,n,r){this._ngZone=t,this._platform=n,this._scrolled=new C,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=r}register(t){this.scrollContainers.has(t)||this.scrollContainers.set(t,t.elementScrolled().subscribe(()=>this._scrolled.next(t)))}deregister(t){let n=this.scrollContainers.get(t);n&&(n.unsubscribe(),this.scrollContainers.delete(t))}scrolled(t=Je){return this._platform.isBrowser?new rt(n=>{this._globalSubscription||this._addGlobalListener();let r=t>0?this._scrolled.pipe(lt(t)).subscribe(n):this._scrolled.subscribe(n);return this._scrolledCount++,()=>{r.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):z()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((t,n)=>this.deregister(n)),this._scrolled.complete()}ancestorScrolled(t,n){let r=this.getAncestorScrollContainers(t);return this.scrolled(n).pipe(at(s=>!s||r.indexOf(s)>-1))}getAncestorScrollContainers(t){let n=[];return this.scrollContainers.forEach((r,s)=>{this._scrollableContainsElement(s,t)&&n.push(s)}),n}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(t,n){let r=De(n),s=t.getElementRef().nativeElement;do if(r==s)return!0;while(r=r.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>{let t=this._getWindow();return bt(t.document,"scroll").subscribe(()=>this._scrolled.next())})}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}};i.\u0275fac=function(n){return new(n||i)(b(w),b(it),b(tt,8))},i.\u0275prov=F({token:i,factory:i.\u0275fac,providedIn:"root"});let e=i;return e})(),ze=(()=>{let i=class i{constructor(t,n,r,s){this.elementRef=t,this.scrollDispatcher=n,this.ngZone=r,this.dir=s,this._destroyed=new C,this._elementScrolled=new rt(a=>this.ngZone.runOutsideAngular(()=>bt(this.elementRef.nativeElement,"scroll").pipe(q(this._destroyed)).subscribe(a)))}ngOnInit(){this.scrollDispatcher.register(this)}ngOnDestroy(){this.scrollDispatcher.deregister(this),this._destroyed.next(),this._destroyed.complete()}elementScrolled(){return this._elementScrolled}getElementRef(){return this.elementRef}scrollTo(t){let n=this.elementRef.nativeElement,r=this.dir&&this.dir.value=="rtl";t.left==null&&(t.left=r?t.end:t.start),t.right==null&&(t.right=r?t.start:t.end),t.bottom!=null&&(t.top=n.scrollHeight-n.clientHeight-t.bottom),r&&U()!=D.NORMAL?(t.left!=null&&(t.right=n.scrollWidth-n.clientWidth-t.left),U()==D.INVERTED?t.left=t.right:U()==D.NEGATED&&(t.left=t.right?-t.right:t.right)):t.right!=null&&(t.left=n.scrollWidth-n.clientWidth-t.right),this._applyScrollToOptions(t)}_applyScrollToOptions(t){let n=this.elementRef.nativeElement;Pe()?n.scrollTo(t):(t.top!=null&&(n.scrollTop=t.top),t.left!=null&&(n.scrollLeft=t.left))}measureScrollOffset(t){let n="left",r="right",s=this.elementRef.nativeElement;if(t=="top")return s.scrollTop;if(t=="bottom")return s.scrollHeight-s.clientHeight-s.scrollTop;let a=this.dir&&this.dir.value=="rtl";return t=="start"?t=a?r:n:t=="end"&&(t=a?n:r),a&&U()==D.INVERTED?t==n?s.scrollWidth-s.clientWidth-s.scrollLeft:s.scrollLeft:a&&U()==D.NEGATED?t==n?s.scrollLeft+s.scrollWidth-s.clientWidth:-s.scrollLeft:t==n?s.scrollLeft:s.scrollWidth-s.clientWidth-s.scrollLeft}};i.\u0275fac=function(n){return new(n||i)(p(P),p(kt),p(w),p(xt,8))},i.\u0275dir=I({type:i,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]],standalone:!0});let e=i;return e})(),ti=20,ei=(()=>{let i=class i{constructor(t,n,r){this._platform=t,this._change=new C,this._changeListener=s=>{this._change.next(s)},this._document=r,n.runOutsideAngular(()=>{if(t.isBrowser){let s=this._getWindow();s.addEventListener("resize",this._changeListener),s.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){let t=this._getWindow();t.removeEventListener("resize",this._changeListener),t.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();let t={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),t}getViewportRect(){let t=this.getViewportScrollPosition(),{width:n,height:r}=this.getViewportSize();return{top:t.top,left:t.left,bottom:t.top+r,right:t.left+n,height:r,width:n}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};let t=this._document,n=this._getWindow(),r=t.documentElement,s=r.getBoundingClientRect(),a=-s.top||t.body.scrollTop||n.scrollY||r.scrollTop||0,d=-s.left||t.body.scrollLeft||n.scrollX||r.scrollLeft||0;return{top:a,left:d}}change(t=ti){return t>0?this._change.pipe(lt(t)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){let t=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:t.innerWidth,height:t.innerHeight}:{width:0,height:0}}};i.\u0275fac=function(n){return new(n||i)(b(it),b(w),b(tt,8))},i.\u0275prov=F({token:i,factory:i.\u0275fac,providedIn:"root"});let e=i;return e})(),Me=new B("VIRTUAL_SCROLLABLE"),ii=(()=>{let i=class i extends ze{constructor(t,n,r,s){super(t,n,r,s)}measureViewportSize(t){let n=this.elementRef.nativeElement;return t==="horizontal"?n.clientWidth:n.clientHeight}};i.\u0275fac=function(n){return new(n||i)(p(P),p(kt),p(w),p(xt,8))},i.\u0275dir=I({type:i,features:[wt]});let e=i;return e})();function ni(e,i){return e.start==i.start&&e.end==i.end}var ri=typeof requestAnimationFrame<"u"?Bt:Ft,oi=(()=>{let i=class i extends ii{get orientation(){return this._orientation}set orientation(t){this._orientation!==t&&(this._orientation=t,this._calculateSpacerSize())}constructor(t,n,r,s,a,d,c,m){super(t,d,r,a),this.elementRef=t,this._changeDetectorRef=n,this._scrollStrategy=s,this.scrollable=m,this._platform=v(it),this._detachedSubject=new C,this._renderedRangeSubject=new C,this._orientation="vertical",this.appendOnly=!1,this.scrolledIndexChange=new rt(X=>this._scrollStrategy.scrolledIndexChange.subscribe(Ne=>Promise.resolve().then(()=>this.ngZone.run(()=>X.next(Ne))))),this.renderedRangeStream=this._renderedRangeSubject,this._totalContentSize=0,this._totalContentWidth="",this._totalContentHeight="",this._renderedRange={start:0,end:0},this._dataLength=0,this._viewportSize=0,this._renderedContentOffset=0,this._renderedContentOffsetNeedsRewrite=!1,this._isChangeDetectionPending=!1,this._runAfterChangeDetection=[],this._viewportChanges=Lt.EMPTY,this._injector=v(Zt),this._isDestroyed=!1,this._viewportChanges=c.change().subscribe(()=>{this.checkViewportSize()}),this.scrollable||(this.elementRef.nativeElement.classList.add("cdk-virtual-scrollable"),this.scrollable=this)}ngOnInit(){this._platform.isBrowser&&(this.scrollable===this&&super.ngOnInit(),this.ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>{this._measureViewportSize(),this._scrollStrategy.attach(this),this.scrollable.elementScrolled().pipe(Q(null),lt(0,ri),q(this._destroyed)).subscribe(()=>this._scrollStrategy.onContentScrolled()),this._markChangeDetectionNeeded()})))}ngOnDestroy(){this.detach(),this._scrollStrategy.detach(),this._renderedRangeSubject.complete(),this._detachedSubject.complete(),this._viewportChanges.unsubscribe(),this._isDestroyed=!0,super.ngOnDestroy()}attach(t){this._forOf,this.ngZone.runOutsideAngular(()=>{this._forOf=t,this._forOf.dataStream.pipe(q(this._detachedSubject)).subscribe(n=>{let r=n.length;r!==this._dataLength&&(this._dataLength=r,this._scrollStrategy.onDataLengthChanged()),this._doChangeDetection()})})}detach(){this._forOf=null,this._detachedSubject.next()}getDataLength(){return this._dataLength}getViewportSize(){return this._viewportSize}getRenderedRange(){return this._renderedRange}measureBoundingClientRectWithScrollOffset(t){return this.getElementRef().nativeElement.getBoundingClientRect()[t]}setTotalContentSize(t){this._totalContentSize!==t&&(this._totalContentSize=t,this._calculateSpacerSize(),this._markChangeDetectionNeeded())}setRenderedRange(t){ni(this._renderedRange,t)||(this.appendOnly&&(t={start:0,end:Math.max(this._renderedRange.end,t.end)}),this._renderedRangeSubject.next(this._renderedRange=t),this._markChangeDetectionNeeded(()=>this._scrollStrategy.onContentRendered()))}getOffsetToRenderedContentStart(){return this._renderedContentOffsetNeedsRewrite?null:this._renderedContentOffset}setRenderedContentOffset(t,n="to-start"){t=this.appendOnly&&n==="to-start"?0:t;let r=this.dir&&this.dir.value=="rtl",s=this.orientation=="horizontal",a=s?"X":"Y",c=`translate${a}(${Number((s&&r?-1:1)*t)}px)`;this._renderedContentOffset=t,n==="to-end"&&(c+=` translate${a}(-100%)`,this._renderedContentOffsetNeedsRewrite=!0),this._renderedContentTransform!=c&&(this._renderedContentTransform=c,this._markChangeDetectionNeeded(()=>{this._renderedContentOffsetNeedsRewrite?(this._renderedContentOffset-=this.measureRenderedContentSize(),this._renderedContentOffsetNeedsRewrite=!1,this.setRenderedContentOffset(this._renderedContentOffset)):this._scrollStrategy.onRenderedOffsetChanged()}))}scrollToOffset(t,n="auto"){let r={behavior:n};this.orientation==="horizontal"?r.start=t:r.top=t,this.scrollable.scrollTo(r)}scrollToIndex(t,n="auto"){this._scrollStrategy.scrollToIndex(t,n)}measureScrollOffset(t){let n;return this.scrollable==this?n=r=>super.measureScrollOffset(r):n=r=>this.scrollable.measureScrollOffset(r),Math.max(0,n(t??(this.orientation==="horizontal"?"start":"top"))-this.measureViewportOffset())}measureViewportOffset(t){var m;let n,r="left",s="right",a=((m=this.dir)==null?void 0:m.value)=="rtl";t=="start"?n=a?s:r:t=="end"?n=a?r:s:t?n=t:n=this.orientation==="horizontal"?"left":"top";let d=this.scrollable.measureBoundingClientRectWithScrollOffset(n);return this.elementRef.nativeElement.getBoundingClientRect()[n]-d}measureRenderedContentSize(){let t=this._contentWrapper.nativeElement;return this.orientation==="horizontal"?t.offsetWidth:t.offsetHeight}measureRangeSize(t){return this._forOf?this._forOf.measureRangeSize(t,this.orientation):0}checkViewportSize(){this._measureViewportSize(),this._scrollStrategy.onDataLengthChanged()}_measureViewportSize(){this._viewportSize=this.scrollable.measureViewportSize(this.orientation)}_markChangeDetectionNeeded(t){t&&this._runAfterChangeDetection.push(t),this._isChangeDetectionPending||(this._isChangeDetectionPending=!0,this.ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>{this._doChangeDetection()})))}_doChangeDetection(){this._isDestroyed||this.ngZone.run(()=>{this._changeDetectorRef.markForCheck(),this._contentWrapper.nativeElement.style.transform=this._renderedContentTransform,te(()=>{this._isChangeDetectionPending=!1;let t=this._runAfterChangeDetection;this._runAfterChangeDetection=[];for(let n of t)n()},{injector:this._injector})})}_calculateSpacerSize(){this._totalContentHeight=this.orientation==="horizontal"?"":`${this._totalContentSize}px`,this._totalContentWidth=this.orientation==="horizontal"?`${this._totalContentSize}px`:""}};i.\u0275fac=function(n){return new(n||i)(p(P),p(Ot),p(w),p(Le,8),p(xt,8),p(kt),p(ei),p(Me,8))},i.\u0275cmp=T({type:i,selectors:[["cdk-virtual-scroll-viewport"]],viewQuery:function(n,r){if(n&1&&ht(Qe,7),n&2){let s;$(s=Y())&&(r._contentWrapper=s.first)}},hostAttrs:[1,"cdk-virtual-scroll-viewport"],hostVars:4,hostBindings:function(n,r){n&2&&S("cdk-virtual-scroll-orientation-horizontal",r.orientation==="horizontal")("cdk-virtual-scroll-orientation-vertical",r.orientation!=="horizontal")},inputs:{orientation:"orientation",appendOnly:[2,"appendOnly","appendOnly",ae]},outputs:{scrolledIndexChange:"scrolledIndexChange"},standalone:!0,features:[R([{provide:ze,useFactory:(t,n)=>t||n,deps:[[new $t,new Ht(Me)],i]}]),ie,wt,M],ngContentSelectors:qe,decls:4,vars:4,consts:[["contentWrapper",""],[1,"cdk-virtual-scroll-content-wrapper"],[1,"cdk-virtual-scroll-spacer"]],template:function(n,r){n&1&&(H(),g(0,"div",1,0),L(2),f(),y(3,"div",2)),n&2&&(l(3),x("width",r._totalContentWidth)("height",r._totalContentHeight))},styles:["cdk-virtual-scroll-viewport{display:block;position:relative;transform:translateZ(0)}.cdk-virtual-scrollable{overflow:auto;will-change:scroll-position;contain:strict;-webkit-overflow-scrolling:touch}.cdk-virtual-scroll-content-wrapper{position:absolute;top:0;left:0;contain:content}[dir=rtl] .cdk-virtual-scroll-content-wrapper{right:0;left:auto}.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper{min-height:100%}.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>dl:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>ol:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>table:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>ul:not([cdkVirtualFor]){padding-left:0;padding-right:0;margin-left:0;margin-right:0;border-left-width:0;border-right-width:0;outline:none}.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper{min-width:100%}.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>dl:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>ol:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>table:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>ul:not([cdkVirtualFor]){padding-top:0;padding-bottom:0;margin-top:0;margin-bottom:0;border-top-width:0;border-bottom-width:0;outline:none}.cdk-virtual-scroll-spacer{height:1px;transform-origin:0 0;flex:0 0 auto}[dir=rtl] .cdk-virtual-scroll-spacer{transform-origin:100% 0}"],encapsulation:2,changeDetection:0});let e=i;return e})();function ke(e,i,o){let t=o;if(!t.getBoundingClientRect)return 0;let n=t.getBoundingClientRect();return e==="horizontal"?i==="start"?n.left:n.right:i==="start"?n.top:n.bottom}var Gn=(()=>{let i=class i{get cdkVirtualForOf(){return this._cdkVirtualForOf}set cdkVirtualForOf(t){this._cdkVirtualForOf=t,Re(t)?this._dataSourceChanges.next(t):this._dataSourceChanges.next(new yt(st(t)?t:Array.from(t||[])))}get cdkVirtualForTrackBy(){return this._cdkVirtualForTrackBy}set cdkVirtualForTrackBy(t){this._needsUpdate=!0,this._cdkVirtualForTrackBy=t?(n,r)=>t(n+(this._renderedRange?this._renderedRange.start:0),r):void 0}set cdkVirtualForTemplate(t){t&&(this._needsUpdate=!0,this._template=t)}get cdkVirtualForTemplateCacheSize(){return this._viewRepeater.viewCacheSize}set cdkVirtualForTemplateCacheSize(t){this._viewRepeater.viewCacheSize=et(t)}constructor(t,n,r,s,a,d){this._viewContainerRef=t,this._template=n,this._differs=r,this._viewRepeater=s,this._viewport=a,this.viewChange=new C,this._dataSourceChanges=new C,this.dataStream=this._dataSourceChanges.pipe(Q(null),Nt(),ct(([c,m])=>this._changeDataSource(c,m)),Vt(1)),this._differ=null,this._needsUpdate=!1,this._destroyed=new C,this.dataStream.subscribe(c=>{this._data=c,this._onRenderedDataChange()}),this._viewport.renderedRangeStream.pipe(q(this._destroyed)).subscribe(c=>{this._renderedRange=c,this.viewChange.observers.length&&d.run(()=>this.viewChange.next(this._renderedRange)),this._onRenderedDataChange()}),this._viewport.attach(this)}measureRangeSize(t,n){if(t.start>=t.end)return 0;t.startthis._renderedRange.end;let r=t.start-this._renderedRange.start,s=t.end-t.start,a,d;for(let c=0;c-1;c--){let m=this._viewContainerRef.get(c+r);if(m&&m.rootNodes.length){d=m.rootNodes[m.rootNodes.length-1];break}}return a&&d?ke(n,"end",d)-ke(n,"start",a):0}ngDoCheck(){if(this._differ&&this._needsUpdate){let t=this._differ.diff(this._renderedItems);t?this._applyChanges(t):this._updateContext(),this._needsUpdate=!1}}ngOnDestroy(){this._viewport.detach(),this._dataSourceChanges.next(void 0),this._dataSourceChanges.complete(),this.viewChange.complete(),this._destroyed.next(),this._destroyed.complete(),this._viewRepeater.detach()}_onRenderedDataChange(){this._renderedRange&&(this._renderedItems=this._data.slice(this._renderedRange.start,this._renderedRange.end),this._differ||(this._differ=this._differs.find(this._renderedItems).create((t,n)=>this.cdkVirtualForTrackBy?this.cdkVirtualForTrackBy(t,n):n)),this._needsUpdate=!0)}_changeDataSource(t,n){return t&&t.disconnect(this),this._needsUpdate=!0,n?n.connect(this):z()}_updateContext(){let t=this._data.length,n=this._viewContainerRef.length;for(;n--;){let r=this._viewContainerRef.get(n);r.context.index=this._renderedRange.start+n,r.context.count=t,this._updateComputedContextProperties(r.context),r.detectChanges()}}_applyChanges(t){this._viewRepeater.applyChanges(t,this._viewContainerRef,(s,a,d)=>this._getEmbeddedViewArgs(s,d),s=>s.item),t.forEachIdentityChange(s=>{let a=this._viewContainerRef.get(s.currentIndex);a.context.$implicit=s.item});let n=this._data.length,r=this._viewContainerRef.length;for(;r--;){let s=this._viewContainerRef.get(r);s.context.index=this._renderedRange.start+r,s.context.count=n,this._updateComputedContextProperties(s.context)}}_updateComputedContextProperties(t){t.first=t.index===0,t.last=t.index===t.count-1,t.even=t.index%2===0,t.odd=!t.even}_getEmbeddedViewArgs(t,n){return{templateRef:this._template,context:{$implicit:t.item,cdkVirtualForOf:this._cdkVirtualForOf,index:-1,count:-1,first:!1,last:!1,odd:!1,even:!1},index:n}}};i.\u0275fac=function(n){return new(n||i)(p(ee),p(Kt),p(se),p(Rt),p(oi,4),p(w))},i.\u0275dir=I({type:i,selectors:[["","cdkVirtualFor","","cdkVirtualForOf",""]],inputs:{cdkVirtualForOf:"cdkVirtualForOf",cdkVirtualForTrackBy:"cdkVirtualForTrackBy",cdkVirtualForTemplate:"cdkVirtualForTemplate",cdkVirtualForTemplateCacheSize:"cdkVirtualForTemplateCacheSize"},standalone:!0,features:[R([{provide:Rt,useClass:Ct}])]});let e=i;return e})();var si=["*"];function ai(e,i){if(e&1&&(g(0,"div",14),E(1),f()),e&2){let o=h(2);l(),O(" ",o.axisYName," ")}}function li(e,i){if(e&1&&(g(0,"div",17),E(1),f()),e&2){let o=i.$implicit,t=h(3);l(),O(" ",t.fallback(o)," ")}}function ci(e,i){if(e&1&&(g(0,"div",15),_(1,li,2,1,"div",16),f()),e&2){let o=h(2);l(),u("ngForOf",o.axisYLabels)}}function di(e,i){if(e&1&&(g(0,"div",11),_(1,ai,2,1,"div",12)(2,ci,2,1,"div",13),f()),e&2){let o=h();S("t-side_padding",o.hasXLabels),l(),u("ngIf",o.axisYName),l(),u("ngIf",!o.axisYInset)}}function hi(e,i){if(e&1&&y(0,"div",18),e&2){let o=i.$implicit,t=h();x("border-right-style",t.verticalLinesHandler(o,t.verticalLines))}}function ui(e,i){if(e&1&&y(0,"div",19),e&2){let o=i.$implicit,t=h();x("border-top-style",t.horizontalLinesHandler(o,t.horizontalLines))}}function fi(e,i){if(e&1&&(g(0,"div",17),E(1),f()),e&2){let o=i.$implicit,t=h(2);l(),O(" ",t.fallback(o)," ")}}function gi(e,i){if(e&1&&(g(0,"div",20),_(1,fi,2,1,"div",16),f()),e&2){let o=h();l(),u("ngForOf",o.axisYLabels)}}function pi(e,i){if(e&1&&(g(0,"div",23),E(1),f()),e&2){let o=i.$implicit,t=h(2);l(),O(" ",t.fallback(o)," ")}}function mi(e,i){if(e&1&&(g(0,"div",21),_(1,pi,2,1,"div",22),f()),e&2){let o=h();l(),u("ngForOf",o.axisYSecondaryLabels)}}function _i(e,i){if(e&1&&(g(0,"div",26),E(1),f()),e&2){let o=i.$implicit,t=h(2);S("t-label-x_transparent",o===null),l(),O(" ",t.fallback(o)," ")}}function vi(e,i){if(e&1&&(g(0,"div",24),_(1,_i,2,3,"div",25),f()),e&2){let o=h();l(),u("ngForOf",o.axisXLabels)}}function xi(e,i){if(e&1&&(g(0,"div",23),E(1),f()),e&2){let o=i.$implicit,t=h(3);l(),O(" ",t.fallback(o)," ")}}function yi(e,i){if(e&1&&(g(0,"div",29),_(1,xi,2,1,"div",22),f()),e&2){let o=h(2);l(),u("ngForOf",o.axisYSecondaryLabels)}}function Ci(e,i){if(e&1&&(g(0,"div",30),E(1),f()),e&2){let o=h(2);l(),O(" ",o.axisYSecondaryName," ")}}function bi(e,i){if(e&1&&(g(0,"div",11),_(1,yi,2,1,"div",27)(2,Ci,2,1,"div",28),f()),e&2){let o=h();S("t-side_padding",o.hasXLabels),l(),u("ngIf",!o.axisYSecondaryInset),l(),u("ngIf",o.axisYSecondaryName)}}var wi=()=>"dashed";var Si=()=>"solid";var tr=(()=>{let i=class i{constructor(){this.axisX="solid",this.axisXLabels=[],this.axisY="solid",this.axisYInset=!1,this.axisYLabels=[],this.axisYName="",this.axisYSecondaryInset=!1,this.axisYSecondaryLabels=[],this.axisYSecondaryName="",this.horizontalLines=0,this.horizontalLinesHandler=Si,this.verticalLines=0,this.verticalLinesHandler=wi}get hasXLabels(){return!!this.axisXLabels.length}get hasYLabels(){return!!this.axisYLabels.length&&!this.axisYInset||!!this.axisYName}get hasYSecondaryLabels(){return!!this.axisYSecondaryLabels.length&&!this.axisYSecondaryInset||!!this.axisYSecondaryName}fallback(t){return t||he}get centeredXLabels(){return this.axisY==="none"}};i.\u0275fac=function(n){return new(n||i)},i.\u0275cmp=T({type:i,selectors:[["tui-axes"]],hostVars:2,hostBindings:function(n,r){n&2&&S("_centered",r.centeredXLabels)},inputs:{axisX:"axisX",axisXLabels:"axisXLabels",axisY:"axisY",axisYInset:"axisYInset",axisYLabels:"axisYLabels",axisYName:"axisYName",axisYSecondaryInset:"axisYSecondaryInset",axisYSecondaryLabels:"axisYSecondaryLabels",axisYSecondaryName:"axisYSecondaryName",horizontalLines:"horizontalLines",horizontalLinesHandler:"horizontalLinesHandler",verticalLines:"verticalLines",verticalLinesHandler:"verticalLinesHandler"},standalone:!0,features:[M],ngContentSelectors:si,decls:13,vars:11,consts:[["class","t-side",3,"t-side_padding",4,"ngIf"],[1,"t-wrapper"],[1,"t-grid"],[1,"t-vertical"],["automation-id","tui-axex__vertical-line","class","t-line t-line_vertical",3,"borderRightStyle",4,"tuiRepeatTimes","tuiRepeatTimesOf"],[1,"t-horizontal"],["automation-id","tui-axex__horizontal-line","class","t-line",3,"borderTopStyle",4,"tuiRepeatTimes","tuiRepeatTimesOf"],["class","t-labels-y t-labels-y_inset",4,"ngIf"],["class","t-labels-y t-labels-y_inset t-labels-y_inset_secondary",4,"ngIf"],[1,"t-content"],["class","t-labels-x",4,"ngIf"],[1,"t-side"],["automation-id","tui-axex__axis-y-name","class","t-name t-name_primary",4,"ngIf"],["class","t-labels-y t-labels-y_primary",4,"ngIf"],["automation-id","tui-axex__axis-y-name",1,"t-name","t-name_primary"],[1,"t-labels-y","t-labels-y_primary"],["automation-id","tui-axex__axis-y-label","class","t-label-y",4,"ngFor","ngForOf"],["automation-id","tui-axex__axis-y-label",1,"t-label-y"],["automation-id","tui-axex__vertical-line",1,"t-line","t-line_vertical"],["automation-id","tui-axex__horizontal-line",1,"t-line"],[1,"t-labels-y","t-labels-y_inset"],[1,"t-labels-y","t-labels-y_inset","t-labels-y_inset_secondary"],["automation-id","tui-axex__axis-y-secondary-label","class","t-label-y",4,"ngFor","ngForOf"],["automation-id","tui-axex__axis-y-secondary-label",1,"t-label-y"],[1,"t-labels-x"],["automation-id","tui-axex__axis-x-label","class","t-label-x",3,"t-label-x_transparent",4,"ngFor","ngForOf"],["automation-id","tui-axex__axis-x-label",1,"t-label-x"],["class","t-labels-y t-labels-y_secondary",4,"ngIf"],["automation-id","tui-axex__axis-y-secondary-name","class","t-name",4,"ngIf"],[1,"t-labels-y","t-labels-y_secondary"],["automation-id","tui-axex__axis-y-secondary-name",1,"t-name"]],template:function(n,r){n&1&&(H(),_(0,di,3,4,"div",0),g(1,"div",1)(2,"div",2)(3,"div",3),_(4,hi,1,2,"div",4),f(),g(5,"div",5),_(6,ui,1,2,"div",6),f(),_(7,gi,2,1,"div",7)(8,mi,2,1,"div",8),g(9,"div",9),L(10),f()(),_(11,vi,2,1,"div",10),f(),_(12,bi,3,4,"div",0)),n&2&&(u("ngIf",r.hasYLabels),l(2),x("border-bottom-style",r.axisX)("border-left-style",r.axisY),l(2),u("tuiRepeatTimesOf",r.verticalLines),l(2),u("tuiRepeatTimesOf",r.horizontalLines),l(),u("ngIf",r.axisYInset),l(),u("ngIf",r.axisYSecondaryInset),l(3),u("ngIf",r.hasXLabels),l(),u("ngIf",r.hasYSecondaryLabels))},dependencies:[ft,ut,ve],styles:['[_nghost-%COMP%]{display:flex}.t-wrapper[_ngcontent-%COMP%]{display:flex;flex:1;height:100%;flex-direction:column}.t-grid[_ngcontent-%COMP%]{position:relative;display:flex;flex:1;justify-content:space-around;align-items:flex-end;border-width:1px;border-color:var(--tui-border-normal);isolation:isolate}.t-horizontal[_ngcontent-%COMP%]{position:absolute;top:0;left:0;width:100%;height:100%;display:flex;flex-direction:column}.t-vertical[_ngcontent-%COMP%]{position:absolute;top:0;left:0;width:100%;height:100%;display:flex}._centered[_nghost-%COMP%] .t-vertical[_ngcontent-%COMP%]:after{content:"";display:block;flex:1 0 1px}.t-line[_ngcontent-%COMP%]{flex:2 0 1px;box-sizing:border-box;border-width:1px;border-color:var(--tui-border-normal)}._centered[_nghost-%COMP%] .t-line_vertical[_ngcontent-%COMP%]:first-child{flex:1 0 1px;pointer-events:none}.t-side[_ngcontent-%COMP%]{display:flex;align-items:stretch}.t-side_padding[_ngcontent-%COMP%]{padding-bottom:2rem}.t-name[_ngcontent-%COMP%]{font:var(--tui-font-text-xs);writing-mode:tb;text-align:center;padding-left:.75rem;color:var(--tui-text-secondary)}.t-name_primary[_ngcontent-%COMP%]{transform:rotate(180deg)}.t-labels-y[_ngcontent-%COMP%]{display:flex;font:var(--tui-font-text-xs);flex-direction:column-reverse;justify-content:space-between;color:var(--tui-text-secondary)}.t-labels-y_primary[_ngcontent-%COMP%]{text-align:right;padding-right:.75rem}.t-labels-y_secondary[_ngcontent-%COMP%]{padding-left:.75rem}.t-labels-y_transparent[_ngcontent-%COMP%]{border-color:transparent}.t-labels-y_inset[_ngcontent-%COMP%]{position:absolute;top:.5625rem;left:.25rem;bottom:-.75rem;pointer-events:none}.t-labels-y_inset_secondary[_ngcontent-%COMP%]{left:auto;right:.25rem;text-align:right}.t-labels-x[_ngcontent-%COMP%]{position:relative;display:flex;font:var(--tui-font-text-xs);border-right:1px solid transparent;color:var(--tui-text-secondary)}.t-label-x[_ngcontent-%COMP%]{height:.4375rem;border-left:1px solid var(--tui-border-normal);flex:1;margin-bottom:1.5625rem}.t-label-x[_ngcontent-%COMP%]:before{content:"";display:block;height:.5625rem}.t-label-x_transparent[_ngcontent-%COMP%]{border-color:transparent}._centered[_nghost-%COMP%] .t-label-x[_ngcontent-%COMP%]{height:2rem;text-align:center;border:none;margin:0}[_nghost-%COMP%]:not(._centered) .t-label-x[_ngcontent-%COMP%]:last-child:not(:first-child){position:absolute;right:0;text-align:right;border-left:none}.t-label-y[_ngcontent-%COMP%]:first-child{margin-bottom:-.375rem}.t-label-y[_ngcontent-%COMP%]:last-child{margin-top:-.375rem}.t-content[_ngcontent-%COMP%]{position:absolute;top:0;left:-1px;right:0;bottom:-1px;display:flex;align-items:flex-end}'],changeDetection:0});let e=i;return e})();function Ei(e,i){let o=i[0]-e[0],t=i[1]-e[1];return Math.atan2(t,o)}function Oi(e,i){let o=i[0]-e[0],t=i[1]-e[1];return Math.sqrt(o**2+t**2)}function Fe(e,i,o,t=!1,n=.2){let r=e||[0,0],s=i||e||[0,0],a=o||e||[0,0],d=Ei(s,a)+(t?Math.PI:0),c=Oi(s,a)*n,m=r[0]+Math.cos(d)*c,X=r[1]+Math.sin(d)*c;return[m,X]}function Di(e,i,o){let[t,n]=Fe(e[i-1],e[i-2],e[i],!1,o),[r,s]=Fe(e[i],e[i-1],e[i+1],!0,o),a=e[i]??[0,0];return`C ${t},${n} ${r},${s} ${a[0]},${a[1]}`}function Ti(e){return`L ${e}`}var Ii=500;function Be(e,i,o){let t=[...e[i]??[0,0]];return o?Di(e,i,o/Ii):Ti([t[0],t[1]])}var Pi=(e,i)=>({$implicit:e,index:i});function Ri(e,i){if(e&1&&y(0,"div",10),e&2){let o=i.$implicit,t=h(3);x("bottom",t.getBottom(o[1]),"%")("left",t.getLeft(o[0]),"%")}}function Mi(e,i){if(e&1&&(V(0),_(1,Ri,1,4,"div",9),j()),e&2){let o=h(2);l(),u("ngForOf",o.value)}}function ki(e,i){if(e&1){let o=ne();g(0,"div",14),K(1,"async"),St("mouseenter",function(){Ut(o);let n=h().index,r=h(3);return Xt(r.onMouseEnter(n))}),y(2,"div",15)(3,"div",16,0),f()}if(e&2){let o=re(4),t=h(),n=t.$implicit,r=t.index,s=h(2).tuiLet,a=h();x("left",a.getLeft(a.getX(r)),"%")("width",a.getWidth(r),"%"),S("t-column_hint_hovered",J(1,20,a.drivers.get(r)))("t-column_hovered",s===r),u("tuiHint",(a.hintDirective==null?null:a.hintDirective.hint)||a.hintContent)("tuiHintContext",oe(22,Pi,a.getImplicit(n),r))("tuiHintDescribe",a.isFocusable?a.getHintId(r):null)("tuiHintHost",o),l(2),x("left",a.getOffset(r),"%"),l(),x("bottom",a.getBottom(n[1]),"%")("left",a.getOffset(r),"%"),u("id",a.getHintId(r))("tabIndex",a.isFocusable?0:-1)}}function Li(e,i){if(e&1&&y(0,"div",17),e&2){let o=h().$implicit,t=h(3);x("bottom",t.getBottom(o[1]),"%")}}function zi(e,i){if(e&1&&(V(0),_(1,ki,5,25,"div",12)(2,Li,1,2,"div",13),j()),e&2){let o=h(3);l(),u("ngIf",o.value.length>1||o.dots),l(),u("ngIf",o.isFocusable)}}function Fi(e,i){if(e&1&&(V(0),_(1,zi,3,2,"ng-container",11),j()),e&2){let o=h(2);l(),u("ngForOf",o.value)}}function Bi(e,i){if(e&1&&(g(0,"div",20),E(1),f()),e&2){let o=h().ngIf,t=h(2);x("left",t.getLeft(o[0]),"%"),l(),O(" ",t.xStringify(o[0])," ")}}function Ai(e,i){if(e&1&&(g(0,"div",21),E(1),f()),e&2){let o=h().ngIf,t=h(2);x("bottom",t.getBottom(o[1]),"%"),l(),O(" ",t.yStringify(o[1])," ")}}function Ni(e,i){if(e&1&&(V(0),_(1,Bi,2,3,"div",18)(2,Ai,2,3,"div",19),j()),e&2){let o=h(2);l(),u("ngIf",o.xStringify),l(),u("ngIf",o.yStringify)}}function Vi(e,i){if(e&1&&(V(0),dt(),g(1,"svg",2)(2,"defs")(3,"linearGradient",3),y(4,"stop",4)(5,"stop",5),f()(),y(6,"path",6)(7,"path",7),f(),_(8,Mi,2,1,"ng-container",8)(9,Fi,2,1,"ng-container",8)(10,Ni,3,2,"ng-container",8),j()),e&2){let o=i.tuiLet,t=h();l(),k("viewBox",t.viewBox),l(2),k("id",t.fillId),l(3),k("d",t.fillD)("fill",t.fill),l(),k("d",t.d),l(),u("ngIf",t.dots),l(),u("ngIf",t.hasHints),l(),u("ngIf",t.getHovered(o))}}var ji={dots:!1,filled:!1,smoothingFactor:0},Hi=pt(ji);var $i=(()=>{let i=class i{constructor(){this.charts=_t,this.chartsRef=_t,this.renderer=v(Jt),this.destroyRef=v(Gt),this.zone=v(w),this.hovered$=v(Tt)}ngAfterViewInit(){G([Yi(this.charts),this.hovered$]).pipe(at(t=>!t.some(Boolean)),fe(this.zone),ce(this.destroyRef)).subscribe(()=>{this.charts.forEach(t=>t.onHovered(NaN))})}getContext(t,n){return this.computeContext(...this.charts.map(({value:r})=>r))[t]||[]}raise(t,n){let r=this.charts.map(a=>a.value[t]??[0,0]),s=[...r].sort((a,d)=>a[1]-d[1]);this.charts.forEach(a=>a.onHovered(t)),this.chartsRef.forEach(({nativeElement:a},d)=>this.renderer.setStyle(a,"z-index",s.indexOf(r[d]??[0,0])))}computeContext(...t){return(t[0]||[]).map((n,r)=>t.map(s=>s[r]??[0,0]))}};i.\u0275fac=function(n){return new(n||i)},i.\u0275dir=I({type:i,selectors:[["","tuiLineChartHint",""]],contentQueries:function(n,r,s){if(n&1&&(Et(s,Ae,4),Et(s,Ae,4,P)),n&2){let a;$(a=Y())&&(r.charts=a),$(a=Y())&&(r.chartsRef=a)}},inputs:{hint:[0,"tuiLineChartHint","hint"]},standalone:!0,features:[R([Tt])]});let e=i;return ot([mt],e.prototype,"computeContext",null),e})();function Yi(e){return G(e.map(({drivers:i})=>ue(i).pipe(Z(o=>o.map(t=>t.pipe(Q(!1))))))).pipe(Z(i=>i.reduce((o,t)=>o.concat(t),[])),ct(i=>G(i)),Z(i=>i.some(Boolean)),N())}var Ae=(()=>{let i=class i{constructor(){this.zone=v(w),this.options=v(Hi),this.hover$=new C,this.autoIdString=v(me).generate(),this.hintDirective=v($i,{optional:!0}),this.hintOptions=v(ye,{optional:!0}),this.drivers=_t,this.x=0,this.y=0,this.width=0,this.height=0,this.smoothingFactor=this.options.smoothingFactor,this.xStringify=null,this.yStringify=null,this.filled=this.options.filled,this.dots=this.options.dots,this.value=[]}set valueSetter(t){this.value=t.filter(n=>!n.some(Number.isNaN))}onHovered(t){this.hover$.next(t)}get hovered$(){return this.hover$.pipe(N(),ge(this.zone))}get hintContent(){var t;return((t=this.hintOptions)==null?void 0:t.content)||""}get fillId(){return`tui-line-chart-${this.autoIdString}`}get fill(){return this.filled?`url(#${this.fillId})`:"none"}get viewBox(){return`${this.x} ${this.y} ${this.width} ${this.height}`}get d(){return this.getD(this.value,this.smoothingFactor)}get fillD(){var t,n;return this.value.length?`${this.d}V ${this.y} H ${(t=this.value[0])==null?void 0:t[0]} V ${(n=this.value[0])==null?void 0:n[1]}`:this.d}get isFocusable(){return!this.hintDirective&&this.hasHints}get hasHints(){var t;return!!this.xStringify||!!this.yStringify||!!((t=this.hintDirective)!=null&&t.hint)||!!this.hintContent}onMouseLeave(){this.hintDirective||this.onHovered(NaN)}getX(t){var n,r,s,a;return this.isSinglePoint?(((n=this.value[0])==null?void 0:n[0])||0)/2:t?((((r=this.value[t-1])==null?void 0:r[0])||0)+(((s=this.value[t])==null?void 0:s[0])||0))/2:2*(((a=this.value[0])==null?void 0:a[0])||0)-this.getX(1)}getWidth(t){return 100*this.computeWidth(t)/this.width}getHintId(t){return`${this.autoIdString}_${t}`}getImplicit(t){var n;return((n=this.hintDirective)==null?void 0:n.getContext(this.value.indexOf(t),this))||t}getHovered(t){return de(t)&&Number.isInteger(t)?this.value[t]??null:null}getBottom(t){return 100*(t-this.y)/this.height}getLeft(t){return 100*(t-this.x)/this.width}getOffset(t){var n;return 100*((((n=this.value[t])==null?void 0:n[0])||0)-this.getX(t))/this.computeWidth(t)}onMouseEnter(t){this.hintDirective?this.hintDirective.raise(t,this):this.onHovered(t)}get isSinglePoint(){return this.value.length===1}getD(t,n){return t.reduce((r,s,a)=>a?`${r} ${Be(t,a,n)}`:`M ${s}`,"")}computeWidth(t){var n;return t===this.value.length-1?2*((((n=this.value[t])==null?void 0:n[0])||0)-this.getX(t)):this.getX(t+1)-this.getX(t)}};i.\u0275fac=function(n){return new(n||i)},i.\u0275cmp=T({type:i,selectors:[["tui-line-chart"]],viewQuery:function(n,r){if(n&1&&ht(Ce,5),n&2){let s;$(s=Y())&&(r.drivers=s)}},hostBindings:function(n,r){n&1&&St("mouseleave",function(){return r.onMouseLeave()})},inputs:{x:"x",y:"y",width:"width",height:"height",smoothingFactor:"smoothingFactor",xStringify:"xStringify",yStringify:"yStringify",filled:"filled",dots:"dots",valueSetter:[0,"value","valueSetter"]},standalone:!0,features:[R([],[xe({direction:"top",hideDelay:0})]),M],decls:2,vars:3,consts:[["hintHost",""],[4,"tuiLet"],["focusable","false","height","100%","preserveAspectRatio","none","width","100%","xmlns","http://www.w3.org/2000/svg",1,"t-svg"],["x1","0","x2","0","y1","1","y2","0"],["offset","0%","stop-color","currentColor","stop-opacity","0.5"],["offset","100%","stop-color","currentColor","stop-opacity","0"],["stroke","none"],["fill","none","stroke","currentColor","stroke-width","2","vector-effect","non-scaling-stroke"],[4,"ngIf"],["class","t-dot",3,"bottom","left",4,"ngFor","ngForOf"],[1,"t-dot"],[4,"ngFor","ngForOf"],["class","t-column",3,"t-column_hint_hovered","t-column_hovered","left","width","tuiHint","tuiHintContext","tuiHintDescribe","tuiHintHost","mouseenter",4,"ngIf"],["class","t-line t-line_horizontal",3,"bottom",4,"ngIf"],[1,"t-column",3,"mouseenter","tuiHint","tuiHintContext","tuiHintDescribe","tuiHintHost"],[1,"t-line","t-line_vertical"],[1,"t-host",3,"id","tabIndex"],[1,"t-line","t-line_horizontal"],["class","t-hint t-hint_x",3,"left",4,"ngIf"],["class","t-hint t-hint_y",3,"bottom",4,"ngIf"],[1,"t-hint","t-hint_x"],[1,"t-hint","t-hint_y"]],template:function(n,r){n&1&&(_(0,Vi,11,8,"ng-container",1),K(1,"async")),n&2&&u("tuiLet",J(1,1,r.hovered$))},dependencies:[_e,gt,ft,be,we,Se,ut],styles:['[_nghost-%COMP%]{display:flex;width:100%;height:100%;pointer-events:none}.t-svg[_ngcontent-%COMP%]{transform:scaleY(-1)}.t-column[_ngcontent-%COMP%]{position:absolute;top:0;height:100%;pointer-events:auto}.t-dot[_ngcontent-%COMP%]{position:absolute;width:.375rem;height:.375rem;border-radius:100%;background:currentColor;margin:-.1875rem;box-shadow:0 0 0 2px #fff}.t-host[_ngcontent-%COMP%]{position:absolute;left:50%;width:.5rem;height:.5rem;border-radius:100%;opacity:0;background:#fff;margin:-.25rem;box-shadow:0 0 0 2px currentColor,0 .0625rem .1875rem .125rem #0000001a;outline:none;pointer-events:none}.t-host[_ngcontent-%COMP%]:focus, .t-column_hovered[_ngcontent-%COMP%] .t-host[_ngcontent-%COMP%], .t-column[_ngcontent-%COMP%]:hover .t-host[_ngcontent-%COMP%], .t-column_hint_hovered[_ngcontent-%COMP%] .t-host[_ngcontent-%COMP%]{opacity:1}.t-line[_ngcontent-%COMP%]{position:absolute;opacity:0;background:var(--tui-border-normal)}.t-line_vertical[_ngcontent-%COMP%]{top:0;bottom:0;left:50%;width:1px}.t-line_horizontal[_ngcontent-%COMP%]{z-index:-1;width:100%;height:1px}[style^="z-index: 0"][_nghost-%COMP%] .t-column_hovered[_ngcontent-%COMP%] .t-line[_ngcontent-%COMP%], [_nghost-%COMP%]:not([style]) .t-column[_ngcontent-%COMP%]:hover .t-line[_ngcontent-%COMP%], [_nghost-%COMP%]:not([style]) .t-column_hint_hovered[_ngcontent-%COMP%] .t-line[_ngcontent-%COMP%], [style^="z-index: 0"][_nghost-%COMP%] .t-column_hovered[_ngcontent-%COMP%] + .t-line[_ngcontent-%COMP%], [_nghost-%COMP%]:not([style]) .t-column[_ngcontent-%COMP%]:hover + .t-line[_ngcontent-%COMP%], [_nghost-%COMP%]:not([style]) .t-column_hint_hovered[_ngcontent-%COMP%] + .t-line[_ngcontent-%COMP%]{opacity:1}.t-hint[_ngcontent-%COMP%]{position:absolute;box-shadow:var(--tui-shadow-small);font:var(--tui-font-text-xs);height:1.25rem;line-height:1.25rem;margin-bottom:-.625rem;padding:0 .375rem;white-space:nowrap;color:var(--tui-text-primary);background:var(--tui-background-base);transform:translate3d(-50%,0,0)}.t-hint_x[_ngcontent-%COMP%]{bottom:0}.t-hint_y[_ngcontent-%COMP%]{left:0}'],changeDetection:0});let e=i;return ot([mt],e.prototype,"hovered$",null),ot([mt],e.prototype,"getD",null),e})();export{Ui as a,hn as b,sn as c,an as d,ln as e,Zn as f,oi as g,Gn as h,tr as i,Hi as j,$i as k,Yi as l,Ae as m}; diff --git a/chunk-LOMFBLNO.js b/chunk-LOMFBLNO.js deleted file mode 100644 index c868b1bce..000000000 --- a/chunk-LOMFBLNO.js +++ /dev/null @@ -1,3 +0,0 @@ -import{a as Re,c as ui,e as Ni,f as Ai,g as Ri}from"./chunk-NL4UQKF6.js";import{a as fi,b as zi}from"./chunk-RRCAJAAS.js";import{d as ni,f as me,i as _i,j as vi,l as Ge,m as Be,n as Ue}from"./chunk-UPS6ZX2Y.js";import{a as pi}from"./chunk-AWGYT4IY.js";import{a as li}from"./chunk-NSSAPNB2.js";import"./chunk-LS7UCRAC.js";import{A as Oi,C as Di,E as ki,F as Pi,G as Ei,H as Vi,I as Fi,J as $i,K as Hi,L as U,T as $,U as he,V as Li,W as ge,a as ti,j as ci,k as gi,m as lt,n as ct,o as bi,p as Ti,r as yi,s as xi,t as pt,v as wi,w as Ii,x as Mi,z as Si}from"./chunk-DNEQ7KDT.js";import{$ as B,Ca as hi,D as ii,J as Ae,X as oi,Y as ze,Z as G,_ as pe,ca as ri,ia as ee,ka as te,la as ai,ma as si,qa as at,ra as st,sa as ut}from"./chunk-OKL4RZMA.js";import{b as Rt,d as zt}from"./chunk-GIHFJXZ6.js";import{a as Ne,b as Ci,c as je}from"./chunk-VVRWXTJV.js";import{A as K,Ab as Z,Bb as s,Bc as Lt,Be as Zt,Ca as T,Cb as u,Cd as Ut,Ce as Jt,Cf as ce,Da as M,Db as y,Df as de,Ea as et,Eb as tt,Ec as ae,Fa as Dt,Fb as it,Fd as be,H as Je,Hb as v,Hd as Fe,Ka as d,Kb as _,Kd as Wt,Kf as di,La as m,Lb as p,Ld as Yt,Mb as De,Mc as J,Md as j,N as It,Na as _e,Nb as ve,Nc as nt,Nd as Kt,Ne as He,Nf as mi,Pb as ke,Pc as Nt,Qb as Pe,Rb as Ee,Rc as At,Sa as L,Sb as V,Tb as C,Tc as w,Ub as Ft,Vb as S,Vd as E,Ve as Le,Wb as $t,We as ei,Xb as D,Ya as Me,Yb as k,Za as kt,Zb as P,a as ie,b as ne,bb as Pt,bc as N,bd as z,be as qt,cb as c,cc as oe,dc as R,dd as jt,e as vt,ea as Mt,ee as rt,fe as $e,g as Qe,ha as q,i as xe,ia as H,j as bt,ja as St,jc as re,jd as se,kc as Ve,ke as Xt,lb as Se,lc as Ht,m as Ze,mb as Ce,n as Tt,nd as ot,o as yt,od as ue,pc as F,qa as A,qe as Qt,ra as I,rb as b,s as xt,sb as Oe,sd as Gt,t as O,ta as Ie,tb as l,u as wt,ub as x,va as Ot,vb as Et,w as we,wa as g,wb as Vt,yb as X,yd as le,zb as Q,zd as Bt}from"./chunk-NEAIWFFQ.js";var dt=class{constructor(t,r){this._document=r;let e=this._textarea=this._document.createElement("textarea"),i=e.style;i.position="fixed",i.top=i.opacity="0",i.left="-999em",e.setAttribute("aria-hidden","true"),e.value=t,e.readOnly=!0,(this._document.fullscreenElement||this._document.body).appendChild(e)}copy(){let t=this._textarea,r=!1;try{if(t){let e=this._document.activeElement;t.select(),t.setSelectionRange(0,t.value.length),r=this._document.execCommand("copy"),e&&e.focus()}}catch{}return r}destroy(){let t=this._textarea;t&&(t.remove(),this._textarea=void 0)}},ji=(()=>{let t=class t{constructor(e){this._document=e}copy(e){let i=this.beginCopy(e),n=i.copy();return i.destroy(),n}beginCopy(e){return new dt(e,this._document)}};t.\u0275fac=function(i){return new(i||t)(Ot(ae))},t.\u0275prov=A({token:t,factory:t.\u0275fac,providedIn:"root"});let o=t;return o})();function We(o){return o.slice(0,Math.max(0,o.length-1)).replace("linear-gradient(","")}function Gi(o){let t=o.replace("#","").split("").map((r,e,i)=>i.length===3?r+r:r).join("").match(/.{2}/g);return t?t.map(r=>Number.parseInt(r,16)):[0,0,0]}function mt(o,t,r,e){let i=(e+o/60)%6;return Math.round(r-r*t*Math.max(Math.min(i,4-i,1),0))}function ht(o,t,r){return[mt(o,t,r,5),mt(o,t,r,3),mt(o,t,r,1)]}var Te=[0,0,0,1];function Ye(o){let t=o.replace("#","").replace("rgba(","").replace("rgb(","").replace(")",""),r=t.split(",").map(n=>parseFloat(n));if(r.length===4)return r;if(r.length===3)return r.concat(1);let e=t.match(new RegExp(`(.{${t.length/3}})`,"g"));if(!e)return Te;let i=e.map(n=>parseInt(t.length%2?n+n:n,16));return[i[0]||Te[0],i[1]||Te[1],i[2]||Te[2],i[3]===void 0?Te[3]:i[3]]}var dn="\\s*,\\s*",mn="#(?:[a-f0-9]{6}|[a-f0-9]{3})",hn="\\(\\s*(?:\\d{1,3}\\s*,\\s*){2}\\d{1,3}\\s*\\)",gn="\\(\\s*(?:\\d{1,3}\\s*,\\s*){2}\\d{1,3}\\s*,\\s*\\d*\\.?\\d+\\)",fn="(?:[+-]?\\d*\\.?\\d+)(?:%|[a-z]+)?",_n="[_a-z-][_a-z0-9-]*",Cn=["(?:",mn,"|","(?:rgb|hsl)",hn,"|","(?:rgba|hsla)",gn,"|",_n,")"],vn=["\\s*(",...Cn,")","(?:\\s+","(",fn,"))?","(?:",dn,"\\s*)?"];function bn(o,t){let r=t===1?"100%":`${t}%`;return o!=null&&o.includes("%")?o:r}function Ke(o){let t=new RegExp(vn.join(""),"gi"),r=o.startsWith("to")||o.match(/^\d/)?o.slice(Math.max(0,o.indexOf(",")+1)).trim():o,e=o.startsWith("to")?o.split(",")[0]:"to bottom",i=[],n=t.exec(r);for(;n!==null;)i=i.concat({color:n[1],position:bn(n[2],i.length)}),n=t.exec(r);return i=i.filter(({color:a})=>a.startsWith("#")||a.startsWith("rgb")),{stops:i,side:e}}function Bi({stops:o,side:t}){return`linear-gradient(${t}, ${o.map(({color:r,position:e})=>`rgba(${Ye(r).join(", ")}) ${e}`).join(", ")})`}function Ui(o,t,r){return`#${[o,t,r].map(e=>e.toString(16).padStart(2,"0")).join("")}`}function Wi(o,t,r){let e=Math.max(o,t,r),i=e-Math.min(o,t,r),n=i&&(e===o?(t-r)/i:e===t?2+(r-o)/i:4+(o-t)/i);return[60*(n<0?n+6:n),e&&i/e,e]}function gt(o,t={}){let{selector:r}=t,e=xt(t,["selector"]);return new xe(i=>{let n=new AbortController,{signal:a}=n,f=!0,{signal:h}=e;if(h)if(h.aborted)n.abort();else{let Y=()=>{a.aborted||n.abort()};h.addEventListener("abort",Y),i.add(()=>h.removeEventListener("abort",Y))}let Xe=Object.assign(Object.assign({},e),{signal:a}),Ct=Y=>{f=!1,i.error(Y)};return fetch(o,Xe).then(Y=>{r?wt(r(Y)).subscribe(bt(i,void 0,()=>{f=!1,i.complete()},Ct)):(f=!1,i.next(Y),i.complete())}).catch(Ct),()=>{f&&n.abort()}})}var Yi=(()=>{let t=class t{constructor(){this.cache=new Map}request(e){let i=this.cache.get(e);if(i)return i;let n=gt(e).pipe(H(a=>vt(this,null,function*(){if(a.ok)return a.text();throw new Error(`Failed to load ${e} (${a.statusText})`)})),Mt({bufferSize:1,refCount:!1}));return this.cache.set(e,n),n}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=A({token:t,factory:t.\u0275fac,providedIn:"root"});let o=t;return o})();function Tn(){return Math.floor(Math.random()*Date.now())}function yn(o){let t=(o.match(/url\(("?)('*)#(.*?)('*)\)/g)??[]).map(r=>r.slice(4,r.length-1).replaceAll(/['"#]+/g,""));return Array.from(new Set(t))}function Ki(o,t=Tn()){return j(o)?yn(o).reduce((e,i)=>{let n=`id_${t}_${i}`;return e.replaceAll(`"${i}"`,`"${n}"`).replaceAll(`'${i}'`,`'${n}'`).replaceAll(`url('#${i}')`,`url('#${n}')`).replaceAll(`url("#${i}")`,`url("#${n}")`).replaceAll(`url(#${i})`,`url(#${n})`)},o):o}var xn={tuiIconAttach:"tuiIconPaperclip",tuiIconAttention:"tuiIconAlertCircle",tuiIconBackCircle:"tuiIconArrowLeftCircle",tuiIconCall:"tuiIconPhone",tuiIconCallIn:"tuiIconPhoneIncoming",tuiIconCallOut:"tuiIconPhoneOutgoing",tuiIconCallTransfer:"tuiIconPhoneForwarded",tuiIconCancel:"tuiIconXCircle",tuiIconCancelCircle:"tuiIconSlash",tuiIconCard:"tuiIconCreditCard",tuiIconCards:"tuiIconCreditCard",tuiIconChartBar:"tuiIconBarChart",tuiIconChart:"tuiIconBarChart",tuiIconCheckList:"tuiIconClipboard",tuiIconCloseCircle:"tuiIconXCircle",tuiIconCollapse:"tuiIconMinimize",tuiIconComment:"tuiIconMessageSquare",tuiIconCommentFw:"tuiIconMessageForward",tuiIconCompany:"tuiIconBriefcase",tuiIconDefaultDoc:"tuiIconFile",tuiIconDesktop:"tuiIconMonitor",tuiIconDesktopOff:"tuiIconMonitorOff",tuiIconDislike:"tuiIconThumbsDown",tuiIconDone:"tuiIconCheckCircle",tuiIconDraft:"tuiIconEdit2",tuiIconEyeOpen:"tuiIconEye",tuiIconEyeClosed:"tuiIconEyeOff",tuiIconExpand:"tuiIconMaximize",tuiIconExternal:"tuiIconExternalLink",tuiIconFrame:"tuiIconLayout",tuiIconGeo:"tuiIconMapPin",tuiIconHeartFilled:"tuiIconHeart",tuiIconHide:"tuiIconEyeOff",tuiIconImg:"tuiIconImage",tuiIconInfoCircle:"tuiIconInfo",tuiIconLike:"tuiIconThumbsUp",tuiIconLockOpen:"tuiIconUnlock",tuiIconMobile:"tuiIconSmartphone",tuiIconMoreHor:"tuiIconMoreHorizontal",tuiIconMoreVer:"tuiIconMoreVertical",tuiIconMoreVert:"tuiIconMoreVertical",tuiIconPicture:"tuiIconImage",tuiIconPin:"tuiIconMapPin",tuiIconPrint:"tuiIconPrinter",tuiIconRefresh:"tuiIconRefreshCw",tuiIconRemove:"tuiIconX",tuiIconShow:"tuiIconEye",tuiIconSound:"tuiIconVolume",tuiIconSoundOff:"tuiIconVolumeX",tuiIconStarFilled:"tuiIconStar",tuiIconStop:"tuiIconSquare",tuiIconStructure:"tuiIconLayoutGrid",tuiIconTime:"tuiIconClock",tuiIconTooltip:"tuiIconHelpCircle",tuiIconViewList:"tuiIconList",tuiIconWifiOn:"tuiIconWifi"},wn=(()=>{let t=class t{constructor(){this.tuiSanitizer=g(pt,{optional:!0}),this.sanitizer=g(z),this.originals={},this.items$=new Tt(new Map),this.define(g(xi))}define(e){let{value:i}=this.items$;Object.keys(e).forEach(n=>{this.defineIcon(n,e[n],i)}),this.items$.next(i)}getOriginal(e){return this.originals[e]||null}defineIcon(e,i,n){if(n.has(e))return;let a=this.parseSrc(e,i);a&&(n.set(e,a),this.originals=ne(ie({},this.originals),{[e]:i}))}parseSrc(e,i){return this.sanitize(Ti(i,e))}sanitize(e){return this.sanitizer.bypassSecurityTrustHtml((this.tuiSanitizer?this.tuiSanitizer.sanitize(Me.HTML,e):this.sanitizer.sanitize(Me.HTML,e))||"")}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=A({token:t,factory:t.\u0275fac,providedIn:"root"});let o=t;return o})(),qe="assets/taiga-ui/icons",In={iconsPlace:qe,path:ct(qe),srcProcessor:Qe,contentProcessor:Ki,deprecated:o=>{let t=o.replace("Large","").replace("Outline",""),r=xn[t];return r?`${t}/(Large|Outline) is deprecated, use ${r}/(Large|Outline) instead`:""}},Mn=Yt(()=>({iconsPlace:qe,path:ct(qe),deprecated:In.deprecated,srcProcessor:Qe,contentProcessor:Ki})),Sn=new Ie("[TUI_SVG_SRC_INTERCEPTORS]");var On="Attempted to use undefined named icon",Dn="External icon is missing on the given URL",kn="Failed to load external SVG",qi=(()=>{let t=class t{constructor(){this.icon="",this.doc=g(ae),this.win=g(He),this.options=g(Mn),this.tuiSanitizer=g(pt,{optional:!0}),this.svgService=g(wn),this.staticRequestService=g(Yi),this.sanitizer=g(z),this.el=$e(),this.baseHref=g(ii),this.src$=new yt(1),this.srcInterceptors=g(Sn,{optional:!0}),this.innerHTML$=this.src$.pipe(H(()=>j(this.icon)?this.isExternal?this.getExternalIcon(this.icon):we(this.getSafeHtml(this.icon)):we(this.icon)),q(""))}set src(e){let i=this.options.deprecated(String(e));this.icon=(this.srcInterceptors??[]).reduce((n,a)=>a(n,this.options),this.options.srcProcessor(e||"")),this.src$.next()}get src(){return this.icon}get use(){return j(this.icon)?this.icon.includes(".svg#")?this.icon:this.resolveName(this.icon,this.options.path):""}get isInnerHTML(){return!j(this.icon)||this.isSrc||this.isExternal||this.isName&&this.isShadowDOM}onError(e=Dn){let{icon:i}=this,n=new CustomEvent("tui-icon-error",{bubbles:!0,detail:{message:e,icon:i}});this.el.dispatchEvent(n)}get isShadowDOM(){return qt(this.el)!==this.doc}get isUse(){return this.use.replace(lt,"").includes(".svg#")}get isExternal(){return this.isUrl||this.isCrossDomain||!this.isSrc&&!this.svgService.getOriginal(String(this.icon))}get isUrl(){return j(this.icon)&&this.icon.replace(lt,"").endsWith(".svg")}get isSrc(){return j(this.icon)&&bi(this.icon)}get isName(){return!this.isUrl&&!this.isUse&&!this.isSrc}get isCrossDomain(){let{use:e,isUse:i,win:n}=this;return i&&e.startsWith("http")&&!!n.origin&&!e.startsWith(n.origin)}resolveName(e,i){return i(e,this.baseHref)}getSafeHtml(e){return this.isSrc?this.sanitize(e):this.process(e)}process(e){let i=this.svgService.getOriginal(e);return this.isName&&!i&&e&&this.onError(On),this.sanitize(i||"")}sanitize(e){return e=this.options.contentProcessor(e),this.tuiSanitizer&&j(e)?this.sanitizer.bypassSecurityTrustHtml(this.tuiSanitizer.sanitize(Me.HTML,e)||""):e}getExternalIcon(e){let i=e.includes(".svg")?e:this.use;return this.staticRequestService.request(i).pipe(It(()=>(this.onError(kn),we(""))),K(n=>this.sanitize(n.replace("({standalone:!0});function Vn(o,t){if(o&1&&(s(0,"button",7),C(1),u()),o&2){let r=t.$implicit;l("value",r),c(),S(" ",r," ")}}function Fn(o,t){if(o&1&&(s(0,"tui-data-list",5),b(1,Vn,2,2,"button",6),u()),o&2){let r=p();c(),l("ngForOf",r.modes)}}function $n(o,t){if(o&1){let r=v();s(0,"tui-primitive-textfield",8),_("valueChange",function(i){d(r);let n=p();return m(n.onHexChange(i))}),u()}if(o&2){let r=p();l("maskito",r.hexMask)("tuiTextfieldLabelOutside",!0)("value",r.hex)}}function Hn(o,t){if(o&1){let r=v();s(0,"tui-input-number",9),_("ngModelChange",function(i){d(r);let n=p();return m(n.onRgbChange(i,n.color[1],n.color[2],n.color[3]))}),u(),s(1,"tui-input-number",9),_("ngModelChange",function(i){d(r);let n=p();return m(n.onRgbChange(n.color[0],i,n.color[2],n.color[3]))}),u(),s(2,"tui-input-number",9),_("ngModelChange",function(i){d(r);let n=p();return m(n.onRgbChange(n.color[0],n.color[1],i,n.color[3]))}),u()}if(o&2){let r=p();l("max",255)("min",0)("ngModel",r.color[0])("ngModelOptions",R(15,ye))("tuiTextfieldLabelOutside",!0),c(),l("max",255)("min",0)("ngModel",r.color[1])("ngModelOptions",R(16,ye))("tuiTextfieldLabelOutside",!0),c(),l("max",255)("min",0)("ngModel",r.color[2])("ngModelOptions",R(17,ye))("tuiTextfieldLabelOutside",!0)}}function Ln(o,t){if(o&1){let r=v();s(0,"div",1),_("dblclick",function(){let i=d(r).index,n=p();return m(n.onClick(i))})("mousedown",function(){let i=d(r).index,n=p();return m(n.onMouseDown(i))}),u()}if(o&2){let r=t.$implicit;x("left",r*100,"%")}}var Nn="[_nghost-%COMP%]{position:relative;display:block;height:1rem;box-sizing:border-box}.t-circle[_ngcontent-%COMP%]{position:absolute;width:1rem;height:1rem;border-radius:100%;margin:0 -.5rem;box-shadow:inset 0 0 0 2px var(--tui-base-01),0 0 0 1px var(--tui-base-03)}";function An(o,t){if(o&1){let r=v();s(0,"button",1),_("click",function(){let i=d(r).$implicit,n=p();return m(n.selectedColor.emit(i.value))}),u()}if(o&2){let r=t.$implicit;x("background",r.value),l("id",r.key)("tuiHint",r.key)("tuiHintDescribe",r.key)}}function Rn(o,t){o&1&&y(0,"tui-icon",12)}function zn(o,t){if(o&1){let r=v();s(0,"button",10),_("click",function(){let i=d(r).$implicit,n=p(3);return m(n.onModeSelect(i))})("keydown.enter.prevent",function(){let i=d(r).$implicit,n=p(3);return m(n.onModeSelect(i))})("keydown.space.prevent",function(){let i=d(r).$implicit,n=p(3);return m(n.onModeSelect(i))}),C(1),b(2,Rn,1,0,"tui-icon",11),u()}if(o&2){let r=t.$implicit,e=p(3);Oe("aria-checked",e.isModeActive(r)),c(),S(" ",r," "),c(),l("ngIf",e.isModeActive(r))}}function jn(o,t){if(o&1&&(s(0,"tui-data-list",8),b(1,zn,3,3,"button",9),u()),o&2){let r=p(2);c(),l("ngForOf",r.modes)}}function Gn(o,t){if(o&1){let r=v();tt(0),s(1,"div",5),P("tuiDropdownOpenChange",function(i){d(r);let n=p();return k(n.open,i)||(n.open=i),m(i)}),s(2,"button",6),C(3),u(),b(4,jn,2,1,"ng-template",null,0,F),u(),y(6,"hr",7),it()}if(o&2){let r=V(5),e=p();c(),l("tuiDropdown",r),D("tuiDropdownOpen",e.open),c(2),S(" ",e.currentMode," ")}}function Bn(o,t){if(o&1){let r=v();s(0,"button",17),_("click",function(){let i=d(r).$implicit,n=p(2);return m(n.onDirectionChange(i))}),u()}if(o&2){let r=t.$implicit,e=p(2);Et("t-direction_active",e.isDirectionActive(r)),l("iconStart",e.getIcon(r))("tuiHint",r)}}function Un(o,t){if(o&1){let r=v();tt(0),s(1,"div",13)(2,"tui-linear-multi-picker",14),_("indexChange",function(i){d(r);let n=p();return m(n.onIndexChange(i))})("valueChange",function(i){d(r);let n=p();return m(n.onStopsChange(i))}),u()(),s(3,"div",15),b(4,Bn,1,4,"button",16),u(),it()}if(o&2){let r=p();c(),x("background",r.gradient),c(),l("value",r.stopsKeys),c(2),l("ngForOf",r.buttons)}}function Wn(o,t){if(o&1){let r=v();s(0,"tui-color-edit",18),_("colorChange",function(i){d(r);let n=p();return m(n.onColorChange(i))}),u()}if(o&2){let r=p();l("color",r.color)}}function Yn(o,t){if(o&1){let r=v();s(0,"tui-palette",19),_("selectedColor",function(i){d(r);let n=p();return m(n.onPalettePick(i))}),u()}if(o&2){let r=p();l("colors",r.palette)}}var Xi=6,Kn=(()=>{let t=class t{constructor(){this.color=[0,0,0,1],this.colorChange=new L,this.hexMask={mask:new RegExp(`^[A-F\\d]{0,${Xi}}$`,"gi")},this.modes=["HEX","RGB"],this.mode=this.modes[0]}get isHex(){return this.mode===this.modes[0]}get hex(){return Ui(this.color[0],this.color[1],this.color[2]).replace("#","")}get opacity(){return Math.round(this.color[3]*100)}onHexChange(e){if(e.length!==Xi)return;let i=Gi(e);this.updateColor([i[0],i[1],i[2],this.color[3]])}onRgbChange(...e){this.updateColor(e)}updateColor(e){this.color=e,this.colorChange.emit(e)}};t.\u0275fac=function(i){return new(i||t)},t.\u0275cmp=T({type:t,selectors:[["tui-color-edit"]],inputs:{color:"color"},outputs:{colorChange:"colorChange"},decls:6,vars:16,consts:[["rgb",""],["tuiDropdownAlign","left","tuiDropdownLimitWidth","min","tuiTextfieldSize","m",1,"t-select",3,"ngModelChange","ngModelOptions","tuiTextfieldLabelOutside","ngModel"],["size","s",4,"tuiDataList"],["tuiTextfieldSize","m",3,"maskito","tuiTextfieldLabelOutside","value","valueChange",4,"ngIf","ngIfElse"],["tuiTextfieldPostfix","%","tuiTextfieldSize","m",1,"t-opacity",3,"ngModelChange","max","min","ngModel","ngModelOptions","tuiTextfieldLabelOutside"],["size","s"],["tuiOption","",3,"value",4,"ngFor","ngForOf"],["tuiOption","",3,"value"],["tuiTextfieldSize","m",3,"valueChange","maskito","tuiTextfieldLabelOutside","value"],["tuiTextfieldSize","m",1,"t-rgb",3,"ngModelChange","max","min","ngModel","ngModelOptions","tuiTextfieldLabelOutside"]],template:function(i,n){if(i&1){let a=v();s(0,"tui-select",1),P("ngModelChange",function(h){return d(a),k(n.mode,h)||(n.mode=h),m(h)}),b(1,Fn,2,1,"tui-data-list",2),u(),b(2,$n,1,3,"tui-primitive-textfield",3)(3,Hn,3,18,"ng-template",null,0,F),s(5,"tui-input-number",4),_("ngModelChange",function(h){return d(a),m(n.onRgbChange(n.color[0],n.color[1],n.color[2],h/100))}),u()}if(i&2){let a=V(4);x("flex","0 0 auto"),l("ngModelOptions",R(14,ye))("tuiTextfieldLabelOutside",!0),D("ngModel",n.mode),c(2),l("ngIf",n.isHex)("ngIfElse",a),c(3),x("flex","0 0 auto"),l("max",100)("min",0)("ngModel",n.opacity)("ngModelOptions",R(15,ye))("tuiTextfieldLabelOutside",!0)}},dependencies:[J,nt,se,ue,me,$,he,Ei,Hi,Vi,Ge,Be,Ni,Ai,ze,te,ai,ee],styles:["[_nghost-%COMP%]{display:flex}.t-select[_ngcontent-%COMP%]{width:5.875rem}.t-opacity[_ngcontent-%COMP%]{width:4.275rem}.t-rgb[_ngcontent-%COMP%], .t-opacity[_ngcontent-%COMP%]{text-align:center}"],changeDetection:0});let o=t;return o})(),qn=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275mod=M({type:t}),t.\u0275inj=I({imports:[w,le,ge,U,Ue,Ri,pe,te,ee]});let o=t;return o})(),fe=(()=>{let t=class t extends xe{constructor(){let e=$e(),i=g(ae),n=Le(e,"mousedown").pipe(ei(),H(a=>{let f=Le(i,"mousemove").pipe(K(({clientX:h,clientY:Xe})=>rt(h,Xe,e)),St(Le(i,"mouseup")));return a.target===e?f.pipe(q(rt(a.clientX,a.clientY,e))):f}),be());super(a=>n.subscribe(a))}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=A({token:t,factory:t.\u0275fac});let o=t;return o})(),Xn=(()=>{let t=class t{constructor(){this.value=[0,0],this.valueChange=new L,g(fe).pipe(be()).subscribe(e=>{this.value=e,this.valueChange.emit([e[0],e[1]])})}get left(){return this.value[0]*100}get top(){return this.value[1]*100}};t.\u0275fac=function(i){return new(i||t)},t.\u0275cmp=T({type:t,selectors:[["tui-flat-picker"]],inputs:{value:"value"},outputs:{valueChange:"valueChange"},features:[N([fe])],decls:1,vars:4,consts:[[1,"t-circle"]],template:function(i,n){i&1&&y(0,"div",0),i&2&&x("left",n.left,"%")("top",n.top,"%")},styles:["[_nghost-%COMP%]{position:relative;display:block}.t-circle[_ngcontent-%COMP%]{position:absolute;width:1rem;height:1rem;border-radius:100%;margin:-.5rem 0 0 -.5rem;box-shadow:inset 0 0 0 1px var(--tui-base-01),0 0 0 1px var(--tui-base-03)}"],changeDetection:0});let o=t;return o})(),Qn=(()=>{let t=class t{constructor(){this.value=0,this.valueChange=new L,g(fe).pipe(be()).subscribe(([e])=>{this.value=e,this.valueChange.emit(e)})}get left(){return this.value*100}};t.\u0275fac=function(i){return new(i||t)},t.\u0275cmp=T({type:t,selectors:[["tui-linear-picker"]],inputs:{value:"value"},outputs:{valueChange:"valueChange"},features:[N([fe])],decls:1,vars:2,consts:[[1,"t-circle"]],template:function(i,n){i&1&&y(0,"div",0),i&2&&x("left",n.left,"%")},styles:["[_nghost-%COMP%]{position:relative;display:block;height:1rem;box-sizing:border-box}.t-circle[_ngcontent-%COMP%]{position:absolute;width:1rem;height:1rem;border-radius:100%;margin:0 -.5rem;box-shadow:inset 0 0 0 2px var(--tui-base-01),0 0 0 1px var(--tui-base-03)}"],changeDetection:0});let o=t;return o})(),Zn=(()=>{let t=class t{constructor(){this.sanitizer=g(z),this.point=[0,1],this.hue=0,this.opacity=1,this.colorChange=new L}set color(e){if(this.currentColor.every((f,h)=>f===e[h])&&e[3]===this.opacity)return;let[i,n,a]=Wi(e[0],e[1],e[2]);this.opacity=e[3],this.hue=i/360,this.point=[n,1-a/255]}get currentColor(){return this.getCurrentColor(this.hue,this.point)}get base(){return`rgb(${ht(this.hue*360,1,255)})`}get gradient(){return this.sanitizer.bypassSecurityTrustStyle(`linear-gradient(to right, rgba(${this.currentColor.join(",")}, 0), rgb(${this.currentColor.join(",")}))`)}onPointChange(e){this.point=e,this.updateColor()}onHueChange(e){this.hue=e,this.updateColor()}onOpacityChange(e){this.opacity=Ut(e,2),this.updateColor()}getCurrentColor(e,i){return ht(e*360,i[0],(1-i[1])*255)}updateColor(){this.colorChange.emit([...this.currentColor,this.opacity])}};t.\u0275fac=function(i){return new(i||t)},t.\u0275cmp=T({type:t,selectors:[["tui-color-picker"]],inputs:{color:"color"},outputs:{colorChange:"colorChange"},decls:5,vars:7,consts:[[1,"t-flat",3,"valueChange","value"],[1,"t-wrapper","t-wrapper_hue"],[1,"t-hue",3,"valueChange","value"],[1,"t-wrapper","t-wrapper_opacity"],[1,"t-opacity",3,"valueChange","value"]],template:function(i,n){i&1&&(s(0,"tui-flat-picker",0),_("valueChange",function(f){return n.onPointChange(f)}),u(),s(1,"div",1)(2,"tui-linear-picker",2),_("valueChange",function(f){return n.onHueChange(f)}),u()(),s(3,"div",3)(4,"tui-linear-picker",4),_("valueChange",function(f){return n.onOpacityChange(f)}),u()()),i&2&&(x("background-color",n.base),l("value",n.point),c(2),l("value",n.hue),c(),x("background",n.gradient),c(),l("value",n.opacity))},dependencies:[Xn,Qn],styles:['[_nghost-%COMP%]{position:relative;display:block;isolation:isolate}.t-flat[_ngcontent-%COMP%]{height:14rem;background:linear-gradient(#0000,#000),linear-gradient(to right,#fff,#fff0);margin-bottom:.25rem;overflow:hidden}.t-wrapper[_ngcontent-%COMP%]{position:relative;margin:1rem 1.25rem;border-radius:.5rem}.t-wrapper[_ngcontent-%COMP%]:after{position:absolute;top:0;left:0;width:100%;height:100%;content:"";box-shadow:inset 0 0 0 1px #00000014;pointer-events:none;border-radius:inherit}.t-wrapper_hue[_ngcontent-%COMP%]{background:red}.t-wrapper_opacity[_ngcontent-%COMP%]:before{position:absolute;top:0;left:0;width:100%;height:100%;content:"";z-index:-1;background-image:linear-gradient(45deg,var(--tui-base-03) 25%,transparent 25%,transparent 75%,var(--tui-base-03) 75%,var(--tui-base-03)),linear-gradient(45deg,var(--tui-base-03) 25%,transparent 25%,transparent 75%,var(--tui-base-03) 75%,var(--tui-base-03));background-size:.375rem .375rem;background-position:0 0,.1875rem .1875rem;border-radius:inherit}.t-hue[_ngcontent-%COMP%]{background:linear-gradient(to right,red,#ff0,#0f0,#0ff,#00f,#f0f,red);border-radius:inherit;margin:0 .5rem}.t-opacity[_ngcontent-%COMP%]{border-radius:inherit;margin:0 .5rem}'],changeDetection:0});let o=t;return O([E],o.prototype,"getCurrentColor",null),o})(),Jn=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275mod=M({type:t}),t.\u0275inj=I({imports:[w]});let o=t;return o})(),eo=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275mod=M({type:t}),t.\u0275inj=I({imports:[w]});let o=t;return o})(),to=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275mod=M({type:t}),t.\u0275inj=I({imports:[w,Jn,eo]});let o=t;return o})(),io=new Ie("[TUI_COLOR_SELECTOR_MODE_NAMES]",{factory:()=>["Solid color","Gradient"]}),en=new Map([["color-black-100","#909090"],["color-black-200","#666666"],["color-black-300","#333333"],["color-blue-100","#1771e6"],["color-blue-200","#1464cc"],["color-blue-300","#0953b3"],["color-gray-100","#f5f5f6"],["color-gray-200","#e7e8ea"],["color-gray-300","#cbcfd3"],["color-gray-400","#959ba4"],["color-gray-500","#79818c"],["color-gray-600","#616871"],["color-green-100","#39b54a"],["color-green-200","#2ca53a"],["color-green-300","#168a21"],["color-light-blue-100","#ecf1f7"],["color-light-blue-200","#e4ebf3"],["color-light-blue-300","#dde4ed"],["color-red-100","#e01f19"],["color-red-200","#d3120e"],["color-red-300","#c40b08"],["color-yellow-100","#FFDD2C"],["color-yellow-200","#FCC521"],["color-yellow-300","#FAB618"],["transparent","transparent"]]),ft={SolidColor:0,Gradient:1},no={selectorMode:!0,mode:ft.SolidColor,color:[0,0,0,1],colors:new Map,gradient:{icons:{"to top right":"@tui.move-up-right","to right":"@tui.move-right","to bottom right":"@tui.move-down-right","to bottom":"@tui.move-down","to bottom left":"@tui.move-down-left","to left":"@tui.move-left","to top left":"@tui.move-up-left","to top":"@tui.move-up"},steps:[[0,[0,0,0,1]],[1,[255,255,255,1]]],stop:0,direction:"to bottom",emptyStop:[0,0,0,0],buttons:["to top right","to right","to bottom right","to bottom","to bottom left","to left","to top left","to top"]}},oo=Wt(no);var ro=(()=>{let t=class t{constructor(){this.value=[0,1],this.valueChange=new L,this.indexChange=new L,this.index=NaN,g(fe).pipe(be()).subscribe(([e])=>this.onPicker(e))}onMouseUp(){this.index=NaN}onMouseDown(e){this.updateIndex(e)}onClick(e){this.value.length>2&&this.updateValue(this.value.filter((i,n)=>n!==e))}onPicker(e){Number.isNaN(this.index)&&(this.updateIndex(this.value.length),this.value=[...this.value,0]),!this.value.some((i,n)=>i===e&&n!==this.index)&&this.updateValue(this.value.map((i,n)=>n===this.index?e:i))}updateIndex(e){this.index=e,this.indexChange.emit(e)}updateValue(e){this.value=e,this.valueChange.emit(e)}};t.\u0275fac=function(i){return new(i||t)},t.\u0275cmp=T({type:t,selectors:[["tui-linear-multi-picker"]],hostBindings:function(i,n){i&1&&_("mouseup",function(){return n.onMouseUp()},!1,Pt)},inputs:{value:"value"},outputs:{valueChange:"valueChange",indexChange:"indexChange"},features:[N([fe])],decls:1,vars:1,consts:[["class","t-circle",3,"left","dblclick","mousedown",4,"ngFor","ngForOf"],[1,"t-circle",3,"dblclick","mousedown"]],template:function(i,n){i&1&&b(0,Ln,1,2,"div",0),i&2&&l("ngForOf",n.value)},dependencies:[J],styles:[Nn],changeDetection:0});let o=t;return o})(),ao=(()=>{let t=class t{constructor(){this.colors=new Map,this.selectedColor=new L,this.originalOrder=(e,i)=>0}};t.\u0275fac=function(i){return new(i||t)},t.\u0275cmp=T({type:t,selectors:[["tui-palette"]],inputs:{colors:"colors"},outputs:{selectedColor:"selectedColor"},decls:2,vars:4,consts:[["type","button","class","t-button",3,"id","background","tuiHint","tuiHintDescribe","click",4,"ngFor","ngForOf"],["type","button",1,"t-button",3,"click","id","tuiHint","tuiHintDescribe"]],template:function(i,n){i&1&&(b(0,An,1,5,"button",0),re(1,"keyvalue")),i&2&&l("ngForOf",Ht(1,1,n.colors,n.originalOrder))},dependencies:[J,at,ut,At],styles:["[_nghost-%COMP%]{display:flex;flex-wrap:wrap;padding:.875rem}.t-button[_ngcontent-%COMP%]{-webkit-appearance:none;appearance:none;padding:0;background:none;font-size:inherit;line-height:inherit;width:1.5625rem;height:1.5625rem;box-sizing:border-box;margin:.375rem;border-radius:var(--tui-radius-m);border:1px solid rgba(0,0,0,.08)}"],changeDetection:0});let o=t;return o})(),tn=(()=>{let t=class t{constructor(){this.selectorOptions=g(oo),this.stops=new Map(this.selectorOptions.gradient.steps),this.currentStop=this.selectorOptions.gradient.stop,this.direction=this.selectorOptions.gradient.direction,this.sanitizer=g(z),this.open=!1,this.colors=this.selectorOptions.colors,this.colorChange=new L,this.color=this.selectorOptions.color,this.modes=g(io),this.currentMode=this.modes[this.selectorOptions.mode],this.buttons=this.selectorOptions.gradient.buttons}set colorSetter(e){e.startsWith("linear-gradient")?this.parseGradient(e):this.parseColor(e)}get selectorMode(){return this.selectorOptions.selectorMode}get palette(){return this.filterPalette(this.colors,this.isGradient)}get stopsKeys(){return this.getStopsKeys(this.stops)}get currentColor(){return this.isGradient?this.getStop(this.currentStop):this.color}get gradient(){return this.sanitizer.bypassSecurityTrustStyle(this.getGradient("to right"))}get isGradient(){return this.currentMode===this.modes[ft.Gradient]}getIcon(e){return this.selectorOptions.gradient.icons[e]}isModeActive(e){return this.currentMode===e}isDirectionActive(e){return this.direction===e}onPalettePick(e){this.updateColor(e)}onDirectionChange(e){this.direction=e,this.updateColor(this.getGradient(e))}onModeSelect(e){this.currentMode=e,this.open=!1,this.updateColor(e===this.modes[ft.SolidColor]?`rgba(${this.color.join(", ")})`:this.getGradient(this.direction))}onIndexChange(e){this.currentStop=this.stopsKeys[e]}onColorChange(e){if(!this.isGradient){this.updateColor(`rgba(${e.join(", ")})`);return}this.stops.set(this.currentStop,e),this.updateColor(this.getGradient(this.direction))}onStopsChange(e){let i=this.stopsKeys.find(a=>!e.includes(a)),n=e.find(a=>!this.stopsKeys.includes(a));i===void 0&&n!==void 0&&this.addStop(n),i!==void 0&&n===void 0&&this.removeStop(i),i!==void 0&&n!==void 0&&this.replaceStop(i,n),this.updateColor(this.getGradient(this.direction))}getStopsKeys(e){return Array.from(e.keys())}filterPalette(e,i){let n=new Map(e);return n.forEach((a,f)=>{(a.startsWith("linear-gradient")&&!i||!a.startsWith("linear-gradient")&&i)&&n.delete(f)}),n}updateColor(e){this.colorChange.emit(e)}getGradient(e){return`linear-gradient(${e}, ${[...this.stopsKeys].sort(Kt).map(i=>`rgba(${this.getStop(i).join(", ")}) ${i*100}%`).join(", ")})`}getStop(e){return this.stops.get(e)||this.selectorOptions.gradient.emptyStop}addStop(e){let i=this.stopsKeys.reduce((n,a)=>Math.abs(a-e)a===e?[i,n]:[a,this.getStop(a)]))}parseGradient(e){if(e===this.getGradient(this.direction))return;let i=Ke(We(e));this.direction=i.side,this.currentStop=this.selectorOptions.gradient.stop,this.stops=new Map(i.stops.length?i.stops.map(({color:n,position:a})=>[parseFloat(a)/100,Ye(n)]):this.selectorOptions.gradient.steps)}parseColor(e){this.currentStop=this.selectorOptions.gradient.stop,this.color=Ye(e)}};t.\u0275fac=function(i){return new(i||t)},t.\u0275cmp=T({type:t,selectors:[["tui-color-selector"]],inputs:{colors:"colors",colorSetter:[0,"color","colorSetter"]},outputs:{colorChange:"colorChange"},decls:5,vars:5,consts:[["menu",""],[4,"ngIf"],[3,"colorChange","color"],["tuiGroup","","class","t-edit",3,"color","colorChange",4,"ngIf"],["class","t-palette",3,"colors","selectedColor",4,"ngIf"],[1,"t-select",3,"tuiDropdownOpenChange","tuiDropdown","tuiDropdownOpen"],["appearance","","size","s","tuiButton","","tuiChevron","","type","button"],[1,"t-hr"],["role","menu","size","s",1,"t-menu"],["role","menuitemradio","tuiOption","",3,"click","keydown.enter.prevent","keydown.space.prevent",4,"ngFor","ngForOf"],["role","menuitemradio","tuiOption","",3,"click","keydown.enter.prevent","keydown.space.prevent"],["icon","@tui.check","class","t-checkmark",4,"ngIf"],["icon","@tui.check",1,"t-checkmark"],[1,"t-wrapper"],[1,"t-gradient",3,"indexChange","valueChange","value"],[1,"t-buttons"],["appearance","","size","xs","tuiHintDescribe","","tuiIconButton","","type","button","class","t-direction",3,"t-direction_active","iconStart","tuiHint","click",4,"ngFor","ngForOf"],["appearance","","size","xs","tuiHintDescribe","","tuiIconButton","","type","button",1,"t-direction",3,"click","iconStart","tuiHint"],["tuiGroup","",1,"t-edit",3,"colorChange","color"],[1,"t-palette",3,"selectedColor","colors"]],template:function(i,n){i&1&&(b(0,Gn,7,3,"ng-container",1)(1,Un,5,4,"ng-container",1),s(2,"tui-color-picker",2),_("colorChange",function(f){return n.onColorChange(f)}),u(),b(3,Wn,1,1,"tui-color-edit",3)(4,Yn,1,1,"tui-palette",4)),i&2&&(l("ngIf",n.selectorMode),c(),l("ngIf",n.isGradient),c(),l("color",n.currentColor),c(),l("ngIf",!n.isGradient),c(),l("ngIf",n.palette.size))},dependencies:[J,nt,ce,Zn,ro,Kn,G,B,te,ee,ui,ao,at,ut,pi,de],styles:['[_nghost-%COMP%]{position:relative;display:block;isolation:isolate;width:22.6rem}.t-wrapper[_ngcontent-%COMP%]{position:relative;margin:1.25rem;border-radius:.5rem}.t-wrapper[_ngcontent-%COMP%]:after{position:absolute;top:0;left:0;width:100%;height:100%;content:"";box-shadow:inset 0 0 0 1px #00000014;pointer-events:none;border-radius:inherit}.t-wrapper[_ngcontent-%COMP%]:before{position:absolute;top:0;left:0;width:100%;height:100%;content:"";z-index:-1;background-image:linear-gradient(45deg,var(--tui-base-03) 25%,transparent 25%,transparent 75%,var(--tui-base-03) 75%,var(--tui-base-03)),linear-gradient(45deg,var(--tui-base-03) 25%,transparent 25%,transparent 75%,var(--tui-base-03) 75%,var(--tui-base-03));background-size:.375rem .375rem;background-position:0 0,.1875rem .1875rem;border-radius:inherit}.t-hr[_ngcontent-%COMP%]{height:1px;margin:0 0 0 -1px;border:none;background:var(--tui-base-03)}.t-gradient[_ngcontent-%COMP%]{margin:0 .5rem;border-radius:inherit}.t-select[_ngcontent-%COMP%]{margin:.75rem .5rem 0}.t-arrow[_ngcontent-%COMP%]{transition-property:transform;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out}.t-arrow_rotated[_ngcontent-%COMP%]{transform:rotate(180deg)}.t-menu[_ngcontent-%COMP%]{width:11.25rem}.t-checkmark[_ngcontent-%COMP%]{margin-left:auto;width:1rem;height:1rem}.t-buttons[_ngcontent-%COMP%]{display:flex;padding:0 .75rem 1.25rem;justify-content:space-between}.t-direction[_ngcontent-%COMP%]{color:var(--tui-text-02);margin:0 .375rem}.t-direction[_ngcontent-%COMP%]:hover, .t-direction_active[_ngcontent-%COMP%]{color:var(--tui-text-01);background:var(--tui-secondary-hover)}.t-edit[_ngcontent-%COMP%]{margin:1.25rem}.t-palette[_ngcontent-%COMP%]{box-sizing:border-box;box-shadow:inset 0 1px var(--tui-base-03)}'],changeDetection:0});let o=t;return O([E],o.prototype,"getStopsKeys",null),O([E],o.prototype,"filterPalette",null),o})(),so=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275mod=M({type:t}),t.\u0275inj=I({imports:[w]});let o=t;return o})(),uo=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275mod=M({type:t}),t.\u0275inj=I({imports:[w,st]});let o=t;return o})(),nn=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275mod=M({type:t}),t.\u0275inj=I({imports:[w,qi,to,so,qn,uo,de,st,te,ee]});let o=t;return o})();var co=["*"];function po(o,t){if(o&1&&y(0,"div",4),o&2){let r=p();x("background",r.background)}}function mo(o,t){if(o&1){let r=v();s(0,"tui-color-selector",5),P("colorChange",function(i){d(r);let n=p();return k(n.value,i)||(n.value=i),m(i)}),u()}if(o&2){let r=p();l("colors",r.colors),D("color",r.value)}}var on=(()=>{let t=class t extends Ii{constructor(){super(...arguments),this.domSanitizer=g(z),this.colors=new Map,this.open=!1}get focused(){var e;return!!((e=this.textfield)!=null&&e.focused)}get nativeFocusableElement(){return this.computedDisabled||!this.textfield?null:this.textfield.nativeFocusableElement}get background(){return this.sanitize(this.value,this.domSanitizer)}get mode(){return this.value.startsWith("#")?"hex":this.value.startsWith("rgb")?"rgb":"gradient"}maskitoOptions(e){return e==="hex"?{mask:["#",...new Array(6).fill(/[0-9a-f]/i)]}:null}onClick(){this.open=!this.open}onValueChange(e){this.value=e}onFocused(e){this.updateFocused(e)}getFallbackValue(){return"#000000"}sanitize(e,i){return e.startsWith("linear-gradient(")?i.bypassSecurityTrustStyle(Bi(Ke(We(e)))):e}};t.\u0275fac=(()=>{let e;return function(n){return(e||(e=_e(t)))(n||t)}})(),t.\u0275cmp=T({type:t,selectors:[["tui-input-color"]],viewQuery:function(i,n){if(i&1&&ke($,5),i&2){let a;Pe(a=Ee())&&(n.textfield=a.first)}},hostBindings:function(i,n){i&1&&_("click",function(){return n.onClick()})},inputs:{colors:"colors"},features:[N([],[oi({maxHeight:600})]),Ce],ngContentSelectors:co,decls:7,vars:13,consts:[["color",""],["picker",""],[1,"t-wrapper",3,"tuiDropdownOpenChange","tuiDropdown","tuiDropdownOpen"],[1,"t-textfield",3,"valueChange","focusedChange","disabled","focusable","invalid","maskito","nativeId","pseudoActive","pseudoFocus","pseudoHover","readOnly","tuiTextfieldIconLeft","value"],[1,"t-color"],[3,"colorChange","colors","color"]],template:function(i,n){if(i&1){let a=v();De(),s(0,"div",2),P("tuiDropdownOpenChange",function(h){return d(a),k(n.open,h)||(n.open=h),m(h)}),s(1,"tui-primitive-textfield",3),P("valueChange",function(h){return d(a),k(n.value,h)||(n.value=h),m(h)}),_("focusedChange",function(h){return d(a),m(n.onFocused(h))}),ve(2),u()(),b(3,po,1,2,"ng-template",null,0,F)(5,mo,1,2,"ng-template",null,1,F)}if(i&2){let a=V(4),f=V(6);l("tuiDropdown",f),D("tuiDropdownOpen",n.open),c(),l("disabled",n.disabled)("focusable",n.focusable)("invalid",n.computedInvalid)("maskito",n.maskitoOptions(n.mode))("nativeId",n.nativeId)("pseudoActive",n.pseudoActive)("pseudoFocus",n.computedFocused)("pseudoHover",n.pseudoHover)("readOnly",n.readOnly)("tuiTextfieldIconLeft",a),D("value",n.value)}},dependencies:[$,he,Pi,tn,me,G,B],styles:["[_nghost-%COMP%]{display:block;border-radius:var(--tui-radius-m);text-align:left}.t-wrapper[_ngcontent-%COMP%]{display:flex;border-radius:inherit;width:100%}.t-textfield[_ngcontent-%COMP%]{border-radius:inherit;text-align:inherit;width:inherit}.t-textfield[_ngcontent-%COMP%] .t-input{text-transform:lowercase!important}.t-color[_ngcontent-%COMP%]{width:1.5rem;height:1.5rem;box-shadow:inset 0 0 0 1px var(--tui-base-03-dark);border-radius:.125rem;pointer-events:auto!important}"],changeDetection:0});let o=t;return O([E],o.prototype,"maskitoOptions",null),O([E],o.prototype,"sanitize",null),o})(),rn=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275mod=M({type:t}),t.\u0275inj=I({imports:[w,ge,U,nn,pe]});let o=t;return o})();var ho=["*",[["input"]]],go=["*","input"];function fo(o,t){if(o&1){let r=v();s(0,"div",2)(1,"tui-scrollbar",3)(2,"tui-calendar-year",4),_("mousedown.prevent.silent",function(){return d(r),m(0)})("yearClick",function(i){d(r);let n=p();return m(n.onYearClick(i))}),u()()()}if(o&2){let r=p();c(2),l("disabledItemHandler",r.disabledItemHandler)("initialItem",r.value||r.initialItem)("max",r.max)("min",r.min)("value",r.value===null?null:r.value)}}var _o=/^\d{0,4}$/,an=(()=>{let t=class t extends Oi{constructor(){super(...arguments),this.options=g(hi),this.textfieldSize=g($i),this.open=!1,this.initialItem=new Date().getFullYear(),this.min=this.options.min.year,this.max=this.options.max.year,this.disabledItemHandler=Qt,this.nativeValue=""}get nativeFocusableElement(){var e;return((e=this.textfield)==null?void 0:e.nativeFocusableElement)||null}get focused(){var e;return!!((e=this.textfield)!=null&&e.focused)}onValueChange(e){this.value=e?Number(e):null}writeValue(e){super.writeValue(e),this.updateNativeValue(e)}get size(){return this.textfieldSize.size}get calendarIcon(){return this.options.icon}getMaskOptions(e,i){return ne(ie({},_i({min:e??Zt,max:i??Jt,thousandSeparator:""})),{mask:_o})}onYearClick(e){this.value=e,this.updateNativeValue(e),this.onOpenChange(!1)}onFocused(e){this.updateFocused(e)}onOpenChange(e){this.open=e}toggle(){this.open=!this.open}updateNativeValue(e){this.nativeValue=(e==null?void 0:e.toString())||""}};t.\u0275fac=(()=>{let e;return function(n){return(e||(e=_e(t)))(n||t)}})(),t.\u0275cmp=T({type:t,selectors:[["tui-input-year"]],viewQuery:function(i,n){if(i&1&&ke($,5),i&2){let a;Pe(a=Ee())&&(n.textfield=a.first)}},hostVars:1,hostBindings:function(i,n){i&2&&Oe("data-size",n.size)},inputs:{min:"min",max:"max",disabledItemHandler:"disabledItemHandler"},features:[N([yi(t),Mi(t)]),Ce],ngContentSelectors:go,decls:5,vars:12,consts:[["dropdown",""],[1,"t-textfield",3,"valueChange","click","focusedChange","tuiDropdownOpenChange","disabled","invalid","maskito","nativeId","pseudoFocus","pseudoHover","readOnly","tuiDropdown","tuiDropdownEnabled","tuiDropdownOpen","tuiTextfieldIcon","value"],[1,"t-container"],[1,"t-scrollbar"],[3,"mousedown.prevent.silent","yearClick","disabledItemHandler","initialItem","max","min","value"]],template:function(i,n){if(i&1){let a=v();De(ho),s(0,"tui-primitive-textfield",1),P("valueChange",function(h){return d(a),k(n.nativeValue,h)||(n.nativeValue=h),m(h)}),_("click",function(){return d(a),m(n.toggle())})("focusedChange",function(h){return d(a),m(n.onFocused(h))})("tuiDropdownOpenChange",function(h){return d(a),m(n.onOpenChange(h))})("valueChange",function(h){return d(a),m(n.onValueChange(h))}),ve(1),ve(2,1,["ngProjectAs","input",5,["input"]]),u(),b(3,fo,3,5,"ng-template",null,0,F)}if(i&2){let a=V(4);l("disabled",n.computedDisabled)("invalid",n.computedInvalid)("maskito",n.getMaskOptions(n.min,n.max))("nativeId",n.nativeId)("pseudoFocus",n.pseudoFocus)("pseudoHover",n.pseudoHover)("readOnly",n.readOnly)("tuiDropdown",a)("tuiDropdownEnabled",n.interactive)("tuiDropdownOpen",n.open&&n.interactive)("tuiTextfieldIcon",n.calendarIcon),D("value",n.nativeValue)}},dependencies:[me,B,$,he,Ae,Re,ki,G],styles:["[_nghost-%COMP%]{display:block;border-radius:var(--tui-radius-m);text-align:left}.t-container[_ngcontent-%COMP%]{width:15.75rem;padding:1rem 1.125rem}.t-scrollbar[_ngcontent-%COMP%]{max-height:18.25rem;width:16.875rem}.t-textfield[_ngcontent-%COMP%]{border-radius:inherit;text-align:inherit}"],changeDetection:0});let o=t;return O([E],o.prototype,"getMaskOptions",null),o})(),sn=(()=>{let t=class t extends Si{get value(){return this.host.nativeValue}onValueChange(e){this.host.onValueChange(e),this.host.nativeValue=e}process(e){e.inputMode="numeric"}};t.\u0275fac=(()=>{let e;return function(n){return(e||(e=_e(t)))(n||t)}})(),t.\u0275dir=et({type:t,selectors:[["tui-input-year"]],features:[N([wi(t)]),Ce]});let o=t;return o})(),un=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275mod=M({type:t}),t.\u0275inj=I({imports:[ge,Ae,Re,U,pe]});let o=t;return o})();var ln=(()=>{let t=class t{transform(e){return zi(e)}};t.\u0275fac=function(i){return new(i||t)},t.\u0275pipe=Dt({name:"tuiCurrency",type:t,pure:!0,standalone:!0});let o=t;return o})();var vo=()=>["Edit","Download","Rename","Delete"];function bo(o,t){if(o&1&&(s(0,"button",19),y(1,"tui-avatar",20),s(2,"div",3),C(3," Title "),s(4,"div",4),C(5,"Description"),u()(),y(6,"tui-icon",21),u()),o&2){p();let r=V(21);l("tuiDropdown",r)("tuiDropdownSided",!0)}}function To(o,t){if(o&1&&(s(0,"button",24),C(1),u()),o&2){let r=t.$implicit;c(),S(" ",r," ")}}function yo(o,t){if(o&1){let r=v();s(0,"tui-data-list")(1,"tui-opt-group"),b(2,To,2,1,"button",22),u(),s(3,"tui-opt-group")(4,"button",23),_("click",function(){let i=d(r).$implicit;return m(i())}),C(5," Nevermind "),u()()()}o&2&&(c(2),l("ngForOf",R(1,vo)))}function xo(o,t){if(o&1&&(s(0,"tui-badge",15),C(1),u()),o&2){let r=t.$implicit;l("appearance",r),c(),S(" ",r.charAt(0).toUpperCase()+r.slice(1)," ")}}function wo(o,t){if(o&1&&(s(0,"button",18),C(1),u()),o&2){let r=t.$implicit;l("appearance",r),c(),S(" ",r.charAt(0).toUpperCase()+r.slice(1)," ")}}var cn=(()=>{let t=class t{constructor(){this.exampleControl=new ot(100),this.exampleYearControl=new ot(null),this.badges=["primary","accent","success","error","warning","neutral","info"],this.buttons=["primary","accent","destructive","flat","outline"],this.theme=Se("")}};t.\u0275fac=function(i){return new(i||t)},t.\u0275cmp=T({type:t,selectors:[["lmb-theme-example"]],hostVars:2,hostBindings:function(i,n){i&2&&Vt(n.theme())},inputs:{theme:"theme"},standalone:!0,features:[oe],decls:35,vars:10,consts:[["dropdown",""],["tuiAppearance","whiteblock","tuiCardLarge","normal",1,"example-block"],["tuiHeader","l"],["tuiTitle",""],["tuiSubtitle",""],[3,"formControl","tuiTextfieldPrefix"],[1,"tui-row"],[1,"tui-col_md-6"],["tuiCardLarge","","tuiSurface","elevated"],["tuiHeader",""],["tuiCell","l","tuiDropdownAlign","right","tuiDropdownOpen","",3,"tuiDropdown","tuiDropdownSided",4,"tuiRepeatTimes","tuiRepeatTimesOf"],["tuiLink","","type","button"],[3,"formControl","tuiTextfieldCleaner"],["placeholder","Not 2022 please","tuiTextfieldLegacy",""],[1,"list"],[3,"appearance"],["size","m","tuiCheckbox","","type","checkbox",3,"ngModel"],["size","m","tuiSwitch","","type","checkbox",3,"disabled","ngModel"],["tuiButton","",3,"appearance"],["tuiCell","l","tuiDropdownAlign","right","tuiDropdownOpen","",3,"tuiDropdown","tuiDropdownSided"],["appearance","primary","src","@tui.star"],["icon","@tui.chevron-right","tuiAppearance","icon"],["tuiOption","",4,"ngFor","ngForOf"],["tuiOption","",3,"click"],["tuiOption",""]],template:function(i,n){i&1&&(s(0,"div",1)(1,"div",2)(2,"h3",3),C(3," Title example "),s(4,"div",4),C(5,"Subtitle example"),u()()(),s(6,"tui-input-number",5),re(7,"tuiCurrency"),C(8," Type a sum "),u(),s(9,"div",6)(10,"div",7)(11,"div",8)(12,"header",9)(13,"h1",3),C(14," Title "),s(15,"span",4),C(16,"Subtitle"),u()()(),b(17,bo,7,2,"button",10),s(18,"button",11),C(19," Show all "),u()(),b(20,yo,6,2,"ng-template",null,0,F),u(),s(22,"div",7)(23,"div",8)(24,"tui-input-year",12),C(25," Choose a year "),y(26,"input",13),u(),s(27,"div",14),Q(28,xo,2,2,"tui-badge",15,X),u(),y(30,"input",16)(31,"input",17),u()()(),s(32,"div",14),Q(33,wo,2,2,"button",18,X),u()()),i&2&&(c(6),l("formControl",n.exampleControl)("tuiTextfieldPrefix",Ve(7,8,"USD")),c(11),l("tuiRepeatTimesOf",3),c(7),l("formControl",n.exampleYearControl)("tuiTextfieldCleaner",!0),c(4),Z(n.badges),c(2),l("ngModel",!0),c(),l("disabled",!0)("ngModel",!0),c(2),Z(n.buttons))},dependencies:[w,J,le,jt,se,ue,Bt,Gt,Xt,di,mi,ce,Ci,vi,gi,ln,te,ee,si,ze,G,B,ri,je,de,Ue,Ge,Be,Li,un,an,sn,ti,ni,li,fi,ci,U,Di,Fi,Ne],styles:["@media (max-width: 1250px){.tui-row[_ngcontent-%COMP%]{gap:1rem}.tui-col_md-6[_ngcontent-%COMP%]{width:100%}}.example-block[_ngcontent-%COMP%]{position:sticky;top:7rem;height:max-content;background-color:var(--tui-background-base)}@media (max-width: 570px){.example-block[_ngcontent-%COMP%]{display:none}}.list[_ngcontent-%COMP%]{display:flex;gap:1rem;flex-wrap:wrap}.actions[_ngcontent-%COMP%]{display:flex;flex-direction:column}"],changeDetection:0});let o=t;return o})();var pn=[{title:"Backgrounds",colors:[{name:"background-base",initialValue:"#fff",variable:"--tui-background-base"},{name:"background-base-alt",initialValue:"#f6f6f6",variable:"--tui-background-base-alt"},{name:"background-neutral-1",initialValue:"rgba(0, 0, 0, 0.04)",variable:"--tui-background-neutral-1"},{name:"background-neutral-1-hover",initialValue:"rgba(0, 0, 0, 0.08)",variable:"--tui-background-neutral-1-hover"},{name:"background-neutral-1-pressed",initialValue:"rgba(0, 0, 0, 0.12)",variable:"--tui-background-neutral-1-pressed"},{name:"background-neutral-2",initialValue:"rgba(0, 0, 0, 0.08)",variable:"--tui-background-neutral-2"},{name:"background-neutral-2-hover",initialValue:"rgba(0, 0, 0, 0.1)",variable:"--tui-background-neutral-2-hover"},{name:"background-neutral-2-pressed",initialValue:"rgba(0, 0, 0, 0.14)",variable:"--tui-background-neutral-2-pressed"},{name:"background-primary",initialValue:"#526ed3",variable:"--tui-background-accent-1"},{name:"background-primary-hover",initialValue:"#6c86e2",variable:"--tui-background-accent-1-hover"},{name:"background-primary-pressed",initialValue:"#314692",variable:"--tui-background-accent-1-pressed"},{name:"background-accent",initialValue:"#ff7043",variable:"--tui-background-accent-2"},{name:"background-accent-hover",initialValue:"#ff9a94",variable:"--tui-background-accent-2-hover"},{name:"background-accent-pressed",initialValue:"#e7716a",variable:"--tui-background-accent-2-pressed"},{name:"background-accent-opposite",initialValue:"#000",variable:"--tui-background-accent-opposite"},{name:"background-accent-opposite-hover",initialValue:"#333",variable:"--tui-background-accent-opposite-hover"},{name:"background-accent-opposite-pressed",initialValue:"#808080",variable:"--tui-background-accent-opposite-pressed"},{name:"background-elevation-1",initialValue:"#fff",variable:"--tui-background-elevation-1"},{name:"background-elevation-2",initialValue:"#fff",variable:"--tui-background-elevation-2"},{name:"service-autofill-background",initialValue:"#fff5c0",variable:"--tui-service-autofill-background"}]},{title:"Others",colors:[{name:"border-normal",initialValue:"rgba(0, 0, 0, 0.1)",variable:"--tui-border-normal"},{name:"border-hover",initialValue:"rgba(0, 0, 0, 0.16)",variable:"--tui-border-hover"},{name:"border-focus",initialValue:"rgba(51, 51, 51, 0.64)",variable:"--tui-border-focus"}]},{title:"Statuses",colors:[{name:"status-negative",initialValue:"rgba(244, 87, 37, 1)",variable:"--tui-status-negative"},{name:"status-negative-pale",initialValue:"rgba(244, 87, 37, 0.12)",variable:"--tui-status-negative-pale"},{name:"status-negative-pale-hover",initialValue:"rgba(244, 87, 37, 0.24)",variable:"--tui-status-negative-pale-hover"},{name:"status-positive",initialValue:"rgba(74, 201, 155, 1)",variable:"--tui-status-positive"},{name:"status-positive-pale",initialValue:"rgba(74, 201, 155, 0.12)",variable:"--tui-status-positive-pale"},{name:"status-positive-pale-hover",initialValue:"rgba(74, 201, 155, 0.24)",variable:"--tui-status-positive-pale-hover"},{name:"status-warning",initialValue:"rgba(255, 199, 0, 1)",variable:"--tui-status-warning"},{name:"status-warning-pale",initialValue:"rgba(255, 199, 0, 0.12)",variable:"--tui-status-warning-pale"},{name:"status-warning-pale-hover",initialValue:"rgba(255, 199, 0, 0.24)",variable:"--tui-status-warning-pale-hover"},{name:"status-info",initialValue:"rgba(112, 182, 246, 1)",variable:"--tui-status-info"},{name:"status-info-pale",initialValue:"rgba(112, 182, 246, 0.12)",variable:"--tui-status-info-pale"},{name:"status-info-pale-hover",initialValue:"rgba(112, 182, 246, 0.24)",variable:"--tui-status-info-pale-hover"},{name:"status-neutral",initialValue:"rgb(121, 129, 140)",variable:"--tui-status-neutral"}]},{title:"Text",colors:[{name:"text-primary",initialValue:"rgba(27, 31, 59, 1)",variable:"--tui-text-primary"},{name:"text-secondary",initialValue:"rgba(27, 31, 59, 0.65)",variable:"--tui-text-secondary"},{name:"text-tertiary",initialValue:"rgba(27, 31, 59, 0.4)",variable:"--tui-text-tertiary"},{name:"text-action",initialValue:"#526ed3",variable:"--tui-text-action"},{name:"text-action-hover",initialValue:"#6c86e2",variable:"--tui-text-action-hover"},{name:"text-positive",initialValue:"#3aa981",variable:"--tui-text-positive"},{name:"text-positive-hover",initialValue:"#7ac5aa",variable:"--tui-text-positive-hover"},{name:"text-negative",initialValue:"#dd4c1e",variable:"--tui-text-negative"},{name:"text-negative-hover",initialValue:"#e38163",variable:"--tui-text-negative-hover"}]}];function Io(o,t){if(o&1){let r=v();s(0,"tui-input-color",9),P("ngModelChange",function(i){let n=d(r).$index,a=p(2);return k(a.colors[n],i)||(a.colors[n]=i),m(i)}),C(1),u()}if(o&2){let r=t.$implicit,e=t.$index,i=p(2);l("colors",i.palette),D("ngModel",i.colors[e]),c(),S(" ",r.name," ")}}function Mo(o,t){if(o&1&&(s(0,"h6",7),C(1),u(),Q(2,Io,2,3,"tui-input-color",8,X)),o&2){let r=t.$implicit;c(),Ft(r.title),c(),Z(r.colors)}}function So(o,t){if(o&1&&(y(0,"br"),C(1)),o&2){let r=t.$implicit,e=t.$index,i=p();c(),$t(" ",r.variable,": ",i.colors[e](),"; ")}}var vs=(()=>{let t=class t{constructor(){this.router=g(zt),this.clipboard=g(ji),this.activatedRoute=g(Rt),this.window=g(He),this.params=Fe(this.activatedRoute.queryParams)(),this.themeGroups=pn,this.themeData=this.themeGroups.map(e=>e.colors).reduce((e,i)=>e.concat(i),[]),this.palette=en,this.colors=this.themeData.map(e=>{var n;let i=((n=this.params)==null?void 0:n[e.variable])??e.initialValue;return Se((i[0]!=="r"&&i[0]!=="#"?"#":"")+i)}),this.copy$=new Ze,this.iconCopy=Fe(this.copy$.pipe(H(()=>Je(2e3).pipe(K(()=>"@tui.copy"),q("@tui.check")))),{initialValue:"@tui.copy"}),this.share$=new Ze,this.iconShare=Fe(this.share$.pipe(H(()=>Je(2e3).pipe(K(()=>"@tui.external-link"),q("@tui.check")))),{initialValue:"@tui.external-link"}),this.theme=Lt(()=>this.colors.map((e,i)=>`${this.themeData[i].variable}: ${e()};`).join(" "))}copy(){this.copy$.next();let e=`:root {${this.themeData.reduce((i,n,a)=>`${i} -${n.variable}:${this.colors[a]()};`,"")} -}`;this.clipboard.copy(e)}share(){this.share$.next(),this.clipboard.copy(this.window.location.href)}queryParams(){let e=this.themeData.reduce((i,n,a)=>ne(ie({},i),{[n.variable]:this.colors[a]().replace("#","")}),{});this.router.navigate([],{relativeTo:this.activatedRoute,queryParams:e,queryParamsHandling:"merge"})}};t.\u0275fac=function(i){return new(i||t)},t.\u0275cmp=T({type:t,selectors:[["lmb-theme-generator"]],standalone:!0,features:[oe],decls:16,vars:11,consts:[[1,"list-colors"],["tuiHeader","m"],["tuiTitle",""],["appearance","icon","size","m","tuiButton","",1,"share",3,"click","iconStart"],[1,"colors",3,"focusout"],["appearance","icon","size","m","tuiButton","",1,"copy",3,"click","iconStart"],[3,"theme"],[1,"tui-space_top-0","tui-space_bottom-0","title-colors"],["tuiTextfieldSize","m",3,"colors","ngModel"],["tuiTextfieldSize","m",3,"ngModelChange","colors","ngModel"]],template:function(i,n){i&1&&(s(0,"div",0)(1,"div",1)(2,"h3",2),C(3," Colors "),u(),s(4,"button",3),_("click",function(){return n.share()}),u()(),s(5,"div",4),_("focusout",function(){return n.queryParams()}),Q(6,Mo,4,1,null,null,X),u(),s(8,"code")(9,"button",5),_("click",function(){return n.copy()}),u(),C(10),Q(11,So,2,2,null,null,X),y(13,"br"),C(14),u()(),y(15,"lmb-theme-example",6)),i&2&&(c(2),x("flex-grow",0)("margin-bottom","auto")("margin-top","auto"),c(2),l("iconStart",n.iconShare()),c(2),Z(n.themeGroups),c(3),l("iconStart",n.iconCopy()),c(),S(" :root ","{"," "),c(),Z(n.themeData),c(3),S(" ","}"," "),c(),l("theme",n.theme))},dependencies:[w,le,se,ue,cn,ce,je,rn,on,Ne],styles:["[_nghost-%COMP%]{position:relative;display:grid;grid-template-columns:1fr 1fr;margin-top:1rem}@media (max-width: 570px){[_nghost-%COMP%]{grid-template-columns:1fr}}.list-colors[_ngcontent-%COMP%]{display:flex;padding-right:3rem;flex-direction:column;gap:1rem}code[_ngcontent-%COMP%]{position:relative;margin-top:2rem;padding:1rem;background:var(--tui-background-base-alt);font-family:monospace}.copy[_ngcontent-%COMP%]{position:absolute;right:.2rem;top:.2rem}.share[_ngcontent-%COMP%]{margin-top:auto;margin-bottom:auto}.colors[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.8rem}.title-colors[_ngcontent-%COMP%]{font:var(--tui-font-heading-6)}"],changeDetection:0});let o=t;return o})();export{vs as ThemeGeneratorComponent}; diff --git a/chunk-GONOUNY6.js b/chunk-LSLALVJS.js similarity index 98% rename from chunk-GONOUNY6.js rename to chunk-LSLALVJS.js index b01010376..ba1cbc705 100644 --- a/chunk-GONOUNY6.js +++ b/chunk-LSLALVJS.js @@ -1,2 +1,2 @@ -import{b as de}from"./chunk-PIDCXASU.js";import{c as le}from"./chunk-UPS6ZX2Y.js";import{c as st,d as ce}from"./chunk-DNEQ7KDT.js";import{E as rt,F as ae,I as ue,L as pe,a as jt,b as Wt,d as gt,f as Vt,g as ie,j as _t,k as nt,m as ne,n as ot,q as oe,r as re,s as se}from"./chunk-OKL4RZMA.js";import{$d as Xt,A as h,B as Tt,Ba as Et,Bb as d,Ca as P,Cb as f,Cf as ee,Db as g,Ea as p,Eb as w,Ec as X,Fb as S,Fd as K,Gb as G,H as $,Hb as q,I as pt,Ja as zt,Jb as ht,K as T,Ka as M,Kb as _,Kd as u,L as It,La as x,Lb as m,Lc as $t,Ld as Q,Mc as Y,Na as v,Nc as N,Ne as et,Pa as kt,Pc as C,Pe as Jt,Qa as Nt,Qd as Gt,S as j,T as Pt,Ta as At,Tb as D,Tc as J,Va as Ut,Vb as E,Ve as it,W as Mt,Wd as b,X as xt,Xe as Kt,Yd as Z,Za as dt,_d as qt,a as lt,ab as Bt,ae as tt,bc as O,cb as c,cc as z,da as Ft,df as Qt,ef as Zt,fe as A,g as yt,ga as wt,hb as Lt,i as Ct,ia as I,jc as y,kc as k,kf as te,lc as Ht,m as L,ma as St,mb as F,n as R,ob as Rt,qa as W,r as ut,rb as l,re as Yt,sb as mt,ta as Dt,tb as a,ub as V,vb as ft,w as H,wa as s,y as bt}from"./chunk-NEAIWFFQ.js";var at=class{constructor(t){this.el=t}get element(){return(this.el.nativeElement.tagName.includes("-")?this.el.nativeElement.querySelector("input,textarea"):this.el.nativeElement)||this.el.nativeElement}get isTextFieldElement(){return this.element.matches("input, textarea, [contenteditable]")}},be=1e3,Te=".ng-animating",vt=class extends at{constructor(t,o){super(t),this.animationFrame$=o}setFocus(){this.isTextFieldElement?It($(be),this.animationFrame$.pipe(St(100),h(()=>this.element.closest(Te)),wt(Boolean),j(1))).subscribe(()=>this.element.focus({preventScroll:!0})):this.element.focus({preventScroll:!0})}},Ie=["type","inputMode","autocomplete","accept","min","max","step","pattern","size","maxlength"],Ot=class extends at{constructor(t,o,i,n){super(t),this.renderer=o,this.zone=i,this.win=n,this.patchCssStyles()}setFocus(){this.isTextFieldElement?this.zone.runOutsideAngular(()=>this.iosWebkitAutofocus()):this.element.focus({preventScroll:!0})}iosWebkitAutofocus(){var B;let t=this.makeFakeInput(),o=this.getDurationTimeBeforeFocus(),i=0,n=0,r=()=>t.focus({preventScroll:!0}),U=()=>{clearTimeout(i),i=this.win.setTimeout(()=>{clearTimeout(n),t.removeEventListener("blur",r),t.removeEventListener("focus",U),n=this.win.setTimeout(()=>{this.element.focus({preventScroll:!1}),t.remove()},o)})};t.addEventListener("blur",r,{once:!0}),t.addEventListener("focus",U),this.insideDialog()?this.win.document.body.appendChild(t):(B=this.element.parentElement)==null||B.appendChild(t),t.focus({preventScroll:!0})}makeFakeInput(){let t=this.renderer.createElement("input"),o=this.element.getBoundingClientRect();return this.patchFakeInputFromFocusableElement(t),t.style.height=b(o.height),t.style.width=b(o.width/2),t.style.position="fixed",t.style.zIndex="-99999999",t.style.caretColor="transparent",t.style.border="none",t.style.outline="none",t.style.color="transparent",t.style.background="transparent",t.style.cursor="none",t.style.fontSize=b(16),t.style.top=b(o.top),t.style.left=b(o.left),t}getDurationTimeBeforeFocus(){return parseFloat(this.win.getComputedStyle(this.element).getPropertyValue("--tui-duration"))||0}insideDialog(){return!!this.element.closest("tui-dialog")}patchCssStyles(){[this.win.document.documentElement,this.win.document.body].forEach(t=>{t.style.setProperty("overflow","auto"),t.style.setProperty("height","100%")})}patchFakeInputFromFocusableElement(t){Ie.forEach(o=>{let i=this.element.getAttribute(o);Gt(i)&&t.setAttribute(o,i)})}},Pe={delay:NaN},Me=u(Pe);var fe=new Dt("[TUI_AUTOFOCUS_HANDLER]"),xe=[{provide:fe,useFactory:(e,t,o,i,n,r)=>r?new Ot(e,o,i,n):new vt(e,t),deps:[Ut,Jt,Lt,At,et,ae]}],he=(()=>{let t=class t{constructor(){this.handler=s(fe),this.options=s(Me),this.destroyRef=s(Nt)}ngAfterViewInit(){this.autoFocus&&this.focus()}focus(){Number.isNaN(this.options.delay)?Promise.resolve().then(()=>this.handler.setFocus()):$(this.options.delay).pipe(K(this.destroyRef)).subscribe(()=>this.handler.setFocus())}};t.\u0275fac=function(n){return new(n||t)},t.\u0275dir=p({type:t,selectors:[["","tuiAutoFocus",""]],inputs:{autoFocus:[2,"tuiAutoFocus","autoFocus",de]},standalone:!0,features:[O(xe),Rt]});let e=t;return e})();var ge=(()=>{let t=class t extends ne{constructor(){super(...arguments),this.service=s(st),this.open$=new L,this.options={},this.open=!1,this.openChange=this.open$.pipe(Mt(),Kt(()=>this.service.open(this,this.options).pipe(Pt(),xt(!1))),Ft())}ngOnChanges(){this.open$.next(this.open)}};t.\u0275fac=(()=>{let i;return function(r){return(i||(i=v(t)))(r||t)}})(),t.\u0275dir=p({type:t,features:[F,zt]});let e=t;return e})();var _e=(()=>{let t=class t{constructor(){this.doc=s(X),this.el=A(),this.activeElement=oe(this.doc),Promise.resolve().then(()=>this.el.focus())}ngOnDestroy(){re(this.doc),Promise.resolve().then(()=>{Xt(this.activeElement)&&this.activeElement.focus()})}onFocusIn(i){var n;Z(this.el,i)||(n=se({initial:this.el,root:this.el}))==null||n.focus()}};t.\u0275fac=function(n){return new(n||t)},t.\u0275dir=p({type:t,selectors:[["","tuiFocusTrap",""]],hostAttrs:["tabIndex","0"],hostBindings:function(n,r){n&1&&_("focusin.silent",function(B){return r.onFocusIn(B.target)},!1,Bt)},standalone:!0});let e=t;return e})();function we(e,t){if(e&1&&(w(0),D(1),S()),e&2){let o=t.polymorpheusOutlet;c(),E(" ",o," ")}}function Se(e,t){if(e&1&&(d(0,"header",6),l(1,we,2,1,"ng-container",3),f()),e&2){let o=m();c(),a("polymorpheusOutlet",o.header)("polymorpheusOutletContext",o.context)}}function De(e,t){if(e&1){let o=q();w(0),g(1,"div",7),d(2,"div",8)(3,"button",9),_("click",function(){M(o);let n=m();return x(n.context.$implicit.complete())}),D(4),f()(),S()}if(e&2){let o=t.polymorpheusOutlet,i=m();c(),a("innerHTML",o,dt),c(3),E(" ",(i.context.data==null?null:i.context.data.button)||"OK"," ")}}function Ee(e,t){if(e&1){let o=q();d(0,"div",10)(1,"button",11),_("click",function(){M(o);let n=m();return x(n.close$.next())})("mousedown.prevent.silent",function(){return M(o),x(0)}),D(2),y(3,"async"),f()()}if(e&2){let o=m();c(),V("border-radius",100,"%"),a("appearance",o.fullscreen?"secondary":"")("iconStart",o.icons.close),c(),E(" ",k(3,5,o.closeWord$)," ")}}function ze(e,t){e&1&&G(0)}function ke(e,t){if(e&1&&(d(0,"section",3),l(1,ze,1,0,"ng-container",4),g(2,"tui-scroll-controls",5),f()),e&2){let o=t.$implicit,i=m().ngIf;ft("t-dialog_closing",!i.length),a("@tuiHost",void 0),mt("aria-labelledby",o.id),c(),a("polymorpheusOutlet",o.component)("polymorpheusOutletContext",o)}}function Ne(e,t){if(e&1&&(w(0),l(1,ke,3,6,"section",1),g(2,"div",2),S()),e&2){let o=t.ngIf;c(),a("ngForOf",o),c(),V("opacity",o.length)}}var ye=u(new R([])),Ae={appearance:"",size:"m",required:!1,closeable:!0,dismissible:!0,label:"",header:"",data:void 0},Ue=u(ut),Be=u(Ae);var Le=17,ve=(()=>{let t=class t extends Ct{constructor(){super(i=>pt(this.esc$,this.mousedown$).subscribe(i)),this.win=s(et),this.doc=s(X),this.el=A(),this.esc$=it(this.doc,"keydown").pipe(T(i=>{let n=tt(i);return i.key==="Escape"&&!i.defaultPrevented&&(this.el.contains(n)||this.isOutside(n))})),this.mousedown$=it(this.doc,"mousedown").pipe(T(i=>ie(this.win)-i.clientX>Le&&this.isOutside(tt(i))),I(()=>it(this.doc,"mouseup").pipe(j(1),h(tt),T(i=>this.isOutside(i)))))}isOutside(i){return qt(i)&&(!Z(this.el,i)||i===this.el)}};t.\u0275fac=function(n){return new(n||t)},t.\u0275prov=W({token:t,factory:t.\u0275fac});let e=t;return e})(),Re=new Error("Required dialog was dismissed");function Oe(e){return bt(e)?e:H(e)}var He=(()=>{let t=class t{constructor(){this.speed=s(Qt),this.isMobile=s(rt),this.animation={value:"",params:{start:"40px",duration:_t(this.speed)}},this.fullscreenAnimation={value:"",params:{start:"100vh",duration:_t(this.speed)}},this.close$=new L,this.context=s(nt),this.closeWord$=s(te),this.icons=s(Zt),pt(this.close$.pipe(I(()=>Oe(this.context.closeable))),s(ve).pipe(I(()=>Oe(this.context.dismissible))),s(Ue).pipe(h(Yt))).pipe(T(Boolean),K()).subscribe(()=>{this.close()})}get size(){return this.context.size}get header(){return this.context.header}get slideInTop(){return this.fullscreen||this.isMobile?this.fullscreenAnimation:this.animation}get fullscreen(){return!this.isMobile&&(this.size==="fullscreen"||this.size==="page")}close(){this.context.required?this.context.$implicit.error(Re):this.context.$implicit.complete()}};t.\u0275fac=function(n){return new(n||t)},t.\u0275cmp=P({type:t,selectors:[["tui-dialog"]],hostVars:6,hostBindings:function(n,r){n&2&&(ht("@tuiSlideInTop",r.slideInTop)("@tuiFadeIn",r.slideInTop),mt("data-appearance",r.context.appearance)("data-size",r.size),ft("_centered",r.header))},standalone:!0,features:[O([ve]),z],decls:7,vars:6,consts:[["class","t-header",4,"ngIf"],[1,"t-content"],[1,"t-heading",3,"id","textContent"],[4,"polymorpheusOutlet","polymorpheusOutletContext"],[1,"t-filler"],["class","t-wrapper",4,"ngIf"],[1,"t-header"],[3,"innerHTML"],[1,"t-buttons"],["size","m","tuiAutoFocus","","tuiButton","","type","button",3,"click"],[1,"t-wrapper"],["automation-id","tui-dialog__close","size","s","tuiIconButton","","type","button",1,"t-close",3,"click","mousedown.prevent.silent","appearance","iconStart"]],template:function(n,r){n&1&&(l(0,Se,2,2,"header",0),d(1,"div",1),g(2,"h2",2),d(3,"section"),l(4,De,5,2,"ng-container",3),f()(),g(5,"div",4),l(6,Ee,4,7,"div",5)),n&2&&(a("ngIf",r.header),c(2),a("id",r.context.id)("textContent",r.context.label),c(2),a("polymorpheusOutlet",r.context.content)("polymorpheusOutletContext",r.context),c(2),a("ngIf",r.context.closeable))},dependencies:[N,ot,he,ee,C],styles:['[_nghost-%COMP%]{position:relative;display:flex;font:var(--tui-font-text-m);flex-direction:column;box-sizing:border-box;margin:auto;border-radius:1rem;border:2.5rem solid transparent}[_nghost-%COMP%]:after{position:absolute;top:0;left:0;width:100%;height:100%;content:"";border-radius:inherit;pointer-events:none;box-shadow:var(--tui-shadow-popup)}[data-size=auto][_nghost-%COMP%]{width:auto}[data-size=s][_nghost-%COMP%]{width:30rem}[data-size=s][_nghost-%COMP%] .t-content[_ngcontent-%COMP%]{padding:1.5rem}[data-size=s][_nghost-%COMP%] .t-heading[_ngcontent-%COMP%]{margin-bottom:.5rem;font:var(--tui-font-heading-5)}[data-size=m][_nghost-%COMP%]{width:42.5rem}[data-size=m][_nghost-%COMP%] .t-heading[_ngcontent-%COMP%]{margin-bottom:.75rem;font:var(--tui-font-heading-4)}[data-size=l][_nghost-%COMP%]{width:55rem}[data-size=l][_nghost-%COMP%] .t-heading[_ngcontent-%COMP%]{margin-bottom:1rem}[data-size=fullscreen][_nghost-%COMP%], [data-size=page][_nghost-%COMP%]{min-width:100vw;min-height:100%;border-radius:0;border:none;background:var(--tui-background-elevation-1);box-shadow:0 4rem var(--tui-background-elevation-1)}[data-size=fullscreen][_nghost-%COMP%] .t-content[_ngcontent-%COMP%], [data-size=page][_nghost-%COMP%] .t-content[_ngcontent-%COMP%]{padding:3rem calc(50vw - 22.5rem)}[data-size=fullscreen][_nghost-%COMP%] .t-heading[_ngcontent-%COMP%], [data-size=page][_nghost-%COMP%] .t-heading[_ngcontent-%COMP%]{margin-bottom:1rem}._centered[_nghost-%COMP%]{text-align:center}[_nghost-%COMP%] tui-root._mobile[data-size][_nghost-%COMP%], tui-root._mobile [data-size][_nghost-%COMP%]{min-width:100%;width:100%;max-width:100%;border-radius:0;border:none;margin:auto 0 0}[_nghost-%COMP%] tui-root._mobile[data-size][_nghost-%COMP%] .t-content[_ngcontent-%COMP%], tui-root._mobile [data-size][_nghost-%COMP%] .t-content[_ngcontent-%COMP%]{padding:1.5rem}[_nghost-%COMP%] tui-root._mobile[data-size][_nghost-%COMP%] .t-heading[_ngcontent-%COMP%], tui-root._mobile [data-size][_nghost-%COMP%] .t-heading[_ngcontent-%COMP%]{margin-bottom:.5rem;font:var(--tui-font-heading-5)}[data-size=page][_nghost-%COMP%] .t-content[_ngcontent-%COMP%], tui-root._mobile [data-size=page][_nghost-%COMP%] .t-content[_ngcontent-%COMP%]{padding:0}.t-heading[_ngcontent-%COMP%]{margin:0;word-wrap:break-word;font:var(--tui-font-heading-3)}.t-heading[_ngcontent-%COMP%]:empty{display:none}.t-header[_ngcontent-%COMP%]{display:flex;border-top-left-radius:inherit;border-top-right-radius:inherit;overflow:hidden}[data-size=fullscreen][_nghost-%COMP%] tui-root._mobile[_nghost-%COMP%] .t-header[_ngcontent-%COMP%], tui-root._mobile [_nghost-%COMP%] .t-header[_ngcontent-%COMP%]{flex:1}.t-content[_ngcontent-%COMP%]{border-radius:inherit;padding:2rem;background:var(--tui-background-elevation-1)}.t-content[_ngcontent-%COMP%]:not(:first-child){border-top-left-radius:0;border-top-right-radius:0}.t-wrapper[_ngcontent-%COMP%]{position:sticky;top:0;z-index:1;order:-1}.t-filler[_ngcontent-%COMP%]{flex-grow:1}.t-close[_ngcontent-%COMP%]{transition-property:background;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;position:fixed;top:1.5rem;right:1.5rem;display:none}.t-dialog:last-of-type[_nghost-%COMP%] .t-close[_ngcontent-%COMP%], .t-dialog:last-of-type [_nghost-%COMP%] .t-close[_ngcontent-%COMP%]{display:inline-flex}[_nghost-%COMP%]:not([data-size=fullscreen]):not([data-size=page]) .t-close[_ngcontent-%COMP%]{animation:tuiFadeIn var(--tui-duration);background:#686868f5;color:var(--tui-background-base)}[_nghost-%COMP%]:not([data-size=fullscreen]):not([data-size=page]) .t-close[_ngcontent-%COMP%]:hover{background:#9f9f9fdb}[_nghost-%COMP%]:not([data-size=fullscreen]).ng-animating .t-close[_ngcontent-%COMP%]{display:none}tui-root._mobile[_nghost-%COMP%] .t-close[data-size][_ngcontent-%COMP%], tui-root._mobile [_nghost-%COMP%] .t-close[data-size][_ngcontent-%COMP%]{--tui-fade-end: .5;position:absolute;top:0;right:0;background:transparent!important;color:var(--tui-text-primary);opacity:.5}.t-buttons[_ngcontent-%COMP%]{margin-top:1.25rem;text-align:right}'],data:{animation:[Vt,gt]}});let e=t;return e})(),$e=(()=>{let t=class t extends st{};t.\u0275fac=(()=>{let i;return function(r){return(i||(i=v(t)))(r||t)}})(),t.\u0275prov=W({token:t,factory:()=>new t(ye,He,s(Be)),providedIn:"root"});let e=t;return e})(),Vi=(()=>{let t=class t extends ge{};t.\u0275fac=(()=>{let i;return function(r){return(i||(i=v(t)))(r||t)}})(),t.\u0275dir=p({type:t,selectors:[["ng-template","tuiDialog",""]],inputs:{options:[0,"tuiDialogOptions","options"],open:[0,"tuiDialog","open"]},outputs:{openChange:"tuiDialogChange"},standalone:!0,features:[O([ce($e)]),F]});let e=t;return e})(),Gi=(()=>{let t=class t{constructor(){this.el=A(),this.dialogs$=s(ye)}};t.\u0275fac=function(n){return new(n||t)},t.\u0275cmp=P({type:t,selectors:[["tui-dialogs"]],hostBindings:function(n,r){n&1&&_("keydown.silent",function(){return r.el.scrollTop=r.el.scrollHeight/2})},standalone:!0,features:[z],decls:2,vars:3,consts:[[4,"ngIf"],["aria-modal","true","role","dialog","tuiFocusTrap","","tuiScrollRef","","class","t-dialog",3,"t-dialog_closing",4,"ngFor","ngForOf"],[1,"t-overlay"],["aria-modal","true","role","dialog","tuiFocusTrap","","tuiScrollRef","",1,"t-dialog"],[4,"polymorpheusOutlet","polymorpheusOutletContext"],[1,"t-scrollbars"]],template:function(n,r){n&1&&(l(0,Ne,3,3,"ng-container",0),y(1,"async")),n&2&&a("ngIf",k(1,1,r.dialogs$))},dependencies:[J,Y,N,C,ot,_e,ue,pe],styles:['[_nghost-%COMP%]{position:fixed;top:0;left:0;width:100%;height:100%;scrollbar-width:none;-ms-overflow-style:none;pointer-events:none;overflow:hidden;overscroll-behavior:none}[_nghost-%COMP%]::-webkit-scrollbar, [_nghost-%COMP%]::-webkit-scrollbar-thumb{display:none}[_nghost-%COMP%]:has(section){pointer-events:auto;overflow:auto}[_nghost-%COMP%]:before{content:"";display:block;height:1000%}.t-overlay[_ngcontent-%COMP%], .t-dialog[_ngcontent-%COMP%]{scrollbar-width:none;-ms-overflow-style:none;position:fixed;top:0;left:0;bottom:0;right:0;display:flex;height:100%;align-items:flex-start;outline:none;overflow:auto}.t-overlay[_ngcontent-%COMP%]::-webkit-scrollbar, .t-dialog[_ngcontent-%COMP%]::-webkit-scrollbar, .t-overlay[_ngcontent-%COMP%]::-webkit-scrollbar-thumb, .t-dialog[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{display:none}.t-overlay.ng-animating[_ngcontent-%COMP%], .t-dialog.ng-animating[_ngcontent-%COMP%]{overflow:clip}.t-dialog[_ngcontent-%COMP%]{position:sticky;pointer-events:auto;overscroll-behavior:none}.t-overlay[_ngcontent-%COMP%]{transition-property:opacity;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;background:var(--tui-service-backdrop);-webkit-backdrop-filter:var(--tui-backdrop, none);backdrop-filter:var(--tui-backdrop, none)}.t-dialog[_ngcontent-%COMP%]:last-of-type{z-index:1}.t-scrollbars[_ngcontent-%COMP%]{position:fixed;top:0;left:0;bottom:0;right:0;margin:0;color:#747474}'],data:{animation:[Wt]}});let e=t;return e})();var je={info:"@tui.info",success:"@tui.circle-check",error:"@tui.circle-x",warning:"@tui.circle-alert",neutral:"@tui.info"},We={appearance:"info",icon:e=>je[e],size:"l"},Ce=u(We);function Ve(e,t){if(e&1&&(G(0,3),y(1,"tuiMapper")),e&2){let o=t.$implicit,i=m(2);a("ngComponentOutlet",o.component.component)("ngComponentOutletInjector",Ht(1,2,o,i.mapper))}}function Ge(e,t){if(e&1&&(d(0,"div",1),l(1,Ve,2,5,"ng-container",2),f()),e&2){let o=t.$implicit;a("@tuiParentAnimation",void 0),c(),a("ngForOf",o)}}var qe={autoClose:3e3,label:"",closeable:!0,data:void 0},yn=Q(()=>lt(lt({},qe),s(Ce))),Cn=Q(()=>s(rt)?"1rem 1rem 0 auto":"2rem 3rem 0 auto"),Xe=u(new R([])),Ye=Q(()=>Tt([H(new Map),s(Xe)]).pipe(h(([e,t])=>(e.forEach((o,i)=>e.set(i,[])),t.forEach(o=>{let i=o.component.component,n=e.get(i)||[];e.set(i,[...n,o])}),Array.from(e.values())))));var bn=(()=>{let t=class t{constructor(){this.injector=s(Et),this.alerts$=s(Ye),this.trackBy=yt,this.mapper=i=>kt.create({providers:[{provide:nt,useValue:i}],parent:this.injector})}};t.\u0275fac=function(n){return new(n||t)},t.\u0275cmp=P({type:t,selectors:[["tui-alerts"]],standalone:!0,features:[z],decls:2,vars:4,consts:[["class","t-wrapper",4,"ngFor","ngForOf","ngForTrackBy"],[1,"t-wrapper"],[3,"ngComponentOutlet","ngComponentOutletInjector",4,"ngFor","ngForOf"],[3,"ngComponentOutlet","ngComponentOutletInjector"]],template:function(n,r){n&1&&(l(0,Ge,2,2,"div",0),y(1,"async")),n&2&&a("ngForOf",k(1,2,r.alerts$))("ngForTrackBy",r.trackBy)},dependencies:[J,$t,Y,C,le],styles:[`tui-alerts>.t-wrapper{position:fixed;top:0;left:0;width:100%;height:100%;display:flex;flex-direction:column;pointer-events:none}tui-alerts>.t-wrapper>*{pointer-events:auto} +import{b as de}from"./chunk-JUA3DLL5.js";import{c as le}from"./chunk-TM3BF3MS.js";import{c as st,d as ce}from"./chunk-XENTLRKE.js";import{F as rt,G as ae,J as ue,M as pe,a as jt,b as Wt,d as gt,f as Vt,g as ie,k as _t,l as nt,n as ne,o as ot,r as oe,s as re,t as se}from"./chunk-DXP4LH76.js";import{$d as Xt,A as h,B as Tt,Ba as Et,Bb as d,Ca as P,Cb as f,Cf as ee,Db as g,Ea as p,Eb as w,Ec as X,Fb as S,Fd as K,Gb as G,H as $,Hb as q,I as pt,Ja as zt,Jb as ht,K as T,Ka as M,Kb as _,Kd as u,L as It,La as x,Lb as m,Lc as $t,Ld as Q,Mc as Y,Na as v,Nc as N,Ne as et,Pa as kt,Pc as C,Pe as Jt,Qa as Nt,Qd as Gt,S as j,T as Pt,Ta as At,Tb as D,Tc as J,Va as Ut,Vb as E,Ve as it,W as Mt,Wd as b,X as xt,Xe as Kt,Yd as Z,Za as dt,_d as qt,a as lt,ab as Bt,ae as tt,bc as O,cb as c,cc as z,da as Ft,df as Qt,ef as Zt,fe as A,g as yt,ga as wt,hb as Lt,i as Ct,ia as I,jc as y,kc as k,kf as te,lc as Ht,m as L,ma as St,mb as F,n as R,ob as Rt,qa as W,r as ut,rb as l,re as Yt,sb as mt,ta as Dt,tb as a,ub as V,vb as ft,w as H,wa as s,y as bt}from"./chunk-NEAIWFFQ.js";var at=class{constructor(t){this.el=t}get element(){return(this.el.nativeElement.tagName.includes("-")?this.el.nativeElement.querySelector("input,textarea"):this.el.nativeElement)||this.el.nativeElement}get isTextFieldElement(){return this.element.matches("input, textarea, [contenteditable]")}},be=1e3,Te=".ng-animating",vt=class extends at{constructor(t,o){super(t),this.animationFrame$=o}setFocus(){this.isTextFieldElement?It($(be),this.animationFrame$.pipe(St(100),h(()=>this.element.closest(Te)),wt(Boolean),j(1))).subscribe(()=>this.element.focus({preventScroll:!0})):this.element.focus({preventScroll:!0})}},Ie=["type","inputMode","autocomplete","accept","min","max","step","pattern","size","maxlength"],Ot=class extends at{constructor(t,o,i,n){super(t),this.renderer=o,this.zone=i,this.win=n,this.patchCssStyles()}setFocus(){this.isTextFieldElement?this.zone.runOutsideAngular(()=>this.iosWebkitAutofocus()):this.element.focus({preventScroll:!0})}iosWebkitAutofocus(){var B;let t=this.makeFakeInput(),o=this.getDurationTimeBeforeFocus(),i=0,n=0,r=()=>t.focus({preventScroll:!0}),U=()=>{clearTimeout(i),i=this.win.setTimeout(()=>{clearTimeout(n),t.removeEventListener("blur",r),t.removeEventListener("focus",U),n=this.win.setTimeout(()=>{this.element.focus({preventScroll:!1}),t.remove()},o)})};t.addEventListener("blur",r,{once:!0}),t.addEventListener("focus",U),this.insideDialog()?this.win.document.body.appendChild(t):(B=this.element.parentElement)==null||B.appendChild(t),t.focus({preventScroll:!0})}makeFakeInput(){let t=this.renderer.createElement("input"),o=this.element.getBoundingClientRect();return this.patchFakeInputFromFocusableElement(t),t.style.height=b(o.height),t.style.width=b(o.width/2),t.style.position="fixed",t.style.zIndex="-99999999",t.style.caretColor="transparent",t.style.border="none",t.style.outline="none",t.style.color="transparent",t.style.background="transparent",t.style.cursor="none",t.style.fontSize=b(16),t.style.top=b(o.top),t.style.left=b(o.left),t}getDurationTimeBeforeFocus(){return parseFloat(this.win.getComputedStyle(this.element).getPropertyValue("--tui-duration"))||0}insideDialog(){return!!this.element.closest("tui-dialog")}patchCssStyles(){[this.win.document.documentElement,this.win.document.body].forEach(t=>{t.style.setProperty("overflow","auto"),t.style.setProperty("height","100%")})}patchFakeInputFromFocusableElement(t){Ie.forEach(o=>{let i=this.element.getAttribute(o);Gt(i)&&t.setAttribute(o,i)})}},Pe={delay:NaN},Me=u(Pe);var fe=new Dt("[TUI_AUTOFOCUS_HANDLER]"),xe=[{provide:fe,useFactory:(e,t,o,i,n,r)=>r?new Ot(e,o,i,n):new vt(e,t),deps:[Ut,Jt,Lt,At,et,ae]}],he=(()=>{let t=class t{constructor(){this.handler=s(fe),this.options=s(Me),this.destroyRef=s(Nt)}ngAfterViewInit(){this.autoFocus&&this.focus()}focus(){Number.isNaN(this.options.delay)?Promise.resolve().then(()=>this.handler.setFocus()):$(this.options.delay).pipe(K(this.destroyRef)).subscribe(()=>this.handler.setFocus())}};t.\u0275fac=function(n){return new(n||t)},t.\u0275dir=p({type:t,selectors:[["","tuiAutoFocus",""]],inputs:{autoFocus:[2,"tuiAutoFocus","autoFocus",de]},standalone:!0,features:[O(xe),Rt]});let e=t;return e})();var ge=(()=>{let t=class t extends ne{constructor(){super(...arguments),this.service=s(st),this.open$=new L,this.options={},this.open=!1,this.openChange=this.open$.pipe(Mt(),Kt(()=>this.service.open(this,this.options).pipe(Pt(),xt(!1))),Ft())}ngOnChanges(){this.open$.next(this.open)}};t.\u0275fac=(()=>{let i;return function(r){return(i||(i=v(t)))(r||t)}})(),t.\u0275dir=p({type:t,features:[F,zt]});let e=t;return e})();var _e=(()=>{let t=class t{constructor(){this.doc=s(X),this.el=A(),this.activeElement=oe(this.doc),Promise.resolve().then(()=>this.el.focus())}ngOnDestroy(){re(this.doc),Promise.resolve().then(()=>{Xt(this.activeElement)&&this.activeElement.focus()})}onFocusIn(i){var n;Z(this.el,i)||(n=se({initial:this.el,root:this.el}))==null||n.focus()}};t.\u0275fac=function(n){return new(n||t)},t.\u0275dir=p({type:t,selectors:[["","tuiFocusTrap",""]],hostAttrs:["tabIndex","0"],hostBindings:function(n,r){n&1&&_("focusin.silent",function(B){return r.onFocusIn(B.target)},!1,Bt)},standalone:!0});let e=t;return e})();function we(e,t){if(e&1&&(w(0),D(1),S()),e&2){let o=t.polymorpheusOutlet;c(),E(" ",o," ")}}function Se(e,t){if(e&1&&(d(0,"header",6),l(1,we,2,1,"ng-container",3),f()),e&2){let o=m();c(),a("polymorpheusOutlet",o.header)("polymorpheusOutletContext",o.context)}}function De(e,t){if(e&1){let o=q();w(0),g(1,"div",7),d(2,"div",8)(3,"button",9),_("click",function(){M(o);let n=m();return x(n.context.$implicit.complete())}),D(4),f()(),S()}if(e&2){let o=t.polymorpheusOutlet,i=m();c(),a("innerHTML",o,dt),c(3),E(" ",(i.context.data==null?null:i.context.data.button)||"OK"," ")}}function Ee(e,t){if(e&1){let o=q();d(0,"div",10)(1,"button",11),_("click",function(){M(o);let n=m();return x(n.close$.next())})("mousedown.prevent.silent",function(){return M(o),x(0)}),D(2),y(3,"async"),f()()}if(e&2){let o=m();c(),V("border-radius",100,"%"),a("appearance",o.fullscreen?"secondary":"")("iconStart",o.icons.close),c(),E(" ",k(3,5,o.closeWord$)," ")}}function ze(e,t){e&1&&G(0)}function ke(e,t){if(e&1&&(d(0,"section",3),l(1,ze,1,0,"ng-container",4),g(2,"tui-scroll-controls",5),f()),e&2){let o=t.$implicit,i=m().ngIf;ft("t-dialog_closing",!i.length),a("@tuiHost",void 0),mt("aria-labelledby",o.id),c(),a("polymorpheusOutlet",o.component)("polymorpheusOutletContext",o)}}function Ne(e,t){if(e&1&&(w(0),l(1,ke,3,6,"section",1),g(2,"div",2),S()),e&2){let o=t.ngIf;c(),a("ngForOf",o),c(),V("opacity",o.length)}}var ye=u(new R([])),Ae={appearance:"",size:"m",required:!1,closeable:!0,dismissible:!0,label:"",header:"",data:void 0},Ue=u(ut),Be=u(Ae);var Le=17,ve=(()=>{let t=class t extends Ct{constructor(){super(i=>pt(this.esc$,this.mousedown$).subscribe(i)),this.win=s(et),this.doc=s(X),this.el=A(),this.esc$=it(this.doc,"keydown").pipe(T(i=>{let n=tt(i);return i.key==="Escape"&&!i.defaultPrevented&&(this.el.contains(n)||this.isOutside(n))})),this.mousedown$=it(this.doc,"mousedown").pipe(T(i=>ie(this.win)-i.clientX>Le&&this.isOutside(tt(i))),I(()=>it(this.doc,"mouseup").pipe(j(1),h(tt),T(i=>this.isOutside(i)))))}isOutside(i){return qt(i)&&(!Z(this.el,i)||i===this.el)}};t.\u0275fac=function(n){return new(n||t)},t.\u0275prov=W({token:t,factory:t.\u0275fac});let e=t;return e})(),Re=new Error("Required dialog was dismissed");function Oe(e){return bt(e)?e:H(e)}var He=(()=>{let t=class t{constructor(){this.speed=s(Qt),this.isMobile=s(rt),this.animation={value:"",params:{start:"40px",duration:_t(this.speed)}},this.fullscreenAnimation={value:"",params:{start:"100vh",duration:_t(this.speed)}},this.close$=new L,this.context=s(nt),this.closeWord$=s(te),this.icons=s(Zt),pt(this.close$.pipe(I(()=>Oe(this.context.closeable))),s(ve).pipe(I(()=>Oe(this.context.dismissible))),s(Ue).pipe(h(Yt))).pipe(T(Boolean),K()).subscribe(()=>{this.close()})}get size(){return this.context.size}get header(){return this.context.header}get slideInTop(){return this.fullscreen||this.isMobile?this.fullscreenAnimation:this.animation}get fullscreen(){return!this.isMobile&&(this.size==="fullscreen"||this.size==="page")}close(){this.context.required?this.context.$implicit.error(Re):this.context.$implicit.complete()}};t.\u0275fac=function(n){return new(n||t)},t.\u0275cmp=P({type:t,selectors:[["tui-dialog"]],hostVars:6,hostBindings:function(n,r){n&2&&(ht("@tuiSlideInTop",r.slideInTop)("@tuiFadeIn",r.slideInTop),mt("data-appearance",r.context.appearance)("data-size",r.size),ft("_centered",r.header))},standalone:!0,features:[O([ve]),z],decls:7,vars:6,consts:[["class","t-header",4,"ngIf"],[1,"t-content"],[1,"t-heading",3,"id","textContent"],[4,"polymorpheusOutlet","polymorpheusOutletContext"],[1,"t-filler"],["class","t-wrapper",4,"ngIf"],[1,"t-header"],[3,"innerHTML"],[1,"t-buttons"],["size","m","tuiAutoFocus","","tuiButton","","type","button",3,"click"],[1,"t-wrapper"],["automation-id","tui-dialog__close","size","s","tuiIconButton","","type","button",1,"t-close",3,"click","mousedown.prevent.silent","appearance","iconStart"]],template:function(n,r){n&1&&(l(0,Se,2,2,"header",0),d(1,"div",1),g(2,"h2",2),d(3,"section"),l(4,De,5,2,"ng-container",3),f()(),g(5,"div",4),l(6,Ee,4,7,"div",5)),n&2&&(a("ngIf",r.header),c(2),a("id",r.context.id)("textContent",r.context.label),c(2),a("polymorpheusOutlet",r.context.content)("polymorpheusOutletContext",r.context),c(2),a("ngIf",r.context.closeable))},dependencies:[N,ot,he,ee,C],styles:['[_nghost-%COMP%]{position:relative;display:flex;font:var(--tui-font-text-m);flex-direction:column;box-sizing:border-box;margin:auto;border-radius:1rem;border:2.5rem solid transparent}[_nghost-%COMP%]:after{position:absolute;top:0;left:0;width:100%;height:100%;content:"";border-radius:inherit;pointer-events:none;box-shadow:var(--tui-shadow-popup)}[data-size=auto][_nghost-%COMP%]{width:auto}[data-size=s][_nghost-%COMP%]{width:30rem}[data-size=s][_nghost-%COMP%] .t-content[_ngcontent-%COMP%]{padding:1.5rem}[data-size=s][_nghost-%COMP%] .t-heading[_ngcontent-%COMP%]{margin-bottom:.5rem;font:var(--tui-font-heading-5)}[data-size=m][_nghost-%COMP%]{width:42.5rem}[data-size=m][_nghost-%COMP%] .t-heading[_ngcontent-%COMP%]{margin-bottom:.75rem;font:var(--tui-font-heading-4)}[data-size=l][_nghost-%COMP%]{width:55rem}[data-size=l][_nghost-%COMP%] .t-heading[_ngcontent-%COMP%]{margin-bottom:1rem}[data-size=fullscreen][_nghost-%COMP%], [data-size=page][_nghost-%COMP%]{min-width:100vw;min-height:100%;border-radius:0;border:none;background:var(--tui-background-elevation-1);box-shadow:0 4rem var(--tui-background-elevation-1)}[data-size=fullscreen][_nghost-%COMP%] .t-content[_ngcontent-%COMP%], [data-size=page][_nghost-%COMP%] .t-content[_ngcontent-%COMP%]{padding:3rem calc(50vw - 22.5rem)}[data-size=fullscreen][_nghost-%COMP%] .t-heading[_ngcontent-%COMP%], [data-size=page][_nghost-%COMP%] .t-heading[_ngcontent-%COMP%]{margin-bottom:1rem}._centered[_nghost-%COMP%]{text-align:center}[_nghost-%COMP%] tui-root._mobile[data-size][_nghost-%COMP%], tui-root._mobile [data-size][_nghost-%COMP%]{min-width:100%;width:100%;max-width:100%;border-radius:0;border:none;margin:auto 0 0}[_nghost-%COMP%] tui-root._mobile[data-size][_nghost-%COMP%] .t-content[_ngcontent-%COMP%], tui-root._mobile [data-size][_nghost-%COMP%] .t-content[_ngcontent-%COMP%]{padding:1.5rem}[_nghost-%COMP%] tui-root._mobile[data-size][_nghost-%COMP%] .t-heading[_ngcontent-%COMP%], tui-root._mobile [data-size][_nghost-%COMP%] .t-heading[_ngcontent-%COMP%]{margin-bottom:.5rem;font:var(--tui-font-heading-5)}[data-size=page][_nghost-%COMP%] .t-content[_ngcontent-%COMP%], tui-root._mobile [data-size=page][_nghost-%COMP%] .t-content[_ngcontent-%COMP%]{padding:0}.t-heading[_ngcontent-%COMP%]{margin:0;word-wrap:break-word;font:var(--tui-font-heading-3)}.t-heading[_ngcontent-%COMP%]:empty{display:none}.t-header[_ngcontent-%COMP%]{display:flex;border-top-left-radius:inherit;border-top-right-radius:inherit;overflow:hidden}[data-size=fullscreen][_nghost-%COMP%] tui-root._mobile[_nghost-%COMP%] .t-header[_ngcontent-%COMP%], tui-root._mobile [_nghost-%COMP%] .t-header[_ngcontent-%COMP%]{flex:1}.t-content[_ngcontent-%COMP%]{border-radius:inherit;padding:2rem;background:var(--tui-background-elevation-1)}.t-content[_ngcontent-%COMP%]:not(:first-child){border-top-left-radius:0;border-top-right-radius:0}.t-wrapper[_ngcontent-%COMP%]{position:sticky;top:0;z-index:1;order:-1}.t-filler[_ngcontent-%COMP%]{flex-grow:1}.t-close[_ngcontent-%COMP%]{transition-property:background;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;position:fixed;top:1.5rem;right:1.5rem;display:none}.t-dialog:last-of-type[_nghost-%COMP%] .t-close[_ngcontent-%COMP%], .t-dialog:last-of-type [_nghost-%COMP%] .t-close[_ngcontent-%COMP%]{display:inline-flex}[_nghost-%COMP%]:not([data-size=fullscreen]):not([data-size=page]) .t-close[_ngcontent-%COMP%]{animation:tuiFadeIn var(--tui-duration);background:#686868f5;color:var(--tui-background-base)}[_nghost-%COMP%]:not([data-size=fullscreen]):not([data-size=page]) .t-close[_ngcontent-%COMP%]:hover{background:#9f9f9fdb}[_nghost-%COMP%]:not([data-size=fullscreen]).ng-animating .t-close[_ngcontent-%COMP%]{display:none}tui-root._mobile[_nghost-%COMP%] .t-close[data-size][_ngcontent-%COMP%], tui-root._mobile [_nghost-%COMP%] .t-close[data-size][_ngcontent-%COMP%]{--tui-fade-end: .5;position:absolute;top:0;right:0;background:transparent!important;color:var(--tui-text-primary);opacity:.5}.t-buttons[_ngcontent-%COMP%]{margin-top:1.25rem;text-align:right}'],data:{animation:[Vt,gt]}});let e=t;return e})(),$e=(()=>{let t=class t extends st{};t.\u0275fac=(()=>{let i;return function(r){return(i||(i=v(t)))(r||t)}})(),t.\u0275prov=W({token:t,factory:()=>new t(ye,He,s(Be)),providedIn:"root"});let e=t;return e})(),Vi=(()=>{let t=class t extends ge{};t.\u0275fac=(()=>{let i;return function(r){return(i||(i=v(t)))(r||t)}})(),t.\u0275dir=p({type:t,selectors:[["ng-template","tuiDialog",""]],inputs:{options:[0,"tuiDialogOptions","options"],open:[0,"tuiDialog","open"]},outputs:{openChange:"tuiDialogChange"},standalone:!0,features:[O([ce($e)]),F]});let e=t;return e})(),Gi=(()=>{let t=class t{constructor(){this.el=A(),this.dialogs$=s(ye)}};t.\u0275fac=function(n){return new(n||t)},t.\u0275cmp=P({type:t,selectors:[["tui-dialogs"]],hostBindings:function(n,r){n&1&&_("keydown.silent",function(){return r.el.scrollTop=r.el.scrollHeight/2})},standalone:!0,features:[z],decls:2,vars:3,consts:[[4,"ngIf"],["aria-modal","true","role","dialog","tuiFocusTrap","","tuiScrollRef","","class","t-dialog",3,"t-dialog_closing",4,"ngFor","ngForOf"],[1,"t-overlay"],["aria-modal","true","role","dialog","tuiFocusTrap","","tuiScrollRef","",1,"t-dialog"],[4,"polymorpheusOutlet","polymorpheusOutletContext"],[1,"t-scrollbars"]],template:function(n,r){n&1&&(l(0,Ne,3,3,"ng-container",0),y(1,"async")),n&2&&a("ngIf",k(1,1,r.dialogs$))},dependencies:[J,Y,N,C,ot,_e,ue,pe],styles:['[_nghost-%COMP%]{position:fixed;top:0;left:0;width:100%;height:100%;scrollbar-width:none;-ms-overflow-style:none;pointer-events:none;overflow:hidden;overscroll-behavior:none}[_nghost-%COMP%]::-webkit-scrollbar, [_nghost-%COMP%]::-webkit-scrollbar-thumb{display:none}[_nghost-%COMP%]:has(section){pointer-events:auto;overflow:auto}[_nghost-%COMP%]:before{content:"";display:block;height:1000%}.t-overlay[_ngcontent-%COMP%], .t-dialog[_ngcontent-%COMP%]{scrollbar-width:none;-ms-overflow-style:none;position:fixed;top:0;left:0;bottom:0;right:0;display:flex;height:100%;align-items:flex-start;outline:none;overflow:auto}.t-overlay[_ngcontent-%COMP%]::-webkit-scrollbar, .t-dialog[_ngcontent-%COMP%]::-webkit-scrollbar, .t-overlay[_ngcontent-%COMP%]::-webkit-scrollbar-thumb, .t-dialog[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{display:none}.t-overlay.ng-animating[_ngcontent-%COMP%], .t-dialog.ng-animating[_ngcontent-%COMP%]{overflow:clip}.t-dialog[_ngcontent-%COMP%]{position:sticky;pointer-events:auto;overscroll-behavior:none}.t-overlay[_ngcontent-%COMP%]{transition-property:opacity;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;background:var(--tui-service-backdrop);-webkit-backdrop-filter:var(--tui-backdrop, none);backdrop-filter:var(--tui-backdrop, none)}.t-dialog[_ngcontent-%COMP%]:last-of-type{z-index:1}.t-scrollbars[_ngcontent-%COMP%]{position:fixed;top:0;left:0;bottom:0;right:0;margin:0;color:#747474}'],data:{animation:[Wt]}});let e=t;return e})();var je={info:"@tui.info",success:"@tui.circle-check",error:"@tui.circle-x",warning:"@tui.circle-alert",neutral:"@tui.info"},We={appearance:"info",icon:e=>je[e],size:"l"},Ce=u(We);function Ve(e,t){if(e&1&&(G(0,3),y(1,"tuiMapper")),e&2){let o=t.$implicit,i=m(2);a("ngComponentOutlet",o.component.component)("ngComponentOutletInjector",Ht(1,2,o,i.mapper))}}function Ge(e,t){if(e&1&&(d(0,"div",1),l(1,Ve,2,5,"ng-container",2),f()),e&2){let o=t.$implicit;a("@tuiParentAnimation",void 0),c(),a("ngForOf",o)}}var qe={autoClose:3e3,label:"",closeable:!0,data:void 0},yn=Q(()=>lt(lt({},qe),s(Ce))),Cn=Q(()=>s(rt)?"1rem 1rem 0 auto":"2rem 3rem 0 auto"),Xe=u(new R([])),Ye=Q(()=>Tt([H(new Map),s(Xe)]).pipe(h(([e,t])=>(e.forEach((o,i)=>e.set(i,[])),t.forEach(o=>{let i=o.component.component,n=e.get(i)||[];e.set(i,[...n,o])}),Array.from(e.values())))));var bn=(()=>{let t=class t{constructor(){this.injector=s(Et),this.alerts$=s(Ye),this.trackBy=yt,this.mapper=i=>kt.create({providers:[{provide:nt,useValue:i}],parent:this.injector})}};t.\u0275fac=function(n){return new(n||t)},t.\u0275cmp=P({type:t,selectors:[["tui-alerts"]],standalone:!0,features:[z],decls:2,vars:4,consts:[["class","t-wrapper",4,"ngFor","ngForOf","ngForTrackBy"],[1,"t-wrapper"],[3,"ngComponentOutlet","ngComponentOutletInjector",4,"ngFor","ngForOf"],[3,"ngComponentOutlet","ngComponentOutletInjector"]],template:function(n,r){n&1&&(l(0,Ge,2,2,"div",0),y(1,"async")),n&2&&a("ngForOf",k(1,2,r.alerts$))("ngForTrackBy",r.trackBy)},dependencies:[J,$t,Y,C,le],styles:[`tui-alerts>.t-wrapper{position:fixed;top:0;left:0;width:100%;height:100%;display:flex;flex-direction:column;pointer-events:none}tui-alerts>.t-wrapper>*{pointer-events:auto} `],encapsulation:2,data:{animation:[jt]}});let e=t;return e})();export{Xe as a,bn as b,he as c,ye as d,$e as e,Vi as f,Gi as g}; diff --git a/chunk-MIQNTQBH.js b/chunk-MIQNTQBH.js deleted file mode 100644 index 8ecff28d5..000000000 --- a/chunk-MIQNTQBH.js +++ /dev/null @@ -1 +0,0 @@ -import{J as De,O as Te,T,U as Ie,W as Oe,e as pe,q as ge,r as ve,v as ye,w as Ce,x as _e,z as Ee}from"./chunk-DNEQ7KDT.js";import{$ as D,Ga as he,U as p,Z as de,_ as ce,c as ie,d as ne,ha as fe,i as ae,la as me,n as ue,t as le}from"./chunk-OKL4RZMA.js";import{A as j,Bb as f,Ca as h,Cb as v,Da as H,Ea as L,Eb as F,Fa as N,Fb as P,Kb as m,Lb as y,Mb as k,Md as E,Na as b,Nb as A,Nc as K,Ob as U,Pb as S,Pc as ee,Qb as C,Rb as _,Tb as z,Tc as te,Vb as Z,Vd as R,Xb as W,Yb as $,Zb as q,bc as M,cb as d,cc as X,dc as G,df as oe,fb as B,hd as re,i as I,id as x,jc as J,kc as Y,mb as w,mf as se,ra as V,rb as g,sb as Q,t as O,tb as l,w as c,wa as a}from"./chunk-NEAIWFFQ.js";var Pe=()=>({});function Ae(r,t){if(r&1&&(F(0),z(1),P()),r&2){let u=t.polymorpheusOutlet;d(),Z(" ",u," ")}}function Se(r,t){if(r&1&&(f(0,"div",2),g(1,Ae,2,1,"ng-container",3),v()),r&2){let u=y().tuiLet,e=y();l("@tuiFadeIn",e.options)("@tuiHeightCollapse",e.options),d(),l("polymorpheusOutlet",e.error.message||u)("polymorpheusOutletContext",e.error.context||G(4,Pe))}}function Me(r,t){if(r&1&&(F(0),g(1,Se,2,5,"div",1),P()),r&2){let u=y();d(),l("ngIf",u.error&&u.visible)}}var Xe=(()=>{let t=class t{constructor(){this.options=ae(a(oe)),this.error=null,this.visible=!0,this.defaultErrorMessage$=a(se)}set errorSetter(e){this.error=E(e)?new p(e):e}onAnimation(e){this.visible=e}};t.\u0275fac=function(n){return new(n||t)},t.\u0275cmp=h({type:t,selectors:[["tui-error"]],hostBindings:function(n,i){n&1&&m("animationcancel.self",function(){return i.onAnimation(!1)})("animationstart.self",function(){return i.onAnimation(!0)})},inputs:{errorSetter:[0,"error","errorSetter"]},standalone:!0,features:[X],decls:2,vars:3,consts:[[4,"tuiLet"],["automation-id","tui-error__text","class","t-message-text",4,"ngIf"],["automation-id","tui-error__text",1,"t-message-text"],[4,"polymorpheusOutlet","polymorpheusOutletContext"]],template:function(n,i){n&1&&(g(0,Me,2,1,"ng-container",0),J(1,"async")),n&2&&l("tuiLet",Y(1,1,i.defaultErrorMessage$))},dependencies:[ee,K,ue,pe],styles:["[_nghost-%COMP%]{display:block;font:var(--tui-font-text-s);color:var(--tui-text-negative);word-wrap:break-word;animation:tuiPresent 1s infinite}.t-message-text[_ngcontent-%COMP%]{margin-top:.25rem;white-space:pre-line}"],data:{animation:[ie,ne]},changeDetection:0});let r=t;return r})();var xe={};function we(r,t){return r.pipe(j(u=>new p(u||"",t)))}function Fe(r,t){return c(new p(r||"",t))}var at=(()=>{let t=class t{constructor(){this.order=[],this.parent=a(x,{skipSelf:!0,optional:!0}),this.self=a(x,{self:!0,optional:!0}),this.container=a(re,{optional:!0}),this.validationErrors=a(he),this.self&&!this.self.valueAccessor&&(this.self.valueAccessor=this)}transform(e){return this.order=e,this.computedError}registerOnChange(){}registerOnTouched(){}setDisabledState(){}writeValue(){}get computedError(){return this.invalid&&this.touched&&this.error||c(null)}get error(){let{errorId:e}=this;if(!e)return null;let n=this.controlErrors[e],i=this.validationErrors[e];return this.getError(n,i)}get invalid(){var e;return!!((e=this.control)!=null&&e.invalid)}get touched(){var e;return!!((e=this.control)!=null&&e.touched)}get control(){var e,n,i;return((e=this.self)==null?void 0:e.control)||((n=this.parent)==null?void 0:n.control)||((i=this.container)==null?void 0:i.control)}get errorId(){return this.getErrorId(this.order,this.controlErrors)}get controlErrors(){var e;return((e=this.control)==null?void 0:e.errors)||xe}getError(e,n){if(e instanceof p)return c(e);if(n===void 0&&E(e))return c(new p(e));if(n instanceof I)return we(n,e);if(n instanceof Function){let i=n(e);return i instanceof I?we(i,e):Fe(i,e)}return Fe(n,e)}getErrorId(e,n){let i=e==null?void 0:e.find(s=>n[s]),o=Object.keys(n)[0];return i||o||""}};t.\u0275fac=function(n){return new(n||t)},t.\u0275pipe=N({name:"tuiFieldError",type:t,pure:!1,standalone:!0});let r=t;return O([R],r.prototype,"getError",null),O([R],r.prototype,"getErrorId",null),r})();var Re=["*",[["input"]]],je=["*","input"],Pt=(()=>{let t=class t extends Ce{constructor(){super(...arguments),this.textfieldSize=a(De),this.open=!1}get size(){return this.textfieldSize.size}get nativeFocusableElement(){return this.computedDisabled||!this.textfield?null:this.textfield.nativeFocusableElement}get focused(){var e;return le(this.nativeFocusableElement)||!!((e=this.dropdown)!=null&&e.tuiDropdownOpen)}handleOption(e){this.setNativeValue(String(e)),this.focusInput(),this.value=String(e),this.open=!1}onValueChange(e){this.value=e,this.open=!0}get canOpen(){return this.interactive&&!!this.datalist}onActiveZone(e){this.updateFocused(e)}getFallbackValue(){return""}focusInput(e=!1){this.nativeFocusableElement&&this.nativeFocusableElement.focus({preventScroll:e})}setNativeValue(e){this.nativeFocusableElement&&(this.nativeFocusableElement.value=e)}};t.\u0275fac=(()=>{let e;return function(i){return(e||(e=b(t)))(i||t)}})(),t.\u0275cmp=h({type:t,selectors:[["tui-input"]],contentQueries:function(n,i,o){if(n&1&&U(o,me,5,B),n&2){let s;C(s=_())&&(i.datalist=s.first)}},viewQuery:function(n,i){if(n&1&&(S(D,5),S(T,5)),n&2){let o;C(o=_())&&(i.dropdown=o.first),C(o=_())&&(i.textfield=o.first)}},hostVars:1,hostBindings:function(n,i){n&2&&Q("data-size",i.size)},features:[M([Te,ve(t),fe(t),_e(t)],[ge]),w],ngContentSelectors:je,decls:4,vars:11,consts:[["tuiDropdownOpenMonitor","",1,"t-hosted",3,"tuiDropdownOpenChange","tuiActiveZoneChange","tuiDropdown","tuiDropdownEnabled","tuiDropdownOpen"],["automation-id","tui-input__textfield",1,"t-textfield",3,"valueChange","disabled","focusable","invalid","nativeId","pseudoFocus","pseudoHover","readOnly","value"]],template:function(n,i){n&1&&(k(Re),f(0,"div",0),q("tuiDropdownOpenChange",function(s){return $(i.open,s)||(i.open=s),s}),m("tuiActiveZoneChange",function(s){return i.onActiveZone(s)}),f(1,"tui-primitive-textfield",1),m("valueChange",function(s){return i.onValueChange(s)}),A(2),A(3,1,["ngProjectAs","input",5,["input"]]),v()()),n&2&&(l("tuiDropdown",i.datalist||"")("tuiDropdownEnabled",i.canOpen),W("tuiDropdownOpen",i.open),d(),l("disabled",i.computedDisabled)("focusable",i.computedFocusable)("invalid",i.computedInvalid)("nativeId",i.nativeId)("pseudoFocus",i.computedFocused)("pseudoHover",i.pseudoHover)("readOnly",i.readOnly)("value",i.value))},dependencies:[T,Ie,de,D],styles:["[_nghost-%COMP%]{display:block;border-radius:var(--tui-radius-m);text-align:left}._disabled[_nghost-%COMP%]{pointer-events:none}.t-hosted[_ngcontent-%COMP%]{display:block;border-radius:inherit}.t-textfield[_ngcontent-%COMP%]{border-radius:inherit;text-align:inherit}"],changeDetection:0});let r=t;return r})(),At=(()=>{let t=class t extends Ee{onValueChange(e){this.host.onValueChange(e)}};t.\u0275fac=(()=>{let e;return function(i){return(e||(e=b(t)))(i||t)}})(),t.\u0275dir=L({type:t,selectors:[["tui-input"]],features:[M([ye(t)]),w]});let r=t;return r})(),St=(()=>{let t=class t{};t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=H({type:t}),t.\u0275inj=V({imports:[te,Oe,ce]});let r=t;return r})();export{Xe as a,at as b,Pt as c,At as d,St as e}; diff --git a/chunk-VEFAKPD5.js b/chunk-N6CP2Y4H.js similarity index 94% rename from chunk-VEFAKPD5.js rename to chunk-N6CP2Y4H.js index ccbf0a28d..086dc5360 100644 --- a/chunk-VEFAKPD5.js +++ b/chunk-N6CP2Y4H.js @@ -1 +1 @@ -import{a as ne,b as oe,c as ae}from"./chunk-TZLWDFXK.js";import{a as z,b as Q,c as te,d as ie,e as re}from"./chunk-MIQNTQBH.js";import{a as W}from"./chunk-LS7UCRAC.js";import{V as ee,a as H,g as Y,k as K}from"./chunk-DNEQ7KDT.js";import{Ga as J}from"./chunk-OKL4RZMA.js";import{d as k}from"./chunk-GIHFJXZ6.js";import{a as U,b as X,c as Z}from"./chunk-VVRWXTJV.js";import{A as C,Bb as e,Ca as T,Cb as t,Cf as $,Db as i,H as P,Hd as j,Kb as _,Pc as F,Tb as o,Tc as L,bc as E,cb as n,cc as O,dc as d,dd as N,gd as l,ha as x,ia as S,jc as m,jd as B,kc as p,kd as I,ke as q,ld as D,m as y,nd as g,pd as A,tb as u,td as G,ub as a,ud as V,w,wa as M,zd as R}from"./chunk-NEAIWFFQ.js";var b=()=>[],me=s=>{let r=s.get("password"),c=s.get("confirmPassword");return(r==null?void 0:r.value)===(c==null?void 0:c.value)||!(r!=null&&r.touched)||!(c!=null&&c.touched)?null:{differentPasswords:!0}},Te=(()=>{let r=class r{constructor(){this.router=M(k),this.form=new D({email:new g("",[l.required,l.email]),password:new g("",[l.required,l.minLength(5)]),confirmPassword:new g("",[l.required,l.minLength(5)]),rememberMe:new g(!1)},{validators:me}),this.submit$=new y,this.submitLoader=j(this.submit$.pipe(S(()=>P(4e3).pipe(C(()=>this.goMain()),x(!0)))),{initialValue:!1})}goMain(){return this.router.navigate([""]),!1}onSubmit(){this.form.valid&&(this.form.disable(),this.submit$.next())}};r.\u0275fac=function(f){return new(f||r)},r.\u0275cmp=T({type:r,selectors:[["lmb-sign-up"]],standalone:!0,features:[E([{provide:J,useValue:{required:"Value can't be empty",email:"Invalid email",minlength:({requiredLength:v})=>w(`Minimum length \u2014 ${v}`),differentPasswords:"Passwords must be the same"}}]),O],decls:52,vars:53,consts:[["tuiAppearance","whiteblock","tuiCardLarge","normal",1,"card"],["tuiHeader",""],["tuiTitle",""],[3,"submit","formGroup"],["formControlName","email","type","email",1,"block-input"],["tuiTextfieldLegacy",""],["formControlName","email",3,"error"],["formControlName","password","type","password",1,"block-input"],["formControlName","password",3,"error"],["formControlName","confirmPassword","type","password",1,"block-input"],["formControlName","confirmPassword",3,"error"],[1,"error-passwords",3,"error","formGroup"],[1,"under-password"],["tuiLabel",""],["checked","","formControlName","rememberMe","tuiCheckbox","","type","checkbox"],[3,"inheritColor","overlay","showLoader"],["size","m","tuiButton",""],[1,"or"],[1,"line"],["tuiSubtitle","",1,"tui-space_top-0","tui-space_bottom-0"],[1,"tui-space_top-2","tui-space_bottom-2","icons-title"],[1,"icons"],["appearance","icon","tuiButton","",1,"icon-sign-up"],["alt","google icon","src","./google.svg",1,"icon-sign-up"],["alt","github icon","src","./github-mark.svg",1,"icon-sign-up"],["alt","apple icon","src","./apple.svg",1,"icon-sign-up"],["tuiLink","",1,"center"]],template:function(f,h){f&1&&(e(0,"div",0)(1,"header",1)(2,"h2",2),o(3," Sign up "),t()(),e(4,"form",3),_("submit",function(){return h.onSubmit()}),e(5,"tui-input",4),o(6," email "),i(7,"input",5),t(),i(8,"tui-error",6),m(9,"tuiFieldError"),m(10,"async"),e(11,"tui-input-password",7),o(12," password "),i(13,"input",5),t(),i(14,"tui-error",8),m(15,"tuiFieldError"),m(16,"async"),e(17,"tui-input-password",9),o(18," confirm password "),i(19,"input",5),t(),i(20,"tui-error",10),m(21,"tuiFieldError"),m(22,"async"),i(23,"tui-error",11),m(24,"tuiFieldError"),m(25,"async"),e(26,"div",12)(27,"label",13),i(28,"input",14),e(29,"span",2),o(30," Remember me "),t()()(),e(31,"tui-loader",15)(32,"button",16),o(33," Sign up "),t()(),e(34,"div",17),i(35,"hr",18),e(36,"p",19),o(37," or "),t(),i(38,"hr",18),t(),e(39,"p",20),o(40,"Sign up with"),t(),e(41,"div",21)(42,"button",22),i(43,"img",23),t(),e(44,"button",22),i(45,"img",24),t(),e(46,"button",22),i(47,"img",25),t()(),e(48,"a",26),o(49," Already have an account? "),e(50,"span"),o(51,"Login"),t()()()()),f&2&&(n(2),a("text-align","center"),n(2),u("formGroup",h.form),n(4),a("margin-bottom","0.8rem")("margin-right","auto"),u("error",p(10,35,p(9,33,d(49,b)))),n(6),a("margin-bottom","0.8rem")("margin-right","auto"),u("error",p(16,39,p(15,37,d(50,b)))),n(6),a("margin-bottom","0.8rem")("margin-right","auto"),u("error",p(22,43,p(21,41,d(51,b)))),n(3),u("error",p(25,47,p(24,45,d(52,b))))("formGroup",h.form),n(6),a("color","var(--tui-text-secondary)"),n(2),a("width","100%"),u("inheritColor",!0)("overlay",!0)("showLoader",h.submitLoader()),n(),a("width","100%"),n(16),a("margin-top","0.5rem"),n(2),a("font-weight","500"))},dependencies:[L,F,R,A,N,B,I,G,V,q,$,X,K,z,Q,Z,re,te,ie,ee,ae,ne,oe,Y,H,W,U],styles:["[_nghost-%COMP%]{height:calc(100vh - 3rem)}.card[_ngcontent-%COMP%]{top:50%;bottom:50%;width:max-content;margin:auto;transform:translateY(-50%);height:max-content}.block-input[_ngcontent-%COMP%]{margin-bottom:.3rem;width:20rem}@media (max-width: 29rem){.block-input[_ngcontent-%COMP%]{width:16rem}}.center[_ngcontent-%COMP%]{margin-left:auto;margin-right:auto;text-align:center}form[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center}.under-password[_ngcontent-%COMP%]{display:flex;justify-content:space-between;width:100%;margin-bottom:1.5rem}.or[_ngcontent-%COMP%]{display:flex;margin-top:.5rem;width:100%;justify-content:center;align-items:center;color:var(--tui-text-secondary);gap:.5rem}.line[_ngcontent-%COMP%]{flex-grow:1}.icon-sign-up[_ngcontent-%COMP%]{transition:opacity .3s;width:1.8rem;height:1.8rem}.icon-sign-up[_ngcontent-%COMP%]:hover{opacity:.8}.icon-sign-up[_ngcontent-%COMP%]:active{opacity:.95}.error[_ngcontent-%COMP%]{color:var(--tui-text-negative);font:var(--tui-font-text-s);margin-right:auto}.icons[_ngcontent-%COMP%]{display:flex;gap:1rem}.icons-title[_ngcontent-%COMP%]{font-weight:700}.error-passwords[_ngcontent-%COMP%]{margin-bottom:.8rem;margin-right:auto}"],changeDetection:0});let s=r;return s})();export{Te as SignUpComponent,me as checkPasswords}; +import{a as ne,b as oe,c as ae}from"./chunk-O52MZMLS.js";import{a as z,b as Q,c as te,d as ie,e as re}from"./chunk-OU5F42O3.js";import{a as W}from"./chunk-ZYN4Y54G.js";import{V as ee,a as H,g as Y,k as K}from"./chunk-XENTLRKE.js";import{Ha as J}from"./chunk-DXP4LH76.js";import{d as k}from"./chunk-GIHFJXZ6.js";import{a as U,b as X,c as Z}from"./chunk-VVRWXTJV.js";import{A as C,Bb as e,Ca as T,Cb as t,Cf as $,Db as i,H as P,Hd as j,Kb as _,Pc as F,Tb as o,Tc as L,bc as E,cb as n,cc as O,dc as d,dd as N,gd as l,ha as x,ia as S,jc as m,jd as B,kc as p,kd as I,ke as q,ld as D,m as y,nd as g,pd as A,tb as u,td as G,ub as a,ud as V,w,wa as M,zd as R}from"./chunk-NEAIWFFQ.js";var b=()=>[],me=s=>{let r=s.get("password"),c=s.get("confirmPassword");return(r==null?void 0:r.value)===(c==null?void 0:c.value)||!(r!=null&&r.touched)||!(c!=null&&c.touched)?null:{differentPasswords:!0}},Te=(()=>{let r=class r{constructor(){this.router=M(k),this.form=new D({email:new g("",[l.required,l.email]),password:new g("",[l.required,l.minLength(5)]),confirmPassword:new g("",[l.required,l.minLength(5)]),rememberMe:new g(!1)},{validators:me}),this.submit$=new y,this.submitLoader=j(this.submit$.pipe(S(()=>P(4e3).pipe(C(()=>this.goMain()),x(!0)))),{initialValue:!1})}goMain(){return this.router.navigate([""]),!1}onSubmit(){this.form.valid&&(this.form.disable(),this.submit$.next())}};r.\u0275fac=function(f){return new(f||r)},r.\u0275cmp=T({type:r,selectors:[["lmb-sign-up"]],standalone:!0,features:[E([{provide:J,useValue:{required:"Value can't be empty",email:"Invalid email",minlength:({requiredLength:v})=>w(`Minimum length \u2014 ${v}`),differentPasswords:"Passwords must be the same"}}]),O],decls:52,vars:53,consts:[["tuiAppearance","whiteblock","tuiCardLarge","normal",1,"card"],["tuiHeader",""],["tuiTitle",""],[3,"submit","formGroup"],["formControlName","email","type","email",1,"block-input"],["tuiTextfieldLegacy",""],["formControlName","email",3,"error"],["formControlName","password","type","password",1,"block-input"],["formControlName","password",3,"error"],["formControlName","confirmPassword","type","password",1,"block-input"],["formControlName","confirmPassword",3,"error"],[1,"error-passwords",3,"error","formGroup"],[1,"under-password"],["tuiLabel",""],["checked","","formControlName","rememberMe","tuiCheckbox","","type","checkbox"],[3,"inheritColor","overlay","showLoader"],["size","m","tuiButton",""],[1,"or"],[1,"line"],["tuiSubtitle","",1,"tui-space_top-0","tui-space_bottom-0"],[1,"tui-space_top-2","tui-space_bottom-2","icons-title"],[1,"icons"],["appearance","icon","tuiButton","",1,"icon-sign-up"],["alt","google icon","src","./google.svg",1,"icon-sign-up"],["alt","github icon","src","./github-mark.svg",1,"icon-sign-up"],["alt","apple icon","src","./apple.svg",1,"icon-sign-up"],["tuiLink","",1,"center"]],template:function(f,h){f&1&&(e(0,"div",0)(1,"header",1)(2,"h2",2),o(3," Sign up "),t()(),e(4,"form",3),_("submit",function(){return h.onSubmit()}),e(5,"tui-input",4),o(6," email "),i(7,"input",5),t(),i(8,"tui-error",6),m(9,"tuiFieldError"),m(10,"async"),e(11,"tui-input-password",7),o(12," password "),i(13,"input",5),t(),i(14,"tui-error",8),m(15,"tuiFieldError"),m(16,"async"),e(17,"tui-input-password",9),o(18," confirm password "),i(19,"input",5),t(),i(20,"tui-error",10),m(21,"tuiFieldError"),m(22,"async"),i(23,"tui-error",11),m(24,"tuiFieldError"),m(25,"async"),e(26,"div",12)(27,"label",13),i(28,"input",14),e(29,"span",2),o(30," Remember me "),t()()(),e(31,"tui-loader",15)(32,"button",16),o(33," Sign up "),t()(),e(34,"div",17),i(35,"hr",18),e(36,"p",19),o(37," or "),t(),i(38,"hr",18),t(),e(39,"p",20),o(40,"Sign up with"),t(),e(41,"div",21)(42,"button",22),i(43,"img",23),t(),e(44,"button",22),i(45,"img",24),t(),e(46,"button",22),i(47,"img",25),t()(),e(48,"a",26),o(49," Already have an account? "),e(50,"span"),o(51,"Login"),t()()()()),f&2&&(n(2),a("text-align","center"),n(2),u("formGroup",h.form),n(4),a("margin-bottom","0.8rem")("margin-right","auto"),u("error",p(10,35,p(9,33,d(49,b)))),n(6),a("margin-bottom","0.8rem")("margin-right","auto"),u("error",p(16,39,p(15,37,d(50,b)))),n(6),a("margin-bottom","0.8rem")("margin-right","auto"),u("error",p(22,43,p(21,41,d(51,b)))),n(3),u("error",p(25,47,p(24,45,d(52,b))))("formGroup",h.form),n(6),a("color","var(--tui-text-secondary)"),n(2),a("width","100%"),u("inheritColor",!0)("overlay",!0)("showLoader",h.submitLoader()),n(),a("width","100%"),n(16),a("margin-top","0.5rem"),n(2),a("font-weight","500"))},dependencies:[L,F,R,A,N,B,I,G,V,q,$,X,K,z,Q,Z,re,te,ie,ee,ae,ne,oe,Y,H,W,U],styles:["[_nghost-%COMP%]{height:calc(100vh - 3rem)}.card[_ngcontent-%COMP%]{top:50%;bottom:50%;width:max-content;margin:auto;transform:translateY(-50%);height:max-content}.block-input[_ngcontent-%COMP%]{margin-bottom:.3rem;width:20rem}@media (max-width: 29rem){.block-input[_ngcontent-%COMP%]{width:16rem}}.center[_ngcontent-%COMP%]{margin-left:auto;margin-right:auto;text-align:center}form[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center}.under-password[_ngcontent-%COMP%]{display:flex;justify-content:space-between;width:100%;margin-bottom:1.5rem}.or[_ngcontent-%COMP%]{display:flex;margin-top:.5rem;width:100%;justify-content:center;align-items:center;color:var(--tui-text-secondary);gap:.5rem}.line[_ngcontent-%COMP%]{flex-grow:1}.icon-sign-up[_ngcontent-%COMP%]{transition:opacity .3s;width:1.8rem;height:1.8rem}.icon-sign-up[_ngcontent-%COMP%]:hover{opacity:.8}.icon-sign-up[_ngcontent-%COMP%]:active{opacity:.95}.error[_ngcontent-%COMP%]{color:var(--tui-text-negative);font:var(--tui-font-text-s);margin-right:auto}.icons[_ngcontent-%COMP%]{display:flex;gap:1rem}.icons-title[_ngcontent-%COMP%]{font-weight:700}.error-passwords[_ngcontent-%COMP%]{margin-bottom:.8rem;margin-right:auto}"],changeDetection:0});let s=r;return s})();export{Te as SignUpComponent,me as checkPasswords}; diff --git a/chunk-TZLWDFXK.js b/chunk-O52MZMLS.js similarity index 96% rename from chunk-TZLWDFXK.js rename to chunk-O52MZMLS.js index 822351b3a..4befa5541 100644 --- a/chunk-TZLWDFXK.js +++ b/chunk-O52MZMLS.js @@ -1 +1 @@ -import{E as _e,J as fe,L as he,T as f,U as ge,W as Te,r as ae,v as ce,w as le,x as de,z as me}from"./chunk-DNEQ7KDT.js";import{Ba as pe,m as ne,n as oe,oa as re,qa as se,ra as ue}from"./chunk-OKL4RZMA.js";import{A,Bb as y,Ca as S,Cb as C,Da as E,Df as _,Ea as M,Eb as j,Fb as B,Hb as w,Ka as p,Kb as x,Kd as ee,La as a,Lb as s,Mb as N,Na as g,Nb as P,Nc as Z,Pb as U,Pc as G,Qb as W,Rb as R,Sb as I,Tb as $,Tc as J,Vb as Q,Xb as L,Yb as X,Zb as q,Zd as te,bc as D,cb as T,ec as Y,ha as h,jc as O,kc as F,ke as ie,mb as v,pc as b,r as H,ra as V,rb as m,sb as k,tb as c,vb as z,wa as d,yd as K}from"./chunk-NEAIWFFQ.js";var ye=["*",[["input"]]],Ce=["*","input"],we=n=>({$implicit:n});function xe(n,e){if(n&1){let r=w();y(0,"tui-icon",7),O(1,"async"),x("click",function(){p(r);let o=s(3);return a(o.togglePasswordVisibility())})("mousedown.silent.prevent",function(){return p(r),a(0)})("mouseup.silent.prevent",function(){return p(r),a(0)}),C()}if(n&2){let r=e.polymorpheusOutlet,t=s().ngIf,o=I(3),i=s(2);z("t-icon_small",i.size==="s"),c("icon",r.toString())("tuiHint",t[0]&&t[1]&&o)("tuiHintAppearance",F(1,6,i.computedAppearance$)||"")("tuiHintDirection",(i.hintOptions==null?null:i.hintOptions.direction)||"bottom-left")}}function Pe(n,e){if(n&1&&$(0),n&2){let r=s().ngIf,t=s(2);Q(" ",t.isPasswordHidden?r[0]:r[1]," ")}}function Ie(n,e){if(n&1&&(j(0),m(1,xe,2,8,"tui-icon",5)(2,Pe,1,1,"ng-template",6,1,b),B()),n&2){let r=s(2);T(),c("polymorpheusOutlet",r.icon)("polymorpheusOutletContext",Y(2,we,r.size))}}function De(n,e){if(n&1&&(m(0,Ie,4,4,"ng-container",4),O(1,"async")),n&2){let r=s();c("ngIf",F(1,1,r.passwordTexts$))}}var Oe={icons:{hide:()=>"@tui.eye",show:()=>"@tui.eye-off"}},Fe=ee(Oe);var ot=(()=>{let e=class e extends le{constructor(){var t;super(...arguments),this.textfieldSize=d(fe),this.hintOptions=d(re,{optional:!0}),this.directive$=((t=this.hintOptions)==null?void 0:t.change$)||H,this.isPasswordHidden=!0,this.computedAppearance$=this.directive$.pipe(h(null),A(()=>{var o;return((o=this.hintOptions)==null?void 0:o.appearance)||""}),h("")),this.passwordTexts$=d(pe),this.options=d(Fe)}get nativeFocusableElement(){return this.computedDisabled||!this.textfield?null:this.textfield.nativeFocusableElement}get focused(){var t;return!!((t=this.textfield)!=null&&t.focused)}get inputType(){return this.isPasswordHidden||this.computedDisabled?"password":"text"}onValueChange(t){this.value=t}get size(){return this.textfieldSize.size}get icon(){return this.isPasswordHidden?this.options.icons.show:this.options.icons.hide}onFocused(t){this.updateFocused(t)}togglePasswordVisibility(){this.isPasswordHidden=!this.isPasswordHidden}getFallbackValue(){return""}};e.\u0275fac=(()=>{let t;return function(i){return(t||(t=g(e)))(i||e)}})(),e.\u0275cmp=S({type:e,selectors:[["tui-input-password"]],viewQuery:function(o,i){if(o&1&&U(f,5),o&2){let u;W(u=R())&&(i.textfield=u.first)}},hostVars:1,hostBindings:function(o,i){o&2&&k("data-size",i.size)},features:[D([ae(e),de(e)]),v],ngContentSelectors:Ce,decls:5,vars:11,consts:[["iconContent","polymorpheus"],["hintContent","polymorpheus"],[1,"t-textfield",3,"valueChange","focusedChange","disabled","focusable","invalid","nativeId","pseudoActive","pseudoFocus","pseudoHover","readOnly","tuiTextfieldIcon","value"],[3,"polymorpheus"],[4,"ngIf"],["automation-id","tui-password__icon","tuiAppearance","icon","class","t-icon",3,"t-icon_small","icon","tuiHint","tuiHintAppearance","tuiHintDirection","click","mousedown.silent.prevent","mouseup.silent.prevent",4,"polymorpheusOutlet","polymorpheusOutletContext"],["polymorpheus",""],["automation-id","tui-password__icon","tuiAppearance","icon",1,"t-icon",3,"click","mousedown.silent.prevent","mouseup.silent.prevent","icon","tuiHint","tuiHintAppearance","tuiHintDirection"]],template:function(o,i){if(o&1){let u=w();N(ye),y(0,"tui-primitive-textfield",2),q("valueChange",function(l){return p(u),X(i.value,l)||(i.value=l),a(l)}),x("focusedChange",function(l){return p(u),a(i.onFocused(l))}),P(1),P(2,1,["ngProjectAs","input",5,["input"]]),C(),m(3,De,2,3,"ng-template",3,0,b)}if(o&2){let u=I(4);c("disabled",i.computedDisabled)("focusable",i.focusable)("invalid",i.computedInvalid)("nativeId",i.nativeId)("pseudoActive",i.pseudoActive)("pseudoFocus",i.pseudoFocus)("pseudoHover",i.pseudoHover)("readOnly",i.readOnly)("tuiTextfieldIcon",i.computedDisabled?"":u),L("value",i.value),T(3),c("polymorpheus",i.type)}},dependencies:[se,Z,oe,ne,f,ge,_e,ie,_,G],styles:["[_nghost-%COMP%]{display:block;border-radius:var(--tui-radius-m);text-align:left}.t-icon[_ngcontent-%COMP%]{cursor:pointer;pointer-events:auto}.t-icon_small[_ngcontent-%COMP%]{border:.25rem solid transparent}.t-textfield[_ngcontent-%COMP%]{border-radius:inherit;text-align:inherit}"],changeDetection:0});let n=e;return n})(),rt=(()=>{let e=class e extends me{onValueChange(t){this.host.onValueChange(t)}process(t){this.input=t}ngDoCheck(){this.host.nativeFocusableElement&&te(this.host.nativeFocusableElement)&&(this.host.nativeFocusableElement.type=this.host.inputType)}};e.\u0275fac=(()=>{let t;return function(i){return(t||(t=g(e)))(i||e)}})(),e.\u0275dir=M({type:e,selectors:[["tui-input-password"]],features:[D([ce(e)]),v]});let n=e;return n})(),st=(()=>{let e=class e{};e.\u0275fac=function(o){return new(o||e)},e.\u0275mod=E({type:e}),e.\u0275inj=V({imports:[ue,J,K,Te,he,_]});let n=e;return n})();export{ot as a,rt as b,st as c}; +import{E as _e,J as fe,L as he,T as f,U as ge,W as Te,r as ae,v as ce,w as le,x as de,z as me}from"./chunk-XENTLRKE.js";import{Ca as pe,n as ne,o as oe,pa as re,ra as se,sa as ue}from"./chunk-DXP4LH76.js";import{A,Bb as y,Ca as S,Cb as C,Da as E,Df as _,Ea as M,Eb as j,Fb as B,Hb as w,Ka as p,Kb as x,Kd as ee,La as a,Lb as s,Mb as N,Na as g,Nb as P,Nc as Z,Pb as U,Pc as G,Qb as W,Rb as R,Sb as I,Tb as $,Tc as J,Vb as Q,Xb as L,Yb as X,Zb as q,Zd as te,bc as D,cb as T,ec as Y,ha as h,jc as O,kc as F,ke as ie,mb as v,pc as b,r as H,ra as V,rb as m,sb as k,tb as c,vb as z,wa as d,yd as K}from"./chunk-NEAIWFFQ.js";var ye=["*",[["input"]]],Ce=["*","input"],we=n=>({$implicit:n});function xe(n,e){if(n&1){let r=w();y(0,"tui-icon",7),O(1,"async"),x("click",function(){p(r);let o=s(3);return a(o.togglePasswordVisibility())})("mousedown.silent.prevent",function(){return p(r),a(0)})("mouseup.silent.prevent",function(){return p(r),a(0)}),C()}if(n&2){let r=e.polymorpheusOutlet,t=s().ngIf,o=I(3),i=s(2);z("t-icon_small",i.size==="s"),c("icon",r.toString())("tuiHint",t[0]&&t[1]&&o)("tuiHintAppearance",F(1,6,i.computedAppearance$)||"")("tuiHintDirection",(i.hintOptions==null?null:i.hintOptions.direction)||"bottom-left")}}function Pe(n,e){if(n&1&&$(0),n&2){let r=s().ngIf,t=s(2);Q(" ",t.isPasswordHidden?r[0]:r[1]," ")}}function Ie(n,e){if(n&1&&(j(0),m(1,xe,2,8,"tui-icon",5)(2,Pe,1,1,"ng-template",6,1,b),B()),n&2){let r=s(2);T(),c("polymorpheusOutlet",r.icon)("polymorpheusOutletContext",Y(2,we,r.size))}}function De(n,e){if(n&1&&(m(0,Ie,4,4,"ng-container",4),O(1,"async")),n&2){let r=s();c("ngIf",F(1,1,r.passwordTexts$))}}var Oe={icons:{hide:()=>"@tui.eye",show:()=>"@tui.eye-off"}},Fe=ee(Oe);var ot=(()=>{let e=class e extends le{constructor(){var t;super(...arguments),this.textfieldSize=d(fe),this.hintOptions=d(re,{optional:!0}),this.directive$=((t=this.hintOptions)==null?void 0:t.change$)||H,this.isPasswordHidden=!0,this.computedAppearance$=this.directive$.pipe(h(null),A(()=>{var o;return((o=this.hintOptions)==null?void 0:o.appearance)||""}),h("")),this.passwordTexts$=d(pe),this.options=d(Fe)}get nativeFocusableElement(){return this.computedDisabled||!this.textfield?null:this.textfield.nativeFocusableElement}get focused(){var t;return!!((t=this.textfield)!=null&&t.focused)}get inputType(){return this.isPasswordHidden||this.computedDisabled?"password":"text"}onValueChange(t){this.value=t}get size(){return this.textfieldSize.size}get icon(){return this.isPasswordHidden?this.options.icons.show:this.options.icons.hide}onFocused(t){this.updateFocused(t)}togglePasswordVisibility(){this.isPasswordHidden=!this.isPasswordHidden}getFallbackValue(){return""}};e.\u0275fac=(()=>{let t;return function(i){return(t||(t=g(e)))(i||e)}})(),e.\u0275cmp=S({type:e,selectors:[["tui-input-password"]],viewQuery:function(o,i){if(o&1&&U(f,5),o&2){let u;W(u=R())&&(i.textfield=u.first)}},hostVars:1,hostBindings:function(o,i){o&2&&k("data-size",i.size)},features:[D([ae(e),de(e)]),v],ngContentSelectors:Ce,decls:5,vars:11,consts:[["iconContent","polymorpheus"],["hintContent","polymorpheus"],[1,"t-textfield",3,"valueChange","focusedChange","disabled","focusable","invalid","nativeId","pseudoActive","pseudoFocus","pseudoHover","readOnly","tuiTextfieldIcon","value"],[3,"polymorpheus"],[4,"ngIf"],["automation-id","tui-password__icon","tuiAppearance","icon","class","t-icon",3,"t-icon_small","icon","tuiHint","tuiHintAppearance","tuiHintDirection","click","mousedown.silent.prevent","mouseup.silent.prevent",4,"polymorpheusOutlet","polymorpheusOutletContext"],["polymorpheus",""],["automation-id","tui-password__icon","tuiAppearance","icon",1,"t-icon",3,"click","mousedown.silent.prevent","mouseup.silent.prevent","icon","tuiHint","tuiHintAppearance","tuiHintDirection"]],template:function(o,i){if(o&1){let u=w();N(ye),y(0,"tui-primitive-textfield",2),q("valueChange",function(l){return p(u),X(i.value,l)||(i.value=l),a(l)}),x("focusedChange",function(l){return p(u),a(i.onFocused(l))}),P(1),P(2,1,["ngProjectAs","input",5,["input"]]),C(),m(3,De,2,3,"ng-template",3,0,b)}if(o&2){let u=I(4);c("disabled",i.computedDisabled)("focusable",i.focusable)("invalid",i.computedInvalid)("nativeId",i.nativeId)("pseudoActive",i.pseudoActive)("pseudoFocus",i.pseudoFocus)("pseudoHover",i.pseudoHover)("readOnly",i.readOnly)("tuiTextfieldIcon",i.computedDisabled?"":u),L("value",i.value),T(3),c("polymorpheus",i.type)}},dependencies:[se,Z,oe,ne,f,ge,_e,ie,_,G],styles:["[_nghost-%COMP%]{display:block;border-radius:var(--tui-radius-m);text-align:left}.t-icon[_ngcontent-%COMP%]{cursor:pointer;pointer-events:auto}.t-icon_small[_ngcontent-%COMP%]{border:.25rem solid transparent}.t-textfield[_ngcontent-%COMP%]{border-radius:inherit;text-align:inherit}"],changeDetection:0});let n=e;return n})(),rt=(()=>{let e=class e extends me{onValueChange(t){this.host.onValueChange(t)}process(t){this.input=t}ngDoCheck(){this.host.nativeFocusableElement&&te(this.host.nativeFocusableElement)&&(this.host.nativeFocusableElement.type=this.host.inputType)}};e.\u0275fac=(()=>{let t;return function(i){return(t||(t=g(e)))(i||e)}})(),e.\u0275dir=M({type:e,selectors:[["tui-input-password"]],features:[D([ce(e)]),v]});let n=e;return n})(),st=(()=>{let e=class e{};e.\u0275fac=function(o){return new(o||e)},e.\u0275mod=E({type:e}),e.\u0275inj=V({imports:[ue,J,K,Te,he,_]});let n=e;return n})();export{ot as a,rt as b,st as c}; diff --git a/chunk-ONDW62UT.js b/chunk-ONDW62UT.js new file mode 100644 index 000000000..0bef6af12 --- /dev/null +++ b/chunk-ONDW62UT.js @@ -0,0 +1 @@ +import{a}from"./chunk-CX3RAO33.js";import"./chunk-55ASQOEL.js";import"./chunk-JUA3DLL5.js";import"./chunk-P6AQGOJY.js";import"./chunk-TM3BF3MS.js";import"./chunk-XEFPZ7J3.js";import"./chunk-NSSAPNB2.js";import"./chunk-ZYN4Y54G.js";import"./chunk-XENTLRKE.js";import"./chunk-DXP4LH76.js";import"./chunk-GIHFJXZ6.js";import"./chunk-VVRWXTJV.js";import"./chunk-NEAIWFFQ.js";export{a as IotComponent}; diff --git a/chunk-OU5F42O3.js b/chunk-OU5F42O3.js new file mode 100644 index 000000000..eec75703d --- /dev/null +++ b/chunk-OU5F42O3.js @@ -0,0 +1 @@ +import{J as De,O as Te,T,U as Ie,W as Oe,e as pe,q as ge,r as ve,v as ye,w as Ce,x as _e,z as Ee}from"./chunk-XENTLRKE.js";import{$ as ce,Ha as he,V as p,_ as de,aa as D,c as ie,d as ne,ia as fe,j as ae,ma as me,o as ue,u as le}from"./chunk-DXP4LH76.js";import{A as j,Bb as f,Ca as h,Cb as v,Da as H,Ea as L,Eb as F,Fa as N,Fb as P,Kb as m,Lb as y,Mb as k,Md as E,Na as b,Nb as A,Nc as K,Ob as U,Pb as S,Pc as ee,Qb as C,Rb as _,Tb as z,Tc as te,Vb as Z,Vd as R,Xb as W,Yb as $,Zb as q,bc as M,cb as d,cc as X,dc as G,df as oe,fb as B,hd as re,i as I,id as x,jc as J,kc as Y,mb as w,mf as se,ra as V,rb as g,sb as Q,t as O,tb as l,w as c,wa as a}from"./chunk-NEAIWFFQ.js";var Pe=()=>({});function Ae(r,t){if(r&1&&(F(0),z(1),P()),r&2){let u=t.polymorpheusOutlet;d(),Z(" ",u," ")}}function Se(r,t){if(r&1&&(f(0,"div",2),g(1,Ae,2,1,"ng-container",3),v()),r&2){let u=y().tuiLet,e=y();l("@tuiFadeIn",e.options)("@tuiHeightCollapse",e.options),d(),l("polymorpheusOutlet",e.error.message||u)("polymorpheusOutletContext",e.error.context||G(4,Pe))}}function Me(r,t){if(r&1&&(F(0),g(1,Se,2,5,"div",1),P()),r&2){let u=y();d(),l("ngIf",u.error&&u.visible)}}var Xe=(()=>{let t=class t{constructor(){this.options=ae(a(oe)),this.error=null,this.visible=!0,this.defaultErrorMessage$=a(se)}set errorSetter(e){this.error=E(e)?new p(e):e}onAnimation(e){this.visible=e}};t.\u0275fac=function(n){return new(n||t)},t.\u0275cmp=h({type:t,selectors:[["tui-error"]],hostBindings:function(n,i){n&1&&m("animationcancel.self",function(){return i.onAnimation(!1)})("animationstart.self",function(){return i.onAnimation(!0)})},inputs:{errorSetter:[0,"error","errorSetter"]},standalone:!0,features:[X],decls:2,vars:3,consts:[[4,"tuiLet"],["automation-id","tui-error__text","class","t-message-text",4,"ngIf"],["automation-id","tui-error__text",1,"t-message-text"],[4,"polymorpheusOutlet","polymorpheusOutletContext"]],template:function(n,i){n&1&&(g(0,Me,2,1,"ng-container",0),J(1,"async")),n&2&&l("tuiLet",Y(1,1,i.defaultErrorMessage$))},dependencies:[ee,K,ue,pe],styles:["[_nghost-%COMP%]{display:block;font:var(--tui-font-text-s);color:var(--tui-text-negative);word-wrap:break-word;animation:tuiPresent 1s infinite}.t-message-text[_ngcontent-%COMP%]{margin-top:.25rem;white-space:pre-line}"],data:{animation:[ie,ne]},changeDetection:0});let r=t;return r})();var xe={};function we(r,t){return r.pipe(j(u=>new p(u||"",t)))}function Fe(r,t){return c(new p(r||"",t))}var at=(()=>{let t=class t{constructor(){this.order=[],this.parent=a(x,{skipSelf:!0,optional:!0}),this.self=a(x,{self:!0,optional:!0}),this.container=a(re,{optional:!0}),this.validationErrors=a(he),this.self&&!this.self.valueAccessor&&(this.self.valueAccessor=this)}transform(e){return this.order=e,this.computedError}registerOnChange(){}registerOnTouched(){}setDisabledState(){}writeValue(){}get computedError(){return this.invalid&&this.touched&&this.error||c(null)}get error(){let{errorId:e}=this;if(!e)return null;let n=this.controlErrors[e],i=this.validationErrors[e];return this.getError(n,i)}get invalid(){var e;return!!((e=this.control)!=null&&e.invalid)}get touched(){var e;return!!((e=this.control)!=null&&e.touched)}get control(){var e,n,i;return((e=this.self)==null?void 0:e.control)||((n=this.parent)==null?void 0:n.control)||((i=this.container)==null?void 0:i.control)}get errorId(){return this.getErrorId(this.order,this.controlErrors)}get controlErrors(){var e;return((e=this.control)==null?void 0:e.errors)||xe}getError(e,n){if(e instanceof p)return c(e);if(n===void 0&&E(e))return c(new p(e));if(n instanceof I)return we(n,e);if(n instanceof Function){let i=n(e);return i instanceof I?we(i,e):Fe(i,e)}return Fe(n,e)}getErrorId(e,n){let i=e==null?void 0:e.find(s=>n[s]),o=Object.keys(n)[0];return i||o||""}};t.\u0275fac=function(n){return new(n||t)},t.\u0275pipe=N({name:"tuiFieldError",type:t,pure:!1,standalone:!0});let r=t;return O([R],r.prototype,"getError",null),O([R],r.prototype,"getErrorId",null),r})();var Re=["*",[["input"]]],je=["*","input"],Pt=(()=>{let t=class t extends Ce{constructor(){super(...arguments),this.textfieldSize=a(De),this.open=!1}get size(){return this.textfieldSize.size}get nativeFocusableElement(){return this.computedDisabled||!this.textfield?null:this.textfield.nativeFocusableElement}get focused(){var e;return le(this.nativeFocusableElement)||!!((e=this.dropdown)!=null&&e.tuiDropdownOpen)}handleOption(e){this.setNativeValue(String(e)),this.focusInput(),this.value=String(e),this.open=!1}onValueChange(e){this.value=e,this.open=!0}get canOpen(){return this.interactive&&!!this.datalist}onActiveZone(e){this.updateFocused(e)}getFallbackValue(){return""}focusInput(e=!1){this.nativeFocusableElement&&this.nativeFocusableElement.focus({preventScroll:e})}setNativeValue(e){this.nativeFocusableElement&&(this.nativeFocusableElement.value=e)}};t.\u0275fac=(()=>{let e;return function(i){return(e||(e=b(t)))(i||t)}})(),t.\u0275cmp=h({type:t,selectors:[["tui-input"]],contentQueries:function(n,i,o){if(n&1&&U(o,me,5,B),n&2){let s;C(s=_())&&(i.datalist=s.first)}},viewQuery:function(n,i){if(n&1&&(S(D,5),S(T,5)),n&2){let o;C(o=_())&&(i.dropdown=o.first),C(o=_())&&(i.textfield=o.first)}},hostVars:1,hostBindings:function(n,i){n&2&&Q("data-size",i.size)},features:[M([Te,ve(t),fe(t),_e(t)],[ge]),w],ngContentSelectors:je,decls:4,vars:11,consts:[["tuiDropdownOpenMonitor","",1,"t-hosted",3,"tuiDropdownOpenChange","tuiActiveZoneChange","tuiDropdown","tuiDropdownEnabled","tuiDropdownOpen"],["automation-id","tui-input__textfield",1,"t-textfield",3,"valueChange","disabled","focusable","invalid","nativeId","pseudoFocus","pseudoHover","readOnly","value"]],template:function(n,i){n&1&&(k(Re),f(0,"div",0),q("tuiDropdownOpenChange",function(s){return $(i.open,s)||(i.open=s),s}),m("tuiActiveZoneChange",function(s){return i.onActiveZone(s)}),f(1,"tui-primitive-textfield",1),m("valueChange",function(s){return i.onValueChange(s)}),A(2),A(3,1,["ngProjectAs","input",5,["input"]]),v()()),n&2&&(l("tuiDropdown",i.datalist||"")("tuiDropdownEnabled",i.canOpen),W("tuiDropdownOpen",i.open),d(),l("disabled",i.computedDisabled)("focusable",i.computedFocusable)("invalid",i.computedInvalid)("nativeId",i.nativeId)("pseudoFocus",i.computedFocused)("pseudoHover",i.pseudoHover)("readOnly",i.readOnly)("value",i.value))},dependencies:[T,Ie,de,D],styles:["[_nghost-%COMP%]{display:block;border-radius:var(--tui-radius-m);text-align:left}._disabled[_nghost-%COMP%]{pointer-events:none}.t-hosted[_ngcontent-%COMP%]{display:block;border-radius:inherit}.t-textfield[_ngcontent-%COMP%]{border-radius:inherit;text-align:inherit}"],changeDetection:0});let r=t;return r})(),At=(()=>{let t=class t extends Ee{onValueChange(e){this.host.onValueChange(e)}};t.\u0275fac=(()=>{let e;return function(i){return(e||(e=b(t)))(i||t)}})(),t.\u0275dir=L({type:t,selectors:[["tui-input"]],features:[M([ye(t)]),w]});let r=t;return r})(),St=(()=>{let t=class t{};t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=H({type:t}),t.\u0275inj=V({imports:[te,Oe,ce]});let r=t;return r})();export{Xe as a,at as b,Pt as c,At as d,St as e}; diff --git a/chunk-NL4UQKF6.js b/chunk-P6AQGOJY.js similarity index 87% rename from chunk-NL4UQKF6.js rename to chunk-P6AQGOJY.js index 7f3efb92d..b7e1fe63b 100644 --- a/chunk-NL4UQKF6.js +++ b/chunk-P6AQGOJY.js @@ -1,2 +1,2 @@ -import{c as At,d as zt}from"./chunk-UPS6ZX2Y.js";import{a as Gt}from"./chunk-LS7UCRAC.js";import{A as Be,B as Ge,E as We,J as Mt,L as je,R as Ue,S as Ye,T as wt,U as $e,W as Qe,a as ye,e as Nt,f as Me,q as He,r as Le,v as Ae,w as It,x as Re,y as Ne,z as ze}from"./chunk-DNEQ7KDT.js";import{$ as N,Da as Ot,E as Oe,J as Ie,K as xt,O as Rt,Z as we,_ as Pe,ba as De,ea as Se,fa as Bt,ga as ke,h as be,ha as Ee,ia as L,ja as Ve,k as xe,ka as U,l as yt,la as Tt,ma as Fe,n as j,s as Te,t as bt}from"./chunk-OKL4RZMA.js";import{A as rt,Ae as vt,Bb as p,Bd as le,Be as Ft,Ca as h,Cb as m,Ce as Ht,Cf as Ce,Da as mt,Db as x,Df as it,Ea as A,Eb as V,Fa as _t,Fb as F,Fd as Et,Gb as z,Ge as pe,Hb as T,He as q,I as Qt,Ie as J,Je as Lt,Ka as _,Kb as v,Kd as W,Ke as dt,La as g,Lb as s,Le as tt,Mb as gt,Mc as Q,Me as et,Na as lt,Nb as Y,Nc as y,Ob as St,Oc as ft,Pb as ct,Pc as k,Pd as se,Qb as B,Qd as K,Rb as G,Sa as b,Sb as I,Sd as Vt,Tb as M,Tc as X,Ub as qt,Va as Kt,Vb as w,Ve as me,W as at,Xb as Jt,Xd as ue,Yb as te,Zb as ee,bc as $,cb as u,cc as O,ef as _e,fb as Zt,fc as ie,fe as Z,ha as Xt,hc as ne,hf as ge,id as ae,if as Ct,jc as C,kc as P,lc as kt,m as Yt,mb as st,me as ce,nc as oe,nf as fe,oc as re,of as he,pc as S,qe as ht,r as $t,ra as pt,rb as d,sb as R,se as de,tb as l,ub as ut,vb as D,wa as c,wf as ve}from"./chunk-NEAIWFFQ.js";var ci={size:"l",collapsed:!1,rounded:!0,orientation:"horizontal"},di=W(ci);var pi=(()=>{let i=class i{};i.\u0275fac=function(t){return new(t||i)},i.\u0275cmp=h({type:i,selectors:[["ng-component"]],hostAttrs:[1,"tui-group"],standalone:!0,features:[O],decls:0,vars:0,template:function(t,o){},styles:[`[tuiGroup]{position:relative;display:flex;isolation:isolate;--t-group-radius: var(--tui-radius-l);--t-group-margin: -1px;--t-group-clip: inset(-1px 1px -1px -1px)}[tuiGroup]>*{z-index:1;flex:1 1 0;min-width:0}[tuiGroup]>*._disabled,[tuiGroup]>*._disabled:hover{z-index:0}[tuiGroup]>*:invalid{z-index:2;--t-group-clip: none}[tuiGroup]>*:invalid:hover{z-index:4}[tuiGroup]>*:has(:invalid),[tuiGroup]>*:has([data-mode=invalid]){z-index:2;--t-group-clip: none}[tuiGroup]>*:has(:invalid):hover,[tuiGroup]>*:has([data-mode=invalid]):hover{z-index:4}[tuiGroup]>*:hover{z-index:3;--t-group-clip: inset(-1px .5px -1px -1px)}[tuiGroup]>*:has([data-state=hover]){z-index:3;--t-group-clip: none}[tuiGroup]>*:focus-within{z-index:5;--t-group-clip: none}[tuiGroup]>*:has([data-focus=true]){z-index:5;--t-group-clip: none}[tuiGroup]>*[data-mode=checked]{z-index:6;--t-group-clip: none}[tuiGroup]>*:has([tuiBlock]:checked){z-index:6;--t-group-clip: none}[tuiGroup]>*:not(:last-child){margin-inline-end:var(--t-group-margin);clip-path:var(--t-group-clip)}[tuiGroup]>*:nth-child(n){border-radius:0}[tuiGroup]>*:first-child{border-top-left-radius:var(--t-group-radius);border-bottom-left-radius:var(--t-group-radius)}[tuiGroup]>*:last-child{border-top-right-radius:var(--t-group-radius);border-bottom-right-radius:var(--t-group-radius)}[tuiGroup][data-size=s],[tuiGroup][data-size=m]{--t-group-radius: var(--tui-radius-m)}[tuiGroup][data-orientation=vertical]{display:inline-flex;flex-direction:column;--t-group-clip: inset(-1px -1px 1px -1px)}[tuiGroup][data-orientation=vertical]>*{min-height:auto;flex:0 0 auto}[tuiGroup][data-orientation=vertical]>*:not(:last-child){margin-inline-end:0;margin-block-end:var(--t-group-margin)}[tuiGroup][data-orientation=vertical]>*:first-child{border-radius:var(--t-group-radius) var(--t-group-radius) 0 0}[tuiGroup][data-orientation=vertical]>*:last-child{border-radius:0 0 var(--t-group-radius) var(--t-group-radius)}[tuiGroup][data-orientation=vertical]>*:only-child{border-radius:var(--t-group-radius)}[tuiGroup][data-orientation=vertical]>*:hover{--t-group-clip: inset(-1px -1px .5px -1px)}.tui-group{position:relative;display:flex;isolation:isolate;--t-group-radius: var(--tui-radius-m)}.tui-group>*{flex:1 1 0;min-width:0}.tui-group>*:not(:last-child){margin-right:.125rem}.tui-group.tui-group>*:nth-child(n){border-radius:0}.tui-group_radius_large{--t-group-radius: var(--tui-radius-l)}.tui-group_collapsed>*{z-index:1}.tui-group_collapsed>*:not(:last-child){margin:0 -1px 0 0}.tui-group_collapsed>*._readonly,.tui-group_collapsed>*._disabled,.tui-group_collapsed>*._readonly:hover,.tui-group_collapsed>*._disabled:hover{z-index:0}.tui-group_collapsed>*._invalid{z-index:2}.tui-group_collapsed>*._invalid:hover,.tui-group_collapsed>*._invalid._hovered,.tui-group_collapsed>*._invalid._pressed{z-index:4}.tui-group_collapsed>*:hover,.tui-group_collapsed>*._hovered,.tui-group_collapsed>*._pressed{z-index:3}.tui-group_collapsed>*._hosted_dropdown_focused,.tui-group_collapsed>*._focus-visible,.tui-group_collapsed>*._focused.ng-touched,.tui-group_collapsed>*._focused.ng-untouched{z-index:5}.tui-group_collapsed>*._active,.tui-group_collapsed>*[data-appearance=whiteblock-active]{z-index:6}.tui-group_collapsed>*:has([tuiBlock]:checked){z-index:6}.tui-group_collapsed>*._focus-visible._focused,.tui-group_collapsed>*._focus-visible._active,.tui-group_collapsed>*._focus-visible[data-appearance=whiteblock-active]{z-index:7}.tui-group_orientation_vertical{display:inline-flex;flex-direction:column}.tui-group_orientation_vertical>*{min-height:auto;flex:0 0 auto}.tui-group_orientation_vertical>*:not(:last-child){margin-right:0;margin-bottom:.125rem}.tui-group_orientation_vertical.tui-group_collapsed>*:not(:last-child){margin:0 0 -1px}.tui-group_rounded.tui-group_orientation_horizontal>*:first-child{border-top-left-radius:var(--t-group-radius);border-bottom-left-radius:var(--t-group-radius)}.tui-group_rounded.tui-group_orientation_horizontal>*:last-child{border-top-right-radius:var(--t-group-radius);border-bottom-right-radius:var(--t-group-radius)}.tui-group_rounded.tui-group_orientation_vertical>*:first-child{border-top-left-radius:var(--t-group-radius);border-top-right-radius:var(--t-group-radius)}.tui-group_rounded.tui-group_orientation_vertical>*:last-child{border-bottom-left-radius:var(--t-group-radius);border-bottom-right-radius:var(--t-group-radius)}.tui-group__auto-width-item{min-width:auto;flex:0 0 auto}.tui-group__inherit-item{border-radius:inherit!important} +import{c as At,d as zt}from"./chunk-TM3BF3MS.js";import{a as Gt}from"./chunk-ZYN4Y54G.js";import{A as Be,B as Ge,E as We,J as Mt,L as je,R as Ue,S as Ye,T as wt,U as $e,W as Qe,a as ye,e as Nt,f as Me,q as He,r as Le,v as Ae,w as It,x as Re,y as Ne,z as ze}from"./chunk-XENTLRKE.js";import{$ as Pe,Ea as Ot,F as Oe,K as Ie,L as xt,P as Rt,_ as we,aa as N,ca as De,fa as Se,ga as Bt,h as be,ha as ke,ia as Ee,ja as L,ka as Ve,l as xe,la as U,m as yt,ma as Tt,na as Fe,o as j,t as Te,u as bt}from"./chunk-DXP4LH76.js";import{A as rt,Ae as vt,Bb as p,Bd as le,Be as Ft,Ca as h,Cb as m,Ce as Ht,Cf as Ce,Da as mt,Db as x,Df as it,Ea as A,Eb as V,Fa as _t,Fb as F,Fd as Et,Gb as z,Ge as pe,Hb as T,He as q,I as Qt,Ie as J,Je as Lt,Ka as _,Kb as v,Kd as W,Ke as dt,La as g,Lb as s,Le as tt,Mb as gt,Mc as Q,Me as et,Na as lt,Nb as Y,Nc as y,Ob as St,Oc as ft,Pb as ct,Pc as k,Pd as se,Qb as B,Qd as K,Rb as G,Sa as b,Sb as I,Sd as Vt,Tb as M,Tc as X,Ub as qt,Va as Kt,Vb as w,Ve as me,W as at,Xb as Jt,Xd as ue,Yb as te,Zb as ee,bc as $,cb as u,cc as O,ef as _e,fb as Zt,fc as ie,fe as Z,ha as Xt,hc as ne,hf as ge,id as ae,if as Ct,jc as C,kc as P,lc as kt,m as Yt,mb as st,me as ce,nc as oe,nf as fe,oc as re,of as he,pc as S,qe as ht,r as $t,ra as pt,rb as d,sb as R,se as de,tb as l,ub as ut,vb as D,wa as c,wf as ve}from"./chunk-NEAIWFFQ.js";var ci={size:"l",collapsed:!1,rounded:!0,orientation:"horizontal"},di=W(ci);var pi=(()=>{let i=class i{};i.\u0275fac=function(t){return new(t||i)},i.\u0275cmp=h({type:i,selectors:[["ng-component"]],hostAttrs:[1,"tui-group"],standalone:!0,features:[O],decls:0,vars:0,template:function(t,o){},styles:[`[tuiGroup]{position:relative;display:flex;isolation:isolate;--t-group-radius: var(--tui-radius-l);--t-group-margin: -1px;--t-group-clip: inset(-1px 1px -1px -1px)}[tuiGroup]>*{z-index:1;flex:1 1 0;min-width:0}[tuiGroup]>*._disabled,[tuiGroup]>*._disabled:hover{z-index:0}[tuiGroup]>*:invalid{z-index:2;--t-group-clip: none}[tuiGroup]>*:invalid:hover{z-index:4}[tuiGroup]>*:has(:invalid),[tuiGroup]>*:has([data-mode=invalid]){z-index:2;--t-group-clip: none}[tuiGroup]>*:has(:invalid):hover,[tuiGroup]>*:has([data-mode=invalid]):hover{z-index:4}[tuiGroup]>*:hover{z-index:3;--t-group-clip: inset(-1px .5px -1px -1px)}[tuiGroup]>*:has([data-state=hover]){z-index:3;--t-group-clip: none}[tuiGroup]>*:focus-within{z-index:5;--t-group-clip: none}[tuiGroup]>*:has([data-focus=true]){z-index:5;--t-group-clip: none}[tuiGroup]>*[data-mode=checked]{z-index:6;--t-group-clip: none}[tuiGroup]>*:has([tuiBlock]:checked){z-index:6;--t-group-clip: none}[tuiGroup]>*:not(:last-child){margin-inline-end:var(--t-group-margin);clip-path:var(--t-group-clip)}[tuiGroup]>*:nth-child(n){border-radius:0}[tuiGroup]>*:first-child{border-top-left-radius:var(--t-group-radius);border-bottom-left-radius:var(--t-group-radius)}[tuiGroup]>*:last-child{border-top-right-radius:var(--t-group-radius);border-bottom-right-radius:var(--t-group-radius)}[tuiGroup][data-size=s],[tuiGroup][data-size=m]{--t-group-radius: var(--tui-radius-m)}[tuiGroup][data-orientation=vertical]{display:inline-flex;flex-direction:column;--t-group-clip: inset(-1px -1px 1px -1px)}[tuiGroup][data-orientation=vertical]>*{min-height:auto;flex:0 0 auto}[tuiGroup][data-orientation=vertical]>*:not(:last-child){margin-inline-end:0;margin-block-end:var(--t-group-margin)}[tuiGroup][data-orientation=vertical]>*:first-child{border-radius:var(--t-group-radius) var(--t-group-radius) 0 0}[tuiGroup][data-orientation=vertical]>*:last-child{border-radius:0 0 var(--t-group-radius) var(--t-group-radius)}[tuiGroup][data-orientation=vertical]>*:only-child{border-radius:var(--t-group-radius)}[tuiGroup][data-orientation=vertical]>*:hover{--t-group-clip: inset(-1px -1px .5px -1px)}.tui-group{position:relative;display:flex;isolation:isolate;--t-group-radius: var(--tui-radius-m)}.tui-group>*{flex:1 1 0;min-width:0}.tui-group>*:not(:last-child){margin-right:.125rem}.tui-group.tui-group>*:nth-child(n){border-radius:0}.tui-group_radius_large{--t-group-radius: var(--tui-radius-l)}.tui-group_collapsed>*{z-index:1}.tui-group_collapsed>*:not(:last-child){margin:0 -1px 0 0}.tui-group_collapsed>*._readonly,.tui-group_collapsed>*._disabled,.tui-group_collapsed>*._readonly:hover,.tui-group_collapsed>*._disabled:hover{z-index:0}.tui-group_collapsed>*._invalid{z-index:2}.tui-group_collapsed>*._invalid:hover,.tui-group_collapsed>*._invalid._hovered,.tui-group_collapsed>*._invalid._pressed{z-index:4}.tui-group_collapsed>*:hover,.tui-group_collapsed>*._hovered,.tui-group_collapsed>*._pressed{z-index:3}.tui-group_collapsed>*._hosted_dropdown_focused,.tui-group_collapsed>*._focus-visible,.tui-group_collapsed>*._focused.ng-touched,.tui-group_collapsed>*._focused.ng-untouched{z-index:5}.tui-group_collapsed>*._active,.tui-group_collapsed>*[data-appearance=whiteblock-active]{z-index:6}.tui-group_collapsed>*:has([tuiBlock]:checked){z-index:6}.tui-group_collapsed>*._focus-visible._focused,.tui-group_collapsed>*._focus-visible._active,.tui-group_collapsed>*._focus-visible[data-appearance=whiteblock-active]{z-index:7}.tui-group_orientation_vertical{display:inline-flex;flex-direction:column}.tui-group_orientation_vertical>*{min-height:auto;flex:0 0 auto}.tui-group_orientation_vertical>*:not(:last-child){margin-right:0;margin-bottom:.125rem}.tui-group_orientation_vertical.tui-group_collapsed>*:not(:last-child){margin:0 0 -1px}.tui-group_rounded.tui-group_orientation_horizontal>*:first-child{border-top-left-radius:var(--t-group-radius);border-bottom-left-radius:var(--t-group-radius)}.tui-group_rounded.tui-group_orientation_horizontal>*:last-child{border-top-right-radius:var(--t-group-radius);border-bottom-right-radius:var(--t-group-radius)}.tui-group_rounded.tui-group_orientation_vertical>*:first-child{border-top-left-radius:var(--t-group-radius);border-top-right-radius:var(--t-group-radius)}.tui-group_rounded.tui-group_orientation_vertical>*:last-child{border-bottom-left-radius:var(--t-group-radius);border-bottom-right-radius:var(--t-group-radius)}.tui-group__auto-width-item{min-width:auto;flex:0 0 auto}.tui-group__inherit-item{border-radius:inherit!important} `],encapsulation:2,changeDetection:0});let n=i;return n})(),In=(()=>{let i=class i{constructor(){this.options=c(di),this.nothing=ue(pi),this.orientation=this.options.orientation,this.collapsed=this.options.collapsed,this.rounded=this.options.rounded,this.size=this.options.size}};i.\u0275fac=function(t){return new(t||i)},i.\u0275dir=A({type:i,selectors:[["","tuiGroup","",5,"ng-container"]],hostAttrs:["tuiGroup","","role","group"],hostVars:8,hostBindings:function(t,o){t&2&&(R("data-orientation",o.orientation)("data-size",o.size),ut("--t-group-radius",o.rounded?null:0)("--t-group-margin",o.collapsed?null:.125,"rem")("--t-group-clip",o.collapsed?null:.125))},inputs:{orientation:"orientation",collapsed:"collapsed",rounded:"rounded",size:"size"},standalone:!0});let n=i;return n})();var Wt=(()=>{let i=class i{constructor(){return this.nativeElement=Z(),new Kt(this.nativeElement)}};i.\u0275fac=function(t){return new(t||i)},i.\u0275dir=A({type:i,selectors:[["","tuiElement",""]],exportAs:["elementRef"],standalone:!0});let n=i;return n})();function _i(n,i){if(n&1&&(V(0),M(1),F()),n&2){let r=i.polymorpheusOutlet;u(),w(" ",r," ")}}function gi(n,i){if(n&1){let r=T();p(0,"button",5,1),v("click",function(){let t=_(r).$implicit,o=s(2);return g(o.itemClick.emit(t))}),p(2,"span",6),d(3,_i,2,1,"ng-container",7),m()()}if(n&2){let r=i.$implicit,e=I(1),t=s(2);l("disabled",t.disabledItemHandler(r))("value",r),u(3),l("polymorpheusOutlet",t.itemContent)("polymorpheusOutletContext",t.getContext(r,e))}}function fi(n,i){if(n&1&&(p(0,"tui-data-list",3),d(1,gi,4,4,"button",4),m()),n&2){let r=s();l("emptyContent",r.emptyContent)("size",r.size),u(),l("ngForOf",r.$cast(r.items))}}function hi(n,i){n&1&&x(0,"tui-loader",8)}var vi=["labels",""];function Ci(n,i){if(n&1&&(V(0),M(1),F()),n&2){let r=i.polymorpheusOutlet;u(),w(" ",r," ")}}function yi(n,i){if(n&1){let r=T();p(0,"button",7,1),v("click",function(){let t=_(r).$implicit,o=s(3);return g(o.itemClick.emit(t))}),d(2,Ci,2,1,"ng-container",8),m()}if(n&2){let r=i.$implicit,e=I(1),t=s(3);l("disabled",t.disabledItemHandler(r))("value",r),u(2),l("polymorpheusOutlet",t.itemContent)("polymorpheusOutletContext",t.getContext(r,e))}}function bi(n,i){if(n&1&&(p(0,"tui-opt-group",5),d(1,yi,3,4,"button",6),m()),n&2){let r=i.$implicit,e=i.index,t=s(2);l("label",t.labels[e]),u(),l("ngForOf",r)}}function xi(n,i){if(n&1&&(p(0,"tui-data-list",3),d(1,bi,2,2,"tui-opt-group",4),m()),n&2){let r=s();l("emptyContent",r.emptyContent)("size",r.size),u(),l("ngForOf",r.items)}}function Ti(n,i){n&1&&x(0,"tui-loader",9)}var Oi="[_nghost-%COMP%]{display:block}.t-content[_ngcontent-%COMP%]{flex:1}.t-loader[_ngcontent-%COMP%]{margin:.75rem 0}",jt=(()=>{let i=class i{constructor(){this.itemsHandlers=c(Ot),this.optionsQuery=ce,this.items=[],this.disabledItemHandler=this.itemsHandlers.disabledItemHandler,this.size=Ve(),this.itemClick=new b,this.itemContent=({$implicit:e})=>this.itemsHandlers.stringify(e)}getContext(e,{nativeElement:t}){return{$implicit:e,active:bt(t)}}getOptions(e=!1){return this.optionsQuery.filter(({disabled:t})=>e||!t).map(({value:t})=>t).filter(K)}$cast(e){return e}};i.\u0275fac=function(t){return new(t||i)},i.\u0275cmp=h({type:i,selectors:[["tui-data-list-wrapper",3,"labels",""]],viewQuery:function(t,o){if(t&1&&ct(L,5),t&2){let a;B(a=G())&&(o.optionsQuery=a)}},inputs:{items:"items",disabledItemHandler:"disabledItemHandler",emptyContent:"emptyContent",size:"size",itemContent:"itemContent"},outputs:{itemClick:"itemClick"},standalone:!0,features:[$([Bt(i)]),O],decls:3,vars:2,consts:[["loading",""],["elementRef","elementRef"],[3,"emptyContent","size",4,"ngIf","ngIfElse"],[3,"emptyContent","size"],["automation-id","tui-data-list-wrapper__option","tuiElement","","tuiOption","",3,"disabled","value","click",4,"ngFor","ngForOf"],["automation-id","tui-data-list-wrapper__option","tuiElement","","tuiOption","",3,"click","disabled","value"],[1,"t-content"],[4,"polymorpheusOutlet","polymorpheusOutletContext"],["automation-id","tui-data-list-wrapper__loader",1,"t-loader"]],template:function(t,o){if(t&1&&d(0,fi,2,3,"tui-data-list",2)(1,hi,1,0,"ng-template",null,0,S),t&2){let a=I(2);l("ngIf",o.items)("ngIfElse",a)}},dependencies:[U,L,y,Q,Wt,Gt,j],styles:["[_nghost-%COMP%]{display:block}.t-content[_ngcontent-%COMP%]{flex:1}.t-loader[_ngcontent-%COMP%]{margin:.75rem 0}"],changeDetection:0});let n=i;return n})(),Ke=(()=>{let i=class i extends jt{constructor(){super(...arguments),this.labels=[]}};i.\u0275fac=(()=>{let e;return function(o){return(e||(e=lt(i)))(o||i)}})(),i.\u0275cmp=h({type:i,selectors:[["tui-data-list-wrapper","labels",""]],inputs:{labels:"labels"},standalone:!0,features:[$([Bt(i)]),st,O],attrs:vi,decls:3,vars:2,consts:[["loading",""],["elementRef","elementRef"],[3,"emptyContent","size",4,"ngIf","ngIfElse"],[3,"emptyContent","size"],[3,"label",4,"ngFor","ngForOf"],[3,"label"],["automation-id","tui-data-list-wrapper__option","tuiElement","","tuiOption","",3,"disabled","value","click",4,"ngFor","ngForOf"],["automation-id","tui-data-list-wrapper__option","tuiElement","","tuiOption","",3,"click","disabled","value"],[4,"polymorpheusOutlet","polymorpheusOutletContext"],[1,"t-loader"]],template:function(t,o){if(t&1&&d(0,xi,2,3,"tui-data-list",2)(1,Ti,1,0,"ng-template",null,0,S),t&2){let a=I(2);l("ngIf",o.items)("ngIfElse",a)}},dependencies:[U,L,Fe,y,Q,Wt,j,Gt],styles:[Oi],changeDetection:0});let n=i;return n})();var Ze=(()=>{let i=class i{constructor(){var e;this.el=Z(),this.host=c(N,{self:!0}),this.external=c(De,{optional:!0}),this.host.driver.pipe(at(),Et()).subscribe(t=>{var o;return(o=this.external)==null?void 0:o.tuiDropdownOpenChange.next(t)}),(e=this.external)==null||e.tuiDropdownOpenChange.pipe(at(),Et()).subscribe(t=>{var o;t&&((o=Te({initial:this.el,root:this.el}))==null||o.focus()),this.host.toggle(t)})}};i.\u0275fac=function(t){return new(t||i)},i.\u0275dir=A({type:i,selectors:[["","tuiDropdownOpenMonitor",""]],standalone:!0});let n=i;return n})();function Mi(n,i){if(n&1&&x(0,"tui-icon",2),n&2){let r=i.polymorpheusOutlet;l("icon",r)}}function wi(n,i){n&1&&z(0)}var Pi={iconSmall:"@tui.chevron-down",iconLarge:"@tui.chevron-down"},Di=W(Pi);var Ut=(()=>{let i=class i{constructor(){this.control=c(It,{optional:!0}),this.textfieldSize=c(Mt),this.options=c(Di),this.directive=c(N,{optional:!0})}get rotated(){var e;return((e=this.directive)==null?void 0:e.tuiDropdownOpen)||!!this.control.pseudoOpen||!1}get small(){return!be(this.textfieldSize.size)}get arrowIcon(){return this.small?this.options.iconSmall:this.options.iconLarge}};i.\u0275fac=function(t){return new(t||i)},i.\u0275cmp=h({type:i,selectors:[["tui-arrow"]],hostVars:4,hostBindings:function(t,o){t&2&&D("_rotated",o.rotated)("_small",o.small)},standalone:!0,features:[O],decls:3,vars:4,consts:[[3,"icon",4,"polymorpheusOutlet"],[4,"ngIf"],[3,"icon"]],template:function(t,o){t&1&&(d(0,Mi,1,1,"tui-icon",0)(1,wi,1,0,"ng-container",1),C(2,"async")),t&2&&(l("polymorpheusOutlet",o.arrowIcon),u(),l("ngIf",P(2,2,o.directive==null?null:o.directive.tuiDropdownOpenChange)))},dependencies:[j,y,k,it],styles:["[_nghost-%COMP%]{transition-property:transform;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;display:block;cursor:pointer;pointer-events:none}._rotated[_nghost-%COMP%]{transform:rotate(180deg)}tui-icon[_ngcontent-%COMP%]{border:.25rem solid transparent}"],changeDetection:0});let n=i;return n})(),qe=new yt(Ut),Si={interactive:qe,disabled:qe},Je=W(Si);function ki(n,i){if(n&1&&x(0,"tui-icon",3),n&2){let r=s();l("icon",r.icons.check)("tuiScrollIntoView",!0)}}function Ei(n,i){n&1&&x(0,"span",4)}var Vi=(()=>{let i=class i{constructor(){this.host=c(ke),this.el=Z(),this.changeDetection$=new Yt,this.abstractControl=c(It,{optional:!0}),this.control=c(ae),this.option=c(L),this.dataList=c(U,{optional:!0}),this.icons=c(_e),this.context=c(xe),this.selected$=Qt(this.changeDetection$,this.control.valueChanges||$t,me(this.el,"animationstart")).pipe(Xt(null),rt(()=>this.selected),at())}ngOnInit(){Promise.resolve().then(()=>{var e,t;K(this.option.value)&&!this.option.disabled&&((t=(e=this.host).checkOption)==null||t.call(e,this.option.value))})}ngDoCheck(){this.changeDetection$.next()}get value(){var e;return((e=this.abstractControl)==null?void 0:e.value)??this.control.value}get matcher(){return this.host.identityMatcher||de}get selected(){return K(this.option.value)&&K(this.value)&&this.matcher(this.value,this.option.value)}};i.\u0275fac=function(t){return new(t||i)},i.\u0275cmp=h({type:i,selectors:[["tui-select-option"]],decls:5,vars:5,consts:[["dummy",""],[3,"ngTemplateOutlet"],["automation-id","tui-select-option__checkmark","class","t-checkmark",3,"icon","tuiScrollIntoView",4,"ngIf","ngIfElse"],["automation-id","tui-select-option__checkmark",1,"t-checkmark",3,"icon","tuiScrollIntoView"],[1,"t-dummy"]],template:function(t,o){if(t&1&&(z(0,1),d(1,ki,1,2,"tui-icon",2),C(2,"async"),d(3,Ei,1,0,"ng-template",null,0,S)),t&2){let a=I(4);l("ngTemplateOutlet",o.context.$implicit),u(),l("ngIf",P(2,3,o.selected$))("ngIfElse",a)}},dependencies:[y,ft,xt,it,k],styles:['@keyframes _ngcontent-%COMP%_retrigger{0%{left:1px}to{left:2px}}[_nghost-%COMP%]{display:flex;flex:1;align-items:center;max-width:100%;animation:_ngcontent-%COMP%_retrigger 1s}.t-checkmark[_ngcontent-%COMP%]{margin-inline-start:auto;width:1.75rem;border:.25rem solid transparent;border-inline-start-width:.5rem}tui-data-list[data-size="s"][_nghost-%COMP%] .t-checkmark[_ngcontent-%COMP%], tui-data-list[data-size="s"] [_nghost-%COMP%] .t-checkmark[_ngcontent-%COMP%]{margin-inline-end:-.375rem}tui-data-list[data-size="m"][_nghost-%COMP%] .t-checkmark[_ngcontent-%COMP%], tui-data-list[data-size="m"] [_nghost-%COMP%] .t-checkmark[_ngcontent-%COMP%]{margin-inline-end:-.125rem}.t-dummy[_ngcontent-%COMP%]{width:1.75rem}'],changeDetection:0});let n=i;return n})(),ei=new yt(Vi),ii=(()=>{let i=class i{};i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=mt({type:i}),i.\u0275inj=pt({imports:[X,it]});let n=i;return n})();var Fi=["*",[["input"]],[["select"]]],Hi=["*","input","select"],Li=(n,i)=>({$implicit:n,active:i});function Ai(n,i){n&1&&Y(0,2,["*ngIf","isMobile"])}function Ri(n,i){if(n&1&&d(0,Ai,1,0,"ng-content",6),n&2){let r=s();l("ngIf",r.isMobile)}}function Ni(n,i){n&1&&z(0,7)}function zi(n,i){if(n&1&&x(0,"div",10),n&2){let r=i.polymorpheusOutlet;l("textContent",r)}}function Bi(n,i){if(n&1&&(p(0,"div",8),d(1,zi,1,1,"div",9),m()),n&2){let r=s();u(),l("polymorpheusOutlet",r.computedContent)("polymorpheusOutletContext",ie(2,Li,r.value,r.computedFocused))}}function Gi(n,i){n&1&&z(0)}function Wi(n,i){if(n&1&&(p(0,"div",11),d(1,Gi,1,0,"ng-container",12),m()),n&2){let r=s();u(),l("polymorpheusOutlet",r.arrow)}}var ji={valueContent:""},Ui=W(ji);var _r=(()=>{let i=class i extends Be{constructor(){super(...arguments),this.itemsHandlers=c(Ot),this.textfieldCleaner=c(Ge),this.textfieldSize=c(Mt),this.arrowMode=c(Je),this.options=c(Ui),this.isMobile=c(Oe),this.open=!1,this.stringify=this.itemsHandlers.stringify,this.identityMatcher=this.itemsHandlers.identityMatcher,this.valueContent=this.options.valueContent}get size(){return this.textfieldSize.size}get nativeFocusableElement(){var e;return((e=this.textfield)==null?void 0:e.nativeFocusableElement)??null}get focused(){var e;return bt(this.nativeFocusableElement)||!!((e=this.dropdown)!=null&&e.tuiDropdownOpen)}get computedValue(){return this.value===null?"":this.stringify(this.value)||" "}onValueChange(e){this.value=e||null}handleOption(e){this.focusInput(),this.value=e,this.open=!1}get arrow(){return this.interactive?this.arrowMode.interactive:this.arrowMode.disabled}get nativeDropdownMode(){return!!this.nativeSelect&&this.isMobile}get computedContent(){return this.valueContent||this.computedValue}onActiveZone(e){this.updateFocused(e)}onKeyDownDelete(){this.textfieldCleaner.cleaner&&(this.value=null)}focusInput(e=!1){this.nativeFocusableElement&&this.nativeFocusableElement.focus({preventScroll:e})}};i.\u0275fac=(()=>{let e;return function(o){return(e||(e=lt(i)))(o||i)}})(),i.\u0275cmp=h({type:i,selectors:[["tui-select"]],contentQueries:function(t,o,a){if(t&1&&(St(a,Ne,7),St(a,Tt,5,Zt)),t&2){let f;B(f=G())&&(o.nativeSelect=f.first),B(f=G())&&(o.datalist=f.first)}},viewQuery:function(t,o){if(t&1&&(ct(wt,5),ct(N,5)),t&2){let a;B(a=G())&&(o.textfield=a.first),B(a=G())&&(o.dropdown=a.first)}},hostVars:1,hostBindings:function(t,o){t&2&&R("data-size",o.size)},inputs:{stringify:"stringify",identityMatcher:"identityMatcher",valueContent:"valueContent"},features:[$([Le(i),Re(i),Ee(i),Se(ei)],[He]),st],ngContentSelectors:Hi,decls:10,vars:16,consts:[["select",""],["icon",""],["tuiDropdownOpenMonitor","",1,"t-hosted",3,"tuiDropdownOpenChange","tuiActiveZoneChange","tuiDropdown","tuiDropdownEnabled","tuiDropdownOpen"],["automation-id","tui-select__textfield",1,"t-textfield",3,"keydown.backspace.prevent","keydown.delete.prevent","valueChange","disabled","editable","focusable","invalid","nativeId","pseudoActive","pseudoFocus","pseudoHover","readOnly","tuiTextfieldIcon","value"],["ngProjectAs","select",5,["select"],4,"ngTemplateOutlet"],["automation-id","tui-select__value","ngProjectAs","tuiContent","class","t-value",5,["tuiContent"],4,"ngIf"],[4,"ngIf"],["ngProjectAs","select",5,["select"]],["automation-id","tui-select__value","ngProjectAs","tuiContent",5,["tuiContent"],1,"t-value"],["class","t-primitive-value",3,"textContent",4,"polymorpheusOutlet","polymorpheusOutletContext"],[1,"t-primitive-value",3,"textContent"],["appearance","icon","tuiWrapper","",1,"t-icon"],[4,"polymorpheusOutlet"]],template:function(t,o){if(t&1){let a=T();gt(Fi),p(0,"div",2),ee("tuiDropdownOpenChange",function(E){return _(a),te(o.open,E)||(o.open=E),g(E)}),v("tuiActiveZoneChange",function(E){return _(a),g(o.onActiveZone(E))}),p(1,"tui-primitive-textfield",3),v("keydown.backspace.prevent",function(){return _(a),g(o.onKeyDownDelete())})("keydown.delete.prevent",function(){return _(a),g(o.onKeyDownDelete())})("valueChange",function(E){return _(a),g(o.onValueChange(E))}),Y(2),Y(3,1,["ngProjectAs","input",5,["input"]]),d(4,Ri,1,1,"ng-template",null,0,S)(6,Ni,1,0,"ng-container",4)(7,Bi,2,5,"div",5),m(),d(8,Wi,2,1,"ng-template",null,1,S),m()}if(t&2){let a=I(5),f=I(9);l("tuiDropdown",o.datalist||"")("tuiDropdownEnabled",o.interactive&&!o.nativeDropdownMode),Jt("tuiDropdownOpen",o.open),u(),l("disabled",o.computedDisabled)("editable",!1)("focusable",o.computedFocusable)("invalid",o.computedInvalid)("nativeId",o.nativeId)("pseudoActive",o.pseudoActive)("pseudoFocus",o.computedFocused)("pseudoHover",o.pseudoHover)("readOnly",o.readOnly)("tuiTextfieldIcon",o.arrow?f:"")("value",o.computedValue),u(5),l("ngTemplateOutlet",a),u(),l("ngIf",o.value!==null)}},dependencies:[y,ft,j,wt,$e,Ue,We,Ze,we,N],styles:["[_nghost-%COMP%]{display:block;border-radius:var(--tui-radius-m);text-align:left}[_nghost-%COMP%]:not(._readonly) input:not(:disabled){cursor:pointer}._readonly[_nghost-%COMP%] input{cursor:default}.t-hosted[_ngcontent-%COMP%]{display:block;border-radius:inherit}.t-textfield[_ngcontent-%COMP%]{border-radius:inherit;text-align:inherit}.t-value[_ngcontent-%COMP%]{display:flex;width:100%;align-items:center}.t-primitive-value[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}"],changeDetection:0});let n=i;return n})(),gr=(()=>{let i=class i extends ze{get readOnly(){return!0}get value(){return this.host.computedValue}get stringify(){return this.host.stringify}onValueChange(e){this.host.onValueChange(e)}};i.\u0275fac=(()=>{let e;return function(o){return(e||(e=lt(i)))(o||i)}})(),i.\u0275dir=A({type:i,selectors:[["tui-select"]],features:[$([Ae(i)]),st]});let n=i;return n})(),fr=(()=>{let i=class i{};i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=mt({type:i}),i.\u0275inj=pt({imports:[X,Qe,ii,Ut,Ye,je,Pe,U,L,jt,Ke]});let n=i;return n})();var Yi=(n,i)=>{let r=new Date(n.year,n.month,1).getDay();return r>=i?r-i:vt-(i-r)},$i=({month:n,rowIndex:i,colIndex:r,firstDayOfWeek:e})=>{let t=i*vt+r-Yi(n,e)+1;return t>n.daysCount&&(t-=n.daysCount,n=n.append({month:1})),t<=0&&(n=n.append({month:-1}),t=n.daysCount+t),new J(n.year,n.month,t)},Qi=6,ni=(()=>{let i=class i{constructor(){this.firstDayOfWeek=c(Ct),this.currentMonth=null,this.currentSheet=[]}transform(e,t=!1){var a;if((a=this.currentMonth)!=null&&a.monthSame(e))return this.currentSheet;let o=[];for(let f=0;fnt.yearnt.year>ot.year||nt.month>ot.month;if(!(si(Dt)&&!t)){if(ui(Dt)&&!t)break;E.push(Dt)}}o.push(E)}return this.currentSheet=o.filter(f=>f.length),this.currentMonth=e,this.currentSheet}};i.\u0275fac=function(t){return new(t||i)},i.\u0275pipe=_t({name:"tuiCalendarSheet",type:i,pure:!0,standalone:!0});let n=i;return n})();function Xi(n){let i=n.length-1;return[n[i],...n.slice(0,i)]}var oi=(()=>{let i=class i{constructor(){this.firstDayOfWeekIndex=c(Ct)}transform(e){return e.pipe(rt(Xi),rt(t=>[...t.slice(this.firstDayOfWeekIndex),...t.slice(0,this.firstDayOfWeekIndex)]))}};i.\u0275fac=function(t){return new(t||i)},i.\u0275pipe=_t({name:"tuiOrderWeekDays",type:i,pure:!0,standalone:!0});let n=i;return n})();var Ki=["*"];function Zi(n,i){if(n&1){let r=T();V(0),p(1,"button",1),v("click",function(){_(r);let t=s();return g(t.onLeftClick())}),M(2),m(),p(3,"span",2),Y(4),m(),p(5,"button",3),v("click",function(){_(r);let t=s();return g(t.onRightClick())}),M(6),m(),F()}if(n&2){let r=i.ngIf,e=s();u(),D("t-hidden",e.leftComputedDisabled),l("iconStart",e.icons.decrement)("tabIndex",e.focusable?0:-1),u(),w(" ",r[0]," "),u(3),D("t-hidden",e.rightComputedDisabled),l("iconStart",e.icons.increment)("tabIndex",e.focusable?0:-1),u(),w(" ",r[1]," ")}}var ri=(()=>{let i=class i{constructor(){this.icons=c(ve),this.spinTexts$=c(fe),this.focusable=!0,this.disabled=!1,this.leftDisabled=!1,this.rightDisabled=!1,this.leftClick=new b,this.rightClick=new b}onLeftClick(){this.leftComputedDisabled||this.leftClick.emit()}onRightClick(){this.rightComputedDisabled||this.rightClick.emit()}get leftComputedDisabled(){return this.disabled||this.leftDisabled}get rightComputedDisabled(){return this.disabled||this.rightDisabled}};i.\u0275fac=function(t){return new(t||i)},i.\u0275cmp=h({type:i,selectors:[["tui-spin-button"]],hostBindings:function(t,o){t&1&&v("mousedown.silent.prevent",function(){return 0})("keydown.arrowLeft.prevent",function(){return o.onLeftClick()})("keydown.arrowRight.prevent",function(){return o.onRightClick()})},inputs:{focusable:"focusable",disabled:"disabled",leftDisabled:"leftDisabled",rightDisabled:"rightDisabled"},outputs:{leftClick:"leftClick",rightClick:"rightClick"},standalone:!0,features:[O],ngContentSelectors:Ki,decls:2,vars:3,consts:[[4,"ngIf"],["appearance","flat","automation-id","tui-spin-button__left","size","xs","tuiIconButton","","type","button",3,"click","iconStart","tabIndex"],[1,"t-content","t-calendar-title"],["appearance","flat","automation-id","tui-spin-button__right","size","xs","tuiIconButton","","type","button",3,"click","iconStart","tabIndex"]],template:function(t,o){t&1&&(gt(),d(0,Zi,7,10,"ng-container",0),C(1,"async")),t&2&&l("ngIf",P(1,1,o.spinTexts$))},dependencies:[Ce,y,k],styles:["[_nghost-%COMP%]{display:flex;align-items:center;justify-content:space-between;font:var(--tui-font-text-l);text-align:center;font-weight:700}.t-hidden[_ngcontent-%COMP%]{visibility:hidden}.t-content[_ngcontent-%COMP%]{padding:0 .5rem}"],changeDetection:0});let n=i;return n})();var qi=(n,i,r,e,t)=>[n,i,r,e,t];function Ji(n,i){if(n&1&&x(0,"div",3),n&2){let r=i.$implicit;l("textContent",r)}}function tn(n,i){if(n&1&&x(0,"div",12),n&2){let r=s().ngIf;ut("background",(r==null?null:r[1])||"")}}function en(n,i){if(n&1&&(p(0,"div",11),x(1,"div",12),d(2,tn,1,2,"div",13),m()),n&2){let r=i.ngIf;u(),ut("background",r==null?null:r[0]),u(),l("ngIf",r.length>1)}}function nn(n,i){if(n&1){let r=T();p(0,"div",8),v("click",function(){_(r);let t=s().tuiLet,o=s(4);return g(o.onItemClick(t))})("tuiHoveredChange",function(t){_(r);let o=s().tuiLet,a=s(4);return g(a.onItemHovered(t&&o))}),p(1,"div",9),C(2,"tuiMapper"),M(3),d(4,en,3,3,"div",10),C(5,"tuiMapper"),m()()}if(n&2){let r=s().tuiLet,e=s(4);D("t-cell_disabled",e.disabledItemHandler(r))("t-cell_interval",e.itemIsInterval(r))("t-cell_today",e.itemIsToday(r))("t-cell_unavailable",e.itemIsUnavailable(r)),R("data-range",e.getItemRange(r)),u(),D("t-item_unavailable",e.itemIsUnavailable(r)),R("data-type",kt(2,14,r,e.dayTypeHandler)),u(2),w(" ",r.day," "),u(),l("ngIf",re(5,17,ne(23,qi,r,e.toMarkers,e.itemIsToday(r),!!e.getItemRange(r),e.markerHandler)))}}function on(n,i){if(n&1&&(V(0),d(1,nn,6,29,"div",7),F()),n&2){let r=i.tuiLet,e=s(4);u(),l("ngIf",!e.itemIsUnavailable(r)||e.showAdjacent)}}function rn(n,i){if(n&1&&(V(0),d(1,on,2,1,"ng-container",2),F()),n&2){let r=i.$implicit,e=s().$implicit,t=s().tuiLet;u(),l("tuiLet",t[e][r])}}function an(n,i){if(n&1&&(p(0,"div",5),d(1,rn,2,1,"ng-container",6),m()),n&2){let r=i.$implicit,e=s().tuiLet;u(),l("tuiRepeatTimesOf",e[r].length)}}function ln(n,i){if(n&1&&(p(0,"div"),d(1,an,2,1,"div",4),m()),n&2){let r=i.tuiLet;u(),l("tuiRepeatTimesOf",r.length)}}function sn(n,i){if(n&1&&(V(0),M(1),F()),n&2){let r=s();u(),w(" ",r.value.formattedYear," ")}}function un(n,i){if(n&1){let r=T();p(0,"button",3),v("click",function(){_(r);let t=s();return g(t.onYearClick())}),M(1),m()}if(n&2){let r=s();u(),w(" ",r.value.formattedYear," ")}}function cn(n,i){if(n&1){let r=T();p(0,"div",4),v("click",function(){let t=_(r).tuiLet,o=s(3);return g(o.yearClick.emit(t))})("tuiHoveredChange",function(t){let o=_(r).tuiLet,a=s(3);return g(a.onItemHovered(t,o))}),p(1,"div",5),M(2),m()()}if(n&2){let r=i.tuiLet,e=s(3);D("t-cell_disabled",e.isDisabled(r))("t-cell_interval",e.itemIsInterval(r))("t-cell_today",e.itemIsToday(r)),l("tuiScrollIntoView",e.scrollItemIntoView(r)),R("data-range",e.getItemRange(r)),u(2),qt(r)}}function dn(n,i){if(n&1&&(V(0),d(1,cn,3,9,"div",3),F()),n&2){let r=i.$implicit,e=s().$implicit,t=s();u(),l("tuiLet",t.getItem(e,r))}}function pn(n,i){n&1&&(p(0,"div",1),d(1,dn,2,1,"ng-container",2),m()),n&2&&(u(),l("tuiRepeatTimesOf",4))}function mn(n,i){if(n&1){let r=T();p(0,"tui-scrollbar",2)(1,"tui-calendar-year",3),v("yearClick",function(t){_(r);let o=s();return g(o.onPickerYearClick(t))}),m()()}if(n&2){let r=s();u(),l("initialItem",r.month.year)("max",r.computedMax.year)("min",r.computedMin.year)("value",r.value)}}function _n(n,i){if(n&1){let r=T();p(0,"tui-calendar-spin",4),v("valueChange",function(t){_(r);let o=s();return g(o.onPaginationValueChange(t))})("yearClick",function(){_(r);let t=s();return g(t.onPaginationYearClick())}),m(),p(1,"tui-calendar-sheet",5),C(2,"tuiMapper"),v("dayClick",function(t){_(r);let o=s();return g(o.onDayClick(t))})("hoveredItemChange",function(t){_(r);let o=s();return g(o.onHoveredItemChange(t))}),m()}if(n&2){let r=s();l("max",r.computedMaxViewedMonth)("min",r.computedMinViewedMonth)("value",r.month),u(),l("disabledItemHandler",oe(2,9,r.disabledItemHandler,r.disabledItemHandlerMapper,r.computedMin,r.computedMax))("hoveredItem",r.hoveredItem)("markerHandler",r.markerHandler)("month",r.month)("showAdjacent",r.showAdjacent)("value",r.value)}}var gn=(()=>{let i=class i{constructor(){this.today=J.currentLocal(),this.unorderedWeekDays$=c(he),this.dayTypeHandler=c(ge),this.month=q.currentLocal(),this.disabledItemHandler=ht,this.markerHandler=null,this.value=null,this.hoveredItem=null,this.showAdjacent=!0,this.hoveredItemChange=new b,this.dayClick=new b,this.toMarkers=(e,t,o,a)=>{if(t||o)return null;let f=a==null?void 0:a(e);return f!=null&&f.length?f:null}}itemIsInterval(e){let{value:t,hoveredItem:o}=this;if(!(t instanceof dt))return!1;if(!t.isSingleDay)return t.from.daySameOrBefore(e)&&t.to.dayAfter(e);if(o===null)return!1;let a=dt.sort(t.from,o);return a.from.daySameOrBefore(e)&&a.to.dayAfter(e)}onItemHovered(e){this.updateHoveredItem(e||null)}getItemRange(e){let{value:t,hoveredItem:o}=this;return t?t instanceof J?t.daySame(e)?"single":null:t instanceof dt?t.from.daySame(e)&&!t.isSingleDay||o!=null&&o.dayAfter(t.from)&&t.from.daySame(e)&&t.isSingleDay||o!=null&&o.daySame(e)&&o.dayBefore(t.from)&&t.isSingleDay?"start":t.to.daySame(e)&&!t.isSingleDay||o!=null&&o.dayBefore(t.from)&&t.from.daySame(e)&&t.isSingleDay||o!=null&&o.daySame(e)&&o.dayAfter(t.from)&&t.isSingleDay?"end":t.isSingleDay&&t.from.daySame(e)?"single":null:t.find(a=>a.daySame(e))?"single":null:null}get isSingleDayRange(){return this.value instanceof dt&&this.value.isSingleDay}itemIsToday(e){return this.today.daySame(e)}itemIsUnavailable(e){return!this.month.monthSame(e)}onItemClick(e){this.dayClick.emit(e)}updateHoveredItem(e){Vt(this.hoveredItem,e,(t,o)=>t.daySame(o))||(this.hoveredItem=e,this.hoveredItemChange.emit(e))}};i.\u0275fac=function(t){return new(t||i)},i.\u0275cmp=h({type:i,selectors:[["tui-calendar-sheet"]],hostVars:2,hostBindings:function(t,o){t&2&&D("_single",o.isSingleDayRange)},inputs:{month:"month",disabledItemHandler:"disabledItemHandler",markerHandler:"markerHandler",value:"value",hoveredItem:"hoveredItem",showAdjacent:"showAdjacent"},outputs:{hoveredItemChange:"hoveredItemChange",dayClick:"dayClick"},standalone:!0,features:[O],decls:6,vars:9,consts:[[1,"t-row","t-row_weekday"],["class","t-cell",3,"textContent",4,"ngFor","ngForOf"],[4,"tuiLet"],[1,"t-cell",3,"textContent"],["automation-id","tui-calendar-sheet__row","class","t-row",4,"tuiRepeatTimes","tuiRepeatTimesOf"],["automation-id","tui-calendar-sheet__row",1,"t-row"],[4,"tuiRepeatTimes","tuiRepeatTimesOf"],["automation-id","tui-calendar-sheet__cell","class","t-cell",3,"t-cell_disabled","t-cell_interval","t-cell_today","t-cell_unavailable","click","tuiHoveredChange",4,"ngIf"],["automation-id","tui-calendar-sheet__cell",1,"t-cell",3,"click","tuiHoveredChange"],["automation-id","tui-calendar-sheet__item",1,"t-item"],["class","t-dots",4,"ngIf"],[1,"t-dots"],[1,"t-dot"],["class","t-dot",3,"background",4,"ngIf"]],template:function(t,o){t&1&&(p(0,"div",0),d(1,Ji,1,1,"div",1),C(2,"tuiOrderWeekDays"),C(3,"async"),m(),d(4,ln,2,1,"div",2),C(5,"tuiCalendarSheet")),t&2&&(u(),l("ngForOf",P(3,4,P(2,2,o.unorderedWeekDays$))),u(3),l("tuiLet",kt(5,6,o.month,!0)))},dependencies:[X,Q,y,k,Nt,At,zt,Rt,ni,oi],styles:['[_nghost-%COMP%]{display:block;font:var(--tui-font-text-m)}.t-row[_ngcontent-%COMP%]{position:relative;display:flex;justify-content:space-between;height:2.25rem;isolation:isolate}.t-item[_ngcontent-%COMP%]{position:relative;flex:1;line-height:2rem;border-radius:var(--tui-radius-m)}.t-item[_ngcontent-%COMP%]:before, .t-item[_ngcontent-%COMP%]:after{position:absolute;top:0;left:0;bottom:0;right:0;content:"";z-index:-1;border-radius:var(--tui-radius-m)}.t-item[_ngcontent-%COMP%]:after{border-radius:.5rem}.t-cell[_ngcontent-%COMP%]{position:relative;display:flex;align-items:center;justify-content:center;width:2.25rem;text-align:center;outline:none;cursor:pointer;background-clip:content-box;box-sizing:border-box;border:.125rem solid transparent}.t-cell[_ngcontent-%COMP%]:before{content:"";position:absolute;top:0;left:0;right:0;bottom:0;z-index:-1;border-radius:var(--tui-radius-m)}.t-cell_today[_ngcontent-%COMP%]:after{position:absolute;left:50%;transform:translate(-50%);content:"";bottom:.3125rem;height:.125rem;width:.75rem;border-radius:.375rem;background:var(--tui-text-primary)}.t-cell_interval[_ngcontent-%COMP%]:before{background:var(--tui-background-base-alt)}._single[_nghost-%COMP%] .t-cell_interval[_ngcontent-%COMP%]:before{background:var(--tui-background-neutral-1-hover)}.t-cell_interval[_ngcontent-%COMP%]:not(:last-child):before{right:-.1875rem;border-top-right-radius:0;border-bottom-right-radius:0}.t-cell_interval[_ngcontent-%COMP%]:not([data-range=start]):not(:first-child):before{border-top-left-radius:0;border-bottom-left-radius:0}.t-cell_interval[_ngcontent-%COMP%]:last-child:first-child:before{right:0}.t-cell_interval[_ngcontent-%COMP%]:first-child > .t-item[_ngcontent-%COMP%]{border-top-left-radius:var(--tui-radius-m);border-bottom-left-radius:var(--tui-radius-m)}.t-cell_interval[_ngcontent-%COMP%]:last-child > .t-item[_ngcontent-%COMP%]{border-top-right-radius:var(--tui-radius-m);border-bottom-right-radius:var(--tui-radius-m)}.t-cell_interval[_ngcontent-%COMP%] > .t-item[_ngcontent-%COMP%]{border-radius:0}.t-cell[data-range][_ngcontent-%COMP%]:after{background:var(--tui-text-primary-on-accent-1)}.t-cell[data-range][_ngcontent-%COMP%] > .t-item[_ngcontent-%COMP%]{color:var(--tui-text-primary-on-accent-1)}.t-cell[data-range][_ngcontent-%COMP%] > .t-item[_ngcontent-%COMP%]:before, .t-cell[data-range][_ngcontent-%COMP%] > .t-item[_ngcontent-%COMP%]:after{background:var(--tui-background-accent-1)}.t-cell[data-range][_ngcontent-%COMP%]:hover > .t-item[_ngcontent-%COMP%]:before, .t-cell[data-range][_ngcontent-%COMP%]:hover > .t-item[_ngcontent-%COMP%]:after{background:var(--tui-background-accent-1-hover)}.t-cell[data-range][_ngcontent-%COMP%]:active > .t-item[_ngcontent-%COMP%]:before, .t-cell[data-range][_ngcontent-%COMP%]:active > .t-item[_ngcontent-%COMP%]:after{background:var(--tui-background-accent-1-pressed)}.t-cell[data-range=end][_ngcontent-%COMP%]:before{background:var(--tui-background-base-alt)}._single[_nghost-%COMP%] .t-cell[data-range=end][_ngcontent-%COMP%]:before{background:var(--tui-background-neutral-1-hover)}.t-cell[data-range=end][_ngcontent-%COMP%]:not(:first-child):before{border-top-left-radius:0;border-bottom-left-radius:0}.t-cell[data-range=end][_ngcontent-%COMP%] > .t-item[_ngcontent-%COMP%]:before{left:.625rem;border-top-left-radius:0;border-bottom-left-radius:0}.t-cell[data-range=end][_ngcontent-%COMP%] > .t-item[_ngcontent-%COMP%]:after{left:-2rem;right:100%;transform:translate(1.6rem) scaleY(.83) scaleX(.5) rotate(45deg)}.t-cell[data-range=start][_ngcontent-%COMP%] > .t-item[_ngcontent-%COMP%]:before{right:.625rem;border-top-right-radius:0;border-bottom-right-radius:0}.t-cell[data-range=start][_ngcontent-%COMP%] > .t-item[_ngcontent-%COMP%]:after{left:100%;right:-2rem;transform:translate(-1.6rem) scaleY(.83) scaleX(.5) rotate(45deg)}.t-cell[data-range=single][_ngcontent-%COMP%] > .t-item[_ngcontent-%COMP%]:after{display:none}.t-cell_disabled[_ngcontent-%COMP%]{pointer-events:none}.t-cell_disabled[_ngcontent-%COMP%] > .t-item[_ngcontent-%COMP%]{opacity:.36}.t-cell[_ngcontent-%COMP%]:hover:not([data-range]) > .t-item[_ngcontent-%COMP%]{background:var(--tui-background-neutral-1-hover)}.t-cell[_ngcontent-%COMP%]:active:not([data-range]) > .t-item[_ngcontent-%COMP%]{background:var(--tui-background-neutral-1-pressed)}[_nghost-%COMP%]{width:15.75rem}[data-type=weekday][_ngcontent-%COMP%]{color:var(--tui-text-primary)}[data-type=weekend][_ngcontent-%COMP%]{color:var(--tui-text-negative)}.t-row[_ngcontent-%COMP%]{justify-content:flex-start}.t-row[_ngcontent-%COMP%]:first-child{justify-content:flex-end}.t-row_weekday[_ngcontent-%COMP%]{font:var(--tui-font-text-s);color:var(--tui-text-secondary);pointer-events:none}.t-item[_ngcontent-%COMP%]{display:flex;flex-direction:column}.t-item_unavailable[_ngcontent-%COMP%]{opacity:var(--tui-disabled-opacity)}.t-dots[_ngcontent-%COMP%]{display:flex;justify-content:center;margin-top:-.5rem;padding-bottom:.25rem}.t-dot[_ngcontent-%COMP%]{display:inline-block;width:.25rem;height:.25rem;border-radius:100%;margin:0 .0625rem}'],changeDetection:0});let n=i;return n})(),fn=(()=>{let i=class i{constructor(){this.value=q.currentLocal(),this.min=tt,this.max=et,this.valueChange=new b,this.yearClick=new b}onYearClick(){this.yearClick.next(this.value)}append(e){let t=this.value.append(e);this.min.monthSameOrAfter(t)?this.updateValue(this.min):this.updateValue(this.max.monthSameOrBefore(t)?this.max:t)}updateValue(e){this.value.monthSame(e)||(this.value=e,this.valueChange.emit(e))}};i.\u0275fac=function(t){return new(t||i)},i.\u0275cmp=h({type:i,selectors:[["tui-calendar-spin"]],inputs:{value:"value",min:"min",max:"max"},outputs:{valueChange:"valueChange",yearClick:"yearClick"},standalone:!0,features:[O],decls:7,vars:10,consts:[["button",""],[3,"leftClick","rightClick","focusable","leftDisabled","rightDisabled"],[4,"ngIf","ngIfElse"],["id","year-btn","automation-id","tui-primitive-year-month-pagination__year-button","tabIndex","-1","tuiLink","","type","button",3,"click"]],template:function(t,o){if(t&1){let a=T();p(0,"tui-spin-button",1),v("leftClick",function(){return _(a),g(o.append({month:-1}))})("rightClick",function(){return _(a),g(o.append({month:1}))}),M(1),C(2,"tuiMonth"),C(3,"async"),d(4,sn,2,1,"ng-container",2)(5,un,2,1,"ng-template",null,0,S),m()}if(t&2){let a=I(6);l("focusable",!1)("leftDisabled",o.value.monthSameOrBefore(o.min))("rightDisabled",o.value.monthSameOrAfter(o.max)),u(),w(" ",P(3,8,P(2,6,o.value))," "),u(3),l("ngIf",o.min.year===o.max.year)("ngIfElse",a)}},dependencies:[ri,ye,Me,y,k],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0});let n=i;return n})(),ai=100,li=4,hn=(()=>{let i=class i{constructor(){this.hoveredItem=null,this.currentYear=q.currentLocal().year,this.value=null,this.initialItem=this.currentYear,this.min=Ft,this.max=Ht,this.disabledItemHandler=ht,this.yearClick=new b}isDisabled(e){return this.max&&this.maxe||this.disabledItemHandler(e)}getItemRange(e){let{value:t,hoveredItem:o}=this;return t===null?null:t instanceof pe?t.year===e?"single":null:se(t)?t===e?"single":null:t instanceof Lt?t.from.year===e&&!t.from.yearSame(t.to)||o!==null&&o>t.from.year&&t.from.year===e&&t.from.yearSame(t.to)||o!==null&&o===e&&ot.from.year&&t.from.yearSame(t.to)?"end":t.from.yearSame(t.to)&&t.from.year===e?"single":null:t.find(a=>a.year===e)?"single":null}itemIsInterval(e){let{value:t,hoveredItem:o}=this;return this.isRange(t)?t.from.yearSame(t.to)?o===null||t.from.year===o?!1:le(e,Math.min(t.from.year,o),Math.max(t.from.year,o)):t.from.year<=e&&t.to.year>e:!1}onItemHovered(e,t){this.updateHoveredItem(e,t)}get isSingle(){return this.isRange(this.value)&&this.value.from.yearSame(this.value.to)}get rows(){return Math.ceil((this.calculatedMax-this.calculatedMin)/li)}isRange(e){return e instanceof Lt}scrollItemIntoView(e){return this.initialItem===e}getItem(e,t){return e*li+t+this.calculatedMin}itemIsToday(e){return this.currentYear===e}get calculatedMin(){let e=this.initialItem-ai,t=this.min??Ft;return t>e?t:e}get calculatedMax(){let e=this.initialItem+ai,t=this.max??Ht;return t .t-item[_ngcontent-%COMP%]{border-top-left-radius:var(--tui-radius-m);border-bottom-left-radius:var(--tui-radius-m)}.t-cell_interval[_ngcontent-%COMP%]:last-child > .t-item[_ngcontent-%COMP%]{border-top-right-radius:var(--tui-radius-m);border-bottom-right-radius:var(--tui-radius-m)}.t-cell_interval[_ngcontent-%COMP%] > .t-item[_ngcontent-%COMP%]{border-radius:0}.t-cell[data-range][_ngcontent-%COMP%]:after{background:var(--tui-text-primary-on-accent-1)}.t-cell[data-range][_ngcontent-%COMP%] > .t-item[_ngcontent-%COMP%]{color:var(--tui-text-primary-on-accent-1)}.t-cell[data-range][_ngcontent-%COMP%] > .t-item[_ngcontent-%COMP%]:before, .t-cell[data-range][_ngcontent-%COMP%] > .t-item[_ngcontent-%COMP%]:after{background:var(--tui-background-accent-1)}.t-cell[data-range][_ngcontent-%COMP%]:hover > .t-item[_ngcontent-%COMP%]:before, .t-cell[data-range][_ngcontent-%COMP%]:hover > .t-item[_ngcontent-%COMP%]:after{background:var(--tui-background-accent-1-hover)}.t-cell[data-range][_ngcontent-%COMP%]:active > .t-item[_ngcontent-%COMP%]:before, .t-cell[data-range][_ngcontent-%COMP%]:active > .t-item[_ngcontent-%COMP%]:after{background:var(--tui-background-accent-1-pressed)}.t-cell[data-range=end][_ngcontent-%COMP%]:before{background:var(--tui-background-base-alt)}._single[_nghost-%COMP%] .t-cell[data-range=end][_ngcontent-%COMP%]:before{background:var(--tui-background-neutral-1-hover)}.t-cell[data-range=end][_ngcontent-%COMP%]:not(:first-child):before{border-top-left-radius:0;border-bottom-left-radius:0}.t-cell[data-range=end][_ngcontent-%COMP%] > .t-item[_ngcontent-%COMP%]:before{left:.625rem;border-top-left-radius:0;border-bottom-left-radius:0}.t-cell[data-range=end][_ngcontent-%COMP%] > .t-item[_ngcontent-%COMP%]:after{left:-2rem;right:100%;transform:translate(1.6rem) scaleY(.83) scaleX(.5) rotate(45deg)}.t-cell[data-range=start][_ngcontent-%COMP%] > .t-item[_ngcontent-%COMP%]:before{right:.625rem;border-top-right-radius:0;border-bottom-right-radius:0}.t-cell[data-range=start][_ngcontent-%COMP%] > .t-item[_ngcontent-%COMP%]:after{left:100%;right:-2rem;transform:translate(-1.6rem) scaleY(.83) scaleX(.5) rotate(45deg)}.t-cell[data-range=single][_ngcontent-%COMP%] > .t-item[_ngcontent-%COMP%]:after{display:none}.t-cell_disabled[_ngcontent-%COMP%]{pointer-events:none}.t-cell_disabled[_ngcontent-%COMP%] > .t-item[_ngcontent-%COMP%]{opacity:.36}.t-cell[_ngcontent-%COMP%]:hover:not([data-range]) > .t-item[_ngcontent-%COMP%]{background:var(--tui-background-neutral-1-hover)}.t-cell[_ngcontent-%COMP%]:active:not([data-range]) > .t-item[_ngcontent-%COMP%]{background:var(--tui-background-neutral-1-pressed)}[_nghost-%COMP%]{width:15.75rem}.t-row[_ngcontent-%COMP%]{margin:.875rem 0}.t-row[_ngcontent-%COMP%]:first-child{margin-top:0}.t-row[_ngcontent-%COMP%]:last-child{margin-bottom:0}'],changeDetection:0});let n=i;return n})(),ia=(()=>{let i=class i{constructor(){this.day=null,this.view="month",this.month=q.currentLocal(),this.disabledItemHandler=ht,this.min=tt,this.max=et,this.minViewedMonth=tt,this.maxViewedMonth=et,this.hoveredItem=null,this.showAdjacent=!0,this.markerHandler=null,this.dayClick=new b,this.monthChange=new b,this.hoveredItemChange=new b,this.disabledItemHandlerMapper=(e,t,o)=>a=>a.dayBefore(t)||a.dayAfter(o)||e(a)}set value(e){this.day=e,this.showAdjacent&&e instanceof J&&(this.month=e)}set initialView(e){this.view=e}get value(){return this.day}onPaginationValueChange(e){this.updateViewedMonth(e)}onDayClick(e){this.dayClick.emit(e)}onHoveredItemChange(e){this.updateHoveredDay(e)}get computedMin(){return this.min??tt}get computedMax(){return this.max??et}get computedMinViewedMonth(){let e=this.computedMin,t=this.minViewedMonth??tt;return t.monthSameOrAfter(e)?t:e}get computedMaxViewedMonth(){let e=this.computedMax,t=this.maxViewedMonth??et;return t.monthSameOrBefore(e)?t:e}get isInYearView(){return this.view==="year"}onPaginationYearClick(){this.view="year"}onPickerYearClick(e){this.view="month",this.updateViewedMonth(new q(e,this.month.month))}updateViewedMonth(e){this.month.monthSame(e)||(this.month=e,this.monthChange.emit(e))}updateHoveredDay(e){Vt(this.hoveredItem,e,(t,o)=>t.daySame(o))||(this.hoveredItem=e,this.hoveredItemChange.emit(e))}};i.\u0275fac=function(t){return new(t||i)},i.\u0275cmp=h({type:i,selectors:[["tui-calendar"]],inputs:{month:"month",disabledItemHandler:"disabledItemHandler",min:"min",max:"max",minViewedMonth:"minViewedMonth",maxViewedMonth:"maxViewedMonth",hoveredItem:"hoveredItem",showAdjacent:"showAdjacent",markerHandler:"markerHandler",value:"value",initialView:"initialView"},outputs:{dayClick:"dayClick",monthChange:"monthChange",hoveredItemChange:"hoveredItemChange"},standalone:!0,features:[O],decls:3,vars:2,consts:[["calendar",""],["automation-id","tui-calendar__scrollbar","class","t-scrollbar",4,"ngIf","ngIfElse"],["automation-id","tui-calendar__scrollbar",1,"t-scrollbar"],["automation-id","tui-calendar__year",3,"yearClick","initialItem","max","min","value"],["automation-id","tui-calendar__pagination",1,"t-pagination",3,"valueChange","yearClick","max","min","value"],["automation-id","tui-calendar__calendar",3,"dayClick","hoveredItemChange","disabledItemHandler","hoveredItem","markerHandler","month","showAdjacent","value"]],template:function(t,o){if(t&1&&d(0,mn,2,4,"tui-scrollbar",1)(1,_n,3,14,"ng-template",null,0,S),t&2){let a=I(2);l("ngIf",o.isInYearView)("ngIfElse",a)}},dependencies:[y,Ie,hn,fn,gn,At],styles:["[_nghost-%COMP%]{display:block;min-height:18.25rem;width:15.75rem;padding:1rem 1.125rem;box-sizing:content-box}.t-scrollbar[_ngcontent-%COMP%]{height:18.25rem;width:16.875rem}.t-pagination[_ngcontent-%COMP%]{margin-bottom:1rem}"],changeDetection:0});let n=i;return n})();export{hn as a,ia as b,In as c,Ze as d,_r as e,gr as f,fr as g}; diff --git a/chunk-ROMIO7FL.js b/chunk-ROMIO7FL.js new file mode 100644 index 000000000..baa426195 --- /dev/null +++ b/chunk-ROMIO7FL.js @@ -0,0 +1,8 @@ +import{a as Yi,c as me,e as rn,f as an}from"./chunk-LSLALVJS.js";import{a as Xi,c as fn,f as xe,g as be,h as ve,i as yn,m as xn}from"./chunk-JUA3DLL5.js";import{b as bn}from"./chunk-ZWMUZJ6F.js";import{a as Hi,j as Bt,l as he,m as fe,n as ge}from"./chunk-TM3BF3MS.js";import{a as de}from"./chunk-XEFPZ7J3.js";import{a as ln}from"./chunk-NSSAPNB2.js";import{a as sn,b as gn,c as _e,d as Ce,e as ye}from"./chunk-OU5F42O3.js";import{V as Cn,a as Ui,c as Gi,e as Ki,i as pn,w as _n}from"./chunk-XENTLRKE.js";import{Ha as hn,K as At,N as qi,R as Zi,T as Ji,_ as tn,aa as en,c as ui,d as mi,e as di,i as $i,j as ji,ja as nn,l as Wi,la as on,n as Qi,o as ue,pa as cn}from"./chunk-DXP4LH76.js";import{a as R,b as H,c as q}from"./chunk-VVRWXTJV.js";import{$b as at,$e as Fe,A as tt,Aa as ti,Ab as N,B as Ye,Bb as s,Bc as Y,Bf as pe,Ca as k,Cb as c,Cf as F,Db as g,Df as Mt,Ea as et,Eb as lt,Ec as ci,F as qe,Fa as Ct,Fb as pt,Fd as ne,Gb as te,Gd as De,Hb as T,Hd as ct,Ja as Xt,Jb as ai,Ka as x,Kb as w,Kd as bt,Kf as U,La as b,Lb as p,Lf as un,Mb as ut,Mc as Ie,Md as Si,Mf as mn,N as Ke,Na as ei,Nb as W,Nc as K,Nd as wi,Nf as dn,Ob as mt,Oc as ee,Oe as Ai,Pc as O,Qb as dt,Qc as li,Rb as ht,Rd as Pi,Sa as A,Sb as E,Sc as ie,Tb as u,Tc as M,Td as Mi,Ua as Zt,Ub as St,Ud as Ht,Ue as Bi,Va as ii,Vb as v,Vd as oe,Ve as ce,W as Me,Wb as It,Wc as pi,We as Ni,Xb as V,Xd as $t,Xe as Vi,Yb as L,Ye as Ee,Za as ni,Zb as z,Zd as Oi,_a as oi,_b as Q,_d as Ii,a as zt,ac as it,b as Rt,bc as nt,cb as a,cc as S,d as rt,dc as wt,df as le,e as $e,ea as Xe,ed as hi,ef as Li,fb as Ut,fc as si,fe as re,gd as Pt,ha as Ze,i as je,ia as Ot,id as fi,ja as Je,jc as h,jd as yt,kc as y,kd as gi,ke as X,kf as zi,lb as $,lc as G,ld as _i,m as qt,mb as Oe,me as ae,nb as ri,nd as Et,o as We,od as Ft,pa as gt,pc as st,pd as Ci,pe as Di,qa as _t,qd as yi,r as Qe,rb as f,sb as Jt,t as Kt,ta as Tt,tb as l,td as xi,tf as Ri,ub as C,ud as bi,ue as se,vb as kt,vd as vi,w as Ge,wa as d,wd as Ti,we as Ei,xb as D,xe as Fi,yb as j,yc as Dt,yd as xt,zb as B,zd as ki}from"./chunk-NEAIWFFQ.js";var vn=(()=>{let t=class t{constructor(){this.service=d(Zi)}transform(n){return this.service.format(n.valueOf())}};t.\u0275fac=function(i){return new(i||t)},t.\u0275pipe=Ct({name:"tuiFormatDate",type:t,pure:!0,standalone:!0});let e=t;return e})();var Un=typeof IntersectionObserver<"u"?IntersectionObserver:class{constructor(){rt(this,"root",null);rt(this,"rootMargin","");rt(this,"thresholds",[])}observe(){}unobserve(){}disconnect(){}takeRecords(){return[]}},Hn=new Tt("[WA_INTERSECTION_ROOT]"),$n=Hn,jn="0px 0px 0px 0px",Wn=jn,Ae=new Tt("[WA_INTERSECTION_ROOT_MARGIN]",{providedIn:"root",factory:()=>Wn}),Qn=Ae;var Gn=0,Yn=Gn,Be=new Tt("[WA_INTERSECTION_THRESHOLD]",{providedIn:"root",factory:()=>Yn}),qn=Be;var Ne=(()=>{var t;let o=class o extends je{constructor(){super(r=>{let m=new Un(_=>{r.next(_)},{root:this.root,rootMargin:this.rootMargin,threshold:this.threshold});return m.observe(this.nativeElement),()=>{m.disconnect()}});rt(this,"nativeElement",d(ii).nativeElement);rt(this,"rootMargin",d(Qn));rt(this,"threshold",d(qn));rt(this,"root",((t=d($n,{optional:!0}))==null?void 0:t.nativeElement)??null)}};rt(o,"\u0275fac",function(m){return new(m||o)}),rt(o,"\u0275prov",_t({token:o,factory:o.\u0275fac}));let e=o;return e})(),ea=new Tt("[WA_INTERSECTION_OBSERVER_SUPPORT]: [INTERSECTION_OBSERVER_SUPPORT]",{providedIn:"root",factory:()=>!!d(Ai).IntersectionObserver});var Kn=[{opacity:.06},{opacity:1}],Xn=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275cmp=k({type:t,selectors:[["ng-component"]],hostAttrs:[1,"tui-skeleton-styles"],standalone:!0,features:[S],decls:0,vars:0,template:function(i,r){},styles:[`@keyframes tuiSkeleton{0%{opacity:.03}to{opacity:.06}}[tuiSkeleton]._skeleton{color:transparent;background:var(--tui-background-base)!important;box-shadow:none!important;filter:contrast(0) brightness(0);animation:tuiSkeleton ease-in-out 1s infinite alternate}[tuiSkeleton]._skeleton[data-tui-skeleton]{background:transparent!important}[tuiSkeleton]._skeleton[data-tui-skeleton]:before{content:attr(data-tui-skeleton);background:var(--tui-background-base);font-size:smaller;-webkit-box-decoration-break:clone;box-decoration-break:clone;border-radius:.25rem}[tuiTheme=dark] [tuiSkeleton]._skeleton,[tuiTheme=dark][tuiSkeleton]._skeleton{filter:contrast(0) brightness(0) invert(1)} +`],encapsulation:2,changeDetection:0});let e=t;return e})(),Z=(()=>{let t=class t{constructor(){this.el=re(),this.duration=d(le)*$i*2,this.nothing=$t(Xn),this.tuiSkeleton=!1}ngOnChanges({tuiSkeleton:n}){var i;(i=this.animation)==null||i.cancel(),!n.currentValue&&!n.firstChange&&(this.animation=this.el.animate(Kn,this.duration))}getPlaceholder(n){switch(typeof n){case"number":return Array.from({length:n}).map(()=>se.repeat(Zn())).join(" ");case"string":return n;default:return null}}};t.\u0275fac=function(i){return new(i||t)},t.\u0275dir=et({type:t,selectors:[["","tuiSkeleton",""]],hostAttrs:["tuiSkeleton",""],hostVars:3,hostBindings:function(i,r){i&2&&(Jt("data-tui-skeleton",r.getPlaceholder(r.tuiSkeleton)),kt("_skeleton",r.tuiSkeleton))},inputs:{tuiSkeleton:"tuiSkeleton"},standalone:!0,features:[Xt]});let e=t;return Kt([oe],e.prototype,"getPlaceholder",null),e})();function Zn(){return Math.floor(Math.random()*11)+5}var Tn={appearance:"neutral",size:"s"},Jn=bt(Tn);function kn(e){return Ht(Jn,e,Tn)}var to=[[["input"]],"*"],eo=["input","*"];function io(e,t){e&1&&(s(0,"span",3),W(1,1),c())}function no(e,t){if(e&1&&(lt(0),g(1,"span",1),f(2,io,2,0,"span",2),pt()),e&2){let o=t.tuiLet,n=p();a(),C("text-indent",n.indent,"px"),l("textContent",o),a(),l("ngIf",!o)}}var Sn=(()=>{let t=class t{constructor(){this.value$=qe(()=>Bi(this.control)),this.indent=-1}onScroll(n){Ii(n)&&Oi(n)&&(this.indent=-n.scrollLeft-1)}};t.\u0275fac=function(i){return new(i||t)},t.\u0275cmp=k({type:t,selectors:[["tui-input-inline"]],contentQueries:function(i,r,m){if(i&1&&mt(m,fi,5),i&2){let _;dt(_=ht())&&(r.control=_.first)}},hostBindings:function(i,r){i&1&&w("scroll.capture",function(_){return r.onScroll(_.target)})},standalone:!0,features:[S],ngContentSelectors:eo,decls:3,vars:3,consts:[[4,"tuiLet"],[1,"t-before",3,"textContent"],["automation-id","tui-input-inline__placeholder","class","t-placeholder",4,"ngIf"],["automation-id","tui-input-inline__placeholder",1,"t-placeholder"]],template:function(i,r){i&1&&(ut(to),f(0,no,3,4,"ng-container",0),h(1,"async"),W(2)),i&2&&l("tuiLet",y(1,1,r.value$))},dependencies:[K,Ki,O],styles:[`tui-input-inline{position:relative;display:inline-block;overflow:hidden;white-space:nowrap;box-sizing:border-box}tui-input-inline>.t-before{display:block;padding-right:.02em;margin-left:1px;white-space:pre}tui-input-inline>.t-placeholder{display:inline-block;min-width:1px}tui-input-inline>input{position:absolute;top:0;left:0;background-color:transparent;padding:inherit;font:inherit;-webkit-text-fill-color:transparent;box-sizing:border-box;width:100%;height:100%;border-width:0;text-align:inherit;letter-spacing:inherit;text-indent:inherit;text-transform:inherit;outline:none} +`],encapsulation:2,changeDetection:0});let e=t;return e})();var oo=[[["img"]],[["tui-svg"],["tui-icon"]],"*",[["","tuiButton",""]],[["","tuiLink",""]]],ro=["img","tui-svg,tui-icon","*","[tuiButton]","[tuiLink]"];function ao(e,t){if(e&1){let o=T();s(0,"button",10),w("click",function(){x(o);let i=p();return b(i.close.emit())}),u(1),h(2,"async"),c()}if(e&2){let o=p();C("border-radius",100,"%"),l("iconStart",o.icons.close),a(),v(" ",y(2,4,o.closeWord$),` +`)}}function so(e,t){if(e&1&&(g(0,"span",11),h(1,"tuiFormatDate"),h(2,"async")),e&2){let o=p();l("textContent",o.isString(o.timestamp)?o.timestamp:y(2,3,y(1,1,o.timestamp)))}}function co(e,t){if(e&1&&g(0,"img",8),e&2){let o=p(2);l("src",o.context.image,oi)}}function lo(e,t){if(e&1&&g(0,"tui-icon",9),e&2){let o=p(2);C("color",o.context.iconColor),l("icon",o.context.icon)}}function po(e,t){if(e&1&&g(0,"div",10),e&2){let o=t.polymorpheusOutlet;l("innerHTML",o,ni)}}function uo(e,t){if(e&1){let o=T();s(0,"button",11),w("click",function(){x(o);let i=p(2);return b(i.context.$implicit.next(i.context.buttons[0]))}),u(1),c()}if(e&2){let o=p(2);a(),v(" ",o.context.buttons[0]," ")}}function mo(e,t){if(e&1){let o=T();s(0,"button",12),w("click",function(){x(o);let i=p(2);return b(i.context.$implicit.next(i.context.buttons[i.context.buttons.length-1]))}),u(1),c()}if(e&2){let o=p(2);a(),v(" ",o.context.buttons[o.context.buttons.length-1]," ")}}function ho(e,t){if(e&1){let o=T();s(0,"tui-push",2),w("close",function(){x(o);let i=p();return b(i.context.$implicit.complete())}),f(1,co,1,1,"img",3)(2,lo,1,3,"tui-icon",4)(3,po,1,1,"div",5)(4,uo,2,1,"button",6)(5,mo,2,1,"button",7),c()}if(e&2){let o=p();l("heading",o.context.heading)("timestamp",o.context.timestamp)("type",o.context.type),a(),l("ngIf",o.context.image),a(),l("ngIf",o.context.icon),a(),l("polymorpheusOutlet",o.context.content)("polymorpheusOutletContext",o.context),a(),l("ngIf",o.context.buttons.length>1),a(),l("ngIf",o.context.buttons.length)}}function fo(e,t){e&1&&te(0)}function go(e,t){if(e&1&&f(0,fo,1,0,"ng-container",13),e&2){let o=p();l("polymorpheusOutlet",o.context.content)}}var _o=(()=>{let t=class t{constructor(){this.isString=Si,this.closeWord$=d(zi),this.icons=d(Li),this.heading="",this.type="",this.timestamp="",this.close=new A}};t.\u0275fac=function(i){return new(i||t)},t.\u0275cmp=k({type:t,selectors:[["tui-push"]],inputs:{heading:"heading",type:"type",timestamp:"timestamp"},outputs:{close:"close"},standalone:!0,features:[nt([pe({size:"s",appearance:"secondary"})]),S],ngContentSelectors:ro,decls:17,vars:4,consts:[[1,"t-image"],["appearance","","size","xs","tuiIconButton","","type","button","class","t-close",3,"iconStart","border-radius","click",4,"ngIf"],[1,"t-top"],[1,"t-icon"],["class","t-time",3,"textContent",4,"ngIf"],["automation-id","tui-push__heading",1,"t-heading"],[1,"t-content"],[1,"t-actions"],[1,"t-button"],[1,"t-link"],["appearance","","size","xs","tuiIconButton","","type","button",1,"t-close",3,"click","iconStart"],[1,"t-time",3,"textContent"]],template:function(i,r){i&1&&(ut(oo),s(0,"div",0),W(1),c(),f(2,ao,3,6,"button",1),s(3,"div",2)(4,"span",3),W(5,1),c(),u(6),f(7,so,3,5,"span",4),c(),s(8,"h3",5),u(9),c(),s(10,"div",6),W(11,2),c(),s(12,"div",7)(13,"span",8),W(14,3),c(),s(15,"span",9),W(16,4),c()()),i&2&&(a(2),l("ngIf",r.close.observed),a(4),v(" ",r.type," "),a(),l("ngIf",r.timestamp),a(2),v(" ",r.heading,` +`))},dependencies:[K,O,F,vn],styles:['[_nghost-%COMP%]{position:relative;display:block;width:22.5rem;max-width:100%;box-sizing:border-box;padding:1.25rem 1.25rem .25rem;overflow:hidden;font:var(--tui-font-text-m);border-radius:var(--tui-radius-xl);background:var(--tui-background-elevation-2);box-shadow:var(--tui-shadow-small)}.t-image[_ngcontent-%COMP%]{display:flex;flex-direction:column;max-height:10.625rem;overflow:hidden;margin:-1.25rem -1.25rem 1.25rem}.t-close[_ngcontent-%COMP%]{position:absolute;top:.75rem;right:.75rem;color:#0000008a;background:#f2f2f252;-webkit-backdrop-filter:blur(1rem);backdrop-filter:blur(1rem)}.t-top[_ngcontent-%COMP%]{display:flex;align-items:center;font:var(--tui-font-text-s);color:var(--tui-text-secondary)}.t-icon[_ngcontent-%COMP%]{height:1.25rem;margin-right:.5rem;transform:scale(.833);transform-origin:top left;color:var(--tui-text-action)}.t-time[_ngcontent-%COMP%]:before{content:"\\2022";display:inline-block;width:1rem;text-align:center}.t-heading[_ngcontent-%COMP%]{line-height:1.25rem;font-weight:700;margin:.75rem 0 .25rem}.t-heading[_ngcontent-%COMP%], .t-content[_ngcontent-%COMP%]{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;word-break:break-word;overflow:hidden}.t-actions[_ngcontent-%COMP%]{display:flex;align-items:center;font:var(--tui-font-text-s)}.t-button[_ngcontent-%COMP%]:not(:empty){margin:.75rem .75rem .75rem 0}.t-link[_ngcontent-%COMP%]{margin:.75rem 0}.t-link[_ngcontent-%COMP%]:empty{margin:.5rem}'],changeDetection:0});let e=t;return e})(),Co={heading:"",type:"",timestamp:"",image:"",icon:"",iconColor:"",buttons:[]},yo=bt(Co);var xo=(()=>{let t=class t{constructor(){this.options=ji(d(le)),this.context=d(Wi)}get isDirective(){return this.context.content instanceof bo}};t.\u0275fac=function(i){return new(i||t)},t.\u0275cmp=k({type:t,selectors:[["ng-component"]],hostAttrs:["role","alert"],hostVars:3,hostBindings:function(i,r){i&2&&ai("@tuiFadeIn",r.options)("@tuiSlideInRight",r.options)("@tuiHeightCollapse",r.options)},standalone:!0,features:[S],decls:3,vars:2,consts:[["directive",""],[3,"heading","timestamp","type","close",4,"ngIf","ngIfElse"],[3,"close","heading","timestamp","type"],["alt","",3,"src",4,"ngIf"],[3,"icon","color",4,"ngIf"],[3,"innerHTML",4,"polymorpheusOutlet","polymorpheusOutletContext"],["tuiButton","","type","button",3,"click",4,"ngIf"],["tuiLink","","type","button",3,"click",4,"ngIf"],["alt","",3,"src"],[3,"icon"],[3,"innerHTML"],["tuiButton","","type","button",3,"click"],["tuiLink","","type","button",3,"click"],[4,"polymorpheusOutlet"]],template:function(i,r){if(i&1&&f(0,ho,6,9,"tui-push",1)(1,go,1,1,"ng-template",null,0,st),i&2){let m=E(2);l("ngIf",!r.isDirective)("ngIfElse",m)}},dependencies:[K,ue,_o,Mt,F,Ui],styles:["[_nghost-%COMP%]{max-width:calc(100% - 2rem);margin:0 1rem 1rem auto}[_nghost-%COMP%]:first-child{margin-top:auto}"],data:{animation:[mi,di,ui]},changeDetection:0});let e=t;return e})(),Ve=(()=>{let t=class t extends Gi{};t.\u0275fac=(()=>{let n;return function(r){return(n||(n=ei(t)))(r||t)}})(),t.\u0275prov=_t({token:t,factory:()=>new t(Yi,xo,d(yo)),providedIn:"root"});let e=t;return e})(),bo=(()=>{let t=class t extends Qi{constructor(){super(d(Ut),d(Dt)),this.push=d(gt(()=>Ve)),this.show$=new qt,this.show$.pipe(Vi(()=>this.push.open(this)),ne()).subscribe()}set tuiPush(n){this.show$.next(n)}};t.\u0275fac=function(i){return new(i||t)},t.\u0275dir=et({type:t,selectors:[["ng-template","tuiPush",""]],inputs:{tuiPush:"tuiPush"},standalone:!0,features:[Oe]});let e=t;return e})();var wn=(()=>{let t=class t{constructor(){this.token={urlIcon:"",token:"",amount:0,symbol:""},this.tokenChange=new A}createNew(){this.tokenChange.emit(null)}};t.\u0275fac=function(i){return new(i||t)},t.\u0275cmp=k({type:t,selectors:[["lmb-minter-created"]],inputs:{token:"token"},outputs:{tokenChange:"tokenChange"},standalone:!0,features:[S],decls:5,vars:5,consts:[["size","xl",1,"logo",3,"src"],["tuiTitle","",1,"info"],["tuiButton","",3,"click"]],template:function(i,r){i&1&&(g(0,"tui-avatar",0),s(1,"h3",1),u(2),c(),s(3,"button",2),w("click",function(){return r.createNew()}),u(4,` Create new Token +`),c()),i&2&&(l("src",r.token.urlIcon),a(2),It(" ",r.token.amount," ($",r.token.symbol,`) have been sent to your wallet +`),a(),C("margin-top","auto"))},dependencies:[M,U,F,R],styles:[".logo[_ngcontent-%COMP%]{background-color:#7c48c3;background-image:linear-gradient(45deg,#c86dd7,#3023ae);overflow:visible;margin-left:auto;margin-right:auto;animation:_ngcontent-%COMP%_spinLogo 5s infinite}@keyframes _ngcontent-%COMP%_spinLogo{0%{transform:rotateY(0);box-shadow:0 0 #0000004d}12%{transform:rotateY(90deg) rotate(6deg) scale(1.7);box-shadow:0 .25rem .5rem #0000004d}25%{transform:rotateY(180deg);box-shadow:0 0 #0000004d}50%{transform:rotateY(180deg);box-shadow:0 0 #0000004d}62%{transform:rotateY(270deg) rotate(-8deg) scale(1.7);box-shadow:0 .25rem .5rem #0000004d}80%{transform:rotateY(720deg);box-shadow:0 0 #0000004d}to{transform:rotateY(720deg);box-shadow:0 0 #0000004d}}[_nghost-%COMP%]{display:flex;flex-direction:column;gap:1rem}.info[_ngcontent-%COMP%]{margin-left:auto;margin-right:auto;text-align:center}"],changeDetection:0});let e=t;return e})();var jt=()=>[],To=()=>({label:"Edit logo",size:"s",closeable:!1,dismissible:!1});function ko(e,t){if(e&1){let o=T();s(0,"p"),u(1,"URL of 256x256 pixel PNG image of token logo"),c(),s(2,"tui-input",17),u(3," Logo token "),c(),g(4,"tui-error",18),h(5,"tuiFieldError"),h(6,"async"),s(7,"p")(8,"button",19),w("click",function(){let i=x(o).$implicit;p();let r=it(2);return b(r!==""?i.complete():"")}),u(9," Submit "),c()()}e&2&&(a(4),C("text-align","center"),l("error",y(6,5,y(5,3,wt(7,jt)))))}var Mn=(()=>{let t=class t{constructor(){this.form=new _i({name:new Et("",[Pt.required]),symbol:new Et("",[Pt.required,Pt.minLength(3),Pt.maxLength(5)]),amount:new Et(0,[Pt.required,Pt.min(1)]),urlIcon:new Et(""),description:new Et("")}),this.push=d(Ve),this.openDialog=!1,this.tokenChange=new A}showDialog(){this.openDialog=!0}onSubmit(){Pi(this.form),this.form.valid&&(this.push.open("Minted your token",{heading:"Success",icon:"check"}).subscribe(),this.tokenChange.emit({urlIcon:this.form.controls.urlIcon.value??"",token:this.form.controls.name.value??"",symbol:this.form.controls.symbol.value??"",amount:Number(this.form.controls.amount.value)??0}))}};t.\u0275fac=function(i){return new(i||t)},t.\u0275cmp=k({type:t,selectors:[["lmb-minter-deploy"]],outputs:{tokenChange:"tokenChange"},standalone:!0,features:[nt([{provide:hn,useValue:{maxlength:({requiredLength:n})=>`Maximum length \u2014 ${n}`,minlength:({requiredLength:n})=>Ge(`Minimum length \u2014 ${n}`)}}]),S],decls:39,vars:35,consts:[[3,"submit","formGroup"],[1,"info","block-input"],["tuiCell","l"],["size","xl",3,"click","src"],["tuiTitle",""],["tuiSubtitle",""],["formControlName","name","tuiHintContent","Your project name with spaces"],["tuiTextfieldLegacy",""],["formControlName","name",1,"block-input",3,"error"],["formControlName","symbol","tuiHintContent","Currency symbol appearing in balance (usually 3-5 uppercase chars)"],["formControlName","symbol",1,"block-input",3,"error"],["formControlName","amount","tuiHintContent","Number of initial tokens to mint and send to your waller address"],["formControlName","amount",1,"block-input",3,"error"],["formControlName","description","tuiHintContent","Optional sentence explaining about yor project"],["formControlName","description",1,"block-input",3,"error"],["tuiButton","","type","submit"],[3,"tuiDialogChange","tuiDialogOptions","tuiDialog"],["formControlName","urlIcon","tuiAutoFocus",""],["formControlName","urlIcon",1,"block-input",3,"error"],["tuiButton","",3,"click"]],template:function(i,r){if(i&1){let m=T();Q(0)(1)(2)(3),s(4,"form",0),w("submit",function(){return x(m),b(r.onSubmit())}),s(5,"div",1)(6,"div",2)(7,"tui-avatar",3),w("click",function(){return x(m),b(r.showDialog())}),c(),s(8,"div",4),u(9),s(10,"div",5),u(11),c()()()(),s(12,"tui-input",6),u(13," Jetton Name "),g(14,"input",7),c(),g(15,"tui-error",8),h(16,"tuiFieldError"),h(17,"async"),s(18,"tui-input",9),u(19," Jetton Symbol "),g(20,"input",7),c(),g(21,"tui-error",10),h(22,"tuiFieldError"),h(23,"async"),s(24,"tui-input-number",11),u(25," Number of tokens "),g(26,"input",7),c(),g(27,"tui-error",12),h(28,"tuiFieldError"),h(29,"async"),s(30,"tui-input",13),u(31," Description "),g(32,"input",7),c(),g(33,"tui-error",14),h(34,"tuiFieldError"),h(35,"async"),s(36,"button",15),u(37," Deploy "),c(),f(38,ko,10,8,"ng-template",16),z("tuiDialogChange",function(P){return x(m),L(r.openDialog,P)||(r.openDialog=P),b(P)}),c()}if(i&2){let m=r.form.controls.name.value,_=r.form.controls.symbol.value;a(2);let P=at(r.form.controls.urlIcon.value),ft=r.form.controls.description.value;a(2),l("formGroup",r.form),a(3),l("src",!r.openDialog&&P!==""?P:"@tui.pencil"),a(2),It(" ",m==""?"Jetton Name":m," (",_==""?"Symbol":_,") "),a(2),St(ft==""?"Description":ft),a(4),l("error",y(17,16,y(16,14,wt(30,jt)))),a(6),l("error",y(23,20,y(22,18,wt(31,jt)))),a(6),l("error",y(29,24,y(28,22,wt(32,jt)))),a(6),l("error",y(35,28,y(34,26,wt(33,jt)))),a(3),C("margin-top","auto"),a(2),l("tuiDialogOptions",wt(34,To)),V("tuiDialog",r.openDialog)}},dependencies:[M,O,xt,Ci,yt,gi,ki,xi,bi,me,U,F,Bt,an,sn,gn,cn,ye,_e,Ce,Cn,ge,he,fe],styles:[".info[_ngcontent-%COMP%]{margin-left:auto;margin-right:auto;text-align:center}[_nghost-%COMP%]{display:flex;flex-direction:column;gap:1rem}form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.4rem;height:100%}.block-input[_ngcontent-%COMP%]{margin-bottom:.3rem}"],changeDetection:0});let e=t;return e})();function So(e,t){if(e&1){let o=T();s(0,"lmb-minter-deploy",5),w("tokenChange",function(i){x(o);let r=p();return b(r.token=i)}),c()}e&2&&C("flex-grow",1)}function wo(e,t){if(e&1){let o=T();s(0,"lmb-minter-created",6),z("tokenChange",function(i){x(o);let r=p();return L(r.token,i)||(r.token=i),b(i)}),c()}if(e&2){let o=p();C("flex-grow",1),V("token",o.token)}}var On=(()=>{let t=class t{constructor(){this.token=null}};t.\u0275fac=function(i){return new(i||t)},t.\u0275cmp=k({type:t,selectors:[["lmb-minter"]],standalone:!0,features:[S],decls:6,vars:4,consts:[["tuiAppearance","whiteblock","tuiCardLarge","normal",1,"card"],["tuiHeader",""],["tuiTitle",""],[3,"flex-grow"],[3,"flex-grow","token"],[3,"tokenChange"],[3,"tokenChange","token"]],template:function(i,r){i&1&&(s(0,"div",0)(1,"header",1)(2,"h2",2),u(3),c()(),f(4,So,1,2,"lmb-minter-deploy",3)(5,wo,1,3,"lmb-minter-created",4),c()),i&2&&(a(2),C("text-align","center"),a(),v(" ",r.token?r.token.token+" successfully created":"Mint your token"," "),a(),D(r.token?5:4))},dependencies:[M,wn,Mn,X,H,q,R],styles:[".info[_ngcontent-%COMP%]{margin-left:auto;margin-right:auto;text-align:center}.card[_ngcontent-%COMP%]{height:100%}.block-input[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.4rem}.logo[_ngcontent-%COMP%]{background-color:#7c48c3;background-image:linear-gradient(45deg,#c86dd7,#3023ae);overflow:visible;margin-left:auto;margin-right:auto;animation:_ngcontent-%COMP%_spinLogo 5s infinite}@keyframes _ngcontent-%COMP%_spinLogo{0%{transform:rotateY(0);box-shadow:0 0 #0000004d}12%{transform:rotateY(90deg) rotate(6deg) scale(1.7);box-shadow:0 .25rem .5rem #0000004d}25%{transform:rotateY(180deg);box-shadow:0 0 #0000004d}50%{transform:rotateY(180deg);box-shadow:0 0 #0000004d}62%{transform:rotateY(270deg) rotate(-8deg) scale(1.7);box-shadow:0 .25rem .5rem #0000004d}80%{transform:rotateY(720deg);box-shadow:0 0 #0000004d}to{transform:rotateY(720deg);box-shadow:0 0 #0000004d}}"],changeDetection:0});let e=t;return e})();var Po={currency:null,currencyAlign:"left",sign:"negative-only"},Mo=bt(Po);function Oo(e,t){return t==="never"||!e||t==="negative-only"&&e>0?"":t==="force-negative"||e<0&&t!=="force-positive"?Ei:Fi}var Io=2,vt=(()=>{let t=class t{constructor(){this.options=d(Mo),this.format=d(Ri)}transform(n,i=this.options.currency,r=this.options.currencyAlign){return this.format.pipe(tt(m=>{let _=Oo(n,this.options.sign),P=bn(i),ft=Hi(Math.abs(n),Rt(zt({},m),{precision:Number.isNaN(m.precision)?Io:m.precision})),He=P&&((P==null?void 0:P.length)>1||r==="right")?se:"";return r==="right"?`${_}${ft}${He}${P}`:`${_}${P}${He}${ft}`}))}};t.\u0275fac=function(i){return new(i||t)},t.\u0275pipe=Ct({name:"tuiAmount",type:t,pure:!0,standalone:!0});let e=t;return e})();var Te=["*"],Do=["tuiTh",""];function Eo(e,t){if(e&1){let o=T();s(0,"button",3),w("click",function(){x(o);let i=p();return b(i.updateSorterAndDirection())}),te(1,4),u(2),h(3,"async"),g(4,"tui-icon",5),c()}if(e&2){let o=p(),n=E(2);kt("t-sort_sorted",o.isCurrent),a(),l("ngTemplateOutlet",n),a(),v(" ",y(3,5,o.table&&o.table.change$)," "),a(2),l("icon",o.icon)}}function Fo(e,t){e&1&&W(0)}function Ao(e,t){if(e&1){let o=T();s(0,"div",6),w("tuiResized",function(i){x(o);let r=p();return b(r.onResized(i))}),c()}}var Bo=["tuiTd",""],No=["tuiTr",""];function Vo(e,t){if(e&1&&(s(0,"td",5),u(1),c()),e&2){let o=t.ngIf,n=p(2).$implicit;a(),v(" ",o[n]," ")}}function Lo(e,t){if(e&1&&(f(0,Vo,2,1,"td",4),h(1,"async")),e&2){let o=p(3);l("ngIf",y(1,1,o.item$))}}function zo(e,t){if(e&1&&(lt(0,3),f(1,Lo,2,3,"ng-template",null,0,st),pt()),e&2){let o=t.$implicit,n=E(2),i=p().ngIf;l("ngTemplateOutlet",i[o]&&i[o].template||n)}}function Ro(e,t){if(e&1&&(lt(0),f(1,zo,3,1,"ng-container",2),pt()),e&2){let o=p();a(),l("ngForOf",o.table.columns)}}var Uo=["tuiTbody",""];function Ho(e,t){if(e&1&&(lt(0),u(1),pt()),e&2){let o=t.polymorpheusOutlet;a(),v(" ",o," ")}}function $o(e,t){if(e&1){let o=T();s(0,"tr")(1,"th",1)(2,"button",2),w("click",function(){x(o);let i=p();return b(i.onClick())}),s(3,"span",3),f(4,Ho,2,1,"ng-container",4),c(),g(5,"tui-icon",5),c()()()}if(e&2){let o=p();a(),l("colSpan",o.table.columns.length),a(3),l("polymorpheusOutlet",o.heading),a(),l("tuiChevron",o.open)}}function jo(e,t){e&1&&(lt(0),W(1),pt())}var Wo=["tuiThGroup",""];function Qo(e,t){if(e&1&&(s(0,"th",5),u(1),c()),e&2){let o=p(2).$implicit;a(),v(" ",o.toString()," ")}}function Go(e,t){if(e&1&&f(0,Qo,2,1,"th",4),e&2){let o=p(3);l("ngIf",!o.th&&!o.heads.length)}}function Yo(e,t){if(e&1&&(lt(0,3),f(1,Go,1,1,"ng-template",null,0,st),pt()),e&2){let o=t.$implicit,n=E(2),i=p().ngIf;l("ngTemplateOutlet",i[o]&&i[o].template||n)}}function qo(e,t){if(e&1&&(lt(0),f(1,Yo,3,1,"ng-container",2),pt()),e&2){let o=p();a(),l("ngForOf",o.table.columns)}}var Wt=(()=>{let t=class t{constructor(){this.tuiCell="",this.template=d(Ut)}};t.\u0275fac=function(i){return new(i||t)},t.\u0275dir=et({type:t,selectors:[["ng-template","tuiCell",""]],inputs:{tuiCell:"tuiCell"},standalone:!0});let e=t;return e})(),Ko={sticky:!1,resizable:!1,open:!0,size:"m",direction:1,sortIcons:{asc:"@tui.chevron-up",desc:"@tui.chevron-down",off:"@tui.chevrons-up-down"}},Re=bt(Ko);var Xo=(()=>{let t=class t{constructor(){this.stuck=ct(d(Ne).pipe(tt(n=>n[n.length-1].intersectionRatio<1),Me(),Fe(d(Dt)),Ke(()=>Qe)))}};t.\u0275fac=function(i){return new(i||t)},t.\u0275dir=et({type:t,selectors:[["never"]],hostVars:2,hostBindings:function(i,r){i&2&&kt("_stuck",r.stuck())},standalone:!0,features:[nt([Ne,{provide:Be,useValue:[0,1]}])]});let e=t;return e})(),Zo=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275cmp=k({type:t,selectors:[["ng-component"]],hostAttrs:[1,"tui-table"],standalone:!0,features:[S],decls:0,vars:0,template:function(i,r){},styles:[`table[tuiTable] [tuiCell]{padding:0}table[tuiTable] [tuiTitle]{white-space:nowrap}table[tuiTable] [tuiTitle] tui-icon{font-size:1rem}table[tuiTable] [tuiSubtitle]{color:var(--tui-text-secondary)}table[tuiTable] [tuiTh] [tuiCell],table[tuiTable] [tuiTh] [tuiTitle]{font:inherit;color:inherit} +`],encapsulation:2,changeDetection:0});let e=t;return e})(),ot=(()=>{let t=class t{constructor(){this.options=d(Re),this.cdr=d(Dt),this.nothing=$t(Zo),this.columns=[],this.direction=this.options.direction,this.directionChange=new A,this.sorterChange=new A,this.appearance=$("table"),this.size=$(this.options.size),this.cleaner=$(!1),this.change$=new qt,this.sorter=()=>0}set sizeSetter(n){this.size.set(n)}updateSorterAndDirection(n){this.sorter===n?this.updateDirection(this.direction===1?-1:1):(this.updateSorter(n),this.updateDirection(1))}ngOnChanges(){this.change$.next()}ngAfterViewInit(){this.cdr.detectChanges()}updateSorter(n){this.sorter=n||(()=>0),this.sorterChange.emit(this.sorter),this.change$.next()}updateDirection(n){this.direction=n,this.directionChange.emit(this.direction),this.change$.next()}};t.\u0275fac=function(i){return new(i||t)},t.\u0275dir=et({type:t,selectors:[["table","tuiTable",""]],hostAttrs:[2,"border-collapse","separate"],hostVars:1,hostBindings:function(i,r){i&2&&Jt("data-size",r.size())},inputs:{columns:"columns",direction:"direction",sizeSetter:[0,"size","sizeSetter"],sorter:"sorter"},outputs:{directionChange:"directionChange",sorterChange:"sorterChange"},standalone:!0,features:[nt([{provide:Ae,useValue:"10000px 10000px 10000px 0px"},Mi(pn,t),pe({size:"s"}),mn({size:"m",appearance:"neutral"}),kn({size:"xxs",appearance:"neutral"}),fn({size:"s",color:"var(--tui-text-action)"})]),ri([Xo]),Xt]});let e=t;return e})();var Lt=(()=>{let t=class t{constructor(){this.tuiHead="",this.template=d(Ut)}};t.\u0275fac=function(i){return new(i||t)},t.\u0275dir=et({type:t,selectors:[["","tuiHead",""]],inputs:{tuiHead:"tuiHead"},standalone:!0});let e=t;return e})(),Jo=(()=>{let t=class t{constructor(){this.doc=d(ci),this.el=re(),this.tuiResized=ce(this.el,"mousedown").pipe(Ni(),Ot(()=>{var r;let{width:n,right:i}=((r=this.el.closest("th"))==null?void 0:r.getBoundingClientRect())||Di;return ce(this.doc,"mousemove").pipe(Me(),tt(({clientX:m})=>n+m-i),Je(ce(this.doc,"mouseup")))}))}};t.\u0275fac=function(i){return new(i||t)},t.\u0275dir=et({type:t,selectors:[["","tuiResized",""]],outputs:{tuiResized:"tuiResized"},standalone:!0});let e=t;return e})(),Vt=(()=>{let t=class t{constructor(){this.options=d(Re),this.head=d(Lt,{optional:!0}),this.width=null,this.table=d(gt(()=>ot),{optional:!0}),this.sorter=this.head?(n,i)=>wi(n[this.key],i[this.key]):null,this.resizable=this.options.resizable,this.sticky=this.options.sticky}get key(){if(!this.head)throw new ze;return this.head.tuiHead}get isCurrent(){return!!this.sorter&&!!this.table&&this.sorter===this.table.sorter}get icon(){var n;return this.isCurrent?((n=this.table)==null?void 0:n.direction)===1?this.options.sortIcons.desc:this.options.sortIcons.asc:this.options.sortIcons.off}updateSorterAndDirection(){var n;(n=this.table)==null||n.updateSorterAndDirection(this.isCurrentAndAscDirection?null:this.sorter)}onResized(n){this.width=n}get isCurrentAndAscDirection(){var n,i;return this.sorter===((n=this.table)==null?void 0:n.sorter)&&((i=this.table)==null?void 0:i.direction)===-1}};t.\u0275fac=function(i){return new(i||t)},t.\u0275cmp=k({type:t,selectors:[["th","tuiTh",""]],hostVars:4,hostBindings:function(i,r){i&2&&(C("width",r.width,"px"),kt("_sticky",r.sticky))},inputs:{sorter:"sorter",resizable:"resizable",sticky:"sticky"},standalone:!0,features:[S],attrs:Do,ngContentSelectors:Te,decls:4,vars:3,consts:[["content",""],["type","button","class","t-sort",3,"t-sort_sorted","click",4,"ngIf","ngIfElse"],["class","t-bar",3,"tuiResized",4,"ngIf"],["type","button",1,"t-sort",3,"click"],[3,"ngTemplateOutlet"],[1,"t-icon",3,"icon"],[1,"t-bar",3,"tuiResized"]],template:function(i,r){if(i&1&&(ut(),f(0,Eo,5,7,"button",1)(1,Fo,1,0,"ng-template",null,0,st)(3,Ao,1,0,"div",2)),i&2){let m=E(2);l("ngIf",r.sorter&&r.table)("ngIfElse",m),a(3),l("ngIf",r.resizable)}},dependencies:[K,ee,Mt,O,Jo],styles:['[_nghost-%COMP%]{transition-property:box-shadow;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;position:relative;top:0;height:var(--tui-height-m);font:var(--tui-font-text-s);text-align:left;font-weight:700;color:var(--tui-text-secondary);background:var(--tui-background-base);cursor:default;padding:0 .75rem;box-sizing:border-box;box-shadow:0 .3125rem #ededed00;border:1px solid var(--tui-border-normal);filter:opacity(1)}@supports (-webkit-hyphens: none){[_nghost-%COMP%]{transform:translateZ(0)}}[_nghost-%COMP%]:not(:first-child){border-left:none}._sticky[_nghost-%COMP%], ._stuck ._sticky[_nghost-%COMP%]{position:sticky;z-index:30}._sticky[_nghost-%COMP%]:first-child, ._stuck ._sticky[_nghost-%COMP%]:first-child{left:0}._sticky[_nghost-%COMP%]:after, ._stuck ._sticky[_nghost-%COMP%]:after{transition-property:opacity;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;content:"";position:absolute;top:0;left:100%;bottom:0;width:.3125rem;pointer-events:none;background:#edededb3;opacity:0}._stuck [_nghost-%COMP%]{z-index:20}tr:not(:first-child)[_nghost-%COMP%], tr:not(:first-child) [_nghost-%COMP%]{border-top:none}table[data-size="l"][_nghost-%COMP%], table[data-size="l"] [_nghost-%COMP%]{height:var(--tui-height-l);font:var(--tui-font-text-m);font-weight:700;padding:0 1rem}table[data-size="s"][_nghost-%COMP%], table[data-size="s"] [_nghost-%COMP%]{height:var(--tui-height-s);font:var(--tui-font-text-s);font-weight:700;padding:0 .5rem}thead[tuiThead][_nghost-%COMP%], thead[tuiThead] [_nghost-%COMP%]{position:sticky}table._stuck._sticky[_nghost-%COMP%]:after, table._stuck ._sticky[_nghost-%COMP%]:after{opacity:1}thead[tuiThead]._stuck[_nghost-%COMP%], thead[tuiThead]._stuck [_nghost-%COMP%]{box-shadow:0 .3125rem #edededb3}[tuiTheme="dark"]._sticky[_nghost-%COMP%]:after, [tuiTheme="dark"] ._sticky[_nghost-%COMP%]:after{background:#3c3c3ce6}[tuiTheme="dark"] thead[tuiThead]._stuck[_nghost-%COMP%], [tuiTheme="dark"] thead[tuiThead]._stuck [_nghost-%COMP%]{box-shadow:0 .3125rem #3c3c3ce6}[tuiTheme="dark"] thead[tuiThead]._stuck[_nghost-%COMP%]:first-child, [tuiTheme="dark"] thead[tuiThead]._stuck [_nghost-%COMP%]:first-child{box-shadow:.0625rem .3125rem #3c3c3ce6}table[data-size="l"] thead[tuiThead] tr:nth-child(2)[_nghost-%COMP%], table[data-size="l"] thead[tuiThead] tr:nth-child(2) [_nghost-%COMP%]{top:var(--tui-height-l)}table[data-size="m"] thead[tuiThead] tr:nth-child(2)[_nghost-%COMP%], table[data-size="m"] thead[tuiThead] tr:nth-child(2) [_nghost-%COMP%]{top:var(--tui-height-m)}table[data-size="s"] thead[tuiThead] tr:nth-child(2)[_nghost-%COMP%], table[data-size="s"] thead[tuiThead] tr:nth-child(2) [_nghost-%COMP%]{top:var(--tui-height-s)}.t-sort[_ngcontent-%COMP%]{transition-property:color;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;-webkit-appearance:none;appearance:none;padding:0;border:0;background:none;font-size:inherit;line-height:inherit;text-decoration:none;display:inline-flex;flex-direction:inherit;align-items:center;outline:none;font-weight:700;cursor:pointer}.t-sort_sorted[_ngcontent-%COMP%]{color:var(--tui-text-primary)}.t-sort[_ngcontent-%COMP%]:focus-visible{background:var(--tui-service-selection-background)}.t-sort[_ngcontent-%COMP%]:hover{color:var(--tui-text-primary)}.t-bar[_ngcontent-%COMP%]{transition-property:opacity;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;position:absolute;top:0;bottom:0;right:-1px;width:3px;justify-self:flex-end;border-left:2px solid transparent;background:var(--tui-status-warning);background-clip:content-box;cursor:ew-resize;opacity:0}.t-bar[_ngcontent-%COMP%]:hover, .t-bar[_ngcontent-%COMP%]:active{opacity:1}.t-icon[_ngcontent-%COMP%]{border:.25rem solid transparent}'],changeDetection:0});let e=t;return e})(),ze=class extends Error{constructor(){super("")}};var ke=(()=>{let t=class t{constructor(){this.table=d(ot)}transform(n){return this.sort(n??[],this.table.sorter,this.table.direction)}sort(n,i,r){return[...n].sort((m,_)=>r*i(m,_))}};t.\u0275fac=function(i){return new(i||t)},t.\u0275pipe=Ct({name:"tuiTableSort",type:t,pure:!1,standalone:!0});let e=t;return Kt([oe],e.prototype,"sort",null),e})(),Ue=[{provide:ot,deps:[[new ti,ot],Dt],useFactory:(e,t)=>(e.change$.pipe(Fe(t),ne()).subscribe(),e)}],Qt=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275cmp=k({type:t,selectors:[["th","tuiTd",""],["td","tuiTd",""]],contentQueries:function(i,r,m){if(i&1&&(mt(m,Ji,5),mt(m,_n,5)),i&2){let _;dt(_=ht())&&(r.current=_.first),dt(_=ht())&&(r.legacy=_.first)}},hostVars:2,hostBindings:function(i,r){i&2&&kt("_editable",r.current||r.legacy)},standalone:!0,features:[S],attrs:Bo,ngContentSelectors:Te,decls:1,vars:0,template:function(i,r){i&1&&(ut(),W(0))},styles:['[_nghost-%COMP%]{position:relative;text-align:left;background:var(--tui-background-base);border:1px solid var(--tui-border-normal);border-top:none;box-sizing:border-box;filter:opacity(1)}@supports (-webkit-hyphens: none){[_nghost-%COMP%]{transform:translateZ(0)}}._editable[_nghost-%COMP%]{padding:0!important}[_nghost-%COMP%]:first-child{left:0}[_nghost-%COMP%]:not(:first-child){border-left:none}._editable[_nghost-%COMP%]:focus-within{z-index:1}._editable[_nghost-%COMP%]{padding:0;vertical-align:top}th[_nghost-%COMP%]{position:sticky;z-index:1}th[_nghost-%COMP%]:after{transition-property:opacity;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;content:"";position:absolute;top:0;bottom:0;left:100%;width:.3125rem;pointer-events:none;background:#edededb3;opacity:0}th[_nghost-%COMP%]:focus-within:not(:disabled){z-index:11}[tuiTheme="dark"][_nghost-%COMP%]:after, [tuiTheme="dark"] [_nghost-%COMP%]:after{background:#3c3c3ce6}table._stuck[_nghost-%COMP%], table._stuck [_nghost-%COMP%]{z-index:10}table._stuck[_nghost-%COMP%]:last-of-type:after, table._stuck [_nghost-%COMP%]:last-of-type:after{opacity:1}table[data-size="l"][_nghost-%COMP%], table[data-size="l"] [_nghost-%COMP%]{height:var(--tui-height-l);font:var(--tui-font-text-m);padding:1rem}table[data-size="m"][_nghost-%COMP%], table[data-size="m"] [_nghost-%COMP%]{height:var(--tui-height-m);font:var(--tui-font-text-s);padding:.75rem}table[data-size="s"][_nghost-%COMP%], table[data-size="s"] [_nghost-%COMP%]{height:var(--tui-height-s);font:var(--tui-font-text-s);padding:.25rem .5rem}td[_nghost-%COMP%]:focus-within{z-index:1}td[_nghost-%COMP%]:not(:focus-within){z-index:0}'],changeDetection:0});let e=t;return e})(),Gt=(()=>{let t=class t{constructor(){this.cells=ae,this.body=d(gt(()=>Yt)),this.contentReady$=new We(1),this.table=d(gt(()=>ot)),this.cells$=this.contentReady$.pipe(Ot(()=>Ee(this.cells)),tt(n=>n.reduce((i,r)=>Rt(zt({},i),{[r.tuiCell]:r}),{}))),this.item$=this.contentReady$.pipe(Ot(()=>Ee(this.body.rows)),tt(n=>this.body.data[n.findIndex(i=>i===this)]))}ngAfterContentInit(){return $e(this,null,function*(){yield Promise.resolve(),this.contentReady$.next(!0)})}};t.\u0275fac=function(i){return new(i||t)},t.\u0275cmp=k({type:t,selectors:[["tr","tuiTr",""]],contentQueries:function(i,r,m){if(i&1&&mt(m,Wt,4),i&2){let _;dt(_=ht())&&(r.cells=_)}},standalone:!0,features:[nt([Ue]),S],attrs:No,decls:2,vars:3,consts:[["plain",""],[4,"ngIf"],[3,"ngTemplateOutlet",4,"ngFor","ngForOf"],[3,"ngTemplateOutlet"],["tuiTd","",4,"ngIf"],["tuiTd",""]],template:function(i,r){i&1&&(f(0,Ro,2,1,"ng-container",1),h(1,"async")),i&2&&l("ngIf",y(1,1,r.cells$))},dependencies:[K,O,Ie,ee,Qt],encapsulation:2,changeDetection:0});let e=t;return e})(),Yt=(()=>{let t=class t{constructor(){this.options=d(Re),this.table=d(gt(()=>ot)),this.rows=ae,this.data=[],this.open=this.options.open,this.openChange=new A}onClick(){this.open=!this.open,this.openChange.emit(this.open)}};t.\u0275fac=function(i){return new(i||t)},t.\u0275cmp=k({type:t,selectors:[["tbody","tuiTbody",""]],contentQueries:function(i,r,m){if(i&1&&mt(m,Gt,4),i&2){let _;dt(_=ht())&&(r.rows=_)}},inputs:{data:"data",heading:"heading",open:"open"},outputs:{openChange:"openChange"},standalone:!0,features:[nt(Ue),S],attrs:Uo,ngContentSelectors:Te,decls:2,vars:2,consts:[[4,"ngIf"],[1,"t-heading",3,"colSpan"],["type","button",1,"t-expand",3,"click"],[1,"t-name"],[4,"polymorpheusOutlet"],[1,"t-chevron",3,"tuiChevron"]],template:function(i,r){i&1&&(ut(),f(0,$o,6,3,"tr",0)(1,jo,2,0,"ng-container",0)),i&2&&(l("ngIf",r.heading),a(),l("ngIf",r.open))},dependencies:[K,Mt,ue,de],styles:['[_nghost-%COMP%]{border-color:var(--tui-border-normal)}[_nghost-%COMP%] tr[_ngcontent-%COMP%]{border-color:inherit}.t-expand[_ngcontent-%COMP%]{-webkit-appearance:none;appearance:none;padding:0;border:0;background:none;font-size:inherit;line-height:inherit;text-decoration:none;display:flex;width:100%;height:100%;align-items:center;box-sizing:border-box;outline:none;font-weight:700;cursor:pointer;border-color:inherit}.t-expand[_ngcontent-%COMP%]:focus-visible .t-name[_ngcontent-%COMP%]{background:var(--tui-service-selection-background)}.t-expand[_ngcontent-%COMP%]:before, .t-expand[_ngcontent-%COMP%]:after{content:"";position:sticky;height:100%;border-left:1px solid;border-color:inherit}.t-expand[_ngcontent-%COMP%]:before{left:0}.t-expand[_ngcontent-%COMP%]:after{right:0}.t-heading[_ngcontent-%COMP%]{transition-property:background;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;height:var(--tui-height-m);font:var(--tui-font-text-s);padding:0;background:var(--tui-background-neutral-1);border-bottom:1px solid var(--tui-border-normal);border-color:inherit}.t-heading[_ngcontent-%COMP%]:hover{background:var(--tui-background-neutral-1-hover)}table[data-size="l"][_nghost-%COMP%] .t-heading[_ngcontent-%COMP%], table[data-size="l"] [_nghost-%COMP%] .t-heading[_ngcontent-%COMP%]{font:var(--tui-font-text-m);height:var(--tui-height-l)}.t-name[_ngcontent-%COMP%]{position:sticky;left:.75rem;display:inline-block}table[data-size="l"][_nghost-%COMP%] .t-name[_ngcontent-%COMP%], table[data-size="l"] [_nghost-%COMP%] .t-name[_ngcontent-%COMP%]{left:1rem}.t-chevron[_ngcontent-%COMP%]{position:sticky;right:.75rem;margin:0 .6875rem 0 auto}'],changeDetection:0});let e=t;return e})(),Se=(()=>{let t=class t{constructor(){this.heads=ae,this.heads$=null,this.table=d(gt(()=>ot))}ngAfterContentInit(){this.heads$=this.heads.changes.pipe(Ze(null),tt(()=>this.heads.reduce((n,i)=>Rt(zt({},n),{[i.tuiHead]:i}),{})))}};t.\u0275fac=function(i){return new(i||t)},t.\u0275cmp=k({type:t,selectors:[["tr","tuiThGroup",""]],contentQueries:function(i,r,m){if(i&1&&(mt(m,Vt,5),mt(m,Lt,4)),i&2){let _;dt(_=ht())&&(r.th=_.first),dt(_=ht())&&(r.heads=_)}},standalone:!0,features:[nt([Ue]),S],attrs:Wo,ngContentSelectors:Te,decls:3,vars:3,consts:[["plain",""],[4,"ngIf"],[3,"ngTemplateOutlet",4,"ngFor","ngForOf"],[3,"ngTemplateOutlet"],["tuiTh","",4,"ngIf"],["tuiTh",""]],template:function(i,r){i&1&&(ut(),W(0),f(1,qo,2,1,"ng-container",1),h(2,"async")),i&2&&(a(),l("ngIf",y(2,1,r.heads$)))},dependencies:[K,Vt,ee,Ie,O],encapsulation:2,changeDetection:0});let e=t;return e})();function er(e,t){if(e&1&&(s(0,"tui-badge",14),h(1,"tuiAutoColor"),u(2),c()),e&2){let o=t.$implicit;C("background",y(1,3,o)),a(2),v(" ",o," ")}}function ir(e,t){if(e&1&&(s(0,"th",18),u(1),c()),e&2){let o=p(2).$implicit;p();let n=E(15);C("top",-(n.getOffsetToRenderedContentStart()||0),"px"),l("sorter",null)("sticky",!0),a(),v(" ",o," ")}}function nr(e,t){if(e&1&&f(0,ir,2,5,"th",17),e&2){let o=p().$implicit;l("tuiHead",o)}}function or(e,t){if(e&1&&(s(0,"th",20),u(1),c()),e&2){let o=p(2).$implicit;p();let n=E(15);C("top",-(n.getOffsetToRenderedContentStart()||0),"px"),l("sticky",!0),a(),v(" ",o==="priceUsd"?"price, $":o," ")}}function rr(e,t){if(e&1&&f(0,or,2,4,"th",19),e&2){let o=p().$implicit;l("tuiHead",o)}}function ar(e,t){if(e&1&&f(0,nr,1,1,"th",15)(1,rr,1,1,"th",16),e&2){let o=t.$implicit;D(o==="from"||o==="to"?0:1)}}function sr(e,t){if(e&1&&(s(0,"td",22),u(1),h(2,"date"),c()),e&2){let o=p().$implicit,n=p().$implicit;a(),v(" ",o==="time"?G(2,1,n[o],"dd.MM.yyyy"):n[o]," ")}}function cr(e,t){if(e&1&&f(0,sr,3,4,"td",23),e&2){let o=t.$implicit;l("tuiCell",o)}}function lr(e,t){if(e&1&&(s(0,"tr",21),B(1,cr,1,1,"td",22,j),c()),e&2){let o=p(2);a(),N(o.columns)}}function pr(e,t){if(e&1){let o=T();s(0,"div",1),g(1,"tui-avatar",2),s(2,"div",3)(3,"h2",4),u(4),c(),s(5,"p",5),u(6),h(7,"tuiAmount"),h(8,"async"),c(),s(9,"div",6),B(10,er,3,5,"tui-badge",7,j),c()(),s(12,"button",8),w("click",function(){x(o);let i=p();return b(i.goBack())}),c()(),s(13,"tui-scrollbar")(14,"cdk-virtual-scroll-viewport",9,0)(16,"table",10)(17,"thead")(18,"tr",11),B(19,ar,2,1,null,null,j),c()(),s(21,"tbody",12),f(22,lr,3,0,"tr",13),h(23,"tuiTableSort"),c()()()()}if(e&2){let o=p(),n=it(0);a(),l("src",n.src),a(),C("text-align","center"),a(2),St(n.name),a(2),v(" ",y(8,13,G(7,10,n.price,"USD"))," "),a(4),N(n.tags),a(4),l("itemSize",46)("maxBufferPx",500)("minBufferPx",200),a(2),l("columns",o.columns),a(3),N(o.columns),a(3),l("cdkVirtualForOf",y(23,15,n.transactions))}}var In=(()=>{let t=class t{constructor(){this.columns=["type","priceUsd","from","to","time"],this.nftChange=new A,this.nft=Zt.required()}goBack(){this.nftChange.emit(null)}};t.\u0275fac=function(i){return new(i||t)},t.\u0275cmp=k({type:t,selectors:[["lmb-nft-item"]],inputs:{nft:[1,"nft"]},outputs:{nftChange:"nftChange"},standalone:!0,features:[S],decls:2,vars:2,consts:[["viewport",""],[1,"info"],[1,"logo-nft","nft-icon",3,"src"],["tuiHeader","",1,"text"],[1,"tui-space_top-0","tui-space_bottom-2"],["tuiSubtitle","",1,"tui-space_top-0","tui-space_bottom-0"],[1,"badges"],["appearance","primary",3,"background"],["appearance","icon","iconStart","@tui.circle-x","size","s","tuiIconButton","",3,"click"],["tuiScrollable","",1,"viewport","tui-zero-scrollbar",3,"itemSize","maxBufferPx","minBufferPx"],["tuiTable","",3,"columns"],["tuiThGroup",""],["tuiTbody",""],["tuiTr","",4,"cdkVirtualFor","cdkVirtualForOf"],["appearance","primary"],["tuiTh","",3,"sorter","sticky","top"],["tuiTh","",3,"sticky","top"],["tuiTh","",3,"sorter","sticky","top",4,"tuiHead"],["tuiTh","",3,"sorter","sticky"],["tuiTh","",3,"sticky","top",4,"tuiHead"],["tuiTh","",3,"sticky"],["tuiTr",""],["tuiTd",""],["tuiTd","",4,"tuiCell"]],template:function(i,r){if(i&1&&(Q(0),f(1,pr,24,17)),i&2){let m=at(r.nft());a(),D(m?1:-1)}},dependencies:[xe,ve,be,M,O,li,vt,Xi,U,dn,F,q,At,ot,Yt,Se,Vt,Qt,Gt,Wt,Lt,ke],styles:[".nft-icon[_ngcontent-%COMP%]{border-radius:1rem;width:10rem;height:10rem}.info[_ngcontent-%COMP%]{position:relative;display:flex;padding:.687rem 0;justify-content:space-between}.text[_ngcontent-%COMP%]{display:flex;width:100%;flex-direction:column;align-items:center;justify-content:center}table[_ngcontent-%COMP%]{width:100%}table[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]{height:2.875rem}table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:first-child{width:10rem;font-weight:700}table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:last-child{width:3rem}.viewport[_ngcontent-%COMP%]{height:15.625rem}.badges[_ngcontent-%COMP%]{display:flex;gap:.5rem;margin-top:.4rem}"],changeDetection:0});let e=t;return e})();var we=[{type:"Putting up for sale",priceUsd:2,from:"UQDYzZ...inf4K",to:"-",time:1222222222233},{type:"Sale",priceUsd:2,from:"UQDYzZ...inf4K",to:"UQGGxX...ilf3A",time:1500231542231},{type:"Putting up for sale",priceUsd:5,from:"UQGGxX...ilf3A",to:"-",time:1712412323429},{type:"Sale",priceUsd:5,from:"UQGGxX...ilf3A",to:"UQDYzZ...inf4K",time:1712482323429}],ur=[{name:"Beth",src:"./nft/1.jpg",price:1,tags:["Premium","VIP"],transactions:we},{name:"Pryor",src:"./nft/2.jpg",price:2,tags:["Premium","VIP"],transactions:we},{name:"Olea",src:"./nft/3.jpg",price:3,tags:["Premium","VIP"],transactions:we},{name:"Imogen",src:"./nft/4.jpg",price:4,tags:["Premium","VIP"],transactions:we}],Dn=(()=>{let t=class t{constructor(){this.nfts=ur}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=_t({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();function mr(e,t){if(e&1){let o=T();s(0,"button",4),w("click",function(){let i=x(o).$index,r=p();return b(r.updateItem(i))}),g(1,"tui-avatar",5),s(2,"div",6)(3,"p",7),u(4),c(),s(5,"p",8),u(6),h(7,"tuiAmount"),h(8,"async"),c()()()}if(e&2){let o=t.$implicit;a(),l("src",o.src),a(),C("margin-top",0),a(2),St(o.name),a(2),v(" ",y(8,8,G(7,5,o.price,"USD"))," ")}}function dr(e,t){if(e&1){let o=T();s(0,"button",4),w("click",function(){let i=x(o).$index,r=p();return b(r.updateItem(i))}),g(1,"tui-avatar",5),s(2,"div",6)(3,"p",7),u(4),c(),s(5,"p",8),u(6),h(7,"tuiAmount"),h(8,"async"),c()()()}if(e&2){let o=t.$implicit;a(),l("src",o.src),a(),C("margin-top",0),a(2),St(o.name),a(2),v(" ",y(8,8,G(7,5,o.price,"USD"))," ")}}var En=(()=>{let t=class t{constructor(){this.nfts=d(Dn).nfts,this.nftChange=new A}updateItem(n){this.nftChange.emit(this.nfts[n])}};t.\u0275fac=function(i){return new(i||t)},t.\u0275cmp=k({type:t,selectors:[["lmb-nft-list"]],outputs:{nftChange:"nftChange"},standalone:!0,features:[S],decls:14,vars:0,consts:[[1,"info"],[1,"row-title","tui-space_top-0","tui-space_bottom-0"],[1,"list"],["tuiCardLarge","","tuiSurface","elevated",1,"card-nft"],["tuiCardLarge","","tuiSurface","elevated",1,"card-nft",3,"click"],[1,"logo-nft",3,"src"],[1,"text"],[1,"nft-name","tui-space_top-1","tui-space_bottom-0"],["tuiSubtitle","",1,"tui-space_top-0","tui-space_bottom-0"]],template:function(i,r){i&1&&(s(0,"div",0)(1,"h3",1),u(2,"Top NFTs"),c(),s(3,"tui-scrollbar")(4,"div",2),B(5,mr,9,10,"button",3,j),c()()(),s(7,"div",0)(8,"h3",1),u(9,"Recent bought NFTs"),c(),s(10,"tui-scrollbar")(11,"div",2),B(12,dr,9,10,"button",3,j),c()()()),i&2&&(a(5),N(r.nfts),a(7),N(r.nfts))},dependencies:[M,O,vt,U,H,At,ln],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;gap:1rem}.list[_ngcontent-%COMP%]{display:flex;justify-content:space-around;padding:1rem;gap:.5rem;max-width:100%}.info[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5rem}.logo-nft[_ngcontent-%COMP%]{width:100%;border-radius:0;height:60%}.card-nft[tuiCardLarge][data-space][_ngcontent-%COMP%]{padding:0;height:9rem;width:7.5rem;gap:0}.text[_ngcontent-%COMP%]{text-align:center;margin-left:auto;margin-right:auto}.nft-name[_ngcontent-%COMP%]{font-weight:600}.row-title[_ngcontent-%COMP%]{font-size:1.25rem}"],changeDetection:0});let e=t;return e})();function hr(e,t){if(e&1){let o=T();s(0,"lmb-nft-item",4),z("nftChange",function(i){x(o);let r=p();return L(r.nft,i)||(r.nft=i),b(i)}),c()}if(e&2){let o=p();V("nft",o.nft)}}function fr(e,t){if(e&1){let o=T();s(0,"lmb-nft-list",5),w("nftChange",function(i){x(o);let r=p();return b(r.nft=i)}),c()}}var Fn=(()=>{let t=class t{constructor(){this.nft=null}};t.\u0275fac=function(i){return new(i||t)},t.\u0275cmp=k({type:t,selectors:[["lmb-nft"]],standalone:!0,features:[S],decls:6,vars:3,consts:[["tuiAppearance","whiteblock","tuiCardLarge","normal",1,"card"],["tuiHeader",""],["tuiTitle",""],[3,"nft"],[3,"nftChange","nft"],[3,"nftChange"]],template:function(i,r){i&1&&(s(0,"div",0)(1,"header",1)(2,"h2",2),u(3," NFT Market "),c()(),f(4,hr,1,1,"lmb-nft-item",3)(5,fr,1,0,"lmb-nft-list"),c()),i&2&&(a(2),C("text-align","center"),a(2),D(r.nft?4:5))},dependencies:[M,In,En,X,H,q,R],styles:["@media (min-width: 68rem){.card[_ngcontent-%COMP%]{min-width:37rem}}"],changeDetection:0});let e=t;return e})();var gr=new Tt("",{factory:()=>"https://api.coincap.io/v2/assets"}),J=(()=>{let t=class t{constructor(){this.http=d(pi),this.API=d(gr),this.tokens=this.getTokens()}getTokens(){return this.http.get(this.API).pipe(tt(n=>n.data)).pipe(Xe({bufferSize:1,refCount:!0}))}getHistory(n,i){return this.http.get(`${this.API}/${n}/history`,{params:{interval:i}}).pipe(tt(r=>r.data))}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=_t({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();var Pe=(()=>{let t=class t{transform(n){return`https://assets.coincap.io/assets/icons/${n}@2x.png`}};t.\u0275fac=function(i){return new(i||t)},t.\u0275pipe=Ct({name:"coinIcon",type:t,pure:!0,standalone:!0});let e=t;return e})();function _r(e,t){if(e&1&&(s(0,"th",13),u(1),c()),e&2){let o=p().$implicit;p();let n=E(9);C("top",-(n.getOffsetToRenderedContentStart()||0),"px"),l("sticky",!0),a(),v(" ",o," ")}}function Cr(e,t){if(e&1&&f(0,_r,2,4,"th",12),e&2){let o=t.$implicit;l("tuiHead",o)}}function yr(e,t){if(e&1&&(s(0,"td",16)(1,"div",17)(2,"tui-avatar-stack",18),g(3,"tui-avatar",19),h(4,"coinIcon"),g(5,"tui-avatar",19),h(6,"coinIcon"),c(),s(7,"div",20),u(8),c()()()),e&2){let o=p().$implicit;C("padding-left","0.5rem"),a(2),l("direction","right"),a(),l("src",y(4,8,o.symbolFirst)),a(2),l("src",y(6,10,o.symbolSecond)),a(2),C("font-weight","500"),a(),v(" ",o.Pair," ")}}function xr(e,t){if(e&1&&(s(0,"td",16)(1,"div",20),u(2),c()()),e&2){let o=p().$implicit;C("padding-left","0.5rem"),a(),C("font-weight","500"),a(),v(" $",o.TVL,"M ")}}function br(e,t){if(e&1&&(s(0,"td",16)(1,"div",20),u(2),c()()),e&2){let o=p().$implicit;C("padding-left","0.5rem"),a(),C("font-weight","500"),a(),v(" ",o.APR,"% ")}}function vr(e,t){e&1&&(s(0,"tr",14),f(1,yr,9,12,"td",15)(2,xr,3,5,"td",15)(3,br,3,5,"td",15),c()),e&2&&(a(),l("tuiCell","Pair"),a(),l("tuiCell","TVL"),a(),l("tuiCell","APR"))}var An=(()=>{let t=class t{constructor(){this.cryptoService=d(J),this.tokens=ct(this.cryptoService.tokens),this.tableData=Y(()=>{let n=this.tokens()||[];return n.map((i,r)=>{var m,_,P,ft;return{Pair:`${(m=n==null?void 0:n[r])==null?void 0:m.symbol.toUpperCase()}/${(_=n==null?void 0:n[r+1])==null?void 0:_.symbol.toUpperCase()}`,TVL:this.getTVL(r),APR:this.getAPR(r),symbolFirst:(P=n==null?void 0:n[r])==null?void 0:P.symbol.toLowerCase(),symbolSecond:(ft=n==null?void 0:n[r+1])==null?void 0:ft.symbol.toLowerCase()}}).filter((i,r)=>r%2===0).filter(i=>i.Pair.includes(this.search().toUpperCase()))}),this.columns=["Pair","TVL","APR"],this.search=$("")}lengthPools(n){return[...new Array(n).keys()].filter((i,r)=>r%2===0)}getTVL(n){var r,m,_,P;let i=Number((m=(r=this.tokens())==null?void 0:r[n])==null?void 0:m.priceUsd)+Number((P=(_=this.tokens())==null?void 0:_[n+1])==null?void 0:P.priceUsd)+1;return i>100?(i/(i/100+1)).toFixed(1):i.toFixed(1)}getAPR(n){return(10-Number(this.getTVL(n))/11).toFixed(1)}};t.\u0275fac=function(i){return new(i||t)},t.\u0275cmp=k({type:t,selectors:[["lmb-pools"]],standalone:!0,features:[S],decls:18,vars:12,consts:[["viewport",""],["tuiAppearance","whiteblock","tuiCardLarge","normal"],["tuiHeader",""],["tuiTitle","",3,"tuiSkeleton"],["tuiTextfieldIconLeft","@tui.search",3,"ngModelChange","tuiSkeleton","ngModel"],[1,"list-pools",3,"tuiSkeleton"],["itemSize","64","tuiScrollable","",1,"viewport","tui-zero-scrollbar"],["tuiTable","",3,"columns"],["tuiThGroup",""],["tuiTh","",3,"sticky","top"],["tuiTbody",""],["tuiTr","",4,"cdkVirtualFor","cdkVirtualForOf"],["tuiTh","",3,"sticky","top",4,"tuiHead"],["tuiTh","",3,"sticky"],["tuiTr",""],["tuiTd","",3,"padding-left",4,"tuiCell"],["tuiTd",""],[1,"stack"],[1,"tui-space_top-3","tui-space_bottom-3",3,"direction"],["size","m",3,"src"],["TuiTitle",""]],template:function(i,r){if(i&1){let m=T();s(0,"div",1)(1,"header",2)(2,"h2",3),u(3," Pools "),c()(),s(4,"tui-input",4),z("ngModelChange",function(P){return x(m),L(r.search,P)||(r.search=P),b(P)}),u(5," Search "),c(),s(6,"div",5)(7,"tui-scrollbar")(8,"cdk-virtual-scroll-viewport",6,0)(10,"table",7)(11,"thead")(12,"tr",8),B(13,Cr,1,1,"th",9,j),c()(),s(15,"tbody",10),f(16,vr,4,3,"tr",11),h(17,"tuiTableSort"),c()()()()()()}i&2&&(C("height","100%"),a(2),C("text-align","center"),l("tuiSkeleton",!r.tokens()),a(2),l("tuiSkeleton",!r.tokens()),V("ngModel",r.search),a(2),l("tuiSkeleton",!r.tokens()),a(4),l("columns",r.columns),a(3),N(r.columns),a(3),l("cdkVirtualForOf",y(17,10,r.tableData())))},dependencies:[xe,ve,be,Pe,M,xt,yt,Ft,X,U,un,H,q,ye,_e,Ce,qi,At,Z,ot,Yt,Se,Vt,Qt,Gt,Wt,Lt,ke,R],styles:[".list-pools[_ngcontent-%COMP%]{border:solid 1px var(--tui-border-normal);border-radius:1rem;overflow:hidden}.viewport[_ngcontent-%COMP%]{height:20rem}table[_ngcontent-%COMP%]{width:100%}table[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]{height:1px}table[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{border-top:0;border-left:0;border-right:0}table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding:0;text-align:center}table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:first-child{border-left:0}table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:nth-child(2){width:3.5rem}table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:last-child{width:2rem;border-right:0}.stack[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.8rem}"],changeDetection:0});let e=t;return e})();var Bn={Y:"d1",M6:"h6",M:"h1",W:"m15",D:"m1"};var Tr=(e,t)=>[e,t];function kr(e,t){if(e&1){let o=T();s(0,"button",4),w("click",function(){let i=x(o).$implicit,r=p();return b(r.filterButton.set(i))}),u(1),c()}if(e&2){let o=t.$implicit,n=p();l("tuiAppearanceState",o===n.filterButton()?"active":null),a(),v(" ",o," ")}}var Nn=(()=>{let t=class t{constructor(){this.pricesService=d(J),this.step=Y(()=>Math.ceil((this.history()??[]).length/this.maxPoints)),this.xTargets=Y(()=>new Map((this.history()??[]).map((n,i)=>[Math.trunc(i/this.step()),new Date(n.date).toDateString()]))),this.chart=Y(()=>this.processData(this.history())),this.minPrice=Y(()=>Math.min(...(this.history()??[]).map(n=>Number(n.priceUsd)))),this.maxPrice=Y(()=>Math.max(...(this.history()??[]).map(n=>Number(n.priceUsd)))),this.filterButtons=["D","W","M","M6","Y"],this.filterButton=$(this.filterButtons[0]),this.maxPoints=150,this.token=Zt.required(),this.interval=Y(()=>Bn[this.filterButton()]),this.history=ct(Ye([De(this.token),De(this.interval)]).pipe(Ot(([n,i])=>this.pricesService.getHistory(n,i)))),this.yStringify=n=>`${(this.maxPrice()>10?n:n/100).toLocaleString("en-US",{maximumFractionDigits:this.maxPrice()>10?0:2})} $`,this.xStringify=n=>`${this.xTargets().get(n)}`}processData(n){return(n??[]).map((r,m)=>[Math.trunc(m/this.step()),Number(r.priceUsd)*(this.maxPrice()>10?1:100)]).filter((r,m)=>m%this.step()===0)}};t.\u0275fac=function(i){return new(i||t)},t.\u0275cmp=k({type:t,selectors:[["lmb-price-chart"]],inputs:{token:[1,"token"]},standalone:!0,features:[S],decls:9,vars:22,consts:[[1,"axes",3,"axisYLabels","horizontalLines","tuiSkeleton","verticalLines"],[1,"chart",3,"height","value","width","x","xStringify","y","yStringify"],[1,"buttons"],["appearance","icon","tuiButton","",1,"period",3,"tuiAppearanceState"],["appearance","icon","tuiButton","",1,"period",3,"click","tuiAppearanceState"]],template:function(i,r){i&1&&(s(0,"tui-axes",0),h(1,"tuiAmount"),h(2,"async"),h(3,"tuiAmount"),h(4,"async"),g(5,"tui-line-chart",1),c(),s(6,"div",2),B(7,kr,2,2,"button",3,j),c()),i&2&&(l("axisYLabels",si(19,Tr,y(2,13,y(1,11,r.minPrice()))||"",y(4,17,y(3,15,r.maxPrice()))||""))("horizontalLines",4)("tuiSkeleton",!r.history())("verticalLines",4),a(5),l("height",r.maxPrice()*(r.maxPrice()>10?1:100)-r.minPrice()*(r.maxPrice()>10?1:100))("value",r.chart())("width",r.chart().length)("x",0)("xStringify",r.xStringify)("y",r.minPrice()*(r.maxPrice()>10?1:100))("yStringify",r.yStringify),a(2),N(r.filterButtons))},dependencies:[O,M,vt,yn,F,xn,Z],styles:[".buttons[_ngcontent-%COMP%]{display:flex;margin-top:1.5rem;justify-content:space-between}.axes[_ngcontent-%COMP%]{height:12.5rem}.period[_ngcontent-%COMP%]{width:2.5rem;height:1.5rem}.chart[_ngcontent-%COMP%]{color:var(--tui-chart-categorical-07);position:absolute;top:0;left:0;width:100%;height:100%}"],changeDetection:0});let e=t;return e})();function Sr(e,t){if(e&1){let o=T();s(0,"div",4),w("click",function(){x(o);let i=p().$implicit,r=p(2);return b(r.chooseToken(i.id))}),g(1,"tui-avatar",5),s(2,"div",6),u(3),s(4,"div",7),u(5),h(6,"number"),s(7,"span"),u(8),h(9,"number"),c()()()()}if(e&2){let o=p().$implicit;a(),l("src","https://assets.coincap.io/assets/icons/"+o.symbol.toLowerCase()+"@2x.png"),a(2),v(" ",o.name," "),a(2),v(" ",G(6,6,o.priceUsd,"1.2-2"),"$ "),a(2),C("color",o.changePercent24Hr[0]==="-"?"var(--tui-status-negative)":"var(--tui-status-positive)"),a(),v(" ",G(9,9,o.changePercent24Hr,"1.2-2"),"% ")}}function wr(e,t){if(e&1&&f(0,Sr,10,12,"div",3),e&2){let o=t.$implicit,n=p(2);D(n.token===""||o.id===n.token?0:-1)}}function Pr(e,t){if(e&1){let o=T();s(0,"button",8),w("click",function(){x(o);let i=p(2);return b(i.addToken())}),u(1," Add Token "),c()}}function Mr(e,t){if(e&1&&(s(0,"div",1),B(1,wr,1,1,null,null,j),c(),f(3,Pr,2,0,"button",2)),e&2){let o=p(),n=it(0);a(),N(n.slice(0,o.showTokens)),a(2),D(o.token===""&&o.showTokens{let t=class t{constructor(){this.pricesService=d(J),this.tokens$=this.pricesService.tokens,this.showTokens=4,this.token="",this.tokenChange=new A}addToken(){this.showTokens+=1}chooseToken(n){let i=this.token===n?"":n;this.token=i,this.tokenChange.emit(i)}};t.\u0275fac=function(i){return new(i||t)},t.\u0275cmp=k({type:t,selectors:[["lmb-price-list"]],inputs:{token:"token"},outputs:{tokenChange:"tokenChange"},standalone:!0,features:[S],decls:4,vars:5,consts:[["tuiCardLarge","",1,"price-list",3,"tuiSkeleton"],[1,"list"],["appearance","icon","iconStart","@tui.circle-plus","tuiIconButton","",1,"button-add"],["tuiCell","l"],["tuiCell","l",3,"click"],[3,"src"],["tuiTitle",""],["tuiSubtitle",""],["appearance","icon","iconStart","@tui.circle-plus","tuiIconButton","",1,"button-add",3,"click"]],template:function(i,r){if(i&1&&(Q(0),h(1,"async"),s(2,"div",0),f(3,Mr,4,1),c()),i&2){let m=at(y(1,2,r.tokens$));a(2),l("tuiSkeleton",!m),a(),D(m?3:-1)}},dependencies:[O,M,ie,U,F,H,Bt,Z,R],styles:["[tuiCardLarge][_ngcontent-%COMP%] [tuiCell][data-size=l][_ngcontent-%COMP%]{margin:0}[tuiCardLarge][_ngcontent-%COMP%] [tuiCell][data-size=l][_ngcontent-%COMP%]:not(:last-child){border-radius:0;box-shadow:0 1px var(--tui-border-normal)}[tuiCardLarge][_ngcontent-%COMP%] [tuiCell][data-size=l][_ngcontent-%COMP%]:hover{background-color:var(--tui-background-neutral-1-hover)}[tuiCardLarge][_ngcontent-%COMP%] [tuiCell][data-size=l][_ngcontent-%COMP%]:active{background-color:var(--tui-background-neutral-1-pressed)}.price-list[_ngcontent-%COMP%]{padding:0;min-height:14.125rem}.button-add[_ngcontent-%COMP%]{margin-left:auto;margin-right:auto}.list[_ngcontent-%COMP%]{max-height:15.5rem;overflow:scroll;background-color:var(--tui-background-base-alt);border-radius:1rem;border:1px solid var(--tui-border-normal)}"],changeDetection:0});let e=t;return e})();function Or(e,t){if(e&1&&g(0,"lmb-price-chart",3),e&2){let o=p();l("token",o.token)}}var Ln=(()=>{let t=class t{constructor(){this.pricesService=d(J),this.tokens$=this.pricesService.getTokens(),this.token=""}};t.\u0275fac=function(i){return new(i||t)},t.\u0275cmp=k({type:t,selectors:[["lmb-prices"]],standalone:!0,features:[S],decls:8,vars:11,consts:[["tuiAppearance","whiteblock","tuiCardLarge","normal"],["tuiHeader",""],["tuiTitle","",3,"tuiSkeleton"],[3,"token"],[3,"tokenChange","token"]],template:function(i,r){if(i&1){let m=T();Q(0),h(1,"async"),s(2,"div",0)(3,"header",1)(4,"h2",2),u(5," Cryptocurrency Prices "),c()(),f(6,Or,1,1,"lmb-price-chart",3),s(7,"lmb-price-list",4),z("tokenChange",function(P){return x(m),L(r.token,P)||(r.token=P),b(P)}),c()()}if(i&2){let m=y(1,9,r.tokens$);a(2),C("height","100%")("min-height","420px"),a(2),C("text-align","center"),l("tuiSkeleton",!m),a(2),D(r.token!==""?6:-1),a(),V("token",r.token)}},dependencies:[M,O,Nn,Vn,X,H,q,Z,R],encapsulation:2,changeDetection:0});let e=t;return e})();function Ir(e,t){if(e&1){let o=T();s(0,"tui-input-number",19),z("ngModelChange",function(i){x(o);let r=p(2);return L(r.inputStake,i)||(r.inputStake=i),b(i)}),u(1," Amount BTC "),c()}if(e&2){let o=p(2);l("max",o.available-o.amount())("min",0),V("ngModel",o.inputStake)}}function Dr(e,t){if(e&1){let o=T();s(0,"tui-input-number",19),z("ngModelChange",function(i){x(o);let r=p(2);return L(r.inputUnstake,i)||(r.inputUnstake=i),b(i)}),u(1," Amount BTC "),c()}if(e&2){let o=p(2);l("max",o.amount())("min",0),V("ngModel",o.inputUnstake)}}function Er(e,t){if(e&1){let o=T();s(0,"header",15)(1,"h2",16),u(2),c()(),s(3,"p"),u(4),c(),f(5,Ir,2,3,"tui-input-number",17)(6,Dr,2,3,"tui-input-number",17),s(7,"p")(8,"button",18),w("click",function(){let i=x(o).$implicit,r=p();return b([i.complete(),r.addAmount(r.stake?r.inputStake:-r.inputUnstake),r.inputStake=0])}),u(9),c()()}if(e&2){let o=p();a(2),v("",o.stake?"Staking":"Unstaking"," Bitcoin"),a(2),It("Available for ",o.stake?"stake":"unstake",": ",o.stake?o.available-o.amount():o.amount()," BTC"),a(),D(o.stake?5:6),a(4),v(" ",o.stake?"Stake":"Unstake"," ")}}var zn=(()=>{let t=class t{constructor(){this.dialogs=d(rn),this.cryptoService=d(J),this.tokens=ct(this.cryptoService.tokens),this.price=Y(()=>{var n;return this.amount()*(Number((n=(this.tokens()??[]).find(i=>i.symbol==="BTC"))==null?void 0:n.priceUsd)??0)}),this.inputStake=0,this.inputUnstake=0,this.amount=$(0),this.available=100,this.stake=!1}addAmount(n){this.amount.update(i=>i+n)}showDialog(n){this.dialogs.open(n).subscribe()}};t.\u0275fac=function(i){return new(i||t)},t.\u0275cmp=k({type:t,selectors:[["lmb-staking"]],standalone:!0,features:[S],decls:51,vars:19,consts:[["template",""],["tuiAppearance","whiteblock","tuiCardLarge","normal",1,"card"],["tuiHeader","",1,"info"],["size","l",3,"src","tuiSkeleton"],["tuiTitle","",3,"tuiSkeleton"],["tuiSubtitle","",3,"tuiSkeleton"],[1,"group-buttons"],["appearance","accent","tuiButton","",3,"click","tuiSkeleton"],["appearance","whiteblock","tuiButton","",3,"click","tuiSkeleton"],[1,"position",3,"tuiSkeleton"],[1,"position-title"],[1,"block-position"],[1,"tui-space_top-0","tui-space_bottom-0","bold"],[1,"tui-space_top-0","tui-space_bottom-0"],[1,"bold"],["tuiHeader",""],["tuiTitle",""],["tuiAutoFocus","",3,"max","min","ngModel"],["tuiButton","","type","submit",3,"click"],["tuiAutoFocus","",3,"ngModelChange","max","min","ngModel"]],template:function(i,r){if(i&1){let m=T();Q(0),s(1,"div",1)(2,"header",2),g(3,"tui-avatar",3),h(4,"coinIcon"),s(5,"h2",4),u(6," Staking Bitcoin "),c(),s(7,"div",5),u(8," Earn a share of the protocol`s fees "),g(9,"br"),u(10," while staking BITCOIN "),c()(),s(11,"div",6)(12,"button",7),w("click",function(){x(m);let P=E(50);return b([r.stake=!0,r.showDialog(P)])}),u(13," Stake "),c(),s(14,"button",8),w("click",function(){x(m);let P=E(50);return b([r.stake=!1,r.showDialog(P)])}),u(15," Unstake "),c()(),s(16,"div",9)(17,"div",10),u(18,"My position"),c(),g(19,"hr"),s(20,"div",11)(21,"div",12),u(22),c(),s(23,"div"),u(24),h(25,"number"),c()(),g(26,"hr"),s(27,"div",11)(28,"div"),u(29,"Rewards"),c(),s(30,"div",12),u(31,"0 BTC"),c(),s(32,"div"),u(33,"$0"),c()()(),s(34,"div",9)(35,"div",10),u(36,"Overview"),c(),g(37,"hr"),s(38,"div",11)(39,"div",13),u(40,"Total stacked"),c(),s(41,"div",14),u(42,"1.5M BTC"),c()(),g(43,"hr"),s(44,"div",11)(45,"div",13),u(46,"APR"),c(),s(47,"div",14),u(48,"5%"),c()()()(),f(49,Er,10,5,"ng-template",null,0,st)}if(i&2){let m=r.tokens();a(3),l("src",y(4,14,"btc"))("tuiSkeleton",!m),a(2),C("text-align","center"),l("tuiSkeleton",m?"":"Staking Bitcoin"),a(2),C("text-align","center"),l("tuiSkeleton",!m),a(5),l("tuiSkeleton",!m),a(2),l("tuiSkeleton",!m),a(2),l("tuiSkeleton",!m),a(6),v("",r.amount()," BTC"),a(2),v("$",G(25,16,r.price(),"1.2-2"),""),a(10),l("tuiSkeleton",!m)}},dependencies:[Pe,M,ie,xt,yt,Ft,X,me,U,F,H,q,ge,he,fe,Z,R],styles:[".card[_ngcontent-%COMP%]{height:100%;min-height:41.625rem}.info[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center}.group-buttons[_ngcontent-%COMP%]{display:flex;gap:.5rem}.group-buttons[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{flex-grow:1}.position[_ngcontent-%COMP%]{border:solid 1px var(--tui-border-normal);border-radius:1rem}.position-title[_ngcontent-%COMP%]{padding:.5rem .5rem .5rem 1rem;font-weight:600}.bold[_ngcontent-%COMP%]{font-weight:700;font-size:1.2rem}.block-position[_ngcontent-%COMP%]{display:flex;padding:.5rem 1rem;flex-direction:column}"],changeDetection:0});let e=t;return e})();var Fr=(e,t)=>t.symbol;function Ar(e,t){e&1&&g(0,"tui-icon",16),e&2&&C("font-size",1,"em")("margin-left",.5,"rem")}function Br(e,t){if(e&1){let o=T();s(0,"button",14),w("click",function(){let i=x(o).$implicit,r=p().$implicit;p();let m=it(9),_=p();return b([m?_.newTokenTo(i.symbol):_.newTokenFrom(i.symbol),r()])}),u(1),f(2,Ar,1,4,"tui-icon",15),c()}if(e&2){let o=t.$implicit;p(2);let n=it(0);l("value",o.symbol),a(),v(" ",o.symbol.toUpperCase()," "),a(),l("ngIf",o.symbol.toLowerCase()===n.toLowerCase())}}function Nr(e,t){if(e&1&&(s(0,"tui-data-list",12),B(1,Br,3,3,"button",13,Fr),c()),e&2){p(2);let o=it(0);a(),N(o)}}function Vr(e,t){if(e&1){let o=T();s(0,"input",17),z("ngModelChange",function(i){x(o);let r=p(2);return L(r.to,i)||(r.to=i),b(i)}),w("input",function(){x(o);let i=p(2);return b(i.newSwapTo())}),c()}if(e&2){let o=p(2);V("ngModel",o.to)}}function Lr(e,t){if(e&1){let o=T();s(0,"input",17),z("ngModelChange",function(i){x(o);let r=p(2);return L(r.from,i)||(r.from=i),b(i)}),w("input",function(){x(o);let i=p(2);return b(i.newSwapFrom())}),c()}if(e&2){let o=p(2);V("ngModel",o.from)}}function zr(e,t){if(e&1&&(u(0),h(1,"tuiAmount"),h(2,"async")),e&2){let o=p(2);v(" \u2248",y(2,4,G(1,1,o.priceTo()*o.to(),"USD"))," ")}}function Rr(e,t){if(e&1&&(u(0),h(1,"tuiAmount"),h(2,"async")),e&2){let o=p(2);v(" \u2248",y(2,4,G(1,1,o.priceFrom()*o.from(),"USD"))," ")}}function Ur(e,t){if(e&1&&(Q(0),s(1,"div")(2,"div",5)(3,"div",6),u(4),c(),s(5,"div",6),u(6),c()(),s(7,"button",7),g(8,"tui-avatar",8),Q(9),f(10,Nr,3,0,"ng-template",null,0,st),c()(),s(12,"div")(13,"tui-input-inline",9),f(14,Vr,1,1,"input",10)(15,Lr,1,1,"input",10),c(),s(16,"div")(17,"div",11),f(18,zr,3,6)(19,Rr,3,6),c(),g(20,"hr"),c()()),e&2){let o=t.$implicit,n=t.$index,i=E(11),r=p(),m=it(0),_=at(n?r.tokenTo().toUpperCase():r.tokenFrom().toUpperCase());a(3),l("tuiSkeleton",!m),a(),v(" ",o," "),a(),l("tuiSkeleton",!m),a(),v(" Balance: 1000 ",_.toUpperCase()," "),a(),l("tuiDropdown",i)("tuiSkeleton",!m),a(),l("src","https://assets.coincap.io/assets/icons/"+_.toLowerCase()+"@2x.png"),a(),at(n),a(4),l("tuiSkeleton",!m),a(),D(n?14:15),a(3),l("tuiSkeleton",!m),a(),D(n?18:19)}}var Rn=(()=>{let t=class t{constructor(){this.cryptoService=d(J),this.tokens=ct(this.cryptoService.tokens),this.priceFrom=Y(()=>this.getPrice(this.tokenFrom())),this.priceTo=Y(()=>this.getPrice(this.tokenTo())),this.titles=["From","To"],this.from=$(0),this.to=$(0),this.tokenFrom=$("eth"),this.tokenTo=$("btc")}newTokenFrom(n){this.tokenFrom.set(n),this.newSwapFrom()}newTokenTo(n){this.tokenTo.set(n),this.newSwapTo()}getPrice(n){var i;return Number((i=(this.tokens()??[]).find(r=>r.symbol.toLowerCase()===n.toLowerCase()))==null?void 0:i.priceUsd)||0}newSwapFrom(){this.to.set(Number((this.priceFrom()*Number(this.from())/this.priceTo()).toFixed(2)))}newSwapTo(){this.from.set(Number((this.priceTo()*Number(this.to())/this.priceFrom()).toFixed(2)))}};t.\u0275fac=function(i){return new(i||t)},t.\u0275cmp=k({type:t,selectors:[["lmb-swap"]],standalone:!0,features:[S],decls:9,vars:7,consts:[["dropdownContent",""],["tuiAppearance","whiteblock","tuiCardLarge","normal"],["tuiHeader",""],["tuiTitle","",3,"tuiSkeleton"],["appearance","primary","tuiButton","",3,"tuiSkeleton"],["tuiCell","l"],["TuiTitle","",3,"tuiSkeleton"],["tuiButton","","tuiChevron","","tuiDropdownOpen","","type","button",1,"choose-crypto",3,"tuiDropdown","tuiSkeleton"],["size","xs",3,"src"],["tuiTitle","l",3,"tuiSkeleton"],["max","1000","min","0","type","number",3,"ngModel"],["tuiSubtitle","",1,"equal-number",3,"tuiSkeleton"],["size","s"],["tuiOption","",3,"value"],["tuiOption","",3,"click","value"],["icon","@tui.check",3,"font-size","margin-left",4,"ngIf"],["icon","@tui.check"],["max","1000","min","0","type","number",3,"ngModelChange","input","ngModel"]],template:function(i,r){if(i&1&&(Q(0),s(1,"div",1)(2,"header",2)(3,"h2",3),u(4," Swap "),c()(),B(5,Ur,21,13,null,null,j),s(7,"button",4),u(8," Swap "),c()()),i&2){let m=at(r.tokens());a(),C("height","100%"),a(2),C("text-align","center"),l("tuiSkeleton",!m),a(2),N(r.titles),a(2),l("tuiSkeleton",!m)}},dependencies:[M,K,O,xt,hi,yi,yt,Ti,vi,Ft,vt,X,U,F,H,Bt,de,on,nn,tn,en,q,Mt,Sn,Z,R],styles:[".choose-crypto[_ngcontent-%COMP%]{height:2rem}.equal-number[_ngcontent-%COMP%]{text-align:right}tui-input-inline[_ngcontent-%COMP%]{height:2.5rem}input[type=number][_ngcontent-%COMP%]{-moz-appearance:textfield}input[_ngcontent-%COMP%]::-webkit-outer-spin-button, input[_ngcontent-%COMP%]::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}"],changeDetection:0});let e=t;return e})();var jp=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275cmp=k({type:t,selectors:[["lmb-crypto"]],standalone:!0,features:[S],decls:11,vars:0,consts:[[1,"layout"],[1,"left"],[1,""],[1,"staking"],[1,"right"],[1,"right-top"],[1,"minter"],[1,"right-bottom"]],template:function(i,r){i&1&&(s(0,"div",0)(1,"div",1),g(2,"lmb-prices",2)(3,"lmb-staking",3),c(),s(4,"div",4)(5,"div",5),g(6,"lmb-minter",6)(7,"lmb-swap",2),c(),s(8,"div",7),g(9,"lmb-nft",2)(10,"lmb-pools",2),c()()())},dependencies:[M,On,Fn,An,Ln,zn,Rn],styles:[".layout[_ngcontent-%COMP%]{display:flex;width:100%;gap:1rem;margin-top:1rem}@media (max-width: 68rem){.layout[_ngcontent-%COMP%]{display:flex;flex-direction:column}}.minter[_ngcontent-%COMP%]{height:100%}.left[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1rem;flex-grow:1;width:21.875rem;flex-shrink:0}@media (max-width: 68rem){.left[_ngcontent-%COMP%]{width:100%}}.right[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1rem;flex-grow:1}.right-top[_ngcontent-%COMP%]{display:grid;gap:1rem;height:100%;grid-template-columns:2fr 4fr;flex-grow:1}@media (max-width: 68rem){.right-top[_ngcontent-%COMP%]{display:flex;flex-direction:column}}.right-bottom[_ngcontent-%COMP%]{display:grid;gap:1rem;grid-template-columns:4fr 3fr}@media (max-width: 80rem){.right-bottom[_ngcontent-%COMP%]{display:flex;flex-direction:column}}"],changeDetection:0});let e=t;return e})();export{jp as CryptoComponent}; diff --git a/chunk-IMH2DPZL.js b/chunk-RXYZMX2Q.js similarity index 90% rename from chunk-IMH2DPZL.js rename to chunk-RXYZMX2Q.js index 6f715e0e6..f8f4ec943 100644 --- a/chunk-IMH2DPZL.js +++ b/chunk-RXYZMX2Q.js @@ -1 +1 @@ -import{d as M,f as B}from"./chunk-ZN6AO4BG.js";import"./chunk-YUW7GALI.js";import"./chunk-AWGYT4IY.js";import"./chunk-OKL4RZMA.js";import{a as N,b,c as D,d as E,e as A}from"./chunk-GIHFJXZ6.js";import{A as l,Bb as o,Ca as h,Cb as a,Db as r,Df as F,K as f,Pc as k,Tb as s,Tc as x,Vb as y,_b as C,cb as c,cc as L,ha as v,jc as R,kc as S,tb as g,ub as T,wa as u}from"./chunk-NEAIWFFQ.js";var G=(()=>{let e=class e{constructor(){var i;this.activatedRoute=u(b),this.data$=u(E).events.pipe(f(t=>t instanceof N),l(t=>{var n;return(n=t.snapshot.firstChild)==null?void 0:n.data.title}),v((i=this.activatedRoute.snapshot.firstChild)==null?void 0:i.data.title))}};e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=h({type:e,selectors:[["lmb-dashboards"]],standalone:!0,features:[L],decls:12,vars:6,consts:[["tuiNavigationNav",""],[3,"routerLink"],["icon","@tui.chevron-left"],["tuiNavigationLogo",""],["tuiFade",""]],template:function(t,n){if(t&1&&(o(0,"nav",0),C(1),R(2,"async"),o(3,"a",1),r(4,"tui-icon",2),s(5," Back "),a(),s(6," / "),o(7,"span",3)(8,"span",4),s(9),a()(),r(10,"hr"),a(),r(11,"router-outlet")),t&2){let p;T("position","sticky");let m=(p=S(2,4,n.data$))!==null&&p!==void 0?p:"";c(3),g("routerLink",m?"/dashboards":"/"),c(6),y("",m," dashboard")}},dependencies:[k,x,A,D,F,M,B],encapsulation:2,changeDetection:0});let d=e;return d})();export{G as DashboardsComponent}; +import{d as M,f as B}from"./chunk-5TYV2UJ6.js";import"./chunk-55ASQOEL.js";import"./chunk-XEFPZ7J3.js";import"./chunk-DXP4LH76.js";import{a as N,b,c as D,d as E,e as A}from"./chunk-GIHFJXZ6.js";import{A as l,Bb as o,Ca as h,Cb as a,Db as r,Df as F,K as f,Pc as k,Tb as s,Tc as x,Vb as y,_b as C,cb as c,cc as L,ha as v,jc as R,kc as S,tb as g,ub as T,wa as u}from"./chunk-NEAIWFFQ.js";var G=(()=>{let e=class e{constructor(){var i;this.activatedRoute=u(b),this.data$=u(E).events.pipe(f(t=>t instanceof N),l(t=>{var n;return(n=t.snapshot.firstChild)==null?void 0:n.data.title}),v((i=this.activatedRoute.snapshot.firstChild)==null?void 0:i.data.title))}};e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=h({type:e,selectors:[["lmb-dashboards"]],standalone:!0,features:[L],decls:12,vars:6,consts:[["tuiNavigationNav",""],[3,"routerLink"],["icon","@tui.chevron-left"],["tuiNavigationLogo",""],["tuiFade",""]],template:function(t,n){if(t&1&&(o(0,"nav",0),C(1),R(2,"async"),o(3,"a",1),r(4,"tui-icon",2),s(5," Back "),a(),s(6," / "),o(7,"span",3)(8,"span",4),s(9),a()(),r(10,"hr"),a(),r(11,"router-outlet")),t&2){let p;T("position","sticky");let m=(p=S(2,4,n.data$))!==null&&p!==void 0?p:"";c(3),g("routerLink",m?"/dashboards":"/"),c(6),y("",m," dashboard")}},dependencies:[k,x,A,D,F,M,B],encapsulation:2,changeDetection:0});let d=e;return d})();export{G as DashboardsComponent}; diff --git a/chunk-UPS6ZX2Y.js b/chunk-TM3BF3MS.js similarity index 99% rename from chunk-UPS6ZX2Y.js rename to chunk-TM3BF3MS.js index aba65f0d0..962d99dab 100644 --- a/chunk-UPS6ZX2Y.js +++ b/chunk-TM3BF3MS.js @@ -1,4 +1,4 @@ -import{A as Pe,H as Se,I as we,J as Te,L as Me,M as Ne,N as Oe,P as Re,Q as Ie,T as at,U as Fe,W as Ve,r as _e,v as De,x as Ae,z as ye}from"./chunk-DNEQ7KDT.js";import{F as Ce,n as rt}from"./chunk-OKL4RZMA.js";import{$e as ge,Ad as nt,Bb as H,Bf as Ee,Ca as q,Cb as z,Cf as be,Da as Ht,Dd as le,Ea as y,Eb as Zt,Fa as gt,Fb as Yt,Fd as ue,Gb as Xt,Hb as bt,Ja as zt,Jf as xe,Ka as T,Kb as U,Kd as ce,La as M,Lb as N,Mb as Kt,Na as vt,Nb as tt,Nc as se,Ob as Qt,Pb as qt,Pc as oe,Pd as de,Qb as Ct,Rb as xt,Sb as _t,Ta as Ut,Tb as et,Tc as re,Ud as he,Va as Bt,Vb as Jt,Vd as it,Xd as me,a as I,b as $,bc as B,c as kt,cb as P,cc as te,e as Lt,ed as ae,fb as Wt,jc as ee,kb as Gt,kc as ne,mb as Et,me as pe,pc as ie,ra as $t,rb as j,sb as J,sf as ot,t as Q,ta as jt,tb as S,tf as ve,ve as st,wa as C,we as fe}from"./chunk-NEAIWFFQ.js";function fn(n){let t=String(n),[s,e]=t.split("e-"),i=t;if(e){let[,o]=s.split("."),r=Number(e)+((o==null?void 0:o.length)||0);i=n.toFixed(r)}return i}function gn(n,t){let[,s=""]=fn(n).split(".");return de(t)?s.slice(0,Math.max(0,t)):s}function ke(n,t={}){let{precision:s,decimalSeparator:e,thousandSeparator:i,decimalMode:o,rounding:r}=I($(I({},ot),{decimalMode:"always",precision:1/0}),t),l=Number.isFinite(s)?le({value:n,precision:s,method:r}):n,a=String(Math.floor(Math.abs(l))),u=gn(l,s),c=Number(u)>0;if(Number.isFinite(s))if(o==="always"||c&&o==="pad"){let p=Math.max(s-u.length,0),f="0".repeat(p);u=`${u}${f}`}else u=u.replace(/0*$/,"");let d=a.length%3,m=(n<0?st:"")+a.charAt(0);for(let p=1;p3&&(m+=i),m+=a.charAt(p);return u?m+e+u:m}function Si(n){if(n==="")return"";let t=0;for(let o=0;o{let t=class t{transform(e,i,...o){return i(e,...o)}};t.\u0275fac=function(i){return new(i||t)},t.\u0275pipe=gt({name:"tuiMapper",type:t,pure:!0,standalone:!0});let n=t;return n})();var vn=65536,Dt=class{constructor(t){this.$implicit=t}},Vi=(()=>{let t=class t{constructor(){this.viewContainer=C(Gt),this.templateRef=C(Wt)}set tuiRepeatTimesOf(e){let i=Math.floor(nt(e,0,vn)),{length:o}=this.viewContainer;e0;if(Number.isFinite(s))if(o==="always"||c&&o==="pad"){let p=Math.max(s-u.length,0),f="0".repeat(p);u=`${u}${f}`}else u=u.replace(/0*$/,"");let d=a.length%3,m=(n<0?st:"")+a.charAt(0);for(let p=1;p3&&(m+=i),m+=a.charAt(p);return u?m+e+u:m}function Si(n){if(n==="")return"";let t=0;for(let o=0;o{let t=class t{transform(e,i,...o){return i(e,...o)}};t.\u0275fac=function(i){return new(i||t)},t.\u0275pipe=gt({name:"tuiMapper",type:t,pure:!0,standalone:!0});let n=t;return n})();var vn=65536,Dt=class{constructor(t){this.$implicit=t}},Vi=(()=>{let t=class t{constructor(){this.viewContainer=C(Gt),this.templateRef=C(Wt)}set tuiRepeatTimesOf(e){let i=Math.floor(nt(e,0,vn)),{length:o}=this.viewContainer;en.isContentEditable?bn(n):n.querySelector("input,textarea")||n,O={mask:/^.*$/,preprocessors:[],postprocessors:[],plugins:[],overwriteMode:"shift"},yt=class{constructor(){this.now=null,this.past=[],this.future=[]}undo(){let t=this.past.pop();t&&this.now&&(this.future.push(this.now),this.updateElement(t,"historyUndo"))}redo(){let t=this.future.pop();t&&this.now&&(this.past.push(this.now),this.updateElement(t,"historyRedo"))}updateHistory(t){if(!this.now){this.now=t;return}let s=this.now.value!==t.value,e=this.now.selection.some((i,o)=>i!==t.selection[o]);!s&&!e||(s&&(this.past.push(this.now),this.future=[]),this.now=t)}updateElement(t,s){this.now=t,this.updateElementState(t,{inputType:s,data:null})}};function Cn(n,...t){return t.every(({value:s})=>s===n.value)}function xn(n,...t){return t.every(({value:s,selection:e})=>s===n.value&&e[0]===n.selection[0]&&e[1]===n.selection[1])}function _n({value:n,selection:t},s,e){let[i,o]=t,r=typeof e=="function"?e({value:n,selection:t}):e;return{value:n,selection:r==="replace"?[i,i+s.length]:[i,o]}}function ht(n){return typeof n=="string"}function $e(n,t,s,e){let i="";for(let o=t.length;o{let i=t[e]||"";return ht(i)?s===i:s.match(i)}):t.test(n)}function Dn(n,t,s){let e=null,i=null,o=Array.from(n.value).reduce((l,a,u)=>{let c=$e(t,l,a,s),d=l+c,h=t[d.length]||"";return ht(h)?d+h:a.match(h)?(e===null&&u>=n.selection[0]&&(e=d.length),i===null&&u>=n.selection[1]&&(i=d.length),d+a):d},""),r=$e(t,o,"",s);return{value:Ue(o+r,t)?o+r:o,selection:[e??o.length,i??o.length]}}function An({value:n,selection:t},s){let[e,i]=t,o=e,r=i;return{value:Array.from(n).reduce((a,u,c)=>{let d=a+u;return e===c&&(o=a.length),i===c&&(r=a.length),d.match(s)?d:a},""),selection:[o,r]}}function ut(n,t,s=null){if(Ue(n.value,t))return n;let{value:e,selection:i}=Array.isArray(t)?Dn(n,t,s):An(n,t);return{selection:i,value:Array.isArray(t)?e.slice(0,t.length):e}}function je(n,t){if(!Array.isArray(t))return n;let[s,e]=n.selection,i=[],o=Array.from(n.value).reduce((r,l,a)=>{let u=t[a]||"";return a===s&&i.push(r.length),a===e&&i.push(r.length),ht(u)&&u===l?r:r+l},"");return i.length<2&&i.push(...new Array(2-i.length).fill(o.length)),{value:o,selection:[i[0],i[1]]}}var Z=class{constructor(t,s){this.initialElementState=t,this.maskOptions=s,this.value="",this.selection=[0,0];let{value:e,selection:i}=ut(this.initialElementState,this.getMaskExpression(this.initialElementState));this.value=e,this.selection=i}addCharacters([t,s],e){let{value:i,maskOptions:o}=this,r=this.getMaskExpression({value:i.slice(0,t)+e+i.slice(s),selection:[t+e.length,t+e.length]}),l={value:i,selection:[t,s]},a=je(l,r),[u,c]=_n(a,e,o.overwriteMode).selection,d=a.value.slice(0,u)+e,h=d.length,m=ut({value:d+a.value.slice(c),selection:[h,h]},r,l);if(i.slice(0,u)===ut({value:d,selection:[h,h]},r,l).value||xn(this,m))throw new Error("Invalid mask value");this.value=m.value,this.selection=m.selection}deleteCharacters([t,s]){if(t===s||!s)return;let{value:e}=this,i=this.getMaskExpression({value:e.slice(0,t)+e.slice(s),selection:[t,t]}),o={value:e,selection:[t,s]},r=je(o,i),[l,a]=r.selection,u=r.value.slice(0,l)+r.value.slice(a),c=ut({value:u,selection:[l,l]},i,o);this.value=c.value,this.selection=c.selection}getMaskExpression(t){let{mask:s}=this.maskOptions;return typeof s=="function"?s(t):s}},Pt=class{constructor(t){this.element=t,this.listeners=[]}listen(t,s,e){let i=s;this.element.addEventListener(t,i,e),this.listeners.push(()=>this.element.removeEventListener(t,i))}destroy(){this.listeners.forEach(t=>t())}},_={CTRL:1,ALT:2,SHIFT:4,META:8},W={Y:89,Z:90};function G(n,t,s){return n.ctrlKey===!!(t&_.CTRL)&&n.altKey===!!(t&_.ALT)&&n.shiftKey===!!(t&_.SHIFT)&&n.metaKey===!!(t&_.META)&&n.keyCode===s}function yn(n){return G(n,_.CTRL,W.Y)||G(n,_.CTRL|_.SHIFT,W.Z)||G(n,_.META|_.SHIFT,W.Z)}function Pn(n){return G(n,_.CTRL,W.Z)||G(n,_.META,W.Z)}function mt(n,t){var s;let e=n.value;if(typeof t=="string")n.value=t;else{let[i,o]=t.selection;n.value=t.value,n.matches(":focus")&&((s=n.setSelectionRange)===null||s===void 0||s.call(n,i,o))}n.value!==e&&n.dispatchEvent(new Event("input",{bubbles:!0}))}function Sn({value:n,selection:t},s){let[e,i]=t;if(e!==i)return[e,i];let o=s?n.slice(e).indexOf(` diff --git a/chunk-5RXY5XY7.js b/chunk-X6KU7K55.js similarity index 93% rename from chunk-5RXY5XY7.js rename to chunk-X6KU7K55.js index 4424d2b9e..c7c818a5d 100644 --- a/chunk-5RXY5XY7.js +++ b/chunk-X6KU7K55.js @@ -1 +1 @@ -import{a as ie,b as ne,c as oe}from"./chunk-TZLWDFXK.js";import{a as H,b as J,c as Z,d as ee,e as te}from"./chunk-MIQNTQBH.js";import{a as z}from"./chunk-LS7UCRAC.js";import{V as X,a as $,g as U,k as Y}from"./chunk-DNEQ7KDT.js";import{Ga as W}from"./chunk-OKL4RZMA.js";import{d as O}from"./chunk-GIHFJXZ6.js";import{a as q,b as K,c as Q}from"./chunk-VVRWXTJV.js";import{A as v,Bb as e,Ca as P,Cb as t,Cf as j,Db as i,H as w,Hd as R,Kb as S,Pc as L,Tb as n,Tc as E,bc as T,cb as o,cc as _,dc as f,dd as k,gd as u,ha as y,ia as x,jc as l,jd as F,kc as p,kd as N,ke as G,ld as I,m as b,nd as c,pd as D,tb as m,td as B,ub as r,ud as V,w as C,wa as M,zd as A}from"./chunk-NEAIWFFQ.js";var re=()=>[],Pe=(()=>{let a=class a{constructor(){this.router=M(O),this.form=new I({email:new c("",[u.required,u.email]),password:new c("",[u.required,u.minLength(5)]),rememberMe:new c(!1)}),this.submit$=new b,this.submitLoader=R(this.submit$.pipe(x(()=>w(4e3).pipe(v(()=>this.goMain()),y(!0)))),{initialValue:!1})}goMain(){return this.router.navigate([""]),!1}onSubmit(){this.form.valid&&(this.form.disable(),this.submit$.next())}};a.\u0275fac=function(s){return new(s||a)},a.\u0275cmp=P({type:a,selectors:[["lmb-login"]],standalone:!0,features:[T([{provide:W,useValue:{required:"Value can't be empty",email:"Invalid email",minlength:({requiredLength:g})=>C(`Minimum length \u2014 ${g}`)}}]),_],decls:45,vars:28,consts:[["tuiAppearance","whiteblock","tuiCardLarge","normal",1,"card"],["tuiHeader",""],["tuiTitle",""],[3,"submit","formGroup"],["formControlName","email","type","email",1,"block-input"],["tuiTextfieldLegacy",""],["formControlName","email",1,"error",3,"error"],["formControlName","password","type","password",1,"block-input"],["formControlName","password",1,"error",3,"error"],[1,"under-password"],["tuiLabel",""],["checked","","formControlName","rememberMe","tuiCheckbox","","type","checkbox"],["tuiLink",""],[3,"inheritColor","overlay","showLoader"],["size","m","tuiButton",""],[1,"or"],[1,"line"],["tuiSubtitle","",1,"tui-space_top-0","tui-space_bottom-0"],[1,"tui-space_top-2","tui-space_bottom-2","icons-title"],[1,"icons"],["appearance","icon","tuiButton","",1,"icon-login"],["alt","google icon","src","./google.svg",1,"icon-login"],["alt","github icon","src","./github-mark.svg",1,"icon-login"],["alt","apple icon","src","./apple.svg",1,"icon-login"],["tuiLink","",1,"center"]],template:function(s,h){s&1&&(e(0,"div",0)(1,"header",1)(2,"h2",2),n(3," Log in "),t()(),e(4,"form",3),S("submit",function(){return h.onSubmit()}),e(5,"tui-input",4),n(6," email "),i(7,"input",5),t(),i(8,"tui-error",6),l(9,"tuiFieldError"),l(10,"async"),e(11,"tui-input-password",7),n(12," password "),i(13,"input",5),t(),i(14,"tui-error",8),l(15,"tuiFieldError"),l(16,"async"),e(17,"div",9)(18,"label",10),i(19,"input",11),e(20,"span"),n(21,"Remember me"),t()(),e(22,"a",12),n(23,"Forgot password?"),t()(),e(24,"tui-loader",13)(25,"button",14),n(26," Log in "),t()(),e(27,"div",15),i(28,"hr",16),e(29,"p",17),n(30," or "),t(),i(31,"hr",16),t(),e(32,"p",18),n(33,"Login with"),t(),e(34,"div",19)(35,"button",20),i(36,"img",21),t(),e(37,"button",20),i(38,"img",22),t(),e(39,"button",20),i(40,"img",23),t()(),e(41,"a",24),n(42," Don't have an account? "),e(43,"span"),n(44,"Sign up"),t()()()()),s&2&&(o(2),r("text-align","center"),o(2),m("formGroup",h.form),o(4),m("error",p(10,20,p(9,18,f(26,re)))),o(6),m("error",p(16,24,p(15,22,f(27,re)))),o(6),r("color","var(--tui-text-secondary)"),o(4),r("width","100%"),m("inheritColor",!0)("overlay",!0)("showLoader",h.submitLoader()),o(),r("width","100%"),o(16),r("margin-top","0.5rem"),o(2),r("font-weight","500"))},dependencies:[E,L,A,D,k,F,N,B,V,G,j,K,Y,H,J,Q,te,Z,ee,X,oe,ie,ne,U,$,z,q],styles:["[_nghost-%COMP%]{height:calc(100vh - 3rem)}.card[_ngcontent-%COMP%]{top:50%;bottom:50%;width:max-content;margin:auto;transform:translateY(-50%);height:max-content}.block-input[_ngcontent-%COMP%]{margin-bottom:.3rem;width:20rem}@media (max-width: 29rem){.block-input[_ngcontent-%COMP%]{width:16rem}}.center[_ngcontent-%COMP%]{margin-left:auto;margin-right:auto;text-align:center}form[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center}.under-password[_ngcontent-%COMP%]{display:flex;justify-content:space-between;width:100%;margin-bottom:1.5rem}.or[_ngcontent-%COMP%]{display:flex;margin-top:.5rem;width:100%;justify-content:center;align-items:center;color:var(--tui-text-secondary);gap:.5rem}.line[_ngcontent-%COMP%]{flex-grow:1}.icon-login[_ngcontent-%COMP%]{transition:opacity .3s;width:1.8rem;height:1.8rem}.icon-login[_ngcontent-%COMP%]:hover{opacity:.8}.icon-login[_ngcontent-%COMP%]:active{opacity:.95}.icons[_ngcontent-%COMP%]{display:flex;gap:1rem}.icons-title[_ngcontent-%COMP%]{font-weight:700}.error[_ngcontent-%COMP%]{margin-right:auto;margin-bottom:.8rem}"],changeDetection:0});let d=a;return d})();export{Pe as LoginComponent}; +import{a as ie,b as ne,c as oe}from"./chunk-O52MZMLS.js";import{a as H,b as J,c as Z,d as ee,e as te}from"./chunk-OU5F42O3.js";import{a as z}from"./chunk-ZYN4Y54G.js";import{V as X,a as $,g as U,k as Y}from"./chunk-XENTLRKE.js";import{Ha as W}from"./chunk-DXP4LH76.js";import{d as O}from"./chunk-GIHFJXZ6.js";import{a as q,b as K,c as Q}from"./chunk-VVRWXTJV.js";import{A as v,Bb as e,Ca as P,Cb as t,Cf as j,Db as i,H as w,Hd as R,Kb as S,Pc as L,Tb as n,Tc as E,bc as T,cb as o,cc as _,dc as f,dd as k,gd as u,ha as y,ia as x,jc as l,jd as F,kc as p,kd as N,ke as G,ld as I,m as b,nd as c,pd as D,tb as m,td as B,ub as r,ud as V,w as C,wa as M,zd as A}from"./chunk-NEAIWFFQ.js";var re=()=>[],Pe=(()=>{let a=class a{constructor(){this.router=M(O),this.form=new I({email:new c("",[u.required,u.email]),password:new c("",[u.required,u.minLength(5)]),rememberMe:new c(!1)}),this.submit$=new b,this.submitLoader=R(this.submit$.pipe(x(()=>w(4e3).pipe(v(()=>this.goMain()),y(!0)))),{initialValue:!1})}goMain(){return this.router.navigate([""]),!1}onSubmit(){this.form.valid&&(this.form.disable(),this.submit$.next())}};a.\u0275fac=function(s){return new(s||a)},a.\u0275cmp=P({type:a,selectors:[["lmb-login"]],standalone:!0,features:[T([{provide:W,useValue:{required:"Value can't be empty",email:"Invalid email",minlength:({requiredLength:g})=>C(`Minimum length \u2014 ${g}`)}}]),_],decls:45,vars:28,consts:[["tuiAppearance","whiteblock","tuiCardLarge","normal",1,"card"],["tuiHeader",""],["tuiTitle",""],[3,"submit","formGroup"],["formControlName","email","type","email",1,"block-input"],["tuiTextfieldLegacy",""],["formControlName","email",1,"error",3,"error"],["formControlName","password","type","password",1,"block-input"],["formControlName","password",1,"error",3,"error"],[1,"under-password"],["tuiLabel",""],["checked","","formControlName","rememberMe","tuiCheckbox","","type","checkbox"],["tuiLink",""],[3,"inheritColor","overlay","showLoader"],["size","m","tuiButton",""],[1,"or"],[1,"line"],["tuiSubtitle","",1,"tui-space_top-0","tui-space_bottom-0"],[1,"tui-space_top-2","tui-space_bottom-2","icons-title"],[1,"icons"],["appearance","icon","tuiButton","",1,"icon-login"],["alt","google icon","src","./google.svg",1,"icon-login"],["alt","github icon","src","./github-mark.svg",1,"icon-login"],["alt","apple icon","src","./apple.svg",1,"icon-login"],["tuiLink","",1,"center"]],template:function(s,h){s&1&&(e(0,"div",0)(1,"header",1)(2,"h2",2),n(3," Log in "),t()(),e(4,"form",3),S("submit",function(){return h.onSubmit()}),e(5,"tui-input",4),n(6," email "),i(7,"input",5),t(),i(8,"tui-error",6),l(9,"tuiFieldError"),l(10,"async"),e(11,"tui-input-password",7),n(12," password "),i(13,"input",5),t(),i(14,"tui-error",8),l(15,"tuiFieldError"),l(16,"async"),e(17,"div",9)(18,"label",10),i(19,"input",11),e(20,"span"),n(21,"Remember me"),t()(),e(22,"a",12),n(23,"Forgot password?"),t()(),e(24,"tui-loader",13)(25,"button",14),n(26," Log in "),t()(),e(27,"div",15),i(28,"hr",16),e(29,"p",17),n(30," or "),t(),i(31,"hr",16),t(),e(32,"p",18),n(33,"Login with"),t(),e(34,"div",19)(35,"button",20),i(36,"img",21),t(),e(37,"button",20),i(38,"img",22),t(),e(39,"button",20),i(40,"img",23),t()(),e(41,"a",24),n(42," Don't have an account? "),e(43,"span"),n(44,"Sign up"),t()()()()),s&2&&(o(2),r("text-align","center"),o(2),m("formGroup",h.form),o(4),m("error",p(10,20,p(9,18,f(26,re)))),o(6),m("error",p(16,24,p(15,22,f(27,re)))),o(6),r("color","var(--tui-text-secondary)"),o(4),r("width","100%"),m("inheritColor",!0)("overlay",!0)("showLoader",h.submitLoader()),o(),r("width","100%"),o(16),r("margin-top","0.5rem"),o(2),r("font-weight","500"))},dependencies:[E,L,A,D,k,F,N,B,V,G,j,K,Y,H,J,Q,te,Z,ee,X,oe,ie,ne,U,$,z,q],styles:["[_nghost-%COMP%]{height:calc(100vh - 3rem)}.card[_ngcontent-%COMP%]{top:50%;bottom:50%;width:max-content;margin:auto;transform:translateY(-50%);height:max-content}.block-input[_ngcontent-%COMP%]{margin-bottom:.3rem;width:20rem}@media (max-width: 29rem){.block-input[_ngcontent-%COMP%]{width:16rem}}.center[_ngcontent-%COMP%]{margin-left:auto;margin-right:auto;text-align:center}form[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center}.under-password[_ngcontent-%COMP%]{display:flex;justify-content:space-between;width:100%;margin-bottom:1.5rem}.or[_ngcontent-%COMP%]{display:flex;margin-top:.5rem;width:100%;justify-content:center;align-items:center;color:var(--tui-text-secondary);gap:.5rem}.line[_ngcontent-%COMP%]{flex-grow:1}.icon-login[_ngcontent-%COMP%]{transition:opacity .3s;width:1.8rem;height:1.8rem}.icon-login[_ngcontent-%COMP%]:hover{opacity:.8}.icon-login[_ngcontent-%COMP%]:active{opacity:.95}.icons[_ngcontent-%COMP%]{display:flex;gap:1rem}.icons-title[_ngcontent-%COMP%]{font-weight:700}.error[_ngcontent-%COMP%]{margin-right:auto;margin-bottom:.8rem}"],changeDetection:0});let d=a;return d})();export{Pe as LoginComponent}; diff --git a/chunk-AWGYT4IY.js b/chunk-XEFPZ7J3.js similarity index 95% rename from chunk-AWGYT4IY.js rename to chunk-XEFPZ7J3.js index dca434c9b..c9cee37a6 100644 --- a/chunk-AWGYT4IY.js +++ b/chunk-XEFPZ7J3.js @@ -1,2 +1,2 @@ -import{Z as m}from"./chunk-OKL4RZMA.js";import{Ca as r,Cc as h,Ea as s,Kd as d,Td as f,Xd as v,bc as c,cc as u,fe as p,lb as a,pf as l,wa as i}from"./chunk-NEAIWFFQ.js";var g=d("@tui.chevron-down"),C=(()=>{let t=class t{};t.\u0275fac=function(n){return new(n||t)},t.\u0275cmp=r({type:t,selectors:[["ng-component"]],hostAttrs:[1,"tui-chevron"],standalone:!0,features:[u],decls:0,vars:0,template:function(n,y){},styles:[`[tuiChevron][tuiIcons]:after,tui-icon[tuiChevron]:after{transition-property:transform;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;display:inline-block;cursor:pointer}[tuiChevron][tuiIcons]._chevron-rotated:after,tui-icon[tuiChevron]._chevron-rotated:after{transform:rotate(180deg)} +import{_ as m}from"./chunk-DXP4LH76.js";import{Ca as r,Cc as h,Ea as s,Kd as d,Td as f,Xd as v,bc as c,cc as u,fe as p,lb as a,pf as l,wa as i}from"./chunk-NEAIWFFQ.js";var g=d("@tui.chevron-down"),C=(()=>{let t=class t{};t.\u0275fac=function(n){return new(n||t)},t.\u0275cmp=r({type:t,selectors:[["ng-component"]],hostAttrs:[1,"tui-chevron"],standalone:!0,features:[u],decls:0,vars:0,template:function(n,y){},styles:[`[tuiChevron][tuiIcons]:after,tui-icon[tuiChevron]:after{transition-property:transform;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;display:inline-block;cursor:pointer}[tuiChevron][tuiIcons]._chevron-rotated:after,tui-icon[tuiChevron]._chevron-rotated:after{transform:rotate(180deg)} `],encapsulation:2,changeDetection:0});let e=t;return e})(),x=(()=>{let t=class t{constructor(){this.el=p(),this.dropdown=i(m,{optional:!0}),this.nothing=v(C),this.toggle=h(()=>{var o;return this.el.classList.toggle("_chevron-rotated",this.chevron()||this.chevron()===""&&!!((o=this.dropdown)!=null&&o.ref()))}),this.chevron=a("")}set tuiChevron(o){this.chevron.set(o)}};t.\u0275fac=function(n){return new(n||t)},t.\u0275dir=s({type:t,selectors:[["","tuiChevron",""]],hostAttrs:["tuiChevron",""],inputs:{tuiChevron:"tuiChevron"},standalone:!0,features:[c([f(l,g)])]});let e=t;return e})();export{x as a}; diff --git a/chunk-DNEQ7KDT.js b/chunk-XENTLRKE.js similarity index 99% rename from chunk-DNEQ7KDT.js rename to chunk-XENTLRKE.js index d4d92461f..9d6018034 100644 --- a/chunk-DNEQ7KDT.js +++ b/chunk-XENTLRKE.js @@ -1,4 +1,4 @@ -import{Da as We,E as Ne,R as Ue,X as Be,ga as Lt,l as Re,la as $e,n as et,o as Ve,oa as Tt,pa as je,qa as Xe,ra as Ge,sa as Qe,u as He}from"./chunk-OKL4RZMA.js";import{$c as ve,$e as Se,A,Af as Le,Bb as v,Ca as y,Cb as b,Da as z,Db as I,Df as V,Ea as l,Ec as me,Fa as de,Fd as J,G as ne,Gb as zt,H as Dt,Hb as gt,I as Q,Ib as N,J as oe,Ja as ue,K as ft,Ka as W,Kb as M,Kd as P,La as Y,Lb as R,Ld as g,Mb as kt,Md as Te,Na as m,Nb as Z,Nc as ge,Ne as dt,Ob as st,Pb as U,Pc as _t,Qa as K,Qb as D,Qd as Oe,Rb as w,Re as we,Sa as ot,Sb as q,Ta as ce,Tc as Ct,Td as f,Ue as Fe,V as ht,Va as St,Vd as Me,W as mt,Xd as xt,_e as Ee,a as pt,af as ze,b as Kt,bc as c,cb as p,cc as B,cd as _e,dc as he,ea as re,eb as pe,ec as lt,ed as Ce,fb as rt,fd as ye,fe as F,g as Zt,ha as ae,i as qt,ia as wt,id as yt,ie as Pe,jc as $,jd as xe,je as Ie,jf as ke,kb as fe,kc as j,ke as tt,lb as H,le as bt,m as It,mb as h,n as Jt,nb as at,od as X,oe as At,pa as se,qa as Ft,qf as Ae,r as te,ra as S,rb as C,sb as _,t as ee,ta as L,tb as d,ub as k,v as ie,vb as x,wa as r,ya as Et,yc as vt,yd as be,ye as De,za as le}from"./chunk-NEAIWFFQ.js";var Ti={appearance:"link",pseudo:!1},Ye=P(Ti);var Oi=(()=>{let t=class t{};t.\u0275fac=function(o){return new(o||t)},t.\u0275cmp=y({type:t,selectors:[["ng-component"]],hostAttrs:[1,"tui-link"],standalone:!0,features:[B],decls:0,vars:0,template:function(o,n){},styles:[`[tuiLink]{--tui-text-tertiary: var(--tui-text-secondary);padding:0;background:transparent;border:none;cursor:pointer;font:inherit;color:inherit;-webkit-text-decoration:none dashed currentColor;text-decoration:none dashed currentColor;text-underline-offset:.2em;text-decoration-thickness:.7px;text-decoration-color:color-mix(in lch,currentColor,transparent)}[tuiLink]:hover{--tui-text-secondary: var(--tui-text-primary)}[tuiLink]:before{margin-inline-end:.25rem}[tuiLink]:after{margin-inline-start:.25rem}[tuiLink][tuiIcons]:before,[tuiLink][tuiIcons]:after{content:"\\2060";padding:calc(var(--tui-icon-size, 1rem) / 2);vertical-align:super;font-size:0;line-height:0}[tuiLink]:focus-visible:not([data-focus=false]){outline:none;background:var(--tui-service-selection-background);background:color-mix(in lch,currentColor 12%,transparent)}[tuiLink][data-focus=true]{outline:none;background:var(--tui-service-selection-background);background:color-mix(in lch,currentColor 12%,transparent)} +import{Ea as We,F as Ne,S as Ue,Y as Be,ha as Lt,m as Re,ma as $e,o as et,p as Ve,pa as Tt,qa as je,ra as Xe,sa as Ge,ta as Qe,v as He}from"./chunk-DXP4LH76.js";import{$c as ve,$e as Se,A,Af as Le,Bb as v,Ca as y,Cb as b,Da as z,Db as I,Df as V,Ea as l,Ec as me,Fa as de,Fd as J,G as ne,Gb as zt,H as Dt,Hb as gt,I as Q,Ib as N,J as oe,Ja as ue,K as ft,Ka as W,Kb as M,Kd as P,La as Y,Lb as R,Ld as g,Mb as kt,Md as Te,Na as m,Nb as Z,Nc as ge,Ne as dt,Ob as st,Pb as U,Pc as _t,Qa as K,Qb as D,Qd as Oe,Rb as w,Re as we,Sa as ot,Sb as q,Ta as ce,Tc as Ct,Td as f,Ue as Fe,V as ht,Va as St,Vd as Me,W as mt,Xd as xt,_e as Ee,a as pt,af as ze,b as Kt,bc as c,cb as p,cc as B,cd as _e,dc as he,ea as re,eb as pe,ec as lt,ed as Ce,fb as rt,fd as ye,fe as F,g as Zt,ha as ae,i as qt,ia as wt,id as yt,ie as Pe,jc as $,jd as xe,je as Ie,jf as ke,kb as fe,kc as j,ke as tt,lb as H,le as bt,m as It,mb as h,n as Jt,nb as at,od as X,oe as At,pa as se,qa as Ft,qf as Ae,r as te,ra as S,rb as C,sb as _,t as ee,ta as L,tb as d,ub as k,v as ie,vb as x,wa as r,ya as Et,yc as vt,yd as be,ye as De,za as le}from"./chunk-NEAIWFFQ.js";var Ti={appearance:"link",pseudo:!1},Ye=P(Ti);var Oi=(()=>{let t=class t{};t.\u0275fac=function(o){return new(o||t)},t.\u0275cmp=y({type:t,selectors:[["ng-component"]],hostAttrs:[1,"tui-link"],standalone:!0,features:[B],decls:0,vars:0,template:function(o,n){},styles:[`[tuiLink]{--tui-text-tertiary: var(--tui-text-secondary);padding:0;background:transparent;border:none;cursor:pointer;font:inherit;color:inherit;-webkit-text-decoration:none dashed currentColor;text-decoration:none dashed currentColor;text-underline-offset:.2em;text-decoration-thickness:.7px;text-decoration-color:color-mix(in lch,currentColor,transparent)}[tuiLink]:hover{--tui-text-secondary: var(--tui-text-primary)}[tuiLink]:before{margin-inline-end:.25rem}[tuiLink]:after{margin-inline-start:.25rem}[tuiLink][tuiIcons]:before,[tuiLink][tuiIcons]:after{content:"\\2060";padding:calc(var(--tui-icon-size, 1rem) / 2);vertical-align:super;font-size:0;line-height:0}[tuiLink]:focus-visible:not([data-focus=false]){outline:none;background:var(--tui-service-selection-background);background:color-mix(in lch,currentColor 12%,transparent)}[tuiLink][data-focus=true]{outline:none;background:var(--tui-service-selection-background);background:color-mix(in lch,currentColor 12%,transparent)} `],encapsulation:2,changeDetection:0});let i=t;return i})(),kn=(()=>{let t=class t{constructor(){this.nothing=xt(Oi),this.pseudo=r(Ye).pseudo}};t.\u0275fac=function(o){return new(o||t)},t.\u0275dir=l({type:t,selectors:[["a","tuiLink",""],["button","tuiLink",""]],hostAttrs:["tuiLink",""],hostVars:2,hostBindings:function(o,n){o&2&&k("text-decoration-line",n.pseudo?"underline":null)},inputs:{pseudo:"pseudo"},standalone:!0,features:[c([Ie(Ye)]),at([bt,Le])]});let i=t;return i})();var Mi=(()=>{let t=class t{};t.\u0275fac=function(o){return new(o||t)},t.\u0275cmp=y({type:t,selectors:[["ng-component"]],hostAttrs:[1,"tui-label"],standalone:!0,features:[B],decls:0,vars:0,template:function(o,n){},styles:[`[tuiLabel]{display:flex;gap:.25rem;flex-direction:column;font:var(--tui-font-text-s);color:var(--tui-text-primary)}[tuiLabel]:not([data-orientation=vertical]){flex-direction:row;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;font:var(--tui-font-text-m)}[tuiLabel]:has(tui-textfield),[tuiLabel]:has(tui-primitive-textfield),[tuiLabel]:has(tui-textarea){flex-direction:column!important;width:auto!important;font:var(--tui-font-text-s)!important}[tuiLabel] input[type=checkbox],[tuiLabel] input[type=radio]{margin-inline-end:.5rem}[tuiLabel] input[type=checkbox][data-size=s],[tuiLabel] input[type=radio][data-size=s]{margin-inline-end:.25rem;margin-top:.125rem}[tuiLabel] small{font:var(--tui-font-text-s)}[tuiLabel] [tuiTitle]{margin-top:.125rem}[tuiLabel] [tuiSubtitle]{color:var(--tui-text-secondary)} `],encapsulation:2,changeDetection:0});let i=t;return i})(),Xn=(()=>{let t=class t{constructor(){this.el=F(),this.nothing=xt(Mi),this.parent=r(se(()=>Lt),{optional:!0})}};t.\u0275fac=function(o){return new(o||t)},t.\u0275dir=l({type:t,selectors:[["label","tuiLabel",""]],contentQueries:function(o,n,a){if(o&1&&st(a,Lt,5),o&2){let u;D(u=w())&&(n.textfield=u.first)}},hostVars:2,hostBindings:function(o,n){o&2&&_("for",n.el.htmlFor||(n.parent==null?null:n.parent.id))("data-orientation",n.textfield?"vertical":"horizontal")},standalone:!0});let i=t;return i})();var Ze=(()=>{let t=class t{constructor(){this.destroyRef=r(K),this.zone=r(ce),this.host=F(),this.tuiNativeValidator="Invalid"}validate(e){return this.control=e,Dt(0).pipe(ze(this.zone),Ee(this.destroyRef)).subscribe(()=>this.handleValidation()),null}handleValidation(){var e,o,n,a;(a=(n=this.el).setCustomValidity)==null||a.call(n,(e=this.control)!=null&&e.touched&&((o=this.control)!=null&&o.invalid)?this.tuiNativeValidator:"")}get el(){return this.host.querySelector("input,textarea,select")||this.host}};t.\u0275fac=function(o){return new(o||t)},t.\u0275dir=l({type:t,selectors:[["","tuiNativeValidator",""]],hostBindings:function(o,n){o&1&&M("blur",function(){return n.handleValidation()})},inputs:{tuiNativeValidator:"tuiNativeValidator"},standalone:!0,features:[c([f(ye,t,!0)])]});let i=t;return i})();var Ii=["type","checkbox","tuiCheckbox",""],Di={size:"m",appearance:i=>i.checked||i.indeterminate?"primary":"whiteblock",icons:{checked:"@tui.check",indeterminate:"@tui.minus"}},wi=P(Di);var ho=(()=>{let t=class t{constructor(){this.appearance=r(tt),this.options=r(wi),this.resolver=Ae(),this.destroyRef=r(K),this.el=F(),this.size=this.options.size,this.control=r(yt,{optional:!0,self:!0})}ngOnInit(){var e;(e=this.control)!=null&&e.valueChanges&&Fe(this.control).pipe(J(this.destroyRef)).subscribe(o=>{let n=this.control instanceof X&&o===null?this.control.model:o;this.el.indeterminate=n===null})}ngDoCheck(){this.appearance.tuiAppearance=this.options.appearance(this.el)}getIcon(e){let o=this.options.icons[e],n=Te(o)?o:o(this.size);return`url(${this.resolver(n)})`}};t.\u0275fac=function(o){return new(o||t)},t.\u0275cmp=y({type:t,selectors:[["input","type","checkbox","tuiCheckbox",""]],hostVars:8,hostBindings:function(o,n){o&2&&(N("disabled",!n.control||n.control.disabled),_("data-size",n.size),k("--t-checked-icon",n.getIcon("checked"))("--t-indeterminate-icon",n.getIcon("indeterminate")),x("_readonly",!n.control))},inputs:{size:"size"},standalone:!0,features:[at([bt,Ze]),B],attrs:Ii,decls:0,vars:0,template:function(o,n){},styles:[`[tuiCheckbox]{--t-size: 1.5rem;--t-radius: var(--tui-radius-s);width:var(--t-size);height:var(--t-size);border-radius:var(--t-radius);cursor:pointer;margin:0;flex-shrink:0}[tuiCheckbox]:before{position:absolute;top:0;left:0;width:100%;height:100%;content:"";background:currentColor;-webkit-mask:url('data:image/svg+xml,') center / 100%;mask:url('data:image/svg+xml,') center / 100%;transform:scale(0);transition:transform var(--tui-duration) ease-in-out,-webkit-mask 0s var(--tui-duration) ease-in-out;transition:transform var(--tui-duration) ease-in-out,mask 0s var(--tui-duration) ease-in-out;transition:transform var(--tui-duration) ease-in-out,mask 0s var(--tui-duration) ease-in-out,-webkit-mask 0s var(--tui-duration) ease-in-out}[tuiCheckbox]:disabled._readonly{opacity:1}[tuiCheckbox]:checked:before,[tuiCheckbox]:indeterminate:before{-webkit-mask-image:var(--t-checked-icon);mask-image:var(--t-checked-icon);transform:scale(1);transition:transform var(--tui-duration) ease-in-out,-webkit-mask 0s ease-in-out;transition:transform var(--tui-duration) ease-in-out,mask 0s ease-in-out;transition:transform var(--tui-duration) ease-in-out,mask 0s ease-in-out,-webkit-mask 0s ease-in-out}[tuiCheckbox]:indeterminate:before{-webkit-mask-image:var(--t-indeterminate-icon);mask-image:var(--t-indeterminate-icon)}[tuiCheckbox][data-size=s]{--t-size: 1rem;--t-radius: var(--tui-radius-xs)} `],encapsulation:2,changeDetection:0});let i=t;return i})();var Ei="tui_",ut=(()=>{let t=class t{generate(){return`${Ei}${t.autoId++}${Date.now()}`}};t.autoId=0,t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=Ft({token:t,factory:t.\u0275fac,providedIn:"root"});let i=t;return i})(),Si=(()=>{let t=class t{constructor(e,o,n={}){this.options=n,this.id=r(ut),this.component=new Re(o),this.items$=r(e)}open(e,o={}){return new qt(n=>{let a=Kt(pt(pt({},this.options),o),{content:e,$implicit:n,component:this.component,createdAt:Date.now(),id:this.id.generate(),completeWith:u=>{n.next(u),n.complete()}});return this.items$.next([...this.items$.value,a]),()=>{this.items$.next(this.items$.value.filter(u=>u!==a))}})}};t.\u0275fac=function(o){pe()},t.\u0275prov=Ft({token:t,factory:t.\u0275fac});let i=t;return i})();function Po(i){return f(Si,i)}var Io=g(()=>{var i;return((i=r(ve).getTag('name="theme-color"'))==null?void 0:i.content)??""});var Vt={appearance:"textfield",size:"l",cleaner:!0},Ot=P({appearance:H(Vt.appearance),size:H(Vt.size),cleaner:H(Vt.cleaner)});var Qo=(()=>{let t=class t{constructor(){this.options=r(Ot,{skipSelf:!0}),this.appearance=H(this.options.appearance()),this.size=H(this.options.size()),this.cleaner=H(this.options.cleaner())}set tuiTextfieldAppearance(e){this.appearance.set(e)}set tuiTextfieldSize(e){this.size.set(e)}set tuiTextfieldCleaner(e){this.cleaner.set(e)}};t.\u0275fac=function(o){return new(o||t)},t.\u0275dir=l({type:t,selectors:[["","tuiTextfieldAppearance",""],["","tuiTextfieldSize",""],["","tuiTextfieldCleaner",""]],inputs:{tuiTextfieldAppearance:"tuiTextfieldAppearance",tuiTextfieldSize:"tuiTextfieldSize",tuiTextfieldCleaner:"tuiTextfieldCleaner"},standalone:!0,features:[c([f(Ot,t)])]});let i=t;return i})();var tr={DMY:"dd/mm/yyyy",MDY:"mm/dd/yyyy",YMD:"yyyy/mm/dd"};var Ht=1.5,zi=2.5;function qe(i,t=!1,s=!1,e=!1,o="m"){let n=o==="s"?0:.25,a=0;return i&&(a+=Ht+n),t&&(a+=Ht+n),s&&(a+=Ht+n),e&&(a+=zi+n),a}var ki=`?v=${De}`,Ai=i=>i.includes(".svg#")?i:`#${i}`;function er(i){let t=i.endsWith("/")?i:`${i}/`;return s=>s.startsWith("tuiIcon")?`${t}${s}.svg${ki}#${s}`:Ai(s)}var Li=/^((?!chrome|android).)*safari/i;function Je(i){return Ve(i)||Li.test(i.userAgent.toLowerCase())}function ir(i){let t=i.trim();return t.startsWith("<")&&t.endsWith(">")}var Nt='width="',Ut='height="',Bt="")));if(!(e!=null&&e.includes(Nt))||!e.includes(Ut))return`${s.replace(Bt,``;let o=e.indexOf(Nt),n=e.indexOf(Ut),a=o+Nt.length,u=n+Ut.length,O=e.slice(a,e.indexOf('"',a)),G=e.slice(u,e.indexOf('"',u));if(!G||!O||O.includes("%")||G.includes("%")||O.includes("em")||G.includes("em"))return s.replace(Bt,`${s}`}var or=Be({limitWidth:"fixed",align:"right"});var ur=(()=>{let t=class t{constructor(){this.months$=r(ke)}transform({month:e}){return this.months$.pipe(A(o=>o[e]))}};t.\u0275fac=function(o){return new(o||t)},t.\u0275pipe=de({name:"tuiMonth",type:t,pure:!0,standalone:!0});let i=t;return i})();var _r=P({AD:"+376###-###",AE:"+971-##-###-####",AF:"+93##-###-####",AG:"+1(268) ###-####",AI:"+1(264) ###-####",AL:"+355(###) ###-###",AM:"+374##-###-###",AO:"+244(###) ###-###",AR:"+54(###) ####-####",AT:"+43(###) ###-####",AU:"+61#-####-####",AW:"+297###-####",AZ:"+994##-###-##-##",BA:"+387 ###-####-##",BB:"+1(246) ###-####",BD:"+880##-###-###",BE:"+32(###) ###-###",BF:"+226##-##-####",BG:"+359(###) ###-###",BH:"+973####-####",BI:"+257##-##-####",BJ:"+229##-##-####",BL:"+590 ## ## ## ## ##",BM:"+1(441) ###-####",BN:"+673###-####",BO:"+591#-###-####",BQ:"+599-###-####",BR:"+55(##) ####-####",BS:"+1(242) ###-####",BT:"+975#-###-###",BW:"+267##-###-###",BY:"+375(##) ###-##-##",BZ:"+501###-####",CA:"+1(###) ###-####",CD:"+243(###) ###-###",CF:"+236-##-##-####",CG:"+242##-###-####",CH:"+41##-###-####",CI:"+225##-##-###-###",CL:"+56#-####-####",CM:"+237#####-####",CN:"+86(###) ####-####",CO:"+57(###) ###-####",CR:"+506####-####",CU:"+53#-###-####",CV:"+238(###) ##-##",CW:"+5999-###-####",CY:"+357##-###-###",CZ:"+420(###) ###-###",DE:"+49(###) ###-###-##",DJ:"+253##-##-##-##",DK:"+45##-##-##-##",DM:"+1(767) ###-####",DO:"+1(###) ###-####",DZ:"+213##-###-####",EC:"+593##-###-####",EE:"+372####-####",EG:"+20(###) ###-####",ER:"+291#-###-###",ES:"+34(###) ###-###",ET:"+251##-###-####",FI:"+358(###) ###-##-##",FJ:"+679##-#####",FK:"+500#####",FM:"+691###-####",FR:"+33 ## ## ## ## ##",GA:"+241##-##-##-##",GB:"+44##-####-####",GD:"+1(473) ###-####",GE:"+995(###) ###-###",GF:"+594 ## ## ## ## ##",GH:"+233(###) ###-###",GI:"+350###-#####",GL:"+299##-##-##",GM:"+220(###) ##-##",GN:"+224##-###-###",GP:"+590 ## ## ## ## ##",GQ:"+240##-###-####",GR:"+30(###) ###-####",GT:"+502#-###-####",GW:"+245#-######",GY:"+592###-####",HK:"+852####-####",HN:"+504####-####",HR:"+385##-###-####",HT:"+509##-##-####",HU:"+36(###) ###-###",ID:"+62(###) ###-##-###",IE:"+353(###) ###-###",IL:"+972##-###-####",IN:"+91(####) ###-###",IQ:"+964(###) ###-####",IR:"+98(###) ###-####",IS:"+354###-####",IT:"+39(###) ####-###",JM:"+1(876) ###-####",JO:"+962#-####-####",JP:"+81-##-####-####",KE:"+254###-######",KG:"+996(###) ###-###",KH:"+855##-###-###",KM:"+269##-#####",KN:"+1(869) ###-####",KP:"+850####-#############",KR:"+82##-###-####",KW:"+965####-####",KY:"+1(345) ###-####",KZ:"+7(###) ###-##-##",LA:"+856##-##-###-###",LB:"+961##-###-###",LC:"+1(758) ###-####",LI:"+423(###) ###-####",LK:"+94##-###-####",LR:"+231##-###-###",LS:"+266#-###-####",LT:"+370(###) ##-###",LU:"+352(###) ###-###",LV:"+371##-###-###",LY:"+218##-###-####",MA:"+212##-####-###",MC:"+377###-###-###",MD:"+373####-####",ME:"+382##-###-###",MF:"+590 ## ## ## ## ##",MG:"+261##-##-#####",MK:"+389##-###-###",ML:"+223##-##-####",MM:"+95##-###-###",MN:"+976##-##-####",MO:"+853####-####",MQ:"+596 ## ## ## ## ##",MR:"+222##-##-####",MS:"+1(664) ###-####",MT:"+356####-####",MU:"+230####-####",MV:"+960###-####",MW:"+265#-####-####",MX:"+52(###) ###-####",MY:"+60(###) ###-###",MZ:"+258##-###-###",NA:"+264##-###-####",NC:"+687 ### ###",NE:"+227##-##-####",NG:"+234(###) ###-####",NI:"+505####-####",NL:"+31##-###-####",NO:"+47(###) ##-###",NP:"+977##-###-###",NZ:"+64(###) ###-####",OM:"+968##-###-###",PA:"+507###-####",PE:"+51(###) ###-###",PF:"+689 ## ## ## ##",PG:"+675(###) ##-###",PH:"+63(###) ###-####",PK:"+92(###) ###-####",PL:"+48(###) ###-###",PT:"+351##-###-####",PW:"+680###-####",PY:"+595(###) ###-###",QA:"+974####-####",RE:"+262 ## ## ## ## ##",RO:"+40##-###-####",RS:"+381##-###-####",RU:"+7### ###-##-##",RW:"+250(###) ###-###",SA:"+966#-####-####",SB:"+677###-####",SC:"+248#-###-###",SD:"+249##-###-####",SE:"+46##-###-####",SG:"+65####-####",SH:"+290####",SI:"+386##-###-###",SK:"+421(###) ###-###",SL:"+232##-######",SM:"+378####-######",SN:"+221##-###-####",SO:"+252##-###-###",SR:"+597###-####",ST:"+239##-#####",SV:"+503##-##-####",SX:"+1(721) ###-####",SY:"+963##-####-###",SZ:"+268##-##-####",TC:"+1(649) ###-####",TD:"+235##-##-##-##",TG:"+228##-###-###",TH:"+66##-###-####",TJ:"+992##-###-####",TL:"+670###-#####",TM:"+993#-###-####",TN:"+216##-###-###",TO:"+676#####",TR:"+90(###) ###-####",TT:"+1(868) ###-####",TW:"+886#-####-####",TZ:"+255##-###-####",UA:"+380(##) ###-##-##",UG:"+256(###) ###-###",US:"+1(###) ###-####",UY:"+598#-###-##-##",UZ:"+998##-###-####",VC:"+1(784) ###-####",VE:"+58(###) ###-####",VG:"+1(284)###-####",VN:"+84(###) ####-###",VU:"+678##-#####",WS:"+685##-####",XK:"+383##-###-###",YE:"+967###-###-###",YT:"+262 ## ## ## ## ##",ZA:"+27##-###-####",ZM:"+260##-###-####",ZW:"+263#-######",VA:"+39 #### ###-####",WF:"+681 ## ##-##",VI:"+1(340) ###-####",JE:"+44(####) ######",AC:"+247###-####",TV:"+686###-####",TK:"+690###-####",TA:"+290###-####",SS:"+211### ###-###",SJ:"+47 ## ##-##-##",PS:"+970 #### ###-###",PR:"+1(###) ###-####",PM:"+508 ### ##-##-##",NU:"+683 ###-####",NR:"+674 ###-####",NF:"+672##-####",MP:"+1(670) ###-####",MH:"+692 ###-####",KI:"+686 ####-####",IO:"+246 ### ####",IM:"+44(####) ######",GU:"+1(###) ###-###",GG:"+44(###) ###-####",FO:"+298 ######",EH:"+212 #### #####",CX:"+61 # ####-####",CK:"+682 ## ###",CC:"+61 # ####-####",AX:"+358 ## ###-####",AS:"+1(###) ###-####"}),$t=new L("[TUI_FOCUSABLE_ITEM_ACCESSOR]");function ti(i){return f($t,i)}var ei=new L("[TUI_FONTS_READY]",{factory:()=>{var i;return ie(((i=r(me).fonts)==null?void 0:i.ready)||te).pipe(re({bufferSize:1,refCount:!1}))}}),Cr=P({}),yr=g(()=>Je(r(we))),xr=g(()=>!!r(dt).chrome),br=g(()=>{var i;return typeof((i=r(dt))==null?void 0:i.mozCancelFullScreen)<"u"}),Tr=g(()=>r(dt).location.host.endsWith("stackblitz.io")),Or=new L("[TUI_MONTH_FORMATTER]");var Mr=new L("[TUI_SANITIZER]"),ii=P("textfield"),ct=new L("[TUI_TEXTFIELD_HOST]");function ni(i){return f(ct,i)}var Pr=g(()=>r(dt).matchMedia("(any-pointer: coarse)").matches),oi=new L("[TUI_VALUE_ACCESSOR]");var Ri="tui_interactive_",jt=(()=>{let t=class t{constructor(){this.focusVisible=!1,this.pseudoHover=null,this.pseudoActive=null,this.pseudoFocus=null,this.focusable=!0,this.nativeId="",this.focusedChange=new ot,this.focusVisibleChange=new ot,this.autoIdString=`${Ri}${t.autoId++}${Date.now()}`}get computedDisabled(){return this.disabled}get computedFocused(){return!this.computedDisabled&&(this.pseudoFocus??this.focused)}get computedFocusVisible(){return!this.computedDisabled&&(this.pseudoFocus??this.focusVisible)}get computedFocusable(){return!this.computedDisabled&&(this.focusable||this.focused)}get id(){return this.nativeId||this.autoIdString}updateFocused(e){this.focusedChange.emit(e)}updateFocusVisible(e){this.focusVisible!==e&&(this.focusVisible=e,this.focusVisibleChange.emit(e))}};t.autoId=0,t.\u0275fac=function(o){return new(o||t)},t.\u0275dir=l({type:t,hostVars:7,hostBindings:function(o,n){o&2&&(_("data-focused",n.pseudoFocus),x("_disabled",n.computedDisabled)("_focused",n.computedFocused)("_focus-visible",n.computedFocusVisible))},inputs:{pseudoHover:"pseudoHover",pseudoActive:"pseudoActive",pseudoFocus:"pseudoFocus",focusable:"focusable",nativeId:"nativeId"},outputs:{focusedChange:"focusedChange",focusVisibleChange:"focusVisibleChange"}});let i=t;return i})(),Mt=(()=>{let t=class t extends jt{constructor(){super(),this.ngControl=r(yt,{optional:!0}),this.refresh$=new It,this.onTouched=At,this.onChange=At,this.fallbackValue=this.getFallbackValue(),this.destroyRef=r(K),this.cdr=r(vt),this.valueTransformer=r(Ue,{optional:!0}),this.readOnly=!1,this.pseudoInvalid=null,this.ngControl&&(this.ngControl.valueAccessor=this)}get computedInvalid(){return this.interactive&&(this.pseudoInvalid!==null?this.pseudoInvalid:this.touched&&this.invalid)}get value(){return this.previousInternalValue??this.fallbackValue}set value(e){this.updateValue(e)}get safeCurrentValue(){return this.rawValue??this.fallbackValue}get invalid(){return this.safeNgControlData(({invalid:e})=>e,!1)}get valid(){return this.safeNgControlData(({valid:e})=>e,!1)}get touched(){return this.safeNgControlData(({touched:e})=>e,!1)}get disabled(){return this.safeNgControlData(({disabled:e})=>e,!1)}get interactive(){return!this.readOnly&&!this.computedDisabled}get control(){return this.safeNgControlData(({control:e})=>e,null)}get computedName(){var e;return((e=this.controlName)==null?void 0:e.toString())??null}get controlName(){var e,o;return((o=(e=this.ngControl)==null?void 0:e.name)==null?void 0:o.toString())??null}ngOnInit(){this.refresh$.pipe(ht(0),ae(null),A(()=>{var e;return(e=this.ngControl)==null?void 0:e.control}),ft(Oe),mt(),wt(e=>Q(e.valueChanges,e.statusChanges)),J(this.destroyRef)).subscribe(()=>{this.refreshLocalValue(this.safeCurrentValue)})}checkControlUpdate(){this.cdr.markForCheck()}registerOnChange(e){this.onChange=o=>{e(this.toControlValue(o))},this.refresh$.next()}registerOnTouched(e){this.onTouched=e}setDisabledState(){this.checkControlUpdate()}writeValue(e){let o=this.ngControl instanceof X&&this.previousInternalValue===void 0?this.ngControl.model:e;this.refreshLocalValue(this.fromControlValue(o))}updateFocused(e){e||this.controlMarkAsTouched(),super.updateFocused(e)}updateValue(e){this.disabled||this.valueIdenticalComparator(this.value,e)||(this.previousInternalValue=e,this.controlSetValue(e))}valueIdenticalComparator(e,o){return e===o}get rawValue(){let{ngControl:e}=this;if(e===null)return;let o=e instanceof X&&this.previousInternalValue===void 0?e.viewModel:e.value;return this.fromControlValue(o)}safeNgControlData(e,o){return(this.ngControl&&e(this.ngControl))??o}controlMarkAsTouched(){this.onTouched(),this.checkControlUpdate()}controlSetValue(e){this.onChange(e),this.checkControlUpdate()}refreshLocalValue(e){this.previousInternalValue=e,this.checkControlUpdate()}fromControlValue(e){return this.valueTransformer?this.valueTransformer.fromControlValue(e):e}toControlValue(e){return this.valueTransformer?this.valueTransformer.toControlValue(e):e}};t.\u0275fac=function(o){return new(o||t)},t.\u0275dir=l({type:t,hostVars:4,hostBindings:function(o,n){o&2&&x("_readonly",n.readOnly)("_invalid",n.computedInvalid)},inputs:{readOnly:"readOnly",pseudoInvalid:"pseudoInvalid"},features:[h]});let i=t;return i})();function jr(i){return f(Mt,i)}var Xr=(()=>{let t=class t{constructor(){this.idService=r(ut),this.datalist=null,this.el=F(),this.host=r(ct),this.control=r(Mt),this.itemsHandlers=r(We),this.disabledItemHandler=null,this.placeholder=""}get id(){return this.el.id||this.idService.generate()}get emptyOption(){return!!this.placeholder&&!this.control.value}};t.\u0275fac=function(o){return new(o||t)},t.\u0275dir=l({type:t,viewQuery:function(o,n){if(o&1&&U($e,7,rt),o&2){let a;D(a=w())&&(n.datalist=a.first)}},hostVars:1,hostBindings:function(o,n){o&2&&N("id",n.id)},inputs:{disabledItemHandler:"disabledItemHandler",placeholder:"placeholder"}});let i=t;return i})(),ri=(()=>{let t=class t{constructor(){this.host=r(Mt,{optional:!0})}get readOnly(){return this.host.readOnly}get disabled(){return this.host.computedDisabled}get invalid(){return this.host.computedInvalid}get focusable(){return this.host.computedFocusable}get inputMode(){return"text"}get value(){var e;return((e=this.host.value)==null?void 0:e.toString())||""}process(e){}};t.\u0275fac=function(o){return new(o||t)},t.\u0275dir=l({type:t});let i=t;return i})(),E=(()=>{let t=class t{constructor(){this.change$=new It}ngOnChanges(){this.change$.next()}};t.\u0275fac=function(o){return new(o||t)},t.\u0275dir=l({type:t,features:[ue]});let i=t;return i})();var Gr=(()=>{let t=class t extends Mt{getFallbackValue(){return null}};t.\u0275fac=(()=>{let e;return function(n){return(e||(e=m(t)))(n||t)}})(),t.\u0275dir=l({type:t,features:[h]});let i=t;return i})();var Xt=class{constructor(t,s,e,o,n,a,u,O,G,it,nt,xi,bi){this.change$=t,this.options=s,this.legacyAppearance=e,this.appearanceDirective=o,this.cleanerDirective=n,this.customContentDirective=a,this.iconDirective=u,this.iconLeftDirective=O,this.labelOutsideDirective=G,this.sizeDirective=it,this.prefixDirective=nt,this.postfixDirective=xi,this.fillerDirective=bi}get appearance(){return this.appearanceDirective.appearance||this.legacyAppearance}get cleaner(){return this.cleanerDirective.cleaner}get customContent(){return this.customContentDirective.customContent||""}get icon(){return this.iconDirective.icon}get iconStart(){return this.iconLeftDirective.iconStart}get labelOutside(){return this.labelOutsideDirective.labelOutside}get size(){return this.sizeDirective.size}get prefix(){return this.prefixDirective.prefix}get postfix(){return this.postfixDirective.postfix}get filler(){return this.fillerDirective.filler}},ai={iconCleaner:"@tui.x",hintOnDisabled:!1},Gt=P(ai);var si=g(()=>new Vi),Vi=(()=>{let t=class t extends E{constructor(){super(...arguments),this.appearance=""}};t.\u0275fac=(()=>{let e;return function(n){return(e||(e=m(t)))(n||t)}})(),t.\u0275dir=l({type:t,selectors:[["","tuiTextfieldAppearance",""]],inputs:{appearance:[0,"tuiTextfieldAppearance","appearance"]},features:[c([f(si,t)]),h]});let i=t;return i})(),li=g(()=>new Hi),Hi=(()=>{let t=class t extends E{constructor(){super(...arguments),this.cleaner=!1}};t.\u0275fac=(()=>{let e;return function(n){return(e||(e=m(t)))(n||t)}})(),t.\u0275dir=l({type:t,selectors:[["","tuiTextfieldCleaner",""]],inputs:{cleaner:[0,"tuiTextfieldCleaner","cleaner"]},features:[c([f(li,t)]),h]});let i=t;return i})(),di=g(()=>new Ni),Ni=(()=>{let t=class t extends E{};t.\u0275fac=(()=>{let e;return function(n){return(e||(e=m(t)))(n||t)}})(),t.\u0275dir=l({type:t,selectors:[["","tuiTextfieldCustomContent",""]],inputs:{customContent:[0,"tuiTextfieldCustomContent","customContent"]},features:[c([f(di,t)]),h]});let i=t;return i})(),ui=g(()=>new Ui),Ui=(()=>{let t=class t extends E{constructor(){super(...arguments),this.filler=""}};t.\u0275fac=(()=>{let e;return function(n){return(e||(e=m(t)))(n||t)}})(),t.\u0275dir=l({type:t,selectors:[["","tuiTextfieldFiller",""]],inputs:{filler:[0,"tuiTextfieldFiller","filler"]},features:[c([f(ui,t)]),h]});let i=t;return i})(),ci=g(()=>new Bi),Bi=(()=>{let t=class t extends E{};t.\u0275fac=(()=>{let e;return function(n){return(e||(e=m(t)))(n||t)}})(),t.\u0275dir=l({type:t,selectors:[["","tuiTextfieldIcon",""]],inputs:{icon:[0,"tuiTextfieldIcon","icon"]},features:[c([f(ci,t)]),h]});let i=t;return i})(),pi=g(()=>new $i),$i=(()=>{let t=class t extends E{};t.\u0275fac=(()=>{let e;return function(n){return(e||(e=m(t)))(n||t)}})(),t.\u0275dir=l({type:t,selectors:[["","tuiTextfieldIconLeft",""]],inputs:{iconStart:[0,"tuiTextfieldIconLeft","iconStart"]},features:[c([f(pi,t)]),h]});let i=t;return i})(),fi=g(()=>new ji),ji=(()=>{let t=class t extends E{constructor(){super(...arguments),this.labelOutside=!1}};t.\u0275fac=(()=>{let e;return function(n){return(e||(e=m(t)))(n||t)}})(),t.\u0275dir=l({type:t,selectors:[["","tuiTextfieldLabelOutside",""]],inputs:{labelOutside:[0,"tuiTextfieldLabelOutside","labelOutside"]},features:[c([f(fi,t)]),h]});let i=t;return i})(),hi=g(()=>new Xi),Xi=(()=>{let t=class t extends E{constructor(){super(...arguments),this.postfix=""}};t.\u0275fac=(()=>{let e;return function(n){return(e||(e=m(t)))(n||t)}})(),t.\u0275dir=l({type:t,selectors:[["","tuiTextfieldPostfix",""]],inputs:{postfix:[0,"tuiTextfieldPostfix","postfix"]},features:[c([f(hi,t)]),h]});let i=t;return i})(),mi=g(()=>new Gi),Gi=(()=>{let t=class t extends E{constructor(){super(...arguments),this.prefix=""}};t.\u0275fac=(()=>{let e;return function(n){return(e||(e=m(t)))(n||t)}})(),t.\u0275dir=l({type:t,selectors:[["","tuiTextfieldPrefix",""]],inputs:{prefix:[0,"tuiTextfieldPrefix","prefix"]},features:[c([f(mi,t)]),h]});let i=t;return i})(),gi=g(()=>new Qi),Qi=(()=>{let t=class t extends E{constructor(){super(...arguments),this.size="l"}};t.\u0275fac=(()=>{let e;return function(n){return(e||(e=m(t)))(n||t)}})(),t.\u0275dir=l({type:t,selectors:[["","tuiTextfieldSize",""]],inputs:{size:[0,"tuiTextfieldSize","size"]},features:[c([f(gi,t)]),h]});let i=t;return i})(),oa=(()=>{let t=class t{};t.\u0275fac=function(o){return new(o||t)},t.\u0275mod=z({type:t}),t.\u0275inj=S({});let i=t;return i})(),Pt=new L("[TUI_TEXTFIELD_WATCHED_CONTROLLER]"),Qt=[{provide:Pt,deps:[vt,Gt,ii,si,li,di,ci,pi,fi,gi,mi,hi,ui],useFactory:(i,t,s,...e)=>{let o=Q(...e.map(({change$:n})=>n||oe)).pipe(Se(i),J());return o.subscribe(),new Xt(o,t,s,...e)}}];var Wi={provide:oi,deps:[[new Et,new le,_e]],useFactory:Zt},pa=(()=>{let t=class t{};t.\u0275fac=function(o){return new(o||t)},t.\u0275dir=l({type:t,selectors:[["","tuiValueAccessor",""]],features:[c([Wi])]});let i=t;return i})(),fa=(()=>{let t=class t{};t.\u0275fac=function(o){return new(o||t)},t.\u0275mod=z({type:t}),t.\u0275inj=S({});let i=t;return i})();var vi=(()=>{let t=class t{constructor(){this.disabled=!1,this.readOnly=!1,this.hover=null,this.active=null,this.focus=!1,this.invalid=!1,this.appearance=""}get computedInvalid(){return!this.disabled&&!this.readOnly&&this.invalid}get computedFocused(){return this.focus&&!this.disabled}get interactiveState(){return this.disabled?"disabled":this.readOnly?"readonly":this.active?"active":this.hover?"hover":null}get noHover(){return this.readOnly||this.hover===!1}get noActive(){return this.readOnly||this.active===!1}};t.\u0275fac=function(o){return new(o||t)},t.\u0275dir=l({type:t,selectors:[["","tuiWrapper",""]],hostVars:10,hostBindings:function(o,n){o&2&&(_("data-appearance",n.appearance)("data-state",n.interactiveState),x("_invalid",n.computedInvalid)("_focused",n.computedFocused)("_no-hover",n.noHover)("_no-active",n.noActive))},inputs:{disabled:"disabled",readOnly:"readOnly",hover:"hover",active:"active",focus:"focus",invalid:"invalid",appearance:"appearance"}});let i=t;return i})(),_i=(()=>{let t=class t{};t.\u0275fac=function(o){return new(o||t)},t.\u0275mod=z({type:t}),t.\u0275inj=S({});let i=t;return i})();function Ji(i,t){if(i&1&&I(0,"tui-icon",3),i&2){let s=t.polymorpheusOutlet;d("icon",s)}}var Ci=(()=>{let t=class t extends Tt{constructor(){super(...arguments),this.isMobile=r(Ne),this.describeId=""}get computedAppearance(){return this.appearance||""}stopOnMobile(e){var o;this.isMobile&&(e.preventDefault(),e.stopPropagation()),(o=this.driver$)==null||o.toggle()}};t.\u0275fac=(()=>{let e;return function(n){return(e||(e=m(t)))(n||t)}})(),t.\u0275cmp=y({type:t,selectors:[["tui-tooltip"]],viewQuery:function(o,n){if(o&1&&U(je,5),o&2){let a;D(a=w())&&(n.driver$=a.first)}},hostVars:1,hostBindings:function(o,n){o&1&&M("mousedown",function(u){return n.stopOnMobile(u)}),o&2&&_("data-appearance",n.computedAppearance)},inputs:{content:"content",direction:"direction",appearance:"appearance",showDelay:"showDelay",hideDelay:"hideDelay",describeId:"describeId",context:"context"},features:[h],decls:4,vars:11,consts:[["driver","tuiHintHover"],["automation-id","tui-tooltip__icon","tuiAppearance","icon",1,"t-tooltip-icon",3,"tuiAppearanceState","tuiHint","tuiHintAppearance","tuiHintContext","tuiHintDescribe","tuiHintDirection","tuiHintHideDelay","tuiHintShowDelay"],["class","t-icon",3,"icon",4,"polymorpheusOutlet"],[1,"t-icon",3,"icon"]],template:function(o,n){if(o&1&&(v(0,"span",1,0),$(2,"async"),C(3,Ji,1,1,"tui-icon",2),b()),o&2){let a=q(1);d("tuiAppearanceState",j(2,9,a)?"hover":null)("tuiHint",n.content)("tuiHintAppearance",n.computedAppearance)("tuiHintContext",n.context)("tuiHintDescribe",n.describeId)("tuiHintDirection",n.direction)("tuiHintHideDelay",n.hideDelay)("tuiHintShowDelay",n.showDelay),p(3),d("polymorpheusOutlet",n.icon)}},dependencies:[V,et,tt,Xe,Qe,_t],styles:["[_nghost-%COMP%]{transition-property:color;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;position:relative;display:inline-block;width:1.5rem;height:1.5rem;vertical-align:middle;font-size:0;line-height:0;pointer-events:auto;cursor:pointer;color:var(--tui-text-primary)}[data-appearance=error][_nghost-%COMP%]{color:var(--tui-text-negative)}.t-tooltip-icon[_ngcontent-%COMP%]{display:inline-block;width:100%;height:100%}.t-icon[_ngcontent-%COMP%]{border:.25rem solid transparent}"],changeDetection:0});let i=t;return i})(),yi=(()=>{let t=class t{};t.\u0275fac=function(o){return new(o||t)},t.\u0275mod=z({type:t}),t.\u0275inj=S({imports:[Ct,V,Ge]});let i=t;return i})();var en=["pre"],nn=["focusableElement"],on=[[["input"]],[["select"]],[["tuiContent"]],"*"],rn=["input","select","tuiContent","*"],an=()=>({standalone:!0}),Wt=i=>({$implicit:i});function sn(i,t){i&1&&zt(0)}function ln(i,t){i&1&&zt(0)}function dn(i,t){i&1&&(v(0,"div",17),Z(1,2),b())}function un(i,t){if(i&1&&I(0,"tui-icon",20),i&2){let s=t.polymorpheusOutlet;d("icon",s.toString())}}function cn(i,t){if(i&1&&(v(0,"div",18),C(1,un,1,1,"tui-icon",19),b()),i&2){let s=R();p(),d("polymorpheusOutlet",s.iconLeftContent)("polymorpheusOutletContext",lt(2,Wt,s.size))}}function pn(i,t){if(i&1&&(v(0,"label",21),Z(1,3),b()),i&2){let s=R();x("t-placeholder_raised",s.placeholderRaised),d("for",s.computedId)}}function fn(i,t){if(i&1&&I(0,"tui-icon",24),i&2){let s=t.polymorpheusOutlet;d("icon",s)}}function hn(i,t){if(i&1&&(v(0,"div",22),C(1,fn,1,1,"tui-icon",23),b()),i&2){let s=R();p(),d("polymorpheusOutlet",s.controller.customContent)}}function mn(i,t){if(i&1&&I(0,"tui-icon",27),i&2){let s=t.polymorpheusOutlet;k("border","0.25rem solid transparent"),d("icon",s.toString())}}function gn(i,t){if(i&1){let s=gt();v(0,"span",25),M("click.stop",function(){W(s);let o=R();return Y(o.clear())}),C(1,mn,1,3,"tui-icon",26),b()}if(i&2){let s=R();p(),d("polymorpheusOutlet",s.iconCleaner||s.controller.options.iconCleaner)("polymorpheusOutletContext",lt(2,Wt,s.size))}}function vn(i,t){if(i&1&&I(0,"tui-tooltip",28),i&2){let s=R();d("content",s.hintOptions==null?null:s.hintOptions.content)("describeId",s.computedId)}}function _n(i,t){if(i&1&&I(0,"tui-icon",20),i&2){let s=t.polymorpheusOutlet;d("icon",s.toString())}}function Cn(i,t){if(i&1&&(v(0,"div",29),C(1,_n,1,1,"tui-icon",19),b()),i&2){let s=R();p(),d("polymorpheusOutlet",s.iconContent)("polymorpheusOutletContext",lt(2,Wt,s.size))}}var yn=["tuiTextfieldLegacy",""],xn=(()=>{let t=class t{constructor(){this.textfield=r($t),this.fontsReady$=r(ei),this.prefix$=new Jt(""),this.pre$=Q(this.fontsReady$,this.prefix$).pipe(ht(0),ft(()=>{var e;return!!((e=this.pre)!=null&&e.nativeElement.isConnected)}),A(()=>{var e;return((e=this.pre)==null?void 0:e.nativeElement.offsetWidth)||0}),mt())}ngDoCheck(){this.prefix$.next(this.prefix)}get isContextTable(){return this.textfield.appearance==="table"}get filler(){let{focused:e,placeholder:o,exampleText:n,value:a,textfield:u}=this;return o&&n?"":e?n||u.filler.slice(a.length):""}get value(){return this.textfield.value}get prefix(){return this.decorationsVisible?this.textfield.prefix:""}get postfix(){return this.decorationsVisible?this.computedPostfix:""}get placeholder(){var e;return((e=this.textfield.nativeFocusableElement)==null?void 0:e.placeholder)||""}get exampleText(){return!this.value&&this.focused?this.placeholder:""}get decorationsVisible(){return!!this.value||this.focused&&!this.placeholder}get focused(){return this.textfield.computedFocused&&!this.textfield.readOnly}get computedPostfix(){return this.textfield.postfix&&(this.filler||this.value)?` ${this.textfield.postfix}`:this.textfield.postfix}};t.\u0275fac=function(o){return new(o||t)},t.\u0275cmp=y({type:t,selectors:[["tui-value-decoration"]],viewQuery:function(o,n){if(o&1&&U(en,7,St),o&2){let a;D(a=w())&&(n.pre=a.first)}},hostVars:4,hostBindings:function(o,n){o&1&&M("animationstart",function(){return n.ngDoCheck()}),o&2&&x("_table",n.isContextTable)("_filler",n.filler)},decls:5,vars:4,consts:[["pre",""],[1,"t-prefix",3,"textContent"],[1,"t-ghost",3,"textContent"],[1,"t-filler",3,"textContent"],[1,"t-postfix",3,"textContent"]],template:function(o,n){o&1&&I(0,"span",1,0)(2,"span",2)(3,"span",3)(4,"span",4),o&2&&(d("textContent",n.prefix),p(2),d("textContent",n.value),p(),d("textContent",n.filler),p(),d("textContent",n.postfix))},styles:['[_nghost-%COMP%]{position:absolute;display:block;width:100%;line-height:var(--tui-height);margin-top:calc(var(--tui-height) / -2);box-sizing:content-box;color:var(--tui-text-tertiary);animation:tuiPresent 1s;white-space:nowrap}._table[_nghost-%COMP%]{position:static;margin-top:0}._filler[_nghost-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}tui-primitive-textfield[data-size="m"]:not(._label-outside) [_nghost-%COMP%]{line-height:calc(var(--tui-height) - .25rem)}.t-ghost[_ngcontent-%COMP%]{visibility:hidden;white-space:pre;text-overflow:clip}.t-prefix[_ngcontent-%COMP%], .t-postfix[_ngcontent-%COMP%]{white-space:pre;color:var(--tui-text-primary)}.t-filler[_ngcontent-%COMP%]{max-width:100%;white-space:nowrap}']});let i=t;return i})(),bn={s:1.25,m:1.75,l:2.25},Tn=(()=>{let t=class t extends jt{constructor(){super(...arguments),this.legacyOptions=r(Gt),this.el=F(),this.options=r(Ot),this.controller=r(Pt),this.hintOptions=r(Tt,{optional:!0}),this.autofilled=!1,this.editable=!0,this.iconCleaner=this.legacyOptions.iconCleaner,this.readOnly=!1,this.invalid=!1,this.disabled=!1,this.value="",this.valueChange=new ot}get prefix(){return this.controller.prefix}get postfix(){return this.controller.postfix}get filler(){return this.controller.filler}get nativeFocusableElement(){if(this.computedDisabled||!this.focusableElement)return null;let{nativeElement:e}=this.focusableElement;return e.previousElementSibling||e}get focused(){return He(this.el)}get appearance(){return this.options.appearance()==="table"?"table":this.controller.appearance}onModelChange(e){this.updateValue(e)}get size(){return this.controller.size}get computedInvalid(){return!this.readOnly&&!this.disabled&&this.invalid}get inputHidden(){var e;return!!((e=this.content)!=null&&e.length)}get borderStart(){return this.iconLeftContent?this.iconPaddingLeft:0}get borderEnd(){return qe(!!this.iconContent,this.hasCleaner,this.hasTooltip,this.hasCustomContent,this.size)}get hasValue(){return!!this.value}get hasCleaner(){return this.controller.cleaner&&this.hasValue&&!this.computedDisabled&&!this.readOnly}get hasTooltip(){var e;return!!((e=this.hintOptions)!=null&&e.content)&&!this.computedDisabled}get hasCustomContent(){return!!this.controller.customContent}get placeholderVisible(){var n;let o=(((n=this.nativeFocusableElement)==null?void 0:n.placeholder)||this.prefix||this.postfix||this.filler)&&!this.readOnly&&this.computedFocused;return!this.hasValue&&!o}get hasPlaceholder(){return this.placeholderRaisable||this.placeholderVisible}get placeholderRaised(){return this.placeholderRaisable&&(this.computedFocused&&!this.readOnly||this.hasValue||this.autofilled)}get iconContent(){return this.controller.icon}get iconLeftContent(){return this.controller.iconStart}get showHint(){var e;return!!((e=this.hintOptions)!=null&&e.content)&&(this.legacyOptions.hintOnDisabled||!this.computedDisabled)}get name(){var e;return((e=this.nativeFocusableElement)==null?void 0:e.autocomplete)==="cc-exp"?"ccexpiryyear":null}get computedId(){var e;return((e=this.nativeFocusableElement)==null?void 0:e.id)||""}getIndent$(e){return ne(e,"scroll").pipe(A(()=>-1*Math.max(e.scrollLeft,0)))}onFocused(e){this.updateFocused(e)}clear(){this.nativeFocusableElement&&(this.nativeFocusableElement.value=""),this.updateValue("")}onMouseDown(e){let{nativeFocusableElement:o}=this;!o||e.target===o||(e.preventDefault(),o.focus())}onAutofilled(e){this.updateAutofilled(e)}detectRetargetFromLabel(e){Pe(e)&&e.stopImmediatePropagation()}get iconPaddingLeft(){return bn[this.size]}get placeholderRaisable(){return this.size!=="s"&&!this.controller.labelOutside}updateAutofilled(e){this.autofilled!==e&&(this.autofilled=e)}updateValue(e){this.value=e,this.valueChange.emit(e)}};t.\u0275fac=(()=>{let e;return function(n){return(e||(e=m(t)))(n||t)}})(),t.\u0275cmp=y({type:t,selectors:[["tui-primitive-textfield"]],contentQueries:function(o,n,a){if(o&1&&st(a,et,5),o&2){let u;D(u=w())&&(n.content=u)}},viewQuery:function(o,n){if(o&1&&U(nn,5),o&2){let a;D(a=w())&&(n.focusableElement=a.first)}},hostVars:15,hostBindings:function(o,n){o&1&&M("focusin",function(){return n.onFocused(!0)})("focusout",function(){return n.onFocused(!1)}),o&2&&(_("data-size",n.size),k("--border-start",n.borderStart,"rem")("--border-end",n.borderEnd,"rem"),x("_readonly",n.readOnly)("_hidden",n.inputHidden)("_invalid",n.computedInvalid)("_autofilled",n.autofilled)("_label-outside",n.options.appearance()==="table"||n.controller.labelOutside))},inputs:{editable:"editable",iconCleaner:"iconCleaner",readOnly:"readOnly",invalid:"invalid",disabled:"disabled",value:"value"},outputs:{valueChange:"valueChange"},features:[c([ti(t),Qt]),h],ngContentSelectors:rn,decls:24,vars:39,consts:[["focusableElement",""],["decor",""],[4,"ngIf"],["automation-id","tui-primitive-textfield__wrapper","tuiWrapper","",3,"click.prevent.silent","mousedown","active","appearance","disabled","focus","hover","invalid","readOnly"],["automation-id","tui-primitive-textfield__native-input",1,"t-input",3,"ngModelChange","disabled","id","ngModel","ngModelOptions","readOnly","tabIndex"],["automation-id","tui-primitive-textfield__value","class","t-input t-input_template",4,"ngIf"],[1,"t-content"],["class","t-icon t-icon_left t-textfield-icon",4,"ngIf"],[1,"t-wrapper"],["automation-id","tui-primitive-textfield__placeholder","class","t-placeholder",3,"t-placeholder_raised","for",4,"ngIf"],[1,"t-wrapper-value-decoration"],["aria-hidden","true","automation-id","tui-primitive-textfield__value-decoration",1,"t-value-decoration"],[1,"t-icons"],["automation-id","tui-primitive-textfield__custom-content","class","t-custom-content",4,"ngIf"],["appearance","icon","automation-id","tui-primitive-textfield__cleaner","tuiWrapper","","class","t-cleaner",3,"click.stop",4,"ngIf"],["automation-id","tui-primitive-textfield__tooltip","class","t-tooltip",3,"content","describeId",4,"ngIf"],["class","t-icon t-textfield-icon",4,"ngIf"],["automation-id","tui-primitive-textfield__value",1,"t-input","t-input_template"],[1,"t-icon","t-icon_left","t-textfield-icon"],["tuiAppearance","icon",3,"icon",4,"polymorpheusOutlet","polymorpheusOutletContext"],["tuiAppearance","icon",3,"icon"],["automation-id","tui-primitive-textfield__placeholder",1,"t-placeholder",3,"for"],["automation-id","tui-primitive-textfield__custom-content",1,"t-custom-content"],["class","t-custom-icon",3,"icon",4,"polymorpheusOutlet"],[1,"t-custom-icon",3,"icon"],["appearance","icon","automation-id","tui-primitive-textfield__cleaner","tuiWrapper","",1,"t-cleaner",3,"click.stop"],[3,"icon","border",4,"polymorpheusOutlet","polymorpheusOutletContext"],[3,"icon"],["automation-id","tui-primitive-textfield__tooltip",1,"t-tooltip",3,"content","describeId"],[1,"t-icon","t-textfield-icon"]],template:function(o,n){if(o&1){let a=gt();kt(on),C(0,sn,1,0,"ng-container",2),$(1,"async"),C(2,ln,1,0,"ng-container",2),$(3,"async"),v(4,"div",3),$(5,"async"),M("click.prevent.silent",function(O){return W(a),Y(n.detectRetargetFromLabel(O))})("mousedown",function(O){return W(a),Y(n.onMouseDown(O))}),Z(6),Z(7,1),v(8,"input",4,0),M("ngModelChange",function(O){return W(a),Y(n.onModelChange(O))}),b(),C(10,dn,2,0,"div",5),v(11,"div",6),C(12,cn,2,4,"div",7),v(13,"div",8),C(14,pn,2,3,"label",9),v(15,"div",10),I(16,"tui-value-decoration",11,1),$(18,"async"),b()(),v(19,"div",12),C(20,hn,2,1,"div",13)(21,gn,2,4,"span",14)(22,vn,1,2,"tui-tooltip",15)(23,Cn,2,4,"div",16),b()()()}if(o&2){let a=q(9),u=q(17);d("ngIf",j(1,30,n.content==null?null:n.content.changes)),p(2),d("ngIf",j(3,32,n.hintOptions==null?null:n.hintOptions.change$)),p(2),k("--text-indent",j(5,34,u.pre$),"px"),d("active",n.pseudoActive)("appearance",n.appearance)("disabled",n.disabled)("focus",n.computedFocused)("hover",n.pseudoHover)("invalid",n.computedInvalid)("readOnly",n.readOnly),p(4),d("disabled",n.computedDisabled)("id",n.id)("ngModel",n.value)("ngModelOptions",he(38,an))("readOnly",n.readOnly||!n.editable)("tabIndex",n.computedFocusable?0:-1),_("aria-invalid",n.computedInvalid)("name",n.name),p(2),d("ngIf",n.inputHidden),p(2),d("ngIf",n.iconLeftContent),p(2),d("ngIf",n.hasPlaceholder),p(2),k("text-indent",j(18,36,n.getIndent$(a)),"px"),x("t-has-value",n.value),p(4),d("ngIf",n.hasCustomContent),p(),d("ngIf",n.hasCleaner),p(),d("ngIf",n.showHint),p(),d("ngIf",n.iconContent)}},dependencies:[ge,Ce,xe,X,et,vi,Ci,V,tt,xn,_t],styles:['[_nghost-%COMP%]{position:relative;display:block;text-align:left;border-radius:var(--tui-radius-m);height:var(--tui-height);min-height:var(--tui-height);max-height:var(--tui-height)}[data-size=s][_nghost-%COMP%]{--tui-height: var(--tui-height-s);font:var(--tui-font-text-s)}[data-size=m][_nghost-%COMP%]{--tui-height: var(--tui-height-m);font:var(--tui-font-text-s)}[data-size=l][_nghost-%COMP%]{--tui-height: var(--tui-height-l);font:var(--tui-font-text-m);line-height:1.25rem}.t-input[_ngcontent-%COMP%]{padding:0;margin:0;border-width:0;border-radius:inherit;background:none;font-size:inherit;line-height:inherit;font-weight:inherit;color:inherit;caret-color:currentColor;outline:none;-webkit-appearance:none;appearance:none;word-break:keep-all;-webkit-text-fill-color:currentColor;position:absolute;top:0;left:0;width:100%;height:100%;border-style:solid;border-color:transparent;border-inline-start-width:var(--border-start, 0);border-inline-end-width:var(--border-end, 0);text-indent:var(--text-indent);color:var(--tui-text-primary);text-align:inherit;box-sizing:border-box;white-space:nowrap;overflow:hidden;text-transform:inherit;resize:none}.t-input[_ngcontent-%COMP%]:-webkit-autofill, .t-input[_ngcontent-%COMP%]:-webkit-autofill:hover, .t-input[_ngcontent-%COMP%]:-webkit-autofill:focus{-webkit-text-fill-color:var(--tui-text-primary)!important;border-color:var(--tui-service-autofill-background);box-shadow:0 0 0 100rem var(--tui-service-autofill-background) inset!important}.t-input[inputMode=none][_ngcontent-%COMP%]{caret-color:transparent}.t-input[_ngcontent-%COMP%]:-webkit-autofill, .t-input[_ngcontent-%COMP%]:-webkit-autofill:first-line{font-size:inherit;line-height:inherit}.t-input[_ngcontent-%COMP%]::-webkit-caps-lock-indicator, .t-input[_ngcontent-%COMP%]::-webkit-contacts-auto-fill-button, .t-input[_ngcontent-%COMP%]::-webkit-credit-card-auto-fill-button, .t-input[_ngcontent-%COMP%]::-webkit-credentials-auto-fill-button, .t-input[_ngcontent-%COMP%]::-webkit-strong-password-auto-fill-button{content:none!important;position:absolute;left:-62.4375rem;top:-62.4375rem;z-index:-999;display:none!important;background:transparent!important;pointer-events:none!important}.t-input[_ngcontent-%COMP%]::placeholder{color:var(--tui-text-tertiary);opacity:0}._focused[_nghost-%COMP%]:not(._readonly) .t-input[_ngcontent-%COMP%]::placeholder, tui-primitive-textfield._focused:not(._readonly)[_nghost-%COMP%] .t-input[_ngcontent-%COMP%]::placeholder, tui-primitive-textfield._focused:not(._readonly) [_nghost-%COMP%] .t-input[_ngcontent-%COMP%]::placeholder, tui-textarea._focused:not(._readonly)[_nghost-%COMP%] .t-input[_ngcontent-%COMP%]::placeholder, tui-textarea._focused:not(._readonly) [_nghost-%COMP%] .t-input[_ngcontent-%COMP%]::placeholder, tui-text-area._focused:not(._readonly)[_nghost-%COMP%] .t-input[_ngcontent-%COMP%]::placeholder, tui-text-area._focused:not(._readonly) [_nghost-%COMP%] .t-input[_ngcontent-%COMP%]::placeholder{opacity:1}[data-size=s][_nghost-%COMP%] .t-input[_ngcontent-%COMP%], .t-input tui-primitive-textfield[data-size="s"][_nghost-%COMP%]:not(tui-primitive-textfield), tui-primitive-textfield[data-size="s"] [_nghost-%COMP%]:not(tui-primitive-textfield), .t-input tui-textarea[data-size="s"][_nghost-%COMP%]:not(tui-textarea), tui-textarea[data-size="s"] [_nghost-%COMP%]:not(tui-textarea), .t-input tui-text-area[data-size="s"][_nghost-%COMP%]:not(tui-text-area), tui-text-area[data-size="s"] [_nghost-%COMP%]:not(tui-text-area){padding:0 var(--tui-padding-s)}[data-size=m][_nghost-%COMP%] .t-input[_ngcontent-%COMP%], .t-input tui-primitive-textfield[data-size="m"][_nghost-%COMP%]:not(tui-primitive-textfield), tui-primitive-textfield[data-size="m"] [_nghost-%COMP%]:not(tui-primitive-textfield), .t-input tui-textarea[data-size="m"][_nghost-%COMP%]:not(tui-textarea), tui-textarea[data-size="m"] [_nghost-%COMP%]:not(tui-textarea), .t-input tui-text-area[data-size="m"][_nghost-%COMP%]:not(tui-text-area), tui-text-area[data-size="m"] [_nghost-%COMP%]:not(tui-text-area){padding:0 var(--tui-padding-m)}[data-size=l][_nghost-%COMP%] .t-input[_ngcontent-%COMP%], .t-input tui-primitive-textfield[data-size="l"][_nghost-%COMP%]:not(tui-primitive-textfield), tui-primitive-textfield[data-size="l"] [_nghost-%COMP%]:not(tui-primitive-textfield), .t-input tui-textarea[data-size="l"][_nghost-%COMP%]:not(tui-textarea), tui-textarea[data-size="l"] [_nghost-%COMP%]:not(tui-textarea), .t-input tui-text-area[data-size="l"][_nghost-%COMP%]:not(tui-text-area), tui-text-area[data-size="l"] [_nghost-%COMP%]:not(tui-text-area){padding:0 var(--tui-padding-l)}._disabled[_nghost-%COMP%] .t-input[_ngcontent-%COMP%], .t-input tui-primitive-textfield._disabled[_nghost-%COMP%], tui-primitive-textfield._disabled [_nghost-%COMP%], .t-input tui-textarea._disabled[_nghost-%COMP%], tui-textarea._disabled [_nghost-%COMP%], .t-input tui-text-area._disabled[_nghost-%COMP%], tui-text-area._disabled [_nghost-%COMP%]{pointer-events:none}[data-size=l][_nghost-%COMP%]:not(._label-outside) .t-input[_ngcontent-%COMP%], .t-input tui-primitive-textfield[data-size="l"]:not(._label-outside)[_nghost-%COMP%]:not(tui-primitive-textfield), tui-primitive-textfield[data-size="l"]:not(._label-outside) [_nghost-%COMP%]:not(tui-primitive-textfield){padding-top:1.25rem}[data-size=m][_nghost-%COMP%]:not(._label-outside) .t-input[_ngcontent-%COMP%], .t-input tui-primitive-textfield[data-size="m"]:not(._label-outside)[_nghost-%COMP%]:not(tui-primitive-textfield), tui-primitive-textfield[data-size="m"]:not(._label-outside) [_nghost-%COMP%]:not(tui-primitive-textfield){padding-top:1rem}[data-size=l][_nghost-%COMP%]:not(._label-outside) .t-input[_ngcontent-%COMP%]{padding-top:1.25rem}[data-size=l][_nghost-%COMP%]:not(._label-outside) .t-input[_ngcontent-%COMP%]:-webkit-autofill + .t-content[_ngcontent-%COMP%] .t-placeholder[_ngcontent-%COMP%]{font-size:.8156rem;transform:translateY(-.625rem)}[data-size=m][_nghost-%COMP%]:not(._label-outside) .t-input[_ngcontent-%COMP%]:-webkit-autofill + .t-content[_ngcontent-%COMP%] .t-placeholder[_ngcontent-%COMP%]{font-size:.69rem;transform:translateY(-.5rem)}._hidden[_nghost-%COMP%] input.t-input[_ngcontent-%COMP%], .t-input tui-primitive-textfield._hidden[_nghost-%COMP%], tui-primitive-textfield._hidden [_nghost-%COMP%]{opacity:0;text-indent:-10em;-webkit-user-select:none}.t-content[_ngcontent-%COMP%]{display:flex;height:100%;width:100%;box-sizing:border-box;align-items:center;overflow:hidden}[data-size=s][_nghost-%COMP%] .t-content[_ngcontent-%COMP%]{padding:0 var(--tui-padding-s)}[data-size=m][_nghost-%COMP%] .t-content[_ngcontent-%COMP%]{padding:0 var(--tui-padding-m)}[data-size=l][_nghost-%COMP%] .t-content[_ngcontent-%COMP%]{padding:0 var(--tui-padding-l)}.t-wrapper[_ngcontent-%COMP%]{flex:1;min-width:0;padding-inline-end:.25rem}.t-placeholder[_ngcontent-%COMP%]{transition-property:transform,font-size,color,letter-spacing;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;width:100%;-webkit-user-select:none;user-select:none;font:var(--tui-font-text-s);color:var(--tui-text-secondary);pointer-events:none;will-change:transform;transform:translateY(0)}@supports (-webkit-hyphens: none){.t-placeholder[_ngcontent-%COMP%]{will-change:unset;transition-property:transform,color,letter-spacing}}.t-placeholder_raised[_ngcontent-%COMP%]{transform:translateY(-.625rem)}[data-size=m][_nghost-%COMP%] .t-placeholder_raised[_ngcontent-%COMP%]{font:var(--tui-font-text-xs);line-height:1.25rem;transform:translateY(-.5rem);letter-spacing:.025rem}._invalid[_nghost-%COMP%]:not(._focused) .t-placeholder_raised[_ngcontent-%COMP%], ._invalid[_nghost-%COMP%]:not(._focused):hover .t-placeholder_raised[_ngcontent-%COMP%]{color:var(--tui-text-negative)}._focused[_nghost-%COMP%] .t-placeholder[_ngcontent-%COMP%], [data-size=m]._focused._label-outside[_nghost-%COMP%] .t-placeholder[_ngcontent-%COMP%], [data-size=l]._focused._label-outside[_nghost-%COMP%] .t-placeholder[_ngcontent-%COMP%]{color:var(--tui-text-tertiary)}[data-size=l][_nghost-%COMP%] .t-placeholder[_ngcontent-%COMP%]{font:var(--tui-font-text-m);line-height:1.25rem}[data-size=l][_nghost-%COMP%] .t-placeholder_raised[_ngcontent-%COMP%]{font-size:.8156rem}[data-size=m]._focused[_nghost-%COMP%]:not(._label-outside) .t-placeholder[_ngcontent-%COMP%], [data-size=l]._focused[_nghost-%COMP%]:not(._label-outside) .t-placeholder[_ngcontent-%COMP%]{color:var(--tui-text-primary)}.t-cleaner[_ngcontent-%COMP%]{position:relative;display:flex;width:1.5rem;height:1.5rem;align-items:center;justify-content:center;box-sizing:border-box;cursor:pointer;pointer-events:none;pointer-events:auto;border:.25rem solid transparent}._readonly[_nghost-%COMP%] .t-cleaner[_ngcontent-%COMP%], ._disabled[_nghost-%COMP%] .t-cleaner[_ngcontent-%COMP%]{pointer-events:none}.t-icon[_ngcontent-%COMP%]{position:relative;display:flex;width:1.5rem;height:1.5rem;align-items:center;justify-content:center;box-sizing:border-box;cursor:pointer;pointer-events:none}[data-size=s][_nghost-%COMP%] .t-icon_left[_ngcontent-%COMP%]{margin-inline-start:-.375rem}[data-size=m][_nghost-%COMP%] .t-icon_left[_ngcontent-%COMP%]{margin-inline-start:-.125rem;margin-inline-end:.375rem}[data-size=l][_nghost-%COMP%] .t-icon_left[_ngcontent-%COMP%]{margin-inline-end:.75rem}.t-icons[_ngcontent-%COMP%]{display:flex;align-items:center}[data-size=m][_nghost-%COMP%] .t-icons[_ngcontent-%COMP%]{margin-inline-end:-.125rem}[data-size=s][_nghost-%COMP%] .t-icons[_ngcontent-%COMP%]{margin-inline-end:-.375rem}[_nghost-%COMP%]:not([data-size=s]) .t-icons[_ngcontent-%COMP%] > [_ngcontent-%COMP%]:not(:first-child){margin-inline-start:.25rem}._autofilled[data-size=s][_nghost-%COMP%] .t-placeholder[_ngcontent-%COMP%], ._autofilled._label-outside[_nghost-%COMP%] .t-placeholder[_ngcontent-%COMP%], ._autofilled[_nghost-%COMP%] .t-value-decoration[_ngcontent-%COMP%]:not(.t-has-value){visibility:hidden}[data-size=s][_nghost-%COMP%] tui-icon[_ngcontent-%COMP%]{border:.25rem solid transparent}.t-custom-content[_ngcontent-%COMP%]{position:relative;display:flex;align-items:center;justify-content:center;min-width:2rem;height:2rem;pointer-events:none}.t-custom-icon[_ngcontent-%COMP%]{width:2rem;height:100%}.t-input[_ngcontent-%COMP%]:not(:first-child){display:none}[data-size][_nghost-%COMP%] .t-input_template[_ngcontent-%COMP%]{display:flex;width:calc(100% - 1rem);max-width:calc(100% - 1rem);align-items:center;pointer-events:none;padding-inline-end:0}.t-text-template[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.t-wrapper-value-decoration[_ngcontent-%COMP%]{position:relative;pointer-events:none}'],changeDetection:0});let i=t;return ee([Me],i.prototype,"getIndent$",null),i})(),ns=(()=>{let t=class t extends ri{constructor(){super(...arguments),this.host=r(Tn)}get readOnly(){return this.host.readOnly||!this.host.editable}onValueChange(e){this.host.onModelChange(e)}};t.\u0275fac=(()=>{let e;return function(n){return(e||(e=m(t)))(n||t)}})(),t.\u0275dir=l({type:t,selectors:[["tui-primitive-textfield"]],features:[c([ni(t)]),h]});let i=t;return i})(),os=(()=>{let t=class t{constructor(){this.el=F(),this.idService=r(ut),this.controller=r(Pt),this.host=r(ct),this.host.process(this.el)}get id(){return this.el.id||this.idService.generate()}get inputMode(){return this.el.inputMode||this.host.inputMode}};t.\u0275fac=function(o){return new(o||t)},t.\u0275cmp=y({type:t,selectors:[["input","tuiTextfieldLegacy",""],["textarea","tuiTextfieldLegacy",""]],hostAttrs:["type","text"],hostVars:7,hostBindings:function(o,n){o&1&&M("input",function(u){return n.host.onValueChange(u.target.value)}),o&2&&(N("tabIndex",n.host.focusable?0:-1)("readOnly",n.host.readOnly)("value",n.host.value),_("id",n.id)("inputMode",n.inputMode)("aria-invalid",n.host.invalid)("disabled",n.host.disabled||null))},features:[c([Qt])],attrs:yn,decls:0,vars:0,template:function(o,n){},styles:['[_nghost-%COMP%]{padding:0;margin:0;border-width:0;border-radius:inherit;background:none;font-size:inherit;line-height:inherit;font-weight:inherit;color:inherit;caret-color:currentColor;outline:none;-webkit-appearance:none;appearance:none;word-break:keep-all;-webkit-text-fill-color:currentColor;position:absolute;top:0;left:0;width:100%;height:100%;border-style:solid;border-color:transparent;border-inline-start-width:var(--border-start, 0);border-inline-end-width:var(--border-end, 0);text-indent:var(--text-indent);color:var(--tui-text-primary);text-align:inherit;box-sizing:border-box;white-space:nowrap;overflow:hidden;text-transform:inherit;resize:none}[_nghost-%COMP%]:-webkit-autofill, [_nghost-%COMP%]:-webkit-autofill:hover, [_nghost-%COMP%]:-webkit-autofill:focus{-webkit-text-fill-color:var(--tui-text-primary)!important;border-color:var(--tui-service-autofill-background);box-shadow:0 0 0 100rem var(--tui-service-autofill-background) inset!important}[inputMode=none][_nghost-%COMP%]{caret-color:transparent}[_nghost-%COMP%]:-webkit-autofill, [_nghost-%COMP%]:-webkit-autofill:first-line{font-size:inherit;line-height:inherit}[_nghost-%COMP%]::-webkit-caps-lock-indicator, [_nghost-%COMP%]::-webkit-contacts-auto-fill-button, [_nghost-%COMP%]::-webkit-credit-card-auto-fill-button, [_nghost-%COMP%]::-webkit-credentials-auto-fill-button, [_nghost-%COMP%]::-webkit-strong-password-auto-fill-button{content:none!important;position:absolute;left:-62.4375rem;top:-62.4375rem;z-index:-999;display:none!important;background:transparent!important;pointer-events:none!important}[_nghost-%COMP%]::placeholder{color:var(--tui-text-tertiary);opacity:0}._focused[_nghost-%COMP%]:not(._readonly) [_ngcontent-%COMP%]::placeholder, tui-primitive-textfield._focused:not(._readonly) [_nghost-%COMP%]::placeholder, tui-textarea._focused:not(._readonly) [_nghost-%COMP%]::placeholder, tui-text-area._focused:not(._readonly) [_nghost-%COMP%]::placeholder{opacity:1}[data-size=s][_nghost-%COMP%] -shadowcsshost, [_nghost-%COMP%] tui-primitive-textfield[data-size="s"][_nghost-%COMP%]:not(tui-primitive-textfield), tui-primitive-textfield[data-size="s"] [_nghost-%COMP%]:not(tui-primitive-textfield), [_nghost-%COMP%] tui-textarea[data-size="s"][_nghost-%COMP%]:not(tui-textarea), tui-textarea[data-size="s"] [_nghost-%COMP%]:not(tui-textarea), [_nghost-%COMP%] tui-text-area[data-size="s"][_nghost-%COMP%]:not(tui-text-area), tui-text-area[data-size="s"] [_nghost-%COMP%]:not(tui-text-area){padding:0 var(--tui-padding-s)}[data-size=m][_nghost-%COMP%] -shadowcsshost, [_nghost-%COMP%] tui-primitive-textfield[data-size="m"][_nghost-%COMP%]:not(tui-primitive-textfield), tui-primitive-textfield[data-size="m"] [_nghost-%COMP%]:not(tui-primitive-textfield), [_nghost-%COMP%] tui-textarea[data-size="m"][_nghost-%COMP%]:not(tui-textarea), tui-textarea[data-size="m"] [_nghost-%COMP%]:not(tui-textarea), [_nghost-%COMP%] tui-text-area[data-size="m"][_nghost-%COMP%]:not(tui-text-area), tui-text-area[data-size="m"] [_nghost-%COMP%]:not(tui-text-area){padding:0 var(--tui-padding-m)}[data-size=l][_nghost-%COMP%] -shadowcsshost, [_nghost-%COMP%] tui-primitive-textfield[data-size="l"][_nghost-%COMP%]:not(tui-primitive-textfield), tui-primitive-textfield[data-size="l"] [_nghost-%COMP%]:not(tui-primitive-textfield), [_nghost-%COMP%] tui-textarea[data-size="l"][_nghost-%COMP%]:not(tui-textarea), tui-textarea[data-size="l"] [_nghost-%COMP%]:not(tui-textarea), [_nghost-%COMP%] tui-text-area[data-size="l"][_nghost-%COMP%]:not(tui-text-area), tui-text-area[data-size="l"] [_nghost-%COMP%]:not(tui-text-area){padding:0 var(--tui-padding-l)}._disabled[_nghost-%COMP%] -shadowcsshost, [_nghost-%COMP%] tui-primitive-textfield._disabled[_nghost-%COMP%], tui-primitive-textfield._disabled [_nghost-%COMP%], [_nghost-%COMP%] tui-textarea._disabled[_nghost-%COMP%], tui-textarea._disabled [_nghost-%COMP%], [_nghost-%COMP%] tui-text-area._disabled[_nghost-%COMP%], tui-text-area._disabled [_nghost-%COMP%]{pointer-events:none}[data-size=l][_nghost-%COMP%]:not(._label-outside) -shadowcsshost, [_nghost-%COMP%] tui-primitive-textfield[data-size="l"]:not(._label-outside)[_nghost-%COMP%]:not(tui-primitive-textfield), tui-primitive-textfield[data-size="l"]:not(._label-outside) [_nghost-%COMP%]:not(tui-primitive-textfield){padding-top:1.25rem}[data-size=m][_nghost-%COMP%]:not(._label-outside) -shadowcsshost, [_nghost-%COMP%] tui-primitive-textfield[data-size="m"]:not(._label-outside)[_nghost-%COMP%]:not(tui-primitive-textfield), tui-primitive-textfield[data-size="m"]:not(._label-outside) [_nghost-%COMP%]:not(tui-primitive-textfield){padding-top:1rem}[data-size=l][_nghost-%COMP%]:not(._label-outside) -shadowcsshost{padding-top:1.25rem}[data-size=l][_nghost-%COMP%]:not(._label-outside) [_ngcontent-%COMP%]:-webkit-autofill + .t-content[_ngcontent-%COMP%] .t-placeholder[_ngcontent-%COMP%]{font-size:.8156rem;transform:translateY(-.625rem)}[data-size=m][_nghost-%COMP%]:not(._label-outside) [_ngcontent-%COMP%]:-webkit-autofill + .t-content[_ngcontent-%COMP%] .t-placeholder[_ngcontent-%COMP%]{font-size:.69rem;transform:translateY(-.5rem)}._hidden[_nghost-%COMP%] input[_ngcontent-%COMP%], [_nghost-%COMP%] tui-primitive-textfield._hidden[_nghost-%COMP%], tui-primitive-textfield._hidden [_nghost-%COMP%]{opacity:0;text-indent:-10em;-webkit-user-select:none}textarea[_nghost-%COMP%]{white-space:pre-wrap}textarea[_nghost-%COMP%] tui-textarea._ios[_nghost-%COMP%], tui-textarea._ios [_nghost-%COMP%], textarea[_nghost-%COMP%] tui-text-area._ios[_nghost-%COMP%], tui-text-area._ios [_nghost-%COMP%]{padding-left:.8125rem}'],changeDetection:0});let i=t;return i})(),rs=(()=>{let t=class t{};t.\u0275fac=function(o){return new(o||t)},t.\u0275mod=z({type:t}),t.\u0275inj=S({imports:[Ct,be,_i,yi,V]});let i=t;return i})();var Yt=class{constructor(t){this.internalDirectiveInstance=t}get $implicit(){return this.internalDirectiveInstance.tuiLet}get tuiLet(){return this.internalDirectiveInstance.tuiLet}},us=(()=>{let t=class t{constructor(){r(fe).createEmbeddedView(r(rt),new Yt(this))}static ngTemplateContextGuard(e,o){return!0}};t.\u0275fac=function(o){return new(o||t)},t.\u0275dir=l({type:t,selectors:[["","tuiLet",""]],inputs:{tuiLet:"tuiLet"},standalone:!0});let i=t;return i})();export{kn as a,ut as b,Si as c,Po as d,us as e,ur as f,Xn as g,Ze as h,Ot as i,Qo as j,ho as k,tr as l,ki as m,er as n,ir as o,nr as p,or as q,ti as r,Cr as s,Mr as t,ct as u,ni as v,Mt as w,jr as x,Xr as y,ri as z,Gr as A,li as B,Hi as C,Ui as D,Bi as E,$i as F,ji as G,Xi as H,Gi as I,gi as J,Qi as K,oa as L,Pt as M,Qt as N,Wi as O,pa as P,fa as Q,vi as R,_i as S,Tn as T,ns as U,os as V,rs as W}; diff --git a/chunk-YUW7GALI.js b/chunk-YUW7GALI.js deleted file mode 100644 index aa6d1593d..000000000 --- a/chunk-YUW7GALI.js +++ /dev/null @@ -1,2 +0,0 @@ -import{X,t as G,v as J}from"./chunk-OKL4RZMA.js";import{f as U}from"./chunk-GIHFJXZ6.js";import{Af as Z,Ba as M,Ca as D,Ea as d,Ec as H,Ef as g,Fd as p,Gf as _,Hf as u,I as m,K as l,Kb as v,Kd as N,Ob as z,Q as T,Qb as L,Rb as F,Sa as O,Ta as A,Ud as Q,Va as k,Vd as j,Ve as K,Wd as b,Xd as $,af as Y,bc as R,cc as S,fe as h,ha as I,jb as W,la as y,me as q,nb as f,r as c,sb as V,t as x,ta as C,ub as E,vb as P,wa as s,yc as B}from"./chunk-NEAIWFFQ.js";var nt="tui-tab-activate",rt=(()=>{let i=class i{constructor(){var n,t;this.el=h(),this.rla=s(U,{optional:!0}),this.observer=this.rla&&((n=s(u,{optional:!0}))==null?void 0:n.pipe(l(()=>{var e;return!!((e=this.rla)!=null&&e.isActive)}))),this.sub=m(this.observer||c,((t=this.rla)==null?void 0:t.isActiveChange.pipe(l(Boolean)))||c,this.el.matches("button")?K(this.el,"click"):c).pipe(p()).subscribe(()=>this.el.dispatchEvent(new CustomEvent(nt,{bubbles:!0})))}ngOnDestroy(){G(this.el)&&this.el.blur()}};i.\u0275fac=function(t){return new(t||i)},i.\u0275dir=d({type:i,selectors:[["a","tuiTab","",3,"routerLink",""],["a","tuiTab","","routerLink","","routerLinkActive",""],["button","tuiTab",""]],hostAttrs:["type","button"],standalone:!0,features:[f([Z])]});let r=i;return r})(),et={underline:!0,exposeActive:!0,itemsLimit:1/0,minMoreWidth:0,size:"l"},w=N(et);function ae(r){return Q(w,r,et)}var ot=(()=>{let i=class i{};i.\u0275fac=function(t){return new(t||i)},i.\u0275cmp=D({type:i,selectors:[["ng-component"]],hostAttrs:[1,"tui-tabs"],standalone:!0,features:[S],decls:0,vars:0,template:function(t,e){},styles:[`[tuiTab]{transition-property:color,box-shadow,opacity,background;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;-webkit-appearance:none;appearance:none;padding:0;border:0;background:none;font-size:inherit;line-height:inherit;text-decoration:none;position:relative;display:flex;flex-shrink:0;box-sizing:border-box;justify-content:space-between;line-height:1.5rem;align-items:center;white-space:nowrap;cursor:pointer;outline:none;color:inherit;margin-left:24px}tui-tabs[data-size=m]+[tuiTab],tui-tabs[data-size=m] [tuiTab],[tuiTabs][data-size=m] [tuiTab]{margin-left:16px;font:var(--tui-font-text-s)}[tuiTab]:disabled{opacity:var(--tui-disabled-opacity);pointer-events:none}[tuiTab]._active{color:var(--tui-text-primary);box-shadow:none}[tuiTab]:focus-visible{outline:2px solid var(--tui-border-focus);outline-offset:-2px}tui-tabs._underline [tuiTab]:hover:not(._active),[tuiTabs]._underline [tuiTab]:hover:not(._active){box-shadow:inset 0 -2px var(--tui-border-normal)}tui-tabs>[tuiTab]:first-child,[tuiTabs]>[tuiTab]:first-child,tui-tabs>:not(.t-overflown)>[tuiTab]:first-child{margin-left:0}tui-tabs>[tuiTab]~:not(.t-overflown)>[tuiTab]:first-child{margin-left:var(--tui-tab-margin, 1.5rem)}[tuiTab][tuiIcons]:before{font-size:1rem;margin-inline-end:.5rem}[tuiTab][tuiIcons]:after{font-size:1rem;margin-inline-start:.5rem}[tuiTab]:empty:after,[tuiTab]:empty:before{margin:.5rem}@media (hover: hover){[tuiTab]:hover{color:var(--tui-text-primary)}}[tuiTabs],tui-tabs{scrollbar-width:none;-ms-overflow-style:none;position:relative;display:flex;font:var(--tui-font-text-m);color:var(--tui-text-secondary);box-shadow:inset 0 -1px var(--tui-border-normal);overflow:auto;isolation:isolate}[tuiTabs]::-webkit-scrollbar,tui-tabs::-webkit-scrollbar,[tuiTabs]::-webkit-scrollbar-thumb,tui-tabs::-webkit-scrollbar-thumb{display:none}[tuiTabs][data-size=l]:not([data-vertical]),tui-tabs[data-size=l]:not([data-vertical]){height:var(--tui-height-l)}[tuiTabs][data-size=m]:not([data-vertical]),tui-tabs[data-size=m]:not([data-vertical]){height:var(--tui-height-m)}[tuiTabs]:before,tui-tabs:before{transition-property:width,left;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;position:absolute;left:var(--t-left);bottom:0;height:2px;width:var(--t-width);background:var(--t-color);animation:tuiPresent 1ms}[tuiTabs]._underline:before,tui-tabs._underline:before{content:""}tui-tabs[data-vertical],[tuiTabs][data-vertical]{flex-direction:column;box-shadow:inset -1px 0 var(--tui-border-normal)}tui-tabs[data-vertical] [tuiTab],[tuiTabs][data-vertical] [tuiTab]{min-height:2.75rem;height:auto;white-space:normal;margin:0;text-align:left;padding:.25rem 1.25rem .25rem 0}tui-tabs[data-vertical] [tuiTab]:after,[tuiTabs][data-vertical] [tuiTab]:after{transition-property:transform;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;content:"";position:absolute;top:0;right:0;display:block;height:100%;width:2px;background:var(--tui-background-accent-1);transform:scaleX(0);transform-origin:right;margin:0}tui-tabs[data-vertical] [tuiTab]:hover,[tuiTabs][data-vertical] [tuiTab]:hover{box-shadow:inset -2px 0 var(--tui-border-normal)}tui-tabs[data-vertical] [tuiTab]._active:after,[tuiTabs][data-vertical] [tuiTab]._active:after{transform:none}tui-tabs[data-vertical][data-size=m] [tuiTab],[tuiTabs][data-vertical][data-size=m] [tuiTab]{min-height:2.25rem;font:var(--tui-font-text-s)}tui-tabs[data-vertical][data-vertical=right],[tuiTabs][data-vertical][data-vertical=right]{box-shadow:inset 1px 0 var(--tui-border-normal)}tui-tabs[data-vertical][data-vertical=right] [tuiTab],[tuiTabs][data-vertical][data-vertical=right] [tuiTab]{text-align:right;padding:.25rem 0 .25rem 1.25rem}tui-tabs[data-vertical][data-vertical=right] [tuiTab]:after,[tuiTabs][data-vertical][data-vertical=right] [tuiTab]:after{right:auto;left:0;transform-origin:left}tui-tabs[data-vertical][data-vertical=right] [tuiTab]:hover,[tuiTabs][data-vertical][data-vertical=right] [tuiTab]:hover{box-shadow:inset 2px 0 var(--tui-border-normal)} -`],encapsulation:2,changeDetection:0});let r=i;return r})(),tt=(()=>{let i=class i{constructor(){this.el=h(),this.injector=s(M),this.nothing=$(ot),this.size=s(w).size,this.activeItemIndex=0,this.activeItemIndexChange=new O}get tabs(){return Array.from(this.el.querySelectorAll("[tuiTab]"))}get activeElement(){return this.tabs[this.activeItemIndex]||null}moveFocus(n,t){let{tabs:e}=this;J(e.indexOf(n),e,t)}ngAfterViewChecked(){W(()=>{this.markTabAsActive()},{injector:this.injector})}onActivate(n,t){let e=this.tabs.findIndex(o=>o===t);n.stopPropagation(),e!==this.activeItemIndex&&(this.activeItemIndexChange.emit(e),this.activeItemIndex=e)}markTabAsActive(){let{tabs:n,activeElement:t}=this;n.forEach(e=>{let o=e===t;e.classList.toggle("_active",o),e.setAttribute("tabIndex",o?"0":"-1")})}};i.\u0275fac=function(t){return new(t||i)},i.\u0275dir=d({type:i,hostVars:1,hostBindings:function(t,e){t&1&&v("tui-tab-activate",function(a){return e.onActivate(a,a.target)}),t&2&&V("data-size",e.size)},inputs:{size:"size",activeItemIndex:"activeItemIndex"},outputs:{activeItemIndexChange:"activeItemIndexChange"},standalone:!0});let r=i;return r})(),se=(()=>{let i=class i{constructor(){this.el=h(),this.options=s(w),this.tabs=s(tt),this.children=q,this.sub=s(u,{self:!0}).pipe(Y(s(A)),p()).subscribe(()=>this.refresh()),this.underline=this.options.underline}ngAfterViewChecked(){this.scrollTo(this.tabs.activeItemIndex),this.refresh()}onKeyDownArrow(n,t){this.tabs.moveFocus(n,t)}refresh(){let{activeElement:n}=this.tabs;if(n&&!n.isConnected)return;let{offsetLeft:t=0,offsetWidth:e=0}=n||{};this.el.style.setProperty("--t-left",b(t)),this.el.style.setProperty("--t-width",b(e))}scrollTo(n){let t=this.tabs.tabs[n];if(!t)return;let{offsetLeft:e,offsetWidth:o}=t;ethis.el.scrollLeft+this.el.offsetWidth&&(this.el.scrollLeft=e+o-this.el.offsetWidth)}};i.\u0275fac=function(t){return new(t||i)},i.\u0275dir=d({type:i,selectors:[["tui-tabs",3,"vertical",""],["nav","tuiTabs","",3,"vertical",""]],contentQueries:function(t,e,o){if(t&1&&z(o,rt,4),t&2){let a;L(a=F())&&(e.children=a)}},hostVars:4,hostBindings:function(t,e){t&1&&v("animationend",function(){return e.refresh()})("keydown.arrowRight.prevent",function(a){return e.onKeyDownArrow(a.target,1)})("keydown.arrowLeft.prevent",function(a){return e.onKeyDownArrow(a.target,-1)}),t&2&&(E("--t-color",e.underline===!0?"var(--tui-background-accent-1)":e.underline),P("_underline",e.underline))},inputs:{underline:"underline"},standalone:!0,features:[R([u,{provide:_,useValue:{childList:!0,characterData:!0,subtree:!0}}]),f([{directive:tt,inputs:["activeItemIndex","activeItemIndex","size","size"],outputs:["activeItemIndexChange","activeItemIndexChange"]}])]});let r=i;return x([j],r.prototype,"scrollTo",null),r})();var at=new C("[TUI_TABS_REFRESH]"),ue=[g,u,X({align:"right"}),{provide:_,useValue:{childList:!0,subtree:!0,characterData:!0}},{provide:at,deps:[g,u,H,k,B],useFactory:(r,i,{body:it},{nativeElement:n},t)=>m(r,i.pipe(y(()=>t.detectChanges()))).pipe(l(()=>it.contains(n)),T(0),I(null),p())}];export{rt as a,ae as b,se as c}; diff --git a/chunk-ZBHN6UO4.js b/chunk-ZBHN6UO4.js new file mode 100644 index 000000000..ed208c273 --- /dev/null +++ b/chunk-ZBHN6UO4.js @@ -0,0 +1,3 @@ +import{a as Re,c as ui,e as Ni,f as Ai,g as Ri}from"./chunk-P6AQGOJY.js";import{a as fi,b as zi}from"./chunk-ZWMUZJ6F.js";import{d as ni,f as me,i as _i,j as vi,l as Ge,m as Be,n as Ue}from"./chunk-TM3BF3MS.js";import{a as pi}from"./chunk-XEFPZ7J3.js";import{a as li}from"./chunk-NSSAPNB2.js";import"./chunk-ZYN4Y54G.js";import{A as Oi,C as Di,E as ki,F as Pi,G as Ei,H as Vi,I as Fi,J as $i,K as Hi,L as U,T as $,U as he,V as Li,W as ge,a as ti,j as ci,k as gi,m as lt,n as ct,o as bi,p as Ti,r as yi,s as xi,t as pt,v as wi,w as Ii,x as Mi,z as Si}from"./chunk-XENTLRKE.js";import{$ as pe,Da as hi,E as ii,K as Ae,Y as oi,Z as ze,_ as G,aa as B,da as ri,ja as ee,la as te,ma as ai,na as si,ra as at,sa as st,ta as ut}from"./chunk-DXP4LH76.js";import{b as Rt,d as zt}from"./chunk-GIHFJXZ6.js";import{a as Ne,b as Ci,c as je}from"./chunk-VVRWXTJV.js";import{A as K,Ab as Z,Bb as s,Bc as Lt,Be as Zt,Ca as T,Cb as u,Cd as Ut,Ce as Jt,Cf as ce,Da as M,Db as y,Df as de,Ea as et,Eb as tt,Ec as ae,Fa as Dt,Fb as it,Fd as be,H as Je,Hb as v,Hd as Fe,Ka as d,Kb as _,Kd as Wt,Kf as di,La as m,Lb as p,Ld as Yt,Mb as De,Mc as J,Md as j,N as It,Na as _e,Nb as ve,Nc as nt,Nd as Kt,Ne as He,Nf as mi,Pb as ke,Pc as Nt,Qb as Pe,Rb as Ee,Rc as At,Sa as L,Sb as V,Tb as C,Tc as w,Ub as Ft,Vb as S,Vd as E,Ve as Le,Wb as $t,We as ei,Xb as D,Ya as Me,Yb as k,Za as kt,Zb as P,a as ie,b as ne,bb as Pt,bc as N,bd as z,be as qt,cb as c,cc as oe,dc as R,dd as jt,e as vt,ea as Mt,ee as rt,fe as $e,g as Qe,ha as q,i as xe,ia as H,j as bt,ja as St,jc as re,jd as se,kc as Ve,ke as Xt,lb as Se,lc as Ht,m as Ze,mb as Ce,n as Tt,nd as ot,o as yt,od as ue,pc as F,qa as A,qe as Qt,ra as I,rb as b,s as xt,sb as Oe,sd as Gt,t as O,ta as Ie,tb as l,u as wt,ub as x,va as Ot,vb as Et,w as we,wa as g,wb as Vt,yb as X,yd as le,zb as Q,zd as Bt}from"./chunk-NEAIWFFQ.js";var dt=class{constructor(t,r){this._document=r;let e=this._textarea=this._document.createElement("textarea"),i=e.style;i.position="fixed",i.top=i.opacity="0",i.left="-999em",e.setAttribute("aria-hidden","true"),e.value=t,e.readOnly=!0,(this._document.fullscreenElement||this._document.body).appendChild(e)}copy(){let t=this._textarea,r=!1;try{if(t){let e=this._document.activeElement;t.select(),t.setSelectionRange(0,t.value.length),r=this._document.execCommand("copy"),e&&e.focus()}}catch{}return r}destroy(){let t=this._textarea;t&&(t.remove(),this._textarea=void 0)}},ji=(()=>{let t=class t{constructor(e){this._document=e}copy(e){let i=this.beginCopy(e),n=i.copy();return i.destroy(),n}beginCopy(e){return new dt(e,this._document)}};t.\u0275fac=function(i){return new(i||t)(Ot(ae))},t.\u0275prov=A({token:t,factory:t.\u0275fac,providedIn:"root"});let o=t;return o})();function We(o){return o.slice(0,Math.max(0,o.length-1)).replace("linear-gradient(","")}function Gi(o){let t=o.replace("#","").split("").map((r,e,i)=>i.length===3?r+r:r).join("").match(/.{2}/g);return t?t.map(r=>Number.parseInt(r,16)):[0,0,0]}function mt(o,t,r,e){let i=(e+o/60)%6;return Math.round(r-r*t*Math.max(Math.min(i,4-i,1),0))}function ht(o,t,r){return[mt(o,t,r,5),mt(o,t,r,3),mt(o,t,r,1)]}var Te=[0,0,0,1];function Ye(o){let t=o.replace("#","").replace("rgba(","").replace("rgb(","").replace(")",""),r=t.split(",").map(n=>parseFloat(n));if(r.length===4)return r;if(r.length===3)return r.concat(1);let e=t.match(new RegExp(`(.{${t.length/3}})`,"g"));if(!e)return Te;let i=e.map(n=>parseInt(t.length%2?n+n:n,16));return[i[0]||Te[0],i[1]||Te[1],i[2]||Te[2],i[3]===void 0?Te[3]:i[3]]}var dn="\\s*,\\s*",mn="#(?:[a-f0-9]{6}|[a-f0-9]{3})",hn="\\(\\s*(?:\\d{1,3}\\s*,\\s*){2}\\d{1,3}\\s*\\)",gn="\\(\\s*(?:\\d{1,3}\\s*,\\s*){2}\\d{1,3}\\s*,\\s*\\d*\\.?\\d+\\)",fn="(?:[+-]?\\d*\\.?\\d+)(?:%|[a-z]+)?",_n="[_a-z-][_a-z0-9-]*",Cn=["(?:",mn,"|","(?:rgb|hsl)",hn,"|","(?:rgba|hsla)",gn,"|",_n,")"],vn=["\\s*(",...Cn,")","(?:\\s+","(",fn,"))?","(?:",dn,"\\s*)?"];function bn(o,t){let r=t===1?"100%":`${t}%`;return o!=null&&o.includes("%")?o:r}function Ke(o){let t=new RegExp(vn.join(""),"gi"),r=o.startsWith("to")||o.match(/^\d/)?o.slice(Math.max(0,o.indexOf(",")+1)).trim():o,e=o.startsWith("to")?o.split(",")[0]:"to bottom",i=[],n=t.exec(r);for(;n!==null;)i=i.concat({color:n[1],position:bn(n[2],i.length)}),n=t.exec(r);return i=i.filter(({color:a})=>a.startsWith("#")||a.startsWith("rgb")),{stops:i,side:e}}function Bi({stops:o,side:t}){return`linear-gradient(${t}, ${o.map(({color:r,position:e})=>`rgba(${Ye(r).join(", ")}) ${e}`).join(", ")})`}function Ui(o,t,r){return`#${[o,t,r].map(e=>e.toString(16).padStart(2,"0")).join("")}`}function Wi(o,t,r){let e=Math.max(o,t,r),i=e-Math.min(o,t,r),n=i&&(e===o?(t-r)/i:e===t?2+(r-o)/i:4+(o-t)/i);return[60*(n<0?n+6:n),e&&i/e,e]}function gt(o,t={}){let{selector:r}=t,e=xt(t,["selector"]);return new xe(i=>{let n=new AbortController,{signal:a}=n,f=!0,{signal:h}=e;if(h)if(h.aborted)n.abort();else{let Y=()=>{a.aborted||n.abort()};h.addEventListener("abort",Y),i.add(()=>h.removeEventListener("abort",Y))}let Xe=Object.assign(Object.assign({},e),{signal:a}),Ct=Y=>{f=!1,i.error(Y)};return fetch(o,Xe).then(Y=>{r?wt(r(Y)).subscribe(bt(i,void 0,()=>{f=!1,i.complete()},Ct)):(f=!1,i.next(Y),i.complete())}).catch(Ct),()=>{f&&n.abort()}})}var Yi=(()=>{let t=class t{constructor(){this.cache=new Map}request(e){let i=this.cache.get(e);if(i)return i;let n=gt(e).pipe(H(a=>vt(this,null,function*(){if(a.ok)return a.text();throw new Error(`Failed to load ${e} (${a.statusText})`)})),Mt({bufferSize:1,refCount:!1}));return this.cache.set(e,n),n}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=A({token:t,factory:t.\u0275fac,providedIn:"root"});let o=t;return o})();function Tn(){return Math.floor(Math.random()*Date.now())}function yn(o){let t=(o.match(/url\(("?)('*)#(.*?)('*)\)/g)??[]).map(r=>r.slice(4,r.length-1).replaceAll(/['"#]+/g,""));return Array.from(new Set(t))}function Ki(o,t=Tn()){return j(o)?yn(o).reduce((e,i)=>{let n=`id_${t}_${i}`;return e.replaceAll(`"${i}"`,`"${n}"`).replaceAll(`'${i}'`,`'${n}'`).replaceAll(`url('#${i}')`,`url('#${n}')`).replaceAll(`url("#${i}")`,`url("#${n}")`).replaceAll(`url(#${i})`,`url(#${n})`)},o):o}var xn={tuiIconAttach:"tuiIconPaperclip",tuiIconAttention:"tuiIconAlertCircle",tuiIconBackCircle:"tuiIconArrowLeftCircle",tuiIconCall:"tuiIconPhone",tuiIconCallIn:"tuiIconPhoneIncoming",tuiIconCallOut:"tuiIconPhoneOutgoing",tuiIconCallTransfer:"tuiIconPhoneForwarded",tuiIconCancel:"tuiIconXCircle",tuiIconCancelCircle:"tuiIconSlash",tuiIconCard:"tuiIconCreditCard",tuiIconCards:"tuiIconCreditCard",tuiIconChartBar:"tuiIconBarChart",tuiIconChart:"tuiIconBarChart",tuiIconCheckList:"tuiIconClipboard",tuiIconCloseCircle:"tuiIconXCircle",tuiIconCollapse:"tuiIconMinimize",tuiIconComment:"tuiIconMessageSquare",tuiIconCommentFw:"tuiIconMessageForward",tuiIconCompany:"tuiIconBriefcase",tuiIconDefaultDoc:"tuiIconFile",tuiIconDesktop:"tuiIconMonitor",tuiIconDesktopOff:"tuiIconMonitorOff",tuiIconDislike:"tuiIconThumbsDown",tuiIconDone:"tuiIconCheckCircle",tuiIconDraft:"tuiIconEdit2",tuiIconEyeOpen:"tuiIconEye",tuiIconEyeClosed:"tuiIconEyeOff",tuiIconExpand:"tuiIconMaximize",tuiIconExternal:"tuiIconExternalLink",tuiIconFrame:"tuiIconLayout",tuiIconGeo:"tuiIconMapPin",tuiIconHeartFilled:"tuiIconHeart",tuiIconHide:"tuiIconEyeOff",tuiIconImg:"tuiIconImage",tuiIconInfoCircle:"tuiIconInfo",tuiIconLike:"tuiIconThumbsUp",tuiIconLockOpen:"tuiIconUnlock",tuiIconMobile:"tuiIconSmartphone",tuiIconMoreHor:"tuiIconMoreHorizontal",tuiIconMoreVer:"tuiIconMoreVertical",tuiIconMoreVert:"tuiIconMoreVertical",tuiIconPicture:"tuiIconImage",tuiIconPin:"tuiIconMapPin",tuiIconPrint:"tuiIconPrinter",tuiIconRefresh:"tuiIconRefreshCw",tuiIconRemove:"tuiIconX",tuiIconShow:"tuiIconEye",tuiIconSound:"tuiIconVolume",tuiIconSoundOff:"tuiIconVolumeX",tuiIconStarFilled:"tuiIconStar",tuiIconStop:"tuiIconSquare",tuiIconStructure:"tuiIconLayoutGrid",tuiIconTime:"tuiIconClock",tuiIconTooltip:"tuiIconHelpCircle",tuiIconViewList:"tuiIconList",tuiIconWifiOn:"tuiIconWifi"},wn=(()=>{let t=class t{constructor(){this.tuiSanitizer=g(pt,{optional:!0}),this.sanitizer=g(z),this.originals={},this.items$=new Tt(new Map),this.define(g(xi))}define(e){let{value:i}=this.items$;Object.keys(e).forEach(n=>{this.defineIcon(n,e[n],i)}),this.items$.next(i)}getOriginal(e){return this.originals[e]||null}defineIcon(e,i,n){if(n.has(e))return;let a=this.parseSrc(e,i);a&&(n.set(e,a),this.originals=ne(ie({},this.originals),{[e]:i}))}parseSrc(e,i){return this.sanitize(Ti(i,e))}sanitize(e){return this.sanitizer.bypassSecurityTrustHtml((this.tuiSanitizer?this.tuiSanitizer.sanitize(Me.HTML,e):this.sanitizer.sanitize(Me.HTML,e))||"")}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=A({token:t,factory:t.\u0275fac,providedIn:"root"});let o=t;return o})(),qe="assets/taiga-ui/icons",In={iconsPlace:qe,path:ct(qe),srcProcessor:Qe,contentProcessor:Ki,deprecated:o=>{let t=o.replace("Large","").replace("Outline",""),r=xn[t];return r?`${t}/(Large|Outline) is deprecated, use ${r}/(Large|Outline) instead`:""}},Mn=Yt(()=>({iconsPlace:qe,path:ct(qe),deprecated:In.deprecated,srcProcessor:Qe,contentProcessor:Ki})),Sn=new Ie("[TUI_SVG_SRC_INTERCEPTORS]");var On="Attempted to use undefined named icon",Dn="External icon is missing on the given URL",kn="Failed to load external SVG",qi=(()=>{let t=class t{constructor(){this.icon="",this.doc=g(ae),this.win=g(He),this.options=g(Mn),this.tuiSanitizer=g(pt,{optional:!0}),this.svgService=g(wn),this.staticRequestService=g(Yi),this.sanitizer=g(z),this.el=$e(),this.baseHref=g(ii),this.src$=new yt(1),this.srcInterceptors=g(Sn,{optional:!0}),this.innerHTML$=this.src$.pipe(H(()=>j(this.icon)?this.isExternal?this.getExternalIcon(this.icon):we(this.getSafeHtml(this.icon)):we(this.icon)),q(""))}set src(e){let i=this.options.deprecated(String(e));this.icon=(this.srcInterceptors??[]).reduce((n,a)=>a(n,this.options),this.options.srcProcessor(e||"")),this.src$.next()}get src(){return this.icon}get use(){return j(this.icon)?this.icon.includes(".svg#")?this.icon:this.resolveName(this.icon,this.options.path):""}get isInnerHTML(){return!j(this.icon)||this.isSrc||this.isExternal||this.isName&&this.isShadowDOM}onError(e=Dn){let{icon:i}=this,n=new CustomEvent("tui-icon-error",{bubbles:!0,detail:{message:e,icon:i}});this.el.dispatchEvent(n)}get isShadowDOM(){return qt(this.el)!==this.doc}get isUse(){return this.use.replace(lt,"").includes(".svg#")}get isExternal(){return this.isUrl||this.isCrossDomain||!this.isSrc&&!this.svgService.getOriginal(String(this.icon))}get isUrl(){return j(this.icon)&&this.icon.replace(lt,"").endsWith(".svg")}get isSrc(){return j(this.icon)&&bi(this.icon)}get isName(){return!this.isUrl&&!this.isUse&&!this.isSrc}get isCrossDomain(){let{use:e,isUse:i,win:n}=this;return i&&e.startsWith("http")&&!!n.origin&&!e.startsWith(n.origin)}resolveName(e,i){return i(e,this.baseHref)}getSafeHtml(e){return this.isSrc?this.sanitize(e):this.process(e)}process(e){let i=this.svgService.getOriginal(e);return this.isName&&!i&&e&&this.onError(On),this.sanitize(i||"")}sanitize(e){return e=this.options.contentProcessor(e),this.tuiSanitizer&&j(e)?this.sanitizer.bypassSecurityTrustHtml(this.tuiSanitizer.sanitize(Me.HTML,e)||""):e}getExternalIcon(e){let i=e.includes(".svg")?e:this.use;return this.staticRequestService.request(i).pipe(It(()=>(this.onError(kn),we(""))),K(n=>this.sanitize(n.replace("({standalone:!0});function Vn(o,t){if(o&1&&(s(0,"button",7),C(1),u()),o&2){let r=t.$implicit;l("value",r),c(),S(" ",r," ")}}function Fn(o,t){if(o&1&&(s(0,"tui-data-list",5),b(1,Vn,2,2,"button",6),u()),o&2){let r=p();c(),l("ngForOf",r.modes)}}function $n(o,t){if(o&1){let r=v();s(0,"tui-primitive-textfield",8),_("valueChange",function(i){d(r);let n=p();return m(n.onHexChange(i))}),u()}if(o&2){let r=p();l("maskito",r.hexMask)("tuiTextfieldLabelOutside",!0)("value",r.hex)}}function Hn(o,t){if(o&1){let r=v();s(0,"tui-input-number",9),_("ngModelChange",function(i){d(r);let n=p();return m(n.onRgbChange(i,n.color[1],n.color[2],n.color[3]))}),u(),s(1,"tui-input-number",9),_("ngModelChange",function(i){d(r);let n=p();return m(n.onRgbChange(n.color[0],i,n.color[2],n.color[3]))}),u(),s(2,"tui-input-number",9),_("ngModelChange",function(i){d(r);let n=p();return m(n.onRgbChange(n.color[0],n.color[1],i,n.color[3]))}),u()}if(o&2){let r=p();l("max",255)("min",0)("ngModel",r.color[0])("ngModelOptions",R(15,ye))("tuiTextfieldLabelOutside",!0),c(),l("max",255)("min",0)("ngModel",r.color[1])("ngModelOptions",R(16,ye))("tuiTextfieldLabelOutside",!0),c(),l("max",255)("min",0)("ngModel",r.color[2])("ngModelOptions",R(17,ye))("tuiTextfieldLabelOutside",!0)}}function Ln(o,t){if(o&1){let r=v();s(0,"div",1),_("dblclick",function(){let i=d(r).index,n=p();return m(n.onClick(i))})("mousedown",function(){let i=d(r).index,n=p();return m(n.onMouseDown(i))}),u()}if(o&2){let r=t.$implicit;x("left",r*100,"%")}}var Nn="[_nghost-%COMP%]{position:relative;display:block;height:1rem;box-sizing:border-box}.t-circle[_ngcontent-%COMP%]{position:absolute;width:1rem;height:1rem;border-radius:100%;margin:0 -.5rem;box-shadow:inset 0 0 0 2px var(--tui-base-01),0 0 0 1px var(--tui-base-03)}";function An(o,t){if(o&1){let r=v();s(0,"button",1),_("click",function(){let i=d(r).$implicit,n=p();return m(n.selectedColor.emit(i.value))}),u()}if(o&2){let r=t.$implicit;x("background",r.value),l("id",r.key)("tuiHint",r.key)("tuiHintDescribe",r.key)}}function Rn(o,t){o&1&&y(0,"tui-icon",12)}function zn(o,t){if(o&1){let r=v();s(0,"button",10),_("click",function(){let i=d(r).$implicit,n=p(3);return m(n.onModeSelect(i))})("keydown.enter.prevent",function(){let i=d(r).$implicit,n=p(3);return m(n.onModeSelect(i))})("keydown.space.prevent",function(){let i=d(r).$implicit,n=p(3);return m(n.onModeSelect(i))}),C(1),b(2,Rn,1,0,"tui-icon",11),u()}if(o&2){let r=t.$implicit,e=p(3);Oe("aria-checked",e.isModeActive(r)),c(),S(" ",r," "),c(),l("ngIf",e.isModeActive(r))}}function jn(o,t){if(o&1&&(s(0,"tui-data-list",8),b(1,zn,3,3,"button",9),u()),o&2){let r=p(2);c(),l("ngForOf",r.modes)}}function Gn(o,t){if(o&1){let r=v();tt(0),s(1,"div",5),P("tuiDropdownOpenChange",function(i){d(r);let n=p();return k(n.open,i)||(n.open=i),m(i)}),s(2,"button",6),C(3),u(),b(4,jn,2,1,"ng-template",null,0,F),u(),y(6,"hr",7),it()}if(o&2){let r=V(5),e=p();c(),l("tuiDropdown",r),D("tuiDropdownOpen",e.open),c(2),S(" ",e.currentMode," ")}}function Bn(o,t){if(o&1){let r=v();s(0,"button",17),_("click",function(){let i=d(r).$implicit,n=p(2);return m(n.onDirectionChange(i))}),u()}if(o&2){let r=t.$implicit,e=p(2);Et("t-direction_active",e.isDirectionActive(r)),l("iconStart",e.getIcon(r))("tuiHint",r)}}function Un(o,t){if(o&1){let r=v();tt(0),s(1,"div",13)(2,"tui-linear-multi-picker",14),_("indexChange",function(i){d(r);let n=p();return m(n.onIndexChange(i))})("valueChange",function(i){d(r);let n=p();return m(n.onStopsChange(i))}),u()(),s(3,"div",15),b(4,Bn,1,4,"button",16),u(),it()}if(o&2){let r=p();c(),x("background",r.gradient),c(),l("value",r.stopsKeys),c(2),l("ngForOf",r.buttons)}}function Wn(o,t){if(o&1){let r=v();s(0,"tui-color-edit",18),_("colorChange",function(i){d(r);let n=p();return m(n.onColorChange(i))}),u()}if(o&2){let r=p();l("color",r.color)}}function Yn(o,t){if(o&1){let r=v();s(0,"tui-palette",19),_("selectedColor",function(i){d(r);let n=p();return m(n.onPalettePick(i))}),u()}if(o&2){let r=p();l("colors",r.palette)}}var Xi=6,Kn=(()=>{let t=class t{constructor(){this.color=[0,0,0,1],this.colorChange=new L,this.hexMask={mask:new RegExp(`^[A-F\\d]{0,${Xi}}$`,"gi")},this.modes=["HEX","RGB"],this.mode=this.modes[0]}get isHex(){return this.mode===this.modes[0]}get hex(){return Ui(this.color[0],this.color[1],this.color[2]).replace("#","")}get opacity(){return Math.round(this.color[3]*100)}onHexChange(e){if(e.length!==Xi)return;let i=Gi(e);this.updateColor([i[0],i[1],i[2],this.color[3]])}onRgbChange(...e){this.updateColor(e)}updateColor(e){this.color=e,this.colorChange.emit(e)}};t.\u0275fac=function(i){return new(i||t)},t.\u0275cmp=T({type:t,selectors:[["tui-color-edit"]],inputs:{color:"color"},outputs:{colorChange:"colorChange"},decls:6,vars:16,consts:[["rgb",""],["tuiDropdownAlign","left","tuiDropdownLimitWidth","min","tuiTextfieldSize","m",1,"t-select",3,"ngModelChange","ngModelOptions","tuiTextfieldLabelOutside","ngModel"],["size","s",4,"tuiDataList"],["tuiTextfieldSize","m",3,"maskito","tuiTextfieldLabelOutside","value","valueChange",4,"ngIf","ngIfElse"],["tuiTextfieldPostfix","%","tuiTextfieldSize","m",1,"t-opacity",3,"ngModelChange","max","min","ngModel","ngModelOptions","tuiTextfieldLabelOutside"],["size","s"],["tuiOption","",3,"value",4,"ngFor","ngForOf"],["tuiOption","",3,"value"],["tuiTextfieldSize","m",3,"valueChange","maskito","tuiTextfieldLabelOutside","value"],["tuiTextfieldSize","m",1,"t-rgb",3,"ngModelChange","max","min","ngModel","ngModelOptions","tuiTextfieldLabelOutside"]],template:function(i,n){if(i&1){let a=v();s(0,"tui-select",1),P("ngModelChange",function(h){return d(a),k(n.mode,h)||(n.mode=h),m(h)}),b(1,Fn,2,1,"tui-data-list",2),u(),b(2,$n,1,3,"tui-primitive-textfield",3)(3,Hn,3,18,"ng-template",null,0,F),s(5,"tui-input-number",4),_("ngModelChange",function(h){return d(a),m(n.onRgbChange(n.color[0],n.color[1],n.color[2],h/100))}),u()}if(i&2){let a=V(4);x("flex","0 0 auto"),l("ngModelOptions",R(14,ye))("tuiTextfieldLabelOutside",!0),D("ngModel",n.mode),c(2),l("ngIf",n.isHex)("ngIfElse",a),c(3),x("flex","0 0 auto"),l("max",100)("min",0)("ngModel",n.opacity)("ngModelOptions",R(15,ye))("tuiTextfieldLabelOutside",!0)}},dependencies:[J,nt,se,ue,me,$,he,Ei,Hi,Vi,Ge,Be,Ni,Ai,ze,te,ai,ee],styles:["[_nghost-%COMP%]{display:flex}.t-select[_ngcontent-%COMP%]{width:5.875rem}.t-opacity[_ngcontent-%COMP%]{width:4.275rem}.t-rgb[_ngcontent-%COMP%], .t-opacity[_ngcontent-%COMP%]{text-align:center}"],changeDetection:0});let o=t;return o})(),qn=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275mod=M({type:t}),t.\u0275inj=I({imports:[w,le,ge,U,Ue,Ri,pe,te,ee]});let o=t;return o})(),fe=(()=>{let t=class t extends xe{constructor(){let e=$e(),i=g(ae),n=Le(e,"mousedown").pipe(ei(),H(a=>{let f=Le(i,"mousemove").pipe(K(({clientX:h,clientY:Xe})=>rt(h,Xe,e)),St(Le(i,"mouseup")));return a.target===e?f.pipe(q(rt(a.clientX,a.clientY,e))):f}),be());super(a=>n.subscribe(a))}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=A({token:t,factory:t.\u0275fac});let o=t;return o})(),Xn=(()=>{let t=class t{constructor(){this.value=[0,0],this.valueChange=new L,g(fe).pipe(be()).subscribe(e=>{this.value=e,this.valueChange.emit([e[0],e[1]])})}get left(){return this.value[0]*100}get top(){return this.value[1]*100}};t.\u0275fac=function(i){return new(i||t)},t.\u0275cmp=T({type:t,selectors:[["tui-flat-picker"]],inputs:{value:"value"},outputs:{valueChange:"valueChange"},features:[N([fe])],decls:1,vars:4,consts:[[1,"t-circle"]],template:function(i,n){i&1&&y(0,"div",0),i&2&&x("left",n.left,"%")("top",n.top,"%")},styles:["[_nghost-%COMP%]{position:relative;display:block}.t-circle[_ngcontent-%COMP%]{position:absolute;width:1rem;height:1rem;border-radius:100%;margin:-.5rem 0 0 -.5rem;box-shadow:inset 0 0 0 1px var(--tui-base-01),0 0 0 1px var(--tui-base-03)}"],changeDetection:0});let o=t;return o})(),Qn=(()=>{let t=class t{constructor(){this.value=0,this.valueChange=new L,g(fe).pipe(be()).subscribe(([e])=>{this.value=e,this.valueChange.emit(e)})}get left(){return this.value*100}};t.\u0275fac=function(i){return new(i||t)},t.\u0275cmp=T({type:t,selectors:[["tui-linear-picker"]],inputs:{value:"value"},outputs:{valueChange:"valueChange"},features:[N([fe])],decls:1,vars:2,consts:[[1,"t-circle"]],template:function(i,n){i&1&&y(0,"div",0),i&2&&x("left",n.left,"%")},styles:["[_nghost-%COMP%]{position:relative;display:block;height:1rem;box-sizing:border-box}.t-circle[_ngcontent-%COMP%]{position:absolute;width:1rem;height:1rem;border-radius:100%;margin:0 -.5rem;box-shadow:inset 0 0 0 2px var(--tui-base-01),0 0 0 1px var(--tui-base-03)}"],changeDetection:0});let o=t;return o})(),Zn=(()=>{let t=class t{constructor(){this.sanitizer=g(z),this.point=[0,1],this.hue=0,this.opacity=1,this.colorChange=new L}set color(e){if(this.currentColor.every((f,h)=>f===e[h])&&e[3]===this.opacity)return;let[i,n,a]=Wi(e[0],e[1],e[2]);this.opacity=e[3],this.hue=i/360,this.point=[n,1-a/255]}get currentColor(){return this.getCurrentColor(this.hue,this.point)}get base(){return`rgb(${ht(this.hue*360,1,255)})`}get gradient(){return this.sanitizer.bypassSecurityTrustStyle(`linear-gradient(to right, rgba(${this.currentColor.join(",")}, 0), rgb(${this.currentColor.join(",")}))`)}onPointChange(e){this.point=e,this.updateColor()}onHueChange(e){this.hue=e,this.updateColor()}onOpacityChange(e){this.opacity=Ut(e,2),this.updateColor()}getCurrentColor(e,i){return ht(e*360,i[0],(1-i[1])*255)}updateColor(){this.colorChange.emit([...this.currentColor,this.opacity])}};t.\u0275fac=function(i){return new(i||t)},t.\u0275cmp=T({type:t,selectors:[["tui-color-picker"]],inputs:{color:"color"},outputs:{colorChange:"colorChange"},decls:5,vars:7,consts:[[1,"t-flat",3,"valueChange","value"],[1,"t-wrapper","t-wrapper_hue"],[1,"t-hue",3,"valueChange","value"],[1,"t-wrapper","t-wrapper_opacity"],[1,"t-opacity",3,"valueChange","value"]],template:function(i,n){i&1&&(s(0,"tui-flat-picker",0),_("valueChange",function(f){return n.onPointChange(f)}),u(),s(1,"div",1)(2,"tui-linear-picker",2),_("valueChange",function(f){return n.onHueChange(f)}),u()(),s(3,"div",3)(4,"tui-linear-picker",4),_("valueChange",function(f){return n.onOpacityChange(f)}),u()()),i&2&&(x("background-color",n.base),l("value",n.point),c(2),l("value",n.hue),c(),x("background",n.gradient),c(),l("value",n.opacity))},dependencies:[Xn,Qn],styles:['[_nghost-%COMP%]{position:relative;display:block;isolation:isolate}.t-flat[_ngcontent-%COMP%]{height:14rem;background:linear-gradient(#0000,#000),linear-gradient(to right,#fff,#fff0);margin-bottom:.25rem;overflow:hidden}.t-wrapper[_ngcontent-%COMP%]{position:relative;margin:1rem 1.25rem;border-radius:.5rem}.t-wrapper[_ngcontent-%COMP%]:after{position:absolute;top:0;left:0;width:100%;height:100%;content:"";box-shadow:inset 0 0 0 1px #00000014;pointer-events:none;border-radius:inherit}.t-wrapper_hue[_ngcontent-%COMP%]{background:red}.t-wrapper_opacity[_ngcontent-%COMP%]:before{position:absolute;top:0;left:0;width:100%;height:100%;content:"";z-index:-1;background-image:linear-gradient(45deg,var(--tui-base-03) 25%,transparent 25%,transparent 75%,var(--tui-base-03) 75%,var(--tui-base-03)),linear-gradient(45deg,var(--tui-base-03) 25%,transparent 25%,transparent 75%,var(--tui-base-03) 75%,var(--tui-base-03));background-size:.375rem .375rem;background-position:0 0,.1875rem .1875rem;border-radius:inherit}.t-hue[_ngcontent-%COMP%]{background:linear-gradient(to right,red,#ff0,#0f0,#0ff,#00f,#f0f,red);border-radius:inherit;margin:0 .5rem}.t-opacity[_ngcontent-%COMP%]{border-radius:inherit;margin:0 .5rem}'],changeDetection:0});let o=t;return O([E],o.prototype,"getCurrentColor",null),o})(),Jn=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275mod=M({type:t}),t.\u0275inj=I({imports:[w]});let o=t;return o})(),eo=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275mod=M({type:t}),t.\u0275inj=I({imports:[w]});let o=t;return o})(),to=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275mod=M({type:t}),t.\u0275inj=I({imports:[w,Jn,eo]});let o=t;return o})(),io=new Ie("[TUI_COLOR_SELECTOR_MODE_NAMES]",{factory:()=>["Solid color","Gradient"]}),en=new Map([["color-black-100","#909090"],["color-black-200","#666666"],["color-black-300","#333333"],["color-blue-100","#1771e6"],["color-blue-200","#1464cc"],["color-blue-300","#0953b3"],["color-gray-100","#f5f5f6"],["color-gray-200","#e7e8ea"],["color-gray-300","#cbcfd3"],["color-gray-400","#959ba4"],["color-gray-500","#79818c"],["color-gray-600","#616871"],["color-green-100","#39b54a"],["color-green-200","#2ca53a"],["color-green-300","#168a21"],["color-light-blue-100","#ecf1f7"],["color-light-blue-200","#e4ebf3"],["color-light-blue-300","#dde4ed"],["color-red-100","#e01f19"],["color-red-200","#d3120e"],["color-red-300","#c40b08"],["color-yellow-100","#FFDD2C"],["color-yellow-200","#FCC521"],["color-yellow-300","#FAB618"],["transparent","transparent"]]),ft={SolidColor:0,Gradient:1},no={selectorMode:!0,mode:ft.SolidColor,color:[0,0,0,1],colors:new Map,gradient:{icons:{"to top right":"@tui.move-up-right","to right":"@tui.move-right","to bottom right":"@tui.move-down-right","to bottom":"@tui.move-down","to bottom left":"@tui.move-down-left","to left":"@tui.move-left","to top left":"@tui.move-up-left","to top":"@tui.move-up"},steps:[[0,[0,0,0,1]],[1,[255,255,255,1]]],stop:0,direction:"to bottom",emptyStop:[0,0,0,0],buttons:["to top right","to right","to bottom right","to bottom","to bottom left","to left","to top left","to top"]}},oo=Wt(no);var ro=(()=>{let t=class t{constructor(){this.value=[0,1],this.valueChange=new L,this.indexChange=new L,this.index=NaN,g(fe).pipe(be()).subscribe(([e])=>this.onPicker(e))}onMouseUp(){this.index=NaN}onMouseDown(e){this.updateIndex(e)}onClick(e){this.value.length>2&&this.updateValue(this.value.filter((i,n)=>n!==e))}onPicker(e){Number.isNaN(this.index)&&(this.updateIndex(this.value.length),this.value=[...this.value,0]),!this.value.some((i,n)=>i===e&&n!==this.index)&&this.updateValue(this.value.map((i,n)=>n===this.index?e:i))}updateIndex(e){this.index=e,this.indexChange.emit(e)}updateValue(e){this.value=e,this.valueChange.emit(e)}};t.\u0275fac=function(i){return new(i||t)},t.\u0275cmp=T({type:t,selectors:[["tui-linear-multi-picker"]],hostBindings:function(i,n){i&1&&_("mouseup",function(){return n.onMouseUp()},!1,Pt)},inputs:{value:"value"},outputs:{valueChange:"valueChange",indexChange:"indexChange"},features:[N([fe])],decls:1,vars:1,consts:[["class","t-circle",3,"left","dblclick","mousedown",4,"ngFor","ngForOf"],[1,"t-circle",3,"dblclick","mousedown"]],template:function(i,n){i&1&&b(0,Ln,1,2,"div",0),i&2&&l("ngForOf",n.value)},dependencies:[J],styles:[Nn],changeDetection:0});let o=t;return o})(),ao=(()=>{let t=class t{constructor(){this.colors=new Map,this.selectedColor=new L,this.originalOrder=(e,i)=>0}};t.\u0275fac=function(i){return new(i||t)},t.\u0275cmp=T({type:t,selectors:[["tui-palette"]],inputs:{colors:"colors"},outputs:{selectedColor:"selectedColor"},decls:2,vars:4,consts:[["type","button","class","t-button",3,"id","background","tuiHint","tuiHintDescribe","click",4,"ngFor","ngForOf"],["type","button",1,"t-button",3,"click","id","tuiHint","tuiHintDescribe"]],template:function(i,n){i&1&&(b(0,An,1,5,"button",0),re(1,"keyvalue")),i&2&&l("ngForOf",Ht(1,1,n.colors,n.originalOrder))},dependencies:[J,at,ut,At],styles:["[_nghost-%COMP%]{display:flex;flex-wrap:wrap;padding:.875rem}.t-button[_ngcontent-%COMP%]{-webkit-appearance:none;appearance:none;padding:0;background:none;font-size:inherit;line-height:inherit;width:1.5625rem;height:1.5625rem;box-sizing:border-box;margin:.375rem;border-radius:var(--tui-radius-m);border:1px solid rgba(0,0,0,.08)}"],changeDetection:0});let o=t;return o})(),tn=(()=>{let t=class t{constructor(){this.selectorOptions=g(oo),this.stops=new Map(this.selectorOptions.gradient.steps),this.currentStop=this.selectorOptions.gradient.stop,this.direction=this.selectorOptions.gradient.direction,this.sanitizer=g(z),this.open=!1,this.colors=this.selectorOptions.colors,this.colorChange=new L,this.color=this.selectorOptions.color,this.modes=g(io),this.currentMode=this.modes[this.selectorOptions.mode],this.buttons=this.selectorOptions.gradient.buttons}set colorSetter(e){e.startsWith("linear-gradient")?this.parseGradient(e):this.parseColor(e)}get selectorMode(){return this.selectorOptions.selectorMode}get palette(){return this.filterPalette(this.colors,this.isGradient)}get stopsKeys(){return this.getStopsKeys(this.stops)}get currentColor(){return this.isGradient?this.getStop(this.currentStop):this.color}get gradient(){return this.sanitizer.bypassSecurityTrustStyle(this.getGradient("to right"))}get isGradient(){return this.currentMode===this.modes[ft.Gradient]}getIcon(e){return this.selectorOptions.gradient.icons[e]}isModeActive(e){return this.currentMode===e}isDirectionActive(e){return this.direction===e}onPalettePick(e){this.updateColor(e)}onDirectionChange(e){this.direction=e,this.updateColor(this.getGradient(e))}onModeSelect(e){this.currentMode=e,this.open=!1,this.updateColor(e===this.modes[ft.SolidColor]?`rgba(${this.color.join(", ")})`:this.getGradient(this.direction))}onIndexChange(e){this.currentStop=this.stopsKeys[e]}onColorChange(e){if(!this.isGradient){this.updateColor(`rgba(${e.join(", ")})`);return}this.stops.set(this.currentStop,e),this.updateColor(this.getGradient(this.direction))}onStopsChange(e){let i=this.stopsKeys.find(a=>!e.includes(a)),n=e.find(a=>!this.stopsKeys.includes(a));i===void 0&&n!==void 0&&this.addStop(n),i!==void 0&&n===void 0&&this.removeStop(i),i!==void 0&&n!==void 0&&this.replaceStop(i,n),this.updateColor(this.getGradient(this.direction))}getStopsKeys(e){return Array.from(e.keys())}filterPalette(e,i){let n=new Map(e);return n.forEach((a,f)=>{(a.startsWith("linear-gradient")&&!i||!a.startsWith("linear-gradient")&&i)&&n.delete(f)}),n}updateColor(e){this.colorChange.emit(e)}getGradient(e){return`linear-gradient(${e}, ${[...this.stopsKeys].sort(Kt).map(i=>`rgba(${this.getStop(i).join(", ")}) ${i*100}%`).join(", ")})`}getStop(e){return this.stops.get(e)||this.selectorOptions.gradient.emptyStop}addStop(e){let i=this.stopsKeys.reduce((n,a)=>Math.abs(a-e)a===e?[i,n]:[a,this.getStop(a)]))}parseGradient(e){if(e===this.getGradient(this.direction))return;let i=Ke(We(e));this.direction=i.side,this.currentStop=this.selectorOptions.gradient.stop,this.stops=new Map(i.stops.length?i.stops.map(({color:n,position:a})=>[parseFloat(a)/100,Ye(n)]):this.selectorOptions.gradient.steps)}parseColor(e){this.currentStop=this.selectorOptions.gradient.stop,this.color=Ye(e)}};t.\u0275fac=function(i){return new(i||t)},t.\u0275cmp=T({type:t,selectors:[["tui-color-selector"]],inputs:{colors:"colors",colorSetter:[0,"color","colorSetter"]},outputs:{colorChange:"colorChange"},decls:5,vars:5,consts:[["menu",""],[4,"ngIf"],[3,"colorChange","color"],["tuiGroup","","class","t-edit",3,"color","colorChange",4,"ngIf"],["class","t-palette",3,"colors","selectedColor",4,"ngIf"],[1,"t-select",3,"tuiDropdownOpenChange","tuiDropdown","tuiDropdownOpen"],["appearance","","size","s","tuiButton","","tuiChevron","","type","button"],[1,"t-hr"],["role","menu","size","s",1,"t-menu"],["role","menuitemradio","tuiOption","",3,"click","keydown.enter.prevent","keydown.space.prevent",4,"ngFor","ngForOf"],["role","menuitemradio","tuiOption","",3,"click","keydown.enter.prevent","keydown.space.prevent"],["icon","@tui.check","class","t-checkmark",4,"ngIf"],["icon","@tui.check",1,"t-checkmark"],[1,"t-wrapper"],[1,"t-gradient",3,"indexChange","valueChange","value"],[1,"t-buttons"],["appearance","","size","xs","tuiHintDescribe","","tuiIconButton","","type","button","class","t-direction",3,"t-direction_active","iconStart","tuiHint","click",4,"ngFor","ngForOf"],["appearance","","size","xs","tuiHintDescribe","","tuiIconButton","","type","button",1,"t-direction",3,"click","iconStart","tuiHint"],["tuiGroup","",1,"t-edit",3,"colorChange","color"],[1,"t-palette",3,"selectedColor","colors"]],template:function(i,n){i&1&&(b(0,Gn,7,3,"ng-container",1)(1,Un,5,4,"ng-container",1),s(2,"tui-color-picker",2),_("colorChange",function(f){return n.onColorChange(f)}),u(),b(3,Wn,1,1,"tui-color-edit",3)(4,Yn,1,1,"tui-palette",4)),i&2&&(l("ngIf",n.selectorMode),c(),l("ngIf",n.isGradient),c(),l("color",n.currentColor),c(),l("ngIf",!n.isGradient),c(),l("ngIf",n.palette.size))},dependencies:[J,nt,ce,Zn,ro,Kn,G,B,te,ee,ui,ao,at,ut,pi,de],styles:['[_nghost-%COMP%]{position:relative;display:block;isolation:isolate;width:22.6rem}.t-wrapper[_ngcontent-%COMP%]{position:relative;margin:1.25rem;border-radius:.5rem}.t-wrapper[_ngcontent-%COMP%]:after{position:absolute;top:0;left:0;width:100%;height:100%;content:"";box-shadow:inset 0 0 0 1px #00000014;pointer-events:none;border-radius:inherit}.t-wrapper[_ngcontent-%COMP%]:before{position:absolute;top:0;left:0;width:100%;height:100%;content:"";z-index:-1;background-image:linear-gradient(45deg,var(--tui-base-03) 25%,transparent 25%,transparent 75%,var(--tui-base-03) 75%,var(--tui-base-03)),linear-gradient(45deg,var(--tui-base-03) 25%,transparent 25%,transparent 75%,var(--tui-base-03) 75%,var(--tui-base-03));background-size:.375rem .375rem;background-position:0 0,.1875rem .1875rem;border-radius:inherit}.t-hr[_ngcontent-%COMP%]{height:1px;margin:0 0 0 -1px;border:none;background:var(--tui-base-03)}.t-gradient[_ngcontent-%COMP%]{margin:0 .5rem;border-radius:inherit}.t-select[_ngcontent-%COMP%]{margin:.75rem .5rem 0}.t-arrow[_ngcontent-%COMP%]{transition-property:transform;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out}.t-arrow_rotated[_ngcontent-%COMP%]{transform:rotate(180deg)}.t-menu[_ngcontent-%COMP%]{width:11.25rem}.t-checkmark[_ngcontent-%COMP%]{margin-left:auto;width:1rem;height:1rem}.t-buttons[_ngcontent-%COMP%]{display:flex;padding:0 .75rem 1.25rem;justify-content:space-between}.t-direction[_ngcontent-%COMP%]{color:var(--tui-text-02);margin:0 .375rem}.t-direction[_ngcontent-%COMP%]:hover, .t-direction_active[_ngcontent-%COMP%]{color:var(--tui-text-01);background:var(--tui-secondary-hover)}.t-edit[_ngcontent-%COMP%]{margin:1.25rem}.t-palette[_ngcontent-%COMP%]{box-sizing:border-box;box-shadow:inset 0 1px var(--tui-base-03)}'],changeDetection:0});let o=t;return O([E],o.prototype,"getStopsKeys",null),O([E],o.prototype,"filterPalette",null),o})(),so=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275mod=M({type:t}),t.\u0275inj=I({imports:[w]});let o=t;return o})(),uo=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275mod=M({type:t}),t.\u0275inj=I({imports:[w,st]});let o=t;return o})(),nn=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275mod=M({type:t}),t.\u0275inj=I({imports:[w,qi,to,so,qn,uo,de,st,te,ee]});let o=t;return o})();var co=["*"];function po(o,t){if(o&1&&y(0,"div",4),o&2){let r=p();x("background",r.background)}}function mo(o,t){if(o&1){let r=v();s(0,"tui-color-selector",5),P("colorChange",function(i){d(r);let n=p();return k(n.value,i)||(n.value=i),m(i)}),u()}if(o&2){let r=p();l("colors",r.colors),D("color",r.value)}}var on=(()=>{let t=class t extends Ii{constructor(){super(...arguments),this.domSanitizer=g(z),this.colors=new Map,this.open=!1}get focused(){var e;return!!((e=this.textfield)!=null&&e.focused)}get nativeFocusableElement(){return this.computedDisabled||!this.textfield?null:this.textfield.nativeFocusableElement}get background(){return this.sanitize(this.value,this.domSanitizer)}get mode(){return this.value.startsWith("#")?"hex":this.value.startsWith("rgb")?"rgb":"gradient"}maskitoOptions(e){return e==="hex"?{mask:["#",...new Array(6).fill(/[0-9a-f]/i)]}:null}onClick(){this.open=!this.open}onValueChange(e){this.value=e}onFocused(e){this.updateFocused(e)}getFallbackValue(){return"#000000"}sanitize(e,i){return e.startsWith("linear-gradient(")?i.bypassSecurityTrustStyle(Bi(Ke(We(e)))):e}};t.\u0275fac=(()=>{let e;return function(n){return(e||(e=_e(t)))(n||t)}})(),t.\u0275cmp=T({type:t,selectors:[["tui-input-color"]],viewQuery:function(i,n){if(i&1&&ke($,5),i&2){let a;Pe(a=Ee())&&(n.textfield=a.first)}},hostBindings:function(i,n){i&1&&_("click",function(){return n.onClick()})},inputs:{colors:"colors"},features:[N([],[oi({maxHeight:600})]),Ce],ngContentSelectors:co,decls:7,vars:13,consts:[["color",""],["picker",""],[1,"t-wrapper",3,"tuiDropdownOpenChange","tuiDropdown","tuiDropdownOpen"],[1,"t-textfield",3,"valueChange","focusedChange","disabled","focusable","invalid","maskito","nativeId","pseudoActive","pseudoFocus","pseudoHover","readOnly","tuiTextfieldIconLeft","value"],[1,"t-color"],[3,"colorChange","colors","color"]],template:function(i,n){if(i&1){let a=v();De(),s(0,"div",2),P("tuiDropdownOpenChange",function(h){return d(a),k(n.open,h)||(n.open=h),m(h)}),s(1,"tui-primitive-textfield",3),P("valueChange",function(h){return d(a),k(n.value,h)||(n.value=h),m(h)}),_("focusedChange",function(h){return d(a),m(n.onFocused(h))}),ve(2),u()(),b(3,po,1,2,"ng-template",null,0,F)(5,mo,1,2,"ng-template",null,1,F)}if(i&2){let a=V(4),f=V(6);l("tuiDropdown",f),D("tuiDropdownOpen",n.open),c(),l("disabled",n.disabled)("focusable",n.focusable)("invalid",n.computedInvalid)("maskito",n.maskitoOptions(n.mode))("nativeId",n.nativeId)("pseudoActive",n.pseudoActive)("pseudoFocus",n.computedFocused)("pseudoHover",n.pseudoHover)("readOnly",n.readOnly)("tuiTextfieldIconLeft",a),D("value",n.value)}},dependencies:[$,he,Pi,tn,me,G,B],styles:["[_nghost-%COMP%]{display:block;border-radius:var(--tui-radius-m);text-align:left}.t-wrapper[_ngcontent-%COMP%]{display:flex;border-radius:inherit;width:100%}.t-textfield[_ngcontent-%COMP%]{border-radius:inherit;text-align:inherit;width:inherit}.t-textfield[_ngcontent-%COMP%] .t-input{text-transform:lowercase!important}.t-color[_ngcontent-%COMP%]{width:1.5rem;height:1.5rem;box-shadow:inset 0 0 0 1px var(--tui-base-03-dark);border-radius:.125rem;pointer-events:auto!important}"],changeDetection:0});let o=t;return O([E],o.prototype,"maskitoOptions",null),O([E],o.prototype,"sanitize",null),o})(),rn=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275mod=M({type:t}),t.\u0275inj=I({imports:[w,ge,U,nn,pe]});let o=t;return o})();var ho=["*",[["input"]]],go=["*","input"];function fo(o,t){if(o&1){let r=v();s(0,"div",2)(1,"tui-scrollbar",3)(2,"tui-calendar-year",4),_("mousedown.prevent.silent",function(){return d(r),m(0)})("yearClick",function(i){d(r);let n=p();return m(n.onYearClick(i))}),u()()()}if(o&2){let r=p();c(2),l("disabledItemHandler",r.disabledItemHandler)("initialItem",r.value||r.initialItem)("max",r.max)("min",r.min)("value",r.value===null?null:r.value)}}var _o=/^\d{0,4}$/,an=(()=>{let t=class t extends Oi{constructor(){super(...arguments),this.options=g(hi),this.textfieldSize=g($i),this.open=!1,this.initialItem=new Date().getFullYear(),this.min=this.options.min.year,this.max=this.options.max.year,this.disabledItemHandler=Qt,this.nativeValue=""}get nativeFocusableElement(){var e;return((e=this.textfield)==null?void 0:e.nativeFocusableElement)||null}get focused(){var e;return!!((e=this.textfield)!=null&&e.focused)}onValueChange(e){this.value=e?Number(e):null}writeValue(e){super.writeValue(e),this.updateNativeValue(e)}get size(){return this.textfieldSize.size}get calendarIcon(){return this.options.icon}getMaskOptions(e,i){return ne(ie({},_i({min:e??Zt,max:i??Jt,thousandSeparator:""})),{mask:_o})}onYearClick(e){this.value=e,this.updateNativeValue(e),this.onOpenChange(!1)}onFocused(e){this.updateFocused(e)}onOpenChange(e){this.open=e}toggle(){this.open=!this.open}updateNativeValue(e){this.nativeValue=(e==null?void 0:e.toString())||""}};t.\u0275fac=(()=>{let e;return function(n){return(e||(e=_e(t)))(n||t)}})(),t.\u0275cmp=T({type:t,selectors:[["tui-input-year"]],viewQuery:function(i,n){if(i&1&&ke($,5),i&2){let a;Pe(a=Ee())&&(n.textfield=a.first)}},hostVars:1,hostBindings:function(i,n){i&2&&Oe("data-size",n.size)},inputs:{min:"min",max:"max",disabledItemHandler:"disabledItemHandler"},features:[N([yi(t),Mi(t)]),Ce],ngContentSelectors:go,decls:5,vars:12,consts:[["dropdown",""],[1,"t-textfield",3,"valueChange","click","focusedChange","tuiDropdownOpenChange","disabled","invalid","maskito","nativeId","pseudoFocus","pseudoHover","readOnly","tuiDropdown","tuiDropdownEnabled","tuiDropdownOpen","tuiTextfieldIcon","value"],[1,"t-container"],[1,"t-scrollbar"],[3,"mousedown.prevent.silent","yearClick","disabledItemHandler","initialItem","max","min","value"]],template:function(i,n){if(i&1){let a=v();De(ho),s(0,"tui-primitive-textfield",1),P("valueChange",function(h){return d(a),k(n.nativeValue,h)||(n.nativeValue=h),m(h)}),_("click",function(){return d(a),m(n.toggle())})("focusedChange",function(h){return d(a),m(n.onFocused(h))})("tuiDropdownOpenChange",function(h){return d(a),m(n.onOpenChange(h))})("valueChange",function(h){return d(a),m(n.onValueChange(h))}),ve(1),ve(2,1,["ngProjectAs","input",5,["input"]]),u(),b(3,fo,3,5,"ng-template",null,0,F)}if(i&2){let a=V(4);l("disabled",n.computedDisabled)("invalid",n.computedInvalid)("maskito",n.getMaskOptions(n.min,n.max))("nativeId",n.nativeId)("pseudoFocus",n.pseudoFocus)("pseudoHover",n.pseudoHover)("readOnly",n.readOnly)("tuiDropdown",a)("tuiDropdownEnabled",n.interactive)("tuiDropdownOpen",n.open&&n.interactive)("tuiTextfieldIcon",n.calendarIcon),D("value",n.nativeValue)}},dependencies:[me,B,$,he,Ae,Re,ki,G],styles:["[_nghost-%COMP%]{display:block;border-radius:var(--tui-radius-m);text-align:left}.t-container[_ngcontent-%COMP%]{width:15.75rem;padding:1rem 1.125rem}.t-scrollbar[_ngcontent-%COMP%]{max-height:18.25rem;width:16.875rem}.t-textfield[_ngcontent-%COMP%]{border-radius:inherit;text-align:inherit}"],changeDetection:0});let o=t;return O([E],o.prototype,"getMaskOptions",null),o})(),sn=(()=>{let t=class t extends Si{get value(){return this.host.nativeValue}onValueChange(e){this.host.onValueChange(e),this.host.nativeValue=e}process(e){e.inputMode="numeric"}};t.\u0275fac=(()=>{let e;return function(n){return(e||(e=_e(t)))(n||t)}})(),t.\u0275dir=et({type:t,selectors:[["tui-input-year"]],features:[N([wi(t)]),Ce]});let o=t;return o})(),un=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275mod=M({type:t}),t.\u0275inj=I({imports:[ge,Ae,Re,U,pe]});let o=t;return o})();var ln=(()=>{let t=class t{transform(e){return zi(e)}};t.\u0275fac=function(i){return new(i||t)},t.\u0275pipe=Dt({name:"tuiCurrency",type:t,pure:!0,standalone:!0});let o=t;return o})();var vo=()=>["Edit","Download","Rename","Delete"];function bo(o,t){if(o&1&&(s(0,"button",19),y(1,"tui-avatar",20),s(2,"div",3),C(3," Title "),s(4,"div",4),C(5,"Description"),u()(),y(6,"tui-icon",21),u()),o&2){p();let r=V(21);l("tuiDropdown",r)("tuiDropdownSided",!0)}}function To(o,t){if(o&1&&(s(0,"button",24),C(1),u()),o&2){let r=t.$implicit;c(),S(" ",r," ")}}function yo(o,t){if(o&1){let r=v();s(0,"tui-data-list")(1,"tui-opt-group"),b(2,To,2,1,"button",22),u(),s(3,"tui-opt-group")(4,"button",23),_("click",function(){let i=d(r).$implicit;return m(i())}),C(5," Nevermind "),u()()()}o&2&&(c(2),l("ngForOf",R(1,vo)))}function xo(o,t){if(o&1&&(s(0,"tui-badge",15),C(1),u()),o&2){let r=t.$implicit;l("appearance",r),c(),S(" ",r.charAt(0).toUpperCase()+r.slice(1)," ")}}function wo(o,t){if(o&1&&(s(0,"button",18),C(1),u()),o&2){let r=t.$implicit;l("appearance",r),c(),S(" ",r.charAt(0).toUpperCase()+r.slice(1)," ")}}var cn=(()=>{let t=class t{constructor(){this.exampleControl=new ot(100),this.exampleYearControl=new ot(null),this.badges=["primary","accent","success","error","warning","neutral","info"],this.buttons=["primary","accent","destructive","flat","outline"],this.theme=Se("")}};t.\u0275fac=function(i){return new(i||t)},t.\u0275cmp=T({type:t,selectors:[["lmb-theme-example"]],hostVars:2,hostBindings:function(i,n){i&2&&Vt(n.theme())},inputs:{theme:"theme"},standalone:!0,features:[oe],decls:35,vars:10,consts:[["dropdown",""],["tuiAppearance","whiteblock","tuiCardLarge","normal",1,"example-block"],["tuiHeader","l"],["tuiTitle",""],["tuiSubtitle",""],[3,"formControl","tuiTextfieldPrefix"],[1,"tui-row"],[1,"tui-col_md-6"],["tuiCardLarge","","tuiSurface","elevated"],["tuiHeader",""],["tuiCell","l","tuiDropdownAlign","right","tuiDropdownOpen","",3,"tuiDropdown","tuiDropdownSided",4,"tuiRepeatTimes","tuiRepeatTimesOf"],["tuiLink","","type","button"],[3,"formControl","tuiTextfieldCleaner"],["placeholder","Not 2022 please","tuiTextfieldLegacy",""],[1,"list"],[3,"appearance"],["size","m","tuiCheckbox","","type","checkbox",3,"ngModel"],["size","m","tuiSwitch","","type","checkbox",3,"disabled","ngModel"],["tuiButton","",3,"appearance"],["tuiCell","l","tuiDropdownAlign","right","tuiDropdownOpen","",3,"tuiDropdown","tuiDropdownSided"],["appearance","primary","src","@tui.star"],["icon","@tui.chevron-right","tuiAppearance","icon"],["tuiOption","",4,"ngFor","ngForOf"],["tuiOption","",3,"click"],["tuiOption",""]],template:function(i,n){i&1&&(s(0,"div",1)(1,"div",2)(2,"h3",3),C(3," Title example "),s(4,"div",4),C(5,"Subtitle example"),u()()(),s(6,"tui-input-number",5),re(7,"tuiCurrency"),C(8," Type a sum "),u(),s(9,"div",6)(10,"div",7)(11,"div",8)(12,"header",9)(13,"h1",3),C(14," Title "),s(15,"span",4),C(16,"Subtitle"),u()()(),b(17,bo,7,2,"button",10),s(18,"button",11),C(19," Show all "),u()(),b(20,yo,6,2,"ng-template",null,0,F),u(),s(22,"div",7)(23,"div",8)(24,"tui-input-year",12),C(25," Choose a year "),y(26,"input",13),u(),s(27,"div",14),Q(28,xo,2,2,"tui-badge",15,X),u(),y(30,"input",16)(31,"input",17),u()()(),s(32,"div",14),Q(33,wo,2,2,"button",18,X),u()()),i&2&&(c(6),l("formControl",n.exampleControl)("tuiTextfieldPrefix",Ve(7,8,"USD")),c(11),l("tuiRepeatTimesOf",3),c(7),l("formControl",n.exampleYearControl)("tuiTextfieldCleaner",!0),c(4),Z(n.badges),c(2),l("ngModel",!0),c(),l("disabled",!0)("ngModel",!0),c(2),Z(n.buttons))},dependencies:[w,J,le,jt,se,ue,Bt,Gt,Xt,di,mi,ce,Ci,vi,gi,ln,te,ee,si,ze,G,B,ri,je,de,Ue,Ge,Be,Li,un,an,sn,ti,ni,li,fi,ci,U,Di,Fi,Ne],styles:["@media (max-width: 1250px){.tui-row[_ngcontent-%COMP%]{gap:1rem}.tui-col_md-6[_ngcontent-%COMP%]{width:100%}}.example-block[_ngcontent-%COMP%]{position:sticky;top:7rem;height:max-content;background-color:var(--tui-background-base)}@media (max-width: 570px){.example-block[_ngcontent-%COMP%]{display:none}}.list[_ngcontent-%COMP%]{display:flex;gap:1rem;flex-wrap:wrap}.actions[_ngcontent-%COMP%]{display:flex;flex-direction:column}"],changeDetection:0});let o=t;return o})();var pn=[{title:"Backgrounds",colors:[{name:"background-base",initialValue:"#fff",variable:"--tui-background-base"},{name:"background-base-alt",initialValue:"#f6f6f6",variable:"--tui-background-base-alt"},{name:"background-neutral-1",initialValue:"rgba(0, 0, 0, 0.04)",variable:"--tui-background-neutral-1"},{name:"background-neutral-1-hover",initialValue:"rgba(0, 0, 0, 0.08)",variable:"--tui-background-neutral-1-hover"},{name:"background-neutral-1-pressed",initialValue:"rgba(0, 0, 0, 0.12)",variable:"--tui-background-neutral-1-pressed"},{name:"background-neutral-2",initialValue:"rgba(0, 0, 0, 0.08)",variable:"--tui-background-neutral-2"},{name:"background-neutral-2-hover",initialValue:"rgba(0, 0, 0, 0.1)",variable:"--tui-background-neutral-2-hover"},{name:"background-neutral-2-pressed",initialValue:"rgba(0, 0, 0, 0.14)",variable:"--tui-background-neutral-2-pressed"},{name:"background-primary",initialValue:"#526ed3",variable:"--tui-background-accent-1"},{name:"background-primary-hover",initialValue:"#6c86e2",variable:"--tui-background-accent-1-hover"},{name:"background-primary-pressed",initialValue:"#314692",variable:"--tui-background-accent-1-pressed"},{name:"background-accent",initialValue:"#ff7043",variable:"--tui-background-accent-2"},{name:"background-accent-hover",initialValue:"#ff9a94",variable:"--tui-background-accent-2-hover"},{name:"background-accent-pressed",initialValue:"#e7716a",variable:"--tui-background-accent-2-pressed"},{name:"background-accent-opposite",initialValue:"#000",variable:"--tui-background-accent-opposite"},{name:"background-accent-opposite-hover",initialValue:"#333",variable:"--tui-background-accent-opposite-hover"},{name:"background-accent-opposite-pressed",initialValue:"#808080",variable:"--tui-background-accent-opposite-pressed"},{name:"background-elevation-1",initialValue:"#fff",variable:"--tui-background-elevation-1"},{name:"background-elevation-2",initialValue:"#fff",variable:"--tui-background-elevation-2"},{name:"service-autofill-background",initialValue:"#fff5c0",variable:"--tui-service-autofill-background"}]},{title:"Others",colors:[{name:"border-normal",initialValue:"rgba(0, 0, 0, 0.1)",variable:"--tui-border-normal"},{name:"border-hover",initialValue:"rgba(0, 0, 0, 0.16)",variable:"--tui-border-hover"},{name:"border-focus",initialValue:"rgba(51, 51, 51, 0.64)",variable:"--tui-border-focus"}]},{title:"Statuses",colors:[{name:"status-negative",initialValue:"rgba(244, 87, 37, 1)",variable:"--tui-status-negative"},{name:"status-negative-pale",initialValue:"rgba(244, 87, 37, 0.12)",variable:"--tui-status-negative-pale"},{name:"status-negative-pale-hover",initialValue:"rgba(244, 87, 37, 0.24)",variable:"--tui-status-negative-pale-hover"},{name:"status-positive",initialValue:"rgba(74, 201, 155, 1)",variable:"--tui-status-positive"},{name:"status-positive-pale",initialValue:"rgba(74, 201, 155, 0.12)",variable:"--tui-status-positive-pale"},{name:"status-positive-pale-hover",initialValue:"rgba(74, 201, 155, 0.24)",variable:"--tui-status-positive-pale-hover"},{name:"status-warning",initialValue:"rgba(255, 199, 0, 1)",variable:"--tui-status-warning"},{name:"status-warning-pale",initialValue:"rgba(255, 199, 0, 0.12)",variable:"--tui-status-warning-pale"},{name:"status-warning-pale-hover",initialValue:"rgba(255, 199, 0, 0.24)",variable:"--tui-status-warning-pale-hover"},{name:"status-info",initialValue:"rgba(112, 182, 246, 1)",variable:"--tui-status-info"},{name:"status-info-pale",initialValue:"rgba(112, 182, 246, 0.12)",variable:"--tui-status-info-pale"},{name:"status-info-pale-hover",initialValue:"rgba(112, 182, 246, 0.24)",variable:"--tui-status-info-pale-hover"},{name:"status-neutral",initialValue:"rgb(121, 129, 140)",variable:"--tui-status-neutral"}]},{title:"Text",colors:[{name:"text-primary",initialValue:"rgba(27, 31, 59, 1)",variable:"--tui-text-primary"},{name:"text-secondary",initialValue:"rgba(27, 31, 59, 0.65)",variable:"--tui-text-secondary"},{name:"text-tertiary",initialValue:"rgba(27, 31, 59, 0.4)",variable:"--tui-text-tertiary"},{name:"text-action",initialValue:"#526ed3",variable:"--tui-text-action"},{name:"text-action-hover",initialValue:"#6c86e2",variable:"--tui-text-action-hover"},{name:"text-positive",initialValue:"#3aa981",variable:"--tui-text-positive"},{name:"text-positive-hover",initialValue:"#7ac5aa",variable:"--tui-text-positive-hover"},{name:"text-negative",initialValue:"#dd4c1e",variable:"--tui-text-negative"},{name:"text-negative-hover",initialValue:"#e38163",variable:"--tui-text-negative-hover"}]}];function Io(o,t){if(o&1){let r=v();s(0,"tui-input-color",9),P("ngModelChange",function(i){let n=d(r).$index,a=p(2);return k(a.colors[n],i)||(a.colors[n]=i),m(i)}),C(1),u()}if(o&2){let r=t.$implicit,e=t.$index,i=p(2);l("colors",i.palette),D("ngModel",i.colors[e]),c(),S(" ",r.name," ")}}function Mo(o,t){if(o&1&&(s(0,"h6",7),C(1),u(),Q(2,Io,2,3,"tui-input-color",8,X)),o&2){let r=t.$implicit;c(),Ft(r.title),c(),Z(r.colors)}}function So(o,t){if(o&1&&(y(0,"br"),C(1)),o&2){let r=t.$implicit,e=t.$index,i=p();c(),$t(" ",r.variable,": ",i.colors[e](),"; ")}}var vs=(()=>{let t=class t{constructor(){this.router=g(zt),this.clipboard=g(ji),this.activatedRoute=g(Rt),this.window=g(He),this.params=Fe(this.activatedRoute.queryParams)(),this.themeGroups=pn,this.themeData=this.themeGroups.map(e=>e.colors).reduce((e,i)=>e.concat(i),[]),this.palette=en,this.colors=this.themeData.map(e=>{var n;let i=((n=this.params)==null?void 0:n[e.variable])??e.initialValue;return Se((i[0]!=="r"&&i[0]!=="#"?"#":"")+i)}),this.copy$=new Ze,this.iconCopy=Fe(this.copy$.pipe(H(()=>Je(2e3).pipe(K(()=>"@tui.copy"),q("@tui.check")))),{initialValue:"@tui.copy"}),this.share$=new Ze,this.iconShare=Fe(this.share$.pipe(H(()=>Je(2e3).pipe(K(()=>"@tui.external-link"),q("@tui.check")))),{initialValue:"@tui.external-link"}),this.theme=Lt(()=>this.colors.map((e,i)=>`${this.themeData[i].variable}: ${e()};`).join(" "))}copy(){this.copy$.next();let e=`:root {${this.themeData.reduce((i,n,a)=>`${i} +${n.variable}:${this.colors[a]()};`,"")} +}`;this.clipboard.copy(e)}share(){this.share$.next(),this.clipboard.copy(this.window.location.href)}queryParams(){let e=this.themeData.reduce((i,n,a)=>ne(ie({},i),{[n.variable]:this.colors[a]().replace("#","")}),{});this.router.navigate([],{relativeTo:this.activatedRoute,queryParams:e,queryParamsHandling:"merge"})}};t.\u0275fac=function(i){return new(i||t)},t.\u0275cmp=T({type:t,selectors:[["lmb-theme-generator"]],standalone:!0,features:[oe],decls:16,vars:11,consts:[[1,"list-colors"],["tuiHeader","m"],["tuiTitle",""],["appearance","icon","size","m","tuiButton","",1,"share",3,"click","iconStart"],[1,"colors",3,"focusout"],["appearance","icon","size","m","tuiButton","",1,"copy",3,"click","iconStart"],[3,"theme"],[1,"tui-space_top-0","tui-space_bottom-0","title-colors"],["tuiTextfieldSize","m",3,"colors","ngModel"],["tuiTextfieldSize","m",3,"ngModelChange","colors","ngModel"]],template:function(i,n){i&1&&(s(0,"div",0)(1,"div",1)(2,"h3",2),C(3," Colors "),u(),s(4,"button",3),_("click",function(){return n.share()}),u()(),s(5,"div",4),_("focusout",function(){return n.queryParams()}),Q(6,Mo,4,1,null,null,X),u(),s(8,"code")(9,"button",5),_("click",function(){return n.copy()}),u(),C(10),Q(11,So,2,2,null,null,X),y(13,"br"),C(14),u()(),y(15,"lmb-theme-example",6)),i&2&&(c(2),x("flex-grow",0)("margin-bottom","auto")("margin-top","auto"),c(2),l("iconStart",n.iconShare()),c(2),Z(n.themeGroups),c(3),l("iconStart",n.iconCopy()),c(),S(" :root ","{"," "),c(),Z(n.themeData),c(3),S(" ","}"," "),c(),l("theme",n.theme))},dependencies:[w,le,se,ue,cn,ce,je,rn,on,Ne],styles:["[_nghost-%COMP%]{position:relative;display:grid;grid-template-columns:1fr 1fr;margin-top:1rem}@media (max-width: 570px){[_nghost-%COMP%]{grid-template-columns:1fr}}.list-colors[_ngcontent-%COMP%]{display:flex;padding-right:3rem;flex-direction:column;gap:1rem}code[_ngcontent-%COMP%]{position:relative;margin-top:2rem;padding:1rem;background:var(--tui-background-base-alt);font-family:monospace}.copy[_ngcontent-%COMP%]{position:absolute;right:.2rem;top:.2rem}.share[_ngcontent-%COMP%]{margin-top:auto;margin-bottom:auto}.colors[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.8rem}.title-colors[_ngcontent-%COMP%]{font:var(--tui-font-heading-6)}"],changeDetection:0});let o=t;return o})();export{vs as ThemeGeneratorComponent}; diff --git a/chunk-RRCAJAAS.js b/chunk-ZWMUZJ6F.js similarity index 99% rename from chunk-RRCAJAAS.js rename to chunk-ZWMUZJ6F.js index 0c5d47d85..3de8309bb 100644 --- a/chunk-RRCAJAAS.js +++ b/chunk-ZWMUZJ6F.js @@ -1,2 +1,2 @@ -import{h as I}from"./chunk-DNEQ7KDT.js";import{Ca as c,Ib as g,Kd as p,Md as l,cc as D,fe as d,id as R,ke as f,le as b,nb as m,qf as k,sb as u,ub as h,vb as S,wa as s}from"./chunk-NEAIWFFQ.js";var z=["type","checkbox","tuiSwitch",""],w={showIcons:!0,size:"m",icon:"@tui.check",appearance:e=>e.checked?"primary":"secondary"},A=p(w);var Z=(()=>{let i=class i{constructor(){this.appearance=s(f),this.resolver=k(),this.options=s(A),this.el=d(),this.control=s(R,{optional:!0,self:!0}),this.size=this.options.size,this.showIcons=this.options.showIcons}ngDoCheck(){this.appearance.tuiAppearance=this.options.appearance(this.el)}get icon(){let{options:t,resolver:o,size:r}=this,M=l(t.icon)?t.icon:t.icon(r);return this.showIcons?`url(${o(M)})`:null}};i.\u0275fac=function(o){return new(o||i)},i.\u0275cmp=c({type:i,selectors:[["input","type","checkbox","tuiSwitch",""]],hostAttrs:["role","switch"],hostVars:6,hostBindings:function(o,r){o&2&&(g("disabled",!r.control||r.control.disabled),u("data-size",r.size),h("--t-checked-icon",r.icon),S("_readonly",!r.control))},inputs:{size:"size",showIcons:"showIcons"},standalone:!0,features:[m([b,I]),D],attrs:z,decls:0,vars:0,template:function(o,r){},styles:[`[tuiSwitch]{transition-property:background,box-shadow;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;width:3rem;height:1.5rem;border-radius:2rem;overflow:hidden;cursor:pointer;margin:0;flex-shrink:0;color:#fff!important}[tuiSwitch][data-size=s]{height:1rem;width:2rem}[tuiSwitch][data-size=s]:before{width:1rem;transform:translate(-1rem);-webkit-mask-size:.75rem;mask-size:.75rem}[tuiSwitch][data-size=s]:after{width:1rem;box-shadow:-2.625rem 0 0 .5rem currentColor;outline-width:.167rem;transform:scale(.375)}[tuiSwitch][data-size=s]:checked:after{transform:scale(.375) translate(2.625rem)}[tuiSwitch]:checked:before{transform:none}[tuiSwitch]:checked:after{transform:scale(.33333) translate(4.5rem)}[tuiSwitch]:disabled._readonly{opacity:1}[tuiSwitch]:before,[tuiSwitch]:after{transition-property:transform;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;content:"";position:absolute;height:100%;width:1.5rem}[tuiSwitch]:before{display:var(--t-checked-icon, none);background:currentColor;-webkit-mask:var(--t-checked-icon) no-repeat center;mask:var(--t-checked-icon) no-repeat center;-webkit-mask-size:1rem;mask-size:1rem;transform:translate(-1.5rem)}[tuiSwitch]:after{right:0;border-radius:100%;transform:scale(.33333);box-shadow:-4.5rem 0 0 .75rem currentColor;outline:.375rem solid var(--tui-background-neutral-2-pressed);outline-offset:var(--t-checked-icon, 20rem)} +import{h as I}from"./chunk-XENTLRKE.js";import{Ca as c,Ib as g,Kd as p,Md as l,cc as D,fe as d,id as R,ke as f,le as b,nb as m,qf as k,sb as u,ub as h,vb as S,wa as s}from"./chunk-NEAIWFFQ.js";var z=["type","checkbox","tuiSwitch",""],w={showIcons:!0,size:"m",icon:"@tui.check",appearance:e=>e.checked?"primary":"secondary"},A=p(w);var Z=(()=>{let i=class i{constructor(){this.appearance=s(f),this.resolver=k(),this.options=s(A),this.el=d(),this.control=s(R,{optional:!0,self:!0}),this.size=this.options.size,this.showIcons=this.options.showIcons}ngDoCheck(){this.appearance.tuiAppearance=this.options.appearance(this.el)}get icon(){let{options:t,resolver:o,size:r}=this,M=l(t.icon)?t.icon:t.icon(r);return this.showIcons?`url(${o(M)})`:null}};i.\u0275fac=function(o){return new(o||i)},i.\u0275cmp=c({type:i,selectors:[["input","type","checkbox","tuiSwitch",""]],hostAttrs:["role","switch"],hostVars:6,hostBindings:function(o,r){o&2&&(g("disabled",!r.control||r.control.disabled),u("data-size",r.size),h("--t-checked-icon",r.icon),S("_readonly",!r.control))},inputs:{size:"size",showIcons:"showIcons"},standalone:!0,features:[m([b,I]),D],attrs:z,decls:0,vars:0,template:function(o,r){},styles:[`[tuiSwitch]{transition-property:background,box-shadow;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;width:3rem;height:1.5rem;border-radius:2rem;overflow:hidden;cursor:pointer;margin:0;flex-shrink:0;color:#fff!important}[tuiSwitch][data-size=s]{height:1rem;width:2rem}[tuiSwitch][data-size=s]:before{width:1rem;transform:translate(-1rem);-webkit-mask-size:.75rem;mask-size:.75rem}[tuiSwitch][data-size=s]:after{width:1rem;box-shadow:-2.625rem 0 0 .5rem currentColor;outline-width:.167rem;transform:scale(.375)}[tuiSwitch][data-size=s]:checked:after{transform:scale(.375) translate(2.625rem)}[tuiSwitch]:checked:before{transform:none}[tuiSwitch]:checked:after{transform:scale(.33333) translate(4.5rem)}[tuiSwitch]:disabled._readonly{opacity:1}[tuiSwitch]:before,[tuiSwitch]:after{transition-property:transform;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;content:"";position:absolute;height:100%;width:1.5rem}[tuiSwitch]:before{display:var(--t-checked-icon, none);background:currentColor;-webkit-mask:var(--t-checked-icon) no-repeat center;mask:var(--t-checked-icon) no-repeat center;-webkit-mask-size:1rem;mask-size:1rem;transform:translate(-1.5rem)}[tuiSwitch]:after{right:0;border-radius:100%;transform:scale(.33333);box-shadow:-4.5rem 0 0 .75rem currentColor;outline:.375rem solid var(--tui-background-neutral-2-pressed);outline-offset:var(--t-checked-icon, 20rem)} `],encapsulation:2,changeDetection:0});let e=i;return e})();var a=function(e){return e.ArmenianDram="AMD",e.AustralianDollar="AUD",e.AzerbaijaniManat="AZN",e.Baht="THB",e.BahrainiDinar="BHD",e.BelarusianRuble="BYN",e.BrazilianReal="BRL",e.CanadianDollar="CAD",e.CzechKoruna="CZK",e.Dirham="AED",e.Dollar="USD",e.EastCaribbeanDollar="XCD",e.Euro="EUR",e.Forint="HUF",e.GeorgianLari="GEL",e.HongKongDollar="HKD",e.Hryvnia="UAH",e.IndianRupee="INR",e.IndonesianRupiah="IDR",e.IranianRial="IRR",e.IsraeliShekel="ILS",e.KyrgyzstanSom="KGS",e.MalaysianRinggit="MYR",e.MexicanPeso="MXN",e.MoldovanLeu="MDL",e.MongolianTugrik="MNT",e.NewTurkmenManat="TMT",e.PolandZloty="PLN",e.Pound="GBP",e.Ruble="RUB",e.SaudiRiyal="SAR",e.SerbianDinar="RSD",e.SingaporeDollar="SGD",e.SouthAfricanRand="ZAR",e.SriLankanRupee="LKR",e.SwissFranc="CHF",e.TajikistaniSomoni="TJS",e.Tenge="KZT",e.TurkishLira="TRY",e.UzbekSum="UZS",e.VietnameseDong="VND",e.Won="KRW",e.Yen="JPY",e.YuanRenminbi="CNY",e}(a||{}),n=function(e){return e.ArmenianDram="051",e.AustralianDollar="036",e.AzerbaijaniManat="944",e.Baht="764",e.BahrainiDinar="048",e.BelarusianRuble="933",e.BrazilianReal="986",e.CanadianDollar="124",e.CzechKoruna="203",e.Dirham="784",e.Dollar="840",e.EastCaribbeanDollar="951",e.Euro="978",e.Forint="348",e.GeorgianLari="981",e.HongKongDollar="344",e.Hryvnia="980",e.IndianRupee="356",e.IndonesianRupiah="360",e.IranianRial="364",e.IsraeliShekel="376",e.KyrgyzstanSom="417",e.MalaysianRinggit="458",e.MexicanPeso="484",e.MoldovanLeu="498",e.MongolianTugrik="496",e.NewTurkmenManat="934",e.PolandZloty="985",e.Pound="826",e.Ruble="643",e.SaudiRiyal="682",e.SerbianDinar="941",e.SingaporeDollar="702",e.SouthAfricanRand="710",e.SriLankanRupee="144",e.SwissFranc="756",e.TajikistaniSomoni="972",e.Tenge="398",e.TurkishLira="949",e.UzbekSum="860",e.VietnameseDong="704",e.Won="410",e.Yen="392",e.YuanRenminbi="156",e}(n||{});function v(e){switch(e){case a.Ruble:case n.Ruble:return"\u20BD";case a.Dollar:case n.Dollar:case a.MexicanPeso:case n.MexicanPeso:return"$";case a.SingaporeDollar:case n.SingaporeDollar:return"S$";case a.AustralianDollar:case n.AustralianDollar:return"A$";case a.BahrainiDinar:case n.BahrainiDinar:return"BD";case a.CzechKoruna:case n.CzechKoruna:return"K\u010D";case a.HongKongDollar:case n.HongKongDollar:return"HK$";case a.CanadianDollar:case n.CanadianDollar:return"C$";case a.EastCaribbeanDollar:case n.EastCaribbeanDollar:return"EC$";case a.Euro:case n.Euro:return"\u20AC";case a.Forint:case n.Forint:return"Ft";case a.Pound:case n.Pound:return"\xA3";case a.Baht:case n.Baht:return"\u0E3F";case a.TurkishLira:case n.TurkishLira:return"\u20BA";case a.YuanRenminbi:case n.YuanRenminbi:return"CN\xA5";case a.Yen:case n.Yen:return"\xA5";case a.IsraeliShekel:case n.IsraeliShekel:return"\u20AA";case a.IndianRupee:case n.IndianRupee:return"\u20B9";case a.SwissFranc:case n.SwissFranc:return"\u20A3";case a.ArmenianDram:case n.ArmenianDram:return"\u058F";case a.Won:case n.Won:return"\u20A9";case a.Tenge:case n.Tenge:return"\u20B8";case a.Hryvnia:case n.Hryvnia:return"\u20B4";case a.UzbekSum:case n.UzbekSum:return"So'm";case a.KyrgyzstanSom:case n.KyrgyzstanSom:return"c";case a.Dirham:case n.Dirham:return"Dh";case a.TajikistaniSomoni:case n.TajikistaniSomoni:return"SM";case a.MalaysianRinggit:case n.MalaysianRinggit:return"RM";case a.BelarusianRuble:case n.BelarusianRuble:return"Br";case a.GeorgianLari:case n.GeorgianLari:return"\u20BE";case a.AzerbaijaniManat:case n.AzerbaijaniManat:return"\u20BC";case a.SriLankanRupee:case n.SriLankanRupee:return"Rs.";case a.SerbianDinar:case n.SerbianDinar:return"DIN";case a.SaudiRiyal:case n.SaudiRiyal:return"SR";case a.MoldovanLeu:case n.MoldovanLeu:return"L";case a.MongolianTugrik:case n.MongolianTugrik:return"\u20AE";case a.PolandZloty:case n.PolandZloty:return"z\u0142";case a.SouthAfricanRand:case n.SouthAfricanRand:return"R";case a.IranianRial:case n.IranianRial:return"IR";case a.IndonesianRupiah:case n.IndonesianRupiah:return"Rp";case a.VietnameseDong:case n.VietnameseDong:return"\u0111";case a.NewTurkmenManat:case n.NewTurkmenManat:return"TMT";case a.BrazilianReal:case n.BrazilianReal:return"R$";default:return null}}function B(e){return e===null||l(e)?e||"":String(e).padStart(3,"0")}function q(e){let i=B(e);return v(i)||i}var Q={[a.Ruble]:n.Ruble,[a.Dollar]:n.Dollar,[a.MexicanPeso]:n.MexicanPeso,[a.MoldovanLeu]:n.MoldovanLeu,[a.PolandZloty]:n.PolandZloty,[a.SingaporeDollar]:n.SingaporeDollar,[a.AustralianDollar]:n.AustralianDollar,[a.HongKongDollar]:n.HongKongDollar,[a.CanadianDollar]:n.CanadianDollar,[a.CzechKoruna]:n.CzechKoruna,[a.EastCaribbeanDollar]:n.EastCaribbeanDollar,[a.Euro]:n.Euro,[a.Forint]:n.Forint,[a.Pound]:n.Pound,[a.Baht]:n.Baht,[a.BahrainiDinar]:n.BahrainiDinar,[a.TurkishLira]:n.TurkishLira,[a.YuanRenminbi]:n.YuanRenminbi,[a.Yen]:n.Yen,[a.IsraeliShekel]:n.IsraeliShekel,[a.IndianRupee]:n.IndianRupee,[a.SwissFranc]:n.SwissFranc,[a.ArmenianDram]:n.ArmenianDram,[a.Won]:n.Won,[a.Tenge]:n.Tenge,[a.Hryvnia]:n.Hryvnia,[a.UzbekSum]:n.UzbekSum,[a.KyrgyzstanSom]:n.KyrgyzstanSom,[a.Dirham]:n.Dirham,[a.TajikistaniSomoni]:n.TajikistaniSomoni,[a.MalaysianRinggit]:n.MalaysianRinggit,[a.BelarusianRuble]:n.BelarusianRuble,[a.GeorgianLari]:n.GeorgianLari,[a.AzerbaijaniManat]:n.AzerbaijaniManat,[a.SriLankanRupee]:n.SriLankanRupee,[a.SerbianDinar]:n.SerbianDinar,[a.SaudiRiyal]:n.SaudiRiyal,[a.MongolianTugrik]:n.MongolianTugrik,[a.SouthAfricanRand]:n.SouthAfricanRand,[a.IranianRial]:n.IranianRial,[a.IndonesianRupiah]:n.IndonesianRupiah,[a.VietnameseDong]:n.VietnameseDong,[a.NewTurkmenManat]:n.NewTurkmenManat,[a.BrazilianReal]:n.BrazilianReal};var y={[n.Ruble]:a.Ruble,[n.Dollar]:a.Dollar,[n.MexicanPeso]:a.MexicanPeso,[n.MoldovanLeu]:a.MoldovanLeu,[n.PolandZloty]:a.PolandZloty,[n.SingaporeDollar]:a.SingaporeDollar,[n.AustralianDollar]:a.AustralianDollar,[n.HongKongDollar]:a.HongKongDollar,[n.CanadianDollar]:a.CanadianDollar,[n.CzechKoruna]:a.CzechKoruna,[n.EastCaribbeanDollar]:a.EastCaribbeanDollar,[n.Euro]:a.Euro,[n.Forint]:a.Forint,[n.Pound]:a.Pound,[n.Baht]:a.Baht,[n.BahrainiDinar]:a.BahrainiDinar,[n.TurkishLira]:a.TurkishLira,[n.YuanRenminbi]:a.YuanRenminbi,[n.Yen]:a.Yen,[n.IsraeliShekel]:a.IsraeliShekel,[n.IndianRupee]:a.IndianRupee,[n.SwissFranc]:a.SwissFranc,[n.ArmenianDram]:a.ArmenianDram,[n.Won]:a.Won,[n.Tenge]:a.Tenge,[n.Hryvnia]:a.Hryvnia,[n.UzbekSum]:a.UzbekSum,[n.KyrgyzstanSom]:a.KyrgyzstanSom,[n.Dirham]:a.Dirham,[n.TajikistaniSomoni]:a.TajikistaniSomoni,[n.MalaysianRinggit]:a.MalaysianRinggit,[n.BelarusianRuble]:a.BelarusianRuble,[n.GeorgianLari]:a.GeorgianLari,[n.AzerbaijaniManat]:a.AzerbaijaniManat,[n.SriLankanRupee]:a.SriLankanRupee,[n.SerbianDinar]:a.SerbianDinar,[n.SaudiRiyal]:a.SaudiRiyal,[n.MongolianTugrik]:a.MongolianTugrik,[n.SouthAfricanRand]:a.SouthAfricanRand,[n.IranianRial]:a.IranianRial,[n.IndonesianRupiah]:a.IndonesianRupiah,[n.VietnameseDong]:a.VietnameseDong,[n.NewTurkmenManat]:a.NewTurkmenManat,[n.BrazilianReal]:a.BrazilianReal};export{Z as a,q as b}; diff --git a/chunk-LS7UCRAC.js b/chunk-ZYN4Y54G.js similarity index 97% rename from chunk-LS7UCRAC.js rename to chunk-ZYN4Y54G.js index f31dad6fa..0de36e3b4 100644 --- a/chunk-LS7UCRAC.js +++ b/chunk-ZYN4Y54G.js @@ -1 +1 @@ -import{F as E,h as T,n as S,p as L,r as b,u as D}from"./chunk-OKL4RZMA.js";import{Bb as d,Ca as f,Cb as c,Db as g,Eb as v,Ec as M,Fb as C,Kd as w,Lb as p,Ma as _,Mb as O,Nb as x,Nc as k,Tb as y,Vb as P,cb as a,cc as z,fe as I,rb as m,sb as u,tb as s,vb as l,wa as h}from"./chunk-NEAIWFFQ.js";var F=["*"];function N(t,e){if(t&1&&(v(0),y(1),C()),t&2){let o=e.polymorpheusOutlet;a(),P(" ",o," ")}}function j(t,e){if(t&1&&(d(0,"div",6),m(1,N,2,1,"ng-container",7),c()),t&2){let o=p(2);l("t-text_horizontal",o.isHorizontal),a(),s("polymorpheusOutlet",o.textContent)}}function A(t,e){if(t&1&&(d(0,"div",2),_(),d(1,"svg",3),g(2,"circle",4),c(),m(3,j,2,3,"div",5),c()),t&2){let o=p();l("t-loader_horizontal",o.isHorizontal)("t-loader_inherit-color",o.inheritColor),a(3),s("ngIf",o.hasText)}}var U={size:"m",inheritColor:!1,overlay:!1},B=w(U);var it=(()=>{let e=class e{constructor(){this.doc=h(M),this.el=I(),this.isIOS=h(E),this.options=h(B),this.loading=!0,this.isApple=L(this.el)||this.isIOS,this.size=this.options.size,this.inheritColor=this.options.inheritColor,this.overlay=this.options.overlay}set showLoader(r){r&&this.focused&&b(this.doc),this.loading=r}get hasOverlay(){return this.overlay&&this.loading}get hasText(){return!!this.textContent}get isHorizontal(){return!T(this.size)}get focused(){return D(this.el)}};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=f({type:e,selectors:[["tui-loader"]],hostVars:3,hostBindings:function(n,i){n&2&&(u("data-size",i.size),l("_loading",i.loading))},inputs:{size:"size",inheritColor:"inheritColor",overlay:"overlay",textContent:"textContent",showLoader:"showLoader"},standalone:!0,features:[z],ngContentSelectors:F,decls:3,vars:7,consts:[[1,"t-content",3,"disabled"],["class","t-loader",3,"t-loader_horizontal","t-loader_inherit-color",4,"ngIf"],[1,"t-loader"],["automation-id","tui-loader__loader","focusable","false","height","100%","width","100%",1,"t-icon"],["cx","50%","cy","50%",1,"t-circle"],["automation-id","tui-loader__text","class","t-text",3,"t-text_horizontal",4,"ngIf"],["automation-id","tui-loader__text",1,"t-text"],[4,"polymorpheusOutlet"]],template:function(n,i){n&1&&(O(),d(0,"fieldset",0),x(1),c(),m(2,A,4,5,"div",1)),n&2&&(l("t-content_has-overlay",i.hasOverlay)("t-content_loading",i.loading),s("disabled",i.loading&&!i.isApple),u("inert",i.loading||null),a(2),s("ngIf",i.loading))},dependencies:[k,S],styles:["[_nghost-%COMP%]{position:relative;display:flex;min-width:1.5rem;--tui-thickness: calc(var(--t-diameter) / 12)}._loading[_nghost-%COMP%]{overflow:hidden}[data-size=xs][_nghost-%COMP%]{--t-diameter: .75em}[data-size=s][_nghost-%COMP%]{--t-diameter: 1em}[data-size=m][_nghost-%COMP%]{--t-diameter: 1.5em}[data-size=l][_nghost-%COMP%]{--t-diameter: 2.5em}[data-size=xl][_nghost-%COMP%]{--t-diameter: 3.5em}[data-size=xxl][_nghost-%COMP%]{--t-diameter: 5em}.t-content[_ngcontent-%COMP%]{z-index:0;min-width:100%;height:100%;padding:0;margin:0;border:none}.t-content_has-overlay[_ngcontent-%COMP%]{opacity:.3}.t-content_loading[_ngcontent-%COMP%]{pointer-events:none}.t-loader[_ngcontent-%COMP%]{position:relative;left:-100%;display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:100%;min-height:var(--t-diameter);flex-shrink:0;align-self:center;color:var(--tui-text-primary);stroke:var(--tui-background-accent-1);animation:tuiFadeIn var(--tui-duration);font-size:1rem}.t-loader.t-loader_horizontal[_ngcontent-%COMP%]{flex-direction:row}.t-loader.t-loader_inherit-color[_ngcontent-%COMP%]{color:inherit;stroke:currentColor}.t-text[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font:var(--tui-font-text-s);margin-top:1rem;color:inherit;max-width:100%;text-align:center;stroke-width:0}.t-text_horizontal[_ngcontent-%COMP%]{margin:0 0 0 1rem}@keyframes _ngcontent-%COMP%_tuiLoaderRotate{0%{transform:rotate(-90deg)}50%{transform:rotate(-90deg) rotate(1turn)}to{transform:rotate(-90deg) rotate(3turn)}}.t-icon[_ngcontent-%COMP%]{display:block;width:var(--t-diameter);height:var(--t-diameter);margin:.25rem calc(var(--t-diameter) / -2);border-radius:100%;overflow:hidden;animation:_ngcontent-%COMP%_tuiLoaderRotate 4s linear infinite}@supports (-webkit-hyphens: none){.t-icon[_ngcontent-%COMP%]{overflow:visible}}@keyframes _ngcontent-%COMP%_tuiLoaderDashOffset{0%{stroke-dashoffset:calc(2 * 3.14159265 * calc(var(--t-diameter) / 2 - var(--tui-thickness)))}50%{stroke-dashoffset:calc(.05 * calc(2 * 3.14159265 * calc(var(--t-diameter) / 2 - var(--tui-thickness))))}to{stroke-dashoffset:calc(2 * 3.14159265 * calc(var(--t-diameter) / 2 - var(--tui-thickness)))}}.t-circle[_ngcontent-%COMP%]{r:calc(var(--t-diameter) / 2 - var(--tui-thickness));stroke-dasharray:calc(2 * 3.14159265 * calc(var(--t-diameter) / 2 - var(--tui-thickness)));fill:none;stroke:inherit;stroke-width:max(var(--tui-thickness),1.5px);animation:_ngcontent-%COMP%_tuiLoaderDashOffset 4s linear infinite}"],changeDetection:0});let t=e;return t})();export{it as a}; +import{G as E,h as T,o as S,q as L,s as b,v as D}from"./chunk-DXP4LH76.js";import{Bb as d,Ca as f,Cb as c,Db as g,Eb as v,Ec as M,Fb as C,Kd as w,Lb as p,Ma as _,Mb as O,Nb as x,Nc as k,Tb as y,Vb as P,cb as a,cc as z,fe as I,rb as m,sb as u,tb as s,vb as l,wa as h}from"./chunk-NEAIWFFQ.js";var F=["*"];function N(t,e){if(t&1&&(v(0),y(1),C()),t&2){let o=e.polymorpheusOutlet;a(),P(" ",o," ")}}function j(t,e){if(t&1&&(d(0,"div",6),m(1,N,2,1,"ng-container",7),c()),t&2){let o=p(2);l("t-text_horizontal",o.isHorizontal),a(),s("polymorpheusOutlet",o.textContent)}}function A(t,e){if(t&1&&(d(0,"div",2),_(),d(1,"svg",3),g(2,"circle",4),c(),m(3,j,2,3,"div",5),c()),t&2){let o=p();l("t-loader_horizontal",o.isHorizontal)("t-loader_inherit-color",o.inheritColor),a(3),s("ngIf",o.hasText)}}var U={size:"m",inheritColor:!1,overlay:!1},B=w(U);var it=(()=>{let e=class e{constructor(){this.doc=h(M),this.el=I(),this.isIOS=h(E),this.options=h(B),this.loading=!0,this.isApple=L(this.el)||this.isIOS,this.size=this.options.size,this.inheritColor=this.options.inheritColor,this.overlay=this.options.overlay}set showLoader(r){r&&this.focused&&b(this.doc),this.loading=r}get hasOverlay(){return this.overlay&&this.loading}get hasText(){return!!this.textContent}get isHorizontal(){return!T(this.size)}get focused(){return D(this.el)}};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=f({type:e,selectors:[["tui-loader"]],hostVars:3,hostBindings:function(n,i){n&2&&(u("data-size",i.size),l("_loading",i.loading))},inputs:{size:"size",inheritColor:"inheritColor",overlay:"overlay",textContent:"textContent",showLoader:"showLoader"},standalone:!0,features:[z],ngContentSelectors:F,decls:3,vars:7,consts:[[1,"t-content",3,"disabled"],["class","t-loader",3,"t-loader_horizontal","t-loader_inherit-color",4,"ngIf"],[1,"t-loader"],["automation-id","tui-loader__loader","focusable","false","height","100%","width","100%",1,"t-icon"],["cx","50%","cy","50%",1,"t-circle"],["automation-id","tui-loader__text","class","t-text",3,"t-text_horizontal",4,"ngIf"],["automation-id","tui-loader__text",1,"t-text"],[4,"polymorpheusOutlet"]],template:function(n,i){n&1&&(O(),d(0,"fieldset",0),x(1),c(),m(2,A,4,5,"div",1)),n&2&&(l("t-content_has-overlay",i.hasOverlay)("t-content_loading",i.loading),s("disabled",i.loading&&!i.isApple),u("inert",i.loading||null),a(2),s("ngIf",i.loading))},dependencies:[k,S],styles:["[_nghost-%COMP%]{position:relative;display:flex;min-width:1.5rem;--tui-thickness: calc(var(--t-diameter) / 12)}._loading[_nghost-%COMP%]{overflow:hidden}[data-size=xs][_nghost-%COMP%]{--t-diameter: .75em}[data-size=s][_nghost-%COMP%]{--t-diameter: 1em}[data-size=m][_nghost-%COMP%]{--t-diameter: 1.5em}[data-size=l][_nghost-%COMP%]{--t-diameter: 2.5em}[data-size=xl][_nghost-%COMP%]{--t-diameter: 3.5em}[data-size=xxl][_nghost-%COMP%]{--t-diameter: 5em}.t-content[_ngcontent-%COMP%]{z-index:0;min-width:100%;height:100%;padding:0;margin:0;border:none}.t-content_has-overlay[_ngcontent-%COMP%]{opacity:.3}.t-content_loading[_ngcontent-%COMP%]{pointer-events:none}.t-loader[_ngcontent-%COMP%]{position:relative;left:-100%;display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:100%;min-height:var(--t-diameter);flex-shrink:0;align-self:center;color:var(--tui-text-primary);stroke:var(--tui-background-accent-1);animation:tuiFadeIn var(--tui-duration);font-size:1rem}.t-loader.t-loader_horizontal[_ngcontent-%COMP%]{flex-direction:row}.t-loader.t-loader_inherit-color[_ngcontent-%COMP%]{color:inherit;stroke:currentColor}.t-text[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font:var(--tui-font-text-s);margin-top:1rem;color:inherit;max-width:100%;text-align:center;stroke-width:0}.t-text_horizontal[_ngcontent-%COMP%]{margin:0 0 0 1rem}@keyframes _ngcontent-%COMP%_tuiLoaderRotate{0%{transform:rotate(-90deg)}50%{transform:rotate(-90deg) rotate(1turn)}to{transform:rotate(-90deg) rotate(3turn)}}.t-icon[_ngcontent-%COMP%]{display:block;width:var(--t-diameter);height:var(--t-diameter);margin:.25rem calc(var(--t-diameter) / -2);border-radius:100%;overflow:hidden;animation:_ngcontent-%COMP%_tuiLoaderRotate 4s linear infinite}@supports (-webkit-hyphens: none){.t-icon[_ngcontent-%COMP%]{overflow:visible}}@keyframes _ngcontent-%COMP%_tuiLoaderDashOffset{0%{stroke-dashoffset:calc(2 * 3.14159265 * calc(var(--t-diameter) / 2 - var(--tui-thickness)))}50%{stroke-dashoffset:calc(.05 * calc(2 * 3.14159265 * calc(var(--t-diameter) / 2 - var(--tui-thickness))))}to{stroke-dashoffset:calc(2 * 3.14159265 * calc(var(--t-diameter) / 2 - var(--tui-thickness)))}}.t-circle[_ngcontent-%COMP%]{r:calc(var(--t-diameter) / 2 - var(--tui-thickness));stroke-dasharray:calc(2 * 3.14159265 * calc(var(--t-diameter) / 2 - var(--tui-thickness)));fill:none;stroke:inherit;stroke-width:max(var(--tui-thickness),1.5px);animation:_ngcontent-%COMP%_tuiLoaderDashOffset 4s linear infinite}"],changeDetection:0});let t=e;return t})();export{it as a}; diff --git a/index.html b/index.html index 4e9caa19b..2915a36e2 100644 --- a/index.html +++ b/index.html @@ -9,5 +9,5 @@ - + diff --git a/main-QJNXNL6C.js b/main-Q5TRJFFN.js similarity index 54% rename from main-QJNXNL6C.js rename to main-Q5TRJFFN.js index 413cb1d94..3f83a5188 100644 --- a/main-QJNXNL6C.js +++ b/main-Q5TRJFFN.js @@ -1,2 +1,2 @@ -import"./chunk-JUAR2SQB.js";import{a as Yt,b as Zt,c as Kt,d as qt,e as Jt}from"./chunk-ZN6AO4BG.js";import"./chunk-YUW7GALI.js";import{b as kt,d as Ht,g as Ut}from"./chunk-GONOUNY6.js";import"./chunk-PIDCXASU.js";import"./chunk-NL4UQKF6.js";import"./chunk-UPS6ZX2Y.js";import{a as Gt}from"./chunk-AWGYT4IY.js";import"./chunk-NSSAPNB2.js";import"./chunk-LS7UCRAC.js";import"./chunk-DNEQ7KDT.js";import{$ as jt,A as B,B as Et,C as Ot,E as Mt,G as W,I as Rt,P as L,V as Pt,Z as Ft,da as Bt,ia as Lt,j as xt,ka as Vt,ua as Wt,w as At,x as D,y as j,z as Nt}from"./chunk-OKL4RZMA.js";import{c as vt,e as gt,g as Tt,h as F}from"./chunk-GIHFJXZ6.js";import"./chunk-VVRWXTJV.js";import{$e as Dt,A as C,Ab as et,Bb as a,Ca as h,Cb as s,Cf as wt,Db as m,Df as zt,Ea as Y,Ec as k,Hb as E,Hd as yt,If as $t,Ka as x,Kb as b,Kd as Ct,La as A,Lb as T,Mb as it,Nb as f,Nc as R,Pc as P,Q as $,Qe as bt,Sb as ot,Ta as Z,Tb as d,Tc as ut,Ub as nt,Vb as z,Xa as U,Xb as rt,Xc as dt,Yb as at,Zb as st,Zc as ft,_c as ht,bc as pt,cb as c,cc as y,cf as _t,df as It,e as l,gb as K,ib as q,jc as O,kc as M,nb as J,pc as mt,qa as S,rb as v,sb as N,tb as u,ub as g,va as w,vb as Q,w as G,wa as n,wc as ct,xf as St,yb as X,yc as lt,zb as tt}from"./chunk-NEAIWFFQ.js";var Qt=(()=>{let e=class e{constructor(){this.tuiPlatform=n(W,{skipSelf:!0})}};e.\u0275fac=function(i){return new(i||e)},e.\u0275dir=Y({type:e,selectors:[["","tuiPlatform",""]],hostVars:1,hostBindings:function(i,r){i&2&&N("data-platform",r.tuiPlatform)},inputs:{tuiPlatform:"tuiPlatform"},standalone:!0,features:[pt([{provide:W,useFactory:()=>n(e).tuiPlatform}])]});let t=e;return t})();var se=["*",[["tuiOverContent"]],[["tuiOverDialogs"]],[["tuiOverAlerts"]],[["tuiOverDropdowns"]],[["tuiOverHints"]]],pe=["*","tuiOverContent","tuiOverDialogs","tuiOverAlerts","tuiOverDropdowns","tuiOverHints"];function me(t,e){t&1&&m(0,"tui-scroll-controls",2)}var Xt=(()=>{let e=class e{constructor(){var o;this.reducedMotion=n(_t),this.duration=xt(n(It)),this.isMobileRes=yt(n(L).pipe(C(i=>i==="mobile"),Dt(n(lt)))),this.scrollbars$=n(Mt)?G(!1):n(Ht).pipe(C(({length:i})=>!i),$(0)),(o=n(k).defaultView)==null||o.document.documentElement.setAttribute("data-tui-theme",n(St).toLowerCase())}};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=h({type:e,selectors:[["tui-root"]],hostAttrs:["data-tui-version","4.3.0"],hostVars:6,hostBindings:function(i,r){i&1&&b("touchstart.passive.silent",function(){return 0}),i&2&&(g("--tui-duration",r.duration,"ms")("--tui-scroll-behavior",r.reducedMotion?"auto":"smooth"),Q("_mobile",r.isMobileRes()))},standalone:!0,features:[J([Qt]),y],ngContentSelectors:pe,decls:13,vars:3,consts:[["class","t-root-scrollbar",4,"ngIf"],[1,"t-root-content"],[1,"t-root-scrollbar"]],template:function(i,r){i&1&&(it(se),v(0,me,1,0,"tui-scroll-controls",0),O(1,"async"),a(2,"tui-dropdowns")(3,"div",1),f(4),s(),f(5,1),m(6,"tui-dialogs"),f(7,2),m(8,"tui-alerts"),f(9,3),s(),f(10,4),m(11,"tui-hints"),f(12,5)),i&2&&u("ngIf",M(1,1,r.scrollbars$))},dependencies:[R,P,Bt,Ut,kt,Wt,Rt],styles:[`@keyframes tuiPresent{to{content:""}}@keyframes tuiSkeletonVibe{to{opacity:.5}}html[data-tui-theme],.tui-zero-scrollbar{scrollbar-width:none;-ms-overflow-style:none}html[data-tui-theme]::-webkit-scrollbar,.tui-zero-scrollbar::-webkit-scrollbar,html[data-tui-theme]::-webkit-scrollbar-thumb,.tui-zero-scrollbar::-webkit-scrollbar-thumb{display:none}body,input{margin:0}tui-root{position:relative;display:block;font:var(--tui-font-text-s);color:var(--tui-text-primary);flex:1;border-image:conic-gradient(var(--tui-background-base) 0 0) fill 0/0/0 0 100vh 0;-webkit-tap-highlight-color:transparent}tui-root>.t-root-scrollbar{position:fixed;top:0;left:0;bottom:0;right:0;display:none;margin:0}[data-tui-theme] tui-root>.t-root-scrollbar{display:block}.t-root-content{position:relative;top:var(--t-root-top);height:100%;isolation:isolate}.t-root-content>*{--t-root-top: 0}[tuiDropdownButton][tuiDropdownButton]{display:none} -`],encapsulation:2});let t=e;return t})();var ce=Ct("data-tui-theme"),V=(()=>{let e=class e{constructor(){this.storage=n(bt),this.key=n(ce),this.themes=["light","dark"]}get theme(){let o=this.storage.getItem(this.key);return o===null?(this.storage.setItem(this.key,"light"),"light"):o}set theme(o){this.storage.setItem(this.key,o)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=S({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function le(t,e){t&1&&m(0,"tui-icon",13),t&2&&g("font-size",1,"em")("margin-left",.5,"rem")}function ue(t,e){if(t&1){let p=E();a(0,"button",11),b("click",function(){let i=x(p).$implicit,r=T(2);return A(r.chooseTheme(i))}),d(1),v(2,le,1,4,"tui-icon",12),s()}if(t&2){let p=e.$implicit,o=T(2);u("value",p),c(),z(" ",p," "),c(),u("ngIf",o.themeService.theme===p)}}function de(t,e){if(t&1&&(a(0,"tui-data-list",9),tt(1,ue,3,3,"button",10,X),s()),t&2){let p=T();c(),et(p.themeService.themes)}}function fe(t,e){if(t&1){let p=E();a(0,"aside",14)(1,"header")(2,"a",15)(3,"span",5),d(4,"Taiga lumbermill"),s()()(),a(5,"a",16),d(6," Theme Generator "),s(),a(7,"footer")(8,"button",17),b("click",function(){x(p);let i=T();return A(i.expanded=!i.expanded)}),d(9),s()()()}if(t&2){let p=T();u("tuiNavigationAside",p.expanded),c(8),u("iconStart",p.expanded?"@tui.chevron-left":"@tui.chevron-right"),c(),z(" ",p.expanded?"Collapse":"Expand"," ")}}var te=(()=>{let e=class e{constructor(){this.themeService=n(V),this.mobile$=n(L).pipe(C(o=>o==="mobile")),this.open=!1,this.expanded=!1,this.submenu=!1,this.openTheme=!1}chooseTheme(o){this.themeService.theme=o,this.openTheme=!1}};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=h({type:e,selectors:[["app-navigation"]],standalone:!0,features:[y],decls:18,vars:10,consts:[["products",""],["tuiNavigationHeader",""],["appearance","secondary","iconStart","@tui.layout-grid","tuiIconButton",""],["tuiNavigationLogo",""],["icon","@tui.home"],["tuiFade",""],["appearance","secondary","tuiButton","","tuiChevron","",3,"tuiDropdownOpenChange","tuiDropdown","tuiDropdownOpen"],["class","aside-bar",3,"tuiNavigationAside",4,"ngIf"],["tuiNavigationMain",""],["size","s"],["tuiOption","",3,"value"],["tuiOption","",3,"click","value"],["icon","@tui.check",3,"font-size","margin-left",4,"ngIf"],["icon","@tui.check"],[1,"aside-bar",3,"tuiNavigationAside"],["iconStart","@tui.home","routerLink","/","tuiAsideItem",""],["iconStart","@tui.palette","routerLink","/theme","tuiAsideItem",""],["tuiAsideItem","",3,"click","iconStart"]],template:function(i,r){if(i&1){let I=E();a(0,"header",1)(1,"button",2),d(2," Menu "),s(),a(3,"span",3),m(4,"tui-icon",4),a(5,"span",5),d(6,"Taiga lumbermill"),s()(),a(7,"button",6),st("tuiDropdownOpenChange",function(H){return x(I),at(r.openTheme,H)||(r.openTheme=H),A(H)}),a(8,"span",5),d(9),s(),v(10,de,3,0,"ng-template",null,0,mt),s(),m(12,"hr"),s(),a(13,"div"),v(14,fe,10,3,"aside",7),O(15,"async"),a(16,"main",8),m(17,"router-outlet"),s()()}if(i&2){let I=ot(11);c(7),u("tuiDropdown",I),rt("tuiDropdownOpen",r.openTheme),c(2),nt(r.themeService.theme),c(4),g("display","flex"),c(),u("ngIf",!M(15,8,r.mobile$)),c(3),g("display","none")}},dependencies:[ut,R,P,gt,F,vt,wt,Gt,Vt,Lt,Ft,jt,$t,zt,Kt,qt,Jt,Yt,Zt],styles:[".aside-bar[_ngcontent-%COMP%]{height:calc(100vh - 3rem)}"],changeDetection:0});let t=e;return t})();var ee=(()=>{let e=class e{constructor(){this.themeService=n(V),this.title="taiga-lumbermill"}};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=h({type:e,selectors:[["app-root"]],standalone:!0,features:[y],decls:2,vars:1,template:function(i,r){i&1&&(a(0,"tui-root"),m(1,"app-navigation"),s()),i&2&&N("tuiTheme",r.themeService.theme)},dependencies:[te,F,Xt],encapsulation:2,changeDetection:0});let t=e;return t})();var he=(()=>{let e=class e extends B{constructor(o,i,r){super(o,i,r)}ngOnDestroy(){this.flush()}};e.\u0275fac=function(i){return new(i||e)(w(k),w(D),w(j))},e.\u0275prov=S({token:e,factory:e.\u0275fac});let t=e;return t})();function ve(){return new Nt}function ge(t,e,p){return new Ot(t,e,p)}var ie=[{provide:j,useFactory:ve},{provide:B,useClass:he},{provide:K,useFactory:ge,deps:[ft,B,Z]}],Te=[{provide:D,useFactory:()=>new Et},{provide:U,useValue:"BrowserAnimations"},...ie],Li=[{provide:D,useClass:At},{provide:U,useValue:"NoopAnimations"},...ie];function oe(){return q("NgEagerAnimations"),[...Te]}var ne=[{path:"dashboards",loadComponent:()=>l(void 0,null,function*(){return import("./chunk-IMH2DPZL.js").then(t=>t.DashboardsComponent)}),children:[{path:"",loadComponent:()=>l(void 0,null,function*(){return import("./chunk-4KE24AKE.js").then(t=>t.DashboardsListComponent)}),data:{title:""}},{path:"iot",loadComponent:()=>l(void 0,null,function*(){return import("./chunk-EQRGY766.js").then(t=>t.IotComponent)}),data:{title:"Iot"}},{path:"crypto",loadComponent:()=>l(void 0,null,function*(){return import("./chunk-H7DO2GMQ.js").then(t=>t.CryptoComponent)}),data:{title:"Crypto"}}]},{path:"theme",loadComponent:()=>l(void 0,null,function*(){return import("./chunk-LOMFBLNO.js").then(t=>t.ThemeGeneratorComponent)})},{path:"",loadComponent:()=>l(void 0,null,function*(){return import("./chunk-UOLBL6G3.js").then(t=>t.CommonPageComponent)})},{path:"login",loadComponent:()=>l(void 0,null,function*(){return import("./chunk-5RXY5XY7.js").then(t=>t.LoginComponent)})},{path:"sign-up",loadComponent:()=>l(void 0,null,function*(){return import("./chunk-VEFAKPD5.js").then(t=>t.SignUpComponent)})},{path:"**",redirectTo:"dashboards"}];var re={providers:[oe(),ct({eventCoalescing:!0}),Tt(ne),dt(),Pt]};ht(ee,re).catch(t=>console.error(t)); +import"./chunk-CX3RAO33.js";import{a as Yt,b as Zt,c as Kt,d as qt,e as Jt}from"./chunk-5TYV2UJ6.js";import"./chunk-55ASQOEL.js";import{b as kt,d as Ht,g as Ut}from"./chunk-LSLALVJS.js";import"./chunk-JUA3DLL5.js";import"./chunk-P6AQGOJY.js";import"./chunk-TM3BF3MS.js";import{a as Gt}from"./chunk-XEFPZ7J3.js";import"./chunk-NSSAPNB2.js";import"./chunk-ZYN4Y54G.js";import"./chunk-XENTLRKE.js";import{A as Nt,B,C as Et,D as Ot,F as Mt,H as W,J as Rt,Q as L,W as Pt,_ as Ft,aa as jt,ea as Bt,ja as Lt,k as xt,la as Vt,va as Wt,x as At,y as D,z as j}from"./chunk-DXP4LH76.js";import{c as vt,e as gt,g as Tt,h as F}from"./chunk-GIHFJXZ6.js";import"./chunk-VVRWXTJV.js";import{$e as Dt,A as C,Ab as et,Bb as a,Ca as h,Cb as s,Cf as wt,Db as m,Df as zt,Ea as Y,Ec as k,Hb as E,Hd as yt,If as $t,Ka as x,Kb as b,Kd as Ct,La as A,Lb as T,Mb as it,Nb as f,Nc as R,Pc as P,Q as $,Qe as bt,Sb as ot,Ta as Z,Tb as d,Tc as ut,Ub as nt,Vb as z,Xa as U,Xb as rt,Xc as dt,Yb as at,Zb as st,Zc as ft,_c as ht,bc as pt,cb as c,cc as y,cf as _t,df as It,e as l,gb as K,ib as q,jc as O,kc as M,nb as J,pc as mt,qa as S,rb as v,sb as N,tb as u,ub as g,va as w,vb as Q,w as G,wa as n,wc as ct,xf as St,yb as X,yc as lt,zb as tt}from"./chunk-NEAIWFFQ.js";var Qt=(()=>{let e=class e{constructor(){this.tuiPlatform=n(W,{skipSelf:!0})}};e.\u0275fac=function(i){return new(i||e)},e.\u0275dir=Y({type:e,selectors:[["","tuiPlatform",""]],hostVars:1,hostBindings:function(i,r){i&2&&N("data-platform",r.tuiPlatform)},inputs:{tuiPlatform:"tuiPlatform"},standalone:!0,features:[pt([{provide:W,useFactory:()=>n(e).tuiPlatform}])]});let t=e;return t})();var se=["*",[["tuiOverContent"]],[["tuiOverDialogs"]],[["tuiOverAlerts"]],[["tuiOverDropdowns"]],[["tuiOverHints"]]],pe=["*","tuiOverContent","tuiOverDialogs","tuiOverAlerts","tuiOverDropdowns","tuiOverHints"];function me(t,e){t&1&&m(0,"tui-scroll-controls",2)}var Xt=(()=>{let e=class e{constructor(){var o;this.reducedMotion=n(_t),this.duration=xt(n(It)),this.isMobileRes=yt(n(L).pipe(C(i=>i==="mobile"),Dt(n(lt)))),this.scrollbars$=n(Mt)?G(!1):n(Ht).pipe(C(({length:i})=>!i),$(0)),(o=n(k).defaultView)==null||o.document.documentElement.setAttribute("data-tui-theme",n(St).toLowerCase())}};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=h({type:e,selectors:[["tui-root"]],hostAttrs:["data-tui-version","4.3.0"],hostVars:6,hostBindings:function(i,r){i&1&&b("touchstart.passive.silent",function(){return 0}),i&2&&(g("--tui-duration",r.duration,"ms")("--tui-scroll-behavior",r.reducedMotion?"auto":"smooth"),Q("_mobile",r.isMobileRes()))},standalone:!0,features:[J([Qt]),y],ngContentSelectors:pe,decls:13,vars:3,consts:[["class","t-root-scrollbar",4,"ngIf"],[1,"t-root-content"],[1,"t-root-scrollbar"]],template:function(i,r){i&1&&(it(se),v(0,me,1,0,"tui-scroll-controls",0),O(1,"async"),a(2,"tui-dropdowns")(3,"div",1),f(4),s(),f(5,1),m(6,"tui-dialogs"),f(7,2),m(8,"tui-alerts"),f(9,3),s(),f(10,4),m(11,"tui-hints"),f(12,5)),i&2&&u("ngIf",M(1,1,r.scrollbars$))},dependencies:[R,P,Bt,Ut,kt,Wt,Rt],styles:[`@keyframes tuiPresent{to{content:""}}@keyframes tuiSkeletonVibe{to{opacity:.5}}html[data-tui-theme],.tui-zero-scrollbar{scrollbar-width:none;-ms-overflow-style:none}html[data-tui-theme]::-webkit-scrollbar,.tui-zero-scrollbar::-webkit-scrollbar,html[data-tui-theme]::-webkit-scrollbar-thumb,.tui-zero-scrollbar::-webkit-scrollbar-thumb{display:none}body,input{margin:0}tui-root{position:relative;display:block;font:var(--tui-font-text-s);color:var(--tui-text-primary);flex:1;border-image:conic-gradient(var(--tui-background-base) 0 0) fill 0/0/0 0 100vh 0;-webkit-tap-highlight-color:transparent}tui-root>.t-root-scrollbar{position:fixed;top:0;left:0;bottom:0;right:0;display:none;margin:0}[data-tui-theme] tui-root>.t-root-scrollbar{display:block}.t-root-content{position:relative;top:var(--t-root-top);height:100%;isolation:isolate}.t-root-content>*{--t-root-top: 0}[tuiDropdownButton][tuiDropdownButton]{display:none} +`],encapsulation:2});let t=e;return t})();var ce=Ct("data-tui-theme"),V=(()=>{let e=class e{constructor(){this.storage=n(bt),this.key=n(ce),this.themes=["light","dark"]}get theme(){let o=this.storage.getItem(this.key);return o===null?(this.storage.setItem(this.key,"light"),"light"):o}set theme(o){this.storage.setItem(this.key,o)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=S({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function le(t,e){t&1&&m(0,"tui-icon",13),t&2&&g("font-size",1,"em")("margin-left",.5,"rem")}function ue(t,e){if(t&1){let p=E();a(0,"button",11),b("click",function(){let i=x(p).$implicit,r=T(2);return A(r.chooseTheme(i))}),d(1),v(2,le,1,4,"tui-icon",12),s()}if(t&2){let p=e.$implicit,o=T(2);u("value",p),c(),z(" ",p," "),c(),u("ngIf",o.themeService.theme===p)}}function de(t,e){if(t&1&&(a(0,"tui-data-list",9),tt(1,ue,3,3,"button",10,X),s()),t&2){let p=T();c(),et(p.themeService.themes)}}function fe(t,e){if(t&1){let p=E();a(0,"aside",14)(1,"header")(2,"a",15)(3,"span",5),d(4,"Taiga lumbermill"),s()()(),a(5,"a",16),d(6," Theme Generator "),s(),a(7,"footer")(8,"button",17),b("click",function(){x(p);let i=T();return A(i.expanded=!i.expanded)}),d(9),s()()()}if(t&2){let p=T();u("tuiNavigationAside",p.expanded),c(8),u("iconStart",p.expanded?"@tui.chevron-left":"@tui.chevron-right"),c(),z(" ",p.expanded?"Collapse":"Expand"," ")}}var te=(()=>{let e=class e{constructor(){this.themeService=n(V),this.mobile$=n(L).pipe(C(o=>o==="mobile")),this.open=!1,this.expanded=!1,this.submenu=!1,this.openTheme=!1}chooseTheme(o){this.themeService.theme=o,this.openTheme=!1}};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=h({type:e,selectors:[["app-navigation"]],standalone:!0,features:[y],decls:18,vars:10,consts:[["products",""],["tuiNavigationHeader",""],["appearance","secondary","iconStart","@tui.layout-grid","tuiIconButton",""],["tuiNavigationLogo",""],["icon","@tui.home"],["tuiFade",""],["appearance","secondary","tuiButton","","tuiChevron","",3,"tuiDropdownOpenChange","tuiDropdown","tuiDropdownOpen"],["class","aside-bar",3,"tuiNavigationAside",4,"ngIf"],["tuiNavigationMain",""],["size","s"],["tuiOption","",3,"value"],["tuiOption","",3,"click","value"],["icon","@tui.check",3,"font-size","margin-left",4,"ngIf"],["icon","@tui.check"],[1,"aside-bar",3,"tuiNavigationAside"],["iconStart","@tui.home","routerLink","/","tuiAsideItem",""],["iconStart","@tui.palette","routerLink","/theme","tuiAsideItem",""],["tuiAsideItem","",3,"click","iconStart"]],template:function(i,r){if(i&1){let I=E();a(0,"header",1)(1,"button",2),d(2," Menu "),s(),a(3,"span",3),m(4,"tui-icon",4),a(5,"span",5),d(6,"Taiga lumbermill"),s()(),a(7,"button",6),st("tuiDropdownOpenChange",function(H){return x(I),at(r.openTheme,H)||(r.openTheme=H),A(H)}),a(8,"span",5),d(9),s(),v(10,de,3,0,"ng-template",null,0,mt),s(),m(12,"hr"),s(),a(13,"div"),v(14,fe,10,3,"aside",7),O(15,"async"),a(16,"main",8),m(17,"router-outlet"),s()()}if(i&2){let I=ot(11);c(7),u("tuiDropdown",I),rt("tuiDropdownOpen",r.openTheme),c(2),nt(r.themeService.theme),c(4),g("display","flex"),c(),u("ngIf",!M(15,8,r.mobile$)),c(3),g("display","none")}},dependencies:[ut,R,P,gt,F,vt,wt,Gt,Vt,Lt,Ft,jt,$t,zt,Kt,qt,Jt,Yt,Zt],styles:[".aside-bar[_ngcontent-%COMP%]{height:calc(100vh - 3rem)}"],changeDetection:0});let t=e;return t})();var ee=(()=>{let e=class e{constructor(){this.themeService=n(V),this.title="taiga-lumbermill"}};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=h({type:e,selectors:[["app-root"]],standalone:!0,features:[y],decls:2,vars:1,template:function(i,r){i&1&&(a(0,"tui-root"),m(1,"app-navigation"),s()),i&2&&N("tuiTheme",r.themeService.theme)},dependencies:[te,F,Xt],encapsulation:2,changeDetection:0});let t=e;return t})();var he=(()=>{let e=class e extends B{constructor(o,i,r){super(o,i,r)}ngOnDestroy(){this.flush()}};e.\u0275fac=function(i){return new(i||e)(w(k),w(D),w(j))},e.\u0275prov=S({token:e,factory:e.\u0275fac});let t=e;return t})();function ve(){return new Nt}function ge(t,e,p){return new Ot(t,e,p)}var ie=[{provide:j,useFactory:ve},{provide:B,useClass:he},{provide:K,useFactory:ge,deps:[ft,B,Z]}],Te=[{provide:D,useFactory:()=>new Et},{provide:U,useValue:"BrowserAnimations"},...ie],Li=[{provide:D,useClass:At},{provide:U,useValue:"NoopAnimations"},...ie];function oe(){return q("NgEagerAnimations"),[...Te]}var ne=[{path:"dashboards",loadComponent:()=>l(void 0,null,function*(){return import("./chunk-RXYZMX2Q.js").then(t=>t.DashboardsComponent)}),children:[{path:"",loadComponent:()=>l(void 0,null,function*(){return import("./chunk-4KE24AKE.js").then(t=>t.DashboardsListComponent)}),data:{title:""}},{path:"iot",loadComponent:()=>l(void 0,null,function*(){return import("./chunk-ONDW62UT.js").then(t=>t.IotComponent)}),data:{title:"Iot"}},{path:"crypto",loadComponent:()=>l(void 0,null,function*(){return import("./chunk-ROMIO7FL.js").then(t=>t.CryptoComponent)}),data:{title:"Crypto"}}]},{path:"theme",loadComponent:()=>l(void 0,null,function*(){return import("./chunk-ZBHN6UO4.js").then(t=>t.ThemeGeneratorComponent)})},{path:"",loadComponent:()=>l(void 0,null,function*(){return import("./chunk-UOLBL6G3.js").then(t=>t.CommonPageComponent)})},{path:"login",loadComponent:()=>l(void 0,null,function*(){return import("./chunk-X6KU7K55.js").then(t=>t.LoginComponent)})},{path:"sign-up",loadComponent:()=>l(void 0,null,function*(){return import("./chunk-N6CP2Y4H.js").then(t=>t.SignUpComponent)})},{path:"**",redirectTo:"dashboards"}];var re={providers:[oe(),ct({eventCoalescing:!0}),Tt(ne),dt(),Pt]};ht(ee,re).catch(t=>console.error(t));